diff options
author | Benno Schulenberg | 2011-08-15 13:09:42 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-16 10:16:35 +0200 |
commit | eaca47f7c697233225beeb55b0e6d96c90fe4fde (patch) | |
tree | 538d0b3e844f31f4779f838b22090f1d000ed0f5 /libmount/samples/mount.c | |
parent | po: do not search /samples/ subdirectories for translatable strings (diff) | |
download | kernel-qcow2-util-linux-eaca47f7c697233225beeb55b0e6d96c90fe4fde.tar.gz kernel-qcow2-util-linux-eaca47f7c697233225beeb55b0e6d96c90fe4fde.tar.xz kernel-qcow2-util-linux-eaca47f7c697233225beeb55b0e6d96c90fe4fde.zip |
libmount: cut up mount's help text into manageable chunks
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'libmount/samples/mount.c')
-rw-r--r-- | libmount/samples/mount.c | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/libmount/samples/mount.c b/libmount/samples/mount.c index 30c2610ed..891c471ed 100644 --- a/libmount/samples/mount.c +++ b/libmount/samples/mount.c @@ -202,43 +202,50 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fprintf(out, _( "\nOptions:\n" " -a, --all mount all filesystems mentioned in fstab\n" - " -f, --fake dry run, skip mount(2) syscall\n" - " -F, --fork fork off for each device (use with -a)\n" - " -h, --help this help\n" - " -n, --no-mtab don't write to /etc/mtab\n" - " -r, --read-only mount the filesystem read-only (same as -o ro)\n" - " -v, --verbose verbose mode\n" - " -V, --version print version string\n" - " -w, --read-write mount the filesystem read-write (default)\n" - " -o, --options <list> comma separated string of mount options\n" - " -O, --test-opts <list> limit the set of filesystems (use with -a)\n" - " -t, --types <list> indicate the filesystem type\n" " -c, --no-canonicalize don't canonicalize paths\n" + " -f, --fake dry run; skip the mount(2) syscall\n" + " -F, --fork fork off for each device (use with -a)\n")); + fprintf(out, _( + " -h, --help display this help text and exit\n" " -i, --internal-only don't call the mount.<type> helpers\n" " -l, --show-labels lists all mounts with LABELs\n" + " -n, --no-mtab don't write to /etc/mtab\n")); + fprintf(out, _( + " -o, --options <list> comma-separated list of mount options\n" + " -O, --test-opts <list> limit the set of filesystems (use with -a)\n" + " -r, --read-only mount the filesystem read-only (same as -o ro)\n" + " -t, --types <list> limit the set of filesystem types\n")); + fprintf(out, _( + " -v, --verbose say what is being done\n" + " -V, --version display version information and exit\n" + " -w, --read-write mount the filesystem read-write (default)\n")); + fprintf(out, _( "\nSource:\n" " -L, --label <label> synonym for LABEL=<label>\n" " -U, --uuid <uuid> synonym for UUID=<uuid>\n" " LABEL=<label> specifies device by filesystem label\n" - " UUID=<uuid> specifies device by filesystem UUID\n" + " UUID=<uuid> specifies device by filesystem UUID\n")); + fprintf(out, _( " <device> specifies device by path\n" " <directory> mountpoint for bind mounts (see --bind/rbind)\n" - " <file> regular file for loopdev setup\n" + " <file> regular file for loopdev setup\n")); + fprintf(out, _( "\nOperations:\n" " -B, --bind mount a subtree somewhere else (same as -o bind)\n" " -M, --move move a subtree to some other place\n" - " -R, --rbind mount a subtree and all submounts somewhere else\n" + " -R, --rbind mount a subtree and all submounts somewhere else\n")); + fprintf(out, _( " --make-shared mark a subtree as shared\n" " --make-slave mark a subtree as slave\n" " --make-private mark a subtree as private\n" - " --make-unbindable mark a subtree as unbindable\n" + " --make-unbindable mark a subtree as unbindable\n")); + fprintf(out, _( " --make-rshared recursively mark a whole subtree as shared\n" " --make-rslave recursively mark a whole subtree as slave\n" " --make-rprivate recursively mark a whole subtree as private\n" - " --make-runbindable recursively mark a whole subtree as unbindable\n" - )); + " --make-runbindable recursively mark a whole subtree as unbindable\n")); fprintf(out, _("\nFor more information see mount(8).\n")); |