diff options
author | maximilian attems | 2008-07-25 09:29:25 +0200 |
---|---|---|
committer | Karel Zak | 2008-07-29 13:20:03 +0200 |
commit | 6a99c0b286384c98a012620a94fbc50a7c1adcbb (patch) | |
tree | a5ce0a838cec3707b30a9ec5d3f4261ca9082a70 /mount/mount.8 | |
parent | mount: add info about tz=UTC option for FAT to mount.8 (diff) | |
download | kernel-qcow2-util-linux-6a99c0b286384c98a012620a94fbc50a7c1adcbb.tar.gz kernel-qcow2-util-linux-6a99c0b286384c98a012620a94fbc50a7c1adcbb.tar.xz kernel-qcow2-util-linux-6a99c0b286384c98a012620a94fbc50a7c1adcbb.zip |
mount: add shortoptions for bind, move and rbind
Reserving uppercase letters for mount operations:
--move | -M
--bind | -B
--rbind | -R
Add lowercase for the most needed mount operation that happen
in initramfs: mount -M /sys /root/sys
Note, we still have shared-subtree operations (--make-{slave,private,...})
without short options.
[kzak@redhat.com: minor change in mount.8]
Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/mount.8')
-rw-r--r-- | mount/mount.8 | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/mount/mount.8 b/mount/mount.8 index 524ed28cc..7487923d0 100644 --- a/mount/mount.8 +++ b/mount/mount.8 @@ -108,6 +108,11 @@ file hierarchy somewhere else. The call is .br .B "mount --bind olddir newdir" .RE +or shortoption +.RS +.br +.B "mount -B olddir newdir" +.RE or fstab entry is: .RS .br @@ -123,6 +128,11 @@ a second place using .br .B "mount --rbind olddir newdir" .RE +or shortoption +.RS +.br +.B "mount -R olddir newdir" +.RE .\" available since Linux 2.4.11. Note that the filesystem mount options will remain the same as those @@ -135,6 +145,11 @@ to another place. The call is .br .B "mount --move olddir newdir" .RE +or shortoption +.RS +.br +.B "mount -M olddir newdir" +.RE Since Linux 2.6.15 it is possible to mark a mount and its submounts as shared, private, slave or unbindable. A shared mount provides ability to create mirrors @@ -787,11 +802,15 @@ For more details see .BR selinux (8) .RE .TP -.B \-\-bind +.B \-B, \-\-bind Remount a subtree somewhere else (so that its contents are available in both places). See above. .TP -.B \-\-move +.B \-R, \-\-rbind +Remount a subtree and all possible submounts somewhere else (so that its +contents are available in both places). See above. +.TP +.B \-M, \-\-move Move a subtree to some other place. See above. .SH "FILESYSTEM SPECIFIC MOUNT OPTIONS" |