diff options
author | Karel Zak <kzak@redhat.com> | 2010-07-29 14:18:46 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-07-29 16:08:12 +0200 |
commit | 4d9f9bdace6e18f1c5dcc242005bf2db9a13d5e6 (patch) | |
tree | a405163020d43050deca0df31f48e0cae997745c /login-utils | |
parent | 9779651e2b6c06159a583d5852f1a54c000c6c8e (diff) | |
download | util-linux-old-4d9f9bdace6e18f1c5dcc242005bf2db9a13d5e6.tar.gz |
mount: fix "mount -a" for auto-clear loopdevs and /proc/mounts
The "mount -a" uses /etc/mtab to detect already mounted file systems
from /etc/fstab -- this check requires the same FS name (1st field)
in fstab and mtab.
On systems with enabled auto-clear loop devies or systems without
regular mtab (symlink to /proc/mounts) there is /dev/loopN rather
than image filename in mtab. For example:
fstab:
/mnt/store/foo.ISO /mnt/image auto defaults 0 0
mtab:
/dev/loop0 /mnt/image iso9960 rw 0 0
We have to scan all available loop devices to check if some of the
devices is not associated with the image file from fstab.
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=618957
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
0 files changed, 0 insertions, 0 deletions