File: gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html

package info (click to toggle)
udisks2 2.10.1-12.1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 24,708 kB
  • sloc: ansic: 48,127; python: 7,874; sh: 5,089; xml: 1,462; makefile: 1,235; sed: 85
file content (474 lines) | stat: -rw-r--r-- 16,632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.freedesktop.UDisks2.Filesystem.BTRFS: UDisks Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="UDisks Reference Manual">
<link rel="up" href="ch03.html" title="D-Bus Interfaces">
<link rel="prev" href="gdbus-org.freedesktop.UDisks2.Manager.BTRFS.html" title="org.freedesktop.UDisks2.Manager.BTRFS">
<link rel="next" href="ref-library.html" title="Part III. Library API Reference">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.description" class="shortcut">Description</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="gdbus-org.freedesktop.UDisks2.Manager.BTRFS.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="ref-library.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gdbus-interface-org-freedesktop-UDisks2-Filesystem-BTRFS.top_of_page"></a>org.freedesktop.UDisks2.Filesystem.BTRFS</span></h2>
<p>org.freedesktop.UDisks2.Filesystem.BTRFS — BTRFS filesystem interface exported on block objects</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Methods</h2>
<pre class="synopsis">
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.AddDevice" title="The AddDevice() method">AddDevice</a>       (IN  o      device,
                 IN  a{sv}  options);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.RemoveDevice" title="The RemoveDevice() method">RemoveDevice</a>    (IN  o      device,
                 IN  a{sv}  options);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.CreateSubvolume" title="The CreateSubvolume() method">CreateSubvolume</a> (IN  s      name,
                 IN  a{sv}  options);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.RemoveSubvolume" title="The RemoveSubvolume() method">RemoveSubvolume</a> (IN  s      name,
                 IN  a{sv}  options);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.GetSubvolumes" title="The GetSubvolumes() method">GetSubvolumes</a>   (IN  b      snapshots_only,
                 IN  a{sv}  options,
                 OUT a(tts) subvolumes,
                 OUT i      subvolumes_cnt);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.CreateSnapshot" title="The CreateSnapshot() method">CreateSnapshot</a>  (IN  s      source,
                 IN  s      dest,
                 IN  b      ro,
                 IN  a{sv}  options);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.Repair" title="The Repair() method">Repair</a>          (IN  a{sv}  options);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.Resize" title="The Resize() method">Resize</a>          (IN  t      size,
                 IN  a{sv}  options);
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.SetLabel" title="The SetLabel() method">SetLabel</a>        (IN  s      label,
                 IN  a{sv}  options);
</pre>
</div>
<div class="refsect1">
<a name="id-1.3.3.29.4"></a><h2>Properties</h2>
<pre class="synopsis">
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.label" title='The "label" property'>label</a>        readable   s
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.uuid" title='The "uuid" property'>uuid</a>         readable   s
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.num_devices" title='The "num_devices" property'>num_devices</a>  readable   t
<a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.BTRFS.html#gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.used" title='The "used" property'>used</a>         readable   t
</pre>
</div>
<div class="refsect1">
<a name="gdbus-interface-org-freedesktop-UDisks2-Filesystem-BTRFS"></a><h2>Description</h2>
<p>
This interface is used for <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-interface-org-freedesktop-UDisks2-Block.top_of_page">org.freedesktop.UDisks2.Block</a> devices that
has been filtered through BTRFS plugin.
</p>
<p class="since">Since 2.1.3</p>
</div>
<div class="refsect1">
<a name="gdbus-methods-org.freedesktop.UDisks2.Filesystem.BTRFS"></a><h2>Method Details</h2>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.AddDevice"></a><h3>The AddDevice() method</h3>
<pre class="programlisting">
AddDevice (IN  o     device,
           IN  a{sv} options);
</pre>
<p>
Adds the <em class="parameter"><code>device</code></em> to the volume.
</p>
<p>
No additional options are currently defined.
</p>
<p>
<span class="emphasis"><em>Changed in version 2.7.0.</em></span>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN o <em class="parameter"><code>device</code></em></code>:</span></p></td>
<td><p>
Object path of a device to be added to BTRFS volume.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.RemoveDevice"></a><h3>The RemoveDevice() method</h3>
<pre class="programlisting">
RemoveDevice (IN  o     device,
              IN  a{sv} options);
</pre>
<p>
Removes the <em class="parameter"><code>device</code></em> from the volume.
</p>
<p>
No additional options are currently defined.
</p>
<p>
<span class="emphasis"><em>Changed in version 2.7.0.</em></span>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN o <em class="parameter"><code>device</code></em></code>:</span></p></td>
<td><p>
Object path of a device to be removed from BTRFS volume.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.CreateSubvolume"></a><h3>The CreateSubvolume() method</h3>
<pre class="programlisting">
CreateSubvolume (IN  s     name,
                 IN  a{sv} options);
</pre>
<p>
Creates a new subvolume.
</p>
<p>
No additional options are currently defined.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN s <em class="parameter"><code>name</code></em></code>:</span></p></td>
<td><p>
Name of a new subvolume.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.1.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.RemoveSubvolume"></a><h3>The RemoveSubvolume() method</h3>
<pre class="programlisting">
RemoveSubvolume (IN  s     name,
                 IN  a{sv} options);
</pre>
<p>
Deletes a subvolume.
</p>
<p>
No additional options are currently defined.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN s <em class="parameter"><code>name</code></em></code>:</span></p></td>
<td><p>
Name of the subvolume to be deleted.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.1.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.GetSubvolumes"></a><h3>The GetSubvolumes() method</h3>
<pre class="programlisting">
GetSubvolumes (IN  b      snapshots_only,
               IN  a{sv}  options,
               OUT a(tts) subvolumes,
               OUT i      subvolumes_cnt);
</pre>
<p>
Returns a list of subvolumes.
</p>
<p>
No additional options are currently defined.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN b <em class="parameter"><code>snapshots_only</code></em></code>:</span></p></td>
<td><p>
True if to list only snapshot subvolumes; False otherwise.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">OUT a(tts) <em class="parameter"><code>subvolumes</code></em></code>:</span></p></td>
<td><p>
Structure containing subvolume id, parent_id and path.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">OUT i <em class="parameter"><code>subvolumes_cnt</code></em></code>:</span></p></td>
<td><p>
The number of returned elements.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.1.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.CreateSnapshot"></a><h3>The CreateSnapshot() method</h3>
<pre class="programlisting">
CreateSnapshot (IN  s     source,
                IN  s     dest,
                IN  b     ro,
                IN  a{sv} options);
</pre>
<p>
Creates a snapshot.
</p>
<p>
No additional options are currently defined.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN s <em class="parameter"><code>source</code></em></code>:</span></p></td>
<td><p>
Name of the source subvolume.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN s <em class="parameter"><code>dest</code></em></code>:</span></p></td>
<td><p>
Name for the new snapshot volume.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN b <em class="parameter"><code>ro</code></em></code>:</span></p></td>
<td><p>
True if the snapshot should be read-only; False otherwise.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.1.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.Repair"></a><h3>The Repair() method</h3>
<pre class="programlisting">
Repair (IN  a{sv} options);
</pre>
<p>
Checks and repairs btrfs volume.
</p>
<p>
No additional options are currently defined.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr></tbody>
</table></div>
<p class="since">Since 2.3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.Resize"></a><h3>The Resize() method</h3>
<pre class="programlisting">
Resize (IN  t     size,
        IN  a{sv} options);
</pre>
<p>
Resizes the volume.
</p>
<p>
No additional options are currently defined.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN t <em class="parameter"><code>size</code></em></code>:</span></p></td>
<td><p>
Requested new size in Bytes.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-method-org-freedesktop-UDisks2-Filesystem-BTRFS.SetLabel"></a><h3>The SetLabel() method</h3>
<pre class="programlisting">
SetLabel (IN  s     label,
          IN  a{sv} options);
</pre>
<p>
Sets a new label for the given volume.
</p>
<p>
No additional options are currently defined.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><code class="literal">IN s <em class="parameter"><code>label</code></em></code>:</span></p></td>
<td><p>
New label.
</p></td>
</tr>
<tr>
<td><p><span class="term"><code class="literal">IN a{sv} <em class="parameter"><code>options</code></em></code>:</span></p></td>
<td><p>
Additional options.
</p></td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.1.3</p>
</div>
</div>
<div class="refsect1">
<a name="gdbus-properties-org.freedesktop.UDisks2.Filesystem.BTRFS"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.label"></a><h3>The "label" property</h3>
<pre class="programlisting">
label  readable   s
</pre>
<p>
</p>
<p>
</p>
<p class="since">Since 2.1.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.uuid"></a><h3>The "uuid" property</h3>
<pre class="programlisting">
uuid  readable   s
</pre>
<p>
</p>
<p>
</p>
<p class="since">Since 2.1.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.num_devices"></a><h3>The "num_devices" property</h3>
<pre class="programlisting">
num_devices  readable   t
</pre>
<p>
</p>
<p>
</p>
<p class="since">Since 2.1.3</p>
</div>
<hr>
<div class="refsect2">
<a name="gdbus-property-org-freedesktop-UDisks2-Filesystem-BTRFS.used"></a><h3>The "used" property</h3>
<pre class="programlisting">
used  readable   t
</pre>
<p>
</p>
<p>
</p>
<p class="since">Since 2.1.3</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>