From 86af052d250727fd3203bad7e46790b1ba33a551 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 26 May 2004 21:26:07 +0000 Subject: 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. --- util-linux/mount.c | 2 ++ 1 file changed, 2 insertions(+) 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 { MS_NOATIME = 1024, /* Do not update access times. */ MS_NODIRATIME = 2048, /* Do not update directory access times */ MS_BIND = 4096, /* Use the new linux 2.4.x "mount --bind" feature */ + MS_MOVE = 8192, /* Use the new linux 2.4.x "mount --move" feature */ }; @@ -117,6 +118,7 @@ static const struct mount_options mount_options[] = { {"suid", ~MS_NOSUID, 0}, {"sync", ~0, MS_SYNCHRONOUS}, {"bind", ~0, MS_BIND}, + {"move", ~0, MS_MOVE}, {0, 0, 0} }; -- cgit v1.2.3