[LU-15580] create_iam utility is broken and excluded from the build Created: 21/Feb/22 Updated: 07/Oct/22 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Artem Blagodarenko (Inactive) | Assignee: | Artem Blagodarenko |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||||||||||
| Severity: | 3 | ||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||
| Description |
|
lustre/utils/create_iam utility is broken and excluded from the build, but can be useful during iam issues analysis. |
| Comments |
| Comment by Andreas Dilger [ 21/Feb/22 ] |
|
Unfortunately, create_iam.c is totally useless in its current form. libiam.c is an empty shell calling into ldiskfs via ioctl() on the file to modify it via IAM code in the kernel, but the IAM_IOC_* ioctls no longer exist. I had made a patch to use libiam to rebuild the FLDB file based on create_iam.c, but then discovered afterward tha libiam.c was useless. I ended up fixing the kernel parameter interface to be able to rebuild FLDB by using set_param. (Patch not pushed to master yet, as I was away on vacation). I'm not against filling out libiam.c to actually be able to create IAM format files in userspace, but I suspect it would be a lot of work. On the plus side, latest libext2fs has added htree directory support (mostly for large lost+found), so that might be usable as a starting point. |
| Comment by Gerrit Updater [ 21/Feb/22 ] |
|
"Artem Blagodarenko <artem.blagodarenko@hpe.com>" uploaded a new patch: https://review.whamcloud.com/46574 |
| Comment by Artem Blagodarenko (Inactive) [ 22/Feb/22 ] |
|
adilger , thank you for pointing to the libiam.c and all this means for LDISKFS modification. Probably we need to fix them for filesystem manual recovery reasons. Actually, I found create_iam at moment I was investigating the issue related to |
| Comment by Andreas Dilger [ 23/Sep/22 ] |
|
Artem, not that this is a priority, but if you have a patch that changes libiam.c to actually be able to read/write IAM files (instead of just via the kernel), that would be useful to add to the 46574 patch. Otherwise this tool cannot do anything in its current form. |