Whamcloud - gitweb
LU-13703 utils: fix lfs_migrate with PFL arguments 45/39145/21
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 17 Jun 2020 10:14:39 +0000 (04:14 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Feb 2023 06:49:59 +0000 (06:49 +0000)
commit28597c233c980f53732ab7628c2ec38efbff5364
tree6864bbcb5ef25210e3725583d960c71dae8d492d
parent1be889a5bc713ab8db6c3d2cbf83aef8df813293
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.

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/fs/lustre-release/+/39145
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/lfs_migrate
lustre/tests/sanity.sh