From: Frank Zago Date: Fri, 7 Nov 2014 21:15:15 +0000 (-0600) Subject: LU-2445 lfs: fixed support for lfs migrate -b X-Git-Tag: 2.6.94~32 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=04cc64d30160bd424f7ff151592b43ed0e68571c LU-2445 lfs: fixed support for lfs migrate -b -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 Reviewed-on: http://review.whamcloud.com/12627 Reviewed-by: John L. Hammond Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 3c41251..4ab76a3 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -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: