summaryrefslogtreecommitdiffstats
path: root/mount/umount.c
diff options
context:
space:
mode:
authorKarel Zak2011-06-29 09:02:50 +0200
committerKarel Zak2011-06-29 09:02:50 +0200
commit067e9b4934372f72b89b2c0442a3d28290834537 (patch)
treee912560ca947cfe48213591e8c670d47fae36510 /mount/umount.c
parentMerge branch 'wknd23' of git://github.com/kerolasa/lelux-utiliteetit (diff)
downloadkernel-qcow2-util-linux-067e9b4934372f72b89b2c0442a3d28290834537.tar.gz
kernel-qcow2-util-linux-067e9b4934372f72b89b2c0442a3d28290834537.tar.xz
kernel-qcow2-util-linux-067e9b4934372f72b89b2c0442a3d28290834537.zip
mount: first look for mountpoint
# mount <device|dir> The current code looks for a device and then for a mountpoint in /etc/fstab. This is not user friendly solution. People usually use # mount /dir to mount any filesystem. It makes more sense to check for mountpoint and if not found then for device. This is also important for bind mounts, for example if you have in your fstab: /dev/sda1 /mnt/foo auto defaults /mnt/foo /mnt/bar none bind then # mount /mnt/foo should be interpreted as the first entry and /dev/sda1 should be mounted. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=716483 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/umount.c')
0 files changed, 0 insertions, 0 deletions