f4612577c9
Make it possible to unmount a filesystem on a loop device if it is specified by associated backing file. It does not attempt to unmount anything if there are more than one loop device associated with the given file. Umount looks for associated loopdevice(s) only if umount is called with the regular file as an argument. Before: mount -o loop -t ext2 img mnt umount -v img > Could not find /home/puzel/upstream/util-linux/img in mtab > umount: img: not mounted After: mount -o loop -t ext2 img mnt umount -v img > img is associated with /dev/loop0, trying to unmount it > /dev/loop0 has been unmounted [kzak@redhat.com: - fix memory leak in lomount.c] Addresses: https://bugzilla.novell.com/show_bug.cgi?id=666161 Signed-off-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile.am | ||
README.mount | ||
devname.c | ||
devname.h | ||
fstab.5 | ||
fstab.c | ||
fstab.h | ||
getusername.c | ||
getusername.h | ||
lomount.c | ||
lomount.h | ||
loop.h | ||
losetup.8 | ||
mount.8 | ||
mount.c | ||
mount_constants.h | ||
mount_mntent.c | ||
mount_mntent.h | ||
sundries.c | ||
sundries.h | ||
swap_constants.h | ||
swapoff.8 | ||
swapon.8 | ||
swapon.c | ||
umount.8 | ||
umount.c | ||
xmalloc.c | ||
xmalloc.h |
README.mount
mount/umount for Linux 0.97.3 and later. Authors: Doug Quale <quale@saavik.cs.wisc.edu>, H.J. Lu <hlu@eecs.wsu.edu>, Rick Sladkey <jrs@world.std.com>, Stephen Tweedie <sct@dcs.ed.ac.uk>. Andries Brouwer <aeb@cwi.nl> Adrian Bunk <bunk@stusta.de> Presently in util-linux maintained by Karel Zak <kzak@redhat.com>.