Whamcloud - gitweb
LU-5044 mdd: do not return .lustre from readdir 86/11186/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 22 Jul 2014 21:30:08 +0000 (16:30 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 24 Jul 2014 21:54:26 +0000 (21:54 +0000)
commite6b8e3a86b1a31fec97555de7c557470ed26492a
treee09e1d73a19603dbf191df7cbb41af30b5148fb4
parent4df63615669a69b51c752cc4e416f705f8a56197
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