Revision 19b9ba9a man/gnt-debug.sgml
b/man/gnt-debug.sgml | ||
---|---|---|
192 | 192 |
</para> |
193 | 193 |
</refsect2> |
194 | 194 |
|
195 |
<refsect2> |
|
196 |
<title>LOCKS</title> |
|
197 |
<cmdsynopsis> |
|
198 |
<command>locks</command> |
|
199 |
<arg>--no-headers</arg> |
|
200 |
<arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
|
201 |
<sbr> |
|
202 |
<arg>-o <replaceable>[+]FIELD,...</replaceable></arg> |
|
203 |
<arg>--interval=<replaceable>SECONDS</replaceable></arg> |
|
204 |
<sbr> |
|
205 |
</cmdsynopsis> |
|
206 |
|
|
207 |
<para> |
|
208 |
Shows a list of locks in the master daemon. |
|
209 |
</para> |
|
210 |
|
|
211 |
<para> |
|
212 |
The <option>--no-headers</option> option will skip the initial |
|
213 |
header line. The <option>--separator</option> option takes an |
|
214 |
argument which denotes what will be used between the output |
|
215 |
fields. Both these options are to help scripting. |
|
216 |
</para> |
|
217 |
|
|
218 |
<para> |
|
219 |
The <option>-o</option> option takes a comma-separated list of |
|
220 |
output fields. The available fields and their meaning are: |
|
221 |
<variablelist> |
|
222 |
<varlistentry> |
|
223 |
<term>name</term> |
|
224 |
<listitem> |
|
225 |
<simpara>Lock name</simpara> |
|
226 |
</listitem> |
|
227 |
</varlistentry> |
|
228 |
<varlistentry> |
|
229 |
<term>mode</term> |
|
230 |
<listitem> |
|
231 |
<simpara> |
|
232 |
Mode in which the lock is currently acquired (exclusive or |
|
233 |
shared) |
|
234 |
</simpara> |
|
235 |
</listitem> |
|
236 |
</varlistentry> |
|
237 |
<varlistentry> |
|
238 |
<term>owner</term> |
|
239 |
<listitem> |
|
240 |
<simpara>Current lock owner(s)</simpara> |
|
241 |
</listitem> |
|
242 |
</varlistentry> |
|
243 |
</variablelist> |
|
244 |
</para> |
|
245 |
|
|
246 |
<para> |
|
247 |
If the value of the option starts with the character |
|
248 |
<constant>+</constant>, the new fields will be added to the default |
|
249 |
list. This allows to quickly see the default list plus a few other |
|
250 |
fields, instead of retyping the entire list of fields. |
|
251 |
</para> |
|
252 |
|
|
253 |
<para> |
|
254 |
Use <option>--interval</option> to repeat the listing. A delay |
|
255 |
specified by the option value in seconds is inserted. |
|
256 |
</para> |
|
257 |
|
|
258 |
</refsect2> |
|
195 | 259 |
</refsect1> |
196 | 260 |
|
197 | 261 |
&footer; |
Also available in: Unified diff