diff options
author | Roman Borisov <ext-roman.borisov@nokia.com> | 2011-03-24 15:08:43 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-26 23:12:12 +0100 |
commit | 19311bfa7b8e8c6effa9c375de9b0eb4338bee12 (patch) | |
tree | 9a06cc9213b84a155457f46183069c7de26174c5 | |
parent | d3679d2491fa85e98db3bf397d5330ddcb9fc98a (diff) | |
download | busybox-w32-19311bfa7b8e8c6effa9c375de9b0eb4338bee12.tar.gz busybox-w32-19311bfa7b8e8c6effa9c375de9b0eb4338bee12.tar.bz2 busybox-w32-19311bfa7b8e8c6effa9c375de9b0eb4338bee12.zip |
mount: add --rbind option support
Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/usage.src.h | 2 | ||||
-rw-r--r-- | util-linux/mount.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index 29f7b2110..d07b408a6 100644 --- a/include/usage.src.h +++ b/include/usage.src.h | |||
@@ -2482,7 +2482,7 @@ INSERT | |||
2482 | "\n [r]slave Convert [recursively] to a slave subtree" \ | 2482 | "\n [r]slave Convert [recursively] to a slave subtree" \ |
2483 | "\n [r]private Convert [recursively] to a private subtree" \ | 2483 | "\n [r]private Convert [recursively] to a private subtree" \ |
2484 | "\n [un]bindable Make mount point [un]able to be bind mounted" \ | 2484 | "\n [un]bindable Make mount point [un]able to be bind mounted" \ |
2485 | "\n bind Bind a file or directory to another location" \ | 2485 | "\n [r]bind Bind a file or directory [recursively] to another location" \ |
2486 | "\n move Relocate an existing mount point" \ | 2486 | "\n move Relocate an existing mount point" \ |
2487 | ) \ | 2487 | ) \ |
2488 | "\n remount Remount a mounted filesystem, changing flags" \ | 2488 | "\n remount Remount a mounted filesystem, changing flags" \ |
diff --git a/util-linux/mount.c b/util-linux/mount.c index e672a73f4..722d0be92 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -181,6 +181,7 @@ static const int32_t mount_options[] = { | |||
181 | /* "relatime" */ MS_RELATIME, | 181 | /* "relatime" */ MS_RELATIME, |
182 | /* "norelatime" */ ~MS_RELATIME, | 182 | /* "norelatime" */ ~MS_RELATIME, |
183 | /* "loud" */ ~MS_SILENT, | 183 | /* "loud" */ ~MS_SILENT, |
184 | /* "rbind" */ MS_BIND|MS_RECURSIVE, | ||
184 | 185 | ||
185 | // action flags | 186 | // action flags |
186 | /* "union" */ MS_UNION, | 187 | /* "union" */ MS_UNION, |
@@ -236,6 +237,7 @@ static const char mount_option_str[] = | |||
236 | "relatime\0" | 237 | "relatime\0" |
237 | "norelatime\0" | 238 | "norelatime\0" |
238 | "loud\0" | 239 | "loud\0" |
240 | "rbind\0" | ||
239 | 241 | ||
240 | // action flags | 242 | // action flags |
241 | "union\0" | 243 | "union\0" |