Whamcloud - gitweb
LU-2445 lfs: fixed support for lfs migrate -b 27/12627/4
authorFrank Zago <fzago@cray.com>
Fri, 7 Nov 2014 21:15:15 +0000 (15:15 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Feb 2015 18:07:53 +0000 (18:07 +0000)
-b is the short alias for --block to the lfs migrate command, but
wasn't set in the call to getopt_long().

Change-Id: Ie7397b994a34de71b9978cf51b55961b4c9ded69
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/12627
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/utils/lfs.c

index 3c41251..4ab76a3 100644 (file)
@@ -733,7 +733,7 @@ static int lfs_setstripe(int argc, char **argv)
        if (strcmp(argv[0], "migrate") == 0)
                migrate_mode = true;
 
-       while ((c = getopt_long(argc, argv, "c:di:o:p:s:S:",
+       while ((c = getopt_long(argc, argv, "bc:di:o:p:s:S:",
                                long_opts, NULL)) >= 0) {
                switch (c) {
                case 0: