diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-04-11 05:29:49 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-11 05:29:49 +0400 |
commit | 5bc8c005a8e15c43285bc595a8d404de67a482ac (patch) | |
tree | 98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /util-linux/mount.c | |
parent | 73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff) |
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r-- | util-linux/mount.c | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 722d0be92..3e2ba1fab 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -16,6 +16,66 @@ // singlemount() can loop through /etc/filesystems for fstype detection. // mount_it_now() does the actual mount. // + +//usage:#define mount_trivial_usage +//usage: "[OPTIONS] [-o OPTS] DEVICE NODE" +//usage:#define mount_full_usage "\n\n" +//usage: "Mount a filesystem. Filesystem autodetection requires /proc.\n" +//usage: "\nOptions:" +//usage: "\n -a Mount all filesystems in fstab" +//usage: IF_FEATURE_MOUNT_FAKE( +//usage: IF_FEATURE_MTAB_SUPPORT( +//usage: "\n -f Update /etc/mtab, but don't mount" +//usage: ) +//usage: IF_NOT_FEATURE_MTAB_SUPPORT( +//usage: "\n -f Dry run" +//usage: ) +//usage: ) +//usage: IF_FEATURE_MOUNT_HELPERS( +//usage: "\n -i Don't run mount helper" +//usage: ) +//usage: IF_FEATURE_MTAB_SUPPORT( +//usage: "\n -n Don't update /etc/mtab" +//usage: ) +//usage: "\n -r Read-only mount" +//usage: "\n -w Read-write mount (default)" +//usage: "\n -t FSTYPE Filesystem type" +//usage: "\n -O OPT Mount only filesystems with option OPT (-a only)" +//usage: "\n-o OPT:" +//usage: IF_FEATURE_MOUNT_LOOP( +//usage: "\n loop Ignored (loop devices are autodetected)" +//usage: ) +//usage: IF_FEATURE_MOUNT_FLAGS( +//usage: "\n [a]sync Writes are [a]synchronous" +//usage: "\n [no]atime Disable/enable updates to inode access times" +//usage: "\n [no]diratime Disable/enable atime updates to directories" +//usage: "\n [no]relatime Disable/enable atime updates relative to modification time" +//usage: "\n [no]dev (Dis)allow use of special device files" +//usage: "\n [no]exec (Dis)allow use of executable files" +//usage: "\n [no]suid (Dis)allow set-user-id-root programs" +//usage: "\n [r]shared Convert [recursively] to a shared subtree" +//usage: "\n [r]slave Convert [recursively] to a slave subtree" +//usage: "\n [r]private Convert [recursively] to a private subtree" +//usage: "\n [un]bindable Make mount point [un]able to be bind mounted" +//usage: "\n [r]bind Bind a file or directory [recursively] to another location" +//usage: "\n move Relocate an existing mount point" +//usage: ) +//usage: "\n remount Remount a mounted filesystem, changing flags" +//usage: "\n ro/rw Same as -r/-w" +//usage: "\n" +//usage: "\nThere are filesystem-specific -o flags." +//usage: +//usage:#define mount_example_usage +//usage: "$ mount\n" +//usage: "/dev/hda3 on / type minix (rw)\n" +//usage: "proc on /proc type proc (rw)\n" +//usage: "devpts on /dev/pts type devpts (rw)\n" +//usage: "$ mount /dev/fd0 /mnt -t msdos -o ro\n" +//usage: "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" +//usage: "$ mount cd_image.iso mydir\n" +//usage:#define mount_notes_usage +//usage: "Returns 0 for success, number of failed mounts for -a, or errno for one mount." + #include <mntent.h> #include <syslog.h> #include <sys/mount.h> |