diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-28 14:10:00 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-28 14:10:00 +0200 |
commit | 335766602b2598f29a3dd854654b9ba9edb6d7cb (patch) | |
tree | 96a4ab55d3574f294a7283694bdc7167724b07bd /libbb | |
parent | 8825cb6660b66c412296c2b1e10ca2f965a0a9cd (diff) | |
download | busybox-w32-335766602b2598f29a3dd854654b9ba9edb6d7cb.tar.gz busybox-w32-335766602b2598f29a3dd854654b9ba9edb6d7cb.tar.bz2 busybox-w32-335766602b2598f29a3dd854654b9ba9edb6d7cb.zip |
testsuite/mount.tests: fix false positive
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/loop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index f0d4296ae..c78535a20 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -106,6 +106,10 @@ int FAST_FUNC set_loop(char **device, const char *file, unsigned long long offse | |||
106 | return -errno; | 106 | return -errno; |
107 | } | 107 | } |
108 | 108 | ||
109 | //TODO: use LOOP_CTL_GET_FREE instead of trying every loopN in sequence? a-la: | ||
110 | // fd = open("/dev/loop-control", O_RDWR); | ||
111 | // loopN = ioctl(fd, LOOP_CTL_GET_FREE); | ||
112 | // | ||
109 | /* Find a loop device. */ | 113 | /* Find a loop device. */ |
110 | try = *device ? *device : dev; | 114 | try = *device ? *device : dev; |
111 | /* 1048575 (0xfffff) is a max possible minor number in Linux circa 2010 */ | 115 | /* 1048575 (0xfffff) is a max possible minor number in Linux circa 2010 */ |