Whamcloud - gitweb
LU-14136 utils: correct error message in lfs mirror extend 31/40631/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Thu, 12 Nov 2020 16:13:33 +0000 (10:13 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 26 Nov 2020 09:27:03 +0000 (09:27 +0000)
commit2982978eb97e0607dfba319fcb2ef94d2cb8807a
tree36e1f25e749924565fac01a3f8c7ba8896f594f5
parente1bd38e27a810bad7a25813ebc1ca0535c9d7228
LU-14136 utils: correct error message in lfs mirror extend

In migrate_open_files(), use llapi_layout_file_open() instead of
lfs_component_create() to avoid printing a confusing error message and
to ensure that the type of error is correctly propagated.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I31ebf29771b1a3e0b106a0a246a260a82eed92a4
Reviewed-on: https://review.whamcloud.com/40631
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/lfs.c