applying fix from:

0000068: mount limited to max 8 loop devices (patch provided)  

(made minor wording change for config help message)
This commit is contained in:
Paul Fox
2005-07-19 20:55:37 +00:00
parent 0a92bbf349
commit 3f6f3174e9
2 changed files with 9 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ extern char *find_unused_loop_device(void)
struct stat statbuf;
struct loop_info loopinfo;
for (i = 0; i <= 7; i++) {
for (i = 0; i <= CONFIG_FEATURE_MOUNT_LOOP_MAX; i++) {
sprintf(dev, LOOP_FORMAT, i);
if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) {
if ((fd = open(dev, O_RDONLY)) >= 0) {