Whamcloud - gitweb
LU-10801 utils: fix lfs_migrate argument parsing 77/32977/10
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Aug 2018 06:59:10 +0000 (14:59 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2018 15:58:22 +0000 (15:58 +0000)
commitf4cf8114ac2330a1a22bb37e3789f1635db15f7e
tree5705ef019fcab71c946687a3d869a7405b5d0d15
parente5abcf83c0575b8a79594c1eb9ea727739d91522
LU-10801 utils: fix lfs_migrate argument parsing

Since the landing of the following patch, any short options with
adjacent arguments(e.g. -S1M or -E-1) are treated as separate
options(e.g. -S -1 -M or -E -1).
- Lustre-commit: 60c5bc2502591f46260e11db540c0ec2adbc8db8
- Lustre-change: https://review.whamcloud.com/20621

This patch is to fix the broken argument parsing in lfs_migrate.

Change-Id: I99b9518a8f371c2becb6b1fc346b8a14dd02870e
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/32977
Tested-by: Jenkins
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs_migrate.1
lustre/scripts/lfs_migrate
lustre/tests/sanity.sh
lustre/utils/lfs.c