summaryrefslogtreecommitdiffstats
path: root/login-utils/chsh.c
diff options
context:
space:
mode:
authorKarel Zak2010-07-29 14:18:46 +0200
committerKarel Zak2010-07-29 16:08:12 +0200
commit4d9f9bdace6e18f1c5dcc242005bf2db9a13d5e6 (patch)
treea405163020d43050deca0df31f48e0cae997745c /login-utils/chsh.c
parentportability: fix mntent.h and pty.h usage (diff)
downloadkernel-qcow2-util-linux-4d9f9bdace6e18f1c5dcc242005bf2db9a13d5e6.tar.gz
kernel-qcow2-util-linux-4d9f9bdace6e18f1c5dcc242005bf2db9a13d5e6.tar.xz
kernel-qcow2-util-linux-4d9f9bdace6e18f1c5dcc242005bf2db9a13d5e6.zip
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/chsh.c')
0 files changed, 0 insertions, 0 deletions