Whamcloud - gitweb
EX-9708 utils: lfs setstripe adds -E with -Z
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 30 May 2024 17:04:27 +0000 (11:04 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 6 Jun 2024 08:16:18 +0000 (08:16 +0000)
commitf50f99c4d6078c373532f3ecd5dd2da794739d40
tree485a6c8aef3699a56f360d2fe7b9a1c8dafa852b
parent6fb1e4dce8b14658615f749fa6332940fe841f72
EX-9708 utils: lfs setstripe adds -E with -Z

When specifying a layout with "lfs setstripe -Z" it will ignore
this option if no PFL component is specified with "-E".

Instead, "lfs setstripe -Z" should automatically upgrade the file
layout to a PFL layout so the compression parameters are saved.

Test-Parameters: trivial testlist=sanity-compr
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I29cc373fabd352d6f8b6781c238806b75cce7057
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55264
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
lustre/tests/sanity-compr.sh
lustre/utils/lfs.c