[Bug 1627] New: losetup does not show loop devices beyond /dev/loop9
bugzilla at busybox.net
bugzilla at busybox.net
Sat Apr 24 09:10:27 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=1627
Summary: losetup does not show loop devices beyond /dev/loop9
Product: Busybox
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Other
AssignedTo: unassigned at busybox.net
ReportedBy: mrother at mail.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
Assuming one uses a non-trivial number of loop devices (e.g. > 10) any of the
devices beyond '/dev/loop9' do not get reported when using 'losetup' to get a
list of ALL (!!) loop devices that are currently in use.
Likewise if the next free loop device is beyond '/dev/loop9' nothing will be
reported when using 'losetup -f' to find out the next free loop device.
I guess this bug is a consequence of the following code snippet from
'util-linux/losetup.c':
if (++dev[sizeof(dev) - 2] > '9')
break;
I have to admit that I have done no tests to confirm or deny this hunch.
I'm a user of TinyCoreLinux, which relies on BusyBox to a large degree. Due to
the heavy use of loop mounting a lot of loop devices can be in use and it's a
pity that 'losetup' can't be used to the obtain proper information.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list