]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount: (new) add --source and --target
authorKarel Zak <kzak@redhat.com>
Tue, 17 Jul 2012 20:02:35 +0000 (22:02 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jul 2012 20:02:35 +0000 (22:02 +0200)
commitaedeaa40d1cf5eb687a575b322a09a9a48ced623
treeb7dba13be34a5afaa13486f524e11fcaaabea1f6
parente39cbb76033e689093da42453839afa9c8d4c8e5
mount: (new) add --source and --target

In some cases (for example if only one mount argument is given) may be
mount request ambivalent:

# mount /foo

and fstab:

/dev/sda5 /foo rw 0 0
/foo /bar bind 0 0

the new options allows to be more explicit

        # mount --target /foo (mounts /dev/sda5)

# mount --source /foo (binds /foo to /bar)

It's possible to use the options together

# mount --source /dev/sda2 --target /home

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8
sys-utils/mount.c