diff options
author | Rob Landley <rob@landley.net> | 2006-08-09 20:55:35 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-09 20:55:35 +0000 |
commit | e55a73c7a89d9437bda82d317ee980989a5949db (patch) | |
tree | cb5818cb1c38d67533b046d34159465e0a591d78 | |
parent | 3ba7bd143ea906a6c00b96136f70d3b1cf24d63c (diff) | |
download | busybox-w32-e55a73c7a89d9437bda82d317ee980989a5949db.tar.gz busybox-w32-e55a73c7a89d9437bda82d317ee980989a5949db.tar.bz2 busybox-w32-e55a73c7a89d9437bda82d317ee980989a5949db.zip |
Update usage to talk about the new shared subtree stuff in mount.
-rw-r--r-- | include/usage.h | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/include/usage.h b/include/usage.h index 622c9c4d7..5bc82dc22 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2006,25 +2006,15 @@ USE_FEATURE_MDEV_CONFIG( \ | |||
2006 | #define more_example_usage \ | 2006 | #define more_example_usage \ |
2007 | "$ dmesg | more\n" | 2007 | "$ dmesg | more\n" |
2008 | 2008 | ||
2009 | #ifdef CONFIG_FEATURE_MOUNT_LOOP | ||
2010 | # define USAGE_MOUNT_LOOP(a) a | ||
2011 | #else | ||
2012 | # define USAGE_MOUNT_LOOP(a) | ||
2013 | #endif | ||
2014 | #ifdef CONFIG_FEATURE_MTAB_SUPPORT | ||
2015 | # define USAGE_MTAB(a) a | ||
2016 | #else | ||
2017 | # define USAGE_MTAB(a) | ||
2018 | #endif | ||
2019 | #define mount_trivial_usage \ | 2009 | #define mount_trivial_usage \ |
2020 | "[flags] DEVICE NODE [-o options,more-options]" | 2010 | "[flags] DEVICE NODE [-o options,more-options]" |
2021 | #define mount_full_usage \ | 2011 | #define mount_full_usage \ |
2022 | "Mount a filesystem. Filesystem autodetection requires /proc be mounted.\n\n" \ | 2012 | "Mount a filesystem. Filesystem autodetection requires /proc be mounted.\n\n" \ |
2023 | "Flags:\n" \ | 2013 | "Flags:\n" \ |
2024 | "\t-a:\t\tMount all filesystems in fstab\n" \ | 2014 | "\t-a:\t\tMount all filesystems in fstab\n" \ |
2025 | USAGE_MTAB( \ | 2015 | USE_FEATURE_MTAB_SUPPORT( \ |
2026 | "\t-f:\t\t\"Fake\" Add entry to mount table but don't mount it\n" \ | 2016 | "\t-f:\t\t\"Fake\" Add entry to mount table but don't mount it\n" \ |
2027 | "\t-n:\t\tDon't write a mount table entry\n" \ | 2017 | "\t-n:\t\tDon't write a mount table entry\n" \ |
2028 | ) \ | 2018 | ) \ |
2029 | "\t-o option:\tOne of many filesystem options, listed below\n" \ | 2019 | "\t-o option:\tOne of many filesystem options, listed below\n" \ |
2030 | "\t-r:\t\tMount the filesystem read-only\n" \ | 2020 | "\t-r:\t\tMount the filesystem read-only\n" \ |
@@ -2032,18 +2022,25 @@ USE_FEATURE_MDEV_CONFIG( \ | |||
2032 | "\t-w:\t\tMount for reading and writing (default)\n" \ | 2022 | "\t-w:\t\tMount for reading and writing (default)\n" \ |
2033 | "\n" \ | 2023 | "\n" \ |
2034 | "Options for use with the \"-o\" flag:\n" \ | 2024 | "Options for use with the \"-o\" flag:\n" \ |
2035 | "\tasync/sync:\tWrites are asynchronous / synchronous\n" \ | 2025 | USE_FEATURE_MOUNT_LOOP( \ |
2036 | "\tatime/noatime:\tEnable / disable updates to inode access times\n" \ | 2026 | "\tloop:\t\tIgnored (loop devices are autodetected)\n" \ |
2037 | "\tdev/nodev:\tAllow use of special device files / disallow them\n" \ | 2027 | ) \ |
2038 | "\texec/noexec:\tAllow use of executable files / disallow them\n" \ | 2028 | USE_FEATURE_MOUNT_FLAGS( \ |
2039 | USAGE_MOUNT_LOOP( \ | 2029 | "\t[a]sync:\tWrites are asynchronous / synchronous\n" \ |
2040 | "\tloop:\t\t Ignored (loop devices are autodetected)\n" \ | 2030 | "\t[no]atime:\tDisable / enable updates to inode access times\n" \ |
2031 | "\t[no]diratime:\tDisable / enable atime updates to directories\n" \ | ||
2032 | "\t[no]dev:\tAllow use of special device files / disallow them\n" \ | ||
2033 | "\t[no]exec:\tAllow use of executable files / disallow them\n" \ | ||
2034 | "\t[no]suid:\tAllow set-user-id-root programs / disallow them\n" \ | ||
2035 | "\t[r]shared:\tConvert [recursively] to a shared subtree.\n" \ | ||
2036 | "\t[r]slave:\tConvert [recursively] to a slave subtree.\n" \ | ||
2037 | "\t[r]private:\tConvert [recursively] to a private subtree\n" \ | ||
2038 | "\t[un]bindable:\tMake mount point [un]able to be bind mounted.\n" \ | ||
2039 | "\tbind:\t\tBind a directory to an additional location\n" \ | ||
2040 | "\tmove:\t\tRelocate an existing mount point.\n" \ | ||
2041 | ) \ | 2041 | ) \ |
2042 | "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them\n" \ | ||
2043 | "\tremount:\tRe-mount a mounted filesystem, changing its flags\n" \ | 2042 | "\tremount:\tRe-mount a mounted filesystem, changing its flags\n" \ |
2044 | "\tro/rw:\t\tMount for read-only / read-write\n" \ | 2043 | "\tro/rw:\t\tMount for read-only / read-write\n" \ |
2045 | "\tbind:\t\tBind a directory to an additional location\n" \ | ||
2046 | "\tmove:\t\tRelocate an existing mount point.\n" \ | ||
2047 | "\nThere are EVEN MORE flags that are specific to each filesystem\n" \ | 2044 | "\nThere are EVEN MORE flags that are specific to each filesystem\n" \ |
2048 | "You'll have to see the written documentation for those filesystems" | 2045 | "You'll have to see the written documentation for those filesystems" |
2049 | #define mount_example_usage \ | 2046 | #define mount_example_usage \ |
@@ -3214,21 +3211,16 @@ USE_FEATURE_START_STOP_DAEMON_FANCY( \ | |||
3214 | #define udhcpd_full_usage \ | 3211 | #define udhcpd_full_usage \ |
3215 | "" | 3212 | "" |
3216 | 3213 | ||
3217 | #ifdef CONFIG_FEATURE_MOUNT_FORCE | ||
3218 | # define USAGE_MOUNT_FORCE(a) a | ||
3219 | #else | ||
3220 | # define USAGE_MOUNT_FORCE(a) | ||
3221 | #endif | ||
3222 | #define umount_trivial_usage \ | 3214 | #define umount_trivial_usage \ |
3223 | "[flags] FILESYSTEM|DIRECTORY" | 3215 | "[flags] FILESYSTEM|DIRECTORY" |
3224 | #define umount_full_usage \ | 3216 | #define umount_full_usage \ |
3225 | "Unmount file systems\n" \ | 3217 | "Unmount file systems\n" \ |
3226 | "\nFlags:\n" "\t-a\tUnmount all file systems" \ | 3218 | "\nFlags:\n" "\t-a\tUnmount all file systems" \ |
3227 | USAGE_MTAB(" in /etc/mtab\n\t-n\tDon't erase /etc/mtab entries") \ | 3219 | USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab\n\t-n\tDon't erase /etc/mtab entries") \ |
3228 | "\n\t-r\tTry to remount devices as read-only if mount is busy" \ | 3220 | "\n\t-r\tTry to remount devices as read-only if mount is busy" \ |
3229 | "\n\t-l\tLazy umount (detach filesystem)" \ | 3221 | "\n\t-l\tLazy umount (detach filesystem)" \ |
3230 | "\n\t-f\tForce umount (i.e., unreachable NFS server)" \ | 3222 | "\n\t-f\tForce umount (i.e., unreachable NFS server)" \ |
3231 | USAGE_MOUNT_LOOP("\n\t-D\tDo not free loop device (if a loop device has been used)") | 3223 | USE_FEATURE_MOUNT_LOOP("\n\t-D\tDo not free loop device (if a loop device has been used)") |
3232 | #define umount_example_usage \ | 3224 | #define umount_example_usage \ |
3233 | "$ umount /dev/hdc1 \n" | 3225 | "$ umount /dev/hdc1 \n" |
3234 | 3226 | ||