Whamcloud - gitweb
LU-5937 lfs: ensure a valid directory size in lfs find 56/13456/4
authorJohn L. Hammond <john.hammond@intel.com>
Sun, 18 Jan 2015 02:31:59 +0000 (18:31 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Mar 2015 16:56:18 +0000 (16:56 +0000)
commit7d9c948c6016b10ed0d07e20cbd7925e108b3450
treef13335a7a4a0f6c0e6f318d76deec8654334ce03
parent907a321c9b9e2cd5f5ccf488cc516ba05dee0ad8
LU-5937 lfs: ensure a valid directory size in lfs find

For a striped directory (and a striped file) the size returned by
LL_IOC_MDC_GETINFO may not be vaild. In cb_find_init() if the size of
a directory is needed then get it by calling fstat().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Di Wang <di.wang@intel.com>
Change-Id: Iddb9aa8e6664a09ff866a3995741cae17e1c9962
Reviewed-on: http://review.whamcloud.com/13456
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_user.h
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c