Whamcloud - gitweb
LU-5955 utils: lfs shouldn't skip .lustre directory 63/30463/4
authorAndreas Dilger <andreas.dilger@intel.com>
Sat, 9 Dec 2017 08:23:36 +0000 (01:23 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 Jan 2018 06:19:34 +0000 (06:19 +0000)
commite6a80a02e285c289f823f16cbdf8b46c1002b9f9
treeab68d8d095700174531280560558a60f6c47d22f
parentaa1646a8a1c2a91a1571147994229b6413ee7acc
LU-5955 utils: lfs shouldn't skip .lustre directory

Before Lustre 2.5.3 the MDS returned the .lustre directory to clients
with readdir in the root directory.  This has always been masked out
for "lfs find" and "lfs getstripe" by llapi_semantic_traverse(), but
had the side-effect of also skipping a real .lustre directory that may
exist in the filesystem (for whatever reason, I'm not sure).

Since 2.5.3-84-g2976f91 the /.lustre directory is no longer returned
by the MDS, so there is no need to exclude it in the tools anymore.
Add a sanity test to confirm that the .lustre directory is not listed
(there already are many tests that verify it can be accessed).

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I7ec6ee94b6012445d3bfd9a8a47497dacdbcab07
Reviewed-on: https://review.whamcloud.com/30463
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c