Whamcloud - gitweb
LU-18138 mdd: handle corner case for .lustre on readdir 21/56021/3
authorVladimir Saveliev <vladimir.saveliev@hpe.com>
Tue, 13 Aug 2024 12:03:52 +0000 (15:03 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 22:06:35 +0000 (22:06 +0000)
commit609fc54142281d3ac5e36b257f8890a2fb0c96a0
tree48b87803dc2ab7cb4aa7b1aa7419d00a7e2af80b
parenta2ebc165af1b28c8d23a81ab0efb28fb1318bf1d
LU-18138 mdd: handle corner case for .lustre on readdir

If '.lustre' entry is dispaced into last directory block and is alone
in it - the entry to returned by mdd_readdir.

Test to illustrate the issus is added.

Fixes: e6b8e3a86b ("LU-5044 mdd: do not return .lustre from readdir")
Signed-off-by: Vladimir Saveliev <vladimir.saveliev@hpe.com>
Change-Id: Ib4dfe92b66932ede1b1336e55f1af33c1fc6c878
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56021
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh