X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=struct_mdt_rec_reint.txt;h=09c691a0b01a0bba85f99ef8c0435aa9e3a5efa6;hb=fcef7c1bf5a197eed7a85704be12b80c5067c2d1;hp=c9780f8f1e97c71c24047f8cf1e9d375b90b1c60;hpb=a35c4d03a85eaab5762e11b54ed982bb9f74e5cb;p=doc%2Fprotocol.git diff --git a/struct_mdt_rec_reint.txt b/struct_mdt_rec_reint.txt index c9780f8..09c691a 100644 --- a/struct_mdt_rec_reint.txt +++ b/struct_mdt_rec_reint.txt @@ -42,6 +42,8 @@ struct mdt_rec_reint { The 'rr_opcode' field defines one among the several sub-commands for MDS REINT RPCs. Those opcodes are: +.MDS Reint Type +**** [source,c] ---- typedef enum { @@ -54,6 +56,7 @@ typedef enum { REINT_SETXATTR = 7, } mds_reint_t; ---- +**** Based on that opcode one of the variants of the structure will actually be used. See <> for one example. @@ -75,9 +78,9 @@ is for the REINT_SETATTR sub-operation. The 'rr_suppgid1' and 'rr_suppgid2' fields are supplementary GID information for kernels that have it. -The 'rr_fid1' and 'rr_fid2' fields specify the file IDs for the -resources being operated upon. If only one resource is being acted -upon then 'rr_fid2' is not used. +The 'rr_fid1' and 'rr_fid2' fields specify the FIDs (See +<>) for the resources being operated upon. If only one +resource is being acted upon then 'rr_fid2' is not used. The 'rr_mtime' 'rr_atime' and 'rr_ctime' fields give the object timestamps in seconds for the last modification time, the last @@ -91,6 +94,8 @@ attribute. The 'rr_bias' field adds additional optional information to the REINT. The possible values are: +.MDS Operation Bias +**** [source,c] ---- enum mds_op_bias { @@ -108,6 +113,7 @@ enum mds_op_bias { MDS_HSM_RELEASE = 1 << 12, }; ---- +**** For example, MDS_DATA_MODIFIED signals to the HSM system that the MDT should set the corresponding HSM extended attribute. We'll return to