Whamcloud - gitweb
LU-13703 utils: fix lfs_migrate with PFL arguments
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 17 Jun 2020 10:14:39 +0000 (04:14 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 14 Feb 2023 19:11:19 +0000 (19:11 +0000)
commit37f53b3c1a41cb34c92087a2e62483e23d6dd680
treec1f98378ef8e836c5db399e789c997d1d8007661
parentf1b53ee68a27c8500ddd8e3b4d0f5fdf75482543
LU-13703 utils: fix lfs_migrate with PFL arguments

Pass the '-c', '-S', and '--pool' options to "lfs migrate" when
they are part of a PFL component (after -E), rather than using
them to set the stripe_count and stripe_size of the whole file.

This precludes using '-A' and '-R' with explicitly specified PFL
file layouts, but that didn't make sense in the first place.

Fix the handling of "--pool <pool>" to use "-p <pool>" since
the script later only strips "-p " from the pool name.

Lustre-change: https://review.whamcloud.com/39145
Lustre-commit: 28597c233c980f53732ab7628c2ec38efbff5364

Test-Parameters: trivial
Fixes: 60c5bc25025 ("LU-8235 scripts: pass unrecognized options to lfs migrate")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib7fb6e08d81dbae77e8348fc5f09837c612540e5
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49868
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/scripts/lfs_migrate
lustre/tests/sanity.sh