[LU-10850] empty indexes don't iterate correctly on ldiskfs Created: 26/Mar/18 Updated: 01/Jul/22 Resolved: 06/May/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
When iterating through an empty ldiskfs regular index I see a single "ghost" record which is zerod out. Specifically, when given an empty regular ldiskfs index, load() returns 1 which is wrong. ZFS indexes do not show this issue. |
| Comments |
| Comment by John Hammond [ 04/Apr/18 ] |
|
It's not that they don't iterate correctly. Rather the issue is that when created ldiskfs IAM indexes have a single zeroed-out key and record. This is easy to fix but it needs a small change in fld. |
| Comment by Gerrit Updater [ 04/Apr/18 ] |
|
John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/31871 |
| Comment by Gerrit Updater [ 04/Apr/18 ] |
|
John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/31875 |
| Comment by Gerrit Updater [ 06/May/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31871/ |
| Comment by Peter Jones [ 06/May/18 ] |
|
Landed for 2.12 |