Whamcloud - gitweb
LUDOC-297 protocol: Update protocol document
[doc/protocol.git] / mds_getxattr.txt
1 RPC 49: MDS_GETXATTR
2 ~~~~~~~~~~~~~~~~~~~~
3 [[mds-getxattr-rpc]]
4
5 An RPC that fetches extended attributes for a resource.
6
7 .MDS_GETXATTR Request Packet Structure
8 image::mds-getxattr-request.png["MDS_GETXATTR Request Packet Structure",height=50]
9
10 //////////////////////////////////////////////////////////////////////
11 The mds-getxattr-request.png diagram resembles this text art:
12
13        MDS_GETXATTR:
14       --request-----------------------------------------------
15       | ptlrpc_body | mdt_body | lustre_capa | name | eadata |
16       --------------------------------------------------------
17 //////////////////////////////////////////////////////////////////////
18
19 'ptlrpc_body'::
20 RPC descriptor. See <<struct-ptlrpc-body>>.
21
22 'mdt_body'::
23 Metadata about the resource. See <<struct-mdt-body>>.
24
25 'lustre_capa'::
26 A "capabilities" structure. See <<struct-lustre-capa>>.
27
28 'name'::
29 A text field supplying the name of the desired resource.
30
31 'eadata'::
32 Information about extended attributes. This buffer is optional and will
33 appear as zero length in some packets.
34
35 .MDS_GETXATTR Reply Packet Structure
36 image::mds-getxattr-reply.png["MDS_GETXATTR Reply Packet Structure",height=50]
37
38 //////////////////////////////////////////////////////////////////////
39 The mds-getxattr-reply.png diagram resembles this text art:
40
41        MDS_GETXATTR:
42       --reply----------------------------
43       | ptlrpc_body | mdt_body | eadata |
44       -----------------------------------
45 //////////////////////////////////////////////////////////////////////
46
47 'ptlrpc_body'::
48 RPC descriptor. See <<struct-ptlrpc-body>>.
49
50 'mdt_body'::
51 Metadata about the resource. See <<struct-mdt-body>>.
52
53 'eadata'::
54 Information about extended attributes. This buffer is optional and will
55 appear as zero length in some packets.
56