Whamcloud - gitweb
LU-13693 lfs: avoid opening regular files for getstripe 79/38979/3
authorJohn L. Hammond <jhammond@whamcloud.com>
Thu, 18 Jun 2020 15:16:52 +0000 (10:16 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Jun 2020 08:12:49 +0000 (08:12 +0000)
commit3eff6bada2bc789fe6089e792e4043ef7ec8396f
tree579b5de4bf4d53e97db7fc74e318fd34db372ff5
parent5eabb3dadcad5d86ff41417a9ae186b62b6c4d76
LU-13693 lfs: avoid opening regular files for getstripe

In get_mds_md_size() just return a large enough size for all striping
attributes. This saves lfs getstripe from opening the file which was
interfering with leases used for mirroring.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ia45eb8f6aa942507a55965afccbc28375788dff2
Reviewed-on: https://review.whamcloud.com/38979
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c