Whamcloud - gitweb
LU-5044 mdd: do not return .lustre from readdir
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 22 Jul 2014 21:30:08 +0000 (16:30 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 8 Dec 2014 15:13:17 +0000 (10:13 -0500)
commit2976f91adb4d0362b7ebb54e9972156c438bcb73
tree45fea8a7755c2ab9a5c5f2d5675aa88c22a2c4cf
parent6158f83b1b17ee75e42f263e263a5d39ff8ca96f
LU-5044 mdd: do not return .lustre from readdir

In mdd_dir_page_build() skip dirents with the FID of .lustre
preventing that directory from being return by readdir on Lustre
clients. Add a sanity tets to this effect.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ieecb77a286748c4bf4df4dee68d7f33670a0c286
Reviewed-on: http://review.whamcloud.com/11186
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh