Whamcloud - gitweb
LUDOC-297 protocol: Update protocol document
[doc/protocol.git] / ost_punch.txt
1 RPC 10: OST_PUNCH
2 ~~~~~~~~~~~~~~~~~
3 [[ost-punch-rpc]]
4
5 An RPC that modifies the size attribute of a resource on an OST.
6
7 .OST_PUNCH Request Packet Structure
8 image::ost-punch-request.png["OST_PUNCH Request Packet Structure",height=50]
9
10 //////////////////////////////////////////////////////////////////////
11 The ost-punch-request.png diagram resembles this text art:
12
13        OST_PUNCH:
14       --request-------------------------------
15       | ptlrpc_body | ost_body | lustre_capa |
16       ----------------------------------------
17 //////////////////////////////////////////////////////////////////////
18
19 'ptlrpc_body'::
20 RPC descriptor. See <<struct-ptlrpc-body>>.
21
22 'ost_body'::
23 Metadata about the resource. See <struct-ost-body>>.
24
25 include::struct_lustre_capa.txt[]
26
27 .OST_PUNCH Reply Packet Structure
28 image::ost-punch-reply.png["OST_PUNCH Reply Packet Structure",height=50]
29
30 //////////////////////////////////////////////////////////////////////
31 The ost-punch-reply.png diagram resembles this text art:
32
33        OST_PUNCH:
34       --reply-------------------
35       | ptlrpc_body | ost_body |
36       --------------------------
37 //////////////////////////////////////////////////////////////////////
38
39 'ptlrpc_body'::
40 RPC descriptor. See <<struct-ptlrpc-body>>.
41
42 'ost_body'::
43 Metadata about the resource, as it appears on the OST.
44