Whamcloud - gitweb
LU-11380 llite: zero lum for stripeless files 72/33172/3
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 14 Sep 2018 20:49:37 +0000 (15:49 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 5 Oct 2018 22:27:38 +0000 (22:27 +0000)
commitfab95b4345db3c9e4108e06a76c14bcda575e24e
tree2b54cd8a220ad1403740a3d421c69a6d285b11df
parent239290c299fb875dcd1ac652d73b875ec9d07335
LU-11380 llite: zero lum for stripeless files

In the IOC_MDC_GETFILEINFO/LL_IOC_MDC_GETINFO case of ll_dir_ioctl(),
if the file has no striping then zero out the lum buffer so that
userspace won't be confused by garbage.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I4574b8bfdee122ec1ac571ae3714026c6fa0a7f0
Reviewed-on: https://review.whamcloud.com/33172
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
lustre/llite/dir.c
lustre/tests/sanity.sh