diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-06-27 05:45:16 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-06-27 05:45:16 +0400 |
commit | 4928e9f7d0a17898300f20567a331417fafc16c1 (patch) | |
tree | 4a739752319b99e192485dc8a4dbe08c8083b84f /include/libbb.h | |
parent | 879f008a8f890f83a005d0816d259c6157121e5b (diff) |
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>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index b5d1156ae..65c6b9f39 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -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" |