DAOS-19210 dfs: show progressive-layout info in daos cont query and f…#18632
Draft
mchaarawi wants to merge 1 commit into
Draft
DAOS-19210 dfs: show progressive-layout info in daos cont query and f…#18632mchaarawi wants to merge 1 commit into
mchaarawi wants to merge 1 commit into
Conversation
|
Ticket title is 'update daos tool to return PL oclasses and not just the head' |
8602e6d to
5661847
Compare
Collaborator
|
Test stage Functional Hardware Large MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-18632/4/testReport/ |
…s get-attr
The daos tool previously reported only a single file object class and did
not show PL details, so `daos cont query` and `daos fs get-attr` gave an
incomplete picture of PL files/containers.
Generalize the DFS query/info API to a head plus an ordered array of tail
segments so it also covers a future head + N tails:
- Add dfs_pl_seg_t {oclass, split_off, oid} and DFS_PL_MAX_SEGMENTS.
- dfs_attr_t: da_file_oclass_id is the head class in the PL case; add
da_file_pl_nr + da_file_pl_segs[] for the tail segment(s). Populated by
dfs_query().
- dfs_obj_info_t: add doi_pl_nr + doi_pl_segs[]; drop the single-tail
fields. Populated by dfs_obj_get_info() for files (real tail oids) and
for directories (file-creation template, nil oids).
- Refactor file_oclasses() to take a parent oclass and add
dfs_default_file_pl() so the container/dir default layout can be resolved
without an open file object.
daos tool:
- cont query: print File Head/Tail Object Class and Split Offset per tail
segment when PL applies (File Object Class alone otherwise).
- fs get-attr on a file: print Head/Tail OID, Head/Tail Object Class, and
Split Offset; on a directory: print the file-creation head/tail classes
and split offset. JSON output extended with a tails/pl array.
- Plumb the new fields through POSIXAttributes and the libdfs/libdaos
bindings and stubs.
Update the DFS unit test to the new doi_pl_nr/doi_pl_segs fields.
Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@hpe.com>
5661847 to
6523d6b
Compare
Collaborator
|
Test stage Functional on EL 9 completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-18632/5/execution/node/1369/log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…s get-attr
The daos tool previously reported only a single file object class and did not show PL details, so
daos cont queryanddaos fs get-attrgave an incomplete picture of PL files/containers.Generalize the DFS query/info API to a head plus an ordered array of tail segments so it also covers a future head + N tails:
daos tool:
Update the DFS unit test to the new doi_pl_nr/doi_pl_segs fields.
Steps for the author:
After all prior steps are complete: