[multipath] Fix -F appearing twice in the multipath -h output
authorChristophe Varoqui <root@xa-s05.(none)>
Fri, 21 Oct 2005 09:49:19 +0000 (11:49 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Fri, 21 Oct 2005 09:49:19 +0000 (11:49 +0200)
multipath -h shows 2 options using "-F", where only one of them should be using
-F and another -f. Redhat Bugzilla #171366.

B. Nocera, Redhat

multipath/main.c

index d1dcbe2..15d6f1f 100644 (file)
@@ -839,7 +839,7 @@ usage (char * progname)
                "\t-d\t\tdry run, do not create or update devmaps\n" \
                "\t-l\t\tshow multipath topology (sysfs and DM info)\n" \
                "\t-ll\t\tshow multipath topology (maximum info)\n" \
-               "\t-F\t\tflush a multipath device map\n" \
+               "\t-f\t\tflush a multipath device map\n" \
                "\t-F\t\tflush all multipath device maps\n" \
                "\t-p policy\tforce all maps to specified policy :\n" \
                "\t   failover\t\t1 path per priority group\n" \
@@ -1084,10 +1084,10 @@ main (int argc, char *argv[])
                        conf->dry_run = 1;
                        break;
                case 'f':
-                       conf->remove = 1;
+                       conf->remove = FLUSH_ONE;
                        break;
                case 'F':
-                       conf->remove = 2;
+                       conf->remove = FLUSH_ALL;
                        break;
                case 'l':
                        conf->list = 1;