Whamcloud - gitweb
EX-8282 lfs: migrate compressed file without stripe info
authorBobi Jam <bobijam@whamcloud.com>
Wed, 8 Nov 2023 10:41:21 +0000 (18:41 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 24 Nov 2023 09:30:42 +0000 (09:30 +0000)
commita05cf709f70d8fb4961cae843aa8b5226b7eb421
tree0108d096c57985b56ed1a5ec436581d790955388
parentdda46f422e6beb2e2fc504fe323261455a652c5e
EX-8282 lfs: migrate compressed file without stripe info

lfs migrate file without specifying stripe info will get layout info
from the file as the target layout template, and
llapi_layout_get_by_xattr() tries to convert LOV_PATTERN_* values
to user scope LLAPI_LAYOUT_* values, while LOV_PATTERN_COMPRESS
is missed in this conversion.

This patch add a function llapi_pattern_from_lov() to handle this
conversion specifically.

This patch also add more error messages for llapi_layout_file_open().

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I49a43cc7761cd2baed7a5da7d4e7cff2152ff9bb
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53039
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lfs-mirror-extend.1
lustre/include/lustre/lustreapi.h
lustre/tests/sanity-pfl.sh
lustre/utils/liblustreapi_layout.c