losetup -a only reporting a maximum of 256 loop devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi !

it seems that losetup doesn`t yet honour recent kernel change (see http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=73285082745045bcd64333c1fbaa88f8490f2626 ) to allow more than 256 loop-devices.
that change was great because i can build a bigger cd-rom server now :)

loop-device creation is dynamically now, is there already work in progress for support in losetup  ?

i would have send a fix, but i`m unsure if just changing limitations in lomount.c

show_used_loop_devices (void) {
....
        for (j = 0; j < SIZE(loop_formats); j++) {
            for(i = 0; i < 256; i++) {
                sprintf(dev, loop_formats[j], i);

and

find_unused_loop_device (void) {
....
for (j = 0; j < SIZE(loop_formats); j++) {
            for(i = 0; i < 256; i++) {
                sprintf(dev, loop_formats[j], i);


is the way to go since MINOR limit of device nodes seems to be at 1048575 and that`s probably a little bit to large value to loop trough.

regards

roland
sysadmin

__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!		
Mehr Infos unter http://produkte.web.de/club/?mc=021131

-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux