diff options
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 */ |