From 14c9b680965eede7e95aa8b5934be0b686685c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Thu, 26 Jun 2014 13:05:16 +0200 Subject: [PATCH] fallocate: clarify usage() Signed-off-by: Karel Zak --- sys-utils/fallocate.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index 512757f70..91dee410b 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -77,18 +77,20 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fprintf(out, _(" %s [options] \n"), program_invocation_short_name); fputs(USAGE_OPTIONS, out); - fputs(_(" -c, --collapse-range collapse space in the file\n"), out); - fputs(_(" -d, --dig-holes detect and dig holes\n"), out); - fputs(_(" -l, --length length of the (de)allocation, in bytes\n"), out); - fputs(_(" -n, --keep-size don't modify the length of the file\n"), out); - fputs(_(" -o, --offset offset of the (de)allocation, in bytes\n"), out); - fputs(_(" -p, --punch-hole punch holes in the file (implies --keep-size)\n"), out); - fputs(_(" -z, --zero-range zeroes a range in the file\n"), out); + + fputs(_(" -c, --collapse-range remove a range from the file\n"), out); + fputs(_(" -d, --dig-holes detect zeroes and replace with holes\n"), out); + fputs(_(" -l, --length length for range operations, in bytes\n"), out); + fputs(_(" -n, --keep-size maintain the apparent size of the file\n"), out); + fputs(_(" -o, --offset offset for range operations, in bytes\n"), out); + fputs(_(" -p, --punch-hole replace a range with a hole (implies -n)\n"), out); + fputs(_(" -z, --zero-range zero and ensure allocation of a range\n"), out); fputs(_(" -v, --verbose verbose mode\n"), out); fputs(USAGE_SEPARATOR, out); fputs(USAGE_HELP, out); fputs(USAGE_VERSION, out); + fprintf(out, USAGE_MAN_TAIL("fallocate(1)")); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); -- 2.26.2