Whamcloud - gitweb
LUDOC-297 protocol: Update protocol document
[doc/protocol.git] / umount.txt
1 Unmount
2 ~~~~~~~
3
4 .Disconnect RPCs
5 [[umount-rpcs]
6 image::umount_rpcs.png["Disconnect RPCs", height=150]
7
8 //////////////////////////////////////////////////////////////////////
9 The umount_rpcs.png diagram resembles this text art:
10
11 Time
12 Step Client         MGS             MDT            OST
13      -------        -------         --------       ------
14 1    OST_DISCONNECT-------------------------------->
15 2                 <--------------------------------OST_DISCONNECT
16 3    MDS_DISCONNECT----------------->
17 4                 <-----------------MDS_DISCONNECT
18 5    MGS_DISCONNECT->
19 6                 <-MGS_DISCONNECT
20 //////////////////////////////////////////////////////////////////////
21
22 *1 - Client issues an OST_DICONNECT to each OST.*
23
24 .OST_DISCONNECT Request Packet Structure
25 image::ost-disconnect-request.png["OST_DISCONNECT Request Packet Structure",height=50]
26
27 //////////////////////////////////////////////////////////////////////
28 The ost-disconnect-request.png diagram resembles this text art:
29
30        OST_DISCONNECT:
31       --request------
32       | ptlrpc_body |
33       ---------------
34 //////////////////////////////////////////////////////////////////////
35
36 See <<ost-disconnect-rpc>>.
37
38 *2 - Each OST replies to the OST_DISCONNECT.*
39
40 .OST_DISCONNECT Reply Packet Structure
41 image::ost-disconnect-reply.png["OST_DISCONNECT Reply Packet Structure",height=50]
42
43 //////////////////////////////////////////////////////////////////////
44 The ost-disconnect-reply.png diagram resembles this text art:
45
46        OST_DISCONNECT:
47       --reply--------
48       | ptlrpc_body |
49       ---------------
50 //////////////////////////////////////////////////////////////////////
51
52 *3 - Client issues an MDS_DICONNECT to each MDT.*
53
54 .MDS_DISCONNECT Request Packet Structure
55 image::mds-disconnect-request.png["MDS_DISCONNECT Request Packet Structure",height=50]
56
57 //////////////////////////////////////////////////////////////////////
58 The mds-disconnect-request.png diagram resembles this text art:
59
60        MDS_DISCONNECT:
61       --request------
62       | ptlrpc_body |
63       ---------------
64 //////////////////////////////////////////////////////////////////////
65
66 See <<mds-disconnect-rpc>>.
67
68 *4 - Each MDT replies to the MDS_DISCONNECT.*
69
70 .MDS_DISCONNECT Reply Packet Structure
71 image::mds-disconnect-reply.png["MDS_DISCONNECT Reply Packet Structure",height=50]
72
73 //////////////////////////////////////////////////////////////////////
74 The mds-disconnect-reply.png diagram resembles this text art:
75
76        MDS_DISCONNECT:
77       --reply--------
78       | ptlrpc_body |
79       ---------------
80 //////////////////////////////////////////////////////////////////////
81
82 *5 - Client issues an MGS_DICONNECT to the MGS.*
83
84 .MGS_DISCONNECT Request Packet Structure
85 image::mgs-disconnect-request.png["MGS_DISCONNECT Request Packet Structure",height=50]
86
87 //////////////////////////////////////////////////////////////////////
88 The mgs-disconnect-request.png diagram resembles this text art:
89
90        MGS_DISCONNECT:
91       --request------
92       | ptlrpc_body |
93       ---------------
94 //////////////////////////////////////////////////////////////////////
95
96 See <<mgs-disconnect-rpc>>.
97
98 *6 - The MGS replies to the MGS_DISCONNECT.*
99
100 .MGS_DISCONNECT Reply Packet Structure
101 image::mgs-disconnect-reply.png["MGS_DISCONNECT Reply Packet Structure",height=50]
102
103 //////////////////////////////////////////////////////////////////////
104 The mgs-disconnect-reply.png diagram resembles this text art:
105
106        MGS_DISCONNECT:
107       --reply--------
108       | ptlrpc_body |
109       ---------------
110 //////////////////////////////////////////////////////////////////////
111