FID on OST (LU-1185)

[LU-2682] clean up direct _id and _seq access, use ost_id everywhere Created: 25/Jan/13  Updated: 28/Mar/13  Resolved: 28/Mar/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: Lustre 2.4.0

Type: Technical task Priority: Major
Reporter: Andreas Dilger Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-2684 convert ost_id to lu_fid for FID_SEQ_... Resolved
Rank (Obsolete): 6269

 Description   

There are a number of cleanups that should be done for the ost_id members of various structures.

Access/copying the individual _id and _seq fields should be replaced with the _oi field, and compatibility macros for accessing the individual fields should be removed.

POID/DOID macros should be introduced to print out the _oi fields, similar to PFID/DFID is used for lu_fid fields. Johann had a patch for doing some of this in http://review.whamcloud.com/2004 that needs to be refreshed and resubmitted.



 Comments   
Comment by Andreas Dilger [ 27/Jan/13 ]

As part of this ost_id cleanup patch, please rename lsm_object_oid to lsm_oi or lsm_ostid, if it hasn't been done through a refresh of http://review.whamcloud.com/3081. It would be good to use a similar field name "_oi" or "_ostid" for other ost_id members in other structures as well.

Comment by Andreas Dilger [ 05/Mar/13 ]

Di, I still see a lot of code like:

        oa->o_id = lsm->lsm_object_id;
        oa->o_seq = lsm->lsm_object_seq;

that should be replaced with:

        oa->o_oi = lsm->lsm_object_oid;

also, lsm_object_oid should be renamed lsm_oi or lsm_ostid so that it is not confused with f_oid.

Comment by Di Wang [ 05/Mar/13 ]

http://review.whamcloud.com/5601

Comment by Peter Jones [ 28/Mar/13 ]

Landed for 2.4

Generated at Sat Feb 10 01:27:18 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.