Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270774 - Software regression with =sys-apps/util-linux-2.15: can mount only 8 loop devices
Summary: Software regression with =sys-apps/util-linux-2.15: can mount only 8 loop dev...
Status: RESOLVED DUPLICATE of bug 269264
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 22:21 UTC by Cristian Falcas
Modified: 2009-05-23 20:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Falcas 2009-05-21 22:21:10 UTC
After upgrading to =sys-apps/util-linux-2.15, it's impossible for me to mount more then 8 loop devices, loop being either iso or squashfs files.

In order to mount more devices I tried the following (separately):
 - modprobe loop max_loop=64
 - in /etc/modprobe.d/loop.conf I added options loop max_loop=20 and launch update-modules
 - compile loop in kernel and add max_loop=64 to my kernel boot parameters
 - change loop.c in kernel sources and changed nr = 8; to nr = 32:
<------>} else {
<------><------>nr = 32;
<------><------>range = 1UL << (MINORBITS - part_shift);
<------>}
 - manually created more loop devices with 
for i in $(seq 0 25); do mknod -m0660 /dev/loop$i b 7 $i; chown root.disk /dev/loop$i; done
 - tried gentoo kernels 2.6.28, all 2.6.29 and git 2.6.30 with the previous setups
 - for every step I did, I checked the nodes created in /dev (every time the number of automatically created devices was correct) and a reboot in order to check the changes.

All the above steps failed, and when I tried to mount the 9th device I got "mount: could not find any free loop device".

After reverting to sys-apps/util-linux-2.14.2, I can now mount again more then 8 devices.

Reproducible: Always

Steps to Reproduce:
1. upgrade to sys-apps/util-linux-2.15
2. try to mount more then 8 loop devices

Actual Results:  
After the 8th mounted device an error occurs and the device is not mounted:
mount: could not find any free loop device

Expected Results:  
The correct number of loop devices should be mounted, depending on the parameters sent to loop module.

The same thing happened  as in my main OS in a virtual machine with only the minimal Gentoo installed and no USE flags: only "emerge --sync".
Comment 1 Cristian Falcas 2009-05-21 22:23:40 UTC
I used the same make.conf on both systems (real and virtual), but on the virtual one I removed all USE flags

emerge --info                           
Portage 2.2_rc33 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r4-nodebug x86_64)                                                                                                                   
=================================================================                                                       
System uname: Linux-2.6.29-gentoo-r4-nodebug-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.0.0    
Timestamp of tree: Tue, 19 May 2009 11:30:01 +0000                                                                      
app-shells/bash:     4.0_p24                                                                                            
dev-java/java-config: 2.1.7                                                                                             
dev-lang/python:     2.6.2                                                                                              
dev-util/cmake:      2.6.4                                                                                              
sys-apps/baselayout: 2.0.0                                                                                              
sys-apps/openrc:     0.4.3-r2                                                                                           
sys-apps/sandbox:    1.9                                                                                                
sys-devel/autoconf:  2.13, 2.63-r1                                                                                      
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                          
sys-devel/binutils:  2.19.1-r1                                                                                          
sys-devel/gcc-config: 1.4.1                                                                                             
sys-devel/libtool:   2.2.6a                                                                                             
virtual/os-headers:  2.6.29                                                                                             
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                          
CBUILD="x86_64-pc-linux-gnu"                                                                                            
CFLAGS="-march=athlon64 -O2 -pipe"                                                                                      
CHOST="x86_64-pc-linux-gnu"                                                                                             
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"                                                                 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"                                                           
CXXFLAGS="-march=athlon64 -O2 -pipe"                                                                                    
DISTDIR="/media/Musica/Angela/distfiles"                                                                                
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                                                  
GENTOO_MIRRORS=" ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://mirrors.evolva.ro/gentoo/  ftp://mirrors.evolva.ro/gentoo/  http://ftp.romnet.org/gentoo/  ftp://ftp.romnet.org/gentoo/  ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/  http://distro.ibiblio.org/pub/linux/distributions/gentoo/  ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/  http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/  ftp://ftp.tu-clausthal.de/pub/linux/gentoo/  ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo  http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/  ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/  http://ftp.uni-erlangen.de/pub/mirrors/gentoo  ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo  ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo  ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo  ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo  http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/  http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  ftp://ftp.gentoo.mesh-solutions.com/gentoo/  ftp://pandemonium.tiscali.de/pub/gentoo/  http://gentoo.mneisen.org/  ftp://ftp.mneisen.org/gentoo  "                                                                                        
LANG="ro_RO.UTF-8"                                                                                                      
LC_ALL="ro_RO.UTF-8"                                                                                                    
LDFLAGS="-Wl,-O1"                                                                                                       
LINGUAS="en ro en_GB"                                                                                                   
MAKEOPTS="-j3"                                                                                                          
PKGDIR="/usr/portage/packages"                                                                                          
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/media/Musica/Angela"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/x11 /usr/portage/local/kde-testing /usr/portage/local/cristi"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib ac3 acl acpi aio akonadi alsa amd64 apache2 autoipd avahi bash-completion berkdb bittorrent bluetooth branding bzip2 cairo cdaudio cddb cdparanoia cdr chm cisco cli connection-sharing connectionstatus consolekit cracklib crypt css cups curl custom-optimization daap dbus dc1394 dhcp dirac disk-partition dri dvb dvd dvdr dvdread emovix encode exiv2 expat extensions extrafilters faac faad fam fame fbcondecor fbsplash ffmpeg flac fortran ftp fuse gdbm geoip gif gimp glib gnokii gphoto2 gpm graphviz gstreamer hal history htmlhandbook huro iconv id3tag ieee1394 imagemagick ipod ipv6 irc isdnlog jack java jingle jpeg kate kde kde4 kdeenablefinal kdehiddenvisibility kipi l7filter lame ldap libnotify libsamplerate libv4l2 libwww lirc live livecd lm_sensors lzo mad matroska mdnsresponder-compat midi mjpeg mmap mmx mmxext mp2 mp3 mp4 mpeg mudflap musepack musicbrainz mysql nat ncurses network networkmanager newspr nls nowlistening nptl nptlonly nsplugin ntfs nuv odbc offensive ogg openal opengl openmp pam pcre pdf perl php plasma png ppds pppd pulseaudio python qt4 quicktime radio rar rdesktop readline redland reflection rss rtc rtsp samba schroedinger sdl semantic-desktop session skins slang smartcard sndfile speex spell spl sqlite sse sse2 ssl startup-notification statistics svg symlink sysfs taglib tcpd teletext theora threads threadsafe thumbnail tiff timidity truetype tv_check tv_combiner tv_pick_cgi twolame unicode usb utils v4l v4l2 vcd visualization vnc vorbis wavpack webkit wma x264 xcb xcomposite xinerama xml xorg xscreensaver xv xvid yahoo yv12 zeroconf zip zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm  authn_default authn_file authz_dbm authz_default authz_groupfile authz_host  authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir  disk_cache env expires ext_filter file_cache filter headers include info  log_config logio mem_cache mime mime_magic negotiation rewrite setenvif  speling status unique_id userdir usertrack vhost_alias proxy_connect proxy proxy_http" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse vmmouse virtualbox " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ro en_GB" LIRC_DEVICES="leadtek_0010" USERLAND="GNU" VIDEO_CARDS="fglrx fbdev radeon v4l vesa vga vmware radeonhd virtualbox "
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Rafał Mużyło 2009-05-22 01:31:45 UTC
Looks, like this may be of interest:
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commit;h=72f6902e435612f848cbe9993ce6298da8af996c
The comment there hints, that the real problem may lie
within udev rules.
Comment 3 Rafał Mużyło 2009-05-22 02:23:50 UTC
Perhaps the block in /lib/udev/rules.d/40-gentoo.rules
with "old devfs path", referring to bug 195839
is an indirect cause.
Comment 4 Sebastian Luther (few) 2009-05-22 07:48:40 UTC
A duplicate of bug 269264?
Comment 5 Cristian Falcas 2009-05-22 08:21:34 UTC
The difference is that I am unable to mount more devices, as the bug 269264 says:
"by hand i can use 32 loop-devices!", even using the same util-linux version.
Comment 6 SpanKY gentoo-dev 2009-05-23 20:54:52 UTC

*** This bug has been marked as a duplicate of bug 269264 ***