losetup: assorted fixes. Closes 6314
"losetup -d" was not complaining that LOOPDEV is missing. "losetup -a" was listing only up to /dev/loop9. "losetup -f" looped forever if llop0 was taken, and never tried anything after /dev/loop9. "-o" with other options (say, -r) had no effect. function old new delta losetup_main 376 419 +43 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -1803,7 +1803,7 @@ extern const char bb_default_login_shell[] ALIGN1;
|
||||
# define VC_4 "/dev/vc/4"
|
||||
# define VC_5 "/dev/vc/5"
|
||||
# define VC_FORMAT "/dev/vc/%d"
|
||||
# define LOOP_FORMAT "/dev/loop/%d"
|
||||
# define LOOP_FORMAT "/dev/loop/%u"
|
||||
# define LOOP_NAMESIZE (sizeof("/dev/loop/") + sizeof(int)*3 + 1)
|
||||
# define LOOP_NAME "/dev/loop/"
|
||||
# define FB_0 "/dev/fb/0"
|
||||
@ -1816,7 +1816,7 @@ extern const char bb_default_login_shell[] ALIGN1;
|
||||
# define VC_4 "/dev/tty4"
|
||||
# define VC_5 "/dev/tty5"
|
||||
# define VC_FORMAT "/dev/tty%d"
|
||||
# define LOOP_FORMAT "/dev/loop%d"
|
||||
# define LOOP_FORMAT "/dev/loop%u"
|
||||
# define LOOP_NAMESIZE (sizeof("/dev/loop") + sizeof(int)*3 + 1)
|
||||
# define LOOP_NAME "/dev/loop"
|
||||
# define FB_0 "/dev/fb0"
|
||||
|
Reference in New Issue
Block a user