[LU-16716] add test to verify irreparable OI mapping Created: 06/Apr/23  Updated: 06/Apr/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

OI scrub is able to handle mapping in below cases:

  • get inode or LMA xattr fail (return code is not -ENOENT, -ESTALE or -ENOMEM).
  • FID provided by client is not seen in inode iteration, this happens when client get FID by readdir, but this FID doesn't point to any inode on disk.
  • OI scrub found the correct mapping, but fails to update OI files.

Add tests for these cases to ensure they are always correctly handled. And the code of osd_fid_lookup() can be cleaned up to make it easier to understand and maintain.


Generated at Sat Feb 10 03:29:24 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.