summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-05-26 21:26:07 +0000
committerEric Andersen <andersen@codepoet.org>2004-05-26 21:26:07 +0000
commit86af052d250727fd3203bad7e46790b1ba33a551 (patch)
treead61646e97a8cfcff063d7e57b80d601adee0ddd /util-linux/mount.c
parent2c1f1bc7f61b1e62ca54450e8483806858b7dd7f (diff)
downloadbusybox-w32-86af052d250727fd3203bad7e46790b1ba33a551.tar.gz
busybox-w32-86af052d250727fd3203bad7e46790b1ba33a551.tar.bz2
busybox-w32-86af052d250727fd3203bad7e46790b1ba33a551.zip
Kevin P. Fleming writes:
Yes, I know busybox is in feature freeze. If this two-liner is too much that's fine, but it's handy. This patch allows busybox mount to support "-o move" just like it supports "-o bind", which is the equivalent of util-linux "mount --move". Usage is: mount -o move /mnt/point/1 /mnt/point/2 where /mnt/point/1 is an already mounted filesystem; it will be moved to /mnt/point/2.
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 35fd30323..0bc46ecb5 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -75,6 +75,7 @@ enum {
75 MS_NOATIME = 1024, /* Do not update access times. */ 75 MS_NOATIME = 1024, /* Do not update access times. */
76 MS_NODIRATIME = 2048, /* Do not update directory access times */ 76 MS_NODIRATIME = 2048, /* Do not update directory access times */
77 MS_BIND = 4096, /* Use the new linux 2.4.x "mount --bind" feature */ 77 MS_BIND = 4096, /* Use the new linux 2.4.x "mount --bind" feature */
78 MS_MOVE = 8192, /* Use the new linux 2.4.x "mount --move" feature */
78}; 79};
79 80
80 81
@@ -117,6 +118,7 @@ static const struct mount_options mount_options[] = {
117 {"suid", ~MS_NOSUID, 0}, 118 {"suid", ~MS_NOSUID, 0},
118 {"sync", ~0, MS_SYNCHRONOUS}, 119 {"sync", ~0, MS_SYNCHRONOUS},
119 {"bind", ~0, MS_BIND}, 120 {"bind", ~0, MS_BIND},
121 {"move", ~0, MS_MOVE},
120 {0, 0, 0} 122 {0, 0, 0}
121}; 123};
122 124