Whamcloud - gitweb
LUDOC-297 protocol: Update protocol document
[doc/protocol.git] / ost_setattr.txt
1 RPC 2: OST_SETATTR
2 ~~~~~~~~~~~~~~~~~~
3 [[ost-setattr-rpc]]
4
5 OST_SETATTR (pb_opc = 2) is an RPC that sets resource attributes.
6
7 .OST_SETATTR Request Packet Structure
8 image::ost-setattr-request.png["OST_SETATTR Request Packet Structure",height=50]
9
10 //////////////////////////////////////////////////////////////////////
11 The ost-setattr-request.png diagram resembles this text art:
12
13        OST_SETATTR:
14       --request-----------------
15       | ptlrpc_body | ost_body |
16       --------------------------
17 //////////////////////////////////////////////////////////////////////
18
19 include::struct_ptlrpc_body.txt[]
20
21 include::struct_ost_body.txt[]
22
23 .OST_SETATTR Reply Packet Structure
24 image::ost-setattr-reply.png["OST_SETATTR Reply Packet Structure",height=50]
25
26 //////////////////////////////////////////////////////////////////////
27 The ost-setattr-reply.png diagram resembles this text art:
28
29        OST_SETATTR:
30       --reply-------------------
31       | ptlrpc_body | ost_body |
32       --------------------------
33 //////////////////////////////////////////////////////////////////////
34
35 'ptlrpc_body'::
36 RPC descriptor. See <<struct-ptlrpc-body>>.
37
38 'ost_body'::
39 Metadata about the resource. See <struct-ost-body>>.
40