[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] [PATCH] support mount -o move
From: "Kevin P. Fleming" <kpfleming () backtobasicsmgmt ! com>
Date: 2004-04-30 17:44:00
Message-ID: 40929060.3090707 () backtobasicsmgmt ! com
[Download RAW message or body]
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.
["busybox-mount-move.patch" (text/plain)]
--- busybox/util-linux/mount.c Wed Apr 14 10:51:38 2004
+++ busybox-new/util-linux/mount.c Fri Apr 30 10:33:36 2004
@@ -75,6 +75,7 @@
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 @@
{"suid", ~MS_NOSUID, 0},
{"sync", ~0, MS_SYNCHRONOUS},
{"bind", ~0, MS_BIND},
+ {"move", ~0, MS_MOVE},
{0, 0, 0}
};
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic