Version 1.13.17.
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # rjones <rjones@redhat.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-10-04 19:22+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
14 "ja/)\n"
15 "Language: ja\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
25 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
26 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
27 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
28 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
29 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
30 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
31 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
32 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
33 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
34 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
36 #: ../tools/virt-win-reg.pl:35
37 msgid "NAME"
38 msgstr "名前"
39
40 #. type: textblock
41 #: ../cat/virt-cat.pod:5
42 msgid "virt-cat - Display files in a virtual machine"
43 msgstr ""
44
45 #. type: =head1
46 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
47 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
48 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
49 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
50 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
51 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
52 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
53 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
54 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
55 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
56 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
57 #: ../test-tool/libguestfs-test-tool.pod:7
58 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
59 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
60 #: ../tools/virt-win-reg.pl:39
61 msgid "SYNOPSIS"
62 msgstr ""
63
64 #. type: verbatim
65 #: ../cat/virt-cat.pod:9
66 #, no-wrap
67 msgid ""
68 " virt-cat [--options] -d domname file [file ...]\n"
69 "\n"
70 msgstr ""
71
72 #. type: verbatim
73 #: ../cat/virt-cat.pod:11
74 #, no-wrap
75 msgid ""
76 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
77 "\n"
78 msgstr ""
79
80 #. type: textblock
81 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
82 #: ../inspector/virt-inspector.pod:13
83 msgid "Old-style:"
84 msgstr ""
85
86 #. type: verbatim
87 #: ../cat/virt-cat.pod:15
88 #, no-wrap
89 msgid ""
90 " virt-cat domname file\n"
91 "\n"
92 msgstr ""
93
94 #. type: verbatim
95 #: ../cat/virt-cat.pod:17
96 #, no-wrap
97 msgid ""
98 " virt-cat disk.img file\n"
99 "\n"
100 msgstr ""
101
102 #. type: =head1
103 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
104 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
105 #: ../erlang/examples/guestfs-erlang.pod:16
106 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
107 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
108 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
109 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
110 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
111 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
112 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
113 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
114 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
115 #: ../test-tool/libguestfs-test-tool.pod:11
116 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
117 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
118 #: ../tools/virt-win-reg.pl:63
119 msgid "DESCRIPTION"
120 msgstr ""
121
122 #. type: textblock
123 #: ../cat/virt-cat.pod:21
124 msgid ""
125 "C<virt-cat> is a command line tool to display the contents of C<file> where "
126 "C<file> exists in the named virtual machine (or disk image)."
127 msgstr ""
128
129 #. type: textblock
130 #: ../cat/virt-cat.pod:24
131 msgid ""
132 "Multiple filenames can be given, in which case they are concatenated "
133 "together.  Each filename must be a full path, starting at the root directory "
134 "(starting with '/')."
135 msgstr ""
136
137 #. type: textblock
138 #: ../cat/virt-cat.pod:28
139 msgid ""
140 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
141 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
142 "(see L</USING GUESTFISH> below)."
143 msgstr ""
144
145 #. type: =head1
146 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
147 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
148 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
149 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
150 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
151 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
152 #: ../tools/virt-tar.pl:50
153 msgid "EXAMPLES"
154 msgstr ""
155
156 #. type: textblock
157 #: ../cat/virt-cat.pod:34
158 msgid ""
159 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
160 msgstr ""
161
162 #. type: verbatim
163 #: ../cat/virt-cat.pod:37
164 #, no-wrap
165 msgid ""
166 " virt-cat -d mydomain /etc/fstab\n"
167 "\n"
168 msgstr ""
169
170 #. type: textblock
171 #: ../cat/virt-cat.pod:39
172 msgid "List syslog messages from a VM disk image file:"
173 msgstr ""
174
175 #. type: verbatim
176 #: ../cat/virt-cat.pod:41
177 #, no-wrap
178 msgid ""
179 " virt-cat -a disk.img /var/log/messages | tail\n"
180 "\n"
181 msgstr ""
182
183 #. type: textblock
184 #: ../cat/virt-cat.pod:43
185 msgid "Find out what DHCP IP address a VM acquired:"
186 msgstr ""
187
188 #. type: verbatim
189 #: ../cat/virt-cat.pod:45
190 #, no-wrap
191 msgid ""
192 " virt-cat -d mydomain /var/log/messages | \\\n"
193 "   grep 'dhclient: bound to' | tail\n"
194 "\n"
195 msgstr ""
196
197 #. type: textblock
198 #: ../cat/virt-cat.pod:48
199 msgid "Find out what packages were recently installed:"
200 msgstr ""
201
202 #. type: verbatim
203 #: ../cat/virt-cat.pod:50
204 #, no-wrap
205 msgid ""
206 " virt-cat -d mydomain /var/log/yum.log | tail\n"
207 "\n"
208 msgstr ""
209
210 #. type: textblock
211 #: ../cat/virt-cat.pod:52
212 msgid "Find out who is logged on inside a virtual machine:"
213 msgstr ""
214
215 #. type: verbatim
216 #: ../cat/virt-cat.pod:54
217 #, no-wrap
218 msgid ""
219 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
220 " who /tmp/utmp\n"
221 "\n"
222 msgstr ""
223
224 #. type: textblock
225 #: ../cat/virt-cat.pod:57
226 msgid "or who was logged on:"
227 msgstr ""
228
229 #. type: verbatim
230 #: ../cat/virt-cat.pod:59
231 #, no-wrap
232 msgid ""
233 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
234 " last -f /tmp/wtmp\n"
235 "\n"
236 msgstr ""
237
238 #. type: =head1
239 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
240 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
241 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
242 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
243 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
244 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
245 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
246 #: ../test-tool/libguestfs-test-tool.pod:36
247 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
248 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
249 #: ../tools/virt-win-reg.pl:96
250 msgid "OPTIONS"
251 msgstr ""
252
253 #. type: =item
254 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
255 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
256 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
257 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
258 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
259 #: ../test-tool/libguestfs-test-tool.pod:40
260 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
261 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
262 #: ../tools/virt-win-reg.pl:104
263 msgid "B<--help>"
264 msgstr ""
265
266 #. type: textblock
267 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
268 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
269 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
270 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
271 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
272 #: ../tools/virt-win-reg.pl:106
273 msgid "Display brief help."
274 msgstr ""
275
276 #. type: =item
277 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
278 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
279 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
280 msgid "B<-a> file"
281 msgstr ""
282
283 #. type: =item
284 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
285 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
286 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
287 msgid "B<--add> file"
288 msgstr ""
289
290 #. type: textblock
291 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
292 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
293 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
294 msgid ""
295 "Add I<file> which should be a disk image from a virtual machine.  If the "
296 "virtual machine has multiple block devices, you must supply all of them with "
297 "separate I<-a> options."
298 msgstr ""
299
300 #. type: textblock
301 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
302 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
303 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
304 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
305 msgid ""
306 "The format of the disk image is auto-detected.  To override this and force a "
307 "particular format use the I<--format=..> option."
308 msgstr ""
309
310 #. type: =item
311 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
312 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
313 msgid "B<-c> URI"
314 msgstr ""
315
316 #. type: =item
317 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
318 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
319 msgid "B<--connect> URI"
320 msgstr ""
321
322 #. type: textblock
323 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
324 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
325 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
326 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
327 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
328 msgid ""
329 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
330 "to the default libvirt hypervisor."
331 msgstr ""
332
333 #. type: textblock
334 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
335 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
336 msgid ""
337 "If you specify guest block devices directly (I<-a>), then libvirt is not "
338 "used at all."
339 msgstr ""
340
341 #. type: =item
342 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
343 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
344 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
345 msgid "B<-d> guest"
346 msgstr ""
347
348 #. type: =item
349 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
350 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
351 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
352 msgid "B<--domain> guest"
353 msgstr ""
354
355 #. type: textblock
356 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
357 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
358 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
359 msgid ""
360 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
361 "instead of names."
362 msgstr ""
363
364 #. type: =item
365 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
366 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
367 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
368 msgid "B<--echo-keys>"
369 msgstr ""
370
371 #. type: textblock
372 #: ../cat/virt-cat.pod:100
373 msgid ""
374 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
375 "so you cannot see what you are typing.  If you are not worried about Tempest "
376 "attacks and there is no one else in the room you can specify this flag to "
377 "see what you are typing."
378 msgstr ""
379
380 #. type: =item
381 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
382 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
383 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
384 #: ../rescue/virt-rescue.pod:124
385 msgid "B<--format=raw|qcow2|..>"
386 msgstr ""
387
388 #. type: =item
389 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
390 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
391 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
392 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
393 msgid "B<--format>"
394 msgstr ""
395
396 #. type: textblock
397 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
398 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
399 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
400 #: ../rescue/virt-rescue.pod:128
401 msgid ""
402 "The default for the I<-a> option is to auto-detect the format of the disk "
403 "image.  Using this forces the disk format for I<-a> options which follow on "
404 "the command line.  Using I<--format> with no argument switches back to auto-"
405 "detection for subsequent I<-a> options."
406 msgstr ""
407
408 #. type: textblock
409 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
410 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
411 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
412 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
413 #: ../src/guestfs.pod:2791
414 msgid "For example:"
415 msgstr ""
416
417 #. type: verbatim
418 #: ../cat/virt-cat.pod:116
419 #, no-wrap
420 msgid ""
421 " virt-cat --format=raw -a disk.img file\n"
422 "\n"
423 msgstr ""
424
425 #. type: textblock
426 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
427 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
428 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
429 msgid "forces raw format (no auto-detection) for C<disk.img>."
430 msgstr ""
431
432 #. type: verbatim
433 #: ../cat/virt-cat.pod:120
434 #, no-wrap
435 msgid ""
436 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
437 "\n"
438 msgstr ""
439
440 #. type: textblock
441 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
442 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
443 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
444 msgid ""
445 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
446 "detection for C<another.img>."
447 msgstr ""
448
449 #. type: textblock
450 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
451 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
452 #: ../rescue/virt-rescue.pod:144
453 msgid ""
454 "If you have untrusted raw-format guest disk images, you should use this "
455 "option to specify the disk format.  This avoids a possible security problem "
456 "with malicious guests (CVE-2010-3851)."
457 msgstr ""
458
459 #. type: =item
460 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
461 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
462 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
463 msgid "B<--keys-from-stdin>"
464 msgstr ""
465
466 #. type: textblock
467 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
468 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
469 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
470 msgid ""
471 "Read key or passphrase parameters from stdin.  The default is to try to read "
472 "passphrases from the user by opening C</dev/tty>."
473 msgstr ""
474
475 #. type: =item
476 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
477 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
478 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
479 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
480 #: ../sparsify/virt-sparsify.pod:159
481 msgid "B<-v>"
482 msgstr ""
483
484 #. type: =item
485 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
486 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
487 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
488 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
489 #: ../sparsify/virt-sparsify.pod:161
490 msgid "B<--verbose>"
491 msgstr ""
492
493 #. type: textblock
494 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
495 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
496 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
497 #: ../sparsify/virt-sparsify.pod:163
498 msgid "Enable verbose messages for debugging."
499 msgstr ""
500
501 #. type: =item
502 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
503 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
504 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
505 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
506 #: ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
507 msgid "B<-V>"
508 msgstr ""
509
510 #. type: =item
511 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
512 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
513 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
514 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
515 #: ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167
516 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70
517 #: ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119
518 #: ../tools/virt-win-reg.pl:112
519 msgid "B<--version>"
520 msgstr ""
521
522 #. type: textblock
523 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
524 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
525 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
526 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
527 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
528 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
529 #: ../tools/virt-win-reg.pl:114
530 msgid "Display version number and exit."
531 msgstr ""
532
533 #. type: =item
534 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
535 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
536 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
537 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
538 #: ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
539 msgid "B<-x>"
540 msgstr ""
541
542 #. type: textblock
543 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
544 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
545 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
546 #: ../sparsify/virt-sparsify.pod:173
547 msgid "Enable tracing of libguestfs API calls."
548 msgstr ""
549
550 #. type: =head1
551 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
552 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
553 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
554 msgstr ""
555
556 #. type: textblock
557 #: ../cat/virt-cat.pod:154
558 msgid "Previous versions of virt-cat allowed you to write either:"
559 msgstr ""
560
561 #. type: verbatim
562 #: ../cat/virt-cat.pod:156
563 #, no-wrap
564 msgid ""
565 " virt-cat disk.img [disk.img ...] file\n"
566 "\n"
567 msgstr ""
568
569 #. type: textblock
570 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
571 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
572 msgid "or"
573 msgstr ""
574
575 #. type: verbatim
576 #: ../cat/virt-cat.pod:160
577 #, no-wrap
578 msgid ""
579 " virt-cat guestname file\n"
580 "\n"
581 msgstr ""
582
583 #. type: textblock
584 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
585 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
586 msgid ""
587 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
588 "the confusing case where a disk image might have the same name as a guest."
589 msgstr ""
590
591 #. type: textblock
592 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
593 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
594 msgid "For compatibility the old style is still supported."
595 msgstr ""
596
597 #. type: =head1
598 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
599 msgid "USING GUESTFISH"
600 msgstr ""
601
602 #. type: textblock
603 #: ../cat/virt-cat.pod:170
604 msgid ""
605 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
606 "C<virt-cat> doesn't work."
607 msgstr ""
608
609 #. type: textblock
610 #: ../cat/virt-cat.pod:173
611 msgid "Using C<virt-cat> is approximately equivalent to doing:"
612 msgstr ""
613
614 #. type: verbatim
615 #: ../cat/virt-cat.pod:175
616 #, no-wrap
617 msgid ""
618 " guestfish --ro -i -d domname download file -\n"
619 "\n"
620 msgstr ""
621
622 #. type: textblock
623 #: ../cat/virt-cat.pod:177
624 msgid ""
625 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
626 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
627 msgstr ""
628
629 #. type: textblock
630 #: ../cat/virt-cat.pod:181
631 msgid ""
632 "The command above uses libguestfs's guest inspection feature and so does not "
633 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
634 "disk images that don't contain guests.  To display a file from a disk image "
635 "directly, use:"
636 msgstr ""
637
638 #. type: verbatim
639 #: ../cat/virt-cat.pod:186
640 #, no-wrap
641 msgid ""
642 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
643 "\n"
644 msgstr ""
645
646 #. type: textblock
647 #: ../cat/virt-cat.pod:188
648 msgid ""
649 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
650 "the disk image, and C<file> is the full path to the file."
651 msgstr ""
652
653 #. type: =head1
654 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
655 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
656 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
657 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
658 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
659 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
660 msgid "SHELL QUOTING"
661 msgstr ""
662
663 #. type: textblock
664 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
665 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
666 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
667 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
668 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
669 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
670 msgid ""
671 "Libvirt guest names can contain arbitrary characters, some of which have "
672 "meaning to the shell such as C<#> and space.  You may need to quote or "
673 "escape these characters on the command line.  See the shell manual page L<sh"
674 "(1)> for details."
675 msgstr ""
676
677 #. type: =head1
678 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
679 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
680 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
681 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
682 #: ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
683 msgid "EXIT STATUS"
684 msgstr ""
685
686 #. type: textblock
687 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
688 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
689 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
690 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
691 msgid ""
692 "This program returns 0 if successful, or non-zero if there was an error."
693 msgstr ""
694
695 #. type: =head1
696 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
697 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
698 #: ../erlang/examples/guestfs-erlang.pod:97
699 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
700 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
701 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
702 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
703 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
704 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
705 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
706 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
707 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3167
708 #: ../test-tool/libguestfs-test-tool.pod:100
709 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
710 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
711 #: ../tools/virt-win-reg.pl:746
712 msgid "SEE ALSO"
713 msgstr ""
714
715 #. type: textblock
716 #: ../cat/virt-cat.pod:205
717 msgid ""
718 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
719 "tar-out(1)>, L<http://libguestfs.org/>."
720 msgstr ""
721
722 #. type: =head1
723 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
724 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
725 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
726 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
727 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
728 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
729 msgid "AUTHOR"
730 msgstr ""
731
732 #. type: textblock
733 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
734 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
735 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
736 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
737 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
738 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
739 #: ../tools/virt-win-reg.pl:774
740 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
741 msgstr ""
742
743 #. type: =head1
744 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
745 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
746 #: ../erlang/examples/guestfs-erlang.pod:114
747 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
748 #: ../fish/guestfish.pod:1265 ../fish/virt-copy-in.pod:64
749 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
750 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
751 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
752 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
753 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
754 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
755 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3246
756 #: ../test-tool/libguestfs-test-tool.pod:110
757 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
758 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
759 #: ../tools/virt-win-reg.pl:776
760 msgid "COPYRIGHT"
761 msgstr ""
762
763 #. type: textblock
764 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
765 #: ../resize/virt-resize.pod:641
766 msgid "Copyright (C) 2010-2011 Red Hat Inc."
767 msgstr ""
768
769 #. type: textblock
770 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
771 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
772 #: ../fish/guestfish.pod:1270 ../fish/virt-copy-in.pod:69
773 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
774 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
775 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
776 #: ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272
777 #: ../test-tool/libguestfs-test-tool.pod:115
778 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
779 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
780 #: ../tools/virt-win-reg.pl:780
781 msgid ""
782 "This program is free software; you can redistribute it and/or modify it "
783 "under the terms of the GNU General Public License as published by the Free "
784 "Software Foundation; either version 2 of the License, or (at your option) "
785 "any later version."
786 msgstr ""
787
788 #. type: textblock
789 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
790 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
791 #: ../fish/guestfish.pod:1275 ../fish/virt-copy-in.pod:74
792 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
793 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
794 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
795 #: ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277
796 #: ../test-tool/libguestfs-test-tool.pod:120
797 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
798 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
799 #: ../tools/virt-win-reg.pl:785
800 msgid ""
801 "This program is distributed in the hope that it will be useful, but WITHOUT "
802 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
803 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
804 "more details."
805 msgstr ""
806
807 #. type: textblock
808 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
809 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
810 #: ../fish/guestfish.pod:1280 ../fish/virt-copy-in.pod:79
811 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
812 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
813 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
814 #: ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282
815 #: ../test-tool/libguestfs-test-tool.pod:125
816 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
817 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
818 #: ../tools/virt-win-reg.pl:790
819 msgid ""
820 "You should have received a copy of the GNU General Public License along with "
821 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
822 "Ave, Cambridge, MA 02139, USA."
823 msgstr ""
824
825 #. type: textblock
826 #: ../cat/virt-filesystems.pod:5
827 msgid ""
828 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
829 "virtual machine or disk image"
830 msgstr ""
831
832 #. type: verbatim
833 #: ../cat/virt-filesystems.pod:9
834 #, no-wrap
835 msgid ""
836 " virt-filesystems [--options] -d domname\n"
837 "\n"
838 msgstr ""
839
840 #. type: verbatim
841 #: ../cat/virt-filesystems.pod:11
842 #, no-wrap
843 msgid ""
844 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
845 "\n"
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-filesystems.pod:15
850 msgid ""
851 "This tool allows you to discover filesystems, partitions, logical volumes, "
852 "and their sizes in a disk image or virtual machine.  It is a replacement for "
853 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
854 msgstr ""
855
856 #. type: textblock
857 #: ../cat/virt-filesystems.pod:20
858 msgid ""
859 "One use for this tool is from shell scripts to iterate over all filesystems "
860 "from a disk image:"
861 msgstr ""
862
863 #. type: verbatim
864 #: ../cat/virt-filesystems.pod:23
865 #, no-wrap
866 msgid ""
867 " for fs in $(virt-filesystems -a disk.img); do\n"
868 "   # ...\n"
869 " done\n"
870 "\n"
871 msgstr ""
872
873 #. type: textblock
874 #: ../cat/virt-filesystems.pod:27
875 msgid ""
876 "Another use is to list partitions before using another tool to modify those "
877 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
878 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
879 msgstr ""
880
881 #. type: textblock
882 #: ../cat/virt-filesystems.pod:32
883 msgid ""
884 "Various command line options control what this program displays.  You need "
885 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
886 "guest respectively.  If you just specify that then the program shows "
887 "filesystems found, one per line, like this:"
888 msgstr ""
889
890 #. type: verbatim
891 #: ../cat/virt-filesystems.pod:37
892 #, no-wrap
893 msgid ""
894 " $ virt-filesystems -a disk.img\n"
895 " /dev/sda1\n"
896 " /dev/vg_guest/lv_root\n"
897 "\n"
898 msgstr ""
899
900 #. type: textblock
901 #: ../cat/virt-filesystems.pod:41
902 msgid ""
903 "If you add I<-l> or I<--long> then the output includes extra information:"
904 msgstr ""
905
906 #. type: verbatim
907 #: ../cat/virt-filesystems.pod:44
908 #, no-wrap
909 msgid ""
910 " $ virt-filesystems -a disk.img -l\n"
911 " Name                   Type         VFS   Label  Size\n"
912 " /dev/sda1              filesystem   ext4  boot   524288000\n"
913 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
914 "\n"
915 msgstr ""
916
917 #. type: textblock
918 #: ../cat/virt-filesystems.pod:49
919 msgid ""
920 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
921 "shown as well:"
922 msgstr ""
923
924 #. type: verbatim
925 #: ../cat/virt-filesystems.pod:52
926 #, no-wrap
927 msgid ""
928 " $ virt-filesystems -a disk.img --extra\n"
929 " /dev/sda1\n"
930 " /dev/vg_guest/lv_root\n"
931 " /dev/vg_guest/lv_swap\n"
932 " /dev/vg_guest/lv_data\n"
933 "\n"
934 msgstr ""
935
936 #. type: textblock
937 #: ../cat/virt-filesystems.pod:58
938 msgid ""
939 "If you add I<--partitions> then partitions are shown instead of filesystems:"
940 msgstr ""
941
942 #. type: verbatim
943 #: ../cat/virt-filesystems.pod:60
944 #, no-wrap
945 msgid ""
946 " $ virt-filesystems -a disk.img --partitions\n"
947 " /dev/sda1\n"
948 " /dev/sda2\n"
949 "\n"
950 msgstr ""
951
952 #. type: textblock
953 #: ../cat/virt-filesystems.pod:64
954 msgid ""
955 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
956 "volumes>, I<--block-devices> to list those items."
957 msgstr ""
958
959 #. type: textblock
960 #: ../cat/virt-filesystems.pod:67
961 msgid ""
962 "You can use these options in combination as well (if you want a combination "
963 "including filesystems, you have to add I<--filesystems>).  Notice that some "
964 "items fall into several categories (eg. C</dev/sda1> might be both a "
965 "partition and a filesystem).  These items are listed several times.  To get "
966 "a list which includes absolutely everything that virt-filesystems knows "
967 "about, use the I<--all> option."
968 msgstr ""
969
970 #. type: textblock
971 #: ../cat/virt-filesystems.pod:74
972 msgid ""
973 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
974 "uuid> option to display device and filesystem UUIDs in the long output."
975 msgstr ""
976
977 #. type: textblock
978 #: ../cat/virt-filesystems.pod:78
979 msgid ""
980 "I<--all --long --uuid> is a useful combination to display all possible "
981 "information about everything."
982 msgstr ""
983
984 #. type: verbatim
985 #: ../cat/virt-filesystems.pod:81
986 #, no-wrap
987 msgid ""
988 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
989 " Name      Type       VFS  Label           Size Parent   UUID\n"
990 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
991 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
992 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
993 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
994 " /dev/sda  device     -    -               20G  -        -\n"
995 "\n"
996 msgstr ""
997
998 #. type: textblock
999 #: ../cat/virt-filesystems.pod:89
1000 msgid ""
1001 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1002 msgstr ""
1003
1004 #. type: =item
1005 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1006 msgid "B<--all>"
1007 msgstr ""
1008
1009 #. type: textblock
1010 #: ../cat/virt-filesystems.pod:112
1011 msgid ""
1012 "Display everything.  This is currently the same as specifying these options: "
1013 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1014 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1015 "added to this list in future)."
1016 msgstr ""
1017
1018 #. type: textblock
1019 #: ../cat/virt-filesystems.pod:117
1020 msgid "See also I<--long>."
1021 msgstr ""
1022
1023 #. type: =item
1024 #: ../cat/virt-filesystems.pod:119
1025 msgid "B<--blkdevs>"
1026 msgstr ""
1027
1028 #. type: =item
1029 #: ../cat/virt-filesystems.pod:121
1030 msgid "B<--block-devices>"
1031 msgstr ""
1032
1033 #. type: textblock
1034 #: ../cat/virt-filesystems.pod:123
1035 msgid "Display block devices."
1036 msgstr ""
1037
1038 #. type: =item
1039 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1040 msgid "B<--csv>"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1045 msgid ""
1046 "Write out the results in CSV format (comma-separated values).  This format "
1047 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1048 "ABOUT CSV FORMAT> below."
1049 msgstr ""
1050
1051 #. type: textblock
1052 #: ../cat/virt-filesystems.pod:150
1053 msgid ""
1054 "When prompting for keys and passphrases, virt-filesystems normally turns "
1055 "echoing off so you cannot see what you are typing.  If you are not worried "
1056 "about Tempest attacks and there is no one else in the room you can specify "
1057 "this flag to see what you are typing."
1058 msgstr ""
1059
1060 #. type: =item
1061 #: ../cat/virt-filesystems.pod:155
1062 msgid "B<--extra>"
1063 msgstr ""
1064
1065 #. type: textblock
1066 #: ../cat/virt-filesystems.pod:157
1067 msgid ""
1068 "This causes filesystems that are not ordinary, mountable filesystems to be "
1069 "displayed.  This category includes swapspace, and filesystems that are empty "
1070 "or contain unknown data."
1071 msgstr ""
1072
1073 #. type: textblock
1074 #: ../cat/virt-filesystems.pod:161
1075 msgid "This option implies I<--filesystems>."
1076 msgstr ""
1077
1078 #. type: =item
1079 #: ../cat/virt-filesystems.pod:163
1080 msgid "B<--filesystems>"
1081 msgstr ""
1082
1083 #. type: textblock
1084 #: ../cat/virt-filesystems.pod:165
1085 msgid ""
1086 "Display mountable filesystems.  If no display option was selected then this "
1087 "option is implied."
1088 msgstr ""
1089
1090 #. type: textblock
1091 #: ../cat/virt-filesystems.pod:168
1092 msgid "With I<--extra>, non-mountable filesystems are shown too."
1093 msgstr ""
1094
1095 #. type: verbatim
1096 #: ../cat/virt-filesystems.pod:181
1097 #, no-wrap
1098 msgid ""
1099 " virt-filesystems --format=raw -a disk.img\n"
1100 "\n"
1101 msgstr ""
1102
1103 #. type: verbatim
1104 #: ../cat/virt-filesystems.pod:185
1105 #, no-wrap
1106 msgid ""
1107 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1108 "\n"
1109 msgstr ""
1110
1111 #. type: =item
1112 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1113 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1114 #: ../tools/virt-list-partitions.pl:109
1115 msgid "B<-h>"
1116 msgstr ""
1117
1118 #. type: =item
1119 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1120 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1121 msgid "B<--human-readable>"
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:198
1126 msgid "In I<--long> mode, display sizes in human-readable format."
1127 msgstr ""
1128
1129 #. type: =item
1130 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1131 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1132 msgid "B<-l>"
1133 msgstr ""
1134
1135 #. type: =item
1136 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1137 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1138 msgid "B<--long>"
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../cat/virt-filesystems.pod:209
1143 msgid "Display extra columns of data (\"long format\")."
1144 msgstr ""
1145
1146 #. type: textblock
1147 #: ../cat/virt-filesystems.pod:211
1148 msgid "A title row is added unless you also specify I<--no-title>."
1149 msgstr ""
1150
1151 #. type: textblock
1152 #: ../cat/virt-filesystems.pod:213
1153 msgid ""
1154 "The extra columns displayed depend on what output you select, and the "
1155 "ordering of columns may change in future versions.  Use the title row, I<--"
1156 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1157 "programs."
1158 msgstr ""
1159
1160 #. type: textblock
1161 #: ../cat/virt-filesystems.pod:218
1162 msgid ""
1163 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1164 "default is to show raw numbers of I<bytes>."
1165 msgstr ""
1166
1167 #. type: textblock
1168 #: ../cat/virt-filesystems.pod:221
1169 msgid "Use I<--uuid> to display UUIDs too."
1170 msgstr ""
1171
1172 #. type: =item
1173 #: ../cat/virt-filesystems.pod:223
1174 msgid "B<--lvs>"
1175 msgstr ""
1176
1177 #. type: =item
1178 #: ../cat/virt-filesystems.pod:225
1179 msgid "B<--logvols>"
1180 msgstr ""
1181
1182 #. type: =item
1183 #: ../cat/virt-filesystems.pod:227
1184 msgid "B<--logical-volumes>"
1185 msgstr ""
1186
1187 #. type: textblock
1188 #: ../cat/virt-filesystems.pod:229
1189 msgid ""
1190 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1191 "of whether the LVs contain filesystems."
1192 msgstr ""
1193
1194 #. type: =item
1195 #: ../cat/virt-filesystems.pod:232
1196 msgid "B<--no-title>"
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:234
1201 msgid "In I<--long> mode, don't add a title row."
1202 msgstr ""
1203
1204 #. type: textblock
1205 #: ../cat/virt-filesystems.pod:236
1206 msgid ""
1207 "Note that the order of the columns is not fixed, and may change in future "
1208 "versions of virt-filesystems, so using this option may give you unexpected "
1209 "surprises."
1210 msgstr ""
1211
1212 #. type: =item
1213 #: ../cat/virt-filesystems.pod:240
1214 msgid "B<--parts>"
1215 msgstr ""
1216
1217 #. type: =item
1218 #: ../cat/virt-filesystems.pod:242
1219 msgid "B<--partitions>"
1220 msgstr ""
1221
1222 #. type: textblock
1223 #: ../cat/virt-filesystems.pod:244
1224 msgid ""
1225 "Display partitions.  In this mode, these are displayed irrespective of "
1226 "whether the partitions contain filesystems."
1227 msgstr ""
1228
1229 #. type: =item
1230 #: ../cat/virt-filesystems.pod:247
1231 msgid "B<--pvs>"
1232 msgstr ""
1233
1234 #. type: =item
1235 #: ../cat/virt-filesystems.pod:249
1236 msgid "B<--physvols>"
1237 msgstr ""
1238
1239 #. type: =item
1240 #: ../cat/virt-filesystems.pod:251
1241 msgid "B<--physical-volumes>"
1242 msgstr ""
1243
1244 #. type: textblock
1245 #: ../cat/virt-filesystems.pod:253
1246 msgid "Display LVM physical volumes."
1247 msgstr ""
1248
1249 #. type: =item
1250 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1251 msgid "B<--uuid>"
1252 msgstr ""
1253
1254 #. type: =item
1255 #: ../cat/virt-filesystems.pod:257
1256 msgid "B<--uuids>"
1257 msgstr ""
1258
1259 #. type: textblock
1260 #: ../cat/virt-filesystems.pod:259
1261 msgid "In I<--long> mode, display UUIDs as well."
1262 msgstr ""
1263
1264 #. type: =item
1265 #: ../cat/virt-filesystems.pod:273
1266 msgid "B<--vgs>"
1267 msgstr ""
1268
1269 #. type: =item
1270 #: ../cat/virt-filesystems.pod:275
1271 msgid "B<--volgroups>"
1272 msgstr ""
1273
1274 #. type: =item
1275 #: ../cat/virt-filesystems.pod:277
1276 msgid "B<--volume-groups>"
1277 msgstr ""
1278
1279 #. type: textblock
1280 #: ../cat/virt-filesystems.pod:279
1281 msgid "Display LVM volume groups."
1282 msgstr ""
1283
1284 #. type: =head1
1285 #: ../cat/virt-filesystems.pod:287
1286 msgid "COLUMNS"
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-filesystems.pod:289
1291 msgid ""
1292 "Note that columns in the output are subject to reordering and change in "
1293 "future versions of this tool."
1294 msgstr ""
1295
1296 #. type: =item
1297 #: ../cat/virt-filesystems.pod:294
1298 msgid "B<Name>"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../cat/virt-filesystems.pod:296
1303 msgid "The filesystem, partition, block device or LVM name."
1304 msgstr ""
1305
1306 #. type: textblock
1307 #: ../cat/virt-filesystems.pod:298
1308 msgid ""
1309 "For device and partition names these are displayed as canonical libguestfs "
1310 "names, so that for example C</dev/sda2> is the second partition on the first "
1311 "device."
1312 msgstr ""
1313
1314 #. type: textblock
1315 #: ../cat/virt-filesystems.pod:302
1316 msgid ""
1317 "If the I<--long> option is B<not> specified, then only the name column is "
1318 "shown in the output."
1319 msgstr ""
1320
1321 #. type: =item
1322 #: ../cat/virt-filesystems.pod:305
1323 msgid "B<Type>"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-filesystems.pod:307
1328 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1329 msgstr ""
1330
1331 #. type: =item
1332 #: ../cat/virt-filesystems.pod:309
1333 msgid "B<VFS>"
1334 msgstr ""
1335
1336 #. type: textblock
1337 #: ../cat/virt-filesystems.pod:311
1338 msgid ""
1339 "If there is a filesystem, then this column displays the filesystem type if "
1340 "one could be detected, eg. C<ext4>."
1341 msgstr ""
1342
1343 #. type: =item
1344 #: ../cat/virt-filesystems.pod:314
1345 msgid "B<Label>"
1346 msgstr ""
1347
1348 #. type: textblock
1349 #: ../cat/virt-filesystems.pod:316
1350 msgid ""
1351 "If the object has a label (used for identifying and mounting filesystems) "
1352 "then this column contains the label."
1353 msgstr ""
1354
1355 #. type: =item
1356 #: ../cat/virt-filesystems.pod:319
1357 msgid "B<Size>"
1358 msgstr ""
1359
1360 #. type: textblock
1361 #: ../cat/virt-filesystems.pod:321
1362 msgid ""
1363 "The size of the object in bytes.  If the I<--human> option is used then the "
1364 "size is displayed in a human-readable form."
1365 msgstr ""
1366
1367 #. type: =item
1368 #: ../cat/virt-filesystems.pod:324
1369 msgid "B<Parent>"
1370 msgstr ""
1371
1372 #. type: textblock
1373 #: ../cat/virt-filesystems.pod:326
1374 msgid ""
1375 "The parent column records the parent relationship between objects.  For "
1376 "example, if the object is a partition, then this column contains the name of "
1377 "the containing device.  If the object is a logical volume, then this column "
1378 "is the name of the volume group."
1379 msgstr ""
1380
1381 #. type: =item
1382 #: ../cat/virt-filesystems.pod:331
1383 msgid "B<UUID>"
1384 msgstr ""
1385
1386 #. type: textblock
1387 #: ../cat/virt-filesystems.pod:333
1388 msgid ""
1389 "If the object has a UUID (used for identifying and mounting filesystems and "
1390 "block devices) then this column contains the UUID as a string."
1391 msgstr ""
1392
1393 #. type: textblock
1394 #: ../cat/virt-filesystems.pod:337
1395 msgid "The UUID is only displayed if the I<--uuid> option is given."
1396 msgstr ""
1397
1398 #. type: =head1
1399 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1400 #: ../df/virt-df.pod:191
1401 msgid "NOTE ABOUT CSV FORMAT"
1402 msgstr ""
1403
1404 #. type: textblock
1405 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1406 #: ../df/virt-df.pod:193
1407 msgid ""
1408 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1409 "should be easy to parse, but it is definitely not easy to parse."
1410 msgstr ""
1411
1412 #. type: textblock
1413 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1414 #: ../df/virt-df.pod:196
1415 msgid ""
1416 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1417 "reliably.  This example has two columns:"
1418 msgstr ""
1419
1420 #. type: verbatim
1421 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1422 #: ../df/virt-df.pod:199
1423 #, no-wrap
1424 msgid ""
1425 " \"foo,bar\",baz\n"
1426 "\n"
1427 msgstr ""
1428
1429 #. type: textblock
1430 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1431 #: ../df/virt-df.pod:201
1432 msgid ""
1433 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1434 "reliably.  This example has one row:"
1435 msgstr ""
1436
1437 #. type: verbatim
1438 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1439 #: ../df/virt-df.pod:204
1440 #, no-wrap
1441 msgid ""
1442 " \"foo\n"
1443 " bar\",baz\n"
1444 "\n"
1445 msgstr ""
1446
1447 #. type: textblock
1448 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1449 #: ../df/virt-df.pod:207
1450 msgid ""
1451 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1452 "packaged in major Linux distributions)."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1457 #: ../df/virt-df.pod:210
1458 msgid ""
1459 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1460 "or Python's built-in csv library)."
1461 msgstr ""
1462
1463 #. type: textblock
1464 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1465 #: ../df/virt-df.pod:213
1466 msgid "Most spreadsheets and databases can import CSV directly."
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-filesystems.pod:379
1471 msgid ""
1472 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1473 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1474 "libguestfs.org/>."
1475 msgstr ""
1476
1477 #. type: textblock
1478 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1479 #: ../tools/virt-win-reg.pl:778
1480 msgid "Copyright (C) 2010 Red Hat Inc."
1481 msgstr ""
1482
1483 #. type: textblock
1484 #: ../cat/virt-ls.pod:5
1485 msgid "virt-ls - List files in a virtual machine"
1486 msgstr ""
1487
1488 #. type: verbatim
1489 #: ../cat/virt-ls.pod:9
1490 #, no-wrap
1491 msgid ""
1492 " virt-ls [--options] -d domname directory [directory ...]\n"
1493 "\n"
1494 msgstr ""
1495
1496 #. type: verbatim
1497 #: ../cat/virt-ls.pod:11
1498 #, no-wrap
1499 msgid ""
1500 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1501 "\n"
1502 msgstr ""
1503
1504 #. type: textblock
1505 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1506 msgid "Old style:"
1507 msgstr ""
1508
1509 #. type: verbatim
1510 #: ../cat/virt-ls.pod:15
1511 #, no-wrap
1512 msgid ""
1513 " virt-ls [--options] domname directory\n"
1514 "\n"
1515 msgstr ""
1516
1517 #. type: verbatim
1518 #: ../cat/virt-ls.pod:17
1519 #, no-wrap
1520 msgid ""
1521 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1522 "\n"
1523 msgstr ""
1524
1525 #. type: textblock
1526 #: ../cat/virt-ls.pod:21
1527 msgid ""
1528 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1529 "more from a virtual machine or disk image."
1530 msgstr ""
1531
1532 #. type: textblock
1533 #: ../cat/virt-ls.pod:24
1534 msgid ""
1535 "Multiple directory names can be given, in which case the output from each is "
1536 "concatenated."
1537 msgstr ""
1538
1539 #. type: textblock
1540 #: ../cat/virt-ls.pod:27
1541 msgid ""
1542 "To list directories from a libvirt guest use the I<-d> option to specify the "
1543 "name of the guest.  For a disk image, use the I<-a> option."
1544 msgstr ""
1545
1546 #. type: textblock
1547 #: ../cat/virt-ls.pod:31
1548 msgid ""
1549 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1550 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1551 "(3)> API."
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-ls.pod:37
1556 msgid "Get a list of all files and directories in a virtual machine:"
1557 msgstr ""
1558
1559 #. type: verbatim
1560 #: ../cat/virt-ls.pod:39
1561 #, no-wrap
1562 msgid ""
1563 " virt-ls -R -d guest /\n"
1564 "\n"
1565 msgstr ""
1566
1567 #. type: textblock
1568 #: ../cat/virt-ls.pod:41
1569 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1570 msgstr ""
1571
1572 #. type: verbatim
1573 #: ../cat/virt-ls.pod:43
1574 #, no-wrap
1575 msgid ""
1576 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1577 "\n"
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../cat/virt-ls.pod:45
1582 msgid "List all public-writable directories in a Linux virtual machine:"
1583 msgstr ""
1584
1585 #. type: verbatim
1586 #: ../cat/virt-ls.pod:47
1587 #, no-wrap
1588 msgid ""
1589 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1590 "\n"
1591 msgstr ""
1592
1593 #. type: textblock
1594 #: ../cat/virt-ls.pod:49
1595 msgid "List all Unix domain sockets in a Linux virtual machine:"
1596 msgstr ""
1597
1598 #. type: verbatim
1599 #: ../cat/virt-ls.pod:51
1600 #, no-wrap
1601 msgid ""
1602 " virt-ls -lR -d guest / | grep '^s'\n"
1603 "\n"
1604 msgstr ""
1605
1606 #. type: textblock
1607 #: ../cat/virt-ls.pod:53
1608 msgid "List all regular files with filenames ending in '.png':"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-ls.pod:55
1613 #, no-wrap
1614 msgid ""
1615 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1616 "\n"
1617 msgstr ""
1618
1619 #. type: textblock
1620 #: ../cat/virt-ls.pod:57
1621 msgid "To display files larger than 10MB in home directories:"
1622 msgstr ""
1623
1624 #. type: verbatim
1625 #: ../cat/virt-ls.pod:59
1626 #, no-wrap
1627 msgid ""
1628 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1629 "\n"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-ls.pod:61
1634 msgid "Find everything modified in the last 7 days:"
1635 msgstr ""
1636
1637 #. type: verbatim
1638 #: ../cat/virt-ls.pod:63
1639 #, no-wrap
1640 msgid ""
1641 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1642 "\n"
1643 msgstr ""
1644
1645 #. type: textblock
1646 #: ../cat/virt-ls.pod:65
1647 msgid "Find regular files modified in the last 24 hours:"
1648 msgstr ""
1649
1650 #. type: verbatim
1651 #: ../cat/virt-ls.pod:67
1652 #, no-wrap
1653 msgid ""
1654 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1655 "\n"
1656 msgstr ""
1657
1658 #. type: =head2
1659 #: ../cat/virt-ls.pod:69
1660 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:71
1665 msgid ""
1666 "Find the differences between files in a guest and an earlier snapshot of the "
1667 "same guest."
1668 msgstr ""
1669
1670 #. type: verbatim
1671 #: ../cat/virt-ls.pod:74
1672 #, no-wrap
1673 msgid ""
1674 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1675 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1676 " diff -u old new | less\n"
1677 "\n"
1678 msgstr ""
1679
1680 #. type: textblock
1681 #: ../cat/virt-ls.pod:78
1682 msgid ""
1683 "The commands above won't find files where the content has changed but the "
1684 "metadata (eg. file size and modification date) is the same.  To do that, you "
1685 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1686 "checksum> can be quite slow since it has to read and compute a checksum of "
1687 "every regular file in the virtual machine."
1688 msgstr ""
1689
1690 #. type: =head1
1691 #: ../cat/virt-ls.pod:84
1692 msgid "OUTPUT MODES"
1693 msgstr ""
1694
1695 #. type: textblock
1696 #: ../cat/virt-ls.pod:86
1697 msgid ""
1698 "C<virt-ls> has four output modes, controlled by different combinations of "
1699 "the I<-l> and I<-R> options."
1700 msgstr ""
1701
1702 #. type: =head2
1703 #: ../cat/virt-ls.pod:89
1704 msgid "SIMPLE LISTING"
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-ls.pod:91
1709 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1710 msgstr ""
1711
1712 #. type: verbatim
1713 #: ../cat/virt-ls.pod:93
1714 #, no-wrap
1715 msgid ""
1716 " $ virt-ls -d guest /\n"
1717 " bin\n"
1718 " boot\n"
1719 " [etc.]\n"
1720 "\n"
1721 msgstr ""
1722
1723 #. type: =head2
1724 #: ../cat/virt-ls.pod:98
1725 msgid "LONG LISTING"
1726 msgstr ""
1727
1728 #. type: textblock
1729 #: ../cat/virt-ls.pod:100
1730 msgid ""
1731 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1732 "(more specifically, like the C<guestfs_ll> function)."
1733 msgstr ""
1734
1735 #. type: verbatim
1736 #: ../cat/virt-ls.pod:103
1737 #, no-wrap
1738 msgid ""
1739 " $ virt-ls -l -d guest /\n"
1740 " total 204\n"
1741 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1742 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1743 " [etc.]\n"
1744 "\n"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-ls.pod:109
1749 msgid ""
1750 "Note that while this is useful for displaying a directory, do not try "
1751 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1752 "instead."
1753 msgstr ""
1754
1755 #. type: =head2
1756 #: ../cat/virt-ls.pod:113
1757 msgid "RECURSIVE LISTING"
1758 msgstr ""
1759
1760 #. type: textblock
1761 #: ../cat/virt-ls.pod:115
1762 msgid ""
1763 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1764 "and directories recursively:"
1765 msgstr ""
1766
1767 #. type: verbatim
1768 #: ../cat/virt-ls.pod:118
1769 #, no-wrap
1770 msgid ""
1771 " $ virt-ls -R -d guest /tmp\n"
1772 " foo\n"
1773 " foo/bar\n"
1774 " [etc.]\n"
1775 "\n"
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../cat/virt-ls.pod:123
1780 msgid ""
1781 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1782 "converts C<\\0> characters to C<\\n>."
1783 msgstr ""
1784
1785 #. type: =head2
1786 #: ../cat/virt-ls.pod:126
1787 msgid "RECURSIVE LONG LISTING"
1788 msgstr ""
1789
1790 #. type: textblock
1791 #: ../cat/virt-ls.pod:128
1792 msgid ""
1793 "Using I<-lR> options together changes the output to display directories "
1794 "recursively, with file stats, and optionally other features such as "
1795 "checksums and extended attributes."
1796 msgstr ""
1797
1798 #. type: textblock
1799 #: ../cat/virt-ls.pod:132
1800 msgid ""
1801 "Most of the interesting features of C<virt-ls> are only available when using "
1802 "I<-lR> mode."
1803 msgstr ""
1804
1805 #. type: textblock
1806 #: ../cat/virt-ls.pod:135
1807 msgid ""
1808 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1809 "you cannot use the output in another program (because filenames can contain "
1810 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1811 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1812 "on you by creating filenames with embedded newline characters.  To B<safely> "
1813 "parse the output in another program, use the I<--csv> (Comma-Separated "
1814 "Values) option."
1815 msgstr ""
1816
1817 #. type: textblock
1818 #: ../cat/virt-ls.pod:143
1819 msgid ""
1820 "Note that this output format is completely unrelated to the C<ls -lR> "
1821 "command."
1822 msgstr ""
1823
1824 #. type: verbatim
1825 #: ../cat/virt-ls.pod:146
1826 #, no-wrap
1827 msgid ""
1828 " $ virt-ls -lR -d guest /bin\n"
1829 " d 0555       4096 /bin\n"
1830 " - 0755        123 /bin/alsaunmute\n"
1831 " - 0755      28328 /bin/arch\n"
1832 " l 0777          4 /bin/awk -> gawk\n"
1833 " - 0755      27216 /bin/basename\n"
1834 " - 0755     943360 /bin/bash\n"
1835 " [etc.]\n"
1836 "\n"
1837 msgstr ""
1838
1839 #. type: textblock
1840 #: ../cat/virt-ls.pod:155
1841 msgid "These basic fields are always shown:"
1842 msgstr ""
1843
1844 #. type: =item
1845 #: ../cat/virt-ls.pod:159
1846 msgid "type"
1847 msgstr ""
1848
1849 #. type: textblock
1850 #: ../cat/virt-ls.pod:161
1851 msgid ""
1852 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1853 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1854 "link), C<s> (socket) or C<u> (unknown)."
1855 msgstr ""
1856
1857 #. type: =item
1858 #: ../cat/virt-ls.pod:171
1859 msgid "permissions"
1860 msgstr ""
1861
1862 #. type: textblock
1863 #: ../cat/virt-ls.pod:173
1864 msgid "The Unix permissions, displayed as a 4 digit octal number."
1865 msgstr ""
1866
1867 #. type: =item
1868 #: ../cat/virt-ls.pod:175
1869 msgid "size"
1870 msgstr ""
1871
1872 #. type: textblock
1873 #: ../cat/virt-ls.pod:177
1874 msgid ""
1875 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
1876 "readable> option is given, in which case this is shown as a human-readable "
1877 "number."
1878 msgstr ""
1879
1880 #. type: =head2
1881 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
1882 msgid "path"
1883 msgstr ""
1884
1885 #. type: textblock
1886 #: ../cat/virt-ls.pod:183
1887 msgid "The full path of the file or directory."
1888 msgstr ""
1889
1890 #. type: =item
1891 #: ../cat/virt-ls.pod:185
1892 msgid "link"
1893 msgstr ""
1894
1895 #. type: textblock
1896 #: ../cat/virt-ls.pod:187
1897 msgid "For symbolic links only, the link target."
1898 msgstr ""
1899
1900 #. type: textblock
1901 #: ../cat/virt-ls.pod:191
1902 msgid ""
1903 "In I<-lR> mode, additional command line options enable the display of more "
1904 "fields."
1905 msgstr ""
1906
1907 #. type: textblock
1908 #: ../cat/virt-ls.pod:194
1909 msgid ""
1910 "With the I<--uids> flag, these additional fields are displayed before the "
1911 "path:"
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-ls.pod:199
1916 msgid "uid"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-ls.pod:201
1921 msgid "gid"
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-ls.pod:203
1926 msgid ""
1927 "The UID and GID of the owner of the file (displayed numerically).  Note "
1928 "these only make sense in the context of a Unix-like guest."
1929 msgstr ""
1930
1931 #. type: textblock
1932 #: ../cat/virt-ls.pod:208
1933 msgid "With the I<--times> flag, these additional fields are displayed:"
1934 msgstr ""
1935
1936 #. type: =item
1937 #: ../cat/virt-ls.pod:212
1938 msgid "atime"
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-ls.pod:214
1943 msgid "The time of last access."
1944 msgstr ""
1945
1946 #. type: =item
1947 #: ../cat/virt-ls.pod:216
1948 msgid "mtime"
1949 msgstr ""
1950
1951 #. type: textblock
1952 #: ../cat/virt-ls.pod:218
1953 msgid "The time of last modification."
1954 msgstr ""
1955
1956 #. type: =item
1957 #: ../cat/virt-ls.pod:220
1958 msgid "ctime"
1959 msgstr ""
1960
1961 #. type: textblock
1962 #: ../cat/virt-ls.pod:222
1963 msgid "The time of last status change."
1964 msgstr ""
1965
1966 #. type: textblock
1967 #: ../cat/virt-ls.pod:226
1968 msgid ""
1969 "The time fields are displayed as string dates and times, unless one of the "
1970 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-ls.pod:229
1975 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-ls.pod:233
1980 msgid "device"
1981 msgstr ""
1982
1983 #. type: textblock
1984 #: ../cat/virt-ls.pod:235
1985 msgid ""
1986 "The device containing the file (displayed as major:minor).  This may not "
1987 "match devices as known to the guest."
1988 msgstr ""
1989
1990 #. type: =item
1991 #: ../cat/virt-ls.pod:238
1992 msgid "inode"
1993 msgstr ""
1994
1995 #. type: textblock
1996 #: ../cat/virt-ls.pod:240
1997 msgid "The inode number."
1998 msgstr ""
1999
2000 #. type: =item
2001 #: ../cat/virt-ls.pod:242
2002 msgid "nlink"
2003 msgstr ""
2004
2005 #. type: textblock
2006 #: ../cat/virt-ls.pod:244
2007 msgid "The number of hard links."
2008 msgstr ""
2009
2010 #. type: =item
2011 #: ../cat/virt-ls.pod:246
2012 msgid "rdev"
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-ls.pod:248
2017 msgid ""
2018 "For block and char special files, the device (displayed as major:minor)."
2019 msgstr ""
2020
2021 #. type: =item
2022 #: ../cat/virt-ls.pod:251
2023 msgid "blocks"
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../cat/virt-ls.pod:253
2028 msgid "The number of 512 byte blocks allocated to the file."
2029 msgstr ""
2030
2031 #. type: textblock
2032 #: ../cat/virt-ls.pod:257
2033 msgid ""
2034 "With the I<--checksum> flag, the checksum of the file contents is shown "
2035 "(only for regular files).  Computing file checksums can take a considerable "
2036 "amount of time."
2037 msgstr ""
2038
2039 #. type: =item
2040 #: ../cat/virt-ls.pod:280
2041 msgid "B<--checksum>"
2042 msgstr ""
2043
2044 #. type: =item
2045 #: ../cat/virt-ls.pod:282
2046 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2047 msgstr ""
2048
2049 #. type: textblock
2050 #: ../cat/virt-ls.pod:284
2051 msgid ""
2052 "Display checksum over file contents for regular files.  With no argument, "
2053 "this defaults to using I<md5>.  Using an argument, you can select the "
2054 "checksum type to use."
2055 msgstr ""
2056
2057 #. type: textblock
2058 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2059 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2060 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2061 msgid ""
2062 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2063 "LISTING> above."
2064 msgstr ""
2065
2066 #. type: textblock
2067 #: ../cat/virt-ls.pod:316
2068 msgid ""
2069 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2070 "so you cannot see what you are typing.  If you are not worried about Tempest "
2071 "attacks and there is no one else in the room you can specify this flag to "
2072 "see what you are typing."
2073 msgstr ""
2074
2075 #. type: =item
2076 #: ../cat/virt-ls.pod:321
2077 msgid "B<--extra-stats>"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../cat/virt-ls.pod:323
2082 msgid "Display extra stats."
2083 msgstr ""
2084
2085 #. type: verbatim
2086 #: ../cat/virt-ls.pod:339
2087 #, no-wrap
2088 msgid ""
2089 " virt-ls --format=raw -a disk.img /dir\n"
2090 "\n"
2091 msgstr ""
2092
2093 #. type: verbatim
2094 #: ../cat/virt-ls.pod:343
2095 #, no-wrap
2096 msgid ""
2097 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2098 "\n"
2099 msgstr ""
2100
2101 #. type: textblock
2102 #: ../cat/virt-ls.pod:356
2103 msgid "Display file sizes in human-readable format."
2104 msgstr ""
2105
2106 #. type: =item
2107 #: ../cat/virt-ls.pod:370
2108 msgid "B<-R>"
2109 msgstr ""
2110
2111 #. type: =item
2112 #: ../cat/virt-ls.pod:372
2113 msgid "B<--recursive>"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:374
2118 msgid ""
2119 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2120 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2121 "LISTING>."
2122 msgstr ""
2123
2124 #. type: textblock
2125 #: ../cat/virt-ls.pod:378
2126 msgid ""
2127 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2128 "LONG LISTING>."
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../cat/virt-ls.pod:381
2133 msgid ""
2134 "C<virt-ls -R> produces a recursive list of files starting at the named "
2135 "directory.  See L</RECURSIVE LISTING>."
2136 msgstr ""
2137
2138 #. type: textblock
2139 #: ../cat/virt-ls.pod:384
2140 msgid ""
2141 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2142 "parsed.  See L</RECURSIVE LONG LISTING>."
2143 msgstr ""
2144
2145 #. type: =item
2146 #: ../cat/virt-ls.pod:387
2147 msgid "B<--times>"
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../cat/virt-ls.pod:389
2152 msgid "Display time fields."
2153 msgstr ""
2154
2155 #. type: =item
2156 #: ../cat/virt-ls.pod:394
2157 msgid "B<--time-days>"
2158 msgstr ""
2159
2160 #. type: textblock
2161 #: ../cat/virt-ls.pod:396
2162 msgid "Display time fields as days before now (negative if in the future)."
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../cat/virt-ls.pod:398
2167 msgid ""
2168 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2169 "of the file is between 0 and 86399 seconds."
2170 msgstr ""
2171
2172 #. type: =item
2173 #: ../cat/virt-ls.pod:404
2174 msgid "B<--time-relative>"
2175 msgstr ""
2176
2177 #. type: textblock
2178 #: ../cat/virt-ls.pod:406
2179 msgid "Display time fields as seconds before now (negative if in the future)."
2180 msgstr ""
2181
2182 #. type: =item
2183 #: ../cat/virt-ls.pod:411
2184 msgid "B<--time-t>"
2185 msgstr ""
2186
2187 #. type: textblock
2188 #: ../cat/virt-ls.pod:413
2189 msgid "Display time fields as seconds since the Unix epoch."
2190 msgstr ""
2191
2192 #. type: =item
2193 #: ../cat/virt-ls.pod:418
2194 msgid "B<--uids>"
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../cat/virt-ls.pod:420
2199 msgid "Display UID and GID fields."
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-ls.pod:445
2204 msgid "Previous versions of virt-ls allowed you to write either:"
2205 msgstr ""
2206
2207 #. type: verbatim
2208 #: ../cat/virt-ls.pod:447
2209 #, no-wrap
2210 msgid ""
2211 " virt-ls disk.img [disk.img ...] /dir\n"
2212 "\n"
2213 msgstr ""
2214
2215 #. type: verbatim
2216 #: ../cat/virt-ls.pod:451
2217 #, no-wrap
2218 msgid ""
2219 " virt-ls guestname /dir\n"
2220 "\n"
2221 msgstr ""
2222
2223 #. type: textblock
2224 #: ../cat/virt-ls.pod:497
2225 msgid ""
2226 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2227 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2228 "L<http://libguestfs.org/>."
2229 msgstr ""
2230
2231 #. type: textblock
2232 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2233 #: ../rescue/virt-rescue.pod:302
2234 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../df/virt-df.pod:5
2239 msgid "virt-df - Display free space on virtual filesystems"
2240 msgstr ""
2241
2242 #. type: verbatim
2243 #: ../df/virt-df.pod:9
2244 #, no-wrap
2245 msgid ""
2246 " virt-df [--options]\n"
2247 "\n"
2248 msgstr ""
2249
2250 #. type: verbatim
2251 #: ../df/virt-df.pod:11
2252 #, no-wrap
2253 msgid ""
2254 " virt-df [--options] -d domname\n"
2255 "\n"
2256 msgstr ""
2257
2258 #. type: verbatim
2259 #: ../df/virt-df.pod:13
2260 #, no-wrap
2261 msgid ""
2262 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2263 "\n"
2264 msgstr ""
2265
2266 #. type: verbatim
2267 #: ../df/virt-df.pod:17
2268 #, no-wrap
2269 msgid ""
2270 " virt-df [--options] domname\n"
2271 "\n"
2272 msgstr ""
2273
2274 #. type: verbatim
2275 #: ../df/virt-df.pod:19
2276 #, no-wrap
2277 msgid ""
2278 " virt-df [--options] disk.img [disk.img ...]\n"
2279 "\n"
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../df/virt-df.pod:23
2284 msgid ""
2285 "C<virt-df> is a command line tool to display free space on virtual machine "
2286 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2287 "allocated to a virtual machine, but can look inside disk images to see how "
2288 "much space is really being used."
2289 msgstr ""
2290
2291 #. type: textblock
2292 #: ../df/virt-df.pod:28
2293 msgid ""
2294 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2295 "to get a list of all active and inactive guests, and performs a C<df>-type "
2296 "operation on each one in turn, printing out the results."
2297 msgstr ""
2298
2299 #. type: textblock
2300 #: ../df/virt-df.pod:32
2301 msgid ""
2302 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2303 "type operation on either the single named libvirt domain, or on the disk "
2304 "image(s) listed on the command line (which must all belong to a single VM).  "
2305 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2306 "guest>.  If you want to run on multiple guests, then you have to invoke "
2307 "C<virt-df> multiple times."
2308 msgstr ""
2309
2310 #. type: textblock
2311 #: ../df/virt-df.pod:39
2312 msgid ""
2313 "Use the I<--csv> option to get a format which can be easily parsed by other "
2314 "programs.  Other options are similar to the standard L<df(1)> command."
2315 msgstr ""
2316
2317 #. type: textblock
2318 #: ../df/virt-df.pod:45
2319 msgid ""
2320 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2321 "output human-readable:"
2322 msgstr ""
2323
2324 #. type: verbatim
2325 #: ../df/virt-df.pod:48
2326 #, no-wrap
2327 msgid ""
2328 " # virt-df -d F14x64 -h\n"
2329 " Filesystem                       Size     Used  Available  Use%\n"
2330 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2331 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2332 "\n"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../df/virt-df.pod:53
2337 msgid "Show disk usage for a disk image file called C<test.img>:"
2338 msgstr ""
2339
2340 #. type: verbatim
2341 #: ../df/virt-df.pod:55
2342 #, no-wrap
2343 msgid ""
2344 " $ virt-df -a test1.img\n"
2345 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2346 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2347 "\n"
2348 msgstr ""
2349
2350 #. type: verbatim
2351 #: ../df/virt-df.pod:112
2352 #, no-wrap
2353 msgid ""
2354 " virt-df --format=raw -a disk.img\n"
2355 "\n"
2356 msgstr ""
2357
2358 #. type: verbatim
2359 #: ../df/virt-df.pod:116
2360 #, no-wrap
2361 msgid ""
2362 " virt-df --format=raw -a disk.img --format -a another.img\n"
2363 "\n"
2364 msgstr ""
2365
2366 #. type: textblock
2367 #: ../df/virt-df.pod:129
2368 msgid "Print sizes in human-readable format."
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../df/virt-df.pod:131
2373 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2374 msgstr ""
2375
2376 #. type: =item
2377 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2378 msgid "B<-i>"
2379 msgstr ""
2380
2381 #. type: =item
2382 #: ../df/virt-df.pod:135
2383 msgid "B<--inodes>"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../df/virt-df.pod:137
2388 msgid "Print inodes instead of blocks."
2389 msgstr ""
2390
2391 #. type: =item
2392 #: ../df/virt-df.pod:139
2393 msgid "B<--one-per-guest>"
2394 msgstr ""
2395
2396 #. type: textblock
2397 #: ../df/virt-df.pod:141
2398 msgid ""
2399 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2400 "disks from several guests to a single libguestfs appliance."
2401 msgstr ""
2402
2403 #. type: textblock
2404 #: ../df/virt-df.pod:144
2405 msgid "You might use this option in the following circumstances:"
2406 msgstr ""
2407
2408 #. type: =item
2409 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2410 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2411 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2412 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2413 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2414 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2415 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2416 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2417 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2418 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2419 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2420 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2421 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2422 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2423 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2424 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2425 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2426 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2427 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2428 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2429 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2430 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2431 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2432 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2433 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2434 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2435 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2436 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2437 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
2438 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
2439 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
2440 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
2441 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2442 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2443 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2444 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2445 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
2446 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2447 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
2448 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
2449 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
2450 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
2451 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
2452 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
2453 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
2454 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
2455 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
2456 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
2457 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
2458 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
2459 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
2460 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
2461 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
2462 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
2463 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
2464 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
2465 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
2466 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
2467 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
2468 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2959
2469 #: ../src/guestfs.pod:2964 ../src/guestfs.pod:2968 ../src/guestfs.pod:2972
2470 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2990 ../src/guestfs.pod:2995
2471 #: ../src/guestfs.pod:3223 ../src/guestfs.pod:3227 ../src/guestfs.pod:3231
2472 #: ../src/guestfs.pod:3235 ../tools/virt-win-reg.pl:197
2473 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
2474 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
2475 #: ../tools/virt-win-reg.pl:722
2476 msgid "*"
2477 msgstr ""
2478
2479 #. type: textblock
2480 #: ../df/virt-df.pod:150
2481 msgid ""
2482 "If you think an untrusted guest might actively try to exploit the libguestfs "
2483 "appliance kernel, then this prevents one guest from interfering with the "
2484 "stats printed for another guest."
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../df/virt-df.pod:156
2489 msgid ""
2490 "If the kernel has a bug which stops it from accessing a filesystem in one "
2491 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2492 "and report stats for further guests."
2493 msgstr ""
2494
2495 #. type: textblock
2496 #: ../df/virt-df.pod:165
2497 msgid ""
2498 "Print UUIDs instead of names.  This is useful for following a guest even "
2499 "when the guest is migrated or renamed, or when two guests happen to have the "
2500 "same name."
2501 msgstr ""
2502
2503 #. type: textblock
2504 #: ../df/virt-df.pod:169
2505 msgid ""
2506 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2507 "images, we still print the disk image name even when this option is "
2508 "specified."
2509 msgstr ""
2510
2511 #. type: textblock
2512 #: ../df/virt-df.pod:229
2513 msgid ""
2514 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2515 "libguestfs.org/>."
2516 msgstr ""
2517
2518 #. type: textblock
2519 #: ../edit/virt-edit.pod:5
2520 msgid "virt-edit - Edit a file in a virtual machine"
2521 msgstr ""
2522
2523 #. type: verbatim
2524 #: ../edit/virt-edit.pod:9
2525 #, no-wrap
2526 msgid ""
2527 " virt-edit [--options] -d domname file [file ...]\n"
2528 "\n"
2529 msgstr ""
2530
2531 #. type: verbatim
2532 #: ../edit/virt-edit.pod:11
2533 #, no-wrap
2534 msgid ""
2535 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2536 "\n"
2537 msgstr ""
2538
2539 #. type: verbatim
2540 #: ../edit/virt-edit.pod:13
2541 #, no-wrap
2542 msgid ""
2543 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2544 "\n"
2545 msgstr ""
2546
2547 #. type: verbatim
2548 #: ../edit/virt-edit.pod:17
2549 #, no-wrap
2550 msgid ""
2551 " virt-edit domname file\n"
2552 "\n"
2553 msgstr ""
2554
2555 #. type: verbatim
2556 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2557 #, no-wrap
2558 msgid ""
2559 " virt-edit disk.img [disk.img ...] file\n"
2560 "\n"
2561 msgstr ""
2562
2563 #. type: =head1
2564 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2565 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2566 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2567 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2568 msgid "WARNING"
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../edit/virt-edit.pod:23
2573 msgid ""
2574 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2575 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2576 "doing this, but doesn't catch all cases."
2577 msgstr ""
2578
2579 #. type: textblock
2580 #: ../edit/virt-edit.pod:29
2581 msgid ""
2582 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2583 "exists in the named virtual machine (or disk image)."
2584 msgstr ""
2585
2586 #. type: textblock
2587 #: ../edit/virt-edit.pod:32
2588 msgid ""
2589 "Multiple filenames can be given, in which case they are each edited in "
2590 "turn.  Each filename must be a full path, starting at the root directory "
2591 "(starting with '/')."
2592 msgstr ""
2593
2594 #. type: textblock
2595 #: ../edit/virt-edit.pod:36
2596 msgid "If you want to just view a file, use L<virt-cat(1)>."
2597 msgstr ""
2598
2599 #. type: textblock
2600 #: ../edit/virt-edit.pod:38
2601 msgid ""
2602 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2603 "USING GUESTFISH> below)."
2604 msgstr ""
2605
2606 #. type: textblock
2607 #: ../edit/virt-edit.pod:41
2608 msgid ""
2609 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2610 "that and much more."
2611 msgstr ""
2612
2613 #. type: textblock
2614 #: ../edit/virt-edit.pod:46
2615 msgid "Edit the named files interactively:"
2616 msgstr ""
2617
2618 #. type: verbatim
2619 #: ../edit/virt-edit.pod:48
2620 #, no-wrap
2621 msgid ""
2622 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2623 "\n"
2624 msgstr ""
2625
2626 #. type: verbatim
2627 #: ../edit/virt-edit.pod:50
2628 #, no-wrap
2629 msgid ""
2630 " virt-edit -d mydomain /etc/passwd\n"
2631 "\n"
2632 msgstr ""
2633
2634 #. type: textblock
2635 #: ../edit/virt-edit.pod:52
2636 msgid "For Windows guests, some Windows paths are understood:"
2637 msgstr ""
2638
2639 #. type: verbatim
2640 #: ../edit/virt-edit.pod:54
2641 #, no-wrap
2642 msgid ""
2643 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2644 "\n"
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../edit/virt-edit.pod:56
2649 msgid ""
2650 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2651 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2652 msgstr ""
2653
2654 #. type: verbatim
2655 #: ../edit/virt-edit.pod:60
2656 #, no-wrap
2657 msgid ""
2658 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2659 "\n"
2660 msgstr ""
2661
2662 #. type: =item
2663 #: ../edit/virt-edit.pod:81
2664 msgid "B<-b> extension"
2665 msgstr ""
2666
2667 #. type: =item
2668 #: ../edit/virt-edit.pod:83
2669 msgid "B<--backup> extension"
2670 msgstr ""
2671
2672 #. type: textblock
2673 #: ../edit/virt-edit.pod:85
2674 msgid ""
2675 "Create a backup of the original file I<in the guest disk image>.  The backup "
2676 "has the original filename with C<extension> added."
2677 msgstr ""
2678
2679 #. type: textblock
2680 #: ../edit/virt-edit.pod:88
2681 msgid ""
2682 "Usually the first character of C<extension> would be a dot C<.> so you would "
2683 "write:"
2684 msgstr ""
2685
2686 #. type: verbatim
2687 #: ../edit/virt-edit.pod:91
2688 #, no-wrap
2689 msgid ""
2690 " virt-edit -b .orig [etc]\n"
2691 "\n"
2692 msgstr ""
2693
2694 #. type: textblock
2695 #: ../edit/virt-edit.pod:93
2696 msgid "By default, no backup file is made."
2697 msgstr ""
2698
2699 #. type: =item
2700 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2701 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2702 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2703 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2704 msgid "B<-c URI>"
2705 msgstr ""
2706
2707 #. type: =item
2708 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2709 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2710 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2711 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2712 msgid "B<--connect URI>"
2713 msgstr ""
2714
2715 #. type: textblock
2716 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2717 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2718 #: ../tools/virt-win-reg.pl:135
2719 msgid ""
2720 "If you specify guest block devices directly, then libvirt is not used at all."
2721 msgstr ""
2722
2723 #. type: textblock
2724 #: ../edit/virt-edit.pod:114
2725 msgid ""
2726 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2727 "off so you cannot see what you are typing.  If you are not worried about "
2728 "Tempest attacks and there is no one else in the room you can specify this "
2729 "flag to see what you are typing."
2730 msgstr ""
2731
2732 #. type: =item
2733 #: ../edit/virt-edit.pod:119
2734 msgid "B<-e> EXPR"
2735 msgstr ""
2736
2737 #. type: =item
2738 #: ../edit/virt-edit.pod:121
2739 msgid "B<--expr> EXPR"
2740 msgstr ""
2741
2742 #. type: textblock
2743 #: ../edit/virt-edit.pod:123
2744 msgid ""
2745 "Instead of launching the external editor, non-interactively apply the Perl "
2746 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2747 "EDITING> below."
2748 msgstr ""
2749
2750 #. type: textblock
2751 #: ../edit/virt-edit.pod:127
2752 msgid ""
2753 "Be careful to properly quote the expression to prevent it from being altered "
2754 "by the shell."
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../edit/virt-edit.pod:130
2759 msgid "Note that this option is only available when Perl 5 is installed."
2760 msgstr ""
2761
2762 #. type: =item
2763 #: ../edit/virt-edit.pod:132
2764 msgid "B<--format> raw|qcow2|..."
2765 msgstr ""
2766
2767 #. type: verbatim
2768 #: ../edit/virt-edit.pod:143
2769 #, no-wrap
2770 msgid ""
2771 " virt-edit --format=raw -a disk.img file\n"
2772 "\n"
2773 msgstr ""
2774
2775 #. type: verbatim
2776 #: ../edit/virt-edit.pod:147
2777 #, no-wrap
2778 msgid ""
2779 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2780 "\n"
2781 msgstr ""
2782
2783 #. type: textblock
2784 #: ../edit/virt-edit.pod:181
2785 msgid "Previous versions of virt-edit allowed you to write either:"
2786 msgstr ""
2787
2788 #. type: verbatim
2789 #: ../edit/virt-edit.pod:187
2790 #, no-wrap
2791 msgid ""
2792 " virt-edit guestname file\n"
2793 "\n"
2794 msgstr ""
2795
2796 #. type: =head1
2797 #: ../edit/virt-edit.pod:195
2798 msgid "NON-INTERACTIVE EDITING"
2799 msgstr ""
2800
2801 #. type: textblock
2802 #: ../edit/virt-edit.pod:197
2803 msgid ""
2804 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2805 "administrator can interactively edit the file."
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../edit/virt-edit.pod:200
2810 msgid ""
2811 "There are two ways also to use C<virt-edit> from scripts in order to make "
2812 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2813 "like this, it's less error-prone to write scripts directly using the "
2814 "libguestfs API and Augeas for configuration file editing.)"
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../edit/virt-edit.pod:206
2819 msgid ""
2820 "The first method is to temporarily set C<$EDITOR> to any script or program "
2821 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2822 "update C<tmpfile> in place however it likes."
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../edit/virt-edit.pod:210
2827 msgid ""
2828 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2829 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2830 "instances of C<foo> with C<bar> in a file:"
2831 msgstr ""
2832
2833 #. type: verbatim
2834 #: ../edit/virt-edit.pod:214
2835 #, no-wrap
2836 msgid ""
2837 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2838 "\n"
2839 msgstr ""
2840
2841 #. type: textblock
2842 #: ../edit/virt-edit.pod:216
2843 msgid ""
2844 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2845 "For example to delete root's password you could do:"
2846 msgstr ""
2847
2848 #. type: verbatim
2849 #: ../edit/virt-edit.pod:219
2850 #, no-wrap
2851 msgid ""
2852 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2853 "\n"
2854 msgstr ""
2855
2856 #. type: textblock
2857 #: ../edit/virt-edit.pod:221
2858 msgid ""
2859 "What really happens is that the snippet is evaluated as a Perl expression "
2860 "for each line of the file.  The line, including the final C<\\n>, is passed "
2861 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../edit/virt-edit.pod:226
2866 msgid ""
2867 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2868 "C<apache> user account from the password file you can do:"
2869 msgstr ""
2870
2871 #. type: verbatim
2872 #: ../edit/virt-edit.pod:229
2873 #, no-wrap
2874 msgid ""
2875 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2876 "\n"
2877 msgstr ""
2878
2879 #. type: textblock
2880 #: ../edit/virt-edit.pod:231
2881 msgid ""
2882 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2883 "the end of the file is rather difficult this way since there is no concept "
2884 "of \"last line of the file\" - your expression just doesn't get called "
2885 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2886 "want to do this."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../edit/virt-edit.pod:237
2891 msgid ""
2892 "The variable C<$lineno> contains the current line number.  As is "
2893 "traditional, the first line in the file is number C<1>."
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../edit/virt-edit.pod:240
2898 msgid ""
2899 "The return value from the expression is ignored, but the expression may call "
2900 "C<die> in order to abort the whole program, leaving the original file "
2901 "untouched."
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../edit/virt-edit.pod:244
2906 msgid ""
2907 "Remember when matching the end of a line that C<$_> may contain the final C<"
2908 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2909 "newline then neither of these.  Thus to match or substitute some text at the "
2910 "end of a line, use this regular expression:"
2911 msgstr ""
2912
2913 #. type: verbatim
2914 #: ../edit/virt-edit.pod:249
2915 #, no-wrap
2916 msgid ""
2917 " /some text(\\r?\\n)?$/\n"
2918 "\n"
2919 msgstr ""
2920
2921 #. type: textblock
2922 #: ../edit/virt-edit.pod:251
2923 msgid ""
2924 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2925 "$_> itself (since that would remove all newlines from the file):"
2926 msgstr ""
2927
2928 #. type: verbatim
2929 #: ../edit/virt-edit.pod:255
2930 #, no-wrap
2931 msgid ""
2932 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2933 "\n"
2934 msgstr ""
2935
2936 #. type: =head1
2937 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2938 msgid "WINDOWS PATHS"
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../edit/virt-edit.pod:259
2943 msgid ""
2944 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2945 "paths (eg. C<E:\\foo\\bar.txt>)."
2946 msgstr ""
2947
2948 #. type: textblock
2949 #: ../edit/virt-edit.pod:262
2950 msgid "If and only if the guest is running Windows then:"
2951 msgstr ""
2952
2953 #. type: textblock
2954 #: ../edit/virt-edit.pod:268
2955 msgid ""
2956 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2957 "to the correct filesystem."
2958 msgstr ""
2959
2960 #. type: textblock
2961 #: ../edit/virt-edit.pod:273
2962 msgid ""
2963 "Any backslash (C<\\>) characters in the path are replaced with forward "
2964 "slashes so that libguestfs can process it."
2965 msgstr ""
2966
2967 #. type: textblock
2968 #: ../edit/virt-edit.pod:278
2969 msgid ""
2970 "The path is resolved case insensitively to locate the file that should be "
2971 "edited."
2972 msgstr ""
2973
2974 #. type: textblock
2975 #: ../edit/virt-edit.pod:283
2976 msgid "There are some known shortcomings:"
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../edit/virt-edit.pod:289
2981 msgid "Some NTFS symbolic links may not be followed correctly."
2982 msgstr ""
2983
2984 #. type: textblock
2985 #: ../edit/virt-edit.pod:293
2986 msgid "NTFS junction points that cross filesystems are not followed."
2987 msgstr ""
2988
2989 #. type: textblock
2990 #: ../edit/virt-edit.pod:299
2991 msgid ""
2992 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2993 "C<virt-edit> doesn't work."
2994 msgstr ""
2995
2996 #. type: textblock
2997 #: ../edit/virt-edit.pod:302
2998 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2999 msgstr ""
3000
3001 #. type: verbatim
3002 #: ../edit/virt-edit.pod:304
3003 #, no-wrap
3004 msgid ""
3005 " guestfish --rw -i -d domname edit /file\n"
3006 "\n"
3007 msgstr ""
3008
3009 #. type: textblock
3010 #: ../edit/virt-edit.pod:306
3011 msgid ""
3012 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3013 "path to the file."
3014 msgstr ""
3015
3016 #. type: textblock
3017 #: ../edit/virt-edit.pod:309
3018 msgid ""
3019 "The command above uses libguestfs's guest inspection feature and so does not "
3020 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3021 "disk images that don't contain guests.  To edit a file on a disk image "
3022 "directly, use:"
3023 msgstr ""
3024
3025 #. type: verbatim
3026 #: ../edit/virt-edit.pod:314
3027 #, no-wrap
3028 msgid ""
3029 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3030 "\n"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../edit/virt-edit.pod:316
3035 msgid ""
3036 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3037 "the disk image to edit, and C</file> is the full path to the file."
3038 msgstr ""
3039
3040 #. type: textblock
3041 #: ../edit/virt-edit.pod:320
3042 msgid ""
3043 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3044 "C<write> or C<upload> instead:"
3045 msgstr ""
3046
3047 #. type: verbatim
3048 #: ../edit/virt-edit.pod:323
3049 #, no-wrap
3050 msgid ""
3051 " guestfish --rw -i -d domname touch /newfile\n"
3052 "\n"
3053 msgstr ""
3054
3055 #. type: verbatim
3056 #: ../edit/virt-edit.pod:325
3057 #, no-wrap
3058 msgid ""
3059 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3060 "\n"
3061 msgstr ""
3062
3063 #. type: verbatim
3064 #: ../edit/virt-edit.pod:327
3065 #, no-wrap
3066 msgid ""
3067 " guestfish --rw -i -d domname upload localfile /newfile\n"
3068 "\n"
3069 msgstr ""
3070
3071 #. type: =head1
3072 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3073 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3074 #: ../src/guestfs.pod:3106 ../test-tool/libguestfs-test-tool.pod:95
3075 msgid "ENVIRONMENT VARIABLES"
3076 msgstr ""
3077
3078 #. type: =item
3079 #: ../edit/virt-edit.pod:333
3080 msgid "C<EDITOR>"
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../edit/virt-edit.pod:335
3085 msgid ""
3086 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3087 "\"emacs -nw\">"
3088 msgstr ""
3089
3090 #. type: textblock
3091 #: ../edit/virt-edit.pod:338
3092 msgid "If not set, C<vi> is used."
3093 msgstr ""
3094
3095 #. type: textblock
3096 #: ../edit/virt-edit.pod:356
3097 msgid ""
3098 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3099 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3100 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../erlang/examples/guestfs-erlang.pod:5
3105 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3106 msgstr ""
3107
3108 #. type: verbatim
3109 #: ../erlang/examples/guestfs-erlang.pod:9
3110 #, no-wrap
3111 msgid ""
3112 " {ok, G} = guestfs:create(),\n"
3113 " ok = guestfs:add_drive_opts(G, Disk,\n"
3114 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3115 " ok = guestfs:launch(G),\n"
3116 " [Device] = guestfs:list_devices(G),\n"
3117 " ok = guestfs:close(G).\n"
3118 "\n"
3119 msgstr ""
3120
3121 #. type: textblock
3122 #: ../erlang/examples/guestfs-erlang.pod:18
3123 msgid ""
3124 "This manual page documents how to call libguestfs from the Erlang "
3125 "programming language.  This page just documents the differences from the C "
3126 "API and gives some examples.  If you are not familiar with using libguestfs, "
3127 "you also need to read L<guestfs(3)>."
3128 msgstr ""
3129
3130 #. type: =head2
3131 #: ../erlang/examples/guestfs-erlang.pod:23
3132 msgid "OPENING AND CLOSING THE HANDLE"
3133 msgstr ""
3134
3135 #. type: textblock
3136 #: ../erlang/examples/guestfs-erlang.pod:25
3137 msgid ""
3138 "The Erlang bindings are implemented using an external program called C<erl-"
3139 "guestfs>.  This program must be on the current PATH, or else you should "
3140 "specify the full path to the program:"
3141 msgstr ""
3142
3143 #. type: verbatim
3144 #: ../erlang/examples/guestfs-erlang.pod:29
3145 #, no-wrap
3146 msgid ""
3147 " {ok, G} = guestfs:create().\n"
3148 "\n"
3149 msgstr ""
3150
3151 #. type: verbatim
3152 #: ../erlang/examples/guestfs-erlang.pod:31
3153 #, no-wrap
3154 msgid ""
3155 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3156 "\n"
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../erlang/examples/guestfs-erlang.pod:33
3161 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3162 msgstr ""
3163
3164 #. type: textblock
3165 #: ../erlang/examples/guestfs-erlang.pod:36
3166 msgid "To close the handle:"
3167 msgstr ""
3168
3169 #. type: verbatim
3170 #: ../erlang/examples/guestfs-erlang.pod:38
3171 #, no-wrap
3172 msgid ""
3173 " ok = guestfs:close(G).\n"
3174 "\n"
3175 msgstr ""
3176
3177 #. type: =head2
3178 #: ../erlang/examples/guestfs-erlang.pod:40
3179 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3180 msgstr ""
3181
3182 #. type: textblock
3183 #: ../erlang/examples/guestfs-erlang.pod:42
3184 msgid ""
3185 "For functions that take optional arguments, the first arguments are the non-"
3186 "optional ones.  The last argument is a list of tuples supplying the "
3187 "remaining optional arguments."
3188 msgstr ""
3189
3190 #. type: verbatim
3191 #: ../erlang/examples/guestfs-erlang.pod:46
3192 #, no-wrap
3193 msgid ""
3194 " ok = guestfs:add_drive_opts(G, Disk,\n"
3195 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3196 "\n"
3197 msgstr ""
3198
3199 #. type: textblock
3200 #: ../erlang/examples/guestfs-erlang.pod:49
3201 msgid "If the last argument would be an empty list, you can also omit it:"
3202 msgstr ""
3203
3204 #. type: verbatim
3205 #: ../erlang/examples/guestfs-erlang.pod:51
3206 #, no-wrap
3207 msgid ""
3208 " ok = guestfs:add_drive_opts(G, Disk).\n"
3209 "\n"
3210 msgstr ""
3211
3212 #. type: =head2
3213 #: ../erlang/examples/guestfs-erlang.pod:53
3214 msgid "RETURN VALUES AND ERRORS"
3215 msgstr ""
3216
3217 #. type: textblock
3218 #: ../erlang/examples/guestfs-erlang.pod:55
3219 msgid ""
3220 "On success, most functions return a C<Result> term (which could be a list, "
3221 "string, tuple etc.).  If there is nothing for the function to return, then "
3222 "the atom C<ok> is returned."
3223 msgstr ""
3224
3225 #. type: textblock
3226 #: ../erlang/examples/guestfs-erlang.pod:59
3227 msgid "On error, you would see one of the following tuples:"
3228 msgstr ""
3229
3230 #. type: =item
3231 #: ../erlang/examples/guestfs-erlang.pod:63
3232 msgid "C<{error, Msg, Errno}>"
3233 msgstr ""
3234
3235 #. type: textblock
3236 #: ../erlang/examples/guestfs-erlang.pod:65
3237 msgid "This indicates an ordinary error from the function."
3238 msgstr ""
3239
3240 #. type: textblock
3241 #: ../erlang/examples/guestfs-erlang.pod:67
3242 msgid ""
3243 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3244 "(integer)."
3245 msgstr ""
3246
3247 #. type: textblock
3248 #: ../erlang/examples/guestfs-erlang.pod:70
3249 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3250 msgstr ""
3251
3252 #. type: =item
3253 #: ../erlang/examples/guestfs-erlang.pod:72
3254 msgid "C<{unknown, Function}>"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../erlang/examples/guestfs-erlang.pod:74
3259 msgid ""
3260 "This indicates that the function you called is not known.  Generally this "
3261 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3262 "which you should not do."
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../erlang/examples/guestfs-erlang.pod:78
3267 msgid "C<Function> is the name of the unknown function."
3268 msgstr ""
3269
3270 #. type: =item
3271 #: ../erlang/examples/guestfs-erlang.pod:80
3272 msgid "C<{unknownarg, Arg}>"
3273 msgstr ""
3274
3275 #. type: textblock
3276 #: ../erlang/examples/guestfs-erlang.pod:82
3277 msgid ""
3278 "This indicates that you called a function with optional arguments, with an "
3279 "unknown argument name."
3280 msgstr ""
3281
3282 #. type: textblock
3283 #: ../erlang/examples/guestfs-erlang.pod:85
3284 msgid "C<Arg> is the name of the unknown argument."
3285 msgstr ""
3286
3287 #. type: =head1
3288 #: ../erlang/examples/guestfs-erlang.pod:89
3289 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3290 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3291 #: ../python/examples/guestfs-python.pod:34
3292 #: ../ruby/examples/guestfs-ruby.pod:28
3293 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3294 msgstr ""
3295
3296 #. type: textblock
3297 #: ../erlang/examples/guestfs-erlang.pod:91
3298 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3299 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3300 #: ../python/examples/guestfs-python.pod:36
3301 #: ../ruby/examples/guestfs-ruby.pod:30
3302 msgid "@EXAMPLE1@"
3303 msgstr ""
3304
3305 #. type: =head1
3306 #: ../erlang/examples/guestfs-erlang.pod:93
3307 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3308 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3309 #: ../python/examples/guestfs-python.pod:38
3310 #: ../ruby/examples/guestfs-ruby.pod:32
3311 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3312 msgstr ""
3313
3314 #. type: textblock
3315 #: ../erlang/examples/guestfs-erlang.pod:95
3316 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3317 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3318 #: ../python/examples/guestfs-python.pod:40
3319 #: ../ruby/examples/guestfs-ruby.pod:34
3320 msgid "@EXAMPLE2@"
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../erlang/examples/guestfs-erlang.pod:99
3325 msgid ""
3326 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3327 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3328 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
3329 msgstr ""
3330
3331 #. type: =head1
3332 #: ../erlang/examples/guestfs-erlang.pod:110
3333 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3334 #: ../fish/guestfish.pod:1261 ../fish/virt-copy-in.pod:60
3335 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3336 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3337 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3338 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3339 #: ../python/examples/guestfs-python.pod:54
3340 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3242
3341 #: ../test-tool/libguestfs-test-tool.pod:106
3342 msgid "AUTHORS"
3343 msgstr ""
3344
3345 #. type: textblock
3346 #: ../erlang/examples/guestfs-erlang.pod:112
3347 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3348 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:62
3349 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3350 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3351 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3352 #: ../perl/examples/guestfs-perl.pod:54
3353 #: ../python/examples/guestfs-python.pod:56
3354 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3244
3355 #: ../test-tool/libguestfs-test-tool.pod:108
3356 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3357 msgstr ""
3358
3359 #. type: textblock
3360 #: ../erlang/examples/guestfs-erlang.pod:116
3361 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3362 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../erlang/examples/guestfs-erlang.pod:118
3367 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3368 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3369 #: ../perl/examples/guestfs-perl.pod:60
3370 #: ../python/examples/guestfs-python.pod:62
3371 #: ../ruby/examples/guestfs-ruby.pod:56
3372 msgid ""
3373 "The examples in this manual page may be freely copied, modified and "
3374 "distributed without any restrictions."
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../erlang/examples/guestfs-erlang.pod:121
3379 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3380 #: ../java/examples/guestfs-java.pod:69
3381 #: ../ocaml/examples/guestfs-ocaml.pod:102
3382 #: ../perl/examples/guestfs-perl.pod:63
3383 #: ../python/examples/guestfs-python.pod:65
3384 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3251
3385 msgid ""
3386 "This library is free software; you can redistribute it and/or modify it "
3387 "under the terms of the GNU Lesser General Public License as published by the "
3388 "Free Software Foundation; either version 2 of the License, or (at your "
3389 "option) any later version."
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../erlang/examples/guestfs-erlang.pod:126
3394 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3395 #: ../java/examples/guestfs-java.pod:74
3396 #: ../ocaml/examples/guestfs-ocaml.pod:107
3397 #: ../perl/examples/guestfs-perl.pod:68
3398 #: ../python/examples/guestfs-python.pod:70
3399 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3256
3400 msgid ""
3401 "This library is distributed in the hope that it will be useful, but WITHOUT "
3402 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3403 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3404 "for more details."
3405 msgstr ""
3406
3407 #. type: textblock
3408 #: ../erlang/examples/guestfs-erlang.pod:131
3409 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3410 #: ../java/examples/guestfs-java.pod:79
3411 #: ../ocaml/examples/guestfs-ocaml.pod:112
3412 #: ../perl/examples/guestfs-perl.pod:73
3413 #: ../python/examples/guestfs-python.pod:75
3414 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3261
3415 msgid ""
3416 "You should have received a copy of the GNU Lesser General Public License "
3417 "along with this library; if not, write to the Free Software Foundation, "
3418 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../examples/guestfs-examples.pod:5
3423 msgid "guestfs-examples - Examples of using libguestfs from C"
3424 msgstr ""
3425
3426 #. type: verbatim
3427 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3428 #, no-wrap
3429 msgid ""
3430 " #include <guestfs.h>\n"
3431 " \n"
3432 msgstr ""
3433
3434 #. type: verbatim
3435 #: ../examples/guestfs-examples.pod:11
3436 #, no-wrap
3437 msgid ""
3438 " guestfs_h *g = guestfs_create ();\n"
3439 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3440 " guestfs_launch (g);\n"
3441 "\n"
3442 msgstr ""
3443
3444 #. type: verbatim
3445 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3446 #, no-wrap
3447 msgid ""
3448 " cc prog.c -o prog -lguestfs\n"
3449 "or:\n"
3450 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3451 "\n"
3452 msgstr ""
3453
3454 #. type: textblock
3455 #: ../examples/guestfs-examples.pod:21
3456 msgid ""
3457 "This manual page contains examples of calling libguestfs from the C "
3458 "programming language.  If you are not familiar with using libguestfs, you "
3459 "also need to read L<guestfs(3)>."
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../examples/guestfs-examples.pod:35
3464 msgid ""
3465 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3466 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3467 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3468 msgstr ""
3469
3470 #. type: textblock
3471 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3472 #: ../python/examples/guestfs-python.pod:60
3473 #: ../ruby/examples/guestfs-ruby.pod:54
3474 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3475 msgstr ""
3476
3477 #. type: =end
3478 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3479 msgid "comment"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../examples/guestfs-recipes.pod:5
3484 msgid ""
3485 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3486 "here.  The only way which works for both sorts of output is to just write "
3487 "the URL directly.  Do NOT use L<...> for URLs."
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../examples/guestfs-recipes.pod:9
3492 msgid ""
3493 "We break with tradition here and don't use ALL CAPS for the section "
3494 "headings, as this makes them much easier to read."
3495 msgstr ""
3496
3497 #. type: textblock
3498 #: ../examples/guestfs-recipes.pod:16
3499 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3500 msgstr ""
3501
3502 #. type: textblock
3503 #: ../examples/guestfs-recipes.pod:20
3504 msgid ""
3505 "This page contains recipes for and links to things you can do using "
3506 "libguestfs, L<guestfish(1)> and the virt tools."
3507 msgstr ""
3508
3509 #. type: =head1
3510 #: ../examples/guestfs-recipes.pod:23
3511 msgid "Audit a virtual machine for setuid files"
3512 msgstr ""
3513
3514 #. type: textblock
3515 #: ../examples/guestfs-recipes.pod:25
3516 msgid ""
3517 "The link below contains a small program which can be used to audit a Linux "
3518 "virtual machine to see what setuid and setgid files it contains."
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../examples/guestfs-recipes.pod:28
3523 msgid ""
3524 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3525 "files/#content"
3526 msgstr ""
3527
3528 #. type: =head1
3529 #: ../examples/guestfs-recipes.pod:30
3530 msgid "Change the background image in a Windows XP VM"
3531 msgstr ""
3532
3533 #. type: textblock
3534 #: ../examples/guestfs-recipes.pod:32
3535 msgid ""
3536 "The links below explain how to use L<guestfish(1)> to change the background "
3537 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3538 "be substantially different for each version of Windows."
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../examples/guestfs-recipes.pod:37
3543 msgid ""
3544 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3545 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3546 msgstr ""
3547
3548 #. type: =head1
3549 #: ../examples/guestfs-recipes.pod:40
3550 msgid "Cloning a virtual machine (Linux)"
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../examples/guestfs-recipes.pod:42
3555 msgid ""
3556 "The guestfish technique described in the link below works well for most "
3557 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3558 "slightly."
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../examples/guestfs-recipes.pod:46
3563 msgid ""
3564 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3565 "vm/#content"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../examples/guestfs-recipes.pod:48
3570 msgid ""
3571 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3572 "discussion."
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../examples/guestfs-recipes.pod:51
3577 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3578 msgstr ""
3579
3580 #. type: =head1
3581 #: ../examples/guestfs-recipes.pod:53
3582 msgid "Cloning a virtual machine (Windows)"
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../examples/guestfs-recipes.pod:55
3587 msgid ""
3588 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3589 "straightforward.  Currently there is code in the Aeolus Oz project which "
3590 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3591 "we may add sysprepping ability."
3592 msgstr ""
3593
3594 #. type: textblock
3595 #: ../examples/guestfs-recipes.pod:60
3596 msgid ""
3597 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3598 "list/2011-May/msg00019.html"
3599 msgstr ""
3600
3601 #. type: =head1
3602 #: ../examples/guestfs-recipes.pod:63
3603 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3604 msgstr ""
3605
3606 #. type: textblock
3607 #: ../examples/guestfs-recipes.pod:65
3608 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3609 msgstr ""
3610
3611 #. type: verbatim
3612 #: ../examples/guestfs-recipes.pod:67
3613 #, no-wrap
3614 msgid ""
3615 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3616 "\n"
3617 msgstr ""
3618
3619 #. type: textblock
3620 #: ../examples/guestfs-recipes.pod:69
3621 msgid "To export just a subdirectory, eg. C</files>, do:"
3622 msgstr ""
3623
3624 #. type: verbatim
3625 #: ../examples/guestfs-recipes.pod:71
3626 #, no-wrap
3627 msgid ""
3628 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3629 "\n"
3630 msgstr ""
3631
3632 #. type: =head1
3633 #: ../examples/guestfs-recipes.pod:73
3634 msgid "Create empty disk images"
3635 msgstr ""
3636
3637 #. type: textblock
3638 #: ../examples/guestfs-recipes.pod:75
3639 msgid ""
3640 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3641 "The useful guide below explains the options available."
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../examples/guestfs-recipes.pod:78
3646 msgid ""
3647 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3648 "#content"
3649 msgstr ""
3650
3651 #. type: =head1
3652 #: ../examples/guestfs-recipes.pod:80
3653 msgid "Dump raw filesystem content from inside a disk image or VM"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../examples/guestfs-recipes.pod:82
3658 msgid ""
3659 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3660 "filesystem content from any filesystem in a disk image or a VM (even one "
3661 "which is encrypted or buried inside an LV):"
3662 msgstr ""
3663
3664 #. type: verbatim
3665 #: ../examples/guestfs-recipes.pod:86
3666 #, no-wrap
3667 msgid ""
3668 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3669 "\n"
3670 msgstr ""
3671
3672 #. type: verbatim
3673 #: ../examples/guestfs-recipes.pod:88
3674 #, no-wrap
3675 msgid ""
3676 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3677 "\n"
3678 msgstr ""
3679
3680 #. type: textblock
3681 #: ../examples/guestfs-recipes.pod:90
3682 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3683 msgstr ""
3684
3685 #. type: =head1
3686 #: ../examples/guestfs-recipes.pod:92
3687 msgid "Edit grub configuration in a VM"
3688 msgstr ""
3689
3690 #. type: textblock
3691 #: ../examples/guestfs-recipes.pod:94
3692 msgid "You can use this to:"
3693 msgstr ""
3694
3695 #. type: textblock
3696 #: ../examples/guestfs-recipes.pod:100
3697 msgid "Fix a virtual machine that does not boot."
3698 msgstr ""
3699
3700 #. type: textblock
3701 #: ../examples/guestfs-recipes.pod:104
3702 msgid "Change which kernel is used to boot the VM."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../examples/guestfs-recipes.pod:108
3707 msgid "Change kernel command line options."
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../examples/guestfs-recipes.pod:112
3712 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3713 msgstr ""
3714
3715 #. type: verbatim
3716 #: ../examples/guestfs-recipes.pod:114
3717 #, no-wrap
3718 msgid ""
3719 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3720 "\n"
3721 msgstr ""
3722
3723 #. type: textblock
3724 #: ../examples/guestfs-recipes.pod:116
3725 msgid ""
3726 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3727 "this:"
3728 msgstr ""
3729
3730 #. type: verbatim
3731 #: ../examples/guestfs-recipes.pod:119
3732 #, no-wrap
3733 msgid ""
3734 " virt-rescue -d BrokenGuest\n"
3735 "\n"
3736 msgstr ""
3737
3738 #. type: =head1
3739 #: ../examples/guestfs-recipes.pod:121
3740 msgid "Export any directory from a VM"
3741 msgstr ""
3742
3743 #. type: textblock
3744 #: ../examples/guestfs-recipes.pod:123
3745 msgid ""
3746 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3747 msgstr ""
3748
3749 #. type: verbatim
3750 #: ../examples/guestfs-recipes.pod:126
3751 #, no-wrap
3752 msgid ""
3753 " virt-copy-out -d Guest /home .\n"
3754 "\n"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3759 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
3760 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
3761 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
3762 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
3763 #: ../tools/virt-win-reg.pl:706
3764 msgid "Notes:"
3765 msgstr ""
3766
3767 #. type: textblock
3768 #: ../examples/guestfs-recipes.pod:134
3769 msgid ""
3770 "The final dot of the command is not a printing error.  It means we want to "
3771 "copy out to the current directory."
3772 msgstr ""
3773
3774 #. type: textblock
3775 #: ../examples/guestfs-recipes.pod:139
3776 msgid "This creates a directory called C<home> under the current directory."
3777 msgstr ""
3778
3779 #. type: textblock
3780 #: ../examples/guestfs-recipes.pod:143
3781 msgid ""
3782 "If the guest is a Windows guest then you can use drive letters and "
3783 "backslashes, but you must prefix the path with C<win:> and quote it to "
3784 "protect it from the shell, like this:"
3785 msgstr ""
3786
3787 #. type: verbatim
3788 #: ../examples/guestfs-recipes.pod:147
3789 #, no-wrap
3790 msgid ""
3791 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3792 "\n"
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../examples/guestfs-recipes.pod:149
3797 msgid "To get the output as a compressed tarball, do:"
3798 msgstr ""
3799
3800 #. type: verbatim
3801 #: ../examples/guestfs-recipes.pod:151
3802 #, no-wrap
3803 msgid ""
3804 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3805 "\n"
3806 msgstr ""
3807
3808 #. type: textblock
3809 #: ../examples/guestfs-recipes.pod:153
3810 msgid ""
3811 "Although it sounds tempting, this is usually not a reliable way to get a "
3812 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3813 "org/FAQ.html#backup"
3814 msgstr ""
3815
3816 #. type: =head1
3817 #: ../examples/guestfs-recipes.pod:157
3818 msgid "Find out which user is using the most space"
3819 msgstr ""
3820
3821 #. type: textblock
3822 #: ../examples/guestfs-recipes.pod:159
3823 msgid ""
3824 "This simple script examines a Linux guest to find out which user is using "
3825 "the most space in their home directory:"
3826 msgstr ""
3827
3828 #. type: verbatim
3829 #: ../examples/guestfs-recipes.pod:162
3830 #, no-wrap
3831 msgid ""
3832 " #!/bin/sh -\n"
3833 " \n"
3834 msgstr ""
3835
3836 #. type: verbatim
3837 #: ../examples/guestfs-recipes.pod:164
3838 #, no-wrap
3839 msgid ""
3840 " set -e\n"
3841 " \n"
3842 msgstr ""
3843
3844 #. type: verbatim
3845 #: ../examples/guestfs-recipes.pod:166
3846 #, no-wrap
3847 msgid ""
3848 " vm=\"$1\"\n"
3849 " dir=/home\n"
3850 " \n"
3851 msgstr ""
3852
3853 #. type: verbatim
3854 #: ../examples/guestfs-recipes.pod:169
3855 #, no-wrap
3856 msgid ""
3857 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3858 " \n"
3859 msgstr ""
3860
3861 #. type: verbatim
3862 #: ../examples/guestfs-recipes.pod:171
3863 #, no-wrap
3864 msgid ""
3865 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3866 "     echo -n \"$dir/$d\"\n"
3867 "     echo -ne '\\t'\n"
3868 "     guestfish --remote du \"$dir/$d\";\n"
3869 " done | sort -nr -k 2\n"
3870 " \n"
3871 msgstr ""
3872
3873 #. type: verbatim
3874 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3875 #, no-wrap
3876 msgid ""
3877 " guestfish --remote exit\n"
3878 "\n"
3879 msgstr ""
3880
3881 #. type: =head1
3882 #: ../examples/guestfs-recipes.pod:179
3883 msgid "Get DHCP address from a VM"
3884 msgstr ""
3885
3886 #. type: textblock
3887 #: ../examples/guestfs-recipes.pod:181
3888 msgid ""
3889 "The link below explains the many different possible techniques for getting "
3890 "the last assigned DHCP address of a virtual machine."
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../examples/guestfs-recipes.pod:184
3895 msgid ""
3896 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3897 "a-virtual-machine-disk-image/#content"
3898 msgstr ""
3899
3900 #. type: textblock
3901 #: ../examples/guestfs-recipes.pod:186
3902 msgid ""
3903 "In the libguestfs source examples directory you will find the latest version "
3904 "of the C<virt-dhcp-address.c> program."
3905 msgstr ""
3906
3907 #. type: =head1
3908 #: ../examples/guestfs-recipes.pod:189
3909 msgid "Get the operating system product name string"
3910 msgstr ""
3911
3912 #. type: textblock
3913 #: ../examples/guestfs-recipes.pod:191
3914 msgid "Save the following script into a file called C<product-name.sh>:"
3915 msgstr ""
3916
3917 #. type: verbatim
3918 #: ../examples/guestfs-recipes.pod:193
3919 #, no-wrap
3920 msgid ""
3921 " #!/bin/sh -\n"
3922 " set -e\n"
3923 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3924 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3925 " guestfish --remote inspect-get-product-name \"$root\"\n"
3926 " guestfish --remote exit\n"
3927 "\n"
3928 msgstr ""
3929
3930 #. type: textblock
3931 #: ../examples/guestfs-recipes.pod:200
3932 msgid "Make the script executable and run it on a named guest:"
3933 msgstr ""
3934
3935 #. type: verbatim
3936 #: ../examples/guestfs-recipes.pod:202
3937 #, no-wrap
3938 msgid ""
3939 " # product-name.sh RHEL60x64\n"
3940 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3941 "\n"
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../examples/guestfs-recipes.pod:205
3946 msgid ""
3947 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3948 "C<xpath> command line tool or from your favourite programming language:"
3949 msgstr ""
3950
3951 #. type: verbatim
3952 #: ../examples/guestfs-recipes.pod:209
3953 #, no-wrap
3954 msgid ""
3955 " # virt-inspector RHEL60x64 > xml\n"
3956 " # xpath '//product_name' < xml\n"
3957 " Found 1 nodes:\n"
3958 " -- NODE --\n"
3959 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3960 "\n"
3961 msgstr ""
3962
3963 #. type: =head1
3964 #: ../examples/guestfs-recipes.pod:215
3965 msgid "Get the default boot kernel for a Linux VM"
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../examples/guestfs-recipes.pod:217
3970 msgid ""
3971 "The link below contains a program to print the default boot kernel for a "
3972 "Linux VM."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../examples/guestfs-recipes.pod:220
3977 msgid ""
3978 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3979 "kernel-for-a-vm/#content"
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../examples/guestfs-recipes.pod:222
3984 msgid ""
3985 "It uses Augeas, and the technique is generally applicable for many different "
3986 "tasks, such as:"
3987 msgstr ""
3988
3989 #. type: textblock
3990 #: ../examples/guestfs-recipes.pod:229
3991 msgid "listing the user accounts in the guest"
3992 msgstr ""
3993
3994 #. type: textblock
3995 #: ../examples/guestfs-recipes.pod:233
3996 msgid "what repositories is it configured to use"
3997 msgstr ""
3998
3999 #. type: textblock
4000 #: ../examples/guestfs-recipes.pod:237
4001 msgid "what NTP servers does it connect to"
4002 msgstr ""
4003
4004 #. type: textblock
4005 #: ../examples/guestfs-recipes.pod:241
4006 msgid "what were the boot messages last time it booted"
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../examples/guestfs-recipes.pod:245
4011 msgid "listing who was logged in recently"
4012 msgstr ""
4013
4014 #. type: textblock
4015 #: ../examples/guestfs-recipes.pod:249
4016 msgid "http://augeas.net/"
4017 msgstr ""
4018
4019 #. type: =head1
4020 #: ../examples/guestfs-recipes.pod:251
4021 msgid "Install RPMs in a guest"
4022 msgstr ""
4023
4024 #. type: textblock
4025 #: ../examples/guestfs-recipes.pod:253
4026 msgid ""
4027 "The link below contains a method to install RPMs in a guest.  In fact the "
4028 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4029 "installs them next time the guest is booted.  You could use this technique "
4030 "to install vital security updates in an offline guest."
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../examples/guestfs-recipes.pod:259
4035 msgid ""
4036 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4037 msgstr ""
4038
4039 #. type: =head1
4040 #: ../examples/guestfs-recipes.pod:261
4041 msgid "List applications installed in a VM"
4042 msgstr ""
4043
4044 #. type: textblock
4045 #: ../examples/guestfs-recipes.pod:263
4046 msgid "Save the following to a file C<list-apps.sh>:"
4047 msgstr ""
4048
4049 #. type: verbatim
4050 #: ../examples/guestfs-recipes.pod:265
4051 #, no-wrap
4052 msgid ""
4053 " #!/bin/sh -\n"
4054 " set -e\n"
4055 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4056 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4057 " guestfish --remote inspect-list-applications \"$root\"\n"
4058 " guestfish --remote exit\n"
4059 "\n"
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../examples/guestfs-recipes.pod:272
4064 msgid ""
4065 "Make the file executable and then you can run it on any named virtual "
4066 "machine:"
4067 msgstr ""
4068
4069 #. type: verbatim
4070 #: ../examples/guestfs-recipes.pod:275
4071 #, no-wrap
4072 msgid ""
4073 " # list-apps.sh WinGuest\n"
4074 " [0] = {\n"
4075 "   app_name: Mozilla Firefox (3.6.12)\n"
4076 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4077 "   app_epoch: 0\n"
4078 "   app_version: 3.6.12 (en-GB)\n"
4079 "   app_release:\n"
4080 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4081 "   app_trans_path:\n"
4082 "   app_publisher: Mozilla\n"
4083 "   app_url: http://www.mozilla.com/en-GB/\n"
4084 "   app_source_package:\n"
4085 "   app_summary:\n"
4086 "   app_description: Mozilla Firefox\n"
4087 " }\n"
4088 " [1] = {\n"
4089 "   app_name: VLC media player\n"
4090 "   app_display_name: VLC media player 1.1.5\n"
4091 "   app_epoch: 0\n"
4092 "   app_version: 1.1.5\n"
4093 "   app_release:\n"
4094 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4095 "   app_trans_path:\n"
4096 "   app_publisher: VideoLAN\n"
4097 "   app_url: http://www.videolan.org/\n"
4098 "   app_source_package:\n"
4099 "   app_summary:\n"
4100 "   app_description:\n"
4101 " }\n"
4102 "\n"
4103 msgstr ""
4104
4105 #. type: textblock
4106 #: ../examples/guestfs-recipes.pod:305
4107 msgid ""
4108 "If you want to run the script on disk images (instead of libvirt virtual "
4109 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4110 ">."
4111 msgstr ""
4112
4113 #. type: =head1
4114 #: ../examples/guestfs-recipes.pod:309
4115 msgid "List files and directories in a VM"
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../examples/guestfs-recipes.pod:311
4120 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4121 msgstr ""
4122
4123 #. type: verbatim
4124 #: ../examples/guestfs-recipes.pod:313
4125 #, no-wrap
4126 msgid ""
4127 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4128 "\n"
4129 msgstr ""
4130
4131 #. type: =head1
4132 #: ../examples/guestfs-recipes.pod:315
4133 msgid "List services in a Windows VM"
4134 msgstr ""
4135
4136 #. type: textblock
4137 #: ../examples/guestfs-recipes.pod:317
4138 msgid ""
4139 "The link below contains a script that can be used to list out the services "
4140 "from a Windows VM, and whether those services run at boot time or are loaded "
4141 "on demand."
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../examples/guestfs-recipes.pod:321
4146 msgid ""
4147 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4148 "#content"
4149 msgstr ""
4150
4151 #. type: =head1
4152 #: ../examples/guestfs-recipes.pod:323
4153 msgid "Make a disk image sparse"
4154 msgstr ""
4155
4156 #. type: textblock
4157 #: ../examples/guestfs-recipes.pod:325
4158 msgid ""
4159 "The link below contains some guides for making a disk image sparse (or "
4160 "reintroducing sparseness)."
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../examples/guestfs-recipes.pod:328
4165 msgid ""
4166 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4167 msgstr ""
4168
4169 #. type: =head1
4170 #: ../examples/guestfs-recipes.pod:330
4171 msgid "Monitor disk usage over time"
4172 msgstr ""
4173
4174 #. type: textblock
4175 #: ../examples/guestfs-recipes.pod:332
4176 msgid ""
4177 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4178 "The link below contains a guide."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../examples/guestfs-recipes.pod:335
4183 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4184 msgstr ""
4185
4186 #. type: =head1
4187 #: ../examples/guestfs-recipes.pod:337
4188 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4189 msgstr ""
4190
4191 #. type: textblock
4192 #: ../examples/guestfs-recipes.pod:339
4193 msgid ""
4194 "L<guestfish(1)> plus the tools described in the link below can be used to "
4195 "read out the Windows Event Log from any virtual machine running Windows "
4196 "Vista or a later version."
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../examples/guestfs-recipes.pod:343
4201 msgid ""
4202 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4203 "guestfish/#content"
4204 msgstr ""
4205
4206 #. type: =head1
4207 #: ../examples/guestfs-recipes.pod:345
4208 msgid "Remove root password (Linux)"
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../examples/guestfs-recipes.pod:347
4213 msgid ""
4214 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4215 "files.  One use is to remove the root password from a Linux guest:"
4216 msgstr ""
4217
4218 #. type: verbatim
4219 #: ../examples/guestfs-recipes.pod:350
4220 #, no-wrap
4221 msgid ""
4222 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4223 "\n"
4224 msgstr ""
4225
4226 #. type: =head1
4227 #: ../examples/guestfs-recipes.pod:352
4228 msgid "Remove Administrator password (Windows)"
4229 msgstr ""
4230
4231 #. type: textblock
4232 #: ../examples/guestfs-recipes.pod:354
4233 msgid ""
4234 "The link below contains one technique for removing the Administrator "
4235 "password from a Windows VM, or to be more precise, it gives you a command "
4236 "prompt the next time you log in which you can use to bypass any security:"
4237 msgstr ""
4238
4239 #. type: textblock
4240 #: ../examples/guestfs-recipes.pod:359
4241 msgid ""
4242 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4243 "administrator-password-with-guestfish/"
4244 msgstr ""
4245
4246 #. type: =head1
4247 #: ../examples/guestfs-recipes.pod:361
4248 msgid "Unpack a live CD"
4249 msgstr ""
4250
4251 #. type: textblock
4252 #: ../examples/guestfs-recipes.pod:363
4253 msgid ""
4254 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4255 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4256 "layers, as outlined in the guide below."
4257 msgstr ""
4258
4259 #. type: textblock
4260 #: ../examples/guestfs-recipes.pod:367
4261 msgid ""
4262 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4263 "cd/#content"
4264 msgstr ""
4265
4266 #. type: =head1
4267 #: ../examples/guestfs-recipes.pod:369
4268 msgid "Uploading and downloading files"
4269 msgstr ""
4270
4271 #. type: textblock
4272 #: ../examples/guestfs-recipes.pod:371
4273 msgid ""
4274 "The link below contains general tips on uploading (copying in)  and "
4275 "downloading (copying out) files from VMs."
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../examples/guestfs-recipes.pod:374
4280 msgid ""
4281 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4282 msgstr ""
4283
4284 #. type: =head1
4285 #: ../examples/guestfs-recipes.pod:376
4286 msgid "Use libguestfs tools on VMware ESX guests"
4287 msgstr ""
4288
4289 #. type: textblock
4290 #: ../examples/guestfs-recipes.pod:378
4291 msgid ""
4292 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4293 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4294 msgstr ""
4295
4296 #. type: textblock
4297 #: ../examples/guestfs-recipes.pod:382
4298 msgid ""
4299 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4300 "guests/#content"
4301 msgstr ""
4302
4303 #. type: textblock
4304 #: ../examples/guestfs-recipes.pod:386
4305 msgid ""
4306 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4307 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4308 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4309 msgstr ""
4310
4311 #. type: textblock
4312 #: ../examples/guestfs-recipes.pod:403
4313 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4314 msgstr ""
4315
4316 #. type: =head2
4317 #: ../fish/guestfish-actions.pod:1
4318 msgid "add-cdrom"
4319 msgstr ""
4320
4321 #. type: verbatim
4322 #: ../fish/guestfish-actions.pod:3
4323 #, no-wrap
4324 msgid ""
4325 " add-cdrom filename\n"
4326 "\n"
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4331 msgid "This function adds a virtual CD-ROM disk image to the guest."
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4336 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4337 msgstr ""
4338
4339 #. type: textblock
4340 #: ../fish/guestfish-actions.pod:15
4341 msgid ""
4342 "This call checks for the existence of C<filename>.  This stops you from "
4343 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4344 "and C<http:> URLs.  To specify those, use the general L</config> call "
4345 "instead."
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../fish/guestfish-actions.pod:22
4350 msgid ""
4351 "If you just want to add an ISO file (often you use this as an efficient way "
4352 "to transfer large files into the guest), then you should probably use L</add-"
4353 "drive-ro> instead."
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4358 #: ../fish/guestfish-actions.pod:177
4359 msgid ""
4360 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4361 "instead."
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4366 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4367 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4368 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
4369 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4370 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4371 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4372 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4373 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4374 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
4375 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
4376 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
4377 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
4378 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
4379 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
4380 #: ../src/guestfs-actions.pod:8040
4381 msgid ""
4382 "Deprecated functions will not be removed from the API, but the fact that "
4383 "they are deprecated indicates that there are problems with correct use of "
4384 "these functions."
4385 msgstr ""
4386
4387 #. type: =head2
4388 #: ../fish/guestfish-actions.pod:35
4389 msgid "add-domain"
4390 msgstr ""
4391
4392 #. type: =head2
4393 #: ../fish/guestfish-actions.pod:37
4394 msgid "domain"
4395 msgstr ""
4396
4397 #. type: verbatim
4398 #: ../fish/guestfish-actions.pod:39
4399 #, no-wrap
4400 msgid ""
4401 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4402 "\n"
4403 msgstr ""
4404
4405 #. type: textblock
4406 #: ../fish/guestfish-actions.pod:41
4407 msgid ""
4408 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4409 "It works by connecting to libvirt, requesting the domain and domain XML from "
4410 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4411 msgstr ""
4412
4413 #. type: textblock
4414 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4415 msgid ""
4416 "The number of disks added is returned.  This operation is atomic: if an "
4417 "error is returned, then no disks are added."
4418 msgstr ""
4419
4420 #. type: textblock
4421 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4422 msgid ""
4423 "This function does some minimal checks to make sure the libvirt domain is "
4424 "not running (unless C<readonly> is true).  In a future version we will try "
4425 "to acquire the libvirt lock on each disk."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4430 msgid ""
4431 "Disks must be accessible locally.  This often means that adding disks from a "
4432 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4433 "unless those disks are accessible via the same device path locally too."
4434 msgstr ""
4435
4436 #. type: textblock
4437 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4438 msgid ""
4439 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4440 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4441 "libvirt URI (or one set through an environment variable, see the libvirt "
4442 "documentation for full details)."
4443 msgstr ""
4444
4445 #. type: textblock
4446 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4447 msgid ""
4448 "The optional C<live> flag controls whether this call will try to connect to "
4449 "a running virtual machine C<guestfsd> process if it sees a suitable "
4450 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4451 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4452 "DAEMONS> for more information."
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4457 msgid ""
4458 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4459 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4460 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4461 "as usual."
4462 msgstr ""
4463
4464 #. type: textblock
4465 #: ../fish/guestfish-actions.pod:76
4466 msgid ""
4467 "The other optional parameters are passed directly through to L</add-drive-"
4468 "opts>."
4469 msgstr ""
4470
4471 #. type: textblock
4472 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4473 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4474 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4475 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4476 #: ../fish/guestfish-actions.pod:3504
4477 msgid ""
4478 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4479 msgstr ""
4480
4481 #. type: =head2
4482 #: ../fish/guestfish-actions.pod:81
4483 msgid "add-drive"
4484 msgstr ""
4485
4486 #. type: verbatim
4487 #: ../fish/guestfish-actions.pod:83
4488 #, no-wrap
4489 msgid ""
4490 " add-drive filename\n"
4491 "\n"
4492 msgstr ""
4493
4494 #. type: textblock
4495 #: ../fish/guestfish-actions.pod:85
4496 msgid ""
4497 "This function is the equivalent of calling L</add-drive-opts> with no "
4498 "optional parameters, so the disk is added writable, with the format being "
4499 "detected automatically."
4500 msgstr ""
4501
4502 #. type: textblock
4503 #: ../fish/guestfish-actions.pod:89
4504 msgid ""
4505 "Automatic detection of the format opens you up to a potential security hole "
4506 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4507 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4508 "you should think about replacing calls to this function with calls to L</add-"
4509 "drive-opts>, and specifying the format."
4510 msgstr ""
4511
4512 #. type: =head2
4513 #: ../fish/guestfish-actions.pod:96
4514 msgid "add-drive-opts"
4515 msgstr ""
4516
4517 #. type: =head2
4518 #: ../fish/guestfish-actions.pod:98
4519 msgid "add"
4520 msgstr ""
4521
4522 #. type: verbatim
4523 #: ../fish/guestfish-actions.pod:100
4524 #, no-wrap
4525 msgid ""
4526 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4527 "\n"
4528 msgstr ""
4529
4530 #. type: textblock
4531 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4532 msgid ""
4533 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4534 "The first time you call this function, the disk appears as C</dev/sda>, the "
4535 "second time as C</dev/sdb>, and so on."
4536 msgstr ""
4537
4538 #. type: textblock
4539 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4540 msgid ""
4541 "You don't necessarily need to be root when using libguestfs.  However you "
4542 "obviously do need sufficient permissions to access the filename for whatever "
4543 "operations you want to perform (ie. read access if you just want to read the "
4544 "image or write access if you want to modify the image)."
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4549 msgid "This call checks that C<filename> exists."
4550 msgstr ""
4551
4552 #. type: textblock
4553 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4554 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
4555 msgid "The optional arguments are:"
4556 msgstr ""
4557
4558 #. type: =item
4559 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4560 msgid "C<readonly>"
4561 msgstr ""
4562
4563 #. type: textblock
4564 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4565 msgid ""
4566 "If true then the image is treated as read-only.  Writes are still allowed, "
4567 "but they are stored in a temporary snapshot overlay which is discarded at "
4568 "the end.  The disk that you add is not modified."
4569 msgstr ""
4570
4571 #. type: =item
4572 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4573 msgid "C<format>"
4574 msgstr ""
4575
4576 #. type: textblock
4577 #: ../fish/guestfish-actions.pod:127
4578 msgid ""
4579 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4580 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4581 "include C<raw> and C<qcow2>."
4582 msgstr ""
4583
4584 #. type: textblock
4585 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4586 msgid ""
4587 "Automatic detection of the format opens you up to a potential security hole "
4588 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4589 "RHBZ#642934.  Specifying the format closes this security hole."
4590 msgstr ""
4591
4592 #. type: =item
4593 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4594 msgid "C<iface>"
4595 msgstr ""
4596
4597 #. type: textblock
4598 #: ../fish/guestfish-actions.pod:138
4599 msgid ""
4600 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4601 "add-drive-with-if> call (q.v.)"
4602 msgstr ""
4603
4604 #. type: =head2
4605 #: ../fish/guestfish-actions.pod:145
4606 msgid "add-drive-ro"
4607 msgstr ""
4608
4609 #. type: =head2
4610 #: ../fish/guestfish-actions.pod:147
4611 msgid "add-ro"
4612 msgstr ""
4613
4614 #. type: verbatim
4615 #: ../fish/guestfish-actions.pod:149
4616 #, no-wrap
4617 msgid ""
4618 " add-drive-ro filename\n"
4619 "\n"
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../fish/guestfish-actions.pod:151
4624 msgid ""
4625 "This function is the equivalent of calling L</add-drive-opts> with the "
4626 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4627 "is added read-only, with the format being detected automatically."
4628 msgstr ""
4629
4630 #. type: =head2
4631 #: ../fish/guestfish-actions.pod:156
4632 msgid "add-drive-ro-with-if"
4633 msgstr ""
4634
4635 #. type: verbatim
4636 #: ../fish/guestfish-actions.pod:158
4637 #, no-wrap
4638 msgid ""
4639 " add-drive-ro-with-if filename iface\n"
4640 "\n"
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:160
4645 msgid ""
4646 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4647 "interface emulation to use at run time."
4648 msgstr ""
4649
4650 #. type: =head2
4651 #: ../fish/guestfish-actions.pod:170
4652 msgid "add-drive-with-if"
4653 msgstr ""
4654
4655 #. type: verbatim
4656 #: ../fish/guestfish-actions.pod:172
4657 #, no-wrap
4658 msgid ""
4659 " add-drive-with-if filename iface\n"
4660 "\n"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../fish/guestfish-actions.pod:174
4665 msgid ""
4666 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4667 "interface emulation to use at run time."
4668 msgstr ""
4669
4670 #. type: =head2
4671 #: ../fish/guestfish-actions.pod:184
4672 msgid "aug-clear"
4673 msgstr ""
4674
4675 #. type: verbatim
4676 #: ../fish/guestfish-actions.pod:186
4677 #, no-wrap
4678 msgid ""
4679 " aug-clear augpath\n"
4680 "\n"
4681 msgstr ""
4682
4683 #. type: textblock
4684 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4685 msgid ""
4686 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4687 "L<augtool(1)> C<clear> command."
4688 msgstr ""
4689
4690 #. type: =head2
4691 #: ../fish/guestfish-actions.pod:191
4692 msgid "aug-close"
4693 msgstr ""
4694
4695 #. type: verbatim
4696 #: ../fish/guestfish-actions.pod:193
4697 #, no-wrap
4698 msgid ""
4699 " aug-close\n"
4700 "\n"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../fish/guestfish-actions.pod:195
4705 msgid ""
4706 "Close the current Augeas handle and free up any resources used by it.  After "
4707 "calling this, you have to call L</aug-init> again before you can use any "
4708 "other Augeas functions."
4709 msgstr ""
4710
4711 #. type: =head2
4712 #: ../fish/guestfish-actions.pod:200
4713 msgid "aug-defnode"
4714 msgstr ""
4715
4716 #. type: verbatim
4717 #: ../fish/guestfish-actions.pod:202
4718 #, no-wrap
4719 msgid ""
4720 " aug-defnode name expr val\n"
4721 "\n"
4722 msgstr ""
4723
4724 #. type: textblock
4725 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4726 msgid ""
4727 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4728 msgstr ""
4729
4730 #. type: textblock
4731 #: ../fish/guestfish-actions.pod:207
4732 msgid ""
4733 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4734 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4735 "containing that single node."
4736 msgstr ""
4737
4738 #. type: textblock
4739 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4740 msgid ""
4741 "On success this returns a pair containing the number of nodes in the "
4742 "nodeset, and a boolean flag if a node was created."
4743 msgstr ""
4744
4745 #. type: =head2
4746 #: ../fish/guestfish-actions.pod:215
4747 msgid "aug-defvar"
4748 msgstr ""
4749
4750 #. type: verbatim
4751 #: ../fish/guestfish-actions.pod:217
4752 #, no-wrap
4753 msgid ""
4754 " aug-defvar name expr\n"
4755 "\n"
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4760 msgid ""
4761 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4762 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4763 msgstr ""
4764
4765 #. type: textblock
4766 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4767 msgid ""
4768 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4769 "evaluates to something which is not a nodeset."
4770 msgstr ""
4771
4772 #. type: =head2
4773 #: ../fish/guestfish-actions.pod:226
4774 msgid "aug-get"
4775 msgstr ""
4776
4777 #. type: verbatim
4778 #: ../fish/guestfish-actions.pod:228
4779 #, no-wrap
4780 msgid ""
4781 " aug-get augpath\n"
4782 "\n"
4783 msgstr ""
4784
4785 #. type: textblock
4786 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4787 msgid ""
4788 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4789 "node, the C<value> is returned."
4790 msgstr ""
4791
4792 #. type: =head2
4793 #: ../fish/guestfish-actions.pod:233
4794 msgid "aug-init"
4795 msgstr ""
4796
4797 #. type: verbatim
4798 #: ../fish/guestfish-actions.pod:235
4799 #, no-wrap
4800 msgid ""
4801 " aug-init root flags\n"
4802 "\n"
4803 msgstr ""
4804
4805 #. type: textblock
4806 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4807 msgid ""
4808 "Create a new Augeas handle for editing configuration files.  If there was "
4809 "any previous Augeas handle associated with this guestfs session, then it is "
4810 "closed."
4811 msgstr ""
4812
4813 #. type: textblock
4814 #: ../fish/guestfish-actions.pod:241
4815 msgid "You must call this before using any other L</aug-*> commands."
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4820 msgid ""
4821 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4826 msgid ""
4827 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4828 "logical I<or> of the following integers:"
4829 msgstr ""
4830
4831 #. type: =item
4832 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4833 msgid "C<AUG_SAVE_BACKUP> = 1"
4834 msgstr ""
4835
4836 #. type: textblock
4837 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4838 msgid "Keep the original file with a C<.augsave> extension."
4839 msgstr ""
4840
4841 #. type: =item
4842 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4843 msgid "C<AUG_SAVE_NEWFILE> = 2"
4844 msgstr ""
4845
4846 #. type: textblock
4847 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4848 msgid ""
4849 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4850 "original.  Overrides C<AUG_SAVE_BACKUP>."
4851 msgstr ""
4852
4853 #. type: =item
4854 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4855 msgid "C<AUG_TYPE_CHECK> = 4"
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4860 msgid "Typecheck lenses."
4861 msgstr ""
4862
4863 #. type: textblock
4864 #: ../fish/guestfish-actions.pod:266
4865 msgid ""
4866 "This option is only useful when debugging Augeas lenses.  Use of this option "
4867 "may require additional memory for the libguestfs appliance.  You may need to "
4868 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4869 msgstr ""
4870
4871 #. type: =item
4872 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4873 msgid "C<AUG_NO_STDINC> = 8"
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4878 msgid "Do not use standard load path for modules."
4879 msgstr ""
4880
4881 #. type: =item
4882 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4883 msgid "C<AUG_SAVE_NOOP> = 16"
4884 msgstr ""
4885
4886 #. type: textblock
4887 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4888 msgid "Make save a no-op, just record what would have been changed."
4889 msgstr ""
4890
4891 #. type: =item
4892 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4893 msgid "C<AUG_NO_LOAD> = 32"
4894 msgstr ""
4895
4896 #. type: textblock
4897 #: ../fish/guestfish-actions.pod:281
4898 msgid "Do not load the tree in L</aug-init>."
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../fish/guestfish-actions.pod:285
4903 msgid "To close the handle, you can call L</aug-close>."
4904 msgstr ""
4905
4906 #. type: textblock
4907 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4908 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4909 msgstr ""
4910
4911 #. type: =head2
4912 #: ../fish/guestfish-actions.pod:289
4913 msgid "aug-insert"
4914 msgstr ""
4915
4916 #. type: verbatim
4917 #: ../fish/guestfish-actions.pod:291
4918 #, no-wrap
4919 msgid ""
4920 " aug-insert augpath label true|false\n"
4921 "\n"
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4926 msgid ""
4927 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4928 "or after C<path> (depending on the boolean flag C<before>)."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4933 msgid ""
4934 "C<path> must match exactly one existing node in the tree, and C<label> must "
4935 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4936 msgstr ""
4937
4938 #. type: =head2
4939 #: ../fish/guestfish-actions.pod:301
4940 msgid "aug-load"
4941 msgstr ""
4942
4943 #. type: verbatim
4944 #: ../fish/guestfish-actions.pod:303
4945 #, no-wrap
4946 msgid ""
4947 " aug-load\n"
4948 "\n"
4949 msgstr ""
4950
4951 #. type: textblock
4952 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4953 msgid "Load files into the tree."
4954 msgstr ""
4955
4956 #. type: textblock
4957 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4958 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4959 msgstr ""
4960
4961 #. type: =head2
4962 #: ../fish/guestfish-actions.pod:310
4963 msgid "aug-ls"
4964 msgstr ""
4965
4966 #. type: verbatim
4967 #: ../fish/guestfish-actions.pod:312
4968 #, no-wrap
4969 msgid ""
4970 " aug-ls augpath\n"
4971 "\n"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../fish/guestfish-actions.pod:314
4976 msgid ""
4977 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4978 "resulting nodes into alphabetical order."
4979 msgstr ""
4980
4981 #. type: =head2
4982 #: ../fish/guestfish-actions.pod:317
4983 msgid "aug-match"
4984 msgstr ""
4985
4986 #. type: verbatim
4987 #: ../fish/guestfish-actions.pod:319
4988 #, no-wrap
4989 msgid ""
4990 " aug-match augpath\n"
4991 "\n"
4992 msgstr ""
4993
4994 #. type: textblock
4995 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4996 msgid ""
4997 "Returns a list of paths which match the path expression C<path>.  The "
4998 "returned paths are sufficiently qualified so that they match exactly one "
4999 "node in the current tree."
5000 msgstr ""
5001
5002 #. type: =head2
5003 #: ../fish/guestfish-actions.pod:325
5004 msgid "aug-mv"
5005 msgstr ""
5006
5007 #. type: verbatim
5008 #: ../fish/guestfish-actions.pod:327
5009 #, no-wrap
5010 msgid ""
5011 " aug-mv src dest\n"
5012 "\n"
5013 msgstr ""
5014
5015 #. type: textblock
5016 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5017 msgid ""
5018 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5019 "C<dest> is overwritten if it exists."
5020 msgstr ""
5021
5022 #. type: =head2
5023 #: ../fish/guestfish-actions.pod:332
5024 msgid "aug-rm"
5025 msgstr ""
5026
5027 #. type: verbatim
5028 #: ../fish/guestfish-actions.pod:334
5029 #, no-wrap
5030 msgid ""
5031 " aug-rm augpath\n"
5032 "\n"
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5037 msgid "Remove C<path> and all of its children."
5038 msgstr ""
5039
5040 #. type: textblock
5041 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5042 msgid "On success this returns the number of entries which were removed."
5043 msgstr ""
5044
5045 #. type: =head2
5046 #: ../fish/guestfish-actions.pod:340
5047 msgid "aug-save"
5048 msgstr ""
5049
5050 #. type: verbatim
5051 #: ../fish/guestfish-actions.pod:342
5052 #, no-wrap
5053 msgid ""
5054 " aug-save\n"
5055 "\n"
5056 msgstr ""
5057
5058 #. type: textblock
5059 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5060 msgid "This writes all pending changes to disk."
5061 msgstr ""
5062
5063 #. type: textblock
5064 #: ../fish/guestfish-actions.pod:346
5065 msgid ""
5066 "The flags which were passed to L</aug-init> affect exactly how files are "
5067 "saved."
5068 msgstr ""
5069
5070 #. type: =head2
5071 #: ../fish/guestfish-actions.pod:349
5072 msgid "aug-set"
5073 msgstr ""
5074
5075 #. type: verbatim
5076 #: ../fish/guestfish-actions.pod:351
5077 #, no-wrap
5078 msgid ""
5079 " aug-set augpath val\n"
5080 "\n"
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5085 msgid "Set the value associated with C<path> to C<val>."
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../fish/guestfish-actions.pod:355
5090 msgid ""
5091 "In the Augeas API, it is possible to clear a node by setting the value to "
5092 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5093 "this call.  Instead you must use the L</aug-clear> call."
5094 msgstr ""
5095
5096 #. type: =head2
5097 #: ../fish/guestfish-actions.pod:360
5098 msgid "available"
5099 msgstr ""
5100
5101 #. type: verbatim
5102 #: ../fish/guestfish-actions.pod:362
5103 #, no-wrap
5104 msgid ""
5105 " available 'groups ...'\n"
5106 "\n"
5107 msgstr ""
5108
5109 #. type: textblock
5110 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5111 msgid ""
5112 "This command is used to check the availability of some groups of "
5113 "functionality in the appliance, which not all builds of the libguestfs "
5114 "appliance will be able to provide."
5115 msgstr ""
5116
5117 #. type: textblock
5118 #: ../fish/guestfish-actions.pod:368
5119 msgid ""
5120 "The libguestfs groups, and the functions that those groups correspond to, "
5121 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5122 "runtime by calling L</available-all-groups>."
5123 msgstr ""
5124
5125 #. type: textblock
5126 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5127 msgid ""
5128 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5129 "\"]> would check for the availability of the Linux inotify functions and "
5130 "Augeas (configuration file editing) functions."
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5135 msgid "The command returns no error if I<all> requested groups are available."
5136 msgstr ""
5137
5138 #. type: textblock
5139 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5140 msgid ""
5141 "It fails with an error if one or more of the requested groups is unavailable "
5142 "in the appliance."
5143 msgstr ""
5144
5145 #. type: textblock
5146 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5147 msgid ""
5148 "If an unknown group name is included in the list of groups then an error is "
5149 "always returned."
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5154 msgid "I<Notes:>"
5155 msgstr ""
5156
5157 #. type: textblock
5158 #: ../fish/guestfish-actions.pod:392
5159 msgid "You must call L</launch> before calling this function."
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5164 msgid ""
5165 "The reason is because we don't know what groups are supported by the "
5166 "appliance/daemon until it is running and can be queried."
5167 msgstr ""
5168
5169 #. type: textblock
5170 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5171 msgid ""
5172 "If a group of functions is available, this does not necessarily mean that "
5173 "they will work.  You still have to check for errors when calling individual "
5174 "API functions even if they are available."
5175 msgstr ""
5176
5177 #. type: textblock
5178 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5179 msgid ""
5180 "It is usually the job of distro packagers to build complete functionality "
5181 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5182 "with all requirements satisfied, will support everything."
5183 msgstr ""
5184
5185 #. type: textblock
5186 #: ../fish/guestfish-actions.pod:414
5187 msgid ""
5188 "This call was added in version C<1.0.80>.  In previous versions of "
5189 "libguestfs all you could do would be to speculatively execute a command to "
5190 "find out if the daemon implemented it.  See also L</version>."
5191 msgstr ""
5192
5193 #. type: =head2
5194 #: ../fish/guestfish-actions.pod:421
5195 msgid "available-all-groups"
5196 msgstr ""
5197
5198 #. type: verbatim
5199 #: ../fish/guestfish-actions.pod:423
5200 #, no-wrap
5201 msgid ""
5202 " available-all-groups\n"
5203 "\n"
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../fish/guestfish-actions.pod:425
5208 msgid ""
5209 "This command returns a list of all optional groups that this daemon knows "
5210 "about.  Note this returns both supported and unsupported groups.  To find "
5211 "out which ones the daemon can actually support you have to call L</"
5212 "available> on each member of the returned list."
5213 msgstr ""
5214
5215 #. type: textblock
5216 #: ../fish/guestfish-actions.pod:431
5217 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5218 msgstr ""
5219
5220 #. type: =head2
5221 #: ../fish/guestfish-actions.pod:433
5222 msgid "base64-in"
5223 msgstr ""
5224
5225 #. type: verbatim
5226 #: ../fish/guestfish-actions.pod:435
5227 #, no-wrap
5228 msgid ""
5229 " base64-in (base64file|-) filename\n"
5230 "\n"
5231 msgstr ""
5232
5233 #. type: textblock
5234 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5235 msgid ""
5236 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5237 msgstr ""
5238
5239 #. type: textblock
5240 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5241 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5242 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5243 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5244 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
5245 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
5246 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
5247 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5248 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5249 msgstr ""
5250
5251 #. type: =head2
5252 #: ../fish/guestfish-actions.pod:442
5253 msgid "base64-out"
5254 msgstr ""
5255
5256 #. type: verbatim
5257 #: ../fish/guestfish-actions.pod:444
5258 #, no-wrap
5259 msgid ""
5260 " base64-out filename (base64file|-)\n"
5261 "\n"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5266 msgid ""
5267 "This command downloads the contents of C<filename>, writing it out to local "
5268 "file C<base64file> encoded as base64."
5269 msgstr ""
5270
5271 #. type: =head2
5272 #: ../fish/guestfish-actions.pod:451
5273 msgid "blockdev-flushbufs"
5274 msgstr ""
5275
5276 #. type: verbatim
5277 #: ../fish/guestfish-actions.pod:453
5278 #, no-wrap
5279 msgid ""
5280 " blockdev-flushbufs device\n"
5281 "\n"
5282 msgstr ""
5283
5284 #. type: textblock
5285 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5286 msgid ""
5287 "This tells the kernel to flush internal buffers associated with C<device>."
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5292 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5293 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5294 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5295 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5296 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5297 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5298 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5299 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5300 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5301 msgid "This uses the L<blockdev(8)> command."
5302 msgstr ""
5303
5304 #. type: =head2
5305 #: ../fish/guestfish-actions.pod:460
5306 msgid "blockdev-getbsz"
5307 msgstr ""
5308
5309 #. type: verbatim
5310 #: ../fish/guestfish-actions.pod:462
5311 #, no-wrap
5312 msgid ""
5313 " blockdev-getbsz device\n"
5314 "\n"
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5319 msgid "This returns the block size of a device."
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5324 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5325 msgid ""
5326 "(Note this is different from both I<size in blocks> and I<filesystem block "
5327 "size>)."
5328 msgstr ""
5329
5330 #. type: =head2
5331 #: ../fish/guestfish-actions.pod:471
5332 msgid "blockdev-getro"
5333 msgstr ""
5334
5335 #. type: verbatim
5336 #: ../fish/guestfish-actions.pod:473
5337 #, no-wrap
5338 msgid ""
5339 " blockdev-getro device\n"
5340 "\n"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5345 msgid ""
5346 "Returns a boolean indicating if the block device is read-only (true if read-"
5347 "only, false if not)."
5348 msgstr ""
5349
5350 #. type: =head2
5351 #: ../fish/guestfish-actions.pod:480
5352 msgid "blockdev-getsize64"
5353 msgstr ""
5354
5355 #. type: verbatim
5356 #: ../fish/guestfish-actions.pod:482
5357 #, no-wrap
5358 msgid ""
5359 " blockdev-getsize64 device\n"
5360 "\n"
5361 msgstr ""
5362
5363 #. type: textblock
5364 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5365 msgid "This returns the size of the device in bytes."
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../fish/guestfish-actions.pod:486
5370 msgid "See also L</blockdev-getsz>."
5371 msgstr ""
5372
5373 #. type: =head2
5374 #: ../fish/guestfish-actions.pod:490
5375 msgid "blockdev-getss"
5376 msgstr ""
5377
5378 #. type: verbatim
5379 #: ../fish/guestfish-actions.pod:492
5380 #, no-wrap
5381 msgid ""
5382 " blockdev-getss device\n"
5383 "\n"
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5388 msgid ""
5389 "This returns the size of sectors on a block device.  Usually 512, but can be "
5390 "larger for modern devices."
5391 msgstr ""
5392
5393 #. type: textblock
5394 #: ../fish/guestfish-actions.pod:497
5395 msgid ""
5396 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5397 msgstr ""
5398
5399 #. type: =head2
5400 #: ../fish/guestfish-actions.pod:502
5401 msgid "blockdev-getsz"
5402 msgstr ""
5403
5404 #. type: verbatim
5405 #: ../fish/guestfish-actions.pod:504
5406 #, no-wrap
5407 msgid ""
5408 " blockdev-getsz device\n"
5409 "\n"
5410 msgstr ""
5411
5412 #. type: textblock
5413 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5414 msgid ""
5415 "This returns the size of the device in units of 512-byte sectors (even if "
5416 "the sectorsize isn't 512 bytes ... weird)."
5417 msgstr ""
5418
5419 #. type: textblock
5420 #: ../fish/guestfish-actions.pod:509
5421 msgid ""
5422 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5423 "blockdev-getsize64> for the more useful I<size in bytes>."
5424 msgstr ""
5425
5426 #. type: =head2
5427 #: ../fish/guestfish-actions.pod:515
5428 msgid "blockdev-rereadpt"
5429 msgstr ""
5430
5431 #. type: verbatim
5432 #: ../fish/guestfish-actions.pod:517
5433 #, no-wrap
5434 msgid ""
5435 " blockdev-rereadpt device\n"
5436 "\n"
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5441 msgid "Reread the partition table on C<device>."
5442 msgstr ""
5443
5444 #. type: =head2
5445 #: ../fish/guestfish-actions.pod:523
5446 msgid "blockdev-setbsz"
5447 msgstr ""
5448
5449 #. type: verbatim
5450 #: ../fish/guestfish-actions.pod:525
5451 #, no-wrap
5452 msgid ""
5453 " blockdev-setbsz device blocksize\n"
5454 "\n"
5455 msgstr ""
5456
5457 #. type: textblock
5458 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5459 msgid "This sets the block size of a device."
5460 msgstr ""
5461
5462 #. type: =head2
5463 #: ../fish/guestfish-actions.pod:534
5464 msgid "blockdev-setro"
5465 msgstr ""
5466
5467 #. type: verbatim
5468 #: ../fish/guestfish-actions.pod:536
5469 #, no-wrap
5470 msgid ""
5471 " blockdev-setro device\n"
5472 "\n"
5473 msgstr ""
5474
5475 #. type: textblock
5476 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5477 msgid "Sets the block device named C<device> to read-only."
5478 msgstr ""
5479
5480 #. type: =head2
5481 #: ../fish/guestfish-actions.pod:542
5482 msgid "blockdev-setrw"
5483 msgstr ""
5484
5485 #. type: verbatim
5486 #: ../fish/guestfish-actions.pod:544
5487 #, no-wrap
5488 msgid ""
5489 " blockdev-setrw device\n"
5490 "\n"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5495 msgid "Sets the block device named C<device> to read-write."
5496 msgstr ""
5497
5498 #. type: =head2
5499 #: ../fish/guestfish-actions.pod:550
5500 msgid "btrfs-filesystem-resize"
5501 msgstr ""
5502
5503 #. type: verbatim
5504 #: ../fish/guestfish-actions.pod:552
5505 #, no-wrap
5506 msgid ""
5507 " btrfs-filesystem-resize mountpoint [size:..]\n"
5508 "\n"
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5513 msgid "This command resizes a btrfs filesystem."
5514 msgstr ""
5515
5516 #. type: textblock
5517 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5518 msgid ""
5519 "Note that unlike other resize calls, the filesystem has to be mounted and "
5520 "the parameter is the mountpoint not the device (this is a requirement of "
5521 "btrfs itself)."
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
5526 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
5527 msgid "The optional parameters are:"
5528 msgstr ""
5529
5530 #. type: =item
5531 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
5532 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
5533 msgid "C<size>"
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5538 msgid ""
5539 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5540 "resized to the maximum size."
5541 msgstr ""
5542
5543 #. type: textblock
5544 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5545 msgid "See also L<btrfs(8)>."
5546 msgstr ""
5547
5548 #. type: =head2
5549 #: ../fish/guestfish-actions.pod:575
5550 msgid "case-sensitive-path"
5551 msgstr ""
5552
5553 #. type: verbatim
5554 #: ../fish/guestfish-actions.pod:577
5555 #, no-wrap
5556 msgid ""
5557 " case-sensitive-path path\n"
5558 "\n"
5559 msgstr ""
5560
5561 #. type: textblock
5562 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5563 msgid ""
5564 "This can be used to resolve case insensitive paths on a filesystem which is "
5565 "case sensitive.  The use case is to resolve paths which you have read from "
5566 "Windows configuration files or the Windows Registry, to the true path."
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5571 msgid ""
5572 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5573 "(and probably others), which is that although the underlying filesystem is "
5574 "case-insensitive, the driver exports the filesystem to Linux as case-"
5575 "sensitive."
5576 msgstr ""
5577
5578 #. type: textblock
5579 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5580 msgid ""
5581 "One consequence of this is that special directories such as C<c:\\windows> "
5582 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5583 "precise details of how they were created.  In Windows itself this would not "
5584 "be a problem."
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5589 msgid ""
5590 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5591 "#posixfilenames1>"
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5596 msgid ""
5597 "This function resolves the true case of each element in the path and returns "
5598 "the case-sensitive path."
5599 msgstr ""
5600
5601 #. type: textblock
5602 #: ../fish/guestfish-actions.pod:601
5603 msgid ""
5604 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5605 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5606 "the directories were originally created under Windows)."
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5611 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5612 msgstr ""
5613
5614 #. type: textblock
5615 #: ../fish/guestfish-actions.pod:609
5616 msgid "See also L</realpath>."
5617 msgstr ""
5618
5619 #. type: =head2
5620 #: ../fish/guestfish-actions.pod:611
5621 msgid "cat"
5622 msgstr ""
5623
5624 #. type: verbatim
5625 #: ../fish/guestfish-actions.pod:613
5626 #, no-wrap
5627 msgid ""
5628 " cat path\n"
5629 "\n"
5630 msgstr ""
5631
5632 #. type: textblock
5633 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
5634 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
5635 msgid "Return the contents of the file named C<path>."
5636 msgstr ""
5637
5638 #. type: textblock
5639 #: ../fish/guestfish-actions.pod:617
5640 msgid ""
5641 "Note that this function cannot correctly handle binary files (specifically, "
5642 "files containing C<\\0> character which is treated as end of string).  For "
5643 "those you need to use the L</read-file> or L</download> functions which have "
5644 "a more complex interface."
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5649 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
5650 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
5651 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
5652 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
5653 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
5654 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
5655 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
5656 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
5657 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
5658 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
5659 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
5660 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
5661 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
5662 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
5663 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
5664 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5665 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
5666 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
5667 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
5668 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
5669 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
5670 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
5671 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
5672 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
5673 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
5674 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
5675 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
5676 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
5677 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
5678 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
5679 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
5680 msgid ""
5681 "Because of the message protocol, there is a transfer limit of somewhere "
5682 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5683 msgstr ""
5684
5685 #. type: =head2
5686 #: ../fish/guestfish-actions.pod:625
5687 msgid "checksum"
5688 msgstr ""
5689
5690 #. type: verbatim
5691 #: ../fish/guestfish-actions.pod:627
5692 #, no-wrap
5693 msgid ""
5694 " checksum csumtype path\n"
5695 "\n"
5696 msgstr ""
5697
5698 #. type: textblock
5699 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5700 msgid ""
5701 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5706 msgid ""
5707 "The type of checksum to compute is given by the C<csumtype> parameter which "
5708 "must have one of the following values:"
5709 msgstr ""
5710
5711 #. type: =item
5712 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5713 msgid "C<crc>"
5714 msgstr ""
5715
5716 #. type: textblock
5717 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5718 msgid ""
5719 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5720 "C<cksum> command."
5721 msgstr ""
5722
5723 #. type: =item
5724 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5725 msgid "C<md5>"
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5730 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5731 msgstr ""
5732
5733 #. type: =item
5734 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5735 msgid "C<sha1>"
5736 msgstr ""
5737
5738 #. type: textblock
5739 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5740 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5741 msgstr ""
5742
5743 #. type: =item
5744 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5745 msgid "C<sha224>"
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5750 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5751 msgstr ""
5752
5753 #. type: =item
5754 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5755 msgid "C<sha256>"
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5760 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5761 msgstr ""
5762
5763 #. type: =item
5764 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5765 msgid "C<sha384>"
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5770 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5771 msgstr ""
5772
5773 #. type: =item
5774 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5775 msgid "C<sha512>"
5776 msgstr ""
5777
5778 #. type: textblock
5779 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5780 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5781 msgstr ""
5782
5783 #. type: textblock
5784 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5785 msgid "The checksum is returned as a printable string."
5786 msgstr ""
5787
5788 #. type: textblock
5789 #: ../fish/guestfish-actions.pod:670
5790 msgid "To get the checksum for a device, use L</checksum-device>."
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../fish/guestfish-actions.pod:672
5795 msgid "To get the checksums for many files, use L</checksums-out>."
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../fish/guestfish-actions.pod:674
5800 msgid "checksum-device"
5801 msgstr ""
5802
5803 #. type: verbatim
5804 #: ../fish/guestfish-actions.pod:676
5805 #, no-wrap
5806 msgid ""
5807 " checksum-device csumtype device\n"
5808 "\n"
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../fish/guestfish-actions.pod:678
5813 msgid ""
5814 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5815 "device named C<device>.  For the types of checksums supported see the L</"
5816 "checksum> command."
5817 msgstr ""
5818
5819 #. type: =head2
5820 #: ../fish/guestfish-actions.pod:682
5821 msgid "checksums-out"
5822 msgstr ""
5823
5824 #. type: verbatim
5825 #: ../fish/guestfish-actions.pod:684
5826 #, no-wrap
5827 msgid ""
5828 " checksums-out csumtype directory (sumsfile|-)\n"
5829 "\n"
5830 msgstr ""
5831
5832 #. type: textblock
5833 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5834 msgid ""
5835 "This command computes the checksums of all regular files in C<directory> and "
5836 "then emits a list of those checksums to the local output file C<sumsfile>."
5837 msgstr ""
5838
5839 #. type: textblock
5840 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5841 msgid ""
5842 "This can be used for verifying the integrity of a virtual machine.  However "
5843 "to be properly secure you should pay attention to the output of the checksum "
5844 "command (it uses the ones from GNU coreutils).  In particular when the "
5845 "filename is not printable, coreutils uses a special backslash syntax.  For "
5846 "more information, see the GNU coreutils info file."
5847 msgstr ""
5848
5849 #. type: =head2
5850 #: ../fish/guestfish-actions.pod:700
5851 msgid "chmod"
5852 msgstr ""
5853
5854 #. type: verbatim
5855 #: ../fish/guestfish-actions.pod:702
5856 #, no-wrap
5857 msgid ""
5858 " chmod mode path\n"
5859 "\n"
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5864 msgid ""
5865 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5866 "supported."
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5871 msgid ""
5872 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5873 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5874 "C<700>."
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
5879 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
5880 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
5881 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
5882 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
5883 msgid "The mode actually set is affected by the umask."
5884 msgstr ""
5885
5886 #. type: =head2
5887 #: ../fish/guestfish-actions.pod:713
5888 msgid "chown"
5889 msgstr ""
5890
5891 #. type: verbatim
5892 #: ../fish/guestfish-actions.pod:715
5893 #, no-wrap
5894 msgid ""
5895 " chown owner group path\n"
5896 "\n"
5897 msgstr ""
5898
5899 #. type: textblock
5900 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5901 msgid "Change the file owner to C<owner> and group to C<group>."
5902 msgstr ""
5903
5904 #. type: textblock
5905 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
5906 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
5907 msgid ""
5908 "Only numeric uid and gid are supported.  If you want to use names, you will "
5909 "need to locate and parse the password file yourself (Augeas support makes "
5910 "this relatively easy)."
5911 msgstr ""
5912
5913 #. type: =head2
5914 #: ../fish/guestfish-actions.pod:723
5915 msgid "command"
5916 msgstr ""
5917
5918 #. type: verbatim
5919 #: ../fish/guestfish-actions.pod:725
5920 #, no-wrap
5921 msgid ""
5922 " command 'arguments ...'\n"
5923 "\n"
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5928 msgid ""
5929 "This call runs a command from the guest filesystem.  The filesystem must be "
5930 "mounted, and must contain a compatible operating system (ie. something "
5931 "Linux, with the same or compatible processor architecture)."
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../fish/guestfish-actions.pod:732
5936 msgid ""
5937 "The single parameter is an argv-style list of arguments.  The first element "
5938 "is the name of the program to run.  Subsequent elements are parameters.  The "
5939 "list must be non-empty (ie. must contain a program name).  Note that the "
5940 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5941 msgstr ""
5942
5943 #. type: textblock
5944 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5945 msgid "The return value is anything printed to I<stdout> by the command."
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5950 msgid ""
5951 "If the command returns a non-zero exit status, then this function returns an "
5952 "error message.  The error message string is the content of I<stderr> from "
5953 "the command."
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5958 msgid ""
5959 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
5960 "bin>.  If you require a program from another location, you should provide "
5961 "the full path in the first parameter."
5962 msgstr ""
5963
5964 #. type: textblock
5965 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5966 msgid ""
5967 "Shared libraries and data files required by the program must be available on "
5968 "filesystems which are mounted in the correct places.  It is the caller's "
5969 "responsibility to ensure all filesystems that are needed are mounted at the "
5970 "right locations."
5971 msgstr ""
5972
5973 #. type: =head2
5974 #: ../fish/guestfish-actions.pod:760
5975 msgid "command-lines"
5976 msgstr ""
5977
5978 #. type: verbatim
5979 #: ../fish/guestfish-actions.pod:762
5980 #, no-wrap
5981 msgid ""
5982 " command-lines 'arguments ...'\n"
5983 "\n"
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../fish/guestfish-actions.pod:764
5988 msgid ""
5989 "This is the same as L</command>, but splits the result into a list of lines."
5990 msgstr ""
5991
5992 #. type: textblock
5993 #: ../fish/guestfish-actions.pod:767
5994 msgid "See also: L</sh-lines>"
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../fish/guestfish-actions.pod:772
5999 msgid "compress-device-out"
6000 msgstr ""
6001
6002 #. type: verbatim
6003 #: ../fish/guestfish-actions.pod:774
6004 #, no-wrap
6005 msgid ""
6006 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6007 "\n"
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6012 msgid ""
6013 "This command compresses C<device> and writes it out to the local file "
6014 "C<zdevice>."
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:779
6019 msgid ""
6020 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6021 "compress-out>."
6022 msgstr ""
6023
6024 #. type: =head2
6025 #: ../fish/guestfish-actions.pod:786
6026 msgid "compress-out"
6027 msgstr ""
6028
6029 #. type: verbatim
6030 #: ../fish/guestfish-actions.pod:788
6031 #, no-wrap
6032 msgid ""
6033 " compress-out ctype file (zfile|-) [level:..]\n"
6034 "\n"
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6039 msgid ""
6040 "This command compresses C<file> and writes it out to the local file C<zfile>."
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6045 msgid ""
6046 "The compression program used is controlled by the C<ctype> parameter.  "
6047 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6048 "Some compression types may not be supported by particular builds of "
6049 "libguestfs, in which case you will get an error containing the substring "
6050 "\"not supported\"."
6051 msgstr ""
6052
6053 #. type: textblock
6054 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6055 msgid ""
6056 "The optional C<level> parameter controls compression level.  The meaning and "
6057 "default for this parameter depends on the compression program being used."
6058 msgstr ""
6059
6060 #. type: =head2
6061 #: ../fish/guestfish-actions.pod:807
6062 msgid "config"
6063 msgstr ""
6064
6065 #. type: verbatim
6066 #: ../fish/guestfish-actions.pod:809
6067 #, no-wrap
6068 msgid ""
6069 " config qemuparam qemuvalue\n"
6070 "\n"
6071 msgstr ""
6072
6073 #. type: textblock
6074 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6075 msgid ""
6076 "This can be used to add arbitrary qemu command line parameters of the form "
6077 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6078 "setting some parameters which would interfere with parameters that we use."
6079 msgstr ""
6080
6081 #. type: textblock
6082 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6083 msgid "The first character of C<param> string must be a C<-> (dash)."
6084 msgstr ""
6085
6086 #. type: textblock
6087 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6088 msgid "C<value> can be NULL."
6089 msgstr ""
6090
6091 #. type: =head2
6092 #: ../fish/guestfish-actions.pod:820
6093 msgid "copy-size"
6094 msgstr ""
6095
6096 #. type: verbatim
6097 #: ../fish/guestfish-actions.pod:822
6098 #, no-wrap
6099 msgid ""
6100 " copy-size src dest size\n"
6101 "\n"
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6106 msgid ""
6107 "This command copies exactly C<size> bytes from one source device or file "
6108 "C<src> to another destination device or file C<dest>."
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6113 msgid ""
6114 "Note this will fail if the source is too short or if the destination is not "
6115 "large enough."
6116 msgstr ""
6117
6118 #. type: =head2
6119 #: ../fish/guestfish-actions.pod:830
6120 msgid "cp"
6121 msgstr ""
6122
6123 #. type: verbatim
6124 #: ../fish/guestfish-actions.pod:832
6125 #, no-wrap
6126 msgid ""
6127 " cp src dest\n"
6128 "\n"
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6133 msgid ""
6134 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6135 "destination filename or destination directory."
6136 msgstr ""
6137
6138 #. type: =head2
6139 #: ../fish/guestfish-actions.pod:837
6140 msgid "cp-a"
6141 msgstr ""
6142
6143 #. type: verbatim
6144 #: ../fish/guestfish-actions.pod:839
6145 #, no-wrap
6146 msgid ""
6147 " cp-a src dest\n"
6148 "\n"
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6153 msgid ""
6154 "This copies a file or directory from C<src> to C<dest> recursively using the "
6155 "C<cp -a> command."
6156 msgstr ""
6157
6158 #. type: =head2
6159 #: ../fish/guestfish-actions.pod:844
6160 msgid "dd"
6161 msgstr ""
6162
6163 #. type: verbatim
6164 #: ../fish/guestfish-actions.pod:846
6165 #, no-wrap
6166 msgid ""
6167 " dd src dest\n"
6168 "\n"
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6173 msgid ""
6174 "This command copies from one source device or file C<src> to another "
6175 "destination device or file C<dest>.  Normally you would use this to copy to "
6176 "or from a device or partition, for example to duplicate a filesystem."
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:853
6181 msgid ""
6182 "If the destination is a device, it must be as large or larger than the "
6183 "source file or device, otherwise the copy will fail.  This command cannot do "
6184 "partial copies (see L</copy-size>)."
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../fish/guestfish-actions.pod:857
6189 msgid "df"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:859
6194 #, no-wrap
6195 msgid ""
6196 " df\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
6202 msgid "This command runs the C<df> command to report disk space used."
6203 msgstr ""
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6207 msgid ""
6208 "This command is mostly useful for interactive sessions.  It is I<not> "
6209 "intended that you try to parse the output string.  Use L</statvfs> from "
6210 "programs."
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../fish/guestfish-actions.pod:867
6215 msgid "df-h"
6216 msgstr ""
6217
6218 #. type: verbatim
6219 #: ../fish/guestfish-actions.pod:869
6220 #, no-wrap
6221 msgid ""
6222 " df-h\n"
6223 "\n"
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
6228 msgid ""
6229 "This command runs the C<df -h> command to report disk space used in human-"
6230 "readable format."
6231 msgstr ""
6232
6233 #. type: =head2
6234 #: ../fish/guestfish-actions.pod:878
6235 msgid "dmesg"
6236 msgstr ""
6237
6238 #. type: verbatim
6239 #: ../fish/guestfish-actions.pod:880
6240 #, no-wrap
6241 msgid ""
6242 " dmesg\n"
6243 "\n"
6244 msgstr ""
6245
6246 #. type: textblock
6247 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
6248 msgid ""
6249 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6250 "This is sometimes useful for extended debugging of problems."
6251 msgstr ""
6252
6253 #. type: textblock
6254 #: ../fish/guestfish-actions.pod:886
6255 msgid ""
6256 "Another way to get the same information is to enable verbose messages with "
6257 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6258 "before running the program."
6259 msgstr ""
6260
6261 #. type: =head2
6262 #: ../fish/guestfish-actions.pod:891
6263 msgid "download"
6264 msgstr ""
6265
6266 #. type: verbatim
6267 #: ../fish/guestfish-actions.pod:893
6268 #, no-wrap
6269 msgid ""
6270 " download remotefilename (filename|-)\n"
6271 "\n"
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6276 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
6277 msgid ""
6278 "Download file C<remotefilename> and save it as C<filename> on the local "
6279 "machine."
6280 msgstr ""
6281
6282 #. type: textblock
6283 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
6284 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
6285 msgid "C<filename> can also be a named pipe."
6286 msgstr ""
6287
6288 #. type: textblock
6289 #: ../fish/guestfish-actions.pod:900
6290 msgid "See also L</upload>, L</cat>."
6291 msgstr ""
6292
6293 #. type: =head2
6294 #: ../fish/guestfish-actions.pod:904
6295 msgid "download-offset"
6296 msgstr ""
6297
6298 #. type: verbatim
6299 #: ../fish/guestfish-actions.pod:906
6300 #, no-wrap
6301 msgid ""
6302 " download-offset remotefilename (filename|-) offset size\n"
6303 "\n"
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
6308 msgid ""
6309 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6310 "region must be within the file or device)."
6311 msgstr ""
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:914
6315 msgid ""
6316 "Note that there is no limit on the amount of data that can be downloaded "
6317 "with this call, unlike with L</pread>, and this call always reads the full "
6318 "amount unless an error occurs."
6319 msgstr ""
6320
6321 #. type: textblock
6322 #: ../fish/guestfish-actions.pod:919
6323 msgid "See also L</download>, L</pread>."
6324 msgstr ""
6325
6326 #. type: =head2
6327 #: ../fish/guestfish-actions.pod:923
6328 msgid "drop-caches"
6329 msgstr ""
6330
6331 #. type: verbatim
6332 #: ../fish/guestfish-actions.pod:925
6333 #, no-wrap
6334 msgid ""
6335 " drop-caches whattodrop\n"
6336 "\n"
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
6341 msgid ""
6342 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6343 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6344 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
6349 msgid "Setting C<whattodrop> to 3 should drop everything."
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
6354 msgid ""
6355 "This automatically calls L<sync(2)> before the operation, so that the "
6356 "maximum guest memory is freed."
6357 msgstr ""
6358
6359 #. type: =head2
6360 #: ../fish/guestfish-actions.pod:937
6361 msgid "du"
6362 msgstr ""
6363
6364 #. type: verbatim
6365 #: ../fish/guestfish-actions.pod:939
6366 #, no-wrap
6367 msgid ""
6368 " du path\n"
6369 "\n"
6370 msgstr ""
6371
6372 #. type: textblock
6373 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
6374 msgid ""
6375 "This command runs the C<du -s> command to estimate file space usage for "
6376 "C<path>."
6377 msgstr ""
6378
6379 #. type: textblock
6380 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
6381 msgid ""
6382 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6383 "estimate includes the contents of the directory and all subdirectories "
6384 "(recursively)."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
6389 msgid ""
6390 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6391 msgstr ""
6392
6393 #. type: =head2
6394 #: ../fish/guestfish-actions.pod:951
6395 msgid "e2fsck-f"
6396 msgstr ""
6397
6398 #. type: verbatim
6399 #: ../fish/guestfish-actions.pod:953
6400 #, no-wrap
6401 msgid ""
6402 " e2fsck-f device\n"
6403 "\n"
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
6408 msgid ""
6409 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6410 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6411 "clean (I<-f>)."
6412 msgstr ""
6413
6414 #. type: textblock
6415 #: ../fish/guestfish-actions.pod:959
6416 msgid ""
6417 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6418 "should use L</fsck>."
6419 msgstr ""
6420
6421 #. type: =head2
6422 #: ../fish/guestfish-actions.pod:962
6423 msgid "echo-daemon"
6424 msgstr ""
6425
6426 #. type: verbatim
6427 #: ../fish/guestfish-actions.pod:964
6428 #, no-wrap
6429 msgid ""
6430 " echo-daemon 'words ...'\n"
6431 "\n"
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
6436 msgid ""
6437 "This command concatenates the list of C<words> passed with single spaces "
6438 "between them and returns the resulting string."
6439 msgstr ""
6440
6441 #. type: textblock
6442 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
6443 msgid "You can use this command to test the connection through to the daemon."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:971
6448 msgid "See also L</ping-daemon>."
6449 msgstr ""
6450
6451 #. type: =head2
6452 #: ../fish/guestfish-actions.pod:973
6453 msgid "egrep"
6454 msgstr ""
6455
6456 #. type: verbatim
6457 #: ../fish/guestfish-actions.pod:975
6458 #, no-wrap
6459 msgid ""
6460 " egrep regex path\n"
6461 "\n"
6462 msgstr ""
6463
6464 #. type: textblock
6465 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
6466 msgid ""
6467 "This calls the external C<egrep> program and returns the matching lines."
6468 msgstr ""
6469
6470 #. type: =head2
6471 #: ../fish/guestfish-actions.pod:983
6472 msgid "egrepi"
6473 msgstr ""
6474
6475 #. type: verbatim
6476 #: ../fish/guestfish-actions.pod:985
6477 #, no-wrap
6478 msgid ""
6479 " egrepi regex path\n"
6480 "\n"
6481 msgstr ""
6482
6483 #. type: textblock
6484 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
6485 msgid ""
6486 "This calls the external C<egrep -i> program and returns the matching lines."
6487 msgstr ""
6488
6489 #. type: =head2
6490 #: ../fish/guestfish-actions.pod:993
6491 msgid "equal"
6492 msgstr ""
6493
6494 #. type: verbatim
6495 #: ../fish/guestfish-actions.pod:995
6496 #, no-wrap
6497 msgid ""
6498 " equal file1 file2\n"
6499 "\n"
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
6504 msgid ""
6505 "This compares the two files C<file1> and C<file2> and returns true if their "
6506 "content is exactly equal, or false otherwise."
6507 msgstr ""
6508
6509 #. type: textblock
6510 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
6511 msgid "The external L<cmp(1)> program is used for the comparison."
6512 msgstr ""
6513
6514 #. type: =head2
6515 #: ../fish/guestfish-actions.pod:1002
6516 msgid "exists"
6517 msgstr ""
6518
6519 #. type: verbatim
6520 #: ../fish/guestfish-actions.pod:1004
6521 #, no-wrap
6522 msgid ""
6523 " exists path\n"
6524 "\n"
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
6529 msgid ""
6530 "This returns C<true> if and only if there is a file, directory (or anything) "
6531 "with the given C<path> name."
6532 msgstr ""
6533
6534 #. type: textblock
6535 #: ../fish/guestfish-actions.pod:1009
6536 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6537 msgstr ""
6538
6539 #. type: =head2
6540 #: ../fish/guestfish-actions.pod:1011
6541 msgid "fallocate"
6542 msgstr ""
6543
6544 #. type: verbatim
6545 #: ../fish/guestfish-actions.pod:1013
6546 #, no-wrap
6547 msgid ""
6548 " fallocate path len\n"
6549 "\n"
6550 msgstr ""
6551
6552 #. type: textblock
6553 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6554 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
6555 msgid ""
6556 "This command preallocates a file (containing zero bytes) named C<path> of "
6557 "size C<len> bytes.  If the file exists already, it is overwritten."
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
6562 msgid ""
6563 "Do not confuse this with the guestfish-specific C<alloc> command which "
6564 "allocates a file in the host and attaches it as a device."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:1023
6569 msgid ""
6570 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6571 "instead."
6572 msgstr ""
6573
6574 #. type: =head2
6575 #: ../fish/guestfish-actions.pod:1030
6576 msgid "fallocate64"
6577 msgstr ""
6578
6579 #. type: verbatim
6580 #: ../fish/guestfish-actions.pod:1032
6581 #, no-wrap
6582 msgid ""
6583 " fallocate64 path len\n"
6584 "\n"
6585 msgstr ""
6586
6587 #. type: textblock
6588 #: ../fish/guestfish-actions.pod:1038
6589 msgid ""
6590 "Note that this call allocates disk blocks for the file.  To create a sparse "
6591 "file use L</truncate-size> instead."
6592 msgstr ""
6593
6594 #. type: textblock
6595 #: ../fish/guestfish-actions.pod:1041
6596 msgid ""
6597 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6598 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6599 "maximum size of files created through that call to 1GB."
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
6604 msgid ""
6605 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6606 "commands which create a file in the host and attach it as a device."
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:1050
6611 msgid "fgrep"
6612 msgstr ""
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:1052
6616 #, no-wrap
6617 msgid ""
6618 " fgrep pattern path\n"
6619 "\n"
6620 msgstr ""
6621
6622 #. type: textblock
6623 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
6624 msgid ""
6625 "This calls the external C<fgrep> program and returns the matching lines."
6626 msgstr ""
6627
6628 #. type: =head2
6629 #: ../fish/guestfish-actions.pod:1060
6630 msgid "fgrepi"
6631 msgstr ""
6632
6633 #. type: verbatim
6634 #: ../fish/guestfish-actions.pod:1062
6635 #, no-wrap
6636 msgid ""
6637 " fgrepi pattern path\n"
6638 "\n"
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
6643 msgid ""
6644 "This calls the external C<fgrep -i> program and returns the matching lines."
6645 msgstr ""
6646
6647 #. type: =head2
6648 #: ../fish/guestfish-actions.pod:1070
6649 msgid "file"
6650 msgstr ""
6651
6652 #. type: verbatim
6653 #: ../fish/guestfish-actions.pod:1072
6654 #, no-wrap
6655 msgid ""
6656 " file path\n"
6657 "\n"
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
6662 msgid ""
6663 "This call uses the standard L<file(1)> command to determine the type or "
6664 "contents of the file."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
6669 msgid ""
6670 "This call will also transparently look inside various types of compressed "
6671 "file."
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
6676 msgid ""
6677 "The exact command which runs is C<file -zb path>.  Note in particular that "
6678 "the filename is not prepended to the output (the I<-b> option)."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
6683 msgid ""
6684 "The output depends on the output of the underlying L<file(1)> command and it "
6685 "can change in future in ways beyond our control.  In other words, the output "
6686 "is not guaranteed by the ABI."
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:1088
6691 msgid ""
6692 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6693 "(etc), L</is-zero>."
6694 msgstr ""
6695
6696 #. type: =head2
6697 #: ../fish/guestfish-actions.pod:1091
6698 msgid "file-architecture"
6699 msgstr ""
6700
6701 #. type: verbatim
6702 #: ../fish/guestfish-actions.pod:1093
6703 #, no-wrap
6704 msgid ""
6705 " file-architecture filename\n"
6706 "\n"
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
6711 msgid ""
6712 "This detects the architecture of the binary C<filename>, and returns it if "
6713 "known."
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
6718 msgid "Currently defined architectures are:"
6719 msgstr ""
6720
6721 #. type: =item
6722 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
6723 msgid "\"i386\""
6724 msgstr ""
6725
6726 #. type: textblock
6727 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
6728 msgid ""
6729 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6730 "irrespective of the precise processor requirements of the binary."
6731 msgstr ""
6732
6733 #. type: =item
6734 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
6735 msgid "\"x86_64\""
6736 msgstr ""
6737
6738 #. type: textblock
6739 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
6740 msgid "64 bit x86-64."
6741 msgstr ""
6742
6743 #. type: =item
6744 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
6745 msgid "\"sparc\""
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
6750 msgid "32 bit SPARC."
6751 msgstr ""
6752
6753 #. type: =item
6754 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
6755 msgid "\"sparc64\""
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
6760 msgid "64 bit SPARC V9 and above."
6761 msgstr ""
6762
6763 #. type: =item
6764 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
6765 msgid "\"ia64\""
6766 msgstr ""
6767
6768 #. type: textblock
6769 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
6770 msgid "Intel Itanium."
6771 msgstr ""
6772
6773 #. type: =item
6774 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
6775 msgid "\"ppc\""
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
6780 msgid "32 bit Power PC."
6781 msgstr ""
6782
6783 #. type: =item
6784 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
6785 msgid "\"ppc64\""
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
6790 msgid "64 bit Power PC."
6791 msgstr ""
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
6795 msgid "Libguestfs may return other architecture strings in future."
6796 msgstr ""
6797
6798 #. type: textblock
6799 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
6800 msgid "The function works on at least the following types of files:"
6801 msgstr ""
6802
6803 #. type: textblock
6804 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
6805 msgid "many types of Un*x and Linux binary"
6806 msgstr ""
6807
6808 #. type: textblock
6809 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
6810 msgid "many types of Un*x and Linux shared library"
6811 msgstr ""
6812
6813 #. type: textblock
6814 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
6815 msgid "Windows Win32 and Win64 binaries"
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
6820 msgid "Windows Win32 and Win64 DLLs"
6821 msgstr ""
6822
6823 #. type: textblock
6824 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
6825 msgid "Win32 binaries and DLLs return C<i386>."
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
6830 msgid "Win64 binaries and DLLs return C<x86_64>."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
6835 msgid "Linux kernel modules"
6836 msgstr ""
6837
6838 #. type: textblock
6839 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
6840 msgid "Linux new-style initrd images"
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
6845 msgid "some non-x86 Linux vmlinuz kernels"
6846 msgstr ""
6847
6848 #. type: textblock
6849 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
6850 msgid "What it can't do currently:"
6851 msgstr ""
6852
6853 #. type: textblock
6854 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
6855 msgid "static libraries (libfoo.a)"
6856 msgstr ""
6857
6858 #. type: textblock
6859 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
6860 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6861 msgstr ""
6862
6863 #. type: textblock
6864 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
6865 msgid "x86 Linux vmlinuz kernels"
6866 msgstr ""
6867
6868 #. type: textblock
6869 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
6870 msgid ""
6871 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6872 "compressed code, and are horribly hard to unpack.  If you want to find the "
6873 "architecture of a kernel, use the architecture of the associated initrd or "
6874 "kernel module(s) instead."
6875 msgstr ""
6876
6877 #. type: =head2
6878 #: ../fish/guestfish-actions.pod:1196
6879 msgid "filesize"
6880 msgstr ""
6881
6882 #. type: verbatim
6883 #: ../fish/guestfish-actions.pod:1198
6884 #, no-wrap
6885 msgid ""
6886 " filesize file\n"
6887 "\n"
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
6892 msgid "This command returns the size of C<file> in bytes."
6893 msgstr ""
6894
6895 #. type: textblock
6896 #: ../fish/guestfish-actions.pod:1202
6897 msgid ""
6898 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
6899 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
6900 msgstr ""
6901
6902 #. type: =head2
6903 #: ../fish/guestfish-actions.pod:1206
6904 msgid "fill"
6905 msgstr ""
6906
6907 #. type: verbatim
6908 #: ../fish/guestfish-actions.pod:1208
6909 #, no-wrap
6910 msgid ""
6911 " fill c len path\n"
6912 "\n"
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
6917 msgid ""
6918 "This command creates a new file called C<path>.  The initial content of the "
6919 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
6920 "[0..255]>."
6921 msgstr ""
6922
6923 #. type: textblock
6924 #: ../fish/guestfish-actions.pod:1214
6925 msgid ""
6926 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6927 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6928 "L</fill-pattern>."
6929 msgstr ""
6930
6931 #. type: =head2
6932 #: ../fish/guestfish-actions.pod:1219
6933 msgid "fill-pattern"
6934 msgstr ""
6935
6936 #. type: verbatim
6937 #: ../fish/guestfish-actions.pod:1221
6938 #, no-wrap
6939 msgid ""
6940 " fill-pattern pattern len path\n"
6941 "\n"
6942 msgstr ""
6943
6944 #. type: textblock
6945 #: ../fish/guestfish-actions.pod:1223
6946 msgid ""
6947 "This function is like L</fill> except that it creates a new file of length "
6948 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6949 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6950 "bytes."
6951 msgstr ""
6952
6953 #. type: =head2
6954 #: ../fish/guestfish-actions.pod:1228
6955 msgid "find"
6956 msgstr ""
6957
6958 #. type: verbatim
6959 #: ../fish/guestfish-actions.pod:1230
6960 #, no-wrap
6961 msgid ""
6962 " find directory\n"
6963 "\n"
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
6968 msgid ""
6969 "This command lists out all files and directories, recursively, starting at "
6970 "C<directory>.  It is essentially equivalent to running the shell command "
6971 "C<find directory -print> but some post-processing happens on the output, "
6972 "described below."
6973 msgstr ""
6974
6975 #. type: textblock
6976 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
6977 msgid ""
6978 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6979 "structure was:"
6980 msgstr ""
6981
6982 #. type: verbatim
6983 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
6984 #, no-wrap
6985 msgid ""
6986 " /tmp/a\n"
6987 " /tmp/b\n"
6988 " /tmp/c/d\n"
6989 "\n"
6990 msgstr ""
6991
6992 #. type: textblock
6993 #: ../fish/guestfish-actions.pod:1244
6994 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6995 msgstr ""
6996
6997 #. type: verbatim
6998 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
6999 #, no-wrap
7000 msgid ""
7001 " a\n"
7002 " b\n"
7003 " c\n"
7004 " c/d\n"
7005 "\n"
7006 msgstr ""
7007
7008 #. type: textblock
7009 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7010 msgid "If C<directory> is not a directory, then this command returns an error."
7011 msgstr ""
7012
7013 #. type: textblock
7014 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7015 msgid "The returned list is sorted."
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../fish/guestfish-actions.pod:1257
7020 msgid "See also L</find0>."
7021 msgstr ""
7022
7023 #. type: =head2
7024 #: ../fish/guestfish-actions.pod:1262
7025 msgid "find0"
7026 msgstr ""
7027
7028 #. type: verbatim
7029 #: ../fish/guestfish-actions.pod:1264
7030 #, no-wrap
7031 msgid ""
7032 " find0 directory (files|-)\n"
7033 "\n"
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7038 msgid ""
7039 "This command lists out all files and directories, recursively, starting at "
7040 "C<directory>, placing the resulting list in the external file called "
7041 "C<files>."
7042 msgstr ""
7043
7044 #. type: textblock
7045 #: ../fish/guestfish-actions.pod:1270
7046 msgid ""
7047 "This command works the same way as L</find> with the following exceptions:"
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7052 msgid "The resulting list is written to an external file."
7053 msgstr ""
7054
7055 #. type: textblock
7056 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7057 msgid ""
7058 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7059 "L<find(1)> option I<-print0>."
7060 msgstr ""
7061
7062 #. type: textblock
7063 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7064 msgid "This command is not limited in the number of names that it can return."
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7069 msgid "The result list is not sorted."
7070 msgstr ""
7071
7072 #. type: =head2
7073 #: ../fish/guestfish-actions.pod:1297
7074 msgid "findfs-label"
7075 msgstr ""
7076
7077 #. type: verbatim
7078 #: ../fish/guestfish-actions.pod:1299
7079 #, no-wrap
7080 msgid ""
7081 " findfs-label label\n"
7082 "\n"
7083 msgstr ""
7084
7085 #. type: textblock
7086 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7087 msgid ""
7088 "This command searches the filesystems and returns the one which has the "
7089 "given label.  An error is returned if no such filesystem can be found."
7090 msgstr ""
7091
7092 #. type: textblock
7093 #: ../fish/guestfish-actions.pod:1305
7094 msgid "To find the label of a filesystem, use L</vfs-label>."
7095 msgstr ""
7096
7097 #. type: =head2
7098 #: ../fish/guestfish-actions.pod:1307
7099 msgid "findfs-uuid"
7100 msgstr ""
7101
7102 #. type: verbatim
7103 #: ../fish/guestfish-actions.pod:1309
7104 #, no-wrap
7105 msgid ""
7106 " findfs-uuid uuid\n"
7107 "\n"
7108 msgstr ""
7109
7110 #. type: textblock
7111 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7112 msgid ""
7113 "This command searches the filesystems and returns the one which has the "
7114 "given UUID.  An error is returned if no such filesystem can be found."
7115 msgstr ""
7116
7117 #. type: textblock
7118 #: ../fish/guestfish-actions.pod:1315
7119 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7120 msgstr ""
7121
7122 #. type: =head2
7123 #: ../fish/guestfish-actions.pod:1317
7124 msgid "fsck"
7125 msgstr ""
7126
7127 #. type: verbatim
7128 #: ../fish/guestfish-actions.pod:1319
7129 #, no-wrap
7130 msgid ""
7131 " fsck fstype device\n"
7132 "\n"
7133 msgstr ""
7134
7135 #. type: textblock
7136 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7137 msgid ""
7138 "This runs the filesystem checker (fsck) on C<device> which should have "
7139 "filesystem type C<fstype>."
7140 msgstr ""
7141
7142 #. type: textblock
7143 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7144 msgid ""
7145 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7146 "codes from C<fsck>."
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7151 msgid "Multiple status codes can be summed together."
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7156 msgid ""
7157 "A non-zero return code can mean \"success\", for example if errors have been "
7158 "corrected on the filesystem."
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
7163 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7164 msgstr ""
7165
7166 #. type: textblock
7167 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
7168 msgid ""
7169 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7170 msgstr ""
7171
7172 #. type: =head2
7173 #: ../fish/guestfish-actions.pod:1349
7174 msgid "get-append"
7175 msgstr ""
7176
7177 #. type: verbatim
7178 #: ../fish/guestfish-actions.pod:1351
7179 #, no-wrap
7180 msgid ""
7181 " get-append\n"
7182 "\n"
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
7187 msgid ""
7188 "Return the additional kernel options which are added to the guest kernel "
7189 "command line."
7190 msgstr ""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
7194 msgid "If C<NULL> then no options are added."
7195 msgstr ""
7196
7197 #. type: =head2
7198 #: ../fish/guestfish-actions.pod:1358
7199 msgid "get-attach-method"
7200 msgstr ""
7201
7202 #. type: verbatim
7203 #: ../fish/guestfish-actions.pod:1360
7204 #, no-wrap
7205 msgid ""
7206 " get-attach-method\n"
7207 "\n"
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:1362
7212 msgid "Return the current attach method.  See L</set-attach-method>."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:1364
7217 msgid "get-autosync"
7218 msgstr ""
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:1366
7222 #, no-wrap
7223 msgid ""
7224 " get-autosync\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
7230 msgid "Get the autosync flag."
7231 msgstr ""
7232
7233 #. type: =head2
7234 #: ../fish/guestfish-actions.pod:1370
7235 msgid "get-direct"
7236 msgstr ""
7237
7238 #. type: verbatim
7239 #: ../fish/guestfish-actions.pod:1372
7240 #, no-wrap
7241 msgid ""
7242 " get-direct\n"
7243 "\n"
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
7248 msgid "Return the direct appliance mode flag."
7249 msgstr ""
7250
7251 #. type: =head2
7252 #: ../fish/guestfish-actions.pod:1376
7253 msgid "get-e2label"
7254 msgstr ""
7255
7256 #. type: verbatim
7257 #: ../fish/guestfish-actions.pod:1378
7258 #, no-wrap
7259 msgid ""
7260 " get-e2label device\n"
7261 "\n"
7262 msgstr ""
7263
7264 #. type: textblock
7265 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
7266 msgid ""
7267 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:1383
7272 msgid ""
7273 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7274 "instead."
7275 msgstr ""
7276
7277 #. type: =head2
7278 #: ../fish/guestfish-actions.pod:1390
7279 msgid "get-e2uuid"
7280 msgstr ""
7281
7282 #. type: verbatim
7283 #: ../fish/guestfish-actions.pod:1392
7284 #, no-wrap
7285 msgid ""
7286 " get-e2uuid device\n"
7287 "\n"
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
7292 msgid ""
7293 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7294 msgstr ""
7295
7296 #. type: textblock
7297 #: ../fish/guestfish-actions.pod:1397
7298 msgid ""
7299 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7300 "instead."
7301 msgstr ""
7302
7303 #. type: =head2
7304 #: ../fish/guestfish-actions.pod:1404
7305 msgid "get-memsize"
7306 msgstr ""
7307
7308 #. type: verbatim
7309 #: ../fish/guestfish-actions.pod:1406
7310 #, no-wrap
7311 msgid ""
7312 " get-memsize\n"
7313 "\n"
7314 msgstr ""
7315
7316 #. type: textblock
7317 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
7318 msgid ""
7319 "This gets the memory size in megabytes allocated to the qemu subprocess."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:1411
7324 msgid ""
7325 "If L</set-memsize> was not called on this handle, and if "
7326 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7327 "value for memsize."
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7332 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
7333 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
7334 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
7335 msgid ""
7336 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7337 msgstr ""
7338
7339 #. type: =head2
7340 #: ../fish/guestfish-actions.pod:1418
7341 msgid "get-network"
7342 msgstr ""
7343
7344 #. type: verbatim
7345 #: ../fish/guestfish-actions.pod:1420
7346 #, no-wrap
7347 msgid ""
7348 " get-network\n"
7349 "\n"
7350 msgstr ""
7351
7352 #. type: textblock
7353 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
7354 msgid "This returns the enable network flag."
7355 msgstr ""
7356
7357 #. type: =head2
7358 #: ../fish/guestfish-actions.pod:1424
7359 msgid "get-path"
7360 msgstr ""
7361
7362 #. type: verbatim
7363 #: ../fish/guestfish-actions.pod:1426
7364 #, no-wrap
7365 msgid ""
7366 " get-path\n"
7367 "\n"
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
7372 msgid "Return the current search path."
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
7377 msgid ""
7378 "This is always non-NULL.  If it wasn't set already, then this will return "
7379 "the default path."
7380 msgstr ""
7381
7382 #. type: =head2
7383 #: ../fish/guestfish-actions.pod:1433
7384 msgid "get-pgroup"
7385 msgstr ""
7386
7387 #. type: verbatim
7388 #: ../fish/guestfish-actions.pod:1435
7389 #, no-wrap
7390 msgid ""
7391 " get-pgroup\n"
7392 "\n"
7393 msgstr ""
7394
7395 #. type: textblock
7396 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
7397 msgid "This returns the process group flag."
7398 msgstr ""
7399
7400 #. type: =head2
7401 #: ../fish/guestfish-actions.pod:1439
7402 msgid "get-pid"
7403 msgstr ""
7404
7405 #. type: =head2
7406 #: ../fish/guestfish-actions.pod:1441
7407 msgid "pid"
7408 msgstr ""
7409
7410 #. type: verbatim
7411 #: ../fish/guestfish-actions.pod:1443
7412 #, no-wrap
7413 msgid ""
7414 " get-pid\n"
7415 "\n"
7416 msgstr ""
7417
7418 #. type: textblock
7419 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
7420 msgid ""
7421 "Return the process ID of the qemu subprocess.  If there is no qemu "
7422 "subprocess, then this will return an error."
7423 msgstr ""
7424
7425 #. type: textblock
7426 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
7427 msgid "This is an internal call used for debugging and testing."
7428 msgstr ""
7429
7430 #. type: =head2
7431 #: ../fish/guestfish-actions.pod:1450
7432 msgid "get-qemu"
7433 msgstr ""
7434
7435 #. type: verbatim
7436 #: ../fish/guestfish-actions.pod:1452
7437 #, no-wrap
7438 msgid ""
7439 " get-qemu\n"
7440 "\n"
7441 msgstr ""
7442
7443 #. type: textblock
7444 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
7445 msgid "Return the current qemu binary."
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
7450 msgid ""
7451 "This is always non-NULL.  If it wasn't set already, then this will return "
7452 "the default qemu binary name."
7453 msgstr ""
7454
7455 #. type: =head2
7456 #: ../fish/guestfish-actions.pod:1459
7457 msgid "get-recovery-proc"
7458 msgstr ""
7459
7460 #. type: verbatim
7461 #: ../fish/guestfish-actions.pod:1461
7462 #, no-wrap
7463 msgid ""
7464 " get-recovery-proc\n"
7465 "\n"
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
7470 msgid "Return the recovery process enabled flag."
7471 msgstr ""
7472
7473 #. type: =head2
7474 #: ../fish/guestfish-actions.pod:1465
7475 msgid "get-selinux"
7476 msgstr ""
7477
7478 #. type: verbatim
7479 #: ../fish/guestfish-actions.pod:1467
7480 #, no-wrap
7481 msgid ""
7482 " get-selinux\n"
7483 "\n"
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:1469
7488 msgid ""
7489 "This returns the current setting of the selinux flag which is passed to the "
7490 "appliance at boot time.  See L</set-selinux>."
7491 msgstr ""
7492
7493 #. type: =head2
7494 #: ../fish/guestfish-actions.pod:1475
7495 msgid "get-smp"
7496 msgstr ""
7497
7498 #. type: verbatim
7499 #: ../fish/guestfish-actions.pod:1477
7500 #, no-wrap
7501 msgid ""
7502 " get-smp\n"
7503 "\n"
7504 msgstr ""
7505
7506 #. type: textblock
7507 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
7508 msgid "This returns the number of virtual CPUs assigned to the appliance."
7509 msgstr ""
7510
7511 #. type: =head2
7512 #: ../fish/guestfish-actions.pod:1481
7513 msgid "get-state"
7514 msgstr ""
7515
7516 #. type: verbatim
7517 #: ../fish/guestfish-actions.pod:1483
7518 #, no-wrap
7519 msgid ""
7520 " get-state\n"
7521 "\n"
7522 msgstr ""
7523
7524 #. type: textblock
7525 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
7526 msgid ""
7527 "This returns the current state as an opaque integer.  This is only useful "
7528 "for printing debug and internal error messages."
7529 msgstr ""
7530
7531 #. type: textblock
7532 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
7533 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
7534 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
7535 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
7536 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
7537 msgid "For more information on states, see L<guestfs(3)>."
7538 msgstr ""
7539
7540 #. type: =head2
7541 #: ../fish/guestfish-actions.pod:1490
7542 msgid "get-trace"
7543 msgstr ""
7544
7545 #. type: verbatim
7546 #: ../fish/guestfish-actions.pod:1492
7547 #, no-wrap
7548 msgid ""
7549 " get-trace\n"
7550 "\n"
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
7555 msgid "Return the command trace flag."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../fish/guestfish-actions.pod:1496
7560 msgid "get-umask"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../fish/guestfish-actions.pod:1498
7565 #, no-wrap
7566 msgid ""
7567 " get-umask\n"
7568 "\n"
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../fish/guestfish-actions.pod:1500
7573 msgid ""
7574 "Return the current umask.  By default the umask is C<022> unless it has been "
7575 "set by calling L</umask>."
7576 msgstr ""
7577
7578 #. type: =head2
7579 #: ../fish/guestfish-actions.pod:1503
7580 msgid "get-verbose"
7581 msgstr ""
7582
7583 #. type: verbatim
7584 #: ../fish/guestfish-actions.pod:1505
7585 #, no-wrap
7586 msgid ""
7587 " get-verbose\n"
7588 "\n"
7589 msgstr ""
7590
7591 #. type: textblock
7592 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
7593 msgid "This returns the verbose messages flag."
7594 msgstr ""
7595
7596 #. type: =head2
7597 #: ../fish/guestfish-actions.pod:1509
7598 msgid "getcon"
7599 msgstr ""
7600
7601 #. type: verbatim
7602 #: ../fish/guestfish-actions.pod:1511
7603 #, no-wrap
7604 msgid ""
7605 " getcon\n"
7606 "\n"
7607 msgstr ""
7608
7609 #. type: textblock
7610 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
7611 msgid "This gets the SELinux security context of the daemon."
7612 msgstr ""
7613
7614 #. type: textblock
7615 #: ../fish/guestfish-actions.pod:1515
7616 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7617 msgstr ""
7618
7619 #. type: =head2
7620 #: ../fish/guestfish-actions.pod:1518
7621 msgid "getxattr"
7622 msgstr ""
7623
7624 #. type: verbatim
7625 #: ../fish/guestfish-actions.pod:1520
7626 #, no-wrap
7627 msgid ""
7628 " getxattr path name\n"
7629 "\n"
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:1522
7634 msgid ""
7635 "Get a single extended attribute from file C<path> named C<name>.  This call "
7636 "follows symlinks.  If you want to lookup an extended attribute for the "
7637 "symlink itself, use L</lgetxattr>."
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
7642 msgid ""
7643 "Normally it is better to get all extended attributes from a file in one go "
7644 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7645 "buggy and do not provide a way to list out attributes.  For these "
7646 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7647 "attributes you want in advance and call this function."
7648 msgstr ""
7649
7650 #. type: textblock
7651 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
7652 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
7653 msgid ""
7654 "Extended attribute values are blobs of binary data.  If there is no extended "
7655 "attribute named C<name>, this returns an error."
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:1536
7660 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7661 msgstr ""
7662
7663 #. type: =head2
7664 #: ../fish/guestfish-actions.pod:1538
7665 msgid "getxattrs"
7666 msgstr ""
7667
7668 #. type: verbatim
7669 #: ../fish/guestfish-actions.pod:1540
7670 #, no-wrap
7671 msgid ""
7672 " getxattrs path\n"
7673 "\n"
7674 msgstr ""
7675
7676 #. type: textblock
7677 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
7678 msgid ""
7679 "This call lists the extended attributes of the file or directory C<path>."
7680 msgstr ""
7681
7682 #. type: textblock
7683 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
7684 msgid ""
7685 "At the system call level, this is a combination of the L<listxattr(2)> and "
7686 "L<getxattr(2)> calls."
7687 msgstr ""
7688
7689 #. type: textblock
7690 #: ../fish/guestfish-actions.pod:1548
7691 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7692 msgstr ""
7693
7694 #. type: =head2
7695 #: ../fish/guestfish-actions.pod:1550
7696 msgid "glob-expand"
7697 msgstr ""
7698
7699 #. type: verbatim
7700 #: ../fish/guestfish-actions.pod:1552
7701 #, no-wrap
7702 msgid ""
7703 " glob-expand pattern\n"
7704 "\n"
7705 msgstr ""
7706
7707 #. type: textblock
7708 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
7709 msgid ""
7710 "This command searches for all the pathnames matching C<pattern> according to "
7711 "the wildcard expansion rules used by the shell."
7712 msgstr ""
7713
7714 #. type: textblock
7715 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
7716 msgid ""
7717 "If no paths match, then this returns an empty list (note: not an error)."
7718 msgstr ""
7719
7720 #. type: textblock
7721 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
7722 msgid ""
7723 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7724 "GLOB_BRACE>.  See that manual page for more details."
7725 msgstr ""
7726
7727 #. type: =head2
7728 #: ../fish/guestfish-actions.pod:1565
7729 msgid "grep"
7730 msgstr ""
7731
7732 #. type: verbatim
7733 #: ../fish/guestfish-actions.pod:1567
7734 #, no-wrap
7735 msgid ""
7736 " grep regex path\n"
7737 "\n"
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
7742 msgid "This calls the external C<grep> program and returns the matching lines."
7743 msgstr ""
7744
7745 #. type: =head2
7746 #: ../fish/guestfish-actions.pod:1575
7747 msgid "grepi"
7748 msgstr ""
7749
7750 #. type: verbatim
7751 #: ../fish/guestfish-actions.pod:1577
7752 #, no-wrap
7753 msgid ""
7754 " grepi regex path\n"
7755 "\n"
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
7760 msgid ""
7761 "This calls the external C<grep -i> program and returns the matching lines."
7762 msgstr ""
7763
7764 #. type: =head2
7765 #: ../fish/guestfish-actions.pod:1585
7766 msgid "grub-install"
7767 msgstr ""
7768
7769 #. type: verbatim
7770 #: ../fish/guestfish-actions.pod:1587
7771 #, no-wrap
7772 msgid ""
7773 " grub-install root device\n"
7774 "\n"
7775 msgstr ""
7776
7777 #. type: textblock
7778 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
7779 msgid ""
7780 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7781 "with the root directory being C<root>."
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
7786 msgid ""
7787 "There is currently no way in the API to install grub2, which is used by most "
7788 "modern Linux guests.  It is possible to run the grub2 command from the "
7789 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7790 msgstr ""
7791
7792 #. type: textblock
7793 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
7794 msgid ""
7795 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7796 "compatible with itself, so this only works in rather narrow circumstances.  "
7797 "Careful testing with each guest version is advisable."
7798 msgstr ""
7799
7800 #. type: textblock
7801 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
7802 msgid ""
7803 "If grub-install reports the error \"No suitable drive was found in the "
7804 "generated device map.\" it may be that you need to create a C</boot/grub/"
7805 "device.map> file first that contains the mapping between grub device names "
7806 "and Linux device names.  It is usually sufficient to create a file "
7807 "containing:"
7808 msgstr ""
7809
7810 #. type: verbatim
7811 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
7812 #, no-wrap
7813 msgid ""
7814 " (hd0) /dev/vda\n"
7815 "\n"
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
7820 msgid "replacing C</dev/vda> with the name of the installation device."
7821 msgstr ""
7822
7823 #. type: =head2
7824 #: ../fish/guestfish-actions.pod:1625
7825 msgid "head"
7826 msgstr ""
7827
7828 #. type: verbatim
7829 #: ../fish/guestfish-actions.pod:1627
7830 #, no-wrap
7831 msgid ""
7832 " head path\n"
7833 "\n"
7834 msgstr ""
7835
7836 #. type: textblock
7837 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
7838 msgid ""
7839 "This command returns up to the first 10 lines of a file as a list of strings."
7840 msgstr ""
7841
7842 #. type: =head2
7843 #: ../fish/guestfish-actions.pod:1635
7844 msgid "head-n"
7845 msgstr ""
7846
7847 #. type: verbatim
7848 #: ../fish/guestfish-actions.pod:1637
7849 #, no-wrap
7850 msgid ""
7851 " head-n nrlines path\n"
7852 "\n"
7853 msgstr ""
7854
7855 #. type: textblock
7856 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
7857 msgid ""
7858 "If the parameter C<nrlines> is a positive number, this returns the first "
7859 "C<nrlines> lines of the file C<path>."
7860 msgstr ""
7861
7862 #. type: textblock
7863 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
7864 msgid ""
7865 "If the parameter C<nrlines> is a negative number, this returns lines from "
7866 "the file C<path>, excluding the last C<nrlines> lines."
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
7871 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
7872 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7873 msgstr ""
7874
7875 #. type: =head2
7876 #: ../fish/guestfish-actions.pod:1650
7877 msgid "hexdump"
7878 msgstr ""
7879
7880 #. type: verbatim
7881 #: ../fish/guestfish-actions.pod:1652
7882 #, no-wrap
7883 msgid ""
7884 " hexdump path\n"
7885 "\n"
7886 msgstr ""
7887
7888 #. type: textblock
7889 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
7890 msgid ""
7891 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
7892 "readable, canonical hex dump of the file."
7893 msgstr ""
7894
7895 #. type: =head2
7896 #: ../fish/guestfish-actions.pod:1660
7897 msgid "initrd-cat"
7898 msgstr ""
7899
7900 #. type: verbatim
7901 #: ../fish/guestfish-actions.pod:1662
7902 #, no-wrap
7903 msgid ""
7904 " initrd-cat initrdpath filename\n"
7905 "\n"
7906 msgstr ""
7907
7908 #. type: textblock
7909 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
7910 msgid ""
7911 "This command unpacks the file C<filename> from the initrd file called "
7912 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7913 "character."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
7918 msgid ""
7919 "For example, in guestfish you could use the following command to examine the "
7920 "boot script (usually called C</init>)  contained in a Linux initrd or "
7921 "initramfs image:"
7922 msgstr ""
7923
7924 #. type: verbatim
7925 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
7926 #, no-wrap
7927 msgid ""
7928 " initrd-cat /boot/initrd-<version>.img init\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1674
7934 msgid "See also L</initrd-list>."
7935 msgstr ""
7936
7937 #. type: =head2
7938 #: ../fish/guestfish-actions.pod:1679
7939 msgid "initrd-list"
7940 msgstr ""
7941
7942 #. type: verbatim
7943 #: ../fish/guestfish-actions.pod:1681
7944 #, no-wrap
7945 msgid ""
7946 " initrd-list path\n"
7947 "\n"
7948 msgstr ""
7949
7950 #. type: textblock
7951 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
7952 msgid "This command lists out files contained in an initrd."
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
7957 msgid ""
7958 "The files are listed without any initial C</> character.  The files are "
7959 "listed in the order they appear (not necessarily alphabetical).  Directory "
7960 "names are listed as separate items."
7961 msgstr ""
7962
7963 #. type: textblock
7964 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
7965 msgid ""
7966 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7967 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7968 "files)."
7969 msgstr ""
7970
7971 #. type: =head2
7972 #: ../fish/guestfish-actions.pod:1693
7973 msgid "inotify-add-watch"
7974 msgstr ""
7975
7976 #. type: verbatim
7977 #: ../fish/guestfish-actions.pod:1695
7978 #, no-wrap
7979 msgid ""
7980 " inotify-add-watch path mask\n"
7981 "\n"
7982 msgstr ""
7983
7984 #. type: textblock
7985 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
7986 msgid "Watch C<path> for the events listed in C<mask>."
7987 msgstr ""
7988
7989 #. type: textblock
7990 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
7991 msgid ""
7992 "Note that if C<path> is a directory then events within that directory are "
7993 "watched, but this does I<not> happen recursively (in subdirectories)."
7994 msgstr ""
7995
7996 #. type: textblock
7997 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
7998 msgid ""
7999 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8000 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8001 msgstr ""
8002
8003 #. type: =head2
8004 #: ../fish/guestfish-actions.pod:1707
8005 msgid "inotify-close"
8006 msgstr ""
8007
8008 #. type: verbatim
8009 #: ../fish/guestfish-actions.pod:1709
8010 #, no-wrap
8011 msgid ""
8012 " inotify-close\n"
8013 "\n"
8014 msgstr ""
8015
8016 #. type: textblock
8017 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8018 msgid ""
8019 "This closes the inotify handle which was previously opened by inotify_init.  "
8020 "It removes all watches, throws away any pending events, and deallocates all "
8021 "resources."
8022 msgstr ""
8023
8024 #. type: =head2
8025 #: ../fish/guestfish-actions.pod:1715
8026 msgid "inotify-files"
8027 msgstr ""
8028
8029 #. type: verbatim
8030 #: ../fish/guestfish-actions.pod:1717
8031 #, no-wrap
8032 msgid ""
8033 " inotify-files\n"
8034 "\n"
8035 msgstr ""
8036
8037 #. type: textblock
8038 #: ../fish/guestfish-actions.pod:1719
8039 msgid ""
8040 "This function is a helpful wrapper around L</inotify-read> which just "
8041 "returns a list of pathnames of objects that were touched.  The returned "
8042 "pathnames are sorted and deduplicated."
8043 msgstr ""
8044
8045 #. type: =head2
8046 #: ../fish/guestfish-actions.pod:1723
8047 msgid "inotify-init"
8048 msgstr ""
8049
8050 #. type: verbatim
8051 #: ../fish/guestfish-actions.pod:1725
8052 #, no-wrap
8053 msgid ""
8054 " inotify-init maxevents\n"
8055 "\n"
8056 msgstr ""
8057
8058 #. type: textblock
8059 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8060 msgid ""
8061 "This command creates a new inotify handle.  The inotify subsystem can be "
8062 "used to notify events which happen to objects in the guest filesystem."
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1731
8067 msgid ""
8068 "C<maxevents> is the maximum number of events which will be queued up between "
8069 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8070 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8071 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8072 "but records the fact that it threw them away by setting a flag "
8073 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8074 msgstr ""
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:1741
8078 msgid ""
8079 "Before any events are generated, you have to add some watches to the "
8080 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8081 "L</inotify-watch-all>."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1747
8086 msgid ""
8087 "Queued up events should be read periodically by calling L</inotify-read> (or "
8088 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8089 "If you don't read the events out often enough then you risk the internal "
8090 "queue overflowing."
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:1754
8095 msgid ""
8096 "The handle should be closed after use by calling L</inotify-close>.  This "
8097 "also removes any watches automatically."
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
8102 msgid ""
8103 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8104 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8105 "that there is one global inotify handle per libguestfs instance."
8106 msgstr ""
8107
8108 #. type: =head2
8109 #: ../fish/guestfish-actions.pod:1763
8110 msgid "inotify-read"
8111 msgstr ""
8112
8113 #. type: verbatim
8114 #: ../fish/guestfish-actions.pod:1765
8115 #, no-wrap
8116 msgid ""
8117 " inotify-read\n"
8118 "\n"
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
8123 msgid ""
8124 "Return the complete queue of events that have happened since the previous "
8125 "read call."
8126 msgstr ""
8127
8128 #. type: textblock
8129 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
8130 msgid "If no events have happened, this returns an empty list."
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
8135 msgid ""
8136 "I<Note>: In order to make sure that all events have been read, you must call "
8137 "this function repeatedly until it returns an empty list.  The reason is that "
8138 "the call will read events up to the maximum appliance-to-host message size "
8139 "and leave remaining events in the queue."
8140 msgstr ""
8141
8142 #. type: =head2
8143 #: ../fish/guestfish-actions.pod:1778
8144 msgid "inotify-rm-watch"
8145 msgstr ""
8146
8147 #. type: verbatim
8148 #: ../fish/guestfish-actions.pod:1780
8149 #, no-wrap
8150 msgid ""
8151 " inotify-rm-watch wd\n"
8152 "\n"
8153 msgstr ""
8154
8155 #. type: textblock
8156 #: ../fish/guestfish-actions.pod:1782
8157 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8158 msgstr ""
8159
8160 #. type: =head2
8161 #: ../fish/guestfish-actions.pod:1785
8162 msgid "inspect-get-arch"
8163 msgstr ""
8164
8165 #. type: verbatim
8166 #: ../fish/guestfish-actions.pod:1787
8167 #, no-wrap
8168 msgid ""
8169 " inspect-get-arch root\n"
8170 "\n"
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:1789
8175 msgid ""
8176 "This returns the architecture of the inspected operating system.  The "
8177 "possible return values are listed under L</file-architecture>."
8178 msgstr ""
8179
8180 #. type: textblock
8181 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
8182 msgid ""
8183 "If the architecture could not be determined, then the string C<unknown> is "
8184 "returned."
8185 msgstr ""
8186
8187 #. type: textblock
8188 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8189 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8190 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8191 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8192 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8193 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8194 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8195 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8196 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
8197 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
8198 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
8199 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
8200 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
8201 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
8202 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
8203 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
8204 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
8205 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8206 msgstr ""
8207
8208 #. type: =head2
8209 #: ../fish/guestfish-actions.pod:1798
8210 msgid "inspect-get-distro"
8211 msgstr ""
8212
8213 #. type: verbatim
8214 #: ../fish/guestfish-actions.pod:1800
8215 #, no-wrap
8216 msgid ""
8217 " inspect-get-distro root\n"
8218 "\n"
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
8223 msgid ""
8224 "This returns the distro (distribution) of the inspected operating system."
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
8229 msgid "Currently defined distros are:"
8230 msgstr ""
8231
8232 #. type: =item
8233 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
8234 msgid "\"archlinux\""
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
8239 msgid "Arch Linux."
8240 msgstr ""
8241
8242 #. type: =item
8243 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
8244 msgid "\"centos\""
8245 msgstr ""
8246
8247 #. type: textblock
8248 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
8249 msgid "CentOS."
8250 msgstr ""
8251
8252 #. type: =item
8253 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
8254 msgid "\"debian\""
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
8259 msgid "Debian."
8260 msgstr ""
8261
8262 #. type: =item
8263 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
8264 msgid "\"fedora\""
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
8269 msgid "Fedora."
8270 msgstr ""
8271
8272 #. type: =item
8273 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
8274 msgid "\"gentoo\""
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
8279 msgid "Gentoo."
8280 msgstr ""
8281
8282 #. type: =item
8283 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
8284 msgid "\"linuxmint\""
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
8289 msgid "Linux Mint."
8290 msgstr ""
8291
8292 #. type: =item
8293 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
8294 msgid "\"mandriva\""
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
8299 msgid "Mandriva."
8300 msgstr ""
8301
8302 #. type: =item
8303 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
8304 msgid "\"meego\""
8305 msgstr ""
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
8309 msgid "MeeGo."
8310 msgstr ""
8311
8312 #. type: =item
8313 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
8314 msgid "\"pardus\""
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
8319 msgid "Pardus."
8320 msgstr ""
8321
8322 #. type: =item
8323 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
8324 msgid "\"redhat-based\""
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
8329 msgid "Some Red Hat-derived distro."
8330 msgstr ""
8331
8332 #. type: =item
8333 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
8334 msgid "\"rhel\""
8335 msgstr ""
8336
8337 #. type: textblock
8338 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
8339 msgid "Red Hat Enterprise Linux."
8340 msgstr ""
8341
8342 #. type: =item
8343 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
8344 msgid "\"scientificlinux\""
8345 msgstr ""
8346
8347 #. type: textblock
8348 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
8349 msgid "Scientific Linux."
8350 msgstr ""
8351
8352 #. type: =item
8353 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
8354 msgid "\"slackware\""
8355 msgstr ""
8356
8357 #. type: textblock
8358 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
8359 msgid "Slackware."
8360 msgstr ""
8361
8362 #. type: =item
8363 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
8364 msgid "\"ttylinux\""
8365 msgstr ""
8366
8367 #. type: textblock
8368 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
8369 msgid "ttylinux."
8370 msgstr ""
8371
8372 #. type: =item
8373 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
8374 msgid "\"ubuntu\""
8375 msgstr ""
8376
8377 #. type: textblock
8378 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
8379 msgid "Ubuntu."
8380 msgstr ""
8381
8382 #. type: =item
8383 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8384 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
8385 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8386 msgid "\"unknown\""
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
8391 msgid "The distro could not be determined."
8392 msgstr ""
8393
8394 #. type: =item
8395 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8396 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
8397 msgid "\"windows\""
8398 msgstr ""
8399
8400 #. type: textblock
8401 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
8402 msgid ""
8403 "Windows does not have distributions.  This string is returned if the OS type "
8404 "is Windows."
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8409 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
8410 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
8411 msgid ""
8412 "Future versions of libguestfs may return other strings here.  The caller "
8413 "should be prepared to handle any string."
8414 msgstr ""
8415
8416 #. type: =head2
8417 #: ../fish/guestfish-actions.pod:1885
8418 msgid "inspect-get-drive-mappings"
8419 msgstr ""
8420
8421 #. type: verbatim
8422 #: ../fish/guestfish-actions.pod:1887
8423 #, no-wrap
8424 msgid ""
8425 " inspect-get-drive-mappings root\n"
8426 "\n"
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
8431 msgid ""
8432 "This call is useful for Windows which uses a primitive system of assigning "
8433 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8434 "Windows Registry to find out how disks/partitions are mapped to drive "
8435 "letters, and returns a hash table as in the example below:"
8436 msgstr ""
8437
8438 #. type: verbatim
8439 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
8440 #, no-wrap
8441 msgid ""
8442 " C      =>     /dev/vda2\n"
8443 " E      =>     /dev/vdb1\n"
8444 " F      =>     /dev/vdc1\n"
8445 "\n"
8446 msgstr ""
8447
8448 #. type: textblock
8449 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
8450 msgid ""
8451 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8452 "and just contains the drive letter, without the customary colon separator "
8453 "character."
8454 msgstr ""
8455
8456 #. type: textblock
8457 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
8458 msgid ""
8459 "In future we may support other operating systems that also used drive "
8460 "letters, but the keys for those might not be case insensitive and might be "
8461 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8462 "C<h1> etc."
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
8467 msgid ""
8468 "For Windows guests, currently only hard drive mappings are returned.  "
8469 "Removable disks (eg. DVD-ROMs) are ignored."
8470 msgstr ""
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
8474 msgid ""
8475 "For guests that do not use drive mappings, or if the drive mappings could "
8476 "not be determined, this returns an empty hash table."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1914
8481 msgid ""
8482 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8483 "get-mountpoints>, L</inspect-get-filesystems>."
8484 msgstr ""
8485
8486 #. type: =head2
8487 #: ../fish/guestfish-actions.pod:1918
8488 msgid "inspect-get-filesystems"
8489 msgstr ""
8490
8491 #. type: verbatim
8492 #: ../fish/guestfish-actions.pod:1920
8493 #, no-wrap
8494 msgid ""
8495 " inspect-get-filesystems root\n"
8496 "\n"
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
8501 msgid ""
8502 "This returns a list of all the filesystems that we think are associated with "
8503 "this operating system.  This includes the root filesystem, other ordinary "
8504 "filesystems, and non-mounted devices like swap partitions."
8505 msgstr ""
8506
8507 #. type: textblock
8508 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
8509 msgid ""
8510 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8511 "to be shared between operating systems."
8512 msgstr ""
8513
8514 #. type: textblock
8515 #: ../fish/guestfish-actions.pod:1930
8516 msgid ""
8517 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8518 "get-mountpoints>."
8519 msgstr ""
8520
8521 #. type: =head2
8522 #: ../fish/guestfish-actions.pod:1933
8523 msgid "inspect-get-format"
8524 msgstr ""
8525
8526 #. type: verbatim
8527 #: ../fish/guestfish-actions.pod:1935
8528 #, no-wrap
8529 msgid ""
8530 " inspect-get-format root\n"
8531 "\n"
8532 msgstr ""
8533
8534 #. type: textblock
8535 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
8536 msgid ""
8537 "This returns the format of the inspected operating system.  You can use it "
8538 "to detect install images, live CDs and similar."
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
8543 msgid "Currently defined formats are:"
8544 msgstr ""
8545
8546 #. type: =item
8547 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
8548 msgid "\"installed\""
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
8553 msgid "This is an installed operating system."
8554 msgstr ""
8555
8556 #. type: =item
8557 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
8558 msgid "\"installer\""
8559 msgstr ""
8560
8561 #. type: textblock
8562 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
8563 msgid ""
8564 "The disk image being inspected is not an installed operating system, but a "
8565 "I<bootable> install disk, live CD, or similar."
8566 msgstr ""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
8570 msgid "The format of this disk image is not known."
8571 msgstr ""
8572
8573 #. type: =head2
8574 #: ../fish/guestfish-actions.pod:1964
8575 msgid "inspect-get-hostname"
8576 msgstr ""
8577
8578 #. type: verbatim
8579 #: ../fish/guestfish-actions.pod:1966
8580 #, no-wrap
8581 msgid ""
8582 " inspect-get-hostname root\n"
8583 "\n"
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
8588 msgid ""
8589 "This function returns the hostname of the operating system as found by "
8590 "inspection of the guest's configuration files."
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
8595 msgid ""
8596 "If the hostname could not be determined, then the string C<unknown> is "
8597 "returned."
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../fish/guestfish-actions.pod:1976
8602 msgid "inspect-get-icon"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../fish/guestfish-actions.pod:1978
8607 #, no-wrap
8608 msgid ""
8609 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8610 "\n"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
8615 msgid ""
8616 "This function returns an icon corresponding to the inspected operating "
8617 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8618 "to PNG if necessary)."
8619 msgstr ""
8620
8621 #. type: textblock
8622 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
8623 msgid ""
8624 "If it was not possible to get an icon this function returns a zero-length "
8625 "(non-NULL) buffer.  I<Callers must check for this case>."
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
8630 msgid ""
8631 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8632 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8633 "this file will be returned.  You can disable favicons by passing the "
8634 "optional C<favicon> boolean as false (default is true)."
8635 msgstr ""
8636
8637 #. type: textblock
8638 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
8639 msgid ""
8640 "If finding the favicon fails, then we look in other places in the guest for "
8641 "a suitable icon."
8642 msgstr ""
8643
8644 #. type: textblock
8645 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
8646 msgid ""
8647 "If the optional C<highquality> boolean is true then only high quality icons "
8648 "are returned, which means only icons of high resolution with an alpha "
8649 "channel.  The default (false) is to return any icon we can, even if it is of "
8650 "substandard quality."
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
8655 msgid ""
8656 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8657 "before you call this, since it needs to read information from the guest "
8658 "filesystem during the call."
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
8663 msgid ""
8664 "B<Security:> The icon data comes from the untrusted guest, and should be "
8665 "treated with caution.  PNG files have been known to contain exploits.  "
8666 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8667 "trying to process or display the icon."
8668 msgstr ""
8669
8670 #. type: textblock
8671 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
8672 msgid ""
8673 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8674 "tries to return the largest, highest quality icon available.  The "
8675 "application must scale the icon to the required size."
8676 msgstr ""
8677
8678 #. type: textblock
8679 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
8680 msgid ""
8681 "Extracting icons from Windows guests requires the external C<wrestool> "
8682 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8683 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8684 "installed separately."
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
8689 msgid ""
8690 "Operating system icons are usually trademarks.  Seek legal advice before "
8691 "using trademarks in applications."
8692 msgstr ""
8693
8694 #. type: =head2
8695 #: ../fish/guestfish-actions.pod:2042
8696 msgid "inspect-get-major-version"
8697 msgstr ""
8698
8699 #. type: verbatim
8700 #: ../fish/guestfish-actions.pod:2044
8701 #, no-wrap
8702 msgid ""
8703 " inspect-get-major-version root\n"
8704 "\n"
8705 msgstr ""
8706
8707 #. type: textblock
8708 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
8709 msgid ""
8710 "This returns the major version number of the inspected operating system."
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
8715 msgid ""
8716 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8717 "popular public names used by the operating system.  Notably the operating "
8718 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8719 "1).  You can find out the real versions corresponding to releases of Windows "
8720 "by consulting Wikipedia or MSDN."
8721 msgstr ""
8722
8723 #. type: textblock
8724 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
8725 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
8726 msgid "If the version could not be determined, then C<0> is returned."
8727 msgstr ""
8728
8729 #. type: =head2
8730 #: ../fish/guestfish-actions.pod:2060
8731 msgid "inspect-get-minor-version"
8732 msgstr ""
8733
8734 #. type: verbatim
8735 #: ../fish/guestfish-actions.pod:2062
8736 #, no-wrap
8737 msgid ""
8738 " inspect-get-minor-version root\n"
8739 "\n"
8740 msgstr ""
8741
8742 #. type: textblock
8743 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
8744 msgid ""
8745 "This returns the minor version number of the inspected operating system."
8746 msgstr ""
8747
8748 #. type: textblock
8749 #: ../fish/guestfish-actions.pod:2069
8750 msgid ""
8751 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8752 "get-major-version>."
8753 msgstr ""
8754
8755 #. type: =head2
8756 #: ../fish/guestfish-actions.pod:2072
8757 msgid "inspect-get-mountpoints"
8758 msgstr ""
8759
8760 #. type: verbatim
8761 #: ../fish/guestfish-actions.pod:2074
8762 #, no-wrap
8763 msgid ""
8764 " inspect-get-mountpoints root\n"
8765 "\n"
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
8770 msgid ""
8771 "This returns a hash of where we think the filesystems associated with this "
8772 "operating system should be mounted.  Callers should note that this is at "
8773 "best an educated guess made by reading configuration files such as C</etc/"
8774 "fstab>.  I<In particular note> that this may return filesystems which are "
8775 "non-existent or not mountable and callers should be prepared to handle or "
8776 "ignore failures if they try to mount them."
8777 msgstr ""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
8781 msgid ""
8782 "Each element in the returned hashtable has a key which is the path of the "
8783 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8784 "mounted there (eg. C</dev/sda1>)."
8785 msgstr ""
8786
8787 #. type: textblock
8788 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
8789 msgid ""
8790 "Non-mounted devices such as swap devices are I<not> returned in this list."
8791 msgstr ""
8792
8793 #. type: textblock
8794 #: ../fish/guestfish-actions.pod:2093
8795 msgid ""
8796 "For operating systems like Windows which still use drive letters, this call "
8797 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8798 "information about the mapping of drive letters to partitions, see L</inspect-"
8799 "get-drive-mappings>."
8800 msgstr ""
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:2099
8804 msgid ""
8805 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8806 "get-filesystems>."
8807 msgstr ""
8808
8809 #. type: =head2
8810 #: ../fish/guestfish-actions.pod:2102
8811 msgid "inspect-get-package-format"
8812 msgstr ""
8813
8814 #. type: verbatim
8815 #: ../fish/guestfish-actions.pod:2104
8816 #, no-wrap
8817 msgid ""
8818 " inspect-get-package-format root\n"
8819 "\n"
8820 msgstr ""
8821
8822 #. type: textblock
8823 #: ../fish/guestfish-actions.pod:2106
8824 msgid ""
8825 "This function and L</inspect-get-package-management> return the package "
8826 "format and package management tool used by the inspected operating system.  "
8827 "For example for Fedora these functions would return C<rpm> (package format) "
8828 "and C<yum> (package management)."
8829 msgstr ""
8830
8831 #. type: textblock
8832 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
8833 msgid ""
8834 "This returns the string C<unknown> if we could not determine the package "
8835 "format I<or> if the operating system does not have a real packaging system "
8836 "(eg. Windows)."
8837 msgstr ""
8838
8839 #. type: textblock
8840 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
8841 msgid ""
8842 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8843 "Future versions of libguestfs may return other strings."
8844 msgstr ""
8845
8846 #. type: =head2
8847 #: ../fish/guestfish-actions.pod:2121
8848 msgid "inspect-get-package-management"
8849 msgstr ""
8850
8851 #. type: verbatim
8852 #: ../fish/guestfish-actions.pod:2123
8853 #, no-wrap
8854 msgid ""
8855 " inspect-get-package-management root\n"
8856 "\n"
8857 msgstr ""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:2125
8861 msgid ""
8862 "L</inspect-get-package-format> and this function return the package format "
8863 "and package management tool used by the inspected operating system.  For "
8864 "example for Fedora these functions would return C<rpm> (package format) and "
8865 "C<yum> (package management)."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
8870 msgid ""
8871 "This returns the string C<unknown> if we could not determine the package "
8872 "management tool I<or> if the operating system does not have a real packaging "
8873 "system (eg. Windows)."
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
8878 msgid ""
8879 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8880 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8881 "libguestfs may return other strings."
8882 msgstr ""
8883
8884 #. type: =head2
8885 #: ../fish/guestfish-actions.pod:2142
8886 msgid "inspect-get-product-name"
8887 msgstr ""
8888
8889 #. type: verbatim
8890 #: ../fish/guestfish-actions.pod:2144
8891 #, no-wrap
8892 msgid ""
8893 " inspect-get-product-name root\n"
8894 "\n"
8895 msgstr ""
8896
8897 #. type: textblock
8898 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
8899 msgid ""
8900 "This returns the product name of the inspected operating system.  The "
8901 "product name is generally some freeform string which can be displayed to the "
8902 "user, but should not be parsed by programs."
8903 msgstr ""
8904
8905 #. type: textblock
8906 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
8907 msgid ""
8908 "If the product name could not be determined, then the string C<unknown> is "
8909 "returned."
8910 msgstr ""
8911
8912 #. type: =head2
8913 #: ../fish/guestfish-actions.pod:2156
8914 msgid "inspect-get-product-variant"
8915 msgstr ""
8916
8917 #. type: verbatim
8918 #: ../fish/guestfish-actions.pod:2158
8919 #, no-wrap
8920 msgid ""
8921 " inspect-get-product-variant root\n"
8922 "\n"
8923 msgstr ""
8924
8925 #. type: textblock
8926 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
8927 msgid "This returns the product variant of the inspected operating system."
8928 msgstr ""
8929
8930 #. type: textblock
8931 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
8932 msgid ""
8933 "For Windows guests, this returns the contents of the Registry key C<HKLM"
8934 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
8935 "is usually a string such as C<Client> or C<Server> (other values are "
8936 "possible).  This can be used to distinguish consumer and enterprise versions "
8937 "of Windows that have the same version number (for example, Windows 7 and "
8938 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8939 "the latter is C<Server>)."
8940 msgstr ""
8941
8942 #. type: textblock
8943 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
8944 msgid ""
8945 "For enterprise Linux guests, in future we intend this to return the product "
8946 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8947 "implemented at present."
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
8952 msgid ""
8953 "If the product variant could not be determined, then the string C<unknown> "
8954 "is returned."
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:2179
8959 msgid ""
8960 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8961 "get-product-name>, L</inspect-get-major-version>."
8962 msgstr ""
8963
8964 #. type: =head2
8965 #: ../fish/guestfish-actions.pod:2183
8966 msgid "inspect-get-roots"
8967 msgstr ""
8968
8969 #. type: verbatim
8970 #: ../fish/guestfish-actions.pod:2185
8971 #, no-wrap
8972 msgid ""
8973 " inspect-get-roots\n"
8974 "\n"
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:2187
8979 msgid ""
8980 "This function is a convenient way to get the list of root devices, as "
8981 "returned from a previous call to L</inspect-os>, but without redoing the "
8982 "whole inspection process."
8983 msgstr ""
8984
8985 #. type: textblock
8986 #: ../fish/guestfish-actions.pod:2191
8987 msgid ""
8988 "This returns an empty list if either no root devices were found or the "
8989 "caller has not called L</inspect-os>."
8990 msgstr ""
8991
8992 #. type: =head2
8993 #: ../fish/guestfish-actions.pod:2196
8994 msgid "inspect-get-type"
8995 msgstr ""
8996
8997 #. type: verbatim
8998 #: ../fish/guestfish-actions.pod:2198
8999 #, no-wrap
9000 msgid ""
9001 " inspect-get-type root\n"
9002 "\n"
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
9007 msgid ""
9008 "This returns the type of the inspected operating system.  Currently defined "
9009 "types are:"
9010 msgstr ""
9011
9012 #. type: =item
9013 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
9014 msgid "\"linux\""
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
9019 msgid "Any Linux-based operating system."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
9024 msgid "Any Microsoft Windows operating system."
9025 msgstr ""
9026
9027 #. type: =item
9028 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
9029 msgid "\"freebsd\""
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
9034 msgid "FreeBSD."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
9039 msgid "The operating system type could not be determined."
9040 msgstr ""
9041
9042 #. type: =head2
9043 #: ../fish/guestfish-actions.pod:2228
9044 msgid "inspect-get-windows-current-control-set"
9045 msgstr ""
9046
9047 #. type: verbatim
9048 #: ../fish/guestfish-actions.pod:2230
9049 #, no-wrap
9050 msgid ""
9051 " inspect-get-windows-current-control-set root\n"
9052 "\n"
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
9057 msgid ""
9058 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9059 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
9064 msgid ""
9065 "This call assumes that the guest is Windows and that the Registry could be "
9066 "examined by inspection.  If this is not the case then an error is returned."
9067 msgstr ""
9068
9069 #. type: =head2
9070 #: ../fish/guestfish-actions.pod:2241
9071 msgid "inspect-get-windows-systemroot"
9072 msgstr ""
9073
9074 #. type: verbatim
9075 #: ../fish/guestfish-actions.pod:2243
9076 #, no-wrap
9077 msgid ""
9078 " inspect-get-windows-systemroot root\n"
9079 "\n"
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
9084 msgid ""
9085 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9086 "is a directory path such as C</WINDOWS>."
9087 msgstr ""
9088
9089 #. type: textblock
9090 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
9091 msgid ""
9092 "This call assumes that the guest is Windows and that the systemroot could be "
9093 "determined by inspection.  If this is not the case then an error is returned."
9094 msgstr ""
9095
9096 #. type: =head2
9097 #: ../fish/guestfish-actions.pod:2254
9098 msgid "inspect-is-live"
9099 msgstr ""
9100
9101 #. type: verbatim
9102 #: ../fish/guestfish-actions.pod:2256
9103 #, no-wrap
9104 msgid ""
9105 " inspect-is-live root\n"
9106 "\n"
9107 msgstr ""
9108
9109 #. type: textblock
9110 #: ../fish/guestfish-actions.pod:2258
9111 msgid ""
9112 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9113 "then this returns true if a live image was detected on the disk."
9114 msgstr ""
9115
9116 #. type: =head2
9117 #: ../fish/guestfish-actions.pod:2264
9118 msgid "inspect-is-multipart"
9119 msgstr ""
9120
9121 #. type: verbatim
9122 #: ../fish/guestfish-actions.pod:2266
9123 #, no-wrap
9124 msgid ""
9125 " inspect-is-multipart root\n"
9126 "\n"
9127 msgstr ""
9128
9129 #. type: textblock
9130 #: ../fish/guestfish-actions.pod:2268
9131 msgid ""
9132 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9133 "then this returns true if the disk is part of a set."
9134 msgstr ""
9135
9136 #. type: =head2
9137 #: ../fish/guestfish-actions.pod:2274
9138 msgid "inspect-is-netinst"
9139 msgstr ""
9140
9141 #. type: verbatim
9142 #: ../fish/guestfish-actions.pod:2276
9143 #, no-wrap
9144 msgid ""
9145 " inspect-is-netinst root\n"
9146 "\n"
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:2278
9151 msgid ""
9152 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9153 "then this returns true if the disk is a network installer, ie. not a self-"
9154 "contained install CD but one which is likely to require network access to "
9155 "complete the install."
9156 msgstr ""
9157
9158 #. type: =head2
9159 #: ../fish/guestfish-actions.pod:2286
9160 msgid "inspect-list-applications"
9161 msgstr ""
9162
9163 #. type: verbatim
9164 #: ../fish/guestfish-actions.pod:2288
9165 #, no-wrap
9166 msgid ""
9167 " inspect-list-applications root\n"
9168 "\n"
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
9173 msgid "Return the list of applications installed in the operating system."
9174 msgstr ""
9175
9176 #. type: textblock
9177 #: ../fish/guestfish-actions.pod:2292
9178 msgid ""
9179 "I<Note:> This call works differently from other parts of the inspection "
9180 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9181 "then mount up the disks, before calling this.  Listing applications is a "
9182 "significantly more difficult operation which requires access to the full "
9183 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9184 "are just returning data cached in the libguestfs handle, this call actually "
9185 "reads parts of the mounted filesystems during the call."
9186 msgstr ""
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
9190 msgid ""
9191 "This returns an empty list if the inspection code was not able to determine "
9192 "the list of applications."
9193 msgstr ""
9194
9195 #. type: textblock
9196 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
9197 msgid "The application structure contains the following fields:"
9198 msgstr ""
9199
9200 #. type: =item
9201 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
9202 msgid "C<app_name>"
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
9207 msgid ""
9208 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9209 "guests, this is the package name."
9210 msgstr ""
9211
9212 #. type: =item
9213 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
9214 msgid "C<app_display_name>"
9215 msgstr ""
9216
9217 #. type: textblock
9218 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
9219 msgid ""
9220 "The display name of the application, sometimes localized to the install "
9221 "language of the guest operating system."
9222 msgstr ""
9223
9224 #. type: textblock
9225 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
9226 msgid ""
9227 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9228 "to display something can use C<app_name> instead."
9229 msgstr ""
9230
9231 #. type: =item
9232 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
9233 msgid "C<app_epoch>"
9234 msgstr ""
9235
9236 #. type: textblock
9237 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
9238 msgid ""
9239 "For package managers which use epochs, this contains the epoch of the "
9240 "package (an integer).  If unavailable, this is returned as C<0>."
9241 msgstr ""
9242
9243 #. type: =item
9244 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
9245 msgid "C<app_version>"
9246 msgstr ""
9247
9248 #. type: textblock
9249 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
9250 msgid ""
9251 "The version string of the application or package.  If unavailable this is "
9252 "returned as an empty string C<\"\">."
9253 msgstr ""
9254
9255 #. type: =item
9256 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
9257 msgid "C<app_release>"
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
9262 msgid ""
9263 "The release string of the application or package, for package managers that "
9264 "use this.  If unavailable this is returned as an empty string C<\"\">."
9265 msgstr ""
9266
9267 #. type: =item
9268 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
9269 msgid "C<app_install_path>"
9270 msgstr ""
9271
9272 #. type: textblock
9273 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
9274 msgid ""
9275 "The installation path of the application (on operating systems such as "
9276 "Windows which use installation paths).  This path is in the format used by "
9277 "the guest operating system, it is not a libguestfs path."
9278 msgstr ""
9279
9280 #. type: textblock
9281 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
9282 msgid "If unavailable this is returned as an empty string C<\"\">."
9283 msgstr ""
9284
9285 #. type: =item
9286 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
9287 msgid "C<app_trans_path>"
9288 msgstr ""
9289
9290 #. type: textblock
9291 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
9292 msgid ""
9293 "The install path translated into a libguestfs path.  If unavailable this is "
9294 "returned as an empty string C<\"\">."
9295 msgstr ""
9296
9297 #. type: =item
9298 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
9299 msgid "C<app_publisher>"
9300 msgstr ""
9301
9302 #. type: textblock
9303 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
9304 msgid ""
9305 "The name of the publisher of the application, for package managers that use "
9306 "this.  If unavailable this is returned as an empty string C<\"\">."
9307 msgstr ""
9308
9309 #. type: =item
9310 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
9311 msgid "C<app_url>"
9312 msgstr ""
9313
9314 #. type: textblock
9315 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
9316 msgid ""
9317 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9318 "returned as an empty string C<\"\">."
9319 msgstr ""
9320
9321 #. type: =item
9322 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
9323 msgid "C<app_source_package>"
9324 msgstr ""
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
9328 msgid ""
9329 "For packaging systems which support this, the name of the source package.  "
9330 "If unavailable this is returned as an empty string C<\"\">."
9331 msgstr ""
9332
9333 #. type: =item
9334 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
9335 msgid "C<app_summary>"
9336 msgstr ""
9337
9338 #. type: textblock
9339 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
9340 msgid ""
9341 "A short (usually one line) description of the application or package.  If "
9342 "unavailable this is returned as an empty string C<\"\">."
9343 msgstr ""
9344
9345 #. type: =item
9346 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
9347 msgid "C<app_description>"
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
9352 msgid ""
9353 "A longer description of the application or package.  If unavailable this is "
9354 "returned as an empty string C<\"\">."
9355 msgstr ""
9356
9357 #. type: =head2
9358 #: ../fish/guestfish-actions.pod:2382
9359 msgid "inspect-os"
9360 msgstr ""
9361
9362 #. type: verbatim
9363 #: ../fish/guestfish-actions.pod:2384
9364 #, no-wrap
9365 msgid ""
9366 " inspect-os\n"
9367 "\n"
9368 msgstr ""
9369
9370 #. type: textblock
9371 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
9372 msgid ""
9373 "This function uses other libguestfs functions and certain heuristics to "
9374 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9375 "for operating systems."
9376 msgstr ""
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
9380 msgid "The list returned is empty if no operating systems were found."
9381 msgstr ""
9382
9383 #. type: textblock
9384 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
9385 msgid ""
9386 "If one operating system was found, then this returns a list with a single "
9387 "element, which is the name of the root filesystem of this operating system.  "
9388 "It is also possible for this function to return a list containing more than "
9389 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9390 "element being the root filesystem of one of the operating systems."
9391 msgstr ""
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:2399
9395 msgid ""
9396 "You can pass the root string(s) returned to other L</inspect-get-*> "
9397 "functions in order to query further information about each operating system, "
9398 "such as the name and version."
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:2404
9403 msgid ""
9404 "This function uses other libguestfs features such as L</mount-ro> and L</"
9405 "umount-all> in order to mount and unmount filesystems and look at the "
9406 "contents.  This should be called with no disks currently mounted.  The "
9407 "function may also use Augeas, so any existing Augeas handle will be closed."
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
9412 msgid ""
9413 "This function cannot decrypt encrypted disks.  The caller must do that first "
9414 "(supplying the necessary keys) if the disk is encrypted."
9415 msgstr ""
9416
9417 #. type: textblock
9418 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9419 #: ../fish/guestfish-actions.pod:2673
9420 msgid "See also L</list-filesystems>."
9421 msgstr ""
9422
9423 #. type: =head2
9424 #: ../fish/guestfish-actions.pod:2418
9425 msgid "is-blockdev"
9426 msgstr ""
9427
9428 #. type: verbatim
9429 #: ../fish/guestfish-actions.pod:2420
9430 #, no-wrap
9431 msgid ""
9432 " is-blockdev path\n"
9433 "\n"
9434 msgstr ""
9435
9436 #. type: textblock
9437 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
9438 msgid ""
9439 "This returns C<true> if and only if there is a block device with the given "
9440 "C<path> name."
9441 msgstr ""
9442
9443 #. type: textblock
9444 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
9445 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
9446 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
9447 #: ../fish/guestfish-actions.pod:2524
9448 msgid "See also L</stat>."
9449 msgstr ""
9450
9451 #. type: =head2
9452 #: ../fish/guestfish-actions.pod:2427
9453 msgid "is-busy"
9454 msgstr ""
9455
9456 #. type: verbatim
9457 #: ../fish/guestfish-actions.pod:2429
9458 #, no-wrap
9459 msgid ""
9460 " is-busy\n"
9461 "\n"
9462 msgstr ""
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
9466 msgid ""
9467 "This returns true iff this handle is busy processing a command (in the "
9468 "C<BUSY> state)."
9469 msgstr ""
9470
9471 #. type: =head2
9472 #: ../fish/guestfish-actions.pod:2436
9473 msgid "is-chardev"
9474 msgstr ""
9475
9476 #. type: verbatim
9477 #: ../fish/guestfish-actions.pod:2438
9478 #, no-wrap
9479 msgid ""
9480 " is-chardev path\n"
9481 "\n"
9482 msgstr ""
9483
9484 #. type: textblock
9485 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
9486 msgid ""
9487 "This returns C<true> if and only if there is a character device with the "
9488 "given C<path> name."
9489 msgstr ""
9490
9491 #. type: =head2
9492 #: ../fish/guestfish-actions.pod:2445
9493 msgid "is-config"
9494 msgstr ""
9495
9496 #. type: verbatim
9497 #: ../fish/guestfish-actions.pod:2447
9498 #, no-wrap
9499 msgid ""
9500 " is-config\n"
9501 "\n"
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
9506 msgid ""
9507 "This returns true iff this handle is being configured (in the C<CONFIG> "
9508 "state)."
9509 msgstr ""
9510
9511 #. type: =head2
9512 #: ../fish/guestfish-actions.pod:2454
9513 msgid "is-dir"
9514 msgstr ""
9515
9516 #. type: verbatim
9517 #: ../fish/guestfish-actions.pod:2456
9518 #, no-wrap
9519 msgid ""
9520 " is-dir path\n"
9521 "\n"
9522 msgstr ""
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
9526 msgid ""
9527 "This returns C<true> if and only if there is a directory with the given "
9528 "C<path> name.  Note that it returns false for other objects like files."
9529 msgstr ""
9530
9531 #. type: =head2
9532 #: ../fish/guestfish-actions.pod:2464
9533 msgid "is-fifo"
9534 msgstr ""
9535
9536 #. type: verbatim
9537 #: ../fish/guestfish-actions.pod:2466
9538 #, no-wrap
9539 msgid ""
9540 " is-fifo path\n"
9541 "\n"
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
9546 msgid ""
9547 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9548 "given C<path> name."
9549 msgstr ""
9550
9551 #. type: =head2
9552 #: ../fish/guestfish-actions.pod:2473
9553 msgid "is-file"
9554 msgstr ""
9555
9556 #. type: verbatim
9557 #: ../fish/guestfish-actions.pod:2475
9558 #, no-wrap
9559 msgid ""
9560 " is-file path\n"
9561 "\n"
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
9566 msgid ""
9567 "This returns C<true> if and only if there is a regular file with the given "
9568 "C<path> name.  Note that it returns false for other objects like directories."
9569 msgstr ""
9570
9571 #. type: =head2
9572 #: ../fish/guestfish-actions.pod:2483
9573 msgid "is-launching"
9574 msgstr ""
9575
9576 #. type: verbatim
9577 #: ../fish/guestfish-actions.pod:2485
9578 #, no-wrap
9579 msgid ""
9580 " is-launching\n"
9581 "\n"
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
9586 msgid ""
9587 "This returns true iff this handle is launching the subprocess (in the "
9588 "C<LAUNCHING> state)."
9589 msgstr ""
9590
9591 #. type: =head2
9592 #: ../fish/guestfish-actions.pod:2492
9593 msgid "is-lv"
9594 msgstr ""
9595
9596 #. type: verbatim
9597 #: ../fish/guestfish-actions.pod:2494
9598 #, no-wrap
9599 msgid ""
9600 " is-lv device\n"
9601 "\n"
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
9606 msgid ""
9607 "This command tests whether C<device> is a logical volume, and returns true "
9608 "iff this is the case."
9609 msgstr ""
9610
9611 #. type: =head2
9612 #: ../fish/guestfish-actions.pod:2499
9613 msgid "is-ready"
9614 msgstr ""
9615
9616 #. type: verbatim
9617 #: ../fish/guestfish-actions.pod:2501
9618 #, no-wrap
9619 msgid ""
9620 " is-ready\n"
9621 "\n"
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
9626 msgid ""
9627 "This returns true iff this handle is ready to accept commands (in the "
9628 "C<READY> state)."
9629 msgstr ""
9630
9631 #. type: =head2
9632 #: ../fish/guestfish-actions.pod:2508
9633 msgid "is-socket"
9634 msgstr ""
9635
9636 #. type: verbatim
9637 #: ../fish/guestfish-actions.pod:2510
9638 #, no-wrap
9639 msgid ""
9640 " is-socket path\n"
9641 "\n"
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
9646 msgid ""
9647 "This returns C<true> if and only if there is a Unix domain socket with the "
9648 "given C<path> name."
9649 msgstr ""
9650
9651 #. type: =head2
9652 #: ../fish/guestfish-actions.pod:2517
9653 msgid "is-symlink"
9654 msgstr ""
9655
9656 #. type: verbatim
9657 #: ../fish/guestfish-actions.pod:2519
9658 #, no-wrap
9659 msgid ""
9660 " is-symlink path\n"
9661 "\n"
9662 msgstr ""
9663
9664 #. type: textblock
9665 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
9666 msgid ""
9667 "This returns C<true> if and only if there is a symbolic link with the given "
9668 "C<path> name."
9669 msgstr ""
9670
9671 #. type: =head2
9672 #: ../fish/guestfish-actions.pod:2526
9673 msgid "is-zero"
9674 msgstr ""
9675
9676 #. type: verbatim
9677 #: ../fish/guestfish-actions.pod:2528
9678 #, no-wrap
9679 msgid ""
9680 " is-zero path\n"
9681 "\n"
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
9686 msgid ""
9687 "This returns true iff the file exists and the file is empty or it contains "
9688 "all zero bytes."
9689 msgstr ""
9690
9691 #. type: =head2
9692 #: ../fish/guestfish-actions.pod:2533
9693 msgid "is-zero-device"
9694 msgstr ""
9695
9696 #. type: verbatim
9697 #: ../fish/guestfish-actions.pod:2535
9698 #, no-wrap
9699 msgid ""
9700 " is-zero-device device\n"
9701 "\n"
9702 msgstr ""
9703
9704 #. type: textblock
9705 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
9706 msgid "This returns true iff the device exists and contains all zero bytes."
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
9711 msgid "Note that for large devices this can take a long time to run."
9712 msgstr ""
9713
9714 #. type: =head2
9715 #: ../fish/guestfish-actions.pod:2541
9716 msgid "kill-subprocess"
9717 msgstr ""
9718
9719 #. type: verbatim
9720 #: ../fish/guestfish-actions.pod:2543
9721 #, no-wrap
9722 msgid ""
9723 " kill-subprocess\n"
9724 "\n"
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
9729 msgid "This kills the qemu subprocess.  You should never need to call this."
9730 msgstr ""
9731
9732 #. type: =head2
9733 #: ../fish/guestfish-actions.pod:2547
9734 msgid "launch"
9735 msgstr ""
9736
9737 #. type: =head2
9738 #: ../fish/guestfish-actions.pod:2549
9739 msgid "run"
9740 msgstr ""
9741
9742 #. type: verbatim
9743 #: ../fish/guestfish-actions.pod:2551
9744 #, no-wrap
9745 msgid ""
9746 " launch\n"
9747 "\n"
9748 msgstr ""
9749
9750 #. type: textblock
9751 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
9752 msgid ""
9753 "Internally libguestfs is implemented by running a virtual machine using "
9754 "L<qemu(1)>."
9755 msgstr ""
9756
9757 #. type: textblock
9758 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
9759 msgid ""
9760 "You should call this after configuring the handle (eg. adding drives) but "
9761 "before performing any actions."
9762 msgstr ""
9763
9764 #. type: =head2
9765 #: ../fish/guestfish-actions.pod:2559
9766 msgid "lchown"
9767 msgstr ""
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:2561
9771 #, no-wrap
9772 msgid ""
9773 " lchown owner group path\n"
9774 "\n"
9775 msgstr ""
9776
9777 #. type: textblock
9778 #: ../fish/guestfish-actions.pod:2563
9779 msgid ""
9780 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9781 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9782 "target."
9783 msgstr ""
9784
9785 #. type: =head2
9786 #: ../fish/guestfish-actions.pod:2571
9787 msgid "lgetxattr"
9788 msgstr ""
9789
9790 #. type: verbatim
9791 #: ../fish/guestfish-actions.pod:2573
9792 #, no-wrap
9793 msgid ""
9794 " lgetxattr path name\n"
9795 "\n"
9796 msgstr ""
9797
9798 #. type: textblock
9799 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
9800 msgid ""
9801 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9802 "is a symlink, then this call returns an extended attribute from the symlink."
9803 msgstr ""
9804
9805 #. type: textblock
9806 #: ../fish/guestfish-actions.pod:2589
9807 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9808 msgstr ""
9809
9810 #. type: =head2
9811 #: ../fish/guestfish-actions.pod:2591
9812 msgid "lgetxattrs"
9813 msgstr ""
9814
9815 #. type: verbatim
9816 #: ../fish/guestfish-actions.pod:2593
9817 #, no-wrap
9818 msgid ""
9819 " lgetxattrs path\n"
9820 "\n"
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../fish/guestfish-actions.pod:2595
9825 msgid ""
9826 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9827 "it returns the extended attributes of the link itself."
9828 msgstr ""
9829
9830 #. type: =head2
9831 #: ../fish/guestfish-actions.pod:2599
9832 msgid "list-9p"
9833 msgstr ""
9834
9835 #. type: verbatim
9836 #: ../fish/guestfish-actions.pod:2601
9837 #, no-wrap
9838 msgid ""
9839 " list-9p\n"
9840 "\n"
9841 msgstr ""
9842
9843 #. type: textblock
9844 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
9845 msgid ""
9846 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9847 "returned."
9848 msgstr ""
9849
9850 #. type: =head2
9851 #: ../fish/guestfish-actions.pod:2606
9852 msgid "list-devices"
9853 msgstr ""
9854
9855 #. type: verbatim
9856 #: ../fish/guestfish-actions.pod:2608
9857 #, no-wrap
9858 msgid ""
9859 " list-devices\n"
9860 "\n"
9861 msgstr ""
9862
9863 #. type: textblock
9864 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
9865 msgid "List all the block devices."
9866 msgstr ""
9867
9868 #. type: textblock
9869 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
9870 msgid "The full block device names are returned, eg. C</dev/sda>."
9871 msgstr ""
9872
9873 #. type: =head2
9874 #: ../fish/guestfish-actions.pod:2616
9875 msgid "list-dm-devices"
9876 msgstr ""
9877
9878 #. type: verbatim
9879 #: ../fish/guestfish-actions.pod:2618
9880 #, no-wrap
9881 msgid ""
9882 " list-dm-devices\n"
9883 "\n"
9884 msgstr ""
9885
9886 #. type: textblock
9887 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
9888 msgid "List all device mapper devices."
9889 msgstr ""
9890
9891 #. type: textblock
9892 #: ../fish/guestfish-actions.pod:2622
9893 msgid ""
9894 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9895 "previous call to L</luks-open>."
9896 msgstr ""
9897
9898 #. type: textblock
9899 #: ../fish/guestfish-actions.pod:2625
9900 msgid ""
9901 "Device mapper devices which correspond to logical volumes are I<not> "
9902 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9903 msgstr ""
9904
9905 #. type: =head2
9906 #: ../fish/guestfish-actions.pod:2629
9907 msgid "list-filesystems"
9908 msgstr ""
9909
9910 #. type: verbatim
9911 #: ../fish/guestfish-actions.pod:2631
9912 #, no-wrap
9913 msgid ""
9914 " list-filesystems\n"
9915 "\n"
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
9920 msgid ""
9921 "This inspection command looks for filesystems on partitions, block devices "
9922 "and logical volumes, returning a list of devices containing filesystems and "
9923 "their type."
9924 msgstr ""
9925
9926 #. type: textblock
9927 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
9928 msgid ""
9929 "The return value is a hash, where the keys are the devices containing "
9930 "filesystems, and the values are the filesystem types.  For example:"
9931 msgstr ""
9932
9933 #. type: verbatim
9934 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
9935 #, no-wrap
9936 msgid ""
9937 " \"/dev/sda1\" => \"ntfs\"\n"
9938 " \"/dev/sda2\" => \"ext2\"\n"
9939 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9940 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9941 "\n"
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
9946 msgid ""
9947 "The value can have the special value \"unknown\", meaning the content of the "
9948 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9949 msgstr ""
9950
9951 #. type: textblock
9952 #: ../fish/guestfish-actions.pod:2650
9953 msgid ""
9954 "This command runs other libguestfs commands, which might include L</mount> "
9955 "and L</umount>, and therefore you should use this soon after launch and only "
9956 "when nothing is mounted."
9957 msgstr ""
9958
9959 #. type: textblock
9960 #: ../fish/guestfish-actions.pod:2654
9961 msgid ""
9962 "Not all of the filesystems returned will be mountable.  In particular, swap "
9963 "partitions are returned in the list.  Also this command does not check that "
9964 "each filesystem found is valid and mountable, and some filesystems might be "
9965 "mountable but require special options.  Filesystems may not all belong to a "
9966 "single logical operating system (use L</inspect-os> to look for OSes)."
9967 msgstr ""
9968
9969 #. type: =head2
9970 #: ../fish/guestfish-actions.pod:2662
9971 msgid "list-partitions"
9972 msgstr ""
9973
9974 #. type: verbatim
9975 #: ../fish/guestfish-actions.pod:2664
9976 #, no-wrap
9977 msgid ""
9978 " list-partitions\n"
9979 "\n"
9980 msgstr ""
9981
9982 #. type: textblock
9983 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
9984 msgid "List all the partitions detected on all block devices."
9985 msgstr ""
9986
9987 #. type: textblock
9988 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
9989 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:2670
9994 msgid ""
9995 "This does not return logical volumes.  For that you will need to call L</"
9996 "lvs>."
9997 msgstr ""
9998
9999 #. type: =head2
10000 #: ../fish/guestfish-actions.pod:2675
10001 msgid "ll"
10002 msgstr ""
10003
10004 #. type: verbatim
10005 #: ../fish/guestfish-actions.pod:2677
10006 #, no-wrap
10007 msgid ""
10008 " ll directory\n"
10009 "\n"
10010 msgstr ""
10011
10012 #. type: textblock
10013 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
10014 msgid ""
10015 "List the files in C<directory> (relative to the root directory, there is no "
10016 "cwd) in the format of 'ls -la'."
10017 msgstr ""
10018
10019 #. type: textblock
10020 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
10021 msgid ""
10022 "This command is mostly useful for interactive sessions.  It is I<not> "
10023 "intended that you try to parse the output string."
10024 msgstr ""
10025
10026 #. type: =head2
10027 #: ../fish/guestfish-actions.pod:2685
10028 msgid "ln"
10029 msgstr ""
10030
10031 #. type: verbatim
10032 #: ../fish/guestfish-actions.pod:2687
10033 #, no-wrap
10034 msgid ""
10035 " ln target linkname\n"
10036 "\n"
10037 msgstr ""
10038
10039 #. type: textblock
10040 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
10041 msgid "This command creates a hard link using the C<ln> command."
10042 msgstr ""
10043
10044 #. type: =head2
10045 #: ../fish/guestfish-actions.pod:2691
10046 msgid "ln-f"
10047 msgstr ""
10048
10049 #. type: verbatim
10050 #: ../fish/guestfish-actions.pod:2693
10051 #, no-wrap
10052 msgid ""
10053 " ln-f target linkname\n"
10054 "\n"
10055 msgstr ""
10056
10057 #. type: textblock
10058 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
10059 msgid ""
10060 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10061 "option removes the link (C<linkname>) if it exists already."
10062 msgstr ""
10063
10064 #. type: =head2
10065 #: ../fish/guestfish-actions.pod:2698
10066 msgid "ln-s"
10067 msgstr ""
10068
10069 #. type: verbatim
10070 #: ../fish/guestfish-actions.pod:2700
10071 #, no-wrap
10072 msgid ""
10073 " ln-s target linkname\n"
10074 "\n"
10075 msgstr ""
10076
10077 #. type: textblock
10078 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
10079 msgid "This command creates a symbolic link using the C<ln -s> command."
10080 msgstr ""
10081
10082 #. type: =head2
10083 #: ../fish/guestfish-actions.pod:2704
10084 msgid "ln-sf"
10085 msgstr ""
10086
10087 #. type: verbatim
10088 #: ../fish/guestfish-actions.pod:2706
10089 #, no-wrap
10090 msgid ""
10091 " ln-sf target linkname\n"
10092 "\n"
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
10097 msgid ""
10098 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10099 "option removes the link (C<linkname>) if it exists already."
10100 msgstr ""
10101
10102 #. type: =head2
10103 #: ../fish/guestfish-actions.pod:2711
10104 msgid "lremovexattr"
10105 msgstr ""
10106
10107 #. type: verbatim
10108 #: ../fish/guestfish-actions.pod:2713
10109 #, no-wrap
10110 msgid ""
10111 " lremovexattr xattr path\n"
10112 "\n"
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:2715
10117 msgid ""
10118 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10119 "it removes an extended attribute of the link itself."
10120 msgstr ""
10121
10122 #. type: =head2
10123 #: ../fish/guestfish-actions.pod:2719
10124 msgid "ls"
10125 msgstr ""
10126
10127 #. type: verbatim
10128 #: ../fish/guestfish-actions.pod:2721
10129 #, no-wrap
10130 msgid ""
10131 " ls directory\n"
10132 "\n"
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
10137 msgid ""
10138 "List the files in C<directory> (relative to the root directory, there is no "
10139 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10140 msgstr ""
10141
10142 #. type: textblock
10143 #: ../fish/guestfish-actions.pod:2727
10144 msgid ""
10145 "This command is mostly useful for interactive sessions.  Programs should "
10146 "probably use L</readdir> instead."
10147 msgstr ""
10148
10149 #. type: =head2
10150 #: ../fish/guestfish-actions.pod:2730
10151 msgid "lsetxattr"
10152 msgstr ""
10153
10154 #. type: verbatim
10155 #: ../fish/guestfish-actions.pod:2732
10156 #, no-wrap
10157 msgid ""
10158 " lsetxattr xattr val vallen path\n"
10159 "\n"
10160 msgstr ""
10161
10162 #. type: textblock
10163 #: ../fish/guestfish-actions.pod:2734
10164 msgid ""
10165 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10166 "sets an extended attribute of the link itself."
10167 msgstr ""
10168
10169 #. type: =head2
10170 #: ../fish/guestfish-actions.pod:2738
10171 msgid "lstat"
10172 msgstr ""
10173
10174 #. type: verbatim
10175 #: ../fish/guestfish-actions.pod:2740
10176 #, no-wrap
10177 msgid ""
10178 " lstat path\n"
10179 "\n"
10180 msgstr ""
10181
10182 #. type: textblock
10183 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
10184 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
10185 msgid "Returns file information for the given C<path>."
10186 msgstr ""
10187
10188 #. type: textblock
10189 #: ../fish/guestfish-actions.pod:2744
10190 msgid ""
10191 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10192 "the link is stat-ed, not the file it refers to."
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
10197 msgid "This is the same as the C<lstat(2)> system call."
10198 msgstr ""
10199
10200 #. type: =head2
10201 #: ../fish/guestfish-actions.pod:2750
10202 msgid "lstatlist"
10203 msgstr ""
10204
10205 #. type: verbatim
10206 #: ../fish/guestfish-actions.pod:2752
10207 #, no-wrap
10208 msgid ""
10209 " lstatlist path 'names ...'\n"
10210 "\n"
10211 msgstr ""
10212
10213 #. type: textblock
10214 #: ../fish/guestfish-actions.pod:2754
10215 msgid ""
10216 "This call allows you to perform the L</lstat> operation on multiple files, "
10217 "where all files are in the directory C<path>.  C<names> is the list of files "
10218 "from this directory."
10219 msgstr ""
10220
10221 #. type: textblock
10222 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
10223 msgid ""
10224 "On return you get a list of stat structs, with a one-to-one correspondence "
10225 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10226 "then the C<ino> field of that structure is set to C<-1>."
10227 msgstr ""
10228
10229 #. type: textblock
10230 #: ../fish/guestfish-actions.pod:2763
10231 msgid ""
10232 "This call is intended for programs that want to efficiently list a directory "
10233 "contents without making many round-trips.  See also L</lxattrlist> for a "
10234 "similarly efficient call for getting extended attributes.  Very long "
10235 "directory listings might cause the protocol message size to be exceeded, "
10236 "causing this call to fail.  The caller must split up such requests into "
10237 "smaller groups of names."
10238 msgstr ""
10239
10240 #. type: =head2
10241 #: ../fish/guestfish-actions.pod:2771
10242 msgid "luks-add-key"
10243 msgstr ""
10244
10245 #. type: verbatim
10246 #: ../fish/guestfish-actions.pod:2773
10247 #, no-wrap
10248 msgid ""
10249 " luks-add-key device keyslot\n"
10250 "\n"
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
10255 msgid ""
10256 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10257 "existing key, and is used to access the device.  C<newkey> is the new key to "
10258 "add.  C<keyslot> is the key slot that will be replaced."
10259 msgstr ""
10260
10261 #. type: textblock
10262 #: ../fish/guestfish-actions.pod:2780
10263 msgid ""
10264 "Note that if C<keyslot> already contains a key, then this command will "
10265 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10266 msgstr ""
10267
10268 #. type: textblock
10269 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10270 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10271 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10272 msgid ""
10273 "This command has one or more key or passphrase parameters.  Guestfish will "
10274 "prompt for these separately."
10275 msgstr ""
10276
10277 #. type: =head2
10278 #: ../fish/guestfish-actions.pod:2787
10279 msgid "luks-close"
10280 msgstr ""
10281
10282 #. type: verbatim
10283 #: ../fish/guestfish-actions.pod:2789
10284 #, no-wrap
10285 msgid ""
10286 " luks-close device\n"
10287 "\n"
10288 msgstr ""
10289
10290 #. type: textblock
10291 #: ../fish/guestfish-actions.pod:2791
10292 msgid ""
10293 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10294 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10295 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10296 "block device."
10297 msgstr ""
10298
10299 #. type: =head2
10300 #: ../fish/guestfish-actions.pod:2797
10301 msgid "luks-format"
10302 msgstr ""
10303
10304 #. type: verbatim
10305 #: ../fish/guestfish-actions.pod:2799
10306 #, no-wrap
10307 msgid ""
10308 " luks-format device keyslot\n"
10309 "\n"
10310 msgstr ""
10311
10312 #. type: textblock
10313 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
10314 msgid ""
10315 "This command erases existing data on C<device> and formats the device as a "
10316 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10317 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10318 msgstr ""
10319
10320 #. type: textblock
10321 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10322 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
10323 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
10324 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
10325 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
10326 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
10327 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
10328 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
10329 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
10330 msgid ""
10331 "B<This command is dangerous.  Without careful use you can easily destroy all "
10332 "your data>."
10333 msgstr ""
10334
10335 #. type: =head2
10336 #: ../fish/guestfish-actions.pod:2812
10337 msgid "luks-format-cipher"
10338 msgstr ""
10339
10340 #. type: verbatim
10341 #: ../fish/guestfish-actions.pod:2814
10342 #, no-wrap
10343 msgid ""
10344 " luks-format-cipher device keyslot cipher\n"
10345 "\n"
10346 msgstr ""
10347
10348 #. type: textblock
10349 #: ../fish/guestfish-actions.pod:2816
10350 msgid ""
10351 "This command is the same as L</luks-format> but it also allows you to set "
10352 "the C<cipher> used."
10353 msgstr ""
10354
10355 #. type: =head2
10356 #: ../fish/guestfish-actions.pod:2825
10357 msgid "luks-kill-slot"
10358 msgstr ""
10359
10360 #. type: verbatim
10361 #: ../fish/guestfish-actions.pod:2827
10362 #, no-wrap
10363 msgid ""
10364 " luks-kill-slot device keyslot\n"
10365 "\n"
10366 msgstr ""
10367
10368 #. type: textblock
10369 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
10370 msgid ""
10371 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10372 "device C<device>.  C<key> must be one of the I<other> keys."
10373 msgstr ""
10374
10375 #. type: =head2
10376 #: ../fish/guestfish-actions.pod:2836
10377 msgid "luks-open"
10378 msgstr ""
10379
10380 #. type: verbatim
10381 #: ../fish/guestfish-actions.pod:2838
10382 #, no-wrap
10383 msgid ""
10384 " luks-open device mapname\n"
10385 "\n"
10386 msgstr ""
10387
10388 #. type: textblock
10389 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
10390 msgid ""
10391 "This command opens a block device which has been encrypted according to the "
10392 "Linux Unified Key Setup (LUKS) standard."
10393 msgstr ""
10394
10395 #. type: textblock
10396 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
10397 msgid "C<device> is the encrypted block device or partition."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
10402 msgid ""
10403 "The caller must supply one of the keys associated with the LUKS block "
10404 "device, in the C<key> parameter."
10405 msgstr ""
10406
10407 #. type: textblock
10408 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
10409 msgid ""
10410 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10411 "writes to this block device are decrypted from and encrypted to the "
10412 "underlying C<device> respectively."
10413 msgstr ""
10414
10415 #. type: textblock
10416 #: ../fish/guestfish-actions.pod:2852
10417 msgid ""
10418 "If this block device contains LVM volume groups, then calling L</vgscan> "
10419 "followed by L</vg-activate-all> will make them visible."
10420 msgstr ""
10421
10422 #. type: textblock
10423 #: ../fish/guestfish-actions.pod:2856
10424 msgid "Use L</list-dm-devices> to list all device mapper devices."
10425 msgstr ""
10426
10427 #. type: =head2
10428 #: ../fish/guestfish-actions.pod:2862
10429 msgid "luks-open-ro"
10430 msgstr ""
10431
10432 #. type: verbatim
10433 #: ../fish/guestfish-actions.pod:2864
10434 #, no-wrap
10435 msgid ""
10436 " luks-open-ro device mapname\n"
10437 "\n"
10438 msgstr ""
10439
10440 #. type: textblock
10441 #: ../fish/guestfish-actions.pod:2866
10442 msgid ""
10443 "This is the same as L</luks-open> except that a read-only mapping is created."
10444 msgstr ""
10445
10446 #. type: =head2
10447 #: ../fish/guestfish-actions.pod:2872
10448 msgid "lvcreate"
10449 msgstr ""
10450
10451 #. type: verbatim
10452 #: ../fish/guestfish-actions.pod:2874
10453 #, no-wrap
10454 msgid ""
10455 " lvcreate logvol volgroup mbytes\n"
10456 "\n"
10457 msgstr ""
10458
10459 #. type: textblock
10460 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
10461 msgid ""
10462 "This creates an LVM logical volume called C<logvol> on the volume group "
10463 "C<volgroup>, with C<size> megabytes."
10464 msgstr ""
10465
10466 #. type: =head2
10467 #: ../fish/guestfish-actions.pod:2879
10468 msgid "lvm-canonical-lv-name"
10469 msgstr ""
10470
10471 #. type: verbatim
10472 #: ../fish/guestfish-actions.pod:2881
10473 #, no-wrap
10474 msgid ""
10475 " lvm-canonical-lv-name lvname\n"
10476 "\n"
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
10481 msgid ""
10482 "This converts alternative naming schemes for LVs that you might find to the "
10483 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10484 "LV>."
10485 msgstr ""
10486
10487 #. type: textblock
10488 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
10489 msgid ""
10490 "This command returns an error if the C<lvname> parameter does not refer to a "
10491 "logical volume."
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2890
10496 msgid "See also L</is-lv>."
10497 msgstr ""
10498
10499 #. type: =head2
10500 #: ../fish/guestfish-actions.pod:2892
10501 msgid "lvm-clear-filter"
10502 msgstr ""
10503
10504 #. type: verbatim
10505 #: ../fish/guestfish-actions.pod:2894
10506 #, no-wrap
10507 msgid ""
10508 " lvm-clear-filter\n"
10509 "\n"
10510 msgstr ""
10511
10512 #. type: textblock
10513 #: ../fish/guestfish-actions.pod:2896
10514 msgid ""
10515 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10516 "block device."
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
10521 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
10522 msgid ""
10523 "This command also clears the LVM cache and performs a volume group scan."
10524 msgstr ""
10525
10526 #. type: =head2
10527 #: ../fish/guestfish-actions.pod:2902
10528 msgid "lvm-remove-all"
10529 msgstr ""
10530
10531 #. type: verbatim
10532 #: ../fish/guestfish-actions.pod:2904
10533 #, no-wrap
10534 msgid ""
10535 " lvm-remove-all\n"
10536 "\n"
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
10541 msgid ""
10542 "This command removes all LVM logical volumes, volume groups and physical "
10543 "volumes."
10544 msgstr ""
10545
10546 #. type: =head2
10547 #: ../fish/guestfish-actions.pod:2912
10548 msgid "lvm-set-filter"
10549 msgstr ""
10550
10551 #. type: verbatim
10552 #: ../fish/guestfish-actions.pod:2914
10553 #, no-wrap
10554 msgid ""
10555 " lvm-set-filter 'devices ...'\n"
10556 "\n"
10557 msgstr ""
10558
10559 #. type: textblock
10560 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
10561 msgid ""
10562 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10563 "block devices in the list C<devices>, and will ignore all other attached "
10564 "block devices."
10565 msgstr ""
10566
10567 #. type: textblock
10568 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
10569 msgid ""
10570 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10571 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10572 "there are two types of duplication possible: either cloned PVs/VGs which "
10573 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10574 "same name.  In normal operation you cannot create this situation, but you "
10575 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10576 "inside the LVM metadata."
10577 msgstr ""
10578
10579 #. type: textblock
10580 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
10581 msgid "You can filter whole block devices or individual partitions."
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
10586 msgid ""
10587 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10588 "filesystem), even if you are not filtering out that VG."
10589 msgstr ""
10590
10591 #. type: =head2
10592 #: ../fish/guestfish-actions.pod:2939
10593 msgid "lvremove"
10594 msgstr ""
10595
10596 #. type: verbatim
10597 #: ../fish/guestfish-actions.pod:2941
10598 #, no-wrap
10599 msgid ""
10600 " lvremove device\n"
10601 "\n"
10602 msgstr ""
10603
10604 #. type: textblock
10605 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
10606 msgid ""
10607 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10608 "LV, such as C</dev/VG/LV>."
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
10613 msgid ""
10614 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10615 "dev/VG>."
10616 msgstr ""
10617
10618 #. type: =head2
10619 #: ../fish/guestfish-actions.pod:2949
10620 msgid "lvrename"
10621 msgstr ""
10622
10623 #. type: verbatim
10624 #: ../fish/guestfish-actions.pod:2951
10625 #, no-wrap
10626 msgid ""
10627 " lvrename logvol newlogvol\n"
10628 "\n"
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
10633 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10634 msgstr ""
10635
10636 #. type: =head2
10637 #: ../fish/guestfish-actions.pod:2955
10638 msgid "lvresize"
10639 msgstr ""
10640
10641 #. type: verbatim
10642 #: ../fish/guestfish-actions.pod:2957
10643 #, no-wrap
10644 msgid ""
10645 " lvresize device mbytes\n"
10646 "\n"
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
10651 msgid ""
10652 "This resizes (expands or shrinks) an existing LVM logical volume to "
10653 "C<mbytes>.  When reducing, data in the reduced part is lost."
10654 msgstr ""
10655
10656 #. type: =head2
10657 #: ../fish/guestfish-actions.pod:2963
10658 msgid "lvresize-free"
10659 msgstr ""
10660
10661 #. type: verbatim
10662 #: ../fish/guestfish-actions.pod:2965
10663 #, no-wrap
10664 msgid ""
10665 " lvresize-free lv percent\n"
10666 "\n"
10667 msgstr ""
10668
10669 #. type: textblock
10670 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
10671 msgid ""
10672 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10673 "remaining free space in the volume group.  Commonly you would call this with "
10674 "pc = 100 which expands the logical volume as much as possible, using all "
10675 "remaining free space in the volume group."
10676 msgstr ""
10677
10678 #. type: =head2
10679 #: ../fish/guestfish-actions.pod:2973
10680 msgid "lvs"
10681 msgstr ""
10682
10683 #. type: verbatim
10684 #: ../fish/guestfish-actions.pod:2975
10685 #, no-wrap
10686 msgid ""
10687 " lvs\n"
10688 "\n"
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
10693 msgid ""
10694 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10695 "(8)> command."
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
10700 msgid ""
10701 "This returns a list of the logical volume device names (eg. C</dev/"
10702 "VolGroup00/LogVol00>)."
10703 msgstr ""
10704
10705 #. type: textblock
10706 #: ../fish/guestfish-actions.pod:2983
10707 msgid "See also L</lvs-full>, L</list-filesystems>."
10708 msgstr ""
10709
10710 #. type: =head2
10711 #: ../fish/guestfish-actions.pod:2985
10712 msgid "lvs-full"
10713 msgstr ""
10714
10715 #. type: verbatim
10716 #: ../fish/guestfish-actions.pod:2987
10717 #, no-wrap
10718 msgid ""
10719 " lvs-full\n"
10720 "\n"
10721 msgstr ""
10722
10723 #. type: textblock
10724 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
10725 msgid ""
10726 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10727 "(8)> command.  The \"full\" version includes all fields."
10728 msgstr ""
10729
10730 #. type: =head2
10731 #: ../fish/guestfish-actions.pod:2992
10732 msgid "lvuuid"
10733 msgstr ""
10734
10735 #. type: verbatim
10736 #: ../fish/guestfish-actions.pod:2994
10737 #, no-wrap
10738 msgid ""
10739 " lvuuid device\n"
10740 "\n"
10741 msgstr ""
10742
10743 #. type: textblock
10744 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
10745 msgid "This command returns the UUID of the LVM LV C<device>."
10746 msgstr ""
10747
10748 #. type: =head2
10749 #: ../fish/guestfish-actions.pod:2998
10750 msgid "lxattrlist"
10751 msgstr ""
10752
10753 #. type: verbatim
10754 #: ../fish/guestfish-actions.pod:3000
10755 #, no-wrap
10756 msgid ""
10757 " lxattrlist path 'names ...'\n"
10758 "\n"
10759 msgstr ""
10760
10761 #. type: textblock
10762 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
10763 msgid ""
10764 "This call allows you to get the extended attributes of multiple files, where "
10765 "all files are in the directory C<path>.  C<names> is the list of files from "
10766 "this directory."
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
10771 msgid ""
10772 "On return you get a flat list of xattr structs which must be interpreted "
10773 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10774 "C<attrval> in this struct is zero-length to indicate there was an error "
10775 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10776 "number (the number of following attributes for this file, which could be C<"
10777 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
10778 "for the first named file.  This repeats for the second and subsequent files."
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../fish/guestfish-actions.pod:3016
10783 msgid ""
10784 "This call is intended for programs that want to efficiently list a directory "
10785 "contents without making many round-trips.  See also L</lstatlist> for a "
10786 "similarly efficient call for getting standard stats.  Very long directory "
10787 "listings might cause the protocol message size to be exceeded, causing this "
10788 "call to fail.  The caller must split up such requests into smaller groups of "
10789 "names."
10790 msgstr ""
10791
10792 #. type: =head2
10793 #: ../fish/guestfish-actions.pod:3024
10794 msgid "mkdir"
10795 msgstr ""
10796
10797 #. type: verbatim
10798 #: ../fish/guestfish-actions.pod:3026
10799 #, no-wrap
10800 msgid ""
10801 " mkdir path\n"
10802 "\n"
10803 msgstr ""
10804
10805 #. type: textblock
10806 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
10807 msgid "Create a directory named C<path>."
10808 msgstr ""
10809
10810 #. type: =head2
10811 #: ../fish/guestfish-actions.pod:3030
10812 msgid "mkdir-mode"
10813 msgstr ""
10814
10815 #. type: verbatim
10816 #: ../fish/guestfish-actions.pod:3032
10817 #, no-wrap
10818 msgid ""
10819 " mkdir-mode path mode\n"
10820 "\n"
10821 msgstr ""
10822
10823 #. type: textblock
10824 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
10825 msgid ""
10826 "This command creates a directory, setting the initial permissions of the "
10827 "directory to C<mode>."
10828 msgstr ""
10829
10830 #. type: textblock
10831 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
10832 msgid ""
10833 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10834 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10835 "other ways."
10836 msgstr ""
10837
10838 #. type: textblock
10839 #: ../fish/guestfish-actions.pod:3041
10840 msgid "See also L</mkdir>, L</umask>"
10841 msgstr ""
10842
10843 #. type: =head2
10844 #: ../fish/guestfish-actions.pod:3043
10845 msgid "mkdir-p"
10846 msgstr ""
10847
10848 #. type: verbatim
10849 #: ../fish/guestfish-actions.pod:3045
10850 #, no-wrap
10851 msgid ""
10852 " mkdir-p path\n"
10853 "\n"
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
10858 msgid ""
10859 "Create a directory named C<path>, creating any parent directories as "
10860 "necessary.  This is like the C<mkdir -p> shell command."
10861 msgstr ""
10862
10863 #. type: =head2
10864 #: ../fish/guestfish-actions.pod:3050
10865 msgid "mkdtemp"
10866 msgstr ""
10867
10868 #. type: verbatim
10869 #: ../fish/guestfish-actions.pod:3052
10870 #, no-wrap
10871 msgid ""
10872 " mkdtemp template\n"
10873 "\n"
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
10878 msgid ""
10879 "This command creates a temporary directory.  The C<template> parameter "
10880 "should be a full pathname for the temporary directory name with the final "
10881 "six characters being \"XXXXXX\"."
10882 msgstr ""
10883
10884 #. type: textblock
10885 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
10886 msgid ""
10887 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10888 "being suitable for Windows filesystems."
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
10893 msgid "The name of the temporary directory that was created is returned."
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
10898 msgid "The temporary directory is created with mode 0700 and is owned by root."
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
10903 msgid ""
10904 "The caller is responsible for deleting the temporary directory and its "
10905 "contents after use."
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
10910 msgid "See also: L<mkdtemp(3)>"
10911 msgstr ""
10912
10913 #. type: =head2
10914 #: ../fish/guestfish-actions.pod:3073
10915 msgid "mke2fs-J"
10916 msgstr ""
10917
10918 #. type: verbatim
10919 #: ../fish/guestfish-actions.pod:3075
10920 #, no-wrap
10921 msgid ""
10922 " mke2fs-J fstype blocksize device journal\n"
10923 "\n"
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
10928 msgid ""
10929 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10930 "C<journal>.  It is equivalent to the command:"
10931 msgstr ""
10932
10933 #. type: verbatim
10934 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
10935 #, no-wrap
10936 msgid ""
10937 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10938 "\n"
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../fish/guestfish-actions.pod:3083
10943 msgid "See also L</mke2journal>."
10944 msgstr ""
10945
10946 #. type: =head2
10947 #: ../fish/guestfish-actions.pod:3085
10948 msgid "mke2fs-JL"
10949 msgstr ""
10950
10951 #. type: verbatim
10952 #: ../fish/guestfish-actions.pod:3087
10953 #, no-wrap
10954 msgid ""
10955 " mke2fs-JL fstype blocksize device label\n"
10956 "\n"
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
10961 msgid ""
10962 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10963 "the journal labeled C<label>."
10964 msgstr ""
10965
10966 #. type: textblock
10967 #: ../fish/guestfish-actions.pod:3092
10968 msgid "See also L</mke2journal-L>."
10969 msgstr ""
10970
10971 #. type: =head2
10972 #: ../fish/guestfish-actions.pod:3094
10973 msgid "mke2fs-JU"
10974 msgstr ""
10975
10976 #. type: verbatim
10977 #: ../fish/guestfish-actions.pod:3096
10978 #, no-wrap
10979 msgid ""
10980 " mke2fs-JU fstype blocksize device uuid\n"
10981 "\n"
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
10986 msgid ""
10987 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10988 "the journal with UUID C<uuid>."
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:3101
10993 msgid "See also L</mke2journal-U>."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:3103
10998 msgid "mke2journal"
10999 msgstr ""
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:3105
11003 #, no-wrap
11004 msgid ""
11005 " mke2journal blocksize device\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
11011 msgid ""
11012 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11013 "command:"
11014 msgstr ""
11015
11016 #. type: verbatim
11017 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
11018 #, no-wrap
11019 msgid ""
11020 " mke2fs -O journal_dev -b blocksize device\n"
11021 "\n"
11022 msgstr ""
11023
11024 #. type: =head2
11025 #: ../fish/guestfish-actions.pod:3112
11026 msgid "mke2journal-L"
11027 msgstr ""
11028
11029 #. type: verbatim
11030 #: ../fish/guestfish-actions.pod:3114
11031 #, no-wrap
11032 msgid ""
11033 " mke2journal-L blocksize label device\n"
11034 "\n"
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
11039 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11040 msgstr ""
11041
11042 #. type: =head2
11043 #: ../fish/guestfish-actions.pod:3118
11044 msgid "mke2journal-U"
11045 msgstr ""
11046
11047 #. type: verbatim
11048 #: ../fish/guestfish-actions.pod:3120
11049 #, no-wrap
11050 msgid ""
11051 " mke2journal-U blocksize uuid device\n"
11052 "\n"
11053 msgstr ""
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
11057 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11058 msgstr ""
11059
11060 #. type: =head2
11061 #: ../fish/guestfish-actions.pod:3124
11062 msgid "mkfifo"
11063 msgstr ""
11064
11065 #. type: verbatim
11066 #: ../fish/guestfish-actions.pod:3126
11067 #, no-wrap
11068 msgid ""
11069 " mkfifo mode path\n"
11070 "\n"
11071 msgstr ""
11072
11073 #. type: textblock
11074 #: ../fish/guestfish-actions.pod:3128
11075 msgid ""
11076 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11077 "is just a convenient wrapper around L</mknod>."
11078 msgstr ""
11079
11080 #. type: =head2
11081 #: ../fish/guestfish-actions.pod:3134
11082 msgid "mkfs"
11083 msgstr ""
11084
11085 #. type: verbatim
11086 #: ../fish/guestfish-actions.pod:3136
11087 #, no-wrap
11088 msgid ""
11089 " mkfs fstype device\n"
11090 "\n"
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
11095 msgid ""
11096 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11097 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11098 msgstr ""
11099
11100 #. type: =head2
11101 #: ../fish/guestfish-actions.pod:3142
11102 msgid "mkfs-b"
11103 msgstr ""
11104
11105 #. type: verbatim
11106 #: ../fish/guestfish-actions.pod:3144
11107 #, no-wrap
11108 msgid ""
11109 " mkfs-b fstype blocksize device\n"
11110 "\n"
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:3146
11115 msgid ""
11116 "This call is similar to L</mkfs>, but it allows you to control the block "
11117 "size of the resulting filesystem.  Supported block sizes depend on the "
11118 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11119 msgstr ""
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11123 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
11124 msgid ""
11125 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11126 "cluster size."
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:3154
11131 msgid ""
11132 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11133 "instead."
11134 msgstr ""
11135
11136 #. type: =head2
11137 #: ../fish/guestfish-actions.pod:3161
11138 msgid "mkfs-opts"
11139 msgstr ""
11140
11141 #. type: verbatim
11142 #: ../fish/guestfish-actions.pod:3163
11143 #, no-wrap
11144 msgid ""
11145 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11146 "\n"
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
11151 msgid ""
11152 "This function creates a filesystem on C<device>.  The filesystem type is "
11153 "C<fstype>, for example C<ext3>."
11154 msgstr ""
11155
11156 #. type: =item
11157 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
11158 msgid "C<blocksize>"
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
11163 msgid ""
11164 "The filesystem block size.  Supported block sizes depend on the filesystem "
11165 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11166 "filesystems."
11167 msgstr ""
11168
11169 #. type: textblock
11170 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
11171 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11172 msgstr ""
11173
11174 #. type: =item
11175 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
11176 msgid "C<features>"
11177 msgstr ""
11178
11179 #. type: textblock
11180 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
11181 msgid "This passes the I<-O> parameter to the external mkfs program."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
11186 msgid ""
11187 "For certain filesystem types, this allows extra filesystem features to be "
11188 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
11193 msgid ""
11194 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11195 "type."
11196 msgstr ""
11197
11198 #. type: =item
11199 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
11200 msgid "C<inode>"
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
11205 msgid ""
11206 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11207 "sets the inode size (only for ext2/3/4 filesystems at present)."
11208 msgstr ""
11209
11210 #. type: =item
11211 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
11212 msgid "C<sectorsize>"
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
11217 msgid ""
11218 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11219 "sets sector size for ufs filesystem."
11220 msgstr ""
11221
11222 #. type: =head2
11223 #: ../fish/guestfish-actions.pod:3208
11224 msgid "mkmountpoint"
11225 msgstr ""
11226
11227 #. type: verbatim
11228 #: ../fish/guestfish-actions.pod:3210
11229 #, no-wrap
11230 msgid ""
11231 " mkmountpoint exemptpath\n"
11232 "\n"
11233 msgstr ""
11234
11235 #. type: textblock
11236 #: ../fish/guestfish-actions.pod:3212
11237 msgid ""
11238 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11239 "to create extra mountpoints before mounting the first filesystem."
11240 msgstr ""
11241
11242 #. type: textblock
11243 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
11244 msgid ""
11245 "These calls are I<only> necessary in some very limited circumstances, mainly "
11246 "the case where you want to mount a mix of unrelated and/or read-only "
11247 "filesystems together."
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
11252 msgid ""
11253 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11254 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11255 "inside that.  You can unpack this as follows in guestfish:"
11256 msgstr ""
11257
11258 #. type: verbatim
11259 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
11260 #, no-wrap
11261 msgid ""
11262 " add-ro Fedora-11-i686-Live.iso\n"
11263 " run\n"
11264 " mkmountpoint /cd\n"
11265 " mkmountpoint /sqsh\n"
11266 " mkmountpoint /ext3fs\n"
11267 " mount /dev/sda /cd\n"
11268 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11269 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11270 "\n"
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
11275 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11276 msgstr ""
11277
11278 #. type: textblock
11279 #: ../fish/guestfish-actions.pod:3236
11280 msgid ""
11281 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11282 "unexpected errors if you try to mix these calls.  It is safest to manually "
11283 "unmount filesystems and remove mountpoints after use."
11284 msgstr ""
11285
11286 #. type: textblock
11287 #: ../fish/guestfish-actions.pod:3240
11288 msgid ""
11289 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11290 "for this to work for manual mountpoints, you must ensure that the innermost "
11291 "mountpoints have the longest pathnames, as in the example code above."
11292 msgstr ""
11293
11294 #. type: textblock
11295 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
11296 msgid ""
11297 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11298 msgstr ""
11299
11300 #. type: textblock
11301 #: ../fish/guestfish-actions.pod:3247
11302 msgid ""
11303 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11304 "L</umount-all> to be called when the handle is closed which can also trigger "
11305 "these issues."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:3251
11310 msgid "mknod"
11311 msgstr ""
11312
11313 #. type: verbatim
11314 #: ../fish/guestfish-actions.pod:3253
11315 #, no-wrap
11316 msgid ""
11317 " mknod mode devmajor devminor path\n"
11318 "\n"
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
11323 msgid ""
11324 "This call creates block or character special devices, or named pipes (FIFOs)."
11325 msgstr ""
11326
11327 #. type: textblock
11328 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
11329 msgid ""
11330 "The C<mode> parameter should be the mode, using the standard constants.  "
11331 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11332 "used when creating block and character special devices."
11333 msgstr ""
11334
11335 #. type: textblock
11336 #: ../fish/guestfish-actions.pod:3263
11337 msgid ""
11338 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11339 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11340 "regular file).  These constants are available in the standard Linux header "
11341 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11342 "wrappers around this command which bitwise OR in the appropriate constant "
11343 "for you."
11344 msgstr ""
11345
11346 #. type: =head2
11347 #: ../fish/guestfish-actions.pod:3273
11348 msgid "mknod-b"
11349 msgstr ""
11350
11351 #. type: verbatim
11352 #: ../fish/guestfish-actions.pod:3275
11353 #, no-wrap
11354 msgid ""
11355 " mknod-b mode devmajor devminor path\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../fish/guestfish-actions.pod:3277
11361 msgid ""
11362 "This call creates a block device node called C<path> with mode C<mode> and "
11363 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11364 "wrapper around L</mknod>."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:3283
11369 msgid "mknod-c"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:3285
11374 #, no-wrap
11375 msgid ""
11376 " mknod-c mode devmajor devminor path\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:3287
11382 msgid ""
11383 "This call creates a char device node called C<path> with mode C<mode> and "
11384 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11385 "wrapper around L</mknod>."
11386 msgstr ""
11387
11388 #. type: =head2
11389 #: ../fish/guestfish-actions.pod:3293
11390 msgid "mkswap"
11391 msgstr ""
11392
11393 #. type: verbatim
11394 #: ../fish/guestfish-actions.pod:3295
11395 #, no-wrap
11396 msgid ""
11397 " mkswap device\n"
11398 "\n"
11399 msgstr ""
11400
11401 #. type: textblock
11402 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
11403 msgid "Create a swap partition on C<device>."
11404 msgstr ""
11405
11406 #. type: =head2
11407 #: ../fish/guestfish-actions.pod:3299
11408 msgid "mkswap-L"
11409 msgstr ""
11410
11411 #. type: verbatim
11412 #: ../fish/guestfish-actions.pod:3301
11413 #, no-wrap
11414 msgid ""
11415 " mkswap-L label device\n"
11416 "\n"
11417 msgstr ""
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
11421 msgid "Create a swap partition on C<device> with label C<label>."
11422 msgstr ""
11423
11424 #. type: textblock
11425 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
11426 msgid ""
11427 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11428 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11429 "or swap tools."
11430 msgstr ""
11431
11432 #. type: =head2
11433 #: ../fish/guestfish-actions.pod:3309
11434 msgid "mkswap-U"
11435 msgstr ""
11436
11437 #. type: verbatim
11438 #: ../fish/guestfish-actions.pod:3311
11439 #, no-wrap
11440 msgid ""
11441 " mkswap-U uuid device\n"
11442 "\n"
11443 msgstr ""
11444
11445 #. type: textblock
11446 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
11447 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11448 msgstr ""
11449
11450 #. type: =head2
11451 #: ../fish/guestfish-actions.pod:3315
11452 msgid "mkswap-file"
11453 msgstr ""
11454
11455 #. type: verbatim
11456 #: ../fish/guestfish-actions.pod:3317
11457 #, no-wrap
11458 msgid ""
11459 " mkswap-file path\n"
11460 "\n"
11461 msgstr ""
11462
11463 #. type: textblock
11464 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
11465 msgid "Create a swap file."
11466 msgstr ""
11467
11468 #. type: textblock
11469 #: ../fish/guestfish-actions.pod:3321
11470 msgid ""
11471 "This command just writes a swap file signature to an existing file.  To "
11472 "create the file itself, use something like L</fallocate>."
11473 msgstr ""
11474
11475 #. type: =head2
11476 #: ../fish/guestfish-actions.pod:3324
11477 msgid "modprobe"
11478 msgstr ""
11479
11480 #. type: verbatim
11481 #: ../fish/guestfish-actions.pod:3326
11482 #, no-wrap
11483 msgid ""
11484 " modprobe modulename\n"
11485 "\n"
11486 msgstr ""
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
11490 msgid "This loads a kernel module in the appliance."
11491 msgstr ""
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
11495 msgid ""
11496 "The kernel module must have been whitelisted when libguestfs was built (see "
11497 "C<appliance/kmod.whitelist.in> in the source)."
11498 msgstr ""
11499
11500 #. type: =head2
11501 #: ../fish/guestfish-actions.pod:3333
11502 msgid "mount"
11503 msgstr ""
11504
11505 #. type: verbatim
11506 #: ../fish/guestfish-actions.pod:3335
11507 #, no-wrap
11508 msgid ""
11509 " mount device mountpoint\n"
11510 "\n"
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
11515 msgid ""
11516 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11517 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11518 "those block devices contain partitions, they will have the usual names (eg. "
11519 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11520 msgstr ""
11521
11522 #. type: textblock
11523 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
11524 msgid ""
11525 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11526 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11527 "mounted on directories which already exist."
11528 msgstr ""
11529
11530 #. type: textblock
11531 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
11532 msgid ""
11533 "The mounted filesystem is writable, if we have sufficient permissions on the "
11534 "underlying device."
11535 msgstr ""
11536
11537 #. type: textblock
11538 #: ../fish/guestfish-actions.pod:3351
11539 msgid ""
11540 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
11541 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
11542 "problems for users.  If your program might need to work with older versions "
11543 "of libguestfs, use L</mount-options> instead (using an empty string for the "
11544 "first parameter if you don't want any options)."
11545 msgstr ""
11546
11547 #. type: =head2
11548 #: ../fish/guestfish-actions.pod:3358
11549 msgid "mount-9p"
11550 msgstr ""
11551
11552 #. type: verbatim
11553 #: ../fish/guestfish-actions.pod:3360
11554 #, no-wrap
11555 msgid ""
11556 " mount-9p mounttag mountpoint [options:..]\n"
11557 "\n"
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
11562 msgid ""
11563 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11564 "C<mountpoint>."
11565 msgstr ""
11566
11567 #. type: textblock
11568 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
11569 msgid ""
11570 "If required, C<trans=virtio> will be automatically added to the options.  "
11571 "Any other options required can be passed in the optional C<options> "
11572 "parameter."
11573 msgstr ""
11574
11575 #. type: =head2
11576 #: ../fish/guestfish-actions.pod:3371
11577 msgid "mount-loop"
11578 msgstr ""
11579
11580 #. type: verbatim
11581 #: ../fish/guestfish-actions.pod:3373
11582 #, no-wrap
11583 msgid ""
11584 " mount-loop file mountpoint\n"
11585 "\n"
11586 msgstr ""
11587
11588 #. type: textblock
11589 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
11590 msgid ""
11591 "This command lets you mount C<file> (a filesystem image in a file) on a "
11592 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11593 "mountpoint>."
11594 msgstr ""
11595
11596 #. type: =head2
11597 #: ../fish/guestfish-actions.pod:3379
11598 msgid "mount-options"
11599 msgstr ""
11600
11601 #. type: verbatim
11602 #: ../fish/guestfish-actions.pod:3381
11603 #, no-wrap
11604 msgid ""
11605 " mount-options options device mountpoint\n"
11606 "\n"
11607 msgstr ""
11608
11609 #. type: textblock
11610 #: ../fish/guestfish-actions.pod:3383
11611 msgid ""
11612 "This is the same as the L</mount> command, but it allows you to set the "
11613 "mount options as for the L<mount(8)> I<-o> flag."
11614 msgstr ""
11615
11616 #. type: textblock
11617 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
11618 msgid ""
11619 "If the C<options> parameter is an empty string, then no options are passed "
11620 "(all options default to whatever the filesystem uses)."
11621 msgstr ""
11622
11623 #. type: =head2
11624 #: ../fish/guestfish-actions.pod:3391
11625 msgid "mount-ro"
11626 msgstr ""
11627
11628 #. type: verbatim
11629 #: ../fish/guestfish-actions.pod:3393
11630 #, no-wrap
11631 msgid ""
11632 " mount-ro device mountpoint\n"
11633 "\n"
11634 msgstr ""
11635
11636 #. type: textblock
11637 #: ../fish/guestfish-actions.pod:3395
11638 msgid ""
11639 "This is the same as the L</mount> command, but it mounts the filesystem with "
11640 "the read-only (I<-o ro>) flag."
11641 msgstr ""
11642
11643 #. type: =head2
11644 #: ../fish/guestfish-actions.pod:3398
11645 msgid "mount-vfs"
11646 msgstr ""
11647
11648 #. type: verbatim
11649 #: ../fish/guestfish-actions.pod:3400
11650 #, no-wrap
11651 msgid ""
11652 " mount-vfs options vfstype device mountpoint\n"
11653 "\n"
11654 msgstr ""
11655
11656 #. type: textblock
11657 #: ../fish/guestfish-actions.pod:3402
11658 msgid ""
11659 "This is the same as the L</mount> command, but it allows you to set both the "
11660 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11661 msgstr ""
11662
11663 #. type: =head2
11664 #: ../fish/guestfish-actions.pod:3406
11665 msgid "mountpoints"
11666 msgstr ""
11667
11668 #. type: verbatim
11669 #: ../fish/guestfish-actions.pod:3408
11670 #, no-wrap
11671 msgid ""
11672 " mountpoints\n"
11673 "\n"
11674 msgstr ""
11675
11676 #. type: textblock
11677 #: ../fish/guestfish-actions.pod:3410
11678 msgid ""
11679 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11680 "This one returns a hash table (map) of device name to directory where the "
11681 "device is mounted."
11682 msgstr ""
11683
11684 #. type: =head2
11685 #: ../fish/guestfish-actions.pod:3414
11686 msgid "mounts"
11687 msgstr ""
11688
11689 #. type: verbatim
11690 #: ../fish/guestfish-actions.pod:3416
11691 #, no-wrap
11692 msgid ""
11693 " mounts\n"
11694 "\n"
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
11699 msgid ""
11700 "This returns the list of currently mounted filesystems.  It returns the list "
11701 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11702 msgstr ""
11703
11704 #. type: textblock
11705 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
11706 msgid "Some internal mounts are not shown."
11707 msgstr ""
11708
11709 #. type: textblock
11710 #: ../fish/guestfish-actions.pod:3423
11711 msgid "See also: L</mountpoints>"
11712 msgstr ""
11713
11714 #. type: =head2
11715 #: ../fish/guestfish-actions.pod:3425
11716 msgid "mv"
11717 msgstr ""
11718
11719 #. type: verbatim
11720 #: ../fish/guestfish-actions.pod:3427
11721 #, no-wrap
11722 msgid ""
11723 " mv src dest\n"
11724 "\n"
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
11729 msgid ""
11730 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11731 "destination filename or destination directory."
11732 msgstr ""
11733
11734 #. type: =head2
11735 #: ../fish/guestfish-actions.pod:3432
11736 msgid "ntfs-3g-probe"
11737 msgstr ""
11738
11739 #. type: verbatim
11740 #: ../fish/guestfish-actions.pod:3434
11741 #, no-wrap
11742 msgid ""
11743 " ntfs-3g-probe true|false device\n"
11744 "\n"
11745 msgstr ""
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
11749 msgid ""
11750 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11751 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
11752 "write, and some cannot be mounted at all)."
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
11757 msgid ""
11758 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11759 "can be mounted read-write.  Set it to false if you want to test if the "
11760 "volume can be mounted read-only."
11761 msgstr ""
11762
11763 #. type: textblock
11764 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
11765 msgid ""
11766 "The return value is an integer which C<0> if the operation would succeed, or "
11767 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11768 msgstr ""
11769
11770 #. type: =head2
11771 #: ../fish/guestfish-actions.pod:3448
11772 msgid "ntfsresize"
11773 msgstr ""
11774
11775 #. type: verbatim
11776 #: ../fish/guestfish-actions.pod:3450
11777 #, no-wrap
11778 msgid ""
11779 " ntfsresize device\n"
11780 "\n"
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
11785 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
11786 msgid ""
11787 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11788 "size of the underlying device."
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
11793 msgid ""
11794 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11795 "consistency check (for safety).  You have to boot into Windows to perform "
11796 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11797 "resize filesystems which have been marked in this way.  So in effect it is "
11798 "not possible to call ntfsresize multiple times on a single filesystem "
11799 "without booting into Windows between each resize."
11800 msgstr ""
11801
11802 #. type: textblock
11803 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
11804 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
11805 msgid "See also L<ntfsresize(8)>."
11806 msgstr ""
11807
11808 #. type: textblock
11809 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
11810 msgid ""
11811 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11812 "call instead."
11813 msgstr ""
11814
11815 #. type: =head2
11816 #: ../fish/guestfish-actions.pod:3472
11817 msgid "ntfsresize-opts"
11818 msgstr ""
11819
11820 #. type: verbatim
11821 #: ../fish/guestfish-actions.pod:3474
11822 #, no-wrap
11823 msgid ""
11824 " ntfsresize-opts device [size:..] [force:..]\n"
11825 "\n"
11826 msgstr ""
11827
11828 #. type: textblock
11829 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
11830 msgid ""
11831 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11832 "resized to fit the container (eg. partition)."
11833 msgstr ""
11834
11835 #. type: =item
11836 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
11837 msgid "C<force>"
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
11842 msgid ""
11843 "If this option is true, then force the resize of the filesystem even if the "
11844 "filesystem is marked as requiring a consistency check."
11845 msgstr ""
11846
11847 #. type: textblock
11848 #: ../fish/guestfish-actions.pod:3493
11849 msgid ""
11850 "After the resize operation, the filesystem is always marked as requiring a "
11851 "consistency check (for safety).  You have to boot into Windows to perform "
11852 "this check and clear this condition.  If you I<don't> set the C<force> "
11853 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11854 "a single filesystem without booting into Windows between each resize."
11855 msgstr ""
11856
11857 #. type: =head2
11858 #: ../fish/guestfish-actions.pod:3506
11859 msgid "ntfsresize-size"
11860 msgstr ""
11861
11862 #. type: verbatim
11863 #: ../fish/guestfish-actions.pod:3508
11864 #, no-wrap
11865 msgid ""
11866 " ntfsresize-size device size\n"
11867 "\n"
11868 msgstr ""
11869
11870 #. type: textblock
11871 #: ../fish/guestfish-actions.pod:3510
11872 msgid ""
11873 "This command is the same as L</ntfsresize> except that it allows you to "
11874 "specify the new size (in bytes) explicitly."
11875 msgstr ""
11876
11877 #. type: =head2
11878 #: ../fish/guestfish-actions.pod:3520
11879 msgid "part-add"
11880 msgstr ""
11881
11882 #. type: verbatim
11883 #: ../fish/guestfish-actions.pod:3522
11884 #, no-wrap
11885 msgid ""
11886 " part-add device prlogex startsect endsect\n"
11887 "\n"
11888 msgstr ""
11889
11890 #. type: textblock
11891 #: ../fish/guestfish-actions.pod:3524
11892 msgid ""
11893 "This command adds a partition to C<device>.  If there is no partition table "
11894 "on the device, call L</part-init> first."
11895 msgstr ""
11896
11897 #. type: textblock
11898 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
11899 msgid ""
11900 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11901 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11902 "C<logical>) and C<e> (or C<extended>) partition types."
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
11907 msgid ""
11908 "C<startsect> and C<endsect> are the start and end of the partition in "
11909 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11910 "from the end of the disk (C<-1> is the last sector)."
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../fish/guestfish-actions.pod:3536
11915 msgid ""
11916 "Creating a partition which covers the whole disk is not so easy.  Use L</"
11917 "part-disk> to do that."
11918 msgstr ""
11919
11920 #. type: =head2
11921 #: ../fish/guestfish-actions.pod:3539
11922 msgid "part-del"
11923 msgstr ""
11924
11925 #. type: verbatim
11926 #: ../fish/guestfish-actions.pod:3541
11927 #, no-wrap
11928 msgid ""
11929 " part-del device partnum\n"
11930 "\n"
11931 msgstr ""
11932
11933 #. type: textblock
11934 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
11935 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11936 msgstr ""
11937
11938 #. type: textblock
11939 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
11940 msgid ""
11941 "Note that in the case of MBR partitioning, deleting an extended partition "
11942 "also deletes any logical partitions it contains."
11943 msgstr ""
11944
11945 #. type: =head2
11946 #: ../fish/guestfish-actions.pod:3549
11947 msgid "part-disk"
11948 msgstr ""
11949
11950 #. type: verbatim
11951 #: ../fish/guestfish-actions.pod:3551
11952 #, no-wrap
11953 msgid ""
11954 " part-disk device parttype\n"
11955 "\n"
11956 msgstr ""
11957
11958 #. type: textblock
11959 #: ../fish/guestfish-actions.pod:3553
11960 msgid ""
11961 "This command is simply a combination of L</part-init> followed by L</part-"
11962 "add> to create a single primary partition covering the whole disk."
11963 msgstr ""
11964
11965 #. type: textblock
11966 #: ../fish/guestfish-actions.pod:3557
11967 msgid ""
11968 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11969 "possible values are described in L</part-init>."
11970 msgstr ""
11971
11972 #. type: =head2
11973 #: ../fish/guestfish-actions.pod:3563
11974 msgid "part-get-bootable"
11975 msgstr ""
11976
11977 #. type: verbatim
11978 #: ../fish/guestfish-actions.pod:3565
11979 #, no-wrap
11980 msgid ""
11981 " part-get-bootable device partnum\n"
11982 "\n"
11983 msgstr ""
11984
11985 #. type: textblock
11986 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
11987 msgid ""
11988 "This command returns true if the partition C<partnum> on C<device> has the "
11989 "bootable flag set."
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:3570
11994 msgid "See also L</part-set-bootable>."
11995 msgstr ""
11996
11997 #. type: =head2
11998 #: ../fish/guestfish-actions.pod:3572
11999 msgid "part-get-mbr-id"
12000 msgstr ""
12001
12002 #. type: verbatim
12003 #: ../fish/guestfish-actions.pod:3574
12004 #, no-wrap
12005 msgid ""
12006 " part-get-mbr-id device partnum\n"
12007 "\n"
12008 msgstr ""
12009
12010 #. type: textblock
12011 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
12012 msgid ""
12013 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12014 "partition C<partnum>."
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
12019 msgid ""
12020 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12021 "undefined results for other partition table types (see L</part-get-"
12022 "parttype>)."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../fish/guestfish-actions.pod:3583
12027 msgid "part-get-parttype"
12028 msgstr ""
12029
12030 #. type: verbatim
12031 #: ../fish/guestfish-actions.pod:3585
12032 #, no-wrap
12033 msgid ""
12034 " part-get-parttype device\n"
12035 "\n"
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
12040 msgid ""
12041 "This command examines the partition table on C<device> and returns the "
12042 "partition table type (format) being used."
12043 msgstr ""
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:3590
12047 msgid ""
12048 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12049 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12050 "possible, although unusual.  See L</part-init> for a full list."
12051 msgstr ""
12052
12053 #. type: =head2
12054 #: ../fish/guestfish-actions.pod:3595
12055 msgid "part-init"
12056 msgstr ""
12057
12058 #. type: verbatim
12059 #: ../fish/guestfish-actions.pod:3597
12060 #, no-wrap
12061 msgid ""
12062 " part-init device parttype\n"
12063 "\n"
12064 msgstr ""
12065
12066 #. type: textblock
12067 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
12068 msgid ""
12069 "This creates an empty partition table on C<device> of one of the partition "
12070 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12071 "(for large disks)."
12072 msgstr ""
12073
12074 #. type: textblock
12075 #: ../fish/guestfish-actions.pod:3603
12076 msgid ""
12077 "Initially there are no partitions.  Following this, you should call L</part-"
12078 "add> for each partition required."
12079 msgstr ""
12080
12081 #. type: textblock
12082 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
12083 msgid "Possible values for C<parttype> are:"
12084 msgstr ""
12085
12086 #. type: =item
12087 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
12088 msgid "B<efi>"
12089 msgstr ""
12090
12091 #. type: =item
12092 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
12093 msgid "B<gpt>"
12094 msgstr ""
12095
12096 #. type: textblock
12097 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
12098 msgid "Intel EFI / GPT partition table."
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
12103 msgid ""
12104 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12105 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12106 "the C<mbr> format."
12107 msgstr ""
12108
12109 #. type: =item
12110 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
12111 msgid "B<mbr>"
12112 msgstr ""
12113
12114 #. type: =item
12115 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
12116 msgid "B<msdos>"
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
12121 msgid ""
12122 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12123 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12124 "TB.  For large disks we recommend using C<gpt>."
12125 msgstr ""
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
12129 msgid ""
12130 "Other partition table types that may work but are not supported include:"
12131 msgstr ""
12132
12133 #. type: =item
12134 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
12135 msgid "B<aix>"
12136 msgstr ""
12137
12138 #. type: textblock
12139 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
12140 msgid "AIX disk labels."
12141 msgstr ""
12142
12143 #. type: =item
12144 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
12145 msgid "B<amiga>"
12146 msgstr ""
12147
12148 #. type: =item
12149 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
12150 msgid "B<rdb>"
12151 msgstr ""
12152
12153 #. type: textblock
12154 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
12155 msgid "Amiga \"Rigid Disk Block\" format."
12156 msgstr ""
12157
12158 #. type: =item
12159 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
12160 msgid "B<bsd>"
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
12165 msgid "BSD disk labels."
12166 msgstr ""
12167
12168 #. type: =item
12169 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
12170 msgid "B<dasd>"
12171 msgstr ""
12172
12173 #. type: textblock
12174 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
12175 msgid "DASD, used on IBM mainframes."
12176 msgstr ""
12177
12178 #. type: =item
12179 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
12180 msgid "B<dvh>"
12181 msgstr ""
12182
12183 #. type: textblock
12184 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
12185 msgid "MIPS/SGI volumes."
12186 msgstr ""
12187
12188 #. type: =item
12189 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
12190 msgid "B<mac>"
12191 msgstr ""
12192
12193 #. type: textblock
12194 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
12195 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12196 msgstr ""
12197
12198 #. type: =item
12199 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
12200 msgid "B<pc98>"
12201 msgstr ""
12202
12203 #. type: textblock
12204 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
12205 msgid "NEC PC-98 format, common in Japan apparently."
12206 msgstr ""
12207
12208 #. type: =item
12209 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
12210 msgid "B<sun>"
12211 msgstr ""
12212
12213 #. type: textblock
12214 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
12215 msgid "Sun disk labels."
12216 msgstr ""
12217
12218 #. type: =head2
12219 #: ../fish/guestfish-actions.pod:3672
12220 msgid "part-list"
12221 msgstr ""
12222
12223 #. type: verbatim
12224 #: ../fish/guestfish-actions.pod:3674
12225 #, no-wrap
12226 msgid ""
12227 " part-list device\n"
12228 "\n"
12229 msgstr ""
12230
12231 #. type: textblock
12232 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
12233 msgid ""
12234 "This command parses the partition table on C<device> and returns the list of "
12235 "partitions found."
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
12240 msgid "The fields in the returned structure are:"
12241 msgstr ""
12242
12243 #. type: =item
12244 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
12245 msgid "B<part_num>"
12246 msgstr ""
12247
12248 #. type: textblock
12249 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
12250 msgid "Partition number, counting from 1."
12251 msgstr ""
12252
12253 #. type: =item
12254 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
12255 msgid "B<part_start>"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:3689
12260 msgid ""
12261 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12262 "the device's sector size, see L</blockdev-getss>."
12263 msgstr ""
12264
12265 #. type: =item
12266 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
12267 msgid "B<part_end>"
12268 msgstr ""
12269
12270 #. type: textblock
12271 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
12272 msgid "End of the partition in bytes."
12273 msgstr ""
12274
12275 #. type: =item
12276 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
12277 msgid "B<part_size>"
12278 msgstr ""
12279
12280 #. type: textblock
12281 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
12282 msgid "Size of the partition in bytes."
12283 msgstr ""
12284
12285 #. type: =head2
12286 #: ../fish/guestfish-actions.pod:3702
12287 msgid "part-set-bootable"
12288 msgstr ""
12289
12290 #. type: verbatim
12291 #: ../fish/guestfish-actions.pod:3704
12292 #, no-wrap
12293 msgid ""
12294 " part-set-bootable device partnum true|false\n"
12295 "\n"
12296 msgstr ""
12297
12298 #. type: textblock
12299 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
12300 msgid ""
12301 "This sets the bootable flag on partition numbered C<partnum> on device "
12302 "C<device>.  Note that partitions are numbered from 1."
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
12307 msgid ""
12308 "The bootable flag is used by some operating systems (notably Windows) to "
12309 "determine which partition to boot from.  It is by no means universally "
12310 "recognized."
12311 msgstr ""
12312
12313 #. type: =head2
12314 #: ../fish/guestfish-actions.pod:3713
12315 msgid "part-set-mbr-id"
12316 msgstr ""
12317
12318 #. type: verbatim
12319 #: ../fish/guestfish-actions.pod:3715
12320 #, no-wrap
12321 msgid ""
12322 " part-set-mbr-id device partnum idbyte\n"
12323 "\n"
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
12328 msgid ""
12329 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12330 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12331 "documentation are in fact hexadecimal numbers, but usually documented "
12332 "without any leading \"0x\" which might be confusing."
12333 msgstr ""
12334
12335 #. type: =head2
12336 #: ../fish/guestfish-actions.pod:3727
12337 msgid "part-set-name"
12338 msgstr ""
12339
12340 #. type: verbatim
12341 #: ../fish/guestfish-actions.pod:3729
12342 #, no-wrap
12343 msgid ""
12344 " part-set-name device partnum name\n"
12345 "\n"
12346 msgstr ""
12347
12348 #. type: textblock
12349 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
12350 msgid ""
12351 "This sets the partition name on partition numbered C<partnum> on device "
12352 "C<device>.  Note that partitions are numbered from 1."
12353 msgstr ""
12354
12355 #. type: textblock
12356 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
12357 msgid ""
12358 "The partition name can only be set on certain types of partition table.  "
12359 "This works on C<gpt> but not on C<mbr> partitions."
12360 msgstr ""
12361
12362 #. type: =head2
12363 #: ../fish/guestfish-actions.pod:3737
12364 msgid "part-to-dev"
12365 msgstr ""
12366
12367 #. type: verbatim
12368 #: ../fish/guestfish-actions.pod:3739
12369 #, no-wrap
12370 msgid ""
12371 " part-to-dev partition\n"
12372 "\n"
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
12377 msgid ""
12378 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12379 "partition number, returning the device name (eg. \"/dev/sdb\")."
12380 msgstr ""
12381
12382 #. type: textblock
12383 #: ../fish/guestfish-actions.pod:3745
12384 msgid ""
12385 "The named partition must exist, for example as a string returned from L</"
12386 "list-partitions>."
12387 msgstr ""
12388
12389 #. type: =head2
12390 #: ../fish/guestfish-actions.pod:3748
12391 msgid "ping-daemon"
12392 msgstr ""
12393
12394 #. type: verbatim
12395 #: ../fish/guestfish-actions.pod:3750
12396 #, no-wrap
12397 msgid ""
12398 " ping-daemon\n"
12399 "\n"
12400 msgstr ""
12401
12402 #. type: textblock
12403 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
12404 msgid ""
12405 "This is a test probe into the guestfs daemon running inside the qemu "
12406 "subprocess.  Calling this function checks that the daemon responds to the "
12407 "ping message, without affecting the daemon or attached block device(s) in "
12408 "any other way."
12409 msgstr ""
12410
12411 #. type: =head2
12412 #: ../fish/guestfish-actions.pod:3757
12413 msgid "pread"
12414 msgstr ""
12415
12416 #. type: verbatim
12417 #: ../fish/guestfish-actions.pod:3759
12418 #, no-wrap
12419 msgid ""
12420 " pread path count offset\n"
12421 "\n"
12422 msgstr ""
12423
12424 #. type: textblock
12425 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
12426 msgid ""
12427 "This command lets you read part of a file.  It reads C<count> bytes of the "
12428 "file, starting at C<offset>, from file C<path>."
12429 msgstr ""
12430
12431 #. type: textblock
12432 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
12433 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
12434 msgid ""
12435 "This may read fewer bytes than requested.  For further details see the "
12436 "L<pread(2)> system call."
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:3767
12441 msgid "See also L</pwrite>, L</pread-device>."
12442 msgstr ""
12443
12444 #. type: =head2
12445 #: ../fish/guestfish-actions.pod:3772
12446 msgid "pread-device"
12447 msgstr ""
12448
12449 #. type: verbatim
12450 #: ../fish/guestfish-actions.pod:3774
12451 #, no-wrap
12452 msgid ""
12453 " pread-device device count offset\n"
12454 "\n"
12455 msgstr ""
12456
12457 #. type: textblock
12458 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
12459 msgid ""
12460 "This command lets you read part of a file.  It reads C<count> bytes of "
12461 "C<device>, starting at C<offset>."
12462 msgstr ""
12463
12464 #. type: textblock
12465 #: ../fish/guestfish-actions.pod:3782
12466 msgid "See also L</pread>."
12467 msgstr ""
12468
12469 #. type: =head2
12470 #: ../fish/guestfish-actions.pod:3787
12471 msgid "pvcreate"
12472 msgstr ""
12473
12474 #. type: verbatim
12475 #: ../fish/guestfish-actions.pod:3789
12476 #, no-wrap
12477 msgid ""
12478 " pvcreate device\n"
12479 "\n"
12480 msgstr ""
12481
12482 #. type: textblock
12483 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
12484 msgid ""
12485 "This creates an LVM physical volume on the named C<device>, where C<device> "
12486 "should usually be a partition name such as C</dev/sda1>."
12487 msgstr ""
12488
12489 #. type: =head2
12490 #: ../fish/guestfish-actions.pod:3795
12491 msgid "pvremove"
12492 msgstr ""
12493
12494 #. type: verbatim
12495 #: ../fish/guestfish-actions.pod:3797
12496 #, no-wrap
12497 msgid ""
12498 " pvremove device\n"
12499 "\n"
12500 msgstr ""
12501
12502 #. type: textblock
12503 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
12504 msgid ""
12505 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12506 "it."
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
12511 msgid ""
12512 "The implementation uses the C<pvremove> command which refuses to wipe "
12513 "physical volumes that contain any volume groups, so you have to remove those "
12514 "first."
12515 msgstr ""
12516
12517 #. type: =head2
12518 #: ../fish/guestfish-actions.pod:3806
12519 msgid "pvresize"
12520 msgstr ""
12521
12522 #. type: verbatim
12523 #: ../fish/guestfish-actions.pod:3808
12524 #, no-wrap
12525 msgid ""
12526 " pvresize device\n"
12527 "\n"
12528 msgstr ""
12529
12530 #. type: textblock
12531 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
12532 msgid ""
12533 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12534 "the new size of the underlying device."
12535 msgstr ""
12536
12537 #. type: =head2
12538 #: ../fish/guestfish-actions.pod:3813
12539 msgid "pvresize-size"
12540 msgstr ""
12541
12542 #. type: verbatim
12543 #: ../fish/guestfish-actions.pod:3815
12544 #, no-wrap
12545 msgid ""
12546 " pvresize-size device size\n"
12547 "\n"
12548 msgstr ""
12549
12550 #. type: textblock
12551 #: ../fish/guestfish-actions.pod:3817
12552 msgid ""
12553 "This command is the same as L</pvresize> except that it allows you to "
12554 "specify the new size (in bytes) explicitly."
12555 msgstr ""
12556
12557 #. type: =head2
12558 #: ../fish/guestfish-actions.pod:3820
12559 msgid "pvs"
12560 msgstr ""
12561
12562 #. type: verbatim
12563 #: ../fish/guestfish-actions.pod:3822
12564 #, no-wrap
12565 msgid ""
12566 " pvs\n"
12567 "\n"
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
12572 msgid ""
12573 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12574 "(8)> command."
12575 msgstr ""
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
12579 msgid ""
12580 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12581 "sda2>)."
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../fish/guestfish-actions.pod:3830
12586 msgid "See also L</pvs-full>."
12587 msgstr ""
12588
12589 #. type: =head2
12590 #: ../fish/guestfish-actions.pod:3832
12591 msgid "pvs-full"
12592 msgstr ""
12593
12594 #. type: verbatim
12595 #: ../fish/guestfish-actions.pod:3834
12596 #, no-wrap
12597 msgid ""
12598 " pvs-full\n"
12599 "\n"
12600 msgstr ""
12601
12602 #. type: textblock
12603 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
12604 msgid ""
12605 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12606 "(8)> command.  The \"full\" version includes all fields."
12607 msgstr ""
12608
12609 #. type: =head2
12610 #: ../fish/guestfish-actions.pod:3839
12611 msgid "pvuuid"
12612 msgstr ""
12613
12614 #. type: verbatim
12615 #: ../fish/guestfish-actions.pod:3841
12616 #, no-wrap
12617 msgid ""
12618 " pvuuid device\n"
12619 "\n"
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
12624 msgid "This command returns the UUID of the LVM PV C<device>."
12625 msgstr ""
12626
12627 #. type: =head2
12628 #: ../fish/guestfish-actions.pod:3845
12629 msgid "pwrite"
12630 msgstr ""
12631
12632 #. type: verbatim
12633 #: ../fish/guestfish-actions.pod:3847
12634 #, no-wrap
12635 msgid ""
12636 " pwrite path content offset\n"
12637 "\n"
12638 msgstr ""
12639
12640 #. type: textblock
12641 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
12642 msgid ""
12643 "This command writes to part of a file.  It writes the data buffer C<content> "
12644 "to the file C<path> starting at offset C<offset>."
12645 msgstr ""
12646
12647 #. type: textblock
12648 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
12649 msgid ""
12650 "This command implements the L<pwrite(2)> system call, and like that system "
12651 "call it may not write the full data requested.  The return value is the "
12652 "number of bytes that were actually written to the file.  This could even be "
12653 "0, although short writes are unlikely for regular files in ordinary "
12654 "circumstances."
12655 msgstr ""
12656
12657 #. type: textblock
12658 #: ../fish/guestfish-actions.pod:3858
12659 msgid "See also L</pread>, L</pwrite-device>."
12660 msgstr ""
12661
12662 #. type: =head2
12663 #: ../fish/guestfish-actions.pod:3863
12664 msgid "pwrite-device"
12665 msgstr ""
12666
12667 #. type: verbatim
12668 #: ../fish/guestfish-actions.pod:3865
12669 #, no-wrap
12670 msgid ""
12671 " pwrite-device device content offset\n"
12672 "\n"
12673 msgstr ""
12674
12675 #. type: textblock
12676 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
12677 msgid ""
12678 "This command writes to part of a device.  It writes the data buffer "
12679 "C<content> to C<device> starting at offset C<offset>."
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
12684 msgid ""
12685 "This command implements the L<pwrite(2)> system call, and like that system "
12686 "call it may not write the full data requested (although short writes to disk "
12687 "devices and partitions are probably impossible with standard Linux kernels)."
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../fish/guestfish-actions.pod:3875
12692 msgid "See also L</pwrite>."
12693 msgstr ""
12694
12695 #. type: =head2
12696 #: ../fish/guestfish-actions.pod:3880
12697 msgid "read-file"
12698 msgstr ""
12699
12700 #. type: verbatim
12701 #: ../fish/guestfish-actions.pod:3882
12702 #, no-wrap
12703 msgid ""
12704 " read-file path\n"
12705 "\n"
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
12710 msgid "This calls returns the contents of the file C<path> as a buffer."
12711 msgstr ""
12712
12713 #. type: textblock
12714 #: ../fish/guestfish-actions.pod:3887
12715 msgid ""
12716 "Unlike L</cat>, this function can correctly handle files that contain "
12717 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12718 "is limited in the total size of file that can be handled."
12719 msgstr ""
12720
12721 #. type: =head2
12722 #: ../fish/guestfish-actions.pod:3895
12723 msgid "read-lines"
12724 msgstr ""
12725
12726 #. type: verbatim
12727 #: ../fish/guestfish-actions.pod:3897
12728 #, no-wrap
12729 msgid ""
12730 " read-lines path\n"
12731 "\n"
12732 msgstr ""
12733
12734 #. type: textblock
12735 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
12736 msgid ""
12737 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12738 "C<CRLF> character sequences are I<not> returned."
12739 msgstr ""
12740
12741 #. type: textblock
12742 #: ../fish/guestfish-actions.pod:3904
12743 msgid ""
12744 "Note that this function cannot correctly handle binary files (specifically, "
12745 "files containing C<\\0> character which is treated as end of line).  For "
12746 "those you need to use the L</read-file> function which has a more complex "
12747 "interface."
12748 msgstr ""
12749
12750 #. type: =head2
12751 #: ../fish/guestfish-actions.pod:3909
12752 msgid "readdir"
12753 msgstr ""
12754
12755 #. type: verbatim
12756 #: ../fish/guestfish-actions.pod:3911
12757 #, no-wrap
12758 msgid ""
12759 " readdir dir\n"
12760 "\n"
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
12765 msgid "This returns the list of directory entries in directory C<dir>."
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
12770 msgid ""
12771 "All entries in the directory are returned, including C<.> and C<..>.  The "
12772 "entries are I<not> sorted, but returned in the same order as the underlying "
12773 "filesystem."
12774 msgstr ""
12775
12776 #. type: textblock
12777 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
12778 msgid ""
12779 "Also this call returns basic file type information about each file.  The "
12780 "C<ftyp> field will contain one of the following characters:"
12781 msgstr ""
12782
12783 #. type: =item
12784 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
12785 msgid "'b'"
12786 msgstr ""
12787
12788 #. type: textblock
12789 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
12790 msgid "Block special"
12791 msgstr ""
12792
12793 #. type: =item
12794 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
12795 msgid "'c'"
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
12800 msgid "Char special"
12801 msgstr ""
12802
12803 #. type: =item
12804 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
12805 msgid "'d'"
12806 msgstr ""
12807
12808 #. type: textblock
12809 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
12810 msgid "Directory"
12811 msgstr ""
12812
12813 #. type: =item
12814 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
12815 msgid "'f'"
12816 msgstr ""
12817
12818 #. type: textblock
12819 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
12820 msgid "FIFO (named pipe)"
12821 msgstr ""
12822
12823 #. type: =item
12824 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
12825 msgid "'l'"
12826 msgstr ""
12827
12828 #. type: textblock
12829 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
12830 msgid "Symbolic link"
12831 msgstr ""
12832
12833 #. type: =item
12834 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
12835 msgid "'r'"
12836 msgstr ""
12837
12838 #. type: textblock
12839 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
12840 msgid "Regular file"
12841 msgstr ""
12842
12843 #. type: =item
12844 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
12845 msgid "'s'"
12846 msgstr ""
12847
12848 #. type: textblock
12849 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
12850 msgid "Socket"
12851 msgstr ""
12852
12853 #. type: =item
12854 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
12855 msgid "'u'"
12856 msgstr ""
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
12860 msgid "Unknown file type"
12861 msgstr ""
12862
12863 #. type: =item
12864 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
12865 msgid "'?'"
12866 msgstr ""
12867
12868 #. type: textblock
12869 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
12870 msgid ""
12871 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12872 msgstr ""
12873
12874 #. type: textblock
12875 #: ../fish/guestfish-actions.pod:3963
12876 msgid ""
12877 "This function is primarily intended for use by programs.  To get a simple "
12878 "list of names, use L</ls>.  To get a printable directory for human "
12879 "consumption, use L</ll>."
12880 msgstr ""
12881
12882 #. type: =head2
12883 #: ../fish/guestfish-actions.pod:3967
12884 msgid "readlink"
12885 msgstr ""
12886
12887 #. type: verbatim
12888 #: ../fish/guestfish-actions.pod:3969
12889 #, no-wrap
12890 msgid ""
12891 " readlink path\n"
12892 "\n"
12893 msgstr ""
12894
12895 #. type: textblock
12896 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
12897 msgid "This command reads the target of a symbolic link."
12898 msgstr ""
12899
12900 #. type: =head2
12901 #: ../fish/guestfish-actions.pod:3973
12902 msgid "readlinklist"
12903 msgstr ""
12904
12905 #. type: verbatim
12906 #: ../fish/guestfish-actions.pod:3975
12907 #, no-wrap
12908 msgid ""
12909 " readlinklist path 'names ...'\n"
12910 "\n"
12911 msgstr ""
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
12915 msgid ""
12916 "This call allows you to do a C<readlink> operation on multiple files, where "
12917 "all files are in the directory C<path>.  C<names> is the list of files from "
12918 "this directory."
12919 msgstr ""
12920
12921 #. type: textblock
12922 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
12923 msgid ""
12924 "On return you get a list of strings, with a one-to-one correspondence to the "
12925 "C<names> list.  Each string is the value of the symbolic link."
12926 msgstr ""
12927
12928 #. type: textblock
12929 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
12930 msgid ""
12931 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12932 "result string is the empty string C<\"\">.  However the whole operation is "
12933 "completed even if there were C<readlink(2)> errors, and so you can call this "
12934 "function with names where you don't know if they are symbolic links already "
12935 "(albeit slightly less efficient)."
12936 msgstr ""
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
12940 msgid ""
12941 "This call is intended for programs that want to efficiently list a directory "
12942 "contents without making many round-trips.  Very long directory listings "
12943 "might cause the protocol message size to be exceeded, causing this call to "
12944 "fail.  The caller must split up such requests into smaller groups of names."
12945 msgstr ""
12946
12947 #. type: =head2
12948 #: ../fish/guestfish-actions.pod:3999
12949 msgid "realpath"
12950 msgstr ""
12951
12952 #. type: verbatim
12953 #: ../fish/guestfish-actions.pod:4001
12954 #, no-wrap
12955 msgid ""
12956 " realpath path\n"
12957 "\n"
12958 msgstr ""
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
12962 msgid ""
12963 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12964 "has no C<.>, C<..> or symbolic link path elements."
12965 msgstr ""
12966
12967 #. type: =head2
12968 #: ../fish/guestfish-actions.pod:4006
12969 msgid "removexattr"
12970 msgstr ""
12971
12972 #. type: verbatim
12973 #: ../fish/guestfish-actions.pod:4008
12974 #, no-wrap
12975 msgid ""
12976 " removexattr xattr path\n"
12977 "\n"
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
12982 msgid ""
12983 "This call removes the extended attribute named C<xattr> of the file C<path>."
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:4013
12988 msgid "See also: L</lremovexattr>, L<attr(5)>."
12989 msgstr ""
12990
12991 #. type: =head2
12992 #: ../fish/guestfish-actions.pod:4015
12993 msgid "resize2fs"
12994 msgstr ""
12995
12996 #. type: verbatim
12997 #: ../fish/guestfish-actions.pod:4017
12998 #, no-wrap
12999 msgid ""
13000 " resize2fs device\n"
13001 "\n"
13002 msgstr ""
13003
13004 #. type: textblock
13005 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
13006 msgid ""
13007 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13008 "underlying device."
13009 msgstr ""
13010
13011 #. type: textblock
13012 #: ../fish/guestfish-actions.pod:4022
13013 msgid ""
13014 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13015 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13016 "gives an error about this and sometimes not.  In any case, it is always safe "
13017 "to call L</e2fsck-f> before calling this function."
13018 msgstr ""
13019
13020 #. type: =head2
13021 #: ../fish/guestfish-actions.pod:4028
13022 msgid "resize2fs-M"
13023 msgstr ""
13024
13025 #. type: verbatim
13026 #: ../fish/guestfish-actions.pod:4030
13027 #, no-wrap
13028 msgid ""
13029 " resize2fs-M device\n"
13030 "\n"
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:4032
13035 msgid ""
13036 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13037 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13038 "command."
13039 msgstr ""
13040
13041 #. type: textblock
13042 #: ../fish/guestfish-actions.pod:4036
13043 msgid ""
13044 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13045 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13046 "multiplied together, give the resulting size of the minimal filesystem in "
13047 "bytes."
13048 msgstr ""
13049
13050 #. type: =head2
13051 #: ../fish/guestfish-actions.pod:4041
13052 msgid "resize2fs-size"
13053 msgstr ""
13054
13055 #. type: verbatim
13056 #: ../fish/guestfish-actions.pod:4043
13057 #, no-wrap
13058 msgid ""
13059 " resize2fs-size device size\n"
13060 "\n"
13061 msgstr ""
13062
13063 #. type: textblock
13064 #: ../fish/guestfish-actions.pod:4045
13065 msgid ""
13066 "This command is the same as L</resize2fs> except that it allows you to "
13067 "specify the new size (in bytes) explicitly."
13068 msgstr ""
13069
13070 #. type: =head2
13071 #: ../fish/guestfish-actions.pod:4048
13072 msgid "rm"
13073 msgstr ""
13074
13075 #. type: verbatim
13076 #: ../fish/guestfish-actions.pod:4050
13077 #, no-wrap
13078 msgid ""
13079 " rm path\n"
13080 "\n"
13081 msgstr ""
13082
13083 #. type: textblock
13084 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
13085 msgid "Remove the single file C<path>."
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:4054
13090 msgid "rm-rf"
13091 msgstr ""
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:4056
13095 #, no-wrap
13096 msgid ""
13097 " rm-rf path\n"
13098 "\n"
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
13103 msgid ""
13104 "Remove the file or directory C<path>, recursively removing the contents if "
13105 "its a directory.  This is like the C<rm -rf> shell command."
13106 msgstr ""
13107
13108 #. type: =head2
13109 #: ../fish/guestfish-actions.pod:4062
13110 msgid "rmdir"
13111 msgstr ""
13112
13113 #. type: verbatim
13114 #: ../fish/guestfish-actions.pod:4064
13115 #, no-wrap
13116 msgid ""
13117 " rmdir path\n"
13118 "\n"
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
13123 msgid "Remove the single directory C<path>."
13124 msgstr ""
13125
13126 #. type: =head2
13127 #: ../fish/guestfish-actions.pod:4068
13128 msgid "rmmountpoint"
13129 msgstr ""
13130
13131 #. type: verbatim
13132 #: ../fish/guestfish-actions.pod:4070
13133 #, no-wrap
13134 msgid ""
13135 " rmmountpoint exemptpath\n"
13136 "\n"
13137 msgstr ""
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:4072
13141 msgid ""
13142 "This calls removes a mountpoint that was previously created with L</"
13143 "mkmountpoint>.  See L</mkmountpoint> for full details."
13144 msgstr ""
13145
13146 #. type: =head2
13147 #: ../fish/guestfish-actions.pod:4076
13148 msgid "scrub-device"
13149 msgstr ""
13150
13151 #. type: verbatim
13152 #: ../fish/guestfish-actions.pod:4078
13153 #, no-wrap
13154 msgid ""
13155 " scrub-device device\n"
13156 "\n"
13157 msgstr ""
13158
13159 #. type: textblock
13160 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
13161 msgid ""
13162 "This command writes patterns over C<device> to make data retrieval more "
13163 "difficult."
13164 msgstr ""
13165
13166 #. type: textblock
13167 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
13168 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
13169 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
13170 msgid ""
13171 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13172 "more details."
13173 msgstr ""
13174
13175 #. type: =head2
13176 #: ../fish/guestfish-actions.pod:4089
13177 msgid "scrub-file"
13178 msgstr ""
13179
13180 #. type: verbatim
13181 #: ../fish/guestfish-actions.pod:4091
13182 #, no-wrap
13183 msgid ""
13184 " scrub-file file\n"
13185 "\n"
13186 msgstr ""
13187
13188 #. type: textblock
13189 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
13190 msgid ""
13191 "This command writes patterns over a file to make data retrieval more "
13192 "difficult."
13193 msgstr ""
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
13197 msgid "The file is I<removed> after scrubbing."
13198 msgstr ""
13199
13200 #. type: =head2
13201 #: ../fish/guestfish-actions.pod:4101
13202 msgid "scrub-freespace"
13203 msgstr ""
13204
13205 #. type: verbatim
13206 #: ../fish/guestfish-actions.pod:4103
13207 #, no-wrap
13208 msgid ""
13209 " scrub-freespace dir\n"
13210 "\n"
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../fish/guestfish-actions.pod:4105
13215 msgid ""
13216 "This command creates the directory C<dir> and then fills it with files until "
13217 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13218 "deletes them.  The intention is to scrub any free space on the partition "
13219 "containing C<dir>."
13220 msgstr ""
13221
13222 #. type: =head2
13223 #: ../fish/guestfish-actions.pod:4114
13224 msgid "set-append"
13225 msgstr ""
13226
13227 #. type: =head2
13228 #: ../fish/guestfish-actions.pod:4116
13229 msgid "append"
13230 msgstr ""
13231
13232 #. type: verbatim
13233 #: ../fish/guestfish-actions.pod:4118
13234 #, no-wrap
13235 msgid ""
13236 " set-append append\n"
13237 "\n"
13238 msgstr ""
13239
13240 #. type: textblock
13241 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
13242 msgid ""
13243 "This function is used to add additional options to the guest kernel command "
13244 "line."
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
13249 msgid ""
13250 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13251 "environment variable."
13252 msgstr ""
13253
13254 #. type: textblock
13255 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
13256 msgid ""
13257 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13258 "(libguestfs always adds a few of its own)."
13259 msgstr ""
13260
13261 #. type: =head2
13262 #: ../fish/guestfish-actions.pod:4129
13263 msgid "set-attach-method"
13264 msgstr ""
13265
13266 #. type: =head2
13267 #: ../fish/guestfish-actions.pod:4131
13268 msgid "attach-method"
13269 msgstr ""
13270
13271 #. type: verbatim
13272 #: ../fish/guestfish-actions.pod:4133
13273 #, no-wrap
13274 msgid ""
13275 " set-attach-method attachmethod\n"
13276 "\n"
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
13281 msgid ""
13282 "Set the method that libguestfs uses to connect to the back end guestfsd "
13283 "daemon.  Possible methods are:"
13284 msgstr ""
13285
13286 #. type: =item
13287 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
13288 #: ../src/guestfs.pod:2826
13289 msgid "C<appliance>"
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
13294 msgid ""
13295 "Launch an appliance and connect to it.  This is the ordinary method and the "
13296 "default."
13297 msgstr ""
13298
13299 #. type: =item
13300 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
13301 msgid "C<unix:I<path>>"
13302 msgstr ""
13303
13304 #. type: textblock
13305 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
13306 msgid "Connect to the Unix domain socket I<path>."
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
13311 msgid ""
13312 "This method lets you connect to an existing daemon or (using virtio-serial) "
13313 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13314 "RUNNING DAEMONS>."
13315 msgstr ""
13316
13317 #. type: =head2
13318 #: ../fish/guestfish-actions.pod:4155
13319 msgid "set-autosync"
13320 msgstr ""
13321
13322 #. type: =head2
13323 #: ../fish/guestfish-actions.pod:4157
13324 msgid "autosync"
13325 msgstr ""
13326
13327 #. type: verbatim
13328 #: ../fish/guestfish-actions.pod:4159
13329 #, no-wrap
13330 msgid ""
13331 " set-autosync true|false\n"
13332 "\n"
13333 msgstr ""
13334
13335 #. type: textblock
13336 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
13337 msgid ""
13338 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13339 "effort attempt to make filesystems consistent and synchronized when the "
13340 "handle is closed (also if the program exits without closing handles)."
13341 msgstr ""
13342
13343 #. type: textblock
13344 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
13345 msgid ""
13346 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13347 "disabled by default)."
13348 msgstr ""
13349
13350 #. type: =head2
13351 #: ../fish/guestfish-actions.pod:4169
13352 msgid "set-direct"
13353 msgstr ""
13354
13355 #. type: =head2
13356 #: ../fish/guestfish-actions.pod:4171
13357 msgid "direct"
13358 msgstr ""
13359
13360 #. type: verbatim
13361 #: ../fish/guestfish-actions.pod:4173
13362 #, no-wrap
13363 msgid ""
13364 " set-direct true|false\n"
13365 "\n"
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
13370 msgid ""
13371 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13372 "passed directly through to the appliance once it is launched."
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:4179
13377 msgid ""
13378 "One consequence of this is that log messages aren't caught by the library "
13379 "and handled by L</set-log-message-callback>, but go straight to stdout."
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
13384 msgid "You probably don't want to use this unless you know what you are doing."
13385 msgstr ""
13386
13387 #. type: textblock
13388 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
13389 msgid "The default is disabled."
13390 msgstr ""
13391
13392 #. type: =head2
13393 #: ../fish/guestfish-actions.pod:4188
13394 msgid "set-e2label"
13395 msgstr ""
13396
13397 #. type: verbatim
13398 #: ../fish/guestfish-actions.pod:4190
13399 #, no-wrap
13400 msgid ""
13401 " set-e2label device label\n"
13402 "\n"
13403 msgstr ""
13404
13405 #. type: textblock
13406 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
13407 msgid ""
13408 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13409 "C<label>.  Filesystem labels are limited to 16 characters."
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:4196
13414 msgid ""
13415 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13416 "label on a filesystem."
13417 msgstr ""
13418
13419 #. type: =head2
13420 #: ../fish/guestfish-actions.pod:4199
13421 msgid "set-e2uuid"
13422 msgstr ""
13423
13424 #. type: verbatim
13425 #: ../fish/guestfish-actions.pod:4201
13426 #, no-wrap
13427 msgid ""
13428 " set-e2uuid device uuid\n"
13429 "\n"
13430 msgstr ""
13431
13432 #. type: textblock
13433 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
13434 msgid ""
13435 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13436 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13437 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13438 msgstr ""
13439
13440 #. type: textblock
13441 #: ../fish/guestfish-actions.pod:4208
13442 msgid ""
13443 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13444 "UUID of a filesystem."
13445 msgstr ""
13446
13447 #. type: =head2
13448 #: ../fish/guestfish-actions.pod:4211
13449 msgid "set-memsize"
13450 msgstr ""
13451
13452 #. type: =head2
13453 #: ../fish/guestfish-actions.pod:4213
13454 msgid "memsize"
13455 msgstr ""
13456
13457 #. type: verbatim
13458 #: ../fish/guestfish-actions.pod:4215
13459 #, no-wrap
13460 msgid ""
13461 " set-memsize memsize\n"
13462 "\n"
13463 msgstr ""
13464
13465 #. type: textblock
13466 #: ../fish/guestfish-actions.pod:4217
13467 msgid ""
13468 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13469 "This only has any effect if called before L</launch>."
13470 msgstr ""
13471
13472 #. type: textblock
13473 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
13474 msgid ""
13475 "You can also change this by setting the environment variable "
13476 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13477 msgstr ""
13478
13479 #. type: =head2
13480 #: ../fish/guestfish-actions.pod:4228
13481 msgid "set-network"
13482 msgstr ""
13483
13484 #. type: =head2
13485 #: ../fish/guestfish-actions.pod:4230
13486 msgid "network"
13487 msgstr ""
13488
13489 #. type: verbatim
13490 #: ../fish/guestfish-actions.pod:4232
13491 #, no-wrap
13492 msgid ""
13493 " set-network true|false\n"
13494 "\n"
13495 msgstr ""
13496
13497 #. type: textblock
13498 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
13499 msgid ""
13500 "If C<network> is true, then the network is enabled in the libguestfs "
13501 "appliance.  The default is false."
13502 msgstr ""
13503
13504 #. type: textblock
13505 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
13506 msgid ""
13507 "This affects whether commands are able to access the network (see L<guestfs"
13508 "(3)/RUNNING COMMANDS>)."
13509 msgstr ""
13510
13511 #. type: textblock
13512 #: ../fish/guestfish-actions.pod:4240
13513 msgid ""
13514 "You must call this before calling L</launch>, otherwise it has no effect."
13515 msgstr ""
13516
13517 #. type: =head2
13518 #: ../fish/guestfish-actions.pod:4243
13519 msgid "set-path"
13520 msgstr ""
13521
13522 #. type: verbatim
13523 #: ../fish/guestfish-actions.pod:4247
13524 #, no-wrap
13525 msgid ""
13526 " set-path searchpath\n"
13527 "\n"
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
13532 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13533 msgstr ""
13534
13535 #. type: textblock
13536 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
13537 msgid ""
13538 "The default is C<$libdir/guestfs> unless overridden by setting "
13539 "C<LIBGUESTFS_PATH> environment variable."
13540 msgstr ""
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
13544 msgid "Setting C<path> to C<NULL> restores the default path."
13545 msgstr ""
13546
13547 #. type: =head2
13548 #: ../fish/guestfish-actions.pod:4256
13549 msgid "set-pgroup"
13550 msgstr ""
13551
13552 #. type: =head2
13553 #: ../fish/guestfish-actions.pod:4258
13554 msgid "pgroup"
13555 msgstr ""
13556
13557 #. type: verbatim
13558 #: ../fish/guestfish-actions.pod:4260
13559 #, no-wrap
13560 msgid ""
13561 " set-pgroup true|false\n"
13562 "\n"
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
13567 msgid ""
13568 "If C<pgroup> is true, child processes are placed into their own process "
13569 "group."
13570 msgstr ""
13571
13572 #. type: textblock
13573 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
13574 msgid ""
13575 "The practical upshot of this is that signals like C<SIGINT> (from users "
13576 "pressing C<^C>) won't be received by the child process."
13577 msgstr ""
13578
13579 #. type: textblock
13580 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
13581 msgid ""
13582 "The default for this flag is false, because usually you want C<^C> to kill "
13583 "the subprocess."
13584 msgstr ""
13585
13586 #. type: =head2
13587 #: ../fish/guestfish-actions.pod:4271
13588 msgid "set-qemu"
13589 msgstr ""
13590
13591 #. type: =head2
13592 #: ../fish/guestfish-actions.pod:4273
13593 msgid "qemu"
13594 msgstr ""
13595
13596 #. type: verbatim
13597 #: ../fish/guestfish-actions.pod:4275
13598 #, no-wrap
13599 msgid ""
13600 " set-qemu qemu\n"
13601 "\n"
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
13606 msgid "Set the qemu binary that we will use."
13607 msgstr ""
13608
13609 #. type: textblock
13610 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
13611 msgid ""
13612 "The default is chosen when the library was compiled by the configure script."
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
13617 msgid ""
13618 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13619 "variable."
13620 msgstr ""
13621
13622 #. type: textblock
13623 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
13624 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
13629 msgid ""
13630 "Note that you should call this function as early as possible after creating "
13631 "the handle.  This is because some pre-launch operations depend on testing "
13632 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13633 "don't retest features, and so you might see inconsistent results.  Using the "
13634 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13635 "the qemu binary at the same time as the handle is created."
13636 msgstr ""
13637
13638 #. type: =head2
13639 #: ../fish/guestfish-actions.pod:4295
13640 msgid "set-recovery-proc"
13641 msgstr ""
13642
13643 #. type: =head2
13644 #: ../fish/guestfish-actions.pod:4297
13645 msgid "recovery-proc"
13646 msgstr ""
13647
13648 #. type: verbatim
13649 #: ../fish/guestfish-actions.pod:4299
13650 #, no-wrap
13651 msgid ""
13652 " set-recovery-proc true|false\n"
13653 "\n"
13654 msgstr ""
13655
13656 #. type: textblock
13657 #: ../fish/guestfish-actions.pod:4301
13658 msgid ""
13659 "If this is called with the parameter C<false> then L</launch> does not "
13660 "create a recovery process.  The purpose of the recovery process is to stop "
13661 "runaway qemu processes in the case where the main program aborts abruptly."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../fish/guestfish-actions.pod:4306
13666 msgid ""
13667 "This only has any effect if called before L</launch>, and the default is "
13668 "true."
13669 msgstr ""
13670
13671 #. type: textblock
13672 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
13673 msgid ""
13674 "About the only time when you would want to disable this is if the main "
13675 "process will fork itself into the background (\"daemonize\" itself).  In "
13676 "this case the recovery process thinks that the main program has disappeared "
13677 "and so kills qemu, which is not very helpful."
13678 msgstr ""
13679
13680 #. type: =head2
13681 #: ../fish/guestfish-actions.pod:4315
13682 msgid "set-selinux"
13683 msgstr ""
13684
13685 #. type: =head2
13686 #: ../fish/guestfish-actions.pod:4317
13687 msgid "selinux"
13688 msgstr ""
13689
13690 #. type: verbatim
13691 #: ../fish/guestfish-actions.pod:4319
13692 #, no-wrap
13693 msgid ""
13694 " set-selinux true|false\n"
13695 "\n"
13696 msgstr ""
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
13700 msgid ""
13701 "This sets the selinux flag that is passed to the appliance at boot time.  "
13702 "The default is C<selinux=0> (disabled)."
13703 msgstr ""
13704
13705 #. type: textblock
13706 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
13707 msgid ""
13708 "Note that if SELinux is enabled, it is always in Permissive mode "
13709 "(C<enforcing=0>)."
13710 msgstr ""
13711
13712 #. type: =head2
13713 #: ../fish/guestfish-actions.pod:4330
13714 msgid "set-smp"
13715 msgstr ""
13716
13717 #. type: =head2
13718 #: ../fish/guestfish-actions.pod:4332
13719 msgid "smp"
13720 msgstr ""
13721
13722 #. type: verbatim
13723 #: ../fish/guestfish-actions.pod:4334
13724 #, no-wrap
13725 msgid ""
13726 " set-smp smp\n"
13727 "\n"
13728 msgstr ""
13729
13730 #. type: textblock
13731 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
13732 msgid ""
13733 "Change the number of virtual CPUs assigned to the appliance.  The default is "
13734 "C<1>.  Increasing this may improve performance, though often it has no "
13735 "effect."
13736 msgstr ""
13737
13738 #. type: textblock
13739 #: ../fish/guestfish-actions.pod:4340
13740 msgid "This function must be called before L</launch>."
13741 msgstr ""
13742
13743 #. type: =head2
13744 #: ../fish/guestfish-actions.pod:4342
13745 msgid "set-trace"
13746 msgstr ""
13747
13748 #. type: =head2
13749 #: ../fish/guestfish-actions.pod:4344
13750 msgid "trace"
13751 msgstr ""
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:4346
13755 #, no-wrap
13756 msgid ""
13757 " set-trace true|false\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
13763 msgid ""
13764 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13765 "return values are traced."
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
13770 msgid ""
13771 "If you want to trace C API calls into libguestfs (and other libraries) then "
13772 "possibly a better way is to use the external ltrace(1) command."
13773 msgstr ""
13774
13775 #. type: textblock
13776 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
13777 msgid ""
13778 "Command traces are disabled unless the environment variable "
13779 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:4358
13784 msgid ""
13785 "Trace messages are normally sent to C<stderr>, unless you register a "
13786 "callback to send them somewhere else (see L</set-event-callback>)."
13787 msgstr ""
13788
13789 #. type: =head2
13790 #: ../fish/guestfish-actions.pod:4362
13791 msgid "set-verbose"
13792 msgstr ""
13793
13794 #. type: =head2
13795 #: ../fish/guestfish-actions.pod:4364
13796 msgid "verbose"
13797 msgstr ""
13798
13799 #. type: verbatim
13800 #: ../fish/guestfish-actions.pod:4366
13801 #, no-wrap
13802 msgid ""
13803 " set-verbose true|false\n"
13804 "\n"
13805 msgstr ""
13806
13807 #. type: textblock
13808 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
13809 msgid "If C<verbose> is true, this turns on verbose messages."
13810 msgstr ""
13811
13812 #. type: textblock
13813 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
13814 msgid ""
13815 "Verbose messages are disabled unless the environment variable "
13816 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:4373
13821 msgid ""
13822 "Verbose messages are normally sent to C<stderr>, unless you register a "
13823 "callback to send them somewhere else (see L</set-event-callback>)."
13824 msgstr ""
13825
13826 #. type: =head2
13827 #: ../fish/guestfish-actions.pod:4377
13828 msgid "setcon"
13829 msgstr ""
13830
13831 #. type: verbatim
13832 #: ../fish/guestfish-actions.pod:4379
13833 #, no-wrap
13834 msgid ""
13835 " setcon context\n"
13836 "\n"
13837 msgstr ""
13838
13839 #. type: textblock
13840 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
13841 msgid ""
13842 "This sets the SELinux security context of the daemon to the string "
13843 "C<context>."
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
13848 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13849 msgstr ""
13850
13851 #. type: =head2
13852 #: ../fish/guestfish-actions.pod:4386
13853 msgid "setxattr"
13854 msgstr ""
13855
13856 #. type: verbatim
13857 #: ../fish/guestfish-actions.pod:4388
13858 #, no-wrap
13859 msgid ""
13860 " setxattr xattr val vallen path\n"
13861 "\n"
13862 msgstr ""
13863
13864 #. type: textblock
13865 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
13866 msgid ""
13867 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13868 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13869 msgstr ""
13870
13871 #. type: textblock
13872 #: ../fish/guestfish-actions.pod:4394
13873 msgid "See also: L</lsetxattr>, L<attr(5)>."
13874 msgstr ""
13875
13876 #. type: =head2
13877 #: ../fish/guestfish-actions.pod:4396
13878 msgid "sfdisk"
13879 msgstr ""
13880
13881 #. type: verbatim
13882 #: ../fish/guestfish-actions.pod:4398
13883 #, no-wrap
13884 msgid ""
13885 " sfdisk device cyls heads sectors 'lines ...'\n"
13886 "\n"
13887 msgstr ""
13888
13889 #. type: textblock
13890 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
13891 msgid ""
13892 "This is a direct interface to the L<sfdisk(8)> program for creating "
13893 "partitions on block devices."
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
13898 msgid "C<device> should be a block device, for example C</dev/sda>."
13899 msgstr ""
13900
13901 #. type: textblock
13902 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
13903 msgid ""
13904 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13905 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
13906 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13907 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13908 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13909 "the kernel) cannot work out the right geometry and you will need to tell it."
13910 msgstr ""
13911
13912 #. type: textblock
13913 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
13914 msgid ""
13915 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13916 "refer to the L<sfdisk(8)> manpage."
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
13921 msgid ""
13922 "To create a single partition occupying the whole disk, you would pass "
13923 "C<lines> as a single element list, when the single element being the string "
13924 "C<,> (comma)."
13925 msgstr ""
13926
13927 #. type: textblock
13928 #: ../fish/guestfish-actions.pod:4420
13929 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
13934 #: ../fish/guestfish-actions.pod:4471
13935 msgid ""
13936 "I<This function is deprecated.> In new code, use the L</part_add> call "
13937 "instead."
13938 msgstr ""
13939
13940 #. type: =head2
13941 #: ../fish/guestfish-actions.pod:4433
13942 msgid "sfdiskM"
13943 msgstr ""
13944
13945 #. type: verbatim
13946 #: ../fish/guestfish-actions.pod:4435
13947 #, no-wrap
13948 msgid ""
13949 " sfdiskM device 'lines ...'\n"
13950 "\n"
13951 msgstr ""
13952
13953 #. type: textblock
13954 #: ../fish/guestfish-actions.pod:4437
13955 msgid ""
13956 "This is a simplified interface to the L</sfdisk> command, where partition "
13957 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13958 "you don't need to specify the cyls, heads and sectors parameters which were "
13959 "rarely if ever used anyway."
13960 msgstr ""
13961
13962 #. type: textblock
13963 #: ../fish/guestfish-actions.pod:4443
13964 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13965 msgstr ""
13966
13967 #. type: =head2
13968 #: ../fish/guestfish-actions.pod:4456
13969 msgid "sfdisk-N"
13970 msgstr ""
13971
13972 #. type: verbatim
13973 #: ../fish/guestfish-actions.pod:4458
13974 #, no-wrap
13975 msgid ""
13976 " sfdisk-N device partnum cyls heads sectors line\n"
13977 "\n"
13978 msgstr ""
13979
13980 #. type: textblock
13981 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
13982 msgid ""
13983 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13984 "(note: C<n> counts from 1)."
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../fish/guestfish-actions.pod:4463
13989 msgid ""
13990 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13991 "cyls/heads/sectors parameters."
13992 msgstr ""
13993
13994 #. type: textblock
13995 #: ../fish/guestfish-actions.pod:4466
13996 msgid "See also: L</part-add>"
13997 msgstr ""
13998
13999 #. type: =head2
14000 #: ../fish/guestfish-actions.pod:4478
14001 msgid "sfdisk-disk-geometry"
14002 msgstr ""
14003
14004 #. type: verbatim
14005 #: ../fish/guestfish-actions.pod:4480
14006 #, no-wrap
14007 msgid ""
14008 " sfdisk-disk-geometry device\n"
14009 "\n"
14010 msgstr ""
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:4482
14014 msgid ""
14015 "This displays the disk geometry of C<device> read from the partition table.  "
14016 "Especially in the case where the underlying block device has been resized, "
14017 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14018 "kernel-geometry>)."
14019 msgstr ""
14020
14021 #. type: textblock
14022 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
14023 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
14024 msgid "The result is in human-readable format, and not designed to be parsed."
14025 msgstr ""
14026
14027 #. type: =head2
14028 #: ../fish/guestfish-actions.pod:4490
14029 msgid "sfdisk-kernel-geometry"
14030 msgstr ""
14031
14032 #. type: verbatim
14033 #: ../fish/guestfish-actions.pod:4492
14034 #, no-wrap
14035 msgid ""
14036 " sfdisk-kernel-geometry device\n"
14037 "\n"
14038 msgstr ""
14039
14040 #. type: textblock
14041 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
14042 msgid "This displays the kernel's idea of the geometry of C<device>."
14043 msgstr ""
14044
14045 #. type: =head2
14046 #: ../fish/guestfish-actions.pod:4499
14047 msgid "sfdisk-l"
14048 msgstr ""
14049
14050 #. type: verbatim
14051 #: ../fish/guestfish-actions.pod:4501
14052 #, no-wrap
14053 msgid ""
14054 " sfdisk-l device\n"
14055 "\n"
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
14060 msgid ""
14061 "This displays the partition table on C<device>, in the human-readable output "
14062 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14063 msgstr ""
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:4507
14067 msgid "See also: L</part-list>"
14068 msgstr ""
14069
14070 #. type: textblock
14071 #: ../fish/guestfish-actions.pod:4509
14072 msgid ""
14073 "I<This function is deprecated.> In new code, use the L</part_list> call "
14074 "instead."
14075 msgstr ""
14076
14077 #. type: =head2
14078 #: ../fish/guestfish-actions.pod:4516
14079 msgid "sh"
14080 msgstr ""
14081
14082 #. type: verbatim
14083 #: ../fish/guestfish-actions.pod:4518
14084 #, no-wrap
14085 msgid ""
14086 " sh command\n"
14087 "\n"
14088 msgstr ""
14089
14090 #. type: textblock
14091 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
14092 msgid ""
14093 "This call runs a command from the guest filesystem via the guest's C</bin/"
14094 "sh>."
14095 msgstr ""
14096
14097 #. type: textblock
14098 #: ../fish/guestfish-actions.pod:4523
14099 msgid "This is like L</command>, but passes the command to:"
14100 msgstr ""
14101
14102 #. type: verbatim
14103 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
14104 #, no-wrap
14105 msgid ""
14106 " /bin/sh -c \"command\"\n"
14107 "\n"
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
14112 msgid ""
14113 "Depending on the guest's shell, this usually results in wildcards being "
14114 "expanded, shell expressions being interpolated and so on."
14115 msgstr ""
14116
14117 #. type: textblock
14118 #: ../fish/guestfish-actions.pod:4531
14119 msgid "All the provisos about L</command> apply to this call."
14120 msgstr ""
14121
14122 #. type: =head2
14123 #: ../fish/guestfish-actions.pod:4533
14124 msgid "sh-lines"
14125 msgstr ""
14126
14127 #. type: verbatim
14128 #: ../fish/guestfish-actions.pod:4535
14129 #, no-wrap
14130 msgid ""
14131 " sh-lines command\n"
14132 "\n"
14133 msgstr ""
14134
14135 #. type: textblock
14136 #: ../fish/guestfish-actions.pod:4537
14137 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14138 msgstr ""
14139
14140 #. type: textblock
14141 #: ../fish/guestfish-actions.pod:4540
14142 msgid "See also: L</command-lines>"
14143 msgstr ""
14144
14145 #. type: =head2
14146 #: ../fish/guestfish-actions.pod:4542
14147 msgid "sleep"
14148 msgstr ""
14149
14150 #. type: verbatim
14151 #: ../fish/guestfish-actions.pod:4544
14152 #, no-wrap
14153 msgid ""
14154 " sleep secs\n"
14155 "\n"
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
14160 msgid "Sleep for C<secs> seconds."
14161 msgstr ""
14162
14163 #. type: =head2
14164 #: ../fish/guestfish-actions.pod:4548
14165 msgid "stat"
14166 msgstr ""
14167
14168 #. type: verbatim
14169 #: ../fish/guestfish-actions.pod:4550
14170 #, no-wrap
14171 msgid ""
14172 " stat path\n"
14173 "\n"
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
14178 msgid "This is the same as the C<stat(2)> system call."
14179 msgstr ""
14180
14181 #. type: =head2
14182 #: ../fish/guestfish-actions.pod:4556
14183 msgid "statvfs"
14184 msgstr ""
14185
14186 #. type: verbatim
14187 #: ../fish/guestfish-actions.pod:4558
14188 #, no-wrap
14189 msgid ""
14190 " statvfs path\n"
14191 "\n"
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
14196 msgid ""
14197 "Returns file system statistics for any mounted file system.  C<path> should "
14198 "be a file or directory in the mounted file system (typically it is the mount "
14199 "point itself, but it doesn't need to be)."
14200 msgstr ""
14201
14202 #. type: textblock
14203 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
14204 msgid "This is the same as the C<statvfs(2)> system call."
14205 msgstr ""
14206
14207 #. type: =head2
14208 #: ../fish/guestfish-actions.pod:4566
14209 msgid "strings"
14210 msgstr ""
14211
14212 #. type: verbatim
14213 #: ../fish/guestfish-actions.pod:4568
14214 #, no-wrap
14215 msgid ""
14216 " strings path\n"
14217 "\n"
14218 msgstr ""
14219
14220 #. type: textblock
14221 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
14222 msgid ""
14223 "This runs the L<strings(1)> command on a file and returns the list of "
14224 "printable strings found."
14225 msgstr ""
14226
14227 #. type: =head2
14228 #: ../fish/guestfish-actions.pod:4576
14229 msgid "strings-e"
14230 msgstr ""
14231
14232 #. type: verbatim
14233 #: ../fish/guestfish-actions.pod:4578
14234 #, no-wrap
14235 msgid ""
14236 " strings-e encoding path\n"
14237 "\n"
14238 msgstr ""
14239
14240 #. type: textblock
14241 #: ../fish/guestfish-actions.pod:4580
14242 msgid ""
14243 "This is like the L</strings> command, but allows you to specify the encoding "
14244 "of strings that are looked for in the source file C<path>."
14245 msgstr ""
14246
14247 #. type: textblock
14248 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
14249 msgid "Allowed encodings are:"
14250 msgstr ""
14251
14252 #. type: =item
14253 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
14254 msgid "s"
14255 msgstr ""
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:4590
14259 msgid ""
14260 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14261 "ISO-8859-X (this is what L</strings> uses)."
14262 msgstr ""
14263
14264 #. type: =item
14265 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
14266 msgid "S"
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
14271 msgid "Single 8-bit-byte characters."
14272 msgstr ""
14273
14274 #. type: =item
14275 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
14276 msgid "b"
14277 msgstr ""
14278
14279 #. type: textblock
14280 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
14281 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14282 msgstr ""
14283
14284 #. type: =item
14285 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
14286 msgid "l (lower case letter L)"
14287 msgstr ""
14288
14289 #. type: textblock
14290 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
14291 msgid ""
14292 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14293 "examining binaries in Windows guests."
14294 msgstr ""
14295
14296 #. type: =item
14297 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
14298 msgid "B"
14299 msgstr ""
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
14303 msgid "32-bit big endian such as UCS-4BE."
14304 msgstr ""
14305
14306 #. type: =item
14307 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
14308 msgid "L"
14309 msgstr ""
14310
14311 #. type: textblock
14312 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
14313 msgid "32-bit little endian such as UCS-4LE."
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
14318 msgid "The returned strings are transcoded to UTF-8."
14319 msgstr ""
14320
14321 #. type: =head2
14322 #: ../fish/guestfish-actions.pod:4622
14323 msgid "swapoff-device"
14324 msgstr ""
14325
14326 #. type: verbatim
14327 #: ../fish/guestfish-actions.pod:4624
14328 #, no-wrap
14329 msgid ""
14330 " swapoff-device device\n"
14331 "\n"
14332 msgstr ""
14333
14334 #. type: textblock
14335 #: ../fish/guestfish-actions.pod:4626
14336 msgid ""
14337 "This command disables the libguestfs appliance swap device or partition "
14338 "named C<device>.  See L</swapon-device>."
14339 msgstr ""
14340
14341 #. type: =head2
14342 #: ../fish/guestfish-actions.pod:4630
14343 msgid "swapoff-file"
14344 msgstr ""
14345
14346 #. type: verbatim
14347 #: ../fish/guestfish-actions.pod:4632
14348 #, no-wrap
14349 msgid ""
14350 " swapoff-file file\n"
14351 "\n"
14352 msgstr ""
14353
14354 #. type: textblock
14355 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
14356 msgid "This command disables the libguestfs appliance swap on file."
14357 msgstr ""
14358
14359 #. type: =head2
14360 #: ../fish/guestfish-actions.pod:4636
14361 msgid "swapoff-label"
14362 msgstr ""
14363
14364 #. type: verbatim
14365 #: ../fish/guestfish-actions.pod:4638
14366 #, no-wrap
14367 msgid ""
14368 " swapoff-label label\n"
14369 "\n"
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
14374 msgid ""
14375 "This command disables the libguestfs appliance swap on labeled swap "
14376 "partition."
14377 msgstr ""
14378
14379 #. type: =head2
14380 #: ../fish/guestfish-actions.pod:4643
14381 msgid "swapoff-uuid"
14382 msgstr ""
14383
14384 #. type: verbatim
14385 #: ../fish/guestfish-actions.pod:4645
14386 #, no-wrap
14387 msgid ""
14388 " swapoff-uuid uuid\n"
14389 "\n"
14390 msgstr ""
14391
14392 #. type: textblock
14393 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
14394 msgid ""
14395 "This command disables the libguestfs appliance swap partition with the given "
14396 "UUID."
14397 msgstr ""
14398
14399 #. type: =head2
14400 #: ../fish/guestfish-actions.pod:4650
14401 msgid "swapon-device"
14402 msgstr ""
14403
14404 #. type: verbatim
14405 #: ../fish/guestfish-actions.pod:4652
14406 #, no-wrap
14407 msgid ""
14408 " swapon-device device\n"
14409 "\n"
14410 msgstr ""
14411
14412 #. type: textblock
14413 #: ../fish/guestfish-actions.pod:4654
14414 msgid ""
14415 "This command enables the libguestfs appliance to use the swap device or "
14416 "partition named C<device>.  The increased memory is made available for all "
14417 "commands, for example those run using L</command> or L</sh>."
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
14422 msgid ""
14423 "Note that you should not swap to existing guest swap partitions unless you "
14424 "know what you are doing.  They may contain hibernation information, or other "
14425 "information that the guest doesn't want you to trash.  You also risk leaking "
14426 "information about the host to the guest this way.  Instead, attach a new "
14427 "host device to the guest and swap on that."
14428 msgstr ""
14429
14430 #. type: =head2
14431 #: ../fish/guestfish-actions.pod:4666
14432 msgid "swapon-file"
14433 msgstr ""
14434
14435 #. type: verbatim
14436 #: ../fish/guestfish-actions.pod:4668
14437 #, no-wrap
14438 msgid ""
14439 " swapon-file file\n"
14440 "\n"
14441 msgstr ""
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:4670
14445 msgid ""
14446 "This command enables swap to a file.  See L</swapon-device> for other notes."
14447 msgstr ""
14448
14449 #. type: =head2
14450 #: ../fish/guestfish-actions.pod:4673
14451 msgid "swapon-label"
14452 msgstr ""
14453
14454 #. type: verbatim
14455 #: ../fish/guestfish-actions.pod:4675
14456 #, no-wrap
14457 msgid ""
14458 " swapon-label label\n"
14459 "\n"
14460 msgstr ""
14461
14462 #. type: textblock
14463 #: ../fish/guestfish-actions.pod:4677
14464 msgid ""
14465 "This command enables swap to a labeled swap partition.  See L</swapon-"
14466 "device> for other notes."
14467 msgstr ""
14468
14469 #. type: =head2
14470 #: ../fish/guestfish-actions.pod:4680
14471 msgid "swapon-uuid"
14472 msgstr ""
14473
14474 #. type: verbatim
14475 #: ../fish/guestfish-actions.pod:4682
14476 #, no-wrap
14477 msgid ""
14478 " swapon-uuid uuid\n"
14479 "\n"
14480 msgstr ""
14481
14482 #. type: textblock
14483 #: ../fish/guestfish-actions.pod:4684
14484 msgid ""
14485 "This command enables swap to a swap partition with the given UUID.  See L</"
14486 "swapon-device> for other notes."
14487 msgstr ""
14488
14489 #. type: =head2
14490 #: ../fish/guestfish-actions.pod:4687
14491 msgid "sync"
14492 msgstr ""
14493
14494 #. type: verbatim
14495 #: ../fish/guestfish-actions.pod:4689
14496 #, no-wrap
14497 msgid ""
14498 " sync\n"
14499 "\n"
14500 msgstr ""
14501
14502 #. type: textblock
14503 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
14504 msgid ""
14505 "This syncs the disk, so that any writes are flushed through to the "
14506 "underlying disk image."
14507 msgstr ""
14508
14509 #. type: textblock
14510 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
14511 msgid ""
14512 "You should always call this if you have modified a disk image, before "
14513 "closing the handle."
14514 msgstr ""
14515
14516 #. type: =head2
14517 #: ../fish/guestfish-actions.pod:4697
14518 msgid "tail"
14519 msgstr ""
14520
14521 #. type: verbatim
14522 #: ../fish/guestfish-actions.pod:4699
14523 #, no-wrap
14524 msgid ""
14525 " tail path\n"
14526 "\n"
14527 msgstr ""
14528
14529 #. type: textblock
14530 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
14531 msgid ""
14532 "This command returns up to the last 10 lines of a file as a list of strings."
14533 msgstr ""
14534
14535 #. type: =head2
14536 #: ../fish/guestfish-actions.pod:4707
14537 msgid "tail-n"
14538 msgstr ""
14539
14540 #. type: verbatim
14541 #: ../fish/guestfish-actions.pod:4709
14542 #, no-wrap
14543 msgid ""
14544 " tail-n nrlines path\n"
14545 "\n"
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
14550 msgid ""
14551 "If the parameter C<nrlines> is a positive number, this returns the last "
14552 "C<nrlines> lines of the file C<path>."
14553 msgstr ""
14554
14555 #. type: textblock
14556 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
14557 msgid ""
14558 "If the parameter C<nrlines> is a negative number, this returns lines from "
14559 "the file C<path>, starting with the C<-nrlines>th line."
14560 msgstr ""
14561
14562 #. type: =head2
14563 #: ../fish/guestfish-actions.pod:4722
14564 msgid "tar-in"
14565 msgstr ""
14566
14567 #. type: verbatim
14568 #: ../fish/guestfish-actions.pod:4724
14569 #, no-wrap
14570 msgid ""
14571 " tar-in (tarfile|-) directory\n"
14572 "\n"
14573 msgstr ""
14574
14575 #. type: textblock
14576 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
14577 msgid ""
14578 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14579 "tar file) into C<directory>."
14580 msgstr ""
14581
14582 #. type: textblock
14583 #: ../fish/guestfish-actions.pod:4729
14584 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14585 msgstr ""
14586
14587 #. type: =head2
14588 #: ../fish/guestfish-actions.pod:4734
14589 msgid "tar-out"
14590 msgstr ""
14591
14592 #. type: verbatim
14593 #: ../fish/guestfish-actions.pod:4736
14594 #, no-wrap
14595 msgid ""
14596 " tar-out directory (tarfile|-)\n"
14597 "\n"
14598 msgstr ""
14599
14600 #. type: textblock
14601 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
14602 msgid ""
14603 "This command packs the contents of C<directory> and downloads it to local "
14604 "file C<tarfile>."
14605 msgstr ""
14606
14607 #. type: textblock
14608 #: ../fish/guestfish-actions.pod:4741
14609 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14610 msgstr ""
14611
14612 #. type: =head2
14613 #: ../fish/guestfish-actions.pod:4746
14614 msgid "tgz-in"
14615 msgstr ""
14616
14617 #. type: verbatim
14618 #: ../fish/guestfish-actions.pod:4748
14619 #, no-wrap
14620 msgid ""
14621 " tgz-in (tarball|-) directory\n"
14622 "\n"
14623 msgstr ""
14624
14625 #. type: textblock
14626 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
14627 msgid ""
14628 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14629 "tar file) into C<directory>."
14630 msgstr ""
14631
14632 #. type: textblock
14633 #: ../fish/guestfish-actions.pod:4753
14634 msgid "To upload an uncompressed tarball, use L</tar-in>."
14635 msgstr ""
14636
14637 #. type: =head2
14638 #: ../fish/guestfish-actions.pod:4757
14639 msgid "tgz-out"
14640 msgstr ""
14641
14642 #. type: verbatim
14643 #: ../fish/guestfish-actions.pod:4759
14644 #, no-wrap
14645 msgid ""
14646 " tgz-out directory (tarball|-)\n"
14647 "\n"
14648 msgstr ""
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
14652 msgid ""
14653 "This command packs the contents of C<directory> and downloads it to local "
14654 "file C<tarball>."
14655 msgstr ""
14656
14657 #. type: textblock
14658 #: ../fish/guestfish-actions.pod:4764
14659 msgid "To download an uncompressed tarball, use L</tar-out>."
14660 msgstr ""
14661
14662 #. type: =head2
14663 #: ../fish/guestfish-actions.pod:4768
14664 msgid "touch"
14665 msgstr ""
14666
14667 #. type: verbatim
14668 #: ../fish/guestfish-actions.pod:4770
14669 #, no-wrap
14670 msgid ""
14671 " touch path\n"
14672 "\n"
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
14677 msgid ""
14678 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14679 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14680 "length file."
14681 msgstr ""
14682
14683 #. type: textblock
14684 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
14685 msgid ""
14686 "This command only works on regular files, and will fail on other file types "
14687 "such as directories, symbolic links, block special etc."
14688 msgstr ""
14689
14690 #. type: =head2
14691 #: ../fish/guestfish-actions.pod:4779
14692 msgid "truncate"
14693 msgstr ""
14694
14695 #. type: verbatim
14696 #: ../fish/guestfish-actions.pod:4781
14697 #, no-wrap
14698 msgid ""
14699 " truncate path\n"
14700 "\n"
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
14705 msgid ""
14706 "This command truncates C<path> to a zero-length file.  The file must exist "
14707 "already."
14708 msgstr ""
14709
14710 #. type: =head2
14711 #: ../fish/guestfish-actions.pod:4786
14712 msgid "truncate-size"
14713 msgstr ""
14714
14715 #. type: verbatim
14716 #: ../fish/guestfish-actions.pod:4788
14717 #, no-wrap
14718 msgid ""
14719 " truncate-size path size\n"
14720 "\n"
14721 msgstr ""
14722
14723 #. type: textblock
14724 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
14725 msgid ""
14726 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14727 "already."
14728 msgstr ""
14729
14730 #. type: textblock
14731 #: ../fish/guestfish-actions.pod:4793
14732 msgid ""
14733 "If the current file size is less than C<size> then the file is extended to "
14734 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14735 "blocks are not allocated for the file until you write to it).  To create a "
14736 "non-sparse file of zeroes, use L</fallocate64> instead."
14737 msgstr ""
14738
14739 #. type: =head2
14740 #: ../fish/guestfish-actions.pod:4799
14741 msgid "tune2fs-l"
14742 msgstr ""
14743
14744 #. type: verbatim
14745 #: ../fish/guestfish-actions.pod:4801
14746 #, no-wrap
14747 msgid ""
14748 " tune2fs-l device\n"
14749 "\n"
14750 msgstr ""
14751
14752 #. type: textblock
14753 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
14754 msgid ""
14755 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14756 "C<device>."
14757 msgstr ""
14758
14759 #. type: textblock
14760 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
14761 msgid ""
14762 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14763 "for more details.  The list of fields returned isn't clearly defined, and "
14764 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14765 "and the filesystem itself."
14766 msgstr ""
14767
14768 #. type: =head2
14769 #: ../fish/guestfish-actions.pod:4811
14770 msgid "txz-in"
14771 msgstr ""
14772
14773 #. type: verbatim
14774 #: ../fish/guestfish-actions.pod:4813
14775 #, no-wrap
14776 msgid ""
14777 " txz-in (tarball|-) directory\n"
14778 "\n"
14779 msgstr ""
14780
14781 #. type: textblock
14782 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
14783 msgid ""
14784 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14785 "tar file) into C<directory>."
14786 msgstr ""
14787
14788 #. type: =head2
14789 #: ../fish/guestfish-actions.pod:4820
14790 msgid "txz-out"
14791 msgstr ""
14792
14793 #. type: verbatim
14794 #: ../fish/guestfish-actions.pod:4822
14795 #, no-wrap
14796 msgid ""
14797 " txz-out directory (tarball|-)\n"
14798 "\n"
14799 msgstr ""
14800
14801 #. type: textblock
14802 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
14803 msgid ""
14804 "This command packs the contents of C<directory> and downloads it to local "
14805 "file C<tarball> (as an xz compressed tar archive)."
14806 msgstr ""
14807
14808 #. type: =head2
14809 #: ../fish/guestfish-actions.pod:4829
14810 msgid "umask"
14811 msgstr ""
14812
14813 #. type: verbatim
14814 #: ../fish/guestfish-actions.pod:4831
14815 #, no-wrap
14816 msgid ""
14817 " umask mask\n"
14818 "\n"
14819 msgstr ""
14820
14821 #. type: textblock
14822 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
14823 msgid ""
14824 "This function sets the mask used for creating new files and device nodes to "
14825 "C<mask & 0777>."
14826 msgstr ""
14827
14828 #. type: textblock
14829 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
14830 msgid ""
14831 "Typical umask values would be C<022> which creates new files with "
14832 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14833 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14834 msgstr ""
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
14838 msgid ""
14839 "The default umask is C<022>.  This is important because it means that "
14840 "directories and device nodes will be created with C<0644> or C<0755> mode "
14841 "even if you specify C<0777>."
14842 msgstr ""
14843
14844 #. type: textblock
14845 #: ../fish/guestfish-actions.pod:4845
14846 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14847 msgstr ""
14848
14849 #. type: textblock
14850 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
14851 msgid "This call returns the previous umask."
14852 msgstr ""
14853
14854 #. type: =head2
14855 #: ../fish/guestfish-actions.pod:4850
14856 msgid "umount"
14857 msgstr ""
14858
14859 #. type: =head2
14860 #: ../fish/guestfish-actions.pod:4852
14861 msgid "unmount"
14862 msgstr ""
14863
14864 #. type: verbatim
14865 #: ../fish/guestfish-actions.pod:4854
14866 #, no-wrap
14867 msgid ""
14868 " umount pathordevice\n"
14869 "\n"
14870 msgstr ""
14871
14872 #. type: textblock
14873 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
14874 msgid ""
14875 "This unmounts the given filesystem.  The filesystem may be specified either "
14876 "by its mountpoint (path) or the device which contains the filesystem."
14877 msgstr ""
14878
14879 #. type: =head2
14880 #: ../fish/guestfish-actions.pod:4860
14881 msgid "umount-all"
14882 msgstr ""
14883
14884 #. type: =head2
14885 #: ../fish/guestfish-actions.pod:4862
14886 msgid "unmount-all"
14887 msgstr ""
14888
14889 #. type: verbatim
14890 #: ../fish/guestfish-actions.pod:4864
14891 #, no-wrap
14892 msgid ""
14893 " umount-all\n"
14894 "\n"
14895 msgstr ""
14896
14897 #. type: textblock
14898 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
14899 msgid "This unmounts all mounted filesystems."
14900 msgstr ""
14901
14902 #. type: textblock
14903 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
14904 msgid "Some internal mounts are not unmounted by this call."
14905 msgstr ""
14906
14907 #. type: =head2
14908 #: ../fish/guestfish-actions.pod:4870
14909 msgid "upload"
14910 msgstr ""
14911
14912 #. type: verbatim
14913 #: ../fish/guestfish-actions.pod:4872
14914 #, no-wrap
14915 msgid ""
14916 " upload (filename|-) remotefilename\n"
14917 "\n"
14918 msgstr ""
14919
14920 #. type: textblock
14921 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
14922 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
14923 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14924 msgstr ""
14925
14926 #. type: textblock
14927 #: ../fish/guestfish-actions.pod:4879
14928 msgid "See also L</download>."
14929 msgstr ""
14930
14931 #. type: =head2
14932 #: ../fish/guestfish-actions.pod:4883
14933 msgid "upload-offset"
14934 msgstr ""
14935
14936 #. type: verbatim
14937 #: ../fish/guestfish-actions.pod:4885
14938 #, no-wrap
14939 msgid ""
14940 " upload-offset (filename|-) remotefilename offset\n"
14941 "\n"
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
14946 msgid ""
14947 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14948 "The intention is to overwrite parts of existing files or devices, although "
14949 "if a non-existant file is specified then it is created with a \"hole\" "
14950 "before C<offset>.  The size of the data written is implicit in the size of "
14951 "the source C<filename>."
14952 msgstr ""
14953
14954 #. type: textblock
14955 #: ../fish/guestfish-actions.pod:4897
14956 msgid ""
14957 "Note that there is no limit on the amount of data that can be uploaded with "
14958 "this call, unlike with L</pwrite>, and this call always writes the full "
14959 "amount unless an error occurs."
14960 msgstr ""
14961
14962 #. type: textblock
14963 #: ../fish/guestfish-actions.pod:4902
14964 msgid "See also L</upload>, L</pwrite>."
14965 msgstr ""
14966
14967 #. type: =head2
14968 #: ../fish/guestfish-actions.pod:4906
14969 msgid "utimens"
14970 msgstr ""
14971
14972 #. type: verbatim
14973 #: ../fish/guestfish-actions.pod:4908
14974 #, no-wrap
14975 msgid ""
14976 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14977 "\n"
14978 msgstr ""
14979
14980 #. type: textblock
14981 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
14982 msgid "This command sets the timestamps of a file with nanosecond precision."
14983 msgstr ""
14984
14985 #. type: textblock
14986 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
14987 msgid ""
14988 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14989 "from the epoch."
14990 msgstr ""
14991
14992 #. type: textblock
14993 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
14994 msgid ""
14995 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14996 "nanoseconds from the epoch."
14997 msgstr ""
14998
14999 #. type: textblock
15000 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
15001 msgid ""
15002 "If the C<*nsecs> field contains the special value C<-1> then the "
15003 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15004 "ignored in this case)."
15005 msgstr ""
15006
15007 #. type: textblock
15008 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
15009 msgid ""
15010 "If the C<*nsecs> field contains the special value C<-2> then the "
15011 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15012 "in this case)."
15013 msgstr ""
15014
15015 #. type: =head2
15016 #: ../fish/guestfish-actions.pod:4927
15017 msgid "version"
15018 msgstr ""
15019
15020 #. type: verbatim
15021 #: ../fish/guestfish-actions.pod:4929
15022 #, no-wrap
15023 msgid ""
15024 " version\n"
15025 "\n"
15026 msgstr ""
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
15030 msgid ""
15031 "Return the libguestfs version number that the program is linked against."
15032 msgstr ""
15033
15034 #. type: textblock
15035 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
15036 msgid ""
15037 "Note that because of dynamic linking this is not necessarily the version of "
15038 "libguestfs that you compiled against.  You can compile the program, and then "
15039 "at runtime dynamically link against a completely different C<libguestfs.so> "
15040 "library."
15041 msgstr ""
15042
15043 #. type: textblock
15044 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
15045 msgid ""
15046 "This call was added in version C<1.0.58>.  In previous versions of "
15047 "libguestfs there was no way to get the version number.  From C code you can "
15048 "use dynamic linker functions to find out if this symbol exists (if it "
15049 "doesn't, then it's an earlier version)."
15050 msgstr ""
15051
15052 #. type: textblock
15053 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
15054 msgid ""
15055 "The call returns a structure with four elements.  The first three (C<major>, "
15056 "C<minor> and C<release>) are numbers and correspond to the usual version "
15057 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15058 "but may be used for distro-specific information."
15059 msgstr ""
15060
15061 #. type: textblock
15062 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
15063 msgid ""
15064 "To construct the original version string: C<$major.$minor.$release$extra>"
15065 msgstr ""
15066
15067 #. type: textblock
15068 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
15069 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:4956
15074 msgid ""
15075 "I<Note:> Don't use this call to test for availability of features.  In "
15076 "enterprise distributions we backport features from later versions into "
15077 "earlier versions, making this an unreliable way to test for features.  Use "
15078 "L</available> instead."
15079 msgstr ""
15080
15081 #. type: =head2
15082 #: ../fish/guestfish-actions.pod:4962
15083 msgid "vfs-label"
15084 msgstr ""
15085
15086 #. type: verbatim
15087 #: ../fish/guestfish-actions.pod:4964
15088 #, no-wrap
15089 msgid ""
15090 " vfs-label device\n"
15091 "\n"
15092 msgstr ""
15093
15094 #. type: textblock
15095 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
15096 msgid "This returns the filesystem label of the filesystem on C<device>."
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
15101 msgid "If the filesystem is unlabeled, this returns the empty string."
15102 msgstr ""
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:4971
15106 msgid "To find a filesystem from the label, use L</findfs-label>."
15107 msgstr ""
15108
15109 #. type: =head2
15110 #: ../fish/guestfish-actions.pod:4973
15111 msgid "vfs-type"
15112 msgstr ""
15113
15114 #. type: verbatim
15115 #: ../fish/guestfish-actions.pod:4975
15116 #, no-wrap
15117 msgid ""
15118 " vfs-type device\n"
15119 "\n"
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
15124 msgid ""
15125 "This command gets the filesystem type corresponding to the filesystem on "
15126 "C<device>."
15127 msgstr ""
15128
15129 #. type: textblock
15130 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
15131 msgid ""
15132 "For most filesystems, the result is the name of the Linux VFS module which "
15133 "would be used to mount this filesystem if you mounted it without specifying "
15134 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15135 msgstr ""
15136
15137 #. type: =head2
15138 #: ../fish/guestfish-actions.pod:4985
15139 msgid "vfs-uuid"
15140 msgstr ""
15141
15142 #. type: verbatim
15143 #: ../fish/guestfish-actions.pod:4987
15144 #, no-wrap
15145 msgid ""
15146 " vfs-uuid device\n"
15147 "\n"
15148 msgstr ""
15149
15150 #. type: textblock
15151 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
15152 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
15157 msgid "If the filesystem does not have a UUID, this returns the empty string."
15158 msgstr ""
15159
15160 #. type: textblock
15161 #: ../fish/guestfish-actions.pod:4994
15162 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15163 msgstr ""
15164
15165 #. type: =head2
15166 #: ../fish/guestfish-actions.pod:4996
15167 msgid "vg-activate"
15168 msgstr ""
15169
15170 #. type: verbatim
15171 #: ../fish/guestfish-actions.pod:4998
15172 #, no-wrap
15173 msgid ""
15174 " vg-activate true|false 'volgroups ...'\n"
15175 "\n"
15176 msgstr ""
15177
15178 #. type: textblock
15179 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
15180 msgid ""
15181 "This command activates or (if C<activate> is false) deactivates all logical "
15182 "volumes in the listed volume groups C<volgroups>."
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
15187 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15188 msgstr ""
15189
15190 #. type: textblock
15191 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
15192 msgid ""
15193 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15194 "activated or deactivated."
15195 msgstr ""
15196
15197 #. type: =head2
15198 #: ../fish/guestfish-actions.pod:5008
15199 msgid "vg-activate-all"
15200 msgstr ""
15201
15202 #. type: verbatim
15203 #: ../fish/guestfish-actions.pod:5010
15204 #, no-wrap
15205 msgid ""
15206 " vg-activate-all true|false\n"
15207 "\n"
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
15212 msgid ""
15213 "This command activates or (if C<activate> is false) deactivates all logical "
15214 "volumes in all volume groups."
15215 msgstr ""
15216
15217 #. type: textblock
15218 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
15219 msgid "This command is the same as running C<vgchange -a y|n>"
15220 msgstr ""
15221
15222 #. type: =head2
15223 #: ../fish/guestfish-actions.pod:5017
15224 msgid "vgcreate"
15225 msgstr ""
15226
15227 #. type: verbatim
15228 #: ../fish/guestfish-actions.pod:5019
15229 #, no-wrap
15230 msgid ""
15231 " vgcreate volgroup 'physvols ...'\n"
15232 "\n"
15233 msgstr ""
15234
15235 #. type: textblock
15236 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
15237 msgid ""
15238 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15239 "of physical volumes C<physvols>."
15240 msgstr ""
15241
15242 #. type: =head2
15243 #: ../fish/guestfish-actions.pod:5024
15244 msgid "vglvuuids"
15245 msgstr ""
15246
15247 #. type: verbatim
15248 #: ../fish/guestfish-actions.pod:5026
15249 #, no-wrap
15250 msgid ""
15251 " vglvuuids vgname\n"
15252 "\n"
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
15257 msgid ""
15258 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15259 "volumes created in this volume group."
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-actions.pod:5031
15264 msgid ""
15265 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15266 "logical volumes and volume groups."
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:5034
15271 msgid "See also L</vgpvuuids>."
15272 msgstr ""
15273
15274 #. type: =head2
15275 #: ../fish/guestfish-actions.pod:5036
15276 msgid "vgpvuuids"
15277 msgstr ""
15278
15279 #. type: verbatim
15280 #: ../fish/guestfish-actions.pod:5038
15281 #, no-wrap
15282 msgid ""
15283 " vgpvuuids vgname\n"
15284 "\n"
15285 msgstr ""
15286
15287 #. type: textblock
15288 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
15289 msgid ""
15290 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15291 "volumes that this volume group resides on."
15292 msgstr ""
15293
15294 #. type: textblock
15295 #: ../fish/guestfish-actions.pod:5043
15296 msgid ""
15297 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15298 "physical volumes and volume groups."
15299 msgstr ""
15300
15301 #. type: textblock
15302 #: ../fish/guestfish-actions.pod:5046
15303 msgid "See also L</vglvuuids>."
15304 msgstr ""
15305
15306 #. type: =head2
15307 #: ../fish/guestfish-actions.pod:5048
15308 msgid "vgremove"
15309 msgstr ""
15310
15311 #. type: verbatim
15312 #: ../fish/guestfish-actions.pod:5050
15313 #, no-wrap
15314 msgid ""
15315 " vgremove vgname\n"
15316 "\n"
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
15321 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15322 msgstr ""
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
15326 msgid ""
15327 "This also forcibly removes all logical volumes in the volume group (if any)."
15328 msgstr ""
15329
15330 #. type: =head2
15331 #: ../fish/guestfish-actions.pod:5057
15332 msgid "vgrename"
15333 msgstr ""
15334
15335 #. type: verbatim
15336 #: ../fish/guestfish-actions.pod:5059
15337 #, no-wrap
15338 msgid ""
15339 " vgrename volgroup newvolgroup\n"
15340 "\n"
15341 msgstr ""
15342
15343 #. type: textblock
15344 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
15345 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15346 msgstr ""
15347
15348 #. type: =head2
15349 #: ../fish/guestfish-actions.pod:5063
15350 msgid "vgs"
15351 msgstr ""
15352
15353 #. type: verbatim
15354 #: ../fish/guestfish-actions.pod:5065
15355 #, no-wrap
15356 msgid ""
15357 " vgs\n"
15358 "\n"
15359 msgstr ""
15360
15361 #. type: textblock
15362 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
15363 msgid ""
15364 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15365 "> command."
15366 msgstr ""
15367
15368 #. type: textblock
15369 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
15370 msgid ""
15371 "This returns a list of just the volume group names that were detected (eg. "
15372 "C<VolGroup00>)."
15373 msgstr ""
15374
15375 #. type: textblock
15376 #: ../fish/guestfish-actions.pod:5073
15377 msgid "See also L</vgs-full>."
15378 msgstr ""
15379
15380 #. type: =head2
15381 #: ../fish/guestfish-actions.pod:5075
15382 msgid "vgs-full"
15383 msgstr ""
15384
15385 #. type: verbatim
15386 #: ../fish/guestfish-actions.pod:5077
15387 #, no-wrap
15388 msgid ""
15389 " vgs-full\n"
15390 "\n"
15391 msgstr ""
15392
15393 #. type: textblock
15394 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
15395 msgid ""
15396 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15397 "> command.  The \"full\" version includes all fields."
15398 msgstr ""
15399
15400 #. type: =head2
15401 #: ../fish/guestfish-actions.pod:5082
15402 msgid "vgscan"
15403 msgstr ""
15404
15405 #. type: verbatim
15406 #: ../fish/guestfish-actions.pod:5084
15407 #, no-wrap
15408 msgid ""
15409 " vgscan\n"
15410 "\n"
15411 msgstr ""
15412
15413 #. type: textblock
15414 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
15415 msgid ""
15416 "This rescans all block devices and rebuilds the list of LVM physical "
15417 "volumes, volume groups and logical volumes."
15418 msgstr ""
15419
15420 #. type: =head2
15421 #: ../fish/guestfish-actions.pod:5089
15422 msgid "vguuid"
15423 msgstr ""
15424
15425 #. type: verbatim
15426 #: ../fish/guestfish-actions.pod:5091
15427 #, no-wrap
15428 msgid ""
15429 " vguuid vgname\n"
15430 "\n"
15431 msgstr ""
15432
15433 #. type: textblock
15434 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
15435 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15436 msgstr ""
15437
15438 #. type: =head2
15439 #: ../fish/guestfish-actions.pod:5095
15440 msgid "wc-c"
15441 msgstr ""
15442
15443 #. type: verbatim
15444 #: ../fish/guestfish-actions.pod:5097
15445 #, no-wrap
15446 msgid ""
15447 " wc-c path\n"
15448 "\n"
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
15453 msgid ""
15454 "This command counts the characters in a file, using the C<wc -c> external "
15455 "command."
15456 msgstr ""
15457
15458 #. type: =head2
15459 #: ../fish/guestfish-actions.pod:5102
15460 msgid "wc-l"
15461 msgstr ""
15462
15463 #. type: verbatim
15464 #: ../fish/guestfish-actions.pod:5104
15465 #, no-wrap
15466 msgid ""
15467 " wc-l path\n"
15468 "\n"
15469 msgstr ""
15470
15471 #. type: textblock
15472 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
15473 msgid ""
15474 "This command counts the lines in a file, using the C<wc -l> external command."
15475 msgstr ""
15476
15477 #. type: =head2
15478 #: ../fish/guestfish-actions.pod:5109
15479 msgid "wc-w"
15480 msgstr ""
15481
15482 #. type: verbatim
15483 #: ../fish/guestfish-actions.pod:5111
15484 #, no-wrap
15485 msgid ""
15486 " wc-w path\n"
15487 "\n"
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
15492 msgid ""
15493 "This command counts the words in a file, using the C<wc -w> external command."
15494 msgstr ""
15495
15496 #. type: =head2
15497 #: ../fish/guestfish-actions.pod:5116
15498 msgid "write"
15499 msgstr ""
15500
15501 #. type: verbatim
15502 #: ../fish/guestfish-actions.pod:5118
15503 #, no-wrap
15504 msgid ""
15505 " write path content\n"
15506 "\n"
15507 msgstr ""
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
15511 msgid ""
15512 "This call creates a file called C<path>.  The content of the file is the "
15513 "string C<content> (which can contain any 8 bit data)."
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:5123
15518 msgid "See also L</write-append>."
15519 msgstr ""
15520
15521 #. type: =head2
15522 #: ../fish/guestfish-actions.pod:5128
15523 msgid "write-append"
15524 msgstr ""
15525
15526 #. type: verbatim
15527 #: ../fish/guestfish-actions.pod:5130
15528 #, no-wrap
15529 msgid ""
15530 " write-append path content\n"
15531 "\n"
15532 msgstr ""
15533
15534 #. type: textblock
15535 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
15536 msgid ""
15537 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15538 "not exist, then a new file is created."
15539 msgstr ""
15540
15541 #. type: textblock
15542 #: ../fish/guestfish-actions.pod:5135
15543 msgid "See also L</write>."
15544 msgstr ""
15545
15546 #. type: =head2
15547 #: ../fish/guestfish-actions.pod:5140
15548 msgid "write-file"
15549 msgstr ""
15550
15551 #. type: verbatim
15552 #: ../fish/guestfish-actions.pod:5142
15553 #, no-wrap
15554 msgid ""
15555 " write-file path content size\n"
15556 "\n"
15557 msgstr ""
15558
15559 #. type: textblock
15560 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
15561 msgid ""
15562 "This call creates a file called C<path>.  The contents of the file is the "
15563 "string C<content> (which can contain any 8 bit data), with length C<size>."
15564 msgstr ""
15565
15566 #. type: textblock
15567 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
15568 msgid ""
15569 "As a special case, if C<size> is C<0> then the length is calculated using "
15570 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15571 msgstr ""
15572
15573 #. type: textblock
15574 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
15575 msgid ""
15576 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15577 "I<not> work, even if the length is specified."
15578 msgstr ""
15579
15580 #. type: textblock
15581 #: ../fish/guestfish-actions.pod:5158
15582 msgid ""
15583 "I<This function is deprecated.> In new code, use the L</write> call instead."
15584 msgstr ""
15585
15586 #. type: =head2
15587 #: ../fish/guestfish-actions.pod:5165
15588 msgid "zegrep"
15589 msgstr ""
15590
15591 #. type: verbatim
15592 #: ../fish/guestfish-actions.pod:5167
15593 #, no-wrap
15594 msgid ""
15595 " zegrep regex path\n"
15596 "\n"
15597 msgstr ""
15598
15599 #. type: textblock
15600 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
15601 msgid ""
15602 "This calls the external C<zegrep> program and returns the matching lines."
15603 msgstr ""
15604
15605 #. type: =head2
15606 #: ../fish/guestfish-actions.pod:5175
15607 msgid "zegrepi"
15608 msgstr ""
15609
15610 #. type: verbatim
15611 #: ../fish/guestfish-actions.pod:5177
15612 #, no-wrap
15613 msgid ""
15614 " zegrepi regex path\n"
15615 "\n"
15616 msgstr ""
15617
15618 #. type: textblock
15619 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
15620 msgid ""
15621 "This calls the external C<zegrep -i> program and returns the matching lines."
15622 msgstr ""
15623
15624 #. type: =head2
15625 #: ../fish/guestfish-actions.pod:5185
15626 msgid "zero"
15627 msgstr ""
15628
15629 #. type: verbatim
15630 #: ../fish/guestfish-actions.pod:5187
15631 #, no-wrap
15632 msgid ""
15633 " zero device\n"
15634 "\n"
15635 msgstr ""
15636
15637 #. type: textblock
15638 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
15639 msgid "This command writes zeroes over the first few blocks of C<device>."
15640 msgstr ""
15641
15642 #. type: textblock
15643 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
15644 msgid ""
15645 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15646 "securely wipe the device).  It should be sufficient to remove any partition "
15647 "tables, filesystem superblocks and so on."
15648 msgstr ""
15649
15650 #. type: textblock
15651 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
15652 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
15653 msgid ""
15654 "If blocks are already zero, then this command avoids writing zeroes.  This "
15655 "prevents the underlying device from becoming non-sparse or growing "
15656 "unnecessarily."
15657 msgstr ""
15658
15659 #. type: textblock
15660 #: ../fish/guestfish-actions.pod:5199
15661 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15662 msgstr ""
15663
15664 #. type: =head2
15665 #: ../fish/guestfish-actions.pod:5202
15666 msgid "zero-device"
15667 msgstr ""
15668
15669 #. type: verbatim
15670 #: ../fish/guestfish-actions.pod:5204
15671 #, no-wrap
15672 msgid ""
15673 " zero-device device\n"
15674 "\n"
15675 msgstr ""
15676
15677 #. type: textblock
15678 #: ../fish/guestfish-actions.pod:5206
15679 msgid ""
15680 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15681 "which just zeroes the first few blocks of a device."
15682 msgstr ""
15683
15684 #. type: =head2
15685 #: ../fish/guestfish-actions.pod:5217
15686 msgid "zerofree"
15687 msgstr ""
15688
15689 #. type: verbatim
15690 #: ../fish/guestfish-actions.pod:5219
15691 #, no-wrap
15692 msgid ""
15693 " zerofree device\n"
15694 "\n"
15695 msgstr ""
15696
15697 #. type: textblock
15698 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
15699 msgid ""
15700 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15701 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15702 "possible to compress the filesystem more effectively."
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
15707 msgid "You should B<not> run this program if the filesystem is mounted."
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
15712 msgid ""
15713 "It is possible that using this program can damage the filesystem or data on "
15714 "the filesystem."
15715 msgstr ""
15716
15717 #. type: =head2
15718 #: ../fish/guestfish-actions.pod:5232
15719 msgid "zfgrep"
15720 msgstr ""
15721
15722 #. type: verbatim
15723 #: ../fish/guestfish-actions.pod:5234
15724 #, no-wrap
15725 msgid ""
15726 " zfgrep pattern path\n"
15727 "\n"
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
15732 msgid ""
15733 "This calls the external C<zfgrep> program and returns the matching lines."
15734 msgstr ""
15735
15736 #. type: =head2
15737 #: ../fish/guestfish-actions.pod:5242
15738 msgid "zfgrepi"
15739 msgstr ""
15740
15741 #. type: verbatim
15742 #: ../fish/guestfish-actions.pod:5244
15743 #, no-wrap
15744 msgid ""
15745 " zfgrepi pattern path\n"
15746 "\n"
15747 msgstr ""
15748
15749 #. type: textblock
15750 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
15751 msgid ""
15752 "This calls the external C<zfgrep -i> program and returns the matching lines."
15753 msgstr ""
15754
15755 #. type: =head2
15756 #: ../fish/guestfish-actions.pod:5252
15757 msgid "zfile"
15758 msgstr ""
15759
15760 #. type: verbatim
15761 #: ../fish/guestfish-actions.pod:5254
15762 #, no-wrap
15763 msgid ""
15764 " zfile meth path\n"
15765 "\n"
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
15770 msgid ""
15771 "This command runs C<file> after first decompressing C<path> using C<method>."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
15776 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15777 msgstr ""
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-actions.pod:5261
15781 msgid ""
15782 "Since 1.0.63, use L</file> instead which can now process compressed files."
15783 msgstr ""
15784
15785 #. type: textblock
15786 #: ../fish/guestfish-actions.pod:5264
15787 msgid ""
15788 "I<This function is deprecated.> In new code, use the L</file> call instead."
15789 msgstr ""
15790
15791 #. type: =head2
15792 #: ../fish/guestfish-actions.pod:5271
15793 msgid "zgrep"
15794 msgstr ""
15795
15796 #. type: verbatim
15797 #: ../fish/guestfish-actions.pod:5273
15798 #, no-wrap
15799 msgid ""
15800 " zgrep regex path\n"
15801 "\n"
15802 msgstr ""
15803
15804 #. type: textblock
15805 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
15806 msgid ""
15807 "This calls the external C<zgrep> program and returns the matching lines."
15808 msgstr ""
15809
15810 #. type: =head2
15811 #: ../fish/guestfish-actions.pod:5281
15812 msgid "zgrepi"
15813 msgstr ""
15814
15815 #. type: verbatim
15816 #: ../fish/guestfish-actions.pod:5283
15817 #, no-wrap
15818 msgid ""
15819 " zgrepi regex path\n"
15820 "\n"
15821 msgstr ""
15822
15823 #. type: textblock
15824 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
15825 msgid ""
15826 "This calls the external C<zgrep -i> program and returns the matching lines."
15827 msgstr ""
15828
15829 #. type: =head2
15830 #: ../fish/guestfish-commands.pod:1
15831 msgid "alloc"
15832 msgstr ""
15833
15834 #. type: =head2
15835 #: ../fish/guestfish-commands.pod:3
15836 msgid "allocate"
15837 msgstr ""
15838
15839 #. type: verbatim
15840 #: ../fish/guestfish-commands.pod:5
15841 #, no-wrap
15842 msgid ""
15843 " alloc filename size\n"
15844 "\n"
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish-commands.pod:7
15849 msgid ""
15850 "This creates an empty (zeroed) file of the given size, and then adds so it "
15851 "can be further examined."
15852 msgstr ""
15853
15854 #. type: textblock
15855 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15856 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15857 msgstr ""
15858
15859 #. type: textblock
15860 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15861 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15862 msgstr ""
15863
15864 #. type: textblock
15865 #: ../fish/guestfish-commands.pod:14
15866 msgid ""
15867 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15868 "image, see L</PREPARED DISK IMAGES>."
15869 msgstr ""
15870
15871 #. type: =head2
15872 #: ../fish/guestfish-commands.pod:17
15873 msgid "copy-in"
15874 msgstr ""
15875
15876 #. type: verbatim
15877 #: ../fish/guestfish-commands.pod:19
15878 #, no-wrap
15879 msgid ""
15880 " copy-in local [local ...] /remotedir\n"
15881 "\n"
15882 msgstr ""
15883
15884 #. type: textblock
15885 #: ../fish/guestfish-commands.pod:21
15886 msgid ""
15887 "C<copy-in> copies local files or directories recursively into the disk "
15888 "image, placing them in the directory called C</remotedir> (which must "
15889 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15890 "other commands as necessary."
15891 msgstr ""
15892
15893 #. type: textblock
15894 #: ../fish/guestfish-commands.pod:26
15895 msgid ""
15896 "Multiple local files and directories can be specified, but the last "
15897 "parameter must always be a remote directory.  Wildcards cannot be used."
15898 msgstr ""
15899
15900 #. type: =head2
15901 #: ../fish/guestfish-commands.pod:30
15902 msgid "copy-out"
15903 msgstr ""
15904
15905 #. type: verbatim
15906 #: ../fish/guestfish-commands.pod:32
15907 #, no-wrap
15908 msgid ""
15909 " copy-out remote [remote ...] localdir\n"
15910 "\n"
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../fish/guestfish-commands.pod:34
15915 msgid ""
15916 "C<copy-out> copies remote files or directories recursively out of the disk "
15917 "image, placing them on the host disk in a local directory called C<localdir> "
15918 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
15919 "download>, L</tar-out> and other commands as necessary."
15920 msgstr ""
15921
15922 #. type: textblock
15923 #: ../fish/guestfish-commands.pod:40
15924 msgid ""
15925 "Multiple remote files and directories can be specified, but the last "
15926 "parameter must always be a local directory.  To download to the current "
15927 "directory, use C<.> as in:"
15928 msgstr ""
15929
15930 #. type: verbatim
15931 #: ../fish/guestfish-commands.pod:44
15932 #, no-wrap
15933 msgid ""
15934 " copy-out /home .\n"
15935 "\n"
15936 msgstr ""
15937
15938 #. type: textblock
15939 #: ../fish/guestfish-commands.pod:46
15940 msgid ""
15941 "Wildcards cannot be used in the ordinary command, but you can use them with "
15942 "the help of L</glob> like this:"
15943 msgstr ""
15944
15945 #. type: verbatim
15946 #: ../fish/guestfish-commands.pod:49
15947 #, no-wrap
15948 msgid ""
15949 " glob copy-out /home/* .\n"
15950 "\n"
15951 msgstr ""
15952
15953 #. type: =head2
15954 #: ../fish/guestfish-commands.pod:51
15955 msgid "display"
15956 msgstr ""
15957
15958 #. type: verbatim
15959 #: ../fish/guestfish-commands.pod:53
15960 #, no-wrap
15961 msgid ""
15962 " display filename\n"
15963 "\n"
15964 msgstr ""
15965
15966 #. type: textblock
15967 #: ../fish/guestfish-commands.pod:55
15968 msgid ""
15969 "Use C<display> (a graphical display program) to display an image file.  It "
15970 "downloads the file, and runs C<display> on it."
15971 msgstr ""
15972
15973 #. type: textblock
15974 #: ../fish/guestfish-commands.pod:58
15975 msgid ""
15976 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15977 "environment variable.  For example to use the GNOME display program:"
15978 msgstr ""
15979
15980 #. type: verbatim
15981 #: ../fish/guestfish-commands.pod:61
15982 #, no-wrap
15983 msgid ""
15984 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15985 "\n"
15986 msgstr ""
15987
15988 #. type: textblock
15989 #: ../fish/guestfish-commands.pod:63
15990 msgid "See also L<display(1)>."
15991 msgstr ""
15992
15993 #. type: =head2
15994 #: ../fish/guestfish-commands.pod:65
15995 msgid "echo"
15996 msgstr ""
15997
15998 #. type: verbatim
15999 #: ../fish/guestfish-commands.pod:67
16000 #, no-wrap
16001 msgid ""
16002 " echo [params ...]\n"
16003 "\n"
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../fish/guestfish-commands.pod:69
16008 msgid "This echos the parameters to the terminal."
16009 msgstr ""
16010
16011 #. type: =head2
16012 #: ../fish/guestfish-commands.pod:71
16013 msgid "edit"
16014 msgstr ""
16015
16016 #. type: =head2
16017 #: ../fish/guestfish-commands.pod:73
16018 msgid "vi"
16019 msgstr ""
16020
16021 #. type: =head2
16022 #: ../fish/guestfish-commands.pod:75
16023 msgid "emacs"
16024 msgstr ""
16025
16026 #. type: verbatim
16027 #: ../fish/guestfish-commands.pod:77
16028 #, no-wrap
16029 msgid ""
16030 " edit filename\n"
16031 "\n"
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-commands.pod:79
16036 msgid ""
16037 "This is used to edit a file.  It downloads the file, edits it locally using "
16038 "your editor, then uploads the result."
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../fish/guestfish-commands.pod:82
16043 msgid ""
16044 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16045 "or C<emacs> you will get those corresponding editors."
16046 msgstr ""
16047
16048 #. type: =head2
16049 #: ../fish/guestfish-commands.pod:86
16050 msgid "glob"
16051 msgstr ""
16052
16053 #. type: verbatim
16054 #: ../fish/guestfish-commands.pod:88
16055 #, no-wrap
16056 msgid ""
16057 " glob command args...\n"
16058 "\n"
16059 msgstr ""
16060
16061 #. type: textblock
16062 #: ../fish/guestfish-commands.pod:90
16063 msgid ""
16064 "Expand wildcards in any paths in the args list, and run C<command> "
16065 "repeatedly on each matching path."
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../fish/guestfish-commands.pod:93
16070 msgid "See L</WILDCARDS AND GLOBBING>."
16071 msgstr ""
16072
16073 #. type: =head2
16074 #: ../fish/guestfish-commands.pod:95
16075 msgid "hexedit"
16076 msgstr ""
16077
16078 #. type: verbatim
16079 #: ../fish/guestfish-commands.pod:97
16080 #, no-wrap
16081 msgid ""
16082 " hexedit <filename|device>\n"
16083 " hexedit <filename|device> <max>\n"
16084 " hexedit <filename|device> <start> <max>\n"
16085 "\n"
16086 msgstr ""
16087
16088 #. type: textblock
16089 #: ../fish/guestfish-commands.pod:101
16090 msgid ""
16091 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16092 "device."
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-commands.pod:104
16097 msgid ""
16098 "This command works by downloading potentially the whole file or device, "
16099 "editing it locally, then uploading it.  If the file or device is large, you "
16100 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16101 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16102 "usual modifiers allowed such as C<1M> (1 megabyte)."
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../fish/guestfish-commands.pod:111
16107 msgid "For example to edit the first few sectors of a disk you might do:"
16108 msgstr ""
16109
16110 #. type: verbatim
16111 #: ../fish/guestfish-commands.pod:114
16112 #, no-wrap
16113 msgid ""
16114 " hexedit /dev/sda 1M\n"
16115 "\n"
16116 msgstr ""
16117
16118 #. type: textblock
16119 #: ../fish/guestfish-commands.pod:116
16120 msgid ""
16121 "which would allow you to edit anywhere within the first megabyte of the disk."
16122 msgstr ""
16123
16124 #. type: textblock
16125 #: ../fish/guestfish-commands.pod:119
16126 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16127 msgstr ""
16128
16129 #. type: verbatim
16130 #: ../fish/guestfish-commands.pod:121
16131 #, no-wrap
16132 msgid ""
16133 " hexedit /dev/sda1 0x400 0x400\n"
16134 "\n"
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-commands.pod:123
16139 msgid "(assuming the superblock is in the standard location)."
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish-commands.pod:125
16144 msgid ""
16145 "This command requires the external L<hexedit(1)> program.  You can specify "
16146 "another program to use by setting the C<HEXEDITOR> environment variable."
16147 msgstr ""
16148
16149 #. type: textblock
16150 #: ../fish/guestfish-commands.pod:129
16151 msgid "See also L</hexdump>."
16152 msgstr ""
16153
16154 #. type: =head2
16155 #: ../fish/guestfish-commands.pod:131
16156 msgid "lcd"
16157 msgstr ""
16158
16159 #. type: verbatim
16160 #: ../fish/guestfish-commands.pod:133
16161 #, no-wrap
16162 msgid ""
16163 " lcd directory\n"
16164 "\n"
16165 msgstr ""
16166
16167 #. type: textblock
16168 #: ../fish/guestfish-commands.pod:135
16169 msgid ""
16170 "Change the local directory, ie. the current directory of guestfish itself."
16171 msgstr ""
16172
16173 #. type: textblock
16174 #: ../fish/guestfish-commands.pod:138
16175 msgid "Note that C<!cd> won't do what you might expect."
16176 msgstr ""
16177
16178 #. type: =head2
16179 #: ../fish/guestfish-commands.pod:140
16180 msgid "man"
16181 msgstr ""
16182
16183 #. type: =head2
16184 #: ../fish/guestfish-commands.pod:142
16185 msgid "manual"
16186 msgstr ""
16187
16188 #. type: verbatim
16189 #: ../fish/guestfish-commands.pod:144
16190 #, no-wrap
16191 msgid ""
16192 "  man\n"
16193 "\n"
16194 msgstr ""
16195
16196 #. type: textblock
16197 #: ../fish/guestfish-commands.pod:146
16198 msgid "Opens the manual page for guestfish."
16199 msgstr ""
16200
16201 #. type: =head2
16202 #: ../fish/guestfish-commands.pod:148
16203 msgid "more"
16204 msgstr ""
16205
16206 #. type: =head2
16207 #: ../fish/guestfish-commands.pod:150
16208 msgid "less"
16209 msgstr ""
16210
16211 #. type: verbatim
16212 #: ../fish/guestfish-commands.pod:152
16213 #, no-wrap
16214 msgid ""
16215 " more filename\n"
16216 "\n"
16217 msgstr ""
16218
16219 #. type: verbatim
16220 #: ../fish/guestfish-commands.pod:154
16221 #, no-wrap
16222 msgid ""
16223 " less filename\n"
16224 "\n"
16225 msgstr ""
16226
16227 #. type: textblock
16228 #: ../fish/guestfish-commands.pod:156
16229 msgid "This is used to view a file."
16230 msgstr ""
16231
16232 #. type: textblock
16233 #: ../fish/guestfish-commands.pod:158
16234 msgid ""
16235 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16236 "C<less> you will get the C<less> command specifically."
16237 msgstr ""
16238
16239 #. type: =head2
16240 #: ../fish/guestfish-commands.pod:161
16241 msgid "reopen"
16242 msgstr ""
16243
16244 #. type: verbatim
16245 #: ../fish/guestfish-commands.pod:163
16246 #, no-wrap
16247 msgid ""
16248 "  reopen\n"
16249 "\n"
16250 msgstr ""
16251
16252 #. type: textblock
16253 #: ../fish/guestfish-commands.pod:165
16254 msgid ""
16255 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16256 "normally, because the handle is closed properly when guestfish exits.  "
16257 "However this is occasionally useful for testing."
16258 msgstr ""
16259
16260 #. type: =head2
16261 #: ../fish/guestfish-commands.pod:169
16262 msgid "setenv"
16263 msgstr ""
16264
16265 #. type: verbatim
16266 #: ../fish/guestfish-commands.pod:171
16267 #, no-wrap
16268 msgid ""
16269 "  setenv VAR value\n"
16270 "\n"
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-commands.pod:173
16275 msgid "Set the environment variable C<VAR> to the string C<value>."
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish-commands.pod:175
16280 msgid ""
16281 "To print the value of an environment variable use a shell command such as:"
16282 msgstr ""
16283
16284 #. type: verbatim
16285 #: ../fish/guestfish-commands.pod:178
16286 #, no-wrap
16287 msgid ""
16288 " !echo $VAR\n"
16289 "\n"
16290 msgstr ""
16291
16292 #. type: =head2
16293 #: ../fish/guestfish-commands.pod:180
16294 msgid "sparse"
16295 msgstr ""
16296
16297 #. type: verbatim
16298 #: ../fish/guestfish-commands.pod:182
16299 #, no-wrap
16300 msgid ""
16301 " sparse filename size\n"
16302 "\n"
16303 msgstr ""
16304
16305 #. type: textblock
16306 #: ../fish/guestfish-commands.pod:184
16307 msgid ""
16308 "This creates an empty sparse file of the given size, and then adds so it can "
16309 "be further examined."
16310 msgstr ""
16311
16312 #. type: textblock
16313 #: ../fish/guestfish-commands.pod:187
16314 msgid ""
16315 "In all respects it works the same as the L</alloc> command, except that the "
16316 "image file is allocated sparsely, which means that disk blocks are not "
16317 "assigned to the file until they are needed.  Sparse disk files only use "
16318 "space when written to, but they are slower and there is a danger you could "
16319 "run out of real disk space during a write operation."
16320 msgstr ""
16321
16322 #. type: =head2
16323 #: ../fish/guestfish-commands.pod:197
16324 msgid "supported"
16325 msgstr ""
16326
16327 #. type: verbatim
16328 #: ../fish/guestfish-commands.pod:199
16329 #, no-wrap
16330 msgid ""
16331 " supported\n"
16332 "\n"
16333 msgstr ""
16334
16335 #. type: textblock
16336 #: ../fish/guestfish-commands.pod:201
16337 msgid ""
16338 "This command returns a list of the optional groups known to the daemon, and "
16339 "indicates which ones are supported by this build of the libguestfs appliance."
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish-commands.pod:205
16344 msgid "See also L<guestfs(3)/AVAILABILITY>."
16345 msgstr ""
16346
16347 #. type: =head2
16348 #: ../fish/guestfish-commands.pod:207
16349 msgid "time"
16350 msgstr ""
16351
16352 #. type: verbatim
16353 #: ../fish/guestfish-commands.pod:209
16354 #, no-wrap
16355 msgid ""
16356 " time command args...\n"
16357 "\n"
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish-commands.pod:211
16362 msgid ""
16363 "Run the command as usual, but print the elapsed time afterwards.  This can "
16364 "be useful for benchmarking operations."
16365 msgstr ""
16366
16367 #. type: =head2
16368 #: ../fish/guestfish-commands.pod:214
16369 msgid "unsetenv"
16370 msgstr ""
16371
16372 #. type: verbatim
16373 #: ../fish/guestfish-commands.pod:216
16374 #, no-wrap
16375 msgid ""
16376 "  unsetenv VAR\n"
16377 "\n"
16378 msgstr ""
16379
16380 #. type: textblock
16381 #: ../fish/guestfish-commands.pod:218
16382 msgid "Remove C<VAR> from the environment."
16383 msgstr ""
16384
16385 #. type: textblock
16386 #: ../fish/guestfish.pod:5
16387 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16388 msgstr ""
16389
16390 #. type: verbatim
16391 #: ../fish/guestfish.pod:9
16392 #, no-wrap
16393 msgid ""
16394 " guestfish [--options] [commands]\n"
16395 "\n"
16396 msgstr ""
16397
16398 #. type: verbatim
16399 #: ../fish/guestfish.pod:11
16400 #, no-wrap
16401 msgid ""
16402 " guestfish\n"
16403 "\n"
16404 msgstr ""
16405
16406 #. type: verbatim
16407 #: ../fish/guestfish.pod:13
16408 #, no-wrap
16409 msgid ""
16410 " guestfish [--ro|--rw] -a disk.img\n"
16411 "\n"
16412 msgstr ""
16413
16414 #. type: verbatim
16415 #: ../fish/guestfish.pod:15
16416 #, no-wrap
16417 msgid ""
16418 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16419 "\n"
16420 msgstr ""
16421
16422 #. type: verbatim
16423 #: ../fish/guestfish.pod:17
16424 #, no-wrap
16425 msgid ""
16426 " guestfish -d libvirt-domain\n"
16427 "\n"
16428 msgstr ""
16429
16430 #. type: verbatim
16431 #: ../fish/guestfish.pod:19
16432 #, no-wrap
16433 msgid ""
16434 " guestfish [--ro|--rw] -a disk.img -i\n"
16435 "\n"
16436 msgstr ""
16437
16438 #. type: verbatim
16439 #: ../fish/guestfish.pod:21
16440 #, no-wrap
16441 msgid ""
16442 " guestfish -d libvirt-domain -i\n"
16443 "\n"
16444 msgstr ""
16445
16446 #. type: textblock
16447 #: ../fish/guestfish.pod:25
16448 msgid ""
16449 "Using guestfish in read/write mode on live virtual machines can be "
16450 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16451 "option to use guestfish safely if the disk image or virtual machine might be "
16452 "live."
16453 msgstr ""
16454
16455 #. type: textblock
16456 #: ../fish/guestfish.pod:32
16457 msgid ""
16458 "Guestfish is a shell and command-line tool for examining and modifying "
16459 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16460 "functionality of the guestfs API, see L<guestfs(3)>."
16461 msgstr ""
16462
16463 #. type: textblock
16464 #: ../fish/guestfish.pod:36
16465 msgid ""
16466 "Guestfish gives you structured access to the libguestfs API, from shell "
16467 "scripts or the command line or interactively.  If you want to rescue a "
16468 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16469 "command."
16470 msgstr ""
16471
16472 #. type: =head2
16473 #: ../fish/guestfish.pod:43
16474 msgid "As an interactive shell"
16475 msgstr ""
16476
16477 #. type: verbatim
16478 #: ../fish/guestfish.pod:45
16479 #, no-wrap
16480 msgid ""
16481 " $ guestfish\n"
16482 " \n"
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish.pod:47
16487 #, no-wrap
16488 msgid ""
16489 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16490 " editing virtual machine filesystems.\n"
16491 " \n"
16492 msgstr ""
16493
16494 #. type: verbatim
16495 #: ../fish/guestfish.pod:50
16496 #, no-wrap
16497 msgid ""
16498 " Type: 'help' for a list of commands\n"
16499 "       'man' to read the manual\n"
16500 "       'quit' to quit the shell\n"
16501 " \n"
16502 msgstr ""
16503
16504 #. type: verbatim
16505 #: ../fish/guestfish.pod:54
16506 #, no-wrap
16507 msgid ""
16508 " ><fs> add-ro disk.img\n"
16509 " ><fs> run\n"
16510 " ><fs> list-filesystems\n"
16511 " /dev/sda1: ext4\n"
16512 " /dev/vg_guest/lv_root: ext4\n"
16513 " /dev/vg_guest/lv_swap: swap\n"
16514 " ><fs> mount /dev/vg_guest/lv_root /\n"
16515 " ><fs> cat /etc/fstab\n"
16516 " # /etc/fstab\n"
16517 " # Created by anaconda\n"
16518 " [...]\n"
16519 " ><fs> exit\n"
16520 "\n"
16521 msgstr ""
16522
16523 #. type: =head2
16524 #: ../fish/guestfish.pod:67
16525 msgid "From shell scripts"
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../fish/guestfish.pod:69
16530 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16531 msgstr ""
16532
16533 #. type: verbatim
16534 #: ../fish/guestfish.pod:71
16535 #, no-wrap
16536 msgid ""
16537 " guestfish <<_EOF_\n"
16538 " add disk.img\n"
16539 " run\n"
16540 " mount /dev/vg_guest/lv_root /\n"
16541 " write /etc/motd \"Welcome, new users\"\n"
16542 " _EOF_\n"
16543 "\n"
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish.pod:78
16548 msgid "List the LVM logical volumes in a disk image:"
16549 msgstr ""
16550
16551 #. type: verbatim
16552 #: ../fish/guestfish.pod:80
16553 #, no-wrap
16554 msgid ""
16555 " guestfish -a disk.img --ro <<_EOF_\n"
16556 " run\n"
16557 " lvs\n"
16558 " _EOF_\n"
16559 "\n"
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish.pod:85
16564 msgid "List all the filesystems in a disk image:"
16565 msgstr ""
16566
16567 #. type: verbatim
16568 #: ../fish/guestfish.pod:87
16569 #, no-wrap
16570 msgid ""
16571 " guestfish -a disk.img --ro <<_EOF_\n"
16572 " run\n"
16573 " list-filesystems\n"
16574 " _EOF_\n"
16575 "\n"
16576 msgstr ""
16577
16578 #. type: =head2
16579 #: ../fish/guestfish.pod:92
16580 msgid "On one command line"
16581 msgstr ""
16582
16583 #. type: textblock
16584 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16585 msgid "Update C</etc/resolv.conf> in a guest:"
16586 msgstr ""
16587
16588 #. type: verbatim
16589 #: ../fish/guestfish.pod:96
16590 #, no-wrap
16591 msgid ""
16592 " guestfish \\\n"
16593 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16594 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16595 "\n"
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../fish/guestfish.pod:100
16600 msgid "Edit C</boot/grub/grub.conf> interactively:"
16601 msgstr ""
16602
16603 #. type: verbatim
16604 #: ../fish/guestfish.pod:102
16605 #, no-wrap
16606 msgid ""
16607 " guestfish --rw --add disk.img \\\n"
16608 "   --mount /dev/vg_guest/lv_root \\\n"
16609 "   --mount /dev/sda1:/boot \\\n"
16610 "   edit /boot/grub/grub.conf\n"
16611 "\n"
16612 msgstr ""
16613
16614 #. type: =head2
16615 #: ../fish/guestfish.pod:107
16616 msgid "Mount disks automatically"
16617 msgstr ""
16618
16619 #. type: textblock
16620 #: ../fish/guestfish.pod:109
16621 msgid ""
16622 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16623 msgstr ""
16624
16625 #. type: verbatim
16626 #: ../fish/guestfish.pod:112
16627 #, no-wrap
16628 msgid ""
16629 " guestfish --ro -a disk.img -i cat /etc/group\n"
16630 "\n"
16631 msgstr ""
16632
16633 #. type: verbatim
16634 #: ../fish/guestfish.pod:114
16635 #, no-wrap
16636 msgid ""
16637 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16638 "\n"
16639 msgstr ""
16640
16641 #. type: textblock
16642 #: ../fish/guestfish.pod:116
16643 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16644 msgstr ""
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish.pod:118
16648 #, no-wrap
16649 msgid ""
16650 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16651 "\n"
16652 msgstr ""
16653
16654 #. type: =head2
16655 #: ../fish/guestfish.pod:120
16656 msgid "As a script interpreter"
16657 msgstr ""
16658
16659 #. type: textblock
16660 #: ../fish/guestfish.pod:122
16661 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16662 msgstr ""
16663
16664 #. type: verbatim
16665 #: ../fish/guestfish.pod:124
16666 #, no-wrap
16667 msgid ""
16668 " #!/usr/bin/guestfish -f\n"
16669 " sparse test1.img 100M\n"
16670 " run\n"
16671 " part-disk /dev/sda mbr\n"
16672 " mkfs ext2 /dev/sda1\n"
16673 "\n"
16674 msgstr ""
16675
16676 #. type: =head2
16677 #: ../fish/guestfish.pod:130
16678 msgid "Start with a prepared disk"
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish.pod:132
16683 msgid ""
16684 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16685 "single ext2-formatted partition:"
16686 msgstr ""
16687
16688 #. type: verbatim
16689 #: ../fish/guestfish.pod:135
16690 #, no-wrap
16691 msgid ""
16692 " guestfish -N fs\n"
16693 "\n"
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish.pod:137
16698 msgid "To list what is available do:"
16699 msgstr ""
16700
16701 #. type: verbatim
16702 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16703 #, no-wrap
16704 msgid ""
16705 " guestfish -N help | less\n"
16706 "\n"
16707 msgstr ""
16708
16709 #. type: =head2
16710 #: ../fish/guestfish.pod:141
16711 msgid "Remote control"
16712 msgstr ""
16713
16714 #. type: verbatim
16715 #: ../fish/guestfish.pod:143
16716 #, no-wrap
16717 msgid ""
16718 " eval \"`guestfish --listen`\"\n"
16719 " guestfish --remote add-ro disk.img\n"
16720 " guestfish --remote run\n"
16721 " guestfish --remote lvs\n"
16722 "\n"
16723 msgstr ""
16724
16725 #. type: textblock
16726 #: ../fish/guestfish.pod:154
16727 msgid "Displays general help on options."
16728 msgstr ""
16729
16730 #. type: =item
16731 #: ../fish/guestfish.pod:158
16732 msgid "B<--cmd-help>"
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish.pod:160
16737 msgid "Lists all available guestfish commands."
16738 msgstr ""
16739
16740 #. type: =item
16741 #: ../fish/guestfish.pod:162
16742 msgid "B<-h cmd>"
16743 msgstr ""
16744
16745 #. type: =item
16746 #: ../fish/guestfish.pod:164
16747 msgid "B<--cmd-help cmd>"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../fish/guestfish.pod:166
16752 msgid "Displays detailed help on a single command C<cmd>."
16753 msgstr ""
16754
16755 #. type: =item
16756 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16757 msgid "B<-a image>"
16758 msgstr ""
16759
16760 #. type: =item
16761 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16762 msgid "B<--add image>"
16763 msgstr ""
16764
16765 #. type: textblock
16766 #: ../fish/guestfish.pod:172
16767 msgid "Add a block device or virtual machine image to the shell."
16768 msgstr ""
16769
16770 #. type: textblock
16771 #: ../fish/guestfish.pod:177
16772 msgid ""
16773 "Using this flag is mostly equivalent to using the C<add> command, with "
16774 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16775 "the I<--format=...> flag was given."
16776 msgstr ""
16777
16778 #. type: textblock
16779 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16780 msgid ""
16781 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16782 "URI to use.  The default is to use the default libvirt connection."
16783 msgstr ""
16784
16785 #. type: =item
16786 #: ../fish/guestfish.pod:189
16787 msgid "B<--csh>"
16788 msgstr ""
16789
16790 #. type: textblock
16791 #: ../fish/guestfish.pod:191
16792 msgid ""
16793 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16794 "section L</REMOTE CONTROL AND CSH> below."
16795 msgstr ""
16796
16797 #. type: =item
16798 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16799 msgid "B<-d libvirt-domain>"
16800 msgstr ""
16801
16802 #. type: =item
16803 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16804 msgid "B<--domain libvirt-domain>"
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16809 msgid ""
16810 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16811 "used, then any libvirt domain can be used.  However in write mode, only "
16812 "libvirt domains which are shut down can be named here."
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16817 msgid "Domain UUIDs can be used instead of names."
16818 msgstr ""
16819
16820 #. type: textblock
16821 #: ../fish/guestfish.pod:204
16822 msgid ""
16823 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16824 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16825 "if the I<--format:...> flag was given."
16826 msgstr ""
16827
16828 #. type: =item
16829 #: ../fish/guestfish.pod:208
16830 msgid "B<-D>"
16831 msgstr ""
16832
16833 #. type: =item
16834 #: ../fish/guestfish.pod:210
16835 msgid "B<--no-dest-paths>"
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish.pod:212
16840 msgid ""
16841 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16842 "to hit the tab key to complete paths on the guest filesystem, but this "
16843 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16844 "allow this feature to be disabled."
16845 msgstr ""
16846
16847 #. type: textblock
16848 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16849 msgid ""
16850 "When prompting for keys and passphrases, guestfish normally turns echoing "
16851 "off so you cannot see what you are typing.  If you are not worried about "
16852 "Tempest attacks and there is no one else in the room you can specify this "
16853 "flag to see what you are typing."
16854 msgstr ""
16855
16856 #. type: =item
16857 #: ../fish/guestfish.pod:224
16858 msgid "B<-f file>"
16859 msgstr ""
16860
16861 #. type: =item
16862 #: ../fish/guestfish.pod:226
16863 msgid "B<--file file>"
16864 msgstr ""
16865
16866 #. type: textblock
16867 #: ../fish/guestfish.pod:228
16868 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16869 msgstr ""
16870
16871 #. type: verbatim
16872 #: ../fish/guestfish.pod:231
16873 #, no-wrap
16874 msgid ""
16875 " #!/usr/bin/guestfish -f\n"
16876 "\n"
16877 msgstr ""
16878
16879 #. type: verbatim
16880 #: ../fish/guestfish.pod:244
16881 #, no-wrap
16882 msgid ""
16883 " guestfish --format=raw -a disk.img\n"
16884 "\n"
16885 msgstr ""
16886
16887 #. type: verbatim
16888 #: ../fish/guestfish.pod:248
16889 #, no-wrap
16890 msgid ""
16891 " guestfish --format=raw -a disk.img --format -a another.img\n"
16892 "\n"
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish.pod:253
16897 msgid ""
16898 "If you have untrusted raw-format guest disk images, you should use this "
16899 "option to specify the disk format.  This avoids a possible security problem "
16900 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16901 msgstr ""
16902
16903 #. type: =item
16904 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16905 msgid "B<--inspector>"
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16910 msgid ""
16911 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16912 "system and mount filesystems as they would be mounted on the real virtual "
16913 "machine."
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish.pod:266
16918 msgid "Typical usage is either:"
16919 msgstr ""
16920
16921 #. type: verbatim
16922 #: ../fish/guestfish.pod:268
16923 #, no-wrap
16924 msgid ""
16925 " guestfish -d myguest -i\n"
16926 "\n"
16927 msgstr ""
16928
16929 #. type: textblock
16930 #: ../fish/guestfish.pod:270
16931 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16932 msgstr ""
16933
16934 #. type: verbatim
16935 #: ../fish/guestfish.pod:272
16936 #, no-wrap
16937 msgid ""
16938 " guestfish --ro -d myguest -i\n"
16939 "\n"
16940 msgstr ""
16941
16942 #. type: textblock
16943 #: ../fish/guestfish.pod:274
16944 msgid "(for active domains, readonly), or specify the block device directly:"
16945 msgstr ""
16946
16947 #. type: verbatim
16948 #: ../fish/guestfish.pod:276
16949 #, no-wrap
16950 msgid ""
16951 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16952 "\n"
16953 msgstr ""
16954
16955 #. type: textblock
16956 #: ../fish/guestfish.pod:278
16957 msgid ""
16958 "Note that the command line syntax changed slightly over older versions of "
16959 "guestfish.  You can still use the old syntax:"
16960 msgstr ""
16961
16962 #. type: verbatim
16963 #: ../fish/guestfish.pod:281
16964 #, no-wrap
16965 msgid ""
16966 " guestfish [--ro] -i disk.img\n"
16967 "\n"
16968 msgstr ""
16969
16970 #. type: verbatim
16971 #: ../fish/guestfish.pod:283
16972 #, no-wrap
16973 msgid ""
16974 " guestfish [--ro] -i libvirt-domain\n"
16975 "\n"
16976 msgstr ""
16977
16978 #. type: textblock
16979 #: ../fish/guestfish.pod:285
16980 msgid ""
16981 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16982 "then using other commands to mount the filesystems that were found."
16983 msgstr ""
16984
16985 #. type: =item
16986 #: ../fish/guestfish.pod:294
16987 msgid "B<--listen>"
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish.pod:296
16992 msgid ""
16993 "Fork into the background and listen for remote commands.  See section L</"
16994 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16995 msgstr ""
16996
16997 #. type: =item
16998 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16999 msgid "B<--live>"
17000 msgstr ""
17001
17002 #. type: textblock
17003 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17004 msgid ""
17005 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17006 "ATTACHING TO RUNNING DAEMONS>)."
17007 msgstr ""
17008
17009 #. type: =item
17010 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17011 msgid "B<-m dev[:mountpoint[:options]]>"
17012 msgstr ""
17013
17014 #. type: =item
17015 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17016 msgid "B<--mount dev[:mountpoint[:options]]>"
17017 msgstr ""
17018
17019 #. type: textblock
17020 #: ../fish/guestfish.pod:308
17021 msgid "Mount the named partition or logical volume on the given mountpoint."
17022 msgstr ""
17023
17024 #. type: textblock
17025 #: ../fish/guestfish.pod:310
17026 msgid "If the mountpoint is omitted, it defaults to C</>."
17027 msgstr ""
17028
17029 #. type: textblock
17030 #: ../fish/guestfish.pod:312
17031 msgid "You have to mount something on C</> before most commands will work."
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish.pod:314
17036 msgid ""
17037 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17038 "launched."
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish.pod:317
17043 msgid ""
17044 "If you don't know what filesystems a disk image contains, you can either run "
17045 "guestfish without this option, then list the partitions, filesystems and LVs "
17046 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17047 "commands), or you can use the L<virt-filesystems(1)> program."
17048 msgstr ""
17049
17050 #. type: textblock
17051 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17052 msgid ""
17053 "The third (and rarely used) part of the mount parameter is the list of mount "
17054 "options used to mount the underlying filesystem.  If this is not given, then "
17055 "the mount options are either the empty string or C<ro> (the latter if the "
17056 "I<--ro> flag is used).  By specifying the mount options, you override this "
17057 "default choice.  Probably the only time you would use this is to enable ACLs "
17058 "and/or extended attributes if the filesystem can support them:"
17059 msgstr ""
17060
17061 #. type: verbatim
17062 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17063 #, no-wrap
17064 msgid ""
17065 " -m /dev/sda1:/:acl,user_xattr\n"
17066 "\n"
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish.pod:333
17071 msgid "Using this flag is equivalent to using the C<mount-options> command."
17072 msgstr ""
17073
17074 #. type: =item
17075 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17076 #: ../resize/virt-resize.pod:358
17077 msgid "B<-n>"
17078 msgstr ""
17079
17080 #. type: =item
17081 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17082 msgid "B<--no-sync>"
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish.pod:339
17087 msgid ""
17088 "Disable autosync.  This is enabled by default.  See the discussion of "
17089 "autosync in the L<guestfs(3)> manpage."
17090 msgstr ""
17091
17092 #. type: =item
17093 #: ../fish/guestfish.pod:342
17094 msgid "B<-N type>"
17095 msgstr ""
17096
17097 #. type: =item
17098 #: ../fish/guestfish.pod:344
17099 msgid "B<--new type>"
17100 msgstr ""
17101
17102 #. type: =item
17103 #: ../fish/guestfish.pod:346
17104 msgid "B<-N help>"
17105 msgstr ""
17106
17107 #. type: textblock
17108 #: ../fish/guestfish.pod:348
17109 msgid ""
17110 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17111 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17112 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17113 "IMAGES> below."
17114 msgstr ""
17115
17116 #. type: =item
17117 #: ../fish/guestfish.pod:353
17118 msgid "B<--progress-bars>"
17119 msgstr ""
17120
17121 #. type: textblock
17122 #: ../fish/guestfish.pod:355
17123 msgid "Enable progress bars, even when guestfish is used non-interactively."
17124 msgstr ""
17125
17126 #. type: textblock
17127 #: ../fish/guestfish.pod:357
17128 msgid ""
17129 "Progress bars are enabled by default when guestfish is used as an "
17130 "interactive shell."
17131 msgstr ""
17132
17133 #. type: =item
17134 #: ../fish/guestfish.pod:360
17135 msgid "B<--no-progress-bars>"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish.pod:362
17140 msgid "Disable progress bars."
17141 msgstr ""
17142
17143 #. type: =item
17144 #: ../fish/guestfish.pod:364
17145 msgid "B<--remote[=pid]>"
17146 msgstr ""
17147
17148 #. type: textblock
17149 #: ../fish/guestfish.pod:366
17150 msgid ""
17151 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17152 "CONTROL GUESTFISH OVER A SOCKET> below."
17153 msgstr ""
17154
17155 #. type: =item
17156 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17157 #: ../rescue/virt-rescue.pod:161
17158 msgid "B<-r>"
17159 msgstr ""
17160
17161 #. type: =item
17162 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17163 #: ../rescue/virt-rescue.pod:163
17164 msgid "B<--ro>"
17165 msgstr ""
17166
17167 #. type: textblock
17168 #: ../fish/guestfish.pod:373
17169 msgid ""
17170 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17171 "mounts are done read-only."
17172 msgstr ""
17173
17174 #. type: textblock
17175 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17176 msgid ""
17177 "The option must always be used if the disk image or virtual machine might be "
17178 "running, and is generally recommended in cases where you don't need write "
17179 "access to the disk."
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish.pod:380
17184 msgid ""
17185 "Note that prepared disk images created with I<-N> are not affected by this "
17186 "option.  Also commands like C<add> are not affected - you have to specify "
17187 "the C<readonly:true> option explicitly if you need it."
17188 msgstr ""
17189
17190 #. type: textblock
17191 #: ../fish/guestfish.pod:384
17192 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17193 msgstr ""
17194
17195 #. type: =item
17196 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17197 #: ../rescue/virt-rescue.pod:173
17198 msgid "B<--selinux>"
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish.pod:388
17203 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17204 msgstr ""
17205
17206 #. type: textblock
17207 #: ../fish/guestfish.pod:394
17208 msgid ""
17209 "Enable very verbose messages.  This is particularly useful if you find a bug."
17210 msgstr ""
17211
17212 #. type: textblock
17213 #: ../fish/guestfish.pod:401
17214 msgid "Display the guestfish / libguestfs version number and exit."
17215 msgstr ""
17216
17217 #. type: =item
17218 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17219 #: ../rescue/virt-rescue.pod:194
17220 msgid "B<-w>"
17221 msgstr ""
17222
17223 #. type: =item
17224 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17225 #: ../rescue/virt-rescue.pod:196
17226 msgid "B<--rw>"
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17231 msgid ""
17232 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17233 "mounts are done read-write."
17234 msgstr ""
17235
17236 #. type: textblock
17237 #: ../fish/guestfish.pod:410
17238 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish.pod:414
17243 msgid "Echo each command before executing it."
17244 msgstr ""
17245
17246 #. type: =head1
17247 #: ../fish/guestfish.pod:418
17248 msgid "COMMANDS ON COMMAND LINE"
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish.pod:420
17253 msgid ""
17254 "Any additional (non-option) arguments are treated as commands to execute."
17255 msgstr ""
17256
17257 #. type: textblock
17258 #: ../fish/guestfish.pod:423
17259 msgid ""
17260 "Commands to execute should be separated by a colon (C<:>), where the colon "
17261 "is a separate parameter.  Thus:"
17262 msgstr ""
17263
17264 #. type: verbatim
17265 #: ../fish/guestfish.pod:426
17266 #, no-wrap
17267 msgid ""
17268 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17269 "\n"
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish.pod:428
17274 msgid ""
17275 "If there are no additional arguments, then we enter a shell, either an "
17276 "interactive shell with a prompt (if the input is a terminal) or a non-"
17277 "interactive shell."
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish.pod:432
17282 msgid ""
17283 "In either command line mode or non-interactive shell, the first command that "
17284 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17285 "prompt) if a command fails, you can continue to enter commands."
17286 msgstr ""
17287
17288 #. type: =head1
17289 #: ../fish/guestfish.pod:437
17290 msgid "USING launch (OR run)"
17291 msgstr ""
17292
17293 #. type: textblock
17294 #: ../fish/guestfish.pod:439
17295 msgid ""
17296 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17297 "then launch it, then mount any disks you need, and finally issue actions/"
17298 "commands.  So the general order of the day is:"
17299 msgstr ""
17300
17301 #. type: textblock
17302 #: ../fish/guestfish.pod:447
17303 msgid "add or -a/--add"
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../fish/guestfish.pod:451
17308 msgid "launch (aka run)"
17309 msgstr ""
17310
17311 #. type: textblock
17312 #: ../fish/guestfish.pod:455
17313 msgid "mount or -m/--mount"
17314 msgstr ""
17315
17316 #. type: textblock
17317 #: ../fish/guestfish.pod:459
17318 msgid "any other commands"
17319 msgstr ""
17320
17321 #. type: textblock
17322 #: ../fish/guestfish.pod:463
17323 msgid ""
17324 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17325 "guest before mounting or performing any other commands."
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish.pod:466
17330 msgid ""
17331 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17332 "I<--new> options were given then C<run> is done automatically, simply "
17333 "because guestfish can't perform the action you asked for without doing this."
17334 msgstr ""
17335
17336 #. type: =head1
17337 #: ../fish/guestfish.pod:471
17338 msgid "OPENING DISKS FOR READ AND WRITE"
17339 msgstr ""
17340
17341 #. type: textblock
17342 #: ../fish/guestfish.pod:473
17343 msgid ""
17344 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17345 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17346 "I<-i> and I<-m> open disk images read-only or for writing."
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish.pod:478
17351 msgid ""
17352 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17353 "opening disk images supplied on the command line for write.  To open a disk "
17354 "image read-only you have to do I<-a image --ro>."
17355 msgstr ""
17356
17357 #. type: textblock
17358 #: ../fish/guestfish.pod:482
17359 msgid ""
17360 "This matters: If you accidentally open a live VM disk image writable then "
17361 "you will cause irreversible disk corruption."
17362 msgstr ""
17363
17364 #. type: textblock
17365 #: ../fish/guestfish.pod:485
17366 msgid ""
17367 "In a future libguestfs we intend to change the default the other way.  Disk "
17368 "images will be opened read-only.  You will have to either specify "
17369 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17370 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17371 "access for disk images specified by those other command line options."
17372 msgstr ""
17373
17374 #. type: textblock
17375 #: ../fish/guestfish.pod:492
17376 msgid ""
17377 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17378 "which does nothing (it is already the default).  However it is highly "
17379 "recommended that you use this option to indicate that you need write access, "
17380 "and prepare your scripts for the day when this option will be required for "
17381 "write access."
17382 msgstr ""
17383
17384 #. type: textblock
17385 #: ../fish/guestfish.pod:498
17386 msgid ""
17387 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17388 "other libguestfs program apart from guestfish and guestmount."
17389 msgstr ""
17390
17391 #. type: =head1
17392 #: ../fish/guestfish.pod:501
17393 msgid "QUOTING"
17394 msgstr ""
17395
17396 #. type: textblock
17397 #: ../fish/guestfish.pod:503
17398 msgid ""
17399 "You can quote ordinary parameters using either single or double quotes.  For "
17400 "example:"
17401 msgstr ""
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish.pod:506
17405 #, no-wrap
17406 msgid ""
17407 " add \"file with a space.img\"\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish.pod:508
17413 #, no-wrap
17414 msgid ""
17415 " rm '/file name'\n"
17416 "\n"
17417 msgstr ""
17418
17419 #. type: verbatim
17420 #: ../fish/guestfish.pod:510
17421 #, no-wrap
17422 msgid ""
17423 " rm '/\"'\n"
17424 "\n"
17425 msgstr ""
17426
17427 #. type: textblock
17428 #: ../fish/guestfish.pod:512
17429 msgid ""
17430 "A few commands require a list of strings to be passed.  For these, use a "
17431 "whitespace-separated list, enclosed in quotes.  Strings containing "
17432 "whitespace to be passed through must be enclosed in single quotes.  A "
17433 "literal single quote must be escaped with a backslash."
17434 msgstr ""
17435
17436 #. type: verbatim
17437 #: ../fish/guestfish.pod:517
17438 #, no-wrap
17439 msgid ""
17440 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17441 " command \"/bin/echo 'foo      bar'\"\n"
17442 " command \"/bin/echo \\'foo\\'\"\n"
17443 "\n"
17444 msgstr ""
17445
17446 #. type: =head2
17447 #: ../fish/guestfish.pod:521
17448 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17449 msgstr ""
17450
17451 #. type: textblock
17452 #: ../fish/guestfish.pod:523
17453 msgid ""
17454 "In double-quoted arguments (only) use backslash to insert special characters:"
17455 msgstr ""
17456
17457 #. type: =item
17458 #: ../fish/guestfish.pod:528
17459 msgid "C<\\a>"
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../fish/guestfish.pod:530
17464 msgid "Alert (bell) character."
17465 msgstr ""
17466
17467 #. type: =item
17468 #: ../fish/guestfish.pod:532
17469 msgid "C<\\b>"
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../fish/guestfish.pod:534
17474 msgid "Backspace character."
17475 msgstr ""
17476
17477 #. type: =item
17478 #: ../fish/guestfish.pod:536
17479 msgid "C<\\f>"
17480 msgstr ""
17481
17482 #. type: textblock
17483 #: ../fish/guestfish.pod:538
17484 msgid "Form feed character."
17485 msgstr ""
17486
17487 #. type: =item
17488 #: ../fish/guestfish.pod:540
17489 msgid "C<\\n>"
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish.pod:542
17494 msgid "Newline character."
17495 msgstr ""
17496
17497 #. type: =item
17498 #: ../fish/guestfish.pod:544
17499 msgid "C<\\r>"
17500 msgstr ""
17501
17502 #. type: textblock
17503 #: ../fish/guestfish.pod:546
17504 msgid "Carriage return character."
17505 msgstr ""
17506
17507 #. type: =item
17508 #: ../fish/guestfish.pod:548
17509 msgid "C<\\t>"
17510 msgstr ""
17511
17512 #. type: textblock
17513 #: ../fish/guestfish.pod:550
17514 msgid "Horizontal tab character."
17515 msgstr ""
17516
17517 #. type: =item
17518 #: ../fish/guestfish.pod:552
17519 msgid "C<\\v>"
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:554
17524 msgid "Vertical tab character."
17525 msgstr ""
17526
17527 #. type: =item
17528 #: ../fish/guestfish.pod:556
17529 msgid "C<\\\">"
17530 msgstr ""
17531
17532 #. type: textblock
17533 #: ../fish/guestfish.pod:558
17534 msgid "A literal double quote character."
17535 msgstr ""
17536
17537 #. type: =item
17538 #: ../fish/guestfish.pod:560
17539 msgid "C<\\ooo>"
17540 msgstr ""
17541
17542 #. type: textblock
17543 #: ../fish/guestfish.pod:562
17544 msgid ""
17545 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17546 "(unlike C)."
17547 msgstr ""
17548
17549 #. type: =item
17550 #: ../fish/guestfish.pod:565
17551 msgid "C<\\xhh>"
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../fish/guestfish.pod:567
17556 msgid ""
17557 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17558 msgstr ""
17559
17560 #. type: textblock
17561 #: ../fish/guestfish.pod:570
17562 msgid ""
17563 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17564 "strings."
17565 msgstr ""
17566
17567 #. type: =item
17568 #: ../fish/guestfish.pod:573
17569 msgid "C<\\\\>"
17570 msgstr ""
17571
17572 #. type: textblock
17573 #: ../fish/guestfish.pod:575
17574 msgid "A literal backslash character."
17575 msgstr ""
17576
17577 #. type: =head1
17578 #: ../fish/guestfish.pod:579
17579 msgid "OPTIONAL ARGUMENTS"
17580 msgstr ""
17581
17582 #. type: textblock
17583 #: ../fish/guestfish.pod:581
17584 msgid ""
17585 "Some commands take optional arguments.  These arguments appear in this "
17586 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17587 msgstr ""
17588
17589 #. type: verbatim
17590 #: ../fish/guestfish.pod:585
17591 #, no-wrap
17592 msgid ""
17593 " add-drive-opts filename\n"
17594 "\n"
17595 msgstr ""
17596
17597 #. type: verbatim
17598 #: ../fish/guestfish.pod:587
17599 #, no-wrap
17600 msgid ""
17601 " add-drive-opts filename readonly:true\n"
17602 "\n"
17603 msgstr ""
17604
17605 #. type: verbatim
17606 #: ../fish/guestfish.pod:589
17607 #, no-wrap
17608 msgid ""
17609 " add-drive-opts filename format:qcow2 readonly:false\n"
17610 "\n"
17611 msgstr ""
17612
17613 #. type: textblock
17614 #: ../fish/guestfish.pod:591
17615 msgid ""
17616 "Each optional argument can appear at most once.  All optional arguments must "
17617 "appear after the required ones."
17618 msgstr ""
17619
17620 #. type: =head1
17621 #: ../fish/guestfish.pod:594
17622 msgid "NUMBERS"
17623 msgstr ""
17624
17625 #. type: textblock
17626 #: ../fish/guestfish.pod:596
17627 msgid ""
17628 "This section applies to all commands which can take integers as parameters."
17629 msgstr ""
17630
17631 #. type: =head2
17632 #: ../fish/guestfish.pod:599
17633 msgid "SIZE SUFFIX"
17634 msgstr ""
17635
17636 #. type: textblock
17637 #: ../fish/guestfish.pod:601
17638 msgid ""
17639 "When the command takes a parameter measured in bytes, you can use one of the "
17640 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17641 msgstr ""
17642
17643 #. type: =item
17644 #: ../fish/guestfish.pod:607
17645 msgid "B<k> or B<K> or B<KiB>"
17646 msgstr ""
17647
17648 #. type: textblock
17649 #: ../fish/guestfish.pod:609
17650 msgid "The size in kilobytes (multiplied by 1024)."
17651 msgstr ""
17652
17653 #. type: =item
17654 #: ../fish/guestfish.pod:611
17655 msgid "B<KB>"
17656 msgstr ""
17657
17658 #. type: textblock
17659 #: ../fish/guestfish.pod:613
17660 msgid "The size in SI 1000 byte units."
17661 msgstr ""
17662
17663 #. type: =item
17664 #: ../fish/guestfish.pod:615
17665 msgid "B<M> or B<MiB>"
17666 msgstr ""
17667
17668 #. type: textblock
17669 #: ../fish/guestfish.pod:617
17670 msgid "The size in megabytes (multiplied by 1048576)."
17671 msgstr ""
17672
17673 #. type: =item
17674 #: ../fish/guestfish.pod:619
17675 msgid "B<MB>"
17676 msgstr ""
17677
17678 #. type: textblock
17679 #: ../fish/guestfish.pod:621
17680 msgid "The size in SI 1000000 byte units."
17681 msgstr ""
17682
17683 #. type: =item
17684 #: ../fish/guestfish.pod:623
17685 msgid "B<G> or B<GiB>"
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish.pod:625
17690 msgid "The size in gigabytes (multiplied by 2**30)."
17691 msgstr ""
17692
17693 #. type: =item
17694 #: ../fish/guestfish.pod:627
17695 msgid "B<GB>"
17696 msgstr ""
17697
17698 #. type: textblock
17699 #: ../fish/guestfish.pod:629
17700 msgid "The size in SI 10**9 byte units."
17701 msgstr ""
17702
17703 #. type: =item
17704 #: ../fish/guestfish.pod:631
17705 msgid "B<T> or B<TiB>"
17706 msgstr ""
17707
17708 #. type: textblock
17709 #: ../fish/guestfish.pod:633
17710 msgid "The size in terabytes (multiplied by 2**40)."
17711 msgstr ""
17712
17713 #. type: =item
17714 #: ../fish/guestfish.pod:635
17715 msgid "B<TB>"
17716 msgstr ""
17717
17718 #. type: textblock
17719 #: ../fish/guestfish.pod:637
17720 msgid "The size in SI 10**12 byte units."
17721 msgstr ""
17722
17723 #. type: =item
17724 #: ../fish/guestfish.pod:639
17725 msgid "B<P> or B<PiB>"
17726 msgstr ""
17727
17728 #. type: textblock
17729 #: ../fish/guestfish.pod:641
17730 msgid "The size in petabytes (multiplied by 2**50)."
17731 msgstr ""
17732
17733 #. type: =item
17734 #: ../fish/guestfish.pod:643
17735 msgid "B<PB>"
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../fish/guestfish.pod:645
17740 msgid "The size in SI 10**15 byte units."
17741 msgstr ""
17742
17743 #. type: =item
17744 #: ../fish/guestfish.pod:647
17745 msgid "B<E> or B<EiB>"
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish.pod:649
17750 msgid "The size in exabytes (multiplied by 2**60)."
17751 msgstr ""
17752
17753 #. type: =item
17754 #: ../fish/guestfish.pod:651
17755 msgid "B<EB>"
17756 msgstr ""
17757
17758 #. type: textblock
17759 #: ../fish/guestfish.pod:653
17760 msgid "The size in SI 10**18 byte units."
17761 msgstr ""
17762
17763 #. type: =item
17764 #: ../fish/guestfish.pod:655
17765 msgid "B<Z> or B<ZiB>"
17766 msgstr ""
17767
17768 #. type: textblock
17769 #: ../fish/guestfish.pod:657
17770 msgid "The size in zettabytes (multiplied by 2**70)."
17771 msgstr ""
17772
17773 #. type: =item
17774 #: ../fish/guestfish.pod:659
17775 msgid "B<ZB>"
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:661
17780 msgid "The size in SI 10**21 byte units."
17781 msgstr ""
17782
17783 #. type: =item
17784 #: ../fish/guestfish.pod:663
17785 msgid "B<Y> or B<YiB>"
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../fish/guestfish.pod:665
17790 msgid "The size in yottabytes (multiplied by 2**80)."
17791 msgstr ""
17792
17793 #. type: =item
17794 #: ../fish/guestfish.pod:667
17795 msgid "B<YB>"
17796 msgstr ""
17797
17798 #. type: textblock
17799 #: ../fish/guestfish.pod:669
17800 msgid "The size in SI 10**24 byte units."
17801 msgstr ""
17802
17803 #. type: verbatim
17804 #: ../fish/guestfish.pod:675
17805 #, no-wrap
17806 msgid ""
17807 " truncate-size /file 1G\n"
17808 "\n"
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish.pod:677
17813 msgid "would truncate the file to 1 gigabyte."
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../fish/guestfish.pod:679
17818 msgid ""
17819 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
17820 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
17821 "suffix will probably not do what you expect."
17822 msgstr ""
17823
17824 #. type: =head2
17825 #: ../fish/guestfish.pod:683
17826 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish.pod:685
17831 msgid ""
17832 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17833 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17834 msgstr ""
17835
17836 #. type: verbatim
17837 #: ../fish/guestfish.pod:688
17838 #, no-wrap
17839 msgid ""
17840 " 1234      decimal number 1234\n"
17841 " 02322     octal number, equivalent to decimal 1234\n"
17842 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17843 "\n"
17844 msgstr ""
17845
17846 #. type: textblock
17847 #: ../fish/guestfish.pod:692
17848 msgid ""
17849 "When using the C<chmod> command, you almost always want to specify an octal "
17850 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17851 "L<chmod(1)> program):"
17852 msgstr ""
17853
17854 #. type: verbatim
17855 #: ../fish/guestfish.pod:696
17856 #, no-wrap
17857 msgid ""
17858 " chmod 0777 /public  # OK\n"
17859 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17860 "\n"
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../fish/guestfish.pod:699
17865 msgid ""
17866 "Commands that return numbers usually print them in decimal, but some "
17867 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17868 "octal, preceeded by C<0>)."
17869 msgstr ""
17870
17871 #. type: =head1
17872 #: ../fish/guestfish.pod:703
17873 msgid "WILDCARDS AND GLOBBING"
17874 msgstr ""
17875
17876 #. type: textblock
17877 #: ../fish/guestfish.pod:705
17878 msgid ""
17879 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17880 "(globbing) by default.  So for example the following will not do what you "
17881 "expect:"
17882 msgstr ""
17883
17884 #. type: verbatim
17885 #: ../fish/guestfish.pod:709
17886 #, no-wrap
17887 msgid ""
17888 " rm-rf /home/*\n"
17889 "\n"
17890 msgstr ""
17891
17892 #. type: textblock
17893 #: ../fish/guestfish.pod:711
17894 msgid ""
17895 "Assuming you don't have a directory called literally C</home/*> then the "
17896 "above command will return an error."
17897 msgstr ""
17898
17899 #. type: textblock
17900 #: ../fish/guestfish.pod:714
17901 msgid "To perform wildcard expansion, use the C<glob> command."
17902 msgstr ""
17903
17904 #. type: verbatim
17905 #: ../fish/guestfish.pod:716
17906 #, no-wrap
17907 msgid ""
17908 " glob rm-rf /home/*\n"
17909 "\n"
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../fish/guestfish.pod:718
17914 msgid ""
17915 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17916 "many times), equivalent to:"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../fish/guestfish.pod:721
17921 #, no-wrap
17922 msgid ""
17923 " rm-rf /home/jim\n"
17924 " rm-rf /home/joe\n"
17925 " rm-rf /home/mary\n"
17926 "\n"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../fish/guestfish.pod:725
17931 msgid "C<glob> only works on simple guest paths and not on device names."
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish.pod:727
17936 msgid ""
17937 "If you have several parameters, each containing a wildcard, then glob will "
17938 "perform a Cartesian product."
17939 msgstr ""
17940
17941 #. type: =head1
17942 #: ../fish/guestfish.pod:730
17943 msgid "COMMENTS"
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish.pod:732
17948 msgid ""
17949 "Any line which starts with a I<#> character is treated as a comment and "
17950 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17951 "a command.  For example:"
17952 msgstr ""
17953
17954 #. type: verbatim
17955 #: ../fish/guestfish.pod:736
17956 #, no-wrap
17957 msgid ""
17958 " # this is a comment\n"
17959 "         # this is a comment\n"
17960 " foo # NOT a comment\n"
17961 "\n"
17962 msgstr ""
17963
17964 #. type: textblock
17965 #: ../fish/guestfish.pod:740
17966 msgid "Blank lines are also ignored."
17967 msgstr ""
17968
17969 #. type: =head1
17970 #: ../fish/guestfish.pod:742
17971 msgid "RUNNING COMMANDS LOCALLY"
17972 msgstr ""
17973
17974 #. type: textblock
17975 #: ../fish/guestfish.pod:744
17976 msgid ""
17977 "Any line which starts with a I<!> character is treated as a command sent to "
17978 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17979 msgstr ""
17980
17981 #. type: verbatim
17982 #: ../fish/guestfish.pod:748
17983 #, no-wrap
17984 msgid ""
17985 " !mkdir local\n"
17986 " tgz-out /remote local/remote-data.tar.gz\n"
17987 "\n"
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish.pod:751
17992 msgid ""
17993 "will create a directory C<local> on the host, and then export the contents "
17994 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17995 "(See C<tgz-out>)."
17996 msgstr ""
17997
17998 #. type: textblock
17999 #: ../fish/guestfish.pod:755
18000 msgid ""
18001 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18002 "effect, due to the way that subprocesses work in Unix."
18003 msgstr ""
18004
18005 #. type: =head2
18006 #: ../fish/guestfish.pod:758
18007 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18008 msgstr ""
18009
18010 #. type: textblock
18011 #: ../fish/guestfish.pod:760
18012 msgid ""
18013 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18014 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18015 "and executed as guestfish commands."
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish.pod:764
18020 msgid ""
18021 "Thus you can use shell script to construct arbitrary guestfish commands "
18022 "which are then parsed by guestfish."
18023 msgstr ""
18024
18025 #. type: textblock
18026 #: ../fish/guestfish.pod:767
18027 msgid ""
18028 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18029 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18030 "if we use a shell script to create the guestfish commands for us:"
18031 msgstr ""
18032
18033 #. type: verbatim
18034 #: ../fish/guestfish.pod:772
18035 #, no-wrap
18036 msgid ""
18037 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18038 "\n"
18039 msgstr ""
18040
18041 #. type: textblock
18042 #: ../fish/guestfish.pod:774
18043 msgid "or with names like C</foo.001>:"
18044 msgstr ""
18045
18046 #. type: verbatim
18047 #: ../fish/guestfish.pod:776
18048 #, no-wrap
18049 msgid ""
18050 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18051 "\n"
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:778
18056 msgid ""
18057 "When using guestfish interactively it can be helpful to just run the shell "
18058 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18059 "ordinary I<!> local command), see what guestfish commands it would run, and "
18060 "when you are happy with those prepend the C<E<lt>> character to run the "
18061 "guestfish commands for real."
18062 msgstr ""
18063
18064 #. type: =head1
18065 #: ../fish/guestfish.pod:784
18066 msgid "PIPES"
18067 msgstr ""
18068
18069 #. type: textblock
18070 #: ../fish/guestfish.pod:786
18071 msgid ""
18072 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18073 "command (a guestfish command) to the second command (any host command).  For "
18074 "example:"
18075 msgstr ""
18076
18077 #. type: verbatim
18078 #: ../fish/guestfish.pod:790
18079 #, no-wrap
18080 msgid ""
18081 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18082 "\n"
18083 msgstr ""
18084
18085 #. type: textblock
18086 #: ../fish/guestfish.pod:792
18087 msgid ""
18088 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18089 "program).  The above command would list all accounts in the guest filesystem "
18090 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18091 msgstr ""
18092
18093 #. type: verbatim
18094 #: ../fish/guestfish.pod:797
18095 #, no-wrap
18096 msgid ""
18097 " hexdump /bin/ls | head\n"
18098 " list-devices | tail -1\n"
18099 " tgz-out / - | tar ztf -\n"
18100 "\n"
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish.pod:801
18105 msgid ""
18106 "The space before the pipe symbol is required, any space after the pipe "
18107 "symbol is optional.  Everything after the pipe symbol is just passed "
18108 "straight to the host shell, so it can contain redirections, globs and "
18109 "anything else that makes sense on the host side."
18110 msgstr ""
18111
18112 #. type: textblock
18113 #: ../fish/guestfish.pod:806
18114 msgid ""
18115 "To use a literal argument which begins with a pipe symbol, you have to quote "
18116 "it, eg:"
18117 msgstr ""
18118
18119 #. type: verbatim
18120 #: ../fish/guestfish.pod:809
18121 #, no-wrap
18122 msgid ""
18123 " echo \"|\"\n"
18124 "\n"
18125 msgstr ""
18126
18127 #. type: =head1
18128 #: ../fish/guestfish.pod:811
18129 msgid "HOME DIRECTORIES"
18130 msgstr ""
18131
18132 #. type: textblock
18133 #: ../fish/guestfish.pod:813
18134 msgid ""
18135 "If a parameter starts with the character C<~> then the tilde may be expanded "
18136 "as a home directory path (either C<~> for the current user's home directory, "
18137 "or C<~user> for another user)."
18138 msgstr ""
18139
18140 #. type: textblock
18141 #: ../fish/guestfish.pod:817
18142 msgid ""
18143 "Note that home directory expansion happens for users known I<on the host>, "
18144 "not in the guest filesystem."
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish.pod:820
18149 msgid ""
18150 "To use a literal argument which begins with a tilde, you have to quote it, "
18151 "eg:"
18152 msgstr ""
18153
18154 #. type: verbatim
18155 #: ../fish/guestfish.pod:823
18156 #, no-wrap
18157 msgid ""
18158 " echo \"~\"\n"
18159 "\n"
18160 msgstr ""
18161
18162 #. type: =head2
18163 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18164 msgid "ENCRYPTED DISKS"
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../fish/guestfish.pod:827
18169 msgid ""
18170 "Libguestfs has some support for Linux guests encrypted according to the "
18171 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18172 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18173 "LUKS is supported."
18174 msgstr ""
18175
18176 #. type: textblock
18177 #: ../fish/guestfish.pod:832
18178 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18179 msgstr ""
18180
18181 #. type: verbatim
18182 #: ../fish/guestfish.pod:834
18183 #, no-wrap
18184 msgid ""
18185 " ><fs> vfs-type /dev/sda2\n"
18186 " crypto_LUKS\n"
18187 "\n"
18188 msgstr ""
18189
18190 #. type: textblock
18191 #: ../fish/guestfish.pod:837
18192 msgid ""
18193 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18194 "device called C</dev/mapper/luksdev>."
18195 msgstr ""
18196
18197 #. type: verbatim
18198 #: ../fish/guestfish.pod:840
18199 #, no-wrap
18200 msgid ""
18201 " ><fs> luks-open /dev/sda2 luksdev\n"
18202 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18203 "\n"
18204 msgstr ""
18205
18206 #. type: textblock
18207 #: ../fish/guestfish.pod:843
18208 msgid ""
18209 "Finally you have to tell LVM to scan for volume groups on the newly created "
18210 "mapper device:"
18211 msgstr ""
18212
18213 #. type: verbatim
18214 #: ../fish/guestfish.pod:846
18215 #, no-wrap
18216 msgid ""
18217 " vgscan\n"
18218 " vg-activate-all true\n"
18219 "\n"
18220 msgstr ""
18221
18222 #. type: textblock
18223 #: ../fish/guestfish.pod:849
18224 msgid "The logical volume(s) can now be mounted in the usual way."
18225 msgstr ""
18226
18227 #. type: textblock
18228 #: ../fish/guestfish.pod:851
18229 msgid ""
18230 "Before closing a LUKS device you must unmount any logical volumes on it and "
18231 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18232 "one.  Then you can close the mapper device:"
18233 msgstr ""
18234
18235 #. type: verbatim
18236 #: ../fish/guestfish.pod:855
18237 #, no-wrap
18238 msgid ""
18239 " vg-activate false /dev/VG\n"
18240 " luks-close /dev/mapper/luksdev\n"
18241 "\n"
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish.pod:860
18246 msgid ""
18247 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18248 "letters and paths (with some limitations).  The following commands are "
18249 "equivalent:"
18250 msgstr ""
18251
18252 #. type: verbatim
18253 #: ../fish/guestfish.pod:864
18254 #, no-wrap
18255 msgid ""
18256 " file /WINDOWS/system32/config/system.LOG\n"
18257 "\n"
18258 msgstr ""
18259
18260 #. type: verbatim
18261 #: ../fish/guestfish.pod:866
18262 #, no-wrap
18263 msgid ""
18264 " file win:\\windows\\system32\\config\\system.log\n"
18265 "\n"
18266 msgstr ""
18267
18268 #. type: verbatim
18269 #: ../fish/guestfish.pod:868
18270 #, no-wrap
18271 msgid ""
18272 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18273 "\n"
18274 msgstr ""
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:870
18278 msgid ""
18279 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18280 "where the drive is mounted, prepending that to the path, changing all "
18281 "backslash characters to forward slash, then resolving the result using L</"
18282 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18283 "the parameter might be rewritten like this:"
18284 msgstr ""
18285
18286 #. type: verbatim
18287 #: ../fish/guestfish.pod:876
18288 #, no-wrap
18289 msgid ""
18290 " win:e:\\foo\\bar => /e/FOO/bar\n"
18291 "\n"
18292 msgstr ""
18293
18294 #. type: textblock
18295 #: ../fish/guestfish.pod:878
18296 msgid "This only works in argument positions that expect a path."
18297 msgstr ""
18298
18299 #. type: =head1
18300 #: ../fish/guestfish.pod:880
18301 msgid "UPLOADING AND DOWNLOADING FILES"
18302 msgstr ""
18303
18304 #. type: textblock
18305 #: ../fish/guestfish.pod:882
18306 msgid ""
18307 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18308 "others which upload from or download to a local file, you can use the "
18309 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18310 msgstr ""
18311
18312 #. type: verbatim
18313 #: ../fish/guestfish.pod:886
18314 #, no-wrap
18315 msgid ""
18316 " upload - /foo\n"
18317 "\n"
18318 msgstr ""
18319
18320 #. type: textblock
18321 #: ../fish/guestfish.pod:888
18322 msgid ""
18323 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18324 msgstr ""
18325
18326 #. type: verbatim
18327 #: ../fish/guestfish.pod:891
18328 #, no-wrap
18329 msgid ""
18330 " tar-out /etc - | tar tf -\n"
18331 "\n"
18332 msgstr ""
18333
18334 #. type: textblock
18335 #: ../fish/guestfish.pod:893
18336 msgid ""
18337 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18338 "command (see L</PIPES>)."
18339 msgstr ""
18340
18341 #. type: textblock
18342 #: ../fish/guestfish.pod:896
18343 msgid ""
18344 "When using C<-> to read from stdin, the input is read up to the end of "
18345 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18346 "some arbitrary end marker:"
18347 msgstr ""
18348
18349 #. type: verbatim
18350 #: ../fish/guestfish.pod:900
18351 #, no-wrap
18352 msgid ""
18353 " upload -<<END /foo\n"
18354 " input line 1\n"
18355 " input line 2\n"
18356 " input line 3\n"
18357 " END\n"
18358 "\n"
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:906
18363 msgid ""
18364 "Any string of characters can be used instead of C<END>.  The end marker must "
18365 "appear on a line of its own, without any preceeding or following characters "
18366 "(not even spaces)."
18367 msgstr ""
18368
18369 #. type: textblock
18370 #: ../fish/guestfish.pod:910
18371 msgid ""
18372 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18373 "upload local files (so-called \"FileIn\" parameters in the generator)."
18374 msgstr ""
18375
18376 #. type: =head1
18377 #: ../fish/guestfish.pod:913
18378 msgid "EXIT ON ERROR BEHAVIOUR"
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/guestfish.pod:915
18383 msgid ""
18384 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18385 "taking commands from a human over a tty), and will exit on the first error "
18386 "in non-interactive mode (scripts, commands given on the command line)."
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../fish/guestfish.pod:920
18391 msgid ""
18392 "If you prefix a command with a I<-> character, then that command will not "
18393 "cause guestfish to exit, even if that (one) command returns an error."
18394 msgstr ""
18395
18396 #. type: =head1
18397 #: ../fish/guestfish.pod:924
18398 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish.pod:926
18403 msgid ""
18404 "Guestfish can be remote-controlled over a socket.  This is useful "
18405 "particularly in shell scripts where you want to make several different "
18406 "changes to a filesystem, but you don't want the overhead of starting up a "
18407 "guestfish process each time."
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:931
18412 msgid "Start a guestfish server process using:"
18413 msgstr ""
18414
18415 #. type: verbatim
18416 #: ../fish/guestfish.pod:933
18417 #, no-wrap
18418 msgid ""
18419 " eval \"`guestfish --listen`\"\n"
18420 "\n"
18421 msgstr ""
18422
18423 #. type: textblock
18424 #: ../fish/guestfish.pod:935
18425 msgid "and then send it commands by doing:"
18426 msgstr ""
18427
18428 #. type: verbatim
18429 #: ../fish/guestfish.pod:937
18430 #, no-wrap
18431 msgid ""
18432 " guestfish --remote cmd [...]\n"
18433 "\n"
18434 msgstr ""
18435
18436 #. type: textblock
18437 #: ../fish/guestfish.pod:939
18438 msgid "To cause the server to exit, send it the exit command:"
18439 msgstr ""
18440
18441 #. type: textblock
18442 #: ../fish/guestfish.pod:943
18443 msgid ""
18444 "Note that the server will normally exit if there is an error in a command.  "
18445 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18446 "BEHAVIOUR>."
18447 msgstr ""
18448
18449 #. type: =head2
18450 #: ../fish/guestfish.pod:947
18451 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish.pod:949
18456 msgid ""
18457 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18458 "is how the I<--remote> option knows where to send the commands.  You can "
18459 "have several guestfish listener processes running using:"
18460 msgstr ""
18461
18462 #. type: verbatim
18463 #: ../fish/guestfish.pod:953
18464 #, no-wrap
18465 msgid ""
18466 " eval \"`guestfish --listen`\"\n"
18467 " pid1=$GUESTFISH_PID\n"
18468 " eval \"`guestfish --listen`\"\n"
18469 " pid2=$GUESTFISH_PID\n"
18470 " ...\n"
18471 " guestfish --remote=$pid1 cmd\n"
18472 " guestfish --remote=$pid2 cmd\n"
18473 "\n"
18474 msgstr ""
18475
18476 #. type: =head2
18477 #: ../fish/guestfish.pod:961
18478 msgid "REMOTE CONTROL AND CSH"
18479 msgstr ""
18480
18481 #. type: textblock
18482 #: ../fish/guestfish.pod:963
18483 msgid ""
18484 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18485 "option:"
18486 msgstr ""
18487
18488 #. type: verbatim
18489 #: ../fish/guestfish.pod:966
18490 #, no-wrap
18491 msgid ""
18492 " eval \"`guestfish --listen --csh`\"\n"
18493 "\n"
18494 msgstr ""
18495
18496 #. type: =head2
18497 #: ../fish/guestfish.pod:968
18498 msgid "REMOTE CONTROL DETAILS"
18499 msgstr ""
18500
18501 #. type: textblock
18502 #: ../fish/guestfish.pod:970
18503 msgid ""
18504 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18505 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18506 "and C<$PID> is the process ID of the server."
18507 msgstr ""
18508
18509 #. type: textblock
18510 #: ../fish/guestfish.pod:974
18511 msgid "Guestfish client and server versions must match exactly."
18512 msgstr ""
18513
18514 #. type: =head2
18515 #: ../fish/guestfish.pod:976
18516 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18517 msgstr ""
18518
18519 #. type: textblock
18520 #: ../fish/guestfish.pod:978
18521 msgid ""
18522 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18523 "context hangs, ie. don't do (note the backquotes):"
18524 msgstr ""
18525
18526 #. type: verbatim
18527 #: ../fish/guestfish.pod:981
18528 #, no-wrap
18529 msgid ""
18530 " a=`guestfish --remote run`\n"
18531 "\n"
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fish/guestfish.pod:983
18536 msgid ""
18537 "Since the C<run> command produces no output on stdout, this is not useful "
18538 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18539 "cgi?id=592910>."
18540 msgstr ""
18541
18542 #. type: =head1
18543 #: ../fish/guestfish.pod:987
18544 msgid "PREPARED DISK IMAGES"
18545 msgstr ""
18546
18547 #. type: textblock
18548 #: ../fish/guestfish.pod:989
18549 msgid ""
18550 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18551 "preformatted disk images that guestfish can make for you to save typing.  "
18552 "This is particularly useful for testing purposes.  This option is used "
18553 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18554 "can be mixed with I<-a>)."
18555 msgstr ""
18556
18557 #. type: textblock
18558 #: ../fish/guestfish.pod:995
18559 msgid ""
18560 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18561 "the second and so on.  Existing files in the current directory are "
18562 "I<overwritten>."
18563 msgstr ""
18564
18565 #. type: textblock
18566 #: ../fish/guestfish.pod:999
18567 msgid ""
18568 "The type briefly describes how the disk should be sized, partitioned, how "
18569 "filesystem(s) should be created, and how content should be added.  "
18570 "Optionally the type can be followed by extra parameters, separated by C<:> "
18571 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18572 "allocated disk, containing a single partition, with the partition formatted "
18573 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18574 "disk instead."
18575 msgstr ""
18576
18577 #. type: textblock
18578 #: ../fish/guestfish.pod:1007
18579 msgid "To list the available types and any extra parameters they take, run:"
18580 msgstr ""
18581
18582 #. type: textblock
18583 #: ../fish/guestfish.pod:1011
18584 msgid ""
18585 "Note that the prepared filesystem is not mounted.  You would usually have to "
18586 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish.pod:1015
18591 msgid ""
18592 "If any I<-N> or I<--new> options are given, the guest is automatically "
18593 "launched."
18594 msgstr ""
18595
18596 #. type: textblock
18597 #: ../fish/guestfish.pod:1020
18598 msgid "Create a 100MB disk with an ext4-formatted partition:"
18599 msgstr ""
18600
18601 #. type: verbatim
18602 #: ../fish/guestfish.pod:1022
18603 #, no-wrap
18604 msgid ""
18605 " guestfish -N fs:ext4\n"
18606 "\n"
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:1024
18611 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18612 msgstr ""
18613
18614 #. type: verbatim
18615 #: ../fish/guestfish.pod:1026
18616 #, no-wrap
18617 msgid ""
18618 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18619 "\n"
18620 msgstr ""
18621
18622 #. type: textblock
18623 #: ../fish/guestfish.pod:1028
18624 msgid "Create a blank 200MB disk:"
18625 msgstr ""
18626
18627 #. type: verbatim
18628 #: ../fish/guestfish.pod:1030
18629 #, no-wrap
18630 msgid ""
18631 " guestfish -N disk:200M\n"
18632 "\n"
18633 msgstr ""
18634
18635 #. type: =head1
18636 #: ../fish/guestfish.pod:1032
18637 msgid "PROGRESS BARS"
18638 msgstr ""
18639
18640 #. type: textblock
18641 #: ../fish/guestfish.pod:1034
18642 msgid ""
18643 "Some (not all) long-running commands send progress notification messages as "
18644 "they are running.  Guestfish turns these messages into progress bars."
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:1038
18649 msgid ""
18650 "When a command that supports progress bars takes longer than two seconds to "
18651 "run, and if progress bars are enabled, then you will see one appearing below "
18652 "the command:"
18653 msgstr ""
18654
18655 #. type: verbatim
18656 #: ../fish/guestfish.pod:1042
18657 #, no-wrap
18658 msgid ""
18659 " ><fs> copy-size /large-file /another-file 2048M\n"
18660 " / 10% [#####-----------------------------------------] 00:30\n"
18661 "\n"
18662 msgstr ""
18663
18664 #. type: textblock
18665 #: ../fish/guestfish.pod:1045
18666 msgid ""
18667 "The spinner on the left hand side moves round once for every progress "
18668 "notification received from the backend.  This is a (reasonably) golden "
18669 "assurance that the command is \"doing something\" even if the progress bar "
18670 "is not moving, because the command is able to send the progress "
18671 "notifications.  When the bar reaches 100% and the command finishes, the "
18672 "spinner disappears."
18673 msgstr ""
18674
18675 #. type: textblock
18676 #: ../fish/guestfish.pod:1052
18677 msgid ""
18678 "Progress bars are enabled by default when guestfish is used interactively.  "
18679 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18680 "and you can disable them completely using I<--no-progress-bars>."
18681 msgstr ""
18682
18683 #. type: =head1
18684 #: ../fish/guestfish.pod:1057
18685 msgid "GUESTFISH COMMANDS"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fish/guestfish.pod:1059
18690 msgid ""
18691 "The commands in this section are guestfish convenience commands, in other "
18692 "words, they are not part of the L<guestfs(3)> API."
18693 msgstr ""
18694
18695 #. type: =head2
18696 #: ../fish/guestfish.pod:1062
18697 msgid "help"
18698 msgstr ""
18699
18700 #. type: verbatim
18701 #: ../fish/guestfish.pod:1064
18702 #, no-wrap
18703 msgid ""
18704 " help\n"
18705 " help cmd\n"
18706 "\n"
18707 msgstr ""
18708
18709 #. type: textblock
18710 #: ../fish/guestfish.pod:1067
18711 msgid "Without any parameter, this provides general help."
18712 msgstr ""
18713
18714 #. type: textblock
18715 #: ../fish/guestfish.pod:1069
18716 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18717 msgstr ""
18718
18719 #. type: =head2
18720 #: ../fish/guestfish.pod:1071
18721 msgid "quit | exit"
18722 msgstr ""
18723
18724 #. type: textblock
18725 #: ../fish/guestfish.pod:1073
18726 msgid "This exits guestfish.  You can also use C<^D> key."
18727 msgstr ""
18728
18729 #. type: textblock
18730 #: ../fish/guestfish.pod:1075
18731 msgid "@FISH_COMMANDS@"
18732 msgstr ""
18733
18734 #. type: =head1
18735 #: ../fish/guestfish.pod:1077
18736 msgid "COMMANDS"
18737 msgstr ""
18738
18739 #. type: textblock
18740 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
18741 msgid "@ACTIONS@"
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fish/guestfish.pod:1083
18746 msgid ""
18747 "guestfish returns 0 if the commands completed without error, or 1 if there "
18748 "was an error."
18749 msgstr ""
18750
18751 #. type: =item
18752 #: ../fish/guestfish.pod:1090
18753 msgid "EDITOR"
18754 msgstr ""
18755
18756 #. type: textblock
18757 #: ../fish/guestfish.pod:1092
18758 msgid ""
18759 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18760 "C<vi>."
18761 msgstr ""
18762
18763 #. type: =item
18764 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3110
18765 msgid "FEBOOTSTRAP_KERNEL"
18766 msgstr ""
18767
18768 #. type: =item
18769 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3112
18770 msgid "FEBOOTSTRAP_MODULES"
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3114
18775 msgid ""
18776 "These two environment variables allow the kernel that libguestfs uses in the "
18777 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18778 "most recent host kernel is chosen.  For more information about kernel "
18779 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18780 "available in febootstrap E<ge> 3.8."
18781 msgstr ""
18782
18783 #. type: =item
18784 #: ../fish/guestfish.pod:1105
18785 msgid "GUESTFISH_DISPLAY_IMAGE"
18786 msgstr ""
18787
18788 #. type: textblock
18789 #: ../fish/guestfish.pod:1107
18790 msgid ""
18791 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18792 "If not set, it uses L<display(1)>."
18793 msgstr ""
18794
18795 #. type: =item
18796 #: ../fish/guestfish.pod:1110
18797 msgid "GUESTFISH_PID"
18798 msgstr ""
18799
18800 #. type: textblock
18801 #: ../fish/guestfish.pod:1112
18802 msgid ""
18803 "Used with the I<--remote> option to specify the remote guestfish process to "
18804 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18805 msgstr ""
18806
18807 #. type: =item
18808 #: ../fish/guestfish.pod:1116
18809 msgid "HEXEDITOR"
18810 msgstr ""
18811
18812 #. type: textblock
18813 #: ../fish/guestfish.pod:1118
18814 msgid ""
18815 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18816 "not specified, the external L<hexedit(1)> program is used."
18817 msgstr ""
18818
18819 #. type: =item
18820 #: ../fish/guestfish.pod:1122
18821 msgid "HOME"
18822 msgstr ""
18823
18824 #. type: textblock
18825 #: ../fish/guestfish.pod:1124
18826 msgid ""
18827 "If compiled with GNU readline support, various files in the home directory "
18828 "can be used.  See L</FILES>."
18829 msgstr ""
18830
18831 #. type: =item
18832 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3120
18833 msgid "LIBGUESTFS_APPEND"
18834 msgstr ""
18835
18836 #. type: textblock
18837 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3122
18838 msgid "Pass additional options to the guest kernel."
18839 msgstr ""
18840
18841 #. type: =item
18842 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3124
18843 msgid "LIBGUESTFS_DEBUG"
18844 msgstr ""
18845
18846 #. type: textblock
18847 #: ../fish/guestfish.pod:1133
18848 msgid ""
18849 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18850 "effect as using the B<-v> option."
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3129
18855 msgid "LIBGUESTFS_MEMSIZE"
18856 msgstr ""
18857
18858 #. type: textblock
18859 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3131
18860 msgid ""
18861 "Set the memory allocated to the qemu process, in megabytes.  For example:"
18862 msgstr ""
18863
18864 #. type: verbatim
18865 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3134
18866 #, no-wrap
18867 msgid ""
18868 " LIBGUESTFS_MEMSIZE=700\n"
18869 "\n"
18870 msgstr ""
18871
18872 #. type: =item
18873 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3136
18874 msgid "LIBGUESTFS_PATH"
18875 msgstr ""
18876
18877 #. type: textblock
18878 #: ../fish/guestfish.pod:1145
18879 msgid ""
18880 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18881 "the discussion of paths in L<guestfs(3)>."
18882 msgstr ""
18883
18884 #. type: =item
18885 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3141
18886 msgid "LIBGUESTFS_QEMU"
18887 msgstr ""
18888
18889 #. type: textblock
18890 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3143
18891 msgid ""
18892 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18893 "which was found at compile time by the configure script is used."
18894 msgstr ""
18895
18896 #. type: =item
18897 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3149
18898 msgid "LIBGUESTFS_TRACE"
18899 msgstr ""
18900
18901 #. type: textblock
18902 #: ../fish/guestfish.pod:1156
18903 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18904 msgstr ""
18905
18906 #. type: =item
18907 #: ../fish/guestfish.pod:1158
18908 msgid "PAGER"
18909 msgstr ""
18910
18911 #. type: textblock
18912 #: ../fish/guestfish.pod:1160
18913 msgid ""
18914 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18915 "C<more>."
18916 msgstr ""
18917
18918 #. type: =item
18919 #: ../fish/guestfish.pod:1163 ../sparsify/virt-sparsify.pod:236
18920 #: ../src/guestfs.pod:3154
18921 msgid "TMPDIR"
18922 msgstr ""
18923
18924 #. type: textblock
18925 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3156
18926 msgid ""
18927 "Location of temporary directory, defaults to C</tmp> except for the cached "
18928 "supermin appliance which defaults to C</var/tmp>."
18929 msgstr ""
18930
18931 #. type: textblock
18932 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3159
18933 msgid ""
18934 "If libguestfs was compiled to use the supermin appliance then the real "
18935 "appliance is cached in this directory, shared between all handles belonging "
18936 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18937 "use in case C</var/tmp> is not large enough."
18938 msgstr ""
18939
18940 #. type: =head1
18941 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
18942 #: ../rescue/virt-rescue.pod:273
18943 msgid "FILES"
18944 msgstr ""
18945
18946 #. type: =item
18947 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
18948 #: ../rescue/virt-rescue.pod:277
18949 msgid "$HOME/.libguestfs-tools.rc"
18950 msgstr ""
18951
18952 #. type: =item
18953 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
18954 #: ../rescue/virt-rescue.pod:279
18955 msgid "/etc/libguestfs-tools.conf"
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
18960 #: ../rescue/virt-rescue.pod:281
18961 msgid ""
18962 "This configuration file controls the default read-only or read-write mode "
18963 "(I<--ro> or I<--rw>)."
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../fish/guestfish.pod:1187
18968 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18969 msgstr ""
18970
18971 #. type: =item
18972 #: ../fish/guestfish.pod:1189
18973 msgid "$HOME/.guestfish"
18974 msgstr ""
18975
18976 #. type: textblock
18977 #: ../fish/guestfish.pod:1191
18978 msgid ""
18979 "If compiled with GNU readline support, then the command history is saved in "
18980 "this file."
18981 msgstr ""
18982
18983 #. type: =item
18984 #: ../fish/guestfish.pod:1194
18985 msgid "$HOME/.inputrc"
18986 msgstr ""
18987
18988 #. type: =item
18989 #: ../fish/guestfish.pod:1196
18990 msgid "/etc/inputrc"
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:1198
18995 msgid ""
18996 "If compiled with GNU readline support, then these files can be used to "
18997 "configure readline.  For further information, please see L<readline(3)/"
18998 "INITIALIZATION FILE>."
18999 msgstr ""
19000
19001 #. type: textblock
19002 #: ../fish/guestfish.pod:1202
19003 msgid "To write rules which only apply to guestfish, use:"
19004 msgstr ""
19005
19006 #. type: verbatim
19007 #: ../fish/guestfish.pod:1204
19008 #, no-wrap
19009 msgid ""
19010 " $if guestfish\n"
19011 " ...\n"
19012 " $endif\n"
19013 "\n"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fish/guestfish.pod:1208
19018 msgid ""
19019 "Variables that you can set in inputrc that change the behaviour of guestfish "
19020 "in useful ways include:"
19021 msgstr ""
19022
19023 #. type: =item
19024 #: ../fish/guestfish.pod:1213
19025 msgid "completion-ignore-case (default: on)"
19026 msgstr ""
19027
19028 #. type: textblock
19029 #: ../fish/guestfish.pod:1215
19030 msgid ""
19031 "By default, guestfish will ignore case when tab-completing paths on the "
19032 "disk.  Use:"
19033 msgstr ""
19034
19035 #. type: verbatim
19036 #: ../fish/guestfish.pod:1218
19037 #, no-wrap
19038 msgid ""
19039 " set completion-ignore-case off\n"
19040 "\n"
19041 msgstr ""
19042
19043 #. type: textblock
19044 #: ../fish/guestfish.pod:1220
19045 msgid "to make guestfish case sensitive."
19046 msgstr ""
19047
19048 #. type: =item
19049 #: ../fish/guestfish.pod:1224
19050 msgid "test1.img"
19051 msgstr ""
19052
19053 #. type: =item
19054 #: ../fish/guestfish.pod:1226
19055 msgid "test2.img (etc)"
19056 msgstr ""
19057
19058 #. type: textblock
19059 #: ../fish/guestfish.pod:1228
19060 msgid ""
19061 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19062 "will be created in the file C<test1.img> in the current directory.  The "
19063 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19064 "the same name will be overwritten."
19065 msgstr ""
19066
19067 #. type: textblock
19068 #: ../fish/guestfish.pod:1237
19069 msgid ""
19070 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19071 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19072 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19073 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19074 ">, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)"
19075 ">, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-"
19076 "helper(8)>."
19077 msgstr ""
19078
19079 #. type: textblock
19080 #: ../fish/guestfish.pod:1267 ../src/guestfs.pod:3248
19081 #: ../test-tool/libguestfs-test-tool.pod:112
19082 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/virt-copy-in.pod:5
19087 msgid ""
19088 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19089 msgstr ""
19090
19091 #. type: verbatim
19092 #: ../fish/virt-copy-in.pod:9
19093 #, no-wrap
19094 msgid ""
19095 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19096 "\n"
19097 msgstr ""
19098
19099 #. type: verbatim
19100 #: ../fish/virt-copy-in.pod:11
19101 #, no-wrap
19102 msgid ""
19103 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19104 "\n"
19105 msgstr ""
19106
19107 #. type: textblock
19108 #: ../fish/virt-copy-in.pod:15
19109 msgid ""
19110 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19111 "causing disk corruption.  The virtual machine must be shut down before you "
19112 "use this command."
19113 msgstr ""
19114
19115 #. type: textblock
19116 #: ../fish/virt-copy-in.pod:21
19117 msgid ""
19118 "C<virt-copy-in> copies files and directories from the local disk into a "
19119 "virtual machine disk image or named libvirt domain."
19120 msgstr ""
19121
19122 #. type: textblock
19123 #: ../fish/virt-copy-in.pod:24
19124 msgid ""
19125 "You can give one of more filenames and directories on the command line.  "
19126 "Directories are copied in recursively.  The final parameter must be the "
19127 "destination directory in the disk image which must be an absolute path "
19128 "starting with a C</> character."
19129 msgstr ""
19130
19131 #. type: verbatim
19132 #: ../fish/virt-copy-in.pod:33
19133 #, no-wrap
19134 msgid ""
19135 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19136 "\n"
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19141 msgid "Upload a home directory to a guest:"
19142 msgstr ""
19143
19144 #. type: verbatim
19145 #: ../fish/virt-copy-in.pod:37
19146 #, no-wrap
19147 msgid ""
19148 " virt-copy-in -d MyGuest skel /home\n"
19149 "\n"
19150 msgstr ""
19151
19152 #. type: =head1
19153 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19154 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19155 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19156 msgstr ""
19157
19158 #. type: textblock
19159 #: ../fish/virt-copy-in.pod:41
19160 msgid ""
19161 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19162 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19163 "are probably better off using guestfish directly."
19164 msgstr ""
19165
19166 #. type: textblock
19167 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19168 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19169 msgid ""
19170 "Since the shell script just passes options straight to guestfish, read "
19171 "L<guestfish(1)> to see the full list of options."
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/virt-copy-in.pod:52
19176 msgid ""
19177 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19178 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19179 msgstr ""
19180
19181 #. type: textblock
19182 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19183 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19184 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19185 msgstr ""
19186
19187 #. type: textblock
19188 #: ../fish/virt-copy-out.pod:5
19189 msgid ""
19190 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19191 "image."
19192 msgstr ""
19193
19194 #. type: verbatim
19195 #: ../fish/virt-copy-out.pod:9
19196 #, no-wrap
19197 msgid ""
19198 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19199 "\n"
19200 msgstr ""
19201
19202 #. type: verbatim
19203 #: ../fish/virt-copy-out.pod:11
19204 #, no-wrap
19205 msgid ""
19206 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19207 "\n"
19208 msgstr ""
19209
19210 #. type: textblock
19211 #: ../fish/virt-copy-out.pod:15
19212 msgid ""
19213 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19214 "image or named libvirt domain."
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../fish/virt-copy-out.pod:18
19219 msgid ""
19220 "You can give one of more filenames and directories on the command line.  "
19221 "Directories are copied out recursively."
19222 msgstr ""
19223
19224 #. type: textblock
19225 #: ../fish/virt-copy-out.pod:23
19226 msgid "Download the home directories from a virtual machine:"
19227 msgstr ""
19228
19229 #. type: verbatim
19230 #: ../fish/virt-copy-out.pod:25
19231 #, no-wrap
19232 msgid ""
19233 " mkdir homes\n"
19234 " virt-copy-out -d MyGuest /home homes\n"
19235 "\n"
19236 msgstr ""
19237
19238 #. type: textblock
19239 #: ../fish/virt-copy-out.pod:30
19240 msgid ""
19241 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19242 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19243 "are probably better off using guestfish directly."
19244 msgstr ""
19245
19246 #. type: textblock
19247 #: ../fish/virt-copy-out.pod:41
19248 msgid ""
19249 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19250 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fish/virt-tar-in.pod:5
19255 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19256 msgstr ""
19257
19258 #. type: verbatim
19259 #: ../fish/virt-tar-in.pod:9
19260 #, no-wrap
19261 msgid ""
19262 " virt-tar-in -a disk.img data.tar /destination\n"
19263 "\n"
19264 msgstr ""
19265
19266 #. type: verbatim
19267 #: ../fish/virt-tar-in.pod:11
19268 #, no-wrap
19269 msgid ""
19270 " virt-tar-in -d domain data.tar /destination\n"
19271 "\n"
19272 msgstr ""
19273
19274 #. type: verbatim
19275 #: ../fish/virt-tar-in.pod:13
19276 #, no-wrap
19277 msgid ""
19278 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19279 "\n"
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../fish/virt-tar-in.pod:17
19284 msgid ""
19285 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19286 "causing disk corruption.  The virtual machine must be shut down before you "
19287 "use this command."
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/virt-tar-in.pod:23
19292 msgid ""
19293 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19294 "image or named libvirt domain."
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fish/virt-tar-in.pod:26
19299 msgid ""
19300 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19301 "standard input.  The second parameter is the absolute target directory to "
19302 "unpack into."
19303 msgstr ""
19304
19305 #. type: verbatim
19306 #: ../fish/virt-tar-in.pod:34
19307 #, no-wrap
19308 msgid ""
19309 " virt-tar-in -d MyGuest homes.tar /home\n"
19310 "\n"
19311 msgstr ""
19312
19313 #. type: textblock
19314 #: ../fish/virt-tar-in.pod:38
19315 msgid ""
19316 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19317 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19318 "probably better off using guestfish directly."
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/virt-tar-in.pod:49
19323 msgid ""
19324 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19325 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19326 "org/>."
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fish/virt-tar-out.pod:5
19331 msgid ""
19332 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19333 msgstr ""
19334
19335 #. type: verbatim
19336 #: ../fish/virt-tar-out.pod:9
19337 #, no-wrap
19338 msgid ""
19339 " virt-tar-out -a disk.img /dir files.tar\n"
19340 "\n"
19341 msgstr ""
19342
19343 #. type: verbatim
19344 #: ../fish/virt-tar-out.pod:11
19345 #, no-wrap
19346 msgid ""
19347 " virt-tar-out -d domain /dir files.tar\n"
19348 "\n"
19349 msgstr ""
19350
19351 #. type: verbatim
19352 #: ../fish/virt-tar-out.pod:13
19353 #, no-wrap
19354 msgid ""
19355 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19356 "\n"
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/virt-tar-out.pod:17
19361 msgid ""
19362 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19363 msgstr ""
19364
19365 #. type: textblock
19366 #: ../fish/virt-tar-out.pod:20
19367 msgid ""
19368 "The first parameter is the absolute path of the virtual machine directory.  "
19369 "The second parameter is the tar file to write.  Use C<-> to write to "
19370 "standard output."
19371 msgstr ""
19372
19373 #. type: textblock
19374 #: ../fish/virt-tar-out.pod:26
19375 msgid "Download the home directories from a guest:"
19376 msgstr ""
19377
19378 #. type: verbatim
19379 #: ../fish/virt-tar-out.pod:28
19380 #, no-wrap
19381 msgid ""
19382 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19383 "\n"
19384 msgstr ""
19385
19386 #. type: textblock
19387 #: ../fish/virt-tar-out.pod:32
19388 msgid ""
19389 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19390 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19391 "are probably better off using guestfish directly."
19392 msgstr ""
19393
19394 #. type: textblock
19395 #: ../fish/virt-tar-out.pod:43
19396 msgid ""
19397 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19398 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19399 msgstr ""
19400
19401 #. type: textblock
19402 #: ../fuse/guestmount.pod:5
19403 msgid ""
19404 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19405 msgstr ""
19406
19407 #. type: verbatim
19408 #: ../fuse/guestmount.pod:9
19409 #, no-wrap
19410 msgid ""
19411 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19412 "\n"
19413 msgstr ""
19414
19415 #. type: verbatim
19416 #: ../fuse/guestmount.pod:11
19417 #, no-wrap
19418 msgid ""
19419 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19420 "\n"
19421 msgstr ""
19422
19423 #. type: verbatim
19424 #: ../fuse/guestmount.pod:13
19425 #, no-wrap
19426 msgid ""
19427 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19428 "\n"
19429 msgstr ""
19430
19431 #. type: textblock
19432 #: ../fuse/guestmount.pod:17
19433 msgid ""
19434 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19435 "machines.  If you do this, you risk disk corruption in the VM."
19436 msgstr ""
19437
19438 #. type: textblock
19439 #: ../fuse/guestmount.pod:22
19440 msgid ""
19441 "The guestmount program can be used to mount virtual machine filesystems and "
19442 "other disk images on the host.  It uses libguestfs for access to the guest "
19443 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19444 "a mountable device."
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../fuse/guestmount.pod:27
19449 msgid ""
19450 "Along with other options, you have to give at least one device (I<-a> "
19451 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19452 "option) or use the I<-i> inspection option.  How this works is better "
19453 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19454 "below."
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../fuse/guestmount.pod:33
19459 msgid ""
19460 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19461 "by you, and the filesystem will not be visible to any other users unless you "
19462 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19463 "the filesystem, use the C<fusermount -u> command."
19464 msgstr ""
19465
19466 #. type: textblock
19467 #: ../fuse/guestmount.pod:41
19468 msgid ""
19469 "For a typical Windows guest which has its main filesystem on the first "
19470 "partition:"
19471 msgstr ""
19472
19473 #. type: verbatim
19474 #: ../fuse/guestmount.pod:44
19475 #, no-wrap
19476 msgid ""
19477 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19478 "\n"
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../fuse/guestmount.pod:46
19483 msgid ""
19484 "For a typical Linux guest which has a /boot filesystem on the first "
19485 "partition, and the root filesystem on a logical volume:"
19486 msgstr ""
19487
19488 #. type: verbatim
19489 #: ../fuse/guestmount.pod:49
19490 #, no-wrap
19491 msgid ""
19492 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19493 "\n"
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fuse/guestmount.pod:51
19498 msgid "To get libguestfs to detect guest mountpoints for you:"
19499 msgstr ""
19500
19501 #. type: verbatim
19502 #: ../fuse/guestmount.pod:53
19503 #, no-wrap
19504 msgid ""
19505 " guestmount -a guest.img -i --ro /mnt\n"
19506 "\n"
19507 msgstr ""
19508
19509 #. type: textblock
19510 #: ../fuse/guestmount.pod:55
19511 msgid "For a libvirt guest called \"Guest\" you could do:"
19512 msgstr ""
19513
19514 #. type: verbatim
19515 #: ../fuse/guestmount.pod:57
19516 #, no-wrap
19517 msgid ""
19518 " guestmount -d Guest -i --ro /mnt\n"
19519 "\n"
19520 msgstr ""
19521
19522 #. type: textblock
19523 #: ../fuse/guestmount.pod:59
19524 msgid ""
19525 "If you don't know what filesystems are contained in a guest or disk image, "
19526 "use L<virt-filesystems(1)> first:"
19527 msgstr ""
19528
19529 #. type: verbatim
19530 #: ../fuse/guestmount.pod:62
19531 #, no-wrap
19532 msgid ""
19533 " virt-filesystems MyGuest\n"
19534 "\n"
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fuse/guestmount.pod:64
19539 msgid ""
19540 "If you want to trace the libguestfs calls but without excessive debugging "
19541 "information, we recommend:"
19542 msgstr ""
19543
19544 #. type: verbatim
19545 #: ../fuse/guestmount.pod:67
19546 #, no-wrap
19547 msgid ""
19548 " guestmount [...] --trace /mnt\n"
19549 "\n"
19550 msgstr ""
19551
19552 #. type: textblock
19553 #: ../fuse/guestmount.pod:69
19554 msgid "If you want to debug the program, we recommend:"
19555 msgstr ""
19556
19557 #. type: verbatim
19558 #: ../fuse/guestmount.pod:71
19559 #, no-wrap
19560 msgid ""
19561 " guestmount [...] --trace --verbose /mnt\n"
19562 "\n"
19563 msgstr ""
19564
19565 #. type: =head1
19566 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19567 #: ../resize/virt-resize.pod:544
19568 msgid "NOTES"
19569 msgstr ""
19570
19571 #. type: =head2
19572 #: ../fuse/guestmount.pod:75
19573 msgid "Other users cannot see the filesystem by default"
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../fuse/guestmount.pod:77
19578 msgid ""
19579 "If you mount a filesystem as one user (eg. root), then other users will not "
19580 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19581 "option when mounting:"
19582 msgstr ""
19583
19584 #. type: verbatim
19585 #: ../fuse/guestmount.pod:81
19586 #, no-wrap
19587 msgid ""
19588 " sudo guestmount [...] -o allow_other /mnt\n"
19589 "\n"
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../fuse/guestmount.pod:91
19594 msgid "Add a block device or virtual machine image."
19595 msgstr ""
19596
19597 #. type: =item
19598 #: ../fuse/guestmount.pod:114
19599 msgid "B<--dir-cache-timeout N>"
19600 msgstr ""
19601
19602 #. type: textblock
19603 #: ../fuse/guestmount.pod:116
19604 msgid ""
19605 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19606 "seconds.  The readdir cache [actually, there are several semi-independent "
19607 "caches] is populated after a readdir(2) call with the stat and extended "
19608 "attributes of the files in the directory, in anticipation that they will be "
19609 "requested soon after."
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fuse/guestmount.pod:122
19614 msgid ""
19615 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19616 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19617 "requests, only cache existing ones."
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../fuse/guestmount.pod:142
19622 msgid ""
19623 "If you have untrusted raw-format guest disk images, you should use this "
19624 "option to specify the disk format.  This avoids a possible security problem "
19625 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19626 "guestfs_add_drive_opts>."
19627 msgstr ""
19628
19629 #. type: =item
19630 #: ../fuse/guestmount.pod:147
19631 msgid "B<--fuse-help>"
19632 msgstr ""
19633
19634 #. type: textblock
19635 #: ../fuse/guestmount.pod:149
19636 msgid "Display help on special FUSE options (see I<-o> below)."
19637 msgstr ""
19638
19639 #. type: textblock
19640 #: ../fuse/guestmount.pod:153
19641 msgid "Display brief help and exit."
19642 msgstr ""
19643
19644 #. type: textblock
19645 #: ../fuse/guestmount.pod:177
19646 msgid ""
19647 "Mount the named partition or logical volume on the given mountpoint B<in the "
19648 "guest> (this has nothing to do with mountpoints in the host)."
19649 msgstr ""
19650
19651 #. type: textblock
19652 #: ../fuse/guestmount.pod:180
19653 msgid ""
19654 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19655 "something on C</>."
19656 msgstr ""
19657
19658 #. type: textblock
19659 #: ../fuse/guestmount.pod:197
19660 msgid ""
19661 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19662 "unmounted.  If you specify this option, then we don't attempt to sync the "
19663 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19664 msgstr ""
19665
19666 #. type: =item
19667 #: ../fuse/guestmount.pod:202
19668 msgid "B<-o option>"
19669 msgstr ""
19670
19671 #. type: =item
19672 #: ../fuse/guestmount.pod:204
19673 msgid "B<--option option>"
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../fuse/guestmount.pod:206
19678 msgid "Pass extra options to FUSE."
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../fuse/guestmount.pod:208
19683 msgid ""
19684 "To get a list of all the extra options supported by FUSE, use the command "
19685 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19686 "of them are a good idea."
19687 msgstr ""
19688
19689 #. type: verbatim
19690 #: ../fuse/guestmount.pod:212
19691 #, no-wrap
19692 msgid ""
19693 " guestmount --fuse-help\n"
19694 "\n"
19695 msgstr ""
19696
19697 #. type: textblock
19698 #: ../fuse/guestmount.pod:214
19699 msgid "Some potentially useful FUSE options:"
19700 msgstr ""
19701
19702 #. type: =item
19703 #: ../fuse/guestmount.pod:218
19704 msgid "B<-o allow_other>"
19705 msgstr ""
19706
19707 #. type: textblock
19708 #: ../fuse/guestmount.pod:220
19709 msgid "Allow other users to see the filesystem."
19710 msgstr ""
19711
19712 #. type: =item
19713 #: ../fuse/guestmount.pod:222
19714 msgid "B<-o attr_timeout=N>"
19715 msgstr ""
19716
19717 #. type: textblock
19718 #: ../fuse/guestmount.pod:224
19719 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19720 msgstr ""
19721
19722 #. type: =item
19723 #: ../fuse/guestmount.pod:226
19724 msgid "B<-o kernel_cache>"
19725 msgstr ""
19726
19727 #. type: textblock
19728 #: ../fuse/guestmount.pod:228
19729 msgid ""
19730 "Allow the kernel to cache files (reduces the number of reads that have to go "
19731 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19732 "afford the extra memory usage."
19733 msgstr ""
19734
19735 #. type: =item
19736 #: ../fuse/guestmount.pod:232
19737 msgid "B<-o uid=N> B<-o gid=N>"
19738 msgstr ""
19739
19740 #. type: textblock
19741 #: ../fuse/guestmount.pod:234
19742 msgid ""
19743 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19744 "the chosen values."
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../fuse/guestmount.pod:243
19749 msgid ""
19750 "Add devices and mount everything read-only.  Also disallow writes and make "
19751 "the disk appear read-only to FUSE."
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fuse/guestmount.pod:246
19756 msgid ""
19757 "This is highly recommended if you are not going to edit the guest disk.  If "
19758 "the guest is running and this option is I<not> supplied, then there is a "
19759 "strong risk of disk corruption in the guest.  We try to prevent this from "
19760 "happening, but it is not always possible."
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19765 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19766 msgstr ""
19767
19768 #. type: textblock
19769 #: ../fuse/guestmount.pod:255
19770 msgid "Enable SELinux support for the guest."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fuse/guestmount.pod:261
19775 msgid "Enable verbose messages from underlying libguestfs."
19776 msgstr ""
19777
19778 #. type: textblock
19779 #: ../fuse/guestmount.pod:267
19780 msgid "Display the program version and exit."
19781 msgstr ""
19782
19783 #. type: textblock
19784 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
19785 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
19786 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19787 msgstr ""
19788
19789 #. type: =item
19790 #: ../fuse/guestmount.pod:280
19791 msgid "B<--trace>"
19792 msgstr ""
19793
19794 #. type: textblock
19795 #: ../fuse/guestmount.pod:282
19796 msgid "Trace libguestfs calls and entry into each FUSE function."
19797 msgstr ""
19798
19799 #. type: textblock
19800 #: ../fuse/guestmount.pod:284
19801 msgid "This also stops the daemon from forking into the background."
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../fuse/guestmount.pod:310
19806 msgid ""
19807 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19808 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
19809 "net/>."
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fuse/guestmount.pod:325
19814 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19815 msgstr ""
19816
19817 #. type: textblock
19818 #: ../inspector/virt-inspector.pod:5
19819 msgid ""
19820 "virt-inspector - Display operating system version and other information "
19821 "about a virtual machine"
19822 msgstr ""
19823
19824 #. type: verbatim
19825 #: ../inspector/virt-inspector.pod:9
19826 #, no-wrap
19827 msgid ""
19828 " virt-inspector [--options] -d domname\n"
19829 "\n"
19830 msgstr ""
19831
19832 #. type: verbatim
19833 #: ../inspector/virt-inspector.pod:11
19834 #, no-wrap
19835 msgid ""
19836 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19837 "\n"
19838 msgstr ""
19839
19840 #. type: verbatim
19841 #: ../inspector/virt-inspector.pod:15
19842 #, no-wrap
19843 msgid ""
19844 " virt-inspector domname\n"
19845 "\n"
19846 msgstr ""
19847
19848 #. type: verbatim
19849 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19850 #, no-wrap
19851 msgid ""
19852 " virt-inspector disk.img [disk.img ...]\n"
19853 "\n"
19854 msgstr ""
19855
19856 #. type: textblock
19857 #: ../inspector/virt-inspector.pod:21
19858 msgid ""
19859 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19860 "determine the version of the operating system and other information about "
19861 "the virtual machine."
19862 msgstr ""
19863
19864 #. type: textblock
19865 #: ../inspector/virt-inspector.pod:25
19866 msgid "Virt-inspector produces XML output for feeding into other programs."
19867 msgstr ""
19868
19869 #. type: textblock
19870 #: ../inspector/virt-inspector.pod:27
19871 msgid ""
19872 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19873 "the libvirt domain (see: C<virsh list --all>)."
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../inspector/virt-inspector.pod:30
19878 msgid ""
19879 "You can also run virt-inspector directly on disk images from a single "
19880 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19881 "has several block devices, in which case you should list several I<-a> "
19882 "options one after another, with the first corresponding to the guest's C</"
19883 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../inspector/virt-inspector.pod:37
19888 msgid ""
19889 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19890 "keys and similar."
19891 msgstr ""
19892
19893 #. type: textblock
19894 #: ../inspector/virt-inspector.pod:40
19895 msgid ""
19896 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19897 "inspect several virtual machines, you have to run virt-inspector several "
19898 "times (for example, from a shell script for-loop)."
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../inspector/virt-inspector.pod:45
19903 msgid ""
19904 "Because virt-inspector needs direct access to guest images, it won't "
19905 "normally work over remote libvirt connections."
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../inspector/virt-inspector.pod:48
19910 msgid ""
19911 "All of the information available from virt-inspector is also available "
19912 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19913 "The same information can also be fetched using guestfish or via libguestfs "
19914 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19915 "WITH OTHER PROGRAMMING LANGUAGES>)."
19916 msgstr ""
19917
19918 #. type: textblock
19919 #: ../inspector/virt-inspector.pod:81
19920 msgid ""
19921 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19922 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19923 "at all."
19924 msgstr ""
19925
19926 #. type: textblock
19927 #: ../inspector/virt-inspector.pod:94
19928 msgid ""
19929 "When prompting for keys and passphrases, virt-inspector normally turns "
19930 "echoing off so you cannot see what you are typing.  If you are not worried "
19931 "about Tempest attacks and there is no one else in the room you can specify "
19932 "this flag to see what you are typing."
19933 msgstr ""
19934
19935 #. type: textblock
19936 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
19937 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
19938 #: ../tools/virt-win-reg.pl:144
19939 msgid ""
19940 "Specify the format of disk images given on the command line.  If this is "
19941 "omitted then the format is autodetected from the content of the disk image."
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
19946 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
19947 #: ../tools/virt-win-reg.pl:148
19948 msgid ""
19949 "If disk images are requested from libvirt, then this program asks libvirt "
19950 "for this information.  In this case, the value of the format parameter is "
19951 "ignored."
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
19956 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
19957 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
19958 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
19959 msgid ""
19960 "If working with untrusted raw-format guest disk images, you should ensure "
19961 "the format is always specified."
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../inspector/virt-inspector.pod:139
19966 msgid "Previous versions of virt-inspector allowed you to write either:"
19967 msgstr ""
19968
19969 #. type: verbatim
19970 #: ../inspector/virt-inspector.pod:145
19971 #, no-wrap
19972 msgid ""
19973 " virt-inspector guestname\n"
19974 "\n"
19975 msgstr ""
19976
19977 #. type: =head1
19978 #: ../inspector/virt-inspector.pod:153
19979 msgid "XML FORMAT"
19980 msgstr ""
19981
19982 #. type: textblock
19983 #: ../inspector/virt-inspector.pod:155
19984 msgid ""
19985 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19986 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19987 "just an overview."
19988 msgstr ""
19989
19990 #. type: textblock
19991 #: ../inspector/virt-inspector.pod:159
19992 msgid ""
19993 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19994 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19995 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19996 "which is vanishingly rare in real world VMs."
19997 msgstr ""
19998
19999 #. type: =head2
20000 #: ../inspector/virt-inspector.pod:164
20001 msgid "E<lt>operatingsystemE<gt>"
20002 msgstr ""
20003
20004 #. type: textblock
20005 #: ../inspector/virt-inspector.pod:166
20006 msgid ""
20007 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20008 "describe the operating system, its architecture, the descriptive \"product "
20009 "name\" string, the type of OS and so on, as in this example:"
20010 msgstr ""
20011
20012 #. type: verbatim
20013 #: ../inspector/virt-inspector.pod:170
20014 #, no-wrap
20015 msgid ""
20016 " <operatingsystems>\n"
20017 "   <operatingsystem>\n"
20018 "     <root>/dev/sda2</root>\n"
20019 "     <name>windows</name>\n"
20020 "     <arch>i386</arch>\n"
20021 "     <distro>windows</distro>\n"
20022 "     <product_name>Windows 7 Enterprise</product_name>\n"
20023 "     <product_variant>Client</product_variant>\n"
20024 "     <major_version>6</major_version>\n"
20025 "     <minor_version>1</minor_version>\n"
20026 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20027 "     <format>installed</format>\n"
20028 "\n"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../inspector/virt-inspector.pod:183
20033 msgid ""
20034 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20035 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20036 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20037 "architecture.  The other fields are fairly self-explanatory, but because "
20038 "these fields are taken directly from the libguestfs inspection API you can "
20039 "find precise information from L<guestfs(3)/INSPECTION>."
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../inspector/virt-inspector.pod:191
20044 msgid ""
20045 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20046 "of view of libguestfs (block devices may have completely different names "
20047 "inside the VM itself)."
20048 msgstr ""
20049
20050 #. type: =head2
20051 #: ../inspector/virt-inspector.pod:195
20052 msgid "E<lt>mountpointsE<gt>"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../inspector/virt-inspector.pod:197
20057 msgid ""
20058 "Un*x-like guests typically have multiple filesystems which are mounted at "
20059 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20060 "element which looks like this:"
20061 msgstr ""
20062
20063 #. type: verbatim
20064 #: ../inspector/virt-inspector.pod:201
20065 #, no-wrap
20066 msgid ""
20067 " <operatingsystems>\n"
20068 "   <operatingsystem>\n"
20069 "     ...\n"
20070 "     <mountpoints>\n"
20071 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20072 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20073 "     </mountpoints>\n"
20074 "\n"
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../inspector/virt-inspector.pod:209
20079 msgid ""
20080 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20081 "and may have completely different names inside the guest.  Only mountable "
20082 "filesystems appear in this list, not things like swap devices."
20083 msgstr ""
20084
20085 #. type: =head2
20086 #: ../inspector/virt-inspector.pod:214
20087 msgid "E<lt>filesystemsE<gt>"
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../inspector/virt-inspector.pod:216
20092 msgid ""
20093 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20094 "filesystems belonging to the guest, including swap and empty partitions.  "
20095 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20096 "this OS or shared with this OS and other OSes)."
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../inspector/virt-inspector.pod:222
20101 msgid "You might see something like this:"
20102 msgstr ""
20103
20104 #. type: verbatim
20105 #: ../inspector/virt-inspector.pod:224
20106 #, no-wrap
20107 msgid ""
20108 " <operatingsystems>\n"
20109 "   <operatingsystem>\n"
20110 "     ...\n"
20111 "     <filesystems>\n"
20112 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20113 "         <type>ext4</type>\n"
20114 "         <label>Fedora-13-x86_64</label>\n"
20115 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20116 "       </filesystem>\n"
20117 "\n"
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../inspector/virt-inspector.pod:234
20122 msgid ""
20123 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20124 "the label, and the UUID."
20125 msgstr ""
20126
20127 #. type: =head2
20128 #: ../inspector/virt-inspector.pod:237
20129 msgid "E<lt>applicationsE<gt>"
20130 msgstr ""
20131
20132 #. type: textblock
20133 #: ../inspector/virt-inspector.pod:239
20134 msgid ""
20135 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20136 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20137 "machine."
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../inspector/virt-inspector.pod:243
20142 msgid ""
20143 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20144 "Typical values would be C<rpm> and C<deb>."
20145 msgstr ""
20146
20147 #. type: textblock
20148 #: ../inspector/virt-inspector.pod:246
20149 msgid ""
20150 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20151 "Typical values include C<yum>, C<up2date> and C<apt>"
20152 msgstr ""
20153
20154 #. type: textblock
20155 #: ../inspector/virt-inspector.pod:249
20156 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20157 msgstr ""
20158
20159 #. type: verbatim
20160 #: ../inspector/virt-inspector.pod:252
20161 #, no-wrap
20162 msgid ""
20163 " <operatingsystems>\n"
20164 "   <operatingsystem>\n"
20165 "     ...\n"
20166 "     <applications>\n"
20167 "       <application>\n"
20168 "         <name>coreutils</name>\n"
20169 "         <version>8.5</version>\n"
20170 "         <release>1</release>\n"
20171 "       </application>\n"
20172 "\n"
20173 msgstr ""
20174
20175 #. type: textblock
20176 #: ../inspector/virt-inspector.pod:262
20177 msgid ""
20178 "The version and release fields may not be available for some types guests.  "
20179 "Other fields are possible, see L<guestfs(3)/"
20180 "guestfs_inspect_list_applications>."
20181 msgstr ""
20182
20183 #. type: =head2
20184 #: ../inspector/virt-inspector.pod:266
20185 msgid "E<lt>drive_mappingsE<gt>"
20186 msgstr ""
20187
20188 #. type: textblock
20189 #: ../inspector/virt-inspector.pod:268
20190 msgid ""
20191 "For operating systems like Windows which use drive letters, virt-inspector "
20192 "is able to find out how drive letters map to filesystems."
20193 msgstr ""
20194
20195 #. type: verbatim
20196 #: ../inspector/virt-inspector.pod:272
20197 #, no-wrap
20198 msgid ""
20199 " <operatingsystems>\n"
20200 "   <operatingsystem>\n"
20201 "     ...\n"
20202 "     <drive_mappings>\n"
20203 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20204 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20205 "     </drive_mappings>\n"
20206 "\n"
20207 msgstr ""
20208
20209 #. type: textblock
20210 #: ../inspector/virt-inspector.pod:280
20211 msgid ""
20212 "In the example above, drive C maps to the filesystem on the second partition "
20213 "on the first disk, and drive E maps to the filesystem on the first partition "
20214 "on the second disk."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../inspector/virt-inspector.pod:284
20219 msgid ""
20220 "Note that this only covers permanent local filesystem mappings, not things "
20221 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20222 "here."
20223 msgstr ""
20224
20225 #. type: =head2
20226 #: ../inspector/virt-inspector.pod:288
20227 msgid "E<lt>iconE<gt>"
20228 msgstr ""
20229
20230 #. type: textblock
20231 #: ../inspector/virt-inspector.pod:290
20232 msgid ""
20233 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20234 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20235 "very large and high quality."
20236 msgstr ""
20237
20238 #. type: verbatim
20239 #: ../inspector/virt-inspector.pod:294
20240 #, no-wrap
20241 msgid ""
20242 " <operatingsystems>\n"
20243 "   <operatingsystem>\n"
20244 "     ...\n"
20245 "     <icon>\n"
20246 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20247 "       [... many lines of base64 data ...]\n"
20248 "     </icon>\n"
20249 "\n"
20250 msgstr ""
20251
20252 #. type: textblock
20253 #: ../inspector/virt-inspector.pod:302
20254 msgid ""
20255 "To display the icon, you have to extract it and convert the base64 data back "
20256 "to a binary file.  Use an XPath query or simply an editor to extract the "
20257 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20258 "to a PNG file:"
20259 msgstr ""
20260
20261 #. type: verbatim
20262 #: ../inspector/virt-inspector.pod:307
20263 #, no-wrap
20264 msgid ""
20265 " base64 -i -d < icon.data > icon.png\n"
20266 "\n"
20267 msgstr ""
20268
20269 #. type: =head2
20270 #: ../inspector/virt-inspector.pod:309
20271 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20272 msgstr ""
20273
20274 #. type: textblock
20275 #: ../inspector/virt-inspector.pod:311
20276 msgid ""
20277 "Virt-inspector can detect some operating system installers on install disks, "
20278 "live CDs, bootable USB keys and more."
20279 msgstr ""
20280
20281 #. type: textblock
20282 #: ../inspector/virt-inspector.pod:314
20283 msgid ""
20284 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20285 "fields may be present to indicate a live CD, network installer, or one part "
20286 "of a multipart CD.  For example:"
20287 msgstr ""
20288
20289 #. type: verbatim
20290 #: ../inspector/virt-inspector.pod:318
20291 #, no-wrap
20292 msgid ""
20293 " <operatingsystems>\n"
20294 "   <operatingsystem>\n"
20295 "     <root>/dev/sda</root>\n"
20296 "     <name>linux</name>\n"
20297 "     <arch>i386</arch>\n"
20298 "     <distro>ubuntu</distro>\n"
20299 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20300 "     <major_version>10</major_version>\n"
20301 "     <minor_version>10</minor_version>\n"
20302 "     <format>installer</format>\n"
20303 "     <live/>\n"
20304 "\n"
20305 msgstr ""
20306
20307 #. type: =head1
20308 #: ../inspector/virt-inspector.pod:330
20309 msgid "USING XPATH"
20310 msgstr ""
20311
20312 #. type: textblock
20313 #: ../inspector/virt-inspector.pod:332
20314 msgid ""
20315 "You can use the XPath query language to select parts of the XML.  We "
20316 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20317 msgstr ""
20318
20319 #. type: verbatim
20320 #: ../inspector/virt-inspector.pod:338
20321 #, no-wrap
20322 msgid ""
20323 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20324 " <filesystems>\n"
20325 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20326 "        <type>ext4</type>\n"
20327 " [...]\n"
20328 "\n"
20329 msgstr ""
20330
20331 #. type: verbatim
20332 #: ../inspector/virt-inspector.pod:344
20333 #, no-wrap
20334 msgid ""
20335 " $ virt-inspector -d Guest | \\\n"
20336 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20337 " ext4\n"
20338 "\n"
20339 msgstr ""
20340
20341 #. type: verbatim
20342 #: ../inspector/virt-inspector.pod:348
20343 #, no-wrap
20344 msgid ""
20345 " $ virt-inspector -d Guest | \\\n"
20346 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20347 " [displays the guest icon, if there is one]\n"
20348 "\n"
20349 msgstr ""
20350
20351 #. type: =head1
20352 #: ../inspector/virt-inspector.pod:359
20353 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20354 msgstr ""
20355
20356 #. type: textblock
20357 #: ../inspector/virt-inspector.pod:361
20358 msgid ""
20359 "Early versions of libguestfs shipped with a different virt-inspector program "
20360 "written in Perl (the current version is written in C).  The XML output of "
20361 "the Perl virt-inspector was different and it could also output in other "
20362 "formats like text."
20363 msgstr ""
20364
20365 #. type: textblock
20366 #: ../inspector/virt-inspector.pod:366
20367 msgid ""
20368 "The old virt-inspector is no longer supported or shipped with libguestfs."
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../inspector/virt-inspector.pod:369
20373 msgid ""
20374 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20375 "versions of virt-inspector with different names:"
20376 msgstr ""
20377
20378 #. type: verbatim
20379 #: ../inspector/virt-inspector.pod:372
20380 #, no-wrap
20381 msgid ""
20382 " virt-inspector     Old Perl version.\n"
20383 " virt-inspector2    New C version.\n"
20384 "\n"
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../inspector/virt-inspector.pod:382
20389 msgid ""
20390 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20391 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20392 msgstr ""
20393
20394 #. type: textblock
20395 #: ../inspector/virt-inspector.pod:399
20396 msgid "Matthew Booth L<mbooth@redhat.com>"
20397 msgstr ""
20398
20399 #. type: textblock
20400 #: ../java/examples/guestfs-java.pod:5
20401 msgid "guestfs-java - How to use libguestfs from Java"
20402 msgstr ""
20403
20404 #. type: verbatim
20405 #: ../java/examples/guestfs-java.pod:9
20406 #, no-wrap
20407 msgid ""
20408 " import com.redhat.et.libguestfs.*;\n"
20409 " \n"
20410 msgstr ""
20411
20412 #. type: verbatim
20413 #: ../java/examples/guestfs-java.pod:11
20414 #, no-wrap
20415 msgid ""
20416 " GuestFS g = new GuestFS ();\n"
20417 " g.add_drive_opts (\"disk.img\", null);\n"
20418 " g.launch ();\n"
20419 "\n"
20420 msgstr ""
20421
20422 #. type: textblock
20423 #: ../java/examples/guestfs-java.pod:17
20424 msgid ""
20425 "This manual page documents how to call libguestfs from the Java programming "
20426 "language.  This page just documents the differences from the C API and gives "
20427 "some examples.  If you are not familiar with using libguestfs, you also need "
20428 "to read L<guestfs(3)>."
20429 msgstr ""
20430
20431 #. type: =head2
20432 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20433 msgid "CLOSING THE HANDLE"
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../java/examples/guestfs-java.pod:24
20438 msgid ""
20439 "The handle is closed when it is reaped by the garbage collector.  Because "
20440 "libguestfs handles include a lot of state, it is also possible to close (and "
20441 "hence free) them explicitly by calling the C<close> method."
20442 msgstr ""
20443
20444 #. type: =head2
20445 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20446 #: ../python/examples/guestfs-python.pod:21
20447 #: ../ruby/examples/guestfs-ruby.pod:22
20448 msgid "EXCEPTIONS"
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../java/examples/guestfs-java.pod:31
20453 msgid ""
20454 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20455 "exception.  This has a single parameter which is the error message (a "
20456 "C<String>)."
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../java/examples/guestfs-java.pod:35
20461 msgid "Calling any method on a closed handle raises the same exception."
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../java/examples/guestfs-java.pod:47
20466 msgid ""
20467 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
20468 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20469 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../ocaml/examples/guestfs-ocaml.pod:5
20474 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../ocaml/examples/guestfs-ocaml.pod:9
20479 msgid "Module style:"
20480 msgstr ""
20481
20482 #. type: verbatim
20483 #: ../ocaml/examples/guestfs-ocaml.pod:11
20484 #, no-wrap
20485 msgid ""
20486 " let g = Guestfs.create () in\n"
20487 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20488 " Guestfs.launch g;\n"
20489 "\n"
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../ocaml/examples/guestfs-ocaml.pod:15
20494 msgid "Object-oriented style:"
20495 msgstr ""
20496
20497 #. type: verbatim
20498 #: ../ocaml/examples/guestfs-ocaml.pod:17
20499 #, no-wrap
20500 msgid ""
20501 " let g = new Guestfs.guestfs () in\n"
20502 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20503 " g#launch ();\n"
20504 "\n"
20505 msgstr ""
20506
20507 #. type: verbatim
20508 #: ../ocaml/examples/guestfs-ocaml.pod:21
20509 #, no-wrap
20510 msgid ""
20511 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20512 "or:\n"
20513 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20514 "\n"
20515 msgstr ""
20516
20517 #. type: textblock
20518 #: ../ocaml/examples/guestfs-ocaml.pod:27
20519 msgid ""
20520 "This manual page documents how to call libguestfs from the OCaml programming "
20521 "language.  This page just documents the differences from the C API and gives "
20522 "some examples.  If you are not familiar with using libguestfs, you also need "
20523 "to read L<guestfs(3)>."
20524 msgstr ""
20525
20526 #. type: =head2
20527 #: ../ocaml/examples/guestfs-ocaml.pod:32
20528 msgid "PROGRAMMING STYLES"
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../ocaml/examples/guestfs-ocaml.pod:34
20533 msgid ""
20534 "There are two different programming styles supported by the OCaml bindings.  "
20535 "You can use a module style, with each C function mapped to an OCaml function:"
20536 msgstr ""
20537
20538 #. type: verbatim
20539 #: ../ocaml/examples/guestfs-ocaml.pod:38
20540 #, no-wrap
20541 msgid ""
20542 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20543 "\n"
20544 msgstr ""
20545
20546 #. type: textblock
20547 #: ../ocaml/examples/guestfs-ocaml.pod:40
20548 msgid "becomes:"
20549 msgstr ""
20550
20551 #. type: verbatim
20552 #: ../ocaml/examples/guestfs-ocaml.pod:42
20553 #, no-wrap
20554 msgid ""
20555 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20556 "\n"
20557 msgstr ""
20558
20559 #. type: textblock
20560 #: ../ocaml/examples/guestfs-ocaml.pod:44
20561 msgid ""
20562 "Alternately you can use an object-oriented style, calling methods on the "
20563 "class C<Guestfs.guestfs>:"
20564 msgstr ""
20565
20566 #. type: verbatim
20567 #: ../ocaml/examples/guestfs-ocaml.pod:47
20568 #, no-wrap
20569 msgid ""
20570 " method set_verbose : bool -> unit\n"
20571 "\n"
20572 msgstr ""
20573
20574 #. type: textblock
20575 #: ../ocaml/examples/guestfs-ocaml.pod:49
20576 msgid ""
20577 "The object-oriented style is usually briefer, and the minor performance "
20578 "penalty isn't noticable in the general overhead of performing libguestfs "
20579 "functions."
20580 msgstr ""
20581
20582 #. type: textblock
20583 #: ../ocaml/examples/guestfs-ocaml.pod:55
20584 msgid ""
20585 "The handle is closed when it is reaped by the garbage collector.  Because "
20586 "libguestfs handles include a lot of state, it is also possible to close (and "
20587 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20588 "method."
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../ocaml/examples/guestfs-ocaml.pod:62
20593 msgid ""
20594 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20595 "exception.  This has a single parameter which is the error message (a "
20596 "string)."
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../ocaml/examples/guestfs-ocaml.pod:66
20601 msgid ""
20602 "Calling any function/method on a closed handle raises C<Guestfs."
20603 "Handle_closed>.  The single parameter is the name of the function that you "
20604 "called."
20605 msgstr ""
20606
20607 #. type: textblock
20608 #: ../ocaml/examples/guestfs-ocaml.pod:80
20609 msgid ""
20610 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
20611 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20612 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../perl/examples/guestfs-perl.pod:5
20617 msgid "guestfs-perl - How to use libguestfs from Perl"
20618 msgstr ""
20619
20620 #. type: verbatim
20621 #: ../perl/examples/guestfs-perl.pod:9
20622 #, no-wrap
20623 msgid ""
20624 " use Sys::Guestfs;\n"
20625 " \n"
20626 msgstr ""
20627
20628 #. type: verbatim
20629 #: ../perl/examples/guestfs-perl.pod:11
20630 #, no-wrap
20631 msgid ""
20632 " my $h = Sys::Guestfs->new ();\n"
20633 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20634 " $h->launch ();\n"
20635 " $h->mount_options ('', '/dev/sda1', '/');\n"
20636 " $h->touch ('/hello');\n"
20637 " $h->sync ();\n"
20638 "\n"
20639 msgstr ""
20640
20641 #. type: textblock
20642 #: ../perl/examples/guestfs-perl.pod:20
20643 msgid ""
20644 "This manual page documents how to call libguestfs from the Perl programming "
20645 "language.  This page just documents the differences from the C API and gives "
20646 "some examples.  If you are not familiar with using libguestfs, you also need "
20647 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20648 msgstr ""
20649
20650 #. type: =head2
20651 #: ../perl/examples/guestfs-perl.pod:26
20652 msgid "ERRORS"
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../perl/examples/guestfs-perl.pod:28
20657 msgid ""
20658 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20659 ">)."
20660 msgstr ""
20661
20662 #. type: textblock
20663 #: ../perl/examples/guestfs-perl.pod:41
20664 msgid ""
20665 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
20666 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
20667 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../python/examples/guestfs-python.pod:5
20672 msgid "guestfs-python - How to use libguestfs from Python"
20673 msgstr ""
20674
20675 #. type: verbatim
20676 #: ../python/examples/guestfs-python.pod:9
20677 #, no-wrap
20678 msgid ""
20679 " import guestfs\n"
20680 " g = guestfs.GuestFS ()\n"
20681 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20682 " g.launch\n"
20683 "\n"
20684 msgstr ""
20685
20686 #. type: textblock
20687 #: ../python/examples/guestfs-python.pod:16
20688 msgid ""
20689 "This manual page documents how to call libguestfs from the Python "
20690 "programming language.  This page just documents the differences from the C "
20691 "API and gives some examples.  If you are not familiar with using libguestfs, "
20692 "you also need to read L<guestfs(3)>."
20693 msgstr ""
20694
20695 #. type: textblock
20696 #: ../python/examples/guestfs-python.pod:23
20697 msgid ""
20698 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20699 "single string argument which is the error message."
20700 msgstr ""
20701
20702 #. type: =head2
20703 #: ../python/examples/guestfs-python.pod:26
20704 msgid "MORE DOCUMENTATION"
20705 msgstr ""
20706
20707 #. type: textblock
20708 #: ../python/examples/guestfs-python.pod:28
20709 msgid "Type:"
20710 msgstr ""
20711
20712 #. type: verbatim
20713 #: ../python/examples/guestfs-python.pod:30
20714 #, no-wrap
20715 msgid ""
20716 " $ python\n"
20717 " >>> import guestfs\n"
20718 " >>> help (guestfs)\n"
20719 "\n"
20720 msgstr ""
20721
20722 #. type: textblock
20723 #: ../python/examples/guestfs-python.pod:44
20724 msgid ""
20725 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
20726 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
20727 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20728 msgstr ""
20729
20730 #. type: textblock
20731 #: ../rescue/virt-rescue.pod:5
20732 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20733 msgstr ""
20734
20735 #. type: verbatim
20736 #: ../rescue/virt-rescue.pod:9
20737 #, no-wrap
20738 msgid ""
20739 " virt-rescue [--options] -d domname\n"
20740 "\n"
20741 msgstr ""
20742
20743 #. type: verbatim
20744 #: ../rescue/virt-rescue.pod:11
20745 #, no-wrap
20746 msgid ""
20747 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20748 "\n"
20749 msgstr ""
20750
20751 #. type: verbatim
20752 #: ../rescue/virt-rescue.pod:15
20753 #, no-wrap
20754 msgid ""
20755 " virt-rescue [--options] domname\n"
20756 "\n"
20757 msgstr ""
20758
20759 #. type: verbatim
20760 #: ../rescue/virt-rescue.pod:17
20761 #, no-wrap
20762 msgid ""
20763 " virt-rescue [--options] disk.img [disk.img ...]\n"
20764 "\n"
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../rescue/virt-rescue.pod:21
20769 msgid ""
20770 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20771 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20772 "you from doing this, but doesn't catch all cases."
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../rescue/virt-rescue.pod:25
20777 msgid ""
20778 "However if you use the I<--ro> (read only) option, then you can attach a "
20779 "shell to a live virtual machine.  The results might be strange or "
20780 "inconsistent at times but you won't get disk corruption."
20781 msgstr ""
20782
20783 #. type: textblock
20784 #: ../rescue/virt-rescue.pod:31
20785 msgid ""
20786 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20787 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20788 "recovery tools which you can use to examine or rescue a virtual machine or "
20789 "disk image."
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../rescue/virt-rescue.pod:36
20794 msgid ""
20795 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20796 "on disk image(s):"
20797 msgstr ""
20798
20799 #. type: verbatim
20800 #: ../rescue/virt-rescue.pod:39
20801 #, no-wrap
20802 msgid ""
20803 " virt-rescue -d GuestName\n"
20804 "\n"
20805 msgstr ""
20806
20807 #. type: verbatim
20808 #: ../rescue/virt-rescue.pod:41
20809 #, no-wrap
20810 msgid ""
20811 " virt-rescue --ro -a /path/to/disk.img\n"
20812 "\n"
20813 msgstr ""
20814
20815 #. type: verbatim
20816 #: ../rescue/virt-rescue.pod:43
20817 #, no-wrap
20818 msgid ""
20819 " virt-rescue -a /dev/sdc\n"
20820 "\n"
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../rescue/virt-rescue.pod:45
20825 msgid "For live VMs you I<must> use the --ro option."
20826 msgstr ""
20827
20828 #. type: textblock
20829 #: ../rescue/virt-rescue.pod:47
20830 msgid ""
20831 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20832 "in an interactive bash shell where you can use many ordinary Linux "
20833 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20834 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20835 "is an empty directory called C</sysroot> where you can mount filesystems."
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../rescue/virt-rescue.pod:54
20840 msgid ""
20841 "In the example below, we list logical volumes, then choose one to mount "
20842 "under C</sysroot>:"
20843 msgstr ""
20844
20845 #. type: verbatim
20846 #: ../rescue/virt-rescue.pod:57
20847 #, no-wrap
20848 msgid ""
20849 " ><rescue> lvs\n"
20850 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20851 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20852 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20853 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20854 " ><rescue> ls /sysroot\n"
20855 "\n"
20856 msgstr ""
20857
20858 #. type: textblock
20859 #: ../rescue/virt-rescue.pod:64
20860 msgid ""
20861 "If you don't know what filesystems are available on the virtual machine then "
20862 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20863 msgstr ""
20864
20865 #. type: textblock
20866 #: ../rescue/virt-rescue.pod:70
20867 msgid ""
20868 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20869 "virtual machine.  For example you can use it on a blank file if you want to "
20870 "partition that file (although we would recommend using L<guestfish(1)> "
20871 "instead as it is more suitable for this purpose).  You can even use virt-"
20872 "rescue on things like SD cards."
20873 msgstr ""
20874
20875 #. type: textblock
20876 #: ../rescue/virt-rescue.pod:76
20877 msgid ""
20878 "Virt-rescue does not require root.  You only need to run it as root if you "
20879 "need root to open the disk image."
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../rescue/virt-rescue.pod:79
20884 msgid ""
20885 "This tool is just designed for quick interactive hacking on a virtual "
20886 "machine.  For more structured access to a virtual machine disk image, you "
20887 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20888 "make scripted changes to guests, use L<guestfish(1)>."
20889 msgstr ""
20890
20891 #. type: =item
20892 #: ../rescue/virt-rescue.pod:103
20893 msgid "B<--append kernelopts>"
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../rescue/virt-rescue.pod:105
20898 msgid "Pass additional options to the rescue kernel."
20899 msgstr ""
20900
20901 #. type: verbatim
20902 #: ../rescue/virt-rescue.pod:135
20903 #, no-wrap
20904 msgid ""
20905 " virt-rescue --format=raw -a disk.img\n"
20906 "\n"
20907 msgstr ""
20908
20909 #. type: verbatim
20910 #: ../rescue/virt-rescue.pod:139
20911 #, no-wrap
20912 msgid ""
20913 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20914 "\n"
20915 msgstr ""
20916
20917 #. type: =item
20918 #: ../rescue/virt-rescue.pod:148
20919 msgid "B<-m MB>"
20920 msgstr ""
20921
20922 #. type: =item
20923 #: ../rescue/virt-rescue.pod:150
20924 msgid "B<--memsize MB>"
20925 msgstr ""
20926
20927 #. type: textblock
20928 #: ../rescue/virt-rescue.pod:152
20929 msgid ""
20930 "Change the amount of memory allocated to the rescue system.  The default is "
20931 "set by libguestfs and is small but adequate for running system tools.  The "
20932 "occasional program might need more memory.  The parameter is specified in "
20933 "megabytes."
20934 msgstr ""
20935
20936 #. type: =item
20937 #: ../rescue/virt-rescue.pod:157
20938 msgid "B<--network>"
20939 msgstr ""
20940
20941 #. type: textblock
20942 #: ../rescue/virt-rescue.pod:159
20943 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../rescue/virt-rescue.pod:165
20948 msgid "Open the image read-only."
20949 msgstr ""
20950
20951 #. type: textblock
20952 #: ../rescue/virt-rescue.pod:175
20953 msgid ""
20954 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
20955 "SELINUX> before using this option."
20956 msgstr ""
20957
20958 #. type: =item
20959 #: ../rescue/virt-rescue.pod:178
20960 msgid "B<--smp> N"
20961 msgstr ""
20962
20963 #. type: textblock
20964 #: ../rescue/virt-rescue.pod:180
20965 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../rescue/virt-rescue.pod:198
20970 msgid ""
20971 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20972 "are done read-write."
20973 msgstr ""
20974
20975 #. type: textblock
20976 #: ../rescue/virt-rescue.pod:211
20977 msgid "Previous versions of virt-rescue allowed you to write either:"
20978 msgstr ""
20979
20980 #. type: verbatim
20981 #: ../rescue/virt-rescue.pod:213
20982 #, no-wrap
20983 msgid ""
20984 " virt-rescue disk.img [disk.img ...]\n"
20985 "\n"
20986 msgstr ""
20987
20988 #. type: verbatim
20989 #: ../rescue/virt-rescue.pod:217
20990 #, no-wrap
20991 msgid ""
20992 " virt-rescue guestname\n"
20993 "\n"
20994 msgstr ""
20995
20996 #. type: =head1
20997 #: ../rescue/virt-rescue.pod:225
20998 msgid "NETWORK"
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../rescue/virt-rescue.pod:227
21003 msgid ""
21004 "Adding the I<--network> option enables QEMU user networking in the rescue "
21005 "appliance.  There are some differences between user networking and ordinary "
21006 "networking:"
21007 msgstr ""
21008
21009 #. type: =item
21010 #: ../rescue/virt-rescue.pod:233
21011 msgid "ping does not work"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../rescue/virt-rescue.pod:235
21016 msgid ""
21017 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21018 "send the ping packets, and because virt-rescue must be able to run as non-"
21019 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21020 "The ping command will appear to resolve addresses but will not be able to "
21021 "send or receive any packets.  This does not mean that the network is not "
21022 "working."
21023 msgstr ""
21024
21025 #. type: =item
21026 #: ../rescue/virt-rescue.pod:242
21027 msgid "cannot receive connections"
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../rescue/virt-rescue.pod:244
21032 msgid "QEMU user networking cannot receive incoming connections."
21033 msgstr ""
21034
21035 #. type: =item
21036 #: ../rescue/virt-rescue.pod:246
21037 msgid "making TCP connections"
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../rescue/virt-rescue.pod:248
21042 msgid ""
21043 "The virt-rescue appliance needs to be small and so does not include many "
21044 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21045 "make TCP connections from the shell using the magical C</dev/tcp/"
21046 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21047 msgstr ""
21048
21049 #. type: verbatim
21050 #: ../rescue/virt-rescue.pod:253
21051 #, no-wrap
21052 msgid ""
21053 " exec 3<>/dev/tcp/redhat.com/80\n"
21054 " echo \"GET /\" >&3\n"
21055 " cat <&3\n"
21056 "\n"
21057 msgstr ""
21058
21059 #. type: textblock
21060 #: ../rescue/virt-rescue.pod:257
21061 msgid "See L<bash(1)> for more details."
21062 msgstr ""
21063
21064 #. type: textblock
21065 #: ../rescue/virt-rescue.pod:263
21066 msgid ""
21067 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21068 "ENVIRONMENT VARIABLES> for the complete list."
21069 msgstr ""
21070
21071 #. type: textblock
21072 #: ../rescue/virt-rescue.pod:290
21073 msgid ""
21074 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21075 "libguestfs.org/>."
21076 msgstr ""
21077
21078 #. type: textblock
21079 #: ../resize/virt-resize.pod:5
21080 msgid "virt-resize - Resize a virtual machine disk"
21081 msgstr ""
21082
21083 #. type: verbatim
21084 #: ../resize/virt-resize.pod:9
21085 #, no-wrap
21086 msgid ""
21087 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21088 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21089 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21090 "\n"
21091 msgstr ""
21092
21093 #. type: textblock
21094 #: ../resize/virt-resize.pod:15
21095 msgid ""
21096 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21097 "larger or smaller overall, and resizing or deleting any partitions contained "
21098 "within."
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../resize/virt-resize.pod:19
21103 msgid ""
21104 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21105 "not> be used on live virtual machines - for consistent results, shut the "
21106 "virtual machine down before resizing it."
21107 msgstr ""
21108
21109 #. type: textblock
21110 #: ../resize/virt-resize.pod:23
21111 msgid ""
21112 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21113 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21114 msgstr ""
21115
21116 #. type: =item
21117 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21118 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
21119 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
21120 msgid "1."
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../resize/virt-resize.pod:33
21125 msgid ""
21126 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21127 "fill the extra 5GB of space."
21128 msgstr ""
21129
21130 #. type: verbatim
21131 #: ../resize/virt-resize.pod:36
21132 #, no-wrap
21133 msgid ""
21134 " virt-filesystems --long -h --all -a olddisk\n"
21135 " \n"
21136 msgstr ""
21137
21138 #. type: verbatim
21139 #: ../resize/virt-resize.pod:38
21140 #, no-wrap
21141 msgid ""
21142 " truncate -r olddisk newdisk\n"
21143 " truncate -s +5G newdisk\n"
21144 " \n"
21145 msgstr ""
21146
21147 #. type: verbatim
21148 #: ../resize/virt-resize.pod:41
21149 #, no-wrap
21150 msgid ""
21151 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21152 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: =item
21157 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21158 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
21159 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
21160 msgid "2."
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../resize/virt-resize.pod:46
21165 msgid ""
21166 "As above, but make the /boot partition 200MB bigger, while giving the "
21167 "remaining space to /dev/sda2:"
21168 msgstr ""
21169
21170 #. type: verbatim
21171 #: ../resize/virt-resize.pod:49
21172 #, no-wrap
21173 msgid ""
21174 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21175 "   olddisk newdisk\n"
21176 "\n"
21177 msgstr ""
21178
21179 #. type: =item
21180 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21181 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
21182 #: ../src/guestfs.pod:1436
21183 msgid "3."
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../resize/virt-resize.pod:54
21188 msgid ""
21189 "As in the first example, but expand a logical volume as the final step.  "
21190 "This is what you would typically use for Linux guests that use LVM:"
21191 msgstr ""
21192
21193 #. type: verbatim
21194 #: ../resize/virt-resize.pod:58
21195 #, no-wrap
21196 msgid ""
21197 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21198 "   olddisk newdisk\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: =item
21203 #: ../resize/virt-resize.pod:61
21204 msgid "4."
21205 msgstr ""
21206
21207 #. type: textblock
21208 #: ../resize/virt-resize.pod:63
21209 msgid ""
21210 "As in the first example, but the output format will be qcow2 instead of a "
21211 "raw disk:"
21212 msgstr ""
21213
21214 #. type: verbatim
21215 #: ../resize/virt-resize.pod:66
21216 #, no-wrap
21217 msgid ""
21218 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21219 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21220 "\n"
21221 msgstr ""
21222
21223 #. type: =head1
21224 #: ../resize/virt-resize.pod:71
21225 msgid "DETAILED USAGE"
21226 msgstr ""
21227
21228 #. type: =head2
21229 #: ../resize/virt-resize.pod:73
21230 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21231 msgstr ""
21232
21233 #. type: =item
21234 #: ../resize/virt-resize.pod:77
21235 msgid "1. Shut down the virtual machine"
21236 msgstr ""
21237
21238 #. type: =item
21239 #: ../resize/virt-resize.pod:79
21240 msgid "2. Locate input disk image"
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../resize/virt-resize.pod:81
21245 msgid ""
21246 "Locate the input disk image (ie. the file or device on the host containing "
21247 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21248 "dumpxml> like this to find the disk image name:"
21249 msgstr ""
21250
21251 #. type: verbatim
21252 #: ../resize/virt-resize.pod:85
21253 #, no-wrap
21254 msgid ""
21255 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21256 " Found 1 nodes:\n"
21257 " -- NODE --\n"
21258 " <source dev=\"/dev/vg/lv_guest\" />\n"
21259 "\n"
21260 msgstr ""
21261
21262 #. type: =item
21263 #: ../resize/virt-resize.pod:90
21264 msgid "3. Look at current sizing"
21265 msgstr ""
21266
21267 #. type: textblock
21268 #: ../resize/virt-resize.pod:92
21269 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21270 msgstr ""
21271
21272 #. type: verbatim
21273 #: ../resize/virt-resize.pod:95
21274 #, no-wrap
21275 msgid ""
21276 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21277 " Name       Type       Size  Parent\n"
21278 " /dev/sda1  partition  101M  /dev/sda\n"
21279 " /dev/sda2  partition  7.9G  /dev/sda\n"
21280 " /dev/sda   device     8.0G  -\n"
21281 "\n"
21282 msgstr ""
21283
21284 #. type: textblock
21285 #: ../resize/virt-resize.pod:101
21286 msgid ""
21287 "(This example is a virtual machine with an 8 GB disk which we would like to "
21288 "expand up to 10 GB)."
21289 msgstr ""
21290
21291 #. type: =item
21292 #: ../resize/virt-resize.pod:104
21293 msgid "4. Create output disk"
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../resize/virt-resize.pod:106
21298 msgid ""
21299 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21300 "to store the resized output disk."
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../resize/virt-resize.pod:109
21305 msgid ""
21306 "To store the resized disk image in a file, create a file of a suitable size:"
21307 msgstr ""
21308
21309 #. type: verbatim
21310 #: ../resize/virt-resize.pod:112
21311 #, no-wrap
21312 msgid ""
21313 " # rm -f outdisk\n"
21314 " # truncate -s 10G outdisk\n"
21315 "\n"
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../resize/virt-resize.pod:115
21320 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21321 msgstr ""
21322
21323 #. type: verbatim
21324 #: ../resize/virt-resize.pod:117
21325 #, no-wrap
21326 msgid ""
21327 " # lvcreate -L 10G -n lv_name vg_name\n"
21328 "\n"
21329 msgstr ""
21330
21331 #. type: textblock
21332 #: ../resize/virt-resize.pod:119
21333 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21334 msgstr ""
21335
21336 #. type: verbatim
21337 #: ../resize/virt-resize.pod:121
21338 #, no-wrap
21339 msgid ""
21340 " # virsh pool-list\n"
21341 " # virsh vol-create-as poolname newvol 10G\n"
21342 "\n"
21343 msgstr ""
21344
21345 #. type: =item
21346 #: ../resize/virt-resize.pod:124
21347 msgid "5. Resize"
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../resize/virt-resize.pod:126
21352 msgid ""
21353 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21354 "file) and the output disk.  The output disk is the one created in the "
21355 "previous step."
21356 msgstr ""
21357
21358 #. type: verbatim
21359 #: ../resize/virt-resize.pod:130
21360 #, no-wrap
21361 msgid ""
21362 " # virt-resize indisk outdisk\n"
21363 "\n"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../resize/virt-resize.pod:132
21368 msgid ""
21369 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21370 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21371 "larger, then an extra, empty partition is created at the end of the disk "
21372 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21373 "error."
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../resize/virt-resize.pod:138
21378 msgid ""
21379 "More realistically you'd want to expand existing partitions in the disk "
21380 "image by passing extra options (for the full list see the L</OPTIONS> "
21381 "section below)."
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../resize/virt-resize.pod:142
21386 msgid ""
21387 "L</--expand> is the most useful option.  It expands the named partition "
21388 "within the disk to fill any extra space:"
21389 msgstr ""
21390
21391 #. type: verbatim
21392 #: ../resize/virt-resize.pod:145
21393 #, no-wrap
21394 msgid ""
21395 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21396 "\n"
21397 msgstr ""
21398
21399 #. type: textblock
21400 #: ../resize/virt-resize.pod:147
21401 msgid ""
21402 "(In this case, an extra partition is I<not> created at the end of the disk, "
21403 "because there will be no unused space)."
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../resize/virt-resize.pod:150
21408 msgid ""
21409 "L</--resize> is the other commonly used option.  The following would "
21410 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21411 "rest of the available space:"
21412 msgstr ""
21413
21414 #. type: verbatim
21415 #: ../resize/virt-resize.pod:154
21416 #, no-wrap
21417 msgid ""
21418 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21419 "     indisk outdisk\n"
21420 "\n"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../resize/virt-resize.pod:157
21425 msgid ""
21426 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21427 "if virt-resize knows how, it will resize the contents, the equivalent of "
21428 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21429 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21430 "filesystems, so you would have to online resize them after booting the guest."
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../resize/virt-resize.pod:164
21435 msgid "Other options are covered below."
21436 msgstr ""
21437
21438 #. type: =item
21439 #: ../resize/virt-resize.pod:166
21440 msgid "6. Test"
21441 msgstr ""
21442
21443 #. type: textblock
21444 #: ../resize/virt-resize.pod:168
21445 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21446 msgstr ""
21447
21448 #. type: textblock
21449 #: ../resize/virt-resize.pod:170
21450 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21451 msgstr ""
21452
21453 #. type: verbatim
21454 #: ../resize/virt-resize.pod:172
21455 #, no-wrap
21456 msgid ""
21457 " # virsh edit guestname\n"
21458 "\n"
21459 msgstr ""
21460
21461 #. type: textblock
21462 #: ../resize/virt-resize.pod:174
21463 msgid ""
21464 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21465 "html#elementsDisks>"
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../resize/virt-resize.pod:177
21470 msgid "Then start up the domain with the new, resized disk:"
21471 msgstr ""
21472
21473 #. type: verbatim
21474 #: ../resize/virt-resize.pod:179
21475 #, no-wrap
21476 msgid ""
21477 " # virsh start guestname\n"
21478 "\n"
21479 msgstr ""
21480
21481 #. type: textblock
21482 #: ../resize/virt-resize.pod:181
21483 msgid ""
21484 "and check that it still works.  See also the L</NOTES> section below for "
21485 "additional information."
21486 msgstr ""
21487
21488 #. type: =item
21489 #: ../resize/virt-resize.pod:184
21490 msgid "7. Resize LVs etc inside the guest"
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../resize/virt-resize.pod:186
21495 msgid "(This can also be done offline using L<guestfish(1)>)"
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../resize/virt-resize.pod:188
21500 msgid ""
21501 "Once the guest has booted you should see the new space available, at least "
21502 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21503 "may need to resize LVs inside PVs, and also resize filesystem types that "
21504 "virt-resize does not know how to expand."
21505 msgstr ""
21506
21507 #. type: =head2
21508 #: ../resize/virt-resize.pod:195
21509 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../resize/virt-resize.pod:197
21514 msgid ""
21515 "Shrinking is somewhat more complex than expanding, and only an overview is "
21516 "given here."
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../resize/virt-resize.pod:200
21521 msgid ""
21522 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21523 "filesystems).  The user has to shrink content before passing the disk image "
21524 "to virt-resize, and virt-resize will check that the content has been shrunk "
21525 "properly."
21526 msgstr ""
21527
21528 #. type: textblock
21529 #: ../resize/virt-resize.pod:205
21530 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../resize/virt-resize.pod:207
21535 msgid ""
21536 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21537 "steps 3 and 4 above to allocate a new disk image."
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../resize/virt-resize.pod:210
21542 msgid ""
21543 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21544 msgstr ""
21545
21546 #. type: =head2
21547 #: ../resize/virt-resize.pod:213
21548 msgid "IGNORING OR DELETING PARTITIONS"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../resize/virt-resize.pod:215
21553 msgid ""
21554 "virt-resize also gives a convenient way to ignore or delete partitions when "
21555 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21556 "up the copy where you don't care about the existing contents of a "
21557 "partition.  Deleting a partition removes it completely, but note that it "
21558 "also renumbers any partitions after the one which is deleted, which can "
21559 "leave some guests unbootable."
21560 msgstr ""
21561
21562 #. type: =head2
21563 #: ../resize/virt-resize.pod:222
21564 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21565 msgstr ""
21566
21567 #. type: textblock
21568 #: ../resize/virt-resize.pod:224
21569 msgid ""
21570 "If the input disk is in qcow2 format, then you may prefer that the output is "
21571 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21572 "the fly.  The output format is simply determined by the format of the empty "
21573 "output container that you provide.  Thus to create qcow2 output, use:"
21574 msgstr ""
21575
21576 #. type: verbatim
21577 #: ../resize/virt-resize.pod:230
21578 #, no-wrap
21579 msgid ""
21580 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21581 "\n"
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../resize/virt-resize.pod:232
21586 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21587 msgstr ""
21588
21589 #. type: textblock
21590 #: ../resize/virt-resize.pod:234
21591 msgid "Similarly, to get non-sparse raw output use:"
21592 msgstr ""
21593
21594 #. type: verbatim
21595 #: ../resize/virt-resize.pod:236
21596 #, no-wrap
21597 msgid ""
21598 " fallocate -l size outdisk\n"
21599 "\n"
21600 msgstr ""
21601
21602 #. type: textblock
21603 #: ../resize/virt-resize.pod:238
21604 msgid ""
21605 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21606 "dev/zero of=outdisk bs=1M count=..>)"
21607 msgstr ""
21608
21609 #. type: textblock
21610 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
21611 msgid "Display help."
21612 msgstr ""
21613
21614 #. type: =item
21615 #: ../resize/virt-resize.pod:249
21616 msgid "B<-d>"
21617 msgstr ""
21618
21619 #. type: =item
21620 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21621 #: ../tools/virt-win-reg.pl:120
21622 msgid "B<--debug>"
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21627 msgid "Enable debugging messages."
21628 msgstr ""
21629
21630 #. type: =item
21631 #: ../resize/virt-resize.pod:255
21632 msgid "B<--delete part>"
21633 msgstr ""
21634
21635 #. type: textblock
21636 #: ../resize/virt-resize.pod:257
21637 msgid ""
21638 "Delete the named partition.  It would be more accurate to describe this as "
21639 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21640 "the original disk image is left intact."
21641 msgstr ""
21642
21643 #. type: textblock
21644 #: ../resize/virt-resize.pod:261
21645 msgid ""
21646 "Note that when you delete a partition, then anything contained in the "
21647 "partition is also deleted.  Furthermore, this causes any partitions that "
21648 "come after to be I<renumbered>, which can easily make your guest unbootable."
21649 msgstr ""
21650
21651 #. type: textblock
21652 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21653 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
21654 msgid "You can give this option multiple times."
21655 msgstr ""
21656
21657 #. type: =item
21658 #: ../resize/virt-resize.pod:268
21659 msgid "B<--expand part>"
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../resize/virt-resize.pod:270
21664 msgid ""
21665 "Expand the named partition so it uses up all extra space (space left over "
21666 "after any other resize changes that you request have been done)."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../resize/virt-resize.pod:273
21671 msgid ""
21672 "If virt-resize knows how, it will expand the direct content of the "
21673 "partition.  For example, if the partition is an LVM PV, it will expand the "
21674 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21675 "content it doesn't know about alone."
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../resize/virt-resize.pod:278
21680 msgid "Currently virt-resize can resize:"
21681 msgstr ""
21682
21683 #. type: textblock
21684 #: ../resize/virt-resize.pod:284
21685 msgid "ext2, ext3 and ext4 filesystems."
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../resize/virt-resize.pod:288
21690 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../resize/virt-resize.pod:290
21695 msgid ""
21696 "The filesystem must have been shut down consistently last time it was used.  "
21697 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21698 "consistency check, so at the first boot after resizing Windows will check "
21699 "the disk."
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../resize/virt-resize.pod:297
21704 msgid ""
21705 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21706 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21707 "resize LVs as desired after boot."
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../resize/virt-resize.pod:303
21712 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21717 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21718 msgstr ""
21719
21720 #. type: =item
21721 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
21722 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
21723 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
21724 msgid "B<--format> raw"
21725 msgstr ""
21726
21727 #. type: textblock
21728 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
21729 msgid ""
21730 "Specify the format of the input disk image.  If this flag is not given then "
21731 "it is auto-detected from the image itself."
21732 msgstr ""
21733
21734 #. type: textblock
21735 #: ../resize/virt-resize.pod:317
21736 msgid ""
21737 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21738 "AND NON-SPARSE RAW FORMATS>."
21739 msgstr ""
21740
21741 #. type: =item
21742 #: ../resize/virt-resize.pod:320
21743 msgid "B<--ignore part>"
21744 msgstr ""
21745
21746 #. type: textblock
21747 #: ../resize/virt-resize.pod:322
21748 msgid ""
21749 "Ignore the named partition.  Effectively this means the partition is "
21750 "allocated on the destination disk, but the content is not copied across from "
21751 "the source disk.  The content of the partition will be blank (all zero "
21752 "bytes)."
21753 msgstr ""
21754
21755 #. type: =item
21756 #: ../resize/virt-resize.pod:329
21757 msgid "B<--LV-expand logvol>"
21758 msgstr ""
21759
21760 #. type: textblock
21761 #: ../resize/virt-resize.pod:331
21762 msgid ""
21763 "This takes the logical volume and, as a final step, expands it to fill all "
21764 "the space available in its volume group.  A typical usage, assuming a Linux "
21765 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
21766 "lv_root> would be:"
21767 msgstr ""
21768
21769 #. type: verbatim
21770 #: ../resize/virt-resize.pod:336
21771 #, no-wrap
21772 msgid ""
21773 " virt-resize indisk outdisk \\\n"
21774 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21775 "\n"
21776 msgstr ""
21777
21778 #. type: textblock
21779 #: ../resize/virt-resize.pod:339
21780 msgid ""
21781 "This would first expand the partition (and PV), and then expand the root "
21782 "device to fill the extra space in the PV."
21783 msgstr ""
21784
21785 #. type: textblock
21786 #: ../resize/virt-resize.pod:342
21787 msgid ""
21788 "The contents of the LV are also resized if virt-resize knows how to do "
21789 "that.  You can stop virt-resize from trying to expand the content by using "
21790 "the option I<--no-expand-content>."
21791 msgstr ""
21792
21793 #. type: textblock
21794 #: ../resize/virt-resize.pod:346
21795 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../resize/virt-resize.pod:348
21800 msgid ""
21801 "You can give this option multiple times, I<but> it doesn't make sense to do "
21802 "this unless the logical volumes you specify are all in different volume "
21803 "groups."
21804 msgstr ""
21805
21806 #. type: =item
21807 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
21808 msgid "B<--machine-readable>"
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
21813 msgid ""
21814 "This option is used to make the output more machine friendly when being "
21815 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21816 msgstr ""
21817
21818 #. type: =item
21819 #: ../resize/virt-resize.pod:360
21820 msgid "B<--dryrun>"
21821 msgstr ""
21822
21823 #. type: textblock
21824 #: ../resize/virt-resize.pod:362
21825 msgid "Print a summary of what would be done, but don't do anything."
21826 msgstr ""
21827
21828 #. type: =item
21829 #: ../resize/virt-resize.pod:364
21830 msgid "B<--no-copy-boot-loader>"
21831 msgstr ""
21832
21833 #. type: textblock
21834 #: ../resize/virt-resize.pod:366
21835 msgid ""
21836 "By default, virt-resize copies over some sectors at the start of the disk "
21837 "(up to the beginning of the first partition).  Commonly these sectors "
21838 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21839 "in order for the guest to boot correctly."
21840 msgstr ""
21841
21842 #. type: textblock
21843 #: ../resize/virt-resize.pod:371
21844 msgid ""
21845 "If you specify this flag, then this initial copy is not done.  You may need "
21846 "to reinstall the boot loader in this case."
21847 msgstr ""
21848
21849 #. type: =item
21850 #: ../resize/virt-resize.pod:374
21851 msgid "B<--no-extra-partition>"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../resize/virt-resize.pod:376
21856 msgid ""
21857 "By default, virt-resize creates an extra partition if there is any extra, "
21858 "unused space after all resizing has happened.  Use this option to prevent "
21859 "the extra partition from being created.  If you do this then the extra space "
21860 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21861 "tool in the guest."
21862 msgstr ""
21863
21864 #. type: textblock
21865 #: ../resize/virt-resize.pod:382
21866 msgid ""
21867 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21868 "will be created."
21869 msgstr ""
21870
21871 #. type: =item
21872 #: ../resize/virt-resize.pod:385
21873 msgid "B<--no-expand-content>"
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../resize/virt-resize.pod:387
21878 msgid ""
21879 "By default, virt-resize will try to expand the direct contents of "
21880 "partitions, if it knows how (see I<--expand> option above)."
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../resize/virt-resize.pod:390
21885 msgid ""
21886 "If you give the I<--no-expand-content> option then virt-resize will not "
21887 "attempt this."
21888 msgstr ""
21889
21890 #. type: =item
21891 #: ../resize/virt-resize.pod:393
21892 msgid "B<--ntfsresize-force>"
21893 msgstr ""
21894
21895 #. type: textblock
21896 #: ../resize/virt-resize.pod:395
21897 msgid ""
21898 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21899 "the NTFS disk is marked as needing a consistency check.  You have to use "
21900 "this option if you want to resize a Windows guest multiple times without "
21901 "booting into Windows between each resize."
21902 msgstr ""
21903
21904 #. type: =item
21905 #: ../resize/virt-resize.pod:401
21906 msgid "B<--output-format> raw"
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../resize/virt-resize.pod:403
21911 msgid ""
21912 "Specify the format of the output disk image.  If this flag is not given then "
21913 "it is auto-detected from the image itself."
21914 msgstr ""
21915
21916 #. type: textblock
21917 #: ../resize/virt-resize.pod:409
21918 msgid ""
21919 "Note that this option I<does not create> the output format.  This option "
21920 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21921 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
21922 "SPARSE RAW FORMATS>."
21923 msgstr ""
21924
21925 #. type: =item
21926 #: ../resize/virt-resize.pod:414 ../sparsify/virt-sparsify.pod:153
21927 msgid "B<-q>"
21928 msgstr ""
21929
21930 #. type: =item
21931 #: ../resize/virt-resize.pod:416 ../sparsify/virt-sparsify.pod:155
21932 msgid "B<--quiet>"
21933 msgstr ""
21934
21935 #. type: textblock
21936 #: ../resize/virt-resize.pod:418
21937 msgid "Don't print the summary."
21938 msgstr ""
21939
21940 #. type: =item
21941 #: ../resize/virt-resize.pod:420
21942 msgid "B<--resize part=size>"
21943 msgstr ""
21944
21945 #. type: textblock
21946 #: ../resize/virt-resize.pod:422
21947 msgid ""
21948 "Resize the named partition (expanding or shrinking it) so that it has the "
21949 "given size."
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../resize/virt-resize.pod:425
21954 msgid ""
21955 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21956 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21957 "size; or as a relative number or percentage.  For example:"
21958 msgstr ""
21959
21960 #. type: verbatim
21961 #: ../resize/virt-resize.pod:431
21962 #, no-wrap
21963 msgid ""
21964 " --resize /dev/sda2=10G\n"
21965 "\n"
21966 msgstr ""
21967
21968 #. type: verbatim
21969 #: ../resize/virt-resize.pod:433
21970 #, no-wrap
21971 msgid ""
21972 " --resize /dev/sda4=90%\n"
21973 "\n"
21974 msgstr ""
21975
21976 #. type: verbatim
21977 #: ../resize/virt-resize.pod:435
21978 #, no-wrap
21979 msgid ""
21980 " --resize /dev/sda2=+1G\n"
21981 "\n"
21982 msgstr ""
21983
21984 #. type: verbatim
21985 #: ../resize/virt-resize.pod:437
21986 #, no-wrap
21987 msgid ""
21988 " --resize /dev/sda2=-200M\n"
21989 "\n"
21990 msgstr ""
21991
21992 #. type: verbatim
21993 #: ../resize/virt-resize.pod:439
21994 #, no-wrap
21995 msgid ""
21996 " --resize /dev/sda1=+128K\n"
21997 "\n"
21998 msgstr ""
21999
22000 #. type: verbatim
22001 #: ../resize/virt-resize.pod:441
22002 #, no-wrap
22003 msgid ""
22004 " --resize /dev/sda1=+10%\n"
22005 "\n"
22006 msgstr ""
22007
22008 #. type: verbatim
22009 #: ../resize/virt-resize.pod:443
22010 #, no-wrap
22011 msgid ""
22012 " --resize /dev/sda1=-10%\n"
22013 "\n"
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../resize/virt-resize.pod:445
22018 msgid ""
22019 "You can increase the size of any partition.  Virt-resize will expand the "
22020 "direct content of the partition if it knows how (see I<--expand> below)."
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../resize/virt-resize.pod:449
22025 msgid ""
22026 "You can only I<decrease> the size of partitions that contain filesystems or "
22027 "PVs which have already been shrunk.  Virt-resize will check this has been "
22028 "done before proceeding, or else will print an error (see also I<--resize-"
22029 "force>)."
22030 msgstr ""
22031
22032 #. type: =item
22033 #: ../resize/virt-resize.pod:456
22034 msgid "B<--resize-force part=size>"
22035 msgstr ""
22036
22037 #. type: textblock
22038 #: ../resize/virt-resize.pod:458
22039 msgid ""
22040 "This is the same as I<--resize> except that it will let you decrease the "
22041 "size of any partition.  Generally this means you will lose any data which "
22042 "was at the end of the partition you shrink, but you may not care about that "
22043 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22044 "as a swap partition)."
22045 msgstr ""
22046
22047 #. type: textblock
22048 #: ../resize/virt-resize.pod:464
22049 msgid "See also the I<--ignore> option."
22050 msgstr ""
22051
22052 #. type: =item
22053 #: ../resize/virt-resize.pod:466
22054 msgid "B<--shrink part>"
22055 msgstr ""
22056
22057 #. type: textblock
22058 #: ../resize/virt-resize.pod:468
22059 msgid ""
22060 "Shrink the named partition until the overall disk image fits in the "
22061 "destination.  The named partition B<must> contain a filesystem or PV which "
22062 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22063 "online tools).  Virt-resize will check this and give an error if it has not "
22064 "been done."
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../resize/virt-resize.pod:474
22069 msgid ""
22070 "The amount by which the overall disk must be shrunk (after carrying out all "
22071 "other operations requested by the user) is called the \"deficit\".  For "
22072 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22073 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22074 "would give an error unless the user specified a partition to shrink and that "
22075 "partition had more than a gigabyte of free space."
22076 msgstr ""
22077
22078 #. type: =head1
22079 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
22080 msgid "MACHINE READABLE OUTPUT"
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../resize/virt-resize.pod:494
22085 msgid ""
22086 "The I<--machine-readable> option can be used to make the output more machine "
22087 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22088 "etc."
22089 msgstr ""
22090
22091 #. type: textblock
22092 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
22093 msgid "There are two ways to use this option."
22094 msgstr ""
22095
22096 #. type: textblock
22097 #: ../resize/virt-resize.pod:500
22098 msgid ""
22099 "Firstly use the option on its own to query the capabilities of the virt-"
22100 "resize binary.  Typical output looks like this:"
22101 msgstr ""
22102
22103 #. type: verbatim
22104 #: ../resize/virt-resize.pod:503
22105 #, no-wrap
22106 msgid ""
22107 " $ virt-resize --machine-readable\n"
22108 " virt-resize\n"
22109 " ntfsresize-force\n"
22110 " 32bitok\n"
22111 " ntfs\n"
22112 " btrfs\n"
22113 "\n"
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
22118 msgid ""
22119 "A list of features is printed, one per line, and the program exits with "
22120 "status 0."
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
22125 msgid ""
22126 "Secondly use the option in conjunction with other options to make the "
22127 "regular program output more machine friendly."
22128 msgstr ""
22129
22130 #. type: textblock
22131 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
22132 msgid "At the moment this means:"
22133 msgstr ""
22134
22135 #. type: textblock
22136 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
22137 msgid ""
22138 "Progress bar messages can be parsed from stdout by looking for this regular "
22139 "expression:"
22140 msgstr ""
22141
22142 #. type: verbatim
22143 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
22144 #, no-wrap
22145 msgid ""
22146 " ^[0-9]+/[0-9]+$\n"
22147 "\n"
22148 msgstr ""
22149
22150 #. type: textblock
22151 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
22152 msgid ""
22153 "The calling program should treat messages sent to stdout (except for "
22154 "progress bar messages) as status messages.  They can be logged and/or "
22155 "displayed to the user."
22156 msgstr ""
22157
22158 #. type: textblock
22159 #: ../resize/virt-resize.pod:535
22160 msgid ""
22161 "The calling program should treat messages sent to stderr as error messages.  "
22162 "In addition, virt-resize exits with a non-zero status code if there was a "
22163 "fatal error."
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../resize/virt-resize.pod:541
22168 msgid ""
22169 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22170 "readable> option and will return an error."
22171 msgstr ""
22172
22173 #. type: =head2
22174 #: ../resize/virt-resize.pod:546
22175 msgid "\"Partition 1 does not end on cylinder boundary.\""
22176 msgstr ""
22177
22178 #. type: textblock
22179 #: ../resize/virt-resize.pod:548
22180 msgid ""
22181 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22182 "means the partitions will not be aligned to the ancient CHS geometry.  "
22183 "However CHS geometry is meaningless for disks manufactured since the early "
22184 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22185 "cylinders is not required by any modern operating system."
22186 msgstr ""
22187
22188 #. type: =head2
22189 #: ../resize/virt-resize.pod:555
22190 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../resize/virt-resize.pod:557
22195 msgid ""
22196 "In Windows Vista and later versions, Microsoft switched to using a separate "
22197 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22198 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22199 "the boot partition.  Doing so seems to break the guest completely.  However "
22200 "expanding the second partition (ie. C: drive) should work."
22201 msgstr ""
22202
22203 #. type: textblock
22204 #: ../resize/virt-resize.pod:564
22205 msgid ""
22206 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22207 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22208 "it find errors) is nothing to worry about."
22209 msgstr ""
22210
22211 #. type: =head2
22212 #: ../resize/virt-resize.pod:568
22213 msgid "GUEST BOOT STUCK AT \"GRUB\""
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../resize/virt-resize.pod:570
22218 msgid ""
22219 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22220 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22221 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22222 "although we think is to do with partition alignment."
22223 msgstr ""
22224
22225 #. type: verbatim
22226 #: ../resize/virt-resize.pod:575
22227 #, no-wrap
22228 msgid ""
22229 " guestfish -i -a newdisk\n"
22230 " ><fs> cat /boot/grub/device.map\n"
22231 " # check the contents of this file are sensible or\n"
22232 " # edit the file if necessary\n"
22233 " ><fs> grub-install / /dev/vda\n"
22234 " ><fs> exit\n"
22235 "\n"
22236 msgstr ""
22237
22238 #. type: textblock
22239 #: ../resize/virt-resize.pod:582
22240 msgid ""
22241 "For more flexible guest reconfiguration, including if you need to specify "
22242 "other parameters to grub-install, use L<virt-rescue(1)>."
22243 msgstr ""
22244
22245 #. type: =head1
22246 #: ../resize/virt-resize.pod:585
22247 msgid "ALTERNATIVE TOOLS"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../resize/virt-resize.pod:587
22252 msgid ""
22253 "There are several proprietary tools for resizing partitions.  We won't "
22254 "mention any here."
22255 msgstr ""
22256
22257 #. type: textblock
22258 #: ../resize/virt-resize.pod:590
22259 msgid ""
22260 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22261 "operations on disk images.  They can resize and move partitions, but I don't "
22262 "think they can do anything with the contents, and they certainly don't "
22263 "understand LVM."
22264 msgstr ""
22265
22266 #. type: textblock
22267 #: ../resize/virt-resize.pod:595
22268 msgid ""
22269 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22270 "but at a much lower level.  You will probably end up hand-calculating sector "
22271 "offsets, which is something that virt-resize was designed to avoid.  If you "
22272 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22273 "I<--debug> flag."
22274 msgstr ""
22275
22276 #. type: textblock
22277 #: ../resize/virt-resize.pod:615
22278 msgid ""
22279 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22280 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22281 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22282 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
22283 "L<http://libguestfs.org/>."
22284 msgstr ""
22285
22286 #. type: textblock
22287 #: ../ruby/examples/guestfs-ruby.pod:5
22288 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22289 msgstr ""
22290
22291 #. type: verbatim
22292 #: ../ruby/examples/guestfs-ruby.pod:9
22293 #, no-wrap
22294 msgid ""
22295 " require 'guestfs'\n"
22296 " g = Guestfs::Guestfs.new()\n"
22297 " g.add_drive_opts(\"disk.img\",\n"
22298 "                  :readonly => 1, :format => \"raw\")\n"
22299 " g.launch()\n"
22300 "\n"
22301 msgstr ""
22302
22303 #. type: textblock
22304 #: ../ruby/examples/guestfs-ruby.pod:17
22305 msgid ""
22306 "This manual page documents how to call libguestfs from the Ruby programming "
22307 "language.  This page just documents the differences from the C API and gives "
22308 "some examples.  If you are not familiar with using libguestfs, you also need "
22309 "to read L<guestfs(3)>."
22310 msgstr ""
22311
22312 #. type: textblock
22313 #: ../ruby/examples/guestfs-ruby.pod:24
22314 msgid ""
22315 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22316 "This has a single parameter which is the error message (a string)."
22317 msgstr ""
22318
22319 #. type: textblock
22320 #: ../ruby/examples/guestfs-ruby.pod:38
22321 msgid ""
22322 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22323 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22324 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
22325 msgstr ""
22326
22327 #. type: textblock
22328 #: ../sparsify/virt-sparsify.pod:5
22329 msgid "virt-sparsify - Make a virtual machine disk sparse"
22330 msgstr ""
22331
22332 #. type: verbatim
22333 #: ../sparsify/virt-sparsify.pod:9
22334 #, no-wrap
22335 msgid ""
22336 " virt-sparsify [--options] indisk outdisk\n"
22337 "\n"
22338 msgstr ""
22339
22340 #. type: textblock
22341 #: ../sparsify/virt-sparsify.pod:13
22342 msgid ""
22343 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
22344 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
22345 "the disk image can be converted back to free space on the host."
22346 msgstr ""
22347
22348 #. type: textblock
22349 #: ../sparsify/virt-sparsify.pod:18
22350 msgid ""
22351 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
22352 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
22353 msgstr ""
22354
22355 #. type: textblock
22356 #: ../sparsify/virt-sparsify.pod:21
22357 msgid ""
22358 "Virt-sparsify can also convert between some disk formats, for example "
22359 "converting a raw disk image to a thin-provisioned qcow2 image."
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../sparsify/virt-sparsify.pod:24
22364 msgid ""
22365 "Virt-sparsify can operate on any disk image, not just ones from virtual "
22366 "machines.  If a virtual machine has multiple disk images, then you must "
22367 "sparsify each one separately."
22368 msgstr ""
22369
22370 #. type: =head2
22371 #: ../sparsify/virt-sparsify.pod:28
22372 msgid "IMPORTANT LIMITATIONS"
22373 msgstr ""
22374
22375 #. type: textblock
22376 #: ../sparsify/virt-sparsify.pod:34
22377 msgid ""
22378 "Virt-sparsify does not do in-place modifications.  It copies from a source "
22379 "image to a destination image, leaving the source unchanged.  I<Check that "
22380 "the sparsification was successful before deleting the source image>."
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../sparsify/virt-sparsify.pod:41
22385 msgid "The virtual machine I<must be shut down> before using this tool."
22386 msgstr ""
22387
22388 #. type: textblock
22389 #: ../sparsify/virt-sparsify.pod:45
22390 msgid ""
22391 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
22392 "(1 temporary copy + 1 destination image).  This is in the worst case and "
22393 "usually much less space is required."
22394 msgstr ""
22395
22396 #. type: textblock
22397 #: ../sparsify/virt-sparsify.pod:51
22398 msgid ""
22399 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../sparsify/virt-sparsify.pod:56
22404 msgid "Virt-sparsify cannot handle encrypted disks."
22405 msgstr ""
22406
22407 #. type: textblock
22408 #: ../sparsify/virt-sparsify.pod:60
22409 msgid ""
22410 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
22411 "this space is often used for critical items like bootloaders so it's not "
22412 "really unused."
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../sparsify/virt-sparsify.pod:66
22417 msgid ""
22418 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
22419 "to do this unless we can be sure there is no hibernation data, so at the "
22420 "moment swap partitions are ignored."
22421 msgstr ""
22422
22423 #. type: textblock
22424 #: ../sparsify/virt-sparsify.pod:72
22425 msgid ""
22426 "You may also want to read the manual pages for the associated tools L<virt-"
22427 "filesystems(1)> and L<virt-df(1)> before starting."
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../sparsify/virt-sparsify.pod:77
22432 msgid "Typical usage is:"
22433 msgstr ""
22434
22435 #. type: verbatim
22436 #: ../sparsify/virt-sparsify.pod:79
22437 #, no-wrap
22438 msgid ""
22439 " virt-sparsify indisk outdisk\n"
22440 "\n"
22441 msgstr ""
22442
22443 #. type: textblock
22444 #: ../sparsify/virt-sparsify.pod:81
22445 msgid ""
22446 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
22447 "is created, or overwritten if it already exists.  The format of the input "
22448 "disk is detected (eg. qcow2) and the same format is used for the output disk."
22449 msgstr ""
22450
22451 #. type: textblock
22452 #: ../sparsify/virt-sparsify.pod:86
22453 msgid "To convert between formats, use the I<--convert> option:"
22454 msgstr ""
22455
22456 #. type: verbatim
22457 #: ../sparsify/virt-sparsify.pod:88
22458 #, no-wrap
22459 msgid ""
22460 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
22461 "\n"
22462 msgstr ""
22463
22464 #. type: textblock
22465 #: ../sparsify/virt-sparsify.pod:90
22466 msgid ""
22467 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
22468 "can find within the source disk image.  You can get it to ignore (don't zero "
22469 "free space on) certain filesystems by doing:"
22470 msgstr ""
22471
22472 #. type: verbatim
22473 #: ../sparsify/virt-sparsify.pod:94
22474 #, no-wrap
22475 msgid ""
22476 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
22477 "\n"
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../sparsify/virt-sparsify.pod:96
22482 msgid ""
22483 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
22484 msgstr ""
22485
22486 #. type: =item
22487 #: ../sparsify/virt-sparsify.pod:107
22488 msgid "B<--convert> raw"
22489 msgstr ""
22490
22491 #. type: =item
22492 #: ../sparsify/virt-sparsify.pod:109
22493 msgid "B<--convert> qcow2"
22494 msgstr ""
22495
22496 #. type: =item
22497 #: ../sparsify/virt-sparsify.pod:111
22498 msgid "B<--convert> [other formats]"
22499 msgstr ""
22500
22501 #. type: textblock
22502 #: ../sparsify/virt-sparsify.pod:113
22503 msgid ""
22504 "Use C<output-format> as the format for the destination image.  If this is "
22505 "not specified, then the input format is used."
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../sparsify/virt-sparsify.pod:116
22510 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
22511 msgstr ""
22512
22513 #. type: textblock
22514 #: ../sparsify/virt-sparsify.pod:118
22515 msgid ""
22516 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
22517 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../sparsify/virt-sparsify.pod:122
22522 msgid ""
22523 "Specifying the I<--convert> option is usually a good idea, because then virt-"
22524 "sparsify doesn't need to try to guess the input format."
22525 msgstr ""
22526
22527 #. type: =item
22528 #: ../sparsify/virt-sparsify.pod:127
22529 msgid "B<--format> qcow2"
22530 msgstr ""
22531
22532 #. type: =item
22533 #: ../sparsify/virt-sparsify.pod:135
22534 msgid "B<--ignore> filesystem"
22535 msgstr ""
22536
22537 #. type: =item
22538 #: ../sparsify/virt-sparsify.pod:137
22539 msgid "B<--ignore> volgroup"
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../sparsify/virt-sparsify.pod:139
22544 msgid ""
22545 "Ignore the named filesystem.  Free space on the filesystem will not be "
22546 "zeroed, but existing blocks of zeroes will still be sparsified."
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../sparsify/virt-sparsify.pod:142
22551 msgid ""
22552 "In the second form, this ignores the named volume group.  Use the volume "
22553 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../sparsify/virt-sparsify.pod:157
22558 msgid "This disables progress bars and other unnecessary output."
22559 msgstr ""
22560
22561 #. type: textblock
22562 #: ../sparsify/virt-sparsify.pod:179
22563 msgid ""
22564 "The I<--machine-readable> option can be used to make the output more machine "
22565 "friendly, which is useful when calling virt-sparsify from other programs, "
22566 "GUIs etc."
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../sparsify/virt-sparsify.pod:185
22571 msgid ""
22572 "Firstly use the option on its own to query the capabilities of the virt-"
22573 "sparsify binary.  Typical output looks like this:"
22574 msgstr ""
22575
22576 #. type: verbatim
22577 #: ../sparsify/virt-sparsify.pod:188
22578 #, no-wrap
22579 msgid ""
22580 " $ virt-sparsify --machine-readable\n"
22581 " virt-sparsify\n"
22582 " ntfs\n"
22583 " btrfs\n"
22584 "\n"
22585 msgstr ""
22586
22587 #. type: textblock
22588 #: ../sparsify/virt-sparsify.pod:218
22589 msgid ""
22590 "The calling program should treat messages sent to stderr as error messages.  "
22591 "In addition, virt-sparsify exits with a non-zero status code if there was a "
22592 "fatal error."
22593 msgstr ""
22594
22595 #. type: textblock
22596 #: ../sparsify/virt-sparsify.pod:224
22597 msgid ""
22598 "All versions of virt-sparsify have supported the I<--machine-readable> "
22599 "option."
22600 msgstr ""
22601
22602 #. type: textblock
22603 #: ../sparsify/virt-sparsify.pod:238
22604 msgid ""
22605 "Location of the temporary directory used for the potentially large temporary "
22606 "overlay file."
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../sparsify/virt-sparsify.pod:241
22611 msgid ""
22612 "You should ensure there is enough free space in the worst case for a full "
22613 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
22614 "to another directory that has enough space."
22615 msgstr ""
22616
22617 #. type: textblock
22618 #: ../sparsify/virt-sparsify.pod:245
22619 msgid "This defaults to C</tmp>."
22620 msgstr ""
22621
22622 #. type: textblock
22623 #: ../sparsify/virt-sparsify.pod:249
22624 msgid ""
22625 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../sparsify/virt-sparsify.pod:253
22630 msgid ""
22631 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
22632 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
22633 "(1)>, L<http://libguestfs.org/>."
22634 msgstr ""
22635
22636 #. type: textblock
22637 #: ../sparsify/virt-sparsify.pod:270
22638 msgid "Copyright (C) 2011 Red Hat Inc."
22639 msgstr ""
22640
22641 #. type: =head2
22642 #: ../src/guestfs-actions.pod:1
22643 msgid "guestfs_add_cdrom"
22644 msgstr ""
22645
22646 #. type: verbatim
22647 #: ../src/guestfs-actions.pod:3
22648 #, no-wrap
22649 msgid ""
22650 " int\n"
22651 " guestfs_add_cdrom (guestfs_h *g,\n"
22652 "                    const char *filename);\n"
22653 "\n"
22654 msgstr ""
22655
22656 #. type: textblock
22657 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
22658 #: ../src/guestfs-actions.pod:270
22659 msgid ""
22660 "I<This function is deprecated.> In new code, use the L</"
22661 "guestfs_add_drive_opts> call instead."
22662 msgstr ""
22663
22664 #. type: textblock
22665 #: ../src/guestfs-actions.pod:24
22666 msgid ""
22667 "This call checks for the existence of C<filename>.  This stops you from "
22668 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22669 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22670 "instead."
22671 msgstr ""
22672
22673 #. type: textblock
22674 #: ../src/guestfs-actions.pod:31
22675 msgid ""
22676 "If you just want to add an ISO file (often you use this as an efficient way "
22677 "to transfer large files into the guest), then you should probably use "
22678 "C<guestfs_add_drive_ro> instead."
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
22683 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22684 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
22685 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22686 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
22687 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
22688 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
22689 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
22690 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
22691 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
22692 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
22693 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
22694 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22695 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
22696 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
22697 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
22698 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
22699 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
22700 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
22701 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
22702 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
22703 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
22704 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
22705 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
22706 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
22707 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
22708 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
22709 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
22710 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
22711 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
22712 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
22713 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
22714 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
22715 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
22716 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
22717 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
22718 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
22719 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
22720 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
22721 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
22722 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
22723 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
22724 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
22725 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
22726 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
22727 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
22728 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
22729 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
22730 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
22731 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
22732 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
22733 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
22734 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
22735 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
22736 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
22737 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
22738 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
22739 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
22740 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
22741 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
22742 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
22743 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
22744 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
22745 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
22746 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
22747 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
22748 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
22749 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
22750 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
22751 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
22752 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
22753 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
22754 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
22755 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
22756 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
22757 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
22758 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
22759 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
22760 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
22761 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
22762 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
22763 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
22764 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
22765 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
22766 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
22767 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
22768 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
22769 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
22770 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
22771 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
22772 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
22773 #: ../src/guestfs-actions.pod:7988
22774 msgid "This function returns 0 on success or -1 on error."
22775 msgstr ""
22776
22777 #. type: textblock
22778 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
22779 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
22780 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
22781 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
22782 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
22783 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
22784 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
22785 #: ../src/guestfs-actions.pod:7765
22786 msgid "(Added in 0.3)"
22787 msgstr ""
22788
22789 #. type: =head2
22790 #: ../src/guestfs-actions.pod:41
22791 msgid "guestfs_add_domain"
22792 msgstr ""
22793
22794 #. type: verbatim
22795 #: ../src/guestfs-actions.pod:43
22796 #, no-wrap
22797 msgid ""
22798 " int\n"
22799 " guestfs_add_domain (guestfs_h *g,\n"
22800 "                     const char *dom,\n"
22801 "                     ...);\n"
22802 "\n"
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
22807 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
22808 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
22809 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
22810 #: ../src/guestfs-actions.pod:5321
22811 msgid ""
22812 "You may supply a list of optional arguments to this call.  Use zero or more "
22813 "of the following pairs of parameters, and terminate the list with C<-1> on "
22814 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
22815 msgstr ""
22816
22817 #. type: verbatim
22818 #: ../src/guestfs-actions.pod:53
22819 #, no-wrap
22820 msgid ""
22821 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
22822 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
22823 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
22824 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
22825 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
22826 "\n"
22827 msgstr ""
22828
22829 #. type: textblock
22830 #: ../src/guestfs-actions.pod:59
22831 msgid ""
22832 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22833 "It works by connecting to libvirt, requesting the domain and domain XML from "
22834 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
22835 "one."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../src/guestfs-actions.pod:94
22840 msgid ""
22841 "The other optional parameters are passed directly through to "
22842 "C<guestfs_add_drive_opts>."
22843 msgstr ""
22844
22845 #. type: textblock
22846 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
22847 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
22848 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
22849 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
22850 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
22851 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
22852 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
22853 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
22854 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
22855 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
22856 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
22857 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
22858 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
22859 msgid "On error this function returns -1."
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../src/guestfs-actions.pod:99
22864 msgid "(Added in 1.7.4)"
22865 msgstr ""
22866
22867 #. type: =head2
22868 #: ../src/guestfs-actions.pod:101
22869 msgid "guestfs_add_domain_va"
22870 msgstr ""
22871
22872 #. type: verbatim
22873 #: ../src/guestfs-actions.pod:103
22874 #, no-wrap
22875 msgid ""
22876 " int\n"
22877 " guestfs_add_domain_va (guestfs_h *g,\n"
22878 "                        const char *dom,\n"
22879 "                        va_list args);\n"
22880 "\n"
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../src/guestfs-actions.pod:108
22885 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
22890 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
22891 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
22892 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
22893 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
22894 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
22895 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
22896 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
22897 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
22898 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
22899 msgstr ""
22900
22901 #. type: =head2
22902 #: ../src/guestfs-actions.pod:112
22903 msgid "guestfs_add_domain_argv"
22904 msgstr ""
22905
22906 #. type: verbatim
22907 #: ../src/guestfs-actions.pod:114
22908 #, no-wrap
22909 msgid ""
22910 " int\n"
22911 " guestfs_add_domain_argv (guestfs_h *g,\n"
22912 "                          const char *dom,\n"
22913 "                          const struct guestfs_add_domain_argv *optargs);\n"
22914 "\n"
22915 msgstr ""
22916
22917 #. type: textblock
22918 #: ../src/guestfs-actions.pod:119
22919 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
22920 msgstr ""
22921
22922 #. type: =head2
22923 #: ../src/guestfs-actions.pod:123
22924 msgid "guestfs_add_drive"
22925 msgstr ""
22926
22927 #. type: verbatim
22928 #: ../src/guestfs-actions.pod:125
22929 #, no-wrap
22930 msgid ""
22931 " int\n"
22932 " guestfs_add_drive (guestfs_h *g,\n"
22933 "                    const char *filename);\n"
22934 "\n"
22935 msgstr ""
22936
22937 #. type: textblock
22938 #: ../src/guestfs-actions.pod:129
22939 msgid ""
22940 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
22941 "optional parameters, so the disk is added writable, with the format being "
22942 "detected automatically."
22943 msgstr ""
22944
22945 #. type: textblock
22946 #: ../src/guestfs-actions.pod:133
22947 msgid ""
22948 "Automatic detection of the format opens you up to a potential security hole "
22949 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22950 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22951 "you should think about replacing calls to this function with calls to "
22952 "C<guestfs_add_drive_opts>, and specifying the format."
22953 msgstr ""
22954
22955 #. type: =head2
22956 #: ../src/guestfs-actions.pod:144
22957 msgid "guestfs_add_drive_opts"
22958 msgstr ""
22959
22960 #. type: verbatim
22961 #: ../src/guestfs-actions.pod:146
22962 #, no-wrap
22963 msgid ""
22964 " int\n"
22965 " guestfs_add_drive_opts (guestfs_h *g,\n"
22966 "                         const char *filename,\n"
22967 "                         ...);\n"
22968 "\n"
22969 msgstr ""
22970
22971 #. type: verbatim
22972 #: ../src/guestfs-actions.pod:156
22973 #, no-wrap
22974 msgid ""
22975 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
22976 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
22977 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
22978 "\n"
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../src/guestfs-actions.pod:185
22983 msgid ""
22984 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
22985 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
22986 "Possible formats include C<raw> and C<qcow2>."
22987 msgstr ""
22988
22989 #. type: textblock
22990 #: ../src/guestfs-actions.pod:196
22991 msgid ""
22992 "This rarely-used option lets you emulate the behaviour of the deprecated "
22993 "C<guestfs_add_drive_with_if> call (q.v.)"
22994 msgstr ""
22995
22996 #. type: textblock
22997 #: ../src/guestfs-actions.pod:203
22998 msgid "(Added in 1.5.23)"
22999 msgstr ""
23000
23001 #. type: =head2
23002 #: ../src/guestfs-actions.pod:205
23003 msgid "guestfs_add_drive_opts_va"
23004 msgstr ""
23005
23006 #. type: verbatim
23007 #: ../src/guestfs-actions.pod:207
23008 #, no-wrap
23009 msgid ""
23010 " int\n"
23011 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23012 "                            const char *filename,\n"
23013 "                            va_list args);\n"
23014 "\n"
23015 msgstr ""
23016
23017 #. type: textblock
23018 #: ../src/guestfs-actions.pod:212
23019 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23020 msgstr ""
23021
23022 #. type: =head2
23023 #: ../src/guestfs-actions.pod:216
23024 msgid "guestfs_add_drive_opts_argv"
23025 msgstr ""
23026
23027 #. type: verbatim
23028 #: ../src/guestfs-actions.pod:218
23029 #, no-wrap
23030 msgid ""
23031 " int\n"
23032 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23033 "                              const char *filename,\n"
23034 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23035 "\n"
23036 msgstr ""
23037
23038 #. type: textblock
23039 #: ../src/guestfs-actions.pod:223
23040 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23041 msgstr ""
23042
23043 #. type: =head2
23044 #: ../src/guestfs-actions.pod:227
23045 msgid "guestfs_add_drive_ro"
23046 msgstr ""
23047
23048 #. type: verbatim
23049 #: ../src/guestfs-actions.pod:229
23050 #, no-wrap
23051 msgid ""
23052 " int\n"
23053 " guestfs_add_drive_ro (guestfs_h *g,\n"
23054 "                       const char *filename);\n"
23055 "\n"
23056 msgstr ""
23057
23058 #. type: textblock
23059 #: ../src/guestfs-actions.pod:233
23060 msgid ""
23061 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23062 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23063 "disk is added read-only, with the format being detected automatically."
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../src/guestfs-actions.pod:240
23068 msgid "(Added in 1.0.38)"
23069 msgstr ""
23070
23071 #. type: =head2
23072 #: ../src/guestfs-actions.pod:242
23073 msgid "guestfs_add_drive_ro_with_if"
23074 msgstr ""
23075
23076 #. type: verbatim
23077 #: ../src/guestfs-actions.pod:244
23078 #, no-wrap
23079 msgid ""
23080 " int\n"
23081 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23082 "                               const char *filename,\n"
23083 "                               const char *iface);\n"
23084 "\n"
23085 msgstr ""
23086
23087 #. type: textblock
23088 #: ../src/guestfs-actions.pod:256
23089 msgid ""
23090 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23091 "QEMU interface emulation to use at run time."
23092 msgstr ""
23093
23094 #. type: textblock
23095 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23096 #: ../src/guestfs-actions.pod:2580
23097 msgid "(Added in 1.0.84)"
23098 msgstr ""
23099
23100 #. type: =head2
23101 #: ../src/guestfs-actions.pod:263
23102 msgid "guestfs_add_drive_with_if"
23103 msgstr ""
23104
23105 #. type: verbatim
23106 #: ../src/guestfs-actions.pod:265
23107 #, no-wrap
23108 msgid ""
23109 " int\n"
23110 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23111 "                            const char *filename,\n"
23112 "                            const char *iface);\n"
23113 "\n"
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../src/guestfs-actions.pod:277
23118 msgid ""
23119 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23120 "QEMU interface emulation to use at run time."
23121 msgstr ""
23122
23123 #. type: =head2
23124 #: ../src/guestfs-actions.pod:284
23125 msgid "guestfs_aug_clear"
23126 msgstr ""
23127
23128 #. type: verbatim
23129 #: ../src/guestfs-actions.pod:286
23130 #, no-wrap
23131 msgid ""
23132 " int\n"
23133 " guestfs_aug_clear (guestfs_h *g,\n"
23134 "                    const char *augpath);\n"
23135 "\n"
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
23140 msgid "(Added in 1.3.4)"
23141 msgstr ""
23142
23143 #. type: =head2
23144 #: ../src/guestfs-actions.pod:297
23145 msgid "guestfs_aug_close"
23146 msgstr ""
23147
23148 #. type: verbatim
23149 #: ../src/guestfs-actions.pod:299
23150 #, no-wrap
23151 msgid ""
23152 " int\n"
23153 " guestfs_aug_close (guestfs_h *g);\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../src/guestfs-actions.pod:302
23159 msgid ""
23160 "Close the current Augeas handle and free up any resources used by it.  After "
23161 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23162 "any other Augeas functions."
23163 msgstr ""
23164
23165 #. type: textblock
23166 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23167 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23168 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23169 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23170 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23171 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23172 #: ../src/guestfs-actions.pod:5989
23173 msgid "(Added in 0.7)"
23174 msgstr ""
23175
23176 #. type: =head2
23177 #: ../src/guestfs-actions.pod:311
23178 msgid "guestfs_aug_defnode"
23179 msgstr ""
23180
23181 #. type: verbatim
23182 #: ../src/guestfs-actions.pod:313
23183 #, no-wrap
23184 msgid ""
23185 " struct guestfs_int_bool *\n"
23186 " guestfs_aug_defnode (guestfs_h *g,\n"
23187 "                      const char *name,\n"
23188 "                      const char *expr,\n"
23189 "                      const char *val);\n"
23190 "\n"
23191 msgstr ""
23192
23193 #. type: textblock
23194 #: ../src/guestfs-actions.pod:322
23195 msgid ""
23196 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23197 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23198 "containing that single node."
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../src/guestfs-actions.pod:330
23203 msgid ""
23204 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23205 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23206 msgstr ""
23207
23208 #. type: =head2
23209 #: ../src/guestfs-actions.pod:336
23210 msgid "guestfs_aug_defvar"
23211 msgstr ""
23212
23213 #. type: verbatim
23214 #: ../src/guestfs-actions.pod:338
23215 #, no-wrap
23216 msgid ""
23217 " int\n"
23218 " guestfs_aug_defvar (guestfs_h *g,\n"
23219 "                     const char *name,\n"
23220 "                     const char *expr);\n"
23221 "\n"
23222 msgstr ""
23223
23224 #. type: =head2
23225 #: ../src/guestfs-actions.pod:354
23226 msgid "guestfs_aug_get"
23227 msgstr ""
23228
23229 #. type: verbatim
23230 #: ../src/guestfs-actions.pod:356
23231 #, no-wrap
23232 msgid ""
23233 " char *\n"
23234 " guestfs_aug_get (guestfs_h *g,\n"
23235 "                  const char *augpath);\n"
23236 "\n"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23241 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23242 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23243 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
23244 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
23245 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
23246 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
23247 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
23248 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
23249 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
23250 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
23251 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
23252 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
23253 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
23254 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
23255 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
23256 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
23257 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
23258 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
23259 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
23260 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
23261 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
23262 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
23263 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
23264 msgid ""
23265 "This function returns a string, or NULL on error.  I<The caller must free "
23266 "the returned string after use>."
23267 msgstr ""
23268
23269 #. type: =head2
23270 #: ../src/guestfs-actions.pod:368
23271 msgid "guestfs_aug_init"
23272 msgstr ""
23273
23274 #. type: verbatim
23275 #: ../src/guestfs-actions.pod:370
23276 #, no-wrap
23277 msgid ""
23278 " int\n"
23279 " guestfs_aug_init (guestfs_h *g,\n"
23280 "                   const char *root,\n"
23281 "                   int flags);\n"
23282 "\n"
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../src/guestfs-actions.pod:379
23287 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../src/guestfs-actions.pod:404
23292 msgid ""
23293 "This option is only useful when debugging Augeas lenses.  Use of this option "
23294 "may require additional memory for the libguestfs appliance.  You may need to "
23295 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23296 "C<guestfs_set_memsize>."
23297 msgstr ""
23298
23299 #. type: textblock
23300 #: ../src/guestfs-actions.pod:419
23301 msgid "Do not load the tree in C<guestfs_aug_init>."
23302 msgstr ""
23303
23304 #. type: textblock
23305 #: ../src/guestfs-actions.pod:423
23306 msgid "To close the handle, you can call C<guestfs_aug_close>."
23307 msgstr ""
23308
23309 #. type: =head2
23310 #: ../src/guestfs-actions.pod:431
23311 msgid "guestfs_aug_insert"
23312 msgstr ""
23313
23314 #. type: verbatim
23315 #: ../src/guestfs-actions.pod:433
23316 #, no-wrap
23317 msgid ""
23318 " int\n"
23319 " guestfs_aug_insert (guestfs_h *g,\n"
23320 "                     const char *augpath,\n"
23321 "                     const char *label,\n"
23322 "                     int before);\n"
23323 "\n"
23324 msgstr ""
23325
23326 #. type: =head2
23327 #: ../src/guestfs-actions.pod:451
23328 msgid "guestfs_aug_load"
23329 msgstr ""
23330
23331 #. type: verbatim
23332 #: ../src/guestfs-actions.pod:453
23333 #, no-wrap
23334 msgid ""
23335 " int\n"
23336 " guestfs_aug_load (guestfs_h *g);\n"
23337 "\n"
23338 msgstr ""
23339
23340 #. type: =head2
23341 #: ../src/guestfs-actions.pod:465
23342 msgid "guestfs_aug_ls"
23343 msgstr ""
23344
23345 #. type: verbatim
23346 #: ../src/guestfs-actions.pod:467
23347 #, no-wrap
23348 msgid ""
23349 " char **\n"
23350 " guestfs_aug_ls (guestfs_h *g,\n"
23351 "                 const char *augpath);\n"
23352 "\n"
23353 msgstr ""
23354
23355 #. type: textblock
23356 #: ../src/guestfs-actions.pod:471
23357 msgid ""
23358 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23359 "sorting the resulting nodes into alphabetical order."
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23364 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23365 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
23366 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
23367 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
23368 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
23369 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
23370 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
23371 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
23372 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
23373 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
23374 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
23375 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
23376 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
23377 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
23378 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
23379 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
23380 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
23381 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
23382 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
23383 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
23384 #: ../src/guestfs-actions.pod:8086
23385 msgid ""
23386 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23387 ">), or NULL if there was an error.  I<The caller must free the strings and "
23388 "the array after use>."
23389 msgstr ""
23390
23391 #. type: textblock
23392 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23393 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
23394 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
23395 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
23396 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
23397 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
23398 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
23399 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
23400 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
23401 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
23402 #: ../src/guestfs-actions.pod:7877
23403 msgid "(Added in 0.8)"
23404 msgstr ""
23405
23406 #. type: =head2
23407 #: ../src/guestfs-actions.pod:480
23408 msgid "guestfs_aug_match"
23409 msgstr ""
23410
23411 #. type: verbatim
23412 #: ../src/guestfs-actions.pod:482
23413 #, no-wrap
23414 msgid ""
23415 " char **\n"
23416 " guestfs_aug_match (guestfs_h *g,\n"
23417 "                    const char *augpath);\n"
23418 "\n"
23419 msgstr ""
23420
23421 #. type: =head2
23422 #: ../src/guestfs-actions.pod:496
23423 msgid "guestfs_aug_mv"
23424 msgstr ""
23425
23426 #. type: verbatim
23427 #: ../src/guestfs-actions.pod:498
23428 #, no-wrap
23429 msgid ""
23430 " int\n"
23431 " guestfs_aug_mv (guestfs_h *g,\n"
23432 "                 const char *src,\n"
23433 "                 const char *dest);\n"
23434 "\n"
23435 msgstr ""
23436
23437 #. type: =head2
23438 #: ../src/guestfs-actions.pod:510
23439 msgid "guestfs_aug_rm"
23440 msgstr ""
23441
23442 #. type: verbatim
23443 #: ../src/guestfs-actions.pod:512
23444 #, no-wrap
23445 msgid ""
23446 " int\n"
23447 " guestfs_aug_rm (guestfs_h *g,\n"
23448 "                 const char *augpath);\n"
23449 "\n"
23450 msgstr ""
23451
23452 #. type: =head2
23453 #: ../src/guestfs-actions.pod:524
23454 msgid "guestfs_aug_save"
23455 msgstr ""
23456
23457 #. type: verbatim
23458 #: ../src/guestfs-actions.pod:526
23459 #, no-wrap
23460 msgid ""
23461 " int\n"
23462 " guestfs_aug_save (guestfs_h *g);\n"
23463 "\n"
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../src/guestfs-actions.pod:531
23468 msgid ""
23469 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23470 "are saved."
23471 msgstr ""
23472
23473 #. type: =head2
23474 #: ../src/guestfs-actions.pod:538
23475 msgid "guestfs_aug_set"
23476 msgstr ""
23477
23478 #. type: verbatim
23479 #: ../src/guestfs-actions.pod:540
23480 #, no-wrap
23481 msgid ""
23482 " int\n"
23483 " guestfs_aug_set (guestfs_h *g,\n"
23484 "                  const char *augpath,\n"
23485 "                  const char *val);\n"
23486 "\n"
23487 msgstr ""
23488
23489 #. type: textblock
23490 #: ../src/guestfs-actions.pod:547
23491 msgid ""
23492 "In the Augeas API, it is possible to clear a node by setting the value to "
23493 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23494 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23495 msgstr ""
23496
23497 #. type: =head2
23498 #: ../src/guestfs-actions.pod:556
23499 msgid "guestfs_available"
23500 msgstr ""
23501
23502 #. type: verbatim
23503 #: ../src/guestfs-actions.pod:558
23504 #, no-wrap
23505 msgid ""
23506 " int\n"
23507 " guestfs_available (guestfs_h *g,\n"
23508 "                    char *const *groups);\n"
23509 "\n"
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../src/guestfs-actions.pod:566
23514 msgid ""
23515 "The libguestfs groups, and the functions that those groups correspond to, "
23516 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23517 "runtime by calling C<guestfs_available_all_groups>."
23518 msgstr ""
23519
23520 #. type: textblock
23521 #: ../src/guestfs-actions.pod:590
23522 msgid "You must call C<guestfs_launch> before calling this function."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../src/guestfs-actions.pod:612
23527 msgid ""
23528 "This call was added in version C<1.0.80>.  In previous versions of "
23529 "libguestfs all you could do would be to speculatively execute a command to "
23530 "find out if the daemon implemented it.  See also C<guestfs_version>."
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
23535 msgid "(Added in 1.0.80)"
23536 msgstr ""
23537
23538 #. type: =head2
23539 #: ../src/guestfs-actions.pod:623
23540 msgid "guestfs_available_all_groups"
23541 msgstr ""
23542
23543 #. type: verbatim
23544 #: ../src/guestfs-actions.pod:625
23545 #, no-wrap
23546 msgid ""
23547 " char **\n"
23548 " guestfs_available_all_groups (guestfs_h *g);\n"
23549 "\n"
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../src/guestfs-actions.pod:628
23554 msgid ""
23555 "This command returns a list of all optional groups that this daemon knows "
23556 "about.  Note this returns both supported and unsupported groups.  To find "
23557 "out which ones the daemon can actually support you have to call "
23558 "C<guestfs_available> on each member of the returned list."
23559 msgstr ""
23560
23561 #. type: textblock
23562 #: ../src/guestfs-actions.pod:634
23563 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../src/guestfs-actions.pod:640
23568 msgid "(Added in 1.3.15)"
23569 msgstr ""
23570
23571 #. type: =head2
23572 #: ../src/guestfs-actions.pod:642
23573 msgid "guestfs_base64_in"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../src/guestfs-actions.pod:644
23578 #, no-wrap
23579 msgid ""
23580 " int\n"
23581 " guestfs_base64_in (guestfs_h *g,\n"
23582 "                    const char *base64file,\n"
23583 "                    const char *filename);\n"
23584 "\n"
23585 msgstr ""
23586
23587 #. type: textblock
23588 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23589 msgid "(Added in 1.3.5)"
23590 msgstr ""
23591
23592 #. type: =head2
23593 #: ../src/guestfs-actions.pod:656
23594 msgid "guestfs_base64_out"
23595 msgstr ""
23596
23597 #. type: verbatim
23598 #: ../src/guestfs-actions.pod:658
23599 #, no-wrap
23600 msgid ""
23601 " int\n"
23602 " guestfs_base64_out (guestfs_h *g,\n"
23603 "                     const char *filename,\n"
23604 "                     const char *base64file);\n"
23605 "\n"
23606 msgstr ""
23607
23608 #. type: =head2
23609 #: ../src/guestfs-actions.pod:670
23610 msgid "guestfs_blockdev_flushbufs"
23611 msgstr ""
23612
23613 #. type: verbatim
23614 #: ../src/guestfs-actions.pod:672
23615 #, no-wrap
23616 msgid ""
23617 " int\n"
23618 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23619 "                             const char *device);\n"
23620 "\n"
23621 msgstr ""
23622
23623 #. type: textblock
23624 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23625 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23626 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23627 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23628 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23629 msgid "(Added in 0.9.3)"
23630 msgstr ""
23631
23632 #. type: =head2
23633 #: ../src/guestfs-actions.pod:685
23634 msgid "guestfs_blockdev_getbsz"
23635 msgstr ""
23636
23637 #. type: verbatim
23638 #: ../src/guestfs-actions.pod:687
23639 #, no-wrap
23640 msgid ""
23641 " int\n"
23642 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23643 "                          const char *device);\n"
23644 "\n"
23645 msgstr ""
23646
23647 #. type: =head2
23648 #: ../src/guestfs-actions.pod:702
23649 msgid "guestfs_blockdev_getro"
23650 msgstr ""
23651
23652 #. type: verbatim
23653 #: ../src/guestfs-actions.pod:704
23654 #, no-wrap
23655 msgid ""
23656 " int\n"
23657 " guestfs_blockdev_getro (guestfs_h *g,\n"
23658 "                         const char *device);\n"
23659 "\n"
23660 msgstr ""
23661
23662 #. type: textblock
23663 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
23664 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
23665 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
23666 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
23667 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
23668 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
23669 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
23670 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
23671 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
23672 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
23673 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
23674 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
23675 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
23676 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
23677 #: ../src/guestfs-actions.pod:5482
23678 msgid "This function returns a C truth value on success or -1 on error."
23679 msgstr ""
23680
23681 #. type: =head2
23682 #: ../src/guestfs-actions.pod:717
23683 msgid "guestfs_blockdev_getsize64"
23684 msgstr ""
23685
23686 #. type: verbatim
23687 #: ../src/guestfs-actions.pod:719
23688 #, no-wrap
23689 msgid ""
23690 " int64_t\n"
23691 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23692 "                             const char *device);\n"
23693 "\n"
23694 msgstr ""
23695
23696 #. type: textblock
23697 #: ../src/guestfs-actions.pod:725
23698 msgid "See also C<guestfs_blockdev_getsz>."
23699 msgstr ""
23700
23701 #. type: =head2
23702 #: ../src/guestfs-actions.pod:733
23703 msgid "guestfs_blockdev_getss"
23704 msgstr ""
23705
23706 #. type: verbatim
23707 #: ../src/guestfs-actions.pod:735
23708 #, no-wrap
23709 msgid ""
23710 " int\n"
23711 " guestfs_blockdev_getss (guestfs_h *g,\n"
23712 "                         const char *device);\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: textblock
23717 #: ../src/guestfs-actions.pod:742
23718 msgid ""
23719 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23720 "that)."
23721 msgstr ""
23722
23723 #. type: =head2
23724 #: ../src/guestfs-actions.pod:751
23725 msgid "guestfs_blockdev_getsz"
23726 msgstr ""
23727
23728 #. type: verbatim
23729 #: ../src/guestfs-actions.pod:753
23730 #, no-wrap
23731 msgid ""
23732 " int64_t\n"
23733 " guestfs_blockdev_getsz (guestfs_h *g,\n"
23734 "                         const char *device);\n"
23735 "\n"
23736 msgstr ""
23737
23738 #. type: textblock
23739 #: ../src/guestfs-actions.pod:760
23740 msgid ""
23741 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
23742 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
23743 msgstr ""
23744
23745 #. type: =head2
23746 #: ../src/guestfs-actions.pod:770
23747 msgid "guestfs_blockdev_rereadpt"
23748 msgstr ""
23749
23750 #. type: verbatim
23751 #: ../src/guestfs-actions.pod:772
23752 #, no-wrap
23753 msgid ""
23754 " int\n"
23755 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
23756 "                            const char *device);\n"
23757 "\n"
23758 msgstr ""
23759
23760 #. type: =head2
23761 #: ../src/guestfs-actions.pod:784
23762 msgid "guestfs_blockdev_setbsz"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../src/guestfs-actions.pod:786
23767 #, no-wrap
23768 msgid ""
23769 " int\n"
23770 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
23771 "                          const char *device,\n"
23772 "                          int blocksize);\n"
23773 "\n"
23774 msgstr ""
23775
23776 #. type: =head2
23777 #: ../src/guestfs-actions.pod:802
23778 msgid "guestfs_blockdev_setro"
23779 msgstr ""
23780
23781 #. type: verbatim
23782 #: ../src/guestfs-actions.pod:804
23783 #, no-wrap
23784 msgid ""
23785 " int\n"
23786 " guestfs_blockdev_setro (guestfs_h *g,\n"
23787 "                         const char *device);\n"
23788 "\n"
23789 msgstr ""
23790
23791 #. type: =head2
23792 #: ../src/guestfs-actions.pod:816
23793 msgid "guestfs_blockdev_setrw"
23794 msgstr ""
23795
23796 #. type: verbatim
23797 #: ../src/guestfs-actions.pod:818
23798 #, no-wrap
23799 msgid ""
23800 " int\n"
23801 " guestfs_blockdev_setrw (guestfs_h *g,\n"
23802 "                         const char *device);\n"
23803 "\n"
23804 msgstr ""
23805
23806 #. type: =head2
23807 #: ../src/guestfs-actions.pod:830
23808 msgid "guestfs_btrfs_filesystem_resize"
23809 msgstr ""
23810
23811 #. type: verbatim
23812 #: ../src/guestfs-actions.pod:832
23813 #, no-wrap
23814 msgid ""
23815 " int\n"
23816 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
23817 "                                  const char *mountpoint,\n"
23818 "                                  ...);\n"
23819 "\n"
23820 msgstr ""
23821
23822 #. type: verbatim
23823 #: ../src/guestfs-actions.pod:842
23824 #, no-wrap
23825 msgid ""
23826 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
23827 "\n"
23828 msgstr ""
23829
23830 #. type: textblock
23831 #: ../src/guestfs-actions.pod:865
23832 msgid "(Added in 1.11.17)"
23833 msgstr ""
23834
23835 #. type: =head2
23836 #: ../src/guestfs-actions.pod:867
23837 msgid "guestfs_btrfs_filesystem_resize_va"
23838 msgstr ""
23839
23840 #. type: verbatim
23841 #: ../src/guestfs-actions.pod:869
23842 #, no-wrap
23843 msgid ""
23844 " int\n"
23845 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
23846 "                                     const char *mountpoint,\n"
23847 "                                     va_list args);\n"
23848 "\n"
23849 msgstr ""
23850
23851 #. type: textblock
23852 #: ../src/guestfs-actions.pod:874
23853 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
23854 msgstr ""
23855
23856 #. type: =head2
23857 #: ../src/guestfs-actions.pod:878
23858 msgid "guestfs_btrfs_filesystem_resize_argv"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../src/guestfs-actions.pod:880
23863 #, no-wrap
23864 msgid ""
23865 " int\n"
23866 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
23867 "                                       const char *mountpoint,\n"
23868 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
23869 "\n"
23870 msgstr ""
23871
23872 #. type: textblock
23873 #: ../src/guestfs-actions.pod:885
23874 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
23875 msgstr ""
23876
23877 #. type: =head2
23878 #: ../src/guestfs-actions.pod:889
23879 msgid "guestfs_case_sensitive_path"
23880 msgstr ""
23881
23882 #. type: verbatim
23883 #: ../src/guestfs-actions.pod:891
23884 #, no-wrap
23885 msgid ""
23886 " char *\n"
23887 " guestfs_case_sensitive_path (guestfs_h *g,\n"
23888 "                              const char *path);\n"
23889 "\n"
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../src/guestfs-actions.pod:917
23894 msgid ""
23895 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
23896 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
23897 "how the directories were originally created under Windows)."
23898 msgstr ""
23899
23900 #. type: textblock
23901 #: ../src/guestfs-actions.pod:925
23902 msgid "See also C<guestfs_realpath>."
23903 msgstr ""
23904
23905 #. type: textblock
23906 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
23907 msgid "(Added in 1.0.75)"
23908 msgstr ""
23909
23910 #. type: =head2
23911 #: ../src/guestfs-actions.pod:932
23912 msgid "guestfs_cat"
23913 msgstr ""
23914
23915 #. type: verbatim
23916 #: ../src/guestfs-actions.pod:934
23917 #, no-wrap
23918 msgid ""
23919 " char *\n"
23920 " guestfs_cat (guestfs_h *g,\n"
23921 "              const char *path);\n"
23922 "\n"
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../src/guestfs-actions.pod:940
23927 msgid ""
23928 "Note that this function cannot correctly handle binary files (specifically, "
23929 "files containing C<\\0> character which is treated as end of string).  For "
23930 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
23931 "functions which have a more complex interface."
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
23936 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
23937 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
23938 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
23939 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
23940 #: ../src/guestfs-actions.pod:7713
23941 msgid "(Added in 0.4)"
23942 msgstr ""
23943
23944 #. type: =head2
23945 #: ../src/guestfs-actions.pod:953
23946 msgid "guestfs_checksum"
23947 msgstr ""
23948
23949 #. type: verbatim
23950 #: ../src/guestfs-actions.pod:955
23951 #, no-wrap
23952 msgid ""
23953 " char *\n"
23954 " guestfs_checksum (guestfs_h *g,\n"
23955 "                   const char *csumtype,\n"
23956 "                   const char *path);\n"
23957 "\n"
23958 msgstr ""
23959
23960 #. type: textblock
23961 #: ../src/guestfs-actions.pod:1001
23962 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
23963 msgstr ""
23964
23965 #. type: textblock
23966 #: ../src/guestfs-actions.pod:1003
23967 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
23968 msgstr ""
23969
23970 #. type: textblock
23971 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
23972 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
23973 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
23974 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
23975 msgid "(Added in 1.0.2)"
23976 msgstr ""
23977
23978 #. type: =head2
23979 #: ../src/guestfs-actions.pod:1010
23980 msgid "guestfs_checksum_device"
23981 msgstr ""
23982
23983 #. type: verbatim
23984 #: ../src/guestfs-actions.pod:1012
23985 #, no-wrap
23986 msgid ""
23987 " char *\n"
23988 " guestfs_checksum_device (guestfs_h *g,\n"
23989 "                          const char *csumtype,\n"
23990 "                          const char *device);\n"
23991 "\n"
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../src/guestfs-actions.pod:1017
23996 msgid ""
23997 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23998 "device named C<device>.  For the types of checksums supported see the "
23999 "C<guestfs_checksum> command."
24000 msgstr ""
24001
24002 #. type: textblock
24003 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
24004 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
24005 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
24006 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
24007 #: ../src/guestfs-actions.pod:7725
24008 msgid "(Added in 1.3.2)"
24009 msgstr ""
24010
24011 #. type: =head2
24012 #: ../src/guestfs-actions.pod:1026
24013 msgid "guestfs_checksums_out"
24014 msgstr ""
24015
24016 #. type: verbatim
24017 #: ../src/guestfs-actions.pod:1028
24018 #, no-wrap
24019 msgid ""
24020 " int\n"
24021 " guestfs_checksums_out (guestfs_h *g,\n"
24022 "                        const char *csumtype,\n"
24023 "                        const char *directory,\n"
24024 "                        const char *sumsfile);\n"
24025 "\n"
24026 msgstr ""
24027
24028 #. type: textblock
24029 #: ../src/guestfs-actions.pod:1048
24030 msgid "(Added in 1.3.7)"
24031 msgstr ""
24032
24033 #. type: =head2
24034 #: ../src/guestfs-actions.pod:1050
24035 msgid "guestfs_chmod"
24036 msgstr ""
24037
24038 #. type: verbatim
24039 #: ../src/guestfs-actions.pod:1052
24040 #, no-wrap
24041 msgid ""
24042 " int\n"
24043 " guestfs_chmod (guestfs_h *g,\n"
24044 "                int mode,\n"
24045 "                const char *path);\n"
24046 "\n"
24047 msgstr ""
24048
24049 #. type: =head2
24050 #: ../src/guestfs-actions.pod:1070
24051 msgid "guestfs_chown"
24052 msgstr ""
24053
24054 #. type: verbatim
24055 #: ../src/guestfs-actions.pod:1072
24056 #, no-wrap
24057 msgid ""
24058 " int\n"
24059 " guestfs_chown (guestfs_h *g,\n"
24060 "                int owner,\n"
24061 "                int group,\n"
24062 "                const char *path);\n"
24063 "\n"
24064 msgstr ""
24065
24066 #. type: =head2
24067 #: ../src/guestfs-actions.pod:1088
24068 msgid "guestfs_command"
24069 msgstr ""
24070
24071 #. type: verbatim
24072 #: ../src/guestfs-actions.pod:1090
24073 #, no-wrap
24074 msgid ""
24075 " char *\n"
24076 " guestfs_command (guestfs_h *g,\n"
24077 "                  char *const *arguments);\n"
24078 "\n"
24079 msgstr ""
24080
24081 #. type: textblock
24082 #: ../src/guestfs-actions.pod:1099
24083 msgid ""
24084 "The single parameter is an argv-style list of arguments.  The first element "
24085 "is the name of the program to run.  Subsequent elements are parameters.  The "
24086 "list must be non-empty (ie. must contain a program name).  Note that the "
24087 "command runs directly, and is I<not> invoked via the shell (see "
24088 "C<guestfs_sh>)."
24089 msgstr ""
24090
24091 #. type: textblock
24092 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24093 #: ../src/guestfs-actions.pod:1726
24094 msgid "(Added in 0.9.1)"
24095 msgstr ""
24096
24097 #. type: =head2
24098 #: ../src/guestfs-actions.pod:1132
24099 msgid "guestfs_command_lines"
24100 msgstr ""
24101
24102 #. type: verbatim
24103 #: ../src/guestfs-actions.pod:1134
24104 #, no-wrap
24105 msgid ""
24106 " char **\n"
24107 " guestfs_command_lines (guestfs_h *g,\n"
24108 "                        char *const *arguments);\n"
24109 "\n"
24110 msgstr ""
24111
24112 #. type: textblock
24113 #: ../src/guestfs-actions.pod:1138
24114 msgid ""
24115 "This is the same as C<guestfs_command>, but splits the result into a list of "
24116 "lines."
24117 msgstr ""
24118
24119 #. type: textblock
24120 #: ../src/guestfs-actions.pod:1141
24121 msgid "See also: C<guestfs_sh_lines>"
24122 msgstr ""
24123
24124 #. type: =head2
24125 #: ../src/guestfs-actions.pod:1152
24126 msgid "guestfs_compress_device_out"
24127 msgstr ""
24128
24129 #. type: verbatim
24130 #: ../src/guestfs-actions.pod:1154
24131 #, no-wrap
24132 msgid ""
24133 " int\n"
24134 " guestfs_compress_device_out (guestfs_h *g,\n"
24135 "                              const char *ctype,\n"
24136 "                              const char *device,\n"
24137 "                              const char *zdevice,\n"
24138 "                              ...);\n"
24139 "\n"
24140 msgstr ""
24141
24142 #. type: verbatim
24143 #: ../src/guestfs-actions.pod:1166
24144 #, no-wrap
24145 msgid ""
24146 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
24147 "\n"
24148 msgstr ""
24149
24150 #. type: textblock
24151 #: ../src/guestfs-actions.pod:1171
24152 msgid ""
24153 "The C<ctype> and optional C<level> parameters have the same meaning as in "
24154 "C<guestfs_compress_out>."
24155 msgstr ""
24156
24157 #. type: textblock
24158 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
24159 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
24160 msgid "(Added in 1.13.15)"
24161 msgstr ""
24162
24163 #. type: =head2
24164 #: ../src/guestfs-actions.pod:1178
24165 msgid "guestfs_compress_device_out_va"
24166 msgstr ""
24167
24168 #. type: verbatim
24169 #: ../src/guestfs-actions.pod:1180
24170 #, no-wrap
24171 msgid ""
24172 " int\n"
24173 " guestfs_compress_device_out_va (guestfs_h *g,\n"
24174 "                                 const char *ctype,\n"
24175 "                                 const char *device,\n"
24176 "                                 const char *zdevice,\n"
24177 "                                 va_list args);\n"
24178 "\n"
24179 msgstr ""
24180
24181 #. type: textblock
24182 #: ../src/guestfs-actions.pod:1187
24183 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
24184 msgstr ""
24185
24186 #. type: =head2
24187 #: ../src/guestfs-actions.pod:1191
24188 msgid "guestfs_compress_device_out_argv"
24189 msgstr ""
24190
24191 #. type: verbatim
24192 #: ../src/guestfs-actions.pod:1193
24193 #, no-wrap
24194 msgid ""
24195 " int\n"
24196 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
24197 "                                   const char *ctype,\n"
24198 "                                   const char *device,\n"
24199 "                                   const char *zdevice,\n"
24200 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
24201 "\n"
24202 msgstr ""
24203
24204 #. type: textblock
24205 #: ../src/guestfs-actions.pod:1200
24206 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
24207 msgstr ""
24208
24209 #. type: =head2
24210 #: ../src/guestfs-actions.pod:1204
24211 msgid "guestfs_compress_out"
24212 msgstr ""
24213
24214 #. type: verbatim
24215 #: ../src/guestfs-actions.pod:1206
24216 #, no-wrap
24217 msgid ""
24218 " int\n"
24219 " guestfs_compress_out (guestfs_h *g,\n"
24220 "                       const char *ctype,\n"
24221 "                       const char *file,\n"
24222 "                       const char *zfile,\n"
24223 "                       ...);\n"
24224 "\n"
24225 msgstr ""
24226
24227 #. type: verbatim
24228 #: ../src/guestfs-actions.pod:1218
24229 #, no-wrap
24230 msgid ""
24231 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: =head2
24236 #: ../src/guestfs-actions.pod:1237
24237 msgid "guestfs_compress_out_va"
24238 msgstr ""
24239
24240 #. type: verbatim
24241 #: ../src/guestfs-actions.pod:1239
24242 #, no-wrap
24243 msgid ""
24244 " int\n"
24245 " guestfs_compress_out_va (guestfs_h *g,\n"
24246 "                          const char *ctype,\n"
24247 "                          const char *file,\n"
24248 "                          const char *zfile,\n"
24249 "                          va_list args);\n"
24250 "\n"
24251 msgstr ""
24252
24253 #. type: textblock
24254 #: ../src/guestfs-actions.pod:1246
24255 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
24256 msgstr ""
24257
24258 #. type: =head2
24259 #: ../src/guestfs-actions.pod:1250
24260 msgid "guestfs_compress_out_argv"
24261 msgstr ""
24262
24263 #. type: verbatim
24264 #: ../src/guestfs-actions.pod:1252
24265 #, no-wrap
24266 msgid ""
24267 " int\n"
24268 " guestfs_compress_out_argv (guestfs_h *g,\n"
24269 "                            const char *ctype,\n"
24270 "                            const char *file,\n"
24271 "                            const char *zfile,\n"
24272 "                            const struct guestfs_compress_out_argv *optargs);\n"
24273 "\n"
24274 msgstr ""
24275
24276 #. type: textblock
24277 #: ../src/guestfs-actions.pod:1259
24278 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
24279 msgstr ""
24280
24281 #. type: =head2
24282 #: ../src/guestfs-actions.pod:1263
24283 msgid "guestfs_config"
24284 msgstr ""
24285
24286 #. type: verbatim
24287 #: ../src/guestfs-actions.pod:1265
24288 #, no-wrap
24289 msgid ""
24290 " int\n"
24291 " guestfs_config (guestfs_h *g,\n"
24292 "                 const char *qemuparam,\n"
24293 "                 const char *qemuvalue);\n"
24294 "\n"
24295 msgstr ""
24296
24297 #. type: =head2
24298 #: ../src/guestfs-actions.pod:1283
24299 msgid "guestfs_copy_size"
24300 msgstr ""
24301
24302 #. type: verbatim
24303 #: ../src/guestfs-actions.pod:1285
24304 #, no-wrap
24305 msgid ""
24306 " int\n"
24307 " guestfs_copy_size (guestfs_h *g,\n"
24308 "                    const char *src,\n"
24309 "                    const char *dest,\n"
24310 "                    int64_t size);\n"
24311 "\n"
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
24316 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
24317 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
24318 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
24319 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
24320 #: ../src/guestfs-actions.pod:7961
24321 msgid ""
24322 "This long-running command can generate progress notification messages so "
24323 "that the caller can display a progress bar or indicator.  To receive these "
24324 "messages, the caller must register a progress event callback.  See L<guestfs"
24325 "(3)/GUESTFS_EVENT_PROGRESS>."
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
24330 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
24331 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
24332 msgid "(Added in 1.0.87)"
24333 msgstr ""
24334
24335 #. type: =head2
24336 #: ../src/guestfs-actions.pod:1306
24337 msgid "guestfs_cp"
24338 msgstr ""
24339
24340 #. type: verbatim
24341 #: ../src/guestfs-actions.pod:1308
24342 #, no-wrap
24343 msgid ""
24344 " int\n"
24345 " guestfs_cp (guestfs_h *g,\n"
24346 "             const char *src,\n"
24347 "             const char *dest);\n"
24348 "\n"
24349 msgstr ""
24350
24351 #. type: textblock
24352 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
24353 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
24354 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
24355 #: ../src/guestfs-actions.pod:5734
24356 msgid "(Added in 1.0.18)"
24357 msgstr ""
24358
24359 #. type: =head2
24360 #: ../src/guestfs-actions.pod:1320
24361 msgid "guestfs_cp_a"
24362 msgstr ""
24363
24364 #. type: verbatim
24365 #: ../src/guestfs-actions.pod:1322
24366 #, no-wrap
24367 msgid ""
24368 " int\n"
24369 " guestfs_cp_a (guestfs_h *g,\n"
24370 "               const char *src,\n"
24371 "               const char *dest);\n"
24372 "\n"
24373 msgstr ""
24374
24375 #. type: =head2
24376 #: ../src/guestfs-actions.pod:1334
24377 msgid "guestfs_dd"
24378 msgstr ""
24379
24380 #. type: verbatim
24381 #: ../src/guestfs-actions.pod:1336
24382 #, no-wrap
24383 msgid ""
24384 " int\n"
24385 " guestfs_dd (guestfs_h *g,\n"
24386 "             const char *src,\n"
24387 "             const char *dest);\n"
24388 "\n"
24389 msgstr ""
24390
24391 #. type: textblock
24392 #: ../src/guestfs-actions.pod:1346
24393 msgid ""
24394 "If the destination is a device, it must be as large or larger than the "
24395 "source file or device, otherwise the copy will fail.  This command cannot do "
24396 "partial copies (see C<guestfs_copy_size>)."
24397 msgstr ""
24398
24399 #. type: =head2
24400 #: ../src/guestfs-actions.pod:1354
24401 msgid "guestfs_df"
24402 msgstr ""
24403
24404 #. type: verbatim
24405 #: ../src/guestfs-actions.pod:1356
24406 #, no-wrap
24407 msgid ""
24408 " char *\n"
24409 " guestfs_df (guestfs_h *g);\n"
24410 "\n"
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24415 msgid ""
24416 "This command is mostly useful for interactive sessions.  It is I<not> "
24417 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24418 "from programs."
24419 msgstr ""
24420
24421 #. type: textblock
24422 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
24423 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
24424 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
24425 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
24426 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
24427 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
24428 #: ../src/guestfs-actions.pod:7804
24429 msgid "(Added in 1.0.54)"
24430 msgstr ""
24431
24432 #. type: =head2
24433 #: ../src/guestfs-actions.pod:1370
24434 msgid "guestfs_df_h"
24435 msgstr ""
24436
24437 #. type: verbatim
24438 #: ../src/guestfs-actions.pod:1372
24439 #, no-wrap
24440 msgid ""
24441 " char *\n"
24442 " guestfs_df_h (guestfs_h *g);\n"
24443 "\n"
24444 msgstr ""
24445
24446 #. type: =head2
24447 #: ../src/guestfs-actions.pod:1387
24448 msgid "guestfs_dmesg"
24449 msgstr ""
24450
24451 #. type: verbatim
24452 #: ../src/guestfs-actions.pod:1389
24453 #, no-wrap
24454 msgid ""
24455 " char *\n"
24456 " guestfs_dmesg (guestfs_h *g);\n"
24457 "\n"
24458 msgstr ""
24459
24460 #. type: textblock
24461 #: ../src/guestfs-actions.pod:1396
24462 msgid ""
24463 "Another way to get the same information is to enable verbose messages with "
24464 "C<guestfs_set_verbose> or by setting the environment variable "
24465 "C<LIBGUESTFS_DEBUG=1> before running the program."
24466 msgstr ""
24467
24468 #. type: =head2
24469 #: ../src/guestfs-actions.pod:1406
24470 msgid "guestfs_download"
24471 msgstr ""
24472
24473 #. type: verbatim
24474 #: ../src/guestfs-actions.pod:1408
24475 #, no-wrap
24476 msgid ""
24477 " int\n"
24478 " guestfs_download (guestfs_h *g,\n"
24479 "                   const char *remotefilename,\n"
24480 "                   const char *filename);\n"
24481 "\n"
24482 msgstr ""
24483
24484 #. type: textblock
24485 #: ../src/guestfs-actions.pod:1418
24486 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24487 msgstr ""
24488
24489 #. type: =head2
24490 #: ../src/guestfs-actions.pod:1429
24491 msgid "guestfs_download_offset"
24492 msgstr ""
24493
24494 #. type: verbatim
24495 #: ../src/guestfs-actions.pod:1431
24496 #, no-wrap
24497 msgid ""
24498 " int\n"
24499 " guestfs_download_offset (guestfs_h *g,\n"
24500 "                          const char *remotefilename,\n"
24501 "                          const char *filename,\n"
24502 "                          int64_t offset,\n"
24503 "                          int64_t size);\n"
24504 "\n"
24505 msgstr ""
24506
24507 #. type: textblock
24508 #: ../src/guestfs-actions.pod:1444
24509 msgid ""
24510 "Note that there is no limit on the amount of data that can be downloaded "
24511 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24512 "full amount unless an error occurs."
24513 msgstr ""
24514
24515 #. type: textblock
24516 #: ../src/guestfs-actions.pod:1449
24517 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24518 msgstr ""
24519
24520 #. type: textblock
24521 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
24522 msgid "(Added in 1.5.17)"
24523 msgstr ""
24524
24525 #. type: =head2
24526 #: ../src/guestfs-actions.pod:1460
24527 msgid "guestfs_drop_caches"
24528 msgstr ""
24529
24530 #. type: verbatim
24531 #: ../src/guestfs-actions.pod:1462
24532 #, no-wrap
24533 msgid ""
24534 " int\n"
24535 " guestfs_drop_caches (guestfs_h *g,\n"
24536 "                      int whattodrop);\n"
24537 "\n"
24538 msgstr ""
24539
24540 #. type: =head2
24541 #: ../src/guestfs-actions.pod:1480
24542 msgid "guestfs_du"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../src/guestfs-actions.pod:1482
24547 #, no-wrap
24548 msgid ""
24549 " int64_t\n"
24550 " guestfs_du (guestfs_h *g,\n"
24551 "             const char *path);\n"
24552 "\n"
24553 msgstr ""
24554
24555 #. type: =head2
24556 #: ../src/guestfs-actions.pod:1505
24557 msgid "guestfs_e2fsck_f"
24558 msgstr ""
24559
24560 #. type: verbatim
24561 #: ../src/guestfs-actions.pod:1507
24562 #, no-wrap
24563 msgid ""
24564 " int\n"
24565 " guestfs_e2fsck_f (guestfs_h *g,\n"
24566 "                   const char *device);\n"
24567 "\n"
24568 msgstr ""
24569
24570 #. type: textblock
24571 #: ../src/guestfs-actions.pod:1515
24572 msgid ""
24573 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24574 "Normally you should use C<guestfs_fsck>."
24575 msgstr ""
24576
24577 #. type: textblock
24578 #: ../src/guestfs-actions.pod:1520
24579 msgid "(Added in 1.0.29)"
24580 msgstr ""
24581
24582 #. type: =head2
24583 #: ../src/guestfs-actions.pod:1522
24584 msgid "guestfs_echo_daemon"
24585 msgstr ""
24586
24587 #. type: verbatim
24588 #: ../src/guestfs-actions.pod:1524
24589 #, no-wrap
24590 msgid ""
24591 " char *\n"
24592 " guestfs_echo_daemon (guestfs_h *g,\n"
24593 "                      char *const *words);\n"
24594 "\n"
24595 msgstr ""
24596
24597 #. type: textblock
24598 #: ../src/guestfs-actions.pod:1533
24599 msgid "See also C<guestfs_ping_daemon>."
24600 msgstr ""
24601
24602 #. type: textblock
24603 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
24604 #: ../src/guestfs-actions.pod:6607
24605 msgid "(Added in 1.0.69)"
24606 msgstr ""
24607
24608 #. type: =head2
24609 #: ../src/guestfs-actions.pod:1540
24610 msgid "guestfs_egrep"
24611 msgstr ""
24612
24613 #. type: verbatim
24614 #: ../src/guestfs-actions.pod:1542
24615 #, no-wrap
24616 msgid ""
24617 " char **\n"
24618 " guestfs_egrep (guestfs_h *g,\n"
24619 "                const char *regex,\n"
24620 "                const char *path);\n"
24621 "\n"
24622 msgstr ""
24623
24624 #. type: textblock
24625 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
24626 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
24627 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
24628 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
24629 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
24630 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
24631 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
24632 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
24633 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
24634 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
24635 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
24636 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
24637 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
24638 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
24639 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
24640 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
24641 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
24642 msgid "(Added in 1.0.66)"
24643 msgstr ""
24644
24645 #. type: =head2
24646 #: ../src/guestfs-actions.pod:1559
24647 msgid "guestfs_egrepi"
24648 msgstr ""
24649
24650 #. type: verbatim
24651 #: ../src/guestfs-actions.pod:1561
24652 #, no-wrap
24653 msgid ""
24654 " char **\n"
24655 " guestfs_egrepi (guestfs_h *g,\n"
24656 "                 const char *regex,\n"
24657 "                 const char *path);\n"
24658 "\n"
24659 msgstr ""
24660
24661 #. type: =head2
24662 #: ../src/guestfs-actions.pod:1578
24663 msgid "guestfs_equal"
24664 msgstr ""
24665
24666 #. type: verbatim
24667 #: ../src/guestfs-actions.pod:1580
24668 #, no-wrap
24669 msgid ""
24670 " int\n"
24671 " guestfs_equal (guestfs_h *g,\n"
24672 "                const char *file1,\n"
24673 "                const char *file2);\n"
24674 "\n"
24675 msgstr ""
24676
24677 #. type: =head2
24678 #: ../src/guestfs-actions.pod:1594
24679 msgid "guestfs_exists"
24680 msgstr ""
24681
24682 #. type: verbatim
24683 #: ../src/guestfs-actions.pod:1596
24684 #, no-wrap
24685 msgid ""
24686 " int\n"
24687 " guestfs_exists (guestfs_h *g,\n"
24688 "                 const char *path);\n"
24689 "\n"
24690 msgstr ""
24691
24692 #. type: textblock
24693 #: ../src/guestfs-actions.pod:1603
24694 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24695 msgstr ""
24696
24697 #. type: =head2
24698 #: ../src/guestfs-actions.pod:1609
24699 msgid "guestfs_fallocate"
24700 msgstr ""
24701
24702 #. type: verbatim
24703 #: ../src/guestfs-actions.pod:1611
24704 #, no-wrap
24705 msgid ""
24706 " int\n"
24707 " guestfs_fallocate (guestfs_h *g,\n"
24708 "                    const char *path,\n"
24709 "                    int len);\n"
24710 "\n"
24711 msgstr ""
24712
24713 #. type: textblock
24714 #: ../src/guestfs-actions.pod:1616
24715 msgid ""
24716 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24717 "call instead."
24718 msgstr ""
24719
24720 #. type: =head2
24721 #: ../src/guestfs-actions.pod:1635
24722 msgid "guestfs_fallocate64"
24723 msgstr ""
24724
24725 #. type: verbatim
24726 #: ../src/guestfs-actions.pod:1637
24727 #, no-wrap
24728 msgid ""
24729 " int\n"
24730 " guestfs_fallocate64 (guestfs_h *g,\n"
24731 "                      const char *path,\n"
24732 "                      int64_t len);\n"
24733 "\n"
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../src/guestfs-actions.pod:1646
24738 msgid ""
24739 "Note that this call allocates disk blocks for the file.  To create a sparse "
24740 "file use C<guestfs_truncate_size> instead."
24741 msgstr ""
24742
24743 #. type: textblock
24744 #: ../src/guestfs-actions.pod:1649
24745 msgid ""
24746 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24747 "oversight it only allowed 30 bit lengths to be specified, effectively "
24748 "limiting the maximum size of files created through that call to 1GB."
24749 msgstr ""
24750
24751 #. type: textblock
24752 #: ../src/guestfs-actions.pod:1660
24753 msgid "(Added in 1.3.17)"
24754 msgstr ""
24755
24756 #. type: =head2
24757 #: ../src/guestfs-actions.pod:1662
24758 msgid "guestfs_fgrep"
24759 msgstr ""
24760
24761 #. type: verbatim
24762 #: ../src/guestfs-actions.pod:1664
24763 #, no-wrap
24764 msgid ""
24765 " char **\n"
24766 " guestfs_fgrep (guestfs_h *g,\n"
24767 "                const char *pattern,\n"
24768 "                const char *path);\n"
24769 "\n"
24770 msgstr ""
24771
24772 #. type: =head2
24773 #: ../src/guestfs-actions.pod:1681
24774 msgid "guestfs_fgrepi"
24775 msgstr ""
24776
24777 #. type: verbatim
24778 #: ../src/guestfs-actions.pod:1683
24779 #, no-wrap
24780 msgid ""
24781 " char **\n"
24782 " guestfs_fgrepi (guestfs_h *g,\n"
24783 "                 const char *pattern,\n"
24784 "                 const char *path);\n"
24785 "\n"
24786 msgstr ""
24787
24788 #. type: =head2
24789 #: ../src/guestfs-actions.pod:1700
24790 msgid "guestfs_file"
24791 msgstr ""
24792
24793 #. type: verbatim
24794 #: ../src/guestfs-actions.pod:1702
24795 #, no-wrap
24796 msgid ""
24797 " char *\n"
24798 " guestfs_file (guestfs_h *g,\n"
24799 "               const char *path);\n"
24800 "\n"
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../src/guestfs-actions.pod:1720
24805 msgid ""
24806 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24807 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24808 msgstr ""
24809
24810 #. type: =head2
24811 #: ../src/guestfs-actions.pod:1728
24812 msgid "guestfs_file_architecture"
24813 msgstr ""
24814
24815 #. type: verbatim
24816 #: ../src/guestfs-actions.pod:1730
24817 #, no-wrap
24818 msgid ""
24819 " char *\n"
24820 " guestfs_file_architecture (guestfs_h *g,\n"
24821 "                            const char *filename);\n"
24822 "\n"
24823 msgstr ""
24824
24825 #. type: textblock
24826 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
24827 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
24828 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
24829 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
24830 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
24831 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
24832 #: ../src/guestfs-actions.pod:3694
24833 msgid "(Added in 1.5.3)"
24834 msgstr ""
24835
24836 #. type: =head2
24837 #: ../src/guestfs-actions.pod:1840
24838 msgid "guestfs_filesize"
24839 msgstr ""
24840
24841 #. type: verbatim
24842 #: ../src/guestfs-actions.pod:1842
24843 #, no-wrap
24844 msgid ""
24845 " int64_t\n"
24846 " guestfs_filesize (guestfs_h *g,\n"
24847 "                   const char *file);\n"
24848 "\n"
24849 msgstr ""
24850
24851 #. type: textblock
24852 #: ../src/guestfs-actions.pod:1848
24853 msgid ""
24854 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
24855 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
24856 "devices, use C<guestfs_blockdev_getsize64>."
24857 msgstr ""
24858
24859 #. type: textblock
24860 #: ../src/guestfs-actions.pod:1854
24861 msgid "(Added in 1.0.82)"
24862 msgstr ""
24863
24864 #. type: =head2
24865 #: ../src/guestfs-actions.pod:1856
24866 msgid "guestfs_fill"
24867 msgstr ""
24868
24869 #. type: verbatim
24870 #: ../src/guestfs-actions.pod:1858
24871 #, no-wrap
24872 msgid ""
24873 " int\n"
24874 " guestfs_fill (guestfs_h *g,\n"
24875 "               int c,\n"
24876 "               int len,\n"
24877 "               const char *path);\n"
24878 "\n"
24879 msgstr ""
24880
24881 #. type: textblock
24882 #: ../src/guestfs-actions.pod:1868
24883 msgid ""
24884 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24885 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
24886 "bytes use C<guestfs_fill_pattern>."
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../src/guestfs-actions.pod:1880
24891 msgid "(Added in 1.0.79)"
24892 msgstr ""
24893
24894 #. type: =head2
24895 #: ../src/guestfs-actions.pod:1882
24896 msgid "guestfs_fill_pattern"
24897 msgstr ""
24898
24899 #. type: verbatim
24900 #: ../src/guestfs-actions.pod:1884
24901 #, no-wrap
24902 msgid ""
24903 " int\n"
24904 " guestfs_fill_pattern (guestfs_h *g,\n"
24905 "                       const char *pattern,\n"
24906 "                       int len,\n"
24907 "                       const char *path);\n"
24908 "\n"
24909 msgstr ""
24910
24911 #. type: textblock
24912 #: ../src/guestfs-actions.pod:1890
24913 msgid ""
24914 "This function is like C<guestfs_fill> except that it creates a new file of "
24915 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
24916 "pattern is truncated if necessary to ensure the length of the file is "
24917 "exactly C<len> bytes."
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../src/guestfs-actions.pod:1902
24922 msgid "(Added in 1.3.12)"
24923 msgstr ""
24924
24925 #. type: =head2
24926 #: ../src/guestfs-actions.pod:1904
24927 msgid "guestfs_find"
24928 msgstr ""
24929
24930 #. type: verbatim
24931 #: ../src/guestfs-actions.pod:1906
24932 #, no-wrap
24933 msgid ""
24934 " char **\n"
24935 " guestfs_find (guestfs_h *g,\n"
24936 "               const char *directory);\n"
24937 "\n"
24938 msgstr ""
24939
24940 #. type: textblock
24941 #: ../src/guestfs-actions.pod:1922
24942 msgid ""
24943 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
24944 msgstr ""
24945
24946 #. type: textblock
24947 #: ../src/guestfs-actions.pod:1935
24948 msgid "See also C<guestfs_find0>."
24949 msgstr ""
24950
24951 #. type: textblock
24952 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
24953 #: ../src/guestfs-actions.pod:6152
24954 msgid "(Added in 1.0.27)"
24955 msgstr ""
24956
24957 #. type: =head2
24958 #: ../src/guestfs-actions.pod:1946
24959 msgid "guestfs_find0"
24960 msgstr ""
24961
24962 #. type: verbatim
24963 #: ../src/guestfs-actions.pod:1948
24964 #, no-wrap
24965 msgid ""
24966 " int\n"
24967 " guestfs_find0 (guestfs_h *g,\n"
24968 "                const char *directory,\n"
24969 "                const char *files);\n"
24970 "\n"
24971 msgstr ""
24972
24973 #. type: textblock
24974 #: ../src/guestfs-actions.pod:1957
24975 msgid ""
24976 "This command works the same way as C<guestfs_find> with the following "
24977 "exceptions:"
24978 msgstr ""
24979
24980 #. type: textblock
24981 #: ../src/guestfs-actions.pod:1984
24982 msgid "(Added in 1.0.74)"
24983 msgstr ""
24984
24985 #. type: =head2
24986 #: ../src/guestfs-actions.pod:1986
24987 msgid "guestfs_findfs_label"
24988 msgstr ""
24989
24990 #. type: verbatim
24991 #: ../src/guestfs-actions.pod:1988
24992 #, no-wrap
24993 msgid ""
24994 " char *\n"
24995 " guestfs_findfs_label (guestfs_h *g,\n"
24996 "                       const char *label);\n"
24997 "\n"
24998 msgstr ""
24999
25000 #. type: textblock
25001 #: ../src/guestfs-actions.pod:1996
25002 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25003 msgstr ""
25004
25005 #. type: =head2
25006 #: ../src/guestfs-actions.pod:2003
25007 msgid "guestfs_findfs_uuid"
25008 msgstr ""
25009
25010 #. type: verbatim
25011 #: ../src/guestfs-actions.pod:2005
25012 #, no-wrap
25013 msgid ""
25014 " char *\n"
25015 " guestfs_findfs_uuid (guestfs_h *g,\n"
25016 "                      const char *uuid);\n"
25017 "\n"
25018 msgstr ""
25019
25020 #. type: textblock
25021 #: ../src/guestfs-actions.pod:2013
25022 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25023 msgstr ""
25024
25025 #. type: =head2
25026 #: ../src/guestfs-actions.pod:2020
25027 msgid "guestfs_fsck"
25028 msgstr ""
25029
25030 #. type: verbatim
25031 #: ../src/guestfs-actions.pod:2022
25032 #, no-wrap
25033 msgid ""
25034 " int\n"
25035 " guestfs_fsck (guestfs_h *g,\n"
25036 "               const char *fstype,\n"
25037 "               const char *device);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
25043 msgid "(Added in 1.0.16)"
25044 msgstr ""
25045
25046 #. type: =head2
25047 #: ../src/guestfs-actions.pod:2059
25048 msgid "guestfs_get_append"
25049 msgstr ""
25050
25051 #. type: verbatim
25052 #: ../src/guestfs-actions.pod:2061
25053 #, no-wrap
25054 msgid ""
25055 " const char *\n"
25056 " guestfs_get_append (guestfs_h *g);\n"
25057 "\n"
25058 msgstr ""
25059
25060 #. type: textblock
25061 #: ../src/guestfs-actions.pod:2069
25062 msgid ""
25063 "This function returns a string which may be NULL.  There is no way to return "
25064 "an error from this function.  The string is owned by the guest handle and "
25065 "must I<not> be freed."
25066 msgstr ""
25067
25068 #. type: textblock
25069 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
25070 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
25071 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
25072 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
25073 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
25074 msgid "(Added in 1.0.26)"
25075 msgstr ""
25076
25077 #. type: =head2
25078 #: ../src/guestfs-actions.pod:2075
25079 msgid "guestfs_get_attach_method"
25080 msgstr ""
25081
25082 #. type: verbatim
25083 #: ../src/guestfs-actions.pod:2077
25084 #, no-wrap
25085 msgid ""
25086 " char *\n"
25087 " guestfs_get_attach_method (guestfs_h *g);\n"
25088 "\n"
25089 msgstr ""
25090
25091 #. type: textblock
25092 #: ../src/guestfs-actions.pod:2080
25093 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25094 msgstr ""
25095
25096 #. type: textblock
25097 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
25098 msgid "(Added in 1.9.8)"
25099 msgstr ""
25100
25101 #. type: =head2
25102 #: ../src/guestfs-actions.pod:2087
25103 msgid "guestfs_get_autosync"
25104 msgstr ""
25105
25106 #. type: verbatim
25107 #: ../src/guestfs-actions.pod:2089
25108 #, no-wrap
25109 msgid ""
25110 " int\n"
25111 " guestfs_get_autosync (guestfs_h *g);\n"
25112 "\n"
25113 msgstr ""
25114
25115 #. type: =head2
25116 #: ../src/guestfs-actions.pod:2098
25117 msgid "guestfs_get_direct"
25118 msgstr ""
25119
25120 #. type: verbatim
25121 #: ../src/guestfs-actions.pod:2100
25122 #, no-wrap
25123 msgid ""
25124 " int\n"
25125 " guestfs_get_direct (guestfs_h *g);\n"
25126 "\n"
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
25131 msgid "(Added in 1.0.72)"
25132 msgstr ""
25133
25134 #. type: =head2
25135 #: ../src/guestfs-actions.pod:2109
25136 msgid "guestfs_get_e2label"
25137 msgstr ""
25138
25139 #. type: verbatim
25140 #: ../src/guestfs-actions.pod:2111
25141 #, no-wrap
25142 msgid ""
25143 " char *\n"
25144 " guestfs_get_e2label (guestfs_h *g,\n"
25145 "                      const char *device);\n"
25146 "\n"
25147 msgstr ""
25148
25149 #. type: textblock
25150 #: ../src/guestfs-actions.pod:2115
25151 msgid ""
25152 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25153 "call instead."
25154 msgstr ""
25155
25156 #. type: textblock
25157 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
25158 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
25159 msgid "(Added in 1.0.15)"
25160 msgstr ""
25161
25162 #. type: =head2
25163 #: ../src/guestfs-actions.pod:2130
25164 msgid "guestfs_get_e2uuid"
25165 msgstr ""
25166
25167 #. type: verbatim
25168 #: ../src/guestfs-actions.pod:2132
25169 #, no-wrap
25170 msgid ""
25171 " char *\n"
25172 " guestfs_get_e2uuid (guestfs_h *g,\n"
25173 "                     const char *device);\n"
25174 "\n"
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../src/guestfs-actions.pod:2136
25179 msgid ""
25180 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25181 "call instead."
25182 msgstr ""
25183
25184 #. type: =head2
25185 #: ../src/guestfs-actions.pod:2151
25186 msgid "guestfs_get_memsize"
25187 msgstr ""
25188
25189 #. type: verbatim
25190 #: ../src/guestfs-actions.pod:2153
25191 #, no-wrap
25192 msgid ""
25193 " int\n"
25194 " guestfs_get_memsize (guestfs_h *g);\n"
25195 "\n"
25196 msgstr ""
25197
25198 #. type: textblock
25199 #: ../src/guestfs-actions.pod:2159
25200 msgid ""
25201 "If C<guestfs_set_memsize> was not called on this handle, and if "
25202 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25203 "value for memsize."
25204 msgstr ""
25205
25206 #. type: textblock
25207 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
25208 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
25209 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
25210 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
25211 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
25212 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
25213 msgid "(Added in 1.0.55)"
25214 msgstr ""
25215
25216 #. type: =head2
25217 #: ../src/guestfs-actions.pod:2170
25218 msgid "guestfs_get_network"
25219 msgstr ""
25220
25221 #. type: verbatim
25222 #: ../src/guestfs-actions.pod:2172
25223 #, no-wrap
25224 msgid ""
25225 " int\n"
25226 " guestfs_get_network (guestfs_h *g);\n"
25227 "\n"
25228 msgstr ""
25229
25230 #. type: textblock
25231 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
25232 msgid "(Added in 1.5.4)"
25233 msgstr ""
25234
25235 #. type: =head2
25236 #: ../src/guestfs-actions.pod:2181
25237 msgid "guestfs_get_path"
25238 msgstr ""
25239
25240 #. type: verbatim
25241 #: ../src/guestfs-actions.pod:2183
25242 #, no-wrap
25243 msgid ""
25244 " const char *\n"
25245 " guestfs_get_path (guestfs_h *g);\n"
25246 "\n"
25247 msgstr ""
25248
25249 #. type: textblock
25250 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
25251 msgid ""
25252 "This function returns a string, or NULL on error.  The string is owned by "
25253 "the guest handle and must I<not> be freed."
25254 msgstr ""
25255
25256 #. type: =head2
25257 #: ../src/guestfs-actions.pod:2196
25258 msgid "guestfs_get_pgroup"
25259 msgstr ""
25260
25261 #. type: verbatim
25262 #: ../src/guestfs-actions.pod:2198
25263 #, no-wrap
25264 msgid ""
25265 " int\n"
25266 " guestfs_get_pgroup (guestfs_h *g);\n"
25267 "\n"
25268 msgstr ""
25269
25270 #. type: textblock
25271 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
25272 #: ../src/guestfs-actions.pod:7844
25273 msgid "(Added in 1.11.18)"
25274 msgstr ""
25275
25276 #. type: =head2
25277 #: ../src/guestfs-actions.pod:2207
25278 msgid "guestfs_get_pid"
25279 msgstr ""
25280
25281 #. type: verbatim
25282 #: ../src/guestfs-actions.pod:2209
25283 #, no-wrap
25284 msgid ""
25285 " int\n"
25286 " guestfs_get_pid (guestfs_h *g);\n"
25287 "\n"
25288 msgstr ""
25289
25290 #. type: textblock
25291 #: ../src/guestfs-actions.pod:2219
25292 msgid "(Added in 1.0.56)"
25293 msgstr ""
25294
25295 #. type: =head2
25296 #: ../src/guestfs-actions.pod:2221
25297 msgid "guestfs_get_qemu"
25298 msgstr ""
25299
25300 #. type: verbatim
25301 #: ../src/guestfs-actions.pod:2223
25302 #, no-wrap
25303 msgid ""
25304 " const char *\n"
25305 " guestfs_get_qemu (guestfs_h *g);\n"
25306 "\n"
25307 msgstr ""
25308
25309 #. type: textblock
25310 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
25311 msgid "(Added in 1.0.6)"
25312 msgstr ""
25313
25314 #. type: =head2
25315 #: ../src/guestfs-actions.pod:2236
25316 msgid "guestfs_get_recovery_proc"
25317 msgstr ""
25318
25319 #. type: verbatim
25320 #: ../src/guestfs-actions.pod:2238
25321 #, no-wrap
25322 msgid ""
25323 " int\n"
25324 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25325 "\n"
25326 msgstr ""
25327
25328 #. type: textblock
25329 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
25330 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
25331 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
25332 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
25333 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
25334 #: ../src/guestfs-actions.pod:7467
25335 msgid "(Added in 1.0.77)"
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:2247
25340 msgid "guestfs_get_selinux"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:2249
25345 #, no-wrap
25346 msgid ""
25347 " int\n"
25348 " guestfs_get_selinux (guestfs_h *g);\n"
25349 "\n"
25350 msgstr ""
25351
25352 #. type: textblock
25353 #: ../src/guestfs-actions.pod:2252
25354 msgid ""
25355 "This returns the current setting of the selinux flag which is passed to the "
25356 "appliance at boot time.  See C<guestfs_set_selinux>."
25357 msgstr ""
25358
25359 #. type: textblock
25360 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
25361 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
25362 msgid "(Added in 1.0.67)"
25363 msgstr ""
25364
25365 #. type: =head2
25366 #: ../src/guestfs-actions.pod:2262
25367 msgid "guestfs_get_smp"
25368 msgstr ""
25369
25370 #. type: verbatim
25371 #: ../src/guestfs-actions.pod:2264
25372 #, no-wrap
25373 msgid ""
25374 " int\n"
25375 " guestfs_get_smp (guestfs_h *g);\n"
25376 "\n"
25377 msgstr ""
25378
25379 #. type: =head2
25380 #: ../src/guestfs-actions.pod:2273
25381 msgid "guestfs_get_state"
25382 msgstr ""
25383
25384 #. type: verbatim
25385 #: ../src/guestfs-actions.pod:2275
25386 #, no-wrap
25387 msgid ""
25388 " int\n"
25389 " guestfs_get_state (guestfs_h *g);\n"
25390 "\n"
25391 msgstr ""
25392
25393 #. type: =head2
25394 #: ../src/guestfs-actions.pod:2287
25395 msgid "guestfs_get_trace"
25396 msgstr ""
25397
25398 #. type: verbatim
25399 #: ../src/guestfs-actions.pod:2289
25400 #, no-wrap
25401 msgid ""
25402 " int\n"
25403 " guestfs_get_trace (guestfs_h *g);\n"
25404 "\n"
25405 msgstr ""
25406
25407 #. type: =head2
25408 #: ../src/guestfs-actions.pod:2298
25409 msgid "guestfs_get_umask"
25410 msgstr ""
25411
25412 #. type: verbatim
25413 #: ../src/guestfs-actions.pod:2300
25414 #, no-wrap
25415 msgid ""
25416 " int\n"
25417 " guestfs_get_umask (guestfs_h *g);\n"
25418 "\n"
25419 msgstr ""
25420
25421 #. type: textblock
25422 #: ../src/guestfs-actions.pod:2303
25423 msgid ""
25424 "Return the current umask.  By default the umask is C<022> unless it has been "
25425 "set by calling C<guestfs_umask>."
25426 msgstr ""
25427
25428 #. type: =head2
25429 #: ../src/guestfs-actions.pod:2310
25430 msgid "guestfs_get_verbose"
25431 msgstr ""
25432
25433 #. type: verbatim
25434 #: ../src/guestfs-actions.pod:2312
25435 #, no-wrap
25436 msgid ""
25437 " int\n"
25438 " guestfs_get_verbose (guestfs_h *g);\n"
25439 "\n"
25440 msgstr ""
25441
25442 #. type: =head2
25443 #: ../src/guestfs-actions.pod:2321
25444 msgid "guestfs_getcon"
25445 msgstr ""
25446
25447 #. type: verbatim
25448 #: ../src/guestfs-actions.pod:2323
25449 #, no-wrap
25450 msgid ""
25451 " char *\n"
25452 " guestfs_getcon (guestfs_h *g);\n"
25453 "\n"
25454 msgstr ""
25455
25456 #. type: textblock
25457 #: ../src/guestfs-actions.pod:2328
25458 msgid ""
25459 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25460 msgstr ""
25461
25462 #. type: =head2
25463 #: ../src/guestfs-actions.pod:2336
25464 msgid "guestfs_getxattr"
25465 msgstr ""
25466
25467 #. type: verbatim
25468 #: ../src/guestfs-actions.pod:2338
25469 #, no-wrap
25470 msgid ""
25471 " char *\n"
25472 " guestfs_getxattr (guestfs_h *g,\n"
25473 "                   const char *path,\n"
25474 "                   const char *name,\n"
25475 "                   size_t *size_r);\n"
25476 "\n"
25477 msgstr ""
25478
25479 #. type: textblock
25480 #: ../src/guestfs-actions.pod:2344
25481 msgid ""
25482 "Get a single extended attribute from file C<path> named C<name>.  This call "
25483 "follows symlinks.  If you want to lookup an extended attribute for the "
25484 "symlink itself, use C<guestfs_lgetxattr>."
25485 msgstr ""
25486
25487 #. type: textblock
25488 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
25489 msgid ""
25490 "Normally it is better to get all extended attributes from a file in one go "
25491 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25492 "implementations are buggy and do not provide a way to list out attributes.  "
25493 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25494 "extended attributes you want in advance and call this function."
25495 msgstr ""
25496
25497 #. type: textblock
25498 #: ../src/guestfs-actions.pod:2358
25499 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25500 msgstr ""
25501
25502 #. type: textblock
25503 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
25504 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
25505 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
25506 #: ../src/guestfs-actions.pod:5960
25507 msgid ""
25508 "This function returns a buffer, or NULL on error.  The size of the returned "
25509 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25510 "after use>."
25511 msgstr ""
25512
25513 #. type: textblock
25514 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
25515 msgid "(Added in 1.7.24)"
25516 msgstr ""
25517
25518 #. type: =head2
25519 #: ../src/guestfs-actions.pod:2366
25520 msgid "guestfs_getxattrs"
25521 msgstr ""
25522
25523 #. type: verbatim
25524 #: ../src/guestfs-actions.pod:2368
25525 #, no-wrap
25526 msgid ""
25527 " struct guestfs_xattr_list *\n"
25528 " guestfs_getxattrs (guestfs_h *g,\n"
25529 "                    const char *path);\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../src/guestfs-actions.pod:2378
25535 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25536 msgstr ""
25537
25538 #. type: textblock
25539 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
25540 #: ../src/guestfs-actions.pod:4546
25541 msgid ""
25542 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25543 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25544 msgstr ""
25545
25546 #. type: textblock
25547 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
25548 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
25549 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
25550 #: ../src/guestfs-actions.pod:8055
25551 msgid "(Added in 1.0.59)"
25552 msgstr ""
25553
25554 #. type: =head2
25555 #: ../src/guestfs-actions.pod:2386
25556 msgid "guestfs_glob_expand"
25557 msgstr ""
25558
25559 #. type: verbatim
25560 #: ../src/guestfs-actions.pod:2388
25561 #, no-wrap
25562 msgid ""
25563 " char **\n"
25564 " guestfs_glob_expand (guestfs_h *g,\n"
25565 "                      const char *pattern);\n"
25566 "\n"
25567 msgstr ""
25568
25569 #. type: textblock
25570 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
25571 #: ../src/guestfs-actions.pod:6870
25572 msgid "(Added in 1.0.50)"
25573 msgstr ""
25574
25575 #. type: =head2
25576 #: ../src/guestfs-actions.pod:2409
25577 msgid "guestfs_grep"
25578 msgstr ""
25579
25580 #. type: verbatim
25581 #: ../src/guestfs-actions.pod:2411
25582 #, no-wrap
25583 msgid ""
25584 " char **\n"
25585 " guestfs_grep (guestfs_h *g,\n"
25586 "               const char *regex,\n"
25587 "               const char *path);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: =head2
25592 #: ../src/guestfs-actions.pod:2428
25593 msgid "guestfs_grepi"
25594 msgstr ""
25595
25596 #. type: verbatim
25597 #: ../src/guestfs-actions.pod:2430
25598 #, no-wrap
25599 msgid ""
25600 " char **\n"
25601 " guestfs_grepi (guestfs_h *g,\n"
25602 "                const char *regex,\n"
25603 "                const char *path);\n"
25604 "\n"
25605 msgstr ""
25606
25607 #. type: =head2
25608 #: ../src/guestfs-actions.pod:2447
25609 msgid "guestfs_grub_install"
25610 msgstr ""
25611
25612 #. type: verbatim
25613 #: ../src/guestfs-actions.pod:2449
25614 #, no-wrap
25615 msgid ""
25616 " int\n"
25617 " guestfs_grub_install (guestfs_h *g,\n"
25618 "                       const char *root,\n"
25619 "                       const char *device);\n"
25620 "\n"
25621 msgstr ""
25622
25623 #. type: textblock
25624 #: ../src/guestfs-actions.pod:2492
25625 msgid "(Added in 1.0.17)"
25626 msgstr ""
25627
25628 #. type: =head2
25629 #: ../src/guestfs-actions.pod:2494
25630 msgid "guestfs_head"
25631 msgstr ""
25632
25633 #. type: verbatim
25634 #: ../src/guestfs-actions.pod:2496
25635 #, no-wrap
25636 msgid ""
25637 " char **\n"
25638 " guestfs_head (guestfs_h *g,\n"
25639 "               const char *path);\n"
25640 "\n"
25641 msgstr ""
25642
25643 #. type: =head2
25644 #: ../src/guestfs-actions.pod:2512
25645 msgid "guestfs_head_n"
25646 msgstr ""
25647
25648 #. type: verbatim
25649 #: ../src/guestfs-actions.pod:2514
25650 #, no-wrap
25651 msgid ""
25652 " char **\n"
25653 " guestfs_head_n (guestfs_h *g,\n"
25654 "                 int nrlines,\n"
25655 "                 const char *path);\n"
25656 "\n"
25657 msgstr ""
25658
25659 #. type: =head2
25660 #: ../src/guestfs-actions.pod:2536
25661 msgid "guestfs_hexdump"
25662 msgstr ""
25663
25664 #. type: verbatim
25665 #: ../src/guestfs-actions.pod:2538
25666 #, no-wrap
25667 msgid ""
25668 " char *\n"
25669 " guestfs_hexdump (guestfs_h *g,\n"
25670 "                  const char *path);\n"
25671 "\n"
25672 msgstr ""
25673
25674 #. type: textblock
25675 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
25676 #: ../src/guestfs-actions.pod:6989
25677 msgid "(Added in 1.0.22)"
25678 msgstr ""
25679
25680 #. type: =head2
25681 #: ../src/guestfs-actions.pod:2553
25682 msgid "guestfs_initrd_cat"
25683 msgstr ""
25684
25685 #. type: verbatim
25686 #: ../src/guestfs-actions.pod:2555
25687 #, no-wrap
25688 msgid ""
25689 " char *\n"
25690 " guestfs_initrd_cat (guestfs_h *g,\n"
25691 "                     const char *initrdpath,\n"
25692 "                     const char *filename,\n"
25693 "                     size_t *size_r);\n"
25694 "\n"
25695 msgstr ""
25696
25697 #. type: textblock
25698 #: ../src/guestfs-actions.pod:2571
25699 msgid "See also C<guestfs_initrd_list>."
25700 msgstr ""
25701
25702 #. type: =head2
25703 #: ../src/guestfs-actions.pod:2582
25704 msgid "guestfs_initrd_list"
25705 msgstr ""
25706
25707 #. type: verbatim
25708 #: ../src/guestfs-actions.pod:2584
25709 #, no-wrap
25710 msgid ""
25711 " char **\n"
25712 " guestfs_initrd_list (guestfs_h *g,\n"
25713 "                      const char *path);\n"
25714 "\n"
25715 msgstr ""
25716
25717 #. type: =head2
25718 #: ../src/guestfs-actions.pod:2604
25719 msgid "guestfs_inotify_add_watch"
25720 msgstr ""
25721
25722 #. type: verbatim
25723 #: ../src/guestfs-actions.pod:2606
25724 #, no-wrap
25725 msgid ""
25726 " int64_t\n"
25727 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25728 "                            const char *path,\n"
25729 "                            int mask);\n"
25730 "\n"
25731 msgstr ""
25732
25733 #. type: =head2
25734 #: ../src/guestfs-actions.pod:2625
25735 msgid "guestfs_inotify_close"
25736 msgstr ""
25737
25738 #. type: verbatim
25739 #: ../src/guestfs-actions.pod:2627
25740 #, no-wrap
25741 msgid ""
25742 " int\n"
25743 " guestfs_inotify_close (guestfs_h *g);\n"
25744 "\n"
25745 msgstr ""
25746
25747 #. type: =head2
25748 #: ../src/guestfs-actions.pod:2638
25749 msgid "guestfs_inotify_files"
25750 msgstr ""
25751
25752 #. type: verbatim
25753 #: ../src/guestfs-actions.pod:2640
25754 #, no-wrap
25755 msgid ""
25756 " char **\n"
25757 " guestfs_inotify_files (guestfs_h *g);\n"
25758 "\n"
25759 msgstr ""
25760
25761 #. type: textblock
25762 #: ../src/guestfs-actions.pod:2643
25763 msgid ""
25764 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25765 "returns a list of pathnames of objects that were touched.  The returned "
25766 "pathnames are sorted and deduplicated."
25767 msgstr ""
25768
25769 #. type: =head2
25770 #: ../src/guestfs-actions.pod:2653
25771 msgid "guestfs_inotify_init"
25772 msgstr ""
25773
25774 #. type: verbatim
25775 #: ../src/guestfs-actions.pod:2655
25776 #, no-wrap
25777 msgid ""
25778 " int\n"
25779 " guestfs_inotify_init (guestfs_h *g,\n"
25780 "                       int maxevents);\n"
25781 "\n"
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:2663
25786 msgid ""
25787 "C<maxevents> is the maximum number of events which will be queued up between "
25788 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25789 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25790 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25791 "throws away events, but records the fact that it threw them away by setting "
25792 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25793 "C<guestfs_inotify_read>)."
25794 msgstr ""
25795
25796 #. type: textblock
25797 #: ../src/guestfs-actions.pod:2673
25798 msgid ""
25799 "Before any events are generated, you have to add some watches to the "
25800 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25801 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25802 msgstr ""
25803
25804 #. type: textblock
25805 #: ../src/guestfs-actions.pod:2679
25806 msgid ""
25807 "Queued up events should be read periodically by calling "
25808 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25809 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25810 "often enough then you risk the internal queue overflowing."
25811 msgstr ""
25812
25813 #. type: textblock
25814 #: ../src/guestfs-actions.pod:2686
25815 msgid ""
25816 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25817 "This also removes any watches automatically."
25818 msgstr ""
25819
25820 #. type: =head2
25821 #: ../src/guestfs-actions.pod:2699
25822 msgid "guestfs_inotify_read"
25823 msgstr ""
25824
25825 #. type: verbatim
25826 #: ../src/guestfs-actions.pod:2701
25827 #, no-wrap
25828 msgid ""
25829 " struct guestfs_inotify_event_list *\n"
25830 " guestfs_inotify_read (guestfs_h *g);\n"
25831 "\n"
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../src/guestfs-actions.pod:2715
25836 msgid ""
25837 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25838 "there was an error.  I<The caller must call "
25839 "C<guestfs_free_inotify_event_list> after use>."
25840 msgstr ""
25841
25842 #. type: =head2
25843 #: ../src/guestfs-actions.pod:2721
25844 msgid "guestfs_inotify_rm_watch"
25845 msgstr ""
25846
25847 #. type: verbatim
25848 #: ../src/guestfs-actions.pod:2723
25849 #, no-wrap
25850 msgid ""
25851 " int\n"
25852 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
25853 "                           int wd);\n"
25854 "\n"
25855 msgstr ""
25856
25857 #. type: textblock
25858 #: ../src/guestfs-actions.pod:2727
25859 msgid ""
25860 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
25861 msgstr ""
25862
25863 #. type: =head2
25864 #: ../src/guestfs-actions.pod:2734
25865 msgid "guestfs_inspect_get_arch"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../src/guestfs-actions.pod:2736
25870 #, no-wrap
25871 msgid ""
25872 " char *\n"
25873 " guestfs_inspect_get_arch (guestfs_h *g,\n"
25874 "                           const char *root);\n"
25875 "\n"
25876 msgstr ""
25877
25878 #. type: textblock
25879 #: ../src/guestfs-actions.pod:2740
25880 msgid ""
25881 "This returns the architecture of the inspected operating system.  The "
25882 "possible return values are listed under C<guestfs_file_architecture>."
25883 msgstr ""
25884
25885 #. type: =head2
25886 #: ../src/guestfs-actions.pod:2754
25887 msgid "guestfs_inspect_get_distro"
25888 msgstr ""
25889
25890 #. type: verbatim
25891 #: ../src/guestfs-actions.pod:2756
25892 #, no-wrap
25893 msgid ""
25894 " char *\n"
25895 " guestfs_inspect_get_distro (guestfs_h *g,\n"
25896 "                             const char *root);\n"
25897 "\n"
25898 msgstr ""
25899
25900 #. type: =head2
25901 #: ../src/guestfs-actions.pod:2848
25902 msgid "guestfs_inspect_get_drive_mappings"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../src/guestfs-actions.pod:2850
25907 #, no-wrap
25908 msgid ""
25909 " char **\n"
25910 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
25911 "                                     const char *root);\n"
25912 "\n"
25913 msgstr ""
25914
25915 #. type: textblock
25916 #: ../src/guestfs-actions.pod:2879
25917 msgid ""
25918 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25919 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
25920 msgstr ""
25921
25922 #. type: textblock
25923 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
25924 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
25925 #: ../src/guestfs-actions.pod:7291
25926 msgid ""
25927 "This function returns a NULL-terminated array of strings, or NULL if there "
25928 "was an error.  The array of strings will always have length C<2n+1>, where "
25929 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
25930 "caller must free the strings and the array after use>."
25931 msgstr ""
25932
25933 #. type: textblock
25934 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
25935 msgid "(Added in 1.9.17)"
25936 msgstr ""
25937
25938 #. type: =head2
25939 #: ../src/guestfs-actions.pod:2891
25940 msgid "guestfs_inspect_get_filesystems"
25941 msgstr ""
25942
25943 #. type: verbatim
25944 #: ../src/guestfs-actions.pod:2893
25945 #, no-wrap
25946 msgid ""
25947 " char **\n"
25948 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
25949 "                                  const char *root);\n"
25950 "\n"
25951 msgstr ""
25952
25953 #. type: textblock
25954 #: ../src/guestfs-actions.pod:2905
25955 msgid ""
25956 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
25957 "C<guestfs_inspect_get_mountpoints>."
25958 msgstr ""
25959
25960 #. type: =head2
25961 #: ../src/guestfs-actions.pod:2914
25962 msgid "guestfs_inspect_get_format"
25963 msgstr ""
25964
25965 #. type: verbatim
25966 #: ../src/guestfs-actions.pod:2916
25967 #, no-wrap
25968 msgid ""
25969 " char *\n"
25970 " guestfs_inspect_get_format (guestfs_h *g,\n"
25971 "                             const char *root);\n"
25972 "\n"
25973 msgstr ""
25974
25975 #. type: textblock
25976 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
25977 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
25978 #: ../src/guestfs-actions.pod:6171
25979 msgid "(Added in 1.9.4)"
25980 msgstr ""
25981
25982 #. type: =head2
25983 #: ../src/guestfs-actions.pod:2952
25984 msgid "guestfs_inspect_get_hostname"
25985 msgstr ""
25986
25987 #. type: verbatim
25988 #: ../src/guestfs-actions.pod:2954
25989 #, no-wrap
25990 msgid ""
25991 " char *\n"
25992 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
25993 "                               const char *root);\n"
25994 "\n"
25995 msgstr ""
25996
25997 #. type: textblock
25998 #: ../src/guestfs-actions.pod:2969
25999 msgid "(Added in 1.7.9)"
26000 msgstr ""
26001
26002 #. type: =head2
26003 #: ../src/guestfs-actions.pod:2971
26004 msgid "guestfs_inspect_get_icon"
26005 msgstr ""
26006
26007 #. type: verbatim
26008 #: ../src/guestfs-actions.pod:2973
26009 #, no-wrap
26010 msgid ""
26011 " char *\n"
26012 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26013 "                           const char *root,\n"
26014 "                           size_t *size_r,\n"
26015 "                           ...);\n"
26016 "\n"
26017 msgstr ""
26018
26019 #. type: verbatim
26020 #: ../src/guestfs-actions.pod:2984
26021 #, no-wrap
26022 msgid ""
26023 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26024 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
26030 #: ../src/guestfs-actions.pod:5120
26031 msgid "(Added in 1.11.12)"
26032 msgstr ""
26033
26034 #. type: =head2
26035 #: ../src/guestfs-actions.pod:3053
26036 msgid "guestfs_inspect_get_icon_va"
26037 msgstr ""
26038
26039 #. type: verbatim
26040 #: ../src/guestfs-actions.pod:3055
26041 #, no-wrap
26042 msgid ""
26043 " char *\n"
26044 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26045 "                              const char *root,\n"
26046 "                              size_t *size_r,\n"
26047 "                              va_list args);\n"
26048 "\n"
26049 msgstr ""
26050
26051 #. type: textblock
26052 #: ../src/guestfs-actions.pod:3061
26053 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26054 msgstr ""
26055
26056 #. type: =head2
26057 #: ../src/guestfs-actions.pod:3065
26058 msgid "guestfs_inspect_get_icon_argv"
26059 msgstr ""
26060
26061 #. type: verbatim
26062 #: ../src/guestfs-actions.pod:3067
26063 #, no-wrap
26064 msgid ""
26065 " char *\n"
26066 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26067 "                                const char *root,\n"
26068 "                                size_t *size_r,\n"
26069 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26070 "\n"
26071 msgstr ""
26072
26073 #. type: textblock
26074 #: ../src/guestfs-actions.pod:3073
26075 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26076 msgstr ""
26077
26078 #. type: =head2
26079 #: ../src/guestfs-actions.pod:3077
26080 msgid "guestfs_inspect_get_major_version"
26081 msgstr ""
26082
26083 #. type: verbatim
26084 #: ../src/guestfs-actions.pod:3079
26085 #, no-wrap
26086 msgid ""
26087 " int\n"
26088 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26089 "                                    const char *root);\n"
26090 "\n"
26091 msgstr ""
26092
26093 #. type: =head2
26094 #: ../src/guestfs-actions.pod:3101
26095 msgid "guestfs_inspect_get_minor_version"
26096 msgstr ""
26097
26098 #. type: verbatim
26099 #: ../src/guestfs-actions.pod:3103
26100 #, no-wrap
26101 msgid ""
26102 " int\n"
26103 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26104 "                                    const char *root);\n"
26105 "\n"
26106 msgstr ""
26107
26108 #. type: textblock
26109 #: ../src/guestfs-actions.pod:3112
26110 msgid ""
26111 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26112 "C<guestfs_inspect_get_major_version>."
26113 msgstr ""
26114
26115 #. type: =head2
26116 #: ../src/guestfs-actions.pod:3119
26117 msgid "guestfs_inspect_get_mountpoints"
26118 msgstr ""
26119
26120 #. type: verbatim
26121 #: ../src/guestfs-actions.pod:3121
26122 #, no-wrap
26123 msgid ""
26124 " char **\n"
26125 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26126 "                                  const char *root);\n"
26127 "\n"
26128 msgstr ""
26129
26130 #. type: textblock
26131 #: ../src/guestfs-actions.pod:3142
26132 msgid ""
26133 "For operating systems like Windows which still use drive letters, this call "
26134 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26135 "information about the mapping of drive letters to partitions, see "
26136 "C<guestfs_inspect_get_drive_mappings>."
26137 msgstr ""
26138
26139 #. type: textblock
26140 #: ../src/guestfs-actions.pod:3148
26141 msgid ""
26142 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26143 "C<guestfs_inspect_get_filesystems>."
26144 msgstr ""
26145
26146 #. type: =head2
26147 #: ../src/guestfs-actions.pod:3159
26148 msgid "guestfs_inspect_get_package_format"
26149 msgstr ""
26150
26151 #. type: verbatim
26152 #: ../src/guestfs-actions.pod:3161
26153 #, no-wrap
26154 msgid ""
26155 " char *\n"
26156 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26157 "                                     const char *root);\n"
26158 "\n"
26159 msgstr ""
26160
26161 #. type: textblock
26162 #: ../src/guestfs-actions.pod:3165
26163 msgid ""
26164 "This function and C<guestfs_inspect_get_package_management> return the "
26165 "package format and package management tool used by the inspected operating "
26166 "system.  For example for Fedora these functions would return C<rpm> (package "
26167 "format) and C<yum> (package management)."
26168 msgstr ""
26169
26170 #. type: textblock
26171 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
26172 msgid "(Added in 1.7.5)"
26173 msgstr ""
26174
26175 #. type: =head2
26176 #: ../src/guestfs-actions.pod:3185
26177 msgid "guestfs_inspect_get_package_management"
26178 msgstr ""
26179
26180 #. type: verbatim
26181 #: ../src/guestfs-actions.pod:3187
26182 #, no-wrap
26183 msgid ""
26184 " char *\n"
26185 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26186 "                                         const char *root);\n"
26187 "\n"
26188 msgstr ""
26189
26190 #. type: textblock
26191 #: ../src/guestfs-actions.pod:3191
26192 msgid ""
26193 "C<guestfs_inspect_get_package_format> and this function return the package "
26194 "format and package management tool used by the inspected operating system.  "
26195 "For example for Fedora these functions would return C<rpm> (package format) "
26196 "and C<yum> (package management)."
26197 msgstr ""
26198
26199 #. type: =head2
26200 #: ../src/guestfs-actions.pod:3213
26201 msgid "guestfs_inspect_get_product_name"
26202 msgstr ""
26203
26204 #. type: verbatim
26205 #: ../src/guestfs-actions.pod:3215
26206 #, no-wrap
26207 msgid ""
26208 " char *\n"
26209 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26210 "                                   const char *root);\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: =head2
26215 #: ../src/guestfs-actions.pod:3234
26216 msgid "guestfs_inspect_get_product_variant"
26217 msgstr ""
26218
26219 #. type: verbatim
26220 #: ../src/guestfs-actions.pod:3236
26221 #, no-wrap
26222 msgid ""
26223 " char *\n"
26224 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26225 "                                      const char *root);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:3259
26231 msgid ""
26232 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26233 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26234 msgstr ""
26235
26236 #. type: textblock
26237 #: ../src/guestfs-actions.pod:3266
26238 msgid "(Added in 1.9.13)"
26239 msgstr ""
26240
26241 #. type: =head2
26242 #: ../src/guestfs-actions.pod:3268
26243 msgid "guestfs_inspect_get_roots"
26244 msgstr ""
26245
26246 #. type: verbatim
26247 #: ../src/guestfs-actions.pod:3270
26248 #, no-wrap
26249 msgid ""
26250 " char **\n"
26251 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26252 "\n"
26253 msgstr ""
26254
26255 #. type: textblock
26256 #: ../src/guestfs-actions.pod:3273
26257 msgid ""
26258 "This function is a convenient way to get the list of root devices, as "
26259 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26260 "the whole inspection process."
26261 msgstr ""
26262
26263 #. type: textblock
26264 #: ../src/guestfs-actions.pod:3277
26265 msgid ""
26266 "This returns an empty list if either no root devices were found or the "
26267 "caller has not called C<guestfs_inspect_os>."
26268 msgstr ""
26269
26270 #. type: textblock
26271 #: ../src/guestfs-actions.pod:3286
26272 msgid "(Added in 1.7.3)"
26273 msgstr ""
26274
26275 #. type: =head2
26276 #: ../src/guestfs-actions.pod:3288
26277 msgid "guestfs_inspect_get_type"
26278 msgstr ""
26279
26280 #. type: verbatim
26281 #: ../src/guestfs-actions.pod:3290
26282 #, no-wrap
26283 msgid ""
26284 " char *\n"
26285 " guestfs_inspect_get_type (guestfs_h *g,\n"
26286 "                           const char *root);\n"
26287 "\n"
26288 msgstr ""
26289
26290 #. type: =head2
26291 #: ../src/guestfs-actions.pod:3327
26292 msgid "guestfs_inspect_get_windows_current_control_set"
26293 msgstr ""
26294
26295 #. type: verbatim
26296 #: ../src/guestfs-actions.pod:3329
26297 #, no-wrap
26298 msgid ""
26299 " char *\n"
26300 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26301 "                                                  const char *root);\n"
26302 "\n"
26303 msgstr ""
26304
26305 #. type: =head2
26306 #: ../src/guestfs-actions.pod:3347
26307 msgid "guestfs_inspect_get_windows_systemroot"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:3349
26312 #, no-wrap
26313 msgid ""
26314 " char *\n"
26315 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26316 "                                         const char *root);\n"
26317 "\n"
26318 msgstr ""
26319
26320 #. type: textblock
26321 #: ../src/guestfs-actions.pod:3365
26322 msgid "(Added in 1.5.25)"
26323 msgstr ""
26324
26325 #. type: =head2
26326 #: ../src/guestfs-actions.pod:3367
26327 msgid "guestfs_inspect_is_live"
26328 msgstr ""
26329
26330 #. type: verbatim
26331 #: ../src/guestfs-actions.pod:3369
26332 #, no-wrap
26333 msgid ""
26334 " int\n"
26335 " guestfs_inspect_is_live (guestfs_h *g,\n"
26336 "                          const char *root);\n"
26337 "\n"
26338 msgstr ""
26339
26340 #. type: textblock
26341 #: ../src/guestfs-actions.pod:3373
26342 msgid ""
26343 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26344 "disk), then this returns true if a live image was detected on the disk."
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:3383
26349 msgid "guestfs_inspect_is_multipart"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:3385
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26358 "                               const char *root);\n"
26359 "\n"
26360 msgstr ""
26361
26362 #. type: textblock
26363 #: ../src/guestfs-actions.pod:3389
26364 msgid ""
26365 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26366 "disk), then this returns true if the disk is part of a set."
26367 msgstr ""
26368
26369 #. type: =head2
26370 #: ../src/guestfs-actions.pod:3399
26371 msgid "guestfs_inspect_is_netinst"
26372 msgstr ""
26373
26374 #. type: verbatim
26375 #: ../src/guestfs-actions.pod:3401
26376 #, no-wrap
26377 msgid ""
26378 " int\n"
26379 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26380 "                             const char *root);\n"
26381 "\n"
26382 msgstr ""
26383
26384 #. type: textblock
26385 #: ../src/guestfs-actions.pod:3405
26386 msgid ""
26387 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26388 "disk), then this returns true if the disk is a network installer, ie. not a "
26389 "self-contained install CD but one which is likely to require network access "
26390 "to complete the install."
26391 msgstr ""
26392
26393 #. type: =head2
26394 #: ../src/guestfs-actions.pod:3417
26395 msgid "guestfs_inspect_list_applications"
26396 msgstr ""
26397
26398 #. type: verbatim
26399 #: ../src/guestfs-actions.pod:3419
26400 #, no-wrap
26401 msgid ""
26402 " struct guestfs_application_list *\n"
26403 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26404 "                                    const char *root);\n"
26405 "\n"
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../src/guestfs-actions.pod:3425
26410 msgid ""
26411 "I<Note:> This call works differently from other parts of the inspection "
26412 "API.  You have to call C<guestfs_inspect_os>, then "
26413 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26414 "this.  Listing applications is a significantly more difficult operation "
26415 "which requires access to the full filesystem.  Also note that unlike the "
26416 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26417 "the libguestfs handle, this call actually reads parts of the mounted "
26418 "filesystems during the call."
26419 msgstr ""
26420
26421 #. type: textblock
26422 #: ../src/guestfs-actions.pod:3515
26423 msgid ""
26424 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26425 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26426 "after use>."
26427 msgstr ""
26428
26429 #. type: textblock
26430 #: ../src/guestfs-actions.pod:3519
26431 msgid "(Added in 1.7.8)"
26432 msgstr ""
26433
26434 #. type: =head2
26435 #: ../src/guestfs-actions.pod:3521
26436 msgid "guestfs_inspect_os"
26437 msgstr ""
26438
26439 #. type: verbatim
26440 #: ../src/guestfs-actions.pod:3523
26441 #, no-wrap
26442 msgid ""
26443 " char **\n"
26444 " guestfs_inspect_os (guestfs_h *g);\n"
26445 "\n"
26446 msgstr ""
26447
26448 #. type: textblock
26449 #: ../src/guestfs-actions.pod:3539
26450 msgid ""
26451 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26452 "functions in order to query further information about each operating system, "
26453 "such as the name and version."
26454 msgstr ""
26455
26456 #. type: textblock
26457 #: ../src/guestfs-actions.pod:3544
26458 msgid ""
26459 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26460 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26461 "the contents.  This should be called with no disks currently mounted.  The "
26462 "function may also use Augeas, so any existing Augeas handle will be closed."
26463 msgstr ""
26464
26465 #. type: textblock
26466 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
26467 #: ../src/guestfs-actions.pod:3969
26468 msgid "See also C<guestfs_list_filesystems>."
26469 msgstr ""
26470
26471 #. type: =head2
26472 #: ../src/guestfs-actions.pod:3564
26473 msgid "guestfs_is_blockdev"
26474 msgstr ""
26475
26476 #. type: verbatim
26477 #: ../src/guestfs-actions.pod:3566
26478 #, no-wrap
26479 msgid ""
26480 " int\n"
26481 " guestfs_is_blockdev (guestfs_h *g,\n"
26482 "                      const char *path);\n"
26483 "\n"
26484 msgstr ""
26485
26486 #. type: textblock
26487 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
26488 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
26489 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
26490 #: ../src/guestfs-actions.pod:3734
26491 msgid "See also C<guestfs_stat>."
26492 msgstr ""
26493
26494 #. type: textblock
26495 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
26496 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
26497 #: ../src/guestfs-actions.pod:3738
26498 msgid "(Added in 1.5.10)"
26499 msgstr ""
26500
26501 #. type: =head2
26502 #: ../src/guestfs-actions.pod:3579
26503 msgid "guestfs_is_busy"
26504 msgstr ""
26505
26506 #. type: verbatim
26507 #: ../src/guestfs-actions.pod:3581
26508 #, no-wrap
26509 msgid ""
26510 " int\n"
26511 " guestfs_is_busy (guestfs_h *g);\n"
26512 "\n"
26513 msgstr ""
26514
26515 #. type: =head2
26516 #: ../src/guestfs-actions.pod:3593
26517 msgid "guestfs_is_chardev"
26518 msgstr ""
26519
26520 #. type: verbatim
26521 #: ../src/guestfs-actions.pod:3595
26522 #, no-wrap
26523 msgid ""
26524 " int\n"
26525 " guestfs_is_chardev (guestfs_h *g,\n"
26526 "                     const char *path);\n"
26527 "\n"
26528 msgstr ""
26529
26530 #. type: =head2
26531 #: ../src/guestfs-actions.pod:3608
26532 msgid "guestfs_is_config"
26533 msgstr ""
26534
26535 #. type: verbatim
26536 #: ../src/guestfs-actions.pod:3610
26537 #, no-wrap
26538 msgid ""
26539 " int\n"
26540 " guestfs_is_config (guestfs_h *g);\n"
26541 "\n"
26542 msgstr ""
26543
26544 #. type: =head2
26545 #: ../src/guestfs-actions.pod:3622
26546 msgid "guestfs_is_dir"
26547 msgstr ""
26548
26549 #. type: verbatim
26550 #: ../src/guestfs-actions.pod:3624
26551 #, no-wrap
26552 msgid ""
26553 " int\n"
26554 " guestfs_is_dir (guestfs_h *g,\n"
26555 "                 const char *path);\n"
26556 "\n"
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:3638
26561 msgid "guestfs_is_fifo"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:3640
26566 #, no-wrap
26567 msgid ""
26568 " int\n"
26569 " guestfs_is_fifo (guestfs_h *g,\n"
26570 "                  const char *path);\n"
26571 "\n"
26572 msgstr ""
26573
26574 #. type: =head2
26575 #: ../src/guestfs-actions.pod:3653
26576 msgid "guestfs_is_file"
26577 msgstr ""
26578
26579 #. type: verbatim
26580 #: ../src/guestfs-actions.pod:3655
26581 #, no-wrap
26582 msgid ""
26583 " int\n"
26584 " guestfs_is_file (guestfs_h *g,\n"
26585 "                  const char *path);\n"
26586 "\n"
26587 msgstr ""
26588
26589 #. type: =head2
26590 #: ../src/guestfs-actions.pod:3669
26591 msgid "guestfs_is_launching"
26592 msgstr ""
26593
26594 #. type: verbatim
26595 #: ../src/guestfs-actions.pod:3671
26596 #, no-wrap
26597 msgid ""
26598 " int\n"
26599 " guestfs_is_launching (guestfs_h *g);\n"
26600 "\n"
26601 msgstr ""
26602
26603 #. type: =head2
26604 #: ../src/guestfs-actions.pod:3683
26605 msgid "guestfs_is_lv"
26606 msgstr ""
26607
26608 #. type: verbatim
26609 #: ../src/guestfs-actions.pod:3685
26610 #, no-wrap
26611 msgid ""
26612 " int\n"
26613 " guestfs_is_lv (guestfs_h *g,\n"
26614 "                const char *device);\n"
26615 "\n"
26616 msgstr ""
26617
26618 #. type: =head2
26619 #: ../src/guestfs-actions.pod:3696
26620 msgid "guestfs_is_ready"
26621 msgstr ""
26622
26623 #. type: verbatim
26624 #: ../src/guestfs-actions.pod:3698
26625 #, no-wrap
26626 msgid ""
26627 " int\n"
26628 " guestfs_is_ready (guestfs_h *g);\n"
26629 "\n"
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:3710
26634 msgid "guestfs_is_socket"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:3712
26639 #, no-wrap
26640 msgid ""
26641 " int\n"
26642 " guestfs_is_socket (guestfs_h *g,\n"
26643 "                    const char *path);\n"
26644 "\n"
26645 msgstr ""
26646
26647 #. type: =head2
26648 #: ../src/guestfs-actions.pod:3725
26649 msgid "guestfs_is_symlink"
26650 msgstr ""
26651
26652 #. type: verbatim
26653 #: ../src/guestfs-actions.pod:3727
26654 #, no-wrap
26655 msgid ""
26656 " int\n"
26657 " guestfs_is_symlink (guestfs_h *g,\n"
26658 "                     const char *path);\n"
26659 "\n"
26660 msgstr ""
26661
26662 #. type: =head2
26663 #: ../src/guestfs-actions.pod:3740
26664 msgid "guestfs_is_zero"
26665 msgstr ""
26666
26667 #. type: verbatim
26668 #: ../src/guestfs-actions.pod:3742
26669 #, no-wrap
26670 msgid ""
26671 " int\n"
26672 " guestfs_is_zero (guestfs_h *g,\n"
26673 "                  const char *path);\n"
26674 "\n"
26675 msgstr ""
26676
26677 #. type: textblock
26678 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
26679 msgid "(Added in 1.11.8)"
26680 msgstr ""
26681
26682 #. type: =head2
26683 #: ../src/guestfs-actions.pod:3753
26684 msgid "guestfs_is_zero_device"
26685 msgstr ""
26686
26687 #. type: verbatim
26688 #: ../src/guestfs-actions.pod:3755
26689 #, no-wrap
26690 msgid ""
26691 " int\n"
26692 " guestfs_is_zero_device (guestfs_h *g,\n"
26693 "                         const char *device);\n"
26694 "\n"
26695 msgstr ""
26696
26697 #. type: =head2
26698 #: ../src/guestfs-actions.pod:3767
26699 msgid "guestfs_kill_subprocess"
26700 msgstr ""
26701
26702 #. type: verbatim
26703 #: ../src/guestfs-actions.pod:3769
26704 #, no-wrap
26705 msgid ""
26706 " int\n"
26707 " guestfs_kill_subprocess (guestfs_h *g);\n"
26708 "\n"
26709 msgstr ""
26710
26711 #. type: =head2
26712 #: ../src/guestfs-actions.pod:3778
26713 msgid "guestfs_launch"
26714 msgstr ""
26715
26716 #. type: verbatim
26717 #: ../src/guestfs-actions.pod:3780
26718 #, no-wrap
26719 msgid ""
26720 " int\n"
26721 " guestfs_launch (guestfs_h *g);\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: =head2
26726 #: ../src/guestfs-actions.pod:3798
26727 msgid "guestfs_lchown"
26728 msgstr ""
26729
26730 #. type: verbatim
26731 #: ../src/guestfs-actions.pod:3800
26732 #, no-wrap
26733 msgid ""
26734 " int\n"
26735 " guestfs_lchown (guestfs_h *g,\n"
26736 "                 int owner,\n"
26737 "                 int group,\n"
26738 "                 const char *path);\n"
26739 "\n"
26740 msgstr ""
26741
26742 #. type: textblock
26743 #: ../src/guestfs-actions.pod:3806
26744 msgid ""
26745 "Change the file owner to C<owner> and group to C<group>.  This is like "
26746 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26747 "changed, not the target."
26748 msgstr ""
26749
26750 #. type: =head2
26751 #: ../src/guestfs-actions.pod:3818
26752 msgid "guestfs_lgetxattr"
26753 msgstr ""
26754
26755 #. type: verbatim
26756 #: ../src/guestfs-actions.pod:3820
26757 #, no-wrap
26758 msgid ""
26759 " char *\n"
26760 " guestfs_lgetxattr (guestfs_h *g,\n"
26761 "                    const char *path,\n"
26762 "                    const char *name,\n"
26763 "                    size_t *size_r);\n"
26764 "\n"
26765 msgstr ""
26766
26767 #. type: textblock
26768 #: ../src/guestfs-actions.pod:3840
26769 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26770 msgstr ""
26771
26772 #. type: =head2
26773 #: ../src/guestfs-actions.pod:3848
26774 msgid "guestfs_lgetxattrs"
26775 msgstr ""
26776
26777 #. type: verbatim
26778 #: ../src/guestfs-actions.pod:3850
26779 #, no-wrap
26780 msgid ""
26781 " struct guestfs_xattr_list *\n"
26782 " guestfs_lgetxattrs (guestfs_h *g,\n"
26783 "                     const char *path);\n"
26784 "\n"
26785 msgstr ""
26786
26787 #. type: textblock
26788 #: ../src/guestfs-actions.pod:3854
26789 msgid ""
26790 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26791 "then it returns the extended attributes of the link itself."
26792 msgstr ""
26793
26794 #. type: =head2
26795 #: ../src/guestfs-actions.pod:3864
26796 msgid "guestfs_list_9p"
26797 msgstr ""
26798
26799 #. type: verbatim
26800 #: ../src/guestfs-actions.pod:3866
26801 #, no-wrap
26802 msgid ""
26803 " char **\n"
26804 " guestfs_list_9p (guestfs_h *g);\n"
26805 "\n"
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../src/guestfs-actions.pod:3878
26810 msgid "guestfs_list_devices"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../src/guestfs-actions.pod:3880
26815 #, no-wrap
26816 msgid ""
26817 " char **\n"
26818 " guestfs_list_devices (guestfs_h *g);\n"
26819 "\n"
26820 msgstr ""
26821
26822 #. type: =head2
26823 #: ../src/guestfs-actions.pod:3895
26824 msgid "guestfs_list_dm_devices"
26825 msgstr ""
26826
26827 #. type: verbatim
26828 #: ../src/guestfs-actions.pod:3897
26829 #, no-wrap
26830 msgid ""
26831 " char **\n"
26832 " guestfs_list_dm_devices (guestfs_h *g);\n"
26833 "\n"
26834 msgstr ""
26835
26836 #. type: textblock
26837 #: ../src/guestfs-actions.pod:3902
26838 msgid ""
26839 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26840 "previous call to C<guestfs_luks_open>."
26841 msgstr ""
26842
26843 #. type: textblock
26844 #: ../src/guestfs-actions.pod:3905
26845 msgid ""
26846 "Device mapper devices which correspond to logical volumes are I<not> "
26847 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26848 "volumes."
26849 msgstr ""
26850
26851 #. type: textblock
26852 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
26853 msgid "(Added in 1.11.15)"
26854 msgstr ""
26855
26856 #. type: =head2
26857 #: ../src/guestfs-actions.pod:3915
26858 msgid "guestfs_list_filesystems"
26859 msgstr ""
26860
26861 #. type: verbatim
26862 #: ../src/guestfs-actions.pod:3917
26863 #, no-wrap
26864 msgid ""
26865 " char **\n"
26866 " guestfs_list_filesystems (guestfs_h *g);\n"
26867 "\n"
26868 msgstr ""
26869
26870 #. type: textblock
26871 #: ../src/guestfs-actions.pod:3937
26872 msgid ""
26873 "This command runs other libguestfs commands, which might include "
26874 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
26875 "soon after launch and only when nothing is mounted."
26876 msgstr ""
26877
26878 #. type: textblock
26879 #: ../src/guestfs-actions.pod:3941
26880 msgid ""
26881 "Not all of the filesystems returned will be mountable.  In particular, swap "
26882 "partitions are returned in the list.  Also this command does not check that "
26883 "each filesystem found is valid and mountable, and some filesystems might be "
26884 "mountable but require special options.  Filesystems may not all belong to a "
26885 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
26886 msgstr ""
26887
26888 #. type: textblock
26889 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
26890 msgid "(Added in 1.5.15)"
26891 msgstr ""
26892
26893 #. type: =head2
26894 #: ../src/guestfs-actions.pod:3957
26895 msgid "guestfs_list_partitions"
26896 msgstr ""
26897
26898 #. type: verbatim
26899 #: ../src/guestfs-actions.pod:3959
26900 #, no-wrap
26901 msgid ""
26902 " char **\n"
26903 " guestfs_list_partitions (guestfs_h *g);\n"
26904 "\n"
26905 msgstr ""
26906
26907 #. type: textblock
26908 #: ../src/guestfs-actions.pod:3966
26909 msgid ""
26910 "This does not return logical volumes.  For that you will need to call "
26911 "C<guestfs_lvs>."
26912 msgstr ""
26913
26914 #. type: =head2
26915 #: ../src/guestfs-actions.pod:3977
26916 msgid "guestfs_ll"
26917 msgstr ""
26918
26919 #. type: verbatim
26920 #: ../src/guestfs-actions.pod:3979
26921 #, no-wrap
26922 msgid ""
26923 " char *\n"
26924 " guestfs_ll (guestfs_h *g,\n"
26925 "             const char *directory);\n"
26926 "\n"
26927 msgstr ""
26928
26929 #. type: =head2
26930 #: ../src/guestfs-actions.pod:3994
26931 msgid "guestfs_ln"
26932 msgstr ""
26933
26934 #. type: verbatim
26935 #: ../src/guestfs-actions.pod:3996
26936 #, no-wrap
26937 msgid ""
26938 " int\n"
26939 " guestfs_ln (guestfs_h *g,\n"
26940 "             const char *target,\n"
26941 "             const char *linkname);\n"
26942 "\n"
26943 msgstr ""
26944
26945 #. type: =head2
26946 #: ../src/guestfs-actions.pod:4007
26947 msgid "guestfs_ln_f"
26948 msgstr ""
26949
26950 #. type: verbatim
26951 #: ../src/guestfs-actions.pod:4009
26952 #, no-wrap
26953 msgid ""
26954 " int\n"
26955 " guestfs_ln_f (guestfs_h *g,\n"
26956 "               const char *target,\n"
26957 "               const char *linkname);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: =head2
26962 #: ../src/guestfs-actions.pod:4021
26963 msgid "guestfs_ln_s"
26964 msgstr ""
26965
26966 #. type: verbatim
26967 #: ../src/guestfs-actions.pod:4023
26968 #, no-wrap
26969 msgid ""
26970 " int\n"
26971 " guestfs_ln_s (guestfs_h *g,\n"
26972 "               const char *target,\n"
26973 "               const char *linkname);\n"
26974 "\n"
26975 msgstr ""
26976
26977 #. type: =head2
26978 #: ../src/guestfs-actions.pod:4034
26979 msgid "guestfs_ln_sf"
26980 msgstr ""
26981
26982 #. type: verbatim
26983 #: ../src/guestfs-actions.pod:4036
26984 #, no-wrap
26985 msgid ""
26986 " int\n"
26987 " guestfs_ln_sf (guestfs_h *g,\n"
26988 "                const char *target,\n"
26989 "                const char *linkname);\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: =head2
26994 #: ../src/guestfs-actions.pod:4048
26995 msgid "guestfs_lremovexattr"
26996 msgstr ""
26997
26998 #. type: verbatim
26999 #: ../src/guestfs-actions.pod:4050
27000 #, no-wrap
27001 msgid ""
27002 " int\n"
27003 " guestfs_lremovexattr (guestfs_h *g,\n"
27004 "                       const char *xattr,\n"
27005 "                       const char *path);\n"
27006 "\n"
27007 msgstr ""
27008
27009 #. type: textblock
27010 #: ../src/guestfs-actions.pod:4055
27011 msgid ""
27012 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27013 "link, then it removes an extended attribute of the link itself."
27014 msgstr ""
27015
27016 #. type: =head2
27017 #: ../src/guestfs-actions.pod:4063
27018 msgid "guestfs_ls"
27019 msgstr ""
27020
27021 #. type: verbatim
27022 #: ../src/guestfs-actions.pod:4065
27023 #, no-wrap
27024 msgid ""
27025 " char **\n"
27026 " guestfs_ls (guestfs_h *g,\n"
27027 "             const char *directory);\n"
27028 "\n"
27029 msgstr ""
27030
27031 #. type: textblock
27032 #: ../src/guestfs-actions.pod:4073
27033 msgid ""
27034 "This command is mostly useful for interactive sessions.  Programs should "
27035 "probably use C<guestfs_readdir> instead."
27036 msgstr ""
27037
27038 #. type: =head2
27039 #: ../src/guestfs-actions.pod:4082
27040 msgid "guestfs_lsetxattr"
27041 msgstr ""
27042
27043 #. type: verbatim
27044 #: ../src/guestfs-actions.pod:4084
27045 #, no-wrap
27046 msgid ""
27047 " int\n"
27048 " guestfs_lsetxattr (guestfs_h *g,\n"
27049 "                    const char *xattr,\n"
27050 "                    const char *val,\n"
27051 "                    int vallen,\n"
27052 "                    const char *path);\n"
27053 "\n"
27054 msgstr ""
27055
27056 #. type: textblock
27057 #: ../src/guestfs-actions.pod:4091
27058 msgid ""
27059 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27060 "then it sets an extended attribute of the link itself."
27061 msgstr ""
27062
27063 #. type: =head2
27064 #: ../src/guestfs-actions.pod:4099
27065 msgid "guestfs_lstat"
27066 msgstr ""
27067
27068 #. type: verbatim
27069 #: ../src/guestfs-actions.pod:4101
27070 #, no-wrap
27071 msgid ""
27072 " struct guestfs_stat *\n"
27073 " guestfs_lstat (guestfs_h *g,\n"
27074 "                const char *path);\n"
27075 "\n"
27076 msgstr ""
27077
27078 #. type: textblock
27079 #: ../src/guestfs-actions.pod:4107
27080 msgid ""
27081 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27082 "link, then the link is stat-ed, not the file it refers to."
27083 msgstr ""
27084
27085 #. type: textblock
27086 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
27087 msgid ""
27088 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27089 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27090 msgstr ""
27091
27092 #. type: textblock
27093 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
27094 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
27095 msgid "(Added in 0.9.2)"
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:4119
27100 msgid "guestfs_lstatlist"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:4121
27105 #, no-wrap
27106 msgid ""
27107 " struct guestfs_stat_list *\n"
27108 " guestfs_lstatlist (guestfs_h *g,\n"
27109 "                    const char *path,\n"
27110 "                    char *const *names);\n"
27111 "\n"
27112 msgstr ""
27113
27114 #. type: textblock
27115 #: ../src/guestfs-actions.pod:4126
27116 msgid ""
27117 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27118 "files, where all files are in the directory C<path>.  C<names> is the list "
27119 "of files from this directory."
27120 msgstr ""
27121
27122 #. type: textblock
27123 #: ../src/guestfs-actions.pod:4135
27124 msgid ""
27125 "This call is intended for programs that want to efficiently list a directory "
27126 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27127 "for a similarly efficient call for getting extended attributes.  Very long "
27128 "directory listings might cause the protocol message size to be exceeded, "
27129 "causing this call to fail.  The caller must split up such requests into "
27130 "smaller groups of names."
27131 msgstr ""
27132
27133 #. type: textblock
27134 #: ../src/guestfs-actions.pod:4143
27135 msgid ""
27136 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27137 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27138 msgstr ""
27139
27140 #. type: =head2
27141 #: ../src/guestfs-actions.pod:4149
27142 msgid "guestfs_luks_add_key"
27143 msgstr ""
27144
27145 #. type: verbatim
27146 #: ../src/guestfs-actions.pod:4151
27147 #, no-wrap
27148 msgid ""
27149 " int\n"
27150 " guestfs_luks_add_key (guestfs_h *g,\n"
27151 "                       const char *device,\n"
27152 "                       const char *key,\n"
27153 "                       const char *newkey,\n"
27154 "                       int keyslot);\n"
27155 "\n"
27156 msgstr ""
27157
27158 #. type: textblock
27159 #: ../src/guestfs-actions.pod:4163
27160 msgid ""
27161 "Note that if C<keyslot> already contains a key, then this command will "
27162 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
27167 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
27168 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
27169 msgid ""
27170 "This function takes a key or passphrase parameter which could contain "
27171 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27172 "information."
27173 msgstr ""
27174
27175 #. type: textblock
27176 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
27177 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
27178 msgid "(Added in 1.5.2)"
27179 msgstr ""
27180
27181 #. type: =head2
27182 #: ../src/guestfs-actions.pod:4175
27183 msgid "guestfs_luks_close"
27184 msgstr ""
27185
27186 #. type: verbatim
27187 #: ../src/guestfs-actions.pod:4177
27188 #, no-wrap
27189 msgid ""
27190 " int\n"
27191 " guestfs_luks_close (guestfs_h *g,\n"
27192 "                     const char *device);\n"
27193 "\n"
27194 msgstr ""
27195
27196 #. type: textblock
27197 #: ../src/guestfs-actions.pod:4181
27198 msgid ""
27199 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27200 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27201 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27202 "underlying block device."
27203 msgstr ""
27204
27205 #. type: textblock
27206 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
27207 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
27208 #: ../src/guestfs-actions.pod:4408
27209 msgid "(Added in 1.5.1)"
27210 msgstr ""
27211
27212 #. type: =head2
27213 #: ../src/guestfs-actions.pod:4191
27214 msgid "guestfs_luks_format"
27215 msgstr ""
27216
27217 #. type: verbatim
27218 #: ../src/guestfs-actions.pod:4193
27219 #, no-wrap
27220 msgid ""
27221 " int\n"
27222 " guestfs_luks_format (guestfs_h *g,\n"
27223 "                      const char *device,\n"
27224 "                      const char *key,\n"
27225 "                      int keyslot);\n"
27226 "\n"
27227 msgstr ""
27228
27229 #. type: =head2
27230 #: ../src/guestfs-actions.pod:4215
27231 msgid "guestfs_luks_format_cipher"
27232 msgstr ""
27233
27234 #. type: verbatim
27235 #: ../src/guestfs-actions.pod:4217
27236 #, no-wrap
27237 msgid ""
27238 " int\n"
27239 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27240 "                             const char *device,\n"
27241 "                             const char *key,\n"
27242 "                             int keyslot,\n"
27243 "                             const char *cipher);\n"
27244 "\n"
27245 msgstr ""
27246
27247 #. type: textblock
27248 #: ../src/guestfs-actions.pod:4224
27249 msgid ""
27250 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27251 "set the C<cipher> used."
27252 msgstr ""
27253
27254 #. type: =head2
27255 #: ../src/guestfs-actions.pod:4238
27256 msgid "guestfs_luks_kill_slot"
27257 msgstr ""
27258
27259 #. type: verbatim
27260 #: ../src/guestfs-actions.pod:4240
27261 #, no-wrap
27262 msgid ""
27263 " int\n"
27264 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27265 "                         const char *device,\n"
27266 "                         const char *key,\n"
27267 "                         int keyslot);\n"
27268 "\n"
27269 msgstr ""
27270
27271 #. type: =head2
27272 #: ../src/guestfs-actions.pod:4258
27273 msgid "guestfs_luks_open"
27274 msgstr ""
27275
27276 #. type: verbatim
27277 #: ../src/guestfs-actions.pod:4260
27278 #, no-wrap
27279 msgid ""
27280 " int\n"
27281 " guestfs_luks_open (guestfs_h *g,\n"
27282 "                    const char *device,\n"
27283 "                    const char *key,\n"
27284 "                    const char *mapname);\n"
27285 "\n"
27286 msgstr ""
27287
27288 #. type: textblock
27289 #: ../src/guestfs-actions.pod:4278
27290 msgid ""
27291 "If this block device contains LVM volume groups, then calling "
27292 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27293 "visible."
27294 msgstr ""
27295
27296 #. type: textblock
27297 #: ../src/guestfs-actions.pod:4282
27298 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27299 msgstr ""
27300
27301 #. type: =head2
27302 #: ../src/guestfs-actions.pod:4293
27303 msgid "guestfs_luks_open_ro"
27304 msgstr ""
27305
27306 #. type: verbatim
27307 #: ../src/guestfs-actions.pod:4295
27308 #, no-wrap
27309 msgid ""
27310 " int\n"
27311 " guestfs_luks_open_ro (guestfs_h *g,\n"
27312 "                       const char *device,\n"
27313 "                       const char *key,\n"
27314 "                       const char *mapname);\n"
27315 "\n"
27316 msgstr ""
27317
27318 #. type: textblock
27319 #: ../src/guestfs-actions.pod:4301
27320 msgid ""
27321 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27322 "created."
27323 msgstr ""
27324
27325 #. type: =head2
27326 #: ../src/guestfs-actions.pod:4312
27327 msgid "guestfs_lvcreate"
27328 msgstr ""
27329
27330 #. type: verbatim
27331 #: ../src/guestfs-actions.pod:4314
27332 #, no-wrap
27333 msgid ""
27334 " int\n"
27335 " guestfs_lvcreate (guestfs_h *g,\n"
27336 "                   const char *logvol,\n"
27337 "                   const char *volgroup,\n"
27338 "                   int mbytes);\n"
27339 "\n"
27340 msgstr ""
27341
27342 #. type: =head2
27343 #: ../src/guestfs-actions.pod:4327
27344 msgid "guestfs_lvm_canonical_lv_name"
27345 msgstr ""
27346
27347 #. type: verbatim
27348 #: ../src/guestfs-actions.pod:4329
27349 #, no-wrap
27350 msgid ""
27351 " char *\n"
27352 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27353 "                                const char *lvname);\n"
27354 "\n"
27355 msgstr ""
27356
27357 #. type: textblock
27358 #: ../src/guestfs-actions.pod:4340
27359 msgid "See also C<guestfs_is_lv>."
27360 msgstr ""
27361
27362 #. type: textblock
27363 #: ../src/guestfs-actions.pod:4345
27364 msgid "(Added in 1.5.24)"
27365 msgstr ""
27366
27367 #. type: =head2
27368 #: ../src/guestfs-actions.pod:4347
27369 msgid "guestfs_lvm_clear_filter"
27370 msgstr ""
27371
27372 #. type: verbatim
27373 #: ../src/guestfs-actions.pod:4349
27374 #, no-wrap
27375 msgid ""
27376 " int\n"
27377 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27378 "\n"
27379 msgstr ""
27380
27381 #. type: textblock
27382 #: ../src/guestfs-actions.pod:4352
27383 msgid ""
27384 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27385 "see every block device."
27386 msgstr ""
27387
27388 #. type: =head2
27389 #: ../src/guestfs-actions.pod:4362
27390 msgid "guestfs_lvm_remove_all"
27391 msgstr ""
27392
27393 #. type: verbatim
27394 #: ../src/guestfs-actions.pod:4364
27395 #, no-wrap
27396 msgid ""
27397 " int\n"
27398 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27399 "\n"
27400 msgstr ""
27401
27402 #. type: =head2
27403 #: ../src/guestfs-actions.pod:4377
27404 msgid "guestfs_lvm_set_filter"
27405 msgstr ""
27406
27407 #. type: verbatim
27408 #: ../src/guestfs-actions.pod:4379
27409 #, no-wrap
27410 msgid ""
27411 " int\n"
27412 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27413 "                         char *const *devices);\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: =head2
27418 #: ../src/guestfs-actions.pod:4410
27419 msgid "guestfs_lvremove"
27420 msgstr ""
27421
27422 #. type: verbatim
27423 #: ../src/guestfs-actions.pod:4412
27424 #, no-wrap
27425 msgid ""
27426 " int\n"
27427 " guestfs_lvremove (guestfs_h *g,\n"
27428 "                   const char *device);\n"
27429 "\n"
27430 msgstr ""
27431
27432 #. type: textblock
27433 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
27434 #: ../src/guestfs-actions.pod:7667
27435 msgid "(Added in 1.0.13)"
27436 msgstr ""
27437
27438 #. type: =head2
27439 #: ../src/guestfs-actions.pod:4426
27440 msgid "guestfs_lvrename"
27441 msgstr ""
27442
27443 #. type: verbatim
27444 #: ../src/guestfs-actions.pod:4428
27445 #, no-wrap
27446 msgid ""
27447 " int\n"
27448 " guestfs_lvrename (guestfs_h *g,\n"
27449 "                   const char *logvol,\n"
27450 "                   const char *newlogvol);\n"
27451 "\n"
27452 msgstr ""
27453
27454 #. type: textblock
27455 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
27456 msgid "(Added in 1.0.83)"
27457 msgstr ""
27458
27459 #. type: =head2
27460 #: ../src/guestfs-actions.pod:4439
27461 msgid "guestfs_lvresize"
27462 msgstr ""
27463
27464 #. type: verbatim
27465 #: ../src/guestfs-actions.pod:4441
27466 #, no-wrap
27467 msgid ""
27468 " int\n"
27469 " guestfs_lvresize (guestfs_h *g,\n"
27470 "                   const char *device,\n"
27471 "                   int mbytes);\n"
27472 "\n"
27473 msgstr ""
27474
27475 #. type: =head2
27476 #: ../src/guestfs-actions.pod:4454
27477 msgid "guestfs_lvresize_free"
27478 msgstr ""
27479
27480 #. type: verbatim
27481 #: ../src/guestfs-actions.pod:4456
27482 #, no-wrap
27483 msgid ""
27484 " int\n"
27485 " guestfs_lvresize_free (guestfs_h *g,\n"
27486 "                        const char *lv,\n"
27487 "                        int percent);\n"
27488 "\n"
27489 msgstr ""
27490
27491 #. type: textblock
27492 #: ../src/guestfs-actions.pod:4469
27493 msgid "(Added in 1.3.3)"
27494 msgstr ""
27495
27496 #. type: =head2
27497 #: ../src/guestfs-actions.pod:4471
27498 msgid "guestfs_lvs"
27499 msgstr ""
27500
27501 #. type: verbatim
27502 #: ../src/guestfs-actions.pod:4473
27503 #, no-wrap
27504 msgid ""
27505 " char **\n"
27506 " guestfs_lvs (guestfs_h *g);\n"
27507 "\n"
27508 msgstr ""
27509
27510 #. type: textblock
27511 #: ../src/guestfs-actions.pod:4482
27512 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27513 msgstr ""
27514
27515 #. type: =head2
27516 #: ../src/guestfs-actions.pod:4490
27517 msgid "guestfs_lvs_full"
27518 msgstr ""
27519
27520 #. type: verbatim
27521 #: ../src/guestfs-actions.pod:4492
27522 #, no-wrap
27523 msgid ""
27524 " struct guestfs_lvm_lv_list *\n"
27525 " guestfs_lvs_full (guestfs_h *g);\n"
27526 "\n"
27527 msgstr ""
27528
27529 #. type: textblock
27530 #: ../src/guestfs-actions.pod:4498
27531 msgid ""
27532 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27533 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27534 msgstr ""
27535
27536 #. type: =head2
27537 #: ../src/guestfs-actions.pod:4504
27538 msgid "guestfs_lvuuid"
27539 msgstr ""
27540
27541 #. type: verbatim
27542 #: ../src/guestfs-actions.pod:4506
27543 #, no-wrap
27544 msgid ""
27545 " char *\n"
27546 " guestfs_lvuuid (guestfs_h *g,\n"
27547 "                 const char *device);\n"
27548 "\n"
27549 msgstr ""
27550
27551 #. type: =head2
27552 #: ../src/guestfs-actions.pod:4517
27553 msgid "guestfs_lxattrlist"
27554 msgstr ""
27555
27556 #. type: verbatim
27557 #: ../src/guestfs-actions.pod:4519
27558 #, no-wrap
27559 msgid ""
27560 " struct guestfs_xattr_list *\n"
27561 " guestfs_lxattrlist (guestfs_h *g,\n"
27562 "                     const char *path,\n"
27563 "                     char *const *names);\n"
27564 "\n"
27565 msgstr ""
27566
27567 #. type: textblock
27568 #: ../src/guestfs-actions.pod:4538
27569 msgid ""
27570 "This call is intended for programs that want to efficiently list a directory "
27571 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27572 "a similarly efficient call for getting standard stats.  Very long directory "
27573 "listings might cause the protocol message size to be exceeded, causing this "
27574 "call to fail.  The caller must split up such requests into smaller groups of "
27575 "names."
27576 msgstr ""
27577
27578 #. type: =head2
27579 #: ../src/guestfs-actions.pod:4552
27580 msgid "guestfs_mkdir"
27581 msgstr ""
27582
27583 #. type: verbatim
27584 #: ../src/guestfs-actions.pod:4554
27585 #, no-wrap
27586 msgid ""
27587 " int\n"
27588 " guestfs_mkdir (guestfs_h *g,\n"
27589 "                const char *path);\n"
27590 "\n"
27591 msgstr ""
27592
27593 #. type: =head2
27594 #: ../src/guestfs-actions.pod:4564
27595 msgid "guestfs_mkdir_mode"
27596 msgstr ""
27597
27598 #. type: verbatim
27599 #: ../src/guestfs-actions.pod:4566
27600 #, no-wrap
27601 msgid ""
27602 " int\n"
27603 " guestfs_mkdir_mode (guestfs_h *g,\n"
27604 "                     const char *path,\n"
27605 "                     int mode);\n"
27606 "\n"
27607 msgstr ""
27608
27609 #. type: textblock
27610 #: ../src/guestfs-actions.pod:4578
27611 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27612 msgstr ""
27613
27614 #. type: =head2
27615 #: ../src/guestfs-actions.pod:4584
27616 msgid "guestfs_mkdir_p"
27617 msgstr ""
27618
27619 #. type: verbatim
27620 #: ../src/guestfs-actions.pod:4586
27621 #, no-wrap
27622 msgid ""
27623 " int\n"
27624 " guestfs_mkdir_p (guestfs_h *g,\n"
27625 "                  const char *path);\n"
27626 "\n"
27627 msgstr ""
27628
27629 #. type: =head2
27630 #: ../src/guestfs-actions.pod:4597
27631 msgid "guestfs_mkdtemp"
27632 msgstr ""
27633
27634 #. type: verbatim
27635 #: ../src/guestfs-actions.pod:4599
27636 #, no-wrap
27637 msgid ""
27638 " char *\n"
27639 " guestfs_mkdtemp (guestfs_h *g,\n"
27640 "                  const char *template);\n"
27641 "\n"
27642 msgstr ""
27643
27644 #. type: =head2
27645 #: ../src/guestfs-actions.pod:4627
27646 msgid "guestfs_mke2fs_J"
27647 msgstr ""
27648
27649 #. type: verbatim
27650 #: ../src/guestfs-actions.pod:4629
27651 #, no-wrap
27652 msgid ""
27653 " int\n"
27654 " guestfs_mke2fs_J (guestfs_h *g,\n"
27655 "                   const char *fstype,\n"
27656 "                   int blocksize,\n"
27657 "                   const char *device,\n"
27658 "                   const char *journal);\n"
27659 "\n"
27660 msgstr ""
27661
27662 #. type: textblock
27663 #: ../src/guestfs-actions.pod:4642
27664 msgid "See also C<guestfs_mke2journal>."
27665 msgstr ""
27666
27667 #. type: textblock
27668 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
27669 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
27670 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
27671 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
27672 msgid "(Added in 1.0.68)"
27673 msgstr ""
27674
27675 #. type: =head2
27676 #: ../src/guestfs-actions.pod:4648
27677 msgid "guestfs_mke2fs_JL"
27678 msgstr ""
27679
27680 #. type: verbatim
27681 #: ../src/guestfs-actions.pod:4650
27682 #, no-wrap
27683 msgid ""
27684 " int\n"
27685 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27686 "                    const char *fstype,\n"
27687 "                    int blocksize,\n"
27688 "                    const char *device,\n"
27689 "                    const char *label);\n"
27690 "\n"
27691 msgstr ""
27692
27693 #. type: textblock
27694 #: ../src/guestfs-actions.pod:4660
27695 msgid "See also C<guestfs_mke2journal_L>."
27696 msgstr ""
27697
27698 #. type: =head2
27699 #: ../src/guestfs-actions.pod:4666
27700 msgid "guestfs_mke2fs_JU"
27701 msgstr ""
27702
27703 #. type: verbatim
27704 #: ../src/guestfs-actions.pod:4668
27705 #, no-wrap
27706 msgid ""
27707 " int\n"
27708 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27709 "                    const char *fstype,\n"
27710 "                    int blocksize,\n"
27711 "                    const char *device,\n"
27712 "                    const char *uuid);\n"
27713 "\n"
27714 msgstr ""
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:4678
27718 msgid "See also C<guestfs_mke2journal_U>."
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:4684
27723 msgid "guestfs_mke2journal"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:4686
27728 #, no-wrap
27729 msgid ""
27730 " int\n"
27731 " guestfs_mke2journal (guestfs_h *g,\n"
27732 "                      int blocksize,\n"
27733 "                      const char *device);\n"
27734 "\n"
27735 msgstr ""
27736
27737 #. type: =head2
27738 #: ../src/guestfs-actions.pod:4700
27739 msgid "guestfs_mke2journal_L"
27740 msgstr ""
27741
27742 #. type: verbatim
27743 #: ../src/guestfs-actions.pod:4702
27744 #, no-wrap
27745 msgid ""
27746 " int\n"
27747 " guestfs_mke2journal_L (guestfs_h *g,\n"
27748 "                        int blocksize,\n"
27749 "                        const char *label,\n"
27750 "                        const char *device);\n"
27751 "\n"
27752 msgstr ""
27753
27754 #. type: =head2
27755 #: ../src/guestfs-actions.pod:4714
27756 msgid "guestfs_mke2journal_U"
27757 msgstr ""
27758
27759 #. type: verbatim
27760 #: ../src/guestfs-actions.pod:4716
27761 #, no-wrap
27762 msgid ""
27763 " int\n"
27764 " guestfs_mke2journal_U (guestfs_h *g,\n"
27765 "                        int blocksize,\n"
27766 "                        const char *uuid,\n"
27767 "                        const char *device);\n"
27768 "\n"
27769 msgstr ""
27770
27771 #. type: =head2
27772 #: ../src/guestfs-actions.pod:4728
27773 msgid "guestfs_mkfifo"
27774 msgstr ""
27775
27776 #. type: verbatim
27777 #: ../src/guestfs-actions.pod:4730
27778 #, no-wrap
27779 msgid ""
27780 " int\n"
27781 " guestfs_mkfifo (guestfs_h *g,\n"
27782 "                 int mode,\n"
27783 "                 const char *path);\n"
27784 "\n"
27785 msgstr ""
27786
27787 #. type: textblock
27788 #: ../src/guestfs-actions.pod:4735
27789 msgid ""
27790 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27791 "is just a convenient wrapper around C<guestfs_mknod>."
27792 msgstr ""
27793
27794 #. type: =head2
27795 #: ../src/guestfs-actions.pod:4745
27796 msgid "guestfs_mkfs"
27797 msgstr ""
27798
27799 #. type: verbatim
27800 #: ../src/guestfs-actions.pod:4747
27801 #, no-wrap
27802 msgid ""
27803 " int\n"
27804 " guestfs_mkfs (guestfs_h *g,\n"
27805 "               const char *fstype,\n"
27806 "               const char *device);\n"
27807 "\n"
27808 msgstr ""
27809
27810 #. type: =head2
27811 #: ../src/guestfs-actions.pod:4760
27812 msgid "guestfs_mkfs_b"
27813 msgstr ""
27814
27815 #. type: verbatim
27816 #: ../src/guestfs-actions.pod:4762
27817 #, no-wrap
27818 msgid ""
27819 " int\n"
27820 " guestfs_mkfs_b (guestfs_h *g,\n"
27821 "                 const char *fstype,\n"
27822 "                 int blocksize,\n"
27823 "                 const char *device);\n"
27824 "\n"
27825 msgstr ""
27826
27827 #. type: textblock
27828 #: ../src/guestfs-actions.pod:4768
27829 msgid ""
27830 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
27831 "call instead."
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:4775
27836 msgid ""
27837 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
27838 "block size of the resulting filesystem.  Supported block sizes depend on the "
27839 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27840 msgstr ""
27841
27842 #. type: =head2
27843 #: ../src/guestfs-actions.pod:4787
27844 msgid "guestfs_mkfs_opts"
27845 msgstr ""
27846
27847 #. type: verbatim
27848 #: ../src/guestfs-actions.pod:4789
27849 #, no-wrap
27850 msgid ""
27851 " int\n"
27852 " guestfs_mkfs_opts (guestfs_h *g,\n"
27853 "                    const char *fstype,\n"
27854 "                    const char *device,\n"
27855 "                    ...);\n"
27856 "\n"
27857 msgstr ""
27858
27859 #. type: verbatim
27860 #: ../src/guestfs-actions.pod:4800
27861 #, no-wrap
27862 msgid ""
27863 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
27864 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
27865 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
27866 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
27867 "\n"
27868 msgstr ""
27869
27870 #. type: textblock
27871 #: ../src/guestfs-actions.pod:4848
27872 msgid "(Added in 1.7.19)"
27873 msgstr ""
27874
27875 #. type: =head2
27876 #: ../src/guestfs-actions.pod:4850
27877 msgid "guestfs_mkfs_opts_va"
27878 msgstr ""
27879
27880 #. type: verbatim
27881 #: ../src/guestfs-actions.pod:4852
27882 #, no-wrap
27883 msgid ""
27884 " int\n"
27885 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27886 "                       const char *fstype,\n"
27887 "                       const char *device,\n"
27888 "                       va_list args);\n"
27889 "\n"
27890 msgstr ""
27891
27892 #. type: textblock
27893 #: ../src/guestfs-actions.pod:4858
27894 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
27895 msgstr ""
27896
27897 #. type: =head2
27898 #: ../src/guestfs-actions.pod:4862
27899 msgid "guestfs_mkfs_opts_argv"
27900 msgstr ""
27901
27902 #. type: verbatim
27903 #: ../src/guestfs-actions.pod:4864
27904 #, no-wrap
27905 msgid ""
27906 " int\n"
27907 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27908 "                         const char *fstype,\n"
27909 "                         const char *device,\n"
27910 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27911 "\n"
27912 msgstr ""
27913
27914 #. type: textblock
27915 #: ../src/guestfs-actions.pod:4870
27916 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
27917 msgstr ""
27918
27919 #. type: =head2
27920 #: ../src/guestfs-actions.pod:4874
27921 msgid "guestfs_mkmountpoint"
27922 msgstr ""
27923
27924 #. type: verbatim
27925 #: ../src/guestfs-actions.pod:4876
27926 #, no-wrap
27927 msgid ""
27928 " int\n"
27929 " guestfs_mkmountpoint (guestfs_h *g,\n"
27930 "                       const char *exemptpath);\n"
27931 "\n"
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../src/guestfs-actions.pod:4880
27936 msgid ""
27937 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
27938 "that can be used to create extra mountpoints before mounting the first "
27939 "filesystem."
27940 msgstr ""
27941
27942 #. type: textblock
27943 #: ../src/guestfs-actions.pod:4904
27944 msgid ""
27945 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
27946 "may get unexpected errors if you try to mix these calls.  It is safest to "
27947 "manually unmount filesystems and remove mountpoints after use."
27948 msgstr ""
27949
27950 #. type: textblock
27951 #: ../src/guestfs-actions.pod:4908
27952 msgid ""
27953 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
27954 "first, so for this to work for manual mountpoints, you must ensure that the "
27955 "innermost mountpoints have the longest pathnames, as in the example code "
27956 "above."
27957 msgstr ""
27958
27959 #. type: textblock
27960 #: ../src/guestfs-actions.pod:4915
27961 msgid ""
27962 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
27963 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
27964 "can also trigger these issues."
27965 msgstr ""
27966
27967 #. type: textblock
27968 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
27969 #: ../src/guestfs-actions.pod:6237
27970 msgid "(Added in 1.0.62)"
27971 msgstr ""
27972
27973 #. type: =head2
27974 #: ../src/guestfs-actions.pod:4923
27975 msgid "guestfs_mknod"
27976 msgstr ""
27977
27978 #. type: verbatim
27979 #: ../src/guestfs-actions.pod:4925
27980 #, no-wrap
27981 msgid ""
27982 " int\n"
27983 " guestfs_mknod (guestfs_h *g,\n"
27984 "                int mode,\n"
27985 "                int devmajor,\n"
27986 "                int devminor,\n"
27987 "                const char *path);\n"
27988 "\n"
27989 msgstr ""
27990
27991 #. type: textblock
27992 #: ../src/guestfs-actions.pod:4940
27993 msgid ""
27994 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27995 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27996 "regular file).  These constants are available in the standard Linux header "
27997 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
27998 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
27999 "the appropriate constant for you."
28000 msgstr ""
28001
28002 #. type: =head2
28003 #: ../src/guestfs-actions.pod:4954
28004 msgid "guestfs_mknod_b"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../src/guestfs-actions.pod:4956
28009 #, no-wrap
28010 msgid ""
28011 " int\n"
28012 " guestfs_mknod_b (guestfs_h *g,\n"
28013 "                  int mode,\n"
28014 "                  int devmajor,\n"
28015 "                  int devminor,\n"
28016 "                  const char *path);\n"
28017 "\n"
28018 msgstr ""
28019
28020 #. type: textblock
28021 #: ../src/guestfs-actions.pod:4963
28022 msgid ""
28023 "This call creates a block device node called C<path> with mode C<mode> and "
28024 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28025 "wrapper around C<guestfs_mknod>."
28026 msgstr ""
28027
28028 #. type: =head2
28029 #: ../src/guestfs-actions.pod:4973
28030 msgid "guestfs_mknod_c"
28031 msgstr ""
28032
28033 #. type: verbatim
28034 #: ../src/guestfs-actions.pod:4975
28035 #, no-wrap
28036 msgid ""
28037 " int\n"
28038 " guestfs_mknod_c (guestfs_h *g,\n"
28039 "                  int mode,\n"
28040 "                  int devmajor,\n"
28041 "                  int devminor,\n"
28042 "                  const char *path);\n"
28043 "\n"
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../src/guestfs-actions.pod:4982
28048 msgid ""
28049 "This call creates a char device node called C<path> with mode C<mode> and "
28050 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28051 "wrapper around C<guestfs_mknod>."
28052 msgstr ""
28053
28054 #. type: =head2
28055 #: ../src/guestfs-actions.pod:4992
28056 msgid "guestfs_mkswap"
28057 msgstr ""
28058
28059 #. type: verbatim
28060 #: ../src/guestfs-actions.pod:4994
28061 #, no-wrap
28062 msgid ""
28063 " int\n"
28064 " guestfs_mkswap (guestfs_h *g,\n"
28065 "                 const char *device);\n"
28066 "\n"
28067 msgstr ""
28068
28069 #. type: =head2
28070 #: ../src/guestfs-actions.pod:5004
28071 msgid "guestfs_mkswap_L"
28072 msgstr ""
28073
28074 #. type: verbatim
28075 #: ../src/guestfs-actions.pod:5006
28076 #, no-wrap
28077 msgid ""
28078 " int\n"
28079 " guestfs_mkswap_L (guestfs_h *g,\n"
28080 "                   const char *label,\n"
28081 "                   const char *device);\n"
28082 "\n"
28083 msgstr ""
28084
28085 #. type: =head2
28086 #: ../src/guestfs-actions.pod:5021
28087 msgid "guestfs_mkswap_U"
28088 msgstr ""
28089
28090 #. type: verbatim
28091 #: ../src/guestfs-actions.pod:5023
28092 #, no-wrap
28093 msgid ""
28094 " int\n"
28095 " guestfs_mkswap_U (guestfs_h *g,\n"
28096 "                   const char *uuid,\n"
28097 "                   const char *device);\n"
28098 "\n"
28099 msgstr ""
28100
28101 #. type: =head2
28102 #: ../src/guestfs-actions.pod:5034
28103 msgid "guestfs_mkswap_file"
28104 msgstr ""
28105
28106 #. type: verbatim
28107 #: ../src/guestfs-actions.pod:5036
28108 #, no-wrap
28109 msgid ""
28110 " int\n"
28111 " guestfs_mkswap_file (guestfs_h *g,\n"
28112 "                      const char *path);\n"
28113 "\n"
28114 msgstr ""
28115
28116 #. type: textblock
28117 #: ../src/guestfs-actions.pod:5042
28118 msgid ""
28119 "This command just writes a swap file signature to an existing file.  To "
28120 "create the file itself, use something like C<guestfs_fallocate>."
28121 msgstr ""
28122
28123 #. type: =head2
28124 #: ../src/guestfs-actions.pod:5049
28125 msgid "guestfs_modprobe"
28126 msgstr ""
28127
28128 #. type: verbatim
28129 #: ../src/guestfs-actions.pod:5051
28130 #, no-wrap
28131 msgid ""
28132 " int\n"
28133 " guestfs_modprobe (guestfs_h *g,\n"
28134 "                   const char *modulename);\n"
28135 "\n"
28136 msgstr ""
28137
28138 #. type: =head2
28139 #: ../src/guestfs-actions.pod:5064
28140 msgid "guestfs_mount"
28141 msgstr ""
28142
28143 #. type: verbatim
28144 #: ../src/guestfs-actions.pod:5066
28145 #, no-wrap
28146 msgid ""
28147 " int\n"
28148 " guestfs_mount (guestfs_h *g,\n"
28149 "                const char *device,\n"
28150 "                const char *mountpoint);\n"
28151 "\n"
28152 msgstr ""
28153
28154 #. type: textblock
28155 #: ../src/guestfs-actions.pod:5085
28156 msgid ""
28157 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
28158 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
28159 "problems for users.  If your program might need to work with older versions "
28160 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
28161 "for the first parameter if you don't want any options)."
28162 msgstr ""
28163
28164 #. type: =head2
28165 #: ../src/guestfs-actions.pod:5096
28166 msgid "guestfs_mount_9p"
28167 msgstr ""
28168
28169 #. type: verbatim
28170 #: ../src/guestfs-actions.pod:5098
28171 #, no-wrap
28172 msgid ""
28173 " int\n"
28174 " guestfs_mount_9p (guestfs_h *g,\n"
28175 "                   const char *mounttag,\n"
28176 "                   const char *mountpoint,\n"
28177 "                   ...);\n"
28178 "\n"
28179 msgstr ""
28180
28181 #. type: verbatim
28182 #: ../src/guestfs-actions.pod:5109
28183 #, no-wrap
28184 msgid ""
28185 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28186 "\n"
28187 msgstr ""
28188
28189 #. type: =head2
28190 #: ../src/guestfs-actions.pod:5122
28191 msgid "guestfs_mount_9p_va"
28192 msgstr ""
28193
28194 #. type: verbatim
28195 #: ../src/guestfs-actions.pod:5124
28196 #, no-wrap
28197 msgid ""
28198 " int\n"
28199 " guestfs_mount_9p_va (guestfs_h *g,\n"
28200 "                      const char *mounttag,\n"
28201 "                      const char *mountpoint,\n"
28202 "                      va_list args);\n"
28203 "\n"
28204 msgstr ""
28205
28206 #. type: textblock
28207 #: ../src/guestfs-actions.pod:5130
28208 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28209 msgstr ""
28210
28211 #. type: =head2
28212 #: ../src/guestfs-actions.pod:5134
28213 msgid "guestfs_mount_9p_argv"
28214 msgstr ""
28215
28216 #. type: verbatim
28217 #: ../src/guestfs-actions.pod:5136
28218 #, no-wrap
28219 msgid ""
28220 " int\n"
28221 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28222 "                        const char *mounttag,\n"
28223 "                        const char *mountpoint,\n"
28224 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28225 "\n"
28226 msgstr ""
28227
28228 #. type: textblock
28229 #: ../src/guestfs-actions.pod:5142
28230 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28231 msgstr ""
28232
28233 #. type: =head2
28234 #: ../src/guestfs-actions.pod:5146
28235 msgid "guestfs_mount_loop"
28236 msgstr ""
28237
28238 #. type: verbatim
28239 #: ../src/guestfs-actions.pod:5148
28240 #, no-wrap
28241 msgid ""
28242 " int\n"
28243 " guestfs_mount_loop (guestfs_h *g,\n"
28244 "                     const char *file,\n"
28245 "                     const char *mountpoint);\n"
28246 "\n"
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:5161
28251 msgid "guestfs_mount_options"
28252 msgstr ""
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:5163
28256 #, no-wrap
28257 msgid ""
28258 " int\n"
28259 " guestfs_mount_options (guestfs_h *g,\n"
28260 "                        const char *options,\n"
28261 "                        const char *device,\n"
28262 "                        const char *mountpoint);\n"
28263 "\n"
28264 msgstr ""
28265
28266 #. type: textblock
28267 #: ../src/guestfs-actions.pod:5169
28268 msgid ""
28269 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28270 "the mount options as for the L<mount(8)> I<-o> flag."
28271 msgstr ""
28272
28273 #. type: textblock
28274 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
28275 #: ../src/guestfs-actions.pod:5210
28276 msgid "(Added in 1.0.10)"
28277 msgstr ""
28278
28279 #. type: =head2
28280 #: ../src/guestfs-actions.pod:5181
28281 msgid "guestfs_mount_ro"
28282 msgstr ""
28283
28284 #. type: verbatim
28285 #: ../src/guestfs-actions.pod:5183
28286 #, no-wrap
28287 msgid ""
28288 " int\n"
28289 " guestfs_mount_ro (guestfs_h *g,\n"
28290 "                   const char *device,\n"
28291 "                   const char *mountpoint);\n"
28292 "\n"
28293 msgstr ""
28294
28295 #. type: textblock
28296 #: ../src/guestfs-actions.pod:5188
28297 msgid ""
28298 "This is the same as the C<guestfs_mount> command, but it mounts the "
28299 "filesystem with the read-only (I<-o ro>) flag."
28300 msgstr ""
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:5195
28304 msgid "guestfs_mount_vfs"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:5197
28309 #, no-wrap
28310 msgid ""
28311 " int\n"
28312 " guestfs_mount_vfs (guestfs_h *g,\n"
28313 "                    const char *options,\n"
28314 "                    const char *vfstype,\n"
28315 "                    const char *device,\n"
28316 "                    const char *mountpoint);\n"
28317 "\n"
28318 msgstr ""
28319
28320 #. type: textblock
28321 #: ../src/guestfs-actions.pod:5204
28322 msgid ""
28323 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28324 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28325 "t> flags."
28326 msgstr ""
28327
28328 #. type: =head2
28329 #: ../src/guestfs-actions.pod:5212
28330 msgid "guestfs_mountpoints"
28331 msgstr ""
28332
28333 #. type: verbatim
28334 #: ../src/guestfs-actions.pod:5214
28335 #, no-wrap
28336 msgid ""
28337 " char **\n"
28338 " guestfs_mountpoints (guestfs_h *g);\n"
28339 "\n"
28340 msgstr ""
28341
28342 #. type: textblock
28343 #: ../src/guestfs-actions.pod:5217
28344 msgid ""
28345 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28346 "devices.  This one returns a hash table (map) of device name to directory "
28347 "where the device is mounted."
28348 msgstr ""
28349
28350 #. type: =head2
28351 #: ../src/guestfs-actions.pod:5229
28352 msgid "guestfs_mounts"
28353 msgstr ""
28354
28355 #. type: verbatim
28356 #: ../src/guestfs-actions.pod:5231
28357 #, no-wrap
28358 msgid ""
28359 " char **\n"
28360 " guestfs_mounts (guestfs_h *g);\n"
28361 "\n"
28362 msgstr ""
28363
28364 #. type: textblock
28365 #: ../src/guestfs-actions.pod:5239
28366 msgid "See also: C<guestfs_mountpoints>"
28367 msgstr ""
28368
28369 #. type: =head2
28370 #: ../src/guestfs-actions.pod:5247
28371 msgid "guestfs_mv"
28372 msgstr ""
28373
28374 #. type: verbatim
28375 #: ../src/guestfs-actions.pod:5249
28376 #, no-wrap
28377 msgid ""
28378 " int\n"
28379 " guestfs_mv (guestfs_h *g,\n"
28380 "             const char *src,\n"
28381 "             const char *dest);\n"
28382 "\n"
28383 msgstr ""
28384
28385 #. type: =head2
28386 #: ../src/guestfs-actions.pod:5261
28387 msgid "guestfs_ntfs_3g_probe"
28388 msgstr ""
28389
28390 #. type: verbatim
28391 #: ../src/guestfs-actions.pod:5263
28392 #, no-wrap
28393 msgid ""
28394 " int\n"
28395 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28396 "                        int rw,\n"
28397 "                        const char *device);\n"
28398 "\n"
28399 msgstr ""
28400
28401 #. type: textblock
28402 #: ../src/guestfs-actions.pod:5282
28403 msgid "(Added in 1.0.43)"
28404 msgstr ""
28405
28406 #. type: =head2
28407 #: ../src/guestfs-actions.pod:5284
28408 msgid "guestfs_ntfsresize"
28409 msgstr ""
28410
28411 #. type: verbatim
28412 #: ../src/guestfs-actions.pod:5286
28413 #, no-wrap
28414 msgid ""
28415 " int\n"
28416 " guestfs_ntfsresize (guestfs_h *g,\n"
28417 "                     const char *device);\n"
28418 "\n"
28419 msgstr ""
28420
28421 #. type: textblock
28422 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
28423 msgid ""
28424 "I<This function is deprecated.> In new code, use the L</"
28425 "guestfs_ntfsresize_opts> call instead."
28426 msgstr ""
28427
28428 #. type: =head2
28429 #: ../src/guestfs-actions.pod:5314
28430 msgid "guestfs_ntfsresize_opts"
28431 msgstr ""
28432
28433 #. type: verbatim
28434 #: ../src/guestfs-actions.pod:5316
28435 #, no-wrap
28436 msgid ""
28437 " int\n"
28438 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28439 "                          const char *device,\n"
28440 "                          ...);\n"
28441 "\n"
28442 msgstr ""
28443
28444 #. type: verbatim
28445 #: ../src/guestfs-actions.pod:5326
28446 #, no-wrap
28447 msgid ""
28448 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28449 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28450 "\n"
28451 msgstr ""
28452
28453 #. type: textblock
28454 #: ../src/guestfs-actions.pod:5346
28455 msgid ""
28456 "After the resize operation, the filesystem is always marked as requiring a "
28457 "consistency check (for safety).  You have to boot into Windows to perform "
28458 "this check and clear this condition.  If you I<don't> set the C<force> "
28459 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28460 "times on a single filesystem without booting into Windows between each "
28461 "resize."
28462 msgstr ""
28463
28464 #. type: =head2
28465 #: ../src/guestfs-actions.pod:5361
28466 msgid "guestfs_ntfsresize_opts_va"
28467 msgstr ""
28468
28469 #. type: verbatim
28470 #: ../src/guestfs-actions.pod:5363
28471 #, no-wrap
28472 msgid ""
28473 " int\n"
28474 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28475 "                             const char *device,\n"
28476 "                             va_list args);\n"
28477 "\n"
28478 msgstr ""
28479
28480 #. type: textblock
28481 #: ../src/guestfs-actions.pod:5368
28482 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28483 msgstr ""
28484
28485 #. type: =head2
28486 #: ../src/guestfs-actions.pod:5372
28487 msgid "guestfs_ntfsresize_opts_argv"
28488 msgstr ""
28489
28490 #. type: verbatim
28491 #: ../src/guestfs-actions.pod:5374
28492 #, no-wrap
28493 msgid ""
28494 " int\n"
28495 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28496 "                               const char *device,\n"
28497 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28498 "\n"
28499 msgstr ""
28500
28501 #. type: textblock
28502 #: ../src/guestfs-actions.pod:5379
28503 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28504 msgstr ""
28505
28506 #. type: =head2
28507 #: ../src/guestfs-actions.pod:5383
28508 msgid "guestfs_ntfsresize_size"
28509 msgstr ""
28510
28511 #. type: verbatim
28512 #: ../src/guestfs-actions.pod:5385
28513 #, no-wrap
28514 msgid ""
28515 " int\n"
28516 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28517 "                          const char *device,\n"
28518 "                          int64_t size);\n"
28519 "\n"
28520 msgstr ""
28521
28522 #. type: textblock
28523 #: ../src/guestfs-actions.pod:5397
28524 msgid ""
28525 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28526 "to specify the new size (in bytes) explicitly."
28527 msgstr ""
28528
28529 #. type: textblock
28530 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
28531 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
28532 #: ../src/guestfs-actions.pod:7824
28533 msgid "(Added in 1.3.14)"
28534 msgstr ""
28535
28536 #. type: =head2
28537 #: ../src/guestfs-actions.pod:5404
28538 msgid "guestfs_part_add"
28539 msgstr ""
28540
28541 #. type: verbatim
28542 #: ../src/guestfs-actions.pod:5406
28543 #, no-wrap
28544 msgid ""
28545 " int\n"
28546 " guestfs_part_add (guestfs_h *g,\n"
28547 "                   const char *device,\n"
28548 "                   const char *prlogex,\n"
28549 "                   int64_t startsect,\n"
28550 "                   int64_t endsect);\n"
28551 "\n"
28552 msgstr ""
28553
28554 #. type: textblock
28555 #: ../src/guestfs-actions.pod:5413
28556 msgid ""
28557 "This command adds a partition to C<device>.  If there is no partition table "
28558 "on the device, call C<guestfs_part_init> first."
28559 msgstr ""
28560
28561 #. type: textblock
28562 #: ../src/guestfs-actions.pod:5425
28563 msgid ""
28564 "Creating a partition which covers the whole disk is not so easy.  Use "
28565 "C<guestfs_part_disk> to do that."
28566 msgstr ""
28567
28568 #. type: textblock
28569 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
28570 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
28571 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
28572 #: ../src/guestfs-actions.pod:5702
28573 msgid "(Added in 1.0.78)"
28574 msgstr ""
28575
28576 #. type: =head2
28577 #: ../src/guestfs-actions.pod:5432
28578 msgid "guestfs_part_del"
28579 msgstr ""
28580
28581 #. type: verbatim
28582 #: ../src/guestfs-actions.pod:5434
28583 #, no-wrap
28584 msgid ""
28585 " int\n"
28586 " guestfs_part_del (guestfs_h *g,\n"
28587 "                   const char *device,\n"
28588 "                   int partnum);\n"
28589 "\n"
28590 msgstr ""
28591
28592 #. type: =head2
28593 #: ../src/guestfs-actions.pod:5449
28594 msgid "guestfs_part_disk"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../src/guestfs-actions.pod:5451
28599 #, no-wrap
28600 msgid ""
28601 " int\n"
28602 " guestfs_part_disk (guestfs_h *g,\n"
28603 "                    const char *device,\n"
28604 "                    const char *parttype);\n"
28605 "\n"
28606 msgstr ""
28607
28608 #. type: textblock
28609 #: ../src/guestfs-actions.pod:5456
28610 msgid ""
28611 "This command is simply a combination of C<guestfs_part_init> followed by "
28612 "C<guestfs_part_add> to create a single primary partition covering the whole "
28613 "disk."
28614 msgstr ""
28615
28616 #. type: textblock
28617 #: ../src/guestfs-actions.pod:5460
28618 msgid ""
28619 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28620 "possible values are described in C<guestfs_part_init>."
28621 msgstr ""
28622
28623 #. type: =head2
28624 #: ../src/guestfs-actions.pod:5470
28625 msgid "guestfs_part_get_bootable"
28626 msgstr ""
28627
28628 #. type: verbatim
28629 #: ../src/guestfs-actions.pod:5472
28630 #, no-wrap
28631 msgid ""
28632 " int\n"
28633 " guestfs_part_get_bootable (guestfs_h *g,\n"
28634 "                            const char *device,\n"
28635 "                            int partnum);\n"
28636 "\n"
28637 msgstr ""
28638
28639 #. type: textblock
28640 #: ../src/guestfs-actions.pod:5480
28641 msgid "See also C<guestfs_part_set_bootable>."
28642 msgstr ""
28643
28644 #. type: =head2
28645 #: ../src/guestfs-actions.pod:5486
28646 msgid "guestfs_part_get_mbr_id"
28647 msgstr ""
28648
28649 #. type: verbatim
28650 #: ../src/guestfs-actions.pod:5488
28651 #, no-wrap
28652 msgid ""
28653 " int\n"
28654 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28655 "                          const char *device,\n"
28656 "                          int partnum);\n"
28657 "\n"
28658 msgstr ""
28659
28660 #. type: textblock
28661 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
28662 msgid ""
28663 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28664 "undefined results for other partition table types (see "
28665 "C<guestfs_part_get_parttype>)."
28666 msgstr ""
28667
28668 #. type: =head2
28669 #: ../src/guestfs-actions.pod:5504
28670 msgid "guestfs_part_get_parttype"
28671 msgstr ""
28672
28673 #. type: verbatim
28674 #: ../src/guestfs-actions.pod:5506
28675 #, no-wrap
28676 msgid ""
28677 " char *\n"
28678 " guestfs_part_get_parttype (guestfs_h *g,\n"
28679 "                            const char *device);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../src/guestfs-actions.pod:5513
28685 msgid ""
28686 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28687 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28688 "possible, although unusual.  See C<guestfs_part_init> for a full list."
28689 msgstr ""
28690
28691 #. type: =head2
28692 #: ../src/guestfs-actions.pod:5523
28693 msgid "guestfs_part_init"
28694 msgstr ""
28695
28696 #. type: verbatim
28697 #: ../src/guestfs-actions.pod:5525
28698 #, no-wrap
28699 msgid ""
28700 " int\n"
28701 " guestfs_part_init (guestfs_h *g,\n"
28702 "                    const char *device,\n"
28703 "                    const char *parttype);\n"
28704 "\n"
28705 msgstr ""
28706
28707 #. type: textblock
28708 #: ../src/guestfs-actions.pod:5534
28709 msgid ""
28710 "Initially there are no partitions.  Following this, you should call "
28711 "C<guestfs_part_add> for each partition required."
28712 msgstr ""
28713
28714 #. type: =head2
28715 #: ../src/guestfs-actions.pod:5607
28716 msgid "guestfs_part_list"
28717 msgstr ""
28718
28719 #. type: verbatim
28720 #: ../src/guestfs-actions.pod:5609
28721 #, no-wrap
28722 msgid ""
28723 " struct guestfs_partition_list *\n"
28724 " guestfs_part_list (guestfs_h *g,\n"
28725 "                    const char *device);\n"
28726 "\n"
28727 msgstr ""
28728
28729 #. type: textblock
28730 #: ../src/guestfs-actions.pod:5626
28731 msgid ""
28732 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28733 "the device's sector size, see C<guestfs_blockdev_getss>."
28734 msgstr ""
28735
28736 #. type: textblock
28737 #: ../src/guestfs-actions.pod:5639
28738 msgid ""
28739 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
28740 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
28741 "use>."
28742 msgstr ""
28743
28744 #. type: =head2
28745 #: ../src/guestfs-actions.pod:5645
28746 msgid "guestfs_part_set_bootable"
28747 msgstr ""
28748
28749 #. type: verbatim
28750 #: ../src/guestfs-actions.pod:5647
28751 #, no-wrap
28752 msgid ""
28753 " int\n"
28754 " guestfs_part_set_bootable (guestfs_h *g,\n"
28755 "                            const char *device,\n"
28756 "                            int partnum,\n"
28757 "                            int bootable);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: =head2
28762 #: ../src/guestfs-actions.pod:5664
28763 msgid "guestfs_part_set_mbr_id"
28764 msgstr ""
28765
28766 #. type: verbatim
28767 #: ../src/guestfs-actions.pod:5666
28768 #, no-wrap
28769 msgid ""
28770 " int\n"
28771 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
28772 "                          const char *device,\n"
28773 "                          int partnum,\n"
28774 "                          int idbyte);\n"
28775 "\n"
28776 msgstr ""
28777
28778 #. type: =head2
28779 #: ../src/guestfs-actions.pod:5686
28780 msgid "guestfs_part_set_name"
28781 msgstr ""
28782
28783 #. type: verbatim
28784 #: ../src/guestfs-actions.pod:5688
28785 #, no-wrap
28786 msgid ""
28787 " int\n"
28788 " guestfs_part_set_name (guestfs_h *g,\n"
28789 "                        const char *device,\n"
28790 "                        int partnum,\n"
28791 "                        const char *name);\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: =head2
28796 #: ../src/guestfs-actions.pod:5704
28797 msgid "guestfs_part_to_dev"
28798 msgstr ""
28799
28800 #. type: verbatim
28801 #: ../src/guestfs-actions.pod:5706
28802 #, no-wrap
28803 msgid ""
28804 " char *\n"
28805 " guestfs_part_to_dev (guestfs_h *g,\n"
28806 "                      const char *partition);\n"
28807 "\n"
28808 msgstr ""
28809
28810 #. type: textblock
28811 #: ../src/guestfs-actions.pod:5714
28812 msgid ""
28813 "The named partition must exist, for example as a string returned from "
28814 "C<guestfs_list_partitions>."
28815 msgstr ""
28816
28817 #. type: =head2
28818 #: ../src/guestfs-actions.pod:5722
28819 msgid "guestfs_ping_daemon"
28820 msgstr ""
28821
28822 #. type: verbatim
28823 #: ../src/guestfs-actions.pod:5724
28824 #, no-wrap
28825 msgid ""
28826 " int\n"
28827 " guestfs_ping_daemon (guestfs_h *g);\n"
28828 "\n"
28829 msgstr ""
28830
28831 #. type: =head2
28832 #: ../src/guestfs-actions.pod:5736
28833 msgid "guestfs_pread"
28834 msgstr ""
28835
28836 #. type: verbatim
28837 #: ../src/guestfs-actions.pod:5738
28838 #, no-wrap
28839 msgid ""
28840 " char *\n"
28841 " guestfs_pread (guestfs_h *g,\n"
28842 "                const char *path,\n"
28843 "                int count,\n"
28844 "                int64_t offset,\n"
28845 "                size_t *size_r);\n"
28846 "\n"
28847 msgstr ""
28848
28849 #. type: textblock
28850 #: ../src/guestfs-actions.pod:5751
28851 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
28852 msgstr ""
28853
28854 #. type: =head2
28855 #: ../src/guestfs-actions.pod:5762
28856 msgid "guestfs_pread_device"
28857 msgstr ""
28858
28859 #. type: verbatim
28860 #: ../src/guestfs-actions.pod:5764
28861 #, no-wrap
28862 msgid ""
28863 " char *\n"
28864 " guestfs_pread_device (guestfs_h *g,\n"
28865 "                       const char *device,\n"
28866 "                       int count,\n"
28867 "                       int64_t offset,\n"
28868 "                       size_t *size_r);\n"
28869 "\n"
28870 msgstr ""
28871
28872 #. type: textblock
28873 #: ../src/guestfs-actions.pod:5777
28874 msgid "See also C<guestfs_pread>."
28875 msgstr ""
28876
28877 #. type: textblock
28878 #: ../src/guestfs-actions.pod:5786
28879 msgid "(Added in 1.5.21)"
28880 msgstr ""
28881
28882 #. type: =head2
28883 #: ../src/guestfs-actions.pod:5788
28884 msgid "guestfs_pvcreate"
28885 msgstr ""
28886
28887 #. type: verbatim
28888 #: ../src/guestfs-actions.pod:5790
28889 #, no-wrap
28890 msgid ""
28891 " int\n"
28892 " guestfs_pvcreate (guestfs_h *g,\n"
28893 "                   const char *device);\n"
28894 "\n"
28895 msgstr ""
28896
28897 #. type: =head2
28898 #: ../src/guestfs-actions.pod:5802
28899 msgid "guestfs_pvremove"
28900 msgstr ""
28901
28902 #. type: verbatim
28903 #: ../src/guestfs-actions.pod:5804
28904 #, no-wrap
28905 msgid ""
28906 " int\n"
28907 " guestfs_pvremove (guestfs_h *g,\n"
28908 "                   const char *device);\n"
28909 "\n"
28910 msgstr ""
28911
28912 #. type: =head2
28913 #: ../src/guestfs-actions.pod:5819
28914 msgid "guestfs_pvresize"
28915 msgstr ""
28916
28917 #. type: verbatim
28918 #: ../src/guestfs-actions.pod:5821
28919 #, no-wrap
28920 msgid ""
28921 " int\n"
28922 " guestfs_pvresize (guestfs_h *g,\n"
28923 "                   const char *device);\n"
28924 "\n"
28925 msgstr ""
28926
28927 #. type: =head2
28928 #: ../src/guestfs-actions.pod:5832
28929 msgid "guestfs_pvresize_size"
28930 msgstr ""
28931
28932 #. type: verbatim
28933 #: ../src/guestfs-actions.pod:5834
28934 #, no-wrap
28935 msgid ""
28936 " int\n"
28937 " guestfs_pvresize_size (guestfs_h *g,\n"
28938 "                        const char *device,\n"
28939 "                        int64_t size);\n"
28940 "\n"
28941 msgstr ""
28942
28943 #. type: textblock
28944 #: ../src/guestfs-actions.pod:5839
28945 msgid ""
28946 "This command is the same as C<guestfs_pvresize> except that it allows you to "
28947 "specify the new size (in bytes) explicitly."
28948 msgstr ""
28949
28950 #. type: =head2
28951 #: ../src/guestfs-actions.pod:5846
28952 msgid "guestfs_pvs"
28953 msgstr ""
28954
28955 #. type: verbatim
28956 #: ../src/guestfs-actions.pod:5848
28957 #, no-wrap
28958 msgid ""
28959 " char **\n"
28960 " guestfs_pvs (guestfs_h *g);\n"
28961 "\n"
28962 msgstr ""
28963
28964 #. type: textblock
28965 #: ../src/guestfs-actions.pod:5857
28966 msgid "See also C<guestfs_pvs_full>."
28967 msgstr ""
28968
28969 #. type: =head2
28970 #: ../src/guestfs-actions.pod:5865
28971 msgid "guestfs_pvs_full"
28972 msgstr ""
28973
28974 #. type: verbatim
28975 #: ../src/guestfs-actions.pod:5867
28976 #, no-wrap
28977 msgid ""
28978 " struct guestfs_lvm_pv_list *\n"
28979 " guestfs_pvs_full (guestfs_h *g);\n"
28980 "\n"
28981 msgstr ""
28982
28983 #. type: textblock
28984 #: ../src/guestfs-actions.pod:5873
28985 msgid ""
28986 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
28987 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:5879
28992 msgid "guestfs_pvuuid"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:5881
28997 #, no-wrap
28998 msgid ""
28999 " char *\n"
29000 " guestfs_pvuuid (guestfs_h *g,\n"
29001 "                 const char *device);\n"
29002 "\n"
29003 msgstr ""
29004
29005 #. type: =head2
29006 #: ../src/guestfs-actions.pod:5892
29007 msgid "guestfs_pwrite"
29008 msgstr ""
29009
29010 #. type: verbatim
29011 #: ../src/guestfs-actions.pod:5894
29012 #, no-wrap
29013 msgid ""
29014 " int\n"
29015 " guestfs_pwrite (guestfs_h *g,\n"
29016 "                 const char *path,\n"
29017 "                 const char *content,\n"
29018 "                 size_t content_size,\n"
29019 "                 int64_t offset);\n"
29020 "\n"
29021 msgstr ""
29022
29023 #. type: textblock
29024 #: ../src/guestfs-actions.pod:5910
29025 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29026 msgstr ""
29027
29028 #. type: =head2
29029 #: ../src/guestfs-actions.pod:5919
29030 msgid "guestfs_pwrite_device"
29031 msgstr ""
29032
29033 #. type: verbatim
29034 #: ../src/guestfs-actions.pod:5921
29035 #, no-wrap
29036 msgid ""
29037 " int\n"
29038 " guestfs_pwrite_device (guestfs_h *g,\n"
29039 "                        const char *device,\n"
29040 "                        const char *content,\n"
29041 "                        size_t content_size,\n"
29042 "                        int64_t offset);\n"
29043 "\n"
29044 msgstr ""
29045
29046 #. type: textblock
29047 #: ../src/guestfs-actions.pod:5936
29048 msgid "See also C<guestfs_pwrite>."
29049 msgstr ""
29050
29051 #. type: textblock
29052 #: ../src/guestfs-actions.pod:5943
29053 msgid "(Added in 1.5.20)"
29054 msgstr ""
29055
29056 #. type: =head2
29057 #: ../src/guestfs-actions.pod:5945
29058 msgid "guestfs_read_file"
29059 msgstr ""
29060
29061 #. type: verbatim
29062 #: ../src/guestfs-actions.pod:5947
29063 #, no-wrap
29064 msgid ""
29065 " char *\n"
29066 " guestfs_read_file (guestfs_h *g,\n"
29067 "                    const char *path,\n"
29068 "                    size_t *size_r);\n"
29069 "\n"
29070 msgstr ""
29071
29072 #. type: textblock
29073 #: ../src/guestfs-actions.pod:5955
29074 msgid ""
29075 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29076 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29077 "function is limited in the total size of file that can be handled."
29078 msgstr ""
29079
29080 #. type: textblock
29081 #: ../src/guestfs-actions.pod:5967
29082 msgid "(Added in 1.0.63)"
29083 msgstr ""
29084
29085 #. type: =head2
29086 #: ../src/guestfs-actions.pod:5969
29087 msgid "guestfs_read_lines"
29088 msgstr ""
29089
29090 #. type: verbatim
29091 #: ../src/guestfs-actions.pod:5971
29092 #, no-wrap
29093 msgid ""
29094 " char **\n"
29095 " guestfs_read_lines (guestfs_h *g,\n"
29096 "                     const char *path);\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: textblock
29101 #: ../src/guestfs-actions.pod:5980
29102 msgid ""
29103 "Note that this function cannot correctly handle binary files (specifically, "
29104 "files containing C<\\0> character which is treated as end of line).  For "
29105 "those you need to use the C<guestfs_read_file> function which has a more "
29106 "complex interface."
29107 msgstr ""
29108
29109 #. type: =head2
29110 #: ../src/guestfs-actions.pod:5991
29111 msgid "guestfs_readdir"
29112 msgstr ""
29113
29114 #. type: verbatim
29115 #: ../src/guestfs-actions.pod:5993
29116 #, no-wrap
29117 msgid ""
29118 " struct guestfs_dirent_list *\n"
29119 " guestfs_readdir (guestfs_h *g,\n"
29120 "                  const char *dir);\n"
29121 "\n"
29122 msgstr ""
29123
29124 #. type: textblock
29125 #: ../src/guestfs-actions.pod:6047
29126 msgid ""
29127 "This function is primarily intended for use by programs.  To get a simple "
29128 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29129 "consumption, use C<guestfs_ll>."
29130 msgstr ""
29131
29132 #. type: textblock
29133 #: ../src/guestfs-actions.pod:6051
29134 msgid ""
29135 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29136 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29137 msgstr ""
29138
29139 #. type: =head2
29140 #: ../src/guestfs-actions.pod:6057
29141 msgid "guestfs_readlink"
29142 msgstr ""
29143
29144 #. type: verbatim
29145 #: ../src/guestfs-actions.pod:6059
29146 #, no-wrap
29147 msgid ""
29148 " char *\n"
29149 " guestfs_readlink (guestfs_h *g,\n"
29150 "                   const char *path);\n"
29151 "\n"
29152 msgstr ""
29153
29154 #. type: =head2
29155 #: ../src/guestfs-actions.pod:6070
29156 msgid "guestfs_readlinklist"
29157 msgstr ""
29158
29159 #. type: verbatim
29160 #: ../src/guestfs-actions.pod:6072
29161 #, no-wrap
29162 msgid ""
29163 " char **\n"
29164 " guestfs_readlinklist (guestfs_h *g,\n"
29165 "                       const char *path,\n"
29166 "                       char *const *names);\n"
29167 "\n"
29168 msgstr ""
29169
29170 #. type: =head2
29171 #: ../src/guestfs-actions.pod:6105
29172 msgid "guestfs_realpath"
29173 msgstr ""
29174
29175 #. type: verbatim
29176 #: ../src/guestfs-actions.pod:6107
29177 #, no-wrap
29178 msgid ""
29179 " char *\n"
29180 " guestfs_realpath (guestfs_h *g,\n"
29181 "                   const char *path);\n"
29182 "\n"
29183 msgstr ""
29184
29185 #. type: =head2
29186 #: ../src/guestfs-actions.pod:6119
29187 msgid "guestfs_removexattr"
29188 msgstr ""
29189
29190 #. type: verbatim
29191 #: ../src/guestfs-actions.pod:6121
29192 #, no-wrap
29193 msgid ""
29194 " int\n"
29195 " guestfs_removexattr (guestfs_h *g,\n"
29196 "                      const char *xattr,\n"
29197 "                      const char *path);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: textblock
29202 #: ../src/guestfs-actions.pod:6129
29203 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29204 msgstr ""
29205
29206 #. type: =head2
29207 #: ../src/guestfs-actions.pod:6135
29208 msgid "guestfs_resize2fs"
29209 msgstr ""
29210
29211 #. type: verbatim
29212 #: ../src/guestfs-actions.pod:6137
29213 #, no-wrap
29214 msgid ""
29215 " int\n"
29216 " guestfs_resize2fs (guestfs_h *g,\n"
29217 "                    const char *device);\n"
29218 "\n"
29219 msgstr ""
29220
29221 #. type: textblock
29222 #: ../src/guestfs-actions.pod:6144
29223 msgid ""
29224 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29225 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29226 "sometimes gives an error about this and sometimes not.  In any case, it is "
29227 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29228 msgstr ""
29229
29230 #. type: =head2
29231 #: ../src/guestfs-actions.pod:6154
29232 msgid "guestfs_resize2fs_M"
29233 msgstr ""
29234
29235 #. type: verbatim
29236 #: ../src/guestfs-actions.pod:6156
29237 #, no-wrap
29238 msgid ""
29239 " int\n"
29240 " guestfs_resize2fs_M (guestfs_h *g,\n"
29241 "                      const char *device);\n"
29242 "\n"
29243 msgstr ""
29244
29245 #. type: textblock
29246 #: ../src/guestfs-actions.pod:6160
29247 msgid ""
29248 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29249 "resized to its minimum size.  This works like the I<-M> option to the "
29250 "C<resize2fs> command."
29251 msgstr ""
29252
29253 #. type: textblock
29254 #: ../src/guestfs-actions.pod:6164
29255 msgid ""
29256 "To get the resulting size of the filesystem you should call "
29257 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29258 "These two numbers, multiplied together, give the resulting size of the "
29259 "minimal filesystem in bytes."
29260 msgstr ""
29261
29262 #. type: =head2
29263 #: ../src/guestfs-actions.pod:6173
29264 msgid "guestfs_resize2fs_size"
29265 msgstr ""
29266
29267 #. type: verbatim
29268 #: ../src/guestfs-actions.pod:6175
29269 #, no-wrap
29270 msgid ""
29271 " int\n"
29272 " guestfs_resize2fs_size (guestfs_h *g,\n"
29273 "                         const char *device,\n"
29274 "                         int64_t size);\n"
29275 "\n"
29276 msgstr ""
29277
29278 #. type: textblock
29279 #: ../src/guestfs-actions.pod:6180
29280 msgid ""
29281 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29282 "to specify the new size (in bytes) explicitly."
29283 msgstr ""
29284
29285 #. type: =head2
29286 #: ../src/guestfs-actions.pod:6187
29287 msgid "guestfs_rm"
29288 msgstr ""
29289
29290 #. type: verbatim
29291 #: ../src/guestfs-actions.pod:6189
29292 #, no-wrap
29293 msgid ""
29294 " int\n"
29295 " guestfs_rm (guestfs_h *g,\n"
29296 "             const char *path);\n"
29297 "\n"
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:6199
29302 msgid "guestfs_rm_rf"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:6201
29307 #, no-wrap
29308 msgid ""
29309 " int\n"
29310 " guestfs_rm_rf (guestfs_h *g,\n"
29311 "                const char *path);\n"
29312 "\n"
29313 msgstr ""
29314
29315 #. type: =head2
29316 #: ../src/guestfs-actions.pod:6213
29317 msgid "guestfs_rmdir"
29318 msgstr ""
29319
29320 #. type: verbatim
29321 #: ../src/guestfs-actions.pod:6215
29322 #, no-wrap
29323 msgid ""
29324 " int\n"
29325 " guestfs_rmdir (guestfs_h *g,\n"
29326 "                const char *path);\n"
29327 "\n"
29328 msgstr ""
29329
29330 #. type: =head2
29331 #: ../src/guestfs-actions.pod:6225
29332 msgid "guestfs_rmmountpoint"
29333 msgstr ""
29334
29335 #. type: verbatim
29336 #: ../src/guestfs-actions.pod:6227
29337 #, no-wrap
29338 msgid ""
29339 " int\n"
29340 " guestfs_rmmountpoint (guestfs_h *g,\n"
29341 "                       const char *exemptpath);\n"
29342 "\n"
29343 msgstr ""
29344
29345 #. type: textblock
29346 #: ../src/guestfs-actions.pod:6231
29347 msgid ""
29348 "This calls removes a mountpoint that was previously created with "
29349 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29350 msgstr ""
29351
29352 #. type: =head2
29353 #: ../src/guestfs-actions.pod:6239
29354 msgid "guestfs_scrub_device"
29355 msgstr ""
29356
29357 #. type: verbatim
29358 #: ../src/guestfs-actions.pod:6241
29359 #, no-wrap
29360 msgid ""
29361 " int\n"
29362 " guestfs_scrub_device (guestfs_h *g,\n"
29363 "                       const char *device);\n"
29364 "\n"
29365 msgstr ""
29366
29367 #. type: textblock
29368 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
29369 #: ../src/guestfs-actions.pod:6293
29370 msgid "(Added in 1.0.52)"
29371 msgstr ""
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:6258
29375 msgid "guestfs_scrub_file"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:6260
29380 #, no-wrap
29381 msgid ""
29382 " int\n"
29383 " guestfs_scrub_file (guestfs_h *g,\n"
29384 "                     const char *file);\n"
29385 "\n"
29386 msgstr ""
29387
29388 #. type: =head2
29389 #: ../src/guestfs-actions.pod:6276
29390 msgid "guestfs_scrub_freespace"
29391 msgstr ""
29392
29393 #. type: verbatim
29394 #: ../src/guestfs-actions.pod:6278
29395 #, no-wrap
29396 msgid ""
29397 " int\n"
29398 " guestfs_scrub_freespace (guestfs_h *g,\n"
29399 "                          const char *dir);\n"
29400 "\n"
29401 msgstr ""
29402
29403 #. type: textblock
29404 #: ../src/guestfs-actions.pod:6282
29405 msgid ""
29406 "This command creates the directory C<dir> and then fills it with files until "
29407 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29408 "and deletes them.  The intention is to scrub any free space on the partition "
29409 "containing C<dir>."
29410 msgstr ""
29411
29412 #. type: =head2
29413 #: ../src/guestfs-actions.pod:6295
29414 msgid "guestfs_set_append"
29415 msgstr ""
29416
29417 #. type: verbatim
29418 #: ../src/guestfs-actions.pod:6297
29419 #, no-wrap
29420 msgid ""
29421 " int\n"
29422 " guestfs_set_append (guestfs_h *g,\n"
29423 "                     const char *append);\n"
29424 "\n"
29425 msgstr ""
29426
29427 #. type: =head2
29428 #: ../src/guestfs-actions.pod:6314
29429 msgid "guestfs_set_attach_method"
29430 msgstr ""
29431
29432 #. type: verbatim
29433 #: ../src/guestfs-actions.pod:6316
29434 #, no-wrap
29435 msgid ""
29436 " int\n"
29437 " guestfs_set_attach_method (guestfs_h *g,\n"
29438 "                            const char *attachmethod);\n"
29439 "\n"
29440 msgstr ""
29441
29442 #. type: =head2
29443 #: ../src/guestfs-actions.pod:6344
29444 msgid "guestfs_set_autosync"
29445 msgstr ""
29446
29447 #. type: verbatim
29448 #: ../src/guestfs-actions.pod:6346
29449 #, no-wrap
29450 msgid ""
29451 " int\n"
29452 " guestfs_set_autosync (guestfs_h *g,\n"
29453 "                       int autosync);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: =head2
29458 #: ../src/guestfs-actions.pod:6362
29459 msgid "guestfs_set_direct"
29460 msgstr ""
29461
29462 #. type: verbatim
29463 #: ../src/guestfs-actions.pod:6364
29464 #, no-wrap
29465 msgid ""
29466 " int\n"
29467 " guestfs_set_direct (guestfs_h *g,\n"
29468 "                     int direct);\n"
29469 "\n"
29470 msgstr ""
29471
29472 #. type: textblock
29473 #: ../src/guestfs-actions.pod:6372
29474 msgid ""
29475 "One consequence of this is that log messages aren't caught by the library "
29476 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29477 "stdout."
29478 msgstr ""
29479
29480 #. type: =head2
29481 #: ../src/guestfs-actions.pod:6385
29482 msgid "guestfs_set_e2label"
29483 msgstr ""
29484
29485 #. type: verbatim
29486 #: ../src/guestfs-actions.pod:6387
29487 #, no-wrap
29488 msgid ""
29489 " int\n"
29490 " guestfs_set_e2label (guestfs_h *g,\n"
29491 "                      const char *device,\n"
29492 "                      const char *label);\n"
29493 "\n"
29494 msgstr ""
29495
29496 #. type: textblock
29497 #: ../src/guestfs-actions.pod:6396
29498 msgid ""
29499 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29500 "the existing label on a filesystem."
29501 msgstr ""
29502
29503 #. type: =head2
29504 #: ../src/guestfs-actions.pod:6403
29505 msgid "guestfs_set_e2uuid"
29506 msgstr ""
29507
29508 #. type: verbatim
29509 #: ../src/guestfs-actions.pod:6405
29510 #, no-wrap
29511 msgid ""
29512 " int\n"
29513 " guestfs_set_e2uuid (guestfs_h *g,\n"
29514 "                     const char *device,\n"
29515 "                     const char *uuid);\n"
29516 "\n"
29517 msgstr ""
29518
29519 #. type: textblock
29520 #: ../src/guestfs-actions.pod:6415
29521 msgid ""
29522 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29523 "the existing UUID of a filesystem."
29524 msgstr ""
29525
29526 #. type: =head2
29527 #: ../src/guestfs-actions.pod:6422
29528 msgid "guestfs_set_memsize"
29529 msgstr ""
29530
29531 #. type: verbatim
29532 #: ../src/guestfs-actions.pod:6424
29533 #, no-wrap
29534 msgid ""
29535 " int\n"
29536 " guestfs_set_memsize (guestfs_h *g,\n"
29537 "                      int memsize);\n"
29538 "\n"
29539 msgstr ""
29540
29541 #. type: textblock
29542 #: ../src/guestfs-actions.pod:6428
29543 msgid ""
29544 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29545 "This only has any effect if called before C<guestfs_launch>."
29546 msgstr ""
29547
29548 #. type: =head2
29549 #: ../src/guestfs-actions.pod:6443
29550 msgid "guestfs_set_network"
29551 msgstr ""
29552
29553 #. type: verbatim
29554 #: ../src/guestfs-actions.pod:6445
29555 #, no-wrap
29556 msgid ""
29557 " int\n"
29558 " guestfs_set_network (guestfs_h *g,\n"
29559 "                      int network);\n"
29560 "\n"
29561 msgstr ""
29562
29563 #. type: textblock
29564 #: ../src/guestfs-actions.pod:6455
29565 msgid ""
29566 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29567 "effect."
29568 msgstr ""
29569
29570 #. type: =head2
29571 #: ../src/guestfs-actions.pod:6462
29572 msgid "guestfs_set_path"
29573 msgstr ""
29574
29575 #. type: verbatim
29576 #: ../src/guestfs-actions.pod:6464
29577 #, no-wrap
29578 msgid ""
29579 " int\n"
29580 " guestfs_set_path (guestfs_h *g,\n"
29581 "                   const char *searchpath);\n"
29582 "\n"
29583 msgstr ""
29584
29585 #. type: =head2
29586 #: ../src/guestfs-actions.pod:6479
29587 msgid "guestfs_set_pgroup"
29588 msgstr ""
29589
29590 #. type: verbatim
29591 #: ../src/guestfs-actions.pod:6481
29592 #, no-wrap
29593 msgid ""
29594 " int\n"
29595 " guestfs_set_pgroup (guestfs_h *g,\n"
29596 "                     int pgroup);\n"
29597 "\n"
29598 msgstr ""
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:6498
29602 msgid "guestfs_set_qemu"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:6500
29607 #, no-wrap
29608 msgid ""
29609 " int\n"
29610 " guestfs_set_qemu (guestfs_h *g,\n"
29611 "                   const char *qemu);\n"
29612 "\n"
29613 msgstr ""
29614
29615 #. type: =head2
29616 #: ../src/guestfs-actions.pod:6526
29617 msgid "guestfs_set_recovery_proc"
29618 msgstr ""
29619
29620 #. type: verbatim
29621 #: ../src/guestfs-actions.pod:6528
29622 #, no-wrap
29623 msgid ""
29624 " int\n"
29625 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29626 "                            int recoveryproc);\n"
29627 "\n"
29628 msgstr ""
29629
29630 #. type: textblock
29631 #: ../src/guestfs-actions.pod:6532
29632 msgid ""
29633 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29634 "not create a recovery process.  The purpose of the recovery process is to "
29635 "stop runaway qemu processes in the case where the main program aborts "
29636 "abruptly."
29637 msgstr ""
29638
29639 #. type: textblock
29640 #: ../src/guestfs-actions.pod:6537
29641 msgid ""
29642 "This only has any effect if called before C<guestfs_launch>, and the default "
29643 "is true."
29644 msgstr ""
29645
29646 #. type: =head2
29647 #: ../src/guestfs-actions.pod:6550
29648 msgid "guestfs_set_selinux"
29649 msgstr ""
29650
29651 #. type: verbatim
29652 #: ../src/guestfs-actions.pod:6552
29653 #, no-wrap
29654 msgid ""
29655 " int\n"
29656 " guestfs_set_selinux (guestfs_h *g,\n"
29657 "                      int selinux);\n"
29658 "\n"
29659 msgstr ""
29660
29661 #. type: =head2
29662 #: ../src/guestfs-actions.pod:6569
29663 msgid "guestfs_set_smp"
29664 msgstr ""
29665
29666 #. type: verbatim
29667 #: ../src/guestfs-actions.pod:6571
29668 #, no-wrap
29669 msgid ""
29670 " int\n"
29671 " guestfs_set_smp (guestfs_h *g,\n"
29672 "                  int smp);\n"
29673 "\n"
29674 msgstr ""
29675
29676 #. type: textblock
29677 #: ../src/guestfs-actions.pod:6579
29678 msgid "This function must be called before C<guestfs_launch>."
29679 msgstr ""
29680
29681 #. type: =head2
29682 #: ../src/guestfs-actions.pod:6585
29683 msgid "guestfs_set_trace"
29684 msgstr ""
29685
29686 #. type: verbatim
29687 #: ../src/guestfs-actions.pod:6587
29688 #, no-wrap
29689 msgid ""
29690 " int\n"
29691 " guestfs_set_trace (guestfs_h *g,\n"
29692 "                    int trace);\n"
29693 "\n"
29694 msgstr ""
29695
29696 #. type: textblock
29697 #: ../src/guestfs-actions.pod:6601
29698 msgid ""
29699 "Trace messages are normally sent to C<stderr>, unless you register a "
29700 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29701 msgstr ""
29702
29703 #. type: =head2
29704 #: ../src/guestfs-actions.pod:6609
29705 msgid "guestfs_set_verbose"
29706 msgstr ""
29707
29708 #. type: verbatim
29709 #: ../src/guestfs-actions.pod:6611
29710 #, no-wrap
29711 msgid ""
29712 " int\n"
29713 " guestfs_set_verbose (guestfs_h *g,\n"
29714 "                      int verbose);\n"
29715 "\n"
29716 msgstr ""
29717
29718 #. type: textblock
29719 #: ../src/guestfs-actions.pod:6620
29720 msgid ""
29721 "Verbose messages are normally sent to C<stderr>, unless you register a "
29722 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29723 msgstr ""
29724
29725 #. type: =head2
29726 #: ../src/guestfs-actions.pod:6628
29727 msgid "guestfs_setcon"
29728 msgstr ""
29729
29730 #. type: verbatim
29731 #: ../src/guestfs-actions.pod:6630
29732 #, no-wrap
29733 msgid ""
29734 " int\n"
29735 " guestfs_setcon (guestfs_h *g,\n"
29736 "                 const char *context);\n"
29737 "\n"
29738 msgstr ""
29739
29740 #. type: =head2
29741 #: ../src/guestfs-actions.pod:6643
29742 msgid "guestfs_setxattr"
29743 msgstr ""
29744
29745 #. type: verbatim
29746 #: ../src/guestfs-actions.pod:6645
29747 #, no-wrap
29748 msgid ""
29749 " int\n"
29750 " guestfs_setxattr (guestfs_h *g,\n"
29751 "                   const char *xattr,\n"
29752 "                   const char *val,\n"
29753 "                   int vallen,\n"
29754 "                   const char *path);\n"
29755 "\n"
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../src/guestfs-actions.pod:6656
29760 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
29761 msgstr ""
29762
29763 #. type: =head2
29764 #: ../src/guestfs-actions.pod:6662
29765 msgid "guestfs_sfdisk"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:6664
29770 #, no-wrap
29771 msgid ""
29772 " int\n"
29773 " guestfs_sfdisk (guestfs_h *g,\n"
29774 "                 const char *device,\n"
29775 "                 int cyls,\n"
29776 "                 int heads,\n"
29777 "                 int sectors,\n"
29778 "                 char *const *lines);\n"
29779 "\n"
29780 msgstr ""
29781
29782 #. type: textblock
29783 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
29784 #: ../src/guestfs-actions.pod:6750
29785 msgid ""
29786 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
29787 "call instead."
29788 msgstr ""
29789
29790 #. type: textblock
29791 #: ../src/guestfs-actions.pod:6699
29792 msgid ""
29793 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
29794 msgstr ""
29795
29796 #. type: =head2
29797 #: ../src/guestfs-actions.pod:6709
29798 msgid "guestfs_sfdiskM"
29799 msgstr ""
29800
29801 #. type: verbatim
29802 #: ../src/guestfs-actions.pod:6711
29803 #, no-wrap
29804 msgid ""
29805 " int\n"
29806 " guestfs_sfdiskM (guestfs_h *g,\n"
29807 "                  const char *device,\n"
29808 "                  char *const *lines);\n"
29809 "\n"
29810 msgstr ""
29811
29812 #. type: textblock
29813 #: ../src/guestfs-actions.pod:6723
29814 msgid ""
29815 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
29816 "partition sizes are specified in megabytes only (rounded to the nearest "
29817 "cylinder) and you don't need to specify the cyls, heads and sectors "
29818 "parameters which were rarely if ever used anyway."
29819 msgstr ""
29820
29821 #. type: textblock
29822 #: ../src/guestfs-actions.pod:6729
29823 msgid ""
29824 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
29825 "C<guestfs_part_disk>"
29826 msgstr ""
29827
29828 #. type: =head2
29829 #: ../src/guestfs-actions.pod:6739
29830 msgid "guestfs_sfdisk_N"
29831 msgstr ""
29832
29833 #. type: verbatim
29834 #: ../src/guestfs-actions.pod:6741
29835 #, no-wrap
29836 msgid ""
29837 " int\n"
29838 " guestfs_sfdisk_N (guestfs_h *g,\n"
29839 "                   const char *device,\n"
29840 "                   int partnum,\n"
29841 "                   int cyls,\n"
29842 "                   int heads,\n"
29843 "                   int sectors,\n"
29844 "                   const char *line);\n"
29845 "\n"
29846 msgstr ""
29847
29848 #. type: textblock
29849 #: ../src/guestfs-actions.pod:6760
29850 msgid ""
29851 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
29852 "for the cyls/heads/sectors parameters."
29853 msgstr ""
29854
29855 #. type: textblock
29856 #: ../src/guestfs-actions.pod:6763
29857 msgid "See also: C<guestfs_part_add>"
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:6772
29862 msgid "guestfs_sfdisk_disk_geometry"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:6774
29867 #, no-wrap
29868 msgid ""
29869 " char *\n"
29870 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
29871 "                               const char *device);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: textblock
29876 #: ../src/guestfs-actions.pod:6778
29877 msgid ""
29878 "This displays the disk geometry of C<device> read from the partition table.  "
29879 "Especially in the case where the underlying block device has been resized, "
29880 "this can be different from the kernel's idea of the geometry (see "
29881 "C<guestfs_sfdisk_kernel_geometry>)."
29882 msgstr ""
29883
29884 #. type: =head2
29885 #: ../src/guestfs-actions.pod:6791
29886 msgid "guestfs_sfdisk_kernel_geometry"
29887 msgstr ""
29888
29889 #. type: verbatim
29890 #: ../src/guestfs-actions.pod:6793
29891 #, no-wrap
29892 msgid ""
29893 " char *\n"
29894 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
29895 "                                 const char *device);\n"
29896 "\n"
29897 msgstr ""
29898
29899 #. type: =head2
29900 #: ../src/guestfs-actions.pod:6807
29901 msgid "guestfs_sfdisk_l"
29902 msgstr ""
29903
29904 #. type: verbatim
29905 #: ../src/guestfs-actions.pod:6809
29906 #, no-wrap
29907 msgid ""
29908 " char *\n"
29909 " guestfs_sfdisk_l (guestfs_h *g,\n"
29910 "                   const char *device);\n"
29911 "\n"
29912 msgstr ""
29913
29914 #. type: textblock
29915 #: ../src/guestfs-actions.pod:6813
29916 msgid ""
29917 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
29918 "call instead."
29919 msgstr ""
29920
29921 #. type: textblock
29922 #: ../src/guestfs-actions.pod:6824
29923 msgid "See also: C<guestfs_part_list>"
29924 msgstr ""
29925
29926 #. type: =head2
29927 #: ../src/guestfs-actions.pod:6831
29928 msgid "guestfs_sh"
29929 msgstr ""
29930
29931 #. type: verbatim
29932 #: ../src/guestfs-actions.pod:6833
29933 #, no-wrap
29934 msgid ""
29935 " char *\n"
29936 " guestfs_sh (guestfs_h *g,\n"
29937 "             const char *command);\n"
29938 "\n"
29939 msgstr ""
29940
29941 #. type: textblock
29942 #: ../src/guestfs-actions.pod:6840
29943 msgid "This is like C<guestfs_command>, but passes the command to:"
29944 msgstr ""
29945
29946 #. type: textblock
29947 #: ../src/guestfs-actions.pod:6848
29948 msgid "All the provisos about C<guestfs_command> apply to this call."
29949 msgstr ""
29950
29951 #. type: =head2
29952 #: ../src/guestfs-actions.pod:6855
29953 msgid "guestfs_sh_lines"
29954 msgstr ""
29955
29956 #. type: verbatim
29957 #: ../src/guestfs-actions.pod:6857
29958 #, no-wrap
29959 msgid ""
29960 " char **\n"
29961 " guestfs_sh_lines (guestfs_h *g,\n"
29962 "                   const char *command);\n"
29963 "\n"
29964 msgstr ""
29965
29966 #. type: textblock
29967 #: ../src/guestfs-actions.pod:6861
29968 msgid ""
29969 "This is the same as C<guestfs_sh>, but splits the result into a list of "
29970 "lines."
29971 msgstr ""
29972
29973 #. type: textblock
29974 #: ../src/guestfs-actions.pod:6864
29975 msgid "See also: C<guestfs_command_lines>"
29976 msgstr ""
29977
29978 #. type: =head2
29979 #: ../src/guestfs-actions.pod:6872
29980 msgid "guestfs_sleep"
29981 msgstr ""
29982
29983 #. type: verbatim
29984 #: ../src/guestfs-actions.pod:6874
29985 #, no-wrap
29986 msgid ""
29987 " int\n"
29988 " guestfs_sleep (guestfs_h *g,\n"
29989 "                int secs);\n"
29990 "\n"
29991 msgstr ""
29992
29993 #. type: textblock
29994 #: ../src/guestfs-actions.pod:6882
29995 msgid "(Added in 1.0.41)"
29996 msgstr ""
29997
29998 #. type: =head2
29999 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
30000 msgid "guestfs_stat"
30001 msgstr ""
30002
30003 #. type: verbatim
30004 #: ../src/guestfs-actions.pod:6886
30005 #, no-wrap
30006 msgid ""
30007 " struct guestfs_stat *\n"
30008 " guestfs_stat (guestfs_h *g,\n"
30009 "               const char *path);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
30015 msgid "guestfs_statvfs"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:6902
30020 #, no-wrap
30021 msgid ""
30022 " struct guestfs_statvfs *\n"
30023 " guestfs_statvfs (guestfs_h *g,\n"
30024 "                  const char *path);\n"
30025 "\n"
30026 msgstr ""
30027
30028 #. type: textblock
30029 #: ../src/guestfs-actions.pod:6912
30030 msgid ""
30031 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30032 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30033 msgstr ""
30034
30035 #. type: =head2
30036 #: ../src/guestfs-actions.pod:6918
30037 msgid "guestfs_strings"
30038 msgstr ""
30039
30040 #. type: verbatim
30041 #: ../src/guestfs-actions.pod:6920
30042 #, no-wrap
30043 msgid ""
30044 " char **\n"
30045 " guestfs_strings (guestfs_h *g,\n"
30046 "                  const char *path);\n"
30047 "\n"
30048 msgstr ""
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:6936
30052 msgid "guestfs_strings_e"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:6938
30057 #, no-wrap
30058 msgid ""
30059 " char **\n"
30060 " guestfs_strings_e (guestfs_h *g,\n"
30061 "                    const char *encoding,\n"
30062 "                    const char *path);\n"
30063 "\n"
30064 msgstr ""
30065
30066 #. type: textblock
30067 #: ../src/guestfs-actions.pod:6943
30068 msgid ""
30069 "This is like the C<guestfs_strings> command, but allows you to specify the "
30070 "encoding of strings that are looked for in the source file C<path>."
30071 msgstr ""
30072
30073 #. type: textblock
30074 #: ../src/guestfs-actions.pod:6953
30075 msgid ""
30076 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30077 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:6991
30082 msgid "guestfs_swapoff_device"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:6993
30087 #, no-wrap
30088 msgid ""
30089 " int\n"
30090 " guestfs_swapoff_device (guestfs_h *g,\n"
30091 "                         const char *device);\n"
30092 "\n"
30093 msgstr ""
30094
30095 #. type: textblock
30096 #: ../src/guestfs-actions.pod:6997
30097 msgid ""
30098 "This command disables the libguestfs appliance swap device or partition "
30099 "named C<device>.  See C<guestfs_swapon_device>."
30100 msgstr ""
30101
30102 #. type: =head2
30103 #: ../src/guestfs-actions.pod:7005
30104 msgid "guestfs_swapoff_file"
30105 msgstr ""
30106
30107 #. type: verbatim
30108 #: ../src/guestfs-actions.pod:7007
30109 #, no-wrap
30110 msgid ""
30111 " int\n"
30112 " guestfs_swapoff_file (guestfs_h *g,\n"
30113 "                       const char *file);\n"
30114 "\n"
30115 msgstr ""
30116
30117 #. type: =head2
30118 #: ../src/guestfs-actions.pod:7017
30119 msgid "guestfs_swapoff_label"
30120 msgstr ""
30121
30122 #. type: verbatim
30123 #: ../src/guestfs-actions.pod:7019
30124 #, no-wrap
30125 msgid ""
30126 " int\n"
30127 " guestfs_swapoff_label (guestfs_h *g,\n"
30128 "                        const char *label);\n"
30129 "\n"
30130 msgstr ""
30131
30132 #. type: =head2
30133 #: ../src/guestfs-actions.pod:7030
30134 msgid "guestfs_swapoff_uuid"
30135 msgstr ""
30136
30137 #. type: verbatim
30138 #: ../src/guestfs-actions.pod:7032
30139 #, no-wrap
30140 msgid ""
30141 " int\n"
30142 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30143 "                       const char *uuid);\n"
30144 "\n"
30145 msgstr ""
30146
30147 #. type: =head2
30148 #: ../src/guestfs-actions.pod:7043
30149 msgid "guestfs_swapon_device"
30150 msgstr ""
30151
30152 #. type: verbatim
30153 #: ../src/guestfs-actions.pod:7045
30154 #, no-wrap
30155 msgid ""
30156 " int\n"
30157 " guestfs_swapon_device (guestfs_h *g,\n"
30158 "                        const char *device);\n"
30159 "\n"
30160 msgstr ""
30161
30162 #. type: textblock
30163 #: ../src/guestfs-actions.pod:7049
30164 msgid ""
30165 "This command enables the libguestfs appliance to use the swap device or "
30166 "partition named C<device>.  The increased memory is made available for all "
30167 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30168 msgstr ""
30169
30170 #. type: =head2
30171 #: ../src/guestfs-actions.pod:7065
30172 msgid "guestfs_swapon_file"
30173 msgstr ""
30174
30175 #. type: verbatim
30176 #: ../src/guestfs-actions.pod:7067
30177 #, no-wrap
30178 msgid ""
30179 " int\n"
30180 " guestfs_swapon_file (guestfs_h *g,\n"
30181 "                      const char *file);\n"
30182 "\n"
30183 msgstr ""
30184
30185 #. type: textblock
30186 #: ../src/guestfs-actions.pod:7071
30187 msgid ""
30188 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30189 "notes."
30190 msgstr ""
30191
30192 #. type: =head2
30193 #: ../src/guestfs-actions.pod:7078
30194 msgid "guestfs_swapon_label"
30195 msgstr ""
30196
30197 #. type: verbatim
30198 #: ../src/guestfs-actions.pod:7080
30199 #, no-wrap
30200 msgid ""
30201 " int\n"
30202 " guestfs_swapon_label (guestfs_h *g,\n"
30203 "                       const char *label);\n"
30204 "\n"
30205 msgstr ""
30206
30207 #. type: textblock
30208 #: ../src/guestfs-actions.pod:7084
30209 msgid ""
30210 "This command enables swap to a labeled swap partition.  See "
30211 "C<guestfs_swapon_device> for other notes."
30212 msgstr ""
30213
30214 #. type: =head2
30215 #: ../src/guestfs-actions.pod:7091
30216 msgid "guestfs_swapon_uuid"
30217 msgstr ""
30218
30219 #. type: verbatim
30220 #: ../src/guestfs-actions.pod:7093
30221 #, no-wrap
30222 msgid ""
30223 " int\n"
30224 " guestfs_swapon_uuid (guestfs_h *g,\n"
30225 "                      const char *uuid);\n"
30226 "\n"
30227 msgstr ""
30228
30229 #. type: textblock
30230 #: ../src/guestfs-actions.pod:7097
30231 msgid ""
30232 "This command enables swap to a swap partition with the given UUID.  See "
30233 "C<guestfs_swapon_device> for other notes."
30234 msgstr ""
30235
30236 #. type: =head2
30237 #: ../src/guestfs-actions.pod:7104
30238 msgid "guestfs_sync"
30239 msgstr ""
30240
30241 #. type: verbatim
30242 #: ../src/guestfs-actions.pod:7106
30243 #, no-wrap
30244 msgid ""
30245 " int\n"
30246 " guestfs_sync (guestfs_h *g);\n"
30247 "\n"
30248 msgstr ""
30249
30250 #. type: =head2
30251 #: ../src/guestfs-actions.pod:7119
30252 msgid "guestfs_tail"
30253 msgstr ""
30254
30255 #. type: verbatim
30256 #: ../src/guestfs-actions.pod:7121
30257 #, no-wrap
30258 msgid ""
30259 " char **\n"
30260 " guestfs_tail (guestfs_h *g,\n"
30261 "               const char *path);\n"
30262 "\n"
30263 msgstr ""
30264
30265 #. type: =head2
30266 #: ../src/guestfs-actions.pod:7137
30267 msgid "guestfs_tail_n"
30268 msgstr ""
30269
30270 #. type: verbatim
30271 #: ../src/guestfs-actions.pod:7139
30272 #, no-wrap
30273 msgid ""
30274 " char **\n"
30275 " guestfs_tail_n (guestfs_h *g,\n"
30276 "                 int nrlines,\n"
30277 "                 const char *path);\n"
30278 "\n"
30279 msgstr ""
30280
30281 #. type: =head2
30282 #: ../src/guestfs-actions.pod:7161
30283 msgid "guestfs_tar_in"
30284 msgstr ""
30285
30286 #. type: verbatim
30287 #: ../src/guestfs-actions.pod:7163
30288 #, no-wrap
30289 msgid ""
30290 " int\n"
30291 " guestfs_tar_in (guestfs_h *g,\n"
30292 "                 const char *tarfile,\n"
30293 "                 const char *directory);\n"
30294 "\n"
30295 msgstr ""
30296
30297 #. type: textblock
30298 #: ../src/guestfs-actions.pod:7171
30299 msgid ""
30300 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30301 msgstr ""
30302
30303 #. type: textblock
30304 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
30305 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
30306 msgid "(Added in 1.0.3)"
30307 msgstr ""
30308
30309 #. type: =head2
30310 #: ../src/guestfs-actions.pod:7178
30311 msgid "guestfs_tar_out"
30312 msgstr ""
30313
30314 #. type: verbatim
30315 #: ../src/guestfs-actions.pod:7180
30316 #, no-wrap
30317 msgid ""
30318 " int\n"
30319 " guestfs_tar_out (guestfs_h *g,\n"
30320 "                  const char *directory,\n"
30321 "                  const char *tarfile);\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: textblock
30326 #: ../src/guestfs-actions.pod:7188
30327 msgid ""
30328 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30329 "C<guestfs_txz_out>."
30330 msgstr ""
30331
30332 #. type: =head2
30333 #: ../src/guestfs-actions.pod:7195
30334 msgid "guestfs_tgz_in"
30335 msgstr ""
30336
30337 #. type: verbatim
30338 #: ../src/guestfs-actions.pod:7197
30339 #, no-wrap
30340 msgid ""
30341 " int\n"
30342 " guestfs_tgz_in (guestfs_h *g,\n"
30343 "                 const char *tarball,\n"
30344 "                 const char *directory);\n"
30345 "\n"
30346 msgstr ""
30347
30348 #. type: textblock
30349 #: ../src/guestfs-actions.pod:7205
30350 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30351 msgstr ""
30352
30353 #. type: =head2
30354 #: ../src/guestfs-actions.pod:7211
30355 msgid "guestfs_tgz_out"
30356 msgstr ""
30357
30358 #. type: verbatim
30359 #: ../src/guestfs-actions.pod:7213
30360 #, no-wrap
30361 msgid ""
30362 " int\n"
30363 " guestfs_tgz_out (guestfs_h *g,\n"
30364 "                  const char *directory,\n"
30365 "                  const char *tarball);\n"
30366 "\n"
30367 msgstr ""
30368
30369 #. type: textblock
30370 #: ../src/guestfs-actions.pod:7221
30371 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30372 msgstr ""
30373
30374 #. type: =head2
30375 #: ../src/guestfs-actions.pod:7227
30376 msgid "guestfs_touch"
30377 msgstr ""
30378
30379 #. type: verbatim
30380 #: ../src/guestfs-actions.pod:7229
30381 #, no-wrap
30382 msgid ""
30383 " int\n"
30384 " guestfs_touch (guestfs_h *g,\n"
30385 "                const char *path);\n"
30386 "\n"
30387 msgstr ""
30388
30389 #. type: =head2
30390 #: ../src/guestfs-actions.pod:7244
30391 msgid "guestfs_truncate"
30392 msgstr ""
30393
30394 #. type: verbatim
30395 #: ../src/guestfs-actions.pod:7246
30396 #, no-wrap
30397 msgid ""
30398 " int\n"
30399 " guestfs_truncate (guestfs_h *g,\n"
30400 "                   const char *path);\n"
30401 "\n"
30402 msgstr ""
30403
30404 #. type: =head2
30405 #: ../src/guestfs-actions.pod:7257
30406 msgid "guestfs_truncate_size"
30407 msgstr ""
30408
30409 #. type: verbatim
30410 #: ../src/guestfs-actions.pod:7259
30411 #, no-wrap
30412 msgid ""
30413 " int\n"
30414 " guestfs_truncate_size (guestfs_h *g,\n"
30415 "                        const char *path,\n"
30416 "                        int64_t size);\n"
30417 "\n"
30418 msgstr ""
30419
30420 #. type: textblock
30421 #: ../src/guestfs-actions.pod:7267
30422 msgid ""
30423 "If the current file size is less than C<size> then the file is extended to "
30424 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30425 "blocks are not allocated for the file until you write to it).  To create a "
30426 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30427 msgstr ""
30428
30429 #. type: =head2
30430 #: ../src/guestfs-actions.pod:7277
30431 msgid "guestfs_tune2fs_l"
30432 msgstr ""
30433
30434 #. type: verbatim
30435 #: ../src/guestfs-actions.pod:7279
30436 #, no-wrap
30437 msgid ""
30438 " char **\n"
30439 " guestfs_tune2fs_l (guestfs_h *g,\n"
30440 "                    const char *device);\n"
30441 "\n"
30442 msgstr ""
30443
30444 #. type: =head2
30445 #: ../src/guestfs-actions.pod:7299
30446 msgid "guestfs_txz_in"
30447 msgstr ""
30448
30449 #. type: verbatim
30450 #: ../src/guestfs-actions.pod:7301
30451 #, no-wrap
30452 msgid ""
30453 " int\n"
30454 " guestfs_txz_in (guestfs_h *g,\n"
30455 "                 const char *tarball,\n"
30456 "                 const char *directory);\n"
30457 "\n"
30458 msgstr ""
30459
30460 #. type: =head2
30461 #: ../src/guestfs-actions.pod:7313
30462 msgid "guestfs_txz_out"
30463 msgstr ""
30464
30465 #. type: verbatim
30466 #: ../src/guestfs-actions.pod:7315
30467 #, no-wrap
30468 msgid ""
30469 " int\n"
30470 " guestfs_txz_out (guestfs_h *g,\n"
30471 "                  const char *directory,\n"
30472 "                  const char *tarball);\n"
30473 "\n"
30474 msgstr ""
30475
30476 #. type: =head2
30477 #: ../src/guestfs-actions.pod:7327
30478 msgid "guestfs_umask"
30479 msgstr ""
30480
30481 #. type: verbatim
30482 #: ../src/guestfs-actions.pod:7329
30483 #, no-wrap
30484 msgid ""
30485 " int\n"
30486 " guestfs_umask (guestfs_h *g,\n"
30487 "                int mask);\n"
30488 "\n"
30489 msgstr ""
30490
30491 #. type: textblock
30492 #: ../src/guestfs-actions.pod:7345
30493 msgid ""
30494 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30495 "C<guestfs_mkdir>."
30496 msgstr ""
30497
30498 #. type: =head2
30499 #: ../src/guestfs-actions.pod:7354
30500 msgid "guestfs_umount"
30501 msgstr ""
30502
30503 #. type: verbatim
30504 #: ../src/guestfs-actions.pod:7356
30505 #, no-wrap
30506 msgid ""
30507 " int\n"
30508 " guestfs_umount (guestfs_h *g,\n"
30509 "                 const char *pathordevice);\n"
30510 "\n"
30511 msgstr ""
30512
30513 #. type: =head2
30514 #: ../src/guestfs-actions.pod:7368
30515 msgid "guestfs_umount_all"
30516 msgstr ""
30517
30518 #. type: verbatim
30519 #: ../src/guestfs-actions.pod:7370
30520 #, no-wrap
30521 msgid ""
30522 " int\n"
30523 " guestfs_umount_all (guestfs_h *g);\n"
30524 "\n"
30525 msgstr ""
30526
30527 #. type: =head2
30528 #: ../src/guestfs-actions.pod:7381
30529 msgid "guestfs_upload"
30530 msgstr ""
30531
30532 #. type: verbatim
30533 #: ../src/guestfs-actions.pod:7383
30534 #, no-wrap
30535 msgid ""
30536 " int\n"
30537 " guestfs_upload (guestfs_h *g,\n"
30538 "                 const char *filename,\n"
30539 "                 const char *remotefilename);\n"
30540 "\n"
30541 msgstr ""
30542
30543 #. type: textblock
30544 #: ../src/guestfs-actions.pod:7393
30545 msgid "See also C<guestfs_download>."
30546 msgstr ""
30547
30548 #. type: =head2
30549 #: ../src/guestfs-actions.pod:7404
30550 msgid "guestfs_upload_offset"
30551 msgstr ""
30552
30553 #. type: verbatim
30554 #: ../src/guestfs-actions.pod:7406
30555 #, no-wrap
30556 msgid ""
30557 " int\n"
30558 " guestfs_upload_offset (guestfs_h *g,\n"
30559 "                        const char *filename,\n"
30560 "                        const char *remotefilename,\n"
30561 "                        int64_t offset);\n"
30562 "\n"
30563 msgstr ""
30564
30565 #. type: textblock
30566 #: ../src/guestfs-actions.pod:7422
30567 msgid ""
30568 "Note that there is no limit on the amount of data that can be uploaded with "
30569 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30570 "full amount unless an error occurs."
30571 msgstr ""
30572
30573 #. type: textblock
30574 #: ../src/guestfs-actions.pod:7427
30575 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:7438
30580 msgid "guestfs_utimens"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:7440
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_utimens (guestfs_h *g,\n"
30589 "                  const char *path,\n"
30590 "                  int64_t atsecs,\n"
30591 "                  int64_t atnsecs,\n"
30592 "                  int64_t mtsecs,\n"
30593 "                  int64_t mtnsecs);\n"
30594 "\n"
30595 msgstr ""
30596
30597 #. type: =head2
30598 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
30599 msgid "guestfs_version"
30600 msgstr ""
30601
30602 #. type: verbatim
30603 #: ../src/guestfs-actions.pod:7471
30604 #, no-wrap
30605 msgid ""
30606 " struct guestfs_version *\n"
30607 " guestfs_version (guestfs_h *g);\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: textblock
30612 #: ../src/guestfs-actions.pod:7499
30613 msgid ""
30614 "I<Note:> Don't use this call to test for availability of features.  In "
30615 "enterprise distributions we backport features from later versions into "
30616 "earlier versions, making this an unreliable way to test for features.  Use "
30617 "C<guestfs_available> instead."
30618 msgstr ""
30619
30620 #. type: textblock
30621 #: ../src/guestfs-actions.pod:7505
30622 msgid ""
30623 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30624 "error.  I<The caller must call C<guestfs_free_version> after use>."
30625 msgstr ""
30626
30627 #. type: textblock
30628 #: ../src/guestfs-actions.pod:7509
30629 msgid "(Added in 1.0.58)"
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:7511
30634 msgid "guestfs_vfs_label"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:7513
30639 #, no-wrap
30640 msgid ""
30641 " char *\n"
30642 " guestfs_vfs_label (guestfs_h *g,\n"
30643 "                    const char *device);\n"
30644 "\n"
30645 msgstr ""
30646
30647 #. type: textblock
30648 #: ../src/guestfs-actions.pod:7522
30649 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30650 msgstr ""
30651
30652 #. type: textblock
30653 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
30654 msgid "(Added in 1.3.18)"
30655 msgstr ""
30656
30657 #. type: =head2
30658 #: ../src/guestfs-actions.pod:7529
30659 msgid "guestfs_vfs_type"
30660 msgstr ""
30661
30662 #. type: verbatim
30663 #: ../src/guestfs-actions.pod:7531
30664 #, no-wrap
30665 msgid ""
30666 " char *\n"
30667 " guestfs_vfs_type (guestfs_h *g,\n"
30668 "                   const char *device);\n"
30669 "\n"
30670 msgstr ""
30671
30672 #. type: =head2
30673 #: ../src/guestfs-actions.pod:7548
30674 msgid "guestfs_vfs_uuid"
30675 msgstr ""
30676
30677 #. type: verbatim
30678 #: ../src/guestfs-actions.pod:7550
30679 #, no-wrap
30680 msgid ""
30681 " char *\n"
30682 " guestfs_vfs_uuid (guestfs_h *g,\n"
30683 "                   const char *device);\n"
30684 "\n"
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs-actions.pod:7559
30689 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30690 msgstr ""
30691
30692 #. type: =head2
30693 #: ../src/guestfs-actions.pod:7566
30694 msgid "guestfs_vg_activate"
30695 msgstr ""
30696
30697 #. type: verbatim
30698 #: ../src/guestfs-actions.pod:7568
30699 #, no-wrap
30700 msgid ""
30701 " int\n"
30702 " guestfs_vg_activate (guestfs_h *g,\n"
30703 "                      int activate,\n"
30704 "                      char *const *volgroups);\n"
30705 "\n"
30706 msgstr ""
30707
30708 #. type: =head2
30709 #: ../src/guestfs-actions.pod:7585
30710 msgid "guestfs_vg_activate_all"
30711 msgstr ""
30712
30713 #. type: verbatim
30714 #: ../src/guestfs-actions.pod:7587
30715 #, no-wrap
30716 msgid ""
30717 " int\n"
30718 " guestfs_vg_activate_all (guestfs_h *g,\n"
30719 "                          int activate);\n"
30720 "\n"
30721 msgstr ""
30722
30723 #. type: =head2
30724 #: ../src/guestfs-actions.pod:7600
30725 msgid "guestfs_vgcreate"
30726 msgstr ""
30727
30728 #. type: verbatim
30729 #: ../src/guestfs-actions.pod:7602
30730 #, no-wrap
30731 msgid ""
30732 " int\n"
30733 " guestfs_vgcreate (guestfs_h *g,\n"
30734 "                   const char *volgroup,\n"
30735 "                   char *const *physvols);\n"
30736 "\n"
30737 msgstr ""
30738
30739 #. type: =head2
30740 #: ../src/guestfs-actions.pod:7614
30741 msgid "guestfs_vglvuuids"
30742 msgstr ""
30743
30744 #. type: verbatim
30745 #: ../src/guestfs-actions.pod:7616
30746 #, no-wrap
30747 msgid ""
30748 " char **\n"
30749 " guestfs_vglvuuids (guestfs_h *g,\n"
30750 "                    const char *vgname);\n"
30751 "\n"
30752 msgstr ""
30753
30754 #. type: textblock
30755 #: ../src/guestfs-actions.pod:7623
30756 msgid ""
30757 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
30758 "associate logical volumes and volume groups."
30759 msgstr ""
30760
30761 #. type: textblock
30762 #: ../src/guestfs-actions.pod:7626
30763 msgid "See also C<guestfs_vgpvuuids>."
30764 msgstr ""
30765
30766 #. type: =head2
30767 #: ../src/guestfs-actions.pod:7634
30768 msgid "guestfs_vgpvuuids"
30769 msgstr ""
30770
30771 #. type: verbatim
30772 #: ../src/guestfs-actions.pod:7636
30773 #, no-wrap
30774 msgid ""
30775 " char **\n"
30776 " guestfs_vgpvuuids (guestfs_h *g,\n"
30777 "                    const char *vgname);\n"
30778 "\n"
30779 msgstr ""
30780
30781 #. type: textblock
30782 #: ../src/guestfs-actions.pod:7643
30783 msgid ""
30784 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
30785 "associate physical volumes and volume groups."
30786 msgstr ""
30787
30788 #. type: textblock
30789 #: ../src/guestfs-actions.pod:7646
30790 msgid "See also C<guestfs_vglvuuids>."
30791 msgstr ""
30792
30793 #. type: =head2
30794 #: ../src/guestfs-actions.pod:7654
30795 msgid "guestfs_vgremove"
30796 msgstr ""
30797
30798 #. type: verbatim
30799 #: ../src/guestfs-actions.pod:7656
30800 #, no-wrap
30801 msgid ""
30802 " int\n"
30803 " guestfs_vgremove (guestfs_h *g,\n"
30804 "                   const char *vgname);\n"
30805 "\n"
30806 msgstr ""
30807
30808 #. type: =head2
30809 #: ../src/guestfs-actions.pod:7669
30810 msgid "guestfs_vgrename"
30811 msgstr ""
30812
30813 #. type: verbatim
30814 #: ../src/guestfs-actions.pod:7671
30815 #, no-wrap
30816 msgid ""
30817 " int\n"
30818 " guestfs_vgrename (guestfs_h *g,\n"
30819 "                   const char *volgroup,\n"
30820 "                   const char *newvolgroup);\n"
30821 "\n"
30822 msgstr ""
30823
30824 #. type: =head2
30825 #: ../src/guestfs-actions.pod:7682
30826 msgid "guestfs_vgs"
30827 msgstr ""
30828
30829 #. type: verbatim
30830 #: ../src/guestfs-actions.pod:7684
30831 #, no-wrap
30832 msgid ""
30833 " char **\n"
30834 " guestfs_vgs (guestfs_h *g);\n"
30835 "\n"
30836 msgstr ""
30837
30838 #. type: textblock
30839 #: ../src/guestfs-actions.pod:7693
30840 msgid "See also C<guestfs_vgs_full>."
30841 msgstr ""
30842
30843 #. type: =head2
30844 #: ../src/guestfs-actions.pod:7701
30845 msgid "guestfs_vgs_full"
30846 msgstr ""
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-actions.pod:7703
30850 #, no-wrap
30851 msgid ""
30852 " struct guestfs_lvm_vg_list *\n"
30853 " guestfs_vgs_full (guestfs_h *g);\n"
30854 "\n"
30855 msgstr ""
30856
30857 #. type: textblock
30858 #: ../src/guestfs-actions.pod:7709
30859 msgid ""
30860 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
30861 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
30862 msgstr ""
30863
30864 #. type: =head2
30865 #: ../src/guestfs-actions.pod:7715
30866 msgid "guestfs_vgscan"
30867 msgstr ""
30868
30869 #. type: verbatim
30870 #: ../src/guestfs-actions.pod:7717
30871 #, no-wrap
30872 msgid ""
30873 " int\n"
30874 " guestfs_vgscan (guestfs_h *g);\n"
30875 "\n"
30876 msgstr ""
30877
30878 #. type: =head2
30879 #: ../src/guestfs-actions.pod:7727
30880 msgid "guestfs_vguuid"
30881 msgstr ""
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:7729
30885 #, no-wrap
30886 msgid ""
30887 " char *\n"
30888 " guestfs_vguuid (guestfs_h *g,\n"
30889 "                 const char *vgname);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: =head2
30894 #: ../src/guestfs-actions.pod:7740
30895 msgid "guestfs_wait_ready"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs-actions.pod:7742
30900 #, no-wrap
30901 msgid ""
30902 " int\n"
30903 " guestfs_wait_ready (guestfs_h *g);\n"
30904 "\n"
30905 msgstr ""
30906
30907 #. type: textblock
30908 #: ../src/guestfs-actions.pod:7745
30909 msgid ""
30910 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
30911 "instead."
30912 msgstr ""
30913
30914 #. type: textblock
30915 #: ../src/guestfs-actions.pod:7752
30916 msgid "This function is a no op."
30917 msgstr ""
30918
30919 #. type: textblock
30920 #: ../src/guestfs-actions.pod:7754
30921 msgid ""
30922 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
30923 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
30924 "is no longer necessary because C<guestfs_launch> now does the waiting."
30925 msgstr ""
30926
30927 #. type: textblock
30928 #: ../src/guestfs-actions.pod:7759
30929 msgid ""
30930 "If you see any calls to this function in code then you can just remove them, "
30931 "unless you want to retain compatibility with older versions of the API."
30932 msgstr ""
30933
30934 #. type: =head2
30935 #: ../src/guestfs-actions.pod:7767
30936 msgid "guestfs_wc_c"
30937 msgstr ""
30938
30939 #. type: verbatim
30940 #: ../src/guestfs-actions.pod:7769
30941 #, no-wrap
30942 msgid ""
30943 " int\n"
30944 " guestfs_wc_c (guestfs_h *g,\n"
30945 "               const char *path);\n"
30946 "\n"
30947 msgstr ""
30948
30949 #. type: =head2
30950 #: ../src/guestfs-actions.pod:7780
30951 msgid "guestfs_wc_l"
30952 msgstr ""
30953
30954 #. type: verbatim
30955 #: ../src/guestfs-actions.pod:7782
30956 #, no-wrap
30957 msgid ""
30958 " int\n"
30959 " guestfs_wc_l (guestfs_h *g,\n"
30960 "               const char *path);\n"
30961 "\n"
30962 msgstr ""
30963
30964 #. type: =head2
30965 #: ../src/guestfs-actions.pod:7793
30966 msgid "guestfs_wc_w"
30967 msgstr ""
30968
30969 #. type: verbatim
30970 #: ../src/guestfs-actions.pod:7795
30971 #, no-wrap
30972 msgid ""
30973 " int\n"
30974 " guestfs_wc_w (guestfs_h *g,\n"
30975 "               const char *path);\n"
30976 "\n"
30977 msgstr ""
30978
30979 #. type: =head2
30980 #: ../src/guestfs-actions.pod:7806
30981 msgid "guestfs_write"
30982 msgstr ""
30983
30984 #. type: verbatim
30985 #: ../src/guestfs-actions.pod:7808
30986 #, no-wrap
30987 msgid ""
30988 " int\n"
30989 " guestfs_write (guestfs_h *g,\n"
30990 "                const char *path,\n"
30991 "                const char *content,\n"
30992 "                size_t content_size);\n"
30993 "\n"
30994 msgstr ""
30995
30996 #. type: textblock
30997 #: ../src/guestfs-actions.pod:7817
30998 msgid "See also C<guestfs_write_append>."
30999 msgstr ""
31000
31001 #. type: =head2
31002 #: ../src/guestfs-actions.pod:7826
31003 msgid "guestfs_write_append"
31004 msgstr ""
31005
31006 #. type: verbatim
31007 #: ../src/guestfs-actions.pod:7828
31008 #, no-wrap
31009 msgid ""
31010 " int\n"
31011 " guestfs_write_append (guestfs_h *g,\n"
31012 "                       const char *path,\n"
31013 "                       const char *content,\n"
31014 "                       size_t content_size);\n"
31015 "\n"
31016 msgstr ""
31017
31018 #. type: textblock
31019 #: ../src/guestfs-actions.pod:7837
31020 msgid "See also C<guestfs_write>."
31021 msgstr ""
31022
31023 #. type: =head2
31024 #: ../src/guestfs-actions.pod:7846
31025 msgid "guestfs_write_file"
31026 msgstr ""
31027
31028 #. type: verbatim
31029 #: ../src/guestfs-actions.pod:7848
31030 #, no-wrap
31031 msgid ""
31032 " int\n"
31033 " guestfs_write_file (guestfs_h *g,\n"
31034 "                     const char *path,\n"
31035 "                     const char *content,\n"
31036 "                     int size);\n"
31037 "\n"
31038 msgstr ""
31039
31040 #. type: textblock
31041 #: ../src/guestfs-actions.pod:7854
31042 msgid ""
31043 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31044 "instead."
31045 msgstr ""
31046
31047 #. type: =head2
31048 #: ../src/guestfs-actions.pod:7879
31049 msgid "guestfs_zegrep"
31050 msgstr ""
31051
31052 #. type: verbatim
31053 #: ../src/guestfs-actions.pod:7881
31054 #, no-wrap
31055 msgid ""
31056 " char **\n"
31057 " guestfs_zegrep (guestfs_h *g,\n"
31058 "                 const char *regex,\n"
31059 "                 const char *path);\n"
31060 "\n"
31061 msgstr ""
31062
31063 #. type: =head2
31064 #: ../src/guestfs-actions.pod:7898
31065 msgid "guestfs_zegrepi"
31066 msgstr ""
31067
31068 #. type: verbatim
31069 #: ../src/guestfs-actions.pod:7900
31070 #, no-wrap
31071 msgid ""
31072 " char **\n"
31073 " guestfs_zegrepi (guestfs_h *g,\n"
31074 "                  const char *regex,\n"
31075 "                  const char *path);\n"
31076 "\n"
31077 msgstr ""
31078
31079 #. type: =head2
31080 #: ../src/guestfs-actions.pod:7917
31081 msgid "guestfs_zero"
31082 msgstr ""
31083
31084 #. type: verbatim
31085 #: ../src/guestfs-actions.pod:7919
31086 #, no-wrap
31087 msgid ""
31088 " int\n"
31089 " guestfs_zero (guestfs_h *g,\n"
31090 "               const char *device);\n"
31091 "\n"
31092 msgstr ""
31093
31094 #. type: textblock
31095 #: ../src/guestfs-actions.pod:7933
31096 msgid ""
31097 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31098 "C<guestfs_is_zero_device>"
31099 msgstr ""
31100
31101 #. type: =head2
31102 #: ../src/guestfs-actions.pod:7945
31103 msgid "guestfs_zero_device"
31104 msgstr ""
31105
31106 #. type: verbatim
31107 #: ../src/guestfs-actions.pod:7947
31108 #, no-wrap
31109 msgid ""
31110 " int\n"
31111 " guestfs_zero_device (guestfs_h *g,\n"
31112 "                      const char *device);\n"
31113 "\n"
31114 msgstr ""
31115
31116 #. type: textblock
31117 #: ../src/guestfs-actions.pod:7951
31118 msgid ""
31119 "This command writes zeroes over the entire C<device>.  Compare with "
31120 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs-actions.pod:7969
31125 msgid "(Added in 1.3.1)"
31126 msgstr ""
31127
31128 #. type: =head2
31129 #: ../src/guestfs-actions.pod:7971
31130 msgid "guestfs_zerofree"
31131 msgstr ""
31132
31133 #. type: verbatim
31134 #: ../src/guestfs-actions.pod:7973
31135 #, no-wrap
31136 msgid ""
31137 " int\n"
31138 " guestfs_zerofree (guestfs_h *g,\n"
31139 "                   const char *device);\n"
31140 "\n"
31141 msgstr ""
31142
31143 #. type: =head2
31144 #: ../src/guestfs-actions.pod:7992
31145 msgid "guestfs_zfgrep"
31146 msgstr ""
31147
31148 #. type: verbatim
31149 #: ../src/guestfs-actions.pod:7994
31150 #, no-wrap
31151 msgid ""
31152 " char **\n"
31153 " guestfs_zfgrep (guestfs_h *g,\n"
31154 "                 const char *pattern,\n"
31155 "                 const char *path);\n"
31156 "\n"
31157 msgstr ""
31158
31159 #. type: =head2
31160 #: ../src/guestfs-actions.pod:8011
31161 msgid "guestfs_zfgrepi"
31162 msgstr ""
31163
31164 #. type: verbatim
31165 #: ../src/guestfs-actions.pod:8013
31166 #, no-wrap
31167 msgid ""
31168 " char **\n"
31169 " guestfs_zfgrepi (guestfs_h *g,\n"
31170 "                  const char *pattern,\n"
31171 "                  const char *path);\n"
31172 "\n"
31173 msgstr ""
31174
31175 #. type: =head2
31176 #: ../src/guestfs-actions.pod:8030
31177 msgid "guestfs_zfile"
31178 msgstr ""
31179
31180 #. type: verbatim
31181 #: ../src/guestfs-actions.pod:8032
31182 #, no-wrap
31183 msgid ""
31184 " char *\n"
31185 " guestfs_zfile (guestfs_h *g,\n"
31186 "                const char *meth,\n"
31187 "                const char *path);\n"
31188 "\n"
31189 msgstr ""
31190
31191 #. type: textblock
31192 #: ../src/guestfs-actions.pod:8037
31193 msgid ""
31194 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31195 "instead."
31196 msgstr ""
31197
31198 #. type: textblock
31199 #: ../src/guestfs-actions.pod:8049
31200 msgid ""
31201 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31202 "files."
31203 msgstr ""
31204
31205 #. type: =head2
31206 #: ../src/guestfs-actions.pod:8057
31207 msgid "guestfs_zgrep"
31208 msgstr ""
31209
31210 #. type: verbatim
31211 #: ../src/guestfs-actions.pod:8059
31212 #, no-wrap
31213 msgid ""
31214 " char **\n"
31215 " guestfs_zgrep (guestfs_h *g,\n"
31216 "                const char *regex,\n"
31217 "                const char *path);\n"
31218 "\n"
31219 msgstr ""
31220
31221 #. type: =head2
31222 #: ../src/guestfs-actions.pod:8076
31223 msgid "guestfs_zgrepi"
31224 msgstr ""
31225
31226 #. type: verbatim
31227 #: ../src/guestfs-actions.pod:8078
31228 #, no-wrap
31229 msgid ""
31230 " char **\n"
31231 " guestfs_zgrepi (guestfs_h *g,\n"
31232 "                 const char *regex,\n"
31233 "                 const char *path);\n"
31234 "\n"
31235 msgstr ""
31236
31237 #. type: =item
31238 #: ../src/guestfs-availability.pod:3
31239 msgid "B<augeas>"
31240 msgstr ""
31241
31242 #. type: textblock
31243 #: ../src/guestfs-availability.pod:5
31244 msgid ""
31245 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31246 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31247 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31248 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31249 "L</guestfs_aug_save> L</guestfs_aug_set>"
31250 msgstr ""
31251
31252 #. type: =item
31253 #: ../src/guestfs-availability.pod:21
31254 msgid "B<btrfs>"
31255 msgstr ""
31256
31257 #. type: textblock
31258 #: ../src/guestfs-availability.pod:23
31259 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31260 msgstr ""
31261
31262 #. type: =item
31263 #: ../src/guestfs-availability.pod:26
31264 msgid "B<grub>"
31265 msgstr ""
31266
31267 #. type: textblock
31268 #: ../src/guestfs-availability.pod:28
31269 msgid "The following functions: L</guestfs_grub_install>"
31270 msgstr ""
31271
31272 #. type: =item
31273 #: ../src/guestfs-availability.pod:31
31274 msgid "B<inotify>"
31275 msgstr ""
31276
31277 #. type: textblock
31278 #: ../src/guestfs-availability.pod:33
31279 msgid ""
31280 "The following functions: L</guestfs_inotify_add_watch> L</"
31281 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31282 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31283 msgstr ""
31284
31285 #. type: =item
31286 #: ../src/guestfs-availability.pod:41
31287 msgid "B<linuxfsuuid>"
31288 msgstr ""
31289
31290 #. type: textblock
31291 #: ../src/guestfs-availability.pod:43
31292 msgid ""
31293 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31294 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31295 msgstr ""
31296
31297 #. type: =item
31298 #: ../src/guestfs-availability.pod:50
31299 msgid "B<linuxmodules>"
31300 msgstr ""
31301
31302 #. type: textblock
31303 #: ../src/guestfs-availability.pod:52
31304 msgid "The following functions: L</guestfs_modprobe>"
31305 msgstr ""
31306
31307 #. type: =item
31308 #: ../src/guestfs-availability.pod:55
31309 msgid "B<linuxxattrs>"
31310 msgstr ""
31311
31312 #. type: textblock
31313 #: ../src/guestfs-availability.pod:57
31314 msgid ""
31315 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31316 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31317 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31318 "guestfs_setxattr>"
31319 msgstr ""
31320
31321 #. type: =item
31322 #: ../src/guestfs-availability.pod:68
31323 msgid "B<luks>"
31324 msgstr ""
31325
31326 #. type: textblock
31327 #: ../src/guestfs-availability.pod:70
31328 msgid ""
31329 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31330 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31331 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31332 msgstr ""
31333
31334 #. type: =item
31335 #: ../src/guestfs-availability.pod:79
31336 msgid "B<lvm2>"
31337 msgstr ""
31338
31339 #. type: textblock
31340 #: ../src/guestfs-availability.pod:81
31341 msgid ""
31342 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31343 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31344 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31345 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31346 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31347 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31348 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31349 msgstr ""
31350
31351 #. type: =item
31352 #: ../src/guestfs-availability.pod:104
31353 msgid "B<mknod>"
31354 msgstr ""
31355
31356 #. type: textblock
31357 #: ../src/guestfs-availability.pod:106
31358 msgid ""
31359 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31360 "guestfs_mknod_b> L</guestfs_mknod_c>"
31361 msgstr ""
31362
31363 #. type: =item
31364 #: ../src/guestfs-availability.pod:112
31365 msgid "B<ntfs3g>"
31366 msgstr ""
31367
31368 #. type: textblock
31369 #: ../src/guestfs-availability.pod:114
31370 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31371 msgstr ""
31372
31373 #. type: =item
31374 #: ../src/guestfs-availability.pod:117
31375 msgid "B<ntfsprogs>"
31376 msgstr ""
31377
31378 #. type: textblock
31379 #: ../src/guestfs-availability.pod:119
31380 msgid ""
31381 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31382 "L</guestfs_ntfsresize_size>"
31383 msgstr ""
31384
31385 #. type: =item
31386 #: ../src/guestfs-availability.pod:124
31387 msgid "B<realpath>"
31388 msgstr ""
31389
31390 #. type: textblock
31391 #: ../src/guestfs-availability.pod:126
31392 msgid "The following functions: L</guestfs_realpath>"
31393 msgstr ""
31394
31395 #. type: =item
31396 #: ../src/guestfs-availability.pod:129
31397 msgid "B<scrub>"
31398 msgstr ""
31399
31400 #. type: textblock
31401 #: ../src/guestfs-availability.pod:131
31402 msgid ""
31403 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31404 "guestfs_scrub_freespace>"
31405 msgstr ""
31406
31407 #. type: =item
31408 #: ../src/guestfs-availability.pod:136
31409 msgid "B<selinux>"
31410 msgstr ""
31411
31412 #. type: textblock
31413 #: ../src/guestfs-availability.pod:138
31414 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31415 msgstr ""
31416
31417 #. type: =item
31418 #: ../src/guestfs-availability.pod:142
31419 msgid "B<xz>"
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../src/guestfs-availability.pod:144
31424 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31425 msgstr ""
31426
31427 #. type: =item
31428 #: ../src/guestfs-availability.pod:148
31429 msgid "B<zerofree>"
31430 msgstr ""
31431
31432 #. type: textblock
31433 #: ../src/guestfs-availability.pod:150
31434 msgid "The following functions: L</guestfs_zerofree>"
31435 msgstr ""
31436
31437 #. type: =head2
31438 #: ../src/guestfs-structs.pod:1
31439 msgid "guestfs_int_bool"
31440 msgstr ""
31441
31442 #. type: verbatim
31443 #: ../src/guestfs-structs.pod:3
31444 #, no-wrap
31445 msgid ""
31446 " struct guestfs_int_bool {\n"
31447 "   int32_t i;\n"
31448 "   int32_t b;\n"
31449 " };\n"
31450 " \n"
31451 msgstr ""
31452
31453 #. type: verbatim
31454 #: ../src/guestfs-structs.pod:8
31455 #, no-wrap
31456 msgid ""
31457 " struct guestfs_int_bool_list {\n"
31458 "   uint32_t len; /* Number of elements in list. */\n"
31459 "   struct guestfs_int_bool *val; /* Elements. */\n"
31460 " };\n"
31461 " \n"
31462 msgstr ""
31463
31464 #. type: verbatim
31465 #: ../src/guestfs-structs.pod:13
31466 #, no-wrap
31467 msgid ""
31468 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31469 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31470 "\n"
31471 msgstr ""
31472
31473 #. type: =head2
31474 #: ../src/guestfs-structs.pod:16
31475 msgid "guestfs_lvm_pv"
31476 msgstr ""
31477
31478 #. type: verbatim
31479 #: ../src/guestfs-structs.pod:18
31480 #, no-wrap
31481 msgid ""
31482 " struct guestfs_lvm_pv {\n"
31483 "   char *pv_name;\n"
31484 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31485 "   char pv_uuid[32];\n"
31486 "   char *pv_fmt;\n"
31487 "   uint64_t pv_size;\n"
31488 "   uint64_t dev_size;\n"
31489 "   uint64_t pv_free;\n"
31490 "   uint64_t pv_used;\n"
31491 "   char *pv_attr;\n"
31492 "   int64_t pv_pe_count;\n"
31493 "   int64_t pv_pe_alloc_count;\n"
31494 "   char *pv_tags;\n"
31495 "   uint64_t pe_start;\n"
31496 "   int64_t pv_mda_count;\n"
31497 "   uint64_t pv_mda_free;\n"
31498 " };\n"
31499 " \n"
31500 msgstr ""
31501
31502 #. type: verbatim
31503 #: ../src/guestfs-structs.pod:36
31504 #, no-wrap
31505 msgid ""
31506 " struct guestfs_lvm_pv_list {\n"
31507 "   uint32_t len; /* Number of elements in list. */\n"
31508 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31509 " };\n"
31510 " \n"
31511 msgstr ""
31512
31513 #. type: verbatim
31514 #: ../src/guestfs-structs.pod:41
31515 #, no-wrap
31516 msgid ""
31517 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31518 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31519 "\n"
31520 msgstr ""
31521
31522 #. type: =head2
31523 #: ../src/guestfs-structs.pod:44
31524 msgid "guestfs_lvm_vg"
31525 msgstr ""
31526
31527 #. type: verbatim
31528 #: ../src/guestfs-structs.pod:46
31529 #, no-wrap
31530 msgid ""
31531 " struct guestfs_lvm_vg {\n"
31532 "   char *vg_name;\n"
31533 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31534 "   char vg_uuid[32];\n"
31535 "   char *vg_fmt;\n"
31536 "   char *vg_attr;\n"
31537 "   uint64_t vg_size;\n"
31538 "   uint64_t vg_free;\n"
31539 "   char *vg_sysid;\n"
31540 "   uint64_t vg_extent_size;\n"
31541 "   int64_t vg_extent_count;\n"
31542 "   int64_t vg_free_count;\n"
31543 "   int64_t max_lv;\n"
31544 "   int64_t max_pv;\n"
31545 "   int64_t pv_count;\n"
31546 "   int64_t lv_count;\n"
31547 "   int64_t snap_count;\n"
31548 "   int64_t vg_seqno;\n"
31549 "   char *vg_tags;\n"
31550 "   int64_t vg_mda_count;\n"
31551 "   uint64_t vg_mda_free;\n"
31552 " };\n"
31553 " \n"
31554 msgstr ""
31555
31556 #. type: verbatim
31557 #: ../src/guestfs-structs.pod:69
31558 #, no-wrap
31559 msgid ""
31560 " struct guestfs_lvm_vg_list {\n"
31561 "   uint32_t len; /* Number of elements in list. */\n"
31562 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31563 " };\n"
31564 " \n"
31565 msgstr ""
31566
31567 #. type: verbatim
31568 #: ../src/guestfs-structs.pod:74
31569 #, no-wrap
31570 msgid ""
31571 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31572 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31573 "\n"
31574 msgstr ""
31575
31576 #. type: =head2
31577 #: ../src/guestfs-structs.pod:77
31578 msgid "guestfs_lvm_lv"
31579 msgstr ""
31580
31581 #. type: verbatim
31582 #: ../src/guestfs-structs.pod:79
31583 #, no-wrap
31584 msgid ""
31585 " struct guestfs_lvm_lv {\n"
31586 "   char *lv_name;\n"
31587 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31588 "   char lv_uuid[32];\n"
31589 "   char *lv_attr;\n"
31590 "   int64_t lv_major;\n"
31591 "   int64_t lv_minor;\n"
31592 "   int64_t lv_kernel_major;\n"
31593 "   int64_t lv_kernel_minor;\n"
31594 "   uint64_t lv_size;\n"
31595 "   int64_t seg_count;\n"
31596 "   char *origin;\n"
31597 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31598 "   float snap_percent;\n"
31599 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31600 "   float copy_percent;\n"
31601 "   char *move_pv;\n"
31602 "   char *lv_tags;\n"
31603 "   char *mirror_log;\n"
31604 "   char *modules;\n"
31605 " };\n"
31606 " \n"
31607 msgstr ""
31608
31609 #. type: verbatim
31610 #: ../src/guestfs-structs.pod:101
31611 #, no-wrap
31612 msgid ""
31613 " struct guestfs_lvm_lv_list {\n"
31614 "   uint32_t len; /* Number of elements in list. */\n"
31615 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31616 " };\n"
31617 " \n"
31618 msgstr ""
31619
31620 #. type: verbatim
31621 #: ../src/guestfs-structs.pod:106
31622 #, no-wrap
31623 msgid ""
31624 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31625 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31626 "\n"
31627 msgstr ""
31628
31629 #. type: verbatim
31630 #: ../src/guestfs-structs.pod:111
31631 #, no-wrap
31632 msgid ""
31633 " struct guestfs_stat {\n"
31634 "   int64_t dev;\n"
31635 "   int64_t ino;\n"
31636 "   int64_t mode;\n"
31637 "   int64_t nlink;\n"
31638 "   int64_t uid;\n"
31639 "   int64_t gid;\n"
31640 "   int64_t rdev;\n"
31641 "   int64_t size;\n"
31642 "   int64_t blksize;\n"
31643 "   int64_t blocks;\n"
31644 "   int64_t atime;\n"
31645 "   int64_t mtime;\n"
31646 "   int64_t ctime;\n"
31647 " };\n"
31648 " \n"
31649 msgstr ""
31650
31651 #. type: verbatim
31652 #: ../src/guestfs-structs.pod:127
31653 #, no-wrap
31654 msgid ""
31655 " struct guestfs_stat_list {\n"
31656 "   uint32_t len; /* Number of elements in list. */\n"
31657 "   struct guestfs_stat *val; /* Elements. */\n"
31658 " };\n"
31659 " \n"
31660 msgstr ""
31661
31662 #. type: verbatim
31663 #: ../src/guestfs-structs.pod:132
31664 #, no-wrap
31665 msgid ""
31666 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
31667 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
31668 "\n"
31669 msgstr ""
31670
31671 #. type: verbatim
31672 #: ../src/guestfs-structs.pod:137
31673 #, no-wrap
31674 msgid ""
31675 " struct guestfs_statvfs {\n"
31676 "   int64_t bsize;\n"
31677 "   int64_t frsize;\n"
31678 "   int64_t blocks;\n"
31679 "   int64_t bfree;\n"
31680 "   int64_t bavail;\n"
31681 "   int64_t files;\n"
31682 "   int64_t ffree;\n"
31683 "   int64_t favail;\n"
31684 "   int64_t fsid;\n"
31685 "   int64_t flag;\n"
31686 "   int64_t namemax;\n"
31687 " };\n"
31688 " \n"
31689 msgstr ""
31690
31691 #. type: verbatim
31692 #: ../src/guestfs-structs.pod:151
31693 #, no-wrap
31694 msgid ""
31695 " struct guestfs_statvfs_list {\n"
31696 "   uint32_t len; /* Number of elements in list. */\n"
31697 "   struct guestfs_statvfs *val; /* Elements. */\n"
31698 " };\n"
31699 " \n"
31700 msgstr ""
31701
31702 #. type: verbatim
31703 #: ../src/guestfs-structs.pod:156
31704 #, no-wrap
31705 msgid ""
31706 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
31707 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
31708 "\n"
31709 msgstr ""
31710
31711 #. type: =head2
31712 #: ../src/guestfs-structs.pod:159
31713 msgid "guestfs_dirent"
31714 msgstr ""
31715
31716 #. type: verbatim
31717 #: ../src/guestfs-structs.pod:161
31718 #, no-wrap
31719 msgid ""
31720 " struct guestfs_dirent {\n"
31721 "   int64_t ino;\n"
31722 "   char ftyp;\n"
31723 "   char *name;\n"
31724 " };\n"
31725 " \n"
31726 msgstr ""
31727
31728 #. type: verbatim
31729 #: ../src/guestfs-structs.pod:167
31730 #, no-wrap
31731 msgid ""
31732 " struct guestfs_dirent_list {\n"
31733 "   uint32_t len; /* Number of elements in list. */\n"
31734 "   struct guestfs_dirent *val; /* Elements. */\n"
31735 " };\n"
31736 " \n"
31737 msgstr ""
31738
31739 #. type: verbatim
31740 #: ../src/guestfs-structs.pod:172
31741 #, no-wrap
31742 msgid ""
31743 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
31744 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
31745 "\n"
31746 msgstr ""
31747
31748 #. type: verbatim
31749 #: ../src/guestfs-structs.pod:177
31750 #, no-wrap
31751 msgid ""
31752 " struct guestfs_version {\n"
31753 "   int64_t major;\n"
31754 "   int64_t minor;\n"
31755 "   int64_t release;\n"
31756 "   char *extra;\n"
31757 " };\n"
31758 " \n"
31759 msgstr ""
31760
31761 #. type: verbatim
31762 #: ../src/guestfs-structs.pod:184
31763 #, no-wrap
31764 msgid ""
31765 " struct guestfs_version_list {\n"
31766 "   uint32_t len; /* Number of elements in list. */\n"
31767 "   struct guestfs_version *val; /* Elements. */\n"
31768 " };\n"
31769 " \n"
31770 msgstr ""
31771
31772 #. type: verbatim
31773 #: ../src/guestfs-structs.pod:189
31774 #, no-wrap
31775 msgid ""
31776 " void guestfs_free_version (struct guestfs_free_version *);\n"
31777 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
31778 "\n"
31779 msgstr ""
31780
31781 #. type: =head2
31782 #: ../src/guestfs-structs.pod:192
31783 msgid "guestfs_xattr"
31784 msgstr ""
31785
31786 #. type: verbatim
31787 #: ../src/guestfs-structs.pod:194
31788 #, no-wrap
31789 msgid ""
31790 " struct guestfs_xattr {\n"
31791 "   char *attrname;\n"
31792 "   /* The next two fields describe a byte array. */\n"
31793 "   uint32_t attrval_len;\n"
31794 "   char *attrval;\n"
31795 " };\n"
31796 " \n"
31797 msgstr ""
31798
31799 #. type: verbatim
31800 #: ../src/guestfs-structs.pod:201
31801 #, no-wrap
31802 msgid ""
31803 " struct guestfs_xattr_list {\n"
31804 "   uint32_t len; /* Number of elements in list. */\n"
31805 "   struct guestfs_xattr *val; /* Elements. */\n"
31806 " };\n"
31807 " \n"
31808 msgstr ""
31809
31810 #. type: verbatim
31811 #: ../src/guestfs-structs.pod:206
31812 #, no-wrap
31813 msgid ""
31814 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
31815 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
31816 "\n"
31817 msgstr ""
31818
31819 #. type: =head2
31820 #: ../src/guestfs-structs.pod:209
31821 msgid "guestfs_inotify_event"
31822 msgstr ""
31823
31824 #. type: verbatim
31825 #: ../src/guestfs-structs.pod:211
31826 #, no-wrap
31827 msgid ""
31828 " struct guestfs_inotify_event {\n"
31829 "   int64_t in_wd;\n"
31830 "   uint32_t in_mask;\n"
31831 "   uint32_t in_cookie;\n"
31832 "   char *in_name;\n"
31833 " };\n"
31834 " \n"
31835 msgstr ""
31836
31837 #. type: verbatim
31838 #: ../src/guestfs-structs.pod:218
31839 #, no-wrap
31840 msgid ""
31841 " struct guestfs_inotify_event_list {\n"
31842 "   uint32_t len; /* Number of elements in list. */\n"
31843 "   struct guestfs_inotify_event *val; /* Elements. */\n"
31844 " };\n"
31845 " \n"
31846 msgstr ""
31847
31848 #. type: verbatim
31849 #: ../src/guestfs-structs.pod:223
31850 #, no-wrap
31851 msgid ""
31852 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
31853 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
31854 "\n"
31855 msgstr ""
31856
31857 #. type: =head2
31858 #: ../src/guestfs-structs.pod:226
31859 msgid "guestfs_partition"
31860 msgstr ""
31861
31862 #. type: verbatim
31863 #: ../src/guestfs-structs.pod:228
31864 #, no-wrap
31865 msgid ""
31866 " struct guestfs_partition {\n"
31867 "   int32_t part_num;\n"
31868 "   uint64_t part_start;\n"
31869 "   uint64_t part_end;\n"
31870 "   uint64_t part_size;\n"
31871 " };\n"
31872 " \n"
31873 msgstr ""
31874
31875 #. type: verbatim
31876 #: ../src/guestfs-structs.pod:235
31877 #, no-wrap
31878 msgid ""
31879 " struct guestfs_partition_list {\n"
31880 "   uint32_t len; /* Number of elements in list. */\n"
31881 "   struct guestfs_partition *val; /* Elements. */\n"
31882 " };\n"
31883 " \n"
31884 msgstr ""
31885
31886 #. type: verbatim
31887 #: ../src/guestfs-structs.pod:240
31888 #, no-wrap
31889 msgid ""
31890 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
31891 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
31892 "\n"
31893 msgstr ""
31894
31895 #. type: =head2
31896 #: ../src/guestfs-structs.pod:243
31897 msgid "guestfs_application"
31898 msgstr ""
31899
31900 #. type: verbatim
31901 #: ../src/guestfs-structs.pod:245
31902 #, no-wrap
31903 msgid ""
31904 " struct guestfs_application {\n"
31905 "   char *app_name;\n"
31906 "   char *app_display_name;\n"
31907 "   int32_t app_epoch;\n"
31908 "   char *app_version;\n"
31909 "   char *app_release;\n"
31910 "   char *app_install_path;\n"
31911 "   char *app_trans_path;\n"
31912 "   char *app_publisher;\n"
31913 "   char *app_url;\n"
31914 "   char *app_source_package;\n"
31915 "   char *app_summary;\n"
31916 "   char *app_description;\n"
31917 " };\n"
31918 " \n"
31919 msgstr ""
31920
31921 #. type: verbatim
31922 #: ../src/guestfs-structs.pod:260
31923 #, no-wrap
31924 msgid ""
31925 " struct guestfs_application_list {\n"
31926 "   uint32_t len; /* Number of elements in list. */\n"
31927 "   struct guestfs_application *val; /* Elements. */\n"
31928 " };\n"
31929 " \n"
31930 msgstr ""
31931
31932 #. type: verbatim
31933 #: ../src/guestfs-structs.pod:265
31934 #, no-wrap
31935 msgid ""
31936 " void guestfs_free_application (struct guestfs_free_application *);\n"
31937 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
31938 "\n"
31939 msgstr ""
31940
31941 #. type: textblock
31942 #: ../src/guestfs.pod:5
31943 msgid "guestfs - Library for accessing and modifying virtual machine images"
31944 msgstr ""
31945
31946 #. type: verbatim
31947 #: ../src/guestfs.pod:11
31948 #, no-wrap
31949 msgid ""
31950 " guestfs_h *g = guestfs_create ();\n"
31951 " guestfs_add_drive (g, \"guest.img\");\n"
31952 " guestfs_launch (g);\n"
31953 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
31954 " guestfs_touch (g, \"/hello\");\n"
31955 " guestfs_umount (g, \"/\");\n"
31956 " guestfs_close (g);\n"
31957 "\n"
31958 msgstr ""
31959
31960 #. type: textblock
31961 #: ../src/guestfs.pod:25
31962 msgid ""
31963 "Libguestfs is a library for accessing and modifying guest disk images.  "
31964 "Amongst the things this is good for: making batch configuration changes to "
31965 "guests, getting disk used/free statistics (see also: virt-df), migrating "
31966 "between virtualization systems (see also: virt-p2v), performing partial "
31967 "backups, performing partial guest clones, cloning guests and changing "
31968 "registry/UUID/hostname info, and much else besides."
31969 msgstr ""
31970
31971 #. type: textblock
31972 #: ../src/guestfs.pod:33
31973 msgid ""
31974 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
31975 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
31976 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
31977 "qcow2, vmdk."
31978 msgstr ""
31979
31980 #. type: textblock
31981 #: ../src/guestfs.pod:38
31982 msgid ""
31983 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
31984 "what filesystem is in each LV, etc.).  It can also run commands in the "
31985 "context of the guest.  Also you can access filesystems over FUSE."
31986 msgstr ""
31987
31988 #. type: textblock
31989 #: ../src/guestfs.pod:43
31990 msgid ""
31991 "Libguestfs is a library that can be linked with C and C++ management "
31992 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
31993 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
31994 "command line."
31995 msgstr ""
31996
31997 #. type: textblock
31998 #: ../src/guestfs.pod:48
31999 msgid ""
32000 "You don't need to be root to use libguestfs, although obviously you do need "
32001 "enough permissions to access the disk images."
32002 msgstr ""
32003
32004 #. type: textblock
32005 #: ../src/guestfs.pod:51
32006 msgid ""
32007 "Libguestfs is a large API because it can do many things.  For a gentle "
32008 "introduction, please read the L</API OVERVIEW> section next."
32009 msgstr ""
32010
32011 #. type: textblock
32012 #: ../src/guestfs.pod:54
32013 msgid ""
32014 "There are also some example programs in the L<guestfs-examples(3)> manual "
32015 "page."
32016 msgstr ""
32017
32018 #. type: =head1
32019 #: ../src/guestfs.pod:57
32020 msgid "API OVERVIEW"
32021 msgstr ""
32022
32023 #. type: textblock
32024 #: ../src/guestfs.pod:59
32025 msgid ""
32026 "This section provides a gentler overview of the libguestfs API.  We also try "
32027 "to group API calls together, where that may not be obvious from reading "
32028 "about the individual calls in the main section of this manual."
32029 msgstr ""
32030
32031 #. type: =head2
32032 #: ../src/guestfs.pod:64
32033 msgid "HANDLES"
32034 msgstr ""
32035
32036 #. type: textblock
32037 #: ../src/guestfs.pod:66
32038 msgid ""
32039 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32040 "must add at least one disk image to the handle, followed by launching the "
32041 "handle, then performing whatever operations you want, and finally closing "
32042 "the handle.  By convention we use the single letter C<g> for the name of the "
32043 "handle variable, although of course you can use any name you want."
32044 msgstr ""
32045
32046 #. type: textblock
32047 #: ../src/guestfs.pod:73
32048 msgid "The general structure of all libguestfs-using programs looks like this:"
32049 msgstr ""
32050
32051 #. type: verbatim
32052 #: ../src/guestfs.pod:76
32053 #, no-wrap
32054 msgid ""
32055 " guestfs_h *g = guestfs_create ();\n"
32056 " \n"
32057 msgstr ""
32058
32059 #. type: verbatim
32060 #: ../src/guestfs.pod:78
32061 #, no-wrap
32062 msgid ""
32063 " /* Call guestfs_add_drive additional times if there are\n"
32064 "  * multiple disk images.\n"
32065 "  */\n"
32066 " guestfs_add_drive (g, \"guest.img\");\n"
32067 " \n"
32068 msgstr ""
32069
32070 #. type: verbatim
32071 #: ../src/guestfs.pod:83
32072 #, no-wrap
32073 msgid ""
32074 " /* Most manipulation calls won't work until you've launched\n"
32075 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32076 "  * and _before_ other commands.\n"
32077 "  */\n"
32078 " guestfs_launch (g);\n"
32079 " \n"
32080 msgstr ""
32081
32082 #. type: verbatim
32083 #: ../src/guestfs.pod:89
32084 #, no-wrap
32085 msgid ""
32086 " /* Now you can examine what partitions, LVs etc are available.\n"
32087 "  */\n"
32088 " char **partitions = guestfs_list_partitions (g);\n"
32089 " char **logvols = guestfs_lvs (g);\n"
32090 " \n"
32091 msgstr ""
32092
32093 #. type: verbatim
32094 #: ../src/guestfs.pod:94
32095 #, no-wrap
32096 msgid ""
32097 " /* To access a filesystem in the image, you must mount it.\n"
32098 "  */\n"
32099 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32100 " \n"
32101 msgstr ""
32102
32103 #. type: verbatim
32104 #: ../src/guestfs.pod:98
32105 #, no-wrap
32106 msgid ""
32107 " /* Now you can perform filesystem actions on the guest\n"
32108 "  * disk image.\n"
32109 "  */\n"
32110 " guestfs_touch (g, \"/hello\");\n"
32111 " \n"
32112 msgstr ""
32113
32114 #. type: verbatim
32115 #: ../src/guestfs.pod:103
32116 #, no-wrap
32117 msgid ""
32118 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32119 "  * it is done automatically when you close the handle.  See\n"
32120 "  * discussion of autosync in this page.\n"
32121 "  */\n"
32122 " guestfs_sync (g);\n"
32123 " \n"
32124 msgstr ""
32125
32126 #. type: verbatim
32127 #: ../src/guestfs.pod:109
32128 #, no-wrap
32129 msgid ""
32130 " /* Close the handle 'g'. */\n"
32131 " guestfs_close (g);\n"
32132 "\n"
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs.pod:112
32137 msgid ""
32138 "The code above doesn't include any error checking.  In real code you should "
32139 "check return values carefully for errors.  In general all functions that "
32140 "return integers return C<-1> on error, and all functions that return "
32141 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32142 "how to handle errors, and consult the documentation for each function call "
32143 "below to see precisely how they return error indications.  See L<guestfs-"
32144 "examples(3)> for fully worked examples."
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs.pod:121
32149 msgid "DISK IMAGES"
32150 msgstr ""
32151
32152 #. type: textblock
32153 #: ../src/guestfs.pod:123
32154 msgid ""
32155 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32156 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32157 "actual block device, or simply an empty file of zeroes that you have created "
32158 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32159 "of these."
32160 msgstr ""
32161
32162 #. type: textblock
32163 #: ../src/guestfs.pod:129
32164 msgid ""
32165 "The call you should use in modern code for adding drives is L</"
32166 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32167 "specifying that the format is raw, do:"
32168 msgstr ""
32169
32170 #. type: verbatim
32171 #: ../src/guestfs.pod:133
32172 #, no-wrap
32173 msgid ""
32174 " guestfs_add_drive_opts (g, filename,\n"
32175 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32176 "                         -1);\n"
32177 "\n"
32178 msgstr ""
32179
32180 #. type: textblock
32181 #: ../src/guestfs.pod:137
32182 msgid "You can add a disk read-only using:"
32183 msgstr ""
32184
32185 #. type: verbatim
32186 #: ../src/guestfs.pod:139
32187 #, no-wrap
32188 msgid ""
32189 " guestfs_add_drive_opts (g, filename,\n"
32190 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32191 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32192 "                         -1);\n"
32193 "\n"
32194 msgstr ""
32195
32196 #. type: textblock
32197 #: ../src/guestfs.pod:144
32198 msgid ""
32199 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32200 "libguestfs won't modify the file."
32201 msgstr ""
32202
32203 #. type: textblock
32204 #: ../src/guestfs.pod:147
32205 msgid ""
32206 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32207 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32208 "corruption, but adding it read-only is safe."
32209 msgstr ""
32210
32211 #. type: textblock
32212 #: ../src/guestfs.pod:151
32213 msgid ""
32214 "You must add at least one disk image, and you may add multiple disk images.  "
32215 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32216 "first one you added), C</dev/sdb> (for the second one you added), etc."
32217 msgstr ""
32218
32219 #. type: textblock
32220 #: ../src/guestfs.pod:156
32221 msgid ""
32222 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32223 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32224 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32225 msgstr ""
32226
32227 #. type: =head2
32228 #: ../src/guestfs.pod:161
32229 msgid "MOUNTING"
32230 msgstr ""
32231
32232 #. type: textblock
32233 #: ../src/guestfs.pod:163
32234 msgid ""
32235 "Before you can read or write files, create directories and so on in a disk "
32236 "image that contains filesystems, you have to mount those filesystems using "
32237 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32238 "a disk image contains (for example) one partition with a filesystem on that "
32239 "partition, then you can mount it directly:"
32240 msgstr ""
32241
32242 #. type: verbatim
32243 #: ../src/guestfs.pod:170
32244 #, no-wrap
32245 msgid ""
32246 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32247 "\n"
32248 msgstr ""
32249
32250 #. type: textblock
32251 #: ../src/guestfs.pod:172
32252 msgid ""
32253 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32254 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32255 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32256 "that these are libguestfs virtual devices, and are nothing to do with host "
32257 "devices."
32258 msgstr ""
32259
32260 #. type: textblock
32261 #: ../src/guestfs.pod:178
32262 msgid ""
32263 "If you are given a disk image and you don't know what it contains then you "
32264 "have to find out.  Libguestfs can do that too: use L</"
32265 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32266 "LVs, and either try mounting each to see what is mountable, or else examine "
32267 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32268 "filesystems, use L</guestfs_list_filesystems>."
32269 msgstr ""
32270
32271 #. type: textblock
32272 #: ../src/guestfs.pod:186
32273 msgid ""
32274 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32275 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32276 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32277 msgstr ""
32278
32279 #. type: textblock
32280 #: ../src/guestfs.pod:191
32281 msgid ""
32282 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32283 "several other variations of the C<guestfs_mount_*> call."
32284 msgstr ""
32285
32286 #. type: =head2
32287 #: ../src/guestfs.pod:194
32288 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32289 msgstr ""
32290
32291 #. type: textblock
32292 #: ../src/guestfs.pod:196
32293 msgid ""
32294 "The majority of the libguestfs API consists of fairly low-level calls for "
32295 "accessing and modifying the files, directories, symlinks etc on mounted "
32296 "filesystems.  There are over a hundred such calls which you can find listed "
32297 "in detail below in this man page, and we don't even pretend to cover them "
32298 "all in this overview."
32299 msgstr ""
32300
32301 #. type: textblock
32302 #: ../src/guestfs.pod:202
32303 msgid ""
32304 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32305 "mount point."
32306 msgstr ""
32307
32308 #. type: textblock
32309 #: ../src/guestfs.pod:205
32310 msgid ""
32311 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32312 "the file called C<\"etc/passwd\"> then you could do:"
32313 msgstr ""
32314
32315 #. type: verbatim
32316 #: ../src/guestfs.pod:208
32317 #, no-wrap
32318 msgid ""
32319 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32320 "\n"
32321 msgstr ""
32322
32323 #. type: textblock
32324 #: ../src/guestfs.pod:210
32325 msgid ""
32326 "This would return C<data> as a newly allocated buffer containing the full "
32327 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32328 "or C<NULL> if there was an error."
32329 msgstr ""
32330
32331 #. type: textblock
32332 #: ../src/guestfs.pod:214
32333 msgid ""
32334 "As another example, to create a top-level directory on that filesystem "
32335 "called C<\"var\"> you would do:"
32336 msgstr ""
32337
32338 #. type: verbatim
32339 #: ../src/guestfs.pod:217
32340 #, no-wrap
32341 msgid ""
32342 " guestfs_mkdir (g, \"/var\");\n"
32343 "\n"
32344 msgstr ""
32345
32346 #. type: textblock
32347 #: ../src/guestfs.pod:219
32348 msgid "To create a symlink you could do:"
32349 msgstr ""
32350
32351 #. type: verbatim
32352 #: ../src/guestfs.pod:221
32353 #, no-wrap
32354 msgid ""
32355 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32356 "               \"/etc/rc3.d/S30portmap\");\n"
32357 "\n"
32358 msgstr ""
32359
32360 #. type: textblock
32361 #: ../src/guestfs.pod:224
32362 msgid ""
32363 "Libguestfs will reject attempts to use relative paths and there is no "
32364 "concept of a current working directory."
32365 msgstr ""
32366
32367 #. type: textblock
32368 #: ../src/guestfs.pod:227
32369 msgid ""
32370 "Libguestfs can return errors in many situations: for example if the "
32371 "filesystem isn't writable, or if a file or directory that you requested "
32372 "doesn't exist.  If you are using the C API (documented here)  you have to "
32373 "check for those error conditions after each call.  (Other language bindings "
32374 "turn these errors into exceptions)."
32375 msgstr ""
32376
32377 #. type: textblock
32378 #: ../src/guestfs.pod:233
32379 msgid ""
32380 "File writes are affected by the per-handle umask, set by calling L</"
32381 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32382 msgstr ""
32383
32384 #. type: =head2
32385 #: ../src/guestfs.pod:236
32386 msgid "PARTITIONING"
32387 msgstr ""
32388
32389 #. type: textblock
32390 #: ../src/guestfs.pod:238
32391 msgid ""
32392 "Libguestfs contains API calls to read, create and modify partition tables on "
32393 "disk images."
32394 msgstr ""
32395
32396 #. type: textblock
32397 #: ../src/guestfs.pod:241
32398 msgid ""
32399 "In the common case where you want to create a single partition covering the "
32400 "whole disk, you should use the L</guestfs_part_disk> call:"
32401 msgstr ""
32402
32403 #. type: verbatim
32404 #: ../src/guestfs.pod:245
32405 #, no-wrap
32406 msgid ""
32407 " const char *parttype = \"mbr\";\n"
32408 " if (disk_is_larger_than_2TB)\n"
32409 "   parttype = \"gpt\";\n"
32410 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32411 "\n"
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../src/guestfs.pod:250
32416 msgid ""
32417 "Obviously this effectively wipes anything that was on that disk image before."
32418 msgstr ""
32419
32420 #. type: =head2
32421 #: ../src/guestfs.pod:253
32422 msgid "LVM2"
32423 msgstr ""
32424
32425 #. type: textblock
32426 #: ../src/guestfs.pod:255
32427 msgid ""
32428 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32429 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32430 "you familiarize yourself with the concepts of physical volumes, volume "
32431 "groups and logical volumes."
32432 msgstr ""
32433
32434 #. type: textblock
32435 #: ../src/guestfs.pod:260
32436 msgid ""
32437 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32438 "tldp.org/HOWTO/LVM-HOWTO/>."
32439 msgstr ""
32440
32441 #. type: =head2
32442 #: ../src/guestfs.pod:263
32443 msgid "DOWNLOADING"
32444 msgstr ""
32445
32446 #. type: textblock
32447 #: ../src/guestfs.pod:265
32448 msgid ""
32449 "Use L</guestfs_cat> to download small, text only files.  This call is "
32450 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32451 "NUL (C<\\0>) characters.  However the API is very simple to use."
32452 msgstr ""
32453
32454 #. type: textblock
32455 #: ../src/guestfs.pod:269
32456 msgid ""
32457 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32458 "bit data, since it returns a (pointer, size) pair.  However it is still "
32459 "limited to \"small\" files, less than 2 MB."
32460 msgstr ""
32461
32462 #. type: textblock
32463 #: ../src/guestfs.pod:273
32464 msgid ""
32465 "L</guestfs_download> can be used to download any file, with no limits on "
32466 "content or size (even files larger than 4 GB)."
32467 msgstr ""
32468
32469 #. type: textblock
32470 #: ../src/guestfs.pod:276
32471 msgid ""
32472 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32473 msgstr ""
32474
32475 #. type: =head2
32476 #: ../src/guestfs.pod:279
32477 msgid "UPLOADING"
32478 msgstr ""
32479
32480 #. type: textblock
32481 #: ../src/guestfs.pod:281
32482 msgid ""
32483 "It's often the case that you want to write a file or files to the disk image."
32484 msgstr ""
32485
32486 #. type: textblock
32487 #: ../src/guestfs.pod:284
32488 msgid ""
32489 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32490 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32491 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32492 "of other functions for creating test files, for example L</guestfs_fill> and "
32493 "L</guestfs_fill_pattern>."
32494 msgstr ""
32495
32496 #. type: textblock
32497 #: ../src/guestfs.pod:290
32498 msgid ""
32499 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32500 "file content or size (even files larger than 4 GB)."
32501 msgstr ""
32502
32503 #. type: textblock
32504 #: ../src/guestfs.pod:293
32505 msgid ""
32506 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32507 msgstr ""
32508
32509 #. type: textblock
32510 #: ../src/guestfs.pod:295
32511 msgid ""
32512 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32513 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32514 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32515 "in a predictable way (eg. adding it last after all other drives) then you "
32516 "can get the device name from L</guestfs_list_devices> and mount it directly "
32517 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32518 "portable between kernel versions, and they don't support labels or UUIDs.  "
32519 "If you want to pre-build an image or you need to mount it using a label or "
32520 "UUID, use an ISO image instead."
32521 msgstr ""
32522
32523 #. type: =head2
32524 #: ../src/guestfs.pod:306
32525 msgid "COPYING"
32526 msgstr ""
32527
32528 #. type: textblock
32529 #: ../src/guestfs.pod:308
32530 msgid ""
32531 "There are various different commands for copying between files and devices "
32532 "and in and out of the guest filesystem.  These are summarised in the table "
32533 "below."
32534 msgstr ""
32535
32536 #. type: =item
32537 #: ../src/guestfs.pod:314
32538 msgid "B<file> to B<file>"
32539 msgstr ""
32540
32541 #. type: textblock
32542 #: ../src/guestfs.pod:316
32543 msgid ""
32544 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32545 "directories recursively."
32546 msgstr ""
32547
32548 #. type: =item
32549 #: ../src/guestfs.pod:319
32550 msgid "B<file or device> to B<file or device>"
32551 msgstr ""
32552
32553 #. type: textblock
32554 #: ../src/guestfs.pod:321
32555 msgid ""
32556 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32557 "devices in the guest."
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:324
32562 msgid "Example: duplicate the contents of an LV:"
32563 msgstr ""
32564
32565 #. type: verbatim
32566 #: ../src/guestfs.pod:326
32567 #, no-wrap
32568 msgid ""
32569 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32570 "\n"
32571 msgstr ""
32572
32573 #. type: textblock
32574 #: ../src/guestfs.pod:328
32575 msgid ""
32576 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32577 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
32578 "guestfs_copy_size>."
32579 msgstr ""
32580
32581 #. type: =item
32582 #: ../src/guestfs.pod:332
32583 msgid "B<file on the host> to B<file or device>"
32584 msgstr ""
32585
32586 #. type: textblock
32587 #: ../src/guestfs.pod:334
32588 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
32589 msgstr ""
32590
32591 #. type: =item
32592 #: ../src/guestfs.pod:336
32593 msgid "B<file or device> to B<file on the host>"
32594 msgstr ""
32595
32596 #. type: textblock
32597 #: ../src/guestfs.pod:338
32598 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
32599 msgstr ""
32600
32601 #. type: =head2
32602 #: ../src/guestfs.pod:342
32603 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
32604 msgstr ""
32605
32606 #. type: textblock
32607 #: ../src/guestfs.pod:344
32608 msgid ""
32609 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
32610 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
32611 "appears you can only upload and download to files.  However many Un*x-like "
32612 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
32613 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
32614 "and arbitrary file descriptor N."
32615 msgstr ""
32616
32617 #. type: textblock
32618 #: ../src/guestfs.pod:352
32619 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
32620 msgstr ""
32621
32622 #. type: verbatim
32623 #: ../src/guestfs.pod:355
32624 #, no-wrap
32625 msgid ""
32626 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32627 "\n"
32628 msgstr ""
32629
32630 #. type: textblock
32631 #: ../src/guestfs.pod:357
32632 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
32633 msgstr ""
32634
32635 #. type: verbatim
32636 #: ../src/guestfs.pod:359
32637 #, no-wrap
32638 msgid ""
32639 " char devfd[64];\n"
32640 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
32641 " guestfs_tar_out (g, \"/\", devfd);\n"
32642 "\n"
32643 msgstr ""
32644
32645 #. type: =head2
32646 #: ../src/guestfs.pod:363
32647 msgid "LISTING FILES"
32648 msgstr ""
32649
32650 #. type: textblock
32651 #: ../src/guestfs.pod:365
32652 msgid ""
32653 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
32654 "L<guestfish(1)>-equivalent command C<ll>)."
32655 msgstr ""
32656
32657 #. type: textblock
32658 #: ../src/guestfs.pod:368
32659 msgid ""
32660 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
32661 "programs, as a flat list of strings."
32662 msgstr ""
32663
32664 #. type: textblock
32665 #: ../src/guestfs.pod:371
32666 msgid ""
32667 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
32668 "directory, plus additional information about each one.  It is more "
32669 "equivalent to using the L<readdir(3)> call on a local filesystem."
32670 msgstr ""
32671
32672 #. type: textblock
32673 #: ../src/guestfs.pod:375
32674 msgid ""
32675 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
32676 msgstr ""
32677
32678 #. type: =head2
32679 #: ../src/guestfs.pod:378
32680 msgid "RUNNING COMMANDS"
32681 msgstr ""
32682
32683 #. type: textblock
32684 #: ../src/guestfs.pod:380
32685 msgid ""
32686 "Although libguestfs is primarily an API for manipulating files inside guest "
32687 "images, we also provide some limited facilities for running commands inside "
32688 "guests."
32689 msgstr ""
32690
32691 #. type: textblock
32692 #: ../src/guestfs.pod:384
32693 msgid "There are many limitations to this:"
32694 msgstr ""
32695
32696 #. type: textblock
32697 #: ../src/guestfs.pod:390
32698 msgid ""
32699 "The kernel version that the command runs under will be different from what "
32700 "it expects."
32701 msgstr ""
32702
32703 #. type: textblock
32704 #: ../src/guestfs.pod:395
32705 msgid ""
32706 "If the command needs to communicate with daemons, then most likely they "
32707 "won't be running."
32708 msgstr ""
32709
32710 #. type: textblock
32711 #: ../src/guestfs.pod:400
32712 msgid "The command will be running in limited memory."
32713 msgstr ""
32714
32715 #. type: textblock
32716 #: ../src/guestfs.pod:404
32717 msgid ""
32718 "The network may not be available unless you enable it (see L</"
32719 "guestfs_set_network>)."
32720 msgstr ""
32721
32722 #. type: textblock
32723 #: ../src/guestfs.pod:409
32724 msgid "Only supports Linux guests (not Windows, BSD, etc)."
32725 msgstr ""
32726
32727 #. type: textblock
32728 #: ../src/guestfs.pod:413
32729 msgid ""
32730 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
32731 msgstr ""
32732
32733 #. type: textblock
32734 #: ../src/guestfs.pod:418
32735 msgid ""
32736 "For SELinux guests, you may need to enable SELinux and load policy first.  "
32737 "See L</SELINUX> in this manpage."
32738 msgstr ""
32739
32740 #. type: textblock
32741 #: ../src/guestfs.pod:423
32742 msgid ""
32743 "I<Security:> It is not safe to run commands from untrusted, possibly "
32744 "malicious guests.  These commands may attempt to exploit your program by "
32745 "sending unexpected output.  They could also try to exploit the Linux kernel "
32746 "or qemu provided by the libguestfs appliance.  They could use the network "
32747 "provided by the libguestfs appliance to bypass ordinary network partitions "
32748 "and firewalls.  They could use the elevated privileges or different SELinux "
32749 "context of your program to their advantage."
32750 msgstr ""
32751
32752 #. type: textblock
32753 #: ../src/guestfs.pod:432
32754 msgid ""
32755 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
32756 "(a script which runs when the guest next boots normally), and to have this "
32757 "script run the commands you want in the normal context of the running guest, "
32758 "network security and so on.  For information about other security issues, "
32759 "see L</SECURITY>."
32760 msgstr ""
32761
32762 #. type: textblock
32763 #: ../src/guestfs.pod:440
32764 msgid ""
32765 "The two main API calls to run commands are L</guestfs_command> and L</"
32766 "guestfs_sh> (there are also variations)."
32767 msgstr ""
32768
32769 #. type: textblock
32770 #: ../src/guestfs.pod:443
32771 msgid ""
32772 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
32773 "shell globs, redirections, etc will work."
32774 msgstr ""
32775
32776 #. type: =head2
32777 #: ../src/guestfs.pod:446
32778 msgid "CONFIGURATION FILES"
32779 msgstr ""
32780
32781 #. type: textblock
32782 #: ../src/guestfs.pod:448
32783 msgid ""
32784 "To read and write configuration files in Linux guest filesystems, we "
32785 "strongly recommend using Augeas.  For example, Augeas understands how to "
32786 "read and write, say, a Linux shadow password file or X.org configuration "
32787 "file, and so avoids you having to write that code."
32788 msgstr ""
32789
32790 #. type: textblock
32791 #: ../src/guestfs.pod:453
32792 msgid ""
32793 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
32794 "document Augeas itself here because there is excellent documentation on the "
32795 "L<http://augeas.net/> website."
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs.pod:457
32800 msgid ""
32801 "If you don't want to use Augeas (you fool!) then try calling L</"
32802 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
32803 "over."
32804 msgstr ""
32805
32806 #. type: =head2
32807 #: ../src/guestfs.pod:461
32808 msgid "SELINUX"
32809 msgstr ""
32810
32811 #. type: textblock
32812 #: ../src/guestfs.pod:463
32813 msgid ""
32814 "We support SELinux guests.  To ensure that labeling happens correctly in "
32815 "SELinux guests, you need to enable SELinux and load the guest's policy:"
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs.pod:471
32820 msgid "Before launching, do:"
32821 msgstr ""
32822
32823 #. type: verbatim
32824 #: ../src/guestfs.pod:473
32825 #, no-wrap
32826 msgid ""
32827 " guestfs_set_selinux (g, 1);\n"
32828 "\n"
32829 msgstr ""
32830
32831 #. type: textblock
32832 #: ../src/guestfs.pod:477
32833 msgid ""
32834 "After mounting the guest's filesystem(s), load the policy.  This is best "
32835 "done by running the L<load_policy(8)> command in the guest itself:"
32836 msgstr ""
32837
32838 #. type: verbatim
32839 #: ../src/guestfs.pod:481
32840 #, no-wrap
32841 msgid ""
32842 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
32843 "\n"
32844 msgstr ""
32845
32846 #. type: textblock
32847 #: ../src/guestfs.pod:483
32848 msgid ""
32849 "(Older versions of C<load_policy> require you to specify the name of the "
32850 "policy file)."
32851 msgstr ""
32852
32853 #. type: textblock
32854 #: ../src/guestfs.pod:488
32855 msgid ""
32856 "Optionally, set the security context for the API.  The correct security "
32857 "context to use can only be known by inspecting the guest.  As an example:"
32858 msgstr ""
32859
32860 #. type: verbatim
32861 #: ../src/guestfs.pod:492
32862 #, no-wrap
32863 msgid ""
32864 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
32865 "\n"
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs.pod:496
32870 msgid "This will work for running commands and editing existing files."
32871 msgstr ""
32872
32873 #. type: textblock
32874 #: ../src/guestfs.pod:498
32875 msgid ""
32876 "When new files are created, you may need to label them explicitly, for "
32877 "example by running the external command C<restorecon pathname>."
32878 msgstr ""
32879
32880 #. type: =head2
32881 #: ../src/guestfs.pod:502
32882 msgid "UMASK"
32883 msgstr ""
32884
32885 #. type: textblock
32886 #: ../src/guestfs.pod:504
32887 msgid ""
32888 "Certain calls are affected by the current file mode creation mask (the "
32889 "\"umask\").  In particular ones which create files or directories, such as "
32890 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
32891 "either the default mode that the file is created with or modifies the mode "
32892 "that you supply."
32893 msgstr ""
32894
32895 #. type: textblock
32896 #: ../src/guestfs.pod:510
32897 msgid ""
32898 "The default umask is C<022>, so files are created with modes such as C<0644> "
32899 "and directories with C<0755>."
32900 msgstr ""
32901
32902 #. type: textblock
32903 #: ../src/guestfs.pod:513
32904 msgid ""
32905 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
32906 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
32907 "guestfs_chmod> after creating each file or directory."
32908 msgstr ""
32909
32910 #. type: textblock
32911 #: ../src/guestfs.pod:517
32912 msgid "For more information about umask, see L<umask(2)>."
32913 msgstr ""
32914
32915 #. type: textblock
32916 #: ../src/guestfs.pod:521
32917 msgid ""
32918 "Libguestfs allows you to access Linux guests which have been encrypted using "
32919 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
32920 "standard.  This includes nearly all whole disk encryption systems used by "
32921 "modern Linux guests."
32922 msgstr ""
32923
32924 #. type: textblock
32925 #: ../src/guestfs.pod:527
32926 msgid ""
32927 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
32928 "returns the string C<crypto_LUKS>)."
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs.pod:530
32933 msgid ""
32934 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
32935 "will require the passphrase!"
32936 msgstr ""
32937
32938 #. type: textblock
32939 #: ../src/guestfs.pod:533
32940 msgid ""
32941 "Opening a LUKS device creates a new device mapper device called C</dev/"
32942 "mapper/mapname> (where C<mapname> is the string you supply to L</"
32943 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
32944 "from and encrypted to the underlying block device respectively."
32945 msgstr ""
32946
32947 #. type: textblock
32948 #: ../src/guestfs.pod:539
32949 msgid ""
32950 "LVM volume groups on the device can be made visible by calling L</"
32951 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
32952 "(s) can now be mounted in the usual way."
32953 msgstr ""
32954
32955 #. type: textblock
32956 #: ../src/guestfs.pod:543
32957 msgid ""
32958 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
32959 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
32960 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
32961 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
32962 "underlying encrypted block device)."
32963 msgstr ""
32964
32965 #. type: =head2
32966 #: ../src/guestfs.pod:550
32967 msgid "INSPECTION"
32968 msgstr ""
32969
32970 #. type: textblock
32971 #: ../src/guestfs.pod:552
32972 msgid ""
32973 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
32974 "contains operating systems, an install CD or a live CD.  (These APIs used to "
32975 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
32976 "version 1.5.3 the most frequently used part of this library has been "
32977 "rewritten in C and moved into the core code)."
32978 msgstr ""
32979
32980 #. type: textblock
32981 #: ../src/guestfs.pod:559
32982 msgid ""
32983 "Add all disks belonging to the unknown virtual machine and call L</"
32984 "guestfs_launch> in the usual way."
32985 msgstr ""
32986
32987 #. type: textblock
32988 #: ../src/guestfs.pod:562
32989 msgid ""
32990 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
32991 "and certain heuristics, and returns a list of operating systems that were "
32992 "found.  An empty list means none were found.  A single element is the root "
32993 "filesystem of the operating system.  For dual- or multi-boot guests, "
32994 "multiple roots can be returned, each one corresponding to a separate "
32995 "operating system.  (Multi-boot virtual machines are extremely rare in the "
32996 "world of virtualization, but since this scenario can happen, we have built "
32997 "libguestfs to deal with it.)"
32998 msgstr ""
32999
33000 #. type: textblock
33001 #: ../src/guestfs.pod:571
33002 msgid ""
33003 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33004 "to get additional details about that operating system.  For example, call L</"
33005 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33006 "Windows and Linux-based operating systems respectively."
33007 msgstr ""
33008
33009 #. type: textblock
33010 #: ../src/guestfs.pod:577
33011 msgid ""
33012 "Un*x-like and Linux-based operating systems usually consist of several "
33013 "filesystems which are mounted at boot time (for example, a separate boot "
33014 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33015 "filesystems correspond to mount points.  Call "
33016 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33017 "hash table like this example:"
33018 msgstr ""
33019
33020 #. type: verbatim
33021 #: ../src/guestfs.pod:584
33022 #, no-wrap
33023 msgid ""
33024 " /boot => /dev/sda1\n"
33025 " /     => /dev/vg_guest/lv_root\n"
33026 " /usr  => /dev/vg_guest/lv_usr\n"
33027 "\n"
33028 msgstr ""
33029
33030 #. type: textblock
33031 #: ../src/guestfs.pod:588
33032 msgid ""
33033 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33034 "filesystems as suggested."
33035 msgstr ""
33036
33037 #. type: textblock
33038 #: ../src/guestfs.pod:591
33039 msgid ""
33040 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33041 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33042 msgstr ""
33043
33044 #. type: textblock
33045 #: ../src/guestfs.pod:595
33046 msgid ""
33047 "Inspection currently only works for some common operating systems.  "
33048 "Contributors are welcome to send patches for other operating systems that we "
33049 "currently cannot detect."
33050 msgstr ""
33051
33052 #. type: textblock
33053 #: ../src/guestfs.pod:599
33054 msgid ""
33055 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33056 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33057 "encrypted devices."
33058 msgstr ""
33059
33060 #. type: textblock
33061 #: ../src/guestfs.pod:603
33062 msgid ""
33063 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33064 "inspection and caches the results in the guest handle.  Subsequent calls to "
33065 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33066 "read the disks.  If you change the content of the guest disks, you can redo "
33067 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33068 "guestfs_inspect_list_applications> works a little differently from the other "
33069 "calls and does read the disks.  See documentation for that function for "
33070 "details)."
33071 msgstr ""
33072
33073 #. type: =head3
33074 #: ../src/guestfs.pod:612
33075 msgid "INSPECTING INSTALL DISKS"
33076 msgstr ""
33077
33078 #. type: textblock
33079 #: ../src/guestfs.pod:614
33080 msgid ""
33081 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33082 "CDs and more."
33083 msgstr ""
33084
33085 #. type: textblock
33086 #: ../src/guestfs.pod:617
33087 msgid ""
33088 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33089 "system, which currently can be C<installed> (a regular operating system) or "
33090 "C<installer> (some sort of install disk)."
33091 msgstr ""
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:621
33095 msgid ""
33096 "Further information is available about the operating system that can be "
33097 "installed using the regular inspection APIs like L</"
33098 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33099 msgstr ""
33100
33101 #. type: textblock
33102 #: ../src/guestfs.pod:626
33103 msgid ""
33104 "Some additional information specific to installer disks is also available "
33105 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33106 "guestfs_inspect_is_multipart> calls."
33107 msgstr ""
33108
33109 #. type: =head2
33110 #: ../src/guestfs.pod:631
33111 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33112 msgstr ""
33113
33114 #. type: textblock
33115 #: ../src/guestfs.pod:633
33116 msgid ""
33117 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33118 "ntfs-3g.org/> driver."
33119 msgstr ""
33120
33121 #. type: =head3
33122 #: ../src/guestfs.pod:636
33123 msgid "DRIVE LETTERS AND PATHS"
33124 msgstr ""
33125
33126 #. type: textblock
33127 #: ../src/guestfs.pod:638
33128 msgid ""
33129 "DOS and Windows still use drive letters, and the filesystems are always "
33130 "treated as case insensitive by Windows itself, and therefore you might find "
33131 "a Windows configuration file referring to a path like C<c:\\windows"
33132 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33133 "might be referred to as C</WINDOWS/System32>."
33134 msgstr ""
33135
33136 #. type: textblock
33137 #: ../src/guestfs.pod:644
33138 msgid ""
33139 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33140 "L</guestfs_inspect_get_drive_mappings>)"
33141 msgstr ""
33142
33143 #. type: textblock
33144 #: ../src/guestfs.pod:647
33145 msgid ""
33146 "Dealing with separator characters (backslash vs forward slash) is outside "
33147 "the scope of libguestfs, but usually a simple character replacement will "
33148 "work."
33149 msgstr ""
33150
33151 #. type: textblock
33152 #: ../src/guestfs.pod:651
33153 msgid ""
33154 "To resolve the case insensitivity of paths, call L</"
33155 "guestfs_case_sensitive_path>."
33156 msgstr ""
33157
33158 #. type: =head3
33159 #: ../src/guestfs.pod:654
33160 msgid "ACCESSING THE WINDOWS REGISTRY"
33161 msgstr ""
33162
33163 #. type: textblock
33164 #: ../src/guestfs.pod:656
33165 msgid ""
33166 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33167 "files, through the library C<hivex> which is part of the libguestfs project "
33168 "although ships as a separate tarball.  You have to locate and download the "
33169 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33170 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33171 "reg(1)> for more help on this issue."
33172 msgstr ""
33173
33174 #. type: =head3
33175 #: ../src/guestfs.pod:664
33176 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33177 msgstr ""
33178
33179 #. type: textblock
33180 #: ../src/guestfs.pod:666
33181 msgid ""
33182 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33183 "provide something which looks like a Linux symlink.  The way it tries to do "
33184 "the rewriting is described here:"
33185 msgstr ""
33186
33187 #. type: textblock
33188 #: ../src/guestfs.pod:670
33189 msgid ""
33190 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33191 "symbolic-links/>"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:672
33196 msgid ""
33197 "The essential problem is that ntfs-3g simply does not have enough "
33198 "information to do a correct job.  NTFS links can contain drive letters and "
33199 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33200 "It is almost certainly the case that libguestfs callers should ignore what "
33201 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33202 msgstr ""
33203
33204 #. type: textblock
33205 #: ../src/guestfs.pod:679
33206 msgid ""
33207 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33208 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33209 "attribute, and read the raw reparse data from that (you can find the format "
33210 "documented in various places around the web)."
33211 msgstr ""
33212
33213 #. type: =head3
33214 #: ../src/guestfs.pod:684
33215 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33216 msgstr ""
33217
33218 #. type: textblock
33219 #: ../src/guestfs.pod:686
33220 msgid ""
33221 "There are other useful extended attributes that can be read from ntfs-3g "
33222 "filesystems (using L</guestfs_getxattr>).  See:"
33223 msgstr ""
33224
33225 #. type: textblock
33226 #: ../src/guestfs.pod:689
33227 msgid ""
33228 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33229 msgstr ""
33230
33231 #. type: =head2
33232 #: ../src/guestfs.pod:691
33233 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33234 msgstr ""
33235
33236 #. type: textblock
33237 #: ../src/guestfs.pod:693
33238 msgid ""
33239 "Although we don't want to discourage you from using the C API, we will "
33240 "mention here that the same API is also available in other languages."
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:696
33245 msgid ""
33246 "The API is broadly identical in all supported languages.  This means that "
33247 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33248 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33249 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33250 "each language."
33251 msgstr ""
33252
33253 #. type: textblock
33254 #: ../src/guestfs.pod:702
33255 msgid ""
33256 "Error messages are automatically transformed into exceptions if the language "
33257 "supports it."
33258 msgstr ""
33259
33260 #. type: textblock
33261 #: ../src/guestfs.pod:705
33262 msgid ""
33263 "We don't try to \"object orientify\" parts of the API in OO languages, "
33264 "although contributors are welcome to write higher level APIs above what we "
33265 "provide in their favourite languages if they wish."
33266 msgstr ""
33267
33268 #. type: =item
33269 #: ../src/guestfs.pod:711
33270 msgid "B<C++>"
33271 msgstr ""
33272
33273 #. type: textblock
33274 #: ../src/guestfs.pod:713
33275 msgid ""
33276 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33277 "identical to the C API.  C++ classes and exceptions are not used."
33278 msgstr ""
33279
33280 #. type: =item
33281 #: ../src/guestfs.pod:717
33282 msgid "B<C#>"
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:719
33287 msgid ""
33288 "The C# bindings are highly experimental.  Please read the warnings at the "
33289 "top of C<csharp/Libguestfs.cs>."
33290 msgstr ""
33291
33292 #. type: =item
33293 #: ../src/guestfs.pod:722
33294 msgid "B<Erlang>"
33295 msgstr ""
33296
33297 #. type: textblock
33298 #: ../src/guestfs.pod:724
33299 msgid "See L<guestfs-erlang(3)>."
33300 msgstr ""
33301
33302 #. type: =item
33303 #: ../src/guestfs.pod:726
33304 msgid "B<Haskell>"
33305 msgstr ""
33306
33307 #. type: textblock
33308 #: ../src/guestfs.pod:728
33309 msgid ""
33310 "This is the only language binding that is working but incomplete.  Only "
33311 "calls which return simple integers have been bound in Haskell, and we are "
33312 "looking for help to complete this binding."
33313 msgstr ""
33314
33315 #. type: =item
33316 #: ../src/guestfs.pod:732
33317 msgid "B<Java>"
33318 msgstr ""
33319
33320 #. type: textblock
33321 #: ../src/guestfs.pod:734
33322 msgid ""
33323 "Full documentation is contained in the Javadoc which is distributed with "
33324 "libguestfs.  For examples, see L<guestfs-java(3)>."
33325 msgstr ""
33326
33327 #. type: =item
33328 #: ../src/guestfs.pod:737
33329 msgid "B<OCaml>"
33330 msgstr ""
33331
33332 #. type: textblock
33333 #: ../src/guestfs.pod:739
33334 msgid "See L<guestfs-ocaml(3)>."
33335 msgstr ""
33336
33337 #. type: =item
33338 #: ../src/guestfs.pod:741
33339 msgid "B<Perl>"
33340 msgstr ""
33341
33342 #. type: textblock
33343 #: ../src/guestfs.pod:743
33344 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33345 msgstr ""
33346
33347 #. type: =item
33348 #: ../src/guestfs.pod:745
33349 msgid "B<PHP>"
33350 msgstr ""
33351
33352 #. type: textblock
33353 #: ../src/guestfs.pod:747
33354 msgid ""
33355 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33356 "the php-libguestfs package for your distribution."
33357 msgstr ""
33358
33359 #. type: textblock
33360 #: ../src/guestfs.pod:750
33361 msgid "The PHP binding only works correctly on 64 bit machines."
33362 msgstr ""
33363
33364 #. type: =item
33365 #: ../src/guestfs.pod:752
33366 msgid "B<Python>"
33367 msgstr ""
33368
33369 #. type: textblock
33370 #: ../src/guestfs.pod:754
33371 msgid "See L<guestfs-python(3)>."
33372 msgstr ""
33373
33374 #. type: =item
33375 #: ../src/guestfs.pod:756
33376 msgid "B<Ruby>"
33377 msgstr ""
33378
33379 #. type: textblock
33380 #: ../src/guestfs.pod:758
33381 msgid "See L<guestfs-ruby(3)>."
33382 msgstr ""
33383
33384 #. type: =item
33385 #: ../src/guestfs.pod:760
33386 msgid "B<shell scripts>"
33387 msgstr ""
33388
33389 #. type: textblock
33390 #: ../src/guestfs.pod:762
33391 msgid "See L<guestfish(1)>."
33392 msgstr ""
33393
33394 #. type: =head2
33395 #: ../src/guestfs.pod:766
33396 msgid "LIBGUESTFS GOTCHAS"
33397 msgstr ""
33398
33399 #. type: textblock
33400 #: ../src/guestfs.pod:768
33401 msgid ""
33402 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33403 "system [...] that works in the way it is documented but is counterintuitive "
33404 "and almost invites mistakes.\""
33405 msgstr ""
33406
33407 #. type: textblock
33408 #: ../src/guestfs.pod:772
33409 msgid ""
33410 "Since we developed libguestfs and the associated tools, there are several "
33411 "things we would have designed differently, but are now stuck with for "
33412 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33413 "release, you can expect these to change.  Beware of them."
33414 msgstr ""
33415
33416 #. type: =item
33417 #: ../src/guestfs.pod:780
33418 msgid "Autosync / forgetting to sync."
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs.pod:782
33423 msgid ""
33424 "I<Update:> Autosync is enabled by default for all API users starting from "
33425 "libguestfs 1.5.24.  This section only applies to older versions."
33426 msgstr ""
33427
33428 #. type: textblock
33429 #: ../src/guestfs.pod:785
33430 msgid ""
33431 "When modifying a filesystem from C or another language, you B<must> unmount "
33432 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33433 "libguestfs handle.  You can also call:"
33434 msgstr ""
33435
33436 #. type: verbatim
33437 #: ../src/guestfs.pod:789
33438 #, no-wrap
33439 msgid ""
33440 " guestfs_set_autosync (g, 1);\n"
33441 "\n"
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:791
33446 msgid ""
33447 "to have the unmount/sync done automatically for you when the handle 'g' is "
33448 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33449 msgstr ""
33450
33451 #. type: textblock
33452 #: ../src/guestfs.pod:795
33453 msgid ""
33454 "If you forget to do this, then it is entirely possible that your changes "
33455 "won't be written out, or will be partially written, or (very rarely) that "
33456 "you'll get disk corruption."
33457 msgstr ""
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:799
33461 msgid ""
33462 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33463 "guestfish scripts that forget to sync will work just fine, which can make "
33464 "this very puzzling if you are trying to debug a problem."
33465 msgstr ""
33466
33467 #. type: =item
33468 #: ../src/guestfs.pod:803
33469 msgid "Mount option C<-o sync> should not be the default."
33470 msgstr ""
33471
33472 #. type: textblock
33473 #: ../src/guestfs.pod:805
33474 msgid ""
33475 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
33476 "libguestfs 1.13.16.  This section only applies to older versions."
33477 msgstr ""
33478
33479 #. type: textblock
33480 #: ../src/guestfs.pod:808
33481 msgid ""
33482 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33483 "However C<-o sync> does not add any reliability benefit, but does have a "
33484 "very large performance impact."
33485 msgstr ""
33486
33487 #. type: textblock
33488 #: ../src/guestfs.pod:812
33489 msgid ""
33490 "The work around is to use L</guestfs_mount_options> and set the mount "
33491 "options that you actually want to use."
33492 msgstr ""
33493
33494 #. type: =item
33495 #: ../src/guestfs.pod:815
33496 msgid "Read-only should be the default."
33497 msgstr ""
33498
33499 #. type: textblock
33500 #: ../src/guestfs.pod:817
33501 msgid ""
33502 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33503 "specify I<--rw> if you want to make changes to the image."
33504 msgstr ""
33505
33506 #. type: textblock
33507 #: ../src/guestfs.pod:820
33508 msgid "This would reduce the potential to corrupt live VM images."
33509 msgstr ""
33510
33511 #. type: textblock
33512 #: ../src/guestfs.pod:822
33513 msgid ""
33514 "Note that many filesystems change the disk when you just mount and unmount, "
33515 "even if you didn't perform any writes.  You need to use L</"
33516 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33517 msgstr ""
33518
33519 #. type: =item
33520 #: ../src/guestfs.pod:826
33521 msgid "guestfish command line is hard to use."
33522 msgstr ""
33523
33524 #. type: textblock
33525 #: ../src/guestfs.pod:828
33526 msgid ""
33527 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33528 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33529 "exist, so it fails.  In earlier versions of guestfish the error message was "
33530 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33531 "we should have used C<guestfish -c command> to run commands."
33532 msgstr ""
33533
33534 #. type: =item
33535 #: ../src/guestfs.pod:835
33536 msgid "guestfish megabyte modifiers don't work right on all commands"
33537 msgstr ""
33538
33539 #. type: textblock
33540 #: ../src/guestfs.pod:837
33541 msgid ""
33542 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33543 "other modifiers).  What guestfish actually does is to multiply the number "
33544 "part by the modifier part and pass the result to the C API.  However this "
33545 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33546 "expecting some other unit (eg. megabytes)."
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../src/guestfs.pod:844
33551 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33552 msgstr ""
33553
33554 #. type: verbatim
33555 #: ../src/guestfs.pod:846
33556 #, no-wrap
33557 msgid ""
33558 " lvcreate LV VG 100M\n"
33559 "\n"
33560 msgstr ""
33561
33562 #. type: textblock
33563 #: ../src/guestfs.pod:848
33564 msgid ""
33565 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33566 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33567 "megabytes * megabytes) logical volume.  The error message you get from this "
33568 "is also a little obscure."
33569 msgstr ""
33570
33571 #. type: textblock
33572 #: ../src/guestfs.pod:853
33573 msgid ""
33574 "This could be fixed in the generator by specially marking parameters and "
33575 "return values which take bytes or other units."
33576 msgstr ""
33577
33578 #. type: =item
33579 #: ../src/guestfs.pod:856
33580 msgid "Ambiguity between devices and paths"
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs.pod:858
33585 msgid ""
33586 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
33587 "sdb2>) and a similar pathname.  A file might just happen to be called "
33588 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
33589 msgstr ""
33590
33591 #. type: textblock
33592 #: ../src/guestfs.pod:863
33593 msgid ""
33594 "In the current API we usually resolve this ambiguity by having two separate "
33595 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
33596 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
33597 "detecting if the path supplied begins with C</dev/>."
33598 msgstr ""
33599
33600 #. type: textblock
33601 #: ../src/guestfs.pod:869
33602 msgid ""
33603 "To avoid both the ambiguity and the need to duplicate some calls, we could "
33604 "make paths/devices into structured names.  One way to do this would be to "
33605 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
33606 "aspect of grub.  Another way would be to use a structured type, equivalent "
33607 "to this OCaml type:"
33608 msgstr ""
33609
33610 #. type: verbatim
33611 #: ../src/guestfs.pod:875
33612 #, no-wrap
33613 msgid ""
33614 " type path = Path of string | Device of int | Partition of int * int\n"
33615 "\n"
33616 msgstr ""
33617
33618 #. type: textblock
33619 #: ../src/guestfs.pod:877
33620 msgid "which would allow you to pass arguments like:"
33621 msgstr ""
33622
33623 #. type: verbatim
33624 #: ../src/guestfs.pod:879
33625 #, no-wrap
33626 msgid ""
33627 " Path \"/foo/bar\"\n"
33628 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
33629 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
33630 " Path \"/dev/sdb2\"    (* not a device *)\n"
33631 "\n"
33632 msgstr ""
33633
33634 #. type: textblock
33635 #: ../src/guestfs.pod:884
33636 msgid ""
33637 "As you can see there are still problems to resolve even with this "
33638 "representation.  Also consider how it might work in guestfish."
33639 msgstr ""
33640
33641 #. type: =head2
33642 #: ../src/guestfs.pod:889
33643 msgid "KEYS AND PASSPHRASES"
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs.pod:891
33648 msgid ""
33649 "Certain libguestfs calls take a parameter that contains sensitive key "
33650 "material, passed in as a C string."
33651 msgstr ""
33652
33653 #. type: textblock
33654 #: ../src/guestfs.pod:894
33655 msgid ""
33656 "In the future we would hope to change the libguestfs implementation so that "
33657 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
33658 "swap.  However this is I<not> done at the moment, because of the complexity "
33659 "of such an implementation."
33660 msgstr ""
33661
33662 #. type: textblock
33663 #: ../src/guestfs.pod:899
33664 msgid ""
33665 "Therefore you should be aware that any key parameter you pass to libguestfs "
33666 "might end up being written out to the swap partition.  If this is a concern, "
33667 "scrub the swap partition or don't use libguestfs on encrypted devices."
33668 msgstr ""
33669
33670 #. type: =head2
33671 #: ../src/guestfs.pod:904
33672 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
33673 msgstr ""
33674
33675 #. type: textblock
33676 #: ../src/guestfs.pod:906
33677 msgid ""
33678 "All high-level libguestfs actions are synchronous.  If you want to use "
33679 "libguestfs asynchronously then you must create a thread."
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:909
33684 msgid ""
33685 "Only use the handle from a single thread.  Either use the handle exclusively "
33686 "from one thread, or provide your own mutex so that two threads cannot issue "
33687 "calls on the same handle at the same time."
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs.pod:913
33692 msgid ""
33693 "See the graphical program guestfs-browser for one possible architecture for "
33694 "multithreaded programs using libvirt and libguestfs."
33695 msgstr ""
33696
33697 #. type: =head2
33698 #: ../src/guestfs.pod:916
33699 msgid "PATH"
33700 msgstr ""
33701
33702 #. type: textblock
33703 #: ../src/guestfs.pod:918
33704 msgid ""
33705 "Libguestfs needs a supermin appliance, which it finds by looking along an "
33706 "internal path."
33707 msgstr ""
33708
33709 #. type: textblock
33710 #: ../src/guestfs.pod:921
33711 msgid ""
33712 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
33713 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs.pod:924
33718 msgid ""
33719 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
33720 "to change the directories that libguestfs will search in.  The value is a "
33721 "colon-separated list of paths.  The current directory is I<not> searched "
33722 "unless the path contains an empty element or C<.>.  For example "
33723 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
33724 "then C</usr/lib/guestfs>."
33725 msgstr ""
33726
33727 #. type: =head2
33728 #: ../src/guestfs.pod:931
33729 msgid "QEMU WRAPPERS"
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs.pod:933
33734 msgid ""
33735 "If you want to compile your own qemu, run qemu from a non-standard location, "
33736 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
33737 "around qemu."
33738 msgstr ""
33739
33740 #. type: textblock
33741 #: ../src/guestfs.pod:937
33742 msgid ""
33743 "There is one important rule to remember: you I<must C<exec qemu>> as the "
33744 "last command in the shell script (so that qemu replaces the shell and "
33745 "becomes the direct child of the libguestfs-using program).  If you don't do "
33746 "this, then the qemu process won't be cleaned up correctly."
33747 msgstr ""
33748
33749 #. type: textblock
33750 #: ../src/guestfs.pod:942
33751 msgid ""
33752 "Here is an example of a wrapper, where I have built my own copy of qemu from "
33753 "source:"
33754 msgstr ""
33755
33756 #. type: verbatim
33757 #: ../src/guestfs.pod:945
33758 #, no-wrap
33759 msgid ""
33760 " #!/bin/sh -\n"
33761 " qemudir=/home/rjones/d/qemu\n"
33762 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
33763 "\n"
33764 msgstr ""
33765
33766 #. type: textblock
33767 #: ../src/guestfs.pod:949
33768 msgid ""
33769 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
33770 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
33771 "example:"
33772 msgstr ""
33773
33774 #. type: verbatim
33775 #: ../src/guestfs.pod:953
33776 #, no-wrap
33777 msgid ""
33778 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
33779 "\n"
33780 msgstr ""
33781
33782 #. type: textblock
33783 #: ../src/guestfs.pod:955
33784 msgid ""
33785 "Note that libguestfs also calls qemu with the -help and -version options in "
33786 "order to determine features."
33787 msgstr ""
33788
33789 #. type: textblock
33790 #: ../src/guestfs.pod:958
33791 msgid ""
33792 "Wrappers can also be used to edit the options passed to qemu.  In the "
33793 "following example, the C<-machine ...> option (C<-machine> and the following "
33794 "argument) are removed from the command line and replaced with C<-machine pc,"
33795 "accel=tcg>.  The while loop iterates over the options until it finds the "
33796 "right one to remove, putting the remaining options into the C<args> array."
33797 msgstr ""
33798
33799 #. type: verbatim
33800 #: ../src/guestfs.pod:965
33801 #, no-wrap
33802 msgid ""
33803 " #!/bin/bash -\n"
33804 " \n"
33805 msgstr ""
33806
33807 #. type: verbatim
33808 #: ../src/guestfs.pod:967
33809 #, no-wrap
33810 msgid ""
33811 " i=0\n"
33812 " while [ $# -gt 0 ]; do\n"
33813 "     case \"$1\" in\n"
33814 "     -machine)\n"
33815 "         shift 2;;\n"
33816 "     *)\n"
33817 "         args[i]=\"$1\"\n"
33818 "         (( i++ ))\n"
33819 "         shift ;;\n"
33820 "     esac\n"
33821 " done\n"
33822 " \n"
33823 msgstr ""
33824
33825 #. type: verbatim
33826 #: ../src/guestfs.pod:979
33827 #, no-wrap
33828 msgid ""
33829 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
33830 "\n"
33831 msgstr ""
33832
33833 #. type: =head2
33834 #: ../src/guestfs.pod:981
33835 msgid "ATTACHING TO RUNNING DAEMONS"
33836 msgstr ""
33837
33838 #. type: textblock
33839 #: ../src/guestfs.pod:983
33840 msgid ""
33841 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
33842 "babies.  Use with caution."
33843 msgstr ""
33844
33845 #. type: textblock
33846 #: ../src/guestfs.pod:986
33847 msgid ""
33848 "I<Note (2):> This section explains how to attach to a running daemon from a "
33849 "low level perspective.  For most users, simply using virt tools such as "
33850 "L<guestfish(1)> with the I<--live> option will \"just work\"."
33851 msgstr ""
33852
33853 #. type: =head3
33854 #: ../src/guestfs.pod:990
33855 msgid "Using guestfs_set_attach_method"
33856 msgstr ""
33857
33858 #. type: textblock
33859 #: ../src/guestfs.pod:992
33860 msgid ""
33861 "By calling L</guestfs_set_attach_method> you can change how the library "
33862 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
33863 "ARCHITECTURE> for some background)."
33864 msgstr ""
33865
33866 #. type: textblock
33867 #: ../src/guestfs.pod:996
33868 msgid ""
33869 "The normal attach method is C<appliance>, where a small appliance is created "
33870 "containing the daemon, and then the library connects to this."
33871 msgstr ""
33872
33873 #. type: textblock
33874 #: ../src/guestfs.pod:999
33875 msgid ""
33876 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
33877 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
33878 "daemon over the Unix domain socket."
33879 msgstr ""
33880
33881 #. type: textblock
33882 #: ../src/guestfs.pod:1003
33883 msgid ""
33884 "The normal use for this is to connect to a running virtual machine that "
33885 "contains a C<guestfsd> daemon, and send commands so you can read and write "
33886 "files inside the live virtual machine."
33887 msgstr ""
33888
33889 #. type: =head3
33890 #: ../src/guestfs.pod:1007
33891 msgid "Using guestfs_add_domain with live flag"
33892 msgstr ""
33893
33894 #. type: textblock
33895 #: ../src/guestfs.pod:1009
33896 msgid ""
33897 "L</guestfs_add_domain> provides some help for getting the correct attach "
33898 "method.  If you pass the C<live> option to this function, then (if the "
33899 "virtual machine is running) it will examine the libvirt XML looking for a "
33900 "virtio-serial channel to connect to:"
33901 msgstr ""
33902
33903 #. type: verbatim
33904 #: ../src/guestfs.pod:1015
33905 #, no-wrap
33906 msgid ""
33907 " <domain>\n"
33908 "   ...\n"
33909 "   <devices>\n"
33910 "     ...\n"
33911 "     <channel type='unix'>\n"
33912 "       <source mode='bind' path='/path/to/socket'/>\n"
33913 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
33914 "     </channel>\n"
33915 "     ...\n"
33916 "   </devices>\n"
33917 " </domain>\n"
33918 "\n"
33919 msgstr ""
33920
33921 #. type: textblock
33922 #: ../src/guestfs.pod:1027
33923 msgid ""
33924 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
33925 "method to C<unix:/path/to/socket>."
33926 msgstr ""
33927
33928 #. type: textblock
33929 #: ../src/guestfs.pod:1030
33930 msgid ""
33931 "Some of the libguestfs tools (including guestfish) support a I<--live> "
33932 "option which is passed through to L</guestfs_add_domain> thus allowing you "
33933 "to attach to and modify live virtual machines."
33934 msgstr ""
33935
33936 #. type: textblock
33937 #: ../src/guestfs.pod:1034
33938 msgid ""
33939 "The virtual machine needs to have been set up beforehand so that it has the "
33940 "virtio-serial channel and so that guestfsd is running inside it."
33941 msgstr ""
33942
33943 #. type: =head2
33944 #: ../src/guestfs.pod:1038
33945 msgid "ABI GUARANTEE"
33946 msgstr ""
33947
33948 #. type: textblock
33949 #: ../src/guestfs.pod:1040
33950 msgid ""
33951 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
33952 "actions as outlined in this section.  Although we will deprecate some "
33953 "actions, for example if they get replaced by newer calls, we will keep the "
33954 "old actions forever.  This allows you the developer to program in confidence "
33955 "against the libguestfs API."
33956 msgstr ""
33957
33958 #. type: =head2
33959 #: ../src/guestfs.pod:1046
33960 msgid "BLOCK DEVICE NAMING"
33961 msgstr ""
33962
33963 #. type: textblock
33964 #: ../src/guestfs.pod:1048
33965 msgid ""
33966 "In the kernel there is now quite a profusion of schemata for naming block "
33967 "devices (in this context, by I<block device> I mean a physical or virtual "
33968 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
33969 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
33970 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
33971 "for the old IDE driver (particularly for SATA devices) those devices also "
33972 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
33973 "paravirtualized drivers.  This has created several different naming systems, "
33974 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
33975 msgstr ""
33976
33977 #. type: textblock
33978 #: ../src/guestfs.pod:1060
33979 msgid ""
33980 "As discussed above, libguestfs uses a qemu appliance running an embedded "
33981 "Linux kernel to access block devices.  We can run a variety of appliances "
33982 "based on a variety of Linux kernels."
33983 msgstr ""
33984
33985 #. type: textblock
33986 #: ../src/guestfs.pod:1064
33987 msgid ""
33988 "This causes a problem for libguestfs because many API calls use device or "
33989 "partition names.  Working scripts and the recipe (example) scripts that we "
33990 "make available over the internet could fail if the naming scheme changes."
33991 msgstr ""
33992
33993 #. type: textblock
33994 #: ../src/guestfs.pod:1069
33995 msgid ""
33996 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
33997 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
33998 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
33999 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:1075
34004 msgid ""
34005 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34006 "L</guestfs_list_partitions> and similar calls return the true names of the "
34007 "devices and partitions as known to the appliance."
34008 msgstr ""
34009
34010 #. type: =head3
34011 #: ../src/guestfs.pod:1080
34012 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34013 msgstr ""
34014
34015 #. type: textblock
34016 #: ../src/guestfs.pod:1082
34017 msgid ""
34018 "Usually this translation is transparent.  However in some (very rare)  cases "
34019 "you may need to know the exact algorithm.  Such cases include where you use "
34020 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34021 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34022 msgstr ""
34023
34024 #. type: textblock
34025 #: ../src/guestfs.pod:1088
34026 msgid ""
34027 "The algorithm is applied only to I<parameters> which are known to be either "
34028 "device or partition names.  Return values from functions such as L</"
34029 "guestfs_list_devices> are never changed."
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs.pod:1096
34034 msgid "Is the string a parameter which is a device or partition name?"
34035 msgstr ""
34036
34037 #. type: textblock
34038 #: ../src/guestfs.pod:1100
34039 msgid "Does the string begin with C</dev/sd>?"
34040 msgstr ""
34041
34042 #. type: textblock
34043 #: ../src/guestfs.pod:1104
34044 msgid ""
34045 "Does the named device exist? If so, we use that device.  However if I<not> "
34046 "then we continue with this algorithm."
34047 msgstr ""
34048
34049 #. type: textblock
34050 #: ../src/guestfs.pod:1109
34051 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34052 msgstr ""
34053
34054 #. type: textblock
34055 #: ../src/guestfs.pod:1111
34056 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34057 msgstr ""
34058
34059 #. type: textblock
34060 #: ../src/guestfs.pod:1113
34061 msgid "If that named device exists, use it.  If not, continue."
34062 msgstr ""
34063
34064 #. type: textblock
34065 #: ../src/guestfs.pod:1117
34066 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34067 msgstr ""
34068
34069 #. type: textblock
34070 #: ../src/guestfs.pod:1119
34071 msgid "If that named device exists, use it.  If not, return an error."
34072 msgstr ""
34073
34074 #. type: =head3
34075 #: ../src/guestfs.pod:1123
34076 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:1125
34081 msgid ""
34082 "Although the standard naming scheme and automatic translation is useful for "
34083 "simple programs and guestfish scripts, for larger programs it is best not to "
34084 "rely on this mechanism."
34085 msgstr ""
34086
34087 #. type: textblock
34088 #: ../src/guestfs.pod:1129
34089 msgid ""
34090 "Where possible for maximum future portability programs using libguestfs "
34091 "should use these future-proof techniques:"
34092 msgstr ""
34093
34094 #. type: textblock
34095 #: ../src/guestfs.pod:1136
34096 msgid ""
34097 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34098 "device names, and then use those names directly."
34099 msgstr ""
34100
34101 #. type: textblock
34102 #: ../src/guestfs.pod:1139
34103 msgid ""
34104 "Since those device names exist by definition, they will never be translated."
34105 msgstr ""
34106
34107 #. type: textblock
34108 #: ../src/guestfs.pod:1144
34109 msgid ""
34110 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34111 "filesystem labels."
34112 msgstr ""
34113
34114 #. type: =head1
34115 #: ../src/guestfs.pod:1149
34116 msgid "SECURITY"
34117 msgstr ""
34118
34119 #. type: textblock
34120 #: ../src/guestfs.pod:1151
34121 msgid ""
34122 "This section discusses security implications of using libguestfs, "
34123 "particularly with untrusted or malicious guests or disk images."
34124 msgstr ""
34125
34126 #. type: =head2
34127 #: ../src/guestfs.pod:1154
34128 msgid "GENERAL SECURITY CONSIDERATIONS"
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs.pod:1156
34133 msgid ""
34134 "Be careful with any files or data that you download from a guest (by "
34135 "\"download\" we mean not just the L</guestfs_download> command but any "
34136 "command that reads files, filenames, directories or anything else from a "
34137 "disk image).  An attacker could manipulate the data to fool your program "
34138 "into doing the wrong thing.  Consider cases such as:"
34139 msgstr ""
34140
34141 #. type: textblock
34142 #: ../src/guestfs.pod:1166
34143 msgid "the data (file etc) not being present"
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:1170
34148 msgid "being present but empty"
34149 msgstr ""
34150
34151 #. type: textblock
34152 #: ../src/guestfs.pod:1174
34153 msgid "being much larger than normal"
34154 msgstr ""
34155
34156 #. type: textblock
34157 #: ../src/guestfs.pod:1178
34158 msgid "containing arbitrary 8 bit data"
34159 msgstr ""
34160
34161 #. type: textblock
34162 #: ../src/guestfs.pod:1182
34163 msgid "being in an unexpected character encoding"
34164 msgstr ""
34165
34166 #. type: textblock
34167 #: ../src/guestfs.pod:1186
34168 msgid "containing homoglyphs."
34169 msgstr ""
34170
34171 #. type: =head2
34172 #: ../src/guestfs.pod:1190
34173 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34174 msgstr ""
34175
34176 #. type: textblock
34177 #: ../src/guestfs.pod:1192
34178 msgid ""
34179 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34180 "(VFS) module can sometimes be escalated into exploits by deliberately "
34181 "creating a malicious, malformed filesystem.  These exploits are very severe "
34182 "for two reasons.  Firstly there are very many filesystem drivers in the "
34183 "kernel, and many of them are infrequently used and not much developer "
34184 "attention has been paid to the code.  Linux userspace helps potential "
34185 "crackers by detecting the filesystem type and automatically choosing the "
34186 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34187 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34188 "exploit (worse in some ways), giving immediate and total access to the "
34189 "system right down to the hardware level."
34190 msgstr ""
34191
34192 #. type: textblock
34193 #: ../src/guestfs.pod:1205
34194 msgid ""
34195 "That explains why you should never mount a filesystem from an untrusted "
34196 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34197 "inside a qemu virtual machine, usually running as a non-root user.  The "
34198 "attacker would need to write a filesystem which first exploited the kernel, "
34199 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34200 "the libguestfs protocol, and finally to be as serious as the host kernel "
34201 "exploit it would need to escalate its privileges to root.  This multi-step "
34202 "escalation, performed by a static piece of data, is thought to be extremely "
34203 "hard to do, although we never say 'never' about security issues."
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../src/guestfs.pod:1216
34208 msgid ""
34209 "In any case callers can reduce the attack surface by forcing the filesystem "
34210 "type when mounting (use L</guestfs_mount_vfs>)."
34211 msgstr ""
34212
34213 #. type: =head2
34214 #: ../src/guestfs.pod:1219
34215 msgid "PROTOCOL SECURITY"
34216 msgstr ""
34217
34218 #. type: textblock
34219 #: ../src/guestfs.pod:1221
34220 msgid ""
34221 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34222 "defined upper message size.  However a program that uses libguestfs must "
34223 "also take care - for example you can write a program that downloads a binary "
34224 "from a disk image and executes it locally, and no amount of protocol "
34225 "security will save you from the consequences."
34226 msgstr ""
34227
34228 #. type: =head2
34229 #: ../src/guestfs.pod:1227
34230 msgid "INSPECTION SECURITY"
34231 msgstr ""
34232
34233 #. type: textblock
34234 #: ../src/guestfs.pod:1229
34235 msgid ""
34236 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34237 "directly from the guest, and these could contain any 8 bit data.  Callers "
34238 "should be careful to escape these before printing them to a structured file "
34239 "(for example, use HTML escaping if creating a web page)."
34240 msgstr ""
34241
34242 #. type: textblock
34243 #: ../src/guestfs.pod:1235
34244 msgid ""
34245 "Guest configuration may be altered in unusual ways by the administrator of "
34246 "the virtual machine, and may not reflect reality (particularly for untrusted "
34247 "or actively malicious guests).  For example we parse the hostname from "
34248 "configuration files like C</etc/sysconfig/network> that we find in the "
34249 "guest, but the guest administrator can easily manipulate these files to "
34250 "provide the wrong hostname."
34251 msgstr ""
34252
34253 #. type: textblock
34254 #: ../src/guestfs.pod:1243
34255 msgid ""
34256 "The inspection API parses guest configuration using two external libraries: "
34257 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34258 "designed to be robust in the face of malicious data, although denial of "
34259 "service attacks are still possible, for example with oversized configuration "
34260 "files."
34261 msgstr ""
34262
34263 #. type: =head2
34264 #: ../src/guestfs.pod:1249
34265 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34266 msgstr ""
34267
34268 #. type: textblock
34269 #: ../src/guestfs.pod:1251
34270 msgid ""
34271 "Be very cautious about running commands from the guest.  By running a "
34272 "command in the guest, you are giving CPU time to a binary that you do not "
34273 "control, under the same user account as the library, albeit wrapped in qemu "
34274 "virtualization.  More information and alternatives can be found in the "
34275 "section L</RUNNING COMMANDS>."
34276 msgstr ""
34277
34278 #. type: =head2
34279 #: ../src/guestfs.pod:1257
34280 msgid "CVE-2010-3851"
34281 msgstr ""
34282
34283 #. type: textblock
34284 #: ../src/guestfs.pod:1259
34285 msgid "https://bugzilla.redhat.com/642934"
34286 msgstr ""
34287
34288 #. type: textblock
34289 #: ../src/guestfs.pod:1261
34290 msgid ""
34291 "This security bug concerns the automatic disk format detection that qemu "
34292 "does on disk images."
34293 msgstr ""
34294
34295 #. type: textblock
34296 #: ../src/guestfs.pod:1264
34297 msgid ""
34298 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34299 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34300 "for one of the known headers, and if none is found then assuming the disk "
34301 "image must be raw."
34302 msgstr ""
34303
34304 #. type: textblock
34305 #: ../src/guestfs.pod:1269
34306 msgid ""
34307 "This allows a guest which has been given a raw disk image to write some "
34308 "other header.  At next boot (or when the disk image is accessed by "
34309 "libguestfs) qemu would do autodetection and think the disk image format was, "
34310 "say, qcow2 based on the header written by the guest."
34311 msgstr ""
34312
34313 #. type: textblock
34314 #: ../src/guestfs.pod:1274
34315 msgid ""
34316 "This in itself would not be a problem, but qcow2 offers many features, one "
34317 "of which is to allow a disk image to refer to another image (called the "
34318 "\"backing disk\").  It does this by placing the path to the backing disk "
34319 "into the qcow2 header.  This path is not validated and could point to any "
34320 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34321 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34322 "control of the attacker."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:1282
34327 msgid ""
34328 "In libguestfs this is rather hard to exploit except under two circumstances:"
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:1289
34333 msgid "You have enabled the network or have opened the disk in write mode."
34334 msgstr ""
34335
34336 #. type: textblock
34337 #: ../src/guestfs.pod:1293
34338 msgid ""
34339 "You are also running untrusted code from the guest (see L</RUNNING "
34340 "COMMANDS>)."
34341 msgstr ""
34342
34343 #. type: textblock
34344 #: ../src/guestfs.pod:1298
34345 msgid ""
34346 "The way to avoid this is to specify the expected disk format when adding "
34347 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34348 "should always do this if the disk is raw format, and it's a good idea for "
34349 "other cases too."
34350 msgstr ""
34351
34352 #. type: textblock
34353 #: ../src/guestfs.pod:1303
34354 msgid ""
34355 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34356 "format is fetched from libvirt and passed through."
34357 msgstr ""
34358
34359 #. type: textblock
34360 #: ../src/guestfs.pod:1306
34361 msgid ""
34362 "For libguestfs tools, use the I<--format> command line parameter as "
34363 "appropriate."
34364 msgstr ""
34365
34366 #. type: =head1
34367 #: ../src/guestfs.pod:1309
34368 msgid "CONNECTION MANAGEMENT"
34369 msgstr ""
34370
34371 #. type: =head2
34372 #: ../src/guestfs.pod:1311
34373 msgid "guestfs_h *"
34374 msgstr ""
34375
34376 #. type: textblock
34377 #: ../src/guestfs.pod:1313
34378 msgid ""
34379 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34380 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34381 "handle and release all resources used."
34382 msgstr ""
34383
34384 #. type: textblock
34385 #: ../src/guestfs.pod:1317
34386 msgid ""
34387 "For information on using multiple handles and threads, see the section L</"
34388 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34389 msgstr ""
34390
34391 #. type: =head2
34392 #: ../src/guestfs.pod:1320
34393 msgid "guestfs_create"
34394 msgstr ""
34395
34396 #. type: verbatim
34397 #: ../src/guestfs.pod:1322
34398 #, no-wrap
34399 msgid ""
34400 " guestfs_h *guestfs_create (void);\n"
34401 "\n"
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:1324
34406 msgid "Create a connection handle."
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs.pod:1326
34411 msgid ""
34412 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34413 "NULL."
34414 msgstr ""
34415
34416 #. type: textblock
34417 #: ../src/guestfs.pod:1329
34418 msgid ""
34419 "You have to \"configure\" the handle after creating it.  This includes "
34420 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34421 "handle at least once."
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:1333
34426 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34427 msgstr ""
34428
34429 #. type: textblock
34430 #: ../src/guestfs.pod:1335
34431 msgid ""
34432 "You may also want to configure error handling for the handle.  See the L</"
34433 "ERROR HANDLING> section below."
34434 msgstr ""
34435
34436 #. type: =head2
34437 #: ../src/guestfs.pod:1338
34438 msgid "guestfs_close"
34439 msgstr ""
34440
34441 #. type: verbatim
34442 #: ../src/guestfs.pod:1340
34443 #, no-wrap
34444 msgid ""
34445 " void guestfs_close (guestfs_h *g);\n"
34446 "\n"
34447 msgstr ""
34448
34449 #. type: textblock
34450 #: ../src/guestfs.pod:1342
34451 msgid "This closes the connection handle and frees up all resources used."
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:1344
34456 msgid ""
34457 "If autosync was set on the handle and the handle was launched, then this "
34458 "implicitly calls various functions to unmount filesystems and sync the "
34459 "disk.  See L</guestfs_set_autosync> for more details."
34460 msgstr ""
34461
34462 #. type: textblock
34463 #: ../src/guestfs.pod:1348
34464 msgid "If a close callback was set on the handle, then it is called."
34465 msgstr ""
34466
34467 #. type: =head1
34468 #: ../src/guestfs.pod:1350
34469 msgid "ERROR HANDLING"
34470 msgstr ""
34471
34472 #. type: textblock
34473 #: ../src/guestfs.pod:1352
34474 msgid ""
34475 "API functions can return errors.  For example, almost all functions that "
34476 "return C<int> will return C<-1> to indicate an error."
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs.pod:1355
34481 msgid ""
34482 "Additional information is available for errors: an error message string and "
34483 "optionally an error number (errno) if the thing that failed was a system "
34484 "call."
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs.pod:1359
34489 msgid ""
34490 "You can get at the additional information about the last error on the handle "
34491 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34492 "up an error handler with L</guestfs_set_error_handler>."
34493 msgstr ""
34494
34495 #. type: textblock
34496 #: ../src/guestfs.pod:1364
34497 msgid ""
34498 "When the handle is created, a default error handler is installed which "
34499 "prints the error message string to C<stderr>.  For small short-running "
34500 "command line programs it is sufficient to do:"
34501 msgstr ""
34502
34503 #. type: verbatim
34504 #: ../src/guestfs.pod:1368
34505 #, no-wrap
34506 msgid ""
34507 " if (guestfs_launch (g) == -1)\n"
34508 "   exit (EXIT_FAILURE);\n"
34509 "\n"
34510 msgstr ""
34511
34512 #. type: textblock
34513 #: ../src/guestfs.pod:1371
34514 msgid ""
34515 "since the default error handler will ensure that an error message has been "
34516 "printed to C<stderr> before the program exits."
34517 msgstr ""
34518
34519 #. type: textblock
34520 #: ../src/guestfs.pod:1374
34521 msgid ""
34522 "For other programs the caller will almost certainly want to install an "
34523 "alternate error handler or do error handling in-line like this:"
34524 msgstr ""
34525
34526 #. type: verbatim
34527 #: ../src/guestfs.pod:1377
34528 #, no-wrap
34529 msgid ""
34530 " /* This disables the default behaviour of printing errors\n"
34531 "    on stderr. */\n"
34532 " guestfs_set_error_handler (g, NULL, NULL);\n"
34533 " \n"
34534 msgstr ""
34535
34536 #. type: verbatim
34537 #: ../src/guestfs.pod:1381
34538 #, no-wrap
34539 msgid ""
34540 " if (guestfs_launch (g) == -1) {\n"
34541 "   /* Examine the error message and print it etc. */\n"
34542 "   char *msg = guestfs_last_error (g);\n"
34543 "   int errnum = guestfs_last_errno (g);\n"
34544 "   fprintf (stderr, \"%s\", msg);\n"
34545 "   if (errnum != 0)\n"
34546 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
34547 "   fprintf (stderr, \"\\n\");\n"
34548 "   /* ... */\n"
34549 " }\n"
34550 "\n"
34551 msgstr ""
34552
34553 #. type: textblock
34554 #: ../src/guestfs.pod:1392
34555 msgid ""
34556 "Out of memory errors are handled differently.  The default action is to call "
34557 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
34558 "guestfs_set_out_of_memory_handler>."
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:1396
34563 msgid ""
34564 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34565 "because there is no handle if this happens there is no way to get additional "
34566 "error information.  However L</guestfs_create> is supposed to be a "
34567 "lightweight operation which can only fail because of insufficient memory (it "
34568 "returns NULL in this case)."
34569 msgstr ""
34570
34571 #. type: =head2
34572 #: ../src/guestfs.pod:1402
34573 msgid "guestfs_last_error"
34574 msgstr ""
34575
34576 #. type: verbatim
34577 #: ../src/guestfs.pod:1404
34578 #, no-wrap
34579 msgid ""
34580 " const char *guestfs_last_error (guestfs_h *g);\n"
34581 "\n"
34582 msgstr ""
34583
34584 #. type: textblock
34585 #: ../src/guestfs.pod:1406
34586 msgid ""
34587 "This returns the last error message that happened on C<g>.  If there has not "
34588 "been an error since the handle was created, then this returns C<NULL>."
34589 msgstr ""
34590
34591 #. type: textblock
34592 #: ../src/guestfs.pod:1410
34593 msgid ""
34594 "The lifetime of the returned string is until the next error occurs, or L</"
34595 "guestfs_close> is called."
34596 msgstr ""
34597
34598 #. type: =head2
34599 #: ../src/guestfs.pod:1413
34600 msgid "guestfs_last_errno"
34601 msgstr ""
34602
34603 #. type: verbatim
34604 #: ../src/guestfs.pod:1415
34605 #, no-wrap
34606 msgid ""
34607 " int guestfs_last_errno (guestfs_h *g);\n"
34608 "\n"
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:1417
34613 msgid "This returns the last error number (errno) that happened on C<g>."
34614 msgstr ""
34615
34616 #. type: textblock
34617 #: ../src/guestfs.pod:1419
34618 msgid "If successful, an errno integer not equal to zero is returned."
34619 msgstr ""
34620
34621 #. type: textblock
34622 #: ../src/guestfs.pod:1421
34623 msgid ""
34624 "If no error, this returns 0.  This call can return 0 in three situations:"
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:1428
34629 msgid "There has not been any error on the handle."
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:1432
34634 msgid ""
34635 "There has been an error but the errno was meaningless.  This corresponds to "
34636 "the case where the error did not come from a failed system call, but for "
34637 "some other reason."
34638 msgstr ""
34639
34640 #. type: textblock
34641 #: ../src/guestfs.pod:1438
34642 msgid ""
34643 "There was an error from a failed system call, but for some reason the errno "
34644 "was not captured and returned.  This usually indicates a bug in libguestfs."
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../src/guestfs.pod:1444
34649 msgid ""
34650 "Libguestfs tries to convert the errno from inside the applicance into a "
34651 "corresponding errno for the caller (not entirely trivial: the appliance "
34652 "might be running a completely different operating system from the library "
34653 "and error numbers are not standardized across Un*xen).  If this could not be "
34654 "done, then the error is translated to C<EINVAL>.  In practice this should "
34655 "only happen in very rare circumstances."
34656 msgstr ""
34657
34658 #. type: =head2
34659 #: ../src/guestfs.pod:1452
34660 msgid "guestfs_set_error_handler"
34661 msgstr ""
34662
34663 #. type: verbatim
34664 #: ../src/guestfs.pod:1454
34665 #, no-wrap
34666 msgid ""
34667 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
34668 "                                           void *opaque,\n"
34669 "                                           const char *msg);\n"
34670 " void guestfs_set_error_handler (guestfs_h *g,\n"
34671 "                                 guestfs_error_handler_cb cb,\n"
34672 "                                 void *opaque);\n"
34673 "\n"
34674 msgstr ""
34675
34676 #. type: textblock
34677 #: ../src/guestfs.pod:1461
34678 msgid ""
34679 "The callback C<cb> will be called if there is an error.  The parameters "
34680 "passed to the callback are an opaque data pointer and the error message "
34681 "string."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:1465
34686 msgid ""
34687 "C<errno> is not passed to the callback.  To get that the callback must call "
34688 "L</guestfs_last_errno>."
34689 msgstr ""
34690
34691 #. type: textblock
34692 #: ../src/guestfs.pod:1468
34693 msgid ""
34694 "Note that the message string C<msg> is freed as soon as the callback "
34695 "function returns, so if you want to stash it somewhere you must make your "
34696 "own copy."
34697 msgstr ""
34698
34699 #. type: textblock
34700 #: ../src/guestfs.pod:1472
34701 msgid "The default handler prints messages on C<stderr>."
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:1474
34706 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
34707 msgstr ""
34708
34709 #. type: =head2
34710 #: ../src/guestfs.pod:1476
34711 msgid "guestfs_get_error_handler"
34712 msgstr ""
34713
34714 #. type: verbatim
34715 #: ../src/guestfs.pod:1478
34716 #, no-wrap
34717 msgid ""
34718 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
34719 "                                                     void **opaque_rtn);\n"
34720 "\n"
34721 msgstr ""
34722
34723 #. type: textblock
34724 #: ../src/guestfs.pod:1481
34725 msgid "Returns the current error handler callback."
34726 msgstr ""
34727
34728 #. type: =head2
34729 #: ../src/guestfs.pod:1483
34730 msgid "guestfs_set_out_of_memory_handler"
34731 msgstr ""
34732
34733 #. type: verbatim
34734 #: ../src/guestfs.pod:1485
34735 #, no-wrap
34736 msgid ""
34737 " typedef void (*guestfs_abort_cb) (void);\n"
34738 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
34739 "                                         guestfs_abort_cb);\n"
34740 "\n"
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:1489
34745 msgid ""
34746 "The callback C<cb> will be called if there is an out of memory situation.  "
34747 "I<Note this callback must not return>."
34748 msgstr ""
34749
34750 #. type: textblock
34751 #: ../src/guestfs.pod:1492
34752 msgid "The default is to call L<abort(3)>."
34753 msgstr ""
34754
34755 #. type: textblock
34756 #: ../src/guestfs.pod:1494
34757 msgid ""
34758 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
34759 msgstr ""
34760
34761 #. type: =head2
34762 #: ../src/guestfs.pod:1497
34763 msgid "guestfs_get_out_of_memory_handler"
34764 msgstr ""
34765
34766 #. type: verbatim
34767 #: ../src/guestfs.pod:1499
34768 #, no-wrap
34769 msgid ""
34770 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
34771 "\n"
34772 msgstr ""
34773
34774 #. type: textblock
34775 #: ../src/guestfs.pod:1501
34776 msgid "This returns the current out of memory handler."
34777 msgstr ""
34778
34779 #. type: =head1
34780 #: ../src/guestfs.pod:1503
34781 msgid "API CALLS"
34782 msgstr ""
34783
34784 #. type: =head1
34785 #: ../src/guestfs.pod:1507
34786 msgid "STRUCTURES"
34787 msgstr ""
34788
34789 #. type: textblock
34790 #: ../src/guestfs.pod:1509
34791 msgid "@STRUCTS@"
34792 msgstr ""
34793
34794 #. type: =head1
34795 #: ../src/guestfs.pod:1511
34796 msgid "AVAILABILITY"
34797 msgstr ""
34798
34799 #. type: =head2
34800 #: ../src/guestfs.pod:1513
34801 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
34802 msgstr ""
34803
34804 #. type: textblock
34805 #: ../src/guestfs.pod:1515
34806 msgid ""
34807 "Using L</guestfs_available> you can test availability of the following "
34808 "groups of functions.  This test queries the appliance to see if the "
34809 "appliance you are currently using supports the functionality."
34810 msgstr ""
34811
34812 #. type: textblock
34813 #: ../src/guestfs.pod:1520
34814 msgid "@AVAILABILITY@"
34815 msgstr ""
34816
34817 #. type: =head2
34818 #: ../src/guestfs.pod:1522
34819 msgid "GUESTFISH supported COMMAND"
34820 msgstr ""
34821
34822 #. type: textblock
34823 #: ../src/guestfs.pod:1524
34824 msgid ""
34825 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
34826 "prints out the available groups and whether they are supported by this build "
34827 "of libguestfs.  Note however that you have to do C<run> first."
34828 msgstr ""
34829
34830 #. type: =head2
34831 #: ../src/guestfs.pod:1529
34832 msgid "SINGLE CALLS AT COMPILE TIME"
34833 msgstr ""
34834
34835 #. type: textblock
34836 #: ../src/guestfs.pod:1531
34837 msgid ""
34838 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
34839 "function, such as:"
34840 msgstr ""
34841
34842 #. type: verbatim
34843 #: ../src/guestfs.pod:1534
34844 #, no-wrap
34845 msgid ""
34846 " #define LIBGUESTFS_HAVE_DD 1\n"
34847 "\n"
34848 msgstr ""
34849
34850 #. type: textblock
34851 #: ../src/guestfs.pod:1536
34852 msgid "if L</guestfs_dd> is available."
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:1538
34857 msgid ""
34858 "Before version 1.5.8, if you needed to test whether a single libguestfs "
34859 "function is available at compile time, we recommended using build tools such "
34860 "as autoconf or cmake.  For example in autotools you could use:"
34861 msgstr ""
34862
34863 #. type: verbatim
34864 #: ../src/guestfs.pod:1543
34865 #, no-wrap
34866 msgid ""
34867 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
34868 " AC_CHECK_FUNCS([guestfs_dd])\n"
34869 "\n"
34870 msgstr ""
34871
34872 #. type: textblock
34873 #: ../src/guestfs.pod:1546
34874 msgid ""
34875 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
34876 "in your program."
34877 msgstr ""
34878
34879 #. type: =head2
34880 #: ../src/guestfs.pod:1549
34881 msgid "SINGLE CALLS AT RUN TIME"
34882 msgstr ""
34883
34884 #. type: textblock
34885 #: ../src/guestfs.pod:1551
34886 msgid ""
34887 "Testing at compile time doesn't guarantee that a function really exists in "
34888 "the library.  The reason is that you might be dynamically linked against a "
34889 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
34890 "This situation unfortunately results in a segmentation fault, which is a "
34891 "shortcoming of the C dynamic linking system itself."
34892 msgstr ""
34893
34894 #. type: textblock
34895 #: ../src/guestfs.pod:1558
34896 msgid ""
34897 "You can use L<dlopen(3)> to test if a function is available at run time, as "
34898 "in this example program (note that you still need the compile time check as "
34899 "well):"
34900 msgstr ""
34901
34902 #. type: verbatim
34903 #: ../src/guestfs.pod:1562
34904 #, no-wrap
34905 msgid ""
34906 " #include <stdio.h>\n"
34907 " #include <stdlib.h>\n"
34908 " #include <unistd.h>\n"
34909 " #include <dlfcn.h>\n"
34910 " #include <guestfs.h>\n"
34911 " \n"
34912 msgstr ""
34913
34914 #. type: verbatim
34915 #: ../src/guestfs.pod:1568
34916 #, no-wrap
34917 msgid ""
34918 " main ()\n"
34919 " {\n"
34920 " #ifdef LIBGUESTFS_HAVE_DD\n"
34921 "   void *dl;\n"
34922 "   int has_function;\n"
34923 " \n"
34924 msgstr ""
34925
34926 #. type: verbatim
34927 #: ../src/guestfs.pod:1574
34928 #, no-wrap
34929 msgid ""
34930 "   /* Test if the function guestfs_dd is really available. */\n"
34931 "   dl = dlopen (NULL, RTLD_LAZY);\n"
34932 "   if (!dl) {\n"
34933 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
34934 "     exit (EXIT_FAILURE);\n"
34935 "   }\n"
34936 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
34937 "   dlclose (dl);\n"
34938 " \n"
34939 msgstr ""
34940
34941 #. type: verbatim
34942 #: ../src/guestfs.pod:1583
34943 #, no-wrap
34944 msgid ""
34945 "   if (!has_function)\n"
34946 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
34947 "   else {\n"
34948 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
34949 "     /* Now it's safe to call\n"
34950 "     guestfs_dd (g, \"foo\", \"bar\");\n"
34951 "     */\n"
34952 "   }\n"
34953 " #else\n"
34954 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
34955 " #endif\n"
34956 "  }\n"
34957 "\n"
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs.pod:1596
34962 msgid ""
34963 "You may think the above is an awful lot of hassle, and it is.  There are "
34964 "other ways outside of the C linking system to ensure that this kind of "
34965 "incompatibility never arises, such as using package versioning:"
34966 msgstr ""
34967
34968 #. type: verbatim
34969 #: ../src/guestfs.pod:1601
34970 #, no-wrap
34971 msgid ""
34972 " Requires: libguestfs >= 1.0.80\n"
34973 "\n"
34974 msgstr ""
34975
34976 #. type: =head1
34977 #: ../src/guestfs.pod:1603
34978 msgid "CALLS WITH OPTIONAL ARGUMENTS"
34979 msgstr ""
34980
34981 #. type: textblock
34982 #: ../src/guestfs.pod:1605
34983 msgid ""
34984 "A recent feature of the API is the introduction of calls which take optional "
34985 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
34986 "takes variable arguments (ie. C<...>), as in this example:"
34987 msgstr ""
34988
34989 #. type: verbatim
34990 #: ../src/guestfs.pod:1610
34991 #, no-wrap
34992 msgid ""
34993 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
34994 "\n"
34995 msgstr ""
34996
34997 #. type: textblock
34998 #: ../src/guestfs.pod:1612
34999 msgid ""
35000 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35001 "call with no optional arguments specified:"
35002 msgstr ""
35003
35004 #. type: verbatim
35005 #: ../src/guestfs.pod:1615
35006 #, no-wrap
35007 msgid ""
35008 " guestfs_add_drive_opts (g, filename, -1);\n"
35009 "\n"
35010 msgstr ""
35011
35012 #. type: textblock
35013 #: ../src/guestfs.pod:1617
35014 msgid "With a single optional argument:"
35015 msgstr ""
35016
35017 #. type: verbatim
35018 #: ../src/guestfs.pod:1619
35019 #, no-wrap
35020 msgid ""
35021 " guestfs_add_drive_opts (g, filename,\n"
35022 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35023 "                         -1);\n"
35024 "\n"
35025 msgstr ""
35026
35027 #. type: textblock
35028 #: ../src/guestfs.pod:1623
35029 msgid "With two:"
35030 msgstr ""
35031
35032 #. type: verbatim
35033 #: ../src/guestfs.pod:1625
35034 #, no-wrap
35035 msgid ""
35036 " guestfs_add_drive_opts (g, filename,\n"
35037 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35038 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35039 "                         -1);\n"
35040 "\n"
35041 msgstr ""
35042
35043 #. type: textblock
35044 #: ../src/guestfs.pod:1630
35045 msgid ""
35046 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35047 "happen!"
35048 msgstr ""
35049
35050 #. type: =head2
35051 #: ../src/guestfs.pod:1633
35052 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35053 msgstr ""
35054
35055 #. type: textblock
35056 #: ../src/guestfs.pod:1635
35057 msgid ""
35058 "The second variant has the same name with the suffix C<_va>, which works the "
35059 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35060 "example function, this is declared:"
35061 msgstr ""
35062
35063 #. type: verbatim
35064 #: ../src/guestfs.pod:1639
35065 #, no-wrap
35066 msgid ""
35067 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35068 "                                va_list args);\n"
35069 "\n"
35070 msgstr ""
35071
35072 #. type: =head2
35073 #: ../src/guestfs.pod:1642
35074 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs.pod:1644
35079 msgid ""
35080 "The third variant is useful where you need to construct these calls.  You "
35081 "pass in a structure where you fill in the optional fields.  The structure "
35082 "has a bitmask as the first element which you must set to indicate which "
35083 "fields you have filled in.  For our example function the structure and call "
35084 "are declared:"
35085 msgstr ""
35086
35087 #. type: verbatim
35088 #: ../src/guestfs.pod:1650
35089 #, no-wrap
35090 msgid ""
35091 " struct guestfs_add_drive_opts_argv {\n"
35092 "   uint64_t bitmask;\n"
35093 "   int readonly;\n"
35094 "   const char *format;\n"
35095 "   /* ... */\n"
35096 " };\n"
35097 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35098 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35099 "\n"
35100 msgstr ""
35101
35102 #. type: textblock
35103 #: ../src/guestfs.pod:1659
35104 msgid "You could call it like this:"
35105 msgstr ""
35106
35107 #. type: verbatim
35108 #: ../src/guestfs.pod:1661
35109 #, no-wrap
35110 msgid ""
35111 " struct guestfs_add_drive_opts_argv optargs = {\n"
35112 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35113 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35114 "   .readonly = 1,\n"
35115 "   .format = \"qcow2\"\n"
35116 " };\n"
35117 " \n"
35118 msgstr ""
35119
35120 #. type: verbatim
35121 #: ../src/guestfs.pod:1668
35122 #, no-wrap
35123 msgid ""
35124 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35125 "\n"
35126 msgstr ""
35127
35128 #. type: textblock
35129 #: ../src/guestfs.pod:1676
35130 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:1681
35135 msgid "You do not need to fill in all fields of the structure."
35136 msgstr ""
35137
35138 #. type: textblock
35139 #: ../src/guestfs.pod:1685
35140 msgid ""
35141 "There must be a one-to-one correspondence between fields of the structure "
35142 "that are filled in, and bits set in the bitmask."
35143 msgstr ""
35144
35145 #. type: =head2
35146 #: ../src/guestfs.pod:1690
35147 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:1692
35152 msgid ""
35153 "In other languages, optional arguments are expressed in the way that is "
35154 "natural for that language.  We refer you to the language-specific "
35155 "documentation for more details on that."
35156 msgstr ""
35157
35158 #. type: textblock
35159 #: ../src/guestfs.pod:1696
35160 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35161 msgstr ""
35162
35163 #. type: =head2
35164 #: ../src/guestfs.pod:1698
35165 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35166 msgstr ""
35167
35168 #. type: textblock
35169 #: ../src/guestfs.pod:1700
35170 msgid ""
35171 "B<Note:> This section documents the generic event mechanism introduced in "
35172 "libguestfs 1.10, which you should use in new code if possible.  The old "
35173 "functions C<guestfs_set_log_message_callback>, "
35174 "C<guestfs_set_subprocess_quit_callback>, "
35175 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35176 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35177 "page.  Because of the ABI guarantee, the old functions continue to work."
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:1709
35182 msgid ""
35183 "Handles generate events when certain things happen, such as log messages "
35184 "being generated, progress messages during long-running operations, or the "
35185 "handle being closed.  The API calls described below let you register a "
35186 "callback to be called when events happen.  You can register multiple "
35187 "callbacks (for the same, different or overlapping sets of events), and "
35188 "individually remove callbacks.  If callbacks are not removed, then they "
35189 "remain in force until the handle is closed."
35190 msgstr ""
35191
35192 #. type: textblock
35193 #: ../src/guestfs.pod:1717
35194 msgid ""
35195 "In the current implementation, events are only generated synchronously: that "
35196 "means that events (and hence callbacks) can only happen while you are in the "
35197 "middle of making another libguestfs call.  The callback is called in the "
35198 "same thread."
35199 msgstr ""
35200
35201 #. type: textblock
35202 #: ../src/guestfs.pod:1722
35203 msgid ""
35204 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35205 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35206 msgstr ""
35207
35208 #. type: =head3
35209 #: ../src/guestfs.pod:1726
35210 msgid "CLASSES OF EVENTS"
35211 msgstr ""
35212
35213 #. type: =item
35214 #: ../src/guestfs.pod:1730
35215 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35216 msgstr ""
35217
35218 #. type: textblock
35219 #: ../src/guestfs.pod:1733
35220 msgid ""
35221 "The callback function will be called while the handle is being closed "
35222 "(synchronously from L</guestfs_close>)."
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:1736
35227 msgid ""
35228 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35229 "handles that are open when the program exits.  This means that this callback "
35230 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35231 "problems in higher-level languages (eg. if your HLL interpreter has already "
35232 "been cleaned up by the time this is called, and if your callback then jumps "
35233 "into some HLL function)."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:1743
35238 msgid ""
35239 "If no callback is registered: the handle is closed without any callback "
35240 "being invoked."
35241 msgstr ""
35242
35243 #. type: =item
35244 #: ../src/guestfs.pod:1746
35245 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:1749
35250 msgid ""
35251 "The callback function will be called when the child process quits, either "
35252 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35253 "corresponds to a transition from any state to the CONFIG state)."
35254 msgstr ""
35255
35256 #. type: textblock
35257 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
35258 msgid "If no callback is registered: the event is ignored."
35259 msgstr ""
35260
35261 #. type: =item
35262 #: ../src/guestfs.pod:1755
35263 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35264 msgstr ""
35265
35266 #. type: textblock
35267 #: ../src/guestfs.pod:1758
35268 msgid ""
35269 "The callback function will be called when the child process becomes ready "
35270 "first time after it has been launched.  (This corresponds to a transition "
35271 "from LAUNCHING to the READY state)."
35272 msgstr ""
35273
35274 #. type: =item
35275 #: ../src/guestfs.pod:1764
35276 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:1767
35281 msgid ""
35282 "Some long-running operations can generate progress messages.  If this "
35283 "callback is registered, then it will be called each time a progress message "
35284 "is generated (usually two seconds after the operation started, and three "
35285 "times per second thereafter until it completes, although the frequency may "
35286 "change in future versions)."
35287 msgstr ""
35288
35289 #. type: textblock
35290 #: ../src/guestfs.pod:1773
35291 msgid ""
35292 "The callback receives in the payload four unsigned 64 bit numbers which are "
35293 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:1776
35298 msgid ""
35299 "The units of C<total> are not defined, although for some operations C<total> "
35300 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35301 "or megabytes), and C<position> may be the portion which has been transferred."
35302 msgstr ""
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:1781
35306 msgid "The only defined and stable parts of the API are:"
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:1787
35311 msgid ""
35312 "The callback can display to the user some type of progress bar or indicator "
35313 "which shows the ratio of C<position>:C<total>."
35314 msgstr ""
35315
35316 #. type: textblock
35317 #: ../src/guestfs.pod:1792
35318 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35319 msgstr ""
35320
35321 #. type: textblock
35322 #: ../src/guestfs.pod:1796
35323 msgid ""
35324 "If any progress notification is sent during a call, then a final progress "
35325 "notification is always sent when C<position> = C<total> (I<unless> the call "
35326 "fails with an error)."
35327 msgstr ""
35328
35329 #. type: textblock
35330 #: ../src/guestfs.pod:1800
35331 msgid ""
35332 "This is to simplify caller code, so callers can easily set the progress "
35333 "indicator to \"100%\" at the end of the operation, without requiring special "
35334 "code to detect this case."
35335 msgstr ""
35336
35337 #. type: textblock
35338 #: ../src/guestfs.pod:1806
35339 msgid ""
35340 "For some calls we are unable to estimate the progress of the call, but we "
35341 "can still generate progress messages to indicate activity.  This is known as "
35342 "\"pulse mode\", and is directly supported by certain progress bar "
35343 "implementations (eg. GtkProgressBar)."
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:1811
35348 msgid ""
35349 "For these calls, zero or more progress messages are generated with "
35350 "C<position = 0> and C<total = 1>, followed by a final message with "
35351 "C<position = total = 1>."
35352 msgstr ""
35353
35354 #. type: textblock
35355 #: ../src/guestfs.pod:1815
35356 msgid ""
35357 "As noted above, if the call fails with an error then the final message may "
35358 "not be generated."
35359 msgstr ""
35360
35361 #. type: textblock
35362 #: ../src/guestfs.pod:1820
35363 msgid ""
35364 "The callback also receives the procedure number (C<proc_nr>) and serial "
35365 "number (C<serial>) of the call.  These are only useful for debugging "
35366 "protocol issues, and the callback can normally ignore them.  The callback "
35367 "may want to print these numbers in error messages or debugging messages."
35368 msgstr ""
35369
35370 #. type: textblock
35371 #: ../src/guestfs.pod:1826
35372 msgid "If no callback is registered: progress messages are discarded."
35373 msgstr ""
35374
35375 #. type: =item
35376 #: ../src/guestfs.pod:1828
35377 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35378 msgstr ""
35379
35380 #. type: textblock
35381 #: ../src/guestfs.pod:1831
35382 msgid ""
35383 "The callback function is called whenever a log message is generated by qemu, "
35384 "the appliance kernel, guestfsd (daemon), or utility programs."
35385 msgstr ""
35386
35387 #. type: textblock
35388 #: ../src/guestfs.pod:1834
35389 msgid ""
35390 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35391 "guestfs_launch>) then additional debug messages are generated."
35392 msgstr ""
35393
35394 #. type: textblock
35395 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
35396 msgid ""
35397 "If no callback is registered: the messages are discarded unless the verbose "
35398 "flag is set in which case they are sent to stderr.  You can override the "
35399 "printing of verbose messages to stderr by setting up a callback."
35400 msgstr ""
35401
35402 #. type: =item
35403 #: ../src/guestfs.pod:1842
35404 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:1845
35409 msgid ""
35410 "The callback function is called whenever a log message is generated by the "
35411 "library part of libguestfs."
35412 msgstr ""
35413
35414 #. type: textblock
35415 #: ../src/guestfs.pod:1848
35416 msgid ""
35417 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35418 "messages are generated."
35419 msgstr ""
35420
35421 #. type: =item
35422 #: ../src/guestfs.pod:1856
35423 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35424 msgstr ""
35425
35426 #. type: textblock
35427 #: ../src/guestfs.pod:1859
35428 msgid ""
35429 "The callback function is called whenever a trace message is generated.  This "
35430 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35431 msgstr ""
35432
35433 #. type: textblock
35434 #: ../src/guestfs.pod:1862
35435 msgid ""
35436 "If no callback is registered: the messages are sent to stderr.  You can "
35437 "override the printing of trace messages to stderr by setting up a callback."
35438 msgstr ""
35439
35440 #. type: =item
35441 #: ../src/guestfs.pod:1866
35442 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:1869
35447 msgid ""
35448 "The callback function is called whenever a libguestfs function is entered."
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:1872
35453 msgid ""
35454 "The payload is a string which contains the name of the function that we are "
35455 "entering (not including C<guestfs_> prefix)."
35456 msgstr ""
35457
35458 #. type: textblock
35459 #: ../src/guestfs.pod:1875
35460 msgid ""
35461 "Note that libguestfs functions can call themselves, so you may see many "
35462 "events from a single call.  A few libguestfs functions do not generate this "
35463 "event."
35464 msgstr ""
35465
35466 #. type: =head3
35467 #: ../src/guestfs.pod:1883
35468 msgid "guestfs_set_event_callback"
35469 msgstr ""
35470
35471 #. type: verbatim
35472 #: ../src/guestfs.pod:1885
35473 #, no-wrap
35474 msgid ""
35475 " int guestfs_set_event_callback (guestfs_h *g,\n"
35476 "                                 guestfs_event_callback cb,\n"
35477 "                                 uint64_t event_bitmask,\n"
35478 "                                 int flags,\n"
35479 "                                 void *opaque);\n"
35480 "\n"
35481 msgstr ""
35482
35483 #. type: textblock
35484 #: ../src/guestfs.pod:1891
35485 msgid ""
35486 "This function registers a callback (C<cb>) for all event classes in the "
35487 "C<event_bitmask>."
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:1894
35492 msgid ""
35493 "For example, to register for all log message events, you could call this "
35494 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35495 "To register a single callback for all possible classes of events, use "
35496 "C<GUESTFS_EVENT_ALL>."
35497 msgstr ""
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:1900
35501 msgid "C<flags> should always be passed as 0."
35502 msgstr ""
35503
35504 #. type: textblock
35505 #: ../src/guestfs.pod:1902
35506 msgid ""
35507 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35508 "it for any purpose."
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:1905
35513 msgid ""
35514 "The return value is the event handle (an integer) which you can use to "
35515 "delete the callback (see below)."
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:1908
35520 msgid ""
35521 "If there is an error, this function returns C<-1>, and sets the error in the "
35522 "handle in the usual way (see L</guestfs_last_error> etc.)"
35523 msgstr ""
35524
35525 #. type: textblock
35526 #: ../src/guestfs.pod:1911
35527 msgid ""
35528 "Callbacks remain in effect until they are deleted, or until the handle is "
35529 "closed."
35530 msgstr ""
35531
35532 #. type: textblock
35533 #: ../src/guestfs.pod:1914
35534 msgid ""
35535 "In the case where multiple callbacks are registered for a particular event "
35536 "class, all of the callbacks are called.  The order in which multiple "
35537 "callbacks are called is not defined."
35538 msgstr ""
35539
35540 #. type: =head3
35541 #: ../src/guestfs.pod:1918
35542 msgid "guestfs_delete_event_callback"
35543 msgstr ""
35544
35545 #. type: verbatim
35546 #: ../src/guestfs.pod:1920
35547 #, no-wrap
35548 msgid ""
35549 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
35550 "\n"
35551 msgstr ""
35552
35553 #. type: textblock
35554 #: ../src/guestfs.pod:1922
35555 msgid ""
35556 "Delete a callback that was previously registered.  C<event_handle> should be "
35557 "the integer that was returned by a previous call to "
35558 "C<guestfs_set_event_callback> on the same handle."
35559 msgstr ""
35560
35561 #. type: =head3
35562 #: ../src/guestfs.pod:1926
35563 msgid "guestfs_event_callback"
35564 msgstr ""
35565
35566 #. type: verbatim
35567 #: ../src/guestfs.pod:1928
35568 #, no-wrap
35569 msgid ""
35570 " typedef void (*guestfs_event_callback) (\n"
35571 "                  guestfs_h *g,\n"
35572 "                  void *opaque,\n"
35573 "                  uint64_t event,\n"
35574 "                  int event_handle,\n"
35575 "                  int flags,\n"
35576 "                  const char *buf, size_t buf_len,\n"
35577 "                  const uint64_t *array, size_t array_len);\n"
35578 "\n"
35579 msgstr ""
35580
35581 #. type: textblock
35582 #: ../src/guestfs.pod:1937
35583 msgid ""
35584 "This is the type of the event callback function that you have to provide."
35585 msgstr ""
35586
35587 #. type: textblock
35588 #: ../src/guestfs.pod:1940
35589 msgid ""
35590 "The basic parameters are: the handle (C<g>), the opaque user pointer "
35591 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
35592 "handle, and C<flags> which in the current API you should ignore."
35593 msgstr ""
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:1944
35597 msgid ""
35598 "The remaining parameters contain the event payload (if any).  Each event may "
35599 "contain a payload, which usually relates to the event class, but for future "
35600 "proofing your code should be written to handle any payload for any event "
35601 "class."
35602 msgstr ""
35603
35604 #. type: textblock
35605 #: ../src/guestfs.pod:1949
35606 msgid ""
35607 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
35608 "there is no message buffer).  Note that this message buffer can contain "
35609 "arbitrary 8 bit data, including NUL bytes."
35610 msgstr ""
35611
35612 #. type: textblock
35613 #: ../src/guestfs.pod:1953
35614 msgid ""
35615 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
35616 "moment this is only used for progress messages."
35617 msgstr ""
35618
35619 #. type: =head3
35620 #: ../src/guestfs.pod:1956
35621 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
35622 msgstr ""
35623
35624 #. type: textblock
35625 #: ../src/guestfs.pod:1958
35626 msgid ""
35627 "One motivation for the generic event API was to allow GUI programs to "
35628 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
35629 "unconditionally to C<stderr>."
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../src/guestfs.pod:1962
35634 msgid ""
35635 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
35636 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
35637 "messages are not events; you must capture error messages separately)."
35638 msgstr ""
35639
35640 #. type: textblock
35641 #: ../src/guestfs.pod:1967
35642 msgid ""
35643 "Programs have to set up a callback to capture the classes of events of "
35644 "interest:"
35645 msgstr ""
35646
35647 #. type: verbatim
35648 #: ../src/guestfs.pod:1970
35649 #, no-wrap
35650 msgid ""
35651 " int eh =\n"
35652 "   guestfs_set_event_callback\n"
35653 "     (g, message_callback,\n"
35654 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
35655 "      GUESTFS_EVENT_TRACE,\n"
35656 "      0, NULL) == -1)\n"
35657 " if (eh == -1) {\n"
35658 "   // handle error in the usual way\n"
35659 " }\n"
35660 "\n"
35661 msgstr ""
35662
35663 #. type: textblock
35664 #: ../src/guestfs.pod:1980
35665 msgid ""
35666 "The callback can then direct messages to the appropriate place.  In this "
35667 "example, messages are directed to syslog:"
35668 msgstr ""
35669
35670 #. type: verbatim
35671 #: ../src/guestfs.pod:1983
35672 #, no-wrap
35673 msgid ""
35674 " static void\n"
35675 " message_callback (\n"
35676 "         guestfs_h *g,\n"
35677 "         void *opaque,\n"
35678 "         uint64_t event,\n"
35679 "         int event_handle,\n"
35680 "         int flags,\n"
35681 "         const char *buf, size_t buf_len,\n"
35682 "         const uint64_t *array, size_t array_len)\n"
35683 " {\n"
35684 "   const int priority = LOG_USER|LOG_INFO;\n"
35685 "   if (buf_len > 0)\n"
35686 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
35687 " }\n"
35688 "\n"
35689 msgstr ""
35690
35691 #. type: =head1
35692 #: ../src/guestfs.pod:1998
35693 msgid "CANCELLING LONG TRANSFERS"
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:2000
35698 msgid ""
35699 "Some operations can be cancelled by the caller while they are in progress.  "
35700 "Currently only operations that involve uploading or downloading data can be "
35701 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
35702 "parameters in the generator)."
35703 msgstr ""
35704
35705 #. type: =head2
35706 #: ../src/guestfs.pod:2005
35707 msgid "guestfs_user_cancel"
35708 msgstr ""
35709
35710 #. type: verbatim
35711 #: ../src/guestfs.pod:2007
35712 #, no-wrap
35713 msgid ""
35714 " void guestfs_user_cancel (guestfs_h *g);\n"
35715 "\n"
35716 msgstr ""
35717
35718 #. type: textblock
35719 #: ../src/guestfs.pod:2009
35720 msgid ""
35721 "C<guestfs_user_cancel> cancels the current upload or download operation."
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:2012
35726 msgid ""
35727 "Unlike most other libguestfs calls, this function is signal safe and thread "
35728 "safe.  You can call it from a signal handler or from another thread, without "
35729 "needing to do any locking."
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:2016
35734 msgid ""
35735 "The transfer that was in progress (if there is one) will stop shortly "
35736 "afterwards, and will return an error.  The errno (see L</"
35737 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
35738 "out if the operation was cancelled or failed because of another error."
35739 msgstr ""
35740
35741 #. type: textblock
35742 #: ../src/guestfs.pod:2022
35743 msgid ""
35744 "No cleanup is performed: for example, if a file was being uploaded then "
35745 "after cancellation there may be a partially uploaded file.  It is the "
35746 "caller's responsibility to clean up if necessary."
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:2026
35751 msgid "There are two common places that you might call C<guestfs_user_cancel>."
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:2028
35756 msgid ""
35757 "In an interactive text-based program, you might call it from a C<SIGINT> "
35758 "signal handler so that pressing C<^C> cancels the current operation.  (You "
35759 "also need to call L</guestfs_set_pgroup> so that child processes don't "
35760 "receive the C<^C> signal)."
35761 msgstr ""
35762
35763 #. type: textblock
35764 #: ../src/guestfs.pod:2033
35765 msgid ""
35766 "In a graphical program, when the main thread is displaying a progress bar "
35767 "with a cancel button, wire up the cancel button to call this function."
35768 msgstr ""
35769
35770 #. type: =head1
35771 #: ../src/guestfs.pod:2037
35772 msgid "PRIVATE DATA AREA"
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:2039
35777 msgid ""
35778 "You can attach named pieces of private data to the libguestfs handle, fetch "
35779 "them by name, and walk over them, for the lifetime of the handle.  This is "
35780 "called the private data area and is only available from the C API."
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:2044
35785 msgid "To attach a named piece of data, use the following call:"
35786 msgstr ""
35787
35788 #. type: verbatim
35789 #: ../src/guestfs.pod:2046
35790 #, no-wrap
35791 msgid ""
35792 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
35793 "\n"
35794 msgstr ""
35795
35796 #. type: textblock
35797 #: ../src/guestfs.pod:2048
35798 msgid ""
35799 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
35800 "pointer (which can be C<NULL>).  Any previous item with the same key is "
35801 "overwritten."
35802 msgstr ""
35803
35804 #. type: textblock
35805 #: ../src/guestfs.pod:2052
35806 msgid ""
35807 "You can use any C<key> you want, but your key should I<not> start with an "
35808 "underscore character.  Keys beginning with an underscore character are "
35809 "reserved for internal libguestfs purposes (eg. for implementing language "
35810 "bindings).  It is recommended that you prefix the key with some unique "
35811 "string to avoid collisions with other users."
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:2058
35816 msgid "To retrieve the pointer, use:"
35817 msgstr ""
35818
35819 #. type: verbatim
35820 #: ../src/guestfs.pod:2060
35821 #, no-wrap
35822 msgid ""
35823 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
35824 "\n"
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:2062
35829 msgid ""
35830 "This function returns C<NULL> if either no data is found associated with "
35831 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
35832 "C<NULL>."
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:2066
35837 msgid ""
35838 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
35839 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
35840 "all.  In particular, libguestfs does I<not> try to free the data when the "
35841 "handle is closed.  If the data must be freed, then the caller must either "
35842 "free it before calling L</guestfs_close> or must set up a close callback to "
35843 "do it (see L</GUESTFS_EVENT_CLOSE>)."
35844 msgstr ""
35845
35846 #. type: textblock
35847 #: ../src/guestfs.pod:2073
35848 msgid "To walk over all entries, use these two functions:"
35849 msgstr ""
35850
35851 #. type: verbatim
35852 #: ../src/guestfs.pod:2075
35853 #, no-wrap
35854 msgid ""
35855 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
35856 "\n"
35857 msgstr ""
35858
35859 #. type: verbatim
35860 #: ../src/guestfs.pod:2077
35861 #, no-wrap
35862 msgid ""
35863 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
35864 "\n"
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs.pod:2079
35869 msgid ""
35870 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
35871 "not have any particular meaning -- keys are not returned in any defined "
35872 "order).  A pointer to the key is returned in C<*key_rtn> and the "
35873 "corresponding data pointer is returned from the function.  C<NULL> is "
35874 "returned if there are no keys stored in the handle."
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:2085
35879 msgid ""
35880 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
35881 "value of this function is also C<NULL> is there are no further entries to "
35882 "return."
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:2089
35887 msgid "Notes about walking over entries:"
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:2095
35892 msgid ""
35893 "You must not call C<guestfs_set_private> while walking over the entries."
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:2100
35898 msgid ""
35899 "The handle maintains an internal iterator which is reset when you call "
35900 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
35901 "call C<guestfs_set_private>."
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:2106
35906 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
35907 msgstr ""
35908
35909 #. type: verbatim
35910 #: ../src/guestfs.pod:2108
35911 #, no-wrap
35912 msgid ""
35913 " guestfs_set_private (g, key, NULL);\n"
35914 "\n"
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:2110
35919 msgid "then that C<key> is not returned when walking."
35920 msgstr ""
35921
35922 #. type: textblock
35923 #: ../src/guestfs.pod:2114
35924 msgid ""
35925 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
35926 "C<guestfs_next_private> or C<guestfs_set_private>."
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:2120
35931 msgid ""
35932 "The following example code shows how to print all keys and data pointers "
35933 "that are associated with the handle C<g>:"
35934 msgstr ""
35935
35936 #. type: verbatim
35937 #: ../src/guestfs.pod:2123
35938 #, no-wrap
35939 msgid ""
35940 " const char *key;\n"
35941 " void *data = guestfs_first_private (g, &key);\n"
35942 " while (data != NULL)\n"
35943 "   {\n"
35944 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
35945 "     data = guestfs_next_private (g, &key);\n"
35946 "   }\n"
35947 "\n"
35948 msgstr ""
35949
35950 #. type: textblock
35951 #: ../src/guestfs.pod:2131
35952 msgid ""
35953 "More commonly you are only interested in keys that begin with an application-"
35954 "specific prefix C<foo_>.  Modify the loop like so:"
35955 msgstr ""
35956
35957 #. type: verbatim
35958 #: ../src/guestfs.pod:2134
35959 #, no-wrap
35960 msgid ""
35961 " const char *key;\n"
35962 " void *data = guestfs_first_private (g, &key);\n"
35963 " while (data != NULL)\n"
35964 "   {\n"
35965 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35966 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
35967 "     data = guestfs_next_private (g, &key);\n"
35968 "   }\n"
35969 "\n"
35970 msgstr ""
35971
35972 #. type: textblock
35973 #: ../src/guestfs.pod:2143
35974 msgid ""
35975 "If you need to modify keys while walking, then you have to jump back to the "
35976 "beginning of the loop.  For example, to delete all keys prefixed with "
35977 "C<foo_>:"
35978 msgstr ""
35979
35980 #. type: verbatim
35981 #: ../src/guestfs.pod:2147
35982 #, no-wrap
35983 msgid ""
35984 "  const char *key;\n"
35985 "  void *data;\n"
35986 " again:\n"
35987 "  data = guestfs_first_private (g, &key);\n"
35988 "  while (data != NULL)\n"
35989 "    {\n"
35990 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
35991 "        {\n"
35992 "          guestfs_set_private (g, key, NULL);\n"
35993 "          /* note that 'key' pointer is now invalid, and so is\n"
35994 "             the internal iterator */\n"
35995 "          goto again;\n"
35996 "        }\n"
35997 "      data = guestfs_next_private (g, &key);\n"
35998 "    }\n"
35999 "\n"
36000 msgstr ""
36001
36002 #. type: textblock
36003 #: ../src/guestfs.pod:2163
36004 msgid ""
36005 "Note that the above loop is guaranteed to terminate because the keys are "
36006 "being deleted, but other manipulations of keys within the loop might not "
36007 "terminate unless you also maintain an indication of which keys have been "
36008 "visited."
36009 msgstr ""
36010
36011 #. type: =end
36012 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
36013 msgid "html"
36014 msgstr ""
36015
36016 #. type: textblock
36017 #: ../src/guestfs.pod:2170
36018 msgid ""
36019 "<!-- old anchor for the next section --> <a name="
36020 "\"state_machine_and_low_level_event_api\"/>"
36021 msgstr ""
36022
36023 #. type: =head1
36024 #: ../src/guestfs.pod:2175
36025 msgid "ARCHITECTURE"
36026 msgstr ""
36027
36028 #. type: textblock
36029 #: ../src/guestfs.pod:2177
36030 msgid ""
36031 "Internally, libguestfs is implemented by running an appliance (a special "
36032 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36033 "process of the main program."
36034 msgstr ""
36035
36036 #. type: verbatim
36037 #: ../src/guestfs.pod:2181
36038 #, no-wrap
36039 msgid ""
36040 "  ___________________\n"
36041 " /                   \\\n"
36042 " | main program      |\n"
36043 " |                   |\n"
36044 " |                   |           child process / appliance\n"
36045 " |                   |           __________________________\n"
36046 " |                   |          / qemu                     \\\n"
36047 " +-------------------+   RPC    |      +-----------------+ |\n"
36048 " | libguestfs     <--------------------> guestfsd        | |\n"
36049 " |                   |          |      +-----------------+ |\n"
36050 " \\___________________/          |      | Linux kernel    | |\n"
36051 "                                |      +--^--------------+ |\n"
36052 "                                \\_________|________________/\n"
36053 "                                          |\n"
36054 "                                   _______v______\n"
36055 "                                  /              \\\n"
36056 "                                  | Device or    |\n"
36057 "                                  | disk image   |\n"
36058 "                                  \\______________/\n"
36059 "\n"
36060 msgstr ""
36061
36062 #. type: textblock
36063 #: ../src/guestfs.pod:2201
36064 msgid ""
36065 "The library, linked to the main program, creates the child process and hence "
36066 "the appliance in the L</guestfs_launch> function."
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:2204
36071 msgid ""
36072 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36073 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36074 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36075 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36076 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36077 "attached to the qemu process which translates device access by the "
36078 "appliance's Linux kernel into accesses to the image."
36079 msgstr ""
36080
36081 #. type: textblock
36082 #: ../src/guestfs.pod:2213
36083 msgid ""
36084 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36085 "Although the disk image you are attached to might also be used by some "
36086 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36087 "care if both libguestfs's qemu process and your virtual machine are trying "
36088 "to update the disk image at the same time, since these usually results in "
36089 "massive disk corruption)."
36090 msgstr ""
36091
36092 #. type: =head1
36093 #: ../src/guestfs.pod:2220
36094 msgid "STATE MACHINE"
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs.pod:2222
36099 msgid "libguestfs uses a state machine to model the child process:"
36100 msgstr ""
36101
36102 #. type: verbatim
36103 #: ../src/guestfs.pod:2224
36104 #, no-wrap
36105 msgid ""
36106 "                         |\n"
36107 "                    guestfs_create\n"
36108 "                         |\n"
36109 "                         |\n"
36110 "                     ____V_____\n"
36111 "                    /          \\\n"
36112 "                    |  CONFIG  |\n"
36113 "                    \\__________/\n"
36114 "                     ^ ^   ^  \\\n"
36115 "                    /  |    \\  \\ guestfs_launch\n"
36116 "                   /   |    _\\__V______\n"
36117 "                  /    |   /           \\\n"
36118 "                 /     |   | LAUNCHING |\n"
36119 "                /      |   \\___________/\n"
36120 "               /       |       /\n"
36121 "              /        |  guestfs_launch\n"
36122 "             /         |     /\n"
36123 "    ______  /        __|____V\n"
36124 "   /      \\ ------> /        \\\n"
36125 "   | BUSY |         | READY  |\n"
36126 "   \\______/ <------ \\________/\n"
36127 "\n"
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:2246
36132 msgid ""
36133 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36134 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36135 "(3) alternating between READY and BUSY as commands are issued to, and "
36136 "carried out by, the child process."
36137 msgstr ""
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:2251
36141 msgid ""
36142 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36143 "asynchronously at any time (eg. due to some internal error), and that causes "
36144 "the state to transition back to CONFIG."
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:2255
36149 msgid ""
36150 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36151 "issued when in the CONFIG state."
36152 msgstr ""
36153
36154 #. type: textblock
36155 #: ../src/guestfs.pod:2258
36156 msgid ""
36157 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36158 "L</guestfs_launch> blocks until the child process is READY to accept "
36159 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36160 "moves the state from CONFIG to LAUNCHING while it is running."
36161 msgstr ""
36162
36163 #. type: textblock
36164 #: ../src/guestfs.pod:2264
36165 msgid ""
36166 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36167 "state.  These API calls block waiting for the command to be carried out (ie. "
36168 "the state to transition to BUSY and then back to READY).  There are no non-"
36169 "blocking versions, and no way to issue more than one command per handle at "
36170 "the same time."
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../src/guestfs.pod:2270
36175 msgid ""
36176 "Finally, the child process sends asynchronous messages back to the main "
36177 "program, such as kernel log messages.  You can register a callback to "
36178 "receive these messages."
36179 msgstr ""
36180
36181 #. type: =head1
36182 #: ../src/guestfs.pod:2274
36183 msgid "INTERNALS"
36184 msgstr ""
36185
36186 #. type: =head2
36187 #: ../src/guestfs.pod:2276
36188 msgid "APPLIANCE BOOT PROCESS"
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../src/guestfs.pod:2278
36193 msgid ""
36194 "This process has evolved and continues to evolve.  The description here "
36195 "corresponds only to the current version of libguestfs and is provided for "
36196 "information only."
36197 msgstr ""
36198
36199 #. type: textblock
36200 #: ../src/guestfs.pod:2282
36201 msgid ""
36202 "In order to follow the stages involved below, enable libguestfs debugging "
36203 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36204 msgstr ""
36205
36206 #. type: =item
36207 #: ../src/guestfs.pod:2287
36208 msgid "Create the appliance"
36209 msgstr ""
36210
36211 #. type: textblock
36212 #: ../src/guestfs.pod:2289
36213 msgid ""
36214 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36215 "initrd and the appliance."
36216 msgstr ""
36217
36218 #. type: textblock
36219 #: ../src/guestfs.pod:2292
36220 msgid ""
36221 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36222 "directory if C<TMPDIR> is set)."
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:2295
36227 msgid ""
36228 "For a complete description of how the appliance is created and cached, read "
36229 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36230 msgstr ""
36231
36232 #. type: =item
36233 #: ../src/guestfs.pod:2299
36234 msgid "Start qemu and boot the kernel"
36235 msgstr ""
36236
36237 #. type: textblock
36238 #: ../src/guestfs.pod:2301
36239 msgid "qemu is invoked to boot the kernel."
36240 msgstr ""
36241
36242 #. type: =item
36243 #: ../src/guestfs.pod:2303
36244 msgid "Run the initrd"
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:2305
36249 msgid ""
36250 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
36251 "appliance.  The purpose of the initrd is to load enough kernel modules in "
36252 "order that the appliance itself can be mounted and started."
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:2309
36257 msgid ""
36258 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
36259 "initrd>."
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:2312
36264 msgid ""
36265 "When the initrd has started you will see messages showing that kernel "
36266 "modules are being loaded, similar to this:"
36267 msgstr ""
36268
36269 #. type: verbatim
36270 #: ../src/guestfs.pod:2315
36271 #, no-wrap
36272 msgid ""
36273 " febootstrap: ext2 mini initrd starting up\n"
36274 " febootstrap: mounting /sys\n"
36275 " febootstrap: internal insmod libcrc32c.ko\n"
36276 " febootstrap: internal insmod crc32c-intel.ko\n"
36277 "\n"
36278 msgstr ""
36279
36280 #. type: =item
36281 #: ../src/guestfs.pod:2320
36282 msgid "Find and mount the appliance device"
36283 msgstr ""
36284
36285 #. type: textblock
36286 #: ../src/guestfs.pod:2322
36287 msgid ""
36288 "The appliance is a sparse file containing an ext2 filesystem which contains "
36289 "a familiar (although reduced in size) Linux operating system.  It would "
36290 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:2326
36295 msgid ""
36296 "The regular disks being inspected by libguestfs are the first devices "
36297 "exposed by qemu (eg. as C</dev/vda>)."
36298 msgstr ""
36299
36300 #. type: textblock
36301 #: ../src/guestfs.pod:2329
36302 msgid ""
36303 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
36304 "there was only one regular disk)."
36305 msgstr ""
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:2332
36309 msgid ""
36310 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
36311 "and switch root into the appliance, and run C</init> from the appliance."
36312 msgstr ""
36313
36314 #. type: textblock
36315 #: ../src/guestfs.pod:2336
36316 msgid "If this works successfully you will see messages such as:"
36317 msgstr ""
36318
36319 #. type: verbatim
36320 #: ../src/guestfs.pod:2338
36321 #, no-wrap
36322 msgid ""
36323 " febootstrap: picked /sys/block/vdb/dev as root device\n"
36324 " febootstrap: creating /dev/root as block special 252:16\n"
36325 " febootstrap: mounting new root on /root\n"
36326 " febootstrap: chroot\n"
36327 " Starting /init script ...\n"
36328 "\n"
36329 msgstr ""
36330
36331 #. type: textblock
36332 #: ../src/guestfs.pod:2344
36333 msgid ""
36334 "Note that C<Starting /init script ...> indicates that the appliance's init "
36335 "script is now running."
36336 msgstr ""
36337
36338 #. type: =item
36339 #: ../src/guestfs.pod:2347
36340 msgid "Initialize the appliance"
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:2349
36345 msgid ""
36346 "The appliance itself now initializes itself.  This involves starting certain "
36347 "processes like C<udev>, possibly printing some debug information, and "
36348 "finally running the daemon (C<guestfsd>)."
36349 msgstr ""
36350
36351 #. type: =item
36352 #: ../src/guestfs.pod:2353
36353 msgid "The daemon"
36354 msgstr ""
36355
36356 #. type: textblock
36357 #: ../src/guestfs.pod:2355
36358 msgid ""
36359 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
36360 "should see:"
36361 msgstr ""
36362
36363 #. type: verbatim
36364 #: ../src/guestfs.pod:2358
36365 #, no-wrap
36366 msgid ""
36367 " verbose daemon enabled\n"
36368 "\n"
36369 msgstr ""
36370
36371 #. type: textblock
36372 #: ../src/guestfs.pod:2360
36373 msgid ""
36374 "The daemon expects to see a named virtio-serial port exposed by qemu and "
36375 "connected on the other end to the library."
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:2363
36380 msgid ""
36381 "The daemon connects to this port (and hence to the library) and sends a four "
36382 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
36383 "protocol (see below)."
36384 msgstr ""
36385
36386 #. type: =head2
36387 #: ../src/guestfs.pod:2369
36388 msgid "COMMUNICATION PROTOCOL"
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:2371
36393 msgid ""
36394 "Don't rely on using this protocol directly.  This section documents how it "
36395 "currently works, but it may change at any time."
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:2374
36400 msgid ""
36401 "The protocol used to talk between the library and the daemon running inside "
36402 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36403 "1014, RFC 1832, RFC 4506)."
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:2378
36408 msgid ""
36409 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36410 "this file is automatically generated)."
36411 msgstr ""
36412
36413 #. type: textblock
36414 #: ../src/guestfs.pod:2381
36415 msgid ""
36416 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36417 "and C<FileOut> parameters, which are handled with very simple request/reply "
36418 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36419 "parameters, which use the same request and reply messages, but they may also "
36420 "be followed by files sent using a chunked encoding."
36421 msgstr ""
36422
36423 #. type: =head3
36424 #: ../src/guestfs.pod:2388
36425 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36426 msgstr ""
36427
36428 #. type: textblock
36429 #: ../src/guestfs.pod:2390
36430 msgid "For ordinary functions, the request message is:"
36431 msgstr ""
36432
36433 #. type: verbatim
36434 #: ../src/guestfs.pod:2392
36435 #, no-wrap
36436 msgid ""
36437 " total length (header + arguments,\n"
36438 "      but not including the length word itself)\n"
36439 " struct guestfs_message_header (encoded as XDR)\n"
36440 " struct guestfs_<foo>_args (encoded as XDR)\n"
36441 "\n"
36442 msgstr ""
36443
36444 #. type: textblock
36445 #: ../src/guestfs.pod:2397
36446 msgid ""
36447 "The total length field allows the daemon to allocate a fixed size buffer "
36448 "into which it slurps the rest of the message.  As a result, the total length "
36449 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36450 "effective size of any request is limited to somewhere under this size."
36451 msgstr ""
36452
36453 #. type: textblock
36454 #: ../src/guestfs.pod:2403
36455 msgid ""
36456 "Note also that many functions don't take any arguments, in which case the "
36457 "C<guestfs_I<foo>_args> is completely omitted."
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:2406
36462 msgid ""
36463 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36464 "receiver knows what type of args structure to expect, or none at all."
36465 msgstr ""
36466
36467 #. type: textblock
36468 #: ../src/guestfs.pod:2410
36469 msgid ""
36470 "For functions that take optional arguments, the optional arguments are "
36471 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36472 "arguments.  A bitmask in the header indicates which optional arguments are "
36473 "meaningful.  The bitmask is also checked to see if it contains bits set "
36474 "which the daemon does not know about (eg. if more optional arguments were "
36475 "added in a later version of the library), and this causes the call to be "
36476 "rejected."
36477 msgstr ""
36478
36479 #. type: textblock
36480 #: ../src/guestfs.pod:2418
36481 msgid "The reply message for ordinary functions is:"
36482 msgstr ""
36483
36484 #. type: verbatim
36485 #: ../src/guestfs.pod:2420
36486 #, no-wrap
36487 msgid ""
36488 " total length (header + ret,\n"
36489 "      but not including the length word itself)\n"
36490 " struct guestfs_message_header (encoded as XDR)\n"
36491 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36492 "\n"
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../src/guestfs.pod:2425
36497 msgid ""
36498 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36499 "functions that return no formal return values."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../src/guestfs.pod:2428
36504 msgid ""
36505 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36506 msgstr ""
36507
36508 #. type: textblock
36509 #: ../src/guestfs.pod:2431
36510 msgid ""
36511 "In the case of an error, a flag is set in the header, and the reply message "
36512 "is slightly changed:"
36513 msgstr ""
36514
36515 #. type: verbatim
36516 #: ../src/guestfs.pod:2434
36517 #, no-wrap
36518 msgid ""
36519 " total length (header + error,\n"
36520 "      but not including the length word itself)\n"
36521 " struct guestfs_message_header (encoded as XDR)\n"
36522 " struct guestfs_message_error (encoded as XDR)\n"
36523 "\n"
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../src/guestfs.pod:2439
36528 msgid ""
36529 "The C<guestfs_message_error> structure contains the error message as a "
36530 "string."
36531 msgstr ""
36532
36533 #. type: =head3
36534 #: ../src/guestfs.pod:2442
36535 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36536 msgstr ""
36537
36538 #. type: textblock
36539 #: ../src/guestfs.pod:2444
36540 msgid ""
36541 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36542 "The normal request message is sent (see above).  However this is followed by "
36543 "a sequence of file chunks."
36544 msgstr ""
36545
36546 #. type: verbatim
36547 #: ../src/guestfs.pod:2448
36548 #, no-wrap
36549 msgid ""
36550 " total length (header + arguments,\n"
36551 "      but not including the length word itself,\n"
36552 "      and not including the chunks)\n"
36553 " struct guestfs_message_header (encoded as XDR)\n"
36554 " struct guestfs_<foo>_args (encoded as XDR)\n"
36555 " sequence of chunks for FileIn param #0\n"
36556 " sequence of chunks for FileIn param #1 etc.\n"
36557 "\n"
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:2456
36562 msgid "The \"sequence of chunks\" is:"
36563 msgstr ""
36564
36565 #. type: verbatim
36566 #: ../src/guestfs.pod:2458
36567 #, no-wrap
36568 msgid ""
36569 " length of chunk (not including length word itself)\n"
36570 " struct guestfs_chunk (encoded as XDR)\n"
36571 " length of chunk\n"
36572 " struct guestfs_chunk (encoded as XDR)\n"
36573 "   ...\n"
36574 " length of chunk\n"
36575 " struct guestfs_chunk (with data.data_len == 0)\n"
36576 "\n"
36577 msgstr ""
36578
36579 #. type: textblock
36580 #: ../src/guestfs.pod:2466
36581 msgid ""
36582 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36583 "is set in the final chunk to indicate either successful completion or early "
36584 "cancellation."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../src/guestfs.pod:2470
36589 msgid ""
36590 "At time of writing there are no functions that have more than one FileIn "
36591 "parameter.  However this is (theoretically) supported, by sending the "
36592 "sequence of chunks for each FileIn parameter one after another (from left to "
36593 "right)."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../src/guestfs.pod:2475
36598 msgid ""
36599 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36600 "transfer.  The library does this by sending a chunk with a special flag set "
36601 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36602 "RPC, does I<not> send any reply, and goes back to reading the next request."
36603 msgstr ""
36604
36605 #. type: textblock
36606 #: ../src/guestfs.pod:2481
36607 msgid ""
36608 "The daemon may also cancel.  It does this by writing a special word "
36609 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36610 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36611 "cancel chunk).  The special word is chosen so that even if cancellation "
36612 "happens right at the end of the transfer (after the library has finished "
36613 "writing and has started listening for the reply), the \"spurious\" cancel "
36614 "flag will not be confused with the reply message."
36615 msgstr ""
36616
36617 #. type: textblock
36618 #: ../src/guestfs.pod:2490
36619 msgid ""
36620 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36621 "limit), and also files where the size is not known in advance (eg. from "
36622 "pipes or sockets).  However the chunks are rather small "
36623 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36624 "to keep much in memory."
36625 msgstr ""
36626
36627 #. type: =head3
36628 #: ../src/guestfs.pod:2496
36629 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:2498
36634 msgid ""
36635 "The protocol for FileOut parameters is exactly the same as for FileIn "
36636 "parameters, but with the roles of daemon and library reversed."
36637 msgstr ""
36638
36639 #. type: verbatim
36640 #: ../src/guestfs.pod:2501
36641 #, no-wrap
36642 msgid ""
36643 " total length (header + ret,\n"
36644 "      but not including the length word itself,\n"
36645 "      and not including the chunks)\n"
36646 " struct guestfs_message_header (encoded as XDR)\n"
36647 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36648 " sequence of chunks for FileOut param #0\n"
36649 " sequence of chunks for FileOut param #1 etc.\n"
36650 "\n"
36651 msgstr ""
36652
36653 #. type: =head3
36654 #: ../src/guestfs.pod:2509
36655 msgid "INITIAL MESSAGE"
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:2511
36660 msgid ""
36661 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36662 "which indicates that the guest and daemon is alive.  This is what L</"
36663 "guestfs_launch> waits for."
36664 msgstr ""
36665
36666 #. type: =head3
36667 #: ../src/guestfs.pod:2515
36668 msgid "PROGRESS NOTIFICATION MESSAGES"
36669 msgstr ""
36670
36671 #. type: textblock
36672 #: ../src/guestfs.pod:2517
36673 msgid ""
36674 "The daemon may send progress notification messages at any time.  These are "
36675 "distinguished by the normal length word being replaced by "
36676 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:2521
36681 msgid ""
36682 "The library turns them into progress callbacks (see L</"
36683 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36684 "if not."
36685 msgstr ""
36686
36687 #. type: textblock
36688 #: ../src/guestfs.pod:2525
36689 msgid ""
36690 "The daemon self-limits the frequency of progress messages it sends (see "
36691 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36692 "messages."
36693 msgstr ""
36694
36695 #. type: =head1
36696 #: ../src/guestfs.pod:2529
36697 msgid "LIBGUESTFS VERSION NUMBERS"
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:2531
36702 msgid ""
36703 "Since April 2010, libguestfs has started to make separate development and "
36704 "stable releases, along with corresponding branches in our git repository.  "
36705 "These separate releases can be identified by version number:"
36706 msgstr ""
36707
36708 #. type: verbatim
36709 #: ../src/guestfs.pod:2536
36710 #, no-wrap
36711 msgid ""
36712 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
36713 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
36714 "       |\n"
36715 "       v\n"
36716 " 1  .  3  .  5\n"
36717 " ^           ^\n"
36718 " |           |\n"
36719 " |           `-------- sub-version\n"
36720 " |\n"
36721 " `------ always '1' because we don't change the ABI\n"
36722 "\n"
36723 msgstr ""
36724
36725 #. type: textblock
36726 #: ../src/guestfs.pod:2547
36727 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:2549
36732 msgid ""
36733 "As time passes we cherry pick fixes from the development branch and backport "
36734 "those into the stable branch, the effect being that the stable branch should "
36735 "get more stable and less buggy over time.  So the stable releases are ideal "
36736 "for people who don't need new features but would just like the software to "
36737 "work."
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../src/guestfs.pod:2555
36742 msgid "Our criteria for backporting changes are:"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:2561
36747 msgid ""
36748 "Documentation changes which don't affect any code are backported unless the "
36749 "documentation refers to a future feature which is not in stable."
36750 msgstr ""
36751
36752 #. type: textblock
36753 #: ../src/guestfs.pod:2567
36754 msgid ""
36755 "Bug fixes which are not controversial, fix obvious problems, and have been "
36756 "well tested are backported."
36757 msgstr ""
36758
36759 #. type: textblock
36760 #: ../src/guestfs.pod:2572
36761 msgid ""
36762 "Simple rearrangements of code which shouldn't affect how it works get "
36763 "backported.  This is so that the code in the two branches doesn't get too "
36764 "far out of step, allowing us to backport future fixes more easily."
36765 msgstr ""
36766
36767 #. type: textblock
36768 #: ../src/guestfs.pod:2578
36769 msgid ""
36770 "We I<don't> backport new features, new APIs, new tools etc, except in one "
36771 "exceptional case: the new feature is required in order to implement an "
36772 "important bug fix."
36773 msgstr ""
36774
36775 #. type: textblock
36776 #: ../src/guestfs.pod:2584
36777 msgid ""
36778 "A new stable branch starts when we think the new features in development are "
36779 "substantial and compelling enough over the current stable branch to warrant "
36780 "it.  When that happens we create new stable and development versions 1.N.0 "
36781 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
36782 "stable at this point, but by backporting fixes from development, that branch "
36783 "will stabilize over time."
36784 msgstr ""
36785
36786 #. type: =head1
36787 #: ../src/guestfs.pod:2592
36788 msgid "EXTENDING LIBGUESTFS"
36789 msgstr ""
36790
36791 #. type: =head2
36792 #: ../src/guestfs.pod:2594
36793 msgid "ADDING A NEW API ACTION"
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../src/guestfs.pod:2596
36798 msgid ""
36799 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
36800 "documentation) are generated, and this makes it easy to extend the "
36801 "libguestfs API."
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../src/guestfs.pod:2600
36806 msgid "To add a new API action there are two changes:"
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:2606
36811 msgid ""
36812 "You need to add a description of the call (name, parameters, return type, "
36813 "tests, documentation) to C<generator/generator_actions.ml>."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:2609
36818 msgid ""
36819 "There are two sorts of API action, depending on whether the call goes "
36820 "through to the daemon in the appliance, or is serviced entirely by the "
36821 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
36822 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
36823 "an example of the latter, since a trace flag is maintained in the handle and "
36824 "all tracing is done on the library side."
36825 msgstr ""
36826
36827 #. type: textblock
36828 #: ../src/guestfs.pod:2617
36829 msgid ""
36830 "Most new actions are of the first type, and get added to the "
36831 "C<daemon_functions> list.  Each function has a unique procedure number used "
36832 "in the RPC protocol which is assigned to that action when we publish "
36833 "libguestfs and cannot be reused.  Take the latest procedure number and "
36834 "increment it."
36835 msgstr ""
36836
36837 #. type: textblock
36838 #: ../src/guestfs.pod:2623
36839 msgid ""
36840 "For library-only actions of the second type, add to the "
36841 "C<non_daemon_functions> list.  Since these functions are serviced by the "
36842 "library and do not travel over the RPC mechanism to the daemon, these "
36843 "functions do not need a procedure number, and so the procedure number is set "
36844 "to C<-1>."
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../src/guestfs.pod:2631
36849 msgid "Implement the action (in C):"
36850 msgstr ""
36851
36852 #. type: textblock
36853 #: ../src/guestfs.pod:2633
36854 msgid ""
36855 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
36856 "C<daemon/> directory."
36857 msgstr ""
36858
36859 #. type: textblock
36860 #: ../src/guestfs.pod:2636
36861 msgid ""
36862 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
36863 "(note: double underscore) in the C<src/> directory."
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../src/guestfs.pod:2639
36868 msgid "In either case, use another function as an example of what to do."
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../src/guestfs.pod:2643
36873 msgid "After making these changes, use C<make> to compile."
36874 msgstr ""
36875
36876 #. type: textblock
36877 #: ../src/guestfs.pod:2645
36878 msgid ""
36879 "Note that you don't need to implement the RPC, language bindings, manual "
36880 "pages or anything else.  It's all automatically generated from the OCaml "
36881 "description."
36882 msgstr ""
36883
36884 #. type: =head2
36885 #: ../src/guestfs.pod:2649
36886 msgid "ADDING TESTS FOR AN API ACTION"
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:2651
36891 msgid ""
36892 "You can supply zero or as many tests as you want per API call.  The tests "
36893 "can either be added as part of the API description (C<generator/"
36894 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
36895 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
36896 "slower, so if possible use the first method."
36897 msgstr ""
36898
36899 #. type: textblock
36900 #: ../src/guestfs.pod:2657
36901 msgid ""
36902 "The following describes the test environment used when you add an API test "
36903 "in C<generator_actions.ml>."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:2660
36908 msgid "The test environment has 4 block devices:"
36909 msgstr ""
36910
36911 #. type: =item
36912 #: ../src/guestfs.pod:2664
36913 msgid "C</dev/sda> 500MB"
36914 msgstr ""
36915
36916 #. type: textblock
36917 #: ../src/guestfs.pod:2666
36918 msgid "General block device for testing."
36919 msgstr ""
36920
36921 #. type: =item
36922 #: ../src/guestfs.pod:2668
36923 msgid "C</dev/sdb> 50MB"
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../src/guestfs.pod:2670
36928 msgid ""
36929 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
36930 "operations."
36931 msgstr ""
36932
36933 #. type: =item
36934 #: ../src/guestfs.pod:2673
36935 msgid "C</dev/sdc> 10MB"
36936 msgstr ""
36937
36938 #. type: textblock
36939 #: ../src/guestfs.pod:2675
36940 msgid "Used in a few tests where two block devices are needed."
36941 msgstr ""
36942
36943 #. type: =item
36944 #: ../src/guestfs.pod:2677
36945 msgid "C</dev/sdd>"
36946 msgstr ""
36947
36948 #. type: textblock
36949 #: ../src/guestfs.pod:2679
36950 msgid "ISO with fixed content (see C<images/test.iso>)."
36951 msgstr ""
36952
36953 #. type: textblock
36954 #: ../src/guestfs.pod:2683
36955 msgid ""
36956 "To be able to run the tests in a reasonable amount of time, the libguestfs "
36957 "appliance and block devices are reused between tests.  So don't try testing "
36958 "L</guestfs_kill_subprocess> :-x"
36959 msgstr ""
36960
36961 #. type: textblock
36962 #: ../src/guestfs.pod:2687
36963 msgid ""
36964 "Each test starts with an initial scenario, selected using one of the "
36965 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
36966 "initialize the disks mentioned above in a particular way as documented in "
36967 "C<generator_types.ml>.  You should not assume anything about the previous "
36968 "contents of other disks that are not initialized."
36969 msgstr ""
36970
36971 #. type: textblock
36972 #: ../src/guestfs.pod:2693
36973 msgid ""
36974 "You can add a prerequisite clause to any individual test.  This is a run-"
36975 "time check, which, if it fails, causes the test to be skipped.  Useful if "
36976 "testing a command which might not work on all variations of libguestfs "
36977 "builds.  A test that has prerequisite of C<Always> means to run "
36978 "unconditionally."
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:2699
36983 msgid ""
36984 "In addition, packagers can skip individual tests by setting environment "
36985 "variables before running C<make check>."
36986 msgstr ""
36987
36988 #. type: verbatim
36989 #: ../src/guestfs.pod:2702
36990 #, no-wrap
36991 msgid ""
36992 " SKIP_TEST_<CMD>_<NUM>=1\n"
36993 "\n"
36994 msgstr ""
36995
36996 #. type: textblock
36997 #: ../src/guestfs.pod:2704
36998 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../src/guestfs.pod:2706
37003 msgid "or:"
37004 msgstr ""
37005
37006 #. type: verbatim
37007 #: ../src/guestfs.pod:2708
37008 #, no-wrap
37009 msgid ""
37010 " SKIP_TEST_<CMD>=1\n"
37011 "\n"
37012 msgstr ""
37013
37014 #. type: textblock
37015 #: ../src/guestfs.pod:2710
37016 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:2712
37021 msgid "Packagers can run only certain tests by setting for example:"
37022 msgstr ""
37023
37024 #. type: verbatim
37025 #: ../src/guestfs.pod:2714
37026 #, no-wrap
37027 msgid ""
37028 " TEST_ONLY=\"vfs_type zerofree\"\n"
37029 "\n"
37030 msgstr ""
37031
37032 #. type: textblock
37033 #: ../src/guestfs.pod:2716
37034 msgid ""
37035 "See C<capitests/tests.c> for more details of how these environment variables "
37036 "work."
37037 msgstr ""
37038
37039 #. type: =head2
37040 #: ../src/guestfs.pod:2719
37041 msgid "DEBUGGING NEW API ACTIONS"
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:2721
37046 msgid "Test new actions work before submitting them."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:2723
37051 msgid "You can use guestfish to try out new commands."
37052 msgstr ""
37053
37054 #. type: textblock
37055 #: ../src/guestfs.pod:2725
37056 msgid ""
37057 "Debugging the daemon is a problem because it runs inside a minimal "
37058 "environment.  However you can fprintf messages in the daemon to stderr, and "
37059 "they will show up if you use C<guestfish -v>."
37060 msgstr ""
37061
37062 #. type: =head2
37063 #: ../src/guestfs.pod:2729
37064 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../src/guestfs.pod:2731
37069 msgid ""
37070 "Our C source code generally adheres to some basic code-formatting "
37071 "conventions.  The existing code base is not totally consistent on this "
37072 "front, but we do prefer that contributed code be formatted similarly.  In "
37073 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37074 "indentation level, and other than that, follow the K&R style."
37075 msgstr ""
37076
37077 #. type: textblock
37078 #: ../src/guestfs.pod:2737
37079 msgid ""
37080 "If you use Emacs, add the following to one of one of your start-up files (e."
37081 "g., ~/.emacs), to help ensure that you get indentation right:"
37082 msgstr ""
37083
37084 #. type: verbatim
37085 #: ../src/guestfs.pod:2740
37086 #, no-wrap
37087 msgid ""
37088 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37089 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37090 " (add-hook 'find-file-hook\n"
37091 "     '(lambda () (if (and buffer-file-name\n"
37092 "                          (string-match \"/libguestfs\\\\>\"\n"
37093 "                              (buffer-file-name))\n"
37094 "                          (not (string-equal mode-name \"Change Log\"))\n"
37095 "                          (not (string-equal mode-name \"Makefile\")))\n"
37096 "                     (setq indent-tabs-mode nil))))\n"
37097 " \n"
37098 msgstr ""
37099
37100 #. type: verbatim
37101 #: ../src/guestfs.pod:2750
37102 #, no-wrap
37103 msgid ""
37104 " ;;; When editing C sources in libguestfs, use this style.\n"
37105 " (defun libguestfs-c-mode ()\n"
37106 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37107 "   (interactive)\n"
37108 "   (c-set-style \"K&R\")\n"
37109 "   (setq c-indent-level 2)\n"
37110 "   (setq c-basic-offset 2))\n"
37111 " (add-hook 'c-mode-hook\n"
37112 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37113 "                               (buffer-file-name))\n"
37114 "                           (libguestfs-c-mode))))\n"
37115 "\n"
37116 msgstr ""
37117
37118 #. type: textblock
37119 #: ../src/guestfs.pod:2762
37120 msgid "Enable warnings when compiling (and fix any problems this finds):"
37121 msgstr ""
37122
37123 #. type: verbatim
37124 #: ../src/guestfs.pod:2765
37125 #, no-wrap
37126 msgid ""
37127 " ./configure --enable-gcc-warnings\n"
37128 "\n"
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:2767
37133 msgid "Useful targets are:"
37134 msgstr ""
37135
37136 #. type: verbatim
37137 #: ../src/guestfs.pod:2769
37138 #, no-wrap
37139 msgid ""
37140 " make syntax-check  # checks the syntax of the C code\n"
37141 " make check         # runs the test suite\n"
37142 "\n"
37143 msgstr ""
37144
37145 #. type: =head2
37146 #: ../src/guestfs.pod:2772
37147 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:2774
37152 msgid ""
37153 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37154 "which are used to do shell quoting."
37155 msgstr ""
37156
37157 #. type: =item
37158 #: ../src/guestfs.pod:2779
37159 msgid "%Q"
37160 msgstr ""
37161
37162 #. type: textblock
37163 #: ../src/guestfs.pod:2781
37164 msgid ""
37165 "Simple shell quoted string.  Any spaces or other shell characters are "
37166 "escaped for you."
37167 msgstr ""
37168
37169 #. type: =item
37170 #: ../src/guestfs.pod:2784
37171 msgid "%R"
37172 msgstr ""
37173
37174 #. type: textblock
37175 #: ../src/guestfs.pod:2786
37176 msgid ""
37177 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37178 "the sysroot."
37179 msgstr ""
37180
37181 #. type: verbatim
37182 #: ../src/guestfs.pod:2793
37183 #, no-wrap
37184 msgid ""
37185 " asprintf (&cmd, \"cat %R\", path);\n"
37186 "\n"
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../src/guestfs.pod:2795
37191 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37192 msgstr ""
37193
37194 #. type: textblock
37195 #: ../src/guestfs.pod:2797
37196 msgid ""
37197 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37198 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37199 "they are not passed via the shell (instead, straight to exec).  You probably "
37200 "want to use the C<sysroot_path()> function however."
37201 msgstr ""
37202
37203 #. type: =head2
37204 #: ../src/guestfs.pod:2803
37205 msgid "SUBMITTING YOUR NEW API ACTIONS"
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:2805
37210 msgid ""
37211 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37212 "libguestfs> and CC to L<rjones@redhat.com>."
37213 msgstr ""
37214
37215 #. type: =head2
37216 #: ../src/guestfs.pod:2809
37217 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37218 msgstr ""
37219
37220 #. type: textblock
37221 #: ../src/guestfs.pod:2811
37222 msgid "We support i18n (gettext anyhow) in the library."
37223 msgstr ""
37224
37225 #. type: textblock
37226 #: ../src/guestfs.pod:2813
37227 msgid ""
37228 "However many messages come from the daemon, and we don't translate those at "
37229 "the moment.  One reason is that the appliance generally has all locale files "
37230 "removed from it, because they take up a lot of space.  So we'd have to readd "
37231 "some of those, as well as copying our PO files into the appliance."
37232 msgstr ""
37233
37234 #. type: textblock
37235 #: ../src/guestfs.pod:2819
37236 msgid ""
37237 "Debugging messages are never translated, since they are intended for the "
37238 "programmers."
37239 msgstr ""
37240
37241 #. type: =head2
37242 #: ../src/guestfs.pod:2822
37243 msgid "SOURCE CODE SUBDIRECTORIES"
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:2828
37248 msgid "The libguestfs appliance, build scripts and so on."
37249 msgstr ""
37250
37251 #. type: =item
37252 #: ../src/guestfs.pod:2830
37253 msgid "C<capitests>"
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../src/guestfs.pod:2832
37258 msgid "Automated tests of the C API."
37259 msgstr ""
37260
37261 #. type: =item
37262 #: ../src/guestfs.pod:2834
37263 msgid "C<cat>"
37264 msgstr ""
37265
37266 #. type: textblock
37267 #: ../src/guestfs.pod:2836
37268 msgid ""
37269 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37270 "documentation."
37271 msgstr ""
37272
37273 #. type: =item
37274 #: ../src/guestfs.pod:2839
37275 msgid "C<caution>"
37276 msgstr ""
37277
37278 #. type: textblock
37279 #: ../src/guestfs.pod:2841
37280 msgid ""
37281 "Safety and liveness tests of components that libguestfs depends upon (not of "
37282 "libguestfs itself).  Mainly this is for qemu and the kernel."
37283 msgstr ""
37284
37285 #. type: =item
37286 #: ../src/guestfs.pod:2844
37287 msgid "C<contrib>"
37288 msgstr ""
37289
37290 #. type: textblock
37291 #: ../src/guestfs.pod:2846
37292 msgid "Outside contributions, experimental parts."
37293 msgstr ""
37294
37295 #. type: =item
37296 #: ../src/guestfs.pod:2848
37297 msgid "C<daemon>"
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../src/guestfs.pod:2850
37302 msgid ""
37303 "The daemon that runs inside the libguestfs appliance and carries out actions."
37304 msgstr ""
37305
37306 #. type: =item
37307 #: ../src/guestfs.pod:2853
37308 msgid "C<df>"
37309 msgstr ""
37310
37311 #. type: textblock
37312 #: ../src/guestfs.pod:2855
37313 msgid "L<virt-df(1)> command and documentation."
37314 msgstr ""
37315
37316 #. type: =item
37317 #: ../src/guestfs.pod:2857
37318 msgid "C<edit>"
37319 msgstr ""
37320
37321 #. type: textblock
37322 #: ../src/guestfs.pod:2859
37323 msgid "L<virt-edit(1)> command and documentation."
37324 msgstr ""
37325
37326 #. type: =item
37327 #: ../src/guestfs.pod:2861
37328 msgid "C<examples>"
37329 msgstr ""
37330
37331 #. type: textblock
37332 #: ../src/guestfs.pod:2863
37333 msgid "C API example code."
37334 msgstr ""
37335
37336 #. type: =item
37337 #: ../src/guestfs.pod:2865
37338 msgid "C<fish>"
37339 msgstr ""
37340
37341 #. type: textblock
37342 #: ../src/guestfs.pod:2867
37343 msgid ""
37344 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37345 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37346 "L<virt-tar-out(1)>."
37347 msgstr ""
37348
37349 #. type: =item
37350 #: ../src/guestfs.pod:2871
37351 msgid "C<fuse>"
37352 msgstr ""
37353
37354 #. type: textblock
37355 #: ../src/guestfs.pod:2873
37356 msgid ""
37357 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37358 msgstr ""
37359
37360 #. type: =item
37361 #: ../src/guestfs.pod:2875
37362 msgid "C<generator>"
37363 msgstr ""
37364
37365 #. type: textblock
37366 #: ../src/guestfs.pod:2877
37367 msgid ""
37368 "The crucially important generator, used to automatically generate large "
37369 "amounts of boilerplate C code for things like RPC and bindings."
37370 msgstr ""
37371
37372 #. type: =item
37373 #: ../src/guestfs.pod:2880
37374 msgid "C<images>"
37375 msgstr ""
37376
37377 #. type: textblock
37378 #: ../src/guestfs.pod:2882
37379 msgid "Files used by the test suite."
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../src/guestfs.pod:2884
37384 msgid "Some \"phony\" guest images which we test against."
37385 msgstr ""
37386
37387 #. type: =item
37388 #: ../src/guestfs.pod:2886
37389 msgid "C<inspector>"
37390 msgstr ""
37391
37392 #. type: textblock
37393 #: ../src/guestfs.pod:2888
37394 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37395 msgstr ""
37396
37397 #. type: =item
37398 #: ../src/guestfs.pod:2890
37399 msgid "C<logo>"
37400 msgstr ""
37401
37402 #. type: textblock
37403 #: ../src/guestfs.pod:2892
37404 msgid "Logo used on the website.  The fish is called Arthur by the way."
37405 msgstr ""
37406
37407 #. type: =item
37408 #: ../src/guestfs.pod:2894
37409 msgid "C<m4>"
37410 msgstr ""
37411
37412 #. type: textblock
37413 #: ../src/guestfs.pod:2896
37414 msgid "M4 macros used by autoconf."
37415 msgstr ""
37416
37417 #. type: =item
37418 #: ../src/guestfs.pod:2898
37419 msgid "C<po>"
37420 msgstr ""
37421
37422 #. type: textblock
37423 #: ../src/guestfs.pod:2900
37424 msgid "Translations of simple gettext strings."
37425 msgstr ""
37426
37427 #. type: =item
37428 #: ../src/guestfs.pod:2902
37429 msgid "C<po-docs>"
37430 msgstr ""
37431
37432 #. type: textblock
37433 #: ../src/guestfs.pod:2904
37434 msgid ""
37435 "The build infrastructure and PO files for translations of manpages and POD "
37436 "files.  Eventually this will be combined with the C<po> directory, but that "
37437 "is rather complicated."
37438 msgstr ""
37439
37440 #. type: =item
37441 #: ../src/guestfs.pod:2908
37442 msgid "C<regressions>"
37443 msgstr ""
37444
37445 #. type: textblock
37446 #: ../src/guestfs.pod:2910
37447 msgid "Regression tests."
37448 msgstr ""
37449
37450 #. type: =item
37451 #: ../src/guestfs.pod:2912
37452 msgid "C<rescue>"
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../src/guestfs.pod:2914
37457 msgid "L<virt-rescue(1)> command and documentation."
37458 msgstr ""
37459
37460 #. type: =item
37461 #: ../src/guestfs.pod:2916
37462 msgid "C<src>"
37463 msgstr ""
37464
37465 #. type: textblock
37466 #: ../src/guestfs.pod:2918
37467 msgid "Source code to the C library."
37468 msgstr ""
37469
37470 #. type: =item
37471 #: ../src/guestfs.pod:2920
37472 msgid "C<tools>"
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:2922
37477 msgid ""
37478 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
37479 msgstr ""
37480
37481 #. type: =item
37482 #: ../src/guestfs.pod:2924
37483 msgid "C<test-tool>"
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:2926
37488 msgid ""
37489 "Test tool for end users to test if their qemu/kernel combination will work "
37490 "with libguestfs."
37491 msgstr ""
37492
37493 #. type: =item
37494 #: ../src/guestfs.pod:2929
37495 msgid "C<csharp>"
37496 msgstr ""
37497
37498 #. type: =item
37499 #: ../src/guestfs.pod:2931
37500 msgid "C<erlang>"
37501 msgstr ""
37502
37503 #. type: =item
37504 #: ../src/guestfs.pod:2933
37505 msgid "C<haskell>"
37506 msgstr ""
37507
37508 #. type: =item
37509 #: ../src/guestfs.pod:2935
37510 msgid "C<java>"
37511 msgstr ""
37512
37513 #. type: =item
37514 #: ../src/guestfs.pod:2937
37515 msgid "C<ocaml>"
37516 msgstr ""
37517
37518 #. type: =item
37519 #: ../src/guestfs.pod:2939
37520 msgid "C<php>"
37521 msgstr ""
37522
37523 #. type: =item
37524 #: ../src/guestfs.pod:2941
37525 msgid "C<perl>"
37526 msgstr ""
37527
37528 #. type: =item
37529 #: ../src/guestfs.pod:2943
37530 msgid "C<python>"
37531 msgstr ""
37532
37533 #. type: =item
37534 #: ../src/guestfs.pod:2945
37535 msgid "C<ruby>"
37536 msgstr ""
37537
37538 #. type: textblock
37539 #: ../src/guestfs.pod:2947
37540 msgid "Language bindings."
37541 msgstr ""
37542
37543 #. type: =head2
37544 #: ../src/guestfs.pod:2951
37545 msgid "MAKING A STABLE RELEASE"
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:2953
37550 msgid ""
37551 "When we make a stable release, there are several steps documented here.  See "
37552 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37553 "branch policy."
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:2961
37558 msgid ""
37559 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:2966
37564 msgid "Finalize RELEASE-NOTES."
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:2970
37569 msgid "Update ROADMAP."
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:2974
37574 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37575 msgstr ""
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:2978
37579 msgid "Push and pull from Transifex."
37580 msgstr ""
37581
37582 #. type: textblock
37583 #: ../src/guestfs.pod:2980
37584 msgid "Run:"
37585 msgstr ""
37586
37587 #. type: verbatim
37588 #: ../src/guestfs.pod:2982
37589 #, no-wrap
37590 msgid ""
37591 " tx push -s\n"
37592 "\n"
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:2984
37597 msgid "to push the latest POT files to Transifex.  Then run:"
37598 msgstr ""
37599
37600 #. type: verbatim
37601 #: ../src/guestfs.pod:2986
37602 #, no-wrap
37603 msgid ""
37604 " ./tx-pull.sh\n"
37605 "\n"
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../src/guestfs.pod:2988
37610 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37611 msgstr ""
37612
37613 #. type: textblock
37614 #: ../src/guestfs.pod:2992
37615 msgid ""
37616 "Create new stable and development directories under L<http://libguestfs.org/"
37617 "download>."
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../src/guestfs.pod:2997
37622 msgid "Create the branch in git:"
37623 msgstr ""
37624
37625 #. type: verbatim
37626 #: ../src/guestfs.pod:2999
37627 #, no-wrap
37628 msgid ""
37629 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37630 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37631 " git branch stable-1.XX\n"
37632 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37633 "\n"
37634 msgstr ""
37635
37636 #. type: =head1
37637 #: ../src/guestfs.pod:3006
37638 msgid "LIMITS"
37639 msgstr ""
37640
37641 #. type: =head2
37642 #: ../src/guestfs.pod:3008
37643 msgid "PROTOCOL LIMITS"
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../src/guestfs.pod:3010
37648 msgid ""
37649 "Internally libguestfs uses a message-based protocol to pass API calls and "
37650 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37651 "plenty more detail about this).  The maximum message size used by the "
37652 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37653 "aware of this limit.  The API calls which may be affected are individually "
37654 "documented, with a link back to this section of the documentation."
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:3018
37659 msgid ""
37660 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37661 "a simple string.  Because this string is at some point internally encoded as "
37662 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37663 "the requested file is larger than this then you will get an error."
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:3024
37668 msgid ""
37669 "In order to transfer large files into and out of the guest filesystem, you "
37670 "need to use particular calls that support this.  The sections L</UPLOADING> "
37671 "and L</DOWNLOADING> document how to do this."
37672 msgstr ""
37673
37674 #. type: textblock
37675 #: ../src/guestfs.pod:3028
37676 msgid ""
37677 "You might also consider mounting the disk image using our FUSE filesystem "
37678 "support (L<guestmount(1)>)."
37679 msgstr ""
37680
37681 #. type: =head2
37682 #: ../src/guestfs.pod:3031
37683 msgid "MAXIMUM NUMBER OF DISKS"
37684 msgstr ""
37685
37686 #. type: textblock
37687 #: ../src/guestfs.pod:3033
37688 msgid "When using virtio disks (the default) the current limit is B<25> disks."
37689 msgstr ""
37690
37691 #. type: textblock
37692 #: ../src/guestfs.pod:3036
37693 msgid ""
37694 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
37695 "slots.  However febootstrap only understands disks with names C</dev/vda> "
37696 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
37697 "purposes."
37698 msgstr ""
37699
37700 #. type: textblock
37701 #: ../src/guestfs.pod:3041
37702 msgid ""
37703 "We are working to substantially raise this limit in future versions but it "
37704 "requires complex changes to qemu."
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:3044
37709 msgid ""
37710 "In future versions of libguestfs it should also be possible to \"hot plug\" "
37711 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
37712 "requires changes to qemu."
37713 msgstr ""
37714
37715 #. type: =head2
37716 #: ../src/guestfs.pod:3048
37717 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
37718 msgstr ""
37719
37720 #. type: textblock
37721 #: ../src/guestfs.pod:3050
37722 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
37723 msgstr ""
37724
37725 #. type: textblock
37726 #: ../src/guestfs.pod:3052
37727 msgid ""
37728 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
37729 "vda>, and C</dev/vda1> through C</dev/vda15>)."
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../src/guestfs.pod:3055
37734 msgid ""
37735 "If you attach a disk with more than 15 partitions, the extra partitions are "
37736 "ignored by libguestfs."
37737 msgstr ""
37738
37739 #. type: =head2
37740 #: ../src/guestfs.pod:3058
37741 msgid "MAXIMUM SIZE OF A DISK"
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:3060
37746 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:3062
37751 msgid ""
37752 "We have tested block devices up to 1 exabyte (2**60 or "
37753 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
37754 "filesystem."
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../src/guestfs.pod:3066
37759 msgid ""
37760 "Although libguestfs probably does not impose any limit, the underlying host "
37761 "storage will.  If you store disk images on a host ext4 filesystem, then the "
37762 "maximum size will be limited by the maximum ext4 file size (currently 16 "
37763 "TB).  If you store disk images as host logical volumes then you are limited "
37764 "by the maximum size of an LV."
37765 msgstr ""
37766
37767 #. type: textblock
37768 #: ../src/guestfs.pod:3072
37769 msgid ""
37770 "For the hugest disk image files, we recommend using XFS on the host for "
37771 "storage."
37772 msgstr ""
37773
37774 #. type: =head2
37775 #: ../src/guestfs.pod:3075
37776 msgid "MAXIMUM SIZE OF A PARTITION"
37777 msgstr ""
37778
37779 #. type: textblock
37780 #: ../src/guestfs.pod:3077
37781 msgid ""
37782 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
37783 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
37784 "address a partition located beyond 2 TB on the disk."
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../src/guestfs.pod:3081
37789 msgid ""
37790 "It is recommended that you use GPT partitions on disks which are larger than "
37791 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
37792 "which are theoretically larger than the largest disk we could support."
37793 msgstr ""
37794
37795 #. type: =head2
37796 #: ../src/guestfs.pod:3086
37797 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:3088
37802 msgid ""
37803 "This depends on the filesystem type.  libguestfs itself does not impose any "
37804 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
37805 "what these limits are."
37806 msgstr ""
37807
37808 #. type: =head2
37809 #: ../src/guestfs.pod:3092
37810 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
37811 msgstr ""
37812
37813 #. type: textblock
37814 #: ../src/guestfs.pod:3094
37815 msgid ""
37816 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
37817 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
37818 "uploads and downloads."
37819 msgstr ""
37820
37821 #. type: =head2
37822 #: ../src/guestfs.pod:3098
37823 msgid "INSPECTION LIMITS"
37824 msgstr ""
37825
37826 #. type: textblock
37827 #: ../src/guestfs.pod:3100
37828 msgid ""
37829 "The inspection code has several arbitrary limits on things like the size of "
37830 "Windows Registry hive it will read, and the length of product name.  These "
37831 "are intended to stop a malicious guest from consuming arbitrary amounts of "
37832 "memory and disk space on the host, and should not be reached in practice.  "
37833 "See the source code for more information."
37834 msgstr ""
37835
37836 #. type: textblock
37837 #: ../src/guestfs.pod:3126
37838 msgid ""
37839 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
37840 "effect as calling C<guestfs_set_verbose (g, 1)>."
37841 msgstr ""
37842
37843 #. type: textblock
37844 #: ../src/guestfs.pod:3138
37845 msgid ""
37846 "Set the path that libguestfs uses to search for a supermin appliance.  See "
37847 "the discussion of paths in section L</PATH> above."
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../src/guestfs.pod:3147
37852 msgid "See also L</QEMU WRAPPERS> above."
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:3151
37857 msgid ""
37858 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
37859 "effect as calling C<guestfs_set_trace (g, 1)>."
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:3169
37864 msgid ""
37865 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
37866 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
37867 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
37868 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
37869 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
37870 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
37871 "L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
37872 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-"
37873 "helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
37874 msgstr ""
37875
37876 #. type: textblock
37877 #: ../src/guestfs.pod:3202
37878 msgid ""
37879 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
37880 "(8)>, L<disktype(1)>."
37881 msgstr ""
37882
37883 #. type: =head1
37884 #: ../src/guestfs.pod:3209 ../tools/virt-make-fs.pl:553
37885 #: ../tools/virt-win-reg.pl:761
37886 msgid "BUGS"
37887 msgstr ""
37888
37889 #. type: textblock
37890 #: ../src/guestfs.pod:3211
37891 msgid "To get a list of bugs against libguestfs use this link:"
37892 msgstr ""
37893
37894 #. type: textblock
37895 #: ../src/guestfs.pod:3213
37896 msgid ""
37897 "L<https://bugzilla.redhat.com/buglist.cgi?"
37898 "component=libguestfs&product=Virtualization+Tools>"
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../src/guestfs.pod:3215
37903 msgid "To report a new bug against libguestfs use this link:"
37904 msgstr ""
37905
37906 #. type: textblock
37907 #: ../src/guestfs.pod:3217
37908 msgid ""
37909 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
37910 "component=libguestfs&product=Virtualization+Tools>"
37911 msgstr ""
37912
37913 #. type: textblock
37914 #: ../src/guestfs.pod:3219
37915 msgid "When reporting a bug, please check:"
37916 msgstr ""
37917
37918 #. type: textblock
37919 #: ../src/guestfs.pod:3225
37920 msgid "That the bug hasn't been reported already."
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../src/guestfs.pod:3229
37925 msgid "That you are testing a recent version."
37926 msgstr ""
37927
37928 #. type: textblock
37929 #: ../src/guestfs.pod:3233
37930 msgid "Describe the bug accurately, and give a way to reproduce it."
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../src/guestfs.pod:3237
37935 msgid ""
37936 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
37937 "bug report."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../test-tool/libguestfs-test-tool.pod:5
37942 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
37943 msgstr ""
37944
37945 #. type: verbatim
37946 #: ../test-tool/libguestfs-test-tool.pod:9
37947 #, no-wrap
37948 msgid ""
37949 " libguestfs-test-tool [--options]\n"
37950 "\n"
37951 msgstr ""
37952
37953 #. type: textblock
37954 #: ../test-tool/libguestfs-test-tool.pod:13
37955 msgid ""
37956 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
37957 "to check basic libguestfs functionality is working.  This is needed because "
37958 "libguestfs occasionally breaks for reasons beyond our control: usually "
37959 "because of changes in the underlying qemu or kernel packages, or the host "
37960 "environment."
37961 msgstr ""
37962
37963 #. type: textblock
37964 #: ../test-tool/libguestfs-test-tool.pod:19
37965 msgid "If you suspect a problem in libguestfs, then just run:"
37966 msgstr ""
37967
37968 #. type: verbatim
37969 #: ../test-tool/libguestfs-test-tool.pod:21
37970 #, no-wrap
37971 msgid ""
37972 " libguestfs-test-tool\n"
37973 "\n"
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../test-tool/libguestfs-test-tool.pod:23
37978 msgid "It will print lots of diagnostic messages."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../test-tool/libguestfs-test-tool.pod:25
37983 msgid "If it runs to completion successfully, you will see this near the end:"
37984 msgstr ""
37985
37986 #. type: verbatim
37987 #: ../test-tool/libguestfs-test-tool.pod:27
37988 #, no-wrap
37989 msgid ""
37990 " ===== TEST FINISHED OK =====\n"
37991 "\n"
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../test-tool/libguestfs-test-tool.pod:29
37996 msgid "and the test tool will exit with code 0."
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../test-tool/libguestfs-test-tool.pod:31
38001 msgid ""
38002 "If it fails (and/or exits with non-zero error code), please paste the "
38003 "I<complete, unedited> output of the test tool into a bug report.  More "
38004 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38005 "> website."
38006 msgstr ""
38007
38008 #. type: textblock
38009 #: ../test-tool/libguestfs-test-tool.pod:42
38010 msgid "Display short usage information and exit."
38011 msgstr ""
38012
38013 #. type: =item
38014 #: ../test-tool/libguestfs-test-tool.pod:44
38015 msgid "B<--qemu qemu_binary>"
38016 msgstr ""
38017
38018 #. type: textblock
38019 #: ../test-tool/libguestfs-test-tool.pod:46
38020 msgid ""
38021 "If you have downloaded another qemu binary, point this option at the full "
38022 "path of the binary to try it."
38023 msgstr ""
38024
38025 #. type: =item
38026 #: ../test-tool/libguestfs-test-tool.pod:49
38027 msgid "B<--qemudir qemu_source_dir>"
38028 msgstr ""
38029
38030 #. type: textblock
38031 #: ../test-tool/libguestfs-test-tool.pod:51
38032 msgid ""
38033 "If you have compiled qemu from source, point this option at the source "
38034 "directory to try it."
38035 msgstr ""
38036
38037 #. type: =item
38038 #: ../test-tool/libguestfs-test-tool.pod:54
38039 msgid "B<-t N>"
38040 msgstr ""
38041
38042 #. type: =item
38043 #: ../test-tool/libguestfs-test-tool.pod:56
38044 msgid "B<--timeout N>"
38045 msgstr ""
38046
38047 #. type: textblock
38048 #: ../test-tool/libguestfs-test-tool.pod:58
38049 msgid ""
38050 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38051 "minutes) which does not usually need to be adjusted."
38052 msgstr ""
38053
38054 #. type: =head1
38055 #: ../test-tool/libguestfs-test-tool.pod:63
38056 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../test-tool/libguestfs-test-tool.pod:65
38061 msgid ""
38062 "If you have compiled another version of qemu from source and would like to "
38063 "try that, then you can use the I<--qemudir> option to point to the qemu "
38064 "source directory."
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../test-tool/libguestfs-test-tool.pod:69
38069 msgid ""
38070 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38071 "option to point to the binary."
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../test-tool/libguestfs-test-tool.pod:72
38076 msgid ""
38077 "Note when using these options, you can ignore the business of qemu wrapper "
38078 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38079 "wrapper script for you if one is needed."
38080 msgstr ""
38081
38082 #. type: =head1
38083 #: ../test-tool/libguestfs-test-tool.pod:76
38084 msgid "TRYING OUT A DIFFERENT KERNEL"
38085 msgstr ""
38086
38087 #. type: textblock
38088 #: ../test-tool/libguestfs-test-tool.pod:78
38089 msgid ""
38090 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38091 "libguestfs tries.  You do this by setting the environment variables "
38092 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../test-tool/libguestfs-test-tool.pod:82
38097 msgid ""
38098 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38099 "information."
38100 msgstr ""
38101
38102 #. type: =head1
38103 #: ../test-tool/libguestfs-test-tool.pod:85
38104 msgid "SELF-DIAGNOSIS"
38105 msgstr ""
38106
38107 #. type: textblock
38108 #: ../test-tool/libguestfs-test-tool.pod:87
38109 msgid ""
38110 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38111 "produced by libguestfs-test-tool and/or possible errors."
38112 msgstr ""
38113
38114 #. type: textblock
38115 #: ../test-tool/libguestfs-test-tool.pod:92
38116 msgid ""
38117 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38118 "I<1> if there was an error."
38119 msgstr ""
38120
38121 #. type: textblock
38122 #: ../test-tool/libguestfs-test-tool.pod:97
38123 msgid ""
38124 "For the full list of environment variables which may affect libguestfs, "
38125 "please see the L<guestfs(3)> manual page."
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../test-tool/libguestfs-test-tool.pod:102
38130 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../tools/virt-list-filesystems.pl:32
38135 msgid ""
38136 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38137 msgstr ""
38138
38139 #. type: verbatim
38140 #: ../tools/virt-list-filesystems.pl:36
38141 #, no-wrap
38142 msgid ""
38143 " virt-list-filesystems [--options] domname\n"
38144 "\n"
38145 msgstr ""
38146
38147 #. type: verbatim
38148 #: ../tools/virt-list-filesystems.pl:38
38149 #, no-wrap
38150 msgid ""
38151 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38152 "\n"
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38157 msgid ""
38158 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38159 "replacement."
38160 msgstr ""
38161
38162 #. type: textblock
38163 #: ../tools/virt-list-filesystems.pl:45
38164 msgid ""
38165 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38166 "are contained in a virtual machine or disk image."
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../tools/virt-list-filesystems.pl:49
38171 msgid ""
38172 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38173 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38174 "> tool."
38175 msgstr ""
38176
38177 #. type: textblock
38178 #: ../tools/virt-list-filesystems.pl:112
38179 msgid ""
38180 "With this option, C<virt-list-filesystems> displays the type of each "
38181 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38182 msgstr ""
38183
38184 #. type: =item
38185 #: ../tools/virt-list-filesystems.pl:119
38186 msgid "B<-a>"
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../tools/virt-list-filesystems.pl:123
38191 msgid ""
38192 "Normally we only show mountable filesystems.  If this option is given then "
38193 "swap devices are shown too."
38194 msgstr ""
38195
38196 #. type: textblock
38197 #: ../tools/virt-list-filesystems.pl:197
38198 msgid ""
38199 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38200 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38201 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38206 msgid "Copyright (C) 2009 Red Hat Inc."
38207 msgstr ""
38208
38209 #. type: textblock
38210 #: ../tools/virt-list-partitions.pl:32
38211 msgid ""
38212 "virt-list-partitions - List partitions in a virtual machine or disk image"
38213 msgstr ""
38214
38215 #. type: verbatim
38216 #: ../tools/virt-list-partitions.pl:36
38217 #, no-wrap
38218 msgid ""
38219 " virt-list-partitions [--options] domname\n"
38220 "\n"
38221 msgstr ""
38222
38223 #. type: verbatim
38224 #: ../tools/virt-list-partitions.pl:38
38225 #, no-wrap
38226 msgid ""
38227 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38228 "\n"
38229 msgstr ""
38230
38231 #. type: textblock
38232 #: ../tools/virt-list-partitions.pl:45
38233 msgid ""
38234 "C<virt-list-partitions> is a command line tool to list the partitions that "
38235 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38236 "first step to using L<virt-resize(1)>."
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../tools/virt-list-partitions.pl:50
38241 msgid ""
38242 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38243 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38244 "> tool."
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../tools/virt-list-partitions.pl:113
38249 msgid "Show sizes in human-readable form (eg. \"1G\")."
38250 msgstr ""
38251
38252 #. type: textblock
38253 #: ../tools/virt-list-partitions.pl:123
38254 msgid ""
38255 "With this option, C<virt-list-partitions> displays the type and size of each "
38256 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38257 msgstr ""
38258
38259 #. type: =item
38260 #: ../tools/virt-list-partitions.pl:130
38261 msgid "B<-t>"
38262 msgstr ""
38263
38264 #. type: =item
38265 #: ../tools/virt-list-partitions.pl:132
38266 msgid "B<--total>"
38267 msgstr ""
38268
38269 #. type: textblock
38270 #: ../tools/virt-list-partitions.pl:134
38271 msgid ""
38272 "Display the total size of each block device (as a separate row or rows)."
38273 msgstr ""
38274
38275 #. type: textblock
38276 #: ../tools/virt-list-partitions.pl:267
38277 msgid ""
38278 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38279 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38280 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../tools/virt-list-partitions.pl:283
38285 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38286 msgstr ""
38287
38288 #. type: textblock
38289 #: ../tools/virt-make-fs.pl:37
38290 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38291 msgstr ""
38292
38293 #. type: verbatim
38294 #: ../tools/virt-make-fs.pl:41
38295 #, no-wrap
38296 msgid ""
38297 " virt-make-fs [--options] input.tar output.img\n"
38298 "\n"
38299 msgstr ""
38300
38301 #. type: verbatim
38302 #: ../tools/virt-make-fs.pl:43
38303 #, no-wrap
38304 msgid ""
38305 " virt-make-fs [--options] input.tar.gz output.img\n"
38306 "\n"
38307 msgstr ""
38308
38309 #. type: verbatim
38310 #: ../tools/virt-make-fs.pl:45
38311 #, no-wrap
38312 msgid ""
38313 " virt-make-fs [--options] directory output.img\n"
38314 "\n"
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../tools/virt-make-fs.pl:49
38319 msgid ""
38320 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38321 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38322 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38323 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38324 "you want to attach these filesystems to existing virtual machines (eg. to "
38325 "import large amounts of read-only data to a VM)."
38326 msgstr ""
38327
38328 #. type: textblock
38329 #: ../tools/virt-make-fs.pl:57
38330 msgid "Basic usage is:"
38331 msgstr ""
38332
38333 #. type: verbatim
38334 #: ../tools/virt-make-fs.pl:59
38335 #, no-wrap
38336 msgid ""
38337 " virt-make-fs input output\n"
38338 "\n"
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../tools/virt-make-fs.pl:61
38343 msgid ""
38344 "where C<input> is either a directory containing files that you want to add, "
38345 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38346 "C<output> is a disk image.  The input type is detected automatically.  The "
38347 "output disk image defaults to a raw ext2 image unless you specify extra "
38348 "flags (see L</OPTIONS> below)."
38349 msgstr ""
38350
38351 #. type: =head2
38352 #: ../tools/virt-make-fs.pl:67
38353 msgid "EXTRA SPACE"
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../tools/virt-make-fs.pl:69
38358 msgid ""
38359 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38360 "the files that it contains, but might have extra space.  Depending on how "
38361 "you are going to use the output, you might think this extra space is wasted "
38362 "and want to minimize it, or you might want to leave space so that more files "
38363 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38364 "but you can use the I<--size> flag to leave space in the filesystem if you "
38365 "want it."
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../tools/virt-make-fs.pl:77
38370 msgid ""
38371 "An alternative way to leave extra space but not make the output image any "
38372 "bigger is to use an alternative disk image format (instead of the default "
38373 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38374 "image format (check your hypervisor supports this before using it).  This "
38375 "allows you to choose a large I<--size> but the extra space won't actually be "
38376 "allocated in the image until you try to store something in it."
38377 msgstr ""
38378
38379 #. type: textblock
38380 #: ../tools/virt-make-fs.pl:85
38381 msgid ""
38382 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38383 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38384 "to build another image from scratch."
38385 msgstr ""
38386
38387 #. type: =head3
38388 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38389 #: ../tools/virt-make-fs.pl:142
38390 msgid "EXAMPLE"
38391 msgstr ""
38392
38393 #. type: verbatim
38394 #: ../tools/virt-make-fs.pl:91
38395 #, no-wrap
38396 msgid ""
38397 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38398 "\n"
38399 msgstr ""
38400
38401 #. type: =head2
38402 #: ../tools/virt-make-fs.pl:93
38403 msgid "FILESYSTEM TYPE"
38404 msgstr ""
38405
38406 #. type: textblock
38407 #: ../tools/virt-make-fs.pl:95
38408 msgid ""
38409 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38410 "libguestfs supports can be used (but I<not> read-only formats like "
38411 "ISO9660).  Here are some of the more common choices:"
38412 msgstr ""
38413
38414 #. type: =item
38415 #: ../tools/virt-make-fs.pl:101
38416 msgid "I<ext3>"
38417 msgstr ""
38418
38419 #. type: textblock
38420 #: ../tools/virt-make-fs.pl:103
38421 msgid ""
38422 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38423 "you are not going to use the filesystem in a way that requires the journal, "
38424 "then this is just wasted overhead."
38425 msgstr ""
38426
38427 #. type: =item
38428 #: ../tools/virt-make-fs.pl:107
38429 msgid "I<ntfs> or I<vfat>"
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../tools/virt-make-fs.pl:109
38434 msgid "Useful if exporting data to a Windows guest."
38435 msgstr ""
38436
38437 #. type: textblock
38438 #: ../tools/virt-make-fs.pl:111
38439 msgid ""
38440 "I<Note for vfat>: The tar archive or local directory must only contain files "
38441 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38442 "program running within libguestfs is unable to change the ownership of non-"
38443 "root files, since vfat itself does not support this."
38444 msgstr ""
38445
38446 #. type: =item
38447 #: ../tools/virt-make-fs.pl:116
38448 msgid "I<minix>"
38449 msgstr ""
38450
38451 #. type: textblock
38452 #: ../tools/virt-make-fs.pl:118
38453 msgid ""
38454 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38455 "total filesystem size."
38456 msgstr ""
38457
38458 #. type: verbatim
38459 #: ../tools/virt-make-fs.pl:125
38460 #, no-wrap
38461 msgid ""
38462 " virt-make-fs --type=minix input minixfs.img\n"
38463 "\n"
38464 msgstr ""
38465
38466 #. type: =head2
38467 #: ../tools/virt-make-fs.pl:127
38468 msgid "TO PARTITION OR NOT TO PARTITION"
38469 msgstr ""
38470
38471 #. type: textblock
38472 #: ../tools/virt-make-fs.pl:129
38473 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38474 msgstr ""
38475
38476 #. type: textblock
38477 #: ../tools/virt-make-fs.pl:131
38478 msgid ""
38479 "Adding a partition can make the disk image more compatible with certain "
38480 "virtualized operating systems which don't expect to see a filesystem "
38481 "directly located on a block device (Linux doesn't care and will happily "
38482 "handle both types)."
38483 msgstr ""
38484
38485 #. type: textblock
38486 #: ../tools/virt-make-fs.pl:136
38487 msgid ""
38488 "On the other hand, if you have a partition table then the output image is no "
38489 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38490 "directly on a partitioned disk image.  (However libguestfs tools such as "
38491 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38492 msgstr ""
38493
38494 #. type: textblock
38495 #: ../tools/virt-make-fs.pl:144
38496 msgid "Add an MBR partition:"
38497 msgstr ""
38498
38499 #. type: verbatim
38500 #: ../tools/virt-make-fs.pl:146
38501 #, no-wrap
38502 msgid ""
38503 " virt-make-fs --partition -- input disk.img\n"
38504 "\n"
38505 msgstr ""
38506
38507 #. type: textblock
38508 #: ../tools/virt-make-fs.pl:148
38509 msgid ""
38510 "If the output disk image could be terabyte-sized or larger, it's better to "
38511 "use an EFI/GPT-compatible partition table:"
38512 msgstr ""
38513
38514 #. type: verbatim
38515 #: ../tools/virt-make-fs.pl:151
38516 #, no-wrap
38517 msgid ""
38518 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38519 "\n"
38520 msgstr ""
38521
38522 #. type: textblock
38523 #: ../tools/virt-make-fs.pl:179
38524 msgid "Enable debugging information."
38525 msgstr ""
38526
38527 #. type: =item
38528 #: ../tools/virt-make-fs.pl:185
38529 msgid "B<--size=E<lt>NE<gt>>"
38530 msgstr ""
38531
38532 #. type: =item
38533 #: ../tools/virt-make-fs.pl:187
38534 msgid "B<--size=+E<lt>NE<gt>>"
38535 msgstr ""
38536
38537 #. type: =item
38538 #: ../tools/virt-make-fs.pl:189
38539 msgid "B<-s E<lt>NE<gt>>"
38540 msgstr ""
38541
38542 #. type: =item
38543 #: ../tools/virt-make-fs.pl:191
38544 msgid "B<-s +E<lt>NE<gt>>"
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../tools/virt-make-fs.pl:193
38549 msgid ""
38550 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38551 msgstr ""
38552
38553 #. type: textblock
38554 #: ../tools/virt-make-fs.pl:196
38555 msgid ""
38556 "If this option is I<not> given, then the output image will be just large "
38557 "enough to contain all the files, with not much wasted space."
38558 msgstr ""
38559
38560 #. type: textblock
38561 #: ../tools/virt-make-fs.pl:199
38562 msgid ""
38563 "To choose a fixed size output disk, specify an absolute number followed by b/"
38564 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38565 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38566 "files, else you will get an error."
38567 msgstr ""
38568
38569 #. type: textblock
38570 #: ../tools/virt-make-fs.pl:204
38571 msgid ""
38572 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38573 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38574 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38575 "the input files, and (approximately) an extra 200 MB free space."
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../tools/virt-make-fs.pl:210
38580 msgid ""
38581 "Note that virt-make-fs estimates free space, and therefore will not produce "
38582 "filesystems containing precisely the free space requested.  (It is much more "
38583 "expensive and time-consuming to produce a filesystem which has precisely the "
38584 "desired free space)."
38585 msgstr ""
38586
38587 #. type: =item
38588 #: ../tools/virt-make-fs.pl:219
38589 msgid "B<--format=E<lt>fmtE<gt>>"
38590 msgstr ""
38591
38592 #. type: =item
38593 #: ../tools/virt-make-fs.pl:221
38594 msgid "B<-F E<lt>fmtE<gt>>"
38595 msgstr ""
38596
38597 #. type: textblock
38598 #: ../tools/virt-make-fs.pl:223
38599 msgid "Choose the output disk image format."
38600 msgstr ""
38601
38602 #. type: textblock
38603 #: ../tools/virt-make-fs.pl:225
38604 msgid "The default is C<raw> (raw disk image)."
38605 msgstr ""
38606
38607 #. type: textblock
38608 #: ../tools/virt-make-fs.pl:227
38609 msgid ""
38610 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38611 "that would really make sense here is C<qcow2>."
38612 msgstr ""
38613
38614 #. type: =item
38615 #: ../tools/virt-make-fs.pl:234
38616 msgid "B<--type=E<lt>fsE<gt>>"
38617 msgstr ""
38618
38619 #. type: =item
38620 #: ../tools/virt-make-fs.pl:236
38621 msgid "B<-t E<lt>fsE<gt>>"
38622 msgstr ""
38623
38624 #. type: textblock
38625 #: ../tools/virt-make-fs.pl:238
38626 msgid "Choose the output filesystem type."
38627 msgstr ""
38628
38629 #. type: textblock
38630 #: ../tools/virt-make-fs.pl:240
38631 msgid "The default is C<ext2>."
38632 msgstr ""
38633
38634 #. type: textblock
38635 #: ../tools/virt-make-fs.pl:242
38636 msgid ""
38637 "Any filesystem which is supported read-write by libguestfs can be used here."
38638 msgstr ""
38639
38640 #. type: =item
38641 #: ../tools/virt-make-fs.pl:249
38642 msgid "B<--partition>"
38643 msgstr ""
38644
38645 #. type: =item
38646 #: ../tools/virt-make-fs.pl:251
38647 msgid "B<--partition=E<lt>parttypeE<gt>>"
38648 msgstr ""
38649
38650 #. type: textblock
38651 #: ../tools/virt-make-fs.pl:253
38652 msgid ""
38653 "If specified, this flag adds an MBR partition table to the output disk image."
38654 msgstr ""
38655
38656 #. type: textblock
38657 #: ../tools/virt-make-fs.pl:256
38658 msgid ""
38659 "You can change the partition table type, eg. I<--partition=gpt> for large "
38660 "disks."
38661 msgstr ""
38662
38663 #. type: textblock
38664 #: ../tools/virt-make-fs.pl:259
38665 msgid ""
38666 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38667 "might consider the next parameter to be the partition type.  For example:"
38668 msgstr ""
38669
38670 #. type: verbatim
38671 #: ../tools/virt-make-fs.pl:263
38672 #, no-wrap
38673 msgid ""
38674 " virt-make-fs --partition input.tar ...\n"
38675 "\n"
38676 msgstr ""
38677
38678 #. type: textblock
38679 #: ../tools/virt-make-fs.pl:265
38680 msgid ""
38681 "would cause virt-make-fs to think you wanted to use a partition type of "
38682 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
38683 "dash) between options and the input file argument:"
38684 msgstr ""
38685
38686 #. type: verbatim
38687 #: ../tools/virt-make-fs.pl:269
38688 #, no-wrap
38689 msgid ""
38690 " virt-make-fs --partition -- input.tar ...\n"
38691 "\n"
38692 msgstr ""
38693
38694 #. type: textblock
38695 #: ../tools/virt-make-fs.pl:541
38696 msgid ""
38697 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
38698 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
38699 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
38704 msgid ""
38705 "When reporting bugs, please enable debugging and capture the I<complete> "
38706 "output:"
38707 msgstr ""
38708
38709 #. type: verbatim
38710 #: ../tools/virt-make-fs.pl:558
38711 #, no-wrap
38712 msgid ""
38713 " export LIBGUESTFS_DEBUG=1\n"
38714 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
38715 "\n"
38716 msgstr ""
38717
38718 #. type: textblock
38719 #: ../tools/virt-make-fs.pl:561
38720 msgid ""
38721 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
38722 "redhat.com/>"
38723 msgstr ""
38724
38725 #. type: textblock
38726 #: ../tools/virt-tar.pl:33
38727 msgid "virt-tar - Extract or upload files to a virtual machine"
38728 msgstr ""
38729
38730 #. type: verbatim
38731 #: ../tools/virt-tar.pl:37
38732 #, no-wrap
38733 msgid ""
38734 " virt-tar [--options] -x domname directory tarball\n"
38735 "\n"
38736 msgstr ""
38737
38738 #. type: verbatim
38739 #: ../tools/virt-tar.pl:39
38740 #, no-wrap
38741 msgid ""
38742 " virt-tar [--options] -u domname tarball directory\n"
38743 "\n"
38744 msgstr ""
38745
38746 #. type: verbatim
38747 #: ../tools/virt-tar.pl:41
38748 #, no-wrap
38749 msgid ""
38750 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
38751 "\n"
38752 msgstr ""
38753
38754 #. type: verbatim
38755 #: ../tools/virt-tar.pl:43
38756 #, no-wrap
38757 msgid ""
38758 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
38759 "\n"
38760 msgstr ""
38761
38762 #. type: =head2
38763 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
38764 msgid "NOTE"
38765 msgstr ""
38766
38767 #. type: textblock
38768 #: ../tools/virt-tar.pl:47
38769 msgid ""
38770 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
38771 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
38772 msgstr ""
38773
38774 #. type: textblock
38775 #: ../tools/virt-tar.pl:52
38776 msgid "Download C</home> from the VM into a local tarball:"
38777 msgstr ""
38778
38779 #. type: verbatim
38780 #: ../tools/virt-tar.pl:54
38781 #, no-wrap
38782 msgid ""
38783 " virt-tar -x domname /home home.tar\n"
38784 "\n"
38785 msgstr ""
38786
38787 #. type: verbatim
38788 #: ../tools/virt-tar.pl:56
38789 #, no-wrap
38790 msgid ""
38791 " virt-tar -zx domname /home home.tar.gz\n"
38792 "\n"
38793 msgstr ""
38794
38795 #. type: textblock
38796 #: ../tools/virt-tar.pl:58
38797 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
38798 msgstr ""
38799
38800 #. type: verbatim
38801 #: ../tools/virt-tar.pl:60
38802 #, no-wrap
38803 msgid ""
38804 " virt-tar -u domname uploadstuff.tar /tmp\n"
38805 "\n"
38806 msgstr ""
38807
38808 #. type: verbatim
38809 #: ../tools/virt-tar.pl:62
38810 #, no-wrap
38811 msgid ""
38812 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
38813 "\n"
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../tools/virt-tar.pl:66
38818 msgid ""
38819 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
38820 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
38821 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
38822 msgstr ""
38823
38824 #. type: textblock
38825 #: ../tools/virt-tar.pl:71
38826 msgid ""
38827 "You can use I<-x> (extract) on live virtual machines, but you might get "
38828 "inconsistent results or errors if there is filesystem activity inside the "
38829 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
38830 "work, but the only way to guarantee consistent results is if the virtual "
38831 "machine is shut down."
38832 msgstr ""
38833
38834 #. type: textblock
38835 #: ../tools/virt-tar.pl:79
38836 msgid ""
38837 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
38838 "parts of a guest filesystem.  There are many possibilities: making backups, "
38839 "uploading data files, snooping on guest activity, fixing or customizing "
38840 "guests, etc."
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../tools/virt-tar.pl:84
38845 msgid ""
38846 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
38847 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
38848 "should look at the L<guestfish(1)> tool."
38849 msgstr ""
38850
38851 #. type: textblock
38852 #: ../tools/virt-tar.pl:88
38853 msgid ""
38854 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
38855 "its contents (recursively) from the virtual machine into a local tarball.  "
38856 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
38857 "virtual machine.  You cannot use these two options together."
38858 msgstr ""
38859
38860 #. type: textblock
38861 #: ../tools/virt-tar.pl:94
38862 msgid ""
38863 "In addition, you may need to use the I<-z> (gZip) option to enable "
38864 "compression.  When uploading, you have to specify I<-z> if the upload file "
38865 "is compressed because virt-tar won't detect this on its own."
38866 msgstr ""
38867
38868 #. type: textblock
38869 #: ../tools/virt-tar.pl:98
38870 msgid ""
38871 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
38872 "example it cannot do PKZip files or bzip2 compression.  If you want that "
38873 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
38874 "the L<libguestfs(3)> API)."
38875 msgstr ""
38876
38877 #. type: =item
38878 #: ../tools/virt-tar.pl:160
38879 msgid "B<--extract>"
38880 msgstr ""
38881
38882 #. type: =item
38883 #: ../tools/virt-tar.pl:162
38884 msgid "B<--download>"
38885 msgstr ""
38886
38887 #. type: =item
38888 #: ../tools/virt-tar.pl:164
38889 msgid "B<-u>"
38890 msgstr ""
38891
38892 #. type: =item
38893 #: ../tools/virt-tar.pl:166
38894 msgid "B<--upload>"
38895 msgstr ""
38896
38897 #. type: textblock
38898 #: ../tools/virt-tar.pl:168
38899 msgid ""
38900 "Use I<-x> to extract (download) a directory from a virtual machine to a "
38901 "local tarball."
38902 msgstr ""
38903
38904 #. type: textblock
38905 #: ../tools/virt-tar.pl:171
38906 msgid ""
38907 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
38908 "Please read the L</WARNING> section above before using this option."
38909 msgstr ""
38910
38911 #. type: textblock
38912 #: ../tools/virt-tar.pl:175
38913 msgid "You must specify exactly one of these options."
38914 msgstr ""
38915
38916 #. type: =item
38917 #: ../tools/virt-tar.pl:181
38918 msgid "B<-z>"
38919 msgstr ""
38920
38921 #. type: =item
38922 #: ../tools/virt-tar.pl:183
38923 msgid "B<--gzip>"
38924 msgstr ""
38925
38926 #. type: textblock
38927 #: ../tools/virt-tar.pl:185
38928 msgid "Specify that the input or output tarball is gzip-compressed."
38929 msgstr ""
38930
38931 #. type: textblock
38932 #: ../tools/virt-tar.pl:298
38933 msgid ""
38934 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
38935 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
38936 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
38937 "org/>."
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../tools/virt-win-reg.pl:37
38942 msgid ""
38943 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
38944 msgstr ""
38945
38946 #. type: verbatim
38947 #: ../tools/virt-win-reg.pl:41
38948 #, no-wrap
38949 msgid ""
38950 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
38951 "\n"
38952 msgstr ""
38953
38954 #. type: verbatim
38955 #: ../tools/virt-win-reg.pl:43
38956 #, no-wrap
38957 msgid ""
38958 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
38959 "\n"
38960 msgstr ""
38961
38962 #. type: verbatim
38963 #: ../tools/virt-win-reg.pl:45
38964 #, no-wrap
38965 msgid ""
38966 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
38967 "\n"
38968 msgstr ""
38969
38970 #. type: verbatim
38971 #: ../tools/virt-win-reg.pl:47
38972 #, no-wrap
38973 msgid ""
38974 " virt-win-reg --merge domname [input.reg ...]\n"
38975 "\n"
38976 msgstr ""
38977
38978 #. type: verbatim
38979 #: ../tools/virt-win-reg.pl:49
38980 #, no-wrap
38981 msgid ""
38982 " virt-win-reg [--options] disk.img ... # instead of domname\n"
38983 "\n"
38984 msgstr ""
38985
38986 #. type: textblock
38987 #: ../tools/virt-win-reg.pl:53
38988 msgid ""
38989 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
38990 "virtual machines.  If you do this, you I<will> get irreversible disk "
38991 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
38992 "but doesn't catch all cases."
38993 msgstr ""
38994
38995 #. type: textblock
38996 #: ../tools/virt-win-reg.pl:58
38997 msgid ""
38998 "Modifying the Windows Registry is an inherently risky operation.  The format "
38999 "is deliberately obscure and undocumented, and Registry changes can leave the "
39000 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39001 "you have a reliable backup first."
39002 msgstr ""
39003
39004 #. type: textblock
39005 #: ../tools/virt-win-reg.pl:65
39006 msgid ""
39007 "This program can export and merge Windows Registry entries from a Windows "
39008 "guest."
39009 msgstr ""
39010
39011 #. type: textblock
39012 #: ../tools/virt-win-reg.pl:68
39013 msgid ""
39014 "The first parameter is the libvirt guest name or the raw disk image of a "
39015 "Windows guest."
39016 msgstr ""
39017
39018 #. type: textblock
39019 #: ../tools/virt-win-reg.pl:71
39020 msgid ""
39021 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39022 "exported (recursively).  For example:"
39023 msgstr ""
39024
39025 #. type: verbatim
39026 #: ../tools/virt-win-reg.pl:74
39027 #, no-wrap
39028 msgid ""
39029 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39030 "\n"
39031 msgstr ""
39032
39033 #. type: textblock
39034 #: ../tools/virt-win-reg.pl:76
39035 msgid ""
39036 "You can also display single values from within registry keys, for example:"
39037 msgstr ""
39038
39039 #. type: verbatim
39040 #: ../tools/virt-win-reg.pl:79
39041 #, no-wrap
39042 msgid ""
39043 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39044 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39045 " Windows 7 Enterprise\n"
39046 "\n"
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../tools/virt-win-reg.pl:83
39051 msgid ""
39052 "With I<--merge>, you can merge a textual regedit file into the Windows "
39053 "Registry:"
39054 msgstr ""
39055
39056 #. type: verbatim
39057 #: ../tools/virt-win-reg.pl:86
39058 #, no-wrap
39059 msgid ""
39060 " $ virt-win-reg --merge Windows7 changes.reg\n"
39061 "\n"
39062 msgstr ""
39063
39064 #. type: textblock
39065 #: ../tools/virt-win-reg.pl:90
39066 msgid ""
39067 "This program is only meant for simple access to the registry.  If you want "
39068 "to do complicated things with the registry, we suggest you download the "
39069 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39070 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39071 "L<hivexregedit(1)>."
39072 msgstr ""
39073
39074 #. type: =item
39075 #: ../tools/virt-win-reg.pl:159
39076 msgid "B<--merge>"
39077 msgstr ""
39078
39079 #. type: textblock
39080 #: ../tools/virt-win-reg.pl:161
39081 msgid ""
39082 "In merge mode, this merges a textual regedit file into the Windows Registry "
39083 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39084 "displays or exports Registry entries instead."
39085 msgstr ""
39086
39087 #. type: textblock
39088 #: ../tools/virt-win-reg.pl:165
39089 msgid ""
39090 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39091 "result in disk corruption.  However exporting (without this flag)  is always "
39092 "safe."
39093 msgstr ""
39094
39095 #. type: =item
39096 #: ../tools/virt-win-reg.pl:173
39097 msgid "B<--encoding> UTF-16LE|ASCII"
39098 msgstr ""
39099
39100 #. type: textblock
39101 #: ../tools/virt-win-reg.pl:175
39102 msgid ""
39103 "When merging (only), you may need to specify the encoding for strings to be "
39104 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39105 "(3)/ENCODING STRINGS>."
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../tools/virt-win-reg.pl:179
39110 msgid ""
39111 "The default is to use UTF-16LE, which should work with recent versions of "
39112 "Windows."
39113 msgstr ""
39114
39115 #. type: =item
39116 #: ../tools/virt-win-reg.pl:186
39117 msgid "B<--unsafe-printable-strings>"
39118 msgstr ""
39119
39120 #. type: textblock
39121 #: ../tools/virt-win-reg.pl:188
39122 msgid ""
39123 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39124 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39125 "present."
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../tools/virt-win-reg.pl:192
39130 msgid ""
39131 "This is unsafe and does not preserve the fidelity of strings in the original "
39132 "Registry for various reasons:"
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../tools/virt-win-reg.pl:199
39137 msgid ""
39138 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39139 "other encodings will be corrupted by this transformation."
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../tools/virt-win-reg.pl:204
39144 msgid ""
39145 "Assumes that everything which has type 1 or 2 is really a string and that "
39146 "everything else is not a string, but the type field in real Registries is "
39147 "not reliable."
39148 msgstr ""
39149
39150 #. type: textblock
39151 #: ../tools/virt-win-reg.pl:210
39152 msgid ""
39153 "Loses information about whether a zero codepoint followed the string in the "
39154 "Registry or not."
39155 msgstr ""
39156
39157 #. type: textblock
39158 #: ../tools/virt-win-reg.pl:215
39159 msgid ""
39160 "This all happens because the Registry itself contains no information about "
39161 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39162 msgstr ""
39163
39164 #. type: textblock
39165 #: ../tools/virt-win-reg.pl:219
39166 msgid ""
39167 "You should only use this option for quick hacking and debugging of the "
39168 "Registry contents, and I<never> use it if the output is going to be passed "
39169 "into another program or stored in another Registry."
39170 msgstr ""
39171
39172 #. type: =head1
39173 #: ../tools/virt-win-reg.pl:556
39174 msgid "SUPPORTED SYSTEMS"
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../tools/virt-win-reg.pl:558
39179 msgid ""
39180 "The program currently supports Windows NT-derived guests starting with "
39181 "Windows XP through to at least Windows 7."
39182 msgstr ""
39183
39184 #. type: textblock
39185 #: ../tools/virt-win-reg.pl:561
39186 msgid "The following Registry keys are supported:"
39187 msgstr ""
39188
39189 #. type: =item
39190 #: ../tools/virt-win-reg.pl:565
39191 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39192 msgstr ""
39193
39194 #. type: =item
39195 #: ../tools/virt-win-reg.pl:567
39196 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39197 msgstr ""
39198
39199 #. type: =item
39200 #: ../tools/virt-win-reg.pl:569
39201 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39202 msgstr ""
39203
39204 #. type: =item
39205 #: ../tools/virt-win-reg.pl:571
39206 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39207 msgstr ""
39208
39209 #. type: =item
39210 #: ../tools/virt-win-reg.pl:573
39211 msgid "C<HKEY_USERS\\.DEFAULT>"
39212 msgstr ""
39213
39214 #. type: =item
39215 #: ../tools/virt-win-reg.pl:575
39216 msgid "C<HKEY_USERS\\I<SID>>"
39217 msgstr ""
39218
39219 #. type: textblock
39220 #: ../tools/virt-win-reg.pl:577
39221 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39222 msgstr ""
39223
39224 #. type: =item
39225 #: ../tools/virt-win-reg.pl:579
39226 msgid "C<HKEY_USERS\\I<username>>"
39227 msgstr ""
39228
39229 #. type: textblock
39230 #: ../tools/virt-win-reg.pl:581
39231 msgid ""
39232 "where I<username> is a local user name (this is a libguestfs extension)."
39233 msgstr ""
39234
39235 #. type: textblock
39236 #: ../tools/virt-win-reg.pl:585
39237 msgid ""
39238 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39239 "C<HKEY_USERS>."
39240 msgstr ""
39241
39242 #. type: textblock
39243 #: ../tools/virt-win-reg.pl:588
39244 msgid ""
39245 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39246 "supported (there is no \"current user\")."
39247 msgstr ""
39248
39249 #. type: =head1
39250 #: ../tools/virt-win-reg.pl:591
39251 msgid "ENCODING"
39252 msgstr ""
39253
39254 #. type: textblock
39255 #: ../tools/virt-win-reg.pl:593
39256 msgid ""
39257 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39258 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39259 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39260 "Windows-style line endings, you may need to reencode the whole file before "
39261 "or after processing."
39262 msgstr ""
39263
39264 #. type: textblock
39265 #: ../tools/virt-win-reg.pl:599
39266 msgid ""
39267 "To reencode a file from Windows format to Linux (before processing it with "
39268 "the I<--merge> option), you would do something like this:"
39269 msgstr ""
39270
39271 #. type: verbatim
39272 #: ../tools/virt-win-reg.pl:602
39273 #, no-wrap
39274 msgid ""
39275 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39276 "\n"
39277 msgstr ""
39278
39279 #. type: textblock
39280 #: ../tools/virt-win-reg.pl:604
39281 msgid ""
39282 "To go in the opposite direction, after exporting and before sending the file "
39283 "to a Windows user, do something like this:"
39284 msgstr ""
39285
39286 #. type: verbatim
39287 #: ../tools/virt-win-reg.pl:607
39288 #, no-wrap
39289 msgid ""
39290 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39291 "\n"
39292 msgstr ""
39293
39294 #. type: textblock
39295 #: ../tools/virt-win-reg.pl:609
39296 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39297 msgstr ""
39298
39299 #. type: textblock
39300 #: ../tools/virt-win-reg.pl:611
39301 msgid ""
39302 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39303 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39304 "style (CRLF) line endings, like this:"
39305 msgstr ""
39306
39307 #. type: verbatim
39308 #: ../tools/virt-win-reg.pl:615
39309 #, no-wrap
39310 msgid ""
39311 " $ file software.reg\n"
39312 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39313 " with CRLF line terminators\n"
39314 "\n"
39315 msgstr ""
39316
39317 #. type: textblock
39318 #: ../tools/virt-win-reg.pl:619
39319 msgid "This file would need conversion before you could I<--merge> it."
39320 msgstr ""
39321
39322 #. type: =head1
39323 #: ../tools/virt-win-reg.pl:621
39324 msgid "CurrentControlSet etc."
39325 msgstr ""
39326
39327 #. type: textblock
39328 #: ../tools/virt-win-reg.pl:623
39329 msgid ""
39330 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39331 "Registry at the level of the hive file, and therefore you cannot modify "
39332 "these."
39333 msgstr ""
39334
39335 #. type: textblock
39336 #: ../tools/virt-win-reg.pl:627
39337 msgid ""
39338 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39339 "circumstances it might refer to another control set.  The way to find out is "
39340 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39341 msgstr ""
39342
39343 #. type: verbatim
39344 #: ../tools/virt-win-reg.pl:631
39345 #, no-wrap
39346 msgid ""
39347 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39348 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39349 " \"Current\"=dword:00000001\n"
39350 " \"Default\"=dword:00000001\n"
39351 " \"Failed\"=dword:00000000\n"
39352 " \"LastKnownGood\"=dword:00000002\n"
39353 "\n"
39354 msgstr ""
39355
39356 #. type: textblock
39357 #: ../tools/virt-win-reg.pl:638
39358 msgid "\"Current\" is the one which Windows will choose when it boots."
39359 msgstr ""
39360
39361 #. type: textblock
39362 #: ../tools/virt-win-reg.pl:640
39363 msgid ""
39364 "Similarly, other C<Current...> keys in the path may need to be replaced."
39365 msgstr ""
39366
39367 #. type: =head1
39368 #: ../tools/virt-win-reg.pl:643
39369 msgid "WINDOWS TIPS"
39370 msgstr ""
39371
39372 #. type: textblock
39373 #: ../tools/virt-win-reg.pl:645
39374 msgid ""
39375 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39376 "be shut off, else you will get disk corruption."
39377 msgstr ""
39378
39379 #. type: =head2
39380 #: ../tools/virt-win-reg.pl:648
39381 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39382 msgstr ""
39383
39384 #. type: textblock
39385 #: ../tools/virt-win-reg.pl:650
39386 msgid ""
39387 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39388 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39389 "is uploaded into C<C:\\>:"
39390 msgstr ""
39391
39392 #. type: verbatim
39393 #: ../tools/virt-win-reg.pl:654
39394 #, no-wrap
39395 msgid ""
39396 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39397 "\n"
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../tools/virt-win-reg.pl:656
39402 msgid "Prepare a regedit file containing the registry change:"
39403 msgstr ""
39404
39405 #. type: verbatim
39406 #: ../tools/virt-win-reg.pl:658
39407 #, no-wrap
39408 msgid ""
39409 " cat > test.reg <<'EOF'\n"
39410 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39411 " \"Test\"=\"c:\\\\test.bat\"\n"
39412 " EOF\n"
39413 "\n"
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../tools/virt-win-reg.pl:663
39418 msgid ""
39419 "In this example we use the key C<RunOnce> which means that the script will "
39420 "run precisely once when the first user logs in.  If you want it to run every "
39421 "time a user logs in, replace C<RunOnce> with C<Run>."
39422 msgstr ""
39423
39424 #. type: textblock
39425 #: ../tools/virt-win-reg.pl:667
39426 msgid "Now update the registry:"
39427 msgstr ""
39428
39429 #. type: verbatim
39430 #: ../tools/virt-win-reg.pl:669
39431 #, no-wrap
39432 msgid ""
39433 " virt-win-reg --merge WindowsGuest test.reg\n"
39434 "\n"
39435 msgstr ""
39436
39437 #. type: =head2
39438 #: ../tools/virt-win-reg.pl:671
39439 msgid "INSTALLING A SERVICE"
39440 msgstr ""
39441
39442 #. type: textblock
39443 #: ../tools/virt-win-reg.pl:673
39444 msgid ""
39445 "This section assumes you are familiar with Windows services, and you either "
39446 "have a program which handles the Windows Service Control Protocol directly "
39447 "or you want to run any program using a service wrapper like SrvAny or the "
39448 "free RHSrvAny."
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../tools/virt-win-reg.pl:678
39453 msgid ""
39454 "First upload the program and optionally the service wrapper.  In this case "
39455 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39456 msgstr ""
39457
39458 #. type: verbatim
39459 #: ../tools/virt-win-reg.pl:682
39460 #, no-wrap
39461 msgid ""
39462 " guestfish -i -d WindowsGuest <<EOF\n"
39463 "   upload rhsrvany.exe /rhsrvany.exe\n"
39464 "   upload test.exe /test.exe\n"
39465 " EOF\n"
39466 "\n"
39467 msgstr ""
39468
39469 #. type: textblock
39470 #: ../tools/virt-win-reg.pl:687
39471 msgid ""
39472 "Prepare a regedit file containing the registry changes.  In this example, "
39473 "the first registry change is needed for the service itself or the service "
39474 "wrapper (if used).  The second registry change is only needed because I am "
39475 "using the RHSrvAny service wrapper."
39476 msgstr ""
39477
39478 #. type: verbatim
39479 #: ../tools/virt-win-reg.pl:692
39480 #, no-wrap
39481 msgid ""
39482 " cat > service.reg <<'EOF'\n"
39483 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39484 " \"Type\"=dword:00000010\n"
39485 " \"Start\"=dword:00000002\n"
39486 " \"ErrorControl\"=dword:00000001\n"
39487 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39488 " \"DisplayName\"=\"RHSrvAny\"\n"
39489 " \"ObjectName\"=\"NetworkService\"\n"
39490 " \n"
39491 msgstr ""
39492
39493 #. type: verbatim
39494 #: ../tools/virt-win-reg.pl:701
39495 #, no-wrap
39496 msgid ""
39497 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39498 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39499 " \"PWD\"=\"c:\\\\Temp\"\n"
39500 " EOF\n"
39501 "\n"
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../tools/virt-win-reg.pl:712
39506 msgid ""
39507 "For use of C<ControlSet001> see the section above in this manual page.  You "
39508 "may need to adjust this according to the control set that is in use by the "
39509 "guest."
39510 msgstr ""
39511
39512 #. type: textblock
39513 #: ../tools/virt-win-reg.pl:718
39514 msgid ""
39515 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39516 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39517 "privileged account."
39518 msgstr ""
39519
39520 #. type: textblock
39521 #: ../tools/virt-win-reg.pl:724
39522 msgid ""
39523 "For the meaning of the magic numbers, see this Microsoft KB article: "
39524 "L<http://support.microsoft.com/kb/103000>."
39525 msgstr ""
39526
39527 #. type: textblock
39528 #: ../tools/virt-win-reg.pl:729
39529 msgid "Update the registry:"
39530 msgstr ""
39531
39532 #. type: verbatim
39533 #: ../tools/virt-win-reg.pl:731
39534 #, no-wrap
39535 msgid ""
39536 " virt-win-reg --merge WindowsGuest service.reg\n"
39537 "\n"
39538 msgstr ""
39539
39540 #. type: textblock
39541 #: ../tools/virt-win-reg.pl:735
39542 msgid ""
39543 "Be careful when passing parameters containing C<\\> (backslash) in the "
39544 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39545 "(but not both) to protect them from the shell."
39546 msgstr ""
39547
39548 #. type: textblock
39549 #: ../tools/virt-win-reg.pl:739
39550 msgid "Paths and value names are case-insensitive."
39551 msgstr ""
39552
39553 #. type: textblock
39554 #: ../tools/virt-win-reg.pl:748
39555 msgid ""
39556 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39557 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39558 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39559 msgstr ""
39560
39561 #. type: verbatim
39562 #: ../tools/virt-win-reg.pl:766
39563 #, no-wrap
39564 msgid ""
39565 " export LIBGUESTFS_DEBUG=1\n"
39566 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39567 "\n"
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../tools/virt-win-reg.pl:769
39572 msgid ""
39573 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39574 "redhat.com/>"
39575 msgstr ""