Signed-off-by: Karel Zak <kzak@redhat.com>
if (verbose)
printf(_("mount: skipping the setup of a loop device\n"));
} else {
- int loop_opts;
+ int loop_opts = 0;
int res;
/* since 2.6.37 we don't have to store backing filename to mtab
* Ignore the option "-d" for non-loop devices and loop devices with
* LO_FLAGS_AUTOCLEAR flag.
*/
- if (delloop && is_loop_device(spec) && !is_loop_autoclear(spec))
+ if (delloop && is_loop_device(spec))
myloop = 1;
if (lazy) {
loopdev = spec;
}
gotloop:
- if (loopdev)
+ if (loopdev && !is_loop_autoclear(loopdev))
del_loop(loopdev);
writemtab: