From 04cc64d30160bd424f7ff151592b43ed0e68571c Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Fri, 7 Nov 2014 15:15:15 -0600 Subject: [PATCH] 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 --- lustre/utils/lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 1.8.3.1