Details
-
Bug
-
Resolution: Fixed
-
Major
-
Lustre 2.4.0
-
3
-
7764
Description
lmv_readpage() fails to overwrite the ldp_hash_end and ldp_flags of the first lu_dirpage in a CFS_PAGE with the values from the last lu_dirpage. This causes duplicate directory entries to be returned from readdir() for sufficiently large directories. This is only an issue on platforms where CFS_PAGE_SIZE > LU_PAGE_SIZE, i.e. PPC.
The regression was introduced in patch http://review.whamcloud.com/#change,5011, with the apparently accidental removal of these lines from lmv_readpage():
- hash_end = dp->ldp_hash_end; - flags = dp->ldp_flags;