]> sourceware.org Git - lvm2.git/commitdiff
change --prefixes to --nameprefixes
authorAlasdair Kergon <agk@redhat.com>
Fri, 6 Jun 2008 18:53:08 +0000 (18:53 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 6 Jun 2008 18:53:08 +0000 (18:53 +0000)
WHATS_NEW_DM
tools/dmsetup.c

index c9015aca56523cb90759db098235993f7607e71b..c85ff5087bba3fda842febc3f3bad292d9faa135 100644 (file)
@@ -5,7 +5,7 @@ Version 1.02.26 -
   Make dm_hash_iter safe against deletion.
   Accept a NULL pointer to dm_free silently.
   Add tables_loaded, readonly and suspended columns to reports.
-  Add --prefixes to dmsetup.
+  Add --fieldprefixes to dmsetup.
   Add field name prefix option to reporting functions.
   Calculate string size within dm_pool_grow_object.
 
index 85451a0fc8f3c6ffb20ec7078c493894be5525ac..fdc52e33c5335969cd64abfc4a053c11d4179027 100644 (file)
@@ -114,13 +114,13 @@ enum {
        MAJOR_ARG,
        MINOR_ARG,
        MODE_ARG,
+       NAMEPREFIXES_ARG,
        NOFLUSH_ARG,
        NOHEADINGS_ARG,
        NOLOCKFS_ARG,
        NOOPENCOUNT_ARG,
        NOTABLE_ARG,
        OPTIONS_ARG,
-       PREFIXES_ARG,
        READAHEAD_ARG,
        SEPARATOR_ARG,
        SHOWKEYS_ARG,
@@ -1990,7 +1990,7 @@ static int _report_init(struct command *c)
        if (_switches[UNBUFFERED_ARG])
                buffered = 0;
 
-       if (_switches[PREFIXES_ARG]) {
+       if (_switches[NAMEPREFIXES_ARG]) {
                aligned = 0;
                field_prefixes = 1;
        }
@@ -2119,7 +2119,7 @@ static void _usage(FILE *out)
                "        [-r|--readonly] [--noopencount] [--nolockfs]\n"
                "        [--readahead [+]<sectors>|auto|none]\n"
                "        [-c|-C|--columns] [-o <fields>] [-O|--sort <sort_fields>]\n"
-               "        [--noheadings] [--prefixes] [--separator <separator>]\n\n");
+               "        [--nameprefixes] [--noheadings] [--separator <separator>]\n\n");
        for (i = 0; _commands[i].name; i++)
                fprintf(out, "\t%s %s\n", _commands[i].name, _commands[i].help);
        fprintf(out, "\n<device> may be device name or -u <uuid> or "
@@ -2475,13 +2475,13 @@ static int _process_switches(int *argc, char ***argv, const char *dev_dir)
                {"major", 1, &ind, MAJOR_ARG},
                {"minor", 1, &ind, MINOR_ARG},
                {"mode", 1, &ind, MODE_ARG},
+               {"nameprefixes", 0, &ind, NAMEPREFIXES_ARG},
                {"noflush", 0, &ind, NOFLUSH_ARG},
                {"noheadings", 0, &ind, NOHEADINGS_ARG},
                {"nolockfs", 0, &ind, NOLOCKFS_ARG},
                {"noopencount", 0, &ind, NOOPENCOUNT_ARG},
                {"notable", 0, &ind, NOTABLE_ARG},
                {"options", 1, &ind, OPTIONS_ARG},
-               {"prefixes", 0, &ind, PREFIXES_ARG},
                {"readahead", 1, &ind, READAHEAD_ARG},
                {"separator", 1, &ind, SEPARATOR_ARG},
                {"showkeys", 0, &ind, SHOWKEYS_ARG},
@@ -2608,6 +2608,8 @@ static int _process_switches(int *argc, char ***argv, const char *dev_dir)
                        _switches[TARGET_ARG]++;
                        _target = optarg;
                }
+               if ((ind == NAMEPREFIXES_ARG))
+                       _switches[NAMEPREFIXES_ARG]++;
                if ((ind == NOFLUSH_ARG))
                        _switches[NOFLUSH_ARG]++;
                if ((ind == NOHEADINGS_ARG))
@@ -2616,8 +2618,6 @@ static int _process_switches(int *argc, char ***argv, const char *dev_dir)
                        _switches[NOLOCKFS_ARG]++;
                if ((ind == NOOPENCOUNT_ARG))
                        _switches[NOOPENCOUNT_ARG]++;
-               if ((ind == PREFIXES_ARG))
-                       _switches[PREFIXES_ARG]++;
                if ((ind == READAHEAD_ARG)) {
                        _switches[READAHEAD_ARG]++;
                        if (!strcasecmp(optarg, "auto"))
This page took 0.046505 seconds and 5 git commands to generate.