1d3a473d9f01fcb119977079c3bf8cee7ad07a3a
[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-05 18:11+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 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
23 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../df/virt-df.pod:3
24 #: ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3
25 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
26 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
27 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
28 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
29 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
30 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
31 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
32 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
33 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
34 #: ../test-tool/libguestfs-test-tool.pod:3
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
36 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
37 #: ../tools/virt-win-reg.pl:35
38 msgid "NAME"
39 msgstr "名前"
40
41 #. type: textblock
42 #: ../align/virt-alignment-scan.pod:5
43 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
44 msgstr ""
45
46 #. type: =head1
47 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
48 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../df/virt-df.pod:7
49 #: ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7
50 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
51 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
52 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
53 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
54 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
55 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
56 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
57 #: ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7
58 #: ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7
59 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
60 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
61 #: ../tools/virt-win-reg.pl:39
62 msgid "SYNOPSIS"
63 msgstr ""
64
65 #. type: verbatim
66 #: ../align/virt-alignment-scan.pod:9
67 #, no-wrap
68 msgid ""
69 " virt-alignment-scan [--options]\n"
70 "\n"
71 msgstr ""
72
73 #. type: verbatim
74 #: ../align/virt-alignment-scan.pod:11
75 #, no-wrap
76 msgid ""
77 " virt-alignment-scan [--options] -d domname\n"
78 "\n"
79 msgstr ""
80
81 #. type: verbatim
82 #: ../align/virt-alignment-scan.pod:13
83 #, no-wrap
84 msgid ""
85 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
86 "\n"
87 msgstr ""
88
89 #. type: =head1
90 #: ../align/virt-alignment-scan.pod:15 ../cat/virt-cat.pod:19
91 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../df/virt-df.pod:21
92 #: ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16
93 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
94 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
95 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
96 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
97 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
98 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
99 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
100 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
101 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
102 #: ../test-tool/libguestfs-test-tool.pod:11
103 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
104 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
105 #: ../tools/virt-win-reg.pl:63
106 msgid "DESCRIPTION"
107 msgstr ""
108
109 #. type: textblock
110 #: ../align/virt-alignment-scan.pod:17
111 msgid ""
112 "When older operating systems install themselves, the partitioning tools "
113 "place partitions at a sector misaligned with the underlying storage "
114 "(commonly the first partition starts on sector C<63>).  Misaligned "
115 "partitions can result in an operating system issuing more I/O than should be "
116 "necessary."
117 msgstr ""
118
119 #. type: textblock
120 #: ../align/virt-alignment-scan.pod:23
121 msgid ""
122 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
123 "machines and disk images and warns you if there are alignment problems."
124 msgstr ""
125
126 #. type: textblock
127 #: ../align/virt-alignment-scan.pod:27
128 msgid ""
129 "Currently there is no virt tool for fixing alignment problems, except to "
130 "reinstall the operating system.  The following NetApp document summarises "
131 "the problem and possible solutions: L<http://media.netapp.com/documents/"
132 "tr-3747.pdf>"
133 msgstr ""
134
135 #. type: =head1
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "OUTPUT"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:34
142 msgid "To run this tool on a disk image directly, use the I<-a> option:"
143 msgstr ""
144
145 #. type: verbatim
146 #: ../align/virt-alignment-scan.pod:36
147 #, no-wrap
148 msgid ""
149 " $ virt-alignment-scan -a winxp.img\n"
150 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
151 "\n"
152 msgstr ""
153
154 #. type: verbatim
155 #: ../align/virt-alignment-scan.pod:39
156 #, no-wrap
157 msgid ""
158 " $ virt-alignment-scan -a fedora16.img\n"
159 " /dev/sda1      1048576         1024K   ok\n"
160 " /dev/sda2      2097152         2048K   ok\n"
161 " /dev/sda3    526385152         2048K   ok\n"
162 "\n"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:44
167 msgid ""
168 "To run the tool on a guest known to libvirt, use the I<-d> option and "
169 "possibly the I<-c> option:"
170 msgstr ""
171
172 #. type: verbatim
173 #: ../align/virt-alignment-scan.pod:47
174 #, no-wrap
175 msgid ""
176 " # virt-alignment-scan -d RHEL5\n"
177 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
178 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
179 "\n"
180 msgstr ""
181
182 #. type: verbatim
183 #: ../align/virt-alignment-scan.pod:51
184 #, no-wrap
185 msgid ""
186 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
187 " /dev/sda1      1048576         1024K   ok\n"
188 " /dev/sda2    105906176         1024K   ok\n"
189 " /dev/sdb1        65536           64K   ok\n"
190 "\n"
191 msgstr ""
192
193 #. type: textblock
194 #: ../align/virt-alignment-scan.pod:56
195 msgid ""
196 "The output consists of 4 or more whitespace-separated columns.  Only the "
197 "first 4 columns are signficant if you want to parse this from a program.  "
198 "The columns are:"
199 msgstr ""
200
201 #. type: =item
202 #: ../align/virt-alignment-scan.pod:62
203 msgid "col 1"
204 msgstr ""
205
206 #. type: textblock
207 #: ../align/virt-alignment-scan.pod:64
208 msgid ""
209 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
210 "on the first block device)"
211 msgstr ""
212
213 #. type: =item
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "col 2"
216 msgstr ""
217
218 #. type: textblock
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "the start of the partition in bytes"
221 msgstr ""
222
223 #. type: =item
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "col 3"
226 msgstr ""
227
228 #. type: textblock
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
231 msgstr ""
232
233 #. type: =item
234 #: ../align/virt-alignment-scan.pod:75
235 msgid "col 4"
236 msgstr ""
237
238 #. type: textblock
239 #: ../align/virt-alignment-scan.pod:77
240 msgid ""
241 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
242 "can cause performance problems"
243 msgstr ""
244
245 #. type: =item
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "cols 5+"
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:82
252 msgid "optional free-text explanation."
253 msgstr ""
254
255 #. type: textblock
256 #: ../align/virt-alignment-scan.pod:86
257 msgid ""
258 "The exit code from the program changes depending on whether poorly aligned "
259 "partitions were found.  See L</EXIT STATUS> below."
260 msgstr ""
261
262 #. type: textblock
263 #: ../align/virt-alignment-scan.pod:89
264 msgid "If you just want the exit code with no output, use the I<-q> option."
265 msgstr ""
266
267 #. type: =head1
268 #: ../align/virt-alignment-scan.pod:91 ../cat/virt-cat.pod:62
269 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../df/virt-df.pod:59
270 #: ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148
271 #: ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34
272 #: ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36
273 #: ../fuse/guestmount.pod:83 ../inspector/virt-inspector.pod:55
274 #: ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241
275 #: ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36
276 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
277 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
278 #: ../tools/virt-win-reg.pl:96
279 msgid "OPTIONS"
280 msgstr ""
281
282 #. type: =item
283 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:66
284 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../df/virt-df.pod:63
285 #: ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152
286 #: ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59
287 #: ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245
288 #: ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40
289 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
290 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
291 #: ../tools/virt-win-reg.pl:104
292 msgid "B<--help>"
293 msgstr ""
294
295 #. type: textblock
296 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:68
297 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../df/virt-df.pod:65
298 #: ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61
299 #: ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63
300 #: ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163
301 #: ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr ""
304
305 #. type: =item
306 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67
308 #: ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63
309 #: ../rescue/virt-rescue.pod:92
310 msgid "B<-a> file"
311 msgstr ""
312
313 #. type: =item
314 #: ../align/virt-alignment-scan.pod:101 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69
316 #: ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65
317 #: ../rescue/virt-rescue.pod:94
318 msgid "B<--add> file"
319 msgstr ""
320
321 #. type: textblock
322 #: ../align/virt-alignment-scan.pod:103
323 msgid "Add I<file> which should be a disk image from a virtual machine."
324 msgstr ""
325
326 #. type: textblock
327 #: ../align/virt-alignment-scan.pod:105 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../df/virt-df.pod:75
329 #: ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174
330 #: ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71
331 #: ../rescue/virt-rescue.pod:100
332 msgid ""
333 "The format of the disk image is auto-detected.  To override this and force a "
334 "particular format use the I<--format=..> option."
335 msgstr ""
336
337 #. type: =item
338 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78
340 #: ../rescue/virt-rescue.pod:107
341 msgid "B<-c> URI"
342 msgstr ""
343
344 #. type: =item
345 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:83
346 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:112 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../df/virt-df.pod:82
354 #: ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78
355 #: ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81
356 #: ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131
357 #: ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:115 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85
366 #: ../rescue/virt-rescue.pod:114
367 msgid ""
368 "If you specify guest block devices directly (I<-a>), then libvirt is not "
369 "used at all."
370 msgstr ""
371
372 #. type: =item
373 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:91
374 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94
375 #: ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85
376 #: ../rescue/virt-rescue.pod:117
377 msgid "B<-d> guest"
378 msgstr ""
379
380 #. type: =item
381 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:93
382 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96
383 #: ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87
384 #: ../rescue/virt-rescue.pod:119
385 msgid "B<--domain> guest"
386 msgstr ""
387
388 #. type: textblock
389 #: ../align/virt-alignment-scan.pod:122 ../cat/virt-cat.pod:95
390 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98
391 #: ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89
392 #: ../rescue/virt-rescue.pod:121
393 msgid ""
394 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
395 "instead of names."
396 msgstr ""
397
398 #. type: =item
399 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:105
400 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
401 #: ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133
402 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
403 msgid "B<--format=raw|qcow2|..>"
404 msgstr ""
405
406 #. type: =item
407 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:107
408 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
409 #: ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
410 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101
411 #: ../rescue/virt-rescue.pod:126
412 msgid "B<--format>"
413 msgstr ""
414
415 #. type: textblock
416 #: ../align/virt-alignment-scan.pod:129 ../cat/virt-cat.pod:109
417 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
418 #: ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
419 #: ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
420 msgid ""
421 "The default for the I<-a> option is to auto-detect the format of the disk "
422 "image.  Using this forces the disk format for I<-a> options which follow on "
423 "the command line.  Using I<--format> with no argument switches back to auto-"
424 "detection for subsequent I<-a> options."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:134 ../cat/virt-cat.pod:114
429 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
430 #: ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
431 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
432 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2791
433 msgid "For example:"
434 msgstr ""
435
436 #. type: verbatim
437 #: ../align/virt-alignment-scan.pod:136
438 #, no-wrap
439 msgid ""
440 " virt-alignment-scan --format=raw -a disk.img\n"
441 "\n"
442 msgstr ""
443
444 #. type: textblock
445 #: ../align/virt-alignment-scan.pod:138 ../cat/virt-cat.pod:118
446 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
447 #: ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
448 #: ../rescue/virt-rescue.pod:137
449 msgid "forces raw format (no auto-detection) for C<disk.img>."
450 msgstr ""
451
452 #. type: verbatim
453 #: ../align/virt-alignment-scan.pod:140
454 #, no-wrap
455 msgid ""
456 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
457 "\n"
458 msgstr ""
459
460 #. type: textblock
461 #: ../align/virt-alignment-scan.pod:142 ../cat/virt-cat.pod:122
462 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
463 #: ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
464 #: ../rescue/virt-rescue.pod:141
465 msgid ""
466 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
467 "detection for C<another.img>."
468 msgstr ""
469
470 #. type: textblock
471 #: ../align/virt-alignment-scan.pod:145 ../cat/virt-cat.pod:125
472 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
473 #: ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
474 #: ../rescue/virt-rescue.pod:144
475 msgid ""
476 "If you have untrusted raw-format guest disk images, you should use this "
477 "option to specify the disk format.  This avoids a possible security problem "
478 "with malicious guests (CVE-2010-3851)."
479 msgstr ""
480
481 #. type: =item
482 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:414
483 #: ../sparsify/virt-sparsify.pod:153
484 msgid "B<-q>"
485 msgstr ""
486
487 #. type: =item
488 #: ../align/virt-alignment-scan.pod:151 ../resize/virt-resize.pod:416
489 #: ../sparsify/virt-sparsify.pod:155
490 msgid "B<--quiet>"
491 msgstr ""
492
493 #. type: textblock
494 #: ../align/virt-alignment-scan.pod:153
495 msgid ""
496 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
497 "below)."
498 msgstr ""
499
500 #. type: =item
501 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:134
502 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
503 #: ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
504 #: ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119
505 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
506 msgid "B<-v>"
507 msgstr ""
508
509 #. type: =item
510 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:136
511 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
512 #: ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
513 #: ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121
514 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
515 msgid "B<--verbose>"
516 msgstr ""
517
518 #. type: textblock
519 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:138
520 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
521 #: ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
522 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
523 #: ../sparsify/virt-sparsify.pod:163
524 msgid "Enable verbose messages for debugging."
525 msgstr ""
526
527 #. type: =item
528 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:140
529 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
530 #: ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
531 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125
532 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
533 #: ../sparsify/virt-sparsify.pod:165
534 msgid "B<-V>"
535 msgstr ""
536
537 #. type: =item
538 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:142
539 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
540 #: ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
541 #: ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127
542 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
543 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
544 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
545 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
546 msgid "B<--version>"
547 msgstr ""
548
549 #. type: textblock
550 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:144
551 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
552 #: ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
553 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
554 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
555 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
556 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
557 #: ../tools/virt-win-reg.pl:114
558 msgid "Display version number and exit."
559 msgstr ""
560
561 #. type: =item
562 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:146
563 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
564 #: ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
565 #: ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131
566 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
567 #: ../tools/virt-tar.pl:158
568 msgid "B<-x>"
569 msgstr ""
570
571 #. type: textblock
572 #: ../align/virt-alignment-scan.pod:170 ../cat/virt-cat.pod:148
573 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
574 #: ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
575 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
576 #: ../sparsify/virt-sparsify.pod:173
577 msgid "Enable tracing of libguestfs API calls."
578 msgstr ""
579
580 #. type: =head1
581 #: ../align/virt-alignment-scan.pod:174 ../cat/virt-cat.pod:191
582 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
583 #: ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
584 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
585 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
586 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
587 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
588 msgid "SHELL QUOTING"
589 msgstr ""
590
591 #. type: textblock
592 #: ../align/virt-alignment-scan.pod:176 ../cat/virt-cat.pod:193
593 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
594 #: ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
595 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
596 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
597 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
598 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
599 msgid ""
600 "Libvirt guest names can contain arbitrary characters, some of which have "
601 "meaning to the shell such as C<#> and space.  You may need to quote or "
602 "escape these characters on the command line.  See the shell manual page L<sh"
603 "(1)> for details."
604 msgstr ""
605
606 #. type: =head1
607 #: ../align/virt-alignment-scan.pod:181 ../cat/virt-cat.pod:198
608 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
609 #: ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1081
610 #: ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375
611 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
612 #: ../test-tool/libguestfs-test-tool.pod:90
613 msgid "EXIT STATUS"
614 msgstr ""
615
616 #. type: textblock
617 #: ../align/virt-alignment-scan.pod:183
618 msgid "This program returns:"
619 msgstr ""
620
621 #. type: =item
622 #: ../align/virt-alignment-scan.pod:187
623 msgid "code 0"
624 msgstr ""
625
626 #. type: textblock
627 #: ../align/virt-alignment-scan.pod:189
628 msgid ""
629 "successful exit, all partitions are aligned E<ge> 64K for best performance"
630 msgstr ""
631
632 #. type: =item
633 #: ../align/virt-alignment-scan.pod:191
634 msgid "code 1"
635 msgstr ""
636
637 #. type: textblock
638 #: ../align/virt-alignment-scan.pod:193
639 msgid "an error scanning the disk image or guest"
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:195
644 msgid "code 2"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:197
649 msgid ""
650 "successful exit, some partitions have alignment E<lt> 64K which can result "
651 "in poor performance on high end network storage"
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:200
656 msgid "code 3"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:202
661 msgid ""
662 "successful exit, some partitions have alignment E<lt> 4K which can result in "
663 "poor performance on most hypervisors"
664 msgstr ""
665
666 #. type: =head1
667 #: ../align/virt-alignment-scan.pod:207 ../cat/virt-cat.pod:203
668 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
669 #: ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
670 #: ../erlang/examples/guestfs-erlang.pod:97
671 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
672 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
673 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
674 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
675 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
676 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
677 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
678 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
679 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3179
680 #: ../test-tool/libguestfs-test-tool.pod:100
681 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
682 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
683 #: ../tools/virt-win-reg.pl:746
684 msgid "SEE ALSO"
685 msgstr ""
686
687 #. type: textblock
688 #: ../align/virt-alignment-scan.pod:209
689 msgid ""
690 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://libguestfs."
691 "org/>."
692 msgstr ""
693
694 #. type: =head1
695 #: ../align/virt-alignment-scan.pod:214 ../cat/virt-cat.pod:212
696 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
697 #: ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
698 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
699 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
700 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
701 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
702 msgid "AUTHOR"
703 msgstr ""
704
705 #. type: textblock
706 #: ../align/virt-alignment-scan.pod:216 ../cat/virt-cat.pod:214
707 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
708 #: ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
709 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
710 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
711 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
712 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
713 #: ../tools/virt-win-reg.pl:774
714 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
715 msgstr ""
716
717 #. type: =head1
718 #: ../align/virt-alignment-scan.pod:218 ../cat/virt-cat.pod:216
719 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
720 #: ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
721 #: ../erlang/examples/guestfs-erlang.pod:114
722 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
723 #: ../fish/guestfish.pod:1266 ../fish/virt-copy-in.pod:64
724 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
725 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
726 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
727 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
728 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
729 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
730 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3259
731 #: ../test-tool/libguestfs-test-tool.pod:110
732 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
733 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
734 #: ../tools/virt-win-reg.pl:776
735 msgid "COPYRIGHT"
736 msgstr ""
737
738 #. type: textblock
739 #: ../align/virt-alignment-scan.pod:220 ../sparsify/virt-sparsify.pod:270
740 msgid "Copyright (C) 2011 Red Hat Inc."
741 msgstr ""
742
743 #. type: textblock
744 #: ../align/virt-alignment-scan.pod:222 ../cat/virt-cat.pod:220
745 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
746 #: ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1271
747 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
748 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
749 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:407
750 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
751 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
752 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
753 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
754 #: ../tools/virt-win-reg.pl:780
755 msgid ""
756 "This program is free software; you can redistribute it and/or modify it "
757 "under the terms of the GNU General Public License as published by the Free "
758 "Software Foundation; either version 2 of the License, or (at your option) "
759 "any later version."
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:227 ../cat/virt-cat.pod:225
764 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
765 #: ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1276
766 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
767 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
768 #: ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:412
769 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
770 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
771 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
772 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
773 #: ../tools/virt-win-reg.pl:785
774 msgid ""
775 "This program is distributed in the hope that it will be useful, but WITHOUT "
776 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
777 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
778 "more details."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:232 ../cat/virt-cat.pod:230
783 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
784 #: ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1281
785 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
786 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
787 #: ../fuse/guestmount.pod:338 ../inspector/virt-inspector.pod:417
788 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
789 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
790 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
791 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
792 #: ../tools/virt-win-reg.pl:790
793 msgid ""
794 "You should have received a copy of the GNU General Public License along with "
795 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
796 "Ave, Cambridge, MA 02139, USA."
797 msgstr ""
798
799 #. type: textblock
800 #: ../cat/virt-cat.pod:5
801 msgid "virt-cat - Display files in a virtual machine"
802 msgstr ""
803
804 #. type: verbatim
805 #: ../cat/virt-cat.pod:9
806 #, no-wrap
807 msgid ""
808 " virt-cat [--options] -d domname file [file ...]\n"
809 "\n"
810 msgstr ""
811
812 #. type: verbatim
813 #: ../cat/virt-cat.pod:11
814 #, no-wrap
815 msgid ""
816 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
817 "\n"
818 msgstr ""
819
820 #. type: textblock
821 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
822 #: ../inspector/virt-inspector.pod:13
823 msgid "Old-style:"
824 msgstr ""
825
826 #. type: verbatim
827 #: ../cat/virt-cat.pod:15
828 #, no-wrap
829 msgid ""
830 " virt-cat domname file\n"
831 "\n"
832 msgstr ""
833
834 #. type: verbatim
835 #: ../cat/virt-cat.pod:17
836 #, no-wrap
837 msgid ""
838 " virt-cat disk.img file\n"
839 "\n"
840 msgstr ""
841
842 #. type: textblock
843 #: ../cat/virt-cat.pod:21
844 msgid ""
845 "C<virt-cat> is a command line tool to display the contents of C<file> where "
846 "C<file> exists in the named virtual machine (or disk image)."
847 msgstr ""
848
849 #. type: textblock
850 #: ../cat/virt-cat.pod:24
851 msgid ""
852 "Multiple filenames can be given, in which case they are concatenated "
853 "together.  Each filename must be a full path, starting at the root directory "
854 "(starting with '/')."
855 msgstr ""
856
857 #. type: textblock
858 #: ../cat/virt-cat.pod:28
859 msgid ""
860 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
861 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
862 "(see L</USING GUESTFISH> below)."
863 msgstr ""
864
865 #. type: =head1
866 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
867 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
868 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
869 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
870 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
871 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
872 #: ../tools/virt-tar.pl:50
873 msgid "EXAMPLES"
874 msgstr ""
875
876 #. type: textblock
877 #: ../cat/virt-cat.pod:34
878 msgid ""
879 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
880 msgstr ""
881
882 #. type: verbatim
883 #: ../cat/virt-cat.pod:37
884 #, no-wrap
885 msgid ""
886 " virt-cat -d mydomain /etc/fstab\n"
887 "\n"
888 msgstr ""
889
890 #. type: textblock
891 #: ../cat/virt-cat.pod:39
892 msgid "List syslog messages from a VM disk image file:"
893 msgstr ""
894
895 #. type: verbatim
896 #: ../cat/virt-cat.pod:41
897 #, no-wrap
898 msgid ""
899 " virt-cat -a disk.img /var/log/messages | tail\n"
900 "\n"
901 msgstr ""
902
903 #. type: textblock
904 #: ../cat/virt-cat.pod:43
905 msgid "Find out what DHCP IP address a VM acquired:"
906 msgstr ""
907
908 #. type: verbatim
909 #: ../cat/virt-cat.pod:45
910 #, no-wrap
911 msgid ""
912 " virt-cat -d mydomain /var/log/messages | \\\n"
913 "   grep 'dhclient: bound to' | tail\n"
914 "\n"
915 msgstr ""
916
917 #. type: textblock
918 #: ../cat/virt-cat.pod:48
919 msgid "Find out what packages were recently installed:"
920 msgstr ""
921
922 #. type: verbatim
923 #: ../cat/virt-cat.pod:50
924 #, no-wrap
925 msgid ""
926 " virt-cat -d mydomain /var/log/yum.log | tail\n"
927 "\n"
928 msgstr ""
929
930 #. type: textblock
931 #: ../cat/virt-cat.pod:52
932 msgid "Find out who is logged on inside a virtual machine:"
933 msgstr ""
934
935 #. type: verbatim
936 #: ../cat/virt-cat.pod:54
937 #, no-wrap
938 msgid ""
939 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
940 " who /tmp/utmp\n"
941 "\n"
942 msgstr ""
943
944 #. type: textblock
945 #: ../cat/virt-cat.pod:57
946 msgid "or who was logged on:"
947 msgstr ""
948
949 #. type: verbatim
950 #: ../cat/virt-cat.pod:59
951 #, no-wrap
952 msgid ""
953 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
954 " last -f /tmp/wtmp\n"
955 "\n"
956 msgstr ""
957
958 #. type: textblock
959 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
960 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
961 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
962 msgid ""
963 "Add I<file> which should be a disk image from a virtual machine.  If the "
964 "virtual machine has multiple block devices, you must supply all of them with "
965 "separate I<-a> options."
966 msgstr ""
967
968 #. type: =item
969 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
970 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
971 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
972 msgid "B<--echo-keys>"
973 msgstr ""
974
975 #. type: textblock
976 #: ../cat/virt-cat.pod:100
977 msgid ""
978 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
979 "so you cannot see what you are typing.  If you are not worried about Tempest "
980 "attacks and there is no one else in the room you can specify this flag to "
981 "see what you are typing."
982 msgstr ""
983
984 #. type: verbatim
985 #: ../cat/virt-cat.pod:116
986 #, no-wrap
987 msgid ""
988 " virt-cat --format=raw -a disk.img file\n"
989 "\n"
990 msgstr ""
991
992 #. type: verbatim
993 #: ../cat/virt-cat.pod:120
994 #, no-wrap
995 msgid ""
996 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
997 "\n"
998 msgstr ""
999
1000 #. type: =item
1001 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1002 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1003 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
1004 msgid "B<--keys-from-stdin>"
1005 msgstr ""
1006
1007 #. type: textblock
1008 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1009 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1010 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
1011 msgid ""
1012 "Read key or passphrase parameters from stdin.  The default is to try to read "
1013 "passphrases from the user by opening C</dev/tty>."
1014 msgstr ""
1015
1016 #. type: =head1
1017 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1018 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1019 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../cat/virt-cat.pod:154
1024 msgid "Previous versions of virt-cat allowed you to write either:"
1025 msgstr ""
1026
1027 #. type: verbatim
1028 #: ../cat/virt-cat.pod:156
1029 #, no-wrap
1030 msgid ""
1031 " virt-cat disk.img [disk.img ...] file\n"
1032 "\n"
1033 msgstr ""
1034
1035 #. type: textblock
1036 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1037 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1038 msgid "or"
1039 msgstr ""
1040
1041 #. type: verbatim
1042 #: ../cat/virt-cat.pod:160
1043 #, no-wrap
1044 msgid ""
1045 " virt-cat guestname file\n"
1046 "\n"
1047 msgstr ""
1048
1049 #. type: textblock
1050 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1051 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1052 msgid ""
1053 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1054 "the confusing case where a disk image might have the same name as a guest."
1055 msgstr ""
1056
1057 #. type: textblock
1058 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1059 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1060 msgid "For compatibility the old style is still supported."
1061 msgstr ""
1062
1063 #. type: =head1
1064 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1065 msgid "USING GUESTFISH"
1066 msgstr ""
1067
1068 #. type: textblock
1069 #: ../cat/virt-cat.pod:170
1070 msgid ""
1071 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1072 "C<virt-cat> doesn't work."
1073 msgstr ""
1074
1075 #. type: textblock
1076 #: ../cat/virt-cat.pod:173
1077 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1078 msgstr ""
1079
1080 #. type: verbatim
1081 #: ../cat/virt-cat.pod:175
1082 #, no-wrap
1083 msgid ""
1084 " guestfish --ro -i -d domname download file -\n"
1085 "\n"
1086 msgstr ""
1087
1088 #. type: textblock
1089 #: ../cat/virt-cat.pod:177
1090 msgid ""
1091 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1092 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1093 msgstr ""
1094
1095 #. type: textblock
1096 #: ../cat/virt-cat.pod:181
1097 msgid ""
1098 "The command above uses libguestfs's guest inspection feature and so does not "
1099 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1100 "disk images that don't contain guests.  To display a file from a disk image "
1101 "directly, use:"
1102 msgstr ""
1103
1104 #. type: verbatim
1105 #: ../cat/virt-cat.pod:186
1106 #, no-wrap
1107 msgid ""
1108 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1109 "\n"
1110 msgstr ""
1111
1112 #. type: textblock
1113 #: ../cat/virt-cat.pod:188
1114 msgid ""
1115 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1116 "the disk image, and C<file> is the full path to the file."
1117 msgstr ""
1118
1119 #. type: textblock
1120 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1121 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1122 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
1123 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1124 msgid ""
1125 "This program returns 0 if successful, or non-zero if there was an error."
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../cat/virt-cat.pod:205
1130 msgid ""
1131 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1132 "tar-out(1)>, L<http://libguestfs.org/>."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1137 #: ../resize/virt-resize.pod:641
1138 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../cat/virt-filesystems.pod:5
1143 msgid ""
1144 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1145 "virtual machine or disk image"
1146 msgstr ""
1147
1148 #. type: verbatim
1149 #: ../cat/virt-filesystems.pod:9
1150 #, no-wrap
1151 msgid ""
1152 " virt-filesystems [--options] -d domname\n"
1153 "\n"
1154 msgstr ""
1155
1156 #. type: verbatim
1157 #: ../cat/virt-filesystems.pod:11
1158 #, no-wrap
1159 msgid ""
1160 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1161 "\n"
1162 msgstr ""
1163
1164 #. type: textblock
1165 #: ../cat/virt-filesystems.pod:15
1166 msgid ""
1167 "This tool allows you to discover filesystems, partitions, logical volumes, "
1168 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1169 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../cat/virt-filesystems.pod:20
1174 msgid ""
1175 "One use for this tool is from shell scripts to iterate over all filesystems "
1176 "from a disk image:"
1177 msgstr ""
1178
1179 #. type: verbatim
1180 #: ../cat/virt-filesystems.pod:23
1181 #, no-wrap
1182 msgid ""
1183 " for fs in $(virt-filesystems -a disk.img); do\n"
1184 "   # ...\n"
1185 " done\n"
1186 "\n"
1187 msgstr ""
1188
1189 #. type: textblock
1190 #: ../cat/virt-filesystems.pod:27
1191 msgid ""
1192 "Another use is to list partitions before using another tool to modify those "
1193 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1194 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1195 msgstr ""
1196
1197 #. type: textblock
1198 #: ../cat/virt-filesystems.pod:32
1199 msgid ""
1200 "Various command line options control what this program displays.  You need "
1201 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1202 "guest respectively.  If you just specify that then the program shows "
1203 "filesystems found, one per line, like this:"
1204 msgstr ""
1205
1206 #. type: verbatim
1207 #: ../cat/virt-filesystems.pod:37
1208 #, no-wrap
1209 msgid ""
1210 " $ virt-filesystems -a disk.img\n"
1211 " /dev/sda1\n"
1212 " /dev/vg_guest/lv_root\n"
1213 "\n"
1214 msgstr ""
1215
1216 #. type: textblock
1217 #: ../cat/virt-filesystems.pod:41
1218 msgid ""
1219 "If you add I<-l> or I<--long> then the output includes extra information:"
1220 msgstr ""
1221
1222 #. type: verbatim
1223 #: ../cat/virt-filesystems.pod:44
1224 #, no-wrap
1225 msgid ""
1226 " $ virt-filesystems -a disk.img -l\n"
1227 " Name                   Type         VFS   Label  Size\n"
1228 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1229 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1230 "\n"
1231 msgstr ""
1232
1233 #. type: textblock
1234 #: ../cat/virt-filesystems.pod:49
1235 msgid ""
1236 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1237 "shown as well:"
1238 msgstr ""
1239
1240 #. type: verbatim
1241 #: ../cat/virt-filesystems.pod:52
1242 #, no-wrap
1243 msgid ""
1244 " $ virt-filesystems -a disk.img --extra\n"
1245 " /dev/sda1\n"
1246 " /dev/vg_guest/lv_root\n"
1247 " /dev/vg_guest/lv_swap\n"
1248 " /dev/vg_guest/lv_data\n"
1249 "\n"
1250 msgstr ""
1251
1252 #. type: textblock
1253 #: ../cat/virt-filesystems.pod:58
1254 msgid ""
1255 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1256 msgstr ""
1257
1258 #. type: verbatim
1259 #: ../cat/virt-filesystems.pod:60
1260 #, no-wrap
1261 msgid ""
1262 " $ virt-filesystems -a disk.img --partitions\n"
1263 " /dev/sda1\n"
1264 " /dev/sda2\n"
1265 "\n"
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../cat/virt-filesystems.pod:64
1270 msgid ""
1271 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1272 "volumes>, I<--block-devices> to list those items."
1273 msgstr ""
1274
1275 #. type: textblock
1276 #: ../cat/virt-filesystems.pod:67
1277 msgid ""
1278 "You can use these options in combination as well (if you want a combination "
1279 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1280 "items fall into several categories (eg. C</dev/sda1> might be both a "
1281 "partition and a filesystem).  These items are listed several times.  To get "
1282 "a list which includes absolutely everything that virt-filesystems knows "
1283 "about, use the I<--all> option."
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-filesystems.pod:74
1288 msgid ""
1289 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1290 "uuid> option to display device and filesystem UUIDs in the long output."
1291 msgstr ""
1292
1293 #. type: textblock
1294 #: ../cat/virt-filesystems.pod:78
1295 msgid ""
1296 "I<--all --long --uuid> is a useful combination to display all possible "
1297 "information about everything."
1298 msgstr ""
1299
1300 #. type: verbatim
1301 #: ../cat/virt-filesystems.pod:81
1302 #, no-wrap
1303 msgid ""
1304 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1305 " Name      Type       VFS  Label           Size Parent   UUID\n"
1306 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1307 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1308 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1309 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1310 " /dev/sda  device     -    -               20G  -        -\n"
1311 "\n"
1312 msgstr ""
1313
1314 #. type: textblock
1315 #: ../cat/virt-filesystems.pod:89
1316 msgid ""
1317 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1318 msgstr ""
1319
1320 #. type: =item
1321 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1322 msgid "B<--all>"
1323 msgstr ""
1324
1325 #. type: textblock
1326 #: ../cat/virt-filesystems.pod:112
1327 msgid ""
1328 "Display everything.  This is currently the same as specifying these options: "
1329 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1330 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1331 "added to this list in future)."
1332 msgstr ""
1333
1334 #. type: textblock
1335 #: ../cat/virt-filesystems.pod:117
1336 msgid "See also I<--long>."
1337 msgstr ""
1338
1339 #. type: =item
1340 #: ../cat/virt-filesystems.pod:119
1341 msgid "B<--blkdevs>"
1342 msgstr ""
1343
1344 #. type: =item
1345 #: ../cat/virt-filesystems.pod:121
1346 msgid "B<--block-devices>"
1347 msgstr ""
1348
1349 #. type: textblock
1350 #: ../cat/virt-filesystems.pod:123
1351 msgid "Display block devices."
1352 msgstr ""
1353
1354 #. type: =item
1355 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1356 msgid "B<--csv>"
1357 msgstr ""
1358
1359 #. type: textblock
1360 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1361 msgid ""
1362 "Write out the results in CSV format (comma-separated values).  This format "
1363 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1364 "ABOUT CSV FORMAT> below."
1365 msgstr ""
1366
1367 #. type: textblock
1368 #: ../cat/virt-filesystems.pod:150
1369 msgid ""
1370 "When prompting for keys and passphrases, virt-filesystems normally turns "
1371 "echoing off so you cannot see what you are typing.  If you are not worried "
1372 "about Tempest attacks and there is no one else in the room you can specify "
1373 "this flag to see what you are typing."
1374 msgstr ""
1375
1376 #. type: =item
1377 #: ../cat/virt-filesystems.pod:155
1378 msgid "B<--extra>"
1379 msgstr ""
1380
1381 #. type: textblock
1382 #: ../cat/virt-filesystems.pod:157
1383 msgid ""
1384 "This causes filesystems that are not ordinary, mountable filesystems to be "
1385 "displayed.  This category includes swapspace, and filesystems that are empty "
1386 "or contain unknown data."
1387 msgstr ""
1388
1389 #. type: textblock
1390 #: ../cat/virt-filesystems.pod:161
1391 msgid "This option implies I<--filesystems>."
1392 msgstr ""
1393
1394 #. type: =item
1395 #: ../cat/virt-filesystems.pod:163
1396 msgid "B<--filesystems>"
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:165
1401 msgid ""
1402 "Display mountable filesystems.  If no display option was selected then this "
1403 "option is implied."
1404 msgstr ""
1405
1406 #. type: textblock
1407 #: ../cat/virt-filesystems.pod:168
1408 msgid "With I<--extra>, non-mountable filesystems are shown too."
1409 msgstr ""
1410
1411 #. type: verbatim
1412 #: ../cat/virt-filesystems.pod:181
1413 #, no-wrap
1414 msgid ""
1415 " virt-filesystems --format=raw -a disk.img\n"
1416 "\n"
1417 msgstr ""
1418
1419 #. type: verbatim
1420 #: ../cat/virt-filesystems.pod:185
1421 #, no-wrap
1422 msgid ""
1423 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1424 "\n"
1425 msgstr ""
1426
1427 #. type: =item
1428 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1429 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1430 #: ../tools/virt-list-partitions.pl:109
1431 msgid "B<-h>"
1432 msgstr ""
1433
1434 #. type: =item
1435 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1436 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1437 msgid "B<--human-readable>"
1438 msgstr ""
1439
1440 #. type: textblock
1441 #: ../cat/virt-filesystems.pod:198
1442 msgid "In I<--long> mode, display sizes in human-readable format."
1443 msgstr ""
1444
1445 #. type: =item
1446 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1447 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1448 msgid "B<-l>"
1449 msgstr ""
1450
1451 #. type: =item
1452 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1453 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1454 msgid "B<--long>"
1455 msgstr ""
1456
1457 #. type: textblock
1458 #: ../cat/virt-filesystems.pod:209
1459 msgid "Display extra columns of data (\"long format\")."
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-filesystems.pod:211
1464 msgid "A title row is added unless you also specify I<--no-title>."
1465 msgstr ""
1466
1467 #. type: textblock
1468 #: ../cat/virt-filesystems.pod:213
1469 msgid ""
1470 "The extra columns displayed depend on what output you select, and the "
1471 "ordering of columns may change in future versions.  Use the title row, I<--"
1472 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1473 "programs."
1474 msgstr ""
1475
1476 #. type: textblock
1477 #: ../cat/virt-filesystems.pod:218
1478 msgid ""
1479 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1480 "default is to show raw numbers of I<bytes>."
1481 msgstr ""
1482
1483 #. type: textblock
1484 #: ../cat/virt-filesystems.pod:221
1485 msgid "Use I<--uuid> to display UUIDs too."
1486 msgstr ""
1487
1488 #. type: =item
1489 #: ../cat/virt-filesystems.pod:223
1490 msgid "B<--lvs>"
1491 msgstr ""
1492
1493 #. type: =item
1494 #: ../cat/virt-filesystems.pod:225
1495 msgid "B<--logvols>"
1496 msgstr ""
1497
1498 #. type: =item
1499 #: ../cat/virt-filesystems.pod:227
1500 msgid "B<--logical-volumes>"
1501 msgstr ""
1502
1503 #. type: textblock
1504 #: ../cat/virt-filesystems.pod:229
1505 msgid ""
1506 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1507 "of whether the LVs contain filesystems."
1508 msgstr ""
1509
1510 #. type: =item
1511 #: ../cat/virt-filesystems.pod:232
1512 msgid "B<--no-title>"
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../cat/virt-filesystems.pod:234
1517 msgid "In I<--long> mode, don't add a title row."
1518 msgstr ""
1519
1520 #. type: textblock
1521 #: ../cat/virt-filesystems.pod:236
1522 msgid ""
1523 "Note that the order of the columns is not fixed, and may change in future "
1524 "versions of virt-filesystems, so using this option may give you unexpected "
1525 "surprises."
1526 msgstr ""
1527
1528 #. type: =item
1529 #: ../cat/virt-filesystems.pod:240
1530 msgid "B<--parts>"
1531 msgstr ""
1532
1533 #. type: =item
1534 #: ../cat/virt-filesystems.pod:242
1535 msgid "B<--partitions>"
1536 msgstr ""
1537
1538 #. type: textblock
1539 #: ../cat/virt-filesystems.pod:244
1540 msgid ""
1541 "Display partitions.  In this mode, these are displayed irrespective of "
1542 "whether the partitions contain filesystems."
1543 msgstr ""
1544
1545 #. type: =item
1546 #: ../cat/virt-filesystems.pod:247
1547 msgid "B<--pvs>"
1548 msgstr ""
1549
1550 #. type: =item
1551 #: ../cat/virt-filesystems.pod:249
1552 msgid "B<--physvols>"
1553 msgstr ""
1554
1555 #. type: =item
1556 #: ../cat/virt-filesystems.pod:251
1557 msgid "B<--physical-volumes>"
1558 msgstr ""
1559
1560 #. type: textblock
1561 #: ../cat/virt-filesystems.pod:253
1562 msgid "Display LVM physical volumes."
1563 msgstr ""
1564
1565 #. type: =item
1566 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1567 msgid "B<--uuid>"
1568 msgstr ""
1569
1570 #. type: =item
1571 #: ../cat/virt-filesystems.pod:257
1572 msgid "B<--uuids>"
1573 msgstr ""
1574
1575 #. type: textblock
1576 #: ../cat/virt-filesystems.pod:259
1577 msgid "In I<--long> mode, display UUIDs as well."
1578 msgstr ""
1579
1580 #. type: =item
1581 #: ../cat/virt-filesystems.pod:273
1582 msgid "B<--vgs>"
1583 msgstr ""
1584
1585 #. type: =item
1586 #: ../cat/virt-filesystems.pod:275
1587 msgid "B<--volgroups>"
1588 msgstr ""
1589
1590 #. type: =item
1591 #: ../cat/virt-filesystems.pod:277
1592 msgid "B<--volume-groups>"
1593 msgstr ""
1594
1595 #. type: textblock
1596 #: ../cat/virt-filesystems.pod:279
1597 msgid "Display LVM volume groups."
1598 msgstr ""
1599
1600 #. type: =head1
1601 #: ../cat/virt-filesystems.pod:287
1602 msgid "COLUMNS"
1603 msgstr ""
1604
1605 #. type: textblock
1606 #: ../cat/virt-filesystems.pod:289
1607 msgid ""
1608 "Note that columns in the output are subject to reordering and change in "
1609 "future versions of this tool."
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-filesystems.pod:294
1614 msgid "B<Name>"
1615 msgstr ""
1616
1617 #. type: textblock
1618 #: ../cat/virt-filesystems.pod:296
1619 msgid "The filesystem, partition, block device or LVM name."
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-filesystems.pod:298
1624 msgid ""
1625 "For device and partition names these are displayed as canonical libguestfs "
1626 "names, so that for example C</dev/sda2> is the second partition on the first "
1627 "device."
1628 msgstr ""
1629
1630 #. type: textblock
1631 #: ../cat/virt-filesystems.pod:302
1632 msgid ""
1633 "If the I<--long> option is B<not> specified, then only the name column is "
1634 "shown in the output."
1635 msgstr ""
1636
1637 #. type: =item
1638 #: ../cat/virt-filesystems.pod:305
1639 msgid "B<Type>"
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-filesystems.pod:307
1644 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1645 msgstr ""
1646
1647 #. type: =item
1648 #: ../cat/virt-filesystems.pod:309
1649 msgid "B<VFS>"
1650 msgstr ""
1651
1652 #. type: textblock
1653 #: ../cat/virt-filesystems.pod:311
1654 msgid ""
1655 "If there is a filesystem, then this column displays the filesystem type if "
1656 "one could be detected, eg. C<ext4>."
1657 msgstr ""
1658
1659 #. type: =item
1660 #: ../cat/virt-filesystems.pod:314
1661 msgid "B<Label>"
1662 msgstr ""
1663
1664 #. type: textblock
1665 #: ../cat/virt-filesystems.pod:316
1666 msgid ""
1667 "If the object has a label (used for identifying and mounting filesystems) "
1668 "then this column contains the label."
1669 msgstr ""
1670
1671 #. type: =item
1672 #: ../cat/virt-filesystems.pod:319
1673 msgid "B<Size>"
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:321
1678 msgid ""
1679 "The size of the object in bytes.  If the I<--human> option is used then the "
1680 "size is displayed in a human-readable form."
1681 msgstr ""
1682
1683 #. type: =item
1684 #: ../cat/virt-filesystems.pod:324
1685 msgid "B<Parent>"
1686 msgstr ""
1687
1688 #. type: textblock
1689 #: ../cat/virt-filesystems.pod:326
1690 msgid ""
1691 "The parent column records the parent relationship between objects.  For "
1692 "example, if the object is a partition, then this column contains the name of "
1693 "the containing device.  If the object is a logical volume, then this column "
1694 "is the name of the volume group."
1695 msgstr ""
1696
1697 #. type: =item
1698 #: ../cat/virt-filesystems.pod:331
1699 msgid "B<UUID>"
1700 msgstr ""
1701
1702 #. type: textblock
1703 #: ../cat/virt-filesystems.pod:333
1704 msgid ""
1705 "If the object has a UUID (used for identifying and mounting filesystems and "
1706 "block devices) then this column contains the UUID as a string."
1707 msgstr ""
1708
1709 #. type: textblock
1710 #: ../cat/virt-filesystems.pod:337
1711 msgid "The UUID is only displayed if the I<--uuid> option is given."
1712 msgstr ""
1713
1714 #. type: =head1
1715 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1716 #: ../df/virt-df.pod:191
1717 msgid "NOTE ABOUT CSV FORMAT"
1718 msgstr ""
1719
1720 #. type: textblock
1721 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1722 #: ../df/virt-df.pod:193
1723 msgid ""
1724 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1725 "should be easy to parse, but it is definitely not easy to parse."
1726 msgstr ""
1727
1728 #. type: textblock
1729 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1730 #: ../df/virt-df.pod:196
1731 msgid ""
1732 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1733 "reliably.  This example has two columns:"
1734 msgstr ""
1735
1736 #. type: verbatim
1737 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1738 #: ../df/virt-df.pod:199
1739 #, no-wrap
1740 msgid ""
1741 " \"foo,bar\",baz\n"
1742 "\n"
1743 msgstr ""
1744
1745 #. type: textblock
1746 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1747 #: ../df/virt-df.pod:201
1748 msgid ""
1749 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1750 "reliably.  This example has one row:"
1751 msgstr ""
1752
1753 #. type: verbatim
1754 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1755 #: ../df/virt-df.pod:204
1756 #, no-wrap
1757 msgid ""
1758 " \"foo\n"
1759 " bar\",baz\n"
1760 "\n"
1761 msgstr ""
1762
1763 #. type: textblock
1764 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1765 #: ../df/virt-df.pod:207
1766 msgid ""
1767 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1768 "packaged in major Linux distributions)."
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1773 #: ../df/virt-df.pod:210
1774 msgid ""
1775 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1776 "or Python's built-in csv library)."
1777 msgstr ""
1778
1779 #. type: textblock
1780 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1781 #: ../df/virt-df.pod:213
1782 msgid "Most spreadsheets and databases can import CSV directly."
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-filesystems.pod:379
1787 msgid ""
1788 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1789 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1790 "libguestfs.org/>."
1791 msgstr ""
1792
1793 #. type: textblock
1794 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1795 #: ../tools/virt-win-reg.pl:778
1796 msgid "Copyright (C) 2010 Red Hat Inc."
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:5
1801 msgid "virt-ls - List files in a virtual machine"
1802 msgstr ""
1803
1804 #. type: verbatim
1805 #: ../cat/virt-ls.pod:9
1806 #, no-wrap
1807 msgid ""
1808 " virt-ls [--options] -d domname directory [directory ...]\n"
1809 "\n"
1810 msgstr ""
1811
1812 #. type: verbatim
1813 #: ../cat/virt-ls.pod:11
1814 #, no-wrap
1815 msgid ""
1816 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1817 "\n"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1822 msgid "Old style:"
1823 msgstr ""
1824
1825 #. type: verbatim
1826 #: ../cat/virt-ls.pod:15
1827 #, no-wrap
1828 msgid ""
1829 " virt-ls [--options] domname directory\n"
1830 "\n"
1831 msgstr ""
1832
1833 #. type: verbatim
1834 #: ../cat/virt-ls.pod:17
1835 #, no-wrap
1836 msgid ""
1837 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1838 "\n"
1839 msgstr ""
1840
1841 #. type: textblock
1842 #: ../cat/virt-ls.pod:21
1843 msgid ""
1844 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1845 "more from a virtual machine or disk image."
1846 msgstr ""
1847
1848 #. type: textblock
1849 #: ../cat/virt-ls.pod:24
1850 msgid ""
1851 "Multiple directory names can be given, in which case the output from each is "
1852 "concatenated."
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-ls.pod:27
1857 msgid ""
1858 "To list directories from a libvirt guest use the I<-d> option to specify the "
1859 "name of the guest.  For a disk image, use the I<-a> option."
1860 msgstr ""
1861
1862 #. type: textblock
1863 #: ../cat/virt-ls.pod:31
1864 msgid ""
1865 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1866 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1867 "(3)> API."
1868 msgstr ""
1869
1870 #. type: textblock
1871 #: ../cat/virt-ls.pod:37
1872 msgid "Get a list of all files and directories in a virtual machine:"
1873 msgstr ""
1874
1875 #. type: verbatim
1876 #: ../cat/virt-ls.pod:39
1877 #, no-wrap
1878 msgid ""
1879 " virt-ls -R -d guest /\n"
1880 "\n"
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-ls.pod:41
1885 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1886 msgstr ""
1887
1888 #. type: verbatim
1889 #: ../cat/virt-ls.pod:43
1890 #, no-wrap
1891 msgid ""
1892 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1893 "\n"
1894 msgstr ""
1895
1896 #. type: textblock
1897 #: ../cat/virt-ls.pod:45
1898 msgid "List all public-writable directories in a Linux virtual machine:"
1899 msgstr ""
1900
1901 #. type: verbatim
1902 #: ../cat/virt-ls.pod:47
1903 #, no-wrap
1904 msgid ""
1905 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1906 "\n"
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-ls.pod:49
1911 msgid "List all Unix domain sockets in a Linux virtual machine:"
1912 msgstr ""
1913
1914 #. type: verbatim
1915 #: ../cat/virt-ls.pod:51
1916 #, no-wrap
1917 msgid ""
1918 " virt-ls -lR -d guest / | grep '^s'\n"
1919 "\n"
1920 msgstr ""
1921
1922 #. type: textblock
1923 #: ../cat/virt-ls.pod:53
1924 msgid "List all regular files with filenames ending in '.png':"
1925 msgstr ""
1926
1927 #. type: verbatim
1928 #: ../cat/virt-ls.pod:55
1929 #, no-wrap
1930 msgid ""
1931 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1932 "\n"
1933 msgstr ""
1934
1935 #. type: textblock
1936 #: ../cat/virt-ls.pod:57
1937 msgid "To display files larger than 10MB in home directories:"
1938 msgstr ""
1939
1940 #. type: verbatim
1941 #: ../cat/virt-ls.pod:59
1942 #, no-wrap
1943 msgid ""
1944 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1945 "\n"
1946 msgstr ""
1947
1948 #. type: textblock
1949 #: ../cat/virt-ls.pod:61
1950 msgid "Find everything modified in the last 7 days:"
1951 msgstr ""
1952
1953 #. type: verbatim
1954 #: ../cat/virt-ls.pod:63
1955 #, no-wrap
1956 msgid ""
1957 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1958 "\n"
1959 msgstr ""
1960
1961 #. type: textblock
1962 #: ../cat/virt-ls.pod:65
1963 msgid "Find regular files modified in the last 24 hours:"
1964 msgstr ""
1965
1966 #. type: verbatim
1967 #: ../cat/virt-ls.pod:67
1968 #, no-wrap
1969 msgid ""
1970 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1971 "\n"
1972 msgstr ""
1973
1974 #. type: =head2
1975 #: ../cat/virt-ls.pod:69
1976 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1977 msgstr ""
1978
1979 #. type: textblock
1980 #: ../cat/virt-ls.pod:71
1981 msgid ""
1982 "Find the differences between files in a guest and an earlier snapshot of the "
1983 "same guest."
1984 msgstr ""
1985
1986 #. type: verbatim
1987 #: ../cat/virt-ls.pod:74
1988 #, no-wrap
1989 msgid ""
1990 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1991 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1992 " diff -u old new | less\n"
1993 "\n"
1994 msgstr ""
1995
1996 #. type: textblock
1997 #: ../cat/virt-ls.pod:78
1998 msgid ""
1999 "The commands above won't find files where the content has changed but the "
2000 "metadata (eg. file size and modification date) is the same.  To do that, you "
2001 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2002 "checksum> can be quite slow since it has to read and compute a checksum of "
2003 "every regular file in the virtual machine."
2004 msgstr ""
2005
2006 #. type: =head1
2007 #: ../cat/virt-ls.pod:84
2008 msgid "OUTPUT MODES"
2009 msgstr ""
2010
2011 #. type: textblock
2012 #: ../cat/virt-ls.pod:86
2013 msgid ""
2014 "C<virt-ls> has four output modes, controlled by different combinations of "
2015 "the I<-l> and I<-R> options."
2016 msgstr ""
2017
2018 #. type: =head2
2019 #: ../cat/virt-ls.pod:89
2020 msgid "SIMPLE LISTING"
2021 msgstr ""
2022
2023 #. type: textblock
2024 #: ../cat/virt-ls.pod:91
2025 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2026 msgstr ""
2027
2028 #. type: verbatim
2029 #: ../cat/virt-ls.pod:93
2030 #, no-wrap
2031 msgid ""
2032 " $ virt-ls -d guest /\n"
2033 " bin\n"
2034 " boot\n"
2035 " [etc.]\n"
2036 "\n"
2037 msgstr ""
2038
2039 #. type: =head2
2040 #: ../cat/virt-ls.pod:98
2041 msgid "LONG LISTING"
2042 msgstr ""
2043
2044 #. type: textblock
2045 #: ../cat/virt-ls.pod:100
2046 msgid ""
2047 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2048 "(more specifically, like the C<guestfs_ll> function)."
2049 msgstr ""
2050
2051 #. type: verbatim
2052 #: ../cat/virt-ls.pod:103
2053 #, no-wrap
2054 msgid ""
2055 " $ virt-ls -l -d guest /\n"
2056 " total 204\n"
2057 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2058 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2059 " [etc.]\n"
2060 "\n"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../cat/virt-ls.pod:109
2065 msgid ""
2066 "Note that while this is useful for displaying a directory, do not try "
2067 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2068 "instead."
2069 msgstr ""
2070
2071 #. type: =head2
2072 #: ../cat/virt-ls.pod:113
2073 msgid "RECURSIVE LISTING"
2074 msgstr ""
2075
2076 #. type: textblock
2077 #: ../cat/virt-ls.pod:115
2078 msgid ""
2079 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2080 "and directories recursively:"
2081 msgstr ""
2082
2083 #. type: verbatim
2084 #: ../cat/virt-ls.pod:118
2085 #, no-wrap
2086 msgid ""
2087 " $ virt-ls -R -d guest /tmp\n"
2088 " foo\n"
2089 " foo/bar\n"
2090 " [etc.]\n"
2091 "\n"
2092 msgstr ""
2093
2094 #. type: textblock
2095 #: ../cat/virt-ls.pod:123
2096 msgid ""
2097 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2098 "converts C<\\0> characters to C<\\n>."
2099 msgstr ""
2100
2101 #. type: =head2
2102 #: ../cat/virt-ls.pod:126
2103 msgid "RECURSIVE LONG LISTING"
2104 msgstr ""
2105
2106 #. type: textblock
2107 #: ../cat/virt-ls.pod:128
2108 msgid ""
2109 "Using I<-lR> options together changes the output to display directories "
2110 "recursively, with file stats, and optionally other features such as "
2111 "checksums and extended attributes."
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../cat/virt-ls.pod:132
2116 msgid ""
2117 "Most of the interesting features of C<virt-ls> are only available when using "
2118 "I<-lR> mode."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../cat/virt-ls.pod:135
2123 msgid ""
2124 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2125 "you cannot use the output in another program (because filenames can contain "
2126 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2127 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2128 "on you by creating filenames with embedded newline characters.  To B<safely> "
2129 "parse the output in another program, use the I<--csv> (Comma-Separated "
2130 "Values) option."
2131 msgstr ""
2132
2133 #. type: textblock
2134 #: ../cat/virt-ls.pod:143
2135 msgid ""
2136 "Note that this output format is completely unrelated to the C<ls -lR> "
2137 "command."
2138 msgstr ""
2139
2140 #. type: verbatim
2141 #: ../cat/virt-ls.pod:146
2142 #, no-wrap
2143 msgid ""
2144 " $ virt-ls -lR -d guest /bin\n"
2145 " d 0555       4096 /bin\n"
2146 " - 0755        123 /bin/alsaunmute\n"
2147 " - 0755      28328 /bin/arch\n"
2148 " l 0777          4 /bin/awk -> gawk\n"
2149 " - 0755      27216 /bin/basename\n"
2150 " - 0755     943360 /bin/bash\n"
2151 " [etc.]\n"
2152 "\n"
2153 msgstr ""
2154
2155 #. type: textblock
2156 #: ../cat/virt-ls.pod:155
2157 msgid "These basic fields are always shown:"
2158 msgstr ""
2159
2160 #. type: =item
2161 #: ../cat/virt-ls.pod:159
2162 msgid "type"
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../cat/virt-ls.pod:161
2167 msgid ""
2168 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2169 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2170 "link), C<s> (socket) or C<u> (unknown)."
2171 msgstr ""
2172
2173 #. type: =item
2174 #: ../cat/virt-ls.pod:171
2175 msgid "permissions"
2176 msgstr ""
2177
2178 #. type: textblock
2179 #: ../cat/virt-ls.pod:173
2180 msgid "The Unix permissions, displayed as a 4 digit octal number."
2181 msgstr ""
2182
2183 #. type: =item
2184 #: ../cat/virt-ls.pod:175
2185 msgid "size"
2186 msgstr ""
2187
2188 #. type: textblock
2189 #: ../cat/virt-ls.pod:177
2190 msgid ""
2191 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2192 "readable> option is given, in which case this is shown as a human-readable "
2193 "number."
2194 msgstr ""
2195
2196 #. type: =head2
2197 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2198 msgid "path"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-ls.pod:183
2203 msgid "The full path of the file or directory."
2204 msgstr ""
2205
2206 #. type: =item
2207 #: ../cat/virt-ls.pod:185
2208 msgid "link"
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../cat/virt-ls.pod:187
2213 msgid "For symbolic links only, the link target."
2214 msgstr ""
2215
2216 #. type: textblock
2217 #: ../cat/virt-ls.pod:191
2218 msgid ""
2219 "In I<-lR> mode, additional command line options enable the display of more "
2220 "fields."
2221 msgstr ""
2222
2223 #. type: textblock
2224 #: ../cat/virt-ls.pod:194
2225 msgid ""
2226 "With the I<--uids> flag, these additional fields are displayed before the "
2227 "path:"
2228 msgstr ""
2229
2230 #. type: =item
2231 #: ../cat/virt-ls.pod:199
2232 msgid "uid"
2233 msgstr ""
2234
2235 #. type: =item
2236 #: ../cat/virt-ls.pod:201
2237 msgid "gid"
2238 msgstr ""
2239
2240 #. type: textblock
2241 #: ../cat/virt-ls.pod:203
2242 msgid ""
2243 "The UID and GID of the owner of the file (displayed numerically).  Note "
2244 "these only make sense in the context of a Unix-like guest."
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../cat/virt-ls.pod:208
2249 msgid "With the I<--times> flag, these additional fields are displayed:"
2250 msgstr ""
2251
2252 #. type: =item
2253 #: ../cat/virt-ls.pod:212
2254 msgid "atime"
2255 msgstr ""
2256
2257 #. type: textblock
2258 #: ../cat/virt-ls.pod:214
2259 msgid "The time of last access."
2260 msgstr ""
2261
2262 #. type: =item
2263 #: ../cat/virt-ls.pod:216
2264 msgid "mtime"
2265 msgstr ""
2266
2267 #. type: textblock
2268 #: ../cat/virt-ls.pod:218
2269 msgid "The time of last modification."
2270 msgstr ""
2271
2272 #. type: =item
2273 #: ../cat/virt-ls.pod:220
2274 msgid "ctime"
2275 msgstr ""
2276
2277 #. type: textblock
2278 #: ../cat/virt-ls.pod:222
2279 msgid "The time of last status change."
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../cat/virt-ls.pod:226
2284 msgid ""
2285 "The time fields are displayed as string dates and times, unless one of the "
2286 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2287 msgstr ""
2288
2289 #. type: textblock
2290 #: ../cat/virt-ls.pod:229
2291 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2292 msgstr ""
2293
2294 #. type: =item
2295 #: ../cat/virt-ls.pod:233
2296 msgid "device"
2297 msgstr ""
2298
2299 #. type: textblock
2300 #: ../cat/virt-ls.pod:235
2301 msgid ""
2302 "The device containing the file (displayed as major:minor).  This may not "
2303 "match devices as known to the guest."
2304 msgstr ""
2305
2306 #. type: =item
2307 #: ../cat/virt-ls.pod:238
2308 msgid "inode"
2309 msgstr ""
2310
2311 #. type: textblock
2312 #: ../cat/virt-ls.pod:240
2313 msgid "The inode number."
2314 msgstr ""
2315
2316 #. type: =item
2317 #: ../cat/virt-ls.pod:242
2318 msgid "nlink"
2319 msgstr ""
2320
2321 #. type: textblock
2322 #: ../cat/virt-ls.pod:244
2323 msgid "The number of hard links."
2324 msgstr ""
2325
2326 #. type: =item
2327 #: ../cat/virt-ls.pod:246
2328 msgid "rdev"
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../cat/virt-ls.pod:248
2333 msgid ""
2334 "For block and char special files, the device (displayed as major:minor)."
2335 msgstr ""
2336
2337 #. type: =item
2338 #: ../cat/virt-ls.pod:251
2339 msgid "blocks"
2340 msgstr ""
2341
2342 #. type: textblock
2343 #: ../cat/virt-ls.pod:253
2344 msgid "The number of 512 byte blocks allocated to the file."
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:257
2349 msgid ""
2350 "With the I<--checksum> flag, the checksum of the file contents is shown "
2351 "(only for regular files).  Computing file checksums can take a considerable "
2352 "amount of time."
2353 msgstr ""
2354
2355 #. type: =item
2356 #: ../cat/virt-ls.pod:280
2357 msgid "B<--checksum>"
2358 msgstr ""
2359
2360 #. type: =item
2361 #: ../cat/virt-ls.pod:282
2362 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:284
2367 msgid ""
2368 "Display checksum over file contents for regular files.  With no argument, "
2369 "this defaults to using I<md5>.  Using an argument, you can select the "
2370 "checksum type to use."
2371 msgstr ""
2372
2373 #. type: textblock
2374 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2375 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2376 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2377 msgid ""
2378 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2379 "LISTING> above."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../cat/virt-ls.pod:316
2384 msgid ""
2385 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2386 "so you cannot see what you are typing.  If you are not worried about Tempest "
2387 "attacks and there is no one else in the room you can specify this flag to "
2388 "see what you are typing."
2389 msgstr ""
2390
2391 #. type: =item
2392 #: ../cat/virt-ls.pod:321
2393 msgid "B<--extra-stats>"
2394 msgstr ""
2395
2396 #. type: textblock
2397 #: ../cat/virt-ls.pod:323
2398 msgid "Display extra stats."
2399 msgstr ""
2400
2401 #. type: verbatim
2402 #: ../cat/virt-ls.pod:339
2403 #, no-wrap
2404 msgid ""
2405 " virt-ls --format=raw -a disk.img /dir\n"
2406 "\n"
2407 msgstr ""
2408
2409 #. type: verbatim
2410 #: ../cat/virt-ls.pod:343
2411 #, no-wrap
2412 msgid ""
2413 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2414 "\n"
2415 msgstr ""
2416
2417 #. type: textblock
2418 #: ../cat/virt-ls.pod:356
2419 msgid "Display file sizes in human-readable format."
2420 msgstr ""
2421
2422 #. type: =item
2423 #: ../cat/virt-ls.pod:370
2424 msgid "B<-R>"
2425 msgstr ""
2426
2427 #. type: =item
2428 #: ../cat/virt-ls.pod:372
2429 msgid "B<--recursive>"
2430 msgstr ""
2431
2432 #. type: textblock
2433 #: ../cat/virt-ls.pod:374
2434 msgid ""
2435 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2436 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2437 "LISTING>."
2438 msgstr ""
2439
2440 #. type: textblock
2441 #: ../cat/virt-ls.pod:378
2442 msgid ""
2443 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2444 "LONG LISTING>."
2445 msgstr ""
2446
2447 #. type: textblock
2448 #: ../cat/virt-ls.pod:381
2449 msgid ""
2450 "C<virt-ls -R> produces a recursive list of files starting at the named "
2451 "directory.  See L</RECURSIVE LISTING>."
2452 msgstr ""
2453
2454 #. type: textblock
2455 #: ../cat/virt-ls.pod:384
2456 msgid ""
2457 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2458 "parsed.  See L</RECURSIVE LONG LISTING>."
2459 msgstr ""
2460
2461 #. type: =item
2462 #: ../cat/virt-ls.pod:387
2463 msgid "B<--times>"
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../cat/virt-ls.pod:389
2468 msgid "Display time fields."
2469 msgstr ""
2470
2471 #. type: =item
2472 #: ../cat/virt-ls.pod:394
2473 msgid "B<--time-days>"
2474 msgstr ""
2475
2476 #. type: textblock
2477 #: ../cat/virt-ls.pod:396
2478 msgid "Display time fields as days before now (negative if in the future)."
2479 msgstr ""
2480
2481 #. type: textblock
2482 #: ../cat/virt-ls.pod:398
2483 msgid ""
2484 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2485 "of the file is between 0 and 86399 seconds."
2486 msgstr ""
2487
2488 #. type: =item
2489 #: ../cat/virt-ls.pod:404
2490 msgid "B<--time-relative>"
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../cat/virt-ls.pod:406
2495 msgid "Display time fields as seconds before now (negative if in the future)."
2496 msgstr ""
2497
2498 #. type: =item
2499 #: ../cat/virt-ls.pod:411
2500 msgid "B<--time-t>"
2501 msgstr ""
2502
2503 #. type: textblock
2504 #: ../cat/virt-ls.pod:413
2505 msgid "Display time fields as seconds since the Unix epoch."
2506 msgstr ""
2507
2508 #. type: =item
2509 #: ../cat/virt-ls.pod:418
2510 msgid "B<--uids>"
2511 msgstr ""
2512
2513 #. type: textblock
2514 #: ../cat/virt-ls.pod:420
2515 msgid "Display UID and GID fields."
2516 msgstr ""
2517
2518 #. type: textblock
2519 #: ../cat/virt-ls.pod:445
2520 msgid "Previous versions of virt-ls allowed you to write either:"
2521 msgstr ""
2522
2523 #. type: verbatim
2524 #: ../cat/virt-ls.pod:447
2525 #, no-wrap
2526 msgid ""
2527 " virt-ls disk.img [disk.img ...] /dir\n"
2528 "\n"
2529 msgstr ""
2530
2531 #. type: verbatim
2532 #: ../cat/virt-ls.pod:451
2533 #, no-wrap
2534 msgid ""
2535 " virt-ls guestname /dir\n"
2536 "\n"
2537 msgstr ""
2538
2539 #. type: textblock
2540 #: ../cat/virt-ls.pod:497
2541 msgid ""
2542 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2543 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2544 "L<http://libguestfs.org/>."
2545 msgstr ""
2546
2547 #. type: textblock
2548 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2549 #: ../rescue/virt-rescue.pod:302
2550 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2551 msgstr ""
2552
2553 #. type: textblock
2554 #: ../df/virt-df.pod:5
2555 msgid "virt-df - Display free space on virtual filesystems"
2556 msgstr ""
2557
2558 #. type: verbatim
2559 #: ../df/virt-df.pod:9
2560 #, no-wrap
2561 msgid ""
2562 " virt-df [--options]\n"
2563 "\n"
2564 msgstr ""
2565
2566 #. type: verbatim
2567 #: ../df/virt-df.pod:11
2568 #, no-wrap
2569 msgid ""
2570 " virt-df [--options] -d domname\n"
2571 "\n"
2572 msgstr ""
2573
2574 #. type: verbatim
2575 #: ../df/virt-df.pod:13
2576 #, no-wrap
2577 msgid ""
2578 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2579 "\n"
2580 msgstr ""
2581
2582 #. type: verbatim
2583 #: ../df/virt-df.pod:17
2584 #, no-wrap
2585 msgid ""
2586 " virt-df [--options] domname\n"
2587 "\n"
2588 msgstr ""
2589
2590 #. type: verbatim
2591 #: ../df/virt-df.pod:19
2592 #, no-wrap
2593 msgid ""
2594 " virt-df [--options] disk.img [disk.img ...]\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../df/virt-df.pod:23
2600 msgid ""
2601 "C<virt-df> is a command line tool to display free space on virtual machine "
2602 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2603 "allocated to a virtual machine, but can look inside disk images to see how "
2604 "much space is really being used."
2605 msgstr ""
2606
2607 #. type: textblock
2608 #: ../df/virt-df.pod:28
2609 msgid ""
2610 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2611 "to get a list of all active and inactive guests, and performs a C<df>-type "
2612 "operation on each one in turn, printing out the results."
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../df/virt-df.pod:32
2617 msgid ""
2618 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2619 "type operation on either the single named libvirt domain, or on the disk "
2620 "image(s) listed on the command line (which must all belong to a single VM).  "
2621 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2622 "guest>.  If you want to run on multiple guests, then you have to invoke "
2623 "C<virt-df> multiple times."
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../df/virt-df.pod:39
2628 msgid ""
2629 "Use the I<--csv> option to get a format which can be easily parsed by other "
2630 "programs.  Other options are similar to the standard L<df(1)> command."
2631 msgstr ""
2632
2633 #. type: textblock
2634 #: ../df/virt-df.pod:45
2635 msgid ""
2636 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2637 "output human-readable:"
2638 msgstr ""
2639
2640 #. type: verbatim
2641 #: ../df/virt-df.pod:48
2642 #, no-wrap
2643 msgid ""
2644 " # virt-df -d F14x64 -h\n"
2645 " Filesystem                       Size     Used  Available  Use%\n"
2646 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2647 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2648 "\n"
2649 msgstr ""
2650
2651 #. type: textblock
2652 #: ../df/virt-df.pod:53
2653 msgid "Show disk usage for a disk image file called C<test.img>:"
2654 msgstr ""
2655
2656 #. type: verbatim
2657 #: ../df/virt-df.pod:55
2658 #, no-wrap
2659 msgid ""
2660 " $ virt-df -a test1.img\n"
2661 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2662 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2663 "\n"
2664 msgstr ""
2665
2666 #. type: verbatim
2667 #: ../df/virt-df.pod:112
2668 #, no-wrap
2669 msgid ""
2670 " virt-df --format=raw -a disk.img\n"
2671 "\n"
2672 msgstr ""
2673
2674 #. type: verbatim
2675 #: ../df/virt-df.pod:116
2676 #, no-wrap
2677 msgid ""
2678 " virt-df --format=raw -a disk.img --format -a another.img\n"
2679 "\n"
2680 msgstr ""
2681
2682 #. type: textblock
2683 #: ../df/virt-df.pod:129
2684 msgid "Print sizes in human-readable format."
2685 msgstr ""
2686
2687 #. type: textblock
2688 #: ../df/virt-df.pod:131
2689 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2690 msgstr ""
2691
2692 #. type: =item
2693 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2694 msgid "B<-i>"
2695 msgstr ""
2696
2697 #. type: =item
2698 #: ../df/virt-df.pod:135
2699 msgid "B<--inodes>"
2700 msgstr ""
2701
2702 #. type: textblock
2703 #: ../df/virt-df.pod:137
2704 msgid "Print inodes instead of blocks."
2705 msgstr ""
2706
2707 #. type: =item
2708 #: ../df/virt-df.pod:139
2709 msgid "B<--one-per-guest>"
2710 msgstr ""
2711
2712 #. type: textblock
2713 #: ../df/virt-df.pod:141
2714 msgid ""
2715 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2716 "disks from several guests to a single libguestfs appliance."
2717 msgstr ""
2718
2719 #. type: textblock
2720 #: ../df/virt-df.pod:144
2721 msgid "You might use this option in the following circumstances:"
2722 msgstr ""
2723
2724 #. type: =item
2725 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2726 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2727 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2728 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2729 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2730 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2731 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2732 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2733 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2734 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2735 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2736 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2737 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2738 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2739 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2740 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2741 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2742 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2743 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2744 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2745 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2746 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2747 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2748 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2749 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2750 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2751 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2752 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2753 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
2754 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
2755 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
2756 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
2757 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2758 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2759 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2760 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2761 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
2762 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2763 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
2764 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
2765 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
2766 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
2767 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
2768 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
2769 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
2770 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
2771 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
2772 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
2773 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
2774 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
2775 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
2776 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
2777 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
2778 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
2779 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
2780 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
2781 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
2782 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
2783 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
2784 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2971
2785 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2980 ../src/guestfs.pod:2984
2786 #: ../src/guestfs.pod:2988 ../src/guestfs.pod:3002 ../src/guestfs.pod:3007
2787 #: ../src/guestfs.pod:3236 ../src/guestfs.pod:3240 ../src/guestfs.pod:3244
2788 #: ../src/guestfs.pod:3248 ../tools/virt-win-reg.pl:197
2789 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
2790 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
2791 #: ../tools/virt-win-reg.pl:722
2792 msgid "*"
2793 msgstr ""
2794
2795 #. type: textblock
2796 #: ../df/virt-df.pod:150
2797 msgid ""
2798 "If you think an untrusted guest might actively try to exploit the libguestfs "
2799 "appliance kernel, then this prevents one guest from interfering with the "
2800 "stats printed for another guest."
2801 msgstr ""
2802
2803 #. type: textblock
2804 #: ../df/virt-df.pod:156
2805 msgid ""
2806 "If the kernel has a bug which stops it from accessing a filesystem in one "
2807 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2808 "and report stats for further guests."
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../df/virt-df.pod:165
2813 msgid ""
2814 "Print UUIDs instead of names.  This is useful for following a guest even "
2815 "when the guest is migrated or renamed, or when two guests happen to have the "
2816 "same name."
2817 msgstr ""
2818
2819 #. type: textblock
2820 #: ../df/virt-df.pod:169
2821 msgid ""
2822 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2823 "images, we still print the disk image name even when this option is "
2824 "specified."
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../df/virt-df.pod:229
2829 msgid ""
2830 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2831 "libguestfs.org/>."
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../edit/virt-edit.pod:5
2836 msgid "virt-edit - Edit a file in a virtual machine"
2837 msgstr ""
2838
2839 #. type: verbatim
2840 #: ../edit/virt-edit.pod:9
2841 #, no-wrap
2842 msgid ""
2843 " virt-edit [--options] -d domname file [file ...]\n"
2844 "\n"
2845 msgstr ""
2846
2847 #. type: verbatim
2848 #: ../edit/virt-edit.pod:11
2849 #, no-wrap
2850 msgid ""
2851 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2852 "\n"
2853 msgstr ""
2854
2855 #. type: verbatim
2856 #: ../edit/virt-edit.pod:13
2857 #, no-wrap
2858 msgid ""
2859 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2860 "\n"
2861 msgstr ""
2862
2863 #. type: verbatim
2864 #: ../edit/virt-edit.pod:17
2865 #, no-wrap
2866 msgid ""
2867 " virt-edit domname file\n"
2868 "\n"
2869 msgstr ""
2870
2871 #. type: verbatim
2872 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2873 #, no-wrap
2874 msgid ""
2875 " virt-edit disk.img [disk.img ...] file\n"
2876 "\n"
2877 msgstr ""
2878
2879 #. type: =head1
2880 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2881 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2882 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2883 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2884 msgid "WARNING"
2885 msgstr ""
2886
2887 #. type: textblock
2888 #: ../edit/virt-edit.pod:23
2889 msgid ""
2890 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2891 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2892 "doing this, but doesn't catch all cases."
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../edit/virt-edit.pod:29
2897 msgid ""
2898 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2899 "exists in the named virtual machine (or disk image)."
2900 msgstr ""
2901
2902 #. type: textblock
2903 #: ../edit/virt-edit.pod:32
2904 msgid ""
2905 "Multiple filenames can be given, in which case they are each edited in "
2906 "turn.  Each filename must be a full path, starting at the root directory "
2907 "(starting with '/')."
2908 msgstr ""
2909
2910 #. type: textblock
2911 #: ../edit/virt-edit.pod:36
2912 msgid "If you want to just view a file, use L<virt-cat(1)>."
2913 msgstr ""
2914
2915 #. type: textblock
2916 #: ../edit/virt-edit.pod:38
2917 msgid ""
2918 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2919 "USING GUESTFISH> below)."
2920 msgstr ""
2921
2922 #. type: textblock
2923 #: ../edit/virt-edit.pod:41
2924 msgid ""
2925 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2926 "that and much more."
2927 msgstr ""
2928
2929 #. type: textblock
2930 #: ../edit/virt-edit.pod:46
2931 msgid "Edit the named files interactively:"
2932 msgstr ""
2933
2934 #. type: verbatim
2935 #: ../edit/virt-edit.pod:48
2936 #, no-wrap
2937 msgid ""
2938 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2939 "\n"
2940 msgstr ""
2941
2942 #. type: verbatim
2943 #: ../edit/virt-edit.pod:50
2944 #, no-wrap
2945 msgid ""
2946 " virt-edit -d mydomain /etc/passwd\n"
2947 "\n"
2948 msgstr ""
2949
2950 #. type: textblock
2951 #: ../edit/virt-edit.pod:52
2952 msgid "For Windows guests, some Windows paths are understood:"
2953 msgstr ""
2954
2955 #. type: verbatim
2956 #: ../edit/virt-edit.pod:54
2957 #, no-wrap
2958 msgid ""
2959 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2960 "\n"
2961 msgstr ""
2962
2963 #. type: textblock
2964 #: ../edit/virt-edit.pod:56
2965 msgid ""
2966 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2967 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2968 msgstr ""
2969
2970 #. type: verbatim
2971 #: ../edit/virt-edit.pod:60
2972 #, no-wrap
2973 msgid ""
2974 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2975 "\n"
2976 msgstr ""
2977
2978 #. type: =item
2979 #: ../edit/virt-edit.pod:81
2980 msgid "B<-b> extension"
2981 msgstr ""
2982
2983 #. type: =item
2984 #: ../edit/virt-edit.pod:83
2985 msgid "B<--backup> extension"
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../edit/virt-edit.pod:85
2990 msgid ""
2991 "Create a backup of the original file I<in the guest disk image>.  The backup "
2992 "has the original filename with C<extension> added."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../edit/virt-edit.pod:88
2997 msgid ""
2998 "Usually the first character of C<extension> would be a dot C<.> so you would "
2999 "write:"
3000 msgstr ""
3001
3002 #. type: verbatim
3003 #: ../edit/virt-edit.pod:91
3004 #, no-wrap
3005 msgid ""
3006 " virt-edit -b .orig [etc]\n"
3007 "\n"
3008 msgstr ""
3009
3010 #. type: textblock
3011 #: ../edit/virt-edit.pod:93
3012 msgid "By default, no backup file is made."
3013 msgstr ""
3014
3015 #. type: =item
3016 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
3017 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
3018 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
3019 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3020 msgid "B<-c URI>"
3021 msgstr ""
3022
3023 #. type: =item
3024 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
3025 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
3026 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
3027 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3028 msgid "B<--connect URI>"
3029 msgstr ""
3030
3031 #. type: textblock
3032 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
3033 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
3034 #: ../tools/virt-win-reg.pl:135
3035 msgid ""
3036 "If you specify guest block devices directly, then libvirt is not used at all."
3037 msgstr ""
3038
3039 #. type: textblock
3040 #: ../edit/virt-edit.pod:114
3041 msgid ""
3042 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3043 "off so you cannot see what you are typing.  If you are not worried about "
3044 "Tempest attacks and there is no one else in the room you can specify this "
3045 "flag to see what you are typing."
3046 msgstr ""
3047
3048 #. type: =item
3049 #: ../edit/virt-edit.pod:119
3050 msgid "B<-e> EXPR"
3051 msgstr ""
3052
3053 #. type: =item
3054 #: ../edit/virt-edit.pod:121
3055 msgid "B<--expr> EXPR"
3056 msgstr ""
3057
3058 #. type: textblock
3059 #: ../edit/virt-edit.pod:123
3060 msgid ""
3061 "Instead of launching the external editor, non-interactively apply the Perl "
3062 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3063 "EDITING> below."
3064 msgstr ""
3065
3066 #. type: textblock
3067 #: ../edit/virt-edit.pod:127
3068 msgid ""
3069 "Be careful to properly quote the expression to prevent it from being altered "
3070 "by the shell."
3071 msgstr ""
3072
3073 #. type: textblock
3074 #: ../edit/virt-edit.pod:130
3075 msgid "Note that this option is only available when Perl 5 is installed."
3076 msgstr ""
3077
3078 #. type: =item
3079 #: ../edit/virt-edit.pod:132
3080 msgid "B<--format> raw|qcow2|..."
3081 msgstr ""
3082
3083 #. type: verbatim
3084 #: ../edit/virt-edit.pod:143
3085 #, no-wrap
3086 msgid ""
3087 " virt-edit --format=raw -a disk.img file\n"
3088 "\n"
3089 msgstr ""
3090
3091 #. type: verbatim
3092 #: ../edit/virt-edit.pod:147
3093 #, no-wrap
3094 msgid ""
3095 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3096 "\n"
3097 msgstr ""
3098
3099 #. type: textblock
3100 #: ../edit/virt-edit.pod:181
3101 msgid "Previous versions of virt-edit allowed you to write either:"
3102 msgstr ""
3103
3104 #. type: verbatim
3105 #: ../edit/virt-edit.pod:187
3106 #, no-wrap
3107 msgid ""
3108 " virt-edit guestname file\n"
3109 "\n"
3110 msgstr ""
3111
3112 #. type: =head1
3113 #: ../edit/virt-edit.pod:195
3114 msgid "NON-INTERACTIVE EDITING"
3115 msgstr ""
3116
3117 #. type: textblock
3118 #: ../edit/virt-edit.pod:197
3119 msgid ""
3120 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3121 "administrator can interactively edit the file."
3122 msgstr ""
3123
3124 #. type: textblock
3125 #: ../edit/virt-edit.pod:200
3126 msgid ""
3127 "There are two ways also to use C<virt-edit> from scripts in order to make "
3128 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3129 "like this, it's less error-prone to write scripts directly using the "
3130 "libguestfs API and Augeas for configuration file editing.)"
3131 msgstr ""
3132
3133 #. type: textblock
3134 #: ../edit/virt-edit.pod:206
3135 msgid ""
3136 "The first method is to temporarily set C<$EDITOR> to any script or program "
3137 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3138 "update C<tmpfile> in place however it likes."
3139 msgstr ""
3140
3141 #. type: textblock
3142 #: ../edit/virt-edit.pod:210
3143 msgid ""
3144 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3145 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3146 "instances of C<foo> with C<bar> in a file:"
3147 msgstr ""
3148
3149 #. type: verbatim
3150 #: ../edit/virt-edit.pod:214
3151 #, no-wrap
3152 msgid ""
3153 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3154 "\n"
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../edit/virt-edit.pod:216
3159 msgid ""
3160 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3161 "For example to delete root's password you could do:"
3162 msgstr ""
3163
3164 #. type: verbatim
3165 #: ../edit/virt-edit.pod:219
3166 #, no-wrap
3167 msgid ""
3168 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3169 "\n"
3170 msgstr ""
3171
3172 #. type: textblock
3173 #: ../edit/virt-edit.pod:221
3174 msgid ""
3175 "What really happens is that the snippet is evaluated as a Perl expression "
3176 "for each line of the file.  The line, including the final C<\\n>, is passed "
3177 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3178 msgstr ""
3179
3180 #. type: textblock
3181 #: ../edit/virt-edit.pod:226
3182 msgid ""
3183 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3184 "C<apache> user account from the password file you can do:"
3185 msgstr ""
3186
3187 #. type: verbatim
3188 #: ../edit/virt-edit.pod:229
3189 #, no-wrap
3190 msgid ""
3191 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3192 "\n"
3193 msgstr ""
3194
3195 #. type: textblock
3196 #: ../edit/virt-edit.pod:231
3197 msgid ""
3198 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3199 "the end of the file is rather difficult this way since there is no concept "
3200 "of \"last line of the file\" - your expression just doesn't get called "
3201 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3202 "want to do this."
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../edit/virt-edit.pod:237
3207 msgid ""
3208 "The variable C<$lineno> contains the current line number.  As is "
3209 "traditional, the first line in the file is number C<1>."
3210 msgstr ""
3211
3212 #. type: textblock
3213 #: ../edit/virt-edit.pod:240
3214 msgid ""
3215 "The return value from the expression is ignored, but the expression may call "
3216 "C<die> in order to abort the whole program, leaving the original file "
3217 "untouched."
3218 msgstr ""
3219
3220 #. type: textblock
3221 #: ../edit/virt-edit.pod:244
3222 msgid ""
3223 "Remember when matching the end of a line that C<$_> may contain the final C<"
3224 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3225 "newline then neither of these.  Thus to match or substitute some text at the "
3226 "end of a line, use this regular expression:"
3227 msgstr ""
3228
3229 #. type: verbatim
3230 #: ../edit/virt-edit.pod:249
3231 #, no-wrap
3232 msgid ""
3233 " /some text(\\r?\\n)?$/\n"
3234 "\n"
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../edit/virt-edit.pod:251
3239 msgid ""
3240 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3241 "$_> itself (since that would remove all newlines from the file):"
3242 msgstr ""
3243
3244 #. type: verbatim
3245 #: ../edit/virt-edit.pod:255
3246 #, no-wrap
3247 msgid ""
3248 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3249 "\n"
3250 msgstr ""
3251
3252 #. type: =head1
3253 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3254 msgid "WINDOWS PATHS"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../edit/virt-edit.pod:259
3259 msgid ""
3260 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3261 "paths (eg. C<E:\\foo\\bar.txt>)."
3262 msgstr ""
3263
3264 #. type: textblock
3265 #: ../edit/virt-edit.pod:262
3266 msgid "If and only if the guest is running Windows then:"
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../edit/virt-edit.pod:268
3271 msgid ""
3272 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3273 "to the correct filesystem."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../edit/virt-edit.pod:273
3278 msgid ""
3279 "Any backslash (C<\\>) characters in the path are replaced with forward "
3280 "slashes so that libguestfs can process it."
3281 msgstr ""
3282
3283 #. type: textblock
3284 #: ../edit/virt-edit.pod:278
3285 msgid ""
3286 "The path is resolved case insensitively to locate the file that should be "
3287 "edited."
3288 msgstr ""
3289
3290 #. type: textblock
3291 #: ../edit/virt-edit.pod:283
3292 msgid "There are some known shortcomings:"
3293 msgstr ""
3294
3295 #. type: textblock
3296 #: ../edit/virt-edit.pod:289
3297 msgid "Some NTFS symbolic links may not be followed correctly."
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../edit/virt-edit.pod:293
3302 msgid "NTFS junction points that cross filesystems are not followed."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../edit/virt-edit.pod:299
3307 msgid ""
3308 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3309 "C<virt-edit> doesn't work."
3310 msgstr ""
3311
3312 #. type: textblock
3313 #: ../edit/virt-edit.pod:302
3314 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3315 msgstr ""
3316
3317 #. type: verbatim
3318 #: ../edit/virt-edit.pod:304
3319 #, no-wrap
3320 msgid ""
3321 " guestfish --rw -i -d domname edit /file\n"
3322 "\n"
3323 msgstr ""
3324
3325 #. type: textblock
3326 #: ../edit/virt-edit.pod:306
3327 msgid ""
3328 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3329 "path to the file."
3330 msgstr ""
3331
3332 #. type: textblock
3333 #: ../edit/virt-edit.pod:309
3334 msgid ""
3335 "The command above uses libguestfs's guest inspection feature and so does not "
3336 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3337 "disk images that don't contain guests.  To edit a file on a disk image "
3338 "directly, use:"
3339 msgstr ""
3340
3341 #. type: verbatim
3342 #: ../edit/virt-edit.pod:314
3343 #, no-wrap
3344 msgid ""
3345 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3346 "\n"
3347 msgstr ""
3348
3349 #. type: textblock
3350 #: ../edit/virt-edit.pod:316
3351 msgid ""
3352 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3353 "the disk image to edit, and C</file> is the full path to the file."
3354 msgstr ""
3355
3356 #. type: textblock
3357 #: ../edit/virt-edit.pod:320
3358 msgid ""
3359 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3360 "C<write> or C<upload> instead:"
3361 msgstr ""
3362
3363 #. type: verbatim
3364 #: ../edit/virt-edit.pod:323
3365 #, no-wrap
3366 msgid ""
3367 " guestfish --rw -i -d domname touch /newfile\n"
3368 "\n"
3369 msgstr ""
3370
3371 #. type: verbatim
3372 #: ../edit/virt-edit.pod:325
3373 #, no-wrap
3374 msgid ""
3375 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3376 "\n"
3377 msgstr ""
3378
3379 #. type: verbatim
3380 #: ../edit/virt-edit.pod:327
3381 #, no-wrap
3382 msgid ""
3383 " guestfish --rw -i -d domname upload localfile /newfile\n"
3384 "\n"
3385 msgstr ""
3386
3387 #. type: =head1
3388 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3389 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3390 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:95
3391 msgid "ENVIRONMENT VARIABLES"
3392 msgstr ""
3393
3394 #. type: =item
3395 #: ../edit/virt-edit.pod:333
3396 msgid "C<EDITOR>"
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../edit/virt-edit.pod:335
3401 msgid ""
3402 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3403 "\"emacs -nw\">"
3404 msgstr ""
3405
3406 #. type: textblock
3407 #: ../edit/virt-edit.pod:338
3408 msgid "If not set, C<vi> is used."
3409 msgstr ""
3410
3411 #. type: textblock
3412 #: ../edit/virt-edit.pod:356
3413 msgid ""
3414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3415 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3416 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3417 msgstr ""
3418
3419 #. type: textblock
3420 #: ../erlang/examples/guestfs-erlang.pod:5
3421 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3422 msgstr ""
3423
3424 #. type: verbatim
3425 #: ../erlang/examples/guestfs-erlang.pod:9
3426 #, no-wrap
3427 msgid ""
3428 " {ok, G} = guestfs:create(),\n"
3429 " ok = guestfs:add_drive_opts(G, Disk,\n"
3430 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3431 " ok = guestfs:launch(G),\n"
3432 " [Device] = guestfs:list_devices(G),\n"
3433 " ok = guestfs:close(G).\n"
3434 "\n"
3435 msgstr ""
3436
3437 #. type: textblock
3438 #: ../erlang/examples/guestfs-erlang.pod:18
3439 msgid ""
3440 "This manual page documents how to call libguestfs from the Erlang "
3441 "programming language.  This page just documents the differences from the C "
3442 "API and gives some examples.  If you are not familiar with using libguestfs, "
3443 "you also need to read L<guestfs(3)>."
3444 msgstr ""
3445
3446 #. type: =head2
3447 #: ../erlang/examples/guestfs-erlang.pod:23
3448 msgid "OPENING AND CLOSING THE HANDLE"
3449 msgstr ""
3450
3451 #. type: textblock
3452 #: ../erlang/examples/guestfs-erlang.pod:25
3453 msgid ""
3454 "The Erlang bindings are implemented using an external program called C<erl-"
3455 "guestfs>.  This program must be on the current PATH, or else you should "
3456 "specify the full path to the program:"
3457 msgstr ""
3458
3459 #. type: verbatim
3460 #: ../erlang/examples/guestfs-erlang.pod:29
3461 #, no-wrap
3462 msgid ""
3463 " {ok, G} = guestfs:create().\n"
3464 "\n"
3465 msgstr ""
3466
3467 #. type: verbatim
3468 #: ../erlang/examples/guestfs-erlang.pod:31
3469 #, no-wrap
3470 msgid ""
3471 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3472 "\n"
3473 msgstr ""
3474
3475 #. type: textblock
3476 #: ../erlang/examples/guestfs-erlang.pod:33
3477 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3478 msgstr ""
3479
3480 #. type: textblock
3481 #: ../erlang/examples/guestfs-erlang.pod:36
3482 msgid "To close the handle:"
3483 msgstr ""
3484
3485 #. type: verbatim
3486 #: ../erlang/examples/guestfs-erlang.pod:38
3487 #, no-wrap
3488 msgid ""
3489 " ok = guestfs:close(G).\n"
3490 "\n"
3491 msgstr ""
3492
3493 #. type: =head2
3494 #: ../erlang/examples/guestfs-erlang.pod:40
3495 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3496 msgstr ""
3497
3498 #. type: textblock
3499 #: ../erlang/examples/guestfs-erlang.pod:42
3500 msgid ""
3501 "For functions that take optional arguments, the first arguments are the non-"
3502 "optional ones.  The last argument is a list of tuples supplying the "
3503 "remaining optional arguments."
3504 msgstr ""
3505
3506 #. type: verbatim
3507 #: ../erlang/examples/guestfs-erlang.pod:46
3508 #, no-wrap
3509 msgid ""
3510 " ok = guestfs:add_drive_opts(G, Disk,\n"
3511 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3512 "\n"
3513 msgstr ""
3514
3515 #. type: textblock
3516 #: ../erlang/examples/guestfs-erlang.pod:49
3517 msgid "If the last argument would be an empty list, you can also omit it:"
3518 msgstr ""
3519
3520 #. type: verbatim
3521 #: ../erlang/examples/guestfs-erlang.pod:51
3522 #, no-wrap
3523 msgid ""
3524 " ok = guestfs:add_drive_opts(G, Disk).\n"
3525 "\n"
3526 msgstr ""
3527
3528 #. type: =head2
3529 #: ../erlang/examples/guestfs-erlang.pod:53
3530 msgid "RETURN VALUES AND ERRORS"
3531 msgstr ""
3532
3533 #. type: textblock
3534 #: ../erlang/examples/guestfs-erlang.pod:55
3535 msgid ""
3536 "On success, most functions return a C<Result> term (which could be a list, "
3537 "string, tuple etc.).  If there is nothing for the function to return, then "
3538 "the atom C<ok> is returned."
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../erlang/examples/guestfs-erlang.pod:59
3543 msgid "On error, you would see one of the following tuples:"
3544 msgstr ""
3545
3546 #. type: =item
3547 #: ../erlang/examples/guestfs-erlang.pod:63
3548 msgid "C<{error, Msg, Errno}>"
3549 msgstr ""
3550
3551 #. type: textblock
3552 #: ../erlang/examples/guestfs-erlang.pod:65
3553 msgid "This indicates an ordinary error from the function."
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../erlang/examples/guestfs-erlang.pod:67
3558 msgid ""
3559 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3560 "(integer)."
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../erlang/examples/guestfs-erlang.pod:70
3565 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3566 msgstr ""
3567
3568 #. type: =item
3569 #: ../erlang/examples/guestfs-erlang.pod:72
3570 msgid "C<{unknown, Function}>"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../erlang/examples/guestfs-erlang.pod:74
3575 msgid ""
3576 "This indicates that the function you called is not known.  Generally this "
3577 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3578 "which you should not do."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../erlang/examples/guestfs-erlang.pod:78
3583 msgid "C<Function> is the name of the unknown function."
3584 msgstr ""
3585
3586 #. type: =item
3587 #: ../erlang/examples/guestfs-erlang.pod:80
3588 msgid "C<{unknownarg, Arg}>"
3589 msgstr ""
3590
3591 #. type: textblock
3592 #: ../erlang/examples/guestfs-erlang.pod:82
3593 msgid ""
3594 "This indicates that you called a function with optional arguments, with an "
3595 "unknown argument name."
3596 msgstr ""
3597
3598 #. type: textblock
3599 #: ../erlang/examples/guestfs-erlang.pod:85
3600 msgid "C<Arg> is the name of the unknown argument."
3601 msgstr ""
3602
3603 #. type: =head1
3604 #: ../erlang/examples/guestfs-erlang.pod:89
3605 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3606 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3607 #: ../python/examples/guestfs-python.pod:34
3608 #: ../ruby/examples/guestfs-ruby.pod:28
3609 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3610 msgstr ""
3611
3612 #. type: textblock
3613 #: ../erlang/examples/guestfs-erlang.pod:91
3614 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3615 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3616 #: ../python/examples/guestfs-python.pod:36
3617 #: ../ruby/examples/guestfs-ruby.pod:30
3618 msgid "@EXAMPLE1@"
3619 msgstr ""
3620
3621 #. type: =head1
3622 #: ../erlang/examples/guestfs-erlang.pod:93
3623 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3624 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3625 #: ../python/examples/guestfs-python.pod:38
3626 #: ../ruby/examples/guestfs-ruby.pod:32
3627 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3628 msgstr ""
3629
3630 #. type: textblock
3631 #: ../erlang/examples/guestfs-erlang.pod:95
3632 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3633 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3634 #: ../python/examples/guestfs-python.pod:40
3635 #: ../ruby/examples/guestfs-ruby.pod:34
3636 msgid "@EXAMPLE2@"
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../erlang/examples/guestfs-erlang.pod:99
3641 msgid ""
3642 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3643 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3644 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
3645 msgstr ""
3646
3647 #. type: =head1
3648 #: ../erlang/examples/guestfs-erlang.pod:110
3649 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3650 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:60
3651 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3652 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3653 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3654 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3655 #: ../python/examples/guestfs-python.pod:54
3656 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3255
3657 #: ../test-tool/libguestfs-test-tool.pod:106
3658 msgid "AUTHORS"
3659 msgstr ""
3660
3661 #. type: textblock
3662 #: ../erlang/examples/guestfs-erlang.pod:112
3663 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3664 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:62
3665 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3666 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3667 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3668 #: ../perl/examples/guestfs-perl.pod:54
3669 #: ../python/examples/guestfs-python.pod:56
3670 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3257
3671 #: ../test-tool/libguestfs-test-tool.pod:108
3672 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3673 msgstr ""
3674
3675 #. type: textblock
3676 #: ../erlang/examples/guestfs-erlang.pod:116
3677 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3678 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3679 msgstr ""
3680
3681 #. type: textblock
3682 #: ../erlang/examples/guestfs-erlang.pod:118
3683 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3684 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3685 #: ../perl/examples/guestfs-perl.pod:60
3686 #: ../python/examples/guestfs-python.pod:62
3687 #: ../ruby/examples/guestfs-ruby.pod:56
3688 msgid ""
3689 "The examples in this manual page may be freely copied, modified and "
3690 "distributed without any restrictions."
3691 msgstr ""
3692
3693 #. type: textblock
3694 #: ../erlang/examples/guestfs-erlang.pod:121
3695 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3696 #: ../java/examples/guestfs-java.pod:69
3697 #: ../ocaml/examples/guestfs-ocaml.pod:102
3698 #: ../perl/examples/guestfs-perl.pod:63
3699 #: ../python/examples/guestfs-python.pod:65
3700 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3264
3701 msgid ""
3702 "This library is free software; you can redistribute it and/or modify it "
3703 "under the terms of the GNU Lesser General Public License as published by the "
3704 "Free Software Foundation; either version 2 of the License, or (at your "
3705 "option) any later version."
3706 msgstr ""
3707
3708 #. type: textblock
3709 #: ../erlang/examples/guestfs-erlang.pod:126
3710 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3711 #: ../java/examples/guestfs-java.pod:74
3712 #: ../ocaml/examples/guestfs-ocaml.pod:107
3713 #: ../perl/examples/guestfs-perl.pod:68
3714 #: ../python/examples/guestfs-python.pod:70
3715 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3269
3716 msgid ""
3717 "This library is distributed in the hope that it will be useful, but WITHOUT "
3718 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3719 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3720 "for more details."
3721 msgstr ""
3722
3723 #. type: textblock
3724 #: ../erlang/examples/guestfs-erlang.pod:131
3725 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3726 #: ../java/examples/guestfs-java.pod:79
3727 #: ../ocaml/examples/guestfs-ocaml.pod:112
3728 #: ../perl/examples/guestfs-perl.pod:73
3729 #: ../python/examples/guestfs-python.pod:75
3730 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3274
3731 msgid ""
3732 "You should have received a copy of the GNU Lesser General Public License "
3733 "along with this library; if not, write to the Free Software Foundation, "
3734 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3735 msgstr ""
3736
3737 #. type: textblock
3738 #: ../examples/guestfs-examples.pod:5
3739 msgid "guestfs-examples - Examples of using libguestfs from C"
3740 msgstr ""
3741
3742 #. type: verbatim
3743 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3744 #, no-wrap
3745 msgid ""
3746 " #include <guestfs.h>\n"
3747 " \n"
3748 msgstr ""
3749
3750 #. type: verbatim
3751 #: ../examples/guestfs-examples.pod:11
3752 #, no-wrap
3753 msgid ""
3754 " guestfs_h *g = guestfs_create ();\n"
3755 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3756 " guestfs_launch (g);\n"
3757 "\n"
3758 msgstr ""
3759
3760 #. type: verbatim
3761 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3762 #, no-wrap
3763 msgid ""
3764 " cc prog.c -o prog -lguestfs\n"
3765 "or:\n"
3766 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3767 "\n"
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../examples/guestfs-examples.pod:21
3772 msgid ""
3773 "This manual page contains examples of calling libguestfs from the C "
3774 "programming language.  If you are not familiar with using libguestfs, you "
3775 "also need to read L<guestfs(3)>."
3776 msgstr ""
3777
3778 #. type: textblock
3779 #: ../examples/guestfs-examples.pod:35
3780 msgid ""
3781 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3782 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3783 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3788 #: ../python/examples/guestfs-python.pod:60
3789 #: ../ruby/examples/guestfs-ruby.pod:54
3790 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3791 msgstr ""
3792
3793 #. type: =end
3794 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3795 msgid "comment"
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../examples/guestfs-recipes.pod:5
3800 msgid ""
3801 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3802 "here.  The only way which works for both sorts of output is to just write "
3803 "the URL directly.  Do NOT use L<...> for URLs."
3804 msgstr ""
3805
3806 #. type: textblock
3807 #: ../examples/guestfs-recipes.pod:9
3808 msgid ""
3809 "We break with tradition here and don't use ALL CAPS for the section "
3810 "headings, as this makes them much easier to read."
3811 msgstr ""
3812
3813 #. type: textblock
3814 #: ../examples/guestfs-recipes.pod:16
3815 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3816 msgstr ""
3817
3818 #. type: textblock
3819 #: ../examples/guestfs-recipes.pod:20
3820 msgid ""
3821 "This page contains recipes for and links to things you can do using "
3822 "libguestfs, L<guestfish(1)> and the virt tools."
3823 msgstr ""
3824
3825 #. type: =head1
3826 #: ../examples/guestfs-recipes.pod:23
3827 msgid "Audit a virtual machine for setuid files"
3828 msgstr ""
3829
3830 #. type: textblock
3831 #: ../examples/guestfs-recipes.pod:25
3832 msgid ""
3833 "The link below contains a small program which can be used to audit a Linux "
3834 "virtual machine to see what setuid and setgid files it contains."
3835 msgstr ""
3836
3837 #. type: textblock
3838 #: ../examples/guestfs-recipes.pod:28
3839 msgid ""
3840 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3841 "files/#content"
3842 msgstr ""
3843
3844 #. type: =head1
3845 #: ../examples/guestfs-recipes.pod:30
3846 msgid "Change the background image in a Windows XP VM"
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../examples/guestfs-recipes.pod:32
3851 msgid ""
3852 "The links below explain how to use L<guestfish(1)> to change the background "
3853 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3854 "be substantially different for each version of Windows."
3855 msgstr ""
3856
3857 #. type: textblock
3858 #: ../examples/guestfs-recipes.pod:37
3859 msgid ""
3860 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3861 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3862 msgstr ""
3863
3864 #. type: =head1
3865 #: ../examples/guestfs-recipes.pod:40
3866 msgid "Cloning a virtual machine (Linux)"
3867 msgstr ""
3868
3869 #. type: textblock
3870 #: ../examples/guestfs-recipes.pod:42
3871 msgid ""
3872 "The guestfish technique described in the link below works well for most "
3873 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3874 "slightly."
3875 msgstr ""
3876
3877 #. type: textblock
3878 #: ../examples/guestfs-recipes.pod:46
3879 msgid ""
3880 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3881 "vm/#content"
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../examples/guestfs-recipes.pod:48
3886 msgid ""
3887 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3888 "discussion."
3889 msgstr ""
3890
3891 #. type: textblock
3892 #: ../examples/guestfs-recipes.pod:51
3893 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3894 msgstr ""
3895
3896 #. type: =head1
3897 #: ../examples/guestfs-recipes.pod:53
3898 msgid "Cloning a virtual machine (Windows)"
3899 msgstr ""
3900
3901 #. type: textblock
3902 #: ../examples/guestfs-recipes.pod:55
3903 msgid ""
3904 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3905 "straightforward.  Currently there is code in the Aeolus Oz project which "
3906 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3907 "we may add sysprepping ability."
3908 msgstr ""
3909
3910 #. type: textblock
3911 #: ../examples/guestfs-recipes.pod:60
3912 msgid ""
3913 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3914 "list/2011-May/msg00019.html"
3915 msgstr ""
3916
3917 #. type: =head1
3918 #: ../examples/guestfs-recipes.pod:63
3919 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../examples/guestfs-recipes.pod:65
3924 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3925 msgstr ""
3926
3927 #. type: verbatim
3928 #: ../examples/guestfs-recipes.pod:67
3929 #, no-wrap
3930 msgid ""
3931 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3932 "\n"
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../examples/guestfs-recipes.pod:69
3937 msgid "To export just a subdirectory, eg. C</files>, do:"
3938 msgstr ""
3939
3940 #. type: verbatim
3941 #: ../examples/guestfs-recipes.pod:71
3942 #, no-wrap
3943 msgid ""
3944 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3945 "\n"
3946 msgstr ""
3947
3948 #. type: =head1
3949 #: ../examples/guestfs-recipes.pod:73
3950 msgid "Create empty disk images"
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../examples/guestfs-recipes.pod:75
3955 msgid ""
3956 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3957 "The useful guide below explains the options available."
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../examples/guestfs-recipes.pod:78
3962 msgid ""
3963 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3964 "#content"
3965 msgstr ""
3966
3967 #. type: =head1
3968 #: ../examples/guestfs-recipes.pod:80
3969 msgid "Dump raw filesystem content from inside a disk image or VM"
3970 msgstr ""
3971
3972 #. type: textblock
3973 #: ../examples/guestfs-recipes.pod:82
3974 msgid ""
3975 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3976 "filesystem content from any filesystem in a disk image or a VM (even one "
3977 "which is encrypted or buried inside an LV):"
3978 msgstr ""
3979
3980 #. type: verbatim
3981 #: ../examples/guestfs-recipes.pod:86
3982 #, no-wrap
3983 msgid ""
3984 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3985 "\n"
3986 msgstr ""
3987
3988 #. type: verbatim
3989 #: ../examples/guestfs-recipes.pod:88
3990 #, no-wrap
3991 msgid ""
3992 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3993 "\n"
3994 msgstr ""
3995
3996 #. type: textblock
3997 #: ../examples/guestfs-recipes.pod:90
3998 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3999 msgstr ""
4000
4001 #. type: =head1
4002 #: ../examples/guestfs-recipes.pod:92
4003 msgid "Edit grub configuration in a VM"
4004 msgstr ""
4005
4006 #. type: textblock
4007 #: ../examples/guestfs-recipes.pod:94
4008 msgid "You can use this to:"
4009 msgstr ""
4010
4011 #. type: textblock
4012 #: ../examples/guestfs-recipes.pod:100
4013 msgid "Fix a virtual machine that does not boot."
4014 msgstr ""
4015
4016 #. type: textblock
4017 #: ../examples/guestfs-recipes.pod:104
4018 msgid "Change which kernel is used to boot the VM."
4019 msgstr ""
4020
4021 #. type: textblock
4022 #: ../examples/guestfs-recipes.pod:108
4023 msgid "Change kernel command line options."
4024 msgstr ""
4025
4026 #. type: textblock
4027 #: ../examples/guestfs-recipes.pod:112
4028 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4029 msgstr ""
4030
4031 #. type: verbatim
4032 #: ../examples/guestfs-recipes.pod:114
4033 #, no-wrap
4034 msgid ""
4035 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4036 "\n"
4037 msgstr ""
4038
4039 #. type: textblock
4040 #: ../examples/guestfs-recipes.pod:116
4041 msgid ""
4042 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4043 "this:"
4044 msgstr ""
4045
4046 #. type: verbatim
4047 #: ../examples/guestfs-recipes.pod:119
4048 #, no-wrap
4049 msgid ""
4050 " virt-rescue -d BrokenGuest\n"
4051 "\n"
4052 msgstr ""
4053
4054 #. type: =head1
4055 #: ../examples/guestfs-recipes.pod:121
4056 msgid "Export any directory from a VM"
4057 msgstr ""
4058
4059 #. type: textblock
4060 #: ../examples/guestfs-recipes.pod:123
4061 msgid ""
4062 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4063 msgstr ""
4064
4065 #. type: verbatim
4066 #: ../examples/guestfs-recipes.pod:126
4067 #, no-wrap
4068 msgid ""
4069 " virt-copy-out -d Guest /home .\n"
4070 "\n"
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4075 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4076 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4077 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
4078 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
4079 #: ../tools/virt-win-reg.pl:706
4080 msgid "Notes:"
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../examples/guestfs-recipes.pod:134
4085 msgid ""
4086 "The final dot of the command is not a printing error.  It means we want to "
4087 "copy out to the current directory."
4088 msgstr ""
4089
4090 #. type: textblock
4091 #: ../examples/guestfs-recipes.pod:139
4092 msgid "This creates a directory called C<home> under the current directory."
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../examples/guestfs-recipes.pod:143
4097 msgid ""
4098 "If the guest is a Windows guest then you can use drive letters and "
4099 "backslashes, but you must prefix the path with C<win:> and quote it to "
4100 "protect it from the shell, like this:"
4101 msgstr ""
4102
4103 #. type: verbatim
4104 #: ../examples/guestfs-recipes.pod:147
4105 #, no-wrap
4106 msgid ""
4107 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4108 "\n"
4109 msgstr ""
4110
4111 #. type: textblock
4112 #: ../examples/guestfs-recipes.pod:149
4113 msgid "To get the output as a compressed tarball, do:"
4114 msgstr ""
4115
4116 #. type: verbatim
4117 #: ../examples/guestfs-recipes.pod:151
4118 #, no-wrap
4119 msgid ""
4120 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../examples/guestfs-recipes.pod:153
4126 msgid ""
4127 "Although it sounds tempting, this is usually not a reliable way to get a "
4128 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
4129 "org/FAQ.html#backup"
4130 msgstr ""
4131
4132 #. type: =head1
4133 #: ../examples/guestfs-recipes.pod:157
4134 msgid "Find out which user is using the most space"
4135 msgstr ""
4136
4137 #. type: textblock
4138 #: ../examples/guestfs-recipes.pod:159
4139 msgid ""
4140 "This simple script examines a Linux guest to find out which user is using "
4141 "the most space in their home directory:"
4142 msgstr ""
4143
4144 #. type: verbatim
4145 #: ../examples/guestfs-recipes.pod:162
4146 #, no-wrap
4147 msgid ""
4148 " #!/bin/sh -\n"
4149 " \n"
4150 msgstr ""
4151
4152 #. type: verbatim
4153 #: ../examples/guestfs-recipes.pod:164
4154 #, no-wrap
4155 msgid ""
4156 " set -e\n"
4157 " \n"
4158 msgstr ""
4159
4160 #. type: verbatim
4161 #: ../examples/guestfs-recipes.pod:166
4162 #, no-wrap
4163 msgid ""
4164 " vm=\"$1\"\n"
4165 " dir=/home\n"
4166 " \n"
4167 msgstr ""
4168
4169 #. type: verbatim
4170 #: ../examples/guestfs-recipes.pod:169
4171 #, no-wrap
4172 msgid ""
4173 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4174 " \n"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../examples/guestfs-recipes.pod:171
4179 #, no-wrap
4180 msgid ""
4181 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4182 "     echo -n \"$dir/$d\"\n"
4183 "     echo -ne '\\t'\n"
4184 "     guestfish --remote du \"$dir/$d\";\n"
4185 " done | sort -nr -k 2\n"
4186 " \n"
4187 msgstr ""
4188
4189 #. type: verbatim
4190 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4191 #, no-wrap
4192 msgid ""
4193 " guestfish --remote exit\n"
4194 "\n"
4195 msgstr ""
4196
4197 #. type: =head1
4198 #: ../examples/guestfs-recipes.pod:179
4199 msgid "Get DHCP address from a VM"
4200 msgstr ""
4201
4202 #. type: textblock
4203 #: ../examples/guestfs-recipes.pod:181
4204 msgid ""
4205 "The link below explains the many different possible techniques for getting "
4206 "the last assigned DHCP address of a virtual machine."
4207 msgstr ""
4208
4209 #. type: textblock
4210 #: ../examples/guestfs-recipes.pod:184
4211 msgid ""
4212 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4213 "a-virtual-machine-disk-image/#content"
4214 msgstr ""
4215
4216 #. type: textblock
4217 #: ../examples/guestfs-recipes.pod:186
4218 msgid ""
4219 "In the libguestfs source examples directory you will find the latest version "
4220 "of the C<virt-dhcp-address.c> program."
4221 msgstr ""
4222
4223 #. type: =head1
4224 #: ../examples/guestfs-recipes.pod:189
4225 msgid "Get the operating system product name string"
4226 msgstr ""
4227
4228 #. type: textblock
4229 #: ../examples/guestfs-recipes.pod:191
4230 msgid "Save the following script into a file called C<product-name.sh>:"
4231 msgstr ""
4232
4233 #. type: verbatim
4234 #: ../examples/guestfs-recipes.pod:193
4235 #, no-wrap
4236 msgid ""
4237 " #!/bin/sh -\n"
4238 " set -e\n"
4239 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4240 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4241 " guestfish --remote inspect-get-product-name \"$root\"\n"
4242 " guestfish --remote exit\n"
4243 "\n"
4244 msgstr ""
4245
4246 #. type: textblock
4247 #: ../examples/guestfs-recipes.pod:200
4248 msgid "Make the script executable and run it on a named guest:"
4249 msgstr ""
4250
4251 #. type: verbatim
4252 #: ../examples/guestfs-recipes.pod:202
4253 #, no-wrap
4254 msgid ""
4255 " # product-name.sh RHEL60x64\n"
4256 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4257 "\n"
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../examples/guestfs-recipes.pod:205
4262 msgid ""
4263 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4264 "C<xpath> command line tool or from your favourite programming language:"
4265 msgstr ""
4266
4267 #. type: verbatim
4268 #: ../examples/guestfs-recipes.pod:209
4269 #, no-wrap
4270 msgid ""
4271 " # virt-inspector RHEL60x64 > xml\n"
4272 " # xpath '//product_name' < xml\n"
4273 " Found 1 nodes:\n"
4274 " -- NODE --\n"
4275 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4276 "\n"
4277 msgstr ""
4278
4279 #. type: =head1
4280 #: ../examples/guestfs-recipes.pod:215
4281 msgid "Get the default boot kernel for a Linux VM"
4282 msgstr ""
4283
4284 #. type: textblock
4285 #: ../examples/guestfs-recipes.pod:217
4286 msgid ""
4287 "The link below contains a program to print the default boot kernel for a "
4288 "Linux VM."
4289 msgstr ""
4290
4291 #. type: textblock
4292 #: ../examples/guestfs-recipes.pod:220
4293 msgid ""
4294 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4295 "kernel-for-a-vm/#content"
4296 msgstr ""
4297
4298 #. type: textblock
4299 #: ../examples/guestfs-recipes.pod:222
4300 msgid ""
4301 "It uses Augeas, and the technique is generally applicable for many different "
4302 "tasks, such as:"
4303 msgstr ""
4304
4305 #. type: textblock
4306 #: ../examples/guestfs-recipes.pod:229
4307 msgid "listing the user accounts in the guest"
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../examples/guestfs-recipes.pod:233
4312 msgid "what repositories is it configured to use"
4313 msgstr ""
4314
4315 #. type: textblock
4316 #: ../examples/guestfs-recipes.pod:237
4317 msgid "what NTP servers does it connect to"
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../examples/guestfs-recipes.pod:241
4322 msgid "what were the boot messages last time it booted"
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../examples/guestfs-recipes.pod:245
4327 msgid "listing who was logged in recently"
4328 msgstr ""
4329
4330 #. type: textblock
4331 #: ../examples/guestfs-recipes.pod:249
4332 msgid "http://augeas.net/"
4333 msgstr ""
4334
4335 #. type: =head1
4336 #: ../examples/guestfs-recipes.pod:251
4337 msgid "Install RPMs in a guest"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../examples/guestfs-recipes.pod:253
4342 msgid ""
4343 "The link below contains a method to install RPMs in a guest.  In fact the "
4344 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4345 "installs them next time the guest is booted.  You could use this technique "
4346 "to install vital security updates in an offline guest."
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../examples/guestfs-recipes.pod:259
4351 msgid ""
4352 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4353 msgstr ""
4354
4355 #. type: =head1
4356 #: ../examples/guestfs-recipes.pod:261
4357 msgid "List applications installed in a VM"
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../examples/guestfs-recipes.pod:263
4362 msgid "Save the following to a file C<list-apps.sh>:"
4363 msgstr ""
4364
4365 #. type: verbatim
4366 #: ../examples/guestfs-recipes.pod:265
4367 #, no-wrap
4368 msgid ""
4369 " #!/bin/sh -\n"
4370 " set -e\n"
4371 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4372 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4373 " guestfish --remote inspect-list-applications \"$root\"\n"
4374 " guestfish --remote exit\n"
4375 "\n"
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../examples/guestfs-recipes.pod:272
4380 msgid ""
4381 "Make the file executable and then you can run it on any named virtual "
4382 "machine:"
4383 msgstr ""
4384
4385 #. type: verbatim
4386 #: ../examples/guestfs-recipes.pod:275
4387 #, no-wrap
4388 msgid ""
4389 " # list-apps.sh WinGuest\n"
4390 " [0] = {\n"
4391 "   app_name: Mozilla Firefox (3.6.12)\n"
4392 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4393 "   app_epoch: 0\n"
4394 "   app_version: 3.6.12 (en-GB)\n"
4395 "   app_release:\n"
4396 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4397 "   app_trans_path:\n"
4398 "   app_publisher: Mozilla\n"
4399 "   app_url: http://www.mozilla.com/en-GB/\n"
4400 "   app_source_package:\n"
4401 "   app_summary:\n"
4402 "   app_description: Mozilla Firefox\n"
4403 " }\n"
4404 " [1] = {\n"
4405 "   app_name: VLC media player\n"
4406 "   app_display_name: VLC media player 1.1.5\n"
4407 "   app_epoch: 0\n"
4408 "   app_version: 1.1.5\n"
4409 "   app_release:\n"
4410 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4411 "   app_trans_path:\n"
4412 "   app_publisher: VideoLAN\n"
4413 "   app_url: http://www.videolan.org/\n"
4414 "   app_source_package:\n"
4415 "   app_summary:\n"
4416 "   app_description:\n"
4417 " }\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../examples/guestfs-recipes.pod:305
4423 msgid ""
4424 "If you want to run the script on disk images (instead of libvirt virtual "
4425 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4426 ">."
4427 msgstr ""
4428
4429 #. type: =head1
4430 #: ../examples/guestfs-recipes.pod:309
4431 msgid "List files and directories in a VM"
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../examples/guestfs-recipes.pod:311
4436 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4437 msgstr ""
4438
4439 #. type: verbatim
4440 #: ../examples/guestfs-recipes.pod:313
4441 #, no-wrap
4442 msgid ""
4443 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4444 "\n"
4445 msgstr ""
4446
4447 #. type: =head1
4448 #: ../examples/guestfs-recipes.pod:315
4449 msgid "List services in a Windows VM"
4450 msgstr ""
4451
4452 #. type: textblock
4453 #: ../examples/guestfs-recipes.pod:317
4454 msgid ""
4455 "The link below contains a script that can be used to list out the services "
4456 "from a Windows VM, and whether those services run at boot time or are loaded "
4457 "on demand."
4458 msgstr ""
4459
4460 #. type: textblock
4461 #: ../examples/guestfs-recipes.pod:321
4462 msgid ""
4463 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4464 "#content"
4465 msgstr ""
4466
4467 #. type: =head1
4468 #: ../examples/guestfs-recipes.pod:323
4469 msgid "Make a disk image sparse"
4470 msgstr ""
4471
4472 #. type: textblock
4473 #: ../examples/guestfs-recipes.pod:325
4474 msgid ""
4475 "The link below contains some guides for making a disk image sparse (or "
4476 "reintroducing sparseness)."
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../examples/guestfs-recipes.pod:328
4481 msgid ""
4482 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4483 msgstr ""
4484
4485 #. type: =head1
4486 #: ../examples/guestfs-recipes.pod:330
4487 msgid "Monitor disk usage over time"
4488 msgstr ""
4489
4490 #. type: textblock
4491 #: ../examples/guestfs-recipes.pod:332
4492 msgid ""
4493 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4494 "The link below contains a guide."
4495 msgstr ""
4496
4497 #. type: textblock
4498 #: ../examples/guestfs-recipes.pod:335
4499 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4500 msgstr ""
4501
4502 #. type: =head1
4503 #: ../examples/guestfs-recipes.pod:337
4504 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4505 msgstr ""
4506
4507 #. type: textblock
4508 #: ../examples/guestfs-recipes.pod:339
4509 msgid ""
4510 "L<guestfish(1)> plus the tools described in the link below can be used to "
4511 "read out the Windows Event Log from any virtual machine running Windows "
4512 "Vista or a later version."
4513 msgstr ""
4514
4515 #. type: textblock
4516 #: ../examples/guestfs-recipes.pod:343
4517 msgid ""
4518 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4519 "guestfish/#content"
4520 msgstr ""
4521
4522 #. type: =head1
4523 #: ../examples/guestfs-recipes.pod:345
4524 msgid "Remove root password (Linux)"
4525 msgstr ""
4526
4527 #. type: textblock
4528 #: ../examples/guestfs-recipes.pod:347
4529 msgid ""
4530 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4531 "files.  One use is to remove the root password from a Linux guest:"
4532 msgstr ""
4533
4534 #. type: verbatim
4535 #: ../examples/guestfs-recipes.pod:350
4536 #, no-wrap
4537 msgid ""
4538 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4539 "\n"
4540 msgstr ""
4541
4542 #. type: =head1
4543 #: ../examples/guestfs-recipes.pod:352
4544 msgid "Remove Administrator password (Windows)"
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../examples/guestfs-recipes.pod:354
4549 msgid ""
4550 "The link below contains one technique for removing the Administrator "
4551 "password from a Windows VM, or to be more precise, it gives you a command "
4552 "prompt the next time you log in which you can use to bypass any security:"
4553 msgstr ""
4554
4555 #. type: textblock
4556 #: ../examples/guestfs-recipes.pod:359
4557 msgid ""
4558 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4559 "administrator-password-with-guestfish/"
4560 msgstr ""
4561
4562 #. type: =head1
4563 #: ../examples/guestfs-recipes.pod:361
4564 msgid "Unpack a live CD"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../examples/guestfs-recipes.pod:363
4569 msgid ""
4570 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4571 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4572 "layers, as outlined in the guide below."
4573 msgstr ""
4574
4575 #. type: textblock
4576 #: ../examples/guestfs-recipes.pod:367
4577 msgid ""
4578 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4579 "cd/#content"
4580 msgstr ""
4581
4582 #. type: =head1
4583 #: ../examples/guestfs-recipes.pod:369
4584 msgid "Uploading and downloading files"
4585 msgstr ""
4586
4587 #. type: textblock
4588 #: ../examples/guestfs-recipes.pod:371
4589 msgid ""
4590 "The link below contains general tips on uploading (copying in)  and "
4591 "downloading (copying out) files from VMs."
4592 msgstr ""
4593
4594 #. type: textblock
4595 #: ../examples/guestfs-recipes.pod:374
4596 msgid ""
4597 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4598 msgstr ""
4599
4600 #. type: =head1
4601 #: ../examples/guestfs-recipes.pod:376
4602 msgid "Use libguestfs tools on VMware ESX guests"
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../examples/guestfs-recipes.pod:378
4607 msgid ""
4608 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4609 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../examples/guestfs-recipes.pod:382
4614 msgid ""
4615 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4616 "guests/#content"
4617 msgstr ""
4618
4619 #. type: textblock
4620 #: ../examples/guestfs-recipes.pod:386
4621 msgid ""
4622 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4623 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4624 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4625 msgstr ""
4626
4627 #. type: textblock
4628 #: ../examples/guestfs-recipes.pod:403
4629 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4630 msgstr ""
4631
4632 #. type: =head2
4633 #: ../fish/guestfish-actions.pod:1
4634 msgid "add-cdrom"
4635 msgstr ""
4636
4637 #. type: verbatim
4638 #: ../fish/guestfish-actions.pod:3
4639 #, no-wrap
4640 msgid ""
4641 " add-cdrom filename\n"
4642 "\n"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4647 msgid "This function adds a virtual CD-ROM disk image to the guest."
4648 msgstr ""
4649
4650 #. type: textblock
4651 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4652 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4653 msgstr ""
4654
4655 #. type: textblock
4656 #: ../fish/guestfish-actions.pod:15
4657 msgid ""
4658 "This call checks for the existence of C<filename>.  This stops you from "
4659 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4660 "and C<http:> URLs.  To specify those, use the general L</config> call "
4661 "instead."
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../fish/guestfish-actions.pod:22
4666 msgid ""
4667 "If you just want to add an ISO file (often you use this as an efficient way "
4668 "to transfer large files into the guest), then you should probably use L</add-"
4669 "drive-ro> instead."
4670 msgstr ""
4671
4672 #. type: textblock
4673 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4674 #: ../fish/guestfish-actions.pod:177
4675 msgid ""
4676 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4677 "instead."
4678 msgstr ""
4679
4680 #. type: textblock
4681 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4682 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4683 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4684 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
4685 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4686 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4687 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4688 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4689 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4690 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
4691 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
4692 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
4693 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
4694 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
4695 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
4696 #: ../src/guestfs-actions.pod:8040
4697 msgid ""
4698 "Deprecated functions will not be removed from the API, but the fact that "
4699 "they are deprecated indicates that there are problems with correct use of "
4700 "these functions."
4701 msgstr ""
4702
4703 #. type: =head2
4704 #: ../fish/guestfish-actions.pod:35
4705 msgid "add-domain"
4706 msgstr ""
4707
4708 #. type: =head2
4709 #: ../fish/guestfish-actions.pod:37
4710 msgid "domain"
4711 msgstr ""
4712
4713 #. type: verbatim
4714 #: ../fish/guestfish-actions.pod:39
4715 #, no-wrap
4716 msgid ""
4717 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4718 "\n"
4719 msgstr ""
4720
4721 #. type: textblock
4722 #: ../fish/guestfish-actions.pod:41
4723 msgid ""
4724 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4725 "It works by connecting to libvirt, requesting the domain and domain XML from "
4726 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4731 msgid ""
4732 "The number of disks added is returned.  This operation is atomic: if an "
4733 "error is returned, then no disks are added."
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4738 msgid ""
4739 "This function does some minimal checks to make sure the libvirt domain is "
4740 "not running (unless C<readonly> is true).  In a future version we will try "
4741 "to acquire the libvirt lock on each disk."
4742 msgstr ""
4743
4744 #. type: textblock
4745 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4746 msgid ""
4747 "Disks must be accessible locally.  This often means that adding disks from a "
4748 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4749 "unless those disks are accessible via the same device path locally too."
4750 msgstr ""
4751
4752 #. type: textblock
4753 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4754 msgid ""
4755 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4756 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4757 "libvirt URI (or one set through an environment variable, see the libvirt "
4758 "documentation for full details)."
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4763 msgid ""
4764 "The optional C<live> flag controls whether this call will try to connect to "
4765 "a running virtual machine C<guestfsd> process if it sees a suitable "
4766 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4767 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4768 "DAEMONS> for more information."
4769 msgstr ""
4770
4771 #. type: textblock
4772 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4773 msgid ""
4774 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4775 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4776 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4777 "as usual."
4778 msgstr ""
4779
4780 #. type: textblock
4781 #: ../fish/guestfish-actions.pod:76
4782 msgid ""
4783 "The other optional parameters are passed directly through to L</add-drive-"
4784 "opts>."
4785 msgstr ""
4786
4787 #. type: textblock
4788 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4789 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4790 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4791 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4792 #: ../fish/guestfish-actions.pod:3504
4793 msgid ""
4794 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4795 msgstr ""
4796
4797 #. type: =head2
4798 #: ../fish/guestfish-actions.pod:81
4799 msgid "add-drive"
4800 msgstr ""
4801
4802 #. type: verbatim
4803 #: ../fish/guestfish-actions.pod:83
4804 #, no-wrap
4805 msgid ""
4806 " add-drive filename\n"
4807 "\n"
4808 msgstr ""
4809
4810 #. type: textblock
4811 #: ../fish/guestfish-actions.pod:85
4812 msgid ""
4813 "This function is the equivalent of calling L</add-drive-opts> with no "
4814 "optional parameters, so the disk is added writable, with the format being "
4815 "detected automatically."
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../fish/guestfish-actions.pod:89
4820 msgid ""
4821 "Automatic detection of the format opens you up to a potential security hole "
4822 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4823 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4824 "you should think about replacing calls to this function with calls to L</add-"
4825 "drive-opts>, and specifying the format."
4826 msgstr ""
4827
4828 #. type: =head2
4829 #: ../fish/guestfish-actions.pod:96
4830 msgid "add-drive-opts"
4831 msgstr ""
4832
4833 #. type: =head2
4834 #: ../fish/guestfish-actions.pod:98
4835 msgid "add"
4836 msgstr ""
4837
4838 #. type: verbatim
4839 #: ../fish/guestfish-actions.pod:100
4840 #, no-wrap
4841 msgid ""
4842 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4843 "\n"
4844 msgstr ""
4845
4846 #. type: textblock
4847 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4848 msgid ""
4849 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4850 "The first time you call this function, the disk appears as C</dev/sda>, the "
4851 "second time as C</dev/sdb>, and so on."
4852 msgstr ""
4853
4854 #. type: textblock
4855 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4856 msgid ""
4857 "You don't necessarily need to be root when using libguestfs.  However you "
4858 "obviously do need sufficient permissions to access the filename for whatever "
4859 "operations you want to perform (ie. read access if you just want to read the "
4860 "image or write access if you want to modify the image)."
4861 msgstr ""
4862
4863 #. type: textblock
4864 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4865 msgid "This call checks that C<filename> exists."
4866 msgstr ""
4867
4868 #. type: textblock
4869 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4870 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
4871 msgid "The optional arguments are:"
4872 msgstr ""
4873
4874 #. type: =item
4875 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4876 msgid "C<readonly>"
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4881 msgid ""
4882 "If true then the image is treated as read-only.  Writes are still allowed, "
4883 "but they are stored in a temporary snapshot overlay which is discarded at "
4884 "the end.  The disk that you add is not modified."
4885 msgstr ""
4886
4887 #. type: =item
4888 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4889 msgid "C<format>"
4890 msgstr ""
4891
4892 #. type: textblock
4893 #: ../fish/guestfish-actions.pod:127
4894 msgid ""
4895 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4896 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4897 "include C<raw> and C<qcow2>."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4902 msgid ""
4903 "Automatic detection of the format opens you up to a potential security hole "
4904 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4905 "RHBZ#642934.  Specifying the format closes this security hole."
4906 msgstr ""
4907
4908 #. type: =item
4909 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4910 msgid "C<iface>"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:138
4915 msgid ""
4916 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4917 "add-drive-with-if> call (q.v.)"
4918 msgstr ""
4919
4920 #. type: =head2
4921 #: ../fish/guestfish-actions.pod:145
4922 msgid "add-drive-ro"
4923 msgstr ""
4924
4925 #. type: =head2
4926 #: ../fish/guestfish-actions.pod:147
4927 msgid "add-ro"
4928 msgstr ""
4929
4930 #. type: verbatim
4931 #: ../fish/guestfish-actions.pod:149
4932 #, no-wrap
4933 msgid ""
4934 " add-drive-ro filename\n"
4935 "\n"
4936 msgstr ""
4937
4938 #. type: textblock
4939 #: ../fish/guestfish-actions.pod:151
4940 msgid ""
4941 "This function is the equivalent of calling L</add-drive-opts> with the "
4942 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4943 "is added read-only, with the format being detected automatically."
4944 msgstr ""
4945
4946 #. type: =head2
4947 #: ../fish/guestfish-actions.pod:156
4948 msgid "add-drive-ro-with-if"
4949 msgstr ""
4950
4951 #. type: verbatim
4952 #: ../fish/guestfish-actions.pod:158
4953 #, no-wrap
4954 msgid ""
4955 " add-drive-ro-with-if filename iface\n"
4956 "\n"
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../fish/guestfish-actions.pod:160
4961 msgid ""
4962 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4963 "interface emulation to use at run time."
4964 msgstr ""
4965
4966 #. type: =head2
4967 #: ../fish/guestfish-actions.pod:170
4968 msgid "add-drive-with-if"
4969 msgstr ""
4970
4971 #. type: verbatim
4972 #: ../fish/guestfish-actions.pod:172
4973 #, no-wrap
4974 msgid ""
4975 " add-drive-with-if filename iface\n"
4976 "\n"
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../fish/guestfish-actions.pod:174
4981 msgid ""
4982 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4983 "interface emulation to use at run time."
4984 msgstr ""
4985
4986 #. type: =head2
4987 #: ../fish/guestfish-actions.pod:184
4988 msgid "aug-clear"
4989 msgstr ""
4990
4991 #. type: verbatim
4992 #: ../fish/guestfish-actions.pod:186
4993 #, no-wrap
4994 msgid ""
4995 " aug-clear augpath\n"
4996 "\n"
4997 msgstr ""
4998
4999 #. type: textblock
5000 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5001 msgid ""
5002 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5003 "L<augtool(1)> C<clear> command."
5004 msgstr ""
5005
5006 #. type: =head2
5007 #: ../fish/guestfish-actions.pod:191
5008 msgid "aug-close"
5009 msgstr ""
5010
5011 #. type: verbatim
5012 #: ../fish/guestfish-actions.pod:193
5013 #, no-wrap
5014 msgid ""
5015 " aug-close\n"
5016 "\n"
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../fish/guestfish-actions.pod:195
5021 msgid ""
5022 "Close the current Augeas handle and free up any resources used by it.  After "
5023 "calling this, you have to call L</aug-init> again before you can use any "
5024 "other Augeas functions."
5025 msgstr ""
5026
5027 #. type: =head2
5028 #: ../fish/guestfish-actions.pod:200
5029 msgid "aug-defnode"
5030 msgstr ""
5031
5032 #. type: verbatim
5033 #: ../fish/guestfish-actions.pod:202
5034 #, no-wrap
5035 msgid ""
5036 " aug-defnode name expr val\n"
5037 "\n"
5038 msgstr ""
5039
5040 #. type: textblock
5041 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5042 msgid ""
5043 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5044 msgstr ""
5045
5046 #. type: textblock
5047 #: ../fish/guestfish-actions.pod:207
5048 msgid ""
5049 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5050 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5051 "containing that single node."
5052 msgstr ""
5053
5054 #. type: textblock
5055 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5056 msgid ""
5057 "On success this returns a pair containing the number of nodes in the "
5058 "nodeset, and a boolean flag if a node was created."
5059 msgstr ""
5060
5061 #. type: =head2
5062 #: ../fish/guestfish-actions.pod:215
5063 msgid "aug-defvar"
5064 msgstr ""
5065
5066 #. type: verbatim
5067 #: ../fish/guestfish-actions.pod:217
5068 #, no-wrap
5069 msgid ""
5070 " aug-defvar name expr\n"
5071 "\n"
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5076 msgid ""
5077 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5078 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5079 msgstr ""
5080
5081 #. type: textblock
5082 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5083 msgid ""
5084 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5085 "evaluates to something which is not a nodeset."
5086 msgstr ""
5087
5088 #. type: =head2
5089 #: ../fish/guestfish-actions.pod:226
5090 msgid "aug-get"
5091 msgstr ""
5092
5093 #. type: verbatim
5094 #: ../fish/guestfish-actions.pod:228
5095 #, no-wrap
5096 msgid ""
5097 " aug-get augpath\n"
5098 "\n"
5099 msgstr ""
5100
5101 #. type: textblock
5102 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5103 msgid ""
5104 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5105 "node, the C<value> is returned."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../fish/guestfish-actions.pod:233
5110 msgid "aug-init"
5111 msgstr ""
5112
5113 #. type: verbatim
5114 #: ../fish/guestfish-actions.pod:235
5115 #, no-wrap
5116 msgid ""
5117 " aug-init root flags\n"
5118 "\n"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5123 msgid ""
5124 "Create a new Augeas handle for editing configuration files.  If there was "
5125 "any previous Augeas handle associated with this guestfs session, then it is "
5126 "closed."
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:241
5131 msgid "You must call this before using any other L</aug-*> commands."
5132 msgstr ""
5133
5134 #. type: textblock
5135 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5136 msgid ""
5137 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5142 msgid ""
5143 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5144 "logical I<or> of the following integers:"
5145 msgstr ""
5146
5147 #. type: =item
5148 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5149 msgid "C<AUG_SAVE_BACKUP> = 1"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5154 msgid "Keep the original file with a C<.augsave> extension."
5155 msgstr ""
5156
5157 #. type: =item
5158 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5159 msgid "C<AUG_SAVE_NEWFILE> = 2"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5164 msgid ""
5165 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5166 "original.  Overrides C<AUG_SAVE_BACKUP>."
5167 msgstr ""
5168
5169 #. type: =item
5170 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5171 msgid "C<AUG_TYPE_CHECK> = 4"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5176 msgid "Typecheck lenses."
5177 msgstr ""
5178
5179 #. type: textblock
5180 #: ../fish/guestfish-actions.pod:266
5181 msgid ""
5182 "This option is only useful when debugging Augeas lenses.  Use of this option "
5183 "may require additional memory for the libguestfs appliance.  You may need to "
5184 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5185 msgstr ""
5186
5187 #. type: =item
5188 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5189 msgid "C<AUG_NO_STDINC> = 8"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5194 msgid "Do not use standard load path for modules."
5195 msgstr ""
5196
5197 #. type: =item
5198 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5199 msgid "C<AUG_SAVE_NOOP> = 16"
5200 msgstr ""
5201
5202 #. type: textblock
5203 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5204 msgid "Make save a no-op, just record what would have been changed."
5205 msgstr ""
5206
5207 #. type: =item
5208 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5209 msgid "C<AUG_NO_LOAD> = 32"
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../fish/guestfish-actions.pod:281
5214 msgid "Do not load the tree in L</aug-init>."
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../fish/guestfish-actions.pod:285
5219 msgid "To close the handle, you can call L</aug-close>."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5224 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5225 msgstr ""
5226
5227 #. type: =head2
5228 #: ../fish/guestfish-actions.pod:289
5229 msgid "aug-insert"
5230 msgstr ""
5231
5232 #. type: verbatim
5233 #: ../fish/guestfish-actions.pod:291
5234 #, no-wrap
5235 msgid ""
5236 " aug-insert augpath label true|false\n"
5237 "\n"
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5242 msgid ""
5243 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5244 "or after C<path> (depending on the boolean flag C<before>)."
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5249 msgid ""
5250 "C<path> must match exactly one existing node in the tree, and C<label> must "
5251 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5252 msgstr ""
5253
5254 #. type: =head2
5255 #: ../fish/guestfish-actions.pod:301
5256 msgid "aug-load"
5257 msgstr ""
5258
5259 #. type: verbatim
5260 #: ../fish/guestfish-actions.pod:303
5261 #, no-wrap
5262 msgid ""
5263 " aug-load\n"
5264 "\n"
5265 msgstr ""
5266
5267 #. type: textblock
5268 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5269 msgid "Load files into the tree."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5274 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5275 msgstr ""
5276
5277 #. type: =head2
5278 #: ../fish/guestfish-actions.pod:310
5279 msgid "aug-ls"
5280 msgstr ""
5281
5282 #. type: verbatim
5283 #: ../fish/guestfish-actions.pod:312
5284 #, no-wrap
5285 msgid ""
5286 " aug-ls augpath\n"
5287 "\n"
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../fish/guestfish-actions.pod:314
5292 msgid ""
5293 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5294 "resulting nodes into alphabetical order."
5295 msgstr ""
5296
5297 #. type: =head2
5298 #: ../fish/guestfish-actions.pod:317
5299 msgid "aug-match"
5300 msgstr ""
5301
5302 #. type: verbatim
5303 #: ../fish/guestfish-actions.pod:319
5304 #, no-wrap
5305 msgid ""
5306 " aug-match augpath\n"
5307 "\n"
5308 msgstr ""
5309
5310 #. type: textblock
5311 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5312 msgid ""
5313 "Returns a list of paths which match the path expression C<path>.  The "
5314 "returned paths are sufficiently qualified so that they match exactly one "
5315 "node in the current tree."
5316 msgstr ""
5317
5318 #. type: =head2
5319 #: ../fish/guestfish-actions.pod:325
5320 msgid "aug-mv"
5321 msgstr ""
5322
5323 #. type: verbatim
5324 #: ../fish/guestfish-actions.pod:327
5325 #, no-wrap
5326 msgid ""
5327 " aug-mv src dest\n"
5328 "\n"
5329 msgstr ""
5330
5331 #. type: textblock
5332 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5333 msgid ""
5334 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5335 "C<dest> is overwritten if it exists."
5336 msgstr ""
5337
5338 #. type: =head2
5339 #: ../fish/guestfish-actions.pod:332
5340 msgid "aug-rm"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../fish/guestfish-actions.pod:334
5345 #, no-wrap
5346 msgid ""
5347 " aug-rm augpath\n"
5348 "\n"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5353 msgid "Remove C<path> and all of its children."
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5358 msgid "On success this returns the number of entries which were removed."
5359 msgstr ""
5360
5361 #. type: =head2
5362 #: ../fish/guestfish-actions.pod:340
5363 msgid "aug-save"
5364 msgstr ""
5365
5366 #. type: verbatim
5367 #: ../fish/guestfish-actions.pod:342
5368 #, no-wrap
5369 msgid ""
5370 " aug-save\n"
5371 "\n"
5372 msgstr ""
5373
5374 #. type: textblock
5375 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5376 msgid "This writes all pending changes to disk."
5377 msgstr ""
5378
5379 #. type: textblock
5380 #: ../fish/guestfish-actions.pod:346
5381 msgid ""
5382 "The flags which were passed to L</aug-init> affect exactly how files are "
5383 "saved."
5384 msgstr ""
5385
5386 #. type: =head2
5387 #: ../fish/guestfish-actions.pod:349
5388 msgid "aug-set"
5389 msgstr ""
5390
5391 #. type: verbatim
5392 #: ../fish/guestfish-actions.pod:351
5393 #, no-wrap
5394 msgid ""
5395 " aug-set augpath val\n"
5396 "\n"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5401 msgid "Set the value associated with C<path> to C<val>."
5402 msgstr ""
5403
5404 #. type: textblock
5405 #: ../fish/guestfish-actions.pod:355
5406 msgid ""
5407 "In the Augeas API, it is possible to clear a node by setting the value to "
5408 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5409 "this call.  Instead you must use the L</aug-clear> call."
5410 msgstr ""
5411
5412 #. type: =head2
5413 #: ../fish/guestfish-actions.pod:360
5414 msgid "available"
5415 msgstr ""
5416
5417 #. type: verbatim
5418 #: ../fish/guestfish-actions.pod:362
5419 #, no-wrap
5420 msgid ""
5421 " available 'groups ...'\n"
5422 "\n"
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5427 msgid ""
5428 "This command is used to check the availability of some groups of "
5429 "functionality in the appliance, which not all builds of the libguestfs "
5430 "appliance will be able to provide."
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../fish/guestfish-actions.pod:368
5435 msgid ""
5436 "The libguestfs groups, and the functions that those groups correspond to, "
5437 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5438 "runtime by calling L</available-all-groups>."
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5443 msgid ""
5444 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5445 "\"]> would check for the availability of the Linux inotify functions and "
5446 "Augeas (configuration file editing) functions."
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5451 msgid "The command returns no error if I<all> requested groups are available."
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5456 msgid ""
5457 "It fails with an error if one or more of the requested groups is unavailable "
5458 "in the appliance."
5459 msgstr ""
5460
5461 #. type: textblock
5462 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5463 msgid ""
5464 "If an unknown group name is included in the list of groups then an error is "
5465 "always returned."
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5470 msgid "I<Notes:>"
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../fish/guestfish-actions.pod:392
5475 msgid "You must call L</launch> before calling this function."
5476 msgstr ""
5477
5478 #. type: textblock
5479 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5480 msgid ""
5481 "The reason is because we don't know what groups are supported by the "
5482 "appliance/daemon until it is running and can be queried."
5483 msgstr ""
5484
5485 #. type: textblock
5486 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5487 msgid ""
5488 "If a group of functions is available, this does not necessarily mean that "
5489 "they will work.  You still have to check for errors when calling individual "
5490 "API functions even if they are available."
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5495 msgid ""
5496 "It is usually the job of distro packagers to build complete functionality "
5497 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5498 "with all requirements satisfied, will support everything."
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../fish/guestfish-actions.pod:414
5503 msgid ""
5504 "This call was added in version C<1.0.80>.  In previous versions of "
5505 "libguestfs all you could do would be to speculatively execute a command to "
5506 "find out if the daemon implemented it.  See also L</version>."
5507 msgstr ""
5508
5509 #. type: =head2
5510 #: ../fish/guestfish-actions.pod:421
5511 msgid "available-all-groups"
5512 msgstr ""
5513
5514 #. type: verbatim
5515 #: ../fish/guestfish-actions.pod:423
5516 #, no-wrap
5517 msgid ""
5518 " available-all-groups\n"
5519 "\n"
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../fish/guestfish-actions.pod:425
5524 msgid ""
5525 "This command returns a list of all optional groups that this daemon knows "
5526 "about.  Note this returns both supported and unsupported groups.  To find "
5527 "out which ones the daemon can actually support you have to call L</"
5528 "available> on each member of the returned list."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../fish/guestfish-actions.pod:431
5533 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5534 msgstr ""
5535
5536 #. type: =head2
5537 #: ../fish/guestfish-actions.pod:433
5538 msgid "base64-in"
5539 msgstr ""
5540
5541 #. type: verbatim
5542 #: ../fish/guestfish-actions.pod:435
5543 #, no-wrap
5544 msgid ""
5545 " base64-in (base64file|-) filename\n"
5546 "\n"
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5551 msgid ""
5552 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5557 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5558 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5559 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5560 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
5561 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
5562 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
5563 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5564 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5565 msgstr ""
5566
5567 #. type: =head2
5568 #: ../fish/guestfish-actions.pod:442
5569 msgid "base64-out"
5570 msgstr ""
5571
5572 #. type: verbatim
5573 #: ../fish/guestfish-actions.pod:444
5574 #, no-wrap
5575 msgid ""
5576 " base64-out filename (base64file|-)\n"
5577 "\n"
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5582 msgid ""
5583 "This command downloads the contents of C<filename>, writing it out to local "
5584 "file C<base64file> encoded as base64."
5585 msgstr ""
5586
5587 #. type: =head2
5588 #: ../fish/guestfish-actions.pod:451
5589 msgid "blockdev-flushbufs"
5590 msgstr ""
5591
5592 #. type: verbatim
5593 #: ../fish/guestfish-actions.pod:453
5594 #, no-wrap
5595 msgid ""
5596 " blockdev-flushbufs device\n"
5597 "\n"
5598 msgstr ""
5599
5600 #. type: textblock
5601 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5602 msgid ""
5603 "This tells the kernel to flush internal buffers associated with C<device>."
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5608 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5609 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5610 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5611 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5612 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5613 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5614 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5615 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5616 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5617 msgid "This uses the L<blockdev(8)> command."
5618 msgstr ""
5619
5620 #. type: =head2
5621 #: ../fish/guestfish-actions.pod:460
5622 msgid "blockdev-getbsz"
5623 msgstr ""
5624
5625 #. type: verbatim
5626 #: ../fish/guestfish-actions.pod:462
5627 #, no-wrap
5628 msgid ""
5629 " blockdev-getbsz device\n"
5630 "\n"
5631 msgstr ""
5632
5633 #. type: textblock
5634 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5635 msgid "This returns the block size of a device."
5636 msgstr ""
5637
5638 #. type: textblock
5639 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5640 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5641 msgid ""
5642 "(Note this is different from both I<size in blocks> and I<filesystem block "
5643 "size>)."
5644 msgstr ""
5645
5646 #. type: =head2
5647 #: ../fish/guestfish-actions.pod:471
5648 msgid "blockdev-getro"
5649 msgstr ""
5650
5651 #. type: verbatim
5652 #: ../fish/guestfish-actions.pod:473
5653 #, no-wrap
5654 msgid ""
5655 " blockdev-getro device\n"
5656 "\n"
5657 msgstr ""
5658
5659 #. type: textblock
5660 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5661 msgid ""
5662 "Returns a boolean indicating if the block device is read-only (true if read-"
5663 "only, false if not)."
5664 msgstr ""
5665
5666 #. type: =head2
5667 #: ../fish/guestfish-actions.pod:480
5668 msgid "blockdev-getsize64"
5669 msgstr ""
5670
5671 #. type: verbatim
5672 #: ../fish/guestfish-actions.pod:482
5673 #, no-wrap
5674 msgid ""
5675 " blockdev-getsize64 device\n"
5676 "\n"
5677 msgstr ""
5678
5679 #. type: textblock
5680 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5681 msgid "This returns the size of the device in bytes."
5682 msgstr ""
5683
5684 #. type: textblock
5685 #: ../fish/guestfish-actions.pod:486
5686 msgid "See also L</blockdev-getsz>."
5687 msgstr ""
5688
5689 #. type: =head2
5690 #: ../fish/guestfish-actions.pod:490
5691 msgid "blockdev-getss"
5692 msgstr ""
5693
5694 #. type: verbatim
5695 #: ../fish/guestfish-actions.pod:492
5696 #, no-wrap
5697 msgid ""
5698 " blockdev-getss device\n"
5699 "\n"
5700 msgstr ""
5701
5702 #. type: textblock
5703 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5704 msgid ""
5705 "This returns the size of sectors on a block device.  Usually 512, but can be "
5706 "larger for modern devices."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../fish/guestfish-actions.pod:497
5711 msgid ""
5712 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5713 msgstr ""
5714
5715 #. type: =head2
5716 #: ../fish/guestfish-actions.pod:502
5717 msgid "blockdev-getsz"
5718 msgstr ""
5719
5720 #. type: verbatim
5721 #: ../fish/guestfish-actions.pod:504
5722 #, no-wrap
5723 msgid ""
5724 " blockdev-getsz device\n"
5725 "\n"
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5730 msgid ""
5731 "This returns the size of the device in units of 512-byte sectors (even if "
5732 "the sectorsize isn't 512 bytes ... weird)."
5733 msgstr ""
5734
5735 #. type: textblock
5736 #: ../fish/guestfish-actions.pod:509
5737 msgid ""
5738 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5739 "blockdev-getsize64> for the more useful I<size in bytes>."
5740 msgstr ""
5741
5742 #. type: =head2
5743 #: ../fish/guestfish-actions.pod:515
5744 msgid "blockdev-rereadpt"
5745 msgstr ""
5746
5747 #. type: verbatim
5748 #: ../fish/guestfish-actions.pod:517
5749 #, no-wrap
5750 msgid ""
5751 " blockdev-rereadpt device\n"
5752 "\n"
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5757 msgid "Reread the partition table on C<device>."
5758 msgstr ""
5759
5760 #. type: =head2
5761 #: ../fish/guestfish-actions.pod:523
5762 msgid "blockdev-setbsz"
5763 msgstr ""
5764
5765 #. type: verbatim
5766 #: ../fish/guestfish-actions.pod:525
5767 #, no-wrap
5768 msgid ""
5769 " blockdev-setbsz device blocksize\n"
5770 "\n"
5771 msgstr ""
5772
5773 #. type: textblock
5774 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5775 msgid "This sets the block size of a device."
5776 msgstr ""
5777
5778 #. type: =head2
5779 #: ../fish/guestfish-actions.pod:534
5780 msgid "blockdev-setro"
5781 msgstr ""
5782
5783 #. type: verbatim
5784 #: ../fish/guestfish-actions.pod:536
5785 #, no-wrap
5786 msgid ""
5787 " blockdev-setro device\n"
5788 "\n"
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5793 msgid "Sets the block device named C<device> to read-only."
5794 msgstr ""
5795
5796 #. type: =head2
5797 #: ../fish/guestfish-actions.pod:542
5798 msgid "blockdev-setrw"
5799 msgstr ""
5800
5801 #. type: verbatim
5802 #: ../fish/guestfish-actions.pod:544
5803 #, no-wrap
5804 msgid ""
5805 " blockdev-setrw device\n"
5806 "\n"
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5811 msgid "Sets the block device named C<device> to read-write."
5812 msgstr ""
5813
5814 #. type: =head2
5815 #: ../fish/guestfish-actions.pod:550
5816 msgid "btrfs-filesystem-resize"
5817 msgstr ""
5818
5819 #. type: verbatim
5820 #: ../fish/guestfish-actions.pod:552
5821 #, no-wrap
5822 msgid ""
5823 " btrfs-filesystem-resize mountpoint [size:..]\n"
5824 "\n"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5829 msgid "This command resizes a btrfs filesystem."
5830 msgstr ""
5831
5832 #. type: textblock
5833 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5834 msgid ""
5835 "Note that unlike other resize calls, the filesystem has to be mounted and "
5836 "the parameter is the mountpoint not the device (this is a requirement of "
5837 "btrfs itself)."
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
5842 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
5843 msgid "The optional parameters are:"
5844 msgstr ""
5845
5846 #. type: =item
5847 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
5848 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
5849 msgid "C<size>"
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5854 msgid ""
5855 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5856 "resized to the maximum size."
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5861 msgid "See also L<btrfs(8)>."
5862 msgstr ""
5863
5864 #. type: =head2
5865 #: ../fish/guestfish-actions.pod:575
5866 msgid "case-sensitive-path"
5867 msgstr ""
5868
5869 #. type: verbatim
5870 #: ../fish/guestfish-actions.pod:577
5871 #, no-wrap
5872 msgid ""
5873 " case-sensitive-path path\n"
5874 "\n"
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5879 msgid ""
5880 "This can be used to resolve case insensitive paths on a filesystem which is "
5881 "case sensitive.  The use case is to resolve paths which you have read from "
5882 "Windows configuration files or the Windows Registry, to the true path."
5883 msgstr ""
5884
5885 #. type: textblock
5886 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5887 msgid ""
5888 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5889 "(and probably others), which is that although the underlying filesystem is "
5890 "case-insensitive, the driver exports the filesystem to Linux as case-"
5891 "sensitive."
5892 msgstr ""
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5896 msgid ""
5897 "One consequence of this is that special directories such as C<c:\\windows> "
5898 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5899 "precise details of how they were created.  In Windows itself this would not "
5900 "be a problem."
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5905 msgid ""
5906 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5907 "#posixfilenames1>"
5908 msgstr ""
5909
5910 #. type: textblock
5911 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5912 msgid ""
5913 "This function resolves the true case of each element in the path and returns "
5914 "the case-sensitive path."
5915 msgstr ""
5916
5917 #. type: textblock
5918 #: ../fish/guestfish-actions.pod:601
5919 msgid ""
5920 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5921 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5922 "the directories were originally created under Windows)."
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5927 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5928 msgstr ""
5929
5930 #. type: textblock
5931 #: ../fish/guestfish-actions.pod:609
5932 msgid "See also L</realpath>."
5933 msgstr ""
5934
5935 #. type: =head2
5936 #: ../fish/guestfish-actions.pod:611
5937 msgid "cat"
5938 msgstr ""
5939
5940 #. type: verbatim
5941 #: ../fish/guestfish-actions.pod:613
5942 #, no-wrap
5943 msgid ""
5944 " cat path\n"
5945 "\n"
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
5950 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
5951 msgid "Return the contents of the file named C<path>."
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../fish/guestfish-actions.pod:617
5956 msgid ""
5957 "Note that this function cannot correctly handle binary files (specifically, "
5958 "files containing C<\\0> character which is treated as end of string).  For "
5959 "those you need to use the L</read-file> or L</download> functions which have "
5960 "a more complex interface."
5961 msgstr ""
5962
5963 #. type: textblock
5964 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5965 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
5966 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
5967 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
5968 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
5969 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
5970 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
5971 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
5972 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
5973 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
5974 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
5975 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
5976 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
5977 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
5978 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
5979 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
5980 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5981 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
5982 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
5983 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
5984 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
5985 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
5986 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
5987 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
5988 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
5989 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
5990 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
5991 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
5992 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
5993 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
5994 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
5995 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
5996 msgid ""
5997 "Because of the message protocol, there is a transfer limit of somewhere "
5998 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5999 msgstr ""
6000
6001 #. type: =head2
6002 #: ../fish/guestfish-actions.pod:625
6003 msgid "checksum"
6004 msgstr ""
6005
6006 #. type: verbatim
6007 #: ../fish/guestfish-actions.pod:627
6008 #, no-wrap
6009 msgid ""
6010 " checksum csumtype path\n"
6011 "\n"
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6016 msgid ""
6017 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6022 msgid ""
6023 "The type of checksum to compute is given by the C<csumtype> parameter which "
6024 "must have one of the following values:"
6025 msgstr ""
6026
6027 #. type: =item
6028 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6029 msgid "C<crc>"
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6034 msgid ""
6035 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6036 "C<cksum> command."
6037 msgstr ""
6038
6039 #. type: =item
6040 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6041 msgid "C<md5>"
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6046 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6047 msgstr ""
6048
6049 #. type: =item
6050 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6051 msgid "C<sha1>"
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6056 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6057 msgstr ""
6058
6059 #. type: =item
6060 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6061 msgid "C<sha224>"
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6066 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6067 msgstr ""
6068
6069 #. type: =item
6070 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6071 msgid "C<sha256>"
6072 msgstr ""
6073
6074 #. type: textblock
6075 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6076 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6077 msgstr ""
6078
6079 #. type: =item
6080 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6081 msgid "C<sha384>"
6082 msgstr ""
6083
6084 #. type: textblock
6085 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6086 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6087 msgstr ""
6088
6089 #. type: =item
6090 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6091 msgid "C<sha512>"
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6096 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6097 msgstr ""
6098
6099 #. type: textblock
6100 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6101 msgid "The checksum is returned as a printable string."
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:670
6106 msgid "To get the checksum for a device, use L</checksum-device>."
6107 msgstr ""
6108
6109 #. type: textblock
6110 #: ../fish/guestfish-actions.pod:672
6111 msgid "To get the checksums for many files, use L</checksums-out>."
6112 msgstr ""
6113
6114 #. type: =head2
6115 #: ../fish/guestfish-actions.pod:674
6116 msgid "checksum-device"
6117 msgstr ""
6118
6119 #. type: verbatim
6120 #: ../fish/guestfish-actions.pod:676
6121 #, no-wrap
6122 msgid ""
6123 " checksum-device csumtype device\n"
6124 "\n"
6125 msgstr ""
6126
6127 #. type: textblock
6128 #: ../fish/guestfish-actions.pod:678
6129 msgid ""
6130 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6131 "device named C<device>.  For the types of checksums supported see the L</"
6132 "checksum> command."
6133 msgstr ""
6134
6135 #. type: =head2
6136 #: ../fish/guestfish-actions.pod:682
6137 msgid "checksums-out"
6138 msgstr ""
6139
6140 #. type: verbatim
6141 #: ../fish/guestfish-actions.pod:684
6142 #, no-wrap
6143 msgid ""
6144 " checksums-out csumtype directory (sumsfile|-)\n"
6145 "\n"
6146 msgstr ""
6147
6148 #. type: textblock
6149 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6150 msgid ""
6151 "This command computes the checksums of all regular files in C<directory> and "
6152 "then emits a list of those checksums to the local output file C<sumsfile>."
6153 msgstr ""
6154
6155 #. type: textblock
6156 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6157 msgid ""
6158 "This can be used for verifying the integrity of a virtual machine.  However "
6159 "to be properly secure you should pay attention to the output of the checksum "
6160 "command (it uses the ones from GNU coreutils).  In particular when the "
6161 "filename is not printable, coreutils uses a special backslash syntax.  For "
6162 "more information, see the GNU coreutils info file."
6163 msgstr ""
6164
6165 #. type: =head2
6166 #: ../fish/guestfish-actions.pod:700
6167 msgid "chmod"
6168 msgstr ""
6169
6170 #. type: verbatim
6171 #: ../fish/guestfish-actions.pod:702
6172 #, no-wrap
6173 msgid ""
6174 " chmod mode path\n"
6175 "\n"
6176 msgstr ""
6177
6178 #. type: textblock
6179 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6180 msgid ""
6181 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6182 "supported."
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6187 msgid ""
6188 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6189 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6190 "C<700>."
6191 msgstr ""
6192
6193 #. type: textblock
6194 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6195 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6196 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6197 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
6198 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
6199 msgid "The mode actually set is affected by the umask."
6200 msgstr ""
6201
6202 #. type: =head2
6203 #: ../fish/guestfish-actions.pod:713
6204 msgid "chown"
6205 msgstr ""
6206
6207 #. type: verbatim
6208 #: ../fish/guestfish-actions.pod:715
6209 #, no-wrap
6210 msgid ""
6211 " chown owner group path\n"
6212 "\n"
6213 msgstr ""
6214
6215 #. type: textblock
6216 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6217 msgid "Change the file owner to C<owner> and group to C<group>."
6218 msgstr ""
6219
6220 #. type: textblock
6221 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6222 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
6223 msgid ""
6224 "Only numeric uid and gid are supported.  If you want to use names, you will "
6225 "need to locate and parse the password file yourself (Augeas support makes "
6226 "this relatively easy)."
6227 msgstr ""
6228
6229 #. type: =head2
6230 #: ../fish/guestfish-actions.pod:723
6231 msgid "command"
6232 msgstr ""
6233
6234 #. type: verbatim
6235 #: ../fish/guestfish-actions.pod:725
6236 #, no-wrap
6237 msgid ""
6238 " command 'arguments ...'\n"
6239 "\n"
6240 msgstr ""
6241
6242 #. type: textblock
6243 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6244 msgid ""
6245 "This call runs a command from the guest filesystem.  The filesystem must be "
6246 "mounted, and must contain a compatible operating system (ie. something "
6247 "Linux, with the same or compatible processor architecture)."
6248 msgstr ""
6249
6250 #. type: textblock
6251 #: ../fish/guestfish-actions.pod:732
6252 msgid ""
6253 "The single parameter is an argv-style list of arguments.  The first element "
6254 "is the name of the program to run.  Subsequent elements are parameters.  The "
6255 "list must be non-empty (ie. must contain a program name).  Note that the "
6256 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6257 msgstr ""
6258
6259 #. type: textblock
6260 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6261 msgid "The return value is anything printed to I<stdout> by the command."
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6266 msgid ""
6267 "If the command returns a non-zero exit status, then this function returns an "
6268 "error message.  The error message string is the content of I<stderr> from "
6269 "the command."
6270 msgstr ""
6271
6272 #. type: textblock
6273 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6274 msgid ""
6275 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6276 "bin>.  If you require a program from another location, you should provide "
6277 "the full path in the first parameter."
6278 msgstr ""
6279
6280 #. type: textblock
6281 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6282 msgid ""
6283 "Shared libraries and data files required by the program must be available on "
6284 "filesystems which are mounted in the correct places.  It is the caller's "
6285 "responsibility to ensure all filesystems that are needed are mounted at the "
6286 "right locations."
6287 msgstr ""
6288
6289 #. type: =head2
6290 #: ../fish/guestfish-actions.pod:760
6291 msgid "command-lines"
6292 msgstr ""
6293
6294 #. type: verbatim
6295 #: ../fish/guestfish-actions.pod:762
6296 #, no-wrap
6297 msgid ""
6298 " command-lines 'arguments ...'\n"
6299 "\n"
6300 msgstr ""
6301
6302 #. type: textblock
6303 #: ../fish/guestfish-actions.pod:764
6304 msgid ""
6305 "This is the same as L</command>, but splits the result into a list of lines."
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:767
6310 msgid "See also: L</sh-lines>"
6311 msgstr ""
6312
6313 #. type: =head2
6314 #: ../fish/guestfish-actions.pod:772
6315 msgid "compress-device-out"
6316 msgstr ""
6317
6318 #. type: verbatim
6319 #: ../fish/guestfish-actions.pod:774
6320 #, no-wrap
6321 msgid ""
6322 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6323 "\n"
6324 msgstr ""
6325
6326 #. type: textblock
6327 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6328 msgid ""
6329 "This command compresses C<device> and writes it out to the local file "
6330 "C<zdevice>."
6331 msgstr ""
6332
6333 #. type: textblock
6334 #: ../fish/guestfish-actions.pod:779
6335 msgid ""
6336 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6337 "compress-out>."
6338 msgstr ""
6339
6340 #. type: =head2
6341 #: ../fish/guestfish-actions.pod:786
6342 msgid "compress-out"
6343 msgstr ""
6344
6345 #. type: verbatim
6346 #: ../fish/guestfish-actions.pod:788
6347 #, no-wrap
6348 msgid ""
6349 " compress-out ctype file (zfile|-) [level:..]\n"
6350 "\n"
6351 msgstr ""
6352
6353 #. type: textblock
6354 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6355 msgid ""
6356 "This command compresses C<file> and writes it out to the local file C<zfile>."
6357 msgstr ""
6358
6359 #. type: textblock
6360 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6361 msgid ""
6362 "The compression program used is controlled by the C<ctype> parameter.  "
6363 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6364 "Some compression types may not be supported by particular builds of "
6365 "libguestfs, in which case you will get an error containing the substring "
6366 "\"not supported\"."
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6371 msgid ""
6372 "The optional C<level> parameter controls compression level.  The meaning and "
6373 "default for this parameter depends on the compression program being used."
6374 msgstr ""
6375
6376 #. type: =head2
6377 #: ../fish/guestfish-actions.pod:807
6378 msgid "config"
6379 msgstr ""
6380
6381 #. type: verbatim
6382 #: ../fish/guestfish-actions.pod:809
6383 #, no-wrap
6384 msgid ""
6385 " config qemuparam qemuvalue\n"
6386 "\n"
6387 msgstr ""
6388
6389 #. type: textblock
6390 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6391 msgid ""
6392 "This can be used to add arbitrary qemu command line parameters of the form "
6393 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6394 "setting some parameters which would interfere with parameters that we use."
6395 msgstr ""
6396
6397 #. type: textblock
6398 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6399 msgid "The first character of C<param> string must be a C<-> (dash)."
6400 msgstr ""
6401
6402 #. type: textblock
6403 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6404 msgid "C<value> can be NULL."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:820
6409 msgid "copy-size"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:822
6414 #, no-wrap
6415 msgid ""
6416 " copy-size src dest size\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6422 msgid ""
6423 "This command copies exactly C<size> bytes from one source device or file "
6424 "C<src> to another destination device or file C<dest>."
6425 msgstr ""
6426
6427 #. type: textblock
6428 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6429 msgid ""
6430 "Note this will fail if the source is too short or if the destination is not "
6431 "large enough."
6432 msgstr ""
6433
6434 #. type: =head2
6435 #: ../fish/guestfish-actions.pod:830
6436 msgid "cp"
6437 msgstr ""
6438
6439 #. type: verbatim
6440 #: ../fish/guestfish-actions.pod:832
6441 #, no-wrap
6442 msgid ""
6443 " cp src dest\n"
6444 "\n"
6445 msgstr ""
6446
6447 #. type: textblock
6448 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6449 msgid ""
6450 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6451 "destination filename or destination directory."
6452 msgstr ""
6453
6454 #. type: =head2
6455 #: ../fish/guestfish-actions.pod:837
6456 msgid "cp-a"
6457 msgstr ""
6458
6459 #. type: verbatim
6460 #: ../fish/guestfish-actions.pod:839
6461 #, no-wrap
6462 msgid ""
6463 " cp-a src dest\n"
6464 "\n"
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6469 msgid ""
6470 "This copies a file or directory from C<src> to C<dest> recursively using the "
6471 "C<cp -a> command."
6472 msgstr ""
6473
6474 #. type: =head2
6475 #: ../fish/guestfish-actions.pod:844
6476 msgid "dd"
6477 msgstr ""
6478
6479 #. type: verbatim
6480 #: ../fish/guestfish-actions.pod:846
6481 #, no-wrap
6482 msgid ""
6483 " dd src dest\n"
6484 "\n"
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6489 msgid ""
6490 "This command copies from one source device or file C<src> to another "
6491 "destination device or file C<dest>.  Normally you would use this to copy to "
6492 "or from a device or partition, for example to duplicate a filesystem."
6493 msgstr ""
6494
6495 #. type: textblock
6496 #: ../fish/guestfish-actions.pod:853
6497 msgid ""
6498 "If the destination is a device, it must be as large or larger than the "
6499 "source file or device, otherwise the copy will fail.  This command cannot do "
6500 "partial copies (see L</copy-size>)."
6501 msgstr ""
6502
6503 #. type: =head2
6504 #: ../fish/guestfish-actions.pod:857
6505 msgid "df"
6506 msgstr ""
6507
6508 #. type: verbatim
6509 #: ../fish/guestfish-actions.pod:859
6510 #, no-wrap
6511 msgid ""
6512 " df\n"
6513 "\n"
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
6518 msgid "This command runs the C<df> command to report disk space used."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6523 msgid ""
6524 "This command is mostly useful for interactive sessions.  It is I<not> "
6525 "intended that you try to parse the output string.  Use L</statvfs> from "
6526 "programs."
6527 msgstr ""
6528
6529 #. type: =head2
6530 #: ../fish/guestfish-actions.pod:867
6531 msgid "df-h"
6532 msgstr ""
6533
6534 #. type: verbatim
6535 #: ../fish/guestfish-actions.pod:869
6536 #, no-wrap
6537 msgid ""
6538 " df-h\n"
6539 "\n"
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
6544 msgid ""
6545 "This command runs the C<df -h> command to report disk space used in human-"
6546 "readable format."
6547 msgstr ""
6548
6549 #. type: =head2
6550 #: ../fish/guestfish-actions.pod:878
6551 msgid "dmesg"
6552 msgstr ""
6553
6554 #. type: verbatim
6555 #: ../fish/guestfish-actions.pod:880
6556 #, no-wrap
6557 msgid ""
6558 " dmesg\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
6564 msgid ""
6565 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6566 "This is sometimes useful for extended debugging of problems."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:886
6571 msgid ""
6572 "Another way to get the same information is to enable verbose messages with "
6573 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6574 "before running the program."
6575 msgstr ""
6576
6577 #. type: =head2
6578 #: ../fish/guestfish-actions.pod:891
6579 msgid "download"
6580 msgstr ""
6581
6582 #. type: verbatim
6583 #: ../fish/guestfish-actions.pod:893
6584 #, no-wrap
6585 msgid ""
6586 " download remotefilename (filename|-)\n"
6587 "\n"
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6592 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
6593 msgid ""
6594 "Download file C<remotefilename> and save it as C<filename> on the local "
6595 "machine."
6596 msgstr ""
6597
6598 #. type: textblock
6599 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
6600 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
6601 msgid "C<filename> can also be a named pipe."
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:900
6606 msgid "See also L</upload>, L</cat>."
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:904
6611 msgid "download-offset"
6612 msgstr ""
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:906
6616 #, no-wrap
6617 msgid ""
6618 " download-offset remotefilename (filename|-) offset size\n"
6619 "\n"
6620 msgstr ""
6621
6622 #. type: textblock
6623 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
6624 msgid ""
6625 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6626 "region must be within the file or device)."
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../fish/guestfish-actions.pod:914
6631 msgid ""
6632 "Note that there is no limit on the amount of data that can be downloaded "
6633 "with this call, unlike with L</pread>, and this call always reads the full "
6634 "amount unless an error occurs."
6635 msgstr ""
6636
6637 #. type: textblock
6638 #: ../fish/guestfish-actions.pod:919
6639 msgid "See also L</download>, L</pread>."
6640 msgstr ""
6641
6642 #. type: =head2
6643 #: ../fish/guestfish-actions.pod:923
6644 msgid "drop-caches"
6645 msgstr ""
6646
6647 #. type: verbatim
6648 #: ../fish/guestfish-actions.pod:925
6649 #, no-wrap
6650 msgid ""
6651 " drop-caches whattodrop\n"
6652 "\n"
6653 msgstr ""
6654
6655 #. type: textblock
6656 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
6657 msgid ""
6658 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6659 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6660 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6661 msgstr ""
6662
6663 #. type: textblock
6664 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
6665 msgid "Setting C<whattodrop> to 3 should drop everything."
6666 msgstr ""
6667
6668 #. type: textblock
6669 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
6670 msgid ""
6671 "This automatically calls L<sync(2)> before the operation, so that the "
6672 "maximum guest memory is freed."
6673 msgstr ""
6674
6675 #. type: =head2
6676 #: ../fish/guestfish-actions.pod:937
6677 msgid "du"
6678 msgstr ""
6679
6680 #. type: verbatim
6681 #: ../fish/guestfish-actions.pod:939
6682 #, no-wrap
6683 msgid ""
6684 " du path\n"
6685 "\n"
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
6690 msgid ""
6691 "This command runs the C<du -s> command to estimate file space usage for "
6692 "C<path>."
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
6697 msgid ""
6698 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6699 "estimate includes the contents of the directory and all subdirectories "
6700 "(recursively)."
6701 msgstr ""
6702
6703 #. type: textblock
6704 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
6705 msgid ""
6706 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6707 msgstr ""
6708
6709 #. type: =head2
6710 #: ../fish/guestfish-actions.pod:951
6711 msgid "e2fsck-f"
6712 msgstr ""
6713
6714 #. type: verbatim
6715 #: ../fish/guestfish-actions.pod:953
6716 #, no-wrap
6717 msgid ""
6718 " e2fsck-f device\n"
6719 "\n"
6720 msgstr ""
6721
6722 #. type: textblock
6723 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
6724 msgid ""
6725 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6726 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6727 "clean (I<-f>)."
6728 msgstr ""
6729
6730 #. type: textblock
6731 #: ../fish/guestfish-actions.pod:959
6732 msgid ""
6733 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6734 "should use L</fsck>."
6735 msgstr ""
6736
6737 #. type: =head2
6738 #: ../fish/guestfish-actions.pod:962
6739 msgid "echo-daemon"
6740 msgstr ""
6741
6742 #. type: verbatim
6743 #: ../fish/guestfish-actions.pod:964
6744 #, no-wrap
6745 msgid ""
6746 " echo-daemon 'words ...'\n"
6747 "\n"
6748 msgstr ""
6749
6750 #. type: textblock
6751 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
6752 msgid ""
6753 "This command concatenates the list of C<words> passed with single spaces "
6754 "between them and returns the resulting string."
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
6759 msgid "You can use this command to test the connection through to the daemon."
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:971
6764 msgid "See also L</ping-daemon>."
6765 msgstr ""
6766
6767 #. type: =head2
6768 #: ../fish/guestfish-actions.pod:973
6769 msgid "egrep"
6770 msgstr ""
6771
6772 #. type: verbatim
6773 #: ../fish/guestfish-actions.pod:975
6774 #, no-wrap
6775 msgid ""
6776 " egrep regex path\n"
6777 "\n"
6778 msgstr ""
6779
6780 #. type: textblock
6781 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
6782 msgid ""
6783 "This calls the external C<egrep> program and returns the matching lines."
6784 msgstr ""
6785
6786 #. type: =head2
6787 #: ../fish/guestfish-actions.pod:983
6788 msgid "egrepi"
6789 msgstr ""
6790
6791 #. type: verbatim
6792 #: ../fish/guestfish-actions.pod:985
6793 #, no-wrap
6794 msgid ""
6795 " egrepi regex path\n"
6796 "\n"
6797 msgstr ""
6798
6799 #. type: textblock
6800 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
6801 msgid ""
6802 "This calls the external C<egrep -i> program and returns the matching lines."
6803 msgstr ""
6804
6805 #. type: =head2
6806 #: ../fish/guestfish-actions.pod:993
6807 msgid "equal"
6808 msgstr ""
6809
6810 #. type: verbatim
6811 #: ../fish/guestfish-actions.pod:995
6812 #, no-wrap
6813 msgid ""
6814 " equal file1 file2\n"
6815 "\n"
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
6820 msgid ""
6821 "This compares the two files C<file1> and C<file2> and returns true if their "
6822 "content is exactly equal, or false otherwise."
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
6827 msgid "The external L<cmp(1)> program is used for the comparison."
6828 msgstr ""
6829
6830 #. type: =head2
6831 #: ../fish/guestfish-actions.pod:1002
6832 msgid "exists"
6833 msgstr ""
6834
6835 #. type: verbatim
6836 #: ../fish/guestfish-actions.pod:1004
6837 #, no-wrap
6838 msgid ""
6839 " exists path\n"
6840 "\n"
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
6845 msgid ""
6846 "This returns C<true> if and only if there is a file, directory (or anything) "
6847 "with the given C<path> name."
6848 msgstr ""
6849
6850 #. type: textblock
6851 #: ../fish/guestfish-actions.pod:1009
6852 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6853 msgstr ""
6854
6855 #. type: =head2
6856 #: ../fish/guestfish-actions.pod:1011
6857 msgid "fallocate"
6858 msgstr ""
6859
6860 #. type: verbatim
6861 #: ../fish/guestfish-actions.pod:1013
6862 #, no-wrap
6863 msgid ""
6864 " fallocate path len\n"
6865 "\n"
6866 msgstr ""
6867
6868 #. type: textblock
6869 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6870 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
6871 msgid ""
6872 "This command preallocates a file (containing zero bytes) named C<path> of "
6873 "size C<len> bytes.  If the file exists already, it is overwritten."
6874 msgstr ""
6875
6876 #. type: textblock
6877 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
6878 msgid ""
6879 "Do not confuse this with the guestfish-specific C<alloc> command which "
6880 "allocates a file in the host and attaches it as a device."
6881 msgstr ""
6882
6883 #. type: textblock
6884 #: ../fish/guestfish-actions.pod:1023
6885 msgid ""
6886 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6887 "instead."
6888 msgstr ""
6889
6890 #. type: =head2
6891 #: ../fish/guestfish-actions.pod:1030
6892 msgid "fallocate64"
6893 msgstr ""
6894
6895 #. type: verbatim
6896 #: ../fish/guestfish-actions.pod:1032
6897 #, no-wrap
6898 msgid ""
6899 " fallocate64 path len\n"
6900 "\n"
6901 msgstr ""
6902
6903 #. type: textblock
6904 #: ../fish/guestfish-actions.pod:1038
6905 msgid ""
6906 "Note that this call allocates disk blocks for the file.  To create a sparse "
6907 "file use L</truncate-size> instead."
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:1041
6912 msgid ""
6913 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6914 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6915 "maximum size of files created through that call to 1GB."
6916 msgstr ""
6917
6918 #. type: textblock
6919 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
6920 msgid ""
6921 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6922 "commands which create a file in the host and attach it as a device."
6923 msgstr ""
6924
6925 #. type: =head2
6926 #: ../fish/guestfish-actions.pod:1050
6927 msgid "fgrep"
6928 msgstr ""
6929
6930 #. type: verbatim
6931 #: ../fish/guestfish-actions.pod:1052
6932 #, no-wrap
6933 msgid ""
6934 " fgrep pattern path\n"
6935 "\n"
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
6940 msgid ""
6941 "This calls the external C<fgrep> program and returns the matching lines."
6942 msgstr ""
6943
6944 #. type: =head2
6945 #: ../fish/guestfish-actions.pod:1060
6946 msgid "fgrepi"
6947 msgstr ""
6948
6949 #. type: verbatim
6950 #: ../fish/guestfish-actions.pod:1062
6951 #, no-wrap
6952 msgid ""
6953 " fgrepi pattern path\n"
6954 "\n"
6955 msgstr ""
6956
6957 #. type: textblock
6958 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
6959 msgid ""
6960 "This calls the external C<fgrep -i> program and returns the matching lines."
6961 msgstr ""
6962
6963 #. type: =head2
6964 #: ../fish/guestfish-actions.pod:1070
6965 msgid "file"
6966 msgstr ""
6967
6968 #. type: verbatim
6969 #: ../fish/guestfish-actions.pod:1072
6970 #, no-wrap
6971 msgid ""
6972 " file path\n"
6973 "\n"
6974 msgstr ""
6975
6976 #. type: textblock
6977 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
6978 msgid ""
6979 "This call uses the standard L<file(1)> command to determine the type or "
6980 "contents of the file."
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
6985 msgid ""
6986 "This call will also transparently look inside various types of compressed "
6987 "file."
6988 msgstr ""
6989
6990 #. type: textblock
6991 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
6992 msgid ""
6993 "The exact command which runs is C<file -zb path>.  Note in particular that "
6994 "the filename is not prepended to the output (the I<-b> option)."
6995 msgstr ""
6996
6997 #. type: textblock
6998 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
6999 msgid ""
7000 "The output depends on the output of the underlying L<file(1)> command and it "
7001 "can change in future in ways beyond our control.  In other words, the output "
7002 "is not guaranteed by the ABI."
7003 msgstr ""
7004
7005 #. type: textblock
7006 #: ../fish/guestfish-actions.pod:1088
7007 msgid ""
7008 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7009 "(etc), L</is-zero>."
7010 msgstr ""
7011
7012 #. type: =head2
7013 #: ../fish/guestfish-actions.pod:1091
7014 msgid "file-architecture"
7015 msgstr ""
7016
7017 #. type: verbatim
7018 #: ../fish/guestfish-actions.pod:1093
7019 #, no-wrap
7020 msgid ""
7021 " file-architecture filename\n"
7022 "\n"
7023 msgstr ""
7024
7025 #. type: textblock
7026 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7027 msgid ""
7028 "This detects the architecture of the binary C<filename>, and returns it if "
7029 "known."
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7034 msgid "Currently defined architectures are:"
7035 msgstr ""
7036
7037 #. type: =item
7038 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7039 msgid "\"i386\""
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7044 msgid ""
7045 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7046 "irrespective of the precise processor requirements of the binary."
7047 msgstr ""
7048
7049 #. type: =item
7050 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7051 msgid "\"x86_64\""
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7056 msgid "64 bit x86-64."
7057 msgstr ""
7058
7059 #. type: =item
7060 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7061 msgid "\"sparc\""
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7066 msgid "32 bit SPARC."
7067 msgstr ""
7068
7069 #. type: =item
7070 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7071 msgid "\"sparc64\""
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7076 msgid "64 bit SPARC V9 and above."
7077 msgstr ""
7078
7079 #. type: =item
7080 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7081 msgid "\"ia64\""
7082 msgstr ""
7083
7084 #. type: textblock
7085 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7086 msgid "Intel Itanium."
7087 msgstr ""
7088
7089 #. type: =item
7090 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7091 msgid "\"ppc\""
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7096 msgid "32 bit Power PC."
7097 msgstr ""
7098
7099 #. type: =item
7100 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7101 msgid "\"ppc64\""
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7106 msgid "64 bit Power PC."
7107 msgstr ""
7108
7109 #. type: textblock
7110 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7111 msgid "Libguestfs may return other architecture strings in future."
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7116 msgid "The function works on at least the following types of files:"
7117 msgstr ""
7118
7119 #. type: textblock
7120 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7121 msgid "many types of Un*x and Linux binary"
7122 msgstr ""
7123
7124 #. type: textblock
7125 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7126 msgid "many types of Un*x and Linux shared library"
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7131 msgid "Windows Win32 and Win64 binaries"
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7136 msgid "Windows Win32 and Win64 DLLs"
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7141 msgid "Win32 binaries and DLLs return C<i386>."
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7146 msgid "Win64 binaries and DLLs return C<x86_64>."
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7151 msgid "Linux kernel modules"
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7156 msgid "Linux new-style initrd images"
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7161 msgid "some non-x86 Linux vmlinuz kernels"
7162 msgstr ""
7163
7164 #. type: textblock
7165 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7166 msgid "What it can't do currently:"
7167 msgstr ""
7168
7169 #. type: textblock
7170 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7171 msgid "static libraries (libfoo.a)"
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7176 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7177 msgstr ""
7178
7179 #. type: textblock
7180 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
7181 msgid "x86 Linux vmlinuz kernels"
7182 msgstr ""
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
7186 msgid ""
7187 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7188 "compressed code, and are horribly hard to unpack.  If you want to find the "
7189 "architecture of a kernel, use the architecture of the associated initrd or "
7190 "kernel module(s) instead."
7191 msgstr ""
7192
7193 #. type: =head2
7194 #: ../fish/guestfish-actions.pod:1196
7195 msgid "filesize"
7196 msgstr ""
7197
7198 #. type: verbatim
7199 #: ../fish/guestfish-actions.pod:1198
7200 #, no-wrap
7201 msgid ""
7202 " filesize file\n"
7203 "\n"
7204 msgstr ""
7205
7206 #. type: textblock
7207 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
7208 msgid "This command returns the size of C<file> in bytes."
7209 msgstr ""
7210
7211 #. type: textblock
7212 #: ../fish/guestfish-actions.pod:1202
7213 msgid ""
7214 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7215 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7216 msgstr ""
7217
7218 #. type: =head2
7219 #: ../fish/guestfish-actions.pod:1206
7220 msgid "fill"
7221 msgstr ""
7222
7223 #. type: verbatim
7224 #: ../fish/guestfish-actions.pod:1208
7225 #, no-wrap
7226 msgid ""
7227 " fill c len path\n"
7228 "\n"
7229 msgstr ""
7230
7231 #. type: textblock
7232 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
7233 msgid ""
7234 "This command creates a new file called C<path>.  The initial content of the "
7235 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7236 "[0..255]>."
7237 msgstr ""
7238
7239 #. type: textblock
7240 #: ../fish/guestfish-actions.pod:1214
7241 msgid ""
7242 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7243 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7244 "L</fill-pattern>."
7245 msgstr ""
7246
7247 #. type: =head2
7248 #: ../fish/guestfish-actions.pod:1219
7249 msgid "fill-pattern"
7250 msgstr ""
7251
7252 #. type: verbatim
7253 #: ../fish/guestfish-actions.pod:1221
7254 #, no-wrap
7255 msgid ""
7256 " fill-pattern pattern len path\n"
7257 "\n"
7258 msgstr ""
7259
7260 #. type: textblock
7261 #: ../fish/guestfish-actions.pod:1223
7262 msgid ""
7263 "This function is like L</fill> except that it creates a new file of length "
7264 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7265 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7266 "bytes."
7267 msgstr ""
7268
7269 #. type: =head2
7270 #: ../fish/guestfish-actions.pod:1228
7271 msgid "find"
7272 msgstr ""
7273
7274 #. type: verbatim
7275 #: ../fish/guestfish-actions.pod:1230
7276 #, no-wrap
7277 msgid ""
7278 " find directory\n"
7279 "\n"
7280 msgstr ""
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
7284 msgid ""
7285 "This command lists out all files and directories, recursively, starting at "
7286 "C<directory>.  It is essentially equivalent to running the shell command "
7287 "C<find directory -print> but some post-processing happens on the output, "
7288 "described below."
7289 msgstr ""
7290
7291 #. type: textblock
7292 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
7293 msgid ""
7294 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7295 "structure was:"
7296 msgstr ""
7297
7298 #. type: verbatim
7299 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
7300 #, no-wrap
7301 msgid ""
7302 " /tmp/a\n"
7303 " /tmp/b\n"
7304 " /tmp/c/d\n"
7305 "\n"
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:1244
7310 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7311 msgstr ""
7312
7313 #. type: verbatim
7314 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
7315 #, no-wrap
7316 msgid ""
7317 " a\n"
7318 " b\n"
7319 " c\n"
7320 " c/d\n"
7321 "\n"
7322 msgstr ""
7323
7324 #. type: textblock
7325 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7326 msgid "If C<directory> is not a directory, then this command returns an error."
7327 msgstr ""
7328
7329 #. type: textblock
7330 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7331 msgid "The returned list is sorted."
7332 msgstr ""
7333
7334 #. type: textblock
7335 #: ../fish/guestfish-actions.pod:1257
7336 msgid "See also L</find0>."
7337 msgstr ""
7338
7339 #. type: =head2
7340 #: ../fish/guestfish-actions.pod:1262
7341 msgid "find0"
7342 msgstr ""
7343
7344 #. type: verbatim
7345 #: ../fish/guestfish-actions.pod:1264
7346 #, no-wrap
7347 msgid ""
7348 " find0 directory (files|-)\n"
7349 "\n"
7350 msgstr ""
7351
7352 #. type: textblock
7353 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7354 msgid ""
7355 "This command lists out all files and directories, recursively, starting at "
7356 "C<directory>, placing the resulting list in the external file called "
7357 "C<files>."
7358 msgstr ""
7359
7360 #. type: textblock
7361 #: ../fish/guestfish-actions.pod:1270
7362 msgid ""
7363 "This command works the same way as L</find> with the following exceptions:"
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7368 msgid "The resulting list is written to an external file."
7369 msgstr ""
7370
7371 #. type: textblock
7372 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7373 msgid ""
7374 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7375 "L<find(1)> option I<-print0>."
7376 msgstr ""
7377
7378 #. type: textblock
7379 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7380 msgid "This command is not limited in the number of names that it can return."
7381 msgstr ""
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7385 msgid "The result list is not sorted."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:1297
7390 msgid "findfs-label"
7391 msgstr ""
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:1299
7395 #, no-wrap
7396 msgid ""
7397 " findfs-label label\n"
7398 "\n"
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7403 msgid ""
7404 "This command searches the filesystems and returns the one which has the "
7405 "given label.  An error is returned if no such filesystem can be found."
7406 msgstr ""
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:1305
7410 msgid "To find the label of a filesystem, use L</vfs-label>."
7411 msgstr ""
7412
7413 #. type: =head2
7414 #: ../fish/guestfish-actions.pod:1307
7415 msgid "findfs-uuid"
7416 msgstr ""
7417
7418 #. type: verbatim
7419 #: ../fish/guestfish-actions.pod:1309
7420 #, no-wrap
7421 msgid ""
7422 " findfs-uuid uuid\n"
7423 "\n"
7424 msgstr ""
7425
7426 #. type: textblock
7427 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7428 msgid ""
7429 "This command searches the filesystems and returns the one which has the "
7430 "given UUID.  An error is returned if no such filesystem can be found."
7431 msgstr ""
7432
7433 #. type: textblock
7434 #: ../fish/guestfish-actions.pod:1315
7435 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7436 msgstr ""
7437
7438 #. type: =head2
7439 #: ../fish/guestfish-actions.pod:1317
7440 msgid "fsck"
7441 msgstr ""
7442
7443 #. type: verbatim
7444 #: ../fish/guestfish-actions.pod:1319
7445 #, no-wrap
7446 msgid ""
7447 " fsck fstype device\n"
7448 "\n"
7449 msgstr ""
7450
7451 #. type: textblock
7452 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7453 msgid ""
7454 "This runs the filesystem checker (fsck) on C<device> which should have "
7455 "filesystem type C<fstype>."
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7460 msgid ""
7461 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7462 "codes from C<fsck>."
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7467 msgid "Multiple status codes can be summed together."
7468 msgstr ""
7469
7470 #. type: textblock
7471 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7472 msgid ""
7473 "A non-zero return code can mean \"success\", for example if errors have been "
7474 "corrected on the filesystem."
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
7479 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
7484 msgid ""
7485 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7486 msgstr ""
7487
7488 #. type: =head2
7489 #: ../fish/guestfish-actions.pod:1349
7490 msgid "get-append"
7491 msgstr ""
7492
7493 #. type: verbatim
7494 #: ../fish/guestfish-actions.pod:1351
7495 #, no-wrap
7496 msgid ""
7497 " get-append\n"
7498 "\n"
7499 msgstr ""
7500
7501 #. type: textblock
7502 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
7503 msgid ""
7504 "Return the additional kernel options which are added to the guest kernel "
7505 "command line."
7506 msgstr ""
7507
7508 #. type: textblock
7509 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
7510 msgid "If C<NULL> then no options are added."
7511 msgstr ""
7512
7513 #. type: =head2
7514 #: ../fish/guestfish-actions.pod:1358
7515 msgid "get-attach-method"
7516 msgstr ""
7517
7518 #. type: verbatim
7519 #: ../fish/guestfish-actions.pod:1360
7520 #, no-wrap
7521 msgid ""
7522 " get-attach-method\n"
7523 "\n"
7524 msgstr ""
7525
7526 #. type: textblock
7527 #: ../fish/guestfish-actions.pod:1362
7528 msgid "Return the current attach method.  See L</set-attach-method>."
7529 msgstr ""
7530
7531 #. type: =head2
7532 #: ../fish/guestfish-actions.pod:1364
7533 msgid "get-autosync"
7534 msgstr ""
7535
7536 #. type: verbatim
7537 #: ../fish/guestfish-actions.pod:1366
7538 #, no-wrap
7539 msgid ""
7540 " get-autosync\n"
7541 "\n"
7542 msgstr ""
7543
7544 #. type: textblock
7545 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
7546 msgid "Get the autosync flag."
7547 msgstr ""
7548
7549 #. type: =head2
7550 #: ../fish/guestfish-actions.pod:1370
7551 msgid "get-direct"
7552 msgstr ""
7553
7554 #. type: verbatim
7555 #: ../fish/guestfish-actions.pod:1372
7556 #, no-wrap
7557 msgid ""
7558 " get-direct\n"
7559 "\n"
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
7564 msgid "Return the direct appliance mode flag."
7565 msgstr ""
7566
7567 #. type: =head2
7568 #: ../fish/guestfish-actions.pod:1376
7569 msgid "get-e2label"
7570 msgstr ""
7571
7572 #. type: verbatim
7573 #: ../fish/guestfish-actions.pod:1378
7574 #, no-wrap
7575 msgid ""
7576 " get-e2label device\n"
7577 "\n"
7578 msgstr ""
7579
7580 #. type: textblock
7581 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
7582 msgid ""
7583 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:1383
7588 msgid ""
7589 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7590 "instead."
7591 msgstr ""
7592
7593 #. type: =head2
7594 #: ../fish/guestfish-actions.pod:1390
7595 msgid "get-e2uuid"
7596 msgstr ""
7597
7598 #. type: verbatim
7599 #: ../fish/guestfish-actions.pod:1392
7600 #, no-wrap
7601 msgid ""
7602 " get-e2uuid device\n"
7603 "\n"
7604 msgstr ""
7605
7606 #. type: textblock
7607 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
7608 msgid ""
7609 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7610 msgstr ""
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:1397
7614 msgid ""
7615 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7616 "instead."
7617 msgstr ""
7618
7619 #. type: =head2
7620 #: ../fish/guestfish-actions.pod:1404
7621 msgid "get-memsize"
7622 msgstr ""
7623
7624 #. type: verbatim
7625 #: ../fish/guestfish-actions.pod:1406
7626 #, no-wrap
7627 msgid ""
7628 " get-memsize\n"
7629 "\n"
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
7634 msgid ""
7635 "This gets the memory size in megabytes allocated to the qemu subprocess."
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:1411
7640 msgid ""
7641 "If L</set-memsize> was not called on this handle, and if "
7642 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7643 "value for memsize."
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7648 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
7649 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
7650 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
7651 msgid ""
7652 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7653 msgstr ""
7654
7655 #. type: =head2
7656 #: ../fish/guestfish-actions.pod:1418
7657 msgid "get-network"
7658 msgstr ""
7659
7660 #. type: verbatim
7661 #: ../fish/guestfish-actions.pod:1420
7662 #, no-wrap
7663 msgid ""
7664 " get-network\n"
7665 "\n"
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
7670 msgid "This returns the enable network flag."
7671 msgstr ""
7672
7673 #. type: =head2
7674 #: ../fish/guestfish-actions.pod:1424
7675 msgid "get-path"
7676 msgstr ""
7677
7678 #. type: verbatim
7679 #: ../fish/guestfish-actions.pod:1426
7680 #, no-wrap
7681 msgid ""
7682 " get-path\n"
7683 "\n"
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
7688 msgid "Return the current search path."
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
7693 msgid ""
7694 "This is always non-NULL.  If it wasn't set already, then this will return "
7695 "the default path."
7696 msgstr ""
7697
7698 #. type: =head2
7699 #: ../fish/guestfish-actions.pod:1433
7700 msgid "get-pgroup"
7701 msgstr ""
7702
7703 #. type: verbatim
7704 #: ../fish/guestfish-actions.pod:1435
7705 #, no-wrap
7706 msgid ""
7707 " get-pgroup\n"
7708 "\n"
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
7713 msgid "This returns the process group flag."
7714 msgstr ""
7715
7716 #. type: =head2
7717 #: ../fish/guestfish-actions.pod:1439
7718 msgid "get-pid"
7719 msgstr ""
7720
7721 #. type: =head2
7722 #: ../fish/guestfish-actions.pod:1441
7723 msgid "pid"
7724 msgstr ""
7725
7726 #. type: verbatim
7727 #: ../fish/guestfish-actions.pod:1443
7728 #, no-wrap
7729 msgid ""
7730 " get-pid\n"
7731 "\n"
7732 msgstr ""
7733
7734 #. type: textblock
7735 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
7736 msgid ""
7737 "Return the process ID of the qemu subprocess.  If there is no qemu "
7738 "subprocess, then this will return an error."
7739 msgstr ""
7740
7741 #. type: textblock
7742 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
7743 msgid "This is an internal call used for debugging and testing."
7744 msgstr ""
7745
7746 #. type: =head2
7747 #: ../fish/guestfish-actions.pod:1450
7748 msgid "get-qemu"
7749 msgstr ""
7750
7751 #. type: verbatim
7752 #: ../fish/guestfish-actions.pod:1452
7753 #, no-wrap
7754 msgid ""
7755 " get-qemu\n"
7756 "\n"
7757 msgstr ""
7758
7759 #. type: textblock
7760 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
7761 msgid "Return the current qemu binary."
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
7766 msgid ""
7767 "This is always non-NULL.  If it wasn't set already, then this will return "
7768 "the default qemu binary name."
7769 msgstr ""
7770
7771 #. type: =head2
7772 #: ../fish/guestfish-actions.pod:1459
7773 msgid "get-recovery-proc"
7774 msgstr ""
7775
7776 #. type: verbatim
7777 #: ../fish/guestfish-actions.pod:1461
7778 #, no-wrap
7779 msgid ""
7780 " get-recovery-proc\n"
7781 "\n"
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
7786 msgid "Return the recovery process enabled flag."
7787 msgstr ""
7788
7789 #. type: =head2
7790 #: ../fish/guestfish-actions.pod:1465
7791 msgid "get-selinux"
7792 msgstr ""
7793
7794 #. type: verbatim
7795 #: ../fish/guestfish-actions.pod:1467
7796 #, no-wrap
7797 msgid ""
7798 " get-selinux\n"
7799 "\n"
7800 msgstr ""
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:1469
7804 msgid ""
7805 "This returns the current setting of the selinux flag which is passed to the "
7806 "appliance at boot time.  See L</set-selinux>."
7807 msgstr ""
7808
7809 #. type: =head2
7810 #: ../fish/guestfish-actions.pod:1475
7811 msgid "get-smp"
7812 msgstr ""
7813
7814 #. type: verbatim
7815 #: ../fish/guestfish-actions.pod:1477
7816 #, no-wrap
7817 msgid ""
7818 " get-smp\n"
7819 "\n"
7820 msgstr ""
7821
7822 #. type: textblock
7823 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
7824 msgid "This returns the number of virtual CPUs assigned to the appliance."
7825 msgstr ""
7826
7827 #. type: =head2
7828 #: ../fish/guestfish-actions.pod:1481
7829 msgid "get-state"
7830 msgstr ""
7831
7832 #. type: verbatim
7833 #: ../fish/guestfish-actions.pod:1483
7834 #, no-wrap
7835 msgid ""
7836 " get-state\n"
7837 "\n"
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
7842 msgid ""
7843 "This returns the current state as an opaque integer.  This is only useful "
7844 "for printing debug and internal error messages."
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
7849 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
7850 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
7851 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
7852 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
7853 msgid "For more information on states, see L<guestfs(3)>."
7854 msgstr ""
7855
7856 #. type: =head2
7857 #: ../fish/guestfish-actions.pod:1490
7858 msgid "get-trace"
7859 msgstr ""
7860
7861 #. type: verbatim
7862 #: ../fish/guestfish-actions.pod:1492
7863 #, no-wrap
7864 msgid ""
7865 " get-trace\n"
7866 "\n"
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
7871 msgid "Return the command trace flag."
7872 msgstr ""
7873
7874 #. type: =head2
7875 #: ../fish/guestfish-actions.pod:1496
7876 msgid "get-umask"
7877 msgstr ""
7878
7879 #. type: verbatim
7880 #: ../fish/guestfish-actions.pod:1498
7881 #, no-wrap
7882 msgid ""
7883 " get-umask\n"
7884 "\n"
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:1500
7889 msgid ""
7890 "Return the current umask.  By default the umask is C<022> unless it has been "
7891 "set by calling L</umask>."
7892 msgstr ""
7893
7894 #. type: =head2
7895 #: ../fish/guestfish-actions.pod:1503
7896 msgid "get-verbose"
7897 msgstr ""
7898
7899 #. type: verbatim
7900 #: ../fish/guestfish-actions.pod:1505
7901 #, no-wrap
7902 msgid ""
7903 " get-verbose\n"
7904 "\n"
7905 msgstr ""
7906
7907 #. type: textblock
7908 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
7909 msgid "This returns the verbose messages flag."
7910 msgstr ""
7911
7912 #. type: =head2
7913 #: ../fish/guestfish-actions.pod:1509
7914 msgid "getcon"
7915 msgstr ""
7916
7917 #. type: verbatim
7918 #: ../fish/guestfish-actions.pod:1511
7919 #, no-wrap
7920 msgid ""
7921 " getcon\n"
7922 "\n"
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
7927 msgid "This gets the SELinux security context of the daemon."
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:1515
7932 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7933 msgstr ""
7934
7935 #. type: =head2
7936 #: ../fish/guestfish-actions.pod:1518
7937 msgid "getxattr"
7938 msgstr ""
7939
7940 #. type: verbatim
7941 #: ../fish/guestfish-actions.pod:1520
7942 #, no-wrap
7943 msgid ""
7944 " getxattr path name\n"
7945 "\n"
7946 msgstr ""
7947
7948 #. type: textblock
7949 #: ../fish/guestfish-actions.pod:1522
7950 msgid ""
7951 "Get a single extended attribute from file C<path> named C<name>.  This call "
7952 "follows symlinks.  If you want to lookup an extended attribute for the "
7953 "symlink itself, use L</lgetxattr>."
7954 msgstr ""
7955
7956 #. type: textblock
7957 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
7958 msgid ""
7959 "Normally it is better to get all extended attributes from a file in one go "
7960 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7961 "buggy and do not provide a way to list out attributes.  For these "
7962 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7963 "attributes you want in advance and call this function."
7964 msgstr ""
7965
7966 #. type: textblock
7967 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
7968 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
7969 msgid ""
7970 "Extended attribute values are blobs of binary data.  If there is no extended "
7971 "attribute named C<name>, this returns an error."
7972 msgstr ""
7973
7974 #. type: textblock
7975 #: ../fish/guestfish-actions.pod:1536
7976 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7977 msgstr ""
7978
7979 #. type: =head2
7980 #: ../fish/guestfish-actions.pod:1538
7981 msgid "getxattrs"
7982 msgstr ""
7983
7984 #. type: verbatim
7985 #: ../fish/guestfish-actions.pod:1540
7986 #, no-wrap
7987 msgid ""
7988 " getxattrs path\n"
7989 "\n"
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
7994 msgid ""
7995 "This call lists the extended attributes of the file or directory C<path>."
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8000 msgid ""
8001 "At the system call level, this is a combination of the L<listxattr(2)> and "
8002 "L<getxattr(2)> calls."
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1548
8007 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:1550
8012 msgid "glob-expand"
8013 msgstr ""
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:1552
8017 #, no-wrap
8018 msgid ""
8019 " glob-expand pattern\n"
8020 "\n"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8025 msgid ""
8026 "This command searches for all the pathnames matching C<pattern> according to "
8027 "the wildcard expansion rules used by the shell."
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8032 msgid ""
8033 "If no paths match, then this returns an empty list (note: not an error)."
8034 msgstr ""
8035
8036 #. type: textblock
8037 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8038 msgid ""
8039 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8040 "GLOB_BRACE>.  See that manual page for more details."
8041 msgstr ""
8042
8043 #. type: =head2
8044 #: ../fish/guestfish-actions.pod:1565
8045 msgid "grep"
8046 msgstr ""
8047
8048 #. type: verbatim
8049 #: ../fish/guestfish-actions.pod:1567
8050 #, no-wrap
8051 msgid ""
8052 " grep regex path\n"
8053 "\n"
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8058 msgid "This calls the external C<grep> program and returns the matching lines."
8059 msgstr ""
8060
8061 #. type: =head2
8062 #: ../fish/guestfish-actions.pod:1575
8063 msgid "grepi"
8064 msgstr ""
8065
8066 #. type: verbatim
8067 #: ../fish/guestfish-actions.pod:1577
8068 #, no-wrap
8069 msgid ""
8070 " grepi regex path\n"
8071 "\n"
8072 msgstr ""
8073
8074 #. type: textblock
8075 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8076 msgid ""
8077 "This calls the external C<grep -i> program and returns the matching lines."
8078 msgstr ""
8079
8080 #. type: =head2
8081 #: ../fish/guestfish-actions.pod:1585
8082 msgid "grub-install"
8083 msgstr ""
8084
8085 #. type: verbatim
8086 #: ../fish/guestfish-actions.pod:1587
8087 #, no-wrap
8088 msgid ""
8089 " grub-install root device\n"
8090 "\n"
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8095 msgid ""
8096 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8097 "with the root directory being C<root>."
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8102 msgid ""
8103 "There is currently no way in the API to install grub2, which is used by most "
8104 "modern Linux guests.  It is possible to run the grub2 command from the "
8105 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8106 msgstr ""
8107
8108 #. type: textblock
8109 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8110 msgid ""
8111 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8112 "compatible with itself, so this only works in rather narrow circumstances.  "
8113 "Careful testing with each guest version is advisable."
8114 msgstr ""
8115
8116 #. type: textblock
8117 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8118 msgid ""
8119 "If grub-install reports the error \"No suitable drive was found in the "
8120 "generated device map.\" it may be that you need to create a C</boot/grub/"
8121 "device.map> file first that contains the mapping between grub device names "
8122 "and Linux device names.  It is usually sufficient to create a file "
8123 "containing:"
8124 msgstr ""
8125
8126 #. type: verbatim
8127 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8128 #, no-wrap
8129 msgid ""
8130 " (hd0) /dev/vda\n"
8131 "\n"
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8136 msgid "replacing C</dev/vda> with the name of the installation device."
8137 msgstr ""
8138
8139 #. type: =head2
8140 #: ../fish/guestfish-actions.pod:1625
8141 msgid "head"
8142 msgstr ""
8143
8144 #. type: verbatim
8145 #: ../fish/guestfish-actions.pod:1627
8146 #, no-wrap
8147 msgid ""
8148 " head path\n"
8149 "\n"
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8154 msgid ""
8155 "This command returns up to the first 10 lines of a file as a list of strings."
8156 msgstr ""
8157
8158 #. type: =head2
8159 #: ../fish/guestfish-actions.pod:1635
8160 msgid "head-n"
8161 msgstr ""
8162
8163 #. type: verbatim
8164 #: ../fish/guestfish-actions.pod:1637
8165 #, no-wrap
8166 msgid ""
8167 " head-n nrlines path\n"
8168 "\n"
8169 msgstr ""
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8173 msgid ""
8174 "If the parameter C<nrlines> is a positive number, this returns the first "
8175 "C<nrlines> lines of the file C<path>."
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
8180 msgid ""
8181 "If the parameter C<nrlines> is a negative number, this returns lines from "
8182 "the file C<path>, excluding the last C<nrlines> lines."
8183 msgstr ""
8184
8185 #. type: textblock
8186 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
8187 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
8188 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8189 msgstr ""
8190
8191 #. type: =head2
8192 #: ../fish/guestfish-actions.pod:1650
8193 msgid "hexdump"
8194 msgstr ""
8195
8196 #. type: verbatim
8197 #: ../fish/guestfish-actions.pod:1652
8198 #, no-wrap
8199 msgid ""
8200 " hexdump path\n"
8201 "\n"
8202 msgstr ""
8203
8204 #. type: textblock
8205 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
8206 msgid ""
8207 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8208 "readable, canonical hex dump of the file."
8209 msgstr ""
8210
8211 #. type: =head2
8212 #: ../fish/guestfish-actions.pod:1660
8213 msgid "initrd-cat"
8214 msgstr ""
8215
8216 #. type: verbatim
8217 #: ../fish/guestfish-actions.pod:1662
8218 #, no-wrap
8219 msgid ""
8220 " initrd-cat initrdpath filename\n"
8221 "\n"
8222 msgstr ""
8223
8224 #. type: textblock
8225 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
8226 msgid ""
8227 "This command unpacks the file C<filename> from the initrd file called "
8228 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8229 "character."
8230 msgstr ""
8231
8232 #. type: textblock
8233 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
8234 msgid ""
8235 "For example, in guestfish you could use the following command to examine the "
8236 "boot script (usually called C</init>)  contained in a Linux initrd or "
8237 "initramfs image:"
8238 msgstr ""
8239
8240 #. type: verbatim
8241 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
8242 #, no-wrap
8243 msgid ""
8244 " initrd-cat /boot/initrd-<version>.img init\n"
8245 "\n"
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:1674
8250 msgid "See also L</initrd-list>."
8251 msgstr ""
8252
8253 #. type: =head2
8254 #: ../fish/guestfish-actions.pod:1679
8255 msgid "initrd-list"
8256 msgstr ""
8257
8258 #. type: verbatim
8259 #: ../fish/guestfish-actions.pod:1681
8260 #, no-wrap
8261 msgid ""
8262 " initrd-list path\n"
8263 "\n"
8264 msgstr ""
8265
8266 #. type: textblock
8267 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
8268 msgid "This command lists out files contained in an initrd."
8269 msgstr ""
8270
8271 #. type: textblock
8272 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
8273 msgid ""
8274 "The files are listed without any initial C</> character.  The files are "
8275 "listed in the order they appear (not necessarily alphabetical).  Directory "
8276 "names are listed as separate items."
8277 msgstr ""
8278
8279 #. type: textblock
8280 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
8281 msgid ""
8282 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8283 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8284 "files)."
8285 msgstr ""
8286
8287 #. type: =head2
8288 #: ../fish/guestfish-actions.pod:1693
8289 msgid "inotify-add-watch"
8290 msgstr ""
8291
8292 #. type: verbatim
8293 #: ../fish/guestfish-actions.pod:1695
8294 #, no-wrap
8295 msgid ""
8296 " inotify-add-watch path mask\n"
8297 "\n"
8298 msgstr ""
8299
8300 #. type: textblock
8301 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
8302 msgid "Watch C<path> for the events listed in C<mask>."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
8307 msgid ""
8308 "Note that if C<path> is a directory then events within that directory are "
8309 "watched, but this does I<not> happen recursively (in subdirectories)."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
8314 msgid ""
8315 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8316 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8317 msgstr ""
8318
8319 #. type: =head2
8320 #: ../fish/guestfish-actions.pod:1707
8321 msgid "inotify-close"
8322 msgstr ""
8323
8324 #. type: verbatim
8325 #: ../fish/guestfish-actions.pod:1709
8326 #, no-wrap
8327 msgid ""
8328 " inotify-close\n"
8329 "\n"
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8334 msgid ""
8335 "This closes the inotify handle which was previously opened by inotify_init.  "
8336 "It removes all watches, throws away any pending events, and deallocates all "
8337 "resources."
8338 msgstr ""
8339
8340 #. type: =head2
8341 #: ../fish/guestfish-actions.pod:1715
8342 msgid "inotify-files"
8343 msgstr ""
8344
8345 #. type: verbatim
8346 #: ../fish/guestfish-actions.pod:1717
8347 #, no-wrap
8348 msgid ""
8349 " inotify-files\n"
8350 "\n"
8351 msgstr ""
8352
8353 #. type: textblock
8354 #: ../fish/guestfish-actions.pod:1719
8355 msgid ""
8356 "This function is a helpful wrapper around L</inotify-read> which just "
8357 "returns a list of pathnames of objects that were touched.  The returned "
8358 "pathnames are sorted and deduplicated."
8359 msgstr ""
8360
8361 #. type: =head2
8362 #: ../fish/guestfish-actions.pod:1723
8363 msgid "inotify-init"
8364 msgstr ""
8365
8366 #. type: verbatim
8367 #: ../fish/guestfish-actions.pod:1725
8368 #, no-wrap
8369 msgid ""
8370 " inotify-init maxevents\n"
8371 "\n"
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8376 msgid ""
8377 "This command creates a new inotify handle.  The inotify subsystem can be "
8378 "used to notify events which happen to objects in the guest filesystem."
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:1731
8383 msgid ""
8384 "C<maxevents> is the maximum number of events which will be queued up between "
8385 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8386 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8387 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8388 "but records the fact that it threw them away by setting a flag "
8389 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8390 msgstr ""
8391
8392 #. type: textblock
8393 #: ../fish/guestfish-actions.pod:1741
8394 msgid ""
8395 "Before any events are generated, you have to add some watches to the "
8396 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8397 "L</inotify-watch-all>."
8398 msgstr ""
8399
8400 #. type: textblock
8401 #: ../fish/guestfish-actions.pod:1747
8402 msgid ""
8403 "Queued up events should be read periodically by calling L</inotify-read> (or "
8404 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8405 "If you don't read the events out often enough then you risk the internal "
8406 "queue overflowing."
8407 msgstr ""
8408
8409 #. type: textblock
8410 #: ../fish/guestfish-actions.pod:1754
8411 msgid ""
8412 "The handle should be closed after use by calling L</inotify-close>.  This "
8413 "also removes any watches automatically."
8414 msgstr ""
8415
8416 #. type: textblock
8417 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
8418 msgid ""
8419 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8420 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8421 "that there is one global inotify handle per libguestfs instance."
8422 msgstr ""
8423
8424 #. type: =head2
8425 #: ../fish/guestfish-actions.pod:1763
8426 msgid "inotify-read"
8427 msgstr ""
8428
8429 #. type: verbatim
8430 #: ../fish/guestfish-actions.pod:1765
8431 #, no-wrap
8432 msgid ""
8433 " inotify-read\n"
8434 "\n"
8435 msgstr ""
8436
8437 #. type: textblock
8438 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
8439 msgid ""
8440 "Return the complete queue of events that have happened since the previous "
8441 "read call."
8442 msgstr ""
8443
8444 #. type: textblock
8445 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
8446 msgid "If no events have happened, this returns an empty list."
8447 msgstr ""
8448
8449 #. type: textblock
8450 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
8451 msgid ""
8452 "I<Note>: In order to make sure that all events have been read, you must call "
8453 "this function repeatedly until it returns an empty list.  The reason is that "
8454 "the call will read events up to the maximum appliance-to-host message size "
8455 "and leave remaining events in the queue."
8456 msgstr ""
8457
8458 #. type: =head2
8459 #: ../fish/guestfish-actions.pod:1778
8460 msgid "inotify-rm-watch"
8461 msgstr ""
8462
8463 #. type: verbatim
8464 #: ../fish/guestfish-actions.pod:1780
8465 #, no-wrap
8466 msgid ""
8467 " inotify-rm-watch wd\n"
8468 "\n"
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1782
8473 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8474 msgstr ""
8475
8476 #. type: =head2
8477 #: ../fish/guestfish-actions.pod:1785
8478 msgid "inspect-get-arch"
8479 msgstr ""
8480
8481 #. type: verbatim
8482 #: ../fish/guestfish-actions.pod:1787
8483 #, no-wrap
8484 msgid ""
8485 " inspect-get-arch root\n"
8486 "\n"
8487 msgstr ""
8488
8489 #. type: textblock
8490 #: ../fish/guestfish-actions.pod:1789
8491 msgid ""
8492 "This returns the architecture of the inspected operating system.  The "
8493 "possible return values are listed under L</file-architecture>."
8494 msgstr ""
8495
8496 #. type: textblock
8497 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
8498 msgid ""
8499 "If the architecture could not be determined, then the string C<unknown> is "
8500 "returned."
8501 msgstr ""
8502
8503 #. type: textblock
8504 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8505 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8506 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8507 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8508 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8509 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8510 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8511 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8512 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
8513 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
8514 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
8515 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
8516 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
8517 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
8518 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
8519 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
8520 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
8521 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8522 msgstr ""
8523
8524 #. type: =head2
8525 #: ../fish/guestfish-actions.pod:1798
8526 msgid "inspect-get-distro"
8527 msgstr ""
8528
8529 #. type: verbatim
8530 #: ../fish/guestfish-actions.pod:1800
8531 #, no-wrap
8532 msgid ""
8533 " inspect-get-distro root\n"
8534 "\n"
8535 msgstr ""
8536
8537 #. type: textblock
8538 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
8539 msgid ""
8540 "This returns the distro (distribution) of the inspected operating system."
8541 msgstr ""
8542
8543 #. type: textblock
8544 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
8545 msgid "Currently defined distros are:"
8546 msgstr ""
8547
8548 #. type: =item
8549 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
8550 msgid "\"archlinux\""
8551 msgstr ""
8552
8553 #. type: textblock
8554 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
8555 msgid "Arch Linux."
8556 msgstr ""
8557
8558 #. type: =item
8559 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
8560 msgid "\"centos\""
8561 msgstr ""
8562
8563 #. type: textblock
8564 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
8565 msgid "CentOS."
8566 msgstr ""
8567
8568 #. type: =item
8569 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
8570 msgid "\"debian\""
8571 msgstr ""
8572
8573 #. type: textblock
8574 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
8575 msgid "Debian."
8576 msgstr ""
8577
8578 #. type: =item
8579 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
8580 msgid "\"fedora\""
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
8585 msgid "Fedora."
8586 msgstr ""
8587
8588 #. type: =item
8589 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
8590 msgid "\"gentoo\""
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
8595 msgid "Gentoo."
8596 msgstr ""
8597
8598 #. type: =item
8599 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
8600 msgid "\"linuxmint\""
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
8605 msgid "Linux Mint."
8606 msgstr ""
8607
8608 #. type: =item
8609 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
8610 msgid "\"mandriva\""
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
8615 msgid "Mandriva."
8616 msgstr ""
8617
8618 #. type: =item
8619 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
8620 msgid "\"meego\""
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
8625 msgid "MeeGo."
8626 msgstr ""
8627
8628 #. type: =item
8629 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
8630 msgid "\"pardus\""
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
8635 msgid "Pardus."
8636 msgstr ""
8637
8638 #. type: =item
8639 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
8640 msgid "\"redhat-based\""
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
8645 msgid "Some Red Hat-derived distro."
8646 msgstr ""
8647
8648 #. type: =item
8649 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
8650 msgid "\"rhel\""
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
8655 msgid "Red Hat Enterprise Linux."
8656 msgstr ""
8657
8658 #. type: =item
8659 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
8660 msgid "\"scientificlinux\""
8661 msgstr ""
8662
8663 #. type: textblock
8664 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
8665 msgid "Scientific Linux."
8666 msgstr ""
8667
8668 #. type: =item
8669 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
8670 msgid "\"slackware\""
8671 msgstr ""
8672
8673 #. type: textblock
8674 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
8675 msgid "Slackware."
8676 msgstr ""
8677
8678 #. type: =item
8679 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
8680 msgid "\"ttylinux\""
8681 msgstr ""
8682
8683 #. type: textblock
8684 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
8685 msgid "ttylinux."
8686 msgstr ""
8687
8688 #. type: =item
8689 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
8690 msgid "\"ubuntu\""
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
8695 msgid "Ubuntu."
8696 msgstr ""
8697
8698 #. type: =item
8699 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8700 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
8701 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8702 msgid "\"unknown\""
8703 msgstr ""
8704
8705 #. type: textblock
8706 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
8707 msgid "The distro could not be determined."
8708 msgstr ""
8709
8710 #. type: =item
8711 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8712 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
8713 msgid "\"windows\""
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
8718 msgid ""
8719 "Windows does not have distributions.  This string is returned if the OS type "
8720 "is Windows."
8721 msgstr ""
8722
8723 #. type: textblock
8724 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8725 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
8726 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
8727 msgid ""
8728 "Future versions of libguestfs may return other strings here.  The caller "
8729 "should be prepared to handle any string."
8730 msgstr ""
8731
8732 #. type: =head2
8733 #: ../fish/guestfish-actions.pod:1885
8734 msgid "inspect-get-drive-mappings"
8735 msgstr ""
8736
8737 #. type: verbatim
8738 #: ../fish/guestfish-actions.pod:1887
8739 #, no-wrap
8740 msgid ""
8741 " inspect-get-drive-mappings root\n"
8742 "\n"
8743 msgstr ""
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
8747 msgid ""
8748 "This call is useful for Windows which uses a primitive system of assigning "
8749 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8750 "Windows Registry to find out how disks/partitions are mapped to drive "
8751 "letters, and returns a hash table as in the example below:"
8752 msgstr ""
8753
8754 #. type: verbatim
8755 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
8756 #, no-wrap
8757 msgid ""
8758 " C      =>     /dev/vda2\n"
8759 " E      =>     /dev/vdb1\n"
8760 " F      =>     /dev/vdc1\n"
8761 "\n"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
8766 msgid ""
8767 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8768 "and just contains the drive letter, without the customary colon separator "
8769 "character."
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
8774 msgid ""
8775 "In future we may support other operating systems that also used drive "
8776 "letters, but the keys for those might not be case insensitive and might be "
8777 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8778 "C<h1> etc."
8779 msgstr ""
8780
8781 #. type: textblock
8782 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
8783 msgid ""
8784 "For Windows guests, currently only hard drive mappings are returned.  "
8785 "Removable disks (eg. DVD-ROMs) are ignored."
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
8790 msgid ""
8791 "For guests that do not use drive mappings, or if the drive mappings could "
8792 "not be determined, this returns an empty hash table."
8793 msgstr ""
8794
8795 #. type: textblock
8796 #: ../fish/guestfish-actions.pod:1914
8797 msgid ""
8798 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8799 "get-mountpoints>, L</inspect-get-filesystems>."
8800 msgstr ""
8801
8802 #. type: =head2
8803 #: ../fish/guestfish-actions.pod:1918
8804 msgid "inspect-get-filesystems"
8805 msgstr ""
8806
8807 #. type: verbatim
8808 #: ../fish/guestfish-actions.pod:1920
8809 #, no-wrap
8810 msgid ""
8811 " inspect-get-filesystems root\n"
8812 "\n"
8813 msgstr ""
8814
8815 #. type: textblock
8816 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
8817 msgid ""
8818 "This returns a list of all the filesystems that we think are associated with "
8819 "this operating system.  This includes the root filesystem, other ordinary "
8820 "filesystems, and non-mounted devices like swap partitions."
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
8825 msgid ""
8826 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8827 "to be shared between operating systems."
8828 msgstr ""
8829
8830 #. type: textblock
8831 #: ../fish/guestfish-actions.pod:1930
8832 msgid ""
8833 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8834 "get-mountpoints>."
8835 msgstr ""
8836
8837 #. type: =head2
8838 #: ../fish/guestfish-actions.pod:1933
8839 msgid "inspect-get-format"
8840 msgstr ""
8841
8842 #. type: verbatim
8843 #: ../fish/guestfish-actions.pod:1935
8844 #, no-wrap
8845 msgid ""
8846 " inspect-get-format root\n"
8847 "\n"
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
8852 msgid ""
8853 "This returns the format of the inspected operating system.  You can use it "
8854 "to detect install images, live CDs and similar."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
8859 msgid "Currently defined formats are:"
8860 msgstr ""
8861
8862 #. type: =item
8863 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
8864 msgid "\"installed\""
8865 msgstr ""
8866
8867 #. type: textblock
8868 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
8869 msgid "This is an installed operating system."
8870 msgstr ""
8871
8872 #. type: =item
8873 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
8874 msgid "\"installer\""
8875 msgstr ""
8876
8877 #. type: textblock
8878 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
8879 msgid ""
8880 "The disk image being inspected is not an installed operating system, but a "
8881 "I<bootable> install disk, live CD, or similar."
8882 msgstr ""
8883
8884 #. type: textblock
8885 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
8886 msgid "The format of this disk image is not known."
8887 msgstr ""
8888
8889 #. type: =head2
8890 #: ../fish/guestfish-actions.pod:1964
8891 msgid "inspect-get-hostname"
8892 msgstr ""
8893
8894 #. type: verbatim
8895 #: ../fish/guestfish-actions.pod:1966
8896 #, no-wrap
8897 msgid ""
8898 " inspect-get-hostname root\n"
8899 "\n"
8900 msgstr ""
8901
8902 #. type: textblock
8903 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
8904 msgid ""
8905 "This function returns the hostname of the operating system as found by "
8906 "inspection of the guest's configuration files."
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
8911 msgid ""
8912 "If the hostname could not be determined, then the string C<unknown> is "
8913 "returned."
8914 msgstr ""
8915
8916 #. type: =head2
8917 #: ../fish/guestfish-actions.pod:1976
8918 msgid "inspect-get-icon"
8919 msgstr ""
8920
8921 #. type: verbatim
8922 #: ../fish/guestfish-actions.pod:1978
8923 #, no-wrap
8924 msgid ""
8925 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8926 "\n"
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
8931 msgid ""
8932 "This function returns an icon corresponding to the inspected operating "
8933 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8934 "to PNG if necessary)."
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
8939 msgid ""
8940 "If it was not possible to get an icon this function returns a zero-length "
8941 "(non-NULL) buffer.  I<Callers must check for this case>."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
8946 msgid ""
8947 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8948 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8949 "this file will be returned.  You can disable favicons by passing the "
8950 "optional C<favicon> boolean as false (default is true)."
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
8955 msgid ""
8956 "If finding the favicon fails, then we look in other places in the guest for "
8957 "a suitable icon."
8958 msgstr ""
8959
8960 #. type: textblock
8961 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
8962 msgid ""
8963 "If the optional C<highquality> boolean is true then only high quality icons "
8964 "are returned, which means only icons of high resolution with an alpha "
8965 "channel.  The default (false) is to return any icon we can, even if it is of "
8966 "substandard quality."
8967 msgstr ""
8968
8969 #. type: textblock
8970 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
8971 msgid ""
8972 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8973 "before you call this, since it needs to read information from the guest "
8974 "filesystem during the call."
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
8979 msgid ""
8980 "B<Security:> The icon data comes from the untrusted guest, and should be "
8981 "treated with caution.  PNG files have been known to contain exploits.  "
8982 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8983 "trying to process or display the icon."
8984 msgstr ""
8985
8986 #. type: textblock
8987 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
8988 msgid ""
8989 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8990 "tries to return the largest, highest quality icon available.  The "
8991 "application must scale the icon to the required size."
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
8996 msgid ""
8997 "Extracting icons from Windows guests requires the external C<wrestool> "
8998 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8999 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9000 "installed separately."
9001 msgstr ""
9002
9003 #. type: textblock
9004 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
9005 msgid ""
9006 "Operating system icons are usually trademarks.  Seek legal advice before "
9007 "using trademarks in applications."
9008 msgstr ""
9009
9010 #. type: =head2
9011 #: ../fish/guestfish-actions.pod:2042
9012 msgid "inspect-get-major-version"
9013 msgstr ""
9014
9015 #. type: verbatim
9016 #: ../fish/guestfish-actions.pod:2044
9017 #, no-wrap
9018 msgid ""
9019 " inspect-get-major-version root\n"
9020 "\n"
9021 msgstr ""
9022
9023 #. type: textblock
9024 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
9025 msgid ""
9026 "This returns the major version number of the inspected operating system."
9027 msgstr ""
9028
9029 #. type: textblock
9030 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
9031 msgid ""
9032 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9033 "popular public names used by the operating system.  Notably the operating "
9034 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9035 "1).  You can find out the real versions corresponding to releases of Windows "
9036 "by consulting Wikipedia or MSDN."
9037 msgstr ""
9038
9039 #. type: textblock
9040 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9041 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
9042 msgid "If the version could not be determined, then C<0> is returned."
9043 msgstr ""
9044
9045 #. type: =head2
9046 #: ../fish/guestfish-actions.pod:2060
9047 msgid "inspect-get-minor-version"
9048 msgstr ""
9049
9050 #. type: verbatim
9051 #: ../fish/guestfish-actions.pod:2062
9052 #, no-wrap
9053 msgid ""
9054 " inspect-get-minor-version root\n"
9055 "\n"
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
9060 msgid ""
9061 "This returns the minor version number of the inspected operating system."
9062 msgstr ""
9063
9064 #. type: textblock
9065 #: ../fish/guestfish-actions.pod:2069
9066 msgid ""
9067 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9068 "get-major-version>."
9069 msgstr ""
9070
9071 #. type: =head2
9072 #: ../fish/guestfish-actions.pod:2072
9073 msgid "inspect-get-mountpoints"
9074 msgstr ""
9075
9076 #. type: verbatim
9077 #: ../fish/guestfish-actions.pod:2074
9078 #, no-wrap
9079 msgid ""
9080 " inspect-get-mountpoints root\n"
9081 "\n"
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
9086 msgid ""
9087 "This returns a hash of where we think the filesystems associated with this "
9088 "operating system should be mounted.  Callers should note that this is at "
9089 "best an educated guess made by reading configuration files such as C</etc/"
9090 "fstab>.  I<In particular note> that this may return filesystems which are "
9091 "non-existent or not mountable and callers should be prepared to handle or "
9092 "ignore failures if they try to mount them."
9093 msgstr ""
9094
9095 #. type: textblock
9096 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
9097 msgid ""
9098 "Each element in the returned hashtable has a key which is the path of the "
9099 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9100 "mounted there (eg. C</dev/sda1>)."
9101 msgstr ""
9102
9103 #. type: textblock
9104 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
9105 msgid ""
9106 "Non-mounted devices such as swap devices are I<not> returned in this list."
9107 msgstr ""
9108
9109 #. type: textblock
9110 #: ../fish/guestfish-actions.pod:2093
9111 msgid ""
9112 "For operating systems like Windows which still use drive letters, this call "
9113 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9114 "information about the mapping of drive letters to partitions, see L</inspect-"
9115 "get-drive-mappings>."
9116 msgstr ""
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:2099
9120 msgid ""
9121 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9122 "get-filesystems>."
9123 msgstr ""
9124
9125 #. type: =head2
9126 #: ../fish/guestfish-actions.pod:2102
9127 msgid "inspect-get-package-format"
9128 msgstr ""
9129
9130 #. type: verbatim
9131 #: ../fish/guestfish-actions.pod:2104
9132 #, no-wrap
9133 msgid ""
9134 " inspect-get-package-format root\n"
9135 "\n"
9136 msgstr ""
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:2106
9140 msgid ""
9141 "This function and L</inspect-get-package-management> return the package "
9142 "format and package management tool used by the inspected operating system.  "
9143 "For example for Fedora these functions would return C<rpm> (package format) "
9144 "and C<yum> (package management)."
9145 msgstr ""
9146
9147 #. type: textblock
9148 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
9149 msgid ""
9150 "This returns the string C<unknown> if we could not determine the package "
9151 "format I<or> if the operating system does not have a real packaging system "
9152 "(eg. Windows)."
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
9157 msgid ""
9158 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9159 "Future versions of libguestfs may return other strings."
9160 msgstr ""
9161
9162 #. type: =head2
9163 #: ../fish/guestfish-actions.pod:2121
9164 msgid "inspect-get-package-management"
9165 msgstr ""
9166
9167 #. type: verbatim
9168 #: ../fish/guestfish-actions.pod:2123
9169 #, no-wrap
9170 msgid ""
9171 " inspect-get-package-management root\n"
9172 "\n"
9173 msgstr ""
9174
9175 #. type: textblock
9176 #: ../fish/guestfish-actions.pod:2125
9177 msgid ""
9178 "L</inspect-get-package-format> and this function return the package format "
9179 "and package management tool used by the inspected operating system.  For "
9180 "example for Fedora these functions would return C<rpm> (package format) and "
9181 "C<yum> (package management)."
9182 msgstr ""
9183
9184 #. type: textblock
9185 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
9186 msgid ""
9187 "This returns the string C<unknown> if we could not determine the package "
9188 "management tool I<or> if the operating system does not have a real packaging "
9189 "system (eg. Windows)."
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
9194 msgid ""
9195 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9196 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9197 "libguestfs may return other strings."
9198 msgstr ""
9199
9200 #. type: =head2
9201 #: ../fish/guestfish-actions.pod:2142
9202 msgid "inspect-get-product-name"
9203 msgstr ""
9204
9205 #. type: verbatim
9206 #: ../fish/guestfish-actions.pod:2144
9207 #, no-wrap
9208 msgid ""
9209 " inspect-get-product-name root\n"
9210 "\n"
9211 msgstr ""
9212
9213 #. type: textblock
9214 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
9215 msgid ""
9216 "This returns the product name of the inspected operating system.  The "
9217 "product name is generally some freeform string which can be displayed to the "
9218 "user, but should not be parsed by programs."
9219 msgstr ""
9220
9221 #. type: textblock
9222 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
9223 msgid ""
9224 "If the product name could not be determined, then the string C<unknown> is "
9225 "returned."
9226 msgstr ""
9227
9228 #. type: =head2
9229 #: ../fish/guestfish-actions.pod:2156
9230 msgid "inspect-get-product-variant"
9231 msgstr ""
9232
9233 #. type: verbatim
9234 #: ../fish/guestfish-actions.pod:2158
9235 #, no-wrap
9236 msgid ""
9237 " inspect-get-product-variant root\n"
9238 "\n"
9239 msgstr ""
9240
9241 #. type: textblock
9242 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
9243 msgid "This returns the product variant of the inspected operating system."
9244 msgstr ""
9245
9246 #. type: textblock
9247 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
9248 msgid ""
9249 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9250 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9251 "is usually a string such as C<Client> or C<Server> (other values are "
9252 "possible).  This can be used to distinguish consumer and enterprise versions "
9253 "of Windows that have the same version number (for example, Windows 7 and "
9254 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9255 "the latter is C<Server>)."
9256 msgstr ""
9257
9258 #. type: textblock
9259 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
9260 msgid ""
9261 "For enterprise Linux guests, in future we intend this to return the product "
9262 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9263 "implemented at present."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
9268 msgid ""
9269 "If the product variant could not be determined, then the string C<unknown> "
9270 "is returned."
9271 msgstr ""
9272
9273 #. type: textblock
9274 #: ../fish/guestfish-actions.pod:2179
9275 msgid ""
9276 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9277 "get-product-name>, L</inspect-get-major-version>."
9278 msgstr ""
9279
9280 #. type: =head2
9281 #: ../fish/guestfish-actions.pod:2183
9282 msgid "inspect-get-roots"
9283 msgstr ""
9284
9285 #. type: verbatim
9286 #: ../fish/guestfish-actions.pod:2185
9287 #, no-wrap
9288 msgid ""
9289 " inspect-get-roots\n"
9290 "\n"
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../fish/guestfish-actions.pod:2187
9295 msgid ""
9296 "This function is a convenient way to get the list of root devices, as "
9297 "returned from a previous call to L</inspect-os>, but without redoing the "
9298 "whole inspection process."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:2191
9303 msgid ""
9304 "This returns an empty list if either no root devices were found or the "
9305 "caller has not called L</inspect-os>."
9306 msgstr ""
9307
9308 #. type: =head2
9309 #: ../fish/guestfish-actions.pod:2196
9310 msgid "inspect-get-type"
9311 msgstr ""
9312
9313 #. type: verbatim
9314 #: ../fish/guestfish-actions.pod:2198
9315 #, no-wrap
9316 msgid ""
9317 " inspect-get-type root\n"
9318 "\n"
9319 msgstr ""
9320
9321 #. type: textblock
9322 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
9323 msgid ""
9324 "This returns the type of the inspected operating system.  Currently defined "
9325 "types are:"
9326 msgstr ""
9327
9328 #. type: =item
9329 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
9330 msgid "\"linux\""
9331 msgstr ""
9332
9333 #. type: textblock
9334 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
9335 msgid "Any Linux-based operating system."
9336 msgstr ""
9337
9338 #. type: textblock
9339 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
9340 msgid "Any Microsoft Windows operating system."
9341 msgstr ""
9342
9343 #. type: =item
9344 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
9345 msgid "\"freebsd\""
9346 msgstr ""
9347
9348 #. type: textblock
9349 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
9350 msgid "FreeBSD."
9351 msgstr ""
9352
9353 #. type: textblock
9354 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
9355 msgid "The operating system type could not be determined."
9356 msgstr ""
9357
9358 #. type: =head2
9359 #: ../fish/guestfish-actions.pod:2228
9360 msgid "inspect-get-windows-current-control-set"
9361 msgstr ""
9362
9363 #. type: verbatim
9364 #: ../fish/guestfish-actions.pod:2230
9365 #, no-wrap
9366 msgid ""
9367 " inspect-get-windows-current-control-set root\n"
9368 "\n"
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
9373 msgid ""
9374 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9375 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9376 msgstr ""
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
9380 msgid ""
9381 "This call assumes that the guest is Windows and that the Registry could be "
9382 "examined by inspection.  If this is not the case then an error is returned."
9383 msgstr ""
9384
9385 #. type: =head2
9386 #: ../fish/guestfish-actions.pod:2241
9387 msgid "inspect-get-windows-systemroot"
9388 msgstr ""
9389
9390 #. type: verbatim
9391 #: ../fish/guestfish-actions.pod:2243
9392 #, no-wrap
9393 msgid ""
9394 " inspect-get-windows-systemroot root\n"
9395 "\n"
9396 msgstr ""
9397
9398 #. type: textblock
9399 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
9400 msgid ""
9401 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9402 "is a directory path such as C</WINDOWS>."
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
9407 msgid ""
9408 "This call assumes that the guest is Windows and that the systemroot could be "
9409 "determined by inspection.  If this is not the case then an error is returned."
9410 msgstr ""
9411
9412 #. type: =head2
9413 #: ../fish/guestfish-actions.pod:2254
9414 msgid "inspect-is-live"
9415 msgstr ""
9416
9417 #. type: verbatim
9418 #: ../fish/guestfish-actions.pod:2256
9419 #, no-wrap
9420 msgid ""
9421 " inspect-is-live root\n"
9422 "\n"
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../fish/guestfish-actions.pod:2258
9427 msgid ""
9428 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9429 "then this returns true if a live image was detected on the disk."
9430 msgstr ""
9431
9432 #. type: =head2
9433 #: ../fish/guestfish-actions.pod:2264
9434 msgid "inspect-is-multipart"
9435 msgstr ""
9436
9437 #. type: verbatim
9438 #: ../fish/guestfish-actions.pod:2266
9439 #, no-wrap
9440 msgid ""
9441 " inspect-is-multipart root\n"
9442 "\n"
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:2268
9447 msgid ""
9448 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9449 "then this returns true if the disk is part of a set."
9450 msgstr ""
9451
9452 #. type: =head2
9453 #: ../fish/guestfish-actions.pod:2274
9454 msgid "inspect-is-netinst"
9455 msgstr ""
9456
9457 #. type: verbatim
9458 #: ../fish/guestfish-actions.pod:2276
9459 #, no-wrap
9460 msgid ""
9461 " inspect-is-netinst root\n"
9462 "\n"
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:2278
9467 msgid ""
9468 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9469 "then this returns true if the disk is a network installer, ie. not a self-"
9470 "contained install CD but one which is likely to require network access to "
9471 "complete the install."
9472 msgstr ""
9473
9474 #. type: =head2
9475 #: ../fish/guestfish-actions.pod:2286
9476 msgid "inspect-list-applications"
9477 msgstr ""
9478
9479 #. type: verbatim
9480 #: ../fish/guestfish-actions.pod:2288
9481 #, no-wrap
9482 msgid ""
9483 " inspect-list-applications root\n"
9484 "\n"
9485 msgstr ""
9486
9487 #. type: textblock
9488 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
9489 msgid "Return the list of applications installed in the operating system."
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:2292
9494 msgid ""
9495 "I<Note:> This call works differently from other parts of the inspection "
9496 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9497 "then mount up the disks, before calling this.  Listing applications is a "
9498 "significantly more difficult operation which requires access to the full "
9499 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9500 "are just returning data cached in the libguestfs handle, this call actually "
9501 "reads parts of the mounted filesystems during the call."
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
9506 msgid ""
9507 "This returns an empty list if the inspection code was not able to determine "
9508 "the list of applications."
9509 msgstr ""
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
9513 msgid "The application structure contains the following fields:"
9514 msgstr ""
9515
9516 #. type: =item
9517 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
9518 msgid "C<app_name>"
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
9523 msgid ""
9524 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9525 "guests, this is the package name."
9526 msgstr ""
9527
9528 #. type: =item
9529 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
9530 msgid "C<app_display_name>"
9531 msgstr ""
9532
9533 #. type: textblock
9534 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
9535 msgid ""
9536 "The display name of the application, sometimes localized to the install "
9537 "language of the guest operating system."
9538 msgstr ""
9539
9540 #. type: textblock
9541 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
9542 msgid ""
9543 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9544 "to display something can use C<app_name> instead."
9545 msgstr ""
9546
9547 #. type: =item
9548 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
9549 msgid "C<app_epoch>"
9550 msgstr ""
9551
9552 #. type: textblock
9553 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
9554 msgid ""
9555 "For package managers which use epochs, this contains the epoch of the "
9556 "package (an integer).  If unavailable, this is returned as C<0>."
9557 msgstr ""
9558
9559 #. type: =item
9560 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
9561 msgid "C<app_version>"
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
9566 msgid ""
9567 "The version string of the application or package.  If unavailable this is "
9568 "returned as an empty string C<\"\">."
9569 msgstr ""
9570
9571 #. type: =item
9572 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
9573 msgid "C<app_release>"
9574 msgstr ""
9575
9576 #. type: textblock
9577 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
9578 msgid ""
9579 "The release string of the application or package, for package managers that "
9580 "use this.  If unavailable this is returned as an empty string C<\"\">."
9581 msgstr ""
9582
9583 #. type: =item
9584 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
9585 msgid "C<app_install_path>"
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
9590 msgid ""
9591 "The installation path of the application (on operating systems such as "
9592 "Windows which use installation paths).  This path is in the format used by "
9593 "the guest operating system, it is not a libguestfs path."
9594 msgstr ""
9595
9596 #. type: textblock
9597 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
9598 msgid "If unavailable this is returned as an empty string C<\"\">."
9599 msgstr ""
9600
9601 #. type: =item
9602 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
9603 msgid "C<app_trans_path>"
9604 msgstr ""
9605
9606 #. type: textblock
9607 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
9608 msgid ""
9609 "The install path translated into a libguestfs path.  If unavailable this is "
9610 "returned as an empty string C<\"\">."
9611 msgstr ""
9612
9613 #. type: =item
9614 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
9615 msgid "C<app_publisher>"
9616 msgstr ""
9617
9618 #. type: textblock
9619 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
9620 msgid ""
9621 "The name of the publisher of the application, for package managers that use "
9622 "this.  If unavailable this is returned as an empty string C<\"\">."
9623 msgstr ""
9624
9625 #. type: =item
9626 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
9627 msgid "C<app_url>"
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
9632 msgid ""
9633 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9634 "returned as an empty string C<\"\">."
9635 msgstr ""
9636
9637 #. type: =item
9638 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
9639 msgid "C<app_source_package>"
9640 msgstr ""
9641
9642 #. type: textblock
9643 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
9644 msgid ""
9645 "For packaging systems which support this, the name of the source package.  "
9646 "If unavailable this is returned as an empty string C<\"\">."
9647 msgstr ""
9648
9649 #. type: =item
9650 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
9651 msgid "C<app_summary>"
9652 msgstr ""
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
9656 msgid ""
9657 "A short (usually one line) description of the application or package.  If "
9658 "unavailable this is returned as an empty string C<\"\">."
9659 msgstr ""
9660
9661 #. type: =item
9662 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
9663 msgid "C<app_description>"
9664 msgstr ""
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
9668 msgid ""
9669 "A longer description of the application or package.  If unavailable this is "
9670 "returned as an empty string C<\"\">."
9671 msgstr ""
9672
9673 #. type: =head2
9674 #: ../fish/guestfish-actions.pod:2382
9675 msgid "inspect-os"
9676 msgstr ""
9677
9678 #. type: verbatim
9679 #: ../fish/guestfish-actions.pod:2384
9680 #, no-wrap
9681 msgid ""
9682 " inspect-os\n"
9683 "\n"
9684 msgstr ""
9685
9686 #. type: textblock
9687 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
9688 msgid ""
9689 "This function uses other libguestfs functions and certain heuristics to "
9690 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9691 "for operating systems."
9692 msgstr ""
9693
9694 #. type: textblock
9695 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
9696 msgid "The list returned is empty if no operating systems were found."
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
9701 msgid ""
9702 "If one operating system was found, then this returns a list with a single "
9703 "element, which is the name of the root filesystem of this operating system.  "
9704 "It is also possible for this function to return a list containing more than "
9705 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9706 "element being the root filesystem of one of the operating systems."
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../fish/guestfish-actions.pod:2399
9711 msgid ""
9712 "You can pass the root string(s) returned to other L</inspect-get-*> "
9713 "functions in order to query further information about each operating system, "
9714 "such as the name and version."
9715 msgstr ""
9716
9717 #. type: textblock
9718 #: ../fish/guestfish-actions.pod:2404
9719 msgid ""
9720 "This function uses other libguestfs features such as L</mount-ro> and L</"
9721 "umount-all> in order to mount and unmount filesystems and look at the "
9722 "contents.  This should be called with no disks currently mounted.  The "
9723 "function may also use Augeas, so any existing Augeas handle will be closed."
9724 msgstr ""
9725
9726 #. type: textblock
9727 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
9728 msgid ""
9729 "This function cannot decrypt encrypted disks.  The caller must do that first "
9730 "(supplying the necessary keys) if the disk is encrypted."
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9735 #: ../fish/guestfish-actions.pod:2673
9736 msgid "See also L</list-filesystems>."
9737 msgstr ""
9738
9739 #. type: =head2
9740 #: ../fish/guestfish-actions.pod:2418
9741 msgid "is-blockdev"
9742 msgstr ""
9743
9744 #. type: verbatim
9745 #: ../fish/guestfish-actions.pod:2420
9746 #, no-wrap
9747 msgid ""
9748 " is-blockdev path\n"
9749 "\n"
9750 msgstr ""
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
9754 msgid ""
9755 "This returns C<true> if and only if there is a block device with the given "
9756 "C<path> name."
9757 msgstr ""
9758
9759 #. type: textblock
9760 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
9761 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
9762 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
9763 #: ../fish/guestfish-actions.pod:2524
9764 msgid "See also L</stat>."
9765 msgstr ""
9766
9767 #. type: =head2
9768 #: ../fish/guestfish-actions.pod:2427
9769 msgid "is-busy"
9770 msgstr ""
9771
9772 #. type: verbatim
9773 #: ../fish/guestfish-actions.pod:2429
9774 #, no-wrap
9775 msgid ""
9776 " is-busy\n"
9777 "\n"
9778 msgstr ""
9779
9780 #. type: textblock
9781 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
9782 msgid ""
9783 "This returns true iff this handle is busy processing a command (in the "
9784 "C<BUSY> state)."
9785 msgstr ""
9786
9787 #. type: =head2
9788 #: ../fish/guestfish-actions.pod:2436
9789 msgid "is-chardev"
9790 msgstr ""
9791
9792 #. type: verbatim
9793 #: ../fish/guestfish-actions.pod:2438
9794 #, no-wrap
9795 msgid ""
9796 " is-chardev path\n"
9797 "\n"
9798 msgstr ""
9799
9800 #. type: textblock
9801 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
9802 msgid ""
9803 "This returns C<true> if and only if there is a character device with the "
9804 "given C<path> name."
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../fish/guestfish-actions.pod:2445
9809 msgid "is-config"
9810 msgstr ""
9811
9812 #. type: verbatim
9813 #: ../fish/guestfish-actions.pod:2447
9814 #, no-wrap
9815 msgid ""
9816 " is-config\n"
9817 "\n"
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
9822 msgid ""
9823 "This returns true iff this handle is being configured (in the C<CONFIG> "
9824 "state)."
9825 msgstr ""
9826
9827 #. type: =head2
9828 #: ../fish/guestfish-actions.pod:2454
9829 msgid "is-dir"
9830 msgstr ""
9831
9832 #. type: verbatim
9833 #: ../fish/guestfish-actions.pod:2456
9834 #, no-wrap
9835 msgid ""
9836 " is-dir path\n"
9837 "\n"
9838 msgstr ""
9839
9840 #. type: textblock
9841 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
9842 msgid ""
9843 "This returns C<true> if and only if there is a directory with the given "
9844 "C<path> name.  Note that it returns false for other objects like files."
9845 msgstr ""
9846
9847 #. type: =head2
9848 #: ../fish/guestfish-actions.pod:2464
9849 msgid "is-fifo"
9850 msgstr ""
9851
9852 #. type: verbatim
9853 #: ../fish/guestfish-actions.pod:2466
9854 #, no-wrap
9855 msgid ""
9856 " is-fifo path\n"
9857 "\n"
9858 msgstr ""
9859
9860 #. type: textblock
9861 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
9862 msgid ""
9863 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9864 "given C<path> name."
9865 msgstr ""
9866
9867 #. type: =head2
9868 #: ../fish/guestfish-actions.pod:2473
9869 msgid "is-file"
9870 msgstr ""
9871
9872 #. type: verbatim
9873 #: ../fish/guestfish-actions.pod:2475
9874 #, no-wrap
9875 msgid ""
9876 " is-file path\n"
9877 "\n"
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
9882 msgid ""
9883 "This returns C<true> if and only if there is a regular file with the given "
9884 "C<path> name.  Note that it returns false for other objects like directories."
9885 msgstr ""
9886
9887 #. type: =head2
9888 #: ../fish/guestfish-actions.pod:2483
9889 msgid "is-launching"
9890 msgstr ""
9891
9892 #. type: verbatim
9893 #: ../fish/guestfish-actions.pod:2485
9894 #, no-wrap
9895 msgid ""
9896 " is-launching\n"
9897 "\n"
9898 msgstr ""
9899
9900 #. type: textblock
9901 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
9902 msgid ""
9903 "This returns true iff this handle is launching the subprocess (in the "
9904 "C<LAUNCHING> state)."
9905 msgstr ""
9906
9907 #. type: =head2
9908 #: ../fish/guestfish-actions.pod:2492
9909 msgid "is-lv"
9910 msgstr ""
9911
9912 #. type: verbatim
9913 #: ../fish/guestfish-actions.pod:2494
9914 #, no-wrap
9915 msgid ""
9916 " is-lv device\n"
9917 "\n"
9918 msgstr ""
9919
9920 #. type: textblock
9921 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
9922 msgid ""
9923 "This command tests whether C<device> is a logical volume, and returns true "
9924 "iff this is the case."
9925 msgstr ""
9926
9927 #. type: =head2
9928 #: ../fish/guestfish-actions.pod:2499
9929 msgid "is-ready"
9930 msgstr ""
9931
9932 #. type: verbatim
9933 #: ../fish/guestfish-actions.pod:2501
9934 #, no-wrap
9935 msgid ""
9936 " is-ready\n"
9937 "\n"
9938 msgstr ""
9939
9940 #. type: textblock
9941 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
9942 msgid ""
9943 "This returns true iff this handle is ready to accept commands (in the "
9944 "C<READY> state)."
9945 msgstr ""
9946
9947 #. type: =head2
9948 #: ../fish/guestfish-actions.pod:2508
9949 msgid "is-socket"
9950 msgstr ""
9951
9952 #. type: verbatim
9953 #: ../fish/guestfish-actions.pod:2510
9954 #, no-wrap
9955 msgid ""
9956 " is-socket path\n"
9957 "\n"
9958 msgstr ""
9959
9960 #. type: textblock
9961 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
9962 msgid ""
9963 "This returns C<true> if and only if there is a Unix domain socket with the "
9964 "given C<path> name."
9965 msgstr ""
9966
9967 #. type: =head2
9968 #: ../fish/guestfish-actions.pod:2517
9969 msgid "is-symlink"
9970 msgstr ""
9971
9972 #. type: verbatim
9973 #: ../fish/guestfish-actions.pod:2519
9974 #, no-wrap
9975 msgid ""
9976 " is-symlink path\n"
9977 "\n"
9978 msgstr ""
9979
9980 #. type: textblock
9981 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
9982 msgid ""
9983 "This returns C<true> if and only if there is a symbolic link with the given "
9984 "C<path> name."
9985 msgstr ""
9986
9987 #. type: =head2
9988 #: ../fish/guestfish-actions.pod:2526
9989 msgid "is-zero"
9990 msgstr ""
9991
9992 #. type: verbatim
9993 #: ../fish/guestfish-actions.pod:2528
9994 #, no-wrap
9995 msgid ""
9996 " is-zero path\n"
9997 "\n"
9998 msgstr ""
9999
10000 #. type: textblock
10001 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
10002 msgid ""
10003 "This returns true iff the file exists and the file is empty or it contains "
10004 "all zero bytes."
10005 msgstr ""
10006
10007 #. type: =head2
10008 #: ../fish/guestfish-actions.pod:2533
10009 msgid "is-zero-device"
10010 msgstr ""
10011
10012 #. type: verbatim
10013 #: ../fish/guestfish-actions.pod:2535
10014 #, no-wrap
10015 msgid ""
10016 " is-zero-device device\n"
10017 "\n"
10018 msgstr ""
10019
10020 #. type: textblock
10021 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
10022 msgid "This returns true iff the device exists and contains all zero bytes."
10023 msgstr ""
10024
10025 #. type: textblock
10026 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
10027 msgid "Note that for large devices this can take a long time to run."
10028 msgstr ""
10029
10030 #. type: =head2
10031 #: ../fish/guestfish-actions.pod:2541
10032 msgid "kill-subprocess"
10033 msgstr ""
10034
10035 #. type: verbatim
10036 #: ../fish/guestfish-actions.pod:2543
10037 #, no-wrap
10038 msgid ""
10039 " kill-subprocess\n"
10040 "\n"
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
10045 msgid "This kills the qemu subprocess.  You should never need to call this."
10046 msgstr ""
10047
10048 #. type: =head2
10049 #: ../fish/guestfish-actions.pod:2547
10050 msgid "launch"
10051 msgstr ""
10052
10053 #. type: =head2
10054 #: ../fish/guestfish-actions.pod:2549
10055 msgid "run"
10056 msgstr ""
10057
10058 #. type: verbatim
10059 #: ../fish/guestfish-actions.pod:2551
10060 #, no-wrap
10061 msgid ""
10062 " launch\n"
10063 "\n"
10064 msgstr ""
10065
10066 #. type: textblock
10067 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
10068 msgid ""
10069 "Internally libguestfs is implemented by running a virtual machine using "
10070 "L<qemu(1)>."
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
10075 msgid ""
10076 "You should call this after configuring the handle (eg. adding drives) but "
10077 "before performing any actions."
10078 msgstr ""
10079
10080 #. type: =head2
10081 #: ../fish/guestfish-actions.pod:2559
10082 msgid "lchown"
10083 msgstr ""
10084
10085 #. type: verbatim
10086 #: ../fish/guestfish-actions.pod:2561
10087 #, no-wrap
10088 msgid ""
10089 " lchown owner group path\n"
10090 "\n"
10091 msgstr ""
10092
10093 #. type: textblock
10094 #: ../fish/guestfish-actions.pod:2563
10095 msgid ""
10096 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10097 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10098 "target."
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:2571
10103 msgid "lgetxattr"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:2573
10108 #, no-wrap
10109 msgid ""
10110 " lgetxattr path name\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
10116 msgid ""
10117 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10118 "is a symlink, then this call returns an extended attribute from the symlink."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:2589
10123 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10124 msgstr ""
10125
10126 #. type: =head2
10127 #: ../fish/guestfish-actions.pod:2591
10128 msgid "lgetxattrs"
10129 msgstr ""
10130
10131 #. type: verbatim
10132 #: ../fish/guestfish-actions.pod:2593
10133 #, no-wrap
10134 msgid ""
10135 " lgetxattrs path\n"
10136 "\n"
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:2595
10141 msgid ""
10142 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10143 "it returns the extended attributes of the link itself."
10144 msgstr ""
10145
10146 #. type: =head2
10147 #: ../fish/guestfish-actions.pod:2599
10148 msgid "list-9p"
10149 msgstr ""
10150
10151 #. type: verbatim
10152 #: ../fish/guestfish-actions.pod:2601
10153 #, no-wrap
10154 msgid ""
10155 " list-9p\n"
10156 "\n"
10157 msgstr ""
10158
10159 #. type: textblock
10160 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
10161 msgid ""
10162 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10163 "returned."
10164 msgstr ""
10165
10166 #. type: =head2
10167 #: ../fish/guestfish-actions.pod:2606
10168 msgid "list-devices"
10169 msgstr ""
10170
10171 #. type: verbatim
10172 #: ../fish/guestfish-actions.pod:2608
10173 #, no-wrap
10174 msgid ""
10175 " list-devices\n"
10176 "\n"
10177 msgstr ""
10178
10179 #. type: textblock
10180 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
10181 msgid "List all the block devices."
10182 msgstr ""
10183
10184 #. type: textblock
10185 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
10186 msgid "The full block device names are returned, eg. C</dev/sda>."
10187 msgstr ""
10188
10189 #. type: =head2
10190 #: ../fish/guestfish-actions.pod:2616
10191 msgid "list-dm-devices"
10192 msgstr ""
10193
10194 #. type: verbatim
10195 #: ../fish/guestfish-actions.pod:2618
10196 #, no-wrap
10197 msgid ""
10198 " list-dm-devices\n"
10199 "\n"
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
10204 msgid "List all device mapper devices."
10205 msgstr ""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:2622
10209 msgid ""
10210 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10211 "previous call to L</luks-open>."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2625
10216 msgid ""
10217 "Device mapper devices which correspond to logical volumes are I<not> "
10218 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10219 msgstr ""
10220
10221 #. type: =head2
10222 #: ../fish/guestfish-actions.pod:2629
10223 msgid "list-filesystems"
10224 msgstr ""
10225
10226 #. type: verbatim
10227 #: ../fish/guestfish-actions.pod:2631
10228 #, no-wrap
10229 msgid ""
10230 " list-filesystems\n"
10231 "\n"
10232 msgstr ""
10233
10234 #. type: textblock
10235 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
10236 msgid ""
10237 "This inspection command looks for filesystems on partitions, block devices "
10238 "and logical volumes, returning a list of devices containing filesystems and "
10239 "their type."
10240 msgstr ""
10241
10242 #. type: textblock
10243 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
10244 msgid ""
10245 "The return value is a hash, where the keys are the devices containing "
10246 "filesystems, and the values are the filesystem types.  For example:"
10247 msgstr ""
10248
10249 #. type: verbatim
10250 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
10251 #, no-wrap
10252 msgid ""
10253 " \"/dev/sda1\" => \"ntfs\"\n"
10254 " \"/dev/sda2\" => \"ext2\"\n"
10255 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10256 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10257 "\n"
10258 msgstr ""
10259
10260 #. type: textblock
10261 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
10262 msgid ""
10263 "The value can have the special value \"unknown\", meaning the content of the "
10264 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10265 msgstr ""
10266
10267 #. type: textblock
10268 #: ../fish/guestfish-actions.pod:2650
10269 msgid ""
10270 "This command runs other libguestfs commands, which might include L</mount> "
10271 "and L</umount>, and therefore you should use this soon after launch and only "
10272 "when nothing is mounted."
10273 msgstr ""
10274
10275 #. type: textblock
10276 #: ../fish/guestfish-actions.pod:2654
10277 msgid ""
10278 "Not all of the filesystems returned will be mountable.  In particular, swap "
10279 "partitions are returned in the list.  Also this command does not check that "
10280 "each filesystem found is valid and mountable, and some filesystems might be "
10281 "mountable but require special options.  Filesystems may not all belong to a "
10282 "single logical operating system (use L</inspect-os> to look for OSes)."
10283 msgstr ""
10284
10285 #. type: =head2
10286 #: ../fish/guestfish-actions.pod:2662
10287 msgid "list-partitions"
10288 msgstr ""
10289
10290 #. type: verbatim
10291 #: ../fish/guestfish-actions.pod:2664
10292 #, no-wrap
10293 msgid ""
10294 " list-partitions\n"
10295 "\n"
10296 msgstr ""
10297
10298 #. type: textblock
10299 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
10300 msgid "List all the partitions detected on all block devices."
10301 msgstr ""
10302
10303 #. type: textblock
10304 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
10305 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2670
10310 msgid ""
10311 "This does not return logical volumes.  For that you will need to call L</"
10312 "lvs>."
10313 msgstr ""
10314
10315 #. type: =head2
10316 #: ../fish/guestfish-actions.pod:2675
10317 msgid "ll"
10318 msgstr ""
10319
10320 #. type: verbatim
10321 #: ../fish/guestfish-actions.pod:2677
10322 #, no-wrap
10323 msgid ""
10324 " ll directory\n"
10325 "\n"
10326 msgstr ""
10327
10328 #. type: textblock
10329 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
10330 msgid ""
10331 "List the files in C<directory> (relative to the root directory, there is no "
10332 "cwd) in the format of 'ls -la'."
10333 msgstr ""
10334
10335 #. type: textblock
10336 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
10337 msgid ""
10338 "This command is mostly useful for interactive sessions.  It is I<not> "
10339 "intended that you try to parse the output string."
10340 msgstr ""
10341
10342 #. type: =head2
10343 #: ../fish/guestfish-actions.pod:2685
10344 msgid "ln"
10345 msgstr ""
10346
10347 #. type: verbatim
10348 #: ../fish/guestfish-actions.pod:2687
10349 #, no-wrap
10350 msgid ""
10351 " ln target linkname\n"
10352 "\n"
10353 msgstr ""
10354
10355 #. type: textblock
10356 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
10357 msgid "This command creates a hard link using the C<ln> command."
10358 msgstr ""
10359
10360 #. type: =head2
10361 #: ../fish/guestfish-actions.pod:2691
10362 msgid "ln-f"
10363 msgstr ""
10364
10365 #. type: verbatim
10366 #: ../fish/guestfish-actions.pod:2693
10367 #, no-wrap
10368 msgid ""
10369 " ln-f target linkname\n"
10370 "\n"
10371 msgstr ""
10372
10373 #. type: textblock
10374 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
10375 msgid ""
10376 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10377 "option removes the link (C<linkname>) if it exists already."
10378 msgstr ""
10379
10380 #. type: =head2
10381 #: ../fish/guestfish-actions.pod:2698
10382 msgid "ln-s"
10383 msgstr ""
10384
10385 #. type: verbatim
10386 #: ../fish/guestfish-actions.pod:2700
10387 #, no-wrap
10388 msgid ""
10389 " ln-s target linkname\n"
10390 "\n"
10391 msgstr ""
10392
10393 #. type: textblock
10394 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
10395 msgid "This command creates a symbolic link using the C<ln -s> command."
10396 msgstr ""
10397
10398 #. type: =head2
10399 #: ../fish/guestfish-actions.pod:2704
10400 msgid "ln-sf"
10401 msgstr ""
10402
10403 #. type: verbatim
10404 #: ../fish/guestfish-actions.pod:2706
10405 #, no-wrap
10406 msgid ""
10407 " ln-sf target linkname\n"
10408 "\n"
10409 msgstr ""
10410
10411 #. type: textblock
10412 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
10413 msgid ""
10414 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10415 "option removes the link (C<linkname>) if it exists already."
10416 msgstr ""
10417
10418 #. type: =head2
10419 #: ../fish/guestfish-actions.pod:2711
10420 msgid "lremovexattr"
10421 msgstr ""
10422
10423 #. type: verbatim
10424 #: ../fish/guestfish-actions.pod:2713
10425 #, no-wrap
10426 msgid ""
10427 " lremovexattr xattr path\n"
10428 "\n"
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../fish/guestfish-actions.pod:2715
10433 msgid ""
10434 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10435 "it removes an extended attribute of the link itself."
10436 msgstr ""
10437
10438 #. type: =head2
10439 #: ../fish/guestfish-actions.pod:2719
10440 msgid "ls"
10441 msgstr ""
10442
10443 #. type: verbatim
10444 #: ../fish/guestfish-actions.pod:2721
10445 #, no-wrap
10446 msgid ""
10447 " ls directory\n"
10448 "\n"
10449 msgstr ""
10450
10451 #. type: textblock
10452 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
10453 msgid ""
10454 "List the files in C<directory> (relative to the root directory, there is no "
10455 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:2727
10460 msgid ""
10461 "This command is mostly useful for interactive sessions.  Programs should "
10462 "probably use L</readdir> instead."
10463 msgstr ""
10464
10465 #. type: =head2
10466 #: ../fish/guestfish-actions.pod:2730
10467 msgid "lsetxattr"
10468 msgstr ""
10469
10470 #. type: verbatim
10471 #: ../fish/guestfish-actions.pod:2732
10472 #, no-wrap
10473 msgid ""
10474 " lsetxattr xattr val vallen path\n"
10475 "\n"
10476 msgstr ""
10477
10478 #. type: textblock
10479 #: ../fish/guestfish-actions.pod:2734
10480 msgid ""
10481 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10482 "sets an extended attribute of the link itself."
10483 msgstr ""
10484
10485 #. type: =head2
10486 #: ../fish/guestfish-actions.pod:2738
10487 msgid "lstat"
10488 msgstr ""
10489
10490 #. type: verbatim
10491 #: ../fish/guestfish-actions.pod:2740
10492 #, no-wrap
10493 msgid ""
10494 " lstat path\n"
10495 "\n"
10496 msgstr ""
10497
10498 #. type: textblock
10499 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
10500 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
10501 msgid "Returns file information for the given C<path>."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:2744
10506 msgid ""
10507 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10508 "the link is stat-ed, not the file it refers to."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
10513 msgid "This is the same as the C<lstat(2)> system call."
10514 msgstr ""
10515
10516 #. type: =head2
10517 #: ../fish/guestfish-actions.pod:2750
10518 msgid "lstatlist"
10519 msgstr ""
10520
10521 #. type: verbatim
10522 #: ../fish/guestfish-actions.pod:2752
10523 #, no-wrap
10524 msgid ""
10525 " lstatlist path 'names ...'\n"
10526 "\n"
10527 msgstr ""
10528
10529 #. type: textblock
10530 #: ../fish/guestfish-actions.pod:2754
10531 msgid ""
10532 "This call allows you to perform the L</lstat> operation on multiple files, "
10533 "where all files are in the directory C<path>.  C<names> is the list of files "
10534 "from this directory."
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
10539 msgid ""
10540 "On return you get a list of stat structs, with a one-to-one correspondence "
10541 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10542 "then the C<ino> field of that structure is set to C<-1>."
10543 msgstr ""
10544
10545 #. type: textblock
10546 #: ../fish/guestfish-actions.pod:2763
10547 msgid ""
10548 "This call is intended for programs that want to efficiently list a directory "
10549 "contents without making many round-trips.  See also L</lxattrlist> for a "
10550 "similarly efficient call for getting extended attributes.  Very long "
10551 "directory listings might cause the protocol message size to be exceeded, "
10552 "causing this call to fail.  The caller must split up such requests into "
10553 "smaller groups of names."
10554 msgstr ""
10555
10556 #. type: =head2
10557 #: ../fish/guestfish-actions.pod:2771
10558 msgid "luks-add-key"
10559 msgstr ""
10560
10561 #. type: verbatim
10562 #: ../fish/guestfish-actions.pod:2773
10563 #, no-wrap
10564 msgid ""
10565 " luks-add-key device keyslot\n"
10566 "\n"
10567 msgstr ""
10568
10569 #. type: textblock
10570 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
10571 msgid ""
10572 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10573 "existing key, and is used to access the device.  C<newkey> is the new key to "
10574 "add.  C<keyslot> is the key slot that will be replaced."
10575 msgstr ""
10576
10577 #. type: textblock
10578 #: ../fish/guestfish-actions.pod:2780
10579 msgid ""
10580 "Note that if C<keyslot> already contains a key, then this command will "
10581 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10586 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10587 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10588 msgid ""
10589 "This command has one or more key or passphrase parameters.  Guestfish will "
10590 "prompt for these separately."
10591 msgstr ""
10592
10593 #. type: =head2
10594 #: ../fish/guestfish-actions.pod:2787
10595 msgid "luks-close"
10596 msgstr ""
10597
10598 #. type: verbatim
10599 #: ../fish/guestfish-actions.pod:2789
10600 #, no-wrap
10601 msgid ""
10602 " luks-close device\n"
10603 "\n"
10604 msgstr ""
10605
10606 #. type: textblock
10607 #: ../fish/guestfish-actions.pod:2791
10608 msgid ""
10609 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10610 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10611 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10612 "block device."
10613 msgstr ""
10614
10615 #. type: =head2
10616 #: ../fish/guestfish-actions.pod:2797
10617 msgid "luks-format"
10618 msgstr ""
10619
10620 #. type: verbatim
10621 #: ../fish/guestfish-actions.pod:2799
10622 #, no-wrap
10623 msgid ""
10624 " luks-format device keyslot\n"
10625 "\n"
10626 msgstr ""
10627
10628 #. type: textblock
10629 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
10630 msgid ""
10631 "This command erases existing data on C<device> and formats the device as a "
10632 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10633 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10638 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
10639 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
10640 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
10641 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
10642 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
10643 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
10644 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
10645 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
10646 msgid ""
10647 "B<This command is dangerous.  Without careful use you can easily destroy all "
10648 "your data>."
10649 msgstr ""
10650
10651 #. type: =head2
10652 #: ../fish/guestfish-actions.pod:2812
10653 msgid "luks-format-cipher"
10654 msgstr ""
10655
10656 #. type: verbatim
10657 #: ../fish/guestfish-actions.pod:2814
10658 #, no-wrap
10659 msgid ""
10660 " luks-format-cipher device keyslot cipher\n"
10661 "\n"
10662 msgstr ""
10663
10664 #. type: textblock
10665 #: ../fish/guestfish-actions.pod:2816
10666 msgid ""
10667 "This command is the same as L</luks-format> but it also allows you to set "
10668 "the C<cipher> used."
10669 msgstr ""
10670
10671 #. type: =head2
10672 #: ../fish/guestfish-actions.pod:2825
10673 msgid "luks-kill-slot"
10674 msgstr ""
10675
10676 #. type: verbatim
10677 #: ../fish/guestfish-actions.pod:2827
10678 #, no-wrap
10679 msgid ""
10680 " luks-kill-slot device keyslot\n"
10681 "\n"
10682 msgstr ""
10683
10684 #. type: textblock
10685 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
10686 msgid ""
10687 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10688 "device C<device>.  C<key> must be one of the I<other> keys."
10689 msgstr ""
10690
10691 #. type: =head2
10692 #: ../fish/guestfish-actions.pod:2836
10693 msgid "luks-open"
10694 msgstr ""
10695
10696 #. type: verbatim
10697 #: ../fish/guestfish-actions.pod:2838
10698 #, no-wrap
10699 msgid ""
10700 " luks-open device mapname\n"
10701 "\n"
10702 msgstr ""
10703
10704 #. type: textblock
10705 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
10706 msgid ""
10707 "This command opens a block device which has been encrypted according to the "
10708 "Linux Unified Key Setup (LUKS) standard."
10709 msgstr ""
10710
10711 #. type: textblock
10712 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
10713 msgid "C<device> is the encrypted block device or partition."
10714 msgstr ""
10715
10716 #. type: textblock
10717 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
10718 msgid ""
10719 "The caller must supply one of the keys associated with the LUKS block "
10720 "device, in the C<key> parameter."
10721 msgstr ""
10722
10723 #. type: textblock
10724 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
10725 msgid ""
10726 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10727 "writes to this block device are decrypted from and encrypted to the "
10728 "underlying C<device> respectively."
10729 msgstr ""
10730
10731 #. type: textblock
10732 #: ../fish/guestfish-actions.pod:2852
10733 msgid ""
10734 "If this block device contains LVM volume groups, then calling L</vgscan> "
10735 "followed by L</vg-activate-all> will make them visible."
10736 msgstr ""
10737
10738 #. type: textblock
10739 #: ../fish/guestfish-actions.pod:2856
10740 msgid "Use L</list-dm-devices> to list all device mapper devices."
10741 msgstr ""
10742
10743 #. type: =head2
10744 #: ../fish/guestfish-actions.pod:2862
10745 msgid "luks-open-ro"
10746 msgstr ""
10747
10748 #. type: verbatim
10749 #: ../fish/guestfish-actions.pod:2864
10750 #, no-wrap
10751 msgid ""
10752 " luks-open-ro device mapname\n"
10753 "\n"
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../fish/guestfish-actions.pod:2866
10758 msgid ""
10759 "This is the same as L</luks-open> except that a read-only mapping is created."
10760 msgstr ""
10761
10762 #. type: =head2
10763 #: ../fish/guestfish-actions.pod:2872
10764 msgid "lvcreate"
10765 msgstr ""
10766
10767 #. type: verbatim
10768 #: ../fish/guestfish-actions.pod:2874
10769 #, no-wrap
10770 msgid ""
10771 " lvcreate logvol volgroup mbytes\n"
10772 "\n"
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
10777 msgid ""
10778 "This creates an LVM logical volume called C<logvol> on the volume group "
10779 "C<volgroup>, with C<size> megabytes."
10780 msgstr ""
10781
10782 #. type: =head2
10783 #: ../fish/guestfish-actions.pod:2879
10784 msgid "lvm-canonical-lv-name"
10785 msgstr ""
10786
10787 #. type: verbatim
10788 #: ../fish/guestfish-actions.pod:2881
10789 #, no-wrap
10790 msgid ""
10791 " lvm-canonical-lv-name lvname\n"
10792 "\n"
10793 msgstr ""
10794
10795 #. type: textblock
10796 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
10797 msgid ""
10798 "This converts alternative naming schemes for LVs that you might find to the "
10799 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10800 "LV>."
10801 msgstr ""
10802
10803 #. type: textblock
10804 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
10805 msgid ""
10806 "This command returns an error if the C<lvname> parameter does not refer to a "
10807 "logical volume."
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2890
10812 msgid "See also L</is-lv>."
10813 msgstr ""
10814
10815 #. type: =head2
10816 #: ../fish/guestfish-actions.pod:2892
10817 msgid "lvm-clear-filter"
10818 msgstr ""
10819
10820 #. type: verbatim
10821 #: ../fish/guestfish-actions.pod:2894
10822 #, no-wrap
10823 msgid ""
10824 " lvm-clear-filter\n"
10825 "\n"
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../fish/guestfish-actions.pod:2896
10830 msgid ""
10831 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10832 "block device."
10833 msgstr ""
10834
10835 #. type: textblock
10836 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
10837 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
10838 msgid ""
10839 "This command also clears the LVM cache and performs a volume group scan."
10840 msgstr ""
10841
10842 #. type: =head2
10843 #: ../fish/guestfish-actions.pod:2902
10844 msgid "lvm-remove-all"
10845 msgstr ""
10846
10847 #. type: verbatim
10848 #: ../fish/guestfish-actions.pod:2904
10849 #, no-wrap
10850 msgid ""
10851 " lvm-remove-all\n"
10852 "\n"
10853 msgstr ""
10854
10855 #. type: textblock
10856 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
10857 msgid ""
10858 "This command removes all LVM logical volumes, volume groups and physical "
10859 "volumes."
10860 msgstr ""
10861
10862 #. type: =head2
10863 #: ../fish/guestfish-actions.pod:2912
10864 msgid "lvm-set-filter"
10865 msgstr ""
10866
10867 #. type: verbatim
10868 #: ../fish/guestfish-actions.pod:2914
10869 #, no-wrap
10870 msgid ""
10871 " lvm-set-filter 'devices ...'\n"
10872 "\n"
10873 msgstr ""
10874
10875 #. type: textblock
10876 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
10877 msgid ""
10878 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10879 "block devices in the list C<devices>, and will ignore all other attached "
10880 "block devices."
10881 msgstr ""
10882
10883 #. type: textblock
10884 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
10885 msgid ""
10886 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10887 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10888 "there are two types of duplication possible: either cloned PVs/VGs which "
10889 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10890 "same name.  In normal operation you cannot create this situation, but you "
10891 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10892 "inside the LVM metadata."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
10897 msgid "You can filter whole block devices or individual partitions."
10898 msgstr ""
10899
10900 #. type: textblock
10901 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
10902 msgid ""
10903 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10904 "filesystem), even if you are not filtering out that VG."
10905 msgstr ""
10906
10907 #. type: =head2
10908 #: ../fish/guestfish-actions.pod:2939
10909 msgid "lvremove"
10910 msgstr ""
10911
10912 #. type: verbatim
10913 #: ../fish/guestfish-actions.pod:2941
10914 #, no-wrap
10915 msgid ""
10916 " lvremove device\n"
10917 "\n"
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
10922 msgid ""
10923 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10924 "LV, such as C</dev/VG/LV>."
10925 msgstr ""
10926
10927 #. type: textblock
10928 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
10929 msgid ""
10930 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10931 "dev/VG>."
10932 msgstr ""
10933
10934 #. type: =head2
10935 #: ../fish/guestfish-actions.pod:2949
10936 msgid "lvrename"
10937 msgstr ""
10938
10939 #. type: verbatim
10940 #: ../fish/guestfish-actions.pod:2951
10941 #, no-wrap
10942 msgid ""
10943 " lvrename logvol newlogvol\n"
10944 "\n"
10945 msgstr ""
10946
10947 #. type: textblock
10948 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
10949 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10950 msgstr ""
10951
10952 #. type: =head2
10953 #: ../fish/guestfish-actions.pod:2955
10954 msgid "lvresize"
10955 msgstr ""
10956
10957 #. type: verbatim
10958 #: ../fish/guestfish-actions.pod:2957
10959 #, no-wrap
10960 msgid ""
10961 " lvresize device mbytes\n"
10962 "\n"
10963 msgstr ""
10964
10965 #. type: textblock
10966 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
10967 msgid ""
10968 "This resizes (expands or shrinks) an existing LVM logical volume to "
10969 "C<mbytes>.  When reducing, data in the reduced part is lost."
10970 msgstr ""
10971
10972 #. type: =head2
10973 #: ../fish/guestfish-actions.pod:2963
10974 msgid "lvresize-free"
10975 msgstr ""
10976
10977 #. type: verbatim
10978 #: ../fish/guestfish-actions.pod:2965
10979 #, no-wrap
10980 msgid ""
10981 " lvresize-free lv percent\n"
10982 "\n"
10983 msgstr ""
10984
10985 #. type: textblock
10986 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
10987 msgid ""
10988 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10989 "remaining free space in the volume group.  Commonly you would call this with "
10990 "pc = 100 which expands the logical volume as much as possible, using all "
10991 "remaining free space in the volume group."
10992 msgstr ""
10993
10994 #. type: =head2
10995 #: ../fish/guestfish-actions.pod:2973
10996 msgid "lvs"
10997 msgstr ""
10998
10999 #. type: verbatim
11000 #: ../fish/guestfish-actions.pod:2975
11001 #, no-wrap
11002 msgid ""
11003 " lvs\n"
11004 "\n"
11005 msgstr ""
11006
11007 #. type: textblock
11008 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
11009 msgid ""
11010 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11011 "(8)> command."
11012 msgstr ""
11013
11014 #. type: textblock
11015 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
11016 msgid ""
11017 "This returns a list of the logical volume device names (eg. C</dev/"
11018 "VolGroup00/LogVol00>)."
11019 msgstr ""
11020
11021 #. type: textblock
11022 #: ../fish/guestfish-actions.pod:2983
11023 msgid "See also L</lvs-full>, L</list-filesystems>."
11024 msgstr ""
11025
11026 #. type: =head2
11027 #: ../fish/guestfish-actions.pod:2985
11028 msgid "lvs-full"
11029 msgstr ""
11030
11031 #. type: verbatim
11032 #: ../fish/guestfish-actions.pod:2987
11033 #, no-wrap
11034 msgid ""
11035 " lvs-full\n"
11036 "\n"
11037 msgstr ""
11038
11039 #. type: textblock
11040 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
11041 msgid ""
11042 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11043 "(8)> command.  The \"full\" version includes all fields."
11044 msgstr ""
11045
11046 #. type: =head2
11047 #: ../fish/guestfish-actions.pod:2992
11048 msgid "lvuuid"
11049 msgstr ""
11050
11051 #. type: verbatim
11052 #: ../fish/guestfish-actions.pod:2994
11053 #, no-wrap
11054 msgid ""
11055 " lvuuid device\n"
11056 "\n"
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
11061 msgid "This command returns the UUID of the LVM LV C<device>."
11062 msgstr ""
11063
11064 #. type: =head2
11065 #: ../fish/guestfish-actions.pod:2998
11066 msgid "lxattrlist"
11067 msgstr ""
11068
11069 #. type: verbatim
11070 #: ../fish/guestfish-actions.pod:3000
11071 #, no-wrap
11072 msgid ""
11073 " lxattrlist path 'names ...'\n"
11074 "\n"
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
11079 msgid ""
11080 "This call allows you to get the extended attributes of multiple files, where "
11081 "all files are in the directory C<path>.  C<names> is the list of files from "
11082 "this directory."
11083 msgstr ""
11084
11085 #. type: textblock
11086 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
11087 msgid ""
11088 "On return you get a flat list of xattr structs which must be interpreted "
11089 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11090 "C<attrval> in this struct is zero-length to indicate there was an error "
11091 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11092 "number (the number of following attributes for this file, which could be C<"
11093 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11094 "for the first named file.  This repeats for the second and subsequent files."
11095 msgstr ""
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:3016
11099 msgid ""
11100 "This call is intended for programs that want to efficiently list a directory "
11101 "contents without making many round-trips.  See also L</lstatlist> for a "
11102 "similarly efficient call for getting standard stats.  Very long directory "
11103 "listings might cause the protocol message size to be exceeded, causing this "
11104 "call to fail.  The caller must split up such requests into smaller groups of "
11105 "names."
11106 msgstr ""
11107
11108 #. type: =head2
11109 #: ../fish/guestfish-actions.pod:3024
11110 msgid "mkdir"
11111 msgstr ""
11112
11113 #. type: verbatim
11114 #: ../fish/guestfish-actions.pod:3026
11115 #, no-wrap
11116 msgid ""
11117 " mkdir path\n"
11118 "\n"
11119 msgstr ""
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
11123 msgid "Create a directory named C<path>."
11124 msgstr ""
11125
11126 #. type: =head2
11127 #: ../fish/guestfish-actions.pod:3030
11128 msgid "mkdir-mode"
11129 msgstr ""
11130
11131 #. type: verbatim
11132 #: ../fish/guestfish-actions.pod:3032
11133 #, no-wrap
11134 msgid ""
11135 " mkdir-mode path mode\n"
11136 "\n"
11137 msgstr ""
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
11141 msgid ""
11142 "This command creates a directory, setting the initial permissions of the "
11143 "directory to C<mode>."
11144 msgstr ""
11145
11146 #. type: textblock
11147 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
11148 msgid ""
11149 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11150 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11151 "other ways."
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:3041
11156 msgid "See also L</mkdir>, L</umask>"
11157 msgstr ""
11158
11159 #. type: =head2
11160 #: ../fish/guestfish-actions.pod:3043
11161 msgid "mkdir-p"
11162 msgstr ""
11163
11164 #. type: verbatim
11165 #: ../fish/guestfish-actions.pod:3045
11166 #, no-wrap
11167 msgid ""
11168 " mkdir-p path\n"
11169 "\n"
11170 msgstr ""
11171
11172 #. type: textblock
11173 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
11174 msgid ""
11175 "Create a directory named C<path>, creating any parent directories as "
11176 "necessary.  This is like the C<mkdir -p> shell command."
11177 msgstr ""
11178
11179 #. type: =head2
11180 #: ../fish/guestfish-actions.pod:3050
11181 msgid "mkdtemp"
11182 msgstr ""
11183
11184 #. type: verbatim
11185 #: ../fish/guestfish-actions.pod:3052
11186 #, no-wrap
11187 msgid ""
11188 " mkdtemp template\n"
11189 "\n"
11190 msgstr ""
11191
11192 #. type: textblock
11193 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
11194 msgid ""
11195 "This command creates a temporary directory.  The C<template> parameter "
11196 "should be a full pathname for the temporary directory name with the final "
11197 "six characters being \"XXXXXX\"."
11198 msgstr ""
11199
11200 #. type: textblock
11201 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
11202 msgid ""
11203 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11204 "being suitable for Windows filesystems."
11205 msgstr ""
11206
11207 #. type: textblock
11208 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
11209 msgid "The name of the temporary directory that was created is returned."
11210 msgstr ""
11211
11212 #. type: textblock
11213 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
11214 msgid "The temporary directory is created with mode 0700 and is owned by root."
11215 msgstr ""
11216
11217 #. type: textblock
11218 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
11219 msgid ""
11220 "The caller is responsible for deleting the temporary directory and its "
11221 "contents after use."
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
11226 msgid "See also: L<mkdtemp(3)>"
11227 msgstr ""
11228
11229 #. type: =head2
11230 #: ../fish/guestfish-actions.pod:3073
11231 msgid "mke2fs-J"
11232 msgstr ""
11233
11234 #. type: verbatim
11235 #: ../fish/guestfish-actions.pod:3075
11236 #, no-wrap
11237 msgid ""
11238 " mke2fs-J fstype blocksize device journal\n"
11239 "\n"
11240 msgstr ""
11241
11242 #. type: textblock
11243 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
11244 msgid ""
11245 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11246 "C<journal>.  It is equivalent to the command:"
11247 msgstr ""
11248
11249 #. type: verbatim
11250 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
11251 #, no-wrap
11252 msgid ""
11253 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11254 "\n"
11255 msgstr ""
11256
11257 #. type: textblock
11258 #: ../fish/guestfish-actions.pod:3083
11259 msgid "See also L</mke2journal>."
11260 msgstr ""
11261
11262 #. type: =head2
11263 #: ../fish/guestfish-actions.pod:3085
11264 msgid "mke2fs-JL"
11265 msgstr ""
11266
11267 #. type: verbatim
11268 #: ../fish/guestfish-actions.pod:3087
11269 #, no-wrap
11270 msgid ""
11271 " mke2fs-JL fstype blocksize device label\n"
11272 "\n"
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
11277 msgid ""
11278 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11279 "the journal labeled C<label>."
11280 msgstr ""
11281
11282 #. type: textblock
11283 #: ../fish/guestfish-actions.pod:3092
11284 msgid "See also L</mke2journal-L>."
11285 msgstr ""
11286
11287 #. type: =head2
11288 #: ../fish/guestfish-actions.pod:3094
11289 msgid "mke2fs-JU"
11290 msgstr ""
11291
11292 #. type: verbatim
11293 #: ../fish/guestfish-actions.pod:3096
11294 #, no-wrap
11295 msgid ""
11296 " mke2fs-JU fstype blocksize device uuid\n"
11297 "\n"
11298 msgstr ""
11299
11300 #. type: textblock
11301 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
11302 msgid ""
11303 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11304 "the journal with UUID C<uuid>."
11305 msgstr ""
11306
11307 #. type: textblock
11308 #: ../fish/guestfish-actions.pod:3101
11309 msgid "See also L</mke2journal-U>."
11310 msgstr ""
11311
11312 #. type: =head2
11313 #: ../fish/guestfish-actions.pod:3103
11314 msgid "mke2journal"
11315 msgstr ""
11316
11317 #. type: verbatim
11318 #: ../fish/guestfish-actions.pod:3105
11319 #, no-wrap
11320 msgid ""
11321 " mke2journal blocksize device\n"
11322 "\n"
11323 msgstr ""
11324
11325 #. type: textblock
11326 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
11327 msgid ""
11328 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11329 "command:"
11330 msgstr ""
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
11334 #, no-wrap
11335 msgid ""
11336 " mke2fs -O journal_dev -b blocksize device\n"
11337 "\n"
11338 msgstr ""
11339
11340 #. type: =head2
11341 #: ../fish/guestfish-actions.pod:3112
11342 msgid "mke2journal-L"
11343 msgstr ""
11344
11345 #. type: verbatim
11346 #: ../fish/guestfish-actions.pod:3114
11347 #, no-wrap
11348 msgid ""
11349 " mke2journal-L blocksize label device\n"
11350 "\n"
11351 msgstr ""
11352
11353 #. type: textblock
11354 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
11355 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11356 msgstr ""
11357
11358 #. type: =head2
11359 #: ../fish/guestfish-actions.pod:3118
11360 msgid "mke2journal-U"
11361 msgstr ""
11362
11363 #. type: verbatim
11364 #: ../fish/guestfish-actions.pod:3120
11365 #, no-wrap
11366 msgid ""
11367 " mke2journal-U blocksize uuid device\n"
11368 "\n"
11369 msgstr ""
11370
11371 #. type: textblock
11372 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
11373 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11374 msgstr ""
11375
11376 #. type: =head2
11377 #: ../fish/guestfish-actions.pod:3124
11378 msgid "mkfifo"
11379 msgstr ""
11380
11381 #. type: verbatim
11382 #: ../fish/guestfish-actions.pod:3126
11383 #, no-wrap
11384 msgid ""
11385 " mkfifo mode path\n"
11386 "\n"
11387 msgstr ""
11388
11389 #. type: textblock
11390 #: ../fish/guestfish-actions.pod:3128
11391 msgid ""
11392 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11393 "is just a convenient wrapper around L</mknod>."
11394 msgstr ""
11395
11396 #. type: =head2
11397 #: ../fish/guestfish-actions.pod:3134
11398 msgid "mkfs"
11399 msgstr ""
11400
11401 #. type: verbatim
11402 #: ../fish/guestfish-actions.pod:3136
11403 #, no-wrap
11404 msgid ""
11405 " mkfs fstype device\n"
11406 "\n"
11407 msgstr ""
11408
11409 #. type: textblock
11410 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
11411 msgid ""
11412 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11413 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11414 msgstr ""
11415
11416 #. type: =head2
11417 #: ../fish/guestfish-actions.pod:3142
11418 msgid "mkfs-b"
11419 msgstr ""
11420
11421 #. type: verbatim
11422 #: ../fish/guestfish-actions.pod:3144
11423 #, no-wrap
11424 msgid ""
11425 " mkfs-b fstype blocksize device\n"
11426 "\n"
11427 msgstr ""
11428
11429 #. type: textblock
11430 #: ../fish/guestfish-actions.pod:3146
11431 msgid ""
11432 "This call is similar to L</mkfs>, but it allows you to control the block "
11433 "size of the resulting filesystem.  Supported block sizes depend on the "
11434 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11435 msgstr ""
11436
11437 #. type: textblock
11438 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11439 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
11440 msgid ""
11441 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11442 "cluster size."
11443 msgstr ""
11444
11445 #. type: textblock
11446 #: ../fish/guestfish-actions.pod:3154
11447 msgid ""
11448 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11449 "instead."
11450 msgstr ""
11451
11452 #. type: =head2
11453 #: ../fish/guestfish-actions.pod:3161
11454 msgid "mkfs-opts"
11455 msgstr ""
11456
11457 #. type: verbatim
11458 #: ../fish/guestfish-actions.pod:3163
11459 #, no-wrap
11460 msgid ""
11461 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11462 "\n"
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
11467 msgid ""
11468 "This function creates a filesystem on C<device>.  The filesystem type is "
11469 "C<fstype>, for example C<ext3>."
11470 msgstr ""
11471
11472 #. type: =item
11473 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
11474 msgid "C<blocksize>"
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
11479 msgid ""
11480 "The filesystem block size.  Supported block sizes depend on the filesystem "
11481 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11482 "filesystems."
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
11487 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11488 msgstr ""
11489
11490 #. type: =item
11491 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
11492 msgid "C<features>"
11493 msgstr ""
11494
11495 #. type: textblock
11496 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
11497 msgid "This passes the I<-O> parameter to the external mkfs program."
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
11502 msgid ""
11503 "For certain filesystem types, this allows extra filesystem features to be "
11504 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11505 msgstr ""
11506
11507 #. type: textblock
11508 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
11509 msgid ""
11510 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11511 "type."
11512 msgstr ""
11513
11514 #. type: =item
11515 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
11516 msgid "C<inode>"
11517 msgstr ""
11518
11519 #. type: textblock
11520 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
11521 msgid ""
11522 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11523 "sets the inode size (only for ext2/3/4 filesystems at present)."
11524 msgstr ""
11525
11526 #. type: =item
11527 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
11528 msgid "C<sectorsize>"
11529 msgstr ""
11530
11531 #. type: textblock
11532 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
11533 msgid ""
11534 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11535 "sets sector size for ufs filesystem."
11536 msgstr ""
11537
11538 #. type: =head2
11539 #: ../fish/guestfish-actions.pod:3208
11540 msgid "mkmountpoint"
11541 msgstr ""
11542
11543 #. type: verbatim
11544 #: ../fish/guestfish-actions.pod:3210
11545 #, no-wrap
11546 msgid ""
11547 " mkmountpoint exemptpath\n"
11548 "\n"
11549 msgstr ""
11550
11551 #. type: textblock
11552 #: ../fish/guestfish-actions.pod:3212
11553 msgid ""
11554 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11555 "to create extra mountpoints before mounting the first filesystem."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
11560 msgid ""
11561 "These calls are I<only> necessary in some very limited circumstances, mainly "
11562 "the case where you want to mount a mix of unrelated and/or read-only "
11563 "filesystems together."
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
11568 msgid ""
11569 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11570 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11571 "inside that.  You can unpack this as follows in guestfish:"
11572 msgstr ""
11573
11574 #. type: verbatim
11575 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
11576 #, no-wrap
11577 msgid ""
11578 " add-ro Fedora-11-i686-Live.iso\n"
11579 " run\n"
11580 " mkmountpoint /cd\n"
11581 " mkmountpoint /sqsh\n"
11582 " mkmountpoint /ext3fs\n"
11583 " mount /dev/sda /cd\n"
11584 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11585 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11586 "\n"
11587 msgstr ""
11588
11589 #. type: textblock
11590 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
11591 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11592 msgstr ""
11593
11594 #. type: textblock
11595 #: ../fish/guestfish-actions.pod:3236
11596 msgid ""
11597 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11598 "unexpected errors if you try to mix these calls.  It is safest to manually "
11599 "unmount filesystems and remove mountpoints after use."
11600 msgstr ""
11601
11602 #. type: textblock
11603 #: ../fish/guestfish-actions.pod:3240
11604 msgid ""
11605 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11606 "for this to work for manual mountpoints, you must ensure that the innermost "
11607 "mountpoints have the longest pathnames, as in the example code above."
11608 msgstr ""
11609
11610 #. type: textblock
11611 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
11612 msgid ""
11613 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11614 msgstr ""
11615
11616 #. type: textblock
11617 #: ../fish/guestfish-actions.pod:3247
11618 msgid ""
11619 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11620 "L</umount-all> to be called when the handle is closed which can also trigger "
11621 "these issues."
11622 msgstr ""
11623
11624 #. type: =head2
11625 #: ../fish/guestfish-actions.pod:3251
11626 msgid "mknod"
11627 msgstr ""
11628
11629 #. type: verbatim
11630 #: ../fish/guestfish-actions.pod:3253
11631 #, no-wrap
11632 msgid ""
11633 " mknod mode devmajor devminor path\n"
11634 "\n"
11635 msgstr ""
11636
11637 #. type: textblock
11638 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
11639 msgid ""
11640 "This call creates block or character special devices, or named pipes (FIFOs)."
11641 msgstr ""
11642
11643 #. type: textblock
11644 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
11645 msgid ""
11646 "The C<mode> parameter should be the mode, using the standard constants.  "
11647 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11648 "used when creating block and character special devices."
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:3263
11653 msgid ""
11654 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11655 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11656 "regular file).  These constants are available in the standard Linux header "
11657 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11658 "wrappers around this command which bitwise OR in the appropriate constant "
11659 "for you."
11660 msgstr ""
11661
11662 #. type: =head2
11663 #: ../fish/guestfish-actions.pod:3273
11664 msgid "mknod-b"
11665 msgstr ""
11666
11667 #. type: verbatim
11668 #: ../fish/guestfish-actions.pod:3275
11669 #, no-wrap
11670 msgid ""
11671 " mknod-b mode devmajor devminor path\n"
11672 "\n"
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../fish/guestfish-actions.pod:3277
11677 msgid ""
11678 "This call creates a block device node called C<path> with mode C<mode> and "
11679 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11680 "wrapper around L</mknod>."
11681 msgstr ""
11682
11683 #. type: =head2
11684 #: ../fish/guestfish-actions.pod:3283
11685 msgid "mknod-c"
11686 msgstr ""
11687
11688 #. type: verbatim
11689 #: ../fish/guestfish-actions.pod:3285
11690 #, no-wrap
11691 msgid ""
11692 " mknod-c mode devmajor devminor path\n"
11693 "\n"
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:3287
11698 msgid ""
11699 "This call creates a char device node called C<path> with mode C<mode> and "
11700 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11701 "wrapper around L</mknod>."
11702 msgstr ""
11703
11704 #. type: =head2
11705 #: ../fish/guestfish-actions.pod:3293
11706 msgid "mkswap"
11707 msgstr ""
11708
11709 #. type: verbatim
11710 #: ../fish/guestfish-actions.pod:3295
11711 #, no-wrap
11712 msgid ""
11713 " mkswap device\n"
11714 "\n"
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
11719 msgid "Create a swap partition on C<device>."
11720 msgstr ""
11721
11722 #. type: =head2
11723 #: ../fish/guestfish-actions.pod:3299
11724 msgid "mkswap-L"
11725 msgstr ""
11726
11727 #. type: verbatim
11728 #: ../fish/guestfish-actions.pod:3301
11729 #, no-wrap
11730 msgid ""
11731 " mkswap-L label device\n"
11732 "\n"
11733 msgstr ""
11734
11735 #. type: textblock
11736 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
11737 msgid "Create a swap partition on C<device> with label C<label>."
11738 msgstr ""
11739
11740 #. type: textblock
11741 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
11742 msgid ""
11743 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11744 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11745 "or swap tools."
11746 msgstr ""
11747
11748 #. type: =head2
11749 #: ../fish/guestfish-actions.pod:3309
11750 msgid "mkswap-U"
11751 msgstr ""
11752
11753 #. type: verbatim
11754 #: ../fish/guestfish-actions.pod:3311
11755 #, no-wrap
11756 msgid ""
11757 " mkswap-U uuid device\n"
11758 "\n"
11759 msgstr ""
11760
11761 #. type: textblock
11762 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
11763 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11764 msgstr ""
11765
11766 #. type: =head2
11767 #: ../fish/guestfish-actions.pod:3315
11768 msgid "mkswap-file"
11769 msgstr ""
11770
11771 #. type: verbatim
11772 #: ../fish/guestfish-actions.pod:3317
11773 #, no-wrap
11774 msgid ""
11775 " mkswap-file path\n"
11776 "\n"
11777 msgstr ""
11778
11779 #. type: textblock
11780 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
11781 msgid "Create a swap file."
11782 msgstr ""
11783
11784 #. type: textblock
11785 #: ../fish/guestfish-actions.pod:3321
11786 msgid ""
11787 "This command just writes a swap file signature to an existing file.  To "
11788 "create the file itself, use something like L</fallocate>."
11789 msgstr ""
11790
11791 #. type: =head2
11792 #: ../fish/guestfish-actions.pod:3324
11793 msgid "modprobe"
11794 msgstr ""
11795
11796 #. type: verbatim
11797 #: ../fish/guestfish-actions.pod:3326
11798 #, no-wrap
11799 msgid ""
11800 " modprobe modulename\n"
11801 "\n"
11802 msgstr ""
11803
11804 #. type: textblock
11805 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
11806 msgid "This loads a kernel module in the appliance."
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
11811 msgid ""
11812 "The kernel module must have been whitelisted when libguestfs was built (see "
11813 "C<appliance/kmod.whitelist.in> in the source)."
11814 msgstr ""
11815
11816 #. type: =head2
11817 #: ../fish/guestfish-actions.pod:3333
11818 msgid "mount"
11819 msgstr ""
11820
11821 #. type: verbatim
11822 #: ../fish/guestfish-actions.pod:3335
11823 #, no-wrap
11824 msgid ""
11825 " mount device mountpoint\n"
11826 "\n"
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
11831 msgid ""
11832 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11833 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11834 "those block devices contain partitions, they will have the usual names (eg. "
11835 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11836 msgstr ""
11837
11838 #. type: textblock
11839 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
11840 msgid ""
11841 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11842 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11843 "mounted on directories which already exist."
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
11848 msgid ""
11849 "The mounted filesystem is writable, if we have sufficient permissions on the "
11850 "underlying device."
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:3351
11855 msgid ""
11856 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
11857 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
11858 "problems for users.  If your program might need to work with older versions "
11859 "of libguestfs, use L</mount-options> instead (using an empty string for the "
11860 "first parameter if you don't want any options)."
11861 msgstr ""
11862
11863 #. type: =head2
11864 #: ../fish/guestfish-actions.pod:3358
11865 msgid "mount-9p"
11866 msgstr ""
11867
11868 #. type: verbatim
11869 #: ../fish/guestfish-actions.pod:3360
11870 #, no-wrap
11871 msgid ""
11872 " mount-9p mounttag mountpoint [options:..]\n"
11873 "\n"
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
11878 msgid ""
11879 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11880 "C<mountpoint>."
11881 msgstr ""
11882
11883 #. type: textblock
11884 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
11885 msgid ""
11886 "If required, C<trans=virtio> will be automatically added to the options.  "
11887 "Any other options required can be passed in the optional C<options> "
11888 "parameter."
11889 msgstr ""
11890
11891 #. type: =head2
11892 #: ../fish/guestfish-actions.pod:3371
11893 msgid "mount-loop"
11894 msgstr ""
11895
11896 #. type: verbatim
11897 #: ../fish/guestfish-actions.pod:3373
11898 #, no-wrap
11899 msgid ""
11900 " mount-loop file mountpoint\n"
11901 "\n"
11902 msgstr ""
11903
11904 #. type: textblock
11905 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
11906 msgid ""
11907 "This command lets you mount C<file> (a filesystem image in a file) on a "
11908 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11909 "mountpoint>."
11910 msgstr ""
11911
11912 #. type: =head2
11913 #: ../fish/guestfish-actions.pod:3379
11914 msgid "mount-options"
11915 msgstr ""
11916
11917 #. type: verbatim
11918 #: ../fish/guestfish-actions.pod:3381
11919 #, no-wrap
11920 msgid ""
11921 " mount-options options device mountpoint\n"
11922 "\n"
11923 msgstr ""
11924
11925 #. type: textblock
11926 #: ../fish/guestfish-actions.pod:3383
11927 msgid ""
11928 "This is the same as the L</mount> command, but it allows you to set the "
11929 "mount options as for the L<mount(8)> I<-o> flag."
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
11934 msgid ""
11935 "If the C<options> parameter is an empty string, then no options are passed "
11936 "(all options default to whatever the filesystem uses)."
11937 msgstr ""
11938
11939 #. type: =head2
11940 #: ../fish/guestfish-actions.pod:3391
11941 msgid "mount-ro"
11942 msgstr ""
11943
11944 #. type: verbatim
11945 #: ../fish/guestfish-actions.pod:3393
11946 #, no-wrap
11947 msgid ""
11948 " mount-ro device mountpoint\n"
11949 "\n"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../fish/guestfish-actions.pod:3395
11954 msgid ""
11955 "This is the same as the L</mount> command, but it mounts the filesystem with "
11956 "the read-only (I<-o ro>) flag."
11957 msgstr ""
11958
11959 #. type: =head2
11960 #: ../fish/guestfish-actions.pod:3398
11961 msgid "mount-vfs"
11962 msgstr ""
11963
11964 #. type: verbatim
11965 #: ../fish/guestfish-actions.pod:3400
11966 #, no-wrap
11967 msgid ""
11968 " mount-vfs options vfstype device mountpoint\n"
11969 "\n"
11970 msgstr ""
11971
11972 #. type: textblock
11973 #: ../fish/guestfish-actions.pod:3402
11974 msgid ""
11975 "This is the same as the L</mount> command, but it allows you to set both the "
11976 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11977 msgstr ""
11978
11979 #. type: =head2
11980 #: ../fish/guestfish-actions.pod:3406
11981 msgid "mountpoints"
11982 msgstr ""
11983
11984 #. type: verbatim
11985 #: ../fish/guestfish-actions.pod:3408
11986 #, no-wrap
11987 msgid ""
11988 " mountpoints\n"
11989 "\n"
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:3410
11994 msgid ""
11995 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11996 "This one returns a hash table (map) of device name to directory where the "
11997 "device is mounted."
11998 msgstr ""
11999
12000 #. type: =head2
12001 #: ../fish/guestfish-actions.pod:3414
12002 msgid "mounts"
12003 msgstr ""
12004
12005 #. type: verbatim
12006 #: ../fish/guestfish-actions.pod:3416
12007 #, no-wrap
12008 msgid ""
12009 " mounts\n"
12010 "\n"
12011 msgstr ""
12012
12013 #. type: textblock
12014 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
12015 msgid ""
12016 "This returns the list of currently mounted filesystems.  It returns the list "
12017 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12018 msgstr ""
12019
12020 #. type: textblock
12021 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
12022 msgid "Some internal mounts are not shown."
12023 msgstr ""
12024
12025 #. type: textblock
12026 #: ../fish/guestfish-actions.pod:3423
12027 msgid "See also: L</mountpoints>"
12028 msgstr ""
12029
12030 #. type: =head2
12031 #: ../fish/guestfish-actions.pod:3425
12032 msgid "mv"
12033 msgstr ""
12034
12035 #. type: verbatim
12036 #: ../fish/guestfish-actions.pod:3427
12037 #, no-wrap
12038 msgid ""
12039 " mv src dest\n"
12040 "\n"
12041 msgstr ""
12042
12043 #. type: textblock
12044 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
12045 msgid ""
12046 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12047 "destination filename or destination directory."
12048 msgstr ""
12049
12050 #. type: =head2
12051 #: ../fish/guestfish-actions.pod:3432
12052 msgid "ntfs-3g-probe"
12053 msgstr ""
12054
12055 #. type: verbatim
12056 #: ../fish/guestfish-actions.pod:3434
12057 #, no-wrap
12058 msgid ""
12059 " ntfs-3g-probe true|false device\n"
12060 "\n"
12061 msgstr ""
12062
12063 #. type: textblock
12064 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
12065 msgid ""
12066 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12067 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12068 "write, and some cannot be mounted at all)."
12069 msgstr ""
12070
12071 #. type: textblock
12072 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
12073 msgid ""
12074 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12075 "can be mounted read-write.  Set it to false if you want to test if the "
12076 "volume can be mounted read-only."
12077 msgstr ""
12078
12079 #. type: textblock
12080 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
12081 msgid ""
12082 "The return value is an integer which C<0> if the operation would succeed, or "
12083 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12084 msgstr ""
12085
12086 #. type: =head2
12087 #: ../fish/guestfish-actions.pod:3448
12088 msgid "ntfsresize"
12089 msgstr ""
12090
12091 #. type: verbatim
12092 #: ../fish/guestfish-actions.pod:3450
12093 #, no-wrap
12094 msgid ""
12095 " ntfsresize device\n"
12096 "\n"
12097 msgstr ""
12098
12099 #. type: textblock
12100 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12101 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
12102 msgid ""
12103 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12104 "size of the underlying device."
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
12109 msgid ""
12110 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12111 "consistency check (for safety).  You have to boot into Windows to perform "
12112 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12113 "resize filesystems which have been marked in this way.  So in effect it is "
12114 "not possible to call ntfsresize multiple times on a single filesystem "
12115 "without booting into Windows between each resize."
12116 msgstr ""
12117
12118 #. type: textblock
12119 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12120 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
12121 msgid "See also L<ntfsresize(8)>."
12122 msgstr ""
12123
12124 #. type: textblock
12125 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12126 msgid ""
12127 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12128 "call instead."
12129 msgstr ""
12130
12131 #. type: =head2
12132 #: ../fish/guestfish-actions.pod:3472
12133 msgid "ntfsresize-opts"
12134 msgstr ""
12135
12136 #. type: verbatim
12137 #: ../fish/guestfish-actions.pod:3474
12138 #, no-wrap
12139 msgid ""
12140 " ntfsresize-opts device [size:..] [force:..]\n"
12141 "\n"
12142 msgstr ""
12143
12144 #. type: textblock
12145 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
12146 msgid ""
12147 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12148 "resized to fit the container (eg. partition)."
12149 msgstr ""
12150
12151 #. type: =item
12152 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
12153 msgid "C<force>"
12154 msgstr ""
12155
12156 #. type: textblock
12157 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
12158 msgid ""
12159 "If this option is true, then force the resize of the filesystem even if the "
12160 "filesystem is marked as requiring a consistency check."
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../fish/guestfish-actions.pod:3493
12165 msgid ""
12166 "After the resize operation, the filesystem is always marked as requiring a "
12167 "consistency check (for safety).  You have to boot into Windows to perform "
12168 "this check and clear this condition.  If you I<don't> set the C<force> "
12169 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12170 "a single filesystem without booting into Windows between each resize."
12171 msgstr ""
12172
12173 #. type: =head2
12174 #: ../fish/guestfish-actions.pod:3506
12175 msgid "ntfsresize-size"
12176 msgstr ""
12177
12178 #. type: verbatim
12179 #: ../fish/guestfish-actions.pod:3508
12180 #, no-wrap
12181 msgid ""
12182 " ntfsresize-size device size\n"
12183 "\n"
12184 msgstr ""
12185
12186 #. type: textblock
12187 #: ../fish/guestfish-actions.pod:3510
12188 msgid ""
12189 "This command is the same as L</ntfsresize> except that it allows you to "
12190 "specify the new size (in bytes) explicitly."
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../fish/guestfish-actions.pod:3520
12195 msgid "part-add"
12196 msgstr ""
12197
12198 #. type: verbatim
12199 #: ../fish/guestfish-actions.pod:3522
12200 #, no-wrap
12201 msgid ""
12202 " part-add device prlogex startsect endsect\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:3524
12208 msgid ""
12209 "This command adds a partition to C<device>.  If there is no partition table "
12210 "on the device, call L</part-init> first."
12211 msgstr ""
12212
12213 #. type: textblock
12214 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
12215 msgid ""
12216 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12217 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12218 "C<logical>) and C<e> (or C<extended>) partition types."
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
12223 msgid ""
12224 "C<startsect> and C<endsect> are the start and end of the partition in "
12225 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12226 "from the end of the disk (C<-1> is the last sector)."
12227 msgstr ""
12228
12229 #. type: textblock
12230 #: ../fish/guestfish-actions.pod:3536
12231 msgid ""
12232 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12233 "part-disk> to do that."
12234 msgstr ""
12235
12236 #. type: =head2
12237 #: ../fish/guestfish-actions.pod:3539
12238 msgid "part-del"
12239 msgstr ""
12240
12241 #. type: verbatim
12242 #: ../fish/guestfish-actions.pod:3541
12243 #, no-wrap
12244 msgid ""
12245 " part-del device partnum\n"
12246 "\n"
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
12251 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
12256 msgid ""
12257 "Note that in the case of MBR partitioning, deleting an extended partition "
12258 "also deletes any logical partitions it contains."
12259 msgstr ""
12260
12261 #. type: =head2
12262 #: ../fish/guestfish-actions.pod:3549
12263 msgid "part-disk"
12264 msgstr ""
12265
12266 #. type: verbatim
12267 #: ../fish/guestfish-actions.pod:3551
12268 #, no-wrap
12269 msgid ""
12270 " part-disk device parttype\n"
12271 "\n"
12272 msgstr ""
12273
12274 #. type: textblock
12275 #: ../fish/guestfish-actions.pod:3553
12276 msgid ""
12277 "This command is simply a combination of L</part-init> followed by L</part-"
12278 "add> to create a single primary partition covering the whole disk."
12279 msgstr ""
12280
12281 #. type: textblock
12282 #: ../fish/guestfish-actions.pod:3557
12283 msgid ""
12284 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12285 "possible values are described in L</part-init>."
12286 msgstr ""
12287
12288 #. type: =head2
12289 #: ../fish/guestfish-actions.pod:3563
12290 msgid "part-get-bootable"
12291 msgstr ""
12292
12293 #. type: verbatim
12294 #: ../fish/guestfish-actions.pod:3565
12295 #, no-wrap
12296 msgid ""
12297 " part-get-bootable device partnum\n"
12298 "\n"
12299 msgstr ""
12300
12301 #. type: textblock
12302 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
12303 msgid ""
12304 "This command returns true if the partition C<partnum> on C<device> has the "
12305 "bootable flag set."
12306 msgstr ""
12307
12308 #. type: textblock
12309 #: ../fish/guestfish-actions.pod:3570
12310 msgid "See also L</part-set-bootable>."
12311 msgstr ""
12312
12313 #. type: =head2
12314 #: ../fish/guestfish-actions.pod:3572
12315 msgid "part-get-mbr-id"
12316 msgstr ""
12317
12318 #. type: verbatim
12319 #: ../fish/guestfish-actions.pod:3574
12320 #, no-wrap
12321 msgid ""
12322 " part-get-mbr-id device partnum\n"
12323 "\n"
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
12328 msgid ""
12329 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12330 "partition C<partnum>."
12331 msgstr ""
12332
12333 #. type: textblock
12334 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
12335 msgid ""
12336 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12337 "undefined results for other partition table types (see L</part-get-"
12338 "parttype>)."
12339 msgstr ""
12340
12341 #. type: =head2
12342 #: ../fish/guestfish-actions.pod:3583
12343 msgid "part-get-parttype"
12344 msgstr ""
12345
12346 #. type: verbatim
12347 #: ../fish/guestfish-actions.pod:3585
12348 #, no-wrap
12349 msgid ""
12350 " part-get-parttype device\n"
12351 "\n"
12352 msgstr ""
12353
12354 #. type: textblock
12355 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
12356 msgid ""
12357 "This command examines the partition table on C<device> and returns the "
12358 "partition table type (format) being used."
12359 msgstr ""
12360
12361 #. type: textblock
12362 #: ../fish/guestfish-actions.pod:3590
12363 msgid ""
12364 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12365 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12366 "possible, although unusual.  See L</part-init> for a full list."
12367 msgstr ""
12368
12369 #. type: =head2
12370 #: ../fish/guestfish-actions.pod:3595
12371 msgid "part-init"
12372 msgstr ""
12373
12374 #. type: verbatim
12375 #: ../fish/guestfish-actions.pod:3597
12376 #, no-wrap
12377 msgid ""
12378 " part-init device parttype\n"
12379 "\n"
12380 msgstr ""
12381
12382 #. type: textblock
12383 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
12384 msgid ""
12385 "This creates an empty partition table on C<device> of one of the partition "
12386 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12387 "(for large disks)."
12388 msgstr ""
12389
12390 #. type: textblock
12391 #: ../fish/guestfish-actions.pod:3603
12392 msgid ""
12393 "Initially there are no partitions.  Following this, you should call L</part-"
12394 "add> for each partition required."
12395 msgstr ""
12396
12397 #. type: textblock
12398 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
12399 msgid "Possible values for C<parttype> are:"
12400 msgstr ""
12401
12402 #. type: =item
12403 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
12404 msgid "B<efi>"
12405 msgstr ""
12406
12407 #. type: =item
12408 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
12409 msgid "B<gpt>"
12410 msgstr ""
12411
12412 #. type: textblock
12413 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
12414 msgid "Intel EFI / GPT partition table."
12415 msgstr ""
12416
12417 #. type: textblock
12418 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
12419 msgid ""
12420 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12421 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12422 "the C<mbr> format."
12423 msgstr ""
12424
12425 #. type: =item
12426 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
12427 msgid "B<mbr>"
12428 msgstr ""
12429
12430 #. type: =item
12431 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
12432 msgid "B<msdos>"
12433 msgstr ""
12434
12435 #. type: textblock
12436 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
12437 msgid ""
12438 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12439 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12440 "TB.  For large disks we recommend using C<gpt>."
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
12445 msgid ""
12446 "Other partition table types that may work but are not supported include:"
12447 msgstr ""
12448
12449 #. type: =item
12450 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
12451 msgid "B<aix>"
12452 msgstr ""
12453
12454 #. type: textblock
12455 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
12456 msgid "AIX disk labels."
12457 msgstr ""
12458
12459 #. type: =item
12460 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
12461 msgid "B<amiga>"
12462 msgstr ""
12463
12464 #. type: =item
12465 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
12466 msgid "B<rdb>"
12467 msgstr ""
12468
12469 #. type: textblock
12470 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
12471 msgid "Amiga \"Rigid Disk Block\" format."
12472 msgstr ""
12473
12474 #. type: =item
12475 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
12476 msgid "B<bsd>"
12477 msgstr ""
12478
12479 #. type: textblock
12480 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
12481 msgid "BSD disk labels."
12482 msgstr ""
12483
12484 #. type: =item
12485 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
12486 msgid "B<dasd>"
12487 msgstr ""
12488
12489 #. type: textblock
12490 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
12491 msgid "DASD, used on IBM mainframes."
12492 msgstr ""
12493
12494 #. type: =item
12495 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
12496 msgid "B<dvh>"
12497 msgstr ""
12498
12499 #. type: textblock
12500 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
12501 msgid "MIPS/SGI volumes."
12502 msgstr ""
12503
12504 #. type: =item
12505 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
12506 msgid "B<mac>"
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
12511 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12512 msgstr ""
12513
12514 #. type: =item
12515 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
12516 msgid "B<pc98>"
12517 msgstr ""
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
12521 msgid "NEC PC-98 format, common in Japan apparently."
12522 msgstr ""
12523
12524 #. type: =item
12525 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
12526 msgid "B<sun>"
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
12531 msgid "Sun disk labels."
12532 msgstr ""
12533
12534 #. type: =head2
12535 #: ../fish/guestfish-actions.pod:3672
12536 msgid "part-list"
12537 msgstr ""
12538
12539 #. type: verbatim
12540 #: ../fish/guestfish-actions.pod:3674
12541 #, no-wrap
12542 msgid ""
12543 " part-list device\n"
12544 "\n"
12545 msgstr ""
12546
12547 #. type: textblock
12548 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
12549 msgid ""
12550 "This command parses the partition table on C<device> and returns the list of "
12551 "partitions found."
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
12556 msgid "The fields in the returned structure are:"
12557 msgstr ""
12558
12559 #. type: =item
12560 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
12561 msgid "B<part_num>"
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
12566 msgid "Partition number, counting from 1."
12567 msgstr ""
12568
12569 #. type: =item
12570 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
12571 msgid "B<part_start>"
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../fish/guestfish-actions.pod:3689
12576 msgid ""
12577 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12578 "the device's sector size, see L</blockdev-getss>."
12579 msgstr ""
12580
12581 #. type: =item
12582 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
12583 msgid "B<part_end>"
12584 msgstr ""
12585
12586 #. type: textblock
12587 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
12588 msgid "End of the partition in bytes."
12589 msgstr ""
12590
12591 #. type: =item
12592 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
12593 msgid "B<part_size>"
12594 msgstr ""
12595
12596 #. type: textblock
12597 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
12598 msgid "Size of the partition in bytes."
12599 msgstr ""
12600
12601 #. type: =head2
12602 #: ../fish/guestfish-actions.pod:3702
12603 msgid "part-set-bootable"
12604 msgstr ""
12605
12606 #. type: verbatim
12607 #: ../fish/guestfish-actions.pod:3704
12608 #, no-wrap
12609 msgid ""
12610 " part-set-bootable device partnum true|false\n"
12611 "\n"
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
12616 msgid ""
12617 "This sets the bootable flag on partition numbered C<partnum> on device "
12618 "C<device>.  Note that partitions are numbered from 1."
12619 msgstr ""
12620
12621 #. type: textblock
12622 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
12623 msgid ""
12624 "The bootable flag is used by some operating systems (notably Windows) to "
12625 "determine which partition to boot from.  It is by no means universally "
12626 "recognized."
12627 msgstr ""
12628
12629 #. type: =head2
12630 #: ../fish/guestfish-actions.pod:3713
12631 msgid "part-set-mbr-id"
12632 msgstr ""
12633
12634 #. type: verbatim
12635 #: ../fish/guestfish-actions.pod:3715
12636 #, no-wrap
12637 msgid ""
12638 " part-set-mbr-id device partnum idbyte\n"
12639 "\n"
12640 msgstr ""
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
12644 msgid ""
12645 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12646 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12647 "documentation are in fact hexadecimal numbers, but usually documented "
12648 "without any leading \"0x\" which might be confusing."
12649 msgstr ""
12650
12651 #. type: =head2
12652 #: ../fish/guestfish-actions.pod:3727
12653 msgid "part-set-name"
12654 msgstr ""
12655
12656 #. type: verbatim
12657 #: ../fish/guestfish-actions.pod:3729
12658 #, no-wrap
12659 msgid ""
12660 " part-set-name device partnum name\n"
12661 "\n"
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
12666 msgid ""
12667 "This sets the partition name on partition numbered C<partnum> on device "
12668 "C<device>.  Note that partitions are numbered from 1."
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
12673 msgid ""
12674 "The partition name can only be set on certain types of partition table.  "
12675 "This works on C<gpt> but not on C<mbr> partitions."
12676 msgstr ""
12677
12678 #. type: =head2
12679 #: ../fish/guestfish-actions.pod:3737
12680 msgid "part-to-dev"
12681 msgstr ""
12682
12683 #. type: verbatim
12684 #: ../fish/guestfish-actions.pod:3739
12685 #, no-wrap
12686 msgid ""
12687 " part-to-dev partition\n"
12688 "\n"
12689 msgstr ""
12690
12691 #. type: textblock
12692 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
12693 msgid ""
12694 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12695 "partition number, returning the device name (eg. \"/dev/sdb\")."
12696 msgstr ""
12697
12698 #. type: textblock
12699 #: ../fish/guestfish-actions.pod:3745
12700 msgid ""
12701 "The named partition must exist, for example as a string returned from L</"
12702 "list-partitions>."
12703 msgstr ""
12704
12705 #. type: =head2
12706 #: ../fish/guestfish-actions.pod:3748
12707 msgid "ping-daemon"
12708 msgstr ""
12709
12710 #. type: verbatim
12711 #: ../fish/guestfish-actions.pod:3750
12712 #, no-wrap
12713 msgid ""
12714 " ping-daemon\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: textblock
12719 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
12720 msgid ""
12721 "This is a test probe into the guestfs daemon running inside the qemu "
12722 "subprocess.  Calling this function checks that the daemon responds to the "
12723 "ping message, without affecting the daemon or attached block device(s) in "
12724 "any other way."
12725 msgstr ""
12726
12727 #. type: =head2
12728 #: ../fish/guestfish-actions.pod:3757
12729 msgid "pread"
12730 msgstr ""
12731
12732 #. type: verbatim
12733 #: ../fish/guestfish-actions.pod:3759
12734 #, no-wrap
12735 msgid ""
12736 " pread path count offset\n"
12737 "\n"
12738 msgstr ""
12739
12740 #. type: textblock
12741 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
12742 msgid ""
12743 "This command lets you read part of a file.  It reads C<count> bytes of the "
12744 "file, starting at C<offset>, from file C<path>."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
12749 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
12750 msgid ""
12751 "This may read fewer bytes than requested.  For further details see the "
12752 "L<pread(2)> system call."
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3767
12757 msgid "See also L</pwrite>, L</pread-device>."
12758 msgstr ""
12759
12760 #. type: =head2
12761 #: ../fish/guestfish-actions.pod:3772
12762 msgid "pread-device"
12763 msgstr ""
12764
12765 #. type: verbatim
12766 #: ../fish/guestfish-actions.pod:3774
12767 #, no-wrap
12768 msgid ""
12769 " pread-device device count offset\n"
12770 "\n"
12771 msgstr ""
12772
12773 #. type: textblock
12774 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
12775 msgid ""
12776 "This command lets you read part of a file.  It reads C<count> bytes of "
12777 "C<device>, starting at C<offset>."
12778 msgstr ""
12779
12780 #. type: textblock
12781 #: ../fish/guestfish-actions.pod:3782
12782 msgid "See also L</pread>."
12783 msgstr ""
12784
12785 #. type: =head2
12786 #: ../fish/guestfish-actions.pod:3787
12787 msgid "pvcreate"
12788 msgstr ""
12789
12790 #. type: verbatim
12791 #: ../fish/guestfish-actions.pod:3789
12792 #, no-wrap
12793 msgid ""
12794 " pvcreate device\n"
12795 "\n"
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
12800 msgid ""
12801 "This creates an LVM physical volume on the named C<device>, where C<device> "
12802 "should usually be a partition name such as C</dev/sda1>."
12803 msgstr ""
12804
12805 #. type: =head2
12806 #: ../fish/guestfish-actions.pod:3795
12807 msgid "pvremove"
12808 msgstr ""
12809
12810 #. type: verbatim
12811 #: ../fish/guestfish-actions.pod:3797
12812 #, no-wrap
12813 msgid ""
12814 " pvremove device\n"
12815 "\n"
12816 msgstr ""
12817
12818 #. type: textblock
12819 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
12820 msgid ""
12821 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12822 "it."
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
12827 msgid ""
12828 "The implementation uses the C<pvremove> command which refuses to wipe "
12829 "physical volumes that contain any volume groups, so you have to remove those "
12830 "first."
12831 msgstr ""
12832
12833 #. type: =head2
12834 #: ../fish/guestfish-actions.pod:3806
12835 msgid "pvresize"
12836 msgstr ""
12837
12838 #. type: verbatim
12839 #: ../fish/guestfish-actions.pod:3808
12840 #, no-wrap
12841 msgid ""
12842 " pvresize device\n"
12843 "\n"
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
12848 msgid ""
12849 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12850 "the new size of the underlying device."
12851 msgstr ""
12852
12853 #. type: =head2
12854 #: ../fish/guestfish-actions.pod:3813
12855 msgid "pvresize-size"
12856 msgstr ""
12857
12858 #. type: verbatim
12859 #: ../fish/guestfish-actions.pod:3815
12860 #, no-wrap
12861 msgid ""
12862 " pvresize-size device size\n"
12863 "\n"
12864 msgstr ""
12865
12866 #. type: textblock
12867 #: ../fish/guestfish-actions.pod:3817
12868 msgid ""
12869 "This command is the same as L</pvresize> except that it allows you to "
12870 "specify the new size (in bytes) explicitly."
12871 msgstr ""
12872
12873 #. type: =head2
12874 #: ../fish/guestfish-actions.pod:3820
12875 msgid "pvs"
12876 msgstr ""
12877
12878 #. type: verbatim
12879 #: ../fish/guestfish-actions.pod:3822
12880 #, no-wrap
12881 msgid ""
12882 " pvs\n"
12883 "\n"
12884 msgstr ""
12885
12886 #. type: textblock
12887 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
12888 msgid ""
12889 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12890 "(8)> command."
12891 msgstr ""
12892
12893 #. type: textblock
12894 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
12895 msgid ""
12896 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12897 "sda2>)."
12898 msgstr ""
12899
12900 #. type: textblock
12901 #: ../fish/guestfish-actions.pod:3830
12902 msgid "See also L</pvs-full>."
12903 msgstr ""
12904
12905 #. type: =head2
12906 #: ../fish/guestfish-actions.pod:3832
12907 msgid "pvs-full"
12908 msgstr ""
12909
12910 #. type: verbatim
12911 #: ../fish/guestfish-actions.pod:3834
12912 #, no-wrap
12913 msgid ""
12914 " pvs-full\n"
12915 "\n"
12916 msgstr ""
12917
12918 #. type: textblock
12919 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
12920 msgid ""
12921 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12922 "(8)> command.  The \"full\" version includes all fields."
12923 msgstr ""
12924
12925 #. type: =head2
12926 #: ../fish/guestfish-actions.pod:3839
12927 msgid "pvuuid"
12928 msgstr ""
12929
12930 #. type: verbatim
12931 #: ../fish/guestfish-actions.pod:3841
12932 #, no-wrap
12933 msgid ""
12934 " pvuuid device\n"
12935 "\n"
12936 msgstr ""
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
12940 msgid "This command returns the UUID of the LVM PV C<device>."
12941 msgstr ""
12942
12943 #. type: =head2
12944 #: ../fish/guestfish-actions.pod:3845
12945 msgid "pwrite"
12946 msgstr ""
12947
12948 #. type: verbatim
12949 #: ../fish/guestfish-actions.pod:3847
12950 #, no-wrap
12951 msgid ""
12952 " pwrite path content offset\n"
12953 "\n"
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
12958 msgid ""
12959 "This command writes to part of a file.  It writes the data buffer C<content> "
12960 "to the file C<path> starting at offset C<offset>."
12961 msgstr ""
12962
12963 #. type: textblock
12964 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
12965 msgid ""
12966 "This command implements the L<pwrite(2)> system call, and like that system "
12967 "call it may not write the full data requested.  The return value is the "
12968 "number of bytes that were actually written to the file.  This could even be "
12969 "0, although short writes are unlikely for regular files in ordinary "
12970 "circumstances."
12971 msgstr ""
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:3858
12975 msgid "See also L</pread>, L</pwrite-device>."
12976 msgstr ""
12977
12978 #. type: =head2
12979 #: ../fish/guestfish-actions.pod:3863
12980 msgid "pwrite-device"
12981 msgstr ""
12982
12983 #. type: verbatim
12984 #: ../fish/guestfish-actions.pod:3865
12985 #, no-wrap
12986 msgid ""
12987 " pwrite-device device content offset\n"
12988 "\n"
12989 msgstr ""
12990
12991 #. type: textblock
12992 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
12993 msgid ""
12994 "This command writes to part of a device.  It writes the data buffer "
12995 "C<content> to C<device> starting at offset C<offset>."
12996 msgstr ""
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
13000 msgid ""
13001 "This command implements the L<pwrite(2)> system call, and like that system "
13002 "call it may not write the full data requested (although short writes to disk "
13003 "devices and partitions are probably impossible with standard Linux kernels)."
13004 msgstr ""
13005
13006 #. type: textblock
13007 #: ../fish/guestfish-actions.pod:3875
13008 msgid "See also L</pwrite>."
13009 msgstr ""
13010
13011 #. type: =head2
13012 #: ../fish/guestfish-actions.pod:3880
13013 msgid "read-file"
13014 msgstr ""
13015
13016 #. type: verbatim
13017 #: ../fish/guestfish-actions.pod:3882
13018 #, no-wrap
13019 msgid ""
13020 " read-file path\n"
13021 "\n"
13022 msgstr ""
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
13026 msgid "This calls returns the contents of the file C<path> as a buffer."
13027 msgstr ""
13028
13029 #. type: textblock
13030 #: ../fish/guestfish-actions.pod:3887
13031 msgid ""
13032 "Unlike L</cat>, this function can correctly handle files that contain "
13033 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13034 "is limited in the total size of file that can be handled."
13035 msgstr ""
13036
13037 #. type: =head2
13038 #: ../fish/guestfish-actions.pod:3895
13039 msgid "read-lines"
13040 msgstr ""
13041
13042 #. type: verbatim
13043 #: ../fish/guestfish-actions.pod:3897
13044 #, no-wrap
13045 msgid ""
13046 " read-lines path\n"
13047 "\n"
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
13052 msgid ""
13053 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13054 "C<CRLF> character sequences are I<not> returned."
13055 msgstr ""
13056
13057 #. type: textblock
13058 #: ../fish/guestfish-actions.pod:3904
13059 msgid ""
13060 "Note that this function cannot correctly handle binary files (specifically, "
13061 "files containing C<\\0> character which is treated as end of line).  For "
13062 "those you need to use the L</read-file> function which has a more complex "
13063 "interface."
13064 msgstr ""
13065
13066 #. type: =head2
13067 #: ../fish/guestfish-actions.pod:3909
13068 msgid "readdir"
13069 msgstr ""
13070
13071 #. type: verbatim
13072 #: ../fish/guestfish-actions.pod:3911
13073 #, no-wrap
13074 msgid ""
13075 " readdir dir\n"
13076 "\n"
13077 msgstr ""
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
13081 msgid "This returns the list of directory entries in directory C<dir>."
13082 msgstr ""
13083
13084 #. type: textblock
13085 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
13086 msgid ""
13087 "All entries in the directory are returned, including C<.> and C<..>.  The "
13088 "entries are I<not> sorted, but returned in the same order as the underlying "
13089 "filesystem."
13090 msgstr ""
13091
13092 #. type: textblock
13093 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
13094 msgid ""
13095 "Also this call returns basic file type information about each file.  The "
13096 "C<ftyp> field will contain one of the following characters:"
13097 msgstr ""
13098
13099 #. type: =item
13100 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
13101 msgid "'b'"
13102 msgstr ""
13103
13104 #. type: textblock
13105 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13106 msgid "Block special"
13107 msgstr ""
13108
13109 #. type: =item
13110 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13111 msgid "'c'"
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
13116 msgid "Char special"
13117 msgstr ""
13118
13119 #. type: =item
13120 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13121 msgid "'d'"
13122 msgstr ""
13123
13124 #. type: textblock
13125 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
13126 msgid "Directory"
13127 msgstr ""
13128
13129 #. type: =item
13130 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
13131 msgid "'f'"
13132 msgstr ""
13133
13134 #. type: textblock
13135 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
13136 msgid "FIFO (named pipe)"
13137 msgstr ""
13138
13139 #. type: =item
13140 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
13141 msgid "'l'"
13142 msgstr ""
13143
13144 #. type: textblock
13145 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
13146 msgid "Symbolic link"
13147 msgstr ""
13148
13149 #. type: =item
13150 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
13151 msgid "'r'"
13152 msgstr ""
13153
13154 #. type: textblock
13155 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
13156 msgid "Regular file"
13157 msgstr ""
13158
13159 #. type: =item
13160 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
13161 msgid "'s'"
13162 msgstr ""
13163
13164 #. type: textblock
13165 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
13166 msgid "Socket"
13167 msgstr ""
13168
13169 #. type: =item
13170 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
13171 msgid "'u'"
13172 msgstr ""
13173
13174 #. type: textblock
13175 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
13176 msgid "Unknown file type"
13177 msgstr ""
13178
13179 #. type: =item
13180 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
13181 msgid "'?'"
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
13186 msgid ""
13187 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13188 msgstr ""
13189
13190 #. type: textblock
13191 #: ../fish/guestfish-actions.pod:3963
13192 msgid ""
13193 "This function is primarily intended for use by programs.  To get a simple "
13194 "list of names, use L</ls>.  To get a printable directory for human "
13195 "consumption, use L</ll>."
13196 msgstr ""
13197
13198 #. type: =head2
13199 #: ../fish/guestfish-actions.pod:3967
13200 msgid "readlink"
13201 msgstr ""
13202
13203 #. type: verbatim
13204 #: ../fish/guestfish-actions.pod:3969
13205 #, no-wrap
13206 msgid ""
13207 " readlink path\n"
13208 "\n"
13209 msgstr ""
13210
13211 #. type: textblock
13212 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
13213 msgid "This command reads the target of a symbolic link."
13214 msgstr ""
13215
13216 #. type: =head2
13217 #: ../fish/guestfish-actions.pod:3973
13218 msgid "readlinklist"
13219 msgstr ""
13220
13221 #. type: verbatim
13222 #: ../fish/guestfish-actions.pod:3975
13223 #, no-wrap
13224 msgid ""
13225 " readlinklist path 'names ...'\n"
13226 "\n"
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
13231 msgid ""
13232 "This call allows you to do a C<readlink> operation on multiple files, where "
13233 "all files are in the directory C<path>.  C<names> is the list of files from "
13234 "this directory."
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
13239 msgid ""
13240 "On return you get a list of strings, with a one-to-one correspondence to the "
13241 "C<names> list.  Each string is the value of the symbolic link."
13242 msgstr ""
13243
13244 #. type: textblock
13245 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
13246 msgid ""
13247 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13248 "result string is the empty string C<\"\">.  However the whole operation is "
13249 "completed even if there were C<readlink(2)> errors, and so you can call this "
13250 "function with names where you don't know if they are symbolic links already "
13251 "(albeit slightly less efficient)."
13252 msgstr ""
13253
13254 #. type: textblock
13255 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
13256 msgid ""
13257 "This call is intended for programs that want to efficiently list a directory "
13258 "contents without making many round-trips.  Very long directory listings "
13259 "might cause the protocol message size to be exceeded, causing this call to "
13260 "fail.  The caller must split up such requests into smaller groups of names."
13261 msgstr ""
13262
13263 #. type: =head2
13264 #: ../fish/guestfish-actions.pod:3999
13265 msgid "realpath"
13266 msgstr ""
13267
13268 #. type: verbatim
13269 #: ../fish/guestfish-actions.pod:4001
13270 #, no-wrap
13271 msgid ""
13272 " realpath path\n"
13273 "\n"
13274 msgstr ""
13275
13276 #. type: textblock
13277 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
13278 msgid ""
13279 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13280 "has no C<.>, C<..> or symbolic link path elements."
13281 msgstr ""
13282
13283 #. type: =head2
13284 #: ../fish/guestfish-actions.pod:4006
13285 msgid "removexattr"
13286 msgstr ""
13287
13288 #. type: verbatim
13289 #: ../fish/guestfish-actions.pod:4008
13290 #, no-wrap
13291 msgid ""
13292 " removexattr xattr path\n"
13293 "\n"
13294 msgstr ""
13295
13296 #. type: textblock
13297 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
13298 msgid ""
13299 "This call removes the extended attribute named C<xattr> of the file C<path>."
13300 msgstr ""
13301
13302 #. type: textblock
13303 #: ../fish/guestfish-actions.pod:4013
13304 msgid "See also: L</lremovexattr>, L<attr(5)>."
13305 msgstr ""
13306
13307 #. type: =head2
13308 #: ../fish/guestfish-actions.pod:4015
13309 msgid "resize2fs"
13310 msgstr ""
13311
13312 #. type: verbatim
13313 #: ../fish/guestfish-actions.pod:4017
13314 #, no-wrap
13315 msgid ""
13316 " resize2fs device\n"
13317 "\n"
13318 msgstr ""
13319
13320 #. type: textblock
13321 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
13322 msgid ""
13323 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13324 "underlying device."
13325 msgstr ""
13326
13327 #. type: textblock
13328 #: ../fish/guestfish-actions.pod:4022
13329 msgid ""
13330 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13331 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13332 "gives an error about this and sometimes not.  In any case, it is always safe "
13333 "to call L</e2fsck-f> before calling this function."
13334 msgstr ""
13335
13336 #. type: =head2
13337 #: ../fish/guestfish-actions.pod:4028
13338 msgid "resize2fs-M"
13339 msgstr ""
13340
13341 #. type: verbatim
13342 #: ../fish/guestfish-actions.pod:4030
13343 #, no-wrap
13344 msgid ""
13345 " resize2fs-M device\n"
13346 "\n"
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../fish/guestfish-actions.pod:4032
13351 msgid ""
13352 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13353 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13354 "command."
13355 msgstr ""
13356
13357 #. type: textblock
13358 #: ../fish/guestfish-actions.pod:4036
13359 msgid ""
13360 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13361 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13362 "multiplied together, give the resulting size of the minimal filesystem in "
13363 "bytes."
13364 msgstr ""
13365
13366 #. type: =head2
13367 #: ../fish/guestfish-actions.pod:4041
13368 msgid "resize2fs-size"
13369 msgstr ""
13370
13371 #. type: verbatim
13372 #: ../fish/guestfish-actions.pod:4043
13373 #, no-wrap
13374 msgid ""
13375 " resize2fs-size device size\n"
13376 "\n"
13377 msgstr ""
13378
13379 #. type: textblock
13380 #: ../fish/guestfish-actions.pod:4045
13381 msgid ""
13382 "This command is the same as L</resize2fs> except that it allows you to "
13383 "specify the new size (in bytes) explicitly."
13384 msgstr ""
13385
13386 #. type: =head2
13387 #: ../fish/guestfish-actions.pod:4048
13388 msgid "rm"
13389 msgstr ""
13390
13391 #. type: verbatim
13392 #: ../fish/guestfish-actions.pod:4050
13393 #, no-wrap
13394 msgid ""
13395 " rm path\n"
13396 "\n"
13397 msgstr ""
13398
13399 #. type: textblock
13400 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
13401 msgid "Remove the single file C<path>."
13402 msgstr ""
13403
13404 #. type: =head2
13405 #: ../fish/guestfish-actions.pod:4054
13406 msgid "rm-rf"
13407 msgstr ""
13408
13409 #. type: verbatim
13410 #: ../fish/guestfish-actions.pod:4056
13411 #, no-wrap
13412 msgid ""
13413 " rm-rf path\n"
13414 "\n"
13415 msgstr ""
13416
13417 #. type: textblock
13418 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
13419 msgid ""
13420 "Remove the file or directory C<path>, recursively removing the contents if "
13421 "its a directory.  This is like the C<rm -rf> shell command."
13422 msgstr ""
13423
13424 #. type: =head2
13425 #: ../fish/guestfish-actions.pod:4062
13426 msgid "rmdir"
13427 msgstr ""
13428
13429 #. type: verbatim
13430 #: ../fish/guestfish-actions.pod:4064
13431 #, no-wrap
13432 msgid ""
13433 " rmdir path\n"
13434 "\n"
13435 msgstr ""
13436
13437 #. type: textblock
13438 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
13439 msgid "Remove the single directory C<path>."
13440 msgstr ""
13441
13442 #. type: =head2
13443 #: ../fish/guestfish-actions.pod:4068
13444 msgid "rmmountpoint"
13445 msgstr ""
13446
13447 #. type: verbatim
13448 #: ../fish/guestfish-actions.pod:4070
13449 #, no-wrap
13450 msgid ""
13451 " rmmountpoint exemptpath\n"
13452 "\n"
13453 msgstr ""
13454
13455 #. type: textblock
13456 #: ../fish/guestfish-actions.pod:4072
13457 msgid ""
13458 "This calls removes a mountpoint that was previously created with L</"
13459 "mkmountpoint>.  See L</mkmountpoint> for full details."
13460 msgstr ""
13461
13462 #. type: =head2
13463 #: ../fish/guestfish-actions.pod:4076
13464 msgid "scrub-device"
13465 msgstr ""
13466
13467 #. type: verbatim
13468 #: ../fish/guestfish-actions.pod:4078
13469 #, no-wrap
13470 msgid ""
13471 " scrub-device device\n"
13472 "\n"
13473 msgstr ""
13474
13475 #. type: textblock
13476 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
13477 msgid ""
13478 "This command writes patterns over C<device> to make data retrieval more "
13479 "difficult."
13480 msgstr ""
13481
13482 #. type: textblock
13483 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
13484 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
13485 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
13486 msgid ""
13487 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13488 "more details."
13489 msgstr ""
13490
13491 #. type: =head2
13492 #: ../fish/guestfish-actions.pod:4089
13493 msgid "scrub-file"
13494 msgstr ""
13495
13496 #. type: verbatim
13497 #: ../fish/guestfish-actions.pod:4091
13498 #, no-wrap
13499 msgid ""
13500 " scrub-file file\n"
13501 "\n"
13502 msgstr ""
13503
13504 #. type: textblock
13505 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
13506 msgid ""
13507 "This command writes patterns over a file to make data retrieval more "
13508 "difficult."
13509 msgstr ""
13510
13511 #. type: textblock
13512 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
13513 msgid "The file is I<removed> after scrubbing."
13514 msgstr ""
13515
13516 #. type: =head2
13517 #: ../fish/guestfish-actions.pod:4101
13518 msgid "scrub-freespace"
13519 msgstr ""
13520
13521 #. type: verbatim
13522 #: ../fish/guestfish-actions.pod:4103
13523 #, no-wrap
13524 msgid ""
13525 " scrub-freespace dir\n"
13526 "\n"
13527 msgstr ""
13528
13529 #. type: textblock
13530 #: ../fish/guestfish-actions.pod:4105
13531 msgid ""
13532 "This command creates the directory C<dir> and then fills it with files until "
13533 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13534 "deletes them.  The intention is to scrub any free space on the partition "
13535 "containing C<dir>."
13536 msgstr ""
13537
13538 #. type: =head2
13539 #: ../fish/guestfish-actions.pod:4114
13540 msgid "set-append"
13541 msgstr ""
13542
13543 #. type: =head2
13544 #: ../fish/guestfish-actions.pod:4116
13545 msgid "append"
13546 msgstr ""
13547
13548 #. type: verbatim
13549 #: ../fish/guestfish-actions.pod:4118
13550 #, no-wrap
13551 msgid ""
13552 " set-append append\n"
13553 "\n"
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
13558 msgid ""
13559 "This function is used to add additional options to the guest kernel command "
13560 "line."
13561 msgstr ""
13562
13563 #. type: textblock
13564 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
13565 msgid ""
13566 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13567 "environment variable."
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
13572 msgid ""
13573 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13574 "(libguestfs always adds a few of its own)."
13575 msgstr ""
13576
13577 #. type: =head2
13578 #: ../fish/guestfish-actions.pod:4129
13579 msgid "set-attach-method"
13580 msgstr ""
13581
13582 #. type: =head2
13583 #: ../fish/guestfish-actions.pod:4131
13584 msgid "attach-method"
13585 msgstr ""
13586
13587 #. type: verbatim
13588 #: ../fish/guestfish-actions.pod:4133
13589 #, no-wrap
13590 msgid ""
13591 " set-attach-method attachmethod\n"
13592 "\n"
13593 msgstr ""
13594
13595 #. type: textblock
13596 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
13597 msgid ""
13598 "Set the method that libguestfs uses to connect to the back end guestfsd "
13599 "daemon.  Possible methods are:"
13600 msgstr ""
13601
13602 #. type: =item
13603 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
13604 #: ../src/guestfs.pod:2830
13605 msgid "C<appliance>"
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
13610 msgid ""
13611 "Launch an appliance and connect to it.  This is the ordinary method and the "
13612 "default."
13613 msgstr ""
13614
13615 #. type: =item
13616 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
13617 msgid "C<unix:I<path>>"
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
13622 msgid "Connect to the Unix domain socket I<path>."
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
13627 msgid ""
13628 "This method lets you connect to an existing daemon or (using virtio-serial) "
13629 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13630 "RUNNING DAEMONS>."
13631 msgstr ""
13632
13633 #. type: =head2
13634 #: ../fish/guestfish-actions.pod:4155
13635 msgid "set-autosync"
13636 msgstr ""
13637
13638 #. type: =head2
13639 #: ../fish/guestfish-actions.pod:4157
13640 msgid "autosync"
13641 msgstr ""
13642
13643 #. type: verbatim
13644 #: ../fish/guestfish-actions.pod:4159
13645 #, no-wrap
13646 msgid ""
13647 " set-autosync true|false\n"
13648 "\n"
13649 msgstr ""
13650
13651 #. type: textblock
13652 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
13653 msgid ""
13654 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13655 "effort attempt to make filesystems consistent and synchronized when the "
13656 "handle is closed (also if the program exits without closing handles)."
13657 msgstr ""
13658
13659 #. type: textblock
13660 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
13661 msgid ""
13662 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13663 "disabled by default)."
13664 msgstr ""
13665
13666 #. type: =head2
13667 #: ../fish/guestfish-actions.pod:4169
13668 msgid "set-direct"
13669 msgstr ""
13670
13671 #. type: =head2
13672 #: ../fish/guestfish-actions.pod:4171
13673 msgid "direct"
13674 msgstr ""
13675
13676 #. type: verbatim
13677 #: ../fish/guestfish-actions.pod:4173
13678 #, no-wrap
13679 msgid ""
13680 " set-direct true|false\n"
13681 "\n"
13682 msgstr ""
13683
13684 #. type: textblock
13685 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
13686 msgid ""
13687 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13688 "passed directly through to the appliance once it is launched."
13689 msgstr ""
13690
13691 #. type: textblock
13692 #: ../fish/guestfish-actions.pod:4179
13693 msgid ""
13694 "One consequence of this is that log messages aren't caught by the library "
13695 "and handled by L</set-log-message-callback>, but go straight to stdout."
13696 msgstr ""
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
13700 msgid "You probably don't want to use this unless you know what you are doing."
13701 msgstr ""
13702
13703 #. type: textblock
13704 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
13705 msgid "The default is disabled."
13706 msgstr ""
13707
13708 #. type: =head2
13709 #: ../fish/guestfish-actions.pod:4188
13710 msgid "set-e2label"
13711 msgstr ""
13712
13713 #. type: verbatim
13714 #: ../fish/guestfish-actions.pod:4190
13715 #, no-wrap
13716 msgid ""
13717 " set-e2label device label\n"
13718 "\n"
13719 msgstr ""
13720
13721 #. type: textblock
13722 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
13723 msgid ""
13724 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13725 "C<label>.  Filesystem labels are limited to 16 characters."
13726 msgstr ""
13727
13728 #. type: textblock
13729 #: ../fish/guestfish-actions.pod:4196
13730 msgid ""
13731 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13732 "label on a filesystem."
13733 msgstr ""
13734
13735 #. type: =head2
13736 #: ../fish/guestfish-actions.pod:4199
13737 msgid "set-e2uuid"
13738 msgstr ""
13739
13740 #. type: verbatim
13741 #: ../fish/guestfish-actions.pod:4201
13742 #, no-wrap
13743 msgid ""
13744 " set-e2uuid device uuid\n"
13745 "\n"
13746 msgstr ""
13747
13748 #. type: textblock
13749 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
13750 msgid ""
13751 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13752 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13753 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13754 msgstr ""
13755
13756 #. type: textblock
13757 #: ../fish/guestfish-actions.pod:4208
13758 msgid ""
13759 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13760 "UUID of a filesystem."
13761 msgstr ""
13762
13763 #. type: =head2
13764 #: ../fish/guestfish-actions.pod:4211
13765 msgid "set-memsize"
13766 msgstr ""
13767
13768 #. type: =head2
13769 #: ../fish/guestfish-actions.pod:4213
13770 msgid "memsize"
13771 msgstr ""
13772
13773 #. type: verbatim
13774 #: ../fish/guestfish-actions.pod:4215
13775 #, no-wrap
13776 msgid ""
13777 " set-memsize memsize\n"
13778 "\n"
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:4217
13783 msgid ""
13784 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13785 "This only has any effect if called before L</launch>."
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
13790 msgid ""
13791 "You can also change this by setting the environment variable "
13792 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13793 msgstr ""
13794
13795 #. type: =head2
13796 #: ../fish/guestfish-actions.pod:4228
13797 msgid "set-network"
13798 msgstr ""
13799
13800 #. type: =head2
13801 #: ../fish/guestfish-actions.pod:4230
13802 msgid "network"
13803 msgstr ""
13804
13805 #. type: verbatim
13806 #: ../fish/guestfish-actions.pod:4232
13807 #, no-wrap
13808 msgid ""
13809 " set-network true|false\n"
13810 "\n"
13811 msgstr ""
13812
13813 #. type: textblock
13814 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
13815 msgid ""
13816 "If C<network> is true, then the network is enabled in the libguestfs "
13817 "appliance.  The default is false."
13818 msgstr ""
13819
13820 #. type: textblock
13821 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
13822 msgid ""
13823 "This affects whether commands are able to access the network (see L<guestfs"
13824 "(3)/RUNNING COMMANDS>)."
13825 msgstr ""
13826
13827 #. type: textblock
13828 #: ../fish/guestfish-actions.pod:4240
13829 msgid ""
13830 "You must call this before calling L</launch>, otherwise it has no effect."
13831 msgstr ""
13832
13833 #. type: =head2
13834 #: ../fish/guestfish-actions.pod:4243
13835 msgid "set-path"
13836 msgstr ""
13837
13838 #. type: verbatim
13839 #: ../fish/guestfish-actions.pod:4247
13840 #, no-wrap
13841 msgid ""
13842 " set-path searchpath\n"
13843 "\n"
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
13848 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13849 msgstr ""
13850
13851 #. type: textblock
13852 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
13853 msgid ""
13854 "The default is C<$libdir/guestfs> unless overridden by setting "
13855 "C<LIBGUESTFS_PATH> environment variable."
13856 msgstr ""
13857
13858 #. type: textblock
13859 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
13860 msgid "Setting C<path> to C<NULL> restores the default path."
13861 msgstr ""
13862
13863 #. type: =head2
13864 #: ../fish/guestfish-actions.pod:4256
13865 msgid "set-pgroup"
13866 msgstr ""
13867
13868 #. type: =head2
13869 #: ../fish/guestfish-actions.pod:4258
13870 msgid "pgroup"
13871 msgstr ""
13872
13873 #. type: verbatim
13874 #: ../fish/guestfish-actions.pod:4260
13875 #, no-wrap
13876 msgid ""
13877 " set-pgroup true|false\n"
13878 "\n"
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
13883 msgid ""
13884 "If C<pgroup> is true, child processes are placed into their own process "
13885 "group."
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
13890 msgid ""
13891 "The practical upshot of this is that signals like C<SIGINT> (from users "
13892 "pressing C<^C>) won't be received by the child process."
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
13897 msgid ""
13898 "The default for this flag is false, because usually you want C<^C> to kill "
13899 "the subprocess."
13900 msgstr ""
13901
13902 #. type: =head2
13903 #: ../fish/guestfish-actions.pod:4271
13904 msgid "set-qemu"
13905 msgstr ""
13906
13907 #. type: =head2
13908 #: ../fish/guestfish-actions.pod:4273
13909 msgid "qemu"
13910 msgstr ""
13911
13912 #. type: verbatim
13913 #: ../fish/guestfish-actions.pod:4275
13914 #, no-wrap
13915 msgid ""
13916 " set-qemu qemu\n"
13917 "\n"
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
13922 msgid "Set the qemu binary that we will use."
13923 msgstr ""
13924
13925 #. type: textblock
13926 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
13927 msgid ""
13928 "The default is chosen when the library was compiled by the configure script."
13929 msgstr ""
13930
13931 #. type: textblock
13932 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
13933 msgid ""
13934 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13935 "variable."
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
13940 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13941 msgstr ""
13942
13943 #. type: textblock
13944 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
13945 msgid ""
13946 "Note that you should call this function as early as possible after creating "
13947 "the handle.  This is because some pre-launch operations depend on testing "
13948 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13949 "don't retest features, and so you might see inconsistent results.  Using the "
13950 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13951 "the qemu binary at the same time as the handle is created."
13952 msgstr ""
13953
13954 #. type: =head2
13955 #: ../fish/guestfish-actions.pod:4295
13956 msgid "set-recovery-proc"
13957 msgstr ""
13958
13959 #. type: =head2
13960 #: ../fish/guestfish-actions.pod:4297
13961 msgid "recovery-proc"
13962 msgstr ""
13963
13964 #. type: verbatim
13965 #: ../fish/guestfish-actions.pod:4299
13966 #, no-wrap
13967 msgid ""
13968 " set-recovery-proc true|false\n"
13969 "\n"
13970 msgstr ""
13971
13972 #. type: textblock
13973 #: ../fish/guestfish-actions.pod:4301
13974 msgid ""
13975 "If this is called with the parameter C<false> then L</launch> does not "
13976 "create a recovery process.  The purpose of the recovery process is to stop "
13977 "runaway qemu processes in the case where the main program aborts abruptly."
13978 msgstr ""
13979
13980 #. type: textblock
13981 #: ../fish/guestfish-actions.pod:4306
13982 msgid ""
13983 "This only has any effect if called before L</launch>, and the default is "
13984 "true."
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
13989 msgid ""
13990 "About the only time when you would want to disable this is if the main "
13991 "process will fork itself into the background (\"daemonize\" itself).  In "
13992 "this case the recovery process thinks that the main program has disappeared "
13993 "and so kills qemu, which is not very helpful."
13994 msgstr ""
13995
13996 #. type: =head2
13997 #: ../fish/guestfish-actions.pod:4315
13998 msgid "set-selinux"
13999 msgstr ""
14000
14001 #. type: =head2
14002 #: ../fish/guestfish-actions.pod:4317
14003 msgid "selinux"
14004 msgstr ""
14005
14006 #. type: verbatim
14007 #: ../fish/guestfish-actions.pod:4319
14008 #, no-wrap
14009 msgid ""
14010 " set-selinux true|false\n"
14011 "\n"
14012 msgstr ""
14013
14014 #. type: textblock
14015 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
14016 msgid ""
14017 "This sets the selinux flag that is passed to the appliance at boot time.  "
14018 "The default is C<selinux=0> (disabled)."
14019 msgstr ""
14020
14021 #. type: textblock
14022 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
14023 msgid ""
14024 "Note that if SELinux is enabled, it is always in Permissive mode "
14025 "(C<enforcing=0>)."
14026 msgstr ""
14027
14028 #. type: =head2
14029 #: ../fish/guestfish-actions.pod:4330
14030 msgid "set-smp"
14031 msgstr ""
14032
14033 #. type: =head2
14034 #: ../fish/guestfish-actions.pod:4332
14035 msgid "smp"
14036 msgstr ""
14037
14038 #. type: verbatim
14039 #: ../fish/guestfish-actions.pod:4334
14040 #, no-wrap
14041 msgid ""
14042 " set-smp smp\n"
14043 "\n"
14044 msgstr ""
14045
14046 #. type: textblock
14047 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
14048 msgid ""
14049 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14050 "C<1>.  Increasing this may improve performance, though often it has no "
14051 "effect."
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:4340
14056 msgid "This function must be called before L</launch>."
14057 msgstr ""
14058
14059 #. type: =head2
14060 #: ../fish/guestfish-actions.pod:4342
14061 msgid "set-trace"
14062 msgstr ""
14063
14064 #. type: =head2
14065 #: ../fish/guestfish-actions.pod:4344
14066 msgid "trace"
14067 msgstr ""
14068
14069 #. type: verbatim
14070 #: ../fish/guestfish-actions.pod:4346
14071 #, no-wrap
14072 msgid ""
14073 " set-trace true|false\n"
14074 "\n"
14075 msgstr ""
14076
14077 #. type: textblock
14078 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
14079 msgid ""
14080 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14081 "return values are traced."
14082 msgstr ""
14083
14084 #. type: textblock
14085 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
14086 msgid ""
14087 "If you want to trace C API calls into libguestfs (and other libraries) then "
14088 "possibly a better way is to use the external ltrace(1) command."
14089 msgstr ""
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
14093 msgid ""
14094 "Command traces are disabled unless the environment variable "
14095 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14096 msgstr ""
14097
14098 #. type: textblock
14099 #: ../fish/guestfish-actions.pod:4358
14100 msgid ""
14101 "Trace messages are normally sent to C<stderr>, unless you register a "
14102 "callback to send them somewhere else (see L</set-event-callback>)."
14103 msgstr ""
14104
14105 #. type: =head2
14106 #: ../fish/guestfish-actions.pod:4362
14107 msgid "set-verbose"
14108 msgstr ""
14109
14110 #. type: =head2
14111 #: ../fish/guestfish-actions.pod:4364
14112 msgid "verbose"
14113 msgstr ""
14114
14115 #. type: verbatim
14116 #: ../fish/guestfish-actions.pod:4366
14117 #, no-wrap
14118 msgid ""
14119 " set-verbose true|false\n"
14120 "\n"
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
14125 msgid "If C<verbose> is true, this turns on verbose messages."
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
14130 msgid ""
14131 "Verbose messages are disabled unless the environment variable "
14132 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14133 msgstr ""
14134
14135 #. type: textblock
14136 #: ../fish/guestfish-actions.pod:4373
14137 msgid ""
14138 "Verbose messages are normally sent to C<stderr>, unless you register a "
14139 "callback to send them somewhere else (see L</set-event-callback>)."
14140 msgstr ""
14141
14142 #. type: =head2
14143 #: ../fish/guestfish-actions.pod:4377
14144 msgid "setcon"
14145 msgstr ""
14146
14147 #. type: verbatim
14148 #: ../fish/guestfish-actions.pod:4379
14149 #, no-wrap
14150 msgid ""
14151 " setcon context\n"
14152 "\n"
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
14157 msgid ""
14158 "This sets the SELinux security context of the daemon to the string "
14159 "C<context>."
14160 msgstr ""
14161
14162 #. type: textblock
14163 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
14164 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14165 msgstr ""
14166
14167 #. type: =head2
14168 #: ../fish/guestfish-actions.pod:4386
14169 msgid "setxattr"
14170 msgstr ""
14171
14172 #. type: verbatim
14173 #: ../fish/guestfish-actions.pod:4388
14174 #, no-wrap
14175 msgid ""
14176 " setxattr xattr val vallen path\n"
14177 "\n"
14178 msgstr ""
14179
14180 #. type: textblock
14181 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
14182 msgid ""
14183 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14184 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14185 msgstr ""
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:4394
14189 msgid "See also: L</lsetxattr>, L<attr(5)>."
14190 msgstr ""
14191
14192 #. type: =head2
14193 #: ../fish/guestfish-actions.pod:4396
14194 msgid "sfdisk"
14195 msgstr ""
14196
14197 #. type: verbatim
14198 #: ../fish/guestfish-actions.pod:4398
14199 #, no-wrap
14200 msgid ""
14201 " sfdisk device cyls heads sectors 'lines ...'\n"
14202 "\n"
14203 msgstr ""
14204
14205 #. type: textblock
14206 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
14207 msgid ""
14208 "This is a direct interface to the L<sfdisk(8)> program for creating "
14209 "partitions on block devices."
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
14214 msgid "C<device> should be a block device, for example C</dev/sda>."
14215 msgstr ""
14216
14217 #. type: textblock
14218 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
14219 msgid ""
14220 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14221 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14222 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14223 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14224 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14225 "the kernel) cannot work out the right geometry and you will need to tell it."
14226 msgstr ""
14227
14228 #. type: textblock
14229 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
14230 msgid ""
14231 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14232 "refer to the L<sfdisk(8)> manpage."
14233 msgstr ""
14234
14235 #. type: textblock
14236 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
14237 msgid ""
14238 "To create a single partition occupying the whole disk, you would pass "
14239 "C<lines> as a single element list, when the single element being the string "
14240 "C<,> (comma)."
14241 msgstr ""
14242
14243 #. type: textblock
14244 #: ../fish/guestfish-actions.pod:4420
14245 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
14250 #: ../fish/guestfish-actions.pod:4471
14251 msgid ""
14252 "I<This function is deprecated.> In new code, use the L</part_add> call "
14253 "instead."
14254 msgstr ""
14255
14256 #. type: =head2
14257 #: ../fish/guestfish-actions.pod:4433
14258 msgid "sfdiskM"
14259 msgstr ""
14260
14261 #. type: verbatim
14262 #: ../fish/guestfish-actions.pod:4435
14263 #, no-wrap
14264 msgid ""
14265 " sfdiskM device 'lines ...'\n"
14266 "\n"
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../fish/guestfish-actions.pod:4437
14271 msgid ""
14272 "This is a simplified interface to the L</sfdisk> command, where partition "
14273 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14274 "you don't need to specify the cyls, heads and sectors parameters which were "
14275 "rarely if ever used anyway."
14276 msgstr ""
14277
14278 #. type: textblock
14279 #: ../fish/guestfish-actions.pod:4443
14280 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14281 msgstr ""
14282
14283 #. type: =head2
14284 #: ../fish/guestfish-actions.pod:4456
14285 msgid "sfdisk-N"
14286 msgstr ""
14287
14288 #. type: verbatim
14289 #: ../fish/guestfish-actions.pod:4458
14290 #, no-wrap
14291 msgid ""
14292 " sfdisk-N device partnum cyls heads sectors line\n"
14293 "\n"
14294 msgstr ""
14295
14296 #. type: textblock
14297 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
14298 msgid ""
14299 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14300 "(note: C<n> counts from 1)."
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../fish/guestfish-actions.pod:4463
14305 msgid ""
14306 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14307 "cyls/heads/sectors parameters."
14308 msgstr ""
14309
14310 #. type: textblock
14311 #: ../fish/guestfish-actions.pod:4466
14312 msgid "See also: L</part-add>"
14313 msgstr ""
14314
14315 #. type: =head2
14316 #: ../fish/guestfish-actions.pod:4478
14317 msgid "sfdisk-disk-geometry"
14318 msgstr ""
14319
14320 #. type: verbatim
14321 #: ../fish/guestfish-actions.pod:4480
14322 #, no-wrap
14323 msgid ""
14324 " sfdisk-disk-geometry device\n"
14325 "\n"
14326 msgstr ""
14327
14328 #. type: textblock
14329 #: ../fish/guestfish-actions.pod:4482
14330 msgid ""
14331 "This displays the disk geometry of C<device> read from the partition table.  "
14332 "Especially in the case where the underlying block device has been resized, "
14333 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14334 "kernel-geometry>)."
14335 msgstr ""
14336
14337 #. type: textblock
14338 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
14339 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
14340 msgid "The result is in human-readable format, and not designed to be parsed."
14341 msgstr ""
14342
14343 #. type: =head2
14344 #: ../fish/guestfish-actions.pod:4490
14345 msgid "sfdisk-kernel-geometry"
14346 msgstr ""
14347
14348 #. type: verbatim
14349 #: ../fish/guestfish-actions.pod:4492
14350 #, no-wrap
14351 msgid ""
14352 " sfdisk-kernel-geometry device\n"
14353 "\n"
14354 msgstr ""
14355
14356 #. type: textblock
14357 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
14358 msgid "This displays the kernel's idea of the geometry of C<device>."
14359 msgstr ""
14360
14361 #. type: =head2
14362 #: ../fish/guestfish-actions.pod:4499
14363 msgid "sfdisk-l"
14364 msgstr ""
14365
14366 #. type: verbatim
14367 #: ../fish/guestfish-actions.pod:4501
14368 #, no-wrap
14369 msgid ""
14370 " sfdisk-l device\n"
14371 "\n"
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
14376 msgid ""
14377 "This displays the partition table on C<device>, in the human-readable output "
14378 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:4507
14383 msgid "See also: L</part-list>"
14384 msgstr ""
14385
14386 #. type: textblock
14387 #: ../fish/guestfish-actions.pod:4509
14388 msgid ""
14389 "I<This function is deprecated.> In new code, use the L</part_list> call "
14390 "instead."
14391 msgstr ""
14392
14393 #. type: =head2
14394 #: ../fish/guestfish-actions.pod:4516
14395 msgid "sh"
14396 msgstr ""
14397
14398 #. type: verbatim
14399 #: ../fish/guestfish-actions.pod:4518
14400 #, no-wrap
14401 msgid ""
14402 " sh command\n"
14403 "\n"
14404 msgstr ""
14405
14406 #. type: textblock
14407 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
14408 msgid ""
14409 "This call runs a command from the guest filesystem via the guest's C</bin/"
14410 "sh>."
14411 msgstr ""
14412
14413 #. type: textblock
14414 #: ../fish/guestfish-actions.pod:4523
14415 msgid "This is like L</command>, but passes the command to:"
14416 msgstr ""
14417
14418 #. type: verbatim
14419 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
14420 #, no-wrap
14421 msgid ""
14422 " /bin/sh -c \"command\"\n"
14423 "\n"
14424 msgstr ""
14425
14426 #. type: textblock
14427 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
14428 msgid ""
14429 "Depending on the guest's shell, this usually results in wildcards being "
14430 "expanded, shell expressions being interpolated and so on."
14431 msgstr ""
14432
14433 #. type: textblock
14434 #: ../fish/guestfish-actions.pod:4531
14435 msgid "All the provisos about L</command> apply to this call."
14436 msgstr ""
14437
14438 #. type: =head2
14439 #: ../fish/guestfish-actions.pod:4533
14440 msgid "sh-lines"
14441 msgstr ""
14442
14443 #. type: verbatim
14444 #: ../fish/guestfish-actions.pod:4535
14445 #, no-wrap
14446 msgid ""
14447 " sh-lines command\n"
14448 "\n"
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4537
14453 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:4540
14458 msgid "See also: L</command-lines>"
14459 msgstr ""
14460
14461 #. type: =head2
14462 #: ../fish/guestfish-actions.pod:4542
14463 msgid "sleep"
14464 msgstr ""
14465
14466 #. type: verbatim
14467 #: ../fish/guestfish-actions.pod:4544
14468 #, no-wrap
14469 msgid ""
14470 " sleep secs\n"
14471 "\n"
14472 msgstr ""
14473
14474 #. type: textblock
14475 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
14476 msgid "Sleep for C<secs> seconds."
14477 msgstr ""
14478
14479 #. type: =head2
14480 #: ../fish/guestfish-actions.pod:4548
14481 msgid "stat"
14482 msgstr ""
14483
14484 #. type: verbatim
14485 #: ../fish/guestfish-actions.pod:4550
14486 #, no-wrap
14487 msgid ""
14488 " stat path\n"
14489 "\n"
14490 msgstr ""
14491
14492 #. type: textblock
14493 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
14494 msgid "This is the same as the C<stat(2)> system call."
14495 msgstr ""
14496
14497 #. type: =head2
14498 #: ../fish/guestfish-actions.pod:4556
14499 msgid "statvfs"
14500 msgstr ""
14501
14502 #. type: verbatim
14503 #: ../fish/guestfish-actions.pod:4558
14504 #, no-wrap
14505 msgid ""
14506 " statvfs path\n"
14507 "\n"
14508 msgstr ""
14509
14510 #. type: textblock
14511 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
14512 msgid ""
14513 "Returns file system statistics for any mounted file system.  C<path> should "
14514 "be a file or directory in the mounted file system (typically it is the mount "
14515 "point itself, but it doesn't need to be)."
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
14520 msgid "This is the same as the C<statvfs(2)> system call."
14521 msgstr ""
14522
14523 #. type: =head2
14524 #: ../fish/guestfish-actions.pod:4566
14525 msgid "strings"
14526 msgstr ""
14527
14528 #. type: verbatim
14529 #: ../fish/guestfish-actions.pod:4568
14530 #, no-wrap
14531 msgid ""
14532 " strings path\n"
14533 "\n"
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
14538 msgid ""
14539 "This runs the L<strings(1)> command on a file and returns the list of "
14540 "printable strings found."
14541 msgstr ""
14542
14543 #. type: =head2
14544 #: ../fish/guestfish-actions.pod:4576
14545 msgid "strings-e"
14546 msgstr ""
14547
14548 #. type: verbatim
14549 #: ../fish/guestfish-actions.pod:4578
14550 #, no-wrap
14551 msgid ""
14552 " strings-e encoding path\n"
14553 "\n"
14554 msgstr ""
14555
14556 #. type: textblock
14557 #: ../fish/guestfish-actions.pod:4580
14558 msgid ""
14559 "This is like the L</strings> command, but allows you to specify the encoding "
14560 "of strings that are looked for in the source file C<path>."
14561 msgstr ""
14562
14563 #. type: textblock
14564 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
14565 msgid "Allowed encodings are:"
14566 msgstr ""
14567
14568 #. type: =item
14569 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
14570 msgid "s"
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../fish/guestfish-actions.pod:4590
14575 msgid ""
14576 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14577 "ISO-8859-X (this is what L</strings> uses)."
14578 msgstr ""
14579
14580 #. type: =item
14581 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
14582 msgid "S"
14583 msgstr ""
14584
14585 #. type: textblock
14586 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
14587 msgid "Single 8-bit-byte characters."
14588 msgstr ""
14589
14590 #. type: =item
14591 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
14592 msgid "b"
14593 msgstr ""
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
14597 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14598 msgstr ""
14599
14600 #. type: =item
14601 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
14602 msgid "l (lower case letter L)"
14603 msgstr ""
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
14607 msgid ""
14608 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14609 "examining binaries in Windows guests."
14610 msgstr ""
14611
14612 #. type: =item
14613 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
14614 msgid "B"
14615 msgstr ""
14616
14617 #. type: textblock
14618 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
14619 msgid "32-bit big endian such as UCS-4BE."
14620 msgstr ""
14621
14622 #. type: =item
14623 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
14624 msgid "L"
14625 msgstr ""
14626
14627 #. type: textblock
14628 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
14629 msgid "32-bit little endian such as UCS-4LE."
14630 msgstr ""
14631
14632 #. type: textblock
14633 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
14634 msgid "The returned strings are transcoded to UTF-8."
14635 msgstr ""
14636
14637 #. type: =head2
14638 #: ../fish/guestfish-actions.pod:4622
14639 msgid "swapoff-device"
14640 msgstr ""
14641
14642 #. type: verbatim
14643 #: ../fish/guestfish-actions.pod:4624
14644 #, no-wrap
14645 msgid ""
14646 " swapoff-device device\n"
14647 "\n"
14648 msgstr ""
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:4626
14652 msgid ""
14653 "This command disables the libguestfs appliance swap device or partition "
14654 "named C<device>.  See L</swapon-device>."
14655 msgstr ""
14656
14657 #. type: =head2
14658 #: ../fish/guestfish-actions.pod:4630
14659 msgid "swapoff-file"
14660 msgstr ""
14661
14662 #. type: verbatim
14663 #: ../fish/guestfish-actions.pod:4632
14664 #, no-wrap
14665 msgid ""
14666 " swapoff-file file\n"
14667 "\n"
14668 msgstr ""
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
14672 msgid "This command disables the libguestfs appliance swap on file."
14673 msgstr ""
14674
14675 #. type: =head2
14676 #: ../fish/guestfish-actions.pod:4636
14677 msgid "swapoff-label"
14678 msgstr ""
14679
14680 #. type: verbatim
14681 #: ../fish/guestfish-actions.pod:4638
14682 #, no-wrap
14683 msgid ""
14684 " swapoff-label label\n"
14685 "\n"
14686 msgstr ""
14687
14688 #. type: textblock
14689 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
14690 msgid ""
14691 "This command disables the libguestfs appliance swap on labeled swap "
14692 "partition."
14693 msgstr ""
14694
14695 #. type: =head2
14696 #: ../fish/guestfish-actions.pod:4643
14697 msgid "swapoff-uuid"
14698 msgstr ""
14699
14700 #. type: verbatim
14701 #: ../fish/guestfish-actions.pod:4645
14702 #, no-wrap
14703 msgid ""
14704 " swapoff-uuid uuid\n"
14705 "\n"
14706 msgstr ""
14707
14708 #. type: textblock
14709 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
14710 msgid ""
14711 "This command disables the libguestfs appliance swap partition with the given "
14712 "UUID."
14713 msgstr ""
14714
14715 #. type: =head2
14716 #: ../fish/guestfish-actions.pod:4650
14717 msgid "swapon-device"
14718 msgstr ""
14719
14720 #. type: verbatim
14721 #: ../fish/guestfish-actions.pod:4652
14722 #, no-wrap
14723 msgid ""
14724 " swapon-device device\n"
14725 "\n"
14726 msgstr ""
14727
14728 #. type: textblock
14729 #: ../fish/guestfish-actions.pod:4654
14730 msgid ""
14731 "This command enables the libguestfs appliance to use the swap device or "
14732 "partition named C<device>.  The increased memory is made available for all "
14733 "commands, for example those run using L</command> or L</sh>."
14734 msgstr ""
14735
14736 #. type: textblock
14737 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
14738 msgid ""
14739 "Note that you should not swap to existing guest swap partitions unless you "
14740 "know what you are doing.  They may contain hibernation information, or other "
14741 "information that the guest doesn't want you to trash.  You also risk leaking "
14742 "information about the host to the guest this way.  Instead, attach a new "
14743 "host device to the guest and swap on that."
14744 msgstr ""
14745
14746 #. type: =head2
14747 #: ../fish/guestfish-actions.pod:4666
14748 msgid "swapon-file"
14749 msgstr ""
14750
14751 #. type: verbatim
14752 #: ../fish/guestfish-actions.pod:4668
14753 #, no-wrap
14754 msgid ""
14755 " swapon-file file\n"
14756 "\n"
14757 msgstr ""
14758
14759 #. type: textblock
14760 #: ../fish/guestfish-actions.pod:4670
14761 msgid ""
14762 "This command enables swap to a file.  See L</swapon-device> for other notes."
14763 msgstr ""
14764
14765 #. type: =head2
14766 #: ../fish/guestfish-actions.pod:4673
14767 msgid "swapon-label"
14768 msgstr ""
14769
14770 #. type: verbatim
14771 #: ../fish/guestfish-actions.pod:4675
14772 #, no-wrap
14773 msgid ""
14774 " swapon-label label\n"
14775 "\n"
14776 msgstr ""
14777
14778 #. type: textblock
14779 #: ../fish/guestfish-actions.pod:4677
14780 msgid ""
14781 "This command enables swap to a labeled swap partition.  See L</swapon-"
14782 "device> for other notes."
14783 msgstr ""
14784
14785 #. type: =head2
14786 #: ../fish/guestfish-actions.pod:4680
14787 msgid "swapon-uuid"
14788 msgstr ""
14789
14790 #. type: verbatim
14791 #: ../fish/guestfish-actions.pod:4682
14792 #, no-wrap
14793 msgid ""
14794 " swapon-uuid uuid\n"
14795 "\n"
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../fish/guestfish-actions.pod:4684
14800 msgid ""
14801 "This command enables swap to a swap partition with the given UUID.  See L</"
14802 "swapon-device> for other notes."
14803 msgstr ""
14804
14805 #. type: =head2
14806 #: ../fish/guestfish-actions.pod:4687
14807 msgid "sync"
14808 msgstr ""
14809
14810 #. type: verbatim
14811 #: ../fish/guestfish-actions.pod:4689
14812 #, no-wrap
14813 msgid ""
14814 " sync\n"
14815 "\n"
14816 msgstr ""
14817
14818 #. type: textblock
14819 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
14820 msgid ""
14821 "This syncs the disk, so that any writes are flushed through to the "
14822 "underlying disk image."
14823 msgstr ""
14824
14825 #. type: textblock
14826 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
14827 msgid ""
14828 "You should always call this if you have modified a disk image, before "
14829 "closing the handle."
14830 msgstr ""
14831
14832 #. type: =head2
14833 #: ../fish/guestfish-actions.pod:4697
14834 msgid "tail"
14835 msgstr ""
14836
14837 #. type: verbatim
14838 #: ../fish/guestfish-actions.pod:4699
14839 #, no-wrap
14840 msgid ""
14841 " tail path\n"
14842 "\n"
14843 msgstr ""
14844
14845 #. type: textblock
14846 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
14847 msgid ""
14848 "This command returns up to the last 10 lines of a file as a list of strings."
14849 msgstr ""
14850
14851 #. type: =head2
14852 #: ../fish/guestfish-actions.pod:4707
14853 msgid "tail-n"
14854 msgstr ""
14855
14856 #. type: verbatim
14857 #: ../fish/guestfish-actions.pod:4709
14858 #, no-wrap
14859 msgid ""
14860 " tail-n nrlines path\n"
14861 "\n"
14862 msgstr ""
14863
14864 #. type: textblock
14865 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
14866 msgid ""
14867 "If the parameter C<nrlines> is a positive number, this returns the last "
14868 "C<nrlines> lines of the file C<path>."
14869 msgstr ""
14870
14871 #. type: textblock
14872 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
14873 msgid ""
14874 "If the parameter C<nrlines> is a negative number, this returns lines from "
14875 "the file C<path>, starting with the C<-nrlines>th line."
14876 msgstr ""
14877
14878 #. type: =head2
14879 #: ../fish/guestfish-actions.pod:4722
14880 msgid "tar-in"
14881 msgstr ""
14882
14883 #. type: verbatim
14884 #: ../fish/guestfish-actions.pod:4724
14885 #, no-wrap
14886 msgid ""
14887 " tar-in (tarfile|-) directory\n"
14888 "\n"
14889 msgstr ""
14890
14891 #. type: textblock
14892 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
14893 msgid ""
14894 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14895 "tar file) into C<directory>."
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:4729
14900 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14901 msgstr ""
14902
14903 #. type: =head2
14904 #: ../fish/guestfish-actions.pod:4734
14905 msgid "tar-out"
14906 msgstr ""
14907
14908 #. type: verbatim
14909 #: ../fish/guestfish-actions.pod:4736
14910 #, no-wrap
14911 msgid ""
14912 " tar-out directory (tarfile|-)\n"
14913 "\n"
14914 msgstr ""
14915
14916 #. type: textblock
14917 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
14918 msgid ""
14919 "This command packs the contents of C<directory> and downloads it to local "
14920 "file C<tarfile>."
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-actions.pod:4741
14925 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14926 msgstr ""
14927
14928 #. type: =head2
14929 #: ../fish/guestfish-actions.pod:4746
14930 msgid "tgz-in"
14931 msgstr ""
14932
14933 #. type: verbatim
14934 #: ../fish/guestfish-actions.pod:4748
14935 #, no-wrap
14936 msgid ""
14937 " tgz-in (tarball|-) directory\n"
14938 "\n"
14939 msgstr ""
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
14943 msgid ""
14944 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14945 "tar file) into C<directory>."
14946 msgstr ""
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:4753
14950 msgid "To upload an uncompressed tarball, use L</tar-in>."
14951 msgstr ""
14952
14953 #. type: =head2
14954 #: ../fish/guestfish-actions.pod:4757
14955 msgid "tgz-out"
14956 msgstr ""
14957
14958 #. type: verbatim
14959 #: ../fish/guestfish-actions.pod:4759
14960 #, no-wrap
14961 msgid ""
14962 " tgz-out directory (tarball|-)\n"
14963 "\n"
14964 msgstr ""
14965
14966 #. type: textblock
14967 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
14968 msgid ""
14969 "This command packs the contents of C<directory> and downloads it to local "
14970 "file C<tarball>."
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:4764
14975 msgid "To download an uncompressed tarball, use L</tar-out>."
14976 msgstr ""
14977
14978 #. type: =head2
14979 #: ../fish/guestfish-actions.pod:4768
14980 msgid "touch"
14981 msgstr ""
14982
14983 #. type: verbatim
14984 #: ../fish/guestfish-actions.pod:4770
14985 #, no-wrap
14986 msgid ""
14987 " touch path\n"
14988 "\n"
14989 msgstr ""
14990
14991 #. type: textblock
14992 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
14993 msgid ""
14994 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14995 "timestamps on a file, or, if the file does not exist, to create a new zero-"
14996 "length file."
14997 msgstr ""
14998
14999 #. type: textblock
15000 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
15001 msgid ""
15002 "This command only works on regular files, and will fail on other file types "
15003 "such as directories, symbolic links, block special etc."
15004 msgstr ""
15005
15006 #. type: =head2
15007 #: ../fish/guestfish-actions.pod:4779
15008 msgid "truncate"
15009 msgstr ""
15010
15011 #. type: verbatim
15012 #: ../fish/guestfish-actions.pod:4781
15013 #, no-wrap
15014 msgid ""
15015 " truncate path\n"
15016 "\n"
15017 msgstr ""
15018
15019 #. type: textblock
15020 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
15021 msgid ""
15022 "This command truncates C<path> to a zero-length file.  The file must exist "
15023 "already."
15024 msgstr ""
15025
15026 #. type: =head2
15027 #: ../fish/guestfish-actions.pod:4786
15028 msgid "truncate-size"
15029 msgstr ""
15030
15031 #. type: verbatim
15032 #: ../fish/guestfish-actions.pod:4788
15033 #, no-wrap
15034 msgid ""
15035 " truncate-size path size\n"
15036 "\n"
15037 msgstr ""
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
15041 msgid ""
15042 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15043 "already."
15044 msgstr ""
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-actions.pod:4793
15048 msgid ""
15049 "If the current file size is less than C<size> then the file is extended to "
15050 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15051 "blocks are not allocated for the file until you write to it).  To create a "
15052 "non-sparse file of zeroes, use L</fallocate64> instead."
15053 msgstr ""
15054
15055 #. type: =head2
15056 #: ../fish/guestfish-actions.pod:4799
15057 msgid "tune2fs-l"
15058 msgstr ""
15059
15060 #. type: verbatim
15061 #: ../fish/guestfish-actions.pod:4801
15062 #, no-wrap
15063 msgid ""
15064 " tune2fs-l device\n"
15065 "\n"
15066 msgstr ""
15067
15068 #. type: textblock
15069 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
15070 msgid ""
15071 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15072 "C<device>."
15073 msgstr ""
15074
15075 #. type: textblock
15076 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
15077 msgid ""
15078 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15079 "for more details.  The list of fields returned isn't clearly defined, and "
15080 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15081 "and the filesystem itself."
15082 msgstr ""
15083
15084 #. type: =head2
15085 #: ../fish/guestfish-actions.pod:4811
15086 msgid "txz-in"
15087 msgstr ""
15088
15089 #. type: verbatim
15090 #: ../fish/guestfish-actions.pod:4813
15091 #, no-wrap
15092 msgid ""
15093 " txz-in (tarball|-) directory\n"
15094 "\n"
15095 msgstr ""
15096
15097 #. type: textblock
15098 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
15099 msgid ""
15100 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15101 "tar file) into C<directory>."
15102 msgstr ""
15103
15104 #. type: =head2
15105 #: ../fish/guestfish-actions.pod:4820
15106 msgid "txz-out"
15107 msgstr ""
15108
15109 #. type: verbatim
15110 #: ../fish/guestfish-actions.pod:4822
15111 #, no-wrap
15112 msgid ""
15113 " txz-out directory (tarball|-)\n"
15114 "\n"
15115 msgstr ""
15116
15117 #. type: textblock
15118 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
15119 msgid ""
15120 "This command packs the contents of C<directory> and downloads it to local "
15121 "file C<tarball> (as an xz compressed tar archive)."
15122 msgstr ""
15123
15124 #. type: =head2
15125 #: ../fish/guestfish-actions.pod:4829
15126 msgid "umask"
15127 msgstr ""
15128
15129 #. type: verbatim
15130 #: ../fish/guestfish-actions.pod:4831
15131 #, no-wrap
15132 msgid ""
15133 " umask mask\n"
15134 "\n"
15135 msgstr ""
15136
15137 #. type: textblock
15138 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
15139 msgid ""
15140 "This function sets the mask used for creating new files and device nodes to "
15141 "C<mask & 0777>."
15142 msgstr ""
15143
15144 #. type: textblock
15145 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
15146 msgid ""
15147 "Typical umask values would be C<022> which creates new files with "
15148 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15149 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15150 msgstr ""
15151
15152 #. type: textblock
15153 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
15154 msgid ""
15155 "The default umask is C<022>.  This is important because it means that "
15156 "directories and device nodes will be created with C<0644> or C<0755> mode "
15157 "even if you specify C<0777>."
15158 msgstr ""
15159
15160 #. type: textblock
15161 #: ../fish/guestfish-actions.pod:4845
15162 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15163 msgstr ""
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
15167 msgid "This call returns the previous umask."
15168 msgstr ""
15169
15170 #. type: =head2
15171 #: ../fish/guestfish-actions.pod:4850
15172 msgid "umount"
15173 msgstr ""
15174
15175 #. type: =head2
15176 #: ../fish/guestfish-actions.pod:4852
15177 msgid "unmount"
15178 msgstr ""
15179
15180 #. type: verbatim
15181 #: ../fish/guestfish-actions.pod:4854
15182 #, no-wrap
15183 msgid ""
15184 " umount pathordevice\n"
15185 "\n"
15186 msgstr ""
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
15190 msgid ""
15191 "This unmounts the given filesystem.  The filesystem may be specified either "
15192 "by its mountpoint (path) or the device which contains the filesystem."
15193 msgstr ""
15194
15195 #. type: =head2
15196 #: ../fish/guestfish-actions.pod:4860
15197 msgid "umount-all"
15198 msgstr ""
15199
15200 #. type: =head2
15201 #: ../fish/guestfish-actions.pod:4862
15202 msgid "unmount-all"
15203 msgstr ""
15204
15205 #. type: verbatim
15206 #: ../fish/guestfish-actions.pod:4864
15207 #, no-wrap
15208 msgid ""
15209 " umount-all\n"
15210 "\n"
15211 msgstr ""
15212
15213 #. type: textblock
15214 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
15215 msgid "This unmounts all mounted filesystems."
15216 msgstr ""
15217
15218 #. type: textblock
15219 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
15220 msgid "Some internal mounts are not unmounted by this call."
15221 msgstr ""
15222
15223 #. type: =head2
15224 #: ../fish/guestfish-actions.pod:4870
15225 msgid "upload"
15226 msgstr ""
15227
15228 #. type: verbatim
15229 #: ../fish/guestfish-actions.pod:4872
15230 #, no-wrap
15231 msgid ""
15232 " upload (filename|-) remotefilename\n"
15233 "\n"
15234 msgstr ""
15235
15236 #. type: textblock
15237 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
15238 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
15239 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15240 msgstr ""
15241
15242 #. type: textblock
15243 #: ../fish/guestfish-actions.pod:4879
15244 msgid "See also L</download>."
15245 msgstr ""
15246
15247 #. type: =head2
15248 #: ../fish/guestfish-actions.pod:4883
15249 msgid "upload-offset"
15250 msgstr ""
15251
15252 #. type: verbatim
15253 #: ../fish/guestfish-actions.pod:4885
15254 #, no-wrap
15255 msgid ""
15256 " upload-offset (filename|-) remotefilename offset\n"
15257 "\n"
15258 msgstr ""
15259
15260 #. type: textblock
15261 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
15262 msgid ""
15263 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15264 "The intention is to overwrite parts of existing files or devices, although "
15265 "if a non-existant file is specified then it is created with a \"hole\" "
15266 "before C<offset>.  The size of the data written is implicit in the size of "
15267 "the source C<filename>."
15268 msgstr ""
15269
15270 #. type: textblock
15271 #: ../fish/guestfish-actions.pod:4897
15272 msgid ""
15273 "Note that there is no limit on the amount of data that can be uploaded with "
15274 "this call, unlike with L</pwrite>, and this call always writes the full "
15275 "amount unless an error occurs."
15276 msgstr ""
15277
15278 #. type: textblock
15279 #: ../fish/guestfish-actions.pod:4902
15280 msgid "See also L</upload>, L</pwrite>."
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../fish/guestfish-actions.pod:4906
15285 msgid "utimens"
15286 msgstr ""
15287
15288 #. type: verbatim
15289 #: ../fish/guestfish-actions.pod:4908
15290 #, no-wrap
15291 msgid ""
15292 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15293 "\n"
15294 msgstr ""
15295
15296 #. type: textblock
15297 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
15298 msgid "This command sets the timestamps of a file with nanosecond precision."
15299 msgstr ""
15300
15301 #. type: textblock
15302 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
15303 msgid ""
15304 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15305 "from the epoch."
15306 msgstr ""
15307
15308 #. type: textblock
15309 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
15310 msgid ""
15311 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15312 "nanoseconds from the epoch."
15313 msgstr ""
15314
15315 #. type: textblock
15316 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
15317 msgid ""
15318 "If the C<*nsecs> field contains the special value C<-1> then the "
15319 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15320 "ignored in this case)."
15321 msgstr ""
15322
15323 #. type: textblock
15324 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
15325 msgid ""
15326 "If the C<*nsecs> field contains the special value C<-2> then the "
15327 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15328 "in this case)."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:4927
15333 msgid "version"
15334 msgstr ""
15335
15336 #. type: verbatim
15337 #: ../fish/guestfish-actions.pod:4929
15338 #, no-wrap
15339 msgid ""
15340 " version\n"
15341 "\n"
15342 msgstr ""
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
15346 msgid ""
15347 "Return the libguestfs version number that the program is linked against."
15348 msgstr ""
15349
15350 #. type: textblock
15351 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
15352 msgid ""
15353 "Note that because of dynamic linking this is not necessarily the version of "
15354 "libguestfs that you compiled against.  You can compile the program, and then "
15355 "at runtime dynamically link against a completely different C<libguestfs.so> "
15356 "library."
15357 msgstr ""
15358
15359 #. type: textblock
15360 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
15361 msgid ""
15362 "This call was added in version C<1.0.58>.  In previous versions of "
15363 "libguestfs there was no way to get the version number.  From C code you can "
15364 "use dynamic linker functions to find out if this symbol exists (if it "
15365 "doesn't, then it's an earlier version)."
15366 msgstr ""
15367
15368 #. type: textblock
15369 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
15370 msgid ""
15371 "The call returns a structure with four elements.  The first three (C<major>, "
15372 "C<minor> and C<release>) are numbers and correspond to the usual version "
15373 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15374 "but may be used for distro-specific information."
15375 msgstr ""
15376
15377 #. type: textblock
15378 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
15379 msgid ""
15380 "To construct the original version string: C<$major.$minor.$release$extra>"
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
15385 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-actions.pod:4956
15390 msgid ""
15391 "I<Note:> Don't use this call to test for availability of features.  In "
15392 "enterprise distributions we backport features from later versions into "
15393 "earlier versions, making this an unreliable way to test for features.  Use "
15394 "L</available> instead."
15395 msgstr ""
15396
15397 #. type: =head2
15398 #: ../fish/guestfish-actions.pod:4962
15399 msgid "vfs-label"
15400 msgstr ""
15401
15402 #. type: verbatim
15403 #: ../fish/guestfish-actions.pod:4964
15404 #, no-wrap
15405 msgid ""
15406 " vfs-label device\n"
15407 "\n"
15408 msgstr ""
15409
15410 #. type: textblock
15411 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
15412 msgid "This returns the filesystem label of the filesystem on C<device>."
15413 msgstr ""
15414
15415 #. type: textblock
15416 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
15417 msgid "If the filesystem is unlabeled, this returns the empty string."
15418 msgstr ""
15419
15420 #. type: textblock
15421 #: ../fish/guestfish-actions.pod:4971
15422 msgid "To find a filesystem from the label, use L</findfs-label>."
15423 msgstr ""
15424
15425 #. type: =head2
15426 #: ../fish/guestfish-actions.pod:4973
15427 msgid "vfs-type"
15428 msgstr ""
15429
15430 #. type: verbatim
15431 #: ../fish/guestfish-actions.pod:4975
15432 #, no-wrap
15433 msgid ""
15434 " vfs-type device\n"
15435 "\n"
15436 msgstr ""
15437
15438 #. type: textblock
15439 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
15440 msgid ""
15441 "This command gets the filesystem type corresponding to the filesystem on "
15442 "C<device>."
15443 msgstr ""
15444
15445 #. type: textblock
15446 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
15447 msgid ""
15448 "For most filesystems, the result is the name of the Linux VFS module which "
15449 "would be used to mount this filesystem if you mounted it without specifying "
15450 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15451 msgstr ""
15452
15453 #. type: =head2
15454 #: ../fish/guestfish-actions.pod:4985
15455 msgid "vfs-uuid"
15456 msgstr ""
15457
15458 #. type: verbatim
15459 #: ../fish/guestfish-actions.pod:4987
15460 #, no-wrap
15461 msgid ""
15462 " vfs-uuid device\n"
15463 "\n"
15464 msgstr ""
15465
15466 #. type: textblock
15467 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
15468 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15469 msgstr ""
15470
15471 #. type: textblock
15472 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
15473 msgid "If the filesystem does not have a UUID, this returns the empty string."
15474 msgstr ""
15475
15476 #. type: textblock
15477 #: ../fish/guestfish-actions.pod:4994
15478 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15479 msgstr ""
15480
15481 #. type: =head2
15482 #: ../fish/guestfish-actions.pod:4996
15483 msgid "vg-activate"
15484 msgstr ""
15485
15486 #. type: verbatim
15487 #: ../fish/guestfish-actions.pod:4998
15488 #, no-wrap
15489 msgid ""
15490 " vg-activate true|false 'volgroups ...'\n"
15491 "\n"
15492 msgstr ""
15493
15494 #. type: textblock
15495 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
15496 msgid ""
15497 "This command activates or (if C<activate> is false) deactivates all logical "
15498 "volumes in the listed volume groups C<volgroups>."
15499 msgstr ""
15500
15501 #. type: textblock
15502 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
15503 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15504 msgstr ""
15505
15506 #. type: textblock
15507 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
15508 msgid ""
15509 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15510 "activated or deactivated."
15511 msgstr ""
15512
15513 #. type: =head2
15514 #: ../fish/guestfish-actions.pod:5008
15515 msgid "vg-activate-all"
15516 msgstr ""
15517
15518 #. type: verbatim
15519 #: ../fish/guestfish-actions.pod:5010
15520 #, no-wrap
15521 msgid ""
15522 " vg-activate-all true|false\n"
15523 "\n"
15524 msgstr ""
15525
15526 #. type: textblock
15527 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
15528 msgid ""
15529 "This command activates or (if C<activate> is false) deactivates all logical "
15530 "volumes in all volume groups."
15531 msgstr ""
15532
15533 #. type: textblock
15534 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
15535 msgid "This command is the same as running C<vgchange -a y|n>"
15536 msgstr ""
15537
15538 #. type: =head2
15539 #: ../fish/guestfish-actions.pod:5017
15540 msgid "vgcreate"
15541 msgstr ""
15542
15543 #. type: verbatim
15544 #: ../fish/guestfish-actions.pod:5019
15545 #, no-wrap
15546 msgid ""
15547 " vgcreate volgroup 'physvols ...'\n"
15548 "\n"
15549 msgstr ""
15550
15551 #. type: textblock
15552 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
15553 msgid ""
15554 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15555 "of physical volumes C<physvols>."
15556 msgstr ""
15557
15558 #. type: =head2
15559 #: ../fish/guestfish-actions.pod:5024
15560 msgid "vglvuuids"
15561 msgstr ""
15562
15563 #. type: verbatim
15564 #: ../fish/guestfish-actions.pod:5026
15565 #, no-wrap
15566 msgid ""
15567 " vglvuuids vgname\n"
15568 "\n"
15569 msgstr ""
15570
15571 #. type: textblock
15572 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
15573 msgid ""
15574 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15575 "volumes created in this volume group."
15576 msgstr ""
15577
15578 #. type: textblock
15579 #: ../fish/guestfish-actions.pod:5031
15580 msgid ""
15581 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15582 "logical volumes and volume groups."
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:5034
15587 msgid "See also L</vgpvuuids>."
15588 msgstr ""
15589
15590 #. type: =head2
15591 #: ../fish/guestfish-actions.pod:5036
15592 msgid "vgpvuuids"
15593 msgstr ""
15594
15595 #. type: verbatim
15596 #: ../fish/guestfish-actions.pod:5038
15597 #, no-wrap
15598 msgid ""
15599 " vgpvuuids vgname\n"
15600 "\n"
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
15605 msgid ""
15606 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15607 "volumes that this volume group resides on."
15608 msgstr ""
15609
15610 #. type: textblock
15611 #: ../fish/guestfish-actions.pod:5043
15612 msgid ""
15613 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15614 "physical volumes and volume groups."
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:5046
15619 msgid "See also L</vglvuuids>."
15620 msgstr ""
15621
15622 #. type: =head2
15623 #: ../fish/guestfish-actions.pod:5048
15624 msgid "vgremove"
15625 msgstr ""
15626
15627 #. type: verbatim
15628 #: ../fish/guestfish-actions.pod:5050
15629 #, no-wrap
15630 msgid ""
15631 " vgremove vgname\n"
15632 "\n"
15633 msgstr ""
15634
15635 #. type: textblock
15636 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
15637 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15638 msgstr ""
15639
15640 #. type: textblock
15641 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
15642 msgid ""
15643 "This also forcibly removes all logical volumes in the volume group (if any)."
15644 msgstr ""
15645
15646 #. type: =head2
15647 #: ../fish/guestfish-actions.pod:5057
15648 msgid "vgrename"
15649 msgstr ""
15650
15651 #. type: verbatim
15652 #: ../fish/guestfish-actions.pod:5059
15653 #, no-wrap
15654 msgid ""
15655 " vgrename volgroup newvolgroup\n"
15656 "\n"
15657 msgstr ""
15658
15659 #. type: textblock
15660 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
15661 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15662 msgstr ""
15663
15664 #. type: =head2
15665 #: ../fish/guestfish-actions.pod:5063
15666 msgid "vgs"
15667 msgstr ""
15668
15669 #. type: verbatim
15670 #: ../fish/guestfish-actions.pod:5065
15671 #, no-wrap
15672 msgid ""
15673 " vgs\n"
15674 "\n"
15675 msgstr ""
15676
15677 #. type: textblock
15678 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
15679 msgid ""
15680 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15681 "> command."
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
15686 msgid ""
15687 "This returns a list of just the volume group names that were detected (eg. "
15688 "C<VolGroup00>)."
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:5073
15693 msgid "See also L</vgs-full>."
15694 msgstr ""
15695
15696 #. type: =head2
15697 #: ../fish/guestfish-actions.pod:5075
15698 msgid "vgs-full"
15699 msgstr ""
15700
15701 #. type: verbatim
15702 #: ../fish/guestfish-actions.pod:5077
15703 #, no-wrap
15704 msgid ""
15705 " vgs-full\n"
15706 "\n"
15707 msgstr ""
15708
15709 #. type: textblock
15710 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
15711 msgid ""
15712 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15713 "> command.  The \"full\" version includes all fields."
15714 msgstr ""
15715
15716 #. type: =head2
15717 #: ../fish/guestfish-actions.pod:5082
15718 msgid "vgscan"
15719 msgstr ""
15720
15721 #. type: verbatim
15722 #: ../fish/guestfish-actions.pod:5084
15723 #, no-wrap
15724 msgid ""
15725 " vgscan\n"
15726 "\n"
15727 msgstr ""
15728
15729 #. type: textblock
15730 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
15731 msgid ""
15732 "This rescans all block devices and rebuilds the list of LVM physical "
15733 "volumes, volume groups and logical volumes."
15734 msgstr ""
15735
15736 #. type: =head2
15737 #: ../fish/guestfish-actions.pod:5089
15738 msgid "vguuid"
15739 msgstr ""
15740
15741 #. type: verbatim
15742 #: ../fish/guestfish-actions.pod:5091
15743 #, no-wrap
15744 msgid ""
15745 " vguuid vgname\n"
15746 "\n"
15747 msgstr ""
15748
15749 #. type: textblock
15750 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
15751 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15752 msgstr ""
15753
15754 #. type: =head2
15755 #: ../fish/guestfish-actions.pod:5095
15756 msgid "wc-c"
15757 msgstr ""
15758
15759 #. type: verbatim
15760 #: ../fish/guestfish-actions.pod:5097
15761 #, no-wrap
15762 msgid ""
15763 " wc-c path\n"
15764 "\n"
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
15769 msgid ""
15770 "This command counts the characters in a file, using the C<wc -c> external "
15771 "command."
15772 msgstr ""
15773
15774 #. type: =head2
15775 #: ../fish/guestfish-actions.pod:5102
15776 msgid "wc-l"
15777 msgstr ""
15778
15779 #. type: verbatim
15780 #: ../fish/guestfish-actions.pod:5104
15781 #, no-wrap
15782 msgid ""
15783 " wc-l path\n"
15784 "\n"
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
15789 msgid ""
15790 "This command counts the lines in a file, using the C<wc -l> external command."
15791 msgstr ""
15792
15793 #. type: =head2
15794 #: ../fish/guestfish-actions.pod:5109
15795 msgid "wc-w"
15796 msgstr ""
15797
15798 #. type: verbatim
15799 #: ../fish/guestfish-actions.pod:5111
15800 #, no-wrap
15801 msgid ""
15802 " wc-w path\n"
15803 "\n"
15804 msgstr ""
15805
15806 #. type: textblock
15807 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
15808 msgid ""
15809 "This command counts the words in a file, using the C<wc -w> external command."
15810 msgstr ""
15811
15812 #. type: =head2
15813 #: ../fish/guestfish-actions.pod:5116
15814 msgid "write"
15815 msgstr ""
15816
15817 #. type: verbatim
15818 #: ../fish/guestfish-actions.pod:5118
15819 #, no-wrap
15820 msgid ""
15821 " write path content\n"
15822 "\n"
15823 msgstr ""
15824
15825 #. type: textblock
15826 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
15827 msgid ""
15828 "This call creates a file called C<path>.  The content of the file is the "
15829 "string C<content> (which can contain any 8 bit data)."
15830 msgstr ""
15831
15832 #. type: textblock
15833 #: ../fish/guestfish-actions.pod:5123
15834 msgid "See also L</write-append>."
15835 msgstr ""
15836
15837 #. type: =head2
15838 #: ../fish/guestfish-actions.pod:5128
15839 msgid "write-append"
15840 msgstr ""
15841
15842 #. type: verbatim
15843 #: ../fish/guestfish-actions.pod:5130
15844 #, no-wrap
15845 msgid ""
15846 " write-append path content\n"
15847 "\n"
15848 msgstr ""
15849
15850 #. type: textblock
15851 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
15852 msgid ""
15853 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15854 "not exist, then a new file is created."
15855 msgstr ""
15856
15857 #. type: textblock
15858 #: ../fish/guestfish-actions.pod:5135
15859 msgid "See also L</write>."
15860 msgstr ""
15861
15862 #. type: =head2
15863 #: ../fish/guestfish-actions.pod:5140
15864 msgid "write-file"
15865 msgstr ""
15866
15867 #. type: verbatim
15868 #: ../fish/guestfish-actions.pod:5142
15869 #, no-wrap
15870 msgid ""
15871 " write-file path content size\n"
15872 "\n"
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
15877 msgid ""
15878 "This call creates a file called C<path>.  The contents of the file is the "
15879 "string C<content> (which can contain any 8 bit data), with length C<size>."
15880 msgstr ""
15881
15882 #. type: textblock
15883 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
15884 msgid ""
15885 "As a special case, if C<size> is C<0> then the length is calculated using "
15886 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
15887 msgstr ""
15888
15889 #. type: textblock
15890 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
15891 msgid ""
15892 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
15893 "I<not> work, even if the length is specified."
15894 msgstr ""
15895
15896 #. type: textblock
15897 #: ../fish/guestfish-actions.pod:5158
15898 msgid ""
15899 "I<This function is deprecated.> In new code, use the L</write> call instead."
15900 msgstr ""
15901
15902 #. type: =head2
15903 #: ../fish/guestfish-actions.pod:5165
15904 msgid "zegrep"
15905 msgstr ""
15906
15907 #. type: verbatim
15908 #: ../fish/guestfish-actions.pod:5167
15909 #, no-wrap
15910 msgid ""
15911 " zegrep regex path\n"
15912 "\n"
15913 msgstr ""
15914
15915 #. type: textblock
15916 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
15917 msgid ""
15918 "This calls the external C<zegrep> program and returns the matching lines."
15919 msgstr ""
15920
15921 #. type: =head2
15922 #: ../fish/guestfish-actions.pod:5175
15923 msgid "zegrepi"
15924 msgstr ""
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish-actions.pod:5177
15928 #, no-wrap
15929 msgid ""
15930 " zegrepi regex path\n"
15931 "\n"
15932 msgstr ""
15933
15934 #. type: textblock
15935 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
15936 msgid ""
15937 "This calls the external C<zegrep -i> program and returns the matching lines."
15938 msgstr ""
15939
15940 #. type: =head2
15941 #: ../fish/guestfish-actions.pod:5185
15942 msgid "zero"
15943 msgstr ""
15944
15945 #. type: verbatim
15946 #: ../fish/guestfish-actions.pod:5187
15947 #, no-wrap
15948 msgid ""
15949 " zero device\n"
15950 "\n"
15951 msgstr ""
15952
15953 #. type: textblock
15954 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
15955 msgid "This command writes zeroes over the first few blocks of C<device>."
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
15960 msgid ""
15961 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15962 "securely wipe the device).  It should be sufficient to remove any partition "
15963 "tables, filesystem superblocks and so on."
15964 msgstr ""
15965
15966 #. type: textblock
15967 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
15968 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
15969 msgid ""
15970 "If blocks are already zero, then this command avoids writing zeroes.  This "
15971 "prevents the underlying device from becoming non-sparse or growing "
15972 "unnecessarily."
15973 msgstr ""
15974
15975 #. type: textblock
15976 #: ../fish/guestfish-actions.pod:5199
15977 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15978 msgstr ""
15979
15980 #. type: =head2
15981 #: ../fish/guestfish-actions.pod:5202
15982 msgid "zero-device"
15983 msgstr ""
15984
15985 #. type: verbatim
15986 #: ../fish/guestfish-actions.pod:5204
15987 #, no-wrap
15988 msgid ""
15989 " zero-device device\n"
15990 "\n"
15991 msgstr ""
15992
15993 #. type: textblock
15994 #: ../fish/guestfish-actions.pod:5206
15995 msgid ""
15996 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15997 "which just zeroes the first few blocks of a device."
15998 msgstr ""
15999
16000 #. type: =head2
16001 #: ../fish/guestfish-actions.pod:5217
16002 msgid "zerofree"
16003 msgstr ""
16004
16005 #. type: verbatim
16006 #: ../fish/guestfish-actions.pod:5219
16007 #, no-wrap
16008 msgid ""
16009 " zerofree device\n"
16010 "\n"
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
16015 msgid ""
16016 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16017 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16018 "possible to compress the filesystem more effectively."
16019 msgstr ""
16020
16021 #. type: textblock
16022 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
16023 msgid "You should B<not> run this program if the filesystem is mounted."
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
16028 msgid ""
16029 "It is possible that using this program can damage the filesystem or data on "
16030 "the filesystem."
16031 msgstr ""
16032
16033 #. type: =head2
16034 #: ../fish/guestfish-actions.pod:5232
16035 msgid "zfgrep"
16036 msgstr ""
16037
16038 #. type: verbatim
16039 #: ../fish/guestfish-actions.pod:5234
16040 #, no-wrap
16041 msgid ""
16042 " zfgrep pattern path\n"
16043 "\n"
16044 msgstr ""
16045
16046 #. type: textblock
16047 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
16048 msgid ""
16049 "This calls the external C<zfgrep> program and returns the matching lines."
16050 msgstr ""
16051
16052 #. type: =head2
16053 #: ../fish/guestfish-actions.pod:5242
16054 msgid "zfgrepi"
16055 msgstr ""
16056
16057 #. type: verbatim
16058 #: ../fish/guestfish-actions.pod:5244
16059 #, no-wrap
16060 msgid ""
16061 " zfgrepi pattern path\n"
16062 "\n"
16063 msgstr ""
16064
16065 #. type: textblock
16066 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
16067 msgid ""
16068 "This calls the external C<zfgrep -i> program and returns the matching lines."
16069 msgstr ""
16070
16071 #. type: =head2
16072 #: ../fish/guestfish-actions.pod:5252
16073 msgid "zfile"
16074 msgstr ""
16075
16076 #. type: verbatim
16077 #: ../fish/guestfish-actions.pod:5254
16078 #, no-wrap
16079 msgid ""
16080 " zfile meth path\n"
16081 "\n"
16082 msgstr ""
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
16086 msgid ""
16087 "This command runs C<file> after first decompressing C<path> using C<method>."
16088 msgstr ""
16089
16090 #. type: textblock
16091 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
16092 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:5261
16097 msgid ""
16098 "Since 1.0.63, use L</file> instead which can now process compressed files."
16099 msgstr ""
16100
16101 #. type: textblock
16102 #: ../fish/guestfish-actions.pod:5264
16103 msgid ""
16104 "I<This function is deprecated.> In new code, use the L</file> call instead."
16105 msgstr ""
16106
16107 #. type: =head2
16108 #: ../fish/guestfish-actions.pod:5271
16109 msgid "zgrep"
16110 msgstr ""
16111
16112 #. type: verbatim
16113 #: ../fish/guestfish-actions.pod:5273
16114 #, no-wrap
16115 msgid ""
16116 " zgrep regex path\n"
16117 "\n"
16118 msgstr ""
16119
16120 #. type: textblock
16121 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
16122 msgid ""
16123 "This calls the external C<zgrep> program and returns the matching lines."
16124 msgstr ""
16125
16126 #. type: =head2
16127 #: ../fish/guestfish-actions.pod:5281
16128 msgid "zgrepi"
16129 msgstr ""
16130
16131 #. type: verbatim
16132 #: ../fish/guestfish-actions.pod:5283
16133 #, no-wrap
16134 msgid ""
16135 " zgrepi regex path\n"
16136 "\n"
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
16141 msgid ""
16142 "This calls the external C<zgrep -i> program and returns the matching lines."
16143 msgstr ""
16144
16145 #. type: =head2
16146 #: ../fish/guestfish-commands.pod:1
16147 msgid "alloc"
16148 msgstr ""
16149
16150 #. type: =head2
16151 #: ../fish/guestfish-commands.pod:3
16152 msgid "allocate"
16153 msgstr ""
16154
16155 #. type: verbatim
16156 #: ../fish/guestfish-commands.pod:5
16157 #, no-wrap
16158 msgid ""
16159 " alloc filename size\n"
16160 "\n"
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../fish/guestfish-commands.pod:7
16165 msgid ""
16166 "This creates an empty (zeroed) file of the given size, and then adds so it "
16167 "can be further examined."
16168 msgstr ""
16169
16170 #. type: textblock
16171 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16172 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16177 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../fish/guestfish-commands.pod:14
16182 msgid ""
16183 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16184 "image, see L</PREPARED DISK IMAGES>."
16185 msgstr ""
16186
16187 #. type: =head2
16188 #: ../fish/guestfish-commands.pod:17
16189 msgid "copy-in"
16190 msgstr ""
16191
16192 #. type: verbatim
16193 #: ../fish/guestfish-commands.pod:19
16194 #, no-wrap
16195 msgid ""
16196 " copy-in local [local ...] /remotedir\n"
16197 "\n"
16198 msgstr ""
16199
16200 #. type: textblock
16201 #: ../fish/guestfish-commands.pod:21
16202 msgid ""
16203 "C<copy-in> copies local files or directories recursively into the disk "
16204 "image, placing them in the directory called C</remotedir> (which must "
16205 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16206 "other commands as necessary."
16207 msgstr ""
16208
16209 #. type: textblock
16210 #: ../fish/guestfish-commands.pod:26
16211 msgid ""
16212 "Multiple local files and directories can be specified, but the last "
16213 "parameter must always be a remote directory.  Wildcards cannot be used."
16214 msgstr ""
16215
16216 #. type: =head2
16217 #: ../fish/guestfish-commands.pod:30
16218 msgid "copy-out"
16219 msgstr ""
16220
16221 #. type: verbatim
16222 #: ../fish/guestfish-commands.pod:32
16223 #, no-wrap
16224 msgid ""
16225 " copy-out remote [remote ...] localdir\n"
16226 "\n"
16227 msgstr ""
16228
16229 #. type: textblock
16230 #: ../fish/guestfish-commands.pod:34
16231 msgid ""
16232 "C<copy-out> copies remote files or directories recursively out of the disk "
16233 "image, placing them on the host disk in a local directory called C<localdir> "
16234 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16235 "download>, L</tar-out> and other commands as necessary."
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../fish/guestfish-commands.pod:40
16240 msgid ""
16241 "Multiple remote files and directories can be specified, but the last "
16242 "parameter must always be a local directory.  To download to the current "
16243 "directory, use C<.> as in:"
16244 msgstr ""
16245
16246 #. type: verbatim
16247 #: ../fish/guestfish-commands.pod:44
16248 #, no-wrap
16249 msgid ""
16250 " copy-out /home .\n"
16251 "\n"
16252 msgstr ""
16253
16254 #. type: textblock
16255 #: ../fish/guestfish-commands.pod:46
16256 msgid ""
16257 "Wildcards cannot be used in the ordinary command, but you can use them with "
16258 "the help of L</glob> like this:"
16259 msgstr ""
16260
16261 #. type: verbatim
16262 #: ../fish/guestfish-commands.pod:49
16263 #, no-wrap
16264 msgid ""
16265 " glob copy-out /home/* .\n"
16266 "\n"
16267 msgstr ""
16268
16269 #. type: =head2
16270 #: ../fish/guestfish-commands.pod:51
16271 msgid "display"
16272 msgstr ""
16273
16274 #. type: verbatim
16275 #: ../fish/guestfish-commands.pod:53
16276 #, no-wrap
16277 msgid ""
16278 " display filename\n"
16279 "\n"
16280 msgstr ""
16281
16282 #. type: textblock
16283 #: ../fish/guestfish-commands.pod:55
16284 msgid ""
16285 "Use C<display> (a graphical display program) to display an image file.  It "
16286 "downloads the file, and runs C<display> on it."
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-commands.pod:58
16291 msgid ""
16292 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16293 "environment variable.  For example to use the GNOME display program:"
16294 msgstr ""
16295
16296 #. type: verbatim
16297 #: ../fish/guestfish-commands.pod:61
16298 #, no-wrap
16299 msgid ""
16300 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16301 "\n"
16302 msgstr ""
16303
16304 #. type: textblock
16305 #: ../fish/guestfish-commands.pod:63
16306 msgid "See also L<display(1)>."
16307 msgstr ""
16308
16309 #. type: =head2
16310 #: ../fish/guestfish-commands.pod:65
16311 msgid "echo"
16312 msgstr ""
16313
16314 #. type: verbatim
16315 #: ../fish/guestfish-commands.pod:67
16316 #, no-wrap
16317 msgid ""
16318 " echo [params ...]\n"
16319 "\n"
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-commands.pod:69
16324 msgid "This echos the parameters to the terminal."
16325 msgstr ""
16326
16327 #. type: =head2
16328 #: ../fish/guestfish-commands.pod:71
16329 msgid "edit"
16330 msgstr ""
16331
16332 #. type: =head2
16333 #: ../fish/guestfish-commands.pod:73
16334 msgid "vi"
16335 msgstr ""
16336
16337 #. type: =head2
16338 #: ../fish/guestfish-commands.pod:75
16339 msgid "emacs"
16340 msgstr ""
16341
16342 #. type: verbatim
16343 #: ../fish/guestfish-commands.pod:77
16344 #, no-wrap
16345 msgid ""
16346 " edit filename\n"
16347 "\n"
16348 msgstr ""
16349
16350 #. type: textblock
16351 #: ../fish/guestfish-commands.pod:79
16352 msgid ""
16353 "This is used to edit a file.  It downloads the file, edits it locally using "
16354 "your editor, then uploads the result."
16355 msgstr ""
16356
16357 #. type: textblock
16358 #: ../fish/guestfish-commands.pod:82
16359 msgid ""
16360 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16361 "or C<emacs> you will get those corresponding editors."
16362 msgstr ""
16363
16364 #. type: =head2
16365 #: ../fish/guestfish-commands.pod:86
16366 msgid "glob"
16367 msgstr ""
16368
16369 #. type: verbatim
16370 #: ../fish/guestfish-commands.pod:88
16371 #, no-wrap
16372 msgid ""
16373 " glob command args...\n"
16374 "\n"
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../fish/guestfish-commands.pod:90
16379 msgid ""
16380 "Expand wildcards in any paths in the args list, and run C<command> "
16381 "repeatedly on each matching path."
16382 msgstr ""
16383
16384 #. type: textblock
16385 #: ../fish/guestfish-commands.pod:93
16386 msgid "See L</WILDCARDS AND GLOBBING>."
16387 msgstr ""
16388
16389 #. type: =head2
16390 #: ../fish/guestfish-commands.pod:95
16391 msgid "hexedit"
16392 msgstr ""
16393
16394 #. type: verbatim
16395 #: ../fish/guestfish-commands.pod:97
16396 #, no-wrap
16397 msgid ""
16398 " hexedit <filename|device>\n"
16399 " hexedit <filename|device> <max>\n"
16400 " hexedit <filename|device> <start> <max>\n"
16401 "\n"
16402 msgstr ""
16403
16404 #. type: textblock
16405 #: ../fish/guestfish-commands.pod:101
16406 msgid ""
16407 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16408 "device."
16409 msgstr ""
16410
16411 #. type: textblock
16412 #: ../fish/guestfish-commands.pod:104
16413 msgid ""
16414 "This command works by downloading potentially the whole file or device, "
16415 "editing it locally, then uploading it.  If the file or device is large, you "
16416 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16417 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16418 "usual modifiers allowed such as C<1M> (1 megabyte)."
16419 msgstr ""
16420
16421 #. type: textblock
16422 #: ../fish/guestfish-commands.pod:111
16423 msgid "For example to edit the first few sectors of a disk you might do:"
16424 msgstr ""
16425
16426 #. type: verbatim
16427 #: ../fish/guestfish-commands.pod:114
16428 #, no-wrap
16429 msgid ""
16430 " hexedit /dev/sda 1M\n"
16431 "\n"
16432 msgstr ""
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-commands.pod:116
16436 msgid ""
16437 "which would allow you to edit anywhere within the first megabyte of the disk."
16438 msgstr ""
16439
16440 #. type: textblock
16441 #: ../fish/guestfish-commands.pod:119
16442 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-commands.pod:121
16447 #, no-wrap
16448 msgid ""
16449 " hexedit /dev/sda1 0x400 0x400\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-commands.pod:123
16455 msgid "(assuming the superblock is in the standard location)."
16456 msgstr ""
16457
16458 #. type: textblock
16459 #: ../fish/guestfish-commands.pod:125
16460 msgid ""
16461 "This command requires the external L<hexedit(1)> program.  You can specify "
16462 "another program to use by setting the C<HEXEDITOR> environment variable."
16463 msgstr ""
16464
16465 #. type: textblock
16466 #: ../fish/guestfish-commands.pod:129
16467 msgid "See also L</hexdump>."
16468 msgstr ""
16469
16470 #. type: =head2
16471 #: ../fish/guestfish-commands.pod:131
16472 msgid "lcd"
16473 msgstr ""
16474
16475 #. type: verbatim
16476 #: ../fish/guestfish-commands.pod:133
16477 #, no-wrap
16478 msgid ""
16479 " lcd directory\n"
16480 "\n"
16481 msgstr ""
16482
16483 #. type: textblock
16484 #: ../fish/guestfish-commands.pod:135
16485 msgid ""
16486 "Change the local directory, ie. the current directory of guestfish itself."
16487 msgstr ""
16488
16489 #. type: textblock
16490 #: ../fish/guestfish-commands.pod:138
16491 msgid "Note that C<!cd> won't do what you might expect."
16492 msgstr ""
16493
16494 #. type: =head2
16495 #: ../fish/guestfish-commands.pod:140
16496 msgid "man"
16497 msgstr ""
16498
16499 #. type: =head2
16500 #: ../fish/guestfish-commands.pod:142
16501 msgid "manual"
16502 msgstr ""
16503
16504 #. type: verbatim
16505 #: ../fish/guestfish-commands.pod:144
16506 #, no-wrap
16507 msgid ""
16508 "  man\n"
16509 "\n"
16510 msgstr ""
16511
16512 #. type: textblock
16513 #: ../fish/guestfish-commands.pod:146
16514 msgid "Opens the manual page for guestfish."
16515 msgstr ""
16516
16517 #. type: =head2
16518 #: ../fish/guestfish-commands.pod:148
16519 msgid "more"
16520 msgstr ""
16521
16522 #. type: =head2
16523 #: ../fish/guestfish-commands.pod:150
16524 msgid "less"
16525 msgstr ""
16526
16527 #. type: verbatim
16528 #: ../fish/guestfish-commands.pod:152
16529 #, no-wrap
16530 msgid ""
16531 " more filename\n"
16532 "\n"
16533 msgstr ""
16534
16535 #. type: verbatim
16536 #: ../fish/guestfish-commands.pod:154
16537 #, no-wrap
16538 msgid ""
16539 " less filename\n"
16540 "\n"
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish-commands.pod:156
16545 msgid "This is used to view a file."
16546 msgstr ""
16547
16548 #. type: textblock
16549 #: ../fish/guestfish-commands.pod:158
16550 msgid ""
16551 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16552 "C<less> you will get the C<less> command specifically."
16553 msgstr ""
16554
16555 #. type: =head2
16556 #: ../fish/guestfish-commands.pod:161
16557 msgid "reopen"
16558 msgstr ""
16559
16560 #. type: verbatim
16561 #: ../fish/guestfish-commands.pod:163
16562 #, no-wrap
16563 msgid ""
16564 "  reopen\n"
16565 "\n"
16566 msgstr ""
16567
16568 #. type: textblock
16569 #: ../fish/guestfish-commands.pod:165
16570 msgid ""
16571 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16572 "normally, because the handle is closed properly when guestfish exits.  "
16573 "However this is occasionally useful for testing."
16574 msgstr ""
16575
16576 #. type: =head2
16577 #: ../fish/guestfish-commands.pod:169
16578 msgid "setenv"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../fish/guestfish-commands.pod:171
16583 #, no-wrap
16584 msgid ""
16585 "  setenv VAR value\n"
16586 "\n"
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-commands.pod:173
16591 msgid "Set the environment variable C<VAR> to the string C<value>."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-commands.pod:175
16596 msgid ""
16597 "To print the value of an environment variable use a shell command such as:"
16598 msgstr ""
16599
16600 #. type: verbatim
16601 #: ../fish/guestfish-commands.pod:178
16602 #, no-wrap
16603 msgid ""
16604 " !echo $VAR\n"
16605 "\n"
16606 msgstr ""
16607
16608 #. type: =head2
16609 #: ../fish/guestfish-commands.pod:180
16610 msgid "sparse"
16611 msgstr ""
16612
16613 #. type: verbatim
16614 #: ../fish/guestfish-commands.pod:182
16615 #, no-wrap
16616 msgid ""
16617 " sparse filename size\n"
16618 "\n"
16619 msgstr ""
16620
16621 #. type: textblock
16622 #: ../fish/guestfish-commands.pod:184
16623 msgid ""
16624 "This creates an empty sparse file of the given size, and then adds so it can "
16625 "be further examined."
16626 msgstr ""
16627
16628 #. type: textblock
16629 #: ../fish/guestfish-commands.pod:187
16630 msgid ""
16631 "In all respects it works the same as the L</alloc> command, except that the "
16632 "image file is allocated sparsely, which means that disk blocks are not "
16633 "assigned to the file until they are needed.  Sparse disk files only use "
16634 "space when written to, but they are slower and there is a danger you could "
16635 "run out of real disk space during a write operation."
16636 msgstr ""
16637
16638 #. type: =head2
16639 #: ../fish/guestfish-commands.pod:197
16640 msgid "supported"
16641 msgstr ""
16642
16643 #. type: verbatim
16644 #: ../fish/guestfish-commands.pod:199
16645 #, no-wrap
16646 msgid ""
16647 " supported\n"
16648 "\n"
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish-commands.pod:201
16653 msgid ""
16654 "This command returns a list of the optional groups known to the daemon, and "
16655 "indicates which ones are supported by this build of the libguestfs appliance."
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-commands.pod:205
16660 msgid "See also L<guestfs(3)/AVAILABILITY>."
16661 msgstr ""
16662
16663 #. type: =head2
16664 #: ../fish/guestfish-commands.pod:207
16665 msgid "time"
16666 msgstr ""
16667
16668 #. type: verbatim
16669 #: ../fish/guestfish-commands.pod:209
16670 #, no-wrap
16671 msgid ""
16672 " time command args...\n"
16673 "\n"
16674 msgstr ""
16675
16676 #. type: textblock
16677 #: ../fish/guestfish-commands.pod:211
16678 msgid ""
16679 "Run the command as usual, but print the elapsed time afterwards.  This can "
16680 "be useful for benchmarking operations."
16681 msgstr ""
16682
16683 #. type: =head2
16684 #: ../fish/guestfish-commands.pod:214
16685 msgid "unsetenv"
16686 msgstr ""
16687
16688 #. type: verbatim
16689 #: ../fish/guestfish-commands.pod:216
16690 #, no-wrap
16691 msgid ""
16692 "  unsetenv VAR\n"
16693 "\n"
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-commands.pod:218
16698 msgid "Remove C<VAR> from the environment."
16699 msgstr ""
16700
16701 #. type: textblock
16702 #: ../fish/guestfish.pod:5
16703 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16704 msgstr ""
16705
16706 #. type: verbatim
16707 #: ../fish/guestfish.pod:9
16708 #, no-wrap
16709 msgid ""
16710 " guestfish [--options] [commands]\n"
16711 "\n"
16712 msgstr ""
16713
16714 #. type: verbatim
16715 #: ../fish/guestfish.pod:11
16716 #, no-wrap
16717 msgid ""
16718 " guestfish\n"
16719 "\n"
16720 msgstr ""
16721
16722 #. type: verbatim
16723 #: ../fish/guestfish.pod:13
16724 #, no-wrap
16725 msgid ""
16726 " guestfish [--ro|--rw] -a disk.img\n"
16727 "\n"
16728 msgstr ""
16729
16730 #. type: verbatim
16731 #: ../fish/guestfish.pod:15
16732 #, no-wrap
16733 msgid ""
16734 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16735 "\n"
16736 msgstr ""
16737
16738 #. type: verbatim
16739 #: ../fish/guestfish.pod:17
16740 #, no-wrap
16741 msgid ""
16742 " guestfish -d libvirt-domain\n"
16743 "\n"
16744 msgstr ""
16745
16746 #. type: verbatim
16747 #: ../fish/guestfish.pod:19
16748 #, no-wrap
16749 msgid ""
16750 " guestfish [--ro|--rw] -a disk.img -i\n"
16751 "\n"
16752 msgstr ""
16753
16754 #. type: verbatim
16755 #: ../fish/guestfish.pod:21
16756 #, no-wrap
16757 msgid ""
16758 " guestfish -d libvirt-domain -i\n"
16759 "\n"
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish.pod:25
16764 msgid ""
16765 "Using guestfish in read/write mode on live virtual machines can be "
16766 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16767 "option to use guestfish safely if the disk image or virtual machine might be "
16768 "live."
16769 msgstr ""
16770
16771 #. type: textblock
16772 #: ../fish/guestfish.pod:32
16773 msgid ""
16774 "Guestfish is a shell and command-line tool for examining and modifying "
16775 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16776 "functionality of the guestfs API, see L<guestfs(3)>."
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../fish/guestfish.pod:36
16781 msgid ""
16782 "Guestfish gives you structured access to the libguestfs API, from shell "
16783 "scripts or the command line or interactively.  If you want to rescue a "
16784 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16785 "command."
16786 msgstr ""
16787
16788 #. type: =head2
16789 #: ../fish/guestfish.pod:43
16790 msgid "As an interactive shell"
16791 msgstr ""
16792
16793 #. type: verbatim
16794 #: ../fish/guestfish.pod:45
16795 #, no-wrap
16796 msgid ""
16797 " $ guestfish\n"
16798 " \n"
16799 msgstr ""
16800
16801 #. type: verbatim
16802 #: ../fish/guestfish.pod:47
16803 #, no-wrap
16804 msgid ""
16805 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16806 " editing virtual machine filesystems.\n"
16807 " \n"
16808 msgstr ""
16809
16810 #. type: verbatim
16811 #: ../fish/guestfish.pod:50
16812 #, no-wrap
16813 msgid ""
16814 " Type: 'help' for a list of commands\n"
16815 "       'man' to read the manual\n"
16816 "       'quit' to quit the shell\n"
16817 " \n"
16818 msgstr ""
16819
16820 #. type: verbatim
16821 #: ../fish/guestfish.pod:54
16822 #, no-wrap
16823 msgid ""
16824 " ><fs> add-ro disk.img\n"
16825 " ><fs> run\n"
16826 " ><fs> list-filesystems\n"
16827 " /dev/sda1: ext4\n"
16828 " /dev/vg_guest/lv_root: ext4\n"
16829 " /dev/vg_guest/lv_swap: swap\n"
16830 " ><fs> mount /dev/vg_guest/lv_root /\n"
16831 " ><fs> cat /etc/fstab\n"
16832 " # /etc/fstab\n"
16833 " # Created by anaconda\n"
16834 " [...]\n"
16835 " ><fs> exit\n"
16836 "\n"
16837 msgstr ""
16838
16839 #. type: =head2
16840 #: ../fish/guestfish.pod:67
16841 msgid "From shell scripts"
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish.pod:69
16846 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16847 msgstr ""
16848
16849 #. type: verbatim
16850 #: ../fish/guestfish.pod:71
16851 #, no-wrap
16852 msgid ""
16853 " guestfish <<_EOF_\n"
16854 " add disk.img\n"
16855 " run\n"
16856 " mount /dev/vg_guest/lv_root /\n"
16857 " write /etc/motd \"Welcome, new users\"\n"
16858 " _EOF_\n"
16859 "\n"
16860 msgstr ""
16861
16862 #. type: textblock
16863 #: ../fish/guestfish.pod:78
16864 msgid "List the LVM logical volumes in a disk image:"
16865 msgstr ""
16866
16867 #. type: verbatim
16868 #: ../fish/guestfish.pod:80
16869 #, no-wrap
16870 msgid ""
16871 " guestfish -a disk.img --ro <<_EOF_\n"
16872 " run\n"
16873 " lvs\n"
16874 " _EOF_\n"
16875 "\n"
16876 msgstr ""
16877
16878 #. type: textblock
16879 #: ../fish/guestfish.pod:85
16880 msgid "List all the filesystems in a disk image:"
16881 msgstr ""
16882
16883 #. type: verbatim
16884 #: ../fish/guestfish.pod:87
16885 #, no-wrap
16886 msgid ""
16887 " guestfish -a disk.img --ro <<_EOF_\n"
16888 " run\n"
16889 " list-filesystems\n"
16890 " _EOF_\n"
16891 "\n"
16892 msgstr ""
16893
16894 #. type: =head2
16895 #: ../fish/guestfish.pod:92
16896 msgid "On one command line"
16897 msgstr ""
16898
16899 #. type: textblock
16900 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
16901 msgid "Update C</etc/resolv.conf> in a guest:"
16902 msgstr ""
16903
16904 #. type: verbatim
16905 #: ../fish/guestfish.pod:96
16906 #, no-wrap
16907 msgid ""
16908 " guestfish \\\n"
16909 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
16910 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
16911 "\n"
16912 msgstr ""
16913
16914 #. type: textblock
16915 #: ../fish/guestfish.pod:100
16916 msgid "Edit C</boot/grub/grub.conf> interactively:"
16917 msgstr ""
16918
16919 #. type: verbatim
16920 #: ../fish/guestfish.pod:102
16921 #, no-wrap
16922 msgid ""
16923 " guestfish --rw --add disk.img \\\n"
16924 "   --mount /dev/vg_guest/lv_root \\\n"
16925 "   --mount /dev/sda1:/boot \\\n"
16926 "   edit /boot/grub/grub.conf\n"
16927 "\n"
16928 msgstr ""
16929
16930 #. type: =head2
16931 #: ../fish/guestfish.pod:107
16932 msgid "Mount disks automatically"
16933 msgstr ""
16934
16935 #. type: textblock
16936 #: ../fish/guestfish.pod:109
16937 msgid ""
16938 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
16939 msgstr ""
16940
16941 #. type: verbatim
16942 #: ../fish/guestfish.pod:112
16943 #, no-wrap
16944 msgid ""
16945 " guestfish --ro -a disk.img -i cat /etc/group\n"
16946 "\n"
16947 msgstr ""
16948
16949 #. type: verbatim
16950 #: ../fish/guestfish.pod:114
16951 #, no-wrap
16952 msgid ""
16953 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16954 "\n"
16955 msgstr ""
16956
16957 #. type: textblock
16958 #: ../fish/guestfish.pod:116
16959 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16960 msgstr ""
16961
16962 #. type: verbatim
16963 #: ../fish/guestfish.pod:118
16964 #, no-wrap
16965 msgid ""
16966 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16967 "\n"
16968 msgstr ""
16969
16970 #. type: =head2
16971 #: ../fish/guestfish.pod:120
16972 msgid "As a script interpreter"
16973 msgstr ""
16974
16975 #. type: textblock
16976 #: ../fish/guestfish.pod:122
16977 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16978 msgstr ""
16979
16980 #. type: verbatim
16981 #: ../fish/guestfish.pod:124
16982 #, no-wrap
16983 msgid ""
16984 " #!/usr/bin/guestfish -f\n"
16985 " sparse test1.img 100M\n"
16986 " run\n"
16987 " part-disk /dev/sda mbr\n"
16988 " mkfs ext2 /dev/sda1\n"
16989 "\n"
16990 msgstr ""
16991
16992 #. type: =head2
16993 #: ../fish/guestfish.pod:130
16994 msgid "Start with a prepared disk"
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish.pod:132
16999 msgid ""
17000 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17001 "single ext2-formatted partition:"
17002 msgstr ""
17003
17004 #. type: verbatim
17005 #: ../fish/guestfish.pod:135
17006 #, no-wrap
17007 msgid ""
17008 " guestfish -N fs\n"
17009 "\n"
17010 msgstr ""
17011
17012 #. type: textblock
17013 #: ../fish/guestfish.pod:137
17014 msgid "To list what is available do:"
17015 msgstr ""
17016
17017 #. type: verbatim
17018 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17019 #, no-wrap
17020 msgid ""
17021 " guestfish -N help | less\n"
17022 "\n"
17023 msgstr ""
17024
17025 #. type: =head2
17026 #: ../fish/guestfish.pod:141
17027 msgid "Remote control"
17028 msgstr ""
17029
17030 #. type: verbatim
17031 #: ../fish/guestfish.pod:143
17032 #, no-wrap
17033 msgid ""
17034 " eval \"`guestfish --listen`\"\n"
17035 " guestfish --remote add-ro disk.img\n"
17036 " guestfish --remote run\n"
17037 " guestfish --remote lvs\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish.pod:154
17043 msgid "Displays general help on options."
17044 msgstr ""
17045
17046 #. type: =item
17047 #: ../fish/guestfish.pod:158
17048 msgid "B<--cmd-help>"
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish.pod:160
17053 msgid "Lists all available guestfish commands."
17054 msgstr ""
17055
17056 #. type: =item
17057 #: ../fish/guestfish.pod:162
17058 msgid "B<-h cmd>"
17059 msgstr ""
17060
17061 #. type: =item
17062 #: ../fish/guestfish.pod:164
17063 msgid "B<--cmd-help cmd>"
17064 msgstr ""
17065
17066 #. type: textblock
17067 #: ../fish/guestfish.pod:166
17068 msgid "Displays detailed help on a single command C<cmd>."
17069 msgstr ""
17070
17071 #. type: =item
17072 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17073 msgid "B<-a image>"
17074 msgstr ""
17075
17076 #. type: =item
17077 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17078 msgid "B<--add image>"
17079 msgstr ""
17080
17081 #. type: textblock
17082 #: ../fish/guestfish.pod:172
17083 msgid "Add a block device or virtual machine image to the shell."
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish.pod:177
17088 msgid ""
17089 "Using this flag is mostly equivalent to using the C<add> command, with "
17090 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17091 "the I<--format=...> flag was given."
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17096 msgid ""
17097 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17098 "URI to use.  The default is to use the default libvirt connection."
17099 msgstr ""
17100
17101 #. type: =item
17102 #: ../fish/guestfish.pod:189
17103 msgid "B<--csh>"
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../fish/guestfish.pod:191
17108 msgid ""
17109 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17110 "section L</REMOTE CONTROL AND CSH> below."
17111 msgstr ""
17112
17113 #. type: =item
17114 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17115 msgid "B<-d libvirt-domain>"
17116 msgstr ""
17117
17118 #. type: =item
17119 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17120 msgid "B<--domain libvirt-domain>"
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17125 msgid ""
17126 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17127 "used, then any libvirt domain can be used.  However in write mode, only "
17128 "libvirt domains which are shut down can be named here."
17129 msgstr ""
17130
17131 #. type: textblock
17132 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17133 msgid "Domain UUIDs can be used instead of names."
17134 msgstr ""
17135
17136 #. type: textblock
17137 #: ../fish/guestfish.pod:204
17138 msgid ""
17139 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17140 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17141 "if the I<--format:...> flag was given."
17142 msgstr ""
17143
17144 #. type: =item
17145 #: ../fish/guestfish.pod:208
17146 msgid "B<-D>"
17147 msgstr ""
17148
17149 #. type: =item
17150 #: ../fish/guestfish.pod:210
17151 msgid "B<--no-dest-paths>"
17152 msgstr ""
17153
17154 #. type: textblock
17155 #: ../fish/guestfish.pod:212
17156 msgid ""
17157 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17158 "to hit the tab key to complete paths on the guest filesystem, but this "
17159 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17160 "allow this feature to be disabled."
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17165 msgid ""
17166 "When prompting for keys and passphrases, guestfish normally turns echoing "
17167 "off so you cannot see what you are typing.  If you are not worried about "
17168 "Tempest attacks and there is no one else in the room you can specify this "
17169 "flag to see what you are typing."
17170 msgstr ""
17171
17172 #. type: =item
17173 #: ../fish/guestfish.pod:224
17174 msgid "B<-f file>"
17175 msgstr ""
17176
17177 #. type: =item
17178 #: ../fish/guestfish.pod:226
17179 msgid "B<--file file>"
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish.pod:228
17184 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17185 msgstr ""
17186
17187 #. type: verbatim
17188 #: ../fish/guestfish.pod:231
17189 #, no-wrap
17190 msgid ""
17191 " #!/usr/bin/guestfish -f\n"
17192 "\n"
17193 msgstr ""
17194
17195 #. type: verbatim
17196 #: ../fish/guestfish.pod:244
17197 #, no-wrap
17198 msgid ""
17199 " guestfish --format=raw -a disk.img\n"
17200 "\n"
17201 msgstr ""
17202
17203 #. type: verbatim
17204 #: ../fish/guestfish.pod:248
17205 #, no-wrap
17206 msgid ""
17207 " guestfish --format=raw -a disk.img --format -a another.img\n"
17208 "\n"
17209 msgstr ""
17210
17211 #. type: textblock
17212 #: ../fish/guestfish.pod:253
17213 msgid ""
17214 "If you have untrusted raw-format guest disk images, you should use this "
17215 "option to specify the disk format.  This avoids a possible security problem "
17216 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17217 msgstr ""
17218
17219 #. type: =item
17220 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17221 msgid "B<--inspector>"
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17226 msgid ""
17227 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17228 "system and mount filesystems as they would be mounted on the real virtual "
17229 "machine."
17230 msgstr ""
17231
17232 #. type: textblock
17233 #: ../fish/guestfish.pod:266
17234 msgid "Typical usage is either:"
17235 msgstr ""
17236
17237 #. type: verbatim
17238 #: ../fish/guestfish.pod:268
17239 #, no-wrap
17240 msgid ""
17241 " guestfish -d myguest -i\n"
17242 "\n"
17243 msgstr ""
17244
17245 #. type: textblock
17246 #: ../fish/guestfish.pod:270
17247 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17248 msgstr ""
17249
17250 #. type: verbatim
17251 #: ../fish/guestfish.pod:272
17252 #, no-wrap
17253 msgid ""
17254 " guestfish --ro -d myguest -i\n"
17255 "\n"
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish.pod:274
17260 msgid "(for active domains, readonly), or specify the block device directly:"
17261 msgstr ""
17262
17263 #. type: verbatim
17264 #: ../fish/guestfish.pod:276
17265 #, no-wrap
17266 msgid ""
17267 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17268 "\n"
17269 msgstr ""
17270
17271 #. type: textblock
17272 #: ../fish/guestfish.pod:278
17273 msgid ""
17274 "Note that the command line syntax changed slightly over older versions of "
17275 "guestfish.  You can still use the old syntax:"
17276 msgstr ""
17277
17278 #. type: verbatim
17279 #: ../fish/guestfish.pod:281
17280 #, no-wrap
17281 msgid ""
17282 " guestfish [--ro] -i disk.img\n"
17283 "\n"
17284 msgstr ""
17285
17286 #. type: verbatim
17287 #: ../fish/guestfish.pod:283
17288 #, no-wrap
17289 msgid ""
17290 " guestfish [--ro] -i libvirt-domain\n"
17291 "\n"
17292 msgstr ""
17293
17294 #. type: textblock
17295 #: ../fish/guestfish.pod:285
17296 msgid ""
17297 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17298 "then using other commands to mount the filesystems that were found."
17299 msgstr ""
17300
17301 #. type: =item
17302 #: ../fish/guestfish.pod:294
17303 msgid "B<--listen>"
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../fish/guestfish.pod:296
17308 msgid ""
17309 "Fork into the background and listen for remote commands.  See section L</"
17310 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17311 msgstr ""
17312
17313 #. type: =item
17314 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17315 msgid "B<--live>"
17316 msgstr ""
17317
17318 #. type: textblock
17319 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17320 msgid ""
17321 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17322 "ATTACHING TO RUNNING DAEMONS>)."
17323 msgstr ""
17324
17325 #. type: =item
17326 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17327 msgid "B<-m dev[:mountpoint[:options]]>"
17328 msgstr ""
17329
17330 #. type: =item
17331 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17332 msgid "B<--mount dev[:mountpoint[:options]]>"
17333 msgstr ""
17334
17335 #. type: textblock
17336 #: ../fish/guestfish.pod:308
17337 msgid "Mount the named partition or logical volume on the given mountpoint."
17338 msgstr ""
17339
17340 #. type: textblock
17341 #: ../fish/guestfish.pod:310
17342 msgid "If the mountpoint is omitted, it defaults to C</>."
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../fish/guestfish.pod:312
17347 msgid "You have to mount something on C</> before most commands will work."
17348 msgstr ""
17349
17350 #. type: textblock
17351 #: ../fish/guestfish.pod:314
17352 msgid ""
17353 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17354 "launched."
17355 msgstr ""
17356
17357 #. type: textblock
17358 #: ../fish/guestfish.pod:317
17359 msgid ""
17360 "If you don't know what filesystems a disk image contains, you can either run "
17361 "guestfish without this option, then list the partitions, filesystems and LVs "
17362 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17363 "commands), or you can use the L<virt-filesystems(1)> program."
17364 msgstr ""
17365
17366 #. type: textblock
17367 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17368 msgid ""
17369 "The third (and rarely used) part of the mount parameter is the list of mount "
17370 "options used to mount the underlying filesystem.  If this is not given, then "
17371 "the mount options are either the empty string or C<ro> (the latter if the "
17372 "I<--ro> flag is used).  By specifying the mount options, you override this "
17373 "default choice.  Probably the only time you would use this is to enable ACLs "
17374 "and/or extended attributes if the filesystem can support them:"
17375 msgstr ""
17376
17377 #. type: verbatim
17378 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17379 #, no-wrap
17380 msgid ""
17381 " -m /dev/sda1:/:acl,user_xattr\n"
17382 "\n"
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:333
17387 msgid "Using this flag is equivalent to using the C<mount-options> command."
17388 msgstr ""
17389
17390 #. type: =item
17391 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17392 #: ../resize/virt-resize.pod:358
17393 msgid "B<-n>"
17394 msgstr ""
17395
17396 #. type: =item
17397 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17398 msgid "B<--no-sync>"
17399 msgstr ""
17400
17401 #. type: textblock
17402 #: ../fish/guestfish.pod:339
17403 msgid ""
17404 "Disable autosync.  This is enabled by default.  See the discussion of "
17405 "autosync in the L<guestfs(3)> manpage."
17406 msgstr ""
17407
17408 #. type: =item
17409 #: ../fish/guestfish.pod:342
17410 msgid "B<-N type>"
17411 msgstr ""
17412
17413 #. type: =item
17414 #: ../fish/guestfish.pod:344
17415 msgid "B<--new type>"
17416 msgstr ""
17417
17418 #. type: =item
17419 #: ../fish/guestfish.pod:346
17420 msgid "B<-N help>"
17421 msgstr ""
17422
17423 #. type: textblock
17424 #: ../fish/guestfish.pod:348
17425 msgid ""
17426 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17427 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17428 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17429 "IMAGES> below."
17430 msgstr ""
17431
17432 #. type: =item
17433 #: ../fish/guestfish.pod:353
17434 msgid "B<--progress-bars>"
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish.pod:355
17439 msgid "Enable progress bars, even when guestfish is used non-interactively."
17440 msgstr ""
17441
17442 #. type: textblock
17443 #: ../fish/guestfish.pod:357
17444 msgid ""
17445 "Progress bars are enabled by default when guestfish is used as an "
17446 "interactive shell."
17447 msgstr ""
17448
17449 #. type: =item
17450 #: ../fish/guestfish.pod:360
17451 msgid "B<--no-progress-bars>"
17452 msgstr ""
17453
17454 #. type: textblock
17455 #: ../fish/guestfish.pod:362
17456 msgid "Disable progress bars."
17457 msgstr ""
17458
17459 #. type: =item
17460 #: ../fish/guestfish.pod:364
17461 msgid "B<--remote[=pid]>"
17462 msgstr ""
17463
17464 #. type: textblock
17465 #: ../fish/guestfish.pod:366
17466 msgid ""
17467 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17468 "CONTROL GUESTFISH OVER A SOCKET> below."
17469 msgstr ""
17470
17471 #. type: =item
17472 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17473 #: ../rescue/virt-rescue.pod:161
17474 msgid "B<-r>"
17475 msgstr ""
17476
17477 #. type: =item
17478 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17479 #: ../rescue/virt-rescue.pod:163
17480 msgid "B<--ro>"
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish.pod:373
17485 msgid ""
17486 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17487 "mounts are done read-only."
17488 msgstr ""
17489
17490 #. type: textblock
17491 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17492 msgid ""
17493 "The option must always be used if the disk image or virtual machine might be "
17494 "running, and is generally recommended in cases where you don't need write "
17495 "access to the disk."
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish.pod:380
17500 msgid ""
17501 "Note that prepared disk images created with I<-N> are not affected by this "
17502 "option.  Also commands like C<add> are not affected - you have to specify "
17503 "the C<readonly:true> option explicitly if you need it."
17504 msgstr ""
17505
17506 #. type: textblock
17507 #: ../fish/guestfish.pod:384
17508 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17509 msgstr ""
17510
17511 #. type: =item
17512 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17513 #: ../rescue/virt-rescue.pod:173
17514 msgid "B<--selinux>"
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish.pod:388
17519 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:394
17524 msgid ""
17525 "Enable very verbose messages.  This is particularly useful if you find a bug."
17526 msgstr ""
17527
17528 #. type: textblock
17529 #: ../fish/guestfish.pod:401
17530 msgid "Display the guestfish / libguestfs version number and exit."
17531 msgstr ""
17532
17533 #. type: =item
17534 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17535 #: ../rescue/virt-rescue.pod:194
17536 msgid "B<-w>"
17537 msgstr ""
17538
17539 #. type: =item
17540 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17541 #: ../rescue/virt-rescue.pod:196
17542 msgid "B<--rw>"
17543 msgstr ""
17544
17545 #. type: textblock
17546 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17547 msgid ""
17548 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17549 "mounts are done read-write."
17550 msgstr ""
17551
17552 #. type: textblock
17553 #: ../fish/guestfish.pod:410
17554 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17555 msgstr ""
17556
17557 #. type: textblock
17558 #: ../fish/guestfish.pod:414
17559 msgid "Echo each command before executing it."
17560 msgstr ""
17561
17562 #. type: =head1
17563 #: ../fish/guestfish.pod:418
17564 msgid "COMMANDS ON COMMAND LINE"
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish.pod:420
17569 msgid ""
17570 "Any additional (non-option) arguments are treated as commands to execute."
17571 msgstr ""
17572
17573 #. type: textblock
17574 #: ../fish/guestfish.pod:423
17575 msgid ""
17576 "Commands to execute should be separated by a colon (C<:>), where the colon "
17577 "is a separate parameter.  Thus:"
17578 msgstr ""
17579
17580 #. type: verbatim
17581 #: ../fish/guestfish.pod:426
17582 #, no-wrap
17583 msgid ""
17584 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17585 "\n"
17586 msgstr ""
17587
17588 #. type: textblock
17589 #: ../fish/guestfish.pod:428
17590 msgid ""
17591 "If there are no additional arguments, then we enter a shell, either an "
17592 "interactive shell with a prompt (if the input is a terminal) or a non-"
17593 "interactive shell."
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../fish/guestfish.pod:432
17598 msgid ""
17599 "In either command line mode or non-interactive shell, the first command that "
17600 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17601 "prompt) if a command fails, you can continue to enter commands."
17602 msgstr ""
17603
17604 #. type: =head1
17605 #: ../fish/guestfish.pod:437
17606 msgid "USING launch (OR run)"
17607 msgstr ""
17608
17609 #. type: textblock
17610 #: ../fish/guestfish.pod:439
17611 msgid ""
17612 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17613 "then launch it, then mount any disks you need, and finally issue actions/"
17614 "commands.  So the general order of the day is:"
17615 msgstr ""
17616
17617 #. type: textblock
17618 #: ../fish/guestfish.pod:447
17619 msgid "add or -a/--add"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish.pod:451
17624 msgid "launch (aka run)"
17625 msgstr ""
17626
17627 #. type: textblock
17628 #: ../fish/guestfish.pod:455
17629 msgid "mount or -m/--mount"
17630 msgstr ""
17631
17632 #. type: textblock
17633 #: ../fish/guestfish.pod:459
17634 msgid "any other commands"
17635 msgstr ""
17636
17637 #. type: textblock
17638 #: ../fish/guestfish.pod:463
17639 msgid ""
17640 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17641 "guest before mounting or performing any other commands."
17642 msgstr ""
17643
17644 #. type: textblock
17645 #: ../fish/guestfish.pod:466
17646 msgid ""
17647 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17648 "I<--new> options were given then C<run> is done automatically, simply "
17649 "because guestfish can't perform the action you asked for without doing this."
17650 msgstr ""
17651
17652 #. type: =head1
17653 #: ../fish/guestfish.pod:471
17654 msgid "OPENING DISKS FOR READ AND WRITE"
17655 msgstr ""
17656
17657 #. type: textblock
17658 #: ../fish/guestfish.pod:473
17659 msgid ""
17660 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17661 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17662 "I<-i> and I<-m> open disk images read-only or for writing."
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:478
17667 msgid ""
17668 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17669 "opening disk images supplied on the command line for write.  To open a disk "
17670 "image read-only you have to do I<-a image --ro>."
17671 msgstr ""
17672
17673 #. type: textblock
17674 #: ../fish/guestfish.pod:482
17675 msgid ""
17676 "This matters: If you accidentally open a live VM disk image writable then "
17677 "you will cause irreversible disk corruption."
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish.pod:485
17682 msgid ""
17683 "In a future libguestfs we intend to change the default the other way.  Disk "
17684 "images will be opened read-only.  You will have to either specify "
17685 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17686 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17687 "access for disk images specified by those other command line options."
17688 msgstr ""
17689
17690 #. type: textblock
17691 #: ../fish/guestfish.pod:492
17692 msgid ""
17693 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17694 "which does nothing (it is already the default).  However it is highly "
17695 "recommended that you use this option to indicate that you need write access, "
17696 "and prepare your scripts for the day when this option will be required for "
17697 "write access."
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../fish/guestfish.pod:498
17702 msgid ""
17703 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17704 "other libguestfs program apart from guestfish and guestmount."
17705 msgstr ""
17706
17707 #. type: =head1
17708 #: ../fish/guestfish.pod:501
17709 msgid "QUOTING"
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish.pod:503
17714 msgid ""
17715 "You can quote ordinary parameters using either single or double quotes.  For "
17716 "example:"
17717 msgstr ""
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish.pod:506
17721 #, no-wrap
17722 msgid ""
17723 " add \"file with a space.img\"\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: verbatim
17728 #: ../fish/guestfish.pod:508
17729 #, no-wrap
17730 msgid ""
17731 " rm '/file name'\n"
17732 "\n"
17733 msgstr ""
17734
17735 #. type: verbatim
17736 #: ../fish/guestfish.pod:510
17737 #, no-wrap
17738 msgid ""
17739 " rm '/\"'\n"
17740 "\n"
17741 msgstr ""
17742
17743 #. type: textblock
17744 #: ../fish/guestfish.pod:512
17745 msgid ""
17746 "A few commands require a list of strings to be passed.  For these, use a "
17747 "whitespace-separated list, enclosed in quotes.  Strings containing "
17748 "whitespace to be passed through must be enclosed in single quotes.  A "
17749 "literal single quote must be escaped with a backslash."
17750 msgstr ""
17751
17752 #. type: verbatim
17753 #: ../fish/guestfish.pod:517
17754 #, no-wrap
17755 msgid ""
17756 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17757 " command \"/bin/echo 'foo      bar'\"\n"
17758 " command \"/bin/echo \\'foo\\'\"\n"
17759 "\n"
17760 msgstr ""
17761
17762 #. type: =head2
17763 #: ../fish/guestfish.pod:521
17764 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish.pod:523
17769 msgid ""
17770 "In double-quoted arguments (only) use backslash to insert special characters:"
17771 msgstr ""
17772
17773 #. type: =item
17774 #: ../fish/guestfish.pod:528
17775 msgid "C<\\a>"
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:530
17780 msgid "Alert (bell) character."
17781 msgstr ""
17782
17783 #. type: =item
17784 #: ../fish/guestfish.pod:532
17785 msgid "C<\\b>"
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../fish/guestfish.pod:534
17790 msgid "Backspace character."
17791 msgstr ""
17792
17793 #. type: =item
17794 #: ../fish/guestfish.pod:536
17795 msgid "C<\\f>"
17796 msgstr ""
17797
17798 #. type: textblock
17799 #: ../fish/guestfish.pod:538
17800 msgid "Form feed character."
17801 msgstr ""
17802
17803 #. type: =item
17804 #: ../fish/guestfish.pod:540
17805 msgid "C<\\n>"
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish.pod:542
17810 msgid "Newline character."
17811 msgstr ""
17812
17813 #. type: =item
17814 #: ../fish/guestfish.pod:544
17815 msgid "C<\\r>"
17816 msgstr ""
17817
17818 #. type: textblock
17819 #: ../fish/guestfish.pod:546
17820 msgid "Carriage return character."
17821 msgstr ""
17822
17823 #. type: =item
17824 #: ../fish/guestfish.pod:548
17825 msgid "C<\\t>"
17826 msgstr ""
17827
17828 #. type: textblock
17829 #: ../fish/guestfish.pod:550
17830 msgid "Horizontal tab character."
17831 msgstr ""
17832
17833 #. type: =item
17834 #: ../fish/guestfish.pod:552
17835 msgid "C<\\v>"
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish.pod:554
17840 msgid "Vertical tab character."
17841 msgstr ""
17842
17843 #. type: =item
17844 #: ../fish/guestfish.pod:556
17845 msgid "C<\\\">"
17846 msgstr ""
17847
17848 #. type: textblock
17849 #: ../fish/guestfish.pod:558
17850 msgid "A literal double quote character."
17851 msgstr ""
17852
17853 #. type: =item
17854 #: ../fish/guestfish.pod:560
17855 msgid "C<\\ooo>"
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../fish/guestfish.pod:562
17860 msgid ""
17861 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
17862 "(unlike C)."
17863 msgstr ""
17864
17865 #. type: =item
17866 #: ../fish/guestfish.pod:565
17867 msgid "C<\\xhh>"
17868 msgstr ""
17869
17870 #. type: textblock
17871 #: ../fish/guestfish.pod:567
17872 msgid ""
17873 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
17874 msgstr ""
17875
17876 #. type: textblock
17877 #: ../fish/guestfish.pod:570
17878 msgid ""
17879 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
17880 "strings."
17881 msgstr ""
17882
17883 #. type: =item
17884 #: ../fish/guestfish.pod:573
17885 msgid "C<\\\\>"
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish.pod:575
17890 msgid "A literal backslash character."
17891 msgstr ""
17892
17893 #. type: =head1
17894 #: ../fish/guestfish.pod:579
17895 msgid "OPTIONAL ARGUMENTS"
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish.pod:581
17900 msgid ""
17901 "Some commands take optional arguments.  These arguments appear in this "
17902 "documentation as C<[argname:..]>.  You can use them as in these examples:"
17903 msgstr ""
17904
17905 #. type: verbatim
17906 #: ../fish/guestfish.pod:585
17907 #, no-wrap
17908 msgid ""
17909 " add-drive-opts filename\n"
17910 "\n"
17911 msgstr ""
17912
17913 #. type: verbatim
17914 #: ../fish/guestfish.pod:587
17915 #, no-wrap
17916 msgid ""
17917 " add-drive-opts filename readonly:true\n"
17918 "\n"
17919 msgstr ""
17920
17921 #. type: verbatim
17922 #: ../fish/guestfish.pod:589
17923 #, no-wrap
17924 msgid ""
17925 " add-drive-opts filename format:qcow2 readonly:false\n"
17926 "\n"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../fish/guestfish.pod:591
17931 msgid ""
17932 "Each optional argument can appear at most once.  All optional arguments must "
17933 "appear after the required ones."
17934 msgstr ""
17935
17936 #. type: =head1
17937 #: ../fish/guestfish.pod:594
17938 msgid "NUMBERS"
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish.pod:596
17943 msgid ""
17944 "This section applies to all commands which can take integers as parameters."
17945 msgstr ""
17946
17947 #. type: =head2
17948 #: ../fish/guestfish.pod:599
17949 msgid "SIZE SUFFIX"
17950 msgstr ""
17951
17952 #. type: textblock
17953 #: ../fish/guestfish.pod:601
17954 msgid ""
17955 "When the command takes a parameter measured in bytes, you can use one of the "
17956 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17957 msgstr ""
17958
17959 #. type: =item
17960 #: ../fish/guestfish.pod:607
17961 msgid "B<k> or B<K> or B<KiB>"
17962 msgstr ""
17963
17964 #. type: textblock
17965 #: ../fish/guestfish.pod:609
17966 msgid "The size in kilobytes (multiplied by 1024)."
17967 msgstr ""
17968
17969 #. type: =item
17970 #: ../fish/guestfish.pod:611
17971 msgid "B<KB>"
17972 msgstr ""
17973
17974 #. type: textblock
17975 #: ../fish/guestfish.pod:613
17976 msgid "The size in SI 1000 byte units."
17977 msgstr ""
17978
17979 #. type: =item
17980 #: ../fish/guestfish.pod:615
17981 msgid "B<M> or B<MiB>"
17982 msgstr ""
17983
17984 #. type: textblock
17985 #: ../fish/guestfish.pod:617
17986 msgid "The size in megabytes (multiplied by 1048576)."
17987 msgstr ""
17988
17989 #. type: =item
17990 #: ../fish/guestfish.pod:619
17991 msgid "B<MB>"
17992 msgstr ""
17993
17994 #. type: textblock
17995 #: ../fish/guestfish.pod:621
17996 msgid "The size in SI 1000000 byte units."
17997 msgstr ""
17998
17999 #. type: =item
18000 #: ../fish/guestfish.pod:623
18001 msgid "B<G> or B<GiB>"
18002 msgstr ""
18003
18004 #. type: textblock
18005 #: ../fish/guestfish.pod:625
18006 msgid "The size in gigabytes (multiplied by 2**30)."
18007 msgstr ""
18008
18009 #. type: =item
18010 #: ../fish/guestfish.pod:627
18011 msgid "B<GB>"
18012 msgstr ""
18013
18014 #. type: textblock
18015 #: ../fish/guestfish.pod:629
18016 msgid "The size in SI 10**9 byte units."
18017 msgstr ""
18018
18019 #. type: =item
18020 #: ../fish/guestfish.pod:631
18021 msgid "B<T> or B<TiB>"
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish.pod:633
18026 msgid "The size in terabytes (multiplied by 2**40)."
18027 msgstr ""
18028
18029 #. type: =item
18030 #: ../fish/guestfish.pod:635
18031 msgid "B<TB>"
18032 msgstr ""
18033
18034 #. type: textblock
18035 #: ../fish/guestfish.pod:637
18036 msgid "The size in SI 10**12 byte units."
18037 msgstr ""
18038
18039 #. type: =item
18040 #: ../fish/guestfish.pod:639
18041 msgid "B<P> or B<PiB>"
18042 msgstr ""
18043
18044 #. type: textblock
18045 #: ../fish/guestfish.pod:641
18046 msgid "The size in petabytes (multiplied by 2**50)."
18047 msgstr ""
18048
18049 #. type: =item
18050 #: ../fish/guestfish.pod:643
18051 msgid "B<PB>"
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:645
18056 msgid "The size in SI 10**15 byte units."
18057 msgstr ""
18058
18059 #. type: =item
18060 #: ../fish/guestfish.pod:647
18061 msgid "B<E> or B<EiB>"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../fish/guestfish.pod:649
18066 msgid "The size in exabytes (multiplied by 2**60)."
18067 msgstr ""
18068
18069 #. type: =item
18070 #: ../fish/guestfish.pod:651
18071 msgid "B<EB>"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:653
18076 msgid "The size in SI 10**18 byte units."
18077 msgstr ""
18078
18079 #. type: =item
18080 #: ../fish/guestfish.pod:655
18081 msgid "B<Z> or B<ZiB>"
18082 msgstr ""
18083
18084 #. type: textblock
18085 #: ../fish/guestfish.pod:657
18086 msgid "The size in zettabytes (multiplied by 2**70)."
18087 msgstr ""
18088
18089 #. type: =item
18090 #: ../fish/guestfish.pod:659
18091 msgid "B<ZB>"
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish.pod:661
18096 msgid "The size in SI 10**21 byte units."
18097 msgstr ""
18098
18099 #. type: =item
18100 #: ../fish/guestfish.pod:663
18101 msgid "B<Y> or B<YiB>"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../fish/guestfish.pod:665
18106 msgid "The size in yottabytes (multiplied by 2**80)."
18107 msgstr ""
18108
18109 #. type: =item
18110 #: ../fish/guestfish.pod:667
18111 msgid "B<YB>"
18112 msgstr ""
18113
18114 #. type: textblock
18115 #: ../fish/guestfish.pod:669
18116 msgid "The size in SI 10**24 byte units."
18117 msgstr ""
18118
18119 #. type: verbatim
18120 #: ../fish/guestfish.pod:675
18121 #, no-wrap
18122 msgid ""
18123 " truncate-size /file 1G\n"
18124 "\n"
18125 msgstr ""
18126
18127 #. type: textblock
18128 #: ../fish/guestfish.pod:677
18129 msgid "would truncate the file to 1 gigabyte."
18130 msgstr ""
18131
18132 #. type: textblock
18133 #: ../fish/guestfish.pod:679
18134 msgid ""
18135 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18136 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18137 "suffix will probably not do what you expect."
18138 msgstr ""
18139
18140 #. type: =head2
18141 #: ../fish/guestfish.pod:683
18142 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18143 msgstr ""
18144
18145 #. type: textblock
18146 #: ../fish/guestfish.pod:685
18147 msgid ""
18148 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18149 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18150 msgstr ""
18151
18152 #. type: verbatim
18153 #: ../fish/guestfish.pod:688
18154 #, no-wrap
18155 msgid ""
18156 " 1234      decimal number 1234\n"
18157 " 02322     octal number, equivalent to decimal 1234\n"
18158 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18159 "\n"
18160 msgstr ""
18161
18162 #. type: textblock
18163 #: ../fish/guestfish.pod:692
18164 msgid ""
18165 "When using the C<chmod> command, you almost always want to specify an octal "
18166 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18167 "L<chmod(1)> program):"
18168 msgstr ""
18169
18170 #. type: verbatim
18171 #: ../fish/guestfish.pod:696
18172 #, no-wrap
18173 msgid ""
18174 " chmod 0777 /public  # OK\n"
18175 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18176 "\n"
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../fish/guestfish.pod:699
18181 msgid ""
18182 "Commands that return numbers usually print them in decimal, but some "
18183 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18184 "octal, preceeded by C<0>)."
18185 msgstr ""
18186
18187 #. type: =head1
18188 #: ../fish/guestfish.pod:703
18189 msgid "WILDCARDS AND GLOBBING"
18190 msgstr ""
18191
18192 #. type: textblock
18193 #: ../fish/guestfish.pod:705
18194 msgid ""
18195 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18196 "(globbing) by default.  So for example the following will not do what you "
18197 "expect:"
18198 msgstr ""
18199
18200 #. type: verbatim
18201 #: ../fish/guestfish.pod:709
18202 #, no-wrap
18203 msgid ""
18204 " rm-rf /home/*\n"
18205 "\n"
18206 msgstr ""
18207
18208 #. type: textblock
18209 #: ../fish/guestfish.pod:711
18210 msgid ""
18211 "Assuming you don't have a directory called literally C</home/*> then the "
18212 "above command will return an error."
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../fish/guestfish.pod:714
18217 msgid "To perform wildcard expansion, use the C<glob> command."
18218 msgstr ""
18219
18220 #. type: verbatim
18221 #: ../fish/guestfish.pod:716
18222 #, no-wrap
18223 msgid ""
18224 " glob rm-rf /home/*\n"
18225 "\n"
18226 msgstr ""
18227
18228 #. type: textblock
18229 #: ../fish/guestfish.pod:718
18230 msgid ""
18231 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18232 "many times), equivalent to:"
18233 msgstr ""
18234
18235 #. type: verbatim
18236 #: ../fish/guestfish.pod:721
18237 #, no-wrap
18238 msgid ""
18239 " rm-rf /home/jim\n"
18240 " rm-rf /home/joe\n"
18241 " rm-rf /home/mary\n"
18242 "\n"
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/guestfish.pod:725
18247 msgid "C<glob> only works on simple guest paths and not on device names."
18248 msgstr ""
18249
18250 #. type: textblock
18251 #: ../fish/guestfish.pod:727
18252 msgid ""
18253 "If you have several parameters, each containing a wildcard, then glob will "
18254 "perform a Cartesian product."
18255 msgstr ""
18256
18257 #. type: =head1
18258 #: ../fish/guestfish.pod:730
18259 msgid "COMMENTS"
18260 msgstr ""
18261
18262 #. type: textblock
18263 #: ../fish/guestfish.pod:732
18264 msgid ""
18265 "Any line which starts with a I<#> character is treated as a comment and "
18266 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18267 "a command.  For example:"
18268 msgstr ""
18269
18270 #. type: verbatim
18271 #: ../fish/guestfish.pod:736
18272 #, no-wrap
18273 msgid ""
18274 " # this is a comment\n"
18275 "         # this is a comment\n"
18276 " foo # NOT a comment\n"
18277 "\n"
18278 msgstr ""
18279
18280 #. type: textblock
18281 #: ../fish/guestfish.pod:740
18282 msgid "Blank lines are also ignored."
18283 msgstr ""
18284
18285 #. type: =head1
18286 #: ../fish/guestfish.pod:742
18287 msgid "RUNNING COMMANDS LOCALLY"
18288 msgstr ""
18289
18290 #. type: textblock
18291 #: ../fish/guestfish.pod:744
18292 msgid ""
18293 "Any line which starts with a I<!> character is treated as a command sent to "
18294 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18295 msgstr ""
18296
18297 #. type: verbatim
18298 #: ../fish/guestfish.pod:748
18299 #, no-wrap
18300 msgid ""
18301 " !mkdir local\n"
18302 " tgz-out /remote local/remote-data.tar.gz\n"
18303 "\n"
18304 msgstr ""
18305
18306 #. type: textblock
18307 #: ../fish/guestfish.pod:751
18308 msgid ""
18309 "will create a directory C<local> on the host, and then export the contents "
18310 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18311 "(See C<tgz-out>)."
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:755
18316 msgid ""
18317 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18318 "effect, due to the way that subprocesses work in Unix."
18319 msgstr ""
18320
18321 #. type: =head2
18322 #: ../fish/guestfish.pod:758
18323 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18324 msgstr ""
18325
18326 #. type: textblock
18327 #: ../fish/guestfish.pod:760
18328 msgid ""
18329 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18330 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18331 "and executed as guestfish commands."
18332 msgstr ""
18333
18334 #. type: textblock
18335 #: ../fish/guestfish.pod:764
18336 msgid ""
18337 "Thus you can use shell script to construct arbitrary guestfish commands "
18338 "which are then parsed by guestfish."
18339 msgstr ""
18340
18341 #. type: textblock
18342 #: ../fish/guestfish.pod:767
18343 msgid ""
18344 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18345 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18346 "if we use a shell script to create the guestfish commands for us:"
18347 msgstr ""
18348
18349 #. type: verbatim
18350 #: ../fish/guestfish.pod:772
18351 #, no-wrap
18352 msgid ""
18353 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18354 "\n"
18355 msgstr ""
18356
18357 #. type: textblock
18358 #: ../fish/guestfish.pod:774
18359 msgid "or with names like C</foo.001>:"
18360 msgstr ""
18361
18362 #. type: verbatim
18363 #: ../fish/guestfish.pod:776
18364 #, no-wrap
18365 msgid ""
18366 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18367 "\n"
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../fish/guestfish.pod:778
18372 msgid ""
18373 "When using guestfish interactively it can be helpful to just run the shell "
18374 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18375 "ordinary I<!> local command), see what guestfish commands it would run, and "
18376 "when you are happy with those prepend the C<E<lt>> character to run the "
18377 "guestfish commands for real."
18378 msgstr ""
18379
18380 #. type: =head1
18381 #: ../fish/guestfish.pod:784
18382 msgid "PIPES"
18383 msgstr ""
18384
18385 #. type: textblock
18386 #: ../fish/guestfish.pod:786
18387 msgid ""
18388 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18389 "command (a guestfish command) to the second command (any host command).  For "
18390 "example:"
18391 msgstr ""
18392
18393 #. type: verbatim
18394 #: ../fish/guestfish.pod:790
18395 #, no-wrap
18396 msgid ""
18397 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18398 "\n"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish.pod:792
18403 msgid ""
18404 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18405 "program).  The above command would list all accounts in the guest filesystem "
18406 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18407 msgstr ""
18408
18409 #. type: verbatim
18410 #: ../fish/guestfish.pod:797
18411 #, no-wrap
18412 msgid ""
18413 " hexdump /bin/ls | head\n"
18414 " list-devices | tail -1\n"
18415 " tgz-out / - | tar ztf -\n"
18416 "\n"
18417 msgstr ""
18418
18419 #. type: textblock
18420 #: ../fish/guestfish.pod:801
18421 msgid ""
18422 "The space before the pipe symbol is required, any space after the pipe "
18423 "symbol is optional.  Everything after the pipe symbol is just passed "
18424 "straight to the host shell, so it can contain redirections, globs and "
18425 "anything else that makes sense on the host side."
18426 msgstr ""
18427
18428 #. type: textblock
18429 #: ../fish/guestfish.pod:806
18430 msgid ""
18431 "To use a literal argument which begins with a pipe symbol, you have to quote "
18432 "it, eg:"
18433 msgstr ""
18434
18435 #. type: verbatim
18436 #: ../fish/guestfish.pod:809
18437 #, no-wrap
18438 msgid ""
18439 " echo \"|\"\n"
18440 "\n"
18441 msgstr ""
18442
18443 #. type: =head1
18444 #: ../fish/guestfish.pod:811
18445 msgid "HOME DIRECTORIES"
18446 msgstr ""
18447
18448 #. type: textblock
18449 #: ../fish/guestfish.pod:813
18450 msgid ""
18451 "If a parameter starts with the character C<~> then the tilde may be expanded "
18452 "as a home directory path (either C<~> for the current user's home directory, "
18453 "or C<~user> for another user)."
18454 msgstr ""
18455
18456 #. type: textblock
18457 #: ../fish/guestfish.pod:817
18458 msgid ""
18459 "Note that home directory expansion happens for users known I<on the host>, "
18460 "not in the guest filesystem."
18461 msgstr ""
18462
18463 #. type: textblock
18464 #: ../fish/guestfish.pod:820
18465 msgid ""
18466 "To use a literal argument which begins with a tilde, you have to quote it, "
18467 "eg:"
18468 msgstr ""
18469
18470 #. type: verbatim
18471 #: ../fish/guestfish.pod:823
18472 #, no-wrap
18473 msgid ""
18474 " echo \"~\"\n"
18475 "\n"
18476 msgstr ""
18477
18478 #. type: =head2
18479 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18480 msgid "ENCRYPTED DISKS"
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish.pod:827
18485 msgid ""
18486 "Libguestfs has some support for Linux guests encrypted according to the "
18487 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18488 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18489 "LUKS is supported."
18490 msgstr ""
18491
18492 #. type: textblock
18493 #: ../fish/guestfish.pod:832
18494 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18495 msgstr ""
18496
18497 #. type: verbatim
18498 #: ../fish/guestfish.pod:834
18499 #, no-wrap
18500 msgid ""
18501 " ><fs> vfs-type /dev/sda2\n"
18502 " crypto_LUKS\n"
18503 "\n"
18504 msgstr ""
18505
18506 #. type: textblock
18507 #: ../fish/guestfish.pod:837
18508 msgid ""
18509 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18510 "device called C</dev/mapper/luksdev>."
18511 msgstr ""
18512
18513 #. type: verbatim
18514 #: ../fish/guestfish.pod:840
18515 #, no-wrap
18516 msgid ""
18517 " ><fs> luks-open /dev/sda2 luksdev\n"
18518 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18519 "\n"
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:843
18524 msgid ""
18525 "Finally you have to tell LVM to scan for volume groups on the newly created "
18526 "mapper device:"
18527 msgstr ""
18528
18529 #. type: verbatim
18530 #: ../fish/guestfish.pod:846
18531 #, no-wrap
18532 msgid ""
18533 " vgscan\n"
18534 " vg-activate-all true\n"
18535 "\n"
18536 msgstr ""
18537
18538 #. type: textblock
18539 #: ../fish/guestfish.pod:849
18540 msgid "The logical volume(s) can now be mounted in the usual way."
18541 msgstr ""
18542
18543 #. type: textblock
18544 #: ../fish/guestfish.pod:851
18545 msgid ""
18546 "Before closing a LUKS device you must unmount any logical volumes on it and "
18547 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18548 "one.  Then you can close the mapper device:"
18549 msgstr ""
18550
18551 #. type: verbatim
18552 #: ../fish/guestfish.pod:855
18553 #, no-wrap
18554 msgid ""
18555 " vg-activate false /dev/VG\n"
18556 " luks-close /dev/mapper/luksdev\n"
18557 "\n"
18558 msgstr ""
18559
18560 #. type: textblock
18561 #: ../fish/guestfish.pod:860
18562 msgid ""
18563 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18564 "letters and paths (with some limitations).  The following commands are "
18565 "equivalent:"
18566 msgstr ""
18567
18568 #. type: verbatim
18569 #: ../fish/guestfish.pod:864
18570 #, no-wrap
18571 msgid ""
18572 " file /WINDOWS/system32/config/system.LOG\n"
18573 "\n"
18574 msgstr ""
18575
18576 #. type: verbatim
18577 #: ../fish/guestfish.pod:866
18578 #, no-wrap
18579 msgid ""
18580 " file win:\\windows\\system32\\config\\system.log\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: verbatim
18585 #: ../fish/guestfish.pod:868
18586 #, no-wrap
18587 msgid ""
18588 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18589 "\n"
18590 msgstr ""
18591
18592 #. type: textblock
18593 #: ../fish/guestfish.pod:870
18594 msgid ""
18595 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18596 "where the drive is mounted, prepending that to the path, changing all "
18597 "backslash characters to forward slash, then resolving the result using L</"
18598 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18599 "the parameter might be rewritten like this:"
18600 msgstr ""
18601
18602 #. type: verbatim
18603 #: ../fish/guestfish.pod:876
18604 #, no-wrap
18605 msgid ""
18606 " win:e:\\foo\\bar => /e/FOO/bar\n"
18607 "\n"
18608 msgstr ""
18609
18610 #. type: textblock
18611 #: ../fish/guestfish.pod:878
18612 msgid "This only works in argument positions that expect a path."
18613 msgstr ""
18614
18615 #. type: =head1
18616 #: ../fish/guestfish.pod:880
18617 msgid "UPLOADING AND DOWNLOADING FILES"
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../fish/guestfish.pod:882
18622 msgid ""
18623 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18624 "others which upload from or download to a local file, you can use the "
18625 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18626 msgstr ""
18627
18628 #. type: verbatim
18629 #: ../fish/guestfish.pod:886
18630 #, no-wrap
18631 msgid ""
18632 " upload - /foo\n"
18633 "\n"
18634 msgstr ""
18635
18636 #. type: textblock
18637 #: ../fish/guestfish.pod:888
18638 msgid ""
18639 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18640 msgstr ""
18641
18642 #. type: verbatim
18643 #: ../fish/guestfish.pod:891
18644 #, no-wrap
18645 msgid ""
18646 " tar-out /etc - | tar tf -\n"
18647 "\n"
18648 msgstr ""
18649
18650 #. type: textblock
18651 #: ../fish/guestfish.pod:893
18652 msgid ""
18653 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18654 "command (see L</PIPES>)."
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:896
18659 msgid ""
18660 "When using C<-> to read from stdin, the input is read up to the end of "
18661 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18662 "some arbitrary end marker:"
18663 msgstr ""
18664
18665 #. type: verbatim
18666 #: ../fish/guestfish.pod:900
18667 #, no-wrap
18668 msgid ""
18669 " upload -<<END /foo\n"
18670 " input line 1\n"
18671 " input line 2\n"
18672 " input line 3\n"
18673 " END\n"
18674 "\n"
18675 msgstr ""
18676
18677 #. type: textblock
18678 #: ../fish/guestfish.pod:906
18679 msgid ""
18680 "Any string of characters can be used instead of C<END>.  The end marker must "
18681 "appear on a line of its own, without any preceeding or following characters "
18682 "(not even spaces)."
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/guestfish.pod:910
18687 msgid ""
18688 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18689 "upload local files (so-called \"FileIn\" parameters in the generator)."
18690 msgstr ""
18691
18692 #. type: =head1
18693 #: ../fish/guestfish.pod:913
18694 msgid "EXIT ON ERROR BEHAVIOUR"
18695 msgstr ""
18696
18697 #. type: textblock
18698 #: ../fish/guestfish.pod:915
18699 msgid ""
18700 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18701 "taking commands from a human over a tty), and will exit on the first error "
18702 "in non-interactive mode (scripts, commands given on the command line)."
18703 msgstr ""
18704
18705 #. type: textblock
18706 #: ../fish/guestfish.pod:920
18707 msgid ""
18708 "If you prefix a command with a I<-> character, then that command will not "
18709 "cause guestfish to exit, even if that (one) command returns an error."
18710 msgstr ""
18711
18712 #. type: =head1
18713 #: ../fish/guestfish.pod:924
18714 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18715 msgstr ""
18716
18717 #. type: textblock
18718 #: ../fish/guestfish.pod:926
18719 msgid ""
18720 "Guestfish can be remote-controlled over a socket.  This is useful "
18721 "particularly in shell scripts where you want to make several different "
18722 "changes to a filesystem, but you don't want the overhead of starting up a "
18723 "guestfish process each time."
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish.pod:931
18728 msgid "Start a guestfish server process using:"
18729 msgstr ""
18730
18731 #. type: verbatim
18732 #: ../fish/guestfish.pod:933
18733 #, no-wrap
18734 msgid ""
18735 " eval \"`guestfish --listen`\"\n"
18736 "\n"
18737 msgstr ""
18738
18739 #. type: textblock
18740 #: ../fish/guestfish.pod:935
18741 msgid "and then send it commands by doing:"
18742 msgstr ""
18743
18744 #. type: verbatim
18745 #: ../fish/guestfish.pod:937
18746 #, no-wrap
18747 msgid ""
18748 " guestfish --remote cmd [...]\n"
18749 "\n"
18750 msgstr ""
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:939
18754 msgid "To cause the server to exit, send it the exit command:"
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/guestfish.pod:943
18759 msgid ""
18760 "Note that the server will normally exit if there is an error in a command.  "
18761 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18762 "BEHAVIOUR>."
18763 msgstr ""
18764
18765 #. type: =head2
18766 #: ../fish/guestfish.pod:947
18767 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18768 msgstr ""
18769
18770 #. type: textblock
18771 #: ../fish/guestfish.pod:949
18772 msgid ""
18773 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18774 "is how the I<--remote> option knows where to send the commands.  You can "
18775 "have several guestfish listener processes running using:"
18776 msgstr ""
18777
18778 #. type: verbatim
18779 #: ../fish/guestfish.pod:953
18780 #, no-wrap
18781 msgid ""
18782 " eval \"`guestfish --listen`\"\n"
18783 " pid1=$GUESTFISH_PID\n"
18784 " eval \"`guestfish --listen`\"\n"
18785 " pid2=$GUESTFISH_PID\n"
18786 " ...\n"
18787 " guestfish --remote=$pid1 cmd\n"
18788 " guestfish --remote=$pid2 cmd\n"
18789 "\n"
18790 msgstr ""
18791
18792 #. type: =head2
18793 #: ../fish/guestfish.pod:961
18794 msgid "REMOTE CONTROL AND CSH"
18795 msgstr ""
18796
18797 #. type: textblock
18798 #: ../fish/guestfish.pod:963
18799 msgid ""
18800 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18801 "option:"
18802 msgstr ""
18803
18804 #. type: verbatim
18805 #: ../fish/guestfish.pod:966
18806 #, no-wrap
18807 msgid ""
18808 " eval \"`guestfish --listen --csh`\"\n"
18809 "\n"
18810 msgstr ""
18811
18812 #. type: =head2
18813 #: ../fish/guestfish.pod:968
18814 msgid "REMOTE CONTROL DETAILS"
18815 msgstr ""
18816
18817 #. type: textblock
18818 #: ../fish/guestfish.pod:970
18819 msgid ""
18820 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
18821 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
18822 "and C<$PID> is the process ID of the server."
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish.pod:974
18827 msgid "Guestfish client and server versions must match exactly."
18828 msgstr ""
18829
18830 #. type: =head2
18831 #: ../fish/guestfish.pod:976
18832 msgid "REMOTE CONTROL RUN COMMAND HANGING"
18833 msgstr ""
18834
18835 #. type: textblock
18836 #: ../fish/guestfish.pod:978
18837 msgid ""
18838 "Using the C<run> (or C<launch>) command remotely in a command substitution "
18839 "context hangs, ie. don't do (note the backquotes):"
18840 msgstr ""
18841
18842 #. type: verbatim
18843 #: ../fish/guestfish.pod:981
18844 #, no-wrap
18845 msgid ""
18846 " a=`guestfish --remote run`\n"
18847 "\n"
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fish/guestfish.pod:983
18852 msgid ""
18853 "Since the C<run> command produces no output on stdout, this is not useful "
18854 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
18855 "cgi?id=592910>."
18856 msgstr ""
18857
18858 #. type: =head1
18859 #: ../fish/guestfish.pod:987
18860 msgid "PREPARED DISK IMAGES"
18861 msgstr ""
18862
18863 #. type: textblock
18864 #: ../fish/guestfish.pod:989
18865 msgid ""
18866 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
18867 "preformatted disk images that guestfish can make for you to save typing.  "
18868 "This is particularly useful for testing purposes.  This option is used "
18869 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
18870 "can be mixed with I<-a>)."
18871 msgstr ""
18872
18873 #. type: textblock
18874 #: ../fish/guestfish.pod:995
18875 msgid ""
18876 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
18877 "the second and so on.  Existing files in the current directory are "
18878 "I<overwritten>."
18879 msgstr ""
18880
18881 #. type: textblock
18882 #: ../fish/guestfish.pod:999
18883 msgid ""
18884 "The type briefly describes how the disk should be sized, partitioned, how "
18885 "filesystem(s) should be created, and how content should be added.  "
18886 "Optionally the type can be followed by extra parameters, separated by C<:> "
18887 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
18888 "allocated disk, containing a single partition, with the partition formatted "
18889 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
18890 "disk instead."
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:1007
18895 msgid "To list the available types and any extra parameters they take, run:"
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../fish/guestfish.pod:1011
18900 msgid ""
18901 "Note that the prepared filesystem is not mounted.  You would usually have to "
18902 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
18903 msgstr ""
18904
18905 #. type: textblock
18906 #: ../fish/guestfish.pod:1015
18907 msgid ""
18908 "If any I<-N> or I<--new> options are given, the guest is automatically "
18909 "launched."
18910 msgstr ""
18911
18912 #. type: textblock
18913 #: ../fish/guestfish.pod:1020
18914 msgid "Create a 100MB disk with an ext4-formatted partition:"
18915 msgstr ""
18916
18917 #. type: verbatim
18918 #: ../fish/guestfish.pod:1022
18919 #, no-wrap
18920 msgid ""
18921 " guestfish -N fs:ext4\n"
18922 "\n"
18923 msgstr ""
18924
18925 #. type: textblock
18926 #: ../fish/guestfish.pod:1024
18927 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
18928 msgstr ""
18929
18930 #. type: verbatim
18931 #: ../fish/guestfish.pod:1026
18932 #, no-wrap
18933 msgid ""
18934 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18935 "\n"
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/guestfish.pod:1028
18940 msgid "Create a blank 200MB disk:"
18941 msgstr ""
18942
18943 #. type: verbatim
18944 #: ../fish/guestfish.pod:1030
18945 #, no-wrap
18946 msgid ""
18947 " guestfish -N disk:200M\n"
18948 "\n"
18949 msgstr ""
18950
18951 #. type: =head1
18952 #: ../fish/guestfish.pod:1032
18953 msgid "PROGRESS BARS"
18954 msgstr ""
18955
18956 #. type: textblock
18957 #: ../fish/guestfish.pod:1034
18958 msgid ""
18959 "Some (not all) long-running commands send progress notification messages as "
18960 "they are running.  Guestfish turns these messages into progress bars."
18961 msgstr ""
18962
18963 #. type: textblock
18964 #: ../fish/guestfish.pod:1038
18965 msgid ""
18966 "When a command that supports progress bars takes longer than two seconds to "
18967 "run, and if progress bars are enabled, then you will see one appearing below "
18968 "the command:"
18969 msgstr ""
18970
18971 #. type: verbatim
18972 #: ../fish/guestfish.pod:1042
18973 #, no-wrap
18974 msgid ""
18975 " ><fs> copy-size /large-file /another-file 2048M\n"
18976 " / 10% [#####-----------------------------------------] 00:30\n"
18977 "\n"
18978 msgstr ""
18979
18980 #. type: textblock
18981 #: ../fish/guestfish.pod:1045
18982 msgid ""
18983 "The spinner on the left hand side moves round once for every progress "
18984 "notification received from the backend.  This is a (reasonably) golden "
18985 "assurance that the command is \"doing something\" even if the progress bar "
18986 "is not moving, because the command is able to send the progress "
18987 "notifications.  When the bar reaches 100% and the command finishes, the "
18988 "spinner disappears."
18989 msgstr ""
18990
18991 #. type: textblock
18992 #: ../fish/guestfish.pod:1052
18993 msgid ""
18994 "Progress bars are enabled by default when guestfish is used interactively.  "
18995 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18996 "and you can disable them completely using I<--no-progress-bars>."
18997 msgstr ""
18998
18999 #. type: =head1
19000 #: ../fish/guestfish.pod:1057
19001 msgid "GUESTFISH COMMANDS"
19002 msgstr ""
19003
19004 #. type: textblock
19005 #: ../fish/guestfish.pod:1059
19006 msgid ""
19007 "The commands in this section are guestfish convenience commands, in other "
19008 "words, they are not part of the L<guestfs(3)> API."
19009 msgstr ""
19010
19011 #. type: =head2
19012 #: ../fish/guestfish.pod:1062
19013 msgid "help"
19014 msgstr ""
19015
19016 #. type: verbatim
19017 #: ../fish/guestfish.pod:1064
19018 #, no-wrap
19019 msgid ""
19020 " help\n"
19021 " help cmd\n"
19022 "\n"
19023 msgstr ""
19024
19025 #. type: textblock
19026 #: ../fish/guestfish.pod:1067
19027 msgid "Without any parameter, this provides general help."
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fish/guestfish.pod:1069
19032 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19033 msgstr ""
19034
19035 #. type: =head2
19036 #: ../fish/guestfish.pod:1071
19037 msgid "quit | exit"
19038 msgstr ""
19039
19040 #. type: textblock
19041 #: ../fish/guestfish.pod:1073
19042 msgid "This exits guestfish.  You can also use C<^D> key."
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../fish/guestfish.pod:1075
19047 msgid "@FISH_COMMANDS@"
19048 msgstr ""
19049
19050 #. type: =head1
19051 #: ../fish/guestfish.pod:1077
19052 msgid "COMMANDS"
19053 msgstr ""
19054
19055 #. type: textblock
19056 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
19057 msgid "@ACTIONS@"
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:1083
19062 msgid ""
19063 "guestfish returns 0 if the commands completed without error, or 1 if there "
19064 "was an error."
19065 msgstr ""
19066
19067 #. type: =item
19068 #: ../fish/guestfish.pod:1090
19069 msgid "EDITOR"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:1092
19074 msgid ""
19075 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19076 "C<vi>."
19077 msgstr ""
19078
19079 #. type: =item
19080 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3122
19081 msgid "FEBOOTSTRAP_KERNEL"
19082 msgstr ""
19083
19084 #. type: =item
19085 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3124
19086 msgid "FEBOOTSTRAP_MODULES"
19087 msgstr ""
19088
19089 #. type: textblock
19090 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3126
19091 msgid ""
19092 "These two environment variables allow the kernel that libguestfs uses in the "
19093 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19094 "most recent host kernel is chosen.  For more information about kernel "
19095 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19096 "available in febootstrap E<ge> 3.8."
19097 msgstr ""
19098
19099 #. type: =item
19100 #: ../fish/guestfish.pod:1105
19101 msgid "GUESTFISH_DISPLAY_IMAGE"
19102 msgstr ""
19103
19104 #. type: textblock
19105 #: ../fish/guestfish.pod:1107
19106 msgid ""
19107 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19108 "If not set, it uses L<display(1)>."
19109 msgstr ""
19110
19111 #. type: =item
19112 #: ../fish/guestfish.pod:1110
19113 msgid "GUESTFISH_PID"
19114 msgstr ""
19115
19116 #. type: textblock
19117 #: ../fish/guestfish.pod:1112
19118 msgid ""
19119 "Used with the I<--remote> option to specify the remote guestfish process to "
19120 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19121 msgstr ""
19122
19123 #. type: =item
19124 #: ../fish/guestfish.pod:1116
19125 msgid "HEXEDITOR"
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:1118
19130 msgid ""
19131 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19132 "not specified, the external L<hexedit(1)> program is used."
19133 msgstr ""
19134
19135 #. type: =item
19136 #: ../fish/guestfish.pod:1122
19137 msgid "HOME"
19138 msgstr ""
19139
19140 #. type: textblock
19141 #: ../fish/guestfish.pod:1124
19142 msgid ""
19143 "If compiled with GNU readline support, various files in the home directory "
19144 "can be used.  See L</FILES>."
19145 msgstr ""
19146
19147 #. type: =item
19148 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3132
19149 msgid "LIBGUESTFS_APPEND"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3134
19154 msgid "Pass additional options to the guest kernel."
19155 msgstr ""
19156
19157 #. type: =item
19158 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3136
19159 msgid "LIBGUESTFS_DEBUG"
19160 msgstr ""
19161
19162 #. type: textblock
19163 #: ../fish/guestfish.pod:1133
19164 msgid ""
19165 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19166 "effect as using the B<-v> option."
19167 msgstr ""
19168
19169 #. type: =item
19170 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3141
19171 msgid "LIBGUESTFS_MEMSIZE"
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3143
19176 msgid ""
19177 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19178 msgstr ""
19179
19180 #. type: verbatim
19181 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3146
19182 #, no-wrap
19183 msgid ""
19184 " LIBGUESTFS_MEMSIZE=700\n"
19185 "\n"
19186 msgstr ""
19187
19188 #. type: =item
19189 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3148
19190 msgid "LIBGUESTFS_PATH"
19191 msgstr ""
19192
19193 #. type: textblock
19194 #: ../fish/guestfish.pod:1145
19195 msgid ""
19196 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19197 "the discussion of paths in L<guestfs(3)>."
19198 msgstr ""
19199
19200 #. type: =item
19201 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3153
19202 msgid "LIBGUESTFS_QEMU"
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3155
19207 msgid ""
19208 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19209 "which was found at compile time by the configure script is used."
19210 msgstr ""
19211
19212 #. type: =item
19213 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3161
19214 msgid "LIBGUESTFS_TRACE"
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../fish/guestfish.pod:1156
19219 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19220 msgstr ""
19221
19222 #. type: =item
19223 #: ../fish/guestfish.pod:1158
19224 msgid "PAGER"
19225 msgstr ""
19226
19227 #. type: textblock
19228 #: ../fish/guestfish.pod:1160
19229 msgid ""
19230 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19231 "C<more>."
19232 msgstr ""
19233
19234 #. type: =item
19235 #: ../fish/guestfish.pod:1163 ../sparsify/virt-sparsify.pod:236
19236 #: ../src/guestfs.pod:3166
19237 msgid "TMPDIR"
19238 msgstr ""
19239
19240 #. type: textblock
19241 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3168
19242 msgid ""
19243 "Location of temporary directory, defaults to C</tmp> except for the cached "
19244 "supermin appliance which defaults to C</var/tmp>."
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3171
19249 msgid ""
19250 "If libguestfs was compiled to use the supermin appliance then the real "
19251 "appliance is cached in this directory, shared between all handles belonging "
19252 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19253 "use in case C</var/tmp> is not large enough."
19254 msgstr ""
19255
19256 #. type: =head1
19257 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19258 #: ../rescue/virt-rescue.pod:273
19259 msgid "FILES"
19260 msgstr ""
19261
19262 #. type: =item
19263 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19264 #: ../rescue/virt-rescue.pod:277
19265 msgid "$HOME/.libguestfs-tools.rc"
19266 msgstr ""
19267
19268 #. type: =item
19269 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19270 #: ../rescue/virt-rescue.pod:279
19271 msgid "/etc/libguestfs-tools.conf"
19272 msgstr ""
19273
19274 #. type: textblock
19275 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19276 #: ../rescue/virt-rescue.pod:281
19277 msgid ""
19278 "This configuration file controls the default read-only or read-write mode "
19279 "(I<--ro> or I<--rw>)."
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../fish/guestfish.pod:1187
19284 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19285 msgstr ""
19286
19287 #. type: =item
19288 #: ../fish/guestfish.pod:1189
19289 msgid "$HOME/.guestfish"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish.pod:1191
19294 msgid ""
19295 "If compiled with GNU readline support, then the command history is saved in "
19296 "this file."
19297 msgstr ""
19298
19299 #. type: =item
19300 #: ../fish/guestfish.pod:1194
19301 msgid "$HOME/.inputrc"
19302 msgstr ""
19303
19304 #. type: =item
19305 #: ../fish/guestfish.pod:1196
19306 msgid "/etc/inputrc"
19307 msgstr ""
19308
19309 #. type: textblock
19310 #: ../fish/guestfish.pod:1198
19311 msgid ""
19312 "If compiled with GNU readline support, then these files can be used to "
19313 "configure readline.  For further information, please see L<readline(3)/"
19314 "INITIALIZATION FILE>."
19315 msgstr ""
19316
19317 #. type: textblock
19318 #: ../fish/guestfish.pod:1202
19319 msgid "To write rules which only apply to guestfish, use:"
19320 msgstr ""
19321
19322 #. type: verbatim
19323 #: ../fish/guestfish.pod:1204
19324 #, no-wrap
19325 msgid ""
19326 " $if guestfish\n"
19327 " ...\n"
19328 " $endif\n"
19329 "\n"
19330 msgstr ""
19331
19332 #. type: textblock
19333 #: ../fish/guestfish.pod:1208
19334 msgid ""
19335 "Variables that you can set in inputrc that change the behaviour of guestfish "
19336 "in useful ways include:"
19337 msgstr ""
19338
19339 #. type: =item
19340 #: ../fish/guestfish.pod:1213
19341 msgid "completion-ignore-case (default: on)"
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:1215
19346 msgid ""
19347 "By default, guestfish will ignore case when tab-completing paths on the "
19348 "disk.  Use:"
19349 msgstr ""
19350
19351 #. type: verbatim
19352 #: ../fish/guestfish.pod:1218
19353 #, no-wrap
19354 msgid ""
19355 " set completion-ignore-case off\n"
19356 "\n"
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:1220
19361 msgid "to make guestfish case sensitive."
19362 msgstr ""
19363
19364 #. type: =item
19365 #: ../fish/guestfish.pod:1224
19366 msgid "test1.img"
19367 msgstr ""
19368
19369 #. type: =item
19370 #: ../fish/guestfish.pod:1226
19371 msgid "test2.img (etc)"
19372 msgstr ""
19373
19374 #. type: textblock
19375 #: ../fish/guestfish.pod:1228
19376 msgid ""
19377 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19378 "will be created in the file C<test1.img> in the current directory.  The "
19379 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19380 "the same name will be overwritten."
19381 msgstr ""
19382
19383 #. type: textblock
19384 #: ../fish/guestfish.pod:1237
19385 msgid ""
19386 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
19387 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
19388 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
19389 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
19390 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-"
19391 "tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit"
19392 "(1)>, L<febootstrap-supermin-helper(8)>."
19393 msgstr ""
19394
19395 #. type: textblock
19396 #: ../fish/guestfish.pod:1268 ../src/guestfs.pod:3261
19397 #: ../test-tool/libguestfs-test-tool.pod:112
19398 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19399 msgstr ""
19400
19401 #. type: textblock
19402 #: ../fish/virt-copy-in.pod:5
19403 msgid ""
19404 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19405 msgstr ""
19406
19407 #. type: verbatim
19408 #: ../fish/virt-copy-in.pod:9
19409 #, no-wrap
19410 msgid ""
19411 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19412 "\n"
19413 msgstr ""
19414
19415 #. type: verbatim
19416 #: ../fish/virt-copy-in.pod:11
19417 #, no-wrap
19418 msgid ""
19419 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19420 "\n"
19421 msgstr ""
19422
19423 #. type: textblock
19424 #: ../fish/virt-copy-in.pod:15
19425 msgid ""
19426 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19427 "causing disk corruption.  The virtual machine must be shut down before you "
19428 "use this command."
19429 msgstr ""
19430
19431 #. type: textblock
19432 #: ../fish/virt-copy-in.pod:21
19433 msgid ""
19434 "C<virt-copy-in> copies files and directories from the local disk into a "
19435 "virtual machine disk image or named libvirt domain."
19436 msgstr ""
19437
19438 #. type: textblock
19439 #: ../fish/virt-copy-in.pod:24
19440 msgid ""
19441 "You can give one of more filenames and directories on the command line.  "
19442 "Directories are copied in recursively.  The final parameter must be the "
19443 "destination directory in the disk image which must be an absolute path "
19444 "starting with a C</> character."
19445 msgstr ""
19446
19447 #. type: verbatim
19448 #: ../fish/virt-copy-in.pod:33
19449 #, no-wrap
19450 msgid ""
19451 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19452 "\n"
19453 msgstr ""
19454
19455 #. type: textblock
19456 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19457 msgid "Upload a home directory to a guest:"
19458 msgstr ""
19459
19460 #. type: verbatim
19461 #: ../fish/virt-copy-in.pod:37
19462 #, no-wrap
19463 msgid ""
19464 " virt-copy-in -d MyGuest skel /home\n"
19465 "\n"
19466 msgstr ""
19467
19468 #. type: =head1
19469 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19470 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19471 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19472 msgstr ""
19473
19474 #. type: textblock
19475 #: ../fish/virt-copy-in.pod:41
19476 msgid ""
19477 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19478 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19479 "are probably better off using guestfish directly."
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19484 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19485 msgid ""
19486 "Since the shell script just passes options straight to guestfish, read "
19487 "L<guestfish(1)> to see the full list of options."
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../fish/virt-copy-in.pod:52
19492 msgid ""
19493 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19494 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19495 msgstr ""
19496
19497 #. type: textblock
19498 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19499 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19500 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/virt-copy-out.pod:5
19505 msgid ""
19506 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19507 "image."
19508 msgstr ""
19509
19510 #. type: verbatim
19511 #: ../fish/virt-copy-out.pod:9
19512 #, no-wrap
19513 msgid ""
19514 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19515 "\n"
19516 msgstr ""
19517
19518 #. type: verbatim
19519 #: ../fish/virt-copy-out.pod:11
19520 #, no-wrap
19521 msgid ""
19522 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19523 "\n"
19524 msgstr ""
19525
19526 #. type: textblock
19527 #: ../fish/virt-copy-out.pod:15
19528 msgid ""
19529 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19530 "image or named libvirt domain."
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/virt-copy-out.pod:18
19535 msgid ""
19536 "You can give one of more filenames and directories on the command line.  "
19537 "Directories are copied out recursively."
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/virt-copy-out.pod:23
19542 msgid "Download the home directories from a virtual machine:"
19543 msgstr ""
19544
19545 #. type: verbatim
19546 #: ../fish/virt-copy-out.pod:25
19547 #, no-wrap
19548 msgid ""
19549 " mkdir homes\n"
19550 " virt-copy-out -d MyGuest /home homes\n"
19551 "\n"
19552 msgstr ""
19553
19554 #. type: textblock
19555 #: ../fish/virt-copy-out.pod:30
19556 msgid ""
19557 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19558 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19559 "are probably better off using guestfish directly."
19560 msgstr ""
19561
19562 #. type: textblock
19563 #: ../fish/virt-copy-out.pod:41
19564 msgid ""
19565 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19566 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19567 msgstr ""
19568
19569 #. type: textblock
19570 #: ../fish/virt-tar-in.pod:5
19571 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19572 msgstr ""
19573
19574 #. type: verbatim
19575 #: ../fish/virt-tar-in.pod:9
19576 #, no-wrap
19577 msgid ""
19578 " virt-tar-in -a disk.img data.tar /destination\n"
19579 "\n"
19580 msgstr ""
19581
19582 #. type: verbatim
19583 #: ../fish/virt-tar-in.pod:11
19584 #, no-wrap
19585 msgid ""
19586 " virt-tar-in -d domain data.tar /destination\n"
19587 "\n"
19588 msgstr ""
19589
19590 #. type: verbatim
19591 #: ../fish/virt-tar-in.pod:13
19592 #, no-wrap
19593 msgid ""
19594 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19595 "\n"
19596 msgstr ""
19597
19598 #. type: textblock
19599 #: ../fish/virt-tar-in.pod:17
19600 msgid ""
19601 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19602 "causing disk corruption.  The virtual machine must be shut down before you "
19603 "use this command."
19604 msgstr ""
19605
19606 #. type: textblock
19607 #: ../fish/virt-tar-in.pod:23
19608 msgid ""
19609 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19610 "image or named libvirt domain."
19611 msgstr ""
19612
19613 #. type: textblock
19614 #: ../fish/virt-tar-in.pod:26
19615 msgid ""
19616 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19617 "standard input.  The second parameter is the absolute target directory to "
19618 "unpack into."
19619 msgstr ""
19620
19621 #. type: verbatim
19622 #: ../fish/virt-tar-in.pod:34
19623 #, no-wrap
19624 msgid ""
19625 " virt-tar-in -d MyGuest homes.tar /home\n"
19626 "\n"
19627 msgstr ""
19628
19629 #. type: textblock
19630 #: ../fish/virt-tar-in.pod:38
19631 msgid ""
19632 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19633 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19634 "probably better off using guestfish directly."
19635 msgstr ""
19636
19637 #. type: textblock
19638 #: ../fish/virt-tar-in.pod:49
19639 msgid ""
19640 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19641 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19642 "org/>."
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../fish/virt-tar-out.pod:5
19647 msgid ""
19648 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19649 msgstr ""
19650
19651 #. type: verbatim
19652 #: ../fish/virt-tar-out.pod:9
19653 #, no-wrap
19654 msgid ""
19655 " virt-tar-out -a disk.img /dir files.tar\n"
19656 "\n"
19657 msgstr ""
19658
19659 #. type: verbatim
19660 #: ../fish/virt-tar-out.pod:11
19661 #, no-wrap
19662 msgid ""
19663 " virt-tar-out -d domain /dir files.tar\n"
19664 "\n"
19665 msgstr ""
19666
19667 #. type: verbatim
19668 #: ../fish/virt-tar-out.pod:13
19669 #, no-wrap
19670 msgid ""
19671 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19672 "\n"
19673 msgstr ""
19674
19675 #. type: textblock
19676 #: ../fish/virt-tar-out.pod:17
19677 msgid ""
19678 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../fish/virt-tar-out.pod:20
19683 msgid ""
19684 "The first parameter is the absolute path of the virtual machine directory.  "
19685 "The second parameter is the tar file to write.  Use C<-> to write to "
19686 "standard output."
19687 msgstr ""
19688
19689 #. type: textblock
19690 #: ../fish/virt-tar-out.pod:26
19691 msgid "Download the home directories from a guest:"
19692 msgstr ""
19693
19694 #. type: verbatim
19695 #: ../fish/virt-tar-out.pod:28
19696 #, no-wrap
19697 msgid ""
19698 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19699 "\n"
19700 msgstr ""
19701
19702 #. type: textblock
19703 #: ../fish/virt-tar-out.pod:32
19704 msgid ""
19705 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19706 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19707 "are probably better off using guestfish directly."
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../fish/virt-tar-out.pod:43
19712 msgid ""
19713 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19714 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19715 msgstr ""
19716
19717 #. type: textblock
19718 #: ../fuse/guestmount.pod:5
19719 msgid ""
19720 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19721 msgstr ""
19722
19723 #. type: verbatim
19724 #: ../fuse/guestmount.pod:9
19725 #, no-wrap
19726 msgid ""
19727 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19728 "\n"
19729 msgstr ""
19730
19731 #. type: verbatim
19732 #: ../fuse/guestmount.pod:11
19733 #, no-wrap
19734 msgid ""
19735 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19736 "\n"
19737 msgstr ""
19738
19739 #. type: verbatim
19740 #: ../fuse/guestmount.pod:13
19741 #, no-wrap
19742 msgid ""
19743 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19744 "\n"
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../fuse/guestmount.pod:17
19749 msgid ""
19750 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19751 "machines.  If you do this, you risk disk corruption in the VM."
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fuse/guestmount.pod:22
19756 msgid ""
19757 "The guestmount program can be used to mount virtual machine filesystems and "
19758 "other disk images on the host.  It uses libguestfs for access to the guest "
19759 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19760 "a mountable device."
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fuse/guestmount.pod:27
19765 msgid ""
19766 "Along with other options, you have to give at least one device (I<-a> "
19767 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19768 "option) or use the I<-i> inspection option.  How this works is better "
19769 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19770 "below."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fuse/guestmount.pod:33
19775 msgid ""
19776 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19777 "by you, and the filesystem will not be visible to any other users unless you "
19778 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19779 "the filesystem, use the C<fusermount -u> command."
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../fuse/guestmount.pod:41
19784 msgid ""
19785 "For a typical Windows guest which has its main filesystem on the first "
19786 "partition:"
19787 msgstr ""
19788
19789 #. type: verbatim
19790 #: ../fuse/guestmount.pod:44
19791 #, no-wrap
19792 msgid ""
19793 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19794 "\n"
19795 msgstr ""
19796
19797 #. type: textblock
19798 #: ../fuse/guestmount.pod:46
19799 msgid ""
19800 "For a typical Linux guest which has a /boot filesystem on the first "
19801 "partition, and the root filesystem on a logical volume:"
19802 msgstr ""
19803
19804 #. type: verbatim
19805 #: ../fuse/guestmount.pod:49
19806 #, no-wrap
19807 msgid ""
19808 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
19809 "\n"
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fuse/guestmount.pod:51
19814 msgid "To get libguestfs to detect guest mountpoints for you:"
19815 msgstr ""
19816
19817 #. type: verbatim
19818 #: ../fuse/guestmount.pod:53
19819 #, no-wrap
19820 msgid ""
19821 " guestmount -a guest.img -i --ro /mnt\n"
19822 "\n"
19823 msgstr ""
19824
19825 #. type: textblock
19826 #: ../fuse/guestmount.pod:55
19827 msgid "For a libvirt guest called \"Guest\" you could do:"
19828 msgstr ""
19829
19830 #. type: verbatim
19831 #: ../fuse/guestmount.pod:57
19832 #, no-wrap
19833 msgid ""
19834 " guestmount -d Guest -i --ro /mnt\n"
19835 "\n"
19836 msgstr ""
19837
19838 #. type: textblock
19839 #: ../fuse/guestmount.pod:59
19840 msgid ""
19841 "If you don't know what filesystems are contained in a guest or disk image, "
19842 "use L<virt-filesystems(1)> first:"
19843 msgstr ""
19844
19845 #. type: verbatim
19846 #: ../fuse/guestmount.pod:62
19847 #, no-wrap
19848 msgid ""
19849 " virt-filesystems MyGuest\n"
19850 "\n"
19851 msgstr ""
19852
19853 #. type: textblock
19854 #: ../fuse/guestmount.pod:64
19855 msgid ""
19856 "If you want to trace the libguestfs calls but without excessive debugging "
19857 "information, we recommend:"
19858 msgstr ""
19859
19860 #. type: verbatim
19861 #: ../fuse/guestmount.pod:67
19862 #, no-wrap
19863 msgid ""
19864 " guestmount [...] --trace /mnt\n"
19865 "\n"
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../fuse/guestmount.pod:69
19870 msgid "If you want to debug the program, we recommend:"
19871 msgstr ""
19872
19873 #. type: verbatim
19874 #: ../fuse/guestmount.pod:71
19875 #, no-wrap
19876 msgid ""
19877 " guestmount [...] --trace --verbose /mnt\n"
19878 "\n"
19879 msgstr ""
19880
19881 #. type: =head1
19882 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
19883 #: ../resize/virt-resize.pod:544
19884 msgid "NOTES"
19885 msgstr ""
19886
19887 #. type: =head2
19888 #: ../fuse/guestmount.pod:75
19889 msgid "Other users cannot see the filesystem by default"
19890 msgstr ""
19891
19892 #. type: textblock
19893 #: ../fuse/guestmount.pod:77
19894 msgid ""
19895 "If you mount a filesystem as one user (eg. root), then other users will not "
19896 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
19897 "option when mounting:"
19898 msgstr ""
19899
19900 #. type: verbatim
19901 #: ../fuse/guestmount.pod:81
19902 #, no-wrap
19903 msgid ""
19904 " sudo guestmount [...] -o allow_other /mnt\n"
19905 "\n"
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fuse/guestmount.pod:91
19910 msgid "Add a block device or virtual machine image."
19911 msgstr ""
19912
19913 #. type: =item
19914 #: ../fuse/guestmount.pod:114
19915 msgid "B<--dir-cache-timeout N>"
19916 msgstr ""
19917
19918 #. type: textblock
19919 #: ../fuse/guestmount.pod:116
19920 msgid ""
19921 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
19922 "seconds.  The readdir cache [actually, there are several semi-independent "
19923 "caches] is populated after a readdir(2) call with the stat and extended "
19924 "attributes of the files in the directory, in anticipation that they will be "
19925 "requested soon after."
19926 msgstr ""
19927
19928 #. type: textblock
19929 #: ../fuse/guestmount.pod:122
19930 msgid ""
19931 "There is also a different attribute cache implemented by FUSE (see the FUSE "
19932 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
19933 "requests, only cache existing ones."
19934 msgstr ""
19935
19936 #. type: textblock
19937 #: ../fuse/guestmount.pod:142
19938 msgid ""
19939 "If you have untrusted raw-format guest disk images, you should use this "
19940 "option to specify the disk format.  This avoids a possible security problem "
19941 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
19942 "guestfs_add_drive_opts>."
19943 msgstr ""
19944
19945 #. type: =item
19946 #: ../fuse/guestmount.pod:147
19947 msgid "B<--fuse-help>"
19948 msgstr ""
19949
19950 #. type: textblock
19951 #: ../fuse/guestmount.pod:149
19952 msgid "Display help on special FUSE options (see I<-o> below)."
19953 msgstr ""
19954
19955 #. type: textblock
19956 #: ../fuse/guestmount.pod:153
19957 msgid "Display brief help and exit."
19958 msgstr ""
19959
19960 #. type: textblock
19961 #: ../fuse/guestmount.pod:177
19962 msgid ""
19963 "Mount the named partition or logical volume on the given mountpoint B<in the "
19964 "guest> (this has nothing to do with mountpoints in the host)."
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fuse/guestmount.pod:180
19969 msgid ""
19970 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19971 "something on C</>."
19972 msgstr ""
19973
19974 #. type: textblock
19975 #: ../fuse/guestmount.pod:197
19976 msgid ""
19977 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19978 "unmounted.  If you specify this option, then we don't attempt to sync the "
19979 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19980 msgstr ""
19981
19982 #. type: =item
19983 #: ../fuse/guestmount.pod:202
19984 msgid "B<-o option>"
19985 msgstr ""
19986
19987 #. type: =item
19988 #: ../fuse/guestmount.pod:204
19989 msgid "B<--option option>"
19990 msgstr ""
19991
19992 #. type: textblock
19993 #: ../fuse/guestmount.pod:206
19994 msgid "Pass extra options to FUSE."
19995 msgstr ""
19996
19997 #. type: textblock
19998 #: ../fuse/guestmount.pod:208
19999 msgid ""
20000 "To get a list of all the extra options supported by FUSE, use the command "
20001 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20002 "of them are a good idea."
20003 msgstr ""
20004
20005 #. type: verbatim
20006 #: ../fuse/guestmount.pod:212
20007 #, no-wrap
20008 msgid ""
20009 " guestmount --fuse-help\n"
20010 "\n"
20011 msgstr ""
20012
20013 #. type: textblock
20014 #: ../fuse/guestmount.pod:214
20015 msgid "Some potentially useful FUSE options:"
20016 msgstr ""
20017
20018 #. type: =item
20019 #: ../fuse/guestmount.pod:218
20020 msgid "B<-o allow_other>"
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../fuse/guestmount.pod:220
20025 msgid "Allow other users to see the filesystem."
20026 msgstr ""
20027
20028 #. type: =item
20029 #: ../fuse/guestmount.pod:222
20030 msgid "B<-o attr_timeout=N>"
20031 msgstr ""
20032
20033 #. type: textblock
20034 #: ../fuse/guestmount.pod:224
20035 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20036 msgstr ""
20037
20038 #. type: =item
20039 #: ../fuse/guestmount.pod:226
20040 msgid "B<-o kernel_cache>"
20041 msgstr ""
20042
20043 #. type: textblock
20044 #: ../fuse/guestmount.pod:228
20045 msgid ""
20046 "Allow the kernel to cache files (reduces the number of reads that have to go "
20047 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20048 "afford the extra memory usage."
20049 msgstr ""
20050
20051 #. type: =item
20052 #: ../fuse/guestmount.pod:232
20053 msgid "B<-o uid=N> B<-o gid=N>"
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fuse/guestmount.pod:234
20058 msgid ""
20059 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20060 "the chosen values."
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../fuse/guestmount.pod:243
20065 msgid ""
20066 "Add devices and mount everything read-only.  Also disallow writes and make "
20067 "the disk appear read-only to FUSE."
20068 msgstr ""
20069
20070 #. type: textblock
20071 #: ../fuse/guestmount.pod:246
20072 msgid ""
20073 "This is highly recommended if you are not going to edit the guest disk.  If "
20074 "the guest is running and this option is I<not> supplied, then there is a "
20075 "strong risk of disk corruption in the guest.  We try to prevent this from "
20076 "happening, but it is not always possible."
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20081 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fuse/guestmount.pod:255
20086 msgid "Enable SELinux support for the guest."
20087 msgstr ""
20088
20089 #. type: textblock
20090 #: ../fuse/guestmount.pod:261
20091 msgid "Enable verbose messages from underlying libguestfs."
20092 msgstr ""
20093
20094 #. type: textblock
20095 #: ../fuse/guestmount.pod:267
20096 msgid "Display the program version and exit."
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20101 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20102 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20103 msgstr ""
20104
20105 #. type: =item
20106 #: ../fuse/guestmount.pod:280
20107 msgid "B<--trace>"
20108 msgstr ""
20109
20110 #. type: textblock
20111 #: ../fuse/guestmount.pod:282
20112 msgid "Trace libguestfs calls and entry into each FUSE function."
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fuse/guestmount.pod:284
20117 msgid "This also stops the daemon from forking into the background."
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../fuse/guestmount.pod:310
20122 msgid ""
20123 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20124 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20125 "net/>."
20126 msgstr ""
20127
20128 #. type: textblock
20129 #: ../fuse/guestmount.pod:325
20130 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../inspector/virt-inspector.pod:5
20135 msgid ""
20136 "virt-inspector - Display operating system version and other information "
20137 "about a virtual machine"
20138 msgstr ""
20139
20140 #. type: verbatim
20141 #: ../inspector/virt-inspector.pod:9
20142 #, no-wrap
20143 msgid ""
20144 " virt-inspector [--options] -d domname\n"
20145 "\n"
20146 msgstr ""
20147
20148 #. type: verbatim
20149 #: ../inspector/virt-inspector.pod:11
20150 #, no-wrap
20151 msgid ""
20152 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20153 "\n"
20154 msgstr ""
20155
20156 #. type: verbatim
20157 #: ../inspector/virt-inspector.pod:15
20158 #, no-wrap
20159 msgid ""
20160 " virt-inspector domname\n"
20161 "\n"
20162 msgstr ""
20163
20164 #. type: verbatim
20165 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20166 #, no-wrap
20167 msgid ""
20168 " virt-inspector disk.img [disk.img ...]\n"
20169 "\n"
20170 msgstr ""
20171
20172 #. type: textblock
20173 #: ../inspector/virt-inspector.pod:21
20174 msgid ""
20175 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20176 "determine the version of the operating system and other information about "
20177 "the virtual machine."
20178 msgstr ""
20179
20180 #. type: textblock
20181 #: ../inspector/virt-inspector.pod:25
20182 msgid "Virt-inspector produces XML output for feeding into other programs."
20183 msgstr ""
20184
20185 #. type: textblock
20186 #: ../inspector/virt-inspector.pod:27
20187 msgid ""
20188 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20189 "the libvirt domain (see: C<virsh list --all>)."
20190 msgstr ""
20191
20192 #. type: textblock
20193 #: ../inspector/virt-inspector.pod:30
20194 msgid ""
20195 "You can also run virt-inspector directly on disk images from a single "
20196 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20197 "has several block devices, in which case you should list several I<-a> "
20198 "options one after another, with the first corresponding to the guest's C</"
20199 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20200 msgstr ""
20201
20202 #. type: textblock
20203 #: ../inspector/virt-inspector.pod:37
20204 msgid ""
20205 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20206 "keys and similar."
20207 msgstr ""
20208
20209 #. type: textblock
20210 #: ../inspector/virt-inspector.pod:40
20211 msgid ""
20212 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20213 "inspect several virtual machines, you have to run virt-inspector several "
20214 "times (for example, from a shell script for-loop)."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../inspector/virt-inspector.pod:45
20219 msgid ""
20220 "Because virt-inspector needs direct access to guest images, it won't "
20221 "normally work over remote libvirt connections."
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../inspector/virt-inspector.pod:48
20226 msgid ""
20227 "All of the information available from virt-inspector is also available "
20228 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20229 "The same information can also be fetched using guestfish or via libguestfs "
20230 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20231 "WITH OTHER PROGRAMMING LANGUAGES>)."
20232 msgstr ""
20233
20234 #. type: textblock
20235 #: ../inspector/virt-inspector.pod:81
20236 msgid ""
20237 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20238 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20239 "at all."
20240 msgstr ""
20241
20242 #. type: textblock
20243 #: ../inspector/virt-inspector.pod:94
20244 msgid ""
20245 "When prompting for keys and passphrases, virt-inspector normally turns "
20246 "echoing off so you cannot see what you are typing.  If you are not worried "
20247 "about Tempest attacks and there is no one else in the room you can specify "
20248 "this flag to see what you are typing."
20249 msgstr ""
20250
20251 #. type: textblock
20252 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20253 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20254 #: ../tools/virt-win-reg.pl:144
20255 msgid ""
20256 "Specify the format of disk images given on the command line.  If this is "
20257 "omitted then the format is autodetected from the content of the disk image."
20258 msgstr ""
20259
20260 #. type: textblock
20261 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20262 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20263 #: ../tools/virt-win-reg.pl:148
20264 msgid ""
20265 "If disk images are requested from libvirt, then this program asks libvirt "
20266 "for this information.  In this case, the value of the format parameter is "
20267 "ignored."
20268 msgstr ""
20269
20270 #. type: textblock
20271 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20272 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
20273 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
20274 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
20275 msgid ""
20276 "If working with untrusted raw-format guest disk images, you should ensure "
20277 "the format is always specified."
20278 msgstr ""
20279
20280 #. type: textblock
20281 #: ../inspector/virt-inspector.pod:139
20282 msgid "Previous versions of virt-inspector allowed you to write either:"
20283 msgstr ""
20284
20285 #. type: verbatim
20286 #: ../inspector/virt-inspector.pod:145
20287 #, no-wrap
20288 msgid ""
20289 " virt-inspector guestname\n"
20290 "\n"
20291 msgstr ""
20292
20293 #. type: =head1
20294 #: ../inspector/virt-inspector.pod:153
20295 msgid "XML FORMAT"
20296 msgstr ""
20297
20298 #. type: textblock
20299 #: ../inspector/virt-inspector.pod:155
20300 msgid ""
20301 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20302 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20303 "just an overview."
20304 msgstr ""
20305
20306 #. type: textblock
20307 #: ../inspector/virt-inspector.pod:159
20308 msgid ""
20309 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20310 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20311 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20312 "which is vanishingly rare in real world VMs."
20313 msgstr ""
20314
20315 #. type: =head2
20316 #: ../inspector/virt-inspector.pod:164
20317 msgid "E<lt>operatingsystemE<gt>"
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../inspector/virt-inspector.pod:166
20322 msgid ""
20323 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20324 "describe the operating system, its architecture, the descriptive \"product "
20325 "name\" string, the type of OS and so on, as in this example:"
20326 msgstr ""
20327
20328 #. type: verbatim
20329 #: ../inspector/virt-inspector.pod:170
20330 #, no-wrap
20331 msgid ""
20332 " <operatingsystems>\n"
20333 "   <operatingsystem>\n"
20334 "     <root>/dev/sda2</root>\n"
20335 "     <name>windows</name>\n"
20336 "     <arch>i386</arch>\n"
20337 "     <distro>windows</distro>\n"
20338 "     <product_name>Windows 7 Enterprise</product_name>\n"
20339 "     <product_variant>Client</product_variant>\n"
20340 "     <major_version>6</major_version>\n"
20341 "     <minor_version>1</minor_version>\n"
20342 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20343 "     <format>installed</format>\n"
20344 "\n"
20345 msgstr ""
20346
20347 #. type: textblock
20348 #: ../inspector/virt-inspector.pod:183
20349 msgid ""
20350 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20351 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20352 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20353 "architecture.  The other fields are fairly self-explanatory, but because "
20354 "these fields are taken directly from the libguestfs inspection API you can "
20355 "find precise information from L<guestfs(3)/INSPECTION>."
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../inspector/virt-inspector.pod:191
20360 msgid ""
20361 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20362 "of view of libguestfs (block devices may have completely different names "
20363 "inside the VM itself)."
20364 msgstr ""
20365
20366 #. type: =head2
20367 #: ../inspector/virt-inspector.pod:195
20368 msgid "E<lt>mountpointsE<gt>"
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../inspector/virt-inspector.pod:197
20373 msgid ""
20374 "Un*x-like guests typically have multiple filesystems which are mounted at "
20375 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20376 "element which looks like this:"
20377 msgstr ""
20378
20379 #. type: verbatim
20380 #: ../inspector/virt-inspector.pod:201
20381 #, no-wrap
20382 msgid ""
20383 " <operatingsystems>\n"
20384 "   <operatingsystem>\n"
20385 "     ...\n"
20386 "     <mountpoints>\n"
20387 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20388 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20389 "     </mountpoints>\n"
20390 "\n"
20391 msgstr ""
20392
20393 #. type: textblock
20394 #: ../inspector/virt-inspector.pod:209
20395 msgid ""
20396 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20397 "and may have completely different names inside the guest.  Only mountable "
20398 "filesystems appear in this list, not things like swap devices."
20399 msgstr ""
20400
20401 #. type: =head2
20402 #: ../inspector/virt-inspector.pod:214
20403 msgid "E<lt>filesystemsE<gt>"
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../inspector/virt-inspector.pod:216
20408 msgid ""
20409 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20410 "filesystems belonging to the guest, including swap and empty partitions.  "
20411 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20412 "this OS or shared with this OS and other OSes)."
20413 msgstr ""
20414
20415 #. type: textblock
20416 #: ../inspector/virt-inspector.pod:222
20417 msgid "You might see something like this:"
20418 msgstr ""
20419
20420 #. type: verbatim
20421 #: ../inspector/virt-inspector.pod:224
20422 #, no-wrap
20423 msgid ""
20424 " <operatingsystems>\n"
20425 "   <operatingsystem>\n"
20426 "     ...\n"
20427 "     <filesystems>\n"
20428 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20429 "         <type>ext4</type>\n"
20430 "         <label>Fedora-13-x86_64</label>\n"
20431 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20432 "       </filesystem>\n"
20433 "\n"
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../inspector/virt-inspector.pod:234
20438 msgid ""
20439 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20440 "the label, and the UUID."
20441 msgstr ""
20442
20443 #. type: =head2
20444 #: ../inspector/virt-inspector.pod:237
20445 msgid "E<lt>applicationsE<gt>"
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../inspector/virt-inspector.pod:239
20450 msgid ""
20451 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20452 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20453 "machine."
20454 msgstr ""
20455
20456 #. type: textblock
20457 #: ../inspector/virt-inspector.pod:243
20458 msgid ""
20459 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20460 "Typical values would be C<rpm> and C<deb>."
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../inspector/virt-inspector.pod:246
20465 msgid ""
20466 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20467 "Typical values include C<yum>, C<up2date> and C<apt>"
20468 msgstr ""
20469
20470 #. type: textblock
20471 #: ../inspector/virt-inspector.pod:249
20472 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20473 msgstr ""
20474
20475 #. type: verbatim
20476 #: ../inspector/virt-inspector.pod:252
20477 #, no-wrap
20478 msgid ""
20479 " <operatingsystems>\n"
20480 "   <operatingsystem>\n"
20481 "     ...\n"
20482 "     <applications>\n"
20483 "       <application>\n"
20484 "         <name>coreutils</name>\n"
20485 "         <version>8.5</version>\n"
20486 "         <release>1</release>\n"
20487 "       </application>\n"
20488 "\n"
20489 msgstr ""
20490
20491 #. type: textblock
20492 #: ../inspector/virt-inspector.pod:262
20493 msgid ""
20494 "The version and release fields may not be available for some types guests.  "
20495 "Other fields are possible, see L<guestfs(3)/"
20496 "guestfs_inspect_list_applications>."
20497 msgstr ""
20498
20499 #. type: =head2
20500 #: ../inspector/virt-inspector.pod:266
20501 msgid "E<lt>drive_mappingsE<gt>"
20502 msgstr ""
20503
20504 #. type: textblock
20505 #: ../inspector/virt-inspector.pod:268
20506 msgid ""
20507 "For operating systems like Windows which use drive letters, virt-inspector "
20508 "is able to find out how drive letters map to filesystems."
20509 msgstr ""
20510
20511 #. type: verbatim
20512 #: ../inspector/virt-inspector.pod:272
20513 #, no-wrap
20514 msgid ""
20515 " <operatingsystems>\n"
20516 "   <operatingsystem>\n"
20517 "     ...\n"
20518 "     <drive_mappings>\n"
20519 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20520 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20521 "     </drive_mappings>\n"
20522 "\n"
20523 msgstr ""
20524
20525 #. type: textblock
20526 #: ../inspector/virt-inspector.pod:280
20527 msgid ""
20528 "In the example above, drive C maps to the filesystem on the second partition "
20529 "on the first disk, and drive E maps to the filesystem on the first partition "
20530 "on the second disk."
20531 msgstr ""
20532
20533 #. type: textblock
20534 #: ../inspector/virt-inspector.pod:284
20535 msgid ""
20536 "Note that this only covers permanent local filesystem mappings, not things "
20537 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20538 "here."
20539 msgstr ""
20540
20541 #. type: =head2
20542 #: ../inspector/virt-inspector.pod:288
20543 msgid "E<lt>iconE<gt>"
20544 msgstr ""
20545
20546 #. type: textblock
20547 #: ../inspector/virt-inspector.pod:290
20548 msgid ""
20549 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20550 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20551 "very large and high quality."
20552 msgstr ""
20553
20554 #. type: verbatim
20555 #: ../inspector/virt-inspector.pod:294
20556 #, no-wrap
20557 msgid ""
20558 " <operatingsystems>\n"
20559 "   <operatingsystem>\n"
20560 "     ...\n"
20561 "     <icon>\n"
20562 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20563 "       [... many lines of base64 data ...]\n"
20564 "     </icon>\n"
20565 "\n"
20566 msgstr ""
20567
20568 #. type: textblock
20569 #: ../inspector/virt-inspector.pod:302
20570 msgid ""
20571 "To display the icon, you have to extract it and convert the base64 data back "
20572 "to a binary file.  Use an XPath query or simply an editor to extract the "
20573 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20574 "to a PNG file:"
20575 msgstr ""
20576
20577 #. type: verbatim
20578 #: ../inspector/virt-inspector.pod:307
20579 #, no-wrap
20580 msgid ""
20581 " base64 -i -d < icon.data > icon.png\n"
20582 "\n"
20583 msgstr ""
20584
20585 #. type: =head2
20586 #: ../inspector/virt-inspector.pod:309
20587 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20588 msgstr ""
20589
20590 #. type: textblock
20591 #: ../inspector/virt-inspector.pod:311
20592 msgid ""
20593 "Virt-inspector can detect some operating system installers on install disks, "
20594 "live CDs, bootable USB keys and more."
20595 msgstr ""
20596
20597 #. type: textblock
20598 #: ../inspector/virt-inspector.pod:314
20599 msgid ""
20600 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20601 "fields may be present to indicate a live CD, network installer, or one part "
20602 "of a multipart CD.  For example:"
20603 msgstr ""
20604
20605 #. type: verbatim
20606 #: ../inspector/virt-inspector.pod:318
20607 #, no-wrap
20608 msgid ""
20609 " <operatingsystems>\n"
20610 "   <operatingsystem>\n"
20611 "     <root>/dev/sda</root>\n"
20612 "     <name>linux</name>\n"
20613 "     <arch>i386</arch>\n"
20614 "     <distro>ubuntu</distro>\n"
20615 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20616 "     <major_version>10</major_version>\n"
20617 "     <minor_version>10</minor_version>\n"
20618 "     <format>installer</format>\n"
20619 "     <live/>\n"
20620 "\n"
20621 msgstr ""
20622
20623 #. type: =head1
20624 #: ../inspector/virt-inspector.pod:330
20625 msgid "USING XPATH"
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../inspector/virt-inspector.pod:332
20630 msgid ""
20631 "You can use the XPath query language to select parts of the XML.  We "
20632 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
20633 msgstr ""
20634
20635 #. type: verbatim
20636 #: ../inspector/virt-inspector.pod:338
20637 #, no-wrap
20638 msgid ""
20639 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20640 " <filesystems>\n"
20641 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20642 "        <type>ext4</type>\n"
20643 " [...]\n"
20644 "\n"
20645 msgstr ""
20646
20647 #. type: verbatim
20648 #: ../inspector/virt-inspector.pod:344
20649 #, no-wrap
20650 msgid ""
20651 " $ virt-inspector -d Guest | \\\n"
20652 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20653 " ext4\n"
20654 "\n"
20655 msgstr ""
20656
20657 #. type: verbatim
20658 #: ../inspector/virt-inspector.pod:348
20659 #, no-wrap
20660 msgid ""
20661 " $ virt-inspector -d Guest | \\\n"
20662 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20663 " [displays the guest icon, if there is one]\n"
20664 "\n"
20665 msgstr ""
20666
20667 #. type: =head1
20668 #: ../inspector/virt-inspector.pod:359
20669 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../inspector/virt-inspector.pod:361
20674 msgid ""
20675 "Early versions of libguestfs shipped with a different virt-inspector program "
20676 "written in Perl (the current version is written in C).  The XML output of "
20677 "the Perl virt-inspector was different and it could also output in other "
20678 "formats like text."
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../inspector/virt-inspector.pod:366
20683 msgid ""
20684 "The old virt-inspector is no longer supported or shipped with libguestfs."
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../inspector/virt-inspector.pod:369
20689 msgid ""
20690 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20691 "versions of virt-inspector with different names:"
20692 msgstr ""
20693
20694 #. type: verbatim
20695 #: ../inspector/virt-inspector.pod:372
20696 #, no-wrap
20697 msgid ""
20698 " virt-inspector     Old Perl version.\n"
20699 " virt-inspector2    New C version.\n"
20700 "\n"
20701 msgstr ""
20702
20703 #. type: textblock
20704 #: ../inspector/virt-inspector.pod:382
20705 msgid ""
20706 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20707 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20708 msgstr ""
20709
20710 #. type: textblock
20711 #: ../inspector/virt-inspector.pod:399
20712 msgid "Matthew Booth L<mbooth@redhat.com>"
20713 msgstr ""
20714
20715 #. type: textblock
20716 #: ../java/examples/guestfs-java.pod:5
20717 msgid "guestfs-java - How to use libguestfs from Java"
20718 msgstr ""
20719
20720 #. type: verbatim
20721 #: ../java/examples/guestfs-java.pod:9
20722 #, no-wrap
20723 msgid ""
20724 " import com.redhat.et.libguestfs.*;\n"
20725 " \n"
20726 msgstr ""
20727
20728 #. type: verbatim
20729 #: ../java/examples/guestfs-java.pod:11
20730 #, no-wrap
20731 msgid ""
20732 " GuestFS g = new GuestFS ();\n"
20733 " g.add_drive_opts (\"disk.img\", null);\n"
20734 " g.launch ();\n"
20735 "\n"
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../java/examples/guestfs-java.pod:17
20740 msgid ""
20741 "This manual page documents how to call libguestfs from the Java programming "
20742 "language.  This page just documents the differences from the C API and gives "
20743 "some examples.  If you are not familiar with using libguestfs, you also need "
20744 "to read L<guestfs(3)>."
20745 msgstr ""
20746
20747 #. type: =head2
20748 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20749 msgid "CLOSING THE HANDLE"
20750 msgstr ""
20751
20752 #. type: textblock
20753 #: ../java/examples/guestfs-java.pod:24
20754 msgid ""
20755 "The handle is closed when it is reaped by the garbage collector.  Because "
20756 "libguestfs handles include a lot of state, it is also possible to close (and "
20757 "hence free) them explicitly by calling the C<close> method."
20758 msgstr ""
20759
20760 #. type: =head2
20761 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
20762 #: ../python/examples/guestfs-python.pod:21
20763 #: ../ruby/examples/guestfs-ruby.pod:22
20764 msgid "EXCEPTIONS"
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../java/examples/guestfs-java.pod:31
20769 msgid ""
20770 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20771 "exception.  This has a single parameter which is the error message (a "
20772 "C<String>)."
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../java/examples/guestfs-java.pod:35
20777 msgid "Calling any method on a closed handle raises the same exception."
20778 msgstr ""
20779
20780 #. type: textblock
20781 #: ../java/examples/guestfs-java.pod:47
20782 msgid ""
20783 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
20784 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20785 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../ocaml/examples/guestfs-ocaml.pod:5
20790 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../ocaml/examples/guestfs-ocaml.pod:9
20795 msgid "Module style:"
20796 msgstr ""
20797
20798 #. type: verbatim
20799 #: ../ocaml/examples/guestfs-ocaml.pod:11
20800 #, no-wrap
20801 msgid ""
20802 " let g = Guestfs.create () in\n"
20803 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20804 " Guestfs.launch g;\n"
20805 "\n"
20806 msgstr ""
20807
20808 #. type: textblock
20809 #: ../ocaml/examples/guestfs-ocaml.pod:15
20810 msgid "Object-oriented style:"
20811 msgstr ""
20812
20813 #. type: verbatim
20814 #: ../ocaml/examples/guestfs-ocaml.pod:17
20815 #, no-wrap
20816 msgid ""
20817 " let g = new Guestfs.guestfs () in\n"
20818 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20819 " g#launch ();\n"
20820 "\n"
20821 msgstr ""
20822
20823 #. type: verbatim
20824 #: ../ocaml/examples/guestfs-ocaml.pod:21
20825 #, no-wrap
20826 msgid ""
20827 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
20828 "or:\n"
20829 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
20830 "\n"
20831 msgstr ""
20832
20833 #. type: textblock
20834 #: ../ocaml/examples/guestfs-ocaml.pod:27
20835 msgid ""
20836 "This manual page documents how to call libguestfs from the OCaml programming "
20837 "language.  This page just documents the differences from the C API and gives "
20838 "some examples.  If you are not familiar with using libguestfs, you also need "
20839 "to read L<guestfs(3)>."
20840 msgstr ""
20841
20842 #. type: =head2
20843 #: ../ocaml/examples/guestfs-ocaml.pod:32
20844 msgid "PROGRAMMING STYLES"
20845 msgstr ""
20846
20847 #. type: textblock
20848 #: ../ocaml/examples/guestfs-ocaml.pod:34
20849 msgid ""
20850 "There are two different programming styles supported by the OCaml bindings.  "
20851 "You can use a module style, with each C function mapped to an OCaml function:"
20852 msgstr ""
20853
20854 #. type: verbatim
20855 #: ../ocaml/examples/guestfs-ocaml.pod:38
20856 #, no-wrap
20857 msgid ""
20858 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
20859 "\n"
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../ocaml/examples/guestfs-ocaml.pod:40
20864 msgid "becomes:"
20865 msgstr ""
20866
20867 #. type: verbatim
20868 #: ../ocaml/examples/guestfs-ocaml.pod:42
20869 #, no-wrap
20870 msgid ""
20871 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
20872 "\n"
20873 msgstr ""
20874
20875 #. type: textblock
20876 #: ../ocaml/examples/guestfs-ocaml.pod:44
20877 msgid ""
20878 "Alternately you can use an object-oriented style, calling methods on the "
20879 "class C<Guestfs.guestfs>:"
20880 msgstr ""
20881
20882 #. type: verbatim
20883 #: ../ocaml/examples/guestfs-ocaml.pod:47
20884 #, no-wrap
20885 msgid ""
20886 " method set_verbose : bool -> unit\n"
20887 "\n"
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../ocaml/examples/guestfs-ocaml.pod:49
20892 msgid ""
20893 "The object-oriented style is usually briefer, and the minor performance "
20894 "penalty isn't noticable in the general overhead of performing libguestfs "
20895 "functions."
20896 msgstr ""
20897
20898 #. type: textblock
20899 #: ../ocaml/examples/guestfs-ocaml.pod:55
20900 msgid ""
20901 "The handle is closed when it is reaped by the garbage collector.  Because "
20902 "libguestfs handles include a lot of state, it is also possible to close (and "
20903 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
20904 "method."
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../ocaml/examples/guestfs-ocaml.pod:62
20909 msgid ""
20910 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
20911 "exception.  This has a single parameter which is the error message (a "
20912 "string)."
20913 msgstr ""
20914
20915 #. type: textblock
20916 #: ../ocaml/examples/guestfs-ocaml.pod:66
20917 msgid ""
20918 "Calling any function/method on a closed handle raises C<Guestfs."
20919 "Handle_closed>.  The single parameter is the name of the function that you "
20920 "called."
20921 msgstr ""
20922
20923 #. type: textblock
20924 #: ../ocaml/examples/guestfs-ocaml.pod:80
20925 msgid ""
20926 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
20927 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
20928 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../perl/examples/guestfs-perl.pod:5
20933 msgid "guestfs-perl - How to use libguestfs from Perl"
20934 msgstr ""
20935
20936 #. type: verbatim
20937 #: ../perl/examples/guestfs-perl.pod:9
20938 #, no-wrap
20939 msgid ""
20940 " use Sys::Guestfs;\n"
20941 " \n"
20942 msgstr ""
20943
20944 #. type: verbatim
20945 #: ../perl/examples/guestfs-perl.pod:11
20946 #, no-wrap
20947 msgid ""
20948 " my $h = Sys::Guestfs->new ();\n"
20949 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
20950 " $h->launch ();\n"
20951 " $h->mount_options ('', '/dev/sda1', '/');\n"
20952 " $h->touch ('/hello');\n"
20953 " $h->sync ();\n"
20954 "\n"
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../perl/examples/guestfs-perl.pod:20
20959 msgid ""
20960 "This manual page documents how to call libguestfs from the Perl programming "
20961 "language.  This page just documents the differences from the C API and gives "
20962 "some examples.  If you are not familiar with using libguestfs, you also need "
20963 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20964 msgstr ""
20965
20966 #. type: =head2
20967 #: ../perl/examples/guestfs-perl.pod:26
20968 msgid "ERRORS"
20969 msgstr ""
20970
20971 #. type: textblock
20972 #: ../perl/examples/guestfs-perl.pod:28
20973 msgid ""
20974 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
20975 ">)."
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../perl/examples/guestfs-perl.pod:41
20980 msgid ""
20981 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
20982 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
20983 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../python/examples/guestfs-python.pod:5
20988 msgid "guestfs-python - How to use libguestfs from Python"
20989 msgstr ""
20990
20991 #. type: verbatim
20992 #: ../python/examples/guestfs-python.pod:9
20993 #, no-wrap
20994 msgid ""
20995 " import guestfs\n"
20996 " g = guestfs.GuestFS ()\n"
20997 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20998 " g.launch\n"
20999 "\n"
21000 msgstr ""
21001
21002 #. type: textblock
21003 #: ../python/examples/guestfs-python.pod:16
21004 msgid ""
21005 "This manual page documents how to call libguestfs from the Python "
21006 "programming language.  This page just documents the differences from the C "
21007 "API and gives some examples.  If you are not familiar with using libguestfs, "
21008 "you also need to read L<guestfs(3)>."
21009 msgstr ""
21010
21011 #. type: textblock
21012 #: ../python/examples/guestfs-python.pod:23
21013 msgid ""
21014 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21015 "single string argument which is the error message."
21016 msgstr ""
21017
21018 #. type: =head2
21019 #: ../python/examples/guestfs-python.pod:26
21020 msgid "MORE DOCUMENTATION"
21021 msgstr ""
21022
21023 #. type: textblock
21024 #: ../python/examples/guestfs-python.pod:28
21025 msgid "Type:"
21026 msgstr ""
21027
21028 #. type: verbatim
21029 #: ../python/examples/guestfs-python.pod:30
21030 #, no-wrap
21031 msgid ""
21032 " $ python\n"
21033 " >>> import guestfs\n"
21034 " >>> help (guestfs)\n"
21035 "\n"
21036 msgstr ""
21037
21038 #. type: textblock
21039 #: ../python/examples/guestfs-python.pod:44
21040 msgid ""
21041 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21042 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21043 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../rescue/virt-rescue.pod:5
21048 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21049 msgstr ""
21050
21051 #. type: verbatim
21052 #: ../rescue/virt-rescue.pod:9
21053 #, no-wrap
21054 msgid ""
21055 " virt-rescue [--options] -d domname\n"
21056 "\n"
21057 msgstr ""
21058
21059 #. type: verbatim
21060 #: ../rescue/virt-rescue.pod:11
21061 #, no-wrap
21062 msgid ""
21063 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21064 "\n"
21065 msgstr ""
21066
21067 #. type: verbatim
21068 #: ../rescue/virt-rescue.pod:15
21069 #, no-wrap
21070 msgid ""
21071 " virt-rescue [--options] domname\n"
21072 "\n"
21073 msgstr ""
21074
21075 #. type: verbatim
21076 #: ../rescue/virt-rescue.pod:17
21077 #, no-wrap
21078 msgid ""
21079 " virt-rescue [--options] disk.img [disk.img ...]\n"
21080 "\n"
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../rescue/virt-rescue.pod:21
21085 msgid ""
21086 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21087 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21088 "you from doing this, but doesn't catch all cases."
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../rescue/virt-rescue.pod:25
21093 msgid ""
21094 "However if you use the I<--ro> (read only) option, then you can attach a "
21095 "shell to a live virtual machine.  The results might be strange or "
21096 "inconsistent at times but you won't get disk corruption."
21097 msgstr ""
21098
21099 #. type: textblock
21100 #: ../rescue/virt-rescue.pod:31
21101 msgid ""
21102 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21103 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21104 "recovery tools which you can use to examine or rescue a virtual machine or "
21105 "disk image."
21106 msgstr ""
21107
21108 #. type: textblock
21109 #: ../rescue/virt-rescue.pod:36
21110 msgid ""
21111 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21112 "on disk image(s):"
21113 msgstr ""
21114
21115 #. type: verbatim
21116 #: ../rescue/virt-rescue.pod:39
21117 #, no-wrap
21118 msgid ""
21119 " virt-rescue -d GuestName\n"
21120 "\n"
21121 msgstr ""
21122
21123 #. type: verbatim
21124 #: ../rescue/virt-rescue.pod:41
21125 #, no-wrap
21126 msgid ""
21127 " virt-rescue --ro -a /path/to/disk.img\n"
21128 "\n"
21129 msgstr ""
21130
21131 #. type: verbatim
21132 #: ../rescue/virt-rescue.pod:43
21133 #, no-wrap
21134 msgid ""
21135 " virt-rescue -a /dev/sdc\n"
21136 "\n"
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../rescue/virt-rescue.pod:45
21141 msgid "For live VMs you I<must> use the --ro option."
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../rescue/virt-rescue.pod:47
21146 msgid ""
21147 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21148 "in an interactive bash shell where you can use many ordinary Linux "
21149 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21150 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21151 "is an empty directory called C</sysroot> where you can mount filesystems."
21152 msgstr ""
21153
21154 #. type: textblock
21155 #: ../rescue/virt-rescue.pod:54
21156 msgid ""
21157 "In the example below, we list logical volumes, then choose one to mount "
21158 "under C</sysroot>:"
21159 msgstr ""
21160
21161 #. type: verbatim
21162 #: ../rescue/virt-rescue.pod:57
21163 #, no-wrap
21164 msgid ""
21165 " ><rescue> lvs\n"
21166 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21167 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21168 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21169 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21170 " ><rescue> ls /sysroot\n"
21171 "\n"
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../rescue/virt-rescue.pod:64
21176 msgid ""
21177 "If you don't know what filesystems are available on the virtual machine then "
21178 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../rescue/virt-rescue.pod:70
21183 msgid ""
21184 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21185 "virtual machine.  For example you can use it on a blank file if you want to "
21186 "partition that file (although we would recommend using L<guestfish(1)> "
21187 "instead as it is more suitable for this purpose).  You can even use virt-"
21188 "rescue on things like SD cards."
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../rescue/virt-rescue.pod:76
21193 msgid ""
21194 "Virt-rescue does not require root.  You only need to run it as root if you "
21195 "need root to open the disk image."
21196 msgstr ""
21197
21198 #. type: textblock
21199 #: ../rescue/virt-rescue.pod:79
21200 msgid ""
21201 "This tool is just designed for quick interactive hacking on a virtual "
21202 "machine.  For more structured access to a virtual machine disk image, you "
21203 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21204 "make scripted changes to guests, use L<guestfish(1)>."
21205 msgstr ""
21206
21207 #. type: =item
21208 #: ../rescue/virt-rescue.pod:103
21209 msgid "B<--append kernelopts>"
21210 msgstr ""
21211
21212 #. type: textblock
21213 #: ../rescue/virt-rescue.pod:105
21214 msgid "Pass additional options to the rescue kernel."
21215 msgstr ""
21216
21217 #. type: verbatim
21218 #: ../rescue/virt-rescue.pod:135
21219 #, no-wrap
21220 msgid ""
21221 " virt-rescue --format=raw -a disk.img\n"
21222 "\n"
21223 msgstr ""
21224
21225 #. type: verbatim
21226 #: ../rescue/virt-rescue.pod:139
21227 #, no-wrap
21228 msgid ""
21229 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21230 "\n"
21231 msgstr ""
21232
21233 #. type: =item
21234 #: ../rescue/virt-rescue.pod:148
21235 msgid "B<-m MB>"
21236 msgstr ""
21237
21238 #. type: =item
21239 #: ../rescue/virt-rescue.pod:150
21240 msgid "B<--memsize MB>"
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../rescue/virt-rescue.pod:152
21245 msgid ""
21246 "Change the amount of memory allocated to the rescue system.  The default is "
21247 "set by libguestfs and is small but adequate for running system tools.  The "
21248 "occasional program might need more memory.  The parameter is specified in "
21249 "megabytes."
21250 msgstr ""
21251
21252 #. type: =item
21253 #: ../rescue/virt-rescue.pod:157
21254 msgid "B<--network>"
21255 msgstr ""
21256
21257 #. type: textblock
21258 #: ../rescue/virt-rescue.pod:159
21259 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../rescue/virt-rescue.pod:165
21264 msgid "Open the image read-only."
21265 msgstr ""
21266
21267 #. type: textblock
21268 #: ../rescue/virt-rescue.pod:175
21269 msgid ""
21270 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21271 "SELINUX> before using this option."
21272 msgstr ""
21273
21274 #. type: =item
21275 #: ../rescue/virt-rescue.pod:178
21276 msgid "B<--smp> N"
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../rescue/virt-rescue.pod:180
21281 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
21282 msgstr ""
21283
21284 #. type: textblock
21285 #: ../rescue/virt-rescue.pod:198
21286 msgid ""
21287 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21288 "are done read-write."
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../rescue/virt-rescue.pod:211
21293 msgid "Previous versions of virt-rescue allowed you to write either:"
21294 msgstr ""
21295
21296 #. type: verbatim
21297 #: ../rescue/virt-rescue.pod:213
21298 #, no-wrap
21299 msgid ""
21300 " virt-rescue disk.img [disk.img ...]\n"
21301 "\n"
21302 msgstr ""
21303
21304 #. type: verbatim
21305 #: ../rescue/virt-rescue.pod:217
21306 #, no-wrap
21307 msgid ""
21308 " virt-rescue guestname\n"
21309 "\n"
21310 msgstr ""
21311
21312 #. type: =head1
21313 #: ../rescue/virt-rescue.pod:225
21314 msgid "NETWORK"
21315 msgstr ""
21316
21317 #. type: textblock
21318 #: ../rescue/virt-rescue.pod:227
21319 msgid ""
21320 "Adding the I<--network> option enables QEMU user networking in the rescue "
21321 "appliance.  There are some differences between user networking and ordinary "
21322 "networking:"
21323 msgstr ""
21324
21325 #. type: =item
21326 #: ../rescue/virt-rescue.pod:233
21327 msgid "ping does not work"
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../rescue/virt-rescue.pod:235
21332 msgid ""
21333 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21334 "send the ping packets, and because virt-rescue must be able to run as non-"
21335 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21336 "The ping command will appear to resolve addresses but will not be able to "
21337 "send or receive any packets.  This does not mean that the network is not "
21338 "working."
21339 msgstr ""
21340
21341 #. type: =item
21342 #: ../rescue/virt-rescue.pod:242
21343 msgid "cannot receive connections"
21344 msgstr ""
21345
21346 #. type: textblock
21347 #: ../rescue/virt-rescue.pod:244
21348 msgid "QEMU user networking cannot receive incoming connections."
21349 msgstr ""
21350
21351 #. type: =item
21352 #: ../rescue/virt-rescue.pod:246
21353 msgid "making TCP connections"
21354 msgstr ""
21355
21356 #. type: textblock
21357 #: ../rescue/virt-rescue.pod:248
21358 msgid ""
21359 "The virt-rescue appliance needs to be small and so does not include many "
21360 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21361 "make TCP connections from the shell using the magical C</dev/tcp/"
21362 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21363 msgstr ""
21364
21365 #. type: verbatim
21366 #: ../rescue/virt-rescue.pod:253
21367 #, no-wrap
21368 msgid ""
21369 " exec 3<>/dev/tcp/redhat.com/80\n"
21370 " echo \"GET /\" >&3\n"
21371 " cat <&3\n"
21372 "\n"
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../rescue/virt-rescue.pod:257
21377 msgid "See L<bash(1)> for more details."
21378 msgstr ""
21379
21380 #. type: textblock
21381 #: ../rescue/virt-rescue.pod:263
21382 msgid ""
21383 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21384 "ENVIRONMENT VARIABLES> for the complete list."
21385 msgstr ""
21386
21387 #. type: textblock
21388 #: ../rescue/virt-rescue.pod:290
21389 msgid ""
21390 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21391 "libguestfs.org/>."
21392 msgstr ""
21393
21394 #. type: textblock
21395 #: ../resize/virt-resize.pod:5
21396 msgid "virt-resize - Resize a virtual machine disk"
21397 msgstr ""
21398
21399 #. type: verbatim
21400 #: ../resize/virt-resize.pod:9
21401 #, no-wrap
21402 msgid ""
21403 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21404 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21405 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21406 "\n"
21407 msgstr ""
21408
21409 #. type: textblock
21410 #: ../resize/virt-resize.pod:15
21411 msgid ""
21412 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21413 "larger or smaller overall, and resizing or deleting any partitions contained "
21414 "within."
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../resize/virt-resize.pod:19
21419 msgid ""
21420 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21421 "not> be used on live virtual machines - for consistent results, shut the "
21422 "virtual machine down before resizing it."
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../resize/virt-resize.pod:23
21427 msgid ""
21428 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21429 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21430 msgstr ""
21431
21432 #. type: =item
21433 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21434 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
21435 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
21436 msgid "1."
21437 msgstr ""
21438
21439 #. type: textblock
21440 #: ../resize/virt-resize.pod:33
21441 msgid ""
21442 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21443 "fill the extra 5GB of space."
21444 msgstr ""
21445
21446 #. type: verbatim
21447 #: ../resize/virt-resize.pod:36
21448 #, no-wrap
21449 msgid ""
21450 " virt-filesystems --long -h --all -a olddisk\n"
21451 " \n"
21452 msgstr ""
21453
21454 #. type: verbatim
21455 #: ../resize/virt-resize.pod:38
21456 #, no-wrap
21457 msgid ""
21458 " truncate -r olddisk newdisk\n"
21459 " truncate -s +5G newdisk\n"
21460 " \n"
21461 msgstr ""
21462
21463 #. type: verbatim
21464 #: ../resize/virt-resize.pod:41
21465 #, no-wrap
21466 msgid ""
21467 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21468 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21469 "\n"
21470 msgstr ""
21471
21472 #. type: =item
21473 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21474 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
21475 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
21476 msgid "2."
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../resize/virt-resize.pod:46
21481 msgid ""
21482 "As above, but make the /boot partition 200MB bigger, while giving the "
21483 "remaining space to /dev/sda2:"
21484 msgstr ""
21485
21486 #. type: verbatim
21487 #: ../resize/virt-resize.pod:49
21488 #, no-wrap
21489 msgid ""
21490 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21491 "   olddisk newdisk\n"
21492 "\n"
21493 msgstr ""
21494
21495 #. type: =item
21496 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21497 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
21498 #: ../src/guestfs.pod:1436
21499 msgid "3."
21500 msgstr ""
21501
21502 #. type: textblock
21503 #: ../resize/virt-resize.pod:54
21504 msgid ""
21505 "As in the first example, but expand a logical volume as the final step.  "
21506 "This is what you would typically use for Linux guests that use LVM:"
21507 msgstr ""
21508
21509 #. type: verbatim
21510 #: ../resize/virt-resize.pod:58
21511 #, no-wrap
21512 msgid ""
21513 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21514 "   olddisk newdisk\n"
21515 "\n"
21516 msgstr ""
21517
21518 #. type: =item
21519 #: ../resize/virt-resize.pod:61
21520 msgid "4."
21521 msgstr ""
21522
21523 #. type: textblock
21524 #: ../resize/virt-resize.pod:63
21525 msgid ""
21526 "As in the first example, but the output format will be qcow2 instead of a "
21527 "raw disk:"
21528 msgstr ""
21529
21530 #. type: verbatim
21531 #: ../resize/virt-resize.pod:66
21532 #, no-wrap
21533 msgid ""
21534 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21535 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21536 "\n"
21537 msgstr ""
21538
21539 #. type: =head1
21540 #: ../resize/virt-resize.pod:71
21541 msgid "DETAILED USAGE"
21542 msgstr ""
21543
21544 #. type: =head2
21545 #: ../resize/virt-resize.pod:73
21546 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21547 msgstr ""
21548
21549 #. type: =item
21550 #: ../resize/virt-resize.pod:77
21551 msgid "1. Shut down the virtual machine"
21552 msgstr ""
21553
21554 #. type: =item
21555 #: ../resize/virt-resize.pod:79
21556 msgid "2. Locate input disk image"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../resize/virt-resize.pod:81
21561 msgid ""
21562 "Locate the input disk image (ie. the file or device on the host containing "
21563 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21564 "dumpxml> like this to find the disk image name:"
21565 msgstr ""
21566
21567 #. type: verbatim
21568 #: ../resize/virt-resize.pod:85
21569 #, no-wrap
21570 msgid ""
21571 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21572 " Found 1 nodes:\n"
21573 " -- NODE --\n"
21574 " <source dev=\"/dev/vg/lv_guest\" />\n"
21575 "\n"
21576 msgstr ""
21577
21578 #. type: =item
21579 #: ../resize/virt-resize.pod:90
21580 msgid "3. Look at current sizing"
21581 msgstr ""
21582
21583 #. type: textblock
21584 #: ../resize/virt-resize.pod:92
21585 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21586 msgstr ""
21587
21588 #. type: verbatim
21589 #: ../resize/virt-resize.pod:95
21590 #, no-wrap
21591 msgid ""
21592 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21593 " Name       Type       Size  Parent\n"
21594 " /dev/sda1  partition  101M  /dev/sda\n"
21595 " /dev/sda2  partition  7.9G  /dev/sda\n"
21596 " /dev/sda   device     8.0G  -\n"
21597 "\n"
21598 msgstr ""
21599
21600 #. type: textblock
21601 #: ../resize/virt-resize.pod:101
21602 msgid ""
21603 "(This example is a virtual machine with an 8 GB disk which we would like to "
21604 "expand up to 10 GB)."
21605 msgstr ""
21606
21607 #. type: =item
21608 #: ../resize/virt-resize.pod:104
21609 msgid "4. Create output disk"
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../resize/virt-resize.pod:106
21614 msgid ""
21615 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21616 "to store the resized output disk."
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../resize/virt-resize.pod:109
21621 msgid ""
21622 "To store the resized disk image in a file, create a file of a suitable size:"
21623 msgstr ""
21624
21625 #. type: verbatim
21626 #: ../resize/virt-resize.pod:112
21627 #, no-wrap
21628 msgid ""
21629 " # rm -f outdisk\n"
21630 " # truncate -s 10G outdisk\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../resize/virt-resize.pod:115
21636 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21637 msgstr ""
21638
21639 #. type: verbatim
21640 #: ../resize/virt-resize.pod:117
21641 #, no-wrap
21642 msgid ""
21643 " # lvcreate -L 10G -n lv_name vg_name\n"
21644 "\n"
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../resize/virt-resize.pod:119
21649 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21650 msgstr ""
21651
21652 #. type: verbatim
21653 #: ../resize/virt-resize.pod:121
21654 #, no-wrap
21655 msgid ""
21656 " # virsh pool-list\n"
21657 " # virsh vol-create-as poolname newvol 10G\n"
21658 "\n"
21659 msgstr ""
21660
21661 #. type: =item
21662 #: ../resize/virt-resize.pod:124
21663 msgid "5. Resize"
21664 msgstr ""
21665
21666 #. type: textblock
21667 #: ../resize/virt-resize.pod:126
21668 msgid ""
21669 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21670 "file) and the output disk.  The output disk is the one created in the "
21671 "previous step."
21672 msgstr ""
21673
21674 #. type: verbatim
21675 #: ../resize/virt-resize.pod:130
21676 #, no-wrap
21677 msgid ""
21678 " # virt-resize indisk outdisk\n"
21679 "\n"
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../resize/virt-resize.pod:132
21684 msgid ""
21685 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21686 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21687 "larger, then an extra, empty partition is created at the end of the disk "
21688 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21689 "error."
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../resize/virt-resize.pod:138
21694 msgid ""
21695 "More realistically you'd want to expand existing partitions in the disk "
21696 "image by passing extra options (for the full list see the L</OPTIONS> "
21697 "section below)."
21698 msgstr ""
21699
21700 #. type: textblock
21701 #: ../resize/virt-resize.pod:142
21702 msgid ""
21703 "L</--expand> is the most useful option.  It expands the named partition "
21704 "within the disk to fill any extra space:"
21705 msgstr ""
21706
21707 #. type: verbatim
21708 #: ../resize/virt-resize.pod:145
21709 #, no-wrap
21710 msgid ""
21711 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21712 "\n"
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../resize/virt-resize.pod:147
21717 msgid ""
21718 "(In this case, an extra partition is I<not> created at the end of the disk, "
21719 "because there will be no unused space)."
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../resize/virt-resize.pod:150
21724 msgid ""
21725 "L</--resize> is the other commonly used option.  The following would "
21726 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21727 "rest of the available space:"
21728 msgstr ""
21729
21730 #. type: verbatim
21731 #: ../resize/virt-resize.pod:154
21732 #, no-wrap
21733 msgid ""
21734 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21735 "     indisk outdisk\n"
21736 "\n"
21737 msgstr ""
21738
21739 #. type: textblock
21740 #: ../resize/virt-resize.pod:157
21741 msgid ""
21742 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21743 "if virt-resize knows how, it will resize the contents, the equivalent of "
21744 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21745 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21746 "filesystems, so you would have to online resize them after booting the guest."
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../resize/virt-resize.pod:164
21751 msgid "Other options are covered below."
21752 msgstr ""
21753
21754 #. type: =item
21755 #: ../resize/virt-resize.pod:166
21756 msgid "6. Test"
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../resize/virt-resize.pod:168
21761 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../resize/virt-resize.pod:170
21766 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21767 msgstr ""
21768
21769 #. type: verbatim
21770 #: ../resize/virt-resize.pod:172
21771 #, no-wrap
21772 msgid ""
21773 " # virsh edit guestname\n"
21774 "\n"
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../resize/virt-resize.pod:174
21779 msgid ""
21780 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
21781 "html#elementsDisks>"
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../resize/virt-resize.pod:177
21786 msgid "Then start up the domain with the new, resized disk:"
21787 msgstr ""
21788
21789 #. type: verbatim
21790 #: ../resize/virt-resize.pod:179
21791 #, no-wrap
21792 msgid ""
21793 " # virsh start guestname\n"
21794 "\n"
21795 msgstr ""
21796
21797 #. type: textblock
21798 #: ../resize/virt-resize.pod:181
21799 msgid ""
21800 "and check that it still works.  See also the L</NOTES> section below for "
21801 "additional information."
21802 msgstr ""
21803
21804 #. type: =item
21805 #: ../resize/virt-resize.pod:184
21806 msgid "7. Resize LVs etc inside the guest"
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../resize/virt-resize.pod:186
21811 msgid "(This can also be done offline using L<guestfish(1)>)"
21812 msgstr ""
21813
21814 #. type: textblock
21815 #: ../resize/virt-resize.pod:188
21816 msgid ""
21817 "Once the guest has booted you should see the new space available, at least "
21818 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
21819 "may need to resize LVs inside PVs, and also resize filesystem types that "
21820 "virt-resize does not know how to expand."
21821 msgstr ""
21822
21823 #. type: =head2
21824 #: ../resize/virt-resize.pod:195
21825 msgid "SHRINKING A VIRTUAL MACHINE DISK"
21826 msgstr ""
21827
21828 #. type: textblock
21829 #: ../resize/virt-resize.pod:197
21830 msgid ""
21831 "Shrinking is somewhat more complex than expanding, and only an overview is "
21832 "given here."
21833 msgstr ""
21834
21835 #. type: textblock
21836 #: ../resize/virt-resize.pod:200
21837 msgid ""
21838 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
21839 "filesystems).  The user has to shrink content before passing the disk image "
21840 "to virt-resize, and virt-resize will check that the content has been shrunk "
21841 "properly."
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../resize/virt-resize.pod:205
21846 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
21847 msgstr ""
21848
21849 #. type: textblock
21850 #: ../resize/virt-resize.pod:207
21851 msgid ""
21852 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
21853 "steps 3 and 4 above to allocate a new disk image."
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../resize/virt-resize.pod:210
21858 msgid ""
21859 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
21860 msgstr ""
21861
21862 #. type: =head2
21863 #: ../resize/virt-resize.pod:213
21864 msgid "IGNORING OR DELETING PARTITIONS"
21865 msgstr ""
21866
21867 #. type: textblock
21868 #: ../resize/virt-resize.pod:215
21869 msgid ""
21870 "virt-resize also gives a convenient way to ignore or delete partitions when "
21871 "copying from the input disk to the output disk.  Ignoring a partition speeds "
21872 "up the copy where you don't care about the existing contents of a "
21873 "partition.  Deleting a partition removes it completely, but note that it "
21874 "also renumbers any partitions after the one which is deleted, which can "
21875 "leave some guests unbootable."
21876 msgstr ""
21877
21878 #. type: =head2
21879 #: ../resize/virt-resize.pod:222
21880 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../resize/virt-resize.pod:224
21885 msgid ""
21886 "If the input disk is in qcow2 format, then you may prefer that the output is "
21887 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
21888 "the fly.  The output format is simply determined by the format of the empty "
21889 "output container that you provide.  Thus to create qcow2 output, use:"
21890 msgstr ""
21891
21892 #. type: verbatim
21893 #: ../resize/virt-resize.pod:230
21894 #, no-wrap
21895 msgid ""
21896 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
21897 "\n"
21898 msgstr ""
21899
21900 #. type: textblock
21901 #: ../resize/virt-resize.pod:232
21902 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
21903 msgstr ""
21904
21905 #. type: textblock
21906 #: ../resize/virt-resize.pod:234
21907 msgid "Similarly, to get non-sparse raw output use:"
21908 msgstr ""
21909
21910 #. type: verbatim
21911 #: ../resize/virt-resize.pod:236
21912 #, no-wrap
21913 msgid ""
21914 " fallocate -l size outdisk\n"
21915 "\n"
21916 msgstr ""
21917
21918 #. type: textblock
21919 #: ../resize/virt-resize.pod:238
21920 msgid ""
21921 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
21922 "dev/zero of=outdisk bs=1M count=..>)"
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
21927 msgid "Display help."
21928 msgstr ""
21929
21930 #. type: =item
21931 #: ../resize/virt-resize.pod:249
21932 msgid "B<-d>"
21933 msgstr ""
21934
21935 #. type: =item
21936 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
21937 #: ../tools/virt-win-reg.pl:120
21938 msgid "B<--debug>"
21939 msgstr ""
21940
21941 #. type: textblock
21942 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
21943 msgid "Enable debugging messages."
21944 msgstr ""
21945
21946 #. type: =item
21947 #: ../resize/virt-resize.pod:255
21948 msgid "B<--delete part>"
21949 msgstr ""
21950
21951 #. type: textblock
21952 #: ../resize/virt-resize.pod:257
21953 msgid ""
21954 "Delete the named partition.  It would be more accurate to describe this as "
21955 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
21956 "the original disk image is left intact."
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../resize/virt-resize.pod:261
21961 msgid ""
21962 "Note that when you delete a partition, then anything contained in the "
21963 "partition is also deleted.  Furthermore, this causes any partitions that "
21964 "come after to be I<renumbered>, which can easily make your guest unbootable."
21965 msgstr ""
21966
21967 #. type: textblock
21968 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
21969 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
21970 msgid "You can give this option multiple times."
21971 msgstr ""
21972
21973 #. type: =item
21974 #: ../resize/virt-resize.pod:268
21975 msgid "B<--expand part>"
21976 msgstr ""
21977
21978 #. type: textblock
21979 #: ../resize/virt-resize.pod:270
21980 msgid ""
21981 "Expand the named partition so it uses up all extra space (space left over "
21982 "after any other resize changes that you request have been done)."
21983 msgstr ""
21984
21985 #. type: textblock
21986 #: ../resize/virt-resize.pod:273
21987 msgid ""
21988 "If virt-resize knows how, it will expand the direct content of the "
21989 "partition.  For example, if the partition is an LVM PV, it will expand the "
21990 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21991 "content it doesn't know about alone."
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../resize/virt-resize.pod:278
21996 msgid "Currently virt-resize can resize:"
21997 msgstr ""
21998
21999 #. type: textblock
22000 #: ../resize/virt-resize.pod:284
22001 msgid "ext2, ext3 and ext4 filesystems."
22002 msgstr ""
22003
22004 #. type: textblock
22005 #: ../resize/virt-resize.pod:288
22006 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22007 msgstr ""
22008
22009 #. type: textblock
22010 #: ../resize/virt-resize.pod:290
22011 msgid ""
22012 "The filesystem must have been shut down consistently last time it was used.  "
22013 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22014 "consistency check, so at the first boot after resizing Windows will check "
22015 "the disk."
22016 msgstr ""
22017
22018 #. type: textblock
22019 #: ../resize/virt-resize.pod:297
22020 msgid ""
22021 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22022 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22023 "resize LVs as desired after boot."
22024 msgstr ""
22025
22026 #. type: textblock
22027 #: ../resize/virt-resize.pod:303
22028 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22029 msgstr ""
22030
22031 #. type: textblock
22032 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22033 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22034 msgstr ""
22035
22036 #. type: =item
22037 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
22038 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
22039 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
22040 msgid "B<--format> raw"
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
22045 msgid ""
22046 "Specify the format of the input disk image.  If this flag is not given then "
22047 "it is auto-detected from the image itself."
22048 msgstr ""
22049
22050 #. type: textblock
22051 #: ../resize/virt-resize.pod:317
22052 msgid ""
22053 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22054 "AND NON-SPARSE RAW FORMATS>."
22055 msgstr ""
22056
22057 #. type: =item
22058 #: ../resize/virt-resize.pod:320
22059 msgid "B<--ignore part>"
22060 msgstr ""
22061
22062 #. type: textblock
22063 #: ../resize/virt-resize.pod:322
22064 msgid ""
22065 "Ignore the named partition.  Effectively this means the partition is "
22066 "allocated on the destination disk, but the content is not copied across from "
22067 "the source disk.  The content of the partition will be blank (all zero "
22068 "bytes)."
22069 msgstr ""
22070
22071 #. type: =item
22072 #: ../resize/virt-resize.pod:329
22073 msgid "B<--LV-expand logvol>"
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../resize/virt-resize.pod:331
22078 msgid ""
22079 "This takes the logical volume and, as a final step, expands it to fill all "
22080 "the space available in its volume group.  A typical usage, assuming a Linux "
22081 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22082 "lv_root> would be:"
22083 msgstr ""
22084
22085 #. type: verbatim
22086 #: ../resize/virt-resize.pod:336
22087 #, no-wrap
22088 msgid ""
22089 " virt-resize indisk outdisk \\\n"
22090 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22091 "\n"
22092 msgstr ""
22093
22094 #. type: textblock
22095 #: ../resize/virt-resize.pod:339
22096 msgid ""
22097 "This would first expand the partition (and PV), and then expand the root "
22098 "device to fill the extra space in the PV."
22099 msgstr ""
22100
22101 #. type: textblock
22102 #: ../resize/virt-resize.pod:342
22103 msgid ""
22104 "The contents of the LV are also resized if virt-resize knows how to do "
22105 "that.  You can stop virt-resize from trying to expand the content by using "
22106 "the option I<--no-expand-content>."
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../resize/virt-resize.pod:346
22111 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../resize/virt-resize.pod:348
22116 msgid ""
22117 "You can give this option multiple times, I<but> it doesn't make sense to do "
22118 "this unless the logical volumes you specify are all in different volume "
22119 "groups."
22120 msgstr ""
22121
22122 #. type: =item
22123 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
22124 msgid "B<--machine-readable>"
22125 msgstr ""
22126
22127 #. type: textblock
22128 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
22129 msgid ""
22130 "This option is used to make the output more machine friendly when being "
22131 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22132 msgstr ""
22133
22134 #. type: =item
22135 #: ../resize/virt-resize.pod:360
22136 msgid "B<--dryrun>"
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../resize/virt-resize.pod:362
22141 msgid "Print a summary of what would be done, but don't do anything."
22142 msgstr ""
22143
22144 #. type: =item
22145 #: ../resize/virt-resize.pod:364
22146 msgid "B<--no-copy-boot-loader>"
22147 msgstr ""
22148
22149 #. type: textblock
22150 #: ../resize/virt-resize.pod:366
22151 msgid ""
22152 "By default, virt-resize copies over some sectors at the start of the disk "
22153 "(up to the beginning of the first partition).  Commonly these sectors "
22154 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22155 "in order for the guest to boot correctly."
22156 msgstr ""
22157
22158 #. type: textblock
22159 #: ../resize/virt-resize.pod:371
22160 msgid ""
22161 "If you specify this flag, then this initial copy is not done.  You may need "
22162 "to reinstall the boot loader in this case."
22163 msgstr ""
22164
22165 #. type: =item
22166 #: ../resize/virt-resize.pod:374
22167 msgid "B<--no-extra-partition>"
22168 msgstr ""
22169
22170 #. type: textblock
22171 #: ../resize/virt-resize.pod:376
22172 msgid ""
22173 "By default, virt-resize creates an extra partition if there is any extra, "
22174 "unused space after all resizing has happened.  Use this option to prevent "
22175 "the extra partition from being created.  If you do this then the extra space "
22176 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22177 "tool in the guest."
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../resize/virt-resize.pod:382
22182 msgid ""
22183 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22184 "will be created."
22185 msgstr ""
22186
22187 #. type: =item
22188 #: ../resize/virt-resize.pod:385
22189 msgid "B<--no-expand-content>"
22190 msgstr ""
22191
22192 #. type: textblock
22193 #: ../resize/virt-resize.pod:387
22194 msgid ""
22195 "By default, virt-resize will try to expand the direct contents of "
22196 "partitions, if it knows how (see I<--expand> option above)."
22197 msgstr ""
22198
22199 #. type: textblock
22200 #: ../resize/virt-resize.pod:390
22201 msgid ""
22202 "If you give the I<--no-expand-content> option then virt-resize will not "
22203 "attempt this."
22204 msgstr ""
22205
22206 #. type: =item
22207 #: ../resize/virt-resize.pod:393
22208 msgid "B<--ntfsresize-force>"
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../resize/virt-resize.pod:395
22213 msgid ""
22214 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22215 "the NTFS disk is marked as needing a consistency check.  You have to use "
22216 "this option if you want to resize a Windows guest multiple times without "
22217 "booting into Windows between each resize."
22218 msgstr ""
22219
22220 #. type: =item
22221 #: ../resize/virt-resize.pod:401
22222 msgid "B<--output-format> raw"
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../resize/virt-resize.pod:403
22227 msgid ""
22228 "Specify the format of the output disk image.  If this flag is not given then "
22229 "it is auto-detected from the image itself."
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../resize/virt-resize.pod:409
22234 msgid ""
22235 "Note that this option I<does not create> the output format.  This option "
22236 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22237 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22238 "SPARSE RAW FORMATS>."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../resize/virt-resize.pod:418
22243 msgid "Don't print the summary."
22244 msgstr ""
22245
22246 #. type: =item
22247 #: ../resize/virt-resize.pod:420
22248 msgid "B<--resize part=size>"
22249 msgstr ""
22250
22251 #. type: textblock
22252 #: ../resize/virt-resize.pod:422
22253 msgid ""
22254 "Resize the named partition (expanding or shrinking it) so that it has the "
22255 "given size."
22256 msgstr ""
22257
22258 #. type: textblock
22259 #: ../resize/virt-resize.pod:425
22260 msgid ""
22261 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22262 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22263 "size; or as a relative number or percentage.  For example:"
22264 msgstr ""
22265
22266 #. type: verbatim
22267 #: ../resize/virt-resize.pod:431
22268 #, no-wrap
22269 msgid ""
22270 " --resize /dev/sda2=10G\n"
22271 "\n"
22272 msgstr ""
22273
22274 #. type: verbatim
22275 #: ../resize/virt-resize.pod:433
22276 #, no-wrap
22277 msgid ""
22278 " --resize /dev/sda4=90%\n"
22279 "\n"
22280 msgstr ""
22281
22282 #. type: verbatim
22283 #: ../resize/virt-resize.pod:435
22284 #, no-wrap
22285 msgid ""
22286 " --resize /dev/sda2=+1G\n"
22287 "\n"
22288 msgstr ""
22289
22290 #. type: verbatim
22291 #: ../resize/virt-resize.pod:437
22292 #, no-wrap
22293 msgid ""
22294 " --resize /dev/sda2=-200M\n"
22295 "\n"
22296 msgstr ""
22297
22298 #. type: verbatim
22299 #: ../resize/virt-resize.pod:439
22300 #, no-wrap
22301 msgid ""
22302 " --resize /dev/sda1=+128K\n"
22303 "\n"
22304 msgstr ""
22305
22306 #. type: verbatim
22307 #: ../resize/virt-resize.pod:441
22308 #, no-wrap
22309 msgid ""
22310 " --resize /dev/sda1=+10%\n"
22311 "\n"
22312 msgstr ""
22313
22314 #. type: verbatim
22315 #: ../resize/virt-resize.pod:443
22316 #, no-wrap
22317 msgid ""
22318 " --resize /dev/sda1=-10%\n"
22319 "\n"
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../resize/virt-resize.pod:445
22324 msgid ""
22325 "You can increase the size of any partition.  Virt-resize will expand the "
22326 "direct content of the partition if it knows how (see I<--expand> below)."
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../resize/virt-resize.pod:449
22331 msgid ""
22332 "You can only I<decrease> the size of partitions that contain filesystems or "
22333 "PVs which have already been shrunk.  Virt-resize will check this has been "
22334 "done before proceeding, or else will print an error (see also I<--resize-"
22335 "force>)."
22336 msgstr ""
22337
22338 #. type: =item
22339 #: ../resize/virt-resize.pod:456
22340 msgid "B<--resize-force part=size>"
22341 msgstr ""
22342
22343 #. type: textblock
22344 #: ../resize/virt-resize.pod:458
22345 msgid ""
22346 "This is the same as I<--resize> except that it will let you decrease the "
22347 "size of any partition.  Generally this means you will lose any data which "
22348 "was at the end of the partition you shrink, but you may not care about that "
22349 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22350 "as a swap partition)."
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../resize/virt-resize.pod:464
22355 msgid "See also the I<--ignore> option."
22356 msgstr ""
22357
22358 #. type: =item
22359 #: ../resize/virt-resize.pod:466
22360 msgid "B<--shrink part>"
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../resize/virt-resize.pod:468
22365 msgid ""
22366 "Shrink the named partition until the overall disk image fits in the "
22367 "destination.  The named partition B<must> contain a filesystem or PV which "
22368 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22369 "online tools).  Virt-resize will check this and give an error if it has not "
22370 "been done."
22371 msgstr ""
22372
22373 #. type: textblock
22374 #: ../resize/virt-resize.pod:474
22375 msgid ""
22376 "The amount by which the overall disk must be shrunk (after carrying out all "
22377 "other operations requested by the user) is called the \"deficit\".  For "
22378 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22379 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22380 "would give an error unless the user specified a partition to shrink and that "
22381 "partition had more than a gigabyte of free space."
22382 msgstr ""
22383
22384 #. type: =head1
22385 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
22386 msgid "MACHINE READABLE OUTPUT"
22387 msgstr ""
22388
22389 #. type: textblock
22390 #: ../resize/virt-resize.pod:494
22391 msgid ""
22392 "The I<--machine-readable> option can be used to make the output more machine "
22393 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22394 "etc."
22395 msgstr ""
22396
22397 #. type: textblock
22398 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
22399 msgid "There are two ways to use this option."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../resize/virt-resize.pod:500
22404 msgid ""
22405 "Firstly use the option on its own to query the capabilities of the virt-"
22406 "resize binary.  Typical output looks like this:"
22407 msgstr ""
22408
22409 #. type: verbatim
22410 #: ../resize/virt-resize.pod:503
22411 #, no-wrap
22412 msgid ""
22413 " $ virt-resize --machine-readable\n"
22414 " virt-resize\n"
22415 " ntfsresize-force\n"
22416 " 32bitok\n"
22417 " ntfs\n"
22418 " btrfs\n"
22419 "\n"
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
22424 msgid ""
22425 "A list of features is printed, one per line, and the program exits with "
22426 "status 0."
22427 msgstr ""
22428
22429 #. type: textblock
22430 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
22431 msgid ""
22432 "Secondly use the option in conjunction with other options to make the "
22433 "regular program output more machine friendly."
22434 msgstr ""
22435
22436 #. type: textblock
22437 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
22438 msgid "At the moment this means:"
22439 msgstr ""
22440
22441 #. type: textblock
22442 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
22443 msgid ""
22444 "Progress bar messages can be parsed from stdout by looking for this regular "
22445 "expression:"
22446 msgstr ""
22447
22448 #. type: verbatim
22449 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
22450 #, no-wrap
22451 msgid ""
22452 " ^[0-9]+/[0-9]+$\n"
22453 "\n"
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
22458 msgid ""
22459 "The calling program should treat messages sent to stdout (except for "
22460 "progress bar messages) as status messages.  They can be logged and/or "
22461 "displayed to the user."
22462 msgstr ""
22463
22464 #. type: textblock
22465 #: ../resize/virt-resize.pod:535
22466 msgid ""
22467 "The calling program should treat messages sent to stderr as error messages.  "
22468 "In addition, virt-resize exits with a non-zero status code if there was a "
22469 "fatal error."
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../resize/virt-resize.pod:541
22474 msgid ""
22475 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22476 "readable> option and will return an error."
22477 msgstr ""
22478
22479 #. type: =head2
22480 #: ../resize/virt-resize.pod:546
22481 msgid "\"Partition 1 does not end on cylinder boundary.\""
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../resize/virt-resize.pod:548
22486 msgid ""
22487 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22488 "means the partitions will not be aligned to the ancient CHS geometry.  "
22489 "However CHS geometry is meaningless for disks manufactured since the early "
22490 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22491 "cylinders is not required by any modern operating system."
22492 msgstr ""
22493
22494 #. type: =head2
22495 #: ../resize/virt-resize.pod:555
22496 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../resize/virt-resize.pod:557
22501 msgid ""
22502 "In Windows Vista and later versions, Microsoft switched to using a separate "
22503 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22504 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22505 "the boot partition.  Doing so seems to break the guest completely.  However "
22506 "expanding the second partition (ie. C: drive) should work."
22507 msgstr ""
22508
22509 #. type: textblock
22510 #: ../resize/virt-resize.pod:564
22511 msgid ""
22512 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22513 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22514 "it find errors) is nothing to worry about."
22515 msgstr ""
22516
22517 #. type: =head2
22518 #: ../resize/virt-resize.pod:568
22519 msgid "GUEST BOOT STUCK AT \"GRUB\""
22520 msgstr ""
22521
22522 #. type: textblock
22523 #: ../resize/virt-resize.pod:570
22524 msgid ""
22525 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22526 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22527 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22528 "although we think is to do with partition alignment."
22529 msgstr ""
22530
22531 #. type: verbatim
22532 #: ../resize/virt-resize.pod:575
22533 #, no-wrap
22534 msgid ""
22535 " guestfish -i -a newdisk\n"
22536 " ><fs> cat /boot/grub/device.map\n"
22537 " # check the contents of this file are sensible or\n"
22538 " # edit the file if necessary\n"
22539 " ><fs> grub-install / /dev/vda\n"
22540 " ><fs> exit\n"
22541 "\n"
22542 msgstr ""
22543
22544 #. type: textblock
22545 #: ../resize/virt-resize.pod:582
22546 msgid ""
22547 "For more flexible guest reconfiguration, including if you need to specify "
22548 "other parameters to grub-install, use L<virt-rescue(1)>."
22549 msgstr ""
22550
22551 #. type: =head1
22552 #: ../resize/virt-resize.pod:585
22553 msgid "ALTERNATIVE TOOLS"
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../resize/virt-resize.pod:587
22558 msgid ""
22559 "There are several proprietary tools for resizing partitions.  We won't "
22560 "mention any here."
22561 msgstr ""
22562
22563 #. type: textblock
22564 #: ../resize/virt-resize.pod:590
22565 msgid ""
22566 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22567 "operations on disk images.  They can resize and move partitions, but I don't "
22568 "think they can do anything with the contents, and they certainly don't "
22569 "understand LVM."
22570 msgstr ""
22571
22572 #. type: textblock
22573 #: ../resize/virt-resize.pod:595
22574 msgid ""
22575 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22576 "but at a much lower level.  You will probably end up hand-calculating sector "
22577 "offsets, which is something that virt-resize was designed to avoid.  If you "
22578 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22579 "I<--debug> flag."
22580 msgstr ""
22581
22582 #. type: textblock
22583 #: ../resize/virt-resize.pod:615
22584 msgid ""
22585 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22586 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22587 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22588 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
22589 "L<http://libguestfs.org/>."
22590 msgstr ""
22591
22592 #. type: textblock
22593 #: ../ruby/examples/guestfs-ruby.pod:5
22594 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22595 msgstr ""
22596
22597 #. type: verbatim
22598 #: ../ruby/examples/guestfs-ruby.pod:9
22599 #, no-wrap
22600 msgid ""
22601 " require 'guestfs'\n"
22602 " g = Guestfs::Guestfs.new()\n"
22603 " g.add_drive_opts(\"disk.img\",\n"
22604 "                  :readonly => 1, :format => \"raw\")\n"
22605 " g.launch()\n"
22606 "\n"
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../ruby/examples/guestfs-ruby.pod:17
22611 msgid ""
22612 "This manual page documents how to call libguestfs from the Ruby programming "
22613 "language.  This page just documents the differences from the C API and gives "
22614 "some examples.  If you are not familiar with using libguestfs, you also need "
22615 "to read L<guestfs(3)>."
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../ruby/examples/guestfs-ruby.pod:24
22620 msgid ""
22621 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22622 "This has a single parameter which is the error message (a string)."
22623 msgstr ""
22624
22625 #. type: textblock
22626 #: ../ruby/examples/guestfs-ruby.pod:38
22627 msgid ""
22628 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22629 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
22630 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../sparsify/virt-sparsify.pod:5
22635 msgid "virt-sparsify - Make a virtual machine disk sparse"
22636 msgstr ""
22637
22638 #. type: verbatim
22639 #: ../sparsify/virt-sparsify.pod:9
22640 #, no-wrap
22641 msgid ""
22642 " virt-sparsify [--options] indisk outdisk\n"
22643 "\n"
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../sparsify/virt-sparsify.pod:13
22648 msgid ""
22649 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
22650 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
22651 "the disk image can be converted back to free space on the host."
22652 msgstr ""
22653
22654 #. type: textblock
22655 #: ../sparsify/virt-sparsify.pod:18
22656 msgid ""
22657 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
22658 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
22659 msgstr ""
22660
22661 #. type: textblock
22662 #: ../sparsify/virt-sparsify.pod:21
22663 msgid ""
22664 "Virt-sparsify can also convert between some disk formats, for example "
22665 "converting a raw disk image to a thin-provisioned qcow2 image."
22666 msgstr ""
22667
22668 #. type: textblock
22669 #: ../sparsify/virt-sparsify.pod:24
22670 msgid ""
22671 "Virt-sparsify can operate on any disk image, not just ones from virtual "
22672 "machines.  If a virtual machine has more than one attached disk, you must "
22673 "sparsify each one separately."
22674 msgstr ""
22675
22676 #. type: =head2
22677 #: ../sparsify/virt-sparsify.pod:28
22678 msgid "IMPORTANT LIMITATIONS"
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../sparsify/virt-sparsify.pod:34
22683 msgid ""
22684 "Virt-sparsify does not do in-place modifications.  It copies from a source "
22685 "image to a destination image, leaving the source unchanged.  I<Check that "
22686 "the sparsification was successful before deleting the source image>."
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../sparsify/virt-sparsify.pod:41
22691 msgid "The virtual machine I<must be shut down> before using this tool."
22692 msgstr ""
22693
22694 #. type: textblock
22695 #: ../sparsify/virt-sparsify.pod:45
22696 msgid ""
22697 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
22698 "(1 temporary copy + 1 destination image).  This is in the worst case and "
22699 "usually much less space is required."
22700 msgstr ""
22701
22702 #. type: textblock
22703 #: ../sparsify/virt-sparsify.pod:51
22704 msgid ""
22705 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../sparsify/virt-sparsify.pod:56
22710 msgid "Virt-sparsify cannot handle encrypted disks."
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../sparsify/virt-sparsify.pod:60
22715 msgid ""
22716 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
22717 "this space is often used for critical items like bootloaders so it's not "
22718 "really unused."
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../sparsify/virt-sparsify.pod:66
22723 msgid ""
22724 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
22725 "to do this unless we can be sure there is no hibernation data, so at the "
22726 "moment swap partitions are ignored."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../sparsify/virt-sparsify.pod:72
22731 msgid ""
22732 "You may also want to read the manual pages for the associated tools L<virt-"
22733 "filesystems(1)> and L<virt-df(1)> before starting."
22734 msgstr ""
22735
22736 #. type: textblock
22737 #: ../sparsify/virt-sparsify.pod:77
22738 msgid "Typical usage is:"
22739 msgstr ""
22740
22741 #. type: verbatim
22742 #: ../sparsify/virt-sparsify.pod:79
22743 #, no-wrap
22744 msgid ""
22745 " virt-sparsify indisk outdisk\n"
22746 "\n"
22747 msgstr ""
22748
22749 #. type: textblock
22750 #: ../sparsify/virt-sparsify.pod:81
22751 msgid ""
22752 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
22753 "is created, or overwritten if it already exists.  The format of the input "
22754 "disk is detected (eg. qcow2) and the same format is used for the output disk."
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../sparsify/virt-sparsify.pod:86
22759 msgid "To convert between formats, use the I<--convert> option:"
22760 msgstr ""
22761
22762 #. type: verbatim
22763 #: ../sparsify/virt-sparsify.pod:88
22764 #, no-wrap
22765 msgid ""
22766 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
22767 "\n"
22768 msgstr ""
22769
22770 #. type: textblock
22771 #: ../sparsify/virt-sparsify.pod:90
22772 msgid ""
22773 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
22774 "can find within the source disk image.  You can get it to ignore (don't zero "
22775 "free space on) certain filesystems by doing:"
22776 msgstr ""
22777
22778 #. type: verbatim
22779 #: ../sparsify/virt-sparsify.pod:94
22780 #, no-wrap
22781 msgid ""
22782 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
22783 "\n"
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../sparsify/virt-sparsify.pod:96
22788 msgid ""
22789 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
22790 msgstr ""
22791
22792 #. type: =item
22793 #: ../sparsify/virt-sparsify.pod:107
22794 msgid "B<--convert> raw"
22795 msgstr ""
22796
22797 #. type: =item
22798 #: ../sparsify/virt-sparsify.pod:109
22799 msgid "B<--convert> qcow2"
22800 msgstr ""
22801
22802 #. type: =item
22803 #: ../sparsify/virt-sparsify.pod:111
22804 msgid "B<--convert> [other formats]"
22805 msgstr ""
22806
22807 #. type: textblock
22808 #: ../sparsify/virt-sparsify.pod:113
22809 msgid ""
22810 "Use C<output-format> as the format for the destination image.  If this is "
22811 "not specified, then the input format is used."
22812 msgstr ""
22813
22814 #. type: textblock
22815 #: ../sparsify/virt-sparsify.pod:116
22816 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
22817 msgstr ""
22818
22819 #. type: textblock
22820 #: ../sparsify/virt-sparsify.pod:118
22821 msgid ""
22822 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
22823 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../sparsify/virt-sparsify.pod:122
22828 msgid ""
22829 "Specifying the I<--convert> option is usually a good idea, because then virt-"
22830 "sparsify doesn't need to try to guess the input format."
22831 msgstr ""
22832
22833 #. type: =item
22834 #: ../sparsify/virt-sparsify.pod:127
22835 msgid "B<--format> qcow2"
22836 msgstr ""
22837
22838 #. type: =item
22839 #: ../sparsify/virt-sparsify.pod:135
22840 msgid "B<--ignore> filesystem"
22841 msgstr ""
22842
22843 #. type: =item
22844 #: ../sparsify/virt-sparsify.pod:137
22845 msgid "B<--ignore> volgroup"
22846 msgstr ""
22847
22848 #. type: textblock
22849 #: ../sparsify/virt-sparsify.pod:139
22850 msgid ""
22851 "Ignore the named filesystem.  Free space on the filesystem will not be "
22852 "zeroed, but existing blocks of zeroes will still be sparsified."
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../sparsify/virt-sparsify.pod:142
22857 msgid ""
22858 "In the second form, this ignores the named volume group.  Use the volume "
22859 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../sparsify/virt-sparsify.pod:157
22864 msgid "This disables progress bars and other unnecessary output."
22865 msgstr ""
22866
22867 #. type: textblock
22868 #: ../sparsify/virt-sparsify.pod:179
22869 msgid ""
22870 "The I<--machine-readable> option can be used to make the output more machine "
22871 "friendly, which is useful when calling virt-sparsify from other programs, "
22872 "GUIs etc."
22873 msgstr ""
22874
22875 #. type: textblock
22876 #: ../sparsify/virt-sparsify.pod:185
22877 msgid ""
22878 "Firstly use the option on its own to query the capabilities of the virt-"
22879 "sparsify binary.  Typical output looks like this:"
22880 msgstr ""
22881
22882 #. type: verbatim
22883 #: ../sparsify/virt-sparsify.pod:188
22884 #, no-wrap
22885 msgid ""
22886 " $ virt-sparsify --machine-readable\n"
22887 " virt-sparsify\n"
22888 " ntfs\n"
22889 " btrfs\n"
22890 "\n"
22891 msgstr ""
22892
22893 #. type: textblock
22894 #: ../sparsify/virt-sparsify.pod:218
22895 msgid ""
22896 "The calling program should treat messages sent to stderr as error messages.  "
22897 "In addition, virt-sparsify exits with a non-zero status code if there was a "
22898 "fatal error."
22899 msgstr ""
22900
22901 #. type: textblock
22902 #: ../sparsify/virt-sparsify.pod:224
22903 msgid ""
22904 "All versions of virt-sparsify have supported the I<--machine-readable> "
22905 "option."
22906 msgstr ""
22907
22908 #. type: textblock
22909 #: ../sparsify/virt-sparsify.pod:238
22910 msgid ""
22911 "Location of the temporary directory used for the potentially large temporary "
22912 "overlay file."
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../sparsify/virt-sparsify.pod:241
22917 msgid ""
22918 "You should ensure there is enough free space in the worst case for a full "
22919 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
22920 "to another directory that has enough space."
22921 msgstr ""
22922
22923 #. type: textblock
22924 #: ../sparsify/virt-sparsify.pod:245
22925 msgid "This defaults to C</tmp>."
22926 msgstr ""
22927
22928 #. type: textblock
22929 #: ../sparsify/virt-sparsify.pod:249
22930 msgid ""
22931 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
22932 msgstr ""
22933
22934 #. type: textblock
22935 #: ../sparsify/virt-sparsify.pod:253
22936 msgid ""
22937 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
22938 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
22939 "(1)>, L<http://libguestfs.org/>."
22940 msgstr ""
22941
22942 #. type: =head2
22943 #: ../src/guestfs-actions.pod:1
22944 msgid "guestfs_add_cdrom"
22945 msgstr ""
22946
22947 #. type: verbatim
22948 #: ../src/guestfs-actions.pod:3
22949 #, no-wrap
22950 msgid ""
22951 " int\n"
22952 " guestfs_add_cdrom (guestfs_h *g,\n"
22953 "                    const char *filename);\n"
22954 "\n"
22955 msgstr ""
22956
22957 #. type: textblock
22958 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
22959 #: ../src/guestfs-actions.pod:270
22960 msgid ""
22961 "I<This function is deprecated.> In new code, use the L</"
22962 "guestfs_add_drive_opts> call instead."
22963 msgstr ""
22964
22965 #. type: textblock
22966 #: ../src/guestfs-actions.pod:24
22967 msgid ""
22968 "This call checks for the existence of C<filename>.  This stops you from "
22969 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22970 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22971 "instead."
22972 msgstr ""
22973
22974 #. type: textblock
22975 #: ../src/guestfs-actions.pod:31
22976 msgid ""
22977 "If you just want to add an ISO file (often you use this as an efficient way "
22978 "to transfer large files into the guest), then you should probably use "
22979 "C<guestfs_add_drive_ro> instead."
22980 msgstr ""
22981
22982 #. type: textblock
22983 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
22984 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
22985 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
22986 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
22987 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
22988 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
22989 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
22990 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
22991 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
22992 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
22993 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
22994 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
22995 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
22996 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
22997 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
22998 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
22999 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
23000 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
23001 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
23002 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
23003 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
23004 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
23005 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
23006 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
23007 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
23008 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
23009 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
23010 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
23011 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
23012 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
23013 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
23014 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
23015 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
23016 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
23017 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
23018 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
23019 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
23020 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
23021 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
23022 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
23023 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
23024 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
23025 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
23026 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
23027 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
23028 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
23029 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
23030 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
23031 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
23032 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
23033 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
23034 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
23035 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
23036 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
23037 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
23038 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
23039 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
23040 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
23041 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
23042 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
23043 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
23044 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
23045 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
23046 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
23047 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
23048 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
23049 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
23050 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
23051 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
23052 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
23053 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
23054 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
23055 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
23056 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
23057 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
23058 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
23059 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
23060 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
23061 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
23062 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
23063 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
23064 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
23065 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
23066 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
23067 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
23068 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
23069 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
23070 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
23071 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
23072 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
23073 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
23074 #: ../src/guestfs-actions.pod:7988
23075 msgid "This function returns 0 on success or -1 on error."
23076 msgstr ""
23077
23078 #. type: textblock
23079 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23080 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
23081 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
23082 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
23083 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
23084 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
23085 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
23086 #: ../src/guestfs-actions.pod:7765
23087 msgid "(Added in 0.3)"
23088 msgstr ""
23089
23090 #. type: =head2
23091 #: ../src/guestfs-actions.pod:41
23092 msgid "guestfs_add_domain"
23093 msgstr ""
23094
23095 #. type: verbatim
23096 #: ../src/guestfs-actions.pod:43
23097 #, no-wrap
23098 msgid ""
23099 " int\n"
23100 " guestfs_add_domain (guestfs_h *g,\n"
23101 "                     const char *dom,\n"
23102 "                     ...);\n"
23103 "\n"
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23108 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
23109 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
23110 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
23111 #: ../src/guestfs-actions.pod:5321
23112 msgid ""
23113 "You may supply a list of optional arguments to this call.  Use zero or more "
23114 "of the following pairs of parameters, and terminate the list with C<-1> on "
23115 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23116 msgstr ""
23117
23118 #. type: verbatim
23119 #: ../src/guestfs-actions.pod:53
23120 #, no-wrap
23121 msgid ""
23122 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23123 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23124 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23125 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23126 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23127 "\n"
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../src/guestfs-actions.pod:59
23132 msgid ""
23133 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23134 "It works by connecting to libvirt, requesting the domain and domain XML from "
23135 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23136 "one."
23137 msgstr ""
23138
23139 #. type: textblock
23140 #: ../src/guestfs-actions.pod:94
23141 msgid ""
23142 "The other optional parameters are passed directly through to "
23143 "C<guestfs_add_drive_opts>."
23144 msgstr ""
23145
23146 #. type: textblock
23147 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23148 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23149 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23150 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
23151 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
23152 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
23153 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
23154 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
23155 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
23156 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
23157 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
23158 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
23159 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
23160 msgid "On error this function returns -1."
23161 msgstr ""
23162
23163 #. type: textblock
23164 #: ../src/guestfs-actions.pod:99
23165 msgid "(Added in 1.7.4)"
23166 msgstr ""
23167
23168 #. type: =head2
23169 #: ../src/guestfs-actions.pod:101
23170 msgid "guestfs_add_domain_va"
23171 msgstr ""
23172
23173 #. type: verbatim
23174 #: ../src/guestfs-actions.pod:103
23175 #, no-wrap
23176 msgid ""
23177 " int\n"
23178 " guestfs_add_domain_va (guestfs_h *g,\n"
23179 "                        const char *dom,\n"
23180 "                        va_list args);\n"
23181 "\n"
23182 msgstr ""
23183
23184 #. type: textblock
23185 #: ../src/guestfs-actions.pod:108
23186 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23187 msgstr ""
23188
23189 #. type: textblock
23190 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23191 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23192 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23193 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
23194 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
23195 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
23196 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
23197 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
23198 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
23199 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23200 msgstr ""
23201
23202 #. type: =head2
23203 #: ../src/guestfs-actions.pod:112
23204 msgid "guestfs_add_domain_argv"
23205 msgstr ""
23206
23207 #. type: verbatim
23208 #: ../src/guestfs-actions.pod:114
23209 #, no-wrap
23210 msgid ""
23211 " int\n"
23212 " guestfs_add_domain_argv (guestfs_h *g,\n"
23213 "                          const char *dom,\n"
23214 "                          const struct guestfs_add_domain_argv *optargs);\n"
23215 "\n"
23216 msgstr ""
23217
23218 #. type: textblock
23219 #: ../src/guestfs-actions.pod:119
23220 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23221 msgstr ""
23222
23223 #. type: =head2
23224 #: ../src/guestfs-actions.pod:123
23225 msgid "guestfs_add_drive"
23226 msgstr ""
23227
23228 #. type: verbatim
23229 #: ../src/guestfs-actions.pod:125
23230 #, no-wrap
23231 msgid ""
23232 " int\n"
23233 " guestfs_add_drive (guestfs_h *g,\n"
23234 "                    const char *filename);\n"
23235 "\n"
23236 msgstr ""
23237
23238 #. type: textblock
23239 #: ../src/guestfs-actions.pod:129
23240 msgid ""
23241 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23242 "optional parameters, so the disk is added writable, with the format being "
23243 "detected automatically."
23244 msgstr ""
23245
23246 #. type: textblock
23247 #: ../src/guestfs-actions.pod:133
23248 msgid ""
23249 "Automatic detection of the format opens you up to a potential security hole "
23250 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23251 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23252 "you should think about replacing calls to this function with calls to "
23253 "C<guestfs_add_drive_opts>, and specifying the format."
23254 msgstr ""
23255
23256 #. type: =head2
23257 #: ../src/guestfs-actions.pod:144
23258 msgid "guestfs_add_drive_opts"
23259 msgstr ""
23260
23261 #. type: verbatim
23262 #: ../src/guestfs-actions.pod:146
23263 #, no-wrap
23264 msgid ""
23265 " int\n"
23266 " guestfs_add_drive_opts (guestfs_h *g,\n"
23267 "                         const char *filename,\n"
23268 "                         ...);\n"
23269 "\n"
23270 msgstr ""
23271
23272 #. type: verbatim
23273 #: ../src/guestfs-actions.pod:156
23274 #, no-wrap
23275 msgid ""
23276 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23277 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23278 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23279 "\n"
23280 msgstr ""
23281
23282 #. type: textblock
23283 #: ../src/guestfs-actions.pod:185
23284 msgid ""
23285 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23286 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23287 "Possible formats include C<raw> and C<qcow2>."
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../src/guestfs-actions.pod:196
23292 msgid ""
23293 "This rarely-used option lets you emulate the behaviour of the deprecated "
23294 "C<guestfs_add_drive_with_if> call (q.v.)"
23295 msgstr ""
23296
23297 #. type: textblock
23298 #: ../src/guestfs-actions.pod:203
23299 msgid "(Added in 1.5.23)"
23300 msgstr ""
23301
23302 #. type: =head2
23303 #: ../src/guestfs-actions.pod:205
23304 msgid "guestfs_add_drive_opts_va"
23305 msgstr ""
23306
23307 #. type: verbatim
23308 #: ../src/guestfs-actions.pod:207
23309 #, no-wrap
23310 msgid ""
23311 " int\n"
23312 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23313 "                            const char *filename,\n"
23314 "                            va_list args);\n"
23315 "\n"
23316 msgstr ""
23317
23318 #. type: textblock
23319 #: ../src/guestfs-actions.pod:212
23320 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23321 msgstr ""
23322
23323 #. type: =head2
23324 #: ../src/guestfs-actions.pod:216
23325 msgid "guestfs_add_drive_opts_argv"
23326 msgstr ""
23327
23328 #. type: verbatim
23329 #: ../src/guestfs-actions.pod:218
23330 #, no-wrap
23331 msgid ""
23332 " int\n"
23333 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23334 "                              const char *filename,\n"
23335 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23336 "\n"
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../src/guestfs-actions.pod:223
23341 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23342 msgstr ""
23343
23344 #. type: =head2
23345 #: ../src/guestfs-actions.pod:227
23346 msgid "guestfs_add_drive_ro"
23347 msgstr ""
23348
23349 #. type: verbatim
23350 #: ../src/guestfs-actions.pod:229
23351 #, no-wrap
23352 msgid ""
23353 " int\n"
23354 " guestfs_add_drive_ro (guestfs_h *g,\n"
23355 "                       const char *filename);\n"
23356 "\n"
23357 msgstr ""
23358
23359 #. type: textblock
23360 #: ../src/guestfs-actions.pod:233
23361 msgid ""
23362 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23363 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23364 "disk is added read-only, with the format being detected automatically."
23365 msgstr ""
23366
23367 #. type: textblock
23368 #: ../src/guestfs-actions.pod:240
23369 msgid "(Added in 1.0.38)"
23370 msgstr ""
23371
23372 #. type: =head2
23373 #: ../src/guestfs-actions.pod:242
23374 msgid "guestfs_add_drive_ro_with_if"
23375 msgstr ""
23376
23377 #. type: verbatim
23378 #: ../src/guestfs-actions.pod:244
23379 #, no-wrap
23380 msgid ""
23381 " int\n"
23382 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23383 "                               const char *filename,\n"
23384 "                               const char *iface);\n"
23385 "\n"
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../src/guestfs-actions.pod:256
23390 msgid ""
23391 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23392 "QEMU interface emulation to use at run time."
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23397 #: ../src/guestfs-actions.pod:2580
23398 msgid "(Added in 1.0.84)"
23399 msgstr ""
23400
23401 #. type: =head2
23402 #: ../src/guestfs-actions.pod:263
23403 msgid "guestfs_add_drive_with_if"
23404 msgstr ""
23405
23406 #. type: verbatim
23407 #: ../src/guestfs-actions.pod:265
23408 #, no-wrap
23409 msgid ""
23410 " int\n"
23411 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23412 "                            const char *filename,\n"
23413 "                            const char *iface);\n"
23414 "\n"
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../src/guestfs-actions.pod:277
23419 msgid ""
23420 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23421 "QEMU interface emulation to use at run time."
23422 msgstr ""
23423
23424 #. type: =head2
23425 #: ../src/guestfs-actions.pod:284
23426 msgid "guestfs_aug_clear"
23427 msgstr ""
23428
23429 #. type: verbatim
23430 #: ../src/guestfs-actions.pod:286
23431 #, no-wrap
23432 msgid ""
23433 " int\n"
23434 " guestfs_aug_clear (guestfs_h *g,\n"
23435 "                    const char *augpath);\n"
23436 "\n"
23437 msgstr ""
23438
23439 #. type: textblock
23440 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
23441 msgid "(Added in 1.3.4)"
23442 msgstr ""
23443
23444 #. type: =head2
23445 #: ../src/guestfs-actions.pod:297
23446 msgid "guestfs_aug_close"
23447 msgstr ""
23448
23449 #. type: verbatim
23450 #: ../src/guestfs-actions.pod:299
23451 #, no-wrap
23452 msgid ""
23453 " int\n"
23454 " guestfs_aug_close (guestfs_h *g);\n"
23455 "\n"
23456 msgstr ""
23457
23458 #. type: textblock
23459 #: ../src/guestfs-actions.pod:302
23460 msgid ""
23461 "Close the current Augeas handle and free up any resources used by it.  After "
23462 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23463 "any other Augeas functions."
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23468 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23469 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23470 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23471 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23472 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23473 #: ../src/guestfs-actions.pod:5989
23474 msgid "(Added in 0.7)"
23475 msgstr ""
23476
23477 #. type: =head2
23478 #: ../src/guestfs-actions.pod:311
23479 msgid "guestfs_aug_defnode"
23480 msgstr ""
23481
23482 #. type: verbatim
23483 #: ../src/guestfs-actions.pod:313
23484 #, no-wrap
23485 msgid ""
23486 " struct guestfs_int_bool *\n"
23487 " guestfs_aug_defnode (guestfs_h *g,\n"
23488 "                      const char *name,\n"
23489 "                      const char *expr,\n"
23490 "                      const char *val);\n"
23491 "\n"
23492 msgstr ""
23493
23494 #. type: textblock
23495 #: ../src/guestfs-actions.pod:322
23496 msgid ""
23497 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23498 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23499 "containing that single node."
23500 msgstr ""
23501
23502 #. type: textblock
23503 #: ../src/guestfs-actions.pod:330
23504 msgid ""
23505 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23506 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23507 msgstr ""
23508
23509 #. type: =head2
23510 #: ../src/guestfs-actions.pod:336
23511 msgid "guestfs_aug_defvar"
23512 msgstr ""
23513
23514 #. type: verbatim
23515 #: ../src/guestfs-actions.pod:338
23516 #, no-wrap
23517 msgid ""
23518 " int\n"
23519 " guestfs_aug_defvar (guestfs_h *g,\n"
23520 "                     const char *name,\n"
23521 "                     const char *expr);\n"
23522 "\n"
23523 msgstr ""
23524
23525 #. type: =head2
23526 #: ../src/guestfs-actions.pod:354
23527 msgid "guestfs_aug_get"
23528 msgstr ""
23529
23530 #. type: verbatim
23531 #: ../src/guestfs-actions.pod:356
23532 #, no-wrap
23533 msgid ""
23534 " char *\n"
23535 " guestfs_aug_get (guestfs_h *g,\n"
23536 "                  const char *augpath);\n"
23537 "\n"
23538 msgstr ""
23539
23540 #. type: textblock
23541 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23542 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23543 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23544 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
23545 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
23546 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
23547 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
23548 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
23549 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
23550 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
23551 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
23552 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
23553 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
23554 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
23555 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
23556 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
23557 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
23558 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
23559 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
23560 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
23561 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
23562 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
23563 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
23564 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
23565 msgid ""
23566 "This function returns a string, or NULL on error.  I<The caller must free "
23567 "the returned string after use>."
23568 msgstr ""
23569
23570 #. type: =head2
23571 #: ../src/guestfs-actions.pod:368
23572 msgid "guestfs_aug_init"
23573 msgstr ""
23574
23575 #. type: verbatim
23576 #: ../src/guestfs-actions.pod:370
23577 #, no-wrap
23578 msgid ""
23579 " int\n"
23580 " guestfs_aug_init (guestfs_h *g,\n"
23581 "                   const char *root,\n"
23582 "                   int flags);\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../src/guestfs-actions.pod:379
23588 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23589 msgstr ""
23590
23591 #. type: textblock
23592 #: ../src/guestfs-actions.pod:404
23593 msgid ""
23594 "This option is only useful when debugging Augeas lenses.  Use of this option "
23595 "may require additional memory for the libguestfs appliance.  You may need to "
23596 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23597 "C<guestfs_set_memsize>."
23598 msgstr ""
23599
23600 #. type: textblock
23601 #: ../src/guestfs-actions.pod:419
23602 msgid "Do not load the tree in C<guestfs_aug_init>."
23603 msgstr ""
23604
23605 #. type: textblock
23606 #: ../src/guestfs-actions.pod:423
23607 msgid "To close the handle, you can call C<guestfs_aug_close>."
23608 msgstr ""
23609
23610 #. type: =head2
23611 #: ../src/guestfs-actions.pod:431
23612 msgid "guestfs_aug_insert"
23613 msgstr ""
23614
23615 #. type: verbatim
23616 #: ../src/guestfs-actions.pod:433
23617 #, no-wrap
23618 msgid ""
23619 " int\n"
23620 " guestfs_aug_insert (guestfs_h *g,\n"
23621 "                     const char *augpath,\n"
23622 "                     const char *label,\n"
23623 "                     int before);\n"
23624 "\n"
23625 msgstr ""
23626
23627 #. type: =head2
23628 #: ../src/guestfs-actions.pod:451
23629 msgid "guestfs_aug_load"
23630 msgstr ""
23631
23632 #. type: verbatim
23633 #: ../src/guestfs-actions.pod:453
23634 #, no-wrap
23635 msgid ""
23636 " int\n"
23637 " guestfs_aug_load (guestfs_h *g);\n"
23638 "\n"
23639 msgstr ""
23640
23641 #. type: =head2
23642 #: ../src/guestfs-actions.pod:465
23643 msgid "guestfs_aug_ls"
23644 msgstr ""
23645
23646 #. type: verbatim
23647 #: ../src/guestfs-actions.pod:467
23648 #, no-wrap
23649 msgid ""
23650 " char **\n"
23651 " guestfs_aug_ls (guestfs_h *g,\n"
23652 "                 const char *augpath);\n"
23653 "\n"
23654 msgstr ""
23655
23656 #. type: textblock
23657 #: ../src/guestfs-actions.pod:471
23658 msgid ""
23659 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23660 "sorting the resulting nodes into alphabetical order."
23661 msgstr ""
23662
23663 #. type: textblock
23664 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23665 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23666 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
23667 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
23668 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
23669 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
23670 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
23671 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
23672 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
23673 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
23674 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
23675 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
23676 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
23677 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
23678 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
23679 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
23680 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
23681 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
23682 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
23683 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
23684 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
23685 #: ../src/guestfs-actions.pod:8086
23686 msgid ""
23687 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23688 ">), or NULL if there was an error.  I<The caller must free the strings and "
23689 "the array after use>."
23690 msgstr ""
23691
23692 #. type: textblock
23693 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23694 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
23695 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
23696 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
23697 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
23698 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
23699 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
23700 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
23701 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
23702 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
23703 #: ../src/guestfs-actions.pod:7877
23704 msgid "(Added in 0.8)"
23705 msgstr ""
23706
23707 #. type: =head2
23708 #: ../src/guestfs-actions.pod:480
23709 msgid "guestfs_aug_match"
23710 msgstr ""
23711
23712 #. type: verbatim
23713 #: ../src/guestfs-actions.pod:482
23714 #, no-wrap
23715 msgid ""
23716 " char **\n"
23717 " guestfs_aug_match (guestfs_h *g,\n"
23718 "                    const char *augpath);\n"
23719 "\n"
23720 msgstr ""
23721
23722 #. type: =head2
23723 #: ../src/guestfs-actions.pod:496
23724 msgid "guestfs_aug_mv"
23725 msgstr ""
23726
23727 #. type: verbatim
23728 #: ../src/guestfs-actions.pod:498
23729 #, no-wrap
23730 msgid ""
23731 " int\n"
23732 " guestfs_aug_mv (guestfs_h *g,\n"
23733 "                 const char *src,\n"
23734 "                 const char *dest);\n"
23735 "\n"
23736 msgstr ""
23737
23738 #. type: =head2
23739 #: ../src/guestfs-actions.pod:510
23740 msgid "guestfs_aug_rm"
23741 msgstr ""
23742
23743 #. type: verbatim
23744 #: ../src/guestfs-actions.pod:512
23745 #, no-wrap
23746 msgid ""
23747 " int\n"
23748 " guestfs_aug_rm (guestfs_h *g,\n"
23749 "                 const char *augpath);\n"
23750 "\n"
23751 msgstr ""
23752
23753 #. type: =head2
23754 #: ../src/guestfs-actions.pod:524
23755 msgid "guestfs_aug_save"
23756 msgstr ""
23757
23758 #. type: verbatim
23759 #: ../src/guestfs-actions.pod:526
23760 #, no-wrap
23761 msgid ""
23762 " int\n"
23763 " guestfs_aug_save (guestfs_h *g);\n"
23764 "\n"
23765 msgstr ""
23766
23767 #. type: textblock
23768 #: ../src/guestfs-actions.pod:531
23769 msgid ""
23770 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23771 "are saved."
23772 msgstr ""
23773
23774 #. type: =head2
23775 #: ../src/guestfs-actions.pod:538
23776 msgid "guestfs_aug_set"
23777 msgstr ""
23778
23779 #. type: verbatim
23780 #: ../src/guestfs-actions.pod:540
23781 #, no-wrap
23782 msgid ""
23783 " int\n"
23784 " guestfs_aug_set (guestfs_h *g,\n"
23785 "                  const char *augpath,\n"
23786 "                  const char *val);\n"
23787 "\n"
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../src/guestfs-actions.pod:547
23792 msgid ""
23793 "In the Augeas API, it is possible to clear a node by setting the value to "
23794 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23795 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23796 msgstr ""
23797
23798 #. type: =head2
23799 #: ../src/guestfs-actions.pod:556
23800 msgid "guestfs_available"
23801 msgstr ""
23802
23803 #. type: verbatim
23804 #: ../src/guestfs-actions.pod:558
23805 #, no-wrap
23806 msgid ""
23807 " int\n"
23808 " guestfs_available (guestfs_h *g,\n"
23809 "                    char *const *groups);\n"
23810 "\n"
23811 msgstr ""
23812
23813 #. type: textblock
23814 #: ../src/guestfs-actions.pod:566
23815 msgid ""
23816 "The libguestfs groups, and the functions that those groups correspond to, "
23817 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23818 "runtime by calling C<guestfs_available_all_groups>."
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../src/guestfs-actions.pod:590
23823 msgid "You must call C<guestfs_launch> before calling this function."
23824 msgstr ""
23825
23826 #. type: textblock
23827 #: ../src/guestfs-actions.pod:612
23828 msgid ""
23829 "This call was added in version C<1.0.80>.  In previous versions of "
23830 "libguestfs all you could do would be to speculatively execute a command to "
23831 "find out if the daemon implemented it.  See also C<guestfs_version>."
23832 msgstr ""
23833
23834 #. type: textblock
23835 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
23836 msgid "(Added in 1.0.80)"
23837 msgstr ""
23838
23839 #. type: =head2
23840 #: ../src/guestfs-actions.pod:623
23841 msgid "guestfs_available_all_groups"
23842 msgstr ""
23843
23844 #. type: verbatim
23845 #: ../src/guestfs-actions.pod:625
23846 #, no-wrap
23847 msgid ""
23848 " char **\n"
23849 " guestfs_available_all_groups (guestfs_h *g);\n"
23850 "\n"
23851 msgstr ""
23852
23853 #. type: textblock
23854 #: ../src/guestfs-actions.pod:628
23855 msgid ""
23856 "This command returns a list of all optional groups that this daemon knows "
23857 "about.  Note this returns both supported and unsupported groups.  To find "
23858 "out which ones the daemon can actually support you have to call "
23859 "C<guestfs_available> on each member of the returned list."
23860 msgstr ""
23861
23862 #. type: textblock
23863 #: ../src/guestfs-actions.pod:634
23864 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23865 msgstr ""
23866
23867 #. type: textblock
23868 #: ../src/guestfs-actions.pod:640
23869 msgid "(Added in 1.3.15)"
23870 msgstr ""
23871
23872 #. type: =head2
23873 #: ../src/guestfs-actions.pod:642
23874 msgid "guestfs_base64_in"
23875 msgstr ""
23876
23877 #. type: verbatim
23878 #: ../src/guestfs-actions.pod:644
23879 #, no-wrap
23880 msgid ""
23881 " int\n"
23882 " guestfs_base64_in (guestfs_h *g,\n"
23883 "                    const char *base64file,\n"
23884 "                    const char *filename);\n"
23885 "\n"
23886 msgstr ""
23887
23888 #. type: textblock
23889 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23890 msgid "(Added in 1.3.5)"
23891 msgstr ""
23892
23893 #. type: =head2
23894 #: ../src/guestfs-actions.pod:656
23895 msgid "guestfs_base64_out"
23896 msgstr ""
23897
23898 #. type: verbatim
23899 #: ../src/guestfs-actions.pod:658
23900 #, no-wrap
23901 msgid ""
23902 " int\n"
23903 " guestfs_base64_out (guestfs_h *g,\n"
23904 "                     const char *filename,\n"
23905 "                     const char *base64file);\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: =head2
23910 #: ../src/guestfs-actions.pod:670
23911 msgid "guestfs_blockdev_flushbufs"
23912 msgstr ""
23913
23914 #. type: verbatim
23915 #: ../src/guestfs-actions.pod:672
23916 #, no-wrap
23917 msgid ""
23918 " int\n"
23919 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23920 "                             const char *device);\n"
23921 "\n"
23922 msgstr ""
23923
23924 #. type: textblock
23925 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23926 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23927 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23928 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23929 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23930 msgid "(Added in 0.9.3)"
23931 msgstr ""
23932
23933 #. type: =head2
23934 #: ../src/guestfs-actions.pod:685
23935 msgid "guestfs_blockdev_getbsz"
23936 msgstr ""
23937
23938 #. type: verbatim
23939 #: ../src/guestfs-actions.pod:687
23940 #, no-wrap
23941 msgid ""
23942 " int\n"
23943 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23944 "                          const char *device);\n"
23945 "\n"
23946 msgstr ""
23947
23948 #. type: =head2
23949 #: ../src/guestfs-actions.pod:702
23950 msgid "guestfs_blockdev_getro"
23951 msgstr ""
23952
23953 #. type: verbatim
23954 #: ../src/guestfs-actions.pod:704
23955 #, no-wrap
23956 msgid ""
23957 " int\n"
23958 " guestfs_blockdev_getro (guestfs_h *g,\n"
23959 "                         const char *device);\n"
23960 "\n"
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
23965 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
23966 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
23967 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
23968 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
23969 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
23970 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
23971 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
23972 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
23973 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
23974 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
23975 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
23976 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
23977 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
23978 #: ../src/guestfs-actions.pod:5482
23979 msgid "This function returns a C truth value on success or -1 on error."
23980 msgstr ""
23981
23982 #. type: =head2
23983 #: ../src/guestfs-actions.pod:717
23984 msgid "guestfs_blockdev_getsize64"
23985 msgstr ""
23986
23987 #. type: verbatim
23988 #: ../src/guestfs-actions.pod:719
23989 #, no-wrap
23990 msgid ""
23991 " int64_t\n"
23992 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23993 "                             const char *device);\n"
23994 "\n"
23995 msgstr ""
23996
23997 #. type: textblock
23998 #: ../src/guestfs-actions.pod:725
23999 msgid "See also C<guestfs_blockdev_getsz>."
24000 msgstr ""
24001
24002 #. type: =head2
24003 #: ../src/guestfs-actions.pod:733
24004 msgid "guestfs_blockdev_getss"
24005 msgstr ""
24006
24007 #. type: verbatim
24008 #: ../src/guestfs-actions.pod:735
24009 #, no-wrap
24010 msgid ""
24011 " int\n"
24012 " guestfs_blockdev_getss (guestfs_h *g,\n"
24013 "                         const char *device);\n"
24014 "\n"
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../src/guestfs-actions.pod:742
24019 msgid ""
24020 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24021 "that)."
24022 msgstr ""
24023
24024 #. type: =head2
24025 #: ../src/guestfs-actions.pod:751
24026 msgid "guestfs_blockdev_getsz"
24027 msgstr ""
24028
24029 #. type: verbatim
24030 #: ../src/guestfs-actions.pod:753
24031 #, no-wrap
24032 msgid ""
24033 " int64_t\n"
24034 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24035 "                         const char *device);\n"
24036 "\n"
24037 msgstr ""
24038
24039 #. type: textblock
24040 #: ../src/guestfs-actions.pod:760
24041 msgid ""
24042 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24043 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24044 msgstr ""
24045
24046 #. type: =head2
24047 #: ../src/guestfs-actions.pod:770
24048 msgid "guestfs_blockdev_rereadpt"
24049 msgstr ""
24050
24051 #. type: verbatim
24052 #: ../src/guestfs-actions.pod:772
24053 #, no-wrap
24054 msgid ""
24055 " int\n"
24056 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24057 "                            const char *device);\n"
24058 "\n"
24059 msgstr ""
24060
24061 #. type: =head2
24062 #: ../src/guestfs-actions.pod:784
24063 msgid "guestfs_blockdev_setbsz"
24064 msgstr ""
24065
24066 #. type: verbatim
24067 #: ../src/guestfs-actions.pod:786
24068 #, no-wrap
24069 msgid ""
24070 " int\n"
24071 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24072 "                          const char *device,\n"
24073 "                          int blocksize);\n"
24074 "\n"
24075 msgstr ""
24076
24077 #. type: =head2
24078 #: ../src/guestfs-actions.pod:802
24079 msgid "guestfs_blockdev_setro"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../src/guestfs-actions.pod:804
24084 #, no-wrap
24085 msgid ""
24086 " int\n"
24087 " guestfs_blockdev_setro (guestfs_h *g,\n"
24088 "                         const char *device);\n"
24089 "\n"
24090 msgstr ""
24091
24092 #. type: =head2
24093 #: ../src/guestfs-actions.pod:816
24094 msgid "guestfs_blockdev_setrw"
24095 msgstr ""
24096
24097 #. type: verbatim
24098 #: ../src/guestfs-actions.pod:818
24099 #, no-wrap
24100 msgid ""
24101 " int\n"
24102 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24103 "                         const char *device);\n"
24104 "\n"
24105 msgstr ""
24106
24107 #. type: =head2
24108 #: ../src/guestfs-actions.pod:830
24109 msgid "guestfs_btrfs_filesystem_resize"
24110 msgstr ""
24111
24112 #. type: verbatim
24113 #: ../src/guestfs-actions.pod:832
24114 #, no-wrap
24115 msgid ""
24116 " int\n"
24117 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24118 "                                  const char *mountpoint,\n"
24119 "                                  ...);\n"
24120 "\n"
24121 msgstr ""
24122
24123 #. type: verbatim
24124 #: ../src/guestfs-actions.pod:842
24125 #, no-wrap
24126 msgid ""
24127 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24128 "\n"
24129 msgstr ""
24130
24131 #. type: textblock
24132 #: ../src/guestfs-actions.pod:865
24133 msgid "(Added in 1.11.17)"
24134 msgstr ""
24135
24136 #. type: =head2
24137 #: ../src/guestfs-actions.pod:867
24138 msgid "guestfs_btrfs_filesystem_resize_va"
24139 msgstr ""
24140
24141 #. type: verbatim
24142 #: ../src/guestfs-actions.pod:869
24143 #, no-wrap
24144 msgid ""
24145 " int\n"
24146 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24147 "                                     const char *mountpoint,\n"
24148 "                                     va_list args);\n"
24149 "\n"
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../src/guestfs-actions.pod:874
24154 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24155 msgstr ""
24156
24157 #. type: =head2
24158 #: ../src/guestfs-actions.pod:878
24159 msgid "guestfs_btrfs_filesystem_resize_argv"
24160 msgstr ""
24161
24162 #. type: verbatim
24163 #: ../src/guestfs-actions.pod:880
24164 #, no-wrap
24165 msgid ""
24166 " int\n"
24167 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24168 "                                       const char *mountpoint,\n"
24169 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24170 "\n"
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../src/guestfs-actions.pod:885
24175 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24176 msgstr ""
24177
24178 #. type: =head2
24179 #: ../src/guestfs-actions.pod:889
24180 msgid "guestfs_case_sensitive_path"
24181 msgstr ""
24182
24183 #. type: verbatim
24184 #: ../src/guestfs-actions.pod:891
24185 #, no-wrap
24186 msgid ""
24187 " char *\n"
24188 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24189 "                              const char *path);\n"
24190 "\n"
24191 msgstr ""
24192
24193 #. type: textblock
24194 #: ../src/guestfs-actions.pod:917
24195 msgid ""
24196 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24197 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24198 "how the directories were originally created under Windows)."
24199 msgstr ""
24200
24201 #. type: textblock
24202 #: ../src/guestfs-actions.pod:925
24203 msgid "See also C<guestfs_realpath>."
24204 msgstr ""
24205
24206 #. type: textblock
24207 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
24208 msgid "(Added in 1.0.75)"
24209 msgstr ""
24210
24211 #. type: =head2
24212 #: ../src/guestfs-actions.pod:932
24213 msgid "guestfs_cat"
24214 msgstr ""
24215
24216 #. type: verbatim
24217 #: ../src/guestfs-actions.pod:934
24218 #, no-wrap
24219 msgid ""
24220 " char *\n"
24221 " guestfs_cat (guestfs_h *g,\n"
24222 "              const char *path);\n"
24223 "\n"
24224 msgstr ""
24225
24226 #. type: textblock
24227 #: ../src/guestfs-actions.pod:940
24228 msgid ""
24229 "Note that this function cannot correctly handle binary files (specifically, "
24230 "files containing C<\\0> character which is treated as end of string).  For "
24231 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24232 "functions which have a more complex interface."
24233 msgstr ""
24234
24235 #. type: textblock
24236 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
24237 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
24238 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
24239 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
24240 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
24241 #: ../src/guestfs-actions.pod:7713
24242 msgid "(Added in 0.4)"
24243 msgstr ""
24244
24245 #. type: =head2
24246 #: ../src/guestfs-actions.pod:953
24247 msgid "guestfs_checksum"
24248 msgstr ""
24249
24250 #. type: verbatim
24251 #: ../src/guestfs-actions.pod:955
24252 #, no-wrap
24253 msgid ""
24254 " char *\n"
24255 " guestfs_checksum (guestfs_h *g,\n"
24256 "                   const char *csumtype,\n"
24257 "                   const char *path);\n"
24258 "\n"
24259 msgstr ""
24260
24261 #. type: textblock
24262 #: ../src/guestfs-actions.pod:1001
24263 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24264 msgstr ""
24265
24266 #. type: textblock
24267 #: ../src/guestfs-actions.pod:1003
24268 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24269 msgstr ""
24270
24271 #. type: textblock
24272 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
24273 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
24274 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
24275 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
24276 msgid "(Added in 1.0.2)"
24277 msgstr ""
24278
24279 #. type: =head2
24280 #: ../src/guestfs-actions.pod:1010
24281 msgid "guestfs_checksum_device"
24282 msgstr ""
24283
24284 #. type: verbatim
24285 #: ../src/guestfs-actions.pod:1012
24286 #, no-wrap
24287 msgid ""
24288 " char *\n"
24289 " guestfs_checksum_device (guestfs_h *g,\n"
24290 "                          const char *csumtype,\n"
24291 "                          const char *device);\n"
24292 "\n"
24293 msgstr ""
24294
24295 #. type: textblock
24296 #: ../src/guestfs-actions.pod:1017
24297 msgid ""
24298 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24299 "device named C<device>.  For the types of checksums supported see the "
24300 "C<guestfs_checksum> command."
24301 msgstr ""
24302
24303 #. type: textblock
24304 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
24305 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
24306 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
24307 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
24308 #: ../src/guestfs-actions.pod:7725
24309 msgid "(Added in 1.3.2)"
24310 msgstr ""
24311
24312 #. type: =head2
24313 #: ../src/guestfs-actions.pod:1026
24314 msgid "guestfs_checksums_out"
24315 msgstr ""
24316
24317 #. type: verbatim
24318 #: ../src/guestfs-actions.pod:1028
24319 #, no-wrap
24320 msgid ""
24321 " int\n"
24322 " guestfs_checksums_out (guestfs_h *g,\n"
24323 "                        const char *csumtype,\n"
24324 "                        const char *directory,\n"
24325 "                        const char *sumsfile);\n"
24326 "\n"
24327 msgstr ""
24328
24329 #. type: textblock
24330 #: ../src/guestfs-actions.pod:1048
24331 msgid "(Added in 1.3.7)"
24332 msgstr ""
24333
24334 #. type: =head2
24335 #: ../src/guestfs-actions.pod:1050
24336 msgid "guestfs_chmod"
24337 msgstr ""
24338
24339 #. type: verbatim
24340 #: ../src/guestfs-actions.pod:1052
24341 #, no-wrap
24342 msgid ""
24343 " int\n"
24344 " guestfs_chmod (guestfs_h *g,\n"
24345 "                int mode,\n"
24346 "                const char *path);\n"
24347 "\n"
24348 msgstr ""
24349
24350 #. type: =head2
24351 #: ../src/guestfs-actions.pod:1070
24352 msgid "guestfs_chown"
24353 msgstr ""
24354
24355 #. type: verbatim
24356 #: ../src/guestfs-actions.pod:1072
24357 #, no-wrap
24358 msgid ""
24359 " int\n"
24360 " guestfs_chown (guestfs_h *g,\n"
24361 "                int owner,\n"
24362 "                int group,\n"
24363 "                const char *path);\n"
24364 "\n"
24365 msgstr ""
24366
24367 #. type: =head2
24368 #: ../src/guestfs-actions.pod:1088
24369 msgid "guestfs_command"
24370 msgstr ""
24371
24372 #. type: verbatim
24373 #: ../src/guestfs-actions.pod:1090
24374 #, no-wrap
24375 msgid ""
24376 " char *\n"
24377 " guestfs_command (guestfs_h *g,\n"
24378 "                  char *const *arguments);\n"
24379 "\n"
24380 msgstr ""
24381
24382 #. type: textblock
24383 #: ../src/guestfs-actions.pod:1099
24384 msgid ""
24385 "The single parameter is an argv-style list of arguments.  The first element "
24386 "is the name of the program to run.  Subsequent elements are parameters.  The "
24387 "list must be non-empty (ie. must contain a program name).  Note that the "
24388 "command runs directly, and is I<not> invoked via the shell (see "
24389 "C<guestfs_sh>)."
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24394 #: ../src/guestfs-actions.pod:1726
24395 msgid "(Added in 0.9.1)"
24396 msgstr ""
24397
24398 #. type: =head2
24399 #: ../src/guestfs-actions.pod:1132
24400 msgid "guestfs_command_lines"
24401 msgstr ""
24402
24403 #. type: verbatim
24404 #: ../src/guestfs-actions.pod:1134
24405 #, no-wrap
24406 msgid ""
24407 " char **\n"
24408 " guestfs_command_lines (guestfs_h *g,\n"
24409 "                        char *const *arguments);\n"
24410 "\n"
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../src/guestfs-actions.pod:1138
24415 msgid ""
24416 "This is the same as C<guestfs_command>, but splits the result into a list of "
24417 "lines."
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../src/guestfs-actions.pod:1141
24422 msgid "See also: C<guestfs_sh_lines>"
24423 msgstr ""
24424
24425 #. type: =head2
24426 #: ../src/guestfs-actions.pod:1152
24427 msgid "guestfs_compress_device_out"
24428 msgstr ""
24429
24430 #. type: verbatim
24431 #: ../src/guestfs-actions.pod:1154
24432 #, no-wrap
24433 msgid ""
24434 " int\n"
24435 " guestfs_compress_device_out (guestfs_h *g,\n"
24436 "                              const char *ctype,\n"
24437 "                              const char *device,\n"
24438 "                              const char *zdevice,\n"
24439 "                              ...);\n"
24440 "\n"
24441 msgstr ""
24442
24443 #. type: verbatim
24444 #: ../src/guestfs-actions.pod:1166
24445 #, no-wrap
24446 msgid ""
24447 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
24448 "\n"
24449 msgstr ""
24450
24451 #. type: textblock
24452 #: ../src/guestfs-actions.pod:1171
24453 msgid ""
24454 "The C<ctype> and optional C<level> parameters have the same meaning as in "
24455 "C<guestfs_compress_out>."
24456 msgstr ""
24457
24458 #. type: textblock
24459 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
24460 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
24461 msgid "(Added in 1.13.15)"
24462 msgstr ""
24463
24464 #. type: =head2
24465 #: ../src/guestfs-actions.pod:1178
24466 msgid "guestfs_compress_device_out_va"
24467 msgstr ""
24468
24469 #. type: verbatim
24470 #: ../src/guestfs-actions.pod:1180
24471 #, no-wrap
24472 msgid ""
24473 " int\n"
24474 " guestfs_compress_device_out_va (guestfs_h *g,\n"
24475 "                                 const char *ctype,\n"
24476 "                                 const char *device,\n"
24477 "                                 const char *zdevice,\n"
24478 "                                 va_list args);\n"
24479 "\n"
24480 msgstr ""
24481
24482 #. type: textblock
24483 #: ../src/guestfs-actions.pod:1187
24484 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
24485 msgstr ""
24486
24487 #. type: =head2
24488 #: ../src/guestfs-actions.pod:1191
24489 msgid "guestfs_compress_device_out_argv"
24490 msgstr ""
24491
24492 #. type: verbatim
24493 #: ../src/guestfs-actions.pod:1193
24494 #, no-wrap
24495 msgid ""
24496 " int\n"
24497 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
24498 "                                   const char *ctype,\n"
24499 "                                   const char *device,\n"
24500 "                                   const char *zdevice,\n"
24501 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
24502 "\n"
24503 msgstr ""
24504
24505 #. type: textblock
24506 #: ../src/guestfs-actions.pod:1200
24507 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
24508 msgstr ""
24509
24510 #. type: =head2
24511 #: ../src/guestfs-actions.pod:1204
24512 msgid "guestfs_compress_out"
24513 msgstr ""
24514
24515 #. type: verbatim
24516 #: ../src/guestfs-actions.pod:1206
24517 #, no-wrap
24518 msgid ""
24519 " int\n"
24520 " guestfs_compress_out (guestfs_h *g,\n"
24521 "                       const char *ctype,\n"
24522 "                       const char *file,\n"
24523 "                       const char *zfile,\n"
24524 "                       ...);\n"
24525 "\n"
24526 msgstr ""
24527
24528 #. type: verbatim
24529 #: ../src/guestfs-actions.pod:1218
24530 #, no-wrap
24531 msgid ""
24532 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
24533 "\n"
24534 msgstr ""
24535
24536 #. type: =head2
24537 #: ../src/guestfs-actions.pod:1237
24538 msgid "guestfs_compress_out_va"
24539 msgstr ""
24540
24541 #. type: verbatim
24542 #: ../src/guestfs-actions.pod:1239
24543 #, no-wrap
24544 msgid ""
24545 " int\n"
24546 " guestfs_compress_out_va (guestfs_h *g,\n"
24547 "                          const char *ctype,\n"
24548 "                          const char *file,\n"
24549 "                          const char *zfile,\n"
24550 "                          va_list args);\n"
24551 "\n"
24552 msgstr ""
24553
24554 #. type: textblock
24555 #: ../src/guestfs-actions.pod:1246
24556 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
24557 msgstr ""
24558
24559 #. type: =head2
24560 #: ../src/guestfs-actions.pod:1250
24561 msgid "guestfs_compress_out_argv"
24562 msgstr ""
24563
24564 #. type: verbatim
24565 #: ../src/guestfs-actions.pod:1252
24566 #, no-wrap
24567 msgid ""
24568 " int\n"
24569 " guestfs_compress_out_argv (guestfs_h *g,\n"
24570 "                            const char *ctype,\n"
24571 "                            const char *file,\n"
24572 "                            const char *zfile,\n"
24573 "                            const struct guestfs_compress_out_argv *optargs);\n"
24574 "\n"
24575 msgstr ""
24576
24577 #. type: textblock
24578 #: ../src/guestfs-actions.pod:1259
24579 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
24580 msgstr ""
24581
24582 #. type: =head2
24583 #: ../src/guestfs-actions.pod:1263
24584 msgid "guestfs_config"
24585 msgstr ""
24586
24587 #. type: verbatim
24588 #: ../src/guestfs-actions.pod:1265
24589 #, no-wrap
24590 msgid ""
24591 " int\n"
24592 " guestfs_config (guestfs_h *g,\n"
24593 "                 const char *qemuparam,\n"
24594 "                 const char *qemuvalue);\n"
24595 "\n"
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../src/guestfs-actions.pod:1283
24600 msgid "guestfs_copy_size"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../src/guestfs-actions.pod:1285
24605 #, no-wrap
24606 msgid ""
24607 " int\n"
24608 " guestfs_copy_size (guestfs_h *g,\n"
24609 "                    const char *src,\n"
24610 "                    const char *dest,\n"
24611 "                    int64_t size);\n"
24612 "\n"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
24617 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
24618 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
24619 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
24620 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
24621 #: ../src/guestfs-actions.pod:7961
24622 msgid ""
24623 "This long-running command can generate progress notification messages so "
24624 "that the caller can display a progress bar or indicator.  To receive these "
24625 "messages, the caller must register a progress event callback.  See L<guestfs"
24626 "(3)/GUESTFS_EVENT_PROGRESS>."
24627 msgstr ""
24628
24629 #. type: textblock
24630 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
24631 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
24632 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
24633 msgid "(Added in 1.0.87)"
24634 msgstr ""
24635
24636 #. type: =head2
24637 #: ../src/guestfs-actions.pod:1306
24638 msgid "guestfs_cp"
24639 msgstr ""
24640
24641 #. type: verbatim
24642 #: ../src/guestfs-actions.pod:1308
24643 #, no-wrap
24644 msgid ""
24645 " int\n"
24646 " guestfs_cp (guestfs_h *g,\n"
24647 "             const char *src,\n"
24648 "             const char *dest);\n"
24649 "\n"
24650 msgstr ""
24651
24652 #. type: textblock
24653 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
24654 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
24655 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
24656 #: ../src/guestfs-actions.pod:5734
24657 msgid "(Added in 1.0.18)"
24658 msgstr ""
24659
24660 #. type: =head2
24661 #: ../src/guestfs-actions.pod:1320
24662 msgid "guestfs_cp_a"
24663 msgstr ""
24664
24665 #. type: verbatim
24666 #: ../src/guestfs-actions.pod:1322
24667 #, no-wrap
24668 msgid ""
24669 " int\n"
24670 " guestfs_cp_a (guestfs_h *g,\n"
24671 "               const char *src,\n"
24672 "               const char *dest);\n"
24673 "\n"
24674 msgstr ""
24675
24676 #. type: =head2
24677 #: ../src/guestfs-actions.pod:1334
24678 msgid "guestfs_dd"
24679 msgstr ""
24680
24681 #. type: verbatim
24682 #: ../src/guestfs-actions.pod:1336
24683 #, no-wrap
24684 msgid ""
24685 " int\n"
24686 " guestfs_dd (guestfs_h *g,\n"
24687 "             const char *src,\n"
24688 "             const char *dest);\n"
24689 "\n"
24690 msgstr ""
24691
24692 #. type: textblock
24693 #: ../src/guestfs-actions.pod:1346
24694 msgid ""
24695 "If the destination is a device, it must be as large or larger than the "
24696 "source file or device, otherwise the copy will fail.  This command cannot do "
24697 "partial copies (see C<guestfs_copy_size>)."
24698 msgstr ""
24699
24700 #. type: =head2
24701 #: ../src/guestfs-actions.pod:1354
24702 msgid "guestfs_df"
24703 msgstr ""
24704
24705 #. type: verbatim
24706 #: ../src/guestfs-actions.pod:1356
24707 #, no-wrap
24708 msgid ""
24709 " char *\n"
24710 " guestfs_df (guestfs_h *g);\n"
24711 "\n"
24712 msgstr ""
24713
24714 #. type: textblock
24715 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24716 msgid ""
24717 "This command is mostly useful for interactive sessions.  It is I<not> "
24718 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24719 "from programs."
24720 msgstr ""
24721
24722 #. type: textblock
24723 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
24724 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
24725 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
24726 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
24727 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
24728 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
24729 #: ../src/guestfs-actions.pod:7804
24730 msgid "(Added in 1.0.54)"
24731 msgstr ""
24732
24733 #. type: =head2
24734 #: ../src/guestfs-actions.pod:1370
24735 msgid "guestfs_df_h"
24736 msgstr ""
24737
24738 #. type: verbatim
24739 #: ../src/guestfs-actions.pod:1372
24740 #, no-wrap
24741 msgid ""
24742 " char *\n"
24743 " guestfs_df_h (guestfs_h *g);\n"
24744 "\n"
24745 msgstr ""
24746
24747 #. type: =head2
24748 #: ../src/guestfs-actions.pod:1387
24749 msgid "guestfs_dmesg"
24750 msgstr ""
24751
24752 #. type: verbatim
24753 #: ../src/guestfs-actions.pod:1389
24754 #, no-wrap
24755 msgid ""
24756 " char *\n"
24757 " guestfs_dmesg (guestfs_h *g);\n"
24758 "\n"
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../src/guestfs-actions.pod:1396
24763 msgid ""
24764 "Another way to get the same information is to enable verbose messages with "
24765 "C<guestfs_set_verbose> or by setting the environment variable "
24766 "C<LIBGUESTFS_DEBUG=1> before running the program."
24767 msgstr ""
24768
24769 #. type: =head2
24770 #: ../src/guestfs-actions.pod:1406
24771 msgid "guestfs_download"
24772 msgstr ""
24773
24774 #. type: verbatim
24775 #: ../src/guestfs-actions.pod:1408
24776 #, no-wrap
24777 msgid ""
24778 " int\n"
24779 " guestfs_download (guestfs_h *g,\n"
24780 "                   const char *remotefilename,\n"
24781 "                   const char *filename);\n"
24782 "\n"
24783 msgstr ""
24784
24785 #. type: textblock
24786 #: ../src/guestfs-actions.pod:1418
24787 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24788 msgstr ""
24789
24790 #. type: =head2
24791 #: ../src/guestfs-actions.pod:1429
24792 msgid "guestfs_download_offset"
24793 msgstr ""
24794
24795 #. type: verbatim
24796 #: ../src/guestfs-actions.pod:1431
24797 #, no-wrap
24798 msgid ""
24799 " int\n"
24800 " guestfs_download_offset (guestfs_h *g,\n"
24801 "                          const char *remotefilename,\n"
24802 "                          const char *filename,\n"
24803 "                          int64_t offset,\n"
24804 "                          int64_t size);\n"
24805 "\n"
24806 msgstr ""
24807
24808 #. type: textblock
24809 #: ../src/guestfs-actions.pod:1444
24810 msgid ""
24811 "Note that there is no limit on the amount of data that can be downloaded "
24812 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24813 "full amount unless an error occurs."
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../src/guestfs-actions.pod:1449
24818 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
24823 msgid "(Added in 1.5.17)"
24824 msgstr ""
24825
24826 #. type: =head2
24827 #: ../src/guestfs-actions.pod:1460
24828 msgid "guestfs_drop_caches"
24829 msgstr ""
24830
24831 #. type: verbatim
24832 #: ../src/guestfs-actions.pod:1462
24833 #, no-wrap
24834 msgid ""
24835 " int\n"
24836 " guestfs_drop_caches (guestfs_h *g,\n"
24837 "                      int whattodrop);\n"
24838 "\n"
24839 msgstr ""
24840
24841 #. type: =head2
24842 #: ../src/guestfs-actions.pod:1480
24843 msgid "guestfs_du"
24844 msgstr ""
24845
24846 #. type: verbatim
24847 #: ../src/guestfs-actions.pod:1482
24848 #, no-wrap
24849 msgid ""
24850 " int64_t\n"
24851 " guestfs_du (guestfs_h *g,\n"
24852 "             const char *path);\n"
24853 "\n"
24854 msgstr ""
24855
24856 #. type: =head2
24857 #: ../src/guestfs-actions.pod:1505
24858 msgid "guestfs_e2fsck_f"
24859 msgstr ""
24860
24861 #. type: verbatim
24862 #: ../src/guestfs-actions.pod:1507
24863 #, no-wrap
24864 msgid ""
24865 " int\n"
24866 " guestfs_e2fsck_f (guestfs_h *g,\n"
24867 "                   const char *device);\n"
24868 "\n"
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../src/guestfs-actions.pod:1515
24873 msgid ""
24874 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24875 "Normally you should use C<guestfs_fsck>."
24876 msgstr ""
24877
24878 #. type: textblock
24879 #: ../src/guestfs-actions.pod:1520
24880 msgid "(Added in 1.0.29)"
24881 msgstr ""
24882
24883 #. type: =head2
24884 #: ../src/guestfs-actions.pod:1522
24885 msgid "guestfs_echo_daemon"
24886 msgstr ""
24887
24888 #. type: verbatim
24889 #: ../src/guestfs-actions.pod:1524
24890 #, no-wrap
24891 msgid ""
24892 " char *\n"
24893 " guestfs_echo_daemon (guestfs_h *g,\n"
24894 "                      char *const *words);\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../src/guestfs-actions.pod:1533
24900 msgid "See also C<guestfs_ping_daemon>."
24901 msgstr ""
24902
24903 #. type: textblock
24904 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
24905 #: ../src/guestfs-actions.pod:6607
24906 msgid "(Added in 1.0.69)"
24907 msgstr ""
24908
24909 #. type: =head2
24910 #: ../src/guestfs-actions.pod:1540
24911 msgid "guestfs_egrep"
24912 msgstr ""
24913
24914 #. type: verbatim
24915 #: ../src/guestfs-actions.pod:1542
24916 #, no-wrap
24917 msgid ""
24918 " char **\n"
24919 " guestfs_egrep (guestfs_h *g,\n"
24920 "                const char *regex,\n"
24921 "                const char *path);\n"
24922 "\n"
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
24927 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
24928 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
24929 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
24930 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
24931 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
24932 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
24933 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
24934 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
24935 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
24936 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
24937 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
24938 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
24939 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
24940 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
24941 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
24942 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
24943 msgid "(Added in 1.0.66)"
24944 msgstr ""
24945
24946 #. type: =head2
24947 #: ../src/guestfs-actions.pod:1559
24948 msgid "guestfs_egrepi"
24949 msgstr ""
24950
24951 #. type: verbatim
24952 #: ../src/guestfs-actions.pod:1561
24953 #, no-wrap
24954 msgid ""
24955 " char **\n"
24956 " guestfs_egrepi (guestfs_h *g,\n"
24957 "                 const char *regex,\n"
24958 "                 const char *path);\n"
24959 "\n"
24960 msgstr ""
24961
24962 #. type: =head2
24963 #: ../src/guestfs-actions.pod:1578
24964 msgid "guestfs_equal"
24965 msgstr ""
24966
24967 #. type: verbatim
24968 #: ../src/guestfs-actions.pod:1580
24969 #, no-wrap
24970 msgid ""
24971 " int\n"
24972 " guestfs_equal (guestfs_h *g,\n"
24973 "                const char *file1,\n"
24974 "                const char *file2);\n"
24975 "\n"
24976 msgstr ""
24977
24978 #. type: =head2
24979 #: ../src/guestfs-actions.pod:1594
24980 msgid "guestfs_exists"
24981 msgstr ""
24982
24983 #. type: verbatim
24984 #: ../src/guestfs-actions.pod:1596
24985 #, no-wrap
24986 msgid ""
24987 " int\n"
24988 " guestfs_exists (guestfs_h *g,\n"
24989 "                 const char *path);\n"
24990 "\n"
24991 msgstr ""
24992
24993 #. type: textblock
24994 #: ../src/guestfs-actions.pod:1603
24995 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24996 msgstr ""
24997
24998 #. type: =head2
24999 #: ../src/guestfs-actions.pod:1609
25000 msgid "guestfs_fallocate"
25001 msgstr ""
25002
25003 #. type: verbatim
25004 #: ../src/guestfs-actions.pod:1611
25005 #, no-wrap
25006 msgid ""
25007 " int\n"
25008 " guestfs_fallocate (guestfs_h *g,\n"
25009 "                    const char *path,\n"
25010 "                    int len);\n"
25011 "\n"
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../src/guestfs-actions.pod:1616
25016 msgid ""
25017 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25018 "call instead."
25019 msgstr ""
25020
25021 #. type: =head2
25022 #: ../src/guestfs-actions.pod:1635
25023 msgid "guestfs_fallocate64"
25024 msgstr ""
25025
25026 #. type: verbatim
25027 #: ../src/guestfs-actions.pod:1637
25028 #, no-wrap
25029 msgid ""
25030 " int\n"
25031 " guestfs_fallocate64 (guestfs_h *g,\n"
25032 "                      const char *path,\n"
25033 "                      int64_t len);\n"
25034 "\n"
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../src/guestfs-actions.pod:1646
25039 msgid ""
25040 "Note that this call allocates disk blocks for the file.  To create a sparse "
25041 "file use C<guestfs_truncate_size> instead."
25042 msgstr ""
25043
25044 #. type: textblock
25045 #: ../src/guestfs-actions.pod:1649
25046 msgid ""
25047 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25048 "oversight it only allowed 30 bit lengths to be specified, effectively "
25049 "limiting the maximum size of files created through that call to 1GB."
25050 msgstr ""
25051
25052 #. type: textblock
25053 #: ../src/guestfs-actions.pod:1660
25054 msgid "(Added in 1.3.17)"
25055 msgstr ""
25056
25057 #. type: =head2
25058 #: ../src/guestfs-actions.pod:1662
25059 msgid "guestfs_fgrep"
25060 msgstr ""
25061
25062 #. type: verbatim
25063 #: ../src/guestfs-actions.pod:1664
25064 #, no-wrap
25065 msgid ""
25066 " char **\n"
25067 " guestfs_fgrep (guestfs_h *g,\n"
25068 "                const char *pattern,\n"
25069 "                const char *path);\n"
25070 "\n"
25071 msgstr ""
25072
25073 #. type: =head2
25074 #: ../src/guestfs-actions.pod:1681
25075 msgid "guestfs_fgrepi"
25076 msgstr ""
25077
25078 #. type: verbatim
25079 #: ../src/guestfs-actions.pod:1683
25080 #, no-wrap
25081 msgid ""
25082 " char **\n"
25083 " guestfs_fgrepi (guestfs_h *g,\n"
25084 "                 const char *pattern,\n"
25085 "                 const char *path);\n"
25086 "\n"
25087 msgstr ""
25088
25089 #. type: =head2
25090 #: ../src/guestfs-actions.pod:1700
25091 msgid "guestfs_file"
25092 msgstr ""
25093
25094 #. type: verbatim
25095 #: ../src/guestfs-actions.pod:1702
25096 #, no-wrap
25097 msgid ""
25098 " char *\n"
25099 " guestfs_file (guestfs_h *g,\n"
25100 "               const char *path);\n"
25101 "\n"
25102 msgstr ""
25103
25104 #. type: textblock
25105 #: ../src/guestfs-actions.pod:1720
25106 msgid ""
25107 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25108 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25109 msgstr ""
25110
25111 #. type: =head2
25112 #: ../src/guestfs-actions.pod:1728
25113 msgid "guestfs_file_architecture"
25114 msgstr ""
25115
25116 #. type: verbatim
25117 #: ../src/guestfs-actions.pod:1730
25118 #, no-wrap
25119 msgid ""
25120 " char *\n"
25121 " guestfs_file_architecture (guestfs_h *g,\n"
25122 "                            const char *filename);\n"
25123 "\n"
25124 msgstr ""
25125
25126 #. type: textblock
25127 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
25128 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
25129 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
25130 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
25131 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
25132 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
25133 #: ../src/guestfs-actions.pod:3694
25134 msgid "(Added in 1.5.3)"
25135 msgstr ""
25136
25137 #. type: =head2
25138 #: ../src/guestfs-actions.pod:1840
25139 msgid "guestfs_filesize"
25140 msgstr ""
25141
25142 #. type: verbatim
25143 #: ../src/guestfs-actions.pod:1842
25144 #, no-wrap
25145 msgid ""
25146 " int64_t\n"
25147 " guestfs_filesize (guestfs_h *g,\n"
25148 "                   const char *file);\n"
25149 "\n"
25150 msgstr ""
25151
25152 #. type: textblock
25153 #: ../src/guestfs-actions.pod:1848
25154 msgid ""
25155 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25156 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25157 "devices, use C<guestfs_blockdev_getsize64>."
25158 msgstr ""
25159
25160 #. type: textblock
25161 #: ../src/guestfs-actions.pod:1854
25162 msgid "(Added in 1.0.82)"
25163 msgstr ""
25164
25165 #. type: =head2
25166 #: ../src/guestfs-actions.pod:1856
25167 msgid "guestfs_fill"
25168 msgstr ""
25169
25170 #. type: verbatim
25171 #: ../src/guestfs-actions.pod:1858
25172 #, no-wrap
25173 msgid ""
25174 " int\n"
25175 " guestfs_fill (guestfs_h *g,\n"
25176 "               int c,\n"
25177 "               int len,\n"
25178 "               const char *path);\n"
25179 "\n"
25180 msgstr ""
25181
25182 #. type: textblock
25183 #: ../src/guestfs-actions.pod:1868
25184 msgid ""
25185 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25186 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25187 "bytes use C<guestfs_fill_pattern>."
25188 msgstr ""
25189
25190 #. type: textblock
25191 #: ../src/guestfs-actions.pod:1880
25192 msgid "(Added in 1.0.79)"
25193 msgstr ""
25194
25195 #. type: =head2
25196 #: ../src/guestfs-actions.pod:1882
25197 msgid "guestfs_fill_pattern"
25198 msgstr ""
25199
25200 #. type: verbatim
25201 #: ../src/guestfs-actions.pod:1884
25202 #, no-wrap
25203 msgid ""
25204 " int\n"
25205 " guestfs_fill_pattern (guestfs_h *g,\n"
25206 "                       const char *pattern,\n"
25207 "                       int len,\n"
25208 "                       const char *path);\n"
25209 "\n"
25210 msgstr ""
25211
25212 #. type: textblock
25213 #: ../src/guestfs-actions.pod:1890
25214 msgid ""
25215 "This function is like C<guestfs_fill> except that it creates a new file of "
25216 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25217 "pattern is truncated if necessary to ensure the length of the file is "
25218 "exactly C<len> bytes."
25219 msgstr ""
25220
25221 #. type: textblock
25222 #: ../src/guestfs-actions.pod:1902
25223 msgid "(Added in 1.3.12)"
25224 msgstr ""
25225
25226 #. type: =head2
25227 #: ../src/guestfs-actions.pod:1904
25228 msgid "guestfs_find"
25229 msgstr ""
25230
25231 #. type: verbatim
25232 #: ../src/guestfs-actions.pod:1906
25233 #, no-wrap
25234 msgid ""
25235 " char **\n"
25236 " guestfs_find (guestfs_h *g,\n"
25237 "               const char *directory);\n"
25238 "\n"
25239 msgstr ""
25240
25241 #. type: textblock
25242 #: ../src/guestfs-actions.pod:1922
25243 msgid ""
25244 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25245 msgstr ""
25246
25247 #. type: textblock
25248 #: ../src/guestfs-actions.pod:1935
25249 msgid "See also C<guestfs_find0>."
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
25254 #: ../src/guestfs-actions.pod:6152
25255 msgid "(Added in 1.0.27)"
25256 msgstr ""
25257
25258 #. type: =head2
25259 #: ../src/guestfs-actions.pod:1946
25260 msgid "guestfs_find0"
25261 msgstr ""
25262
25263 #. type: verbatim
25264 #: ../src/guestfs-actions.pod:1948
25265 #, no-wrap
25266 msgid ""
25267 " int\n"
25268 " guestfs_find0 (guestfs_h *g,\n"
25269 "                const char *directory,\n"
25270 "                const char *files);\n"
25271 "\n"
25272 msgstr ""
25273
25274 #. type: textblock
25275 #: ../src/guestfs-actions.pod:1957
25276 msgid ""
25277 "This command works the same way as C<guestfs_find> with the following "
25278 "exceptions:"
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:1984
25283 msgid "(Added in 1.0.74)"
25284 msgstr ""
25285
25286 #. type: =head2
25287 #: ../src/guestfs-actions.pod:1986
25288 msgid "guestfs_findfs_label"
25289 msgstr ""
25290
25291 #. type: verbatim
25292 #: ../src/guestfs-actions.pod:1988
25293 #, no-wrap
25294 msgid ""
25295 " char *\n"
25296 " guestfs_findfs_label (guestfs_h *g,\n"
25297 "                       const char *label);\n"
25298 "\n"
25299 msgstr ""
25300
25301 #. type: textblock
25302 #: ../src/guestfs-actions.pod:1996
25303 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25304 msgstr ""
25305
25306 #. type: =head2
25307 #: ../src/guestfs-actions.pod:2003
25308 msgid "guestfs_findfs_uuid"
25309 msgstr ""
25310
25311 #. type: verbatim
25312 #: ../src/guestfs-actions.pod:2005
25313 #, no-wrap
25314 msgid ""
25315 " char *\n"
25316 " guestfs_findfs_uuid (guestfs_h *g,\n"
25317 "                      const char *uuid);\n"
25318 "\n"
25319 msgstr ""
25320
25321 #. type: textblock
25322 #: ../src/guestfs-actions.pod:2013
25323 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25324 msgstr ""
25325
25326 #. type: =head2
25327 #: ../src/guestfs-actions.pod:2020
25328 msgid "guestfs_fsck"
25329 msgstr ""
25330
25331 #. type: verbatim
25332 #: ../src/guestfs-actions.pod:2022
25333 #, no-wrap
25334 msgid ""
25335 " int\n"
25336 " guestfs_fsck (guestfs_h *g,\n"
25337 "               const char *fstype,\n"
25338 "               const char *device);\n"
25339 "\n"
25340 msgstr ""
25341
25342 #. type: textblock
25343 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
25344 msgid "(Added in 1.0.16)"
25345 msgstr ""
25346
25347 #. type: =head2
25348 #: ../src/guestfs-actions.pod:2059
25349 msgid "guestfs_get_append"
25350 msgstr ""
25351
25352 #. type: verbatim
25353 #: ../src/guestfs-actions.pod:2061
25354 #, no-wrap
25355 msgid ""
25356 " const char *\n"
25357 " guestfs_get_append (guestfs_h *g);\n"
25358 "\n"
25359 msgstr ""
25360
25361 #. type: textblock
25362 #: ../src/guestfs-actions.pod:2069
25363 msgid ""
25364 "This function returns a string which may be NULL.  There is no way to return "
25365 "an error from this function.  The string is owned by the guest handle and "
25366 "must I<not> be freed."
25367 msgstr ""
25368
25369 #. type: textblock
25370 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
25371 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
25372 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
25373 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
25374 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
25375 msgid "(Added in 1.0.26)"
25376 msgstr ""
25377
25378 #. type: =head2
25379 #: ../src/guestfs-actions.pod:2075
25380 msgid "guestfs_get_attach_method"
25381 msgstr ""
25382
25383 #. type: verbatim
25384 #: ../src/guestfs-actions.pod:2077
25385 #, no-wrap
25386 msgid ""
25387 " char *\n"
25388 " guestfs_get_attach_method (guestfs_h *g);\n"
25389 "\n"
25390 msgstr ""
25391
25392 #. type: textblock
25393 #: ../src/guestfs-actions.pod:2080
25394 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25395 msgstr ""
25396
25397 #. type: textblock
25398 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
25399 msgid "(Added in 1.9.8)"
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../src/guestfs-actions.pod:2087
25404 msgid "guestfs_get_autosync"
25405 msgstr ""
25406
25407 #. type: verbatim
25408 #: ../src/guestfs-actions.pod:2089
25409 #, no-wrap
25410 msgid ""
25411 " int\n"
25412 " guestfs_get_autosync (guestfs_h *g);\n"
25413 "\n"
25414 msgstr ""
25415
25416 #. type: =head2
25417 #: ../src/guestfs-actions.pod:2098
25418 msgid "guestfs_get_direct"
25419 msgstr ""
25420
25421 #. type: verbatim
25422 #: ../src/guestfs-actions.pod:2100
25423 #, no-wrap
25424 msgid ""
25425 " int\n"
25426 " guestfs_get_direct (guestfs_h *g);\n"
25427 "\n"
25428 msgstr ""
25429
25430 #. type: textblock
25431 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
25432 msgid "(Added in 1.0.72)"
25433 msgstr ""
25434
25435 #. type: =head2
25436 #: ../src/guestfs-actions.pod:2109
25437 msgid "guestfs_get_e2label"
25438 msgstr ""
25439
25440 #. type: verbatim
25441 #: ../src/guestfs-actions.pod:2111
25442 #, no-wrap
25443 msgid ""
25444 " char *\n"
25445 " guestfs_get_e2label (guestfs_h *g,\n"
25446 "                      const char *device);\n"
25447 "\n"
25448 msgstr ""
25449
25450 #. type: textblock
25451 #: ../src/guestfs-actions.pod:2115
25452 msgid ""
25453 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25454 "call instead."
25455 msgstr ""
25456
25457 #. type: textblock
25458 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
25459 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
25460 msgid "(Added in 1.0.15)"
25461 msgstr ""
25462
25463 #. type: =head2
25464 #: ../src/guestfs-actions.pod:2130
25465 msgid "guestfs_get_e2uuid"
25466 msgstr ""
25467
25468 #. type: verbatim
25469 #: ../src/guestfs-actions.pod:2132
25470 #, no-wrap
25471 msgid ""
25472 " char *\n"
25473 " guestfs_get_e2uuid (guestfs_h *g,\n"
25474 "                     const char *device);\n"
25475 "\n"
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../src/guestfs-actions.pod:2136
25480 msgid ""
25481 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25482 "call instead."
25483 msgstr ""
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:2151
25487 msgid "guestfs_get_memsize"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:2153
25492 #, no-wrap
25493 msgid ""
25494 " int\n"
25495 " guestfs_get_memsize (guestfs_h *g);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:2159
25501 msgid ""
25502 "If C<guestfs_set_memsize> was not called on this handle, and if "
25503 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25504 "value for memsize."
25505 msgstr ""
25506
25507 #. type: textblock
25508 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
25509 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
25510 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
25511 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
25512 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
25513 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
25514 msgid "(Added in 1.0.55)"
25515 msgstr ""
25516
25517 #. type: =head2
25518 #: ../src/guestfs-actions.pod:2170
25519 msgid "guestfs_get_network"
25520 msgstr ""
25521
25522 #. type: verbatim
25523 #: ../src/guestfs-actions.pod:2172
25524 #, no-wrap
25525 msgid ""
25526 " int\n"
25527 " guestfs_get_network (guestfs_h *g);\n"
25528 "\n"
25529 msgstr ""
25530
25531 #. type: textblock
25532 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
25533 msgid "(Added in 1.5.4)"
25534 msgstr ""
25535
25536 #. type: =head2
25537 #: ../src/guestfs-actions.pod:2181
25538 msgid "guestfs_get_path"
25539 msgstr ""
25540
25541 #. type: verbatim
25542 #: ../src/guestfs-actions.pod:2183
25543 #, no-wrap
25544 msgid ""
25545 " const char *\n"
25546 " guestfs_get_path (guestfs_h *g);\n"
25547 "\n"
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
25552 msgid ""
25553 "This function returns a string, or NULL on error.  The string is owned by "
25554 "the guest handle and must I<not> be freed."
25555 msgstr ""
25556
25557 #. type: =head2
25558 #: ../src/guestfs-actions.pod:2196
25559 msgid "guestfs_get_pgroup"
25560 msgstr ""
25561
25562 #. type: verbatim
25563 #: ../src/guestfs-actions.pod:2198
25564 #, no-wrap
25565 msgid ""
25566 " int\n"
25567 " guestfs_get_pgroup (guestfs_h *g);\n"
25568 "\n"
25569 msgstr ""
25570
25571 #. type: textblock
25572 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
25573 #: ../src/guestfs-actions.pod:7844
25574 msgid "(Added in 1.11.18)"
25575 msgstr ""
25576
25577 #. type: =head2
25578 #: ../src/guestfs-actions.pod:2207
25579 msgid "guestfs_get_pid"
25580 msgstr ""
25581
25582 #. type: verbatim
25583 #: ../src/guestfs-actions.pod:2209
25584 #, no-wrap
25585 msgid ""
25586 " int\n"
25587 " guestfs_get_pid (guestfs_h *g);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: textblock
25592 #: ../src/guestfs-actions.pod:2219
25593 msgid "(Added in 1.0.56)"
25594 msgstr ""
25595
25596 #. type: =head2
25597 #: ../src/guestfs-actions.pod:2221
25598 msgid "guestfs_get_qemu"
25599 msgstr ""
25600
25601 #. type: verbatim
25602 #: ../src/guestfs-actions.pod:2223
25603 #, no-wrap
25604 msgid ""
25605 " const char *\n"
25606 " guestfs_get_qemu (guestfs_h *g);\n"
25607 "\n"
25608 msgstr ""
25609
25610 #. type: textblock
25611 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
25612 msgid "(Added in 1.0.6)"
25613 msgstr ""
25614
25615 #. type: =head2
25616 #: ../src/guestfs-actions.pod:2236
25617 msgid "guestfs_get_recovery_proc"
25618 msgstr ""
25619
25620 #. type: verbatim
25621 #: ../src/guestfs-actions.pod:2238
25622 #, no-wrap
25623 msgid ""
25624 " int\n"
25625 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25626 "\n"
25627 msgstr ""
25628
25629 #. type: textblock
25630 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
25631 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
25632 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
25633 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
25634 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
25635 #: ../src/guestfs-actions.pod:7467
25636 msgid "(Added in 1.0.77)"
25637 msgstr ""
25638
25639 #. type: =head2
25640 #: ../src/guestfs-actions.pod:2247
25641 msgid "guestfs_get_selinux"
25642 msgstr ""
25643
25644 #. type: verbatim
25645 #: ../src/guestfs-actions.pod:2249
25646 #, no-wrap
25647 msgid ""
25648 " int\n"
25649 " guestfs_get_selinux (guestfs_h *g);\n"
25650 "\n"
25651 msgstr ""
25652
25653 #. type: textblock
25654 #: ../src/guestfs-actions.pod:2252
25655 msgid ""
25656 "This returns the current setting of the selinux flag which is passed to the "
25657 "appliance at boot time.  See C<guestfs_set_selinux>."
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
25662 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
25663 msgid "(Added in 1.0.67)"
25664 msgstr ""
25665
25666 #. type: =head2
25667 #: ../src/guestfs-actions.pod:2262
25668 msgid "guestfs_get_smp"
25669 msgstr ""
25670
25671 #. type: verbatim
25672 #: ../src/guestfs-actions.pod:2264
25673 #, no-wrap
25674 msgid ""
25675 " int\n"
25676 " guestfs_get_smp (guestfs_h *g);\n"
25677 "\n"
25678 msgstr ""
25679
25680 #. type: =head2
25681 #: ../src/guestfs-actions.pod:2273
25682 msgid "guestfs_get_state"
25683 msgstr ""
25684
25685 #. type: verbatim
25686 #: ../src/guestfs-actions.pod:2275
25687 #, no-wrap
25688 msgid ""
25689 " int\n"
25690 " guestfs_get_state (guestfs_h *g);\n"
25691 "\n"
25692 msgstr ""
25693
25694 #. type: =head2
25695 #: ../src/guestfs-actions.pod:2287
25696 msgid "guestfs_get_trace"
25697 msgstr ""
25698
25699 #. type: verbatim
25700 #: ../src/guestfs-actions.pod:2289
25701 #, no-wrap
25702 msgid ""
25703 " int\n"
25704 " guestfs_get_trace (guestfs_h *g);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: =head2
25709 #: ../src/guestfs-actions.pod:2298
25710 msgid "guestfs_get_umask"
25711 msgstr ""
25712
25713 #. type: verbatim
25714 #: ../src/guestfs-actions.pod:2300
25715 #, no-wrap
25716 msgid ""
25717 " int\n"
25718 " guestfs_get_umask (guestfs_h *g);\n"
25719 "\n"
25720 msgstr ""
25721
25722 #. type: textblock
25723 #: ../src/guestfs-actions.pod:2303
25724 msgid ""
25725 "Return the current umask.  By default the umask is C<022> unless it has been "
25726 "set by calling C<guestfs_umask>."
25727 msgstr ""
25728
25729 #. type: =head2
25730 #: ../src/guestfs-actions.pod:2310
25731 msgid "guestfs_get_verbose"
25732 msgstr ""
25733
25734 #. type: verbatim
25735 #: ../src/guestfs-actions.pod:2312
25736 #, no-wrap
25737 msgid ""
25738 " int\n"
25739 " guestfs_get_verbose (guestfs_h *g);\n"
25740 "\n"
25741 msgstr ""
25742
25743 #. type: =head2
25744 #: ../src/guestfs-actions.pod:2321
25745 msgid "guestfs_getcon"
25746 msgstr ""
25747
25748 #. type: verbatim
25749 #: ../src/guestfs-actions.pod:2323
25750 #, no-wrap
25751 msgid ""
25752 " char *\n"
25753 " guestfs_getcon (guestfs_h *g);\n"
25754 "\n"
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../src/guestfs-actions.pod:2328
25759 msgid ""
25760 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25761 msgstr ""
25762
25763 #. type: =head2
25764 #: ../src/guestfs-actions.pod:2336
25765 msgid "guestfs_getxattr"
25766 msgstr ""
25767
25768 #. type: verbatim
25769 #: ../src/guestfs-actions.pod:2338
25770 #, no-wrap
25771 msgid ""
25772 " char *\n"
25773 " guestfs_getxattr (guestfs_h *g,\n"
25774 "                   const char *path,\n"
25775 "                   const char *name,\n"
25776 "                   size_t *size_r);\n"
25777 "\n"
25778 msgstr ""
25779
25780 #. type: textblock
25781 #: ../src/guestfs-actions.pod:2344
25782 msgid ""
25783 "Get a single extended attribute from file C<path> named C<name>.  This call "
25784 "follows symlinks.  If you want to lookup an extended attribute for the "
25785 "symlink itself, use C<guestfs_lgetxattr>."
25786 msgstr ""
25787
25788 #. type: textblock
25789 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
25790 msgid ""
25791 "Normally it is better to get all extended attributes from a file in one go "
25792 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25793 "implementations are buggy and do not provide a way to list out attributes.  "
25794 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25795 "extended attributes you want in advance and call this function."
25796 msgstr ""
25797
25798 #. type: textblock
25799 #: ../src/guestfs-actions.pod:2358
25800 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25801 msgstr ""
25802
25803 #. type: textblock
25804 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
25805 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
25806 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
25807 #: ../src/guestfs-actions.pod:5960
25808 msgid ""
25809 "This function returns a buffer, or NULL on error.  The size of the returned "
25810 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25811 "after use>."
25812 msgstr ""
25813
25814 #. type: textblock
25815 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
25816 msgid "(Added in 1.7.24)"
25817 msgstr ""
25818
25819 #. type: =head2
25820 #: ../src/guestfs-actions.pod:2366
25821 msgid "guestfs_getxattrs"
25822 msgstr ""
25823
25824 #. type: verbatim
25825 #: ../src/guestfs-actions.pod:2368
25826 #, no-wrap
25827 msgid ""
25828 " struct guestfs_xattr_list *\n"
25829 " guestfs_getxattrs (guestfs_h *g,\n"
25830 "                    const char *path);\n"
25831 "\n"
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../src/guestfs-actions.pod:2378
25836 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25837 msgstr ""
25838
25839 #. type: textblock
25840 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
25841 #: ../src/guestfs-actions.pod:4546
25842 msgid ""
25843 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25844 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25845 msgstr ""
25846
25847 #. type: textblock
25848 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
25849 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
25850 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
25851 #: ../src/guestfs-actions.pod:8055
25852 msgid "(Added in 1.0.59)"
25853 msgstr ""
25854
25855 #. type: =head2
25856 #: ../src/guestfs-actions.pod:2386
25857 msgid "guestfs_glob_expand"
25858 msgstr ""
25859
25860 #. type: verbatim
25861 #: ../src/guestfs-actions.pod:2388
25862 #, no-wrap
25863 msgid ""
25864 " char **\n"
25865 " guestfs_glob_expand (guestfs_h *g,\n"
25866 "                      const char *pattern);\n"
25867 "\n"
25868 msgstr ""
25869
25870 #. type: textblock
25871 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
25872 #: ../src/guestfs-actions.pod:6870
25873 msgid "(Added in 1.0.50)"
25874 msgstr ""
25875
25876 #. type: =head2
25877 #: ../src/guestfs-actions.pod:2409
25878 msgid "guestfs_grep"
25879 msgstr ""
25880
25881 #. type: verbatim
25882 #: ../src/guestfs-actions.pod:2411
25883 #, no-wrap
25884 msgid ""
25885 " char **\n"
25886 " guestfs_grep (guestfs_h *g,\n"
25887 "               const char *regex,\n"
25888 "               const char *path);\n"
25889 "\n"
25890 msgstr ""
25891
25892 #. type: =head2
25893 #: ../src/guestfs-actions.pod:2428
25894 msgid "guestfs_grepi"
25895 msgstr ""
25896
25897 #. type: verbatim
25898 #: ../src/guestfs-actions.pod:2430
25899 #, no-wrap
25900 msgid ""
25901 " char **\n"
25902 " guestfs_grepi (guestfs_h *g,\n"
25903 "                const char *regex,\n"
25904 "                const char *path);\n"
25905 "\n"
25906 msgstr ""
25907
25908 #. type: =head2
25909 #: ../src/guestfs-actions.pod:2447
25910 msgid "guestfs_grub_install"
25911 msgstr ""
25912
25913 #. type: verbatim
25914 #: ../src/guestfs-actions.pod:2449
25915 #, no-wrap
25916 msgid ""
25917 " int\n"
25918 " guestfs_grub_install (guestfs_h *g,\n"
25919 "                       const char *root,\n"
25920 "                       const char *device);\n"
25921 "\n"
25922 msgstr ""
25923
25924 #. type: textblock
25925 #: ../src/guestfs-actions.pod:2492
25926 msgid "(Added in 1.0.17)"
25927 msgstr ""
25928
25929 #. type: =head2
25930 #: ../src/guestfs-actions.pod:2494
25931 msgid "guestfs_head"
25932 msgstr ""
25933
25934 #. type: verbatim
25935 #: ../src/guestfs-actions.pod:2496
25936 #, no-wrap
25937 msgid ""
25938 " char **\n"
25939 " guestfs_head (guestfs_h *g,\n"
25940 "               const char *path);\n"
25941 "\n"
25942 msgstr ""
25943
25944 #. type: =head2
25945 #: ../src/guestfs-actions.pod:2512
25946 msgid "guestfs_head_n"
25947 msgstr ""
25948
25949 #. type: verbatim
25950 #: ../src/guestfs-actions.pod:2514
25951 #, no-wrap
25952 msgid ""
25953 " char **\n"
25954 " guestfs_head_n (guestfs_h *g,\n"
25955 "                 int nrlines,\n"
25956 "                 const char *path);\n"
25957 "\n"
25958 msgstr ""
25959
25960 #. type: =head2
25961 #: ../src/guestfs-actions.pod:2536
25962 msgid "guestfs_hexdump"
25963 msgstr ""
25964
25965 #. type: verbatim
25966 #: ../src/guestfs-actions.pod:2538
25967 #, no-wrap
25968 msgid ""
25969 " char *\n"
25970 " guestfs_hexdump (guestfs_h *g,\n"
25971 "                  const char *path);\n"
25972 "\n"
25973 msgstr ""
25974
25975 #. type: textblock
25976 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
25977 #: ../src/guestfs-actions.pod:6989
25978 msgid "(Added in 1.0.22)"
25979 msgstr ""
25980
25981 #. type: =head2
25982 #: ../src/guestfs-actions.pod:2553
25983 msgid "guestfs_initrd_cat"
25984 msgstr ""
25985
25986 #. type: verbatim
25987 #: ../src/guestfs-actions.pod:2555
25988 #, no-wrap
25989 msgid ""
25990 " char *\n"
25991 " guestfs_initrd_cat (guestfs_h *g,\n"
25992 "                     const char *initrdpath,\n"
25993 "                     const char *filename,\n"
25994 "                     size_t *size_r);\n"
25995 "\n"
25996 msgstr ""
25997
25998 #. type: textblock
25999 #: ../src/guestfs-actions.pod:2571
26000 msgid "See also C<guestfs_initrd_list>."
26001 msgstr ""
26002
26003 #. type: =head2
26004 #: ../src/guestfs-actions.pod:2582
26005 msgid "guestfs_initrd_list"
26006 msgstr ""
26007
26008 #. type: verbatim
26009 #: ../src/guestfs-actions.pod:2584
26010 #, no-wrap
26011 msgid ""
26012 " char **\n"
26013 " guestfs_initrd_list (guestfs_h *g,\n"
26014 "                      const char *path);\n"
26015 "\n"
26016 msgstr ""
26017
26018 #. type: =head2
26019 #: ../src/guestfs-actions.pod:2604
26020 msgid "guestfs_inotify_add_watch"
26021 msgstr ""
26022
26023 #. type: verbatim
26024 #: ../src/guestfs-actions.pod:2606
26025 #, no-wrap
26026 msgid ""
26027 " int64_t\n"
26028 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26029 "                            const char *path,\n"
26030 "                            int mask);\n"
26031 "\n"
26032 msgstr ""
26033
26034 #. type: =head2
26035 #: ../src/guestfs-actions.pod:2625
26036 msgid "guestfs_inotify_close"
26037 msgstr ""
26038
26039 #. type: verbatim
26040 #: ../src/guestfs-actions.pod:2627
26041 #, no-wrap
26042 msgid ""
26043 " int\n"
26044 " guestfs_inotify_close (guestfs_h *g);\n"
26045 "\n"
26046 msgstr ""
26047
26048 #. type: =head2
26049 #: ../src/guestfs-actions.pod:2638
26050 msgid "guestfs_inotify_files"
26051 msgstr ""
26052
26053 #. type: verbatim
26054 #: ../src/guestfs-actions.pod:2640
26055 #, no-wrap
26056 msgid ""
26057 " char **\n"
26058 " guestfs_inotify_files (guestfs_h *g);\n"
26059 "\n"
26060 msgstr ""
26061
26062 #. type: textblock
26063 #: ../src/guestfs-actions.pod:2643
26064 msgid ""
26065 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26066 "returns a list of pathnames of objects that were touched.  The returned "
26067 "pathnames are sorted and deduplicated."
26068 msgstr ""
26069
26070 #. type: =head2
26071 #: ../src/guestfs-actions.pod:2653
26072 msgid "guestfs_inotify_init"
26073 msgstr ""
26074
26075 #. type: verbatim
26076 #: ../src/guestfs-actions.pod:2655
26077 #, no-wrap
26078 msgid ""
26079 " int\n"
26080 " guestfs_inotify_init (guestfs_h *g,\n"
26081 "                       int maxevents);\n"
26082 "\n"
26083 msgstr ""
26084
26085 #. type: textblock
26086 #: ../src/guestfs-actions.pod:2663
26087 msgid ""
26088 "C<maxevents> is the maximum number of events which will be queued up between "
26089 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26090 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26091 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26092 "throws away events, but records the fact that it threw them away by setting "
26093 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26094 "C<guestfs_inotify_read>)."
26095 msgstr ""
26096
26097 #. type: textblock
26098 #: ../src/guestfs-actions.pod:2673
26099 msgid ""
26100 "Before any events are generated, you have to add some watches to the "
26101 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26102 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26103 msgstr ""
26104
26105 #. type: textblock
26106 #: ../src/guestfs-actions.pod:2679
26107 msgid ""
26108 "Queued up events should be read periodically by calling "
26109 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26110 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26111 "often enough then you risk the internal queue overflowing."
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../src/guestfs-actions.pod:2686
26116 msgid ""
26117 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26118 "This also removes any watches automatically."
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:2699
26123 msgid "guestfs_inotify_read"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:2701
26128 #, no-wrap
26129 msgid ""
26130 " struct guestfs_inotify_event_list *\n"
26131 " guestfs_inotify_read (guestfs_h *g);\n"
26132 "\n"
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../src/guestfs-actions.pod:2715
26137 msgid ""
26138 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26139 "there was an error.  I<The caller must call "
26140 "C<guestfs_free_inotify_event_list> after use>."
26141 msgstr ""
26142
26143 #. type: =head2
26144 #: ../src/guestfs-actions.pod:2721
26145 msgid "guestfs_inotify_rm_watch"
26146 msgstr ""
26147
26148 #. type: verbatim
26149 #: ../src/guestfs-actions.pod:2723
26150 #, no-wrap
26151 msgid ""
26152 " int\n"
26153 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26154 "                           int wd);\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: textblock
26159 #: ../src/guestfs-actions.pod:2727
26160 msgid ""
26161 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26162 msgstr ""
26163
26164 #. type: =head2
26165 #: ../src/guestfs-actions.pod:2734
26166 msgid "guestfs_inspect_get_arch"
26167 msgstr ""
26168
26169 #. type: verbatim
26170 #: ../src/guestfs-actions.pod:2736
26171 #, no-wrap
26172 msgid ""
26173 " char *\n"
26174 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26175 "                           const char *root);\n"
26176 "\n"
26177 msgstr ""
26178
26179 #. type: textblock
26180 #: ../src/guestfs-actions.pod:2740
26181 msgid ""
26182 "This returns the architecture of the inspected operating system.  The "
26183 "possible return values are listed under C<guestfs_file_architecture>."
26184 msgstr ""
26185
26186 #. type: =head2
26187 #: ../src/guestfs-actions.pod:2754
26188 msgid "guestfs_inspect_get_distro"
26189 msgstr ""
26190
26191 #. type: verbatim
26192 #: ../src/guestfs-actions.pod:2756
26193 #, no-wrap
26194 msgid ""
26195 " char *\n"
26196 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26197 "                             const char *root);\n"
26198 "\n"
26199 msgstr ""
26200
26201 #. type: =head2
26202 #: ../src/guestfs-actions.pod:2848
26203 msgid "guestfs_inspect_get_drive_mappings"
26204 msgstr ""
26205
26206 #. type: verbatim
26207 #: ../src/guestfs-actions.pod:2850
26208 #, no-wrap
26209 msgid ""
26210 " char **\n"
26211 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26212 "                                     const char *root);\n"
26213 "\n"
26214 msgstr ""
26215
26216 #. type: textblock
26217 #: ../src/guestfs-actions.pod:2879
26218 msgid ""
26219 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26220 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26221 msgstr ""
26222
26223 #. type: textblock
26224 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
26225 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
26226 #: ../src/guestfs-actions.pod:7291
26227 msgid ""
26228 "This function returns a NULL-terminated array of strings, or NULL if there "
26229 "was an error.  The array of strings will always have length C<2n+1>, where "
26230 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26231 "caller must free the strings and the array after use>."
26232 msgstr ""
26233
26234 #. type: textblock
26235 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
26236 msgid "(Added in 1.9.17)"
26237 msgstr ""
26238
26239 #. type: =head2
26240 #: ../src/guestfs-actions.pod:2891
26241 msgid "guestfs_inspect_get_filesystems"
26242 msgstr ""
26243
26244 #. type: verbatim
26245 #: ../src/guestfs-actions.pod:2893
26246 #, no-wrap
26247 msgid ""
26248 " char **\n"
26249 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26250 "                                  const char *root);\n"
26251 "\n"
26252 msgstr ""
26253
26254 #. type: textblock
26255 #: ../src/guestfs-actions.pod:2905
26256 msgid ""
26257 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26258 "C<guestfs_inspect_get_mountpoints>."
26259 msgstr ""
26260
26261 #. type: =head2
26262 #: ../src/guestfs-actions.pod:2914
26263 msgid "guestfs_inspect_get_format"
26264 msgstr ""
26265
26266 #. type: verbatim
26267 #: ../src/guestfs-actions.pod:2916
26268 #, no-wrap
26269 msgid ""
26270 " char *\n"
26271 " guestfs_inspect_get_format (guestfs_h *g,\n"
26272 "                             const char *root);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: textblock
26277 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
26278 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
26279 #: ../src/guestfs-actions.pod:6171
26280 msgid "(Added in 1.9.4)"
26281 msgstr ""
26282
26283 #. type: =head2
26284 #: ../src/guestfs-actions.pod:2952
26285 msgid "guestfs_inspect_get_hostname"
26286 msgstr ""
26287
26288 #. type: verbatim
26289 #: ../src/guestfs-actions.pod:2954
26290 #, no-wrap
26291 msgid ""
26292 " char *\n"
26293 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26294 "                               const char *root);\n"
26295 "\n"
26296 msgstr ""
26297
26298 #. type: textblock
26299 #: ../src/guestfs-actions.pod:2969
26300 msgid "(Added in 1.7.9)"
26301 msgstr ""
26302
26303 #. type: =head2
26304 #: ../src/guestfs-actions.pod:2971
26305 msgid "guestfs_inspect_get_icon"
26306 msgstr ""
26307
26308 #. type: verbatim
26309 #: ../src/guestfs-actions.pod:2973
26310 #, no-wrap
26311 msgid ""
26312 " char *\n"
26313 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26314 "                           const char *root,\n"
26315 "                           size_t *size_r,\n"
26316 "                           ...);\n"
26317 "\n"
26318 msgstr ""
26319
26320 #. type: verbatim
26321 #: ../src/guestfs-actions.pod:2984
26322 #, no-wrap
26323 msgid ""
26324 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26325 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
26331 #: ../src/guestfs-actions.pod:5120
26332 msgid "(Added in 1.11.12)"
26333 msgstr ""
26334
26335 #. type: =head2
26336 #: ../src/guestfs-actions.pod:3053
26337 msgid "guestfs_inspect_get_icon_va"
26338 msgstr ""
26339
26340 #. type: verbatim
26341 #: ../src/guestfs-actions.pod:3055
26342 #, no-wrap
26343 msgid ""
26344 " char *\n"
26345 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26346 "                              const char *root,\n"
26347 "                              size_t *size_r,\n"
26348 "                              va_list args);\n"
26349 "\n"
26350 msgstr ""
26351
26352 #. type: textblock
26353 #: ../src/guestfs-actions.pod:3061
26354 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26355 msgstr ""
26356
26357 #. type: =head2
26358 #: ../src/guestfs-actions.pod:3065
26359 msgid "guestfs_inspect_get_icon_argv"
26360 msgstr ""
26361
26362 #. type: verbatim
26363 #: ../src/guestfs-actions.pod:3067
26364 #, no-wrap
26365 msgid ""
26366 " char *\n"
26367 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26368 "                                const char *root,\n"
26369 "                                size_t *size_r,\n"
26370 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26371 "\n"
26372 msgstr ""
26373
26374 #. type: textblock
26375 #: ../src/guestfs-actions.pod:3073
26376 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26377 msgstr ""
26378
26379 #. type: =head2
26380 #: ../src/guestfs-actions.pod:3077
26381 msgid "guestfs_inspect_get_major_version"
26382 msgstr ""
26383
26384 #. type: verbatim
26385 #: ../src/guestfs-actions.pod:3079
26386 #, no-wrap
26387 msgid ""
26388 " int\n"
26389 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26390 "                                    const char *root);\n"
26391 "\n"
26392 msgstr ""
26393
26394 #. type: =head2
26395 #: ../src/guestfs-actions.pod:3101
26396 msgid "guestfs_inspect_get_minor_version"
26397 msgstr ""
26398
26399 #. type: verbatim
26400 #: ../src/guestfs-actions.pod:3103
26401 #, no-wrap
26402 msgid ""
26403 " int\n"
26404 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26405 "                                    const char *root);\n"
26406 "\n"
26407 msgstr ""
26408
26409 #. type: textblock
26410 #: ../src/guestfs-actions.pod:3112
26411 msgid ""
26412 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26413 "C<guestfs_inspect_get_major_version>."
26414 msgstr ""
26415
26416 #. type: =head2
26417 #: ../src/guestfs-actions.pod:3119
26418 msgid "guestfs_inspect_get_mountpoints"
26419 msgstr ""
26420
26421 #. type: verbatim
26422 #: ../src/guestfs-actions.pod:3121
26423 #, no-wrap
26424 msgid ""
26425 " char **\n"
26426 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26427 "                                  const char *root);\n"
26428 "\n"
26429 msgstr ""
26430
26431 #. type: textblock
26432 #: ../src/guestfs-actions.pod:3142
26433 msgid ""
26434 "For operating systems like Windows which still use drive letters, this call "
26435 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26436 "information about the mapping of drive letters to partitions, see "
26437 "C<guestfs_inspect_get_drive_mappings>."
26438 msgstr ""
26439
26440 #. type: textblock
26441 #: ../src/guestfs-actions.pod:3148
26442 msgid ""
26443 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26444 "C<guestfs_inspect_get_filesystems>."
26445 msgstr ""
26446
26447 #. type: =head2
26448 #: ../src/guestfs-actions.pod:3159
26449 msgid "guestfs_inspect_get_package_format"
26450 msgstr ""
26451
26452 #. type: verbatim
26453 #: ../src/guestfs-actions.pod:3161
26454 #, no-wrap
26455 msgid ""
26456 " char *\n"
26457 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26458 "                                     const char *root);\n"
26459 "\n"
26460 msgstr ""
26461
26462 #. type: textblock
26463 #: ../src/guestfs-actions.pod:3165
26464 msgid ""
26465 "This function and C<guestfs_inspect_get_package_management> return the "
26466 "package format and package management tool used by the inspected operating "
26467 "system.  For example for Fedora these functions would return C<rpm> (package "
26468 "format) and C<yum> (package management)."
26469 msgstr ""
26470
26471 #. type: textblock
26472 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
26473 msgid "(Added in 1.7.5)"
26474 msgstr ""
26475
26476 #. type: =head2
26477 #: ../src/guestfs-actions.pod:3185
26478 msgid "guestfs_inspect_get_package_management"
26479 msgstr ""
26480
26481 #. type: verbatim
26482 #: ../src/guestfs-actions.pod:3187
26483 #, no-wrap
26484 msgid ""
26485 " char *\n"
26486 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26487 "                                         const char *root);\n"
26488 "\n"
26489 msgstr ""
26490
26491 #. type: textblock
26492 #: ../src/guestfs-actions.pod:3191
26493 msgid ""
26494 "C<guestfs_inspect_get_package_format> and this function return the package "
26495 "format and package management tool used by the inspected operating system.  "
26496 "For example for Fedora these functions would return C<rpm> (package format) "
26497 "and C<yum> (package management)."
26498 msgstr ""
26499
26500 #. type: =head2
26501 #: ../src/guestfs-actions.pod:3213
26502 msgid "guestfs_inspect_get_product_name"
26503 msgstr ""
26504
26505 #. type: verbatim
26506 #: ../src/guestfs-actions.pod:3215
26507 #, no-wrap
26508 msgid ""
26509 " char *\n"
26510 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26511 "                                   const char *root);\n"
26512 "\n"
26513 msgstr ""
26514
26515 #. type: =head2
26516 #: ../src/guestfs-actions.pod:3234
26517 msgid "guestfs_inspect_get_product_variant"
26518 msgstr ""
26519
26520 #. type: verbatim
26521 #: ../src/guestfs-actions.pod:3236
26522 #, no-wrap
26523 msgid ""
26524 " char *\n"
26525 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26526 "                                      const char *root);\n"
26527 "\n"
26528 msgstr ""
26529
26530 #. type: textblock
26531 #: ../src/guestfs-actions.pod:3259
26532 msgid ""
26533 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26534 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26535 msgstr ""
26536
26537 #. type: textblock
26538 #: ../src/guestfs-actions.pod:3266
26539 msgid "(Added in 1.9.13)"
26540 msgstr ""
26541
26542 #. type: =head2
26543 #: ../src/guestfs-actions.pod:3268
26544 msgid "guestfs_inspect_get_roots"
26545 msgstr ""
26546
26547 #. type: verbatim
26548 #: ../src/guestfs-actions.pod:3270
26549 #, no-wrap
26550 msgid ""
26551 " char **\n"
26552 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26553 "\n"
26554 msgstr ""
26555
26556 #. type: textblock
26557 #: ../src/guestfs-actions.pod:3273
26558 msgid ""
26559 "This function is a convenient way to get the list of root devices, as "
26560 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26561 "the whole inspection process."
26562 msgstr ""
26563
26564 #. type: textblock
26565 #: ../src/guestfs-actions.pod:3277
26566 msgid ""
26567 "This returns an empty list if either no root devices were found or the "
26568 "caller has not called C<guestfs_inspect_os>."
26569 msgstr ""
26570
26571 #. type: textblock
26572 #: ../src/guestfs-actions.pod:3286
26573 msgid "(Added in 1.7.3)"
26574 msgstr ""
26575
26576 #. type: =head2
26577 #: ../src/guestfs-actions.pod:3288
26578 msgid "guestfs_inspect_get_type"
26579 msgstr ""
26580
26581 #. type: verbatim
26582 #: ../src/guestfs-actions.pod:3290
26583 #, no-wrap
26584 msgid ""
26585 " char *\n"
26586 " guestfs_inspect_get_type (guestfs_h *g,\n"
26587 "                           const char *root);\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: =head2
26592 #: ../src/guestfs-actions.pod:3327
26593 msgid "guestfs_inspect_get_windows_current_control_set"
26594 msgstr ""
26595
26596 #. type: verbatim
26597 #: ../src/guestfs-actions.pod:3329
26598 #, no-wrap
26599 msgid ""
26600 " char *\n"
26601 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26602 "                                                  const char *root);\n"
26603 "\n"
26604 msgstr ""
26605
26606 #. type: =head2
26607 #: ../src/guestfs-actions.pod:3347
26608 msgid "guestfs_inspect_get_windows_systemroot"
26609 msgstr ""
26610
26611 #. type: verbatim
26612 #: ../src/guestfs-actions.pod:3349
26613 #, no-wrap
26614 msgid ""
26615 " char *\n"
26616 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26617 "                                         const char *root);\n"
26618 "\n"
26619 msgstr ""
26620
26621 #. type: textblock
26622 #: ../src/guestfs-actions.pod:3365
26623 msgid "(Added in 1.5.25)"
26624 msgstr ""
26625
26626 #. type: =head2
26627 #: ../src/guestfs-actions.pod:3367
26628 msgid "guestfs_inspect_is_live"
26629 msgstr ""
26630
26631 #. type: verbatim
26632 #: ../src/guestfs-actions.pod:3369
26633 #, no-wrap
26634 msgid ""
26635 " int\n"
26636 " guestfs_inspect_is_live (guestfs_h *g,\n"
26637 "                          const char *root);\n"
26638 "\n"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../src/guestfs-actions.pod:3373
26643 msgid ""
26644 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26645 "disk), then this returns true if a live image was detected on the disk."
26646 msgstr ""
26647
26648 #. type: =head2
26649 #: ../src/guestfs-actions.pod:3383
26650 msgid "guestfs_inspect_is_multipart"
26651 msgstr ""
26652
26653 #. type: verbatim
26654 #: ../src/guestfs-actions.pod:3385
26655 #, no-wrap
26656 msgid ""
26657 " int\n"
26658 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26659 "                               const char *root);\n"
26660 "\n"
26661 msgstr ""
26662
26663 #. type: textblock
26664 #: ../src/guestfs-actions.pod:3389
26665 msgid ""
26666 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26667 "disk), then this returns true if the disk is part of a set."
26668 msgstr ""
26669
26670 #. type: =head2
26671 #: ../src/guestfs-actions.pod:3399
26672 msgid "guestfs_inspect_is_netinst"
26673 msgstr ""
26674
26675 #. type: verbatim
26676 #: ../src/guestfs-actions.pod:3401
26677 #, no-wrap
26678 msgid ""
26679 " int\n"
26680 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26681 "                             const char *root);\n"
26682 "\n"
26683 msgstr ""
26684
26685 #. type: textblock
26686 #: ../src/guestfs-actions.pod:3405
26687 msgid ""
26688 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26689 "disk), then this returns true if the disk is a network installer, ie. not a "
26690 "self-contained install CD but one which is likely to require network access "
26691 "to complete the install."
26692 msgstr ""
26693
26694 #. type: =head2
26695 #: ../src/guestfs-actions.pod:3417
26696 msgid "guestfs_inspect_list_applications"
26697 msgstr ""
26698
26699 #. type: verbatim
26700 #: ../src/guestfs-actions.pod:3419
26701 #, no-wrap
26702 msgid ""
26703 " struct guestfs_application_list *\n"
26704 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26705 "                                    const char *root);\n"
26706 "\n"
26707 msgstr ""
26708
26709 #. type: textblock
26710 #: ../src/guestfs-actions.pod:3425
26711 msgid ""
26712 "I<Note:> This call works differently from other parts of the inspection "
26713 "API.  You have to call C<guestfs_inspect_os>, then "
26714 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26715 "this.  Listing applications is a significantly more difficult operation "
26716 "which requires access to the full filesystem.  Also note that unlike the "
26717 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26718 "the libguestfs handle, this call actually reads parts of the mounted "
26719 "filesystems during the call."
26720 msgstr ""
26721
26722 #. type: textblock
26723 #: ../src/guestfs-actions.pod:3515
26724 msgid ""
26725 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26726 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26727 "after use>."
26728 msgstr ""
26729
26730 #. type: textblock
26731 #: ../src/guestfs-actions.pod:3519
26732 msgid "(Added in 1.7.8)"
26733 msgstr ""
26734
26735 #. type: =head2
26736 #: ../src/guestfs-actions.pod:3521
26737 msgid "guestfs_inspect_os"
26738 msgstr ""
26739
26740 #. type: verbatim
26741 #: ../src/guestfs-actions.pod:3523
26742 #, no-wrap
26743 msgid ""
26744 " char **\n"
26745 " guestfs_inspect_os (guestfs_h *g);\n"
26746 "\n"
26747 msgstr ""
26748
26749 #. type: textblock
26750 #: ../src/guestfs-actions.pod:3539
26751 msgid ""
26752 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26753 "functions in order to query further information about each operating system, "
26754 "such as the name and version."
26755 msgstr ""
26756
26757 #. type: textblock
26758 #: ../src/guestfs-actions.pod:3544
26759 msgid ""
26760 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26761 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26762 "the contents.  This should be called with no disks currently mounted.  The "
26763 "function may also use Augeas, so any existing Augeas handle will be closed."
26764 msgstr ""
26765
26766 #. type: textblock
26767 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
26768 #: ../src/guestfs-actions.pod:3969
26769 msgid "See also C<guestfs_list_filesystems>."
26770 msgstr ""
26771
26772 #. type: =head2
26773 #: ../src/guestfs-actions.pod:3564
26774 msgid "guestfs_is_blockdev"
26775 msgstr ""
26776
26777 #. type: verbatim
26778 #: ../src/guestfs-actions.pod:3566
26779 #, no-wrap
26780 msgid ""
26781 " int\n"
26782 " guestfs_is_blockdev (guestfs_h *g,\n"
26783 "                      const char *path);\n"
26784 "\n"
26785 msgstr ""
26786
26787 #. type: textblock
26788 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
26789 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
26790 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
26791 #: ../src/guestfs-actions.pod:3734
26792 msgid "See also C<guestfs_stat>."
26793 msgstr ""
26794
26795 #. type: textblock
26796 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
26797 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
26798 #: ../src/guestfs-actions.pod:3738
26799 msgid "(Added in 1.5.10)"
26800 msgstr ""
26801
26802 #. type: =head2
26803 #: ../src/guestfs-actions.pod:3579
26804 msgid "guestfs_is_busy"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:3581
26809 #, no-wrap
26810 msgid ""
26811 " int\n"
26812 " guestfs_is_busy (guestfs_h *g);\n"
26813 "\n"
26814 msgstr ""
26815
26816 #. type: =head2
26817 #: ../src/guestfs-actions.pod:3593
26818 msgid "guestfs_is_chardev"
26819 msgstr ""
26820
26821 #. type: verbatim
26822 #: ../src/guestfs-actions.pod:3595
26823 #, no-wrap
26824 msgid ""
26825 " int\n"
26826 " guestfs_is_chardev (guestfs_h *g,\n"
26827 "                     const char *path);\n"
26828 "\n"
26829 msgstr ""
26830
26831 #. type: =head2
26832 #: ../src/guestfs-actions.pod:3608
26833 msgid "guestfs_is_config"
26834 msgstr ""
26835
26836 #. type: verbatim
26837 #: ../src/guestfs-actions.pod:3610
26838 #, no-wrap
26839 msgid ""
26840 " int\n"
26841 " guestfs_is_config (guestfs_h *g);\n"
26842 "\n"
26843 msgstr ""
26844
26845 #. type: =head2
26846 #: ../src/guestfs-actions.pod:3622
26847 msgid "guestfs_is_dir"
26848 msgstr ""
26849
26850 #. type: verbatim
26851 #: ../src/guestfs-actions.pod:3624
26852 #, no-wrap
26853 msgid ""
26854 " int\n"
26855 " guestfs_is_dir (guestfs_h *g,\n"
26856 "                 const char *path);\n"
26857 "\n"
26858 msgstr ""
26859
26860 #. type: =head2
26861 #: ../src/guestfs-actions.pod:3638
26862 msgid "guestfs_is_fifo"
26863 msgstr ""
26864
26865 #. type: verbatim
26866 #: ../src/guestfs-actions.pod:3640
26867 #, no-wrap
26868 msgid ""
26869 " int\n"
26870 " guestfs_is_fifo (guestfs_h *g,\n"
26871 "                  const char *path);\n"
26872 "\n"
26873 msgstr ""
26874
26875 #. type: =head2
26876 #: ../src/guestfs-actions.pod:3653
26877 msgid "guestfs_is_file"
26878 msgstr ""
26879
26880 #. type: verbatim
26881 #: ../src/guestfs-actions.pod:3655
26882 #, no-wrap
26883 msgid ""
26884 " int\n"
26885 " guestfs_is_file (guestfs_h *g,\n"
26886 "                  const char *path);\n"
26887 "\n"
26888 msgstr ""
26889
26890 #. type: =head2
26891 #: ../src/guestfs-actions.pod:3669
26892 msgid "guestfs_is_launching"
26893 msgstr ""
26894
26895 #. type: verbatim
26896 #: ../src/guestfs-actions.pod:3671
26897 #, no-wrap
26898 msgid ""
26899 " int\n"
26900 " guestfs_is_launching (guestfs_h *g);\n"
26901 "\n"
26902 msgstr ""
26903
26904 #. type: =head2
26905 #: ../src/guestfs-actions.pod:3683
26906 msgid "guestfs_is_lv"
26907 msgstr ""
26908
26909 #. type: verbatim
26910 #: ../src/guestfs-actions.pod:3685
26911 #, no-wrap
26912 msgid ""
26913 " int\n"
26914 " guestfs_is_lv (guestfs_h *g,\n"
26915 "                const char *device);\n"
26916 "\n"
26917 msgstr ""
26918
26919 #. type: =head2
26920 #: ../src/guestfs-actions.pod:3696
26921 msgid "guestfs_is_ready"
26922 msgstr ""
26923
26924 #. type: verbatim
26925 #: ../src/guestfs-actions.pod:3698
26926 #, no-wrap
26927 msgid ""
26928 " int\n"
26929 " guestfs_is_ready (guestfs_h *g);\n"
26930 "\n"
26931 msgstr ""
26932
26933 #. type: =head2
26934 #: ../src/guestfs-actions.pod:3710
26935 msgid "guestfs_is_socket"
26936 msgstr ""
26937
26938 #. type: verbatim
26939 #: ../src/guestfs-actions.pod:3712
26940 #, no-wrap
26941 msgid ""
26942 " int\n"
26943 " guestfs_is_socket (guestfs_h *g,\n"
26944 "                    const char *path);\n"
26945 "\n"
26946 msgstr ""
26947
26948 #. type: =head2
26949 #: ../src/guestfs-actions.pod:3725
26950 msgid "guestfs_is_symlink"
26951 msgstr ""
26952
26953 #. type: verbatim
26954 #: ../src/guestfs-actions.pod:3727
26955 #, no-wrap
26956 msgid ""
26957 " int\n"
26958 " guestfs_is_symlink (guestfs_h *g,\n"
26959 "                     const char *path);\n"
26960 "\n"
26961 msgstr ""
26962
26963 #. type: =head2
26964 #: ../src/guestfs-actions.pod:3740
26965 msgid "guestfs_is_zero"
26966 msgstr ""
26967
26968 #. type: verbatim
26969 #: ../src/guestfs-actions.pod:3742
26970 #, no-wrap
26971 msgid ""
26972 " int\n"
26973 " guestfs_is_zero (guestfs_h *g,\n"
26974 "                  const char *path);\n"
26975 "\n"
26976 msgstr ""
26977
26978 #. type: textblock
26979 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
26980 msgid "(Added in 1.11.8)"
26981 msgstr ""
26982
26983 #. type: =head2
26984 #: ../src/guestfs-actions.pod:3753
26985 msgid "guestfs_is_zero_device"
26986 msgstr ""
26987
26988 #. type: verbatim
26989 #: ../src/guestfs-actions.pod:3755
26990 #, no-wrap
26991 msgid ""
26992 " int\n"
26993 " guestfs_is_zero_device (guestfs_h *g,\n"
26994 "                         const char *device);\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:3767
27000 msgid "guestfs_kill_subprocess"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:3769
27005 #, no-wrap
27006 msgid ""
27007 " int\n"
27008 " guestfs_kill_subprocess (guestfs_h *g);\n"
27009 "\n"
27010 msgstr ""
27011
27012 #. type: =head2
27013 #: ../src/guestfs-actions.pod:3778
27014 msgid "guestfs_launch"
27015 msgstr ""
27016
27017 #. type: verbatim
27018 #: ../src/guestfs-actions.pod:3780
27019 #, no-wrap
27020 msgid ""
27021 " int\n"
27022 " guestfs_launch (guestfs_h *g);\n"
27023 "\n"
27024 msgstr ""
27025
27026 #. type: =head2
27027 #: ../src/guestfs-actions.pod:3798
27028 msgid "guestfs_lchown"
27029 msgstr ""
27030
27031 #. type: verbatim
27032 #: ../src/guestfs-actions.pod:3800
27033 #, no-wrap
27034 msgid ""
27035 " int\n"
27036 " guestfs_lchown (guestfs_h *g,\n"
27037 "                 int owner,\n"
27038 "                 int group,\n"
27039 "                 const char *path);\n"
27040 "\n"
27041 msgstr ""
27042
27043 #. type: textblock
27044 #: ../src/guestfs-actions.pod:3806
27045 msgid ""
27046 "Change the file owner to C<owner> and group to C<group>.  This is like "
27047 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27048 "changed, not the target."
27049 msgstr ""
27050
27051 #. type: =head2
27052 #: ../src/guestfs-actions.pod:3818
27053 msgid "guestfs_lgetxattr"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../src/guestfs-actions.pod:3820
27058 #, no-wrap
27059 msgid ""
27060 " char *\n"
27061 " guestfs_lgetxattr (guestfs_h *g,\n"
27062 "                    const char *path,\n"
27063 "                    const char *name,\n"
27064 "                    size_t *size_r);\n"
27065 "\n"
27066 msgstr ""
27067
27068 #. type: textblock
27069 #: ../src/guestfs-actions.pod:3840
27070 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27071 msgstr ""
27072
27073 #. type: =head2
27074 #: ../src/guestfs-actions.pod:3848
27075 msgid "guestfs_lgetxattrs"
27076 msgstr ""
27077
27078 #. type: verbatim
27079 #: ../src/guestfs-actions.pod:3850
27080 #, no-wrap
27081 msgid ""
27082 " struct guestfs_xattr_list *\n"
27083 " guestfs_lgetxattrs (guestfs_h *g,\n"
27084 "                     const char *path);\n"
27085 "\n"
27086 msgstr ""
27087
27088 #. type: textblock
27089 #: ../src/guestfs-actions.pod:3854
27090 msgid ""
27091 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27092 "then it returns the extended attributes of the link itself."
27093 msgstr ""
27094
27095 #. type: =head2
27096 #: ../src/guestfs-actions.pod:3864
27097 msgid "guestfs_list_9p"
27098 msgstr ""
27099
27100 #. type: verbatim
27101 #: ../src/guestfs-actions.pod:3866
27102 #, no-wrap
27103 msgid ""
27104 " char **\n"
27105 " guestfs_list_9p (guestfs_h *g);\n"
27106 "\n"
27107 msgstr ""
27108
27109 #. type: =head2
27110 #: ../src/guestfs-actions.pod:3878
27111 msgid "guestfs_list_devices"
27112 msgstr ""
27113
27114 #. type: verbatim
27115 #: ../src/guestfs-actions.pod:3880
27116 #, no-wrap
27117 msgid ""
27118 " char **\n"
27119 " guestfs_list_devices (guestfs_h *g);\n"
27120 "\n"
27121 msgstr ""
27122
27123 #. type: =head2
27124 #: ../src/guestfs-actions.pod:3895
27125 msgid "guestfs_list_dm_devices"
27126 msgstr ""
27127
27128 #. type: verbatim
27129 #: ../src/guestfs-actions.pod:3897
27130 #, no-wrap
27131 msgid ""
27132 " char **\n"
27133 " guestfs_list_dm_devices (guestfs_h *g);\n"
27134 "\n"
27135 msgstr ""
27136
27137 #. type: textblock
27138 #: ../src/guestfs-actions.pod:3902
27139 msgid ""
27140 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27141 "previous call to C<guestfs_luks_open>."
27142 msgstr ""
27143
27144 #. type: textblock
27145 #: ../src/guestfs-actions.pod:3905
27146 msgid ""
27147 "Device mapper devices which correspond to logical volumes are I<not> "
27148 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27149 "volumes."
27150 msgstr ""
27151
27152 #. type: textblock
27153 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
27154 msgid "(Added in 1.11.15)"
27155 msgstr ""
27156
27157 #. type: =head2
27158 #: ../src/guestfs-actions.pod:3915
27159 msgid "guestfs_list_filesystems"
27160 msgstr ""
27161
27162 #. type: verbatim
27163 #: ../src/guestfs-actions.pod:3917
27164 #, no-wrap
27165 msgid ""
27166 " char **\n"
27167 " guestfs_list_filesystems (guestfs_h *g);\n"
27168 "\n"
27169 msgstr ""
27170
27171 #. type: textblock
27172 #: ../src/guestfs-actions.pod:3937
27173 msgid ""
27174 "This command runs other libguestfs commands, which might include "
27175 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27176 "soon after launch and only when nothing is mounted."
27177 msgstr ""
27178
27179 #. type: textblock
27180 #: ../src/guestfs-actions.pod:3941
27181 msgid ""
27182 "Not all of the filesystems returned will be mountable.  In particular, swap "
27183 "partitions are returned in the list.  Also this command does not check that "
27184 "each filesystem found is valid and mountable, and some filesystems might be "
27185 "mountable but require special options.  Filesystems may not all belong to a "
27186 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
27191 msgid "(Added in 1.5.15)"
27192 msgstr ""
27193
27194 #. type: =head2
27195 #: ../src/guestfs-actions.pod:3957
27196 msgid "guestfs_list_partitions"
27197 msgstr ""
27198
27199 #. type: verbatim
27200 #: ../src/guestfs-actions.pod:3959
27201 #, no-wrap
27202 msgid ""
27203 " char **\n"
27204 " guestfs_list_partitions (guestfs_h *g);\n"
27205 "\n"
27206 msgstr ""
27207
27208 #. type: textblock
27209 #: ../src/guestfs-actions.pod:3966
27210 msgid ""
27211 "This does not return logical volumes.  For that you will need to call "
27212 "C<guestfs_lvs>."
27213 msgstr ""
27214
27215 #. type: =head2
27216 #: ../src/guestfs-actions.pod:3977
27217 msgid "guestfs_ll"
27218 msgstr ""
27219
27220 #. type: verbatim
27221 #: ../src/guestfs-actions.pod:3979
27222 #, no-wrap
27223 msgid ""
27224 " char *\n"
27225 " guestfs_ll (guestfs_h *g,\n"
27226 "             const char *directory);\n"
27227 "\n"
27228 msgstr ""
27229
27230 #. type: =head2
27231 #: ../src/guestfs-actions.pod:3994
27232 msgid "guestfs_ln"
27233 msgstr ""
27234
27235 #. type: verbatim
27236 #: ../src/guestfs-actions.pod:3996
27237 #, no-wrap
27238 msgid ""
27239 " int\n"
27240 " guestfs_ln (guestfs_h *g,\n"
27241 "             const char *target,\n"
27242 "             const char *linkname);\n"
27243 "\n"
27244 msgstr ""
27245
27246 #. type: =head2
27247 #: ../src/guestfs-actions.pod:4007
27248 msgid "guestfs_ln_f"
27249 msgstr ""
27250
27251 #. type: verbatim
27252 #: ../src/guestfs-actions.pod:4009
27253 #, no-wrap
27254 msgid ""
27255 " int\n"
27256 " guestfs_ln_f (guestfs_h *g,\n"
27257 "               const char *target,\n"
27258 "               const char *linkname);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: =head2
27263 #: ../src/guestfs-actions.pod:4021
27264 msgid "guestfs_ln_s"
27265 msgstr ""
27266
27267 #. type: verbatim
27268 #: ../src/guestfs-actions.pod:4023
27269 #, no-wrap
27270 msgid ""
27271 " int\n"
27272 " guestfs_ln_s (guestfs_h *g,\n"
27273 "               const char *target,\n"
27274 "               const char *linkname);\n"
27275 "\n"
27276 msgstr ""
27277
27278 #. type: =head2
27279 #: ../src/guestfs-actions.pod:4034
27280 msgid "guestfs_ln_sf"
27281 msgstr ""
27282
27283 #. type: verbatim
27284 #: ../src/guestfs-actions.pod:4036
27285 #, no-wrap
27286 msgid ""
27287 " int\n"
27288 " guestfs_ln_sf (guestfs_h *g,\n"
27289 "                const char *target,\n"
27290 "                const char *linkname);\n"
27291 "\n"
27292 msgstr ""
27293
27294 #. type: =head2
27295 #: ../src/guestfs-actions.pod:4048
27296 msgid "guestfs_lremovexattr"
27297 msgstr ""
27298
27299 #. type: verbatim
27300 #: ../src/guestfs-actions.pod:4050
27301 #, no-wrap
27302 msgid ""
27303 " int\n"
27304 " guestfs_lremovexattr (guestfs_h *g,\n"
27305 "                       const char *xattr,\n"
27306 "                       const char *path);\n"
27307 "\n"
27308 msgstr ""
27309
27310 #. type: textblock
27311 #: ../src/guestfs-actions.pod:4055
27312 msgid ""
27313 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27314 "link, then it removes an extended attribute of the link itself."
27315 msgstr ""
27316
27317 #. type: =head2
27318 #: ../src/guestfs-actions.pod:4063
27319 msgid "guestfs_ls"
27320 msgstr ""
27321
27322 #. type: verbatim
27323 #: ../src/guestfs-actions.pod:4065
27324 #, no-wrap
27325 msgid ""
27326 " char **\n"
27327 " guestfs_ls (guestfs_h *g,\n"
27328 "             const char *directory);\n"
27329 "\n"
27330 msgstr ""
27331
27332 #. type: textblock
27333 #: ../src/guestfs-actions.pod:4073
27334 msgid ""
27335 "This command is mostly useful for interactive sessions.  Programs should "
27336 "probably use C<guestfs_readdir> instead."
27337 msgstr ""
27338
27339 #. type: =head2
27340 #: ../src/guestfs-actions.pod:4082
27341 msgid "guestfs_lsetxattr"
27342 msgstr ""
27343
27344 #. type: verbatim
27345 #: ../src/guestfs-actions.pod:4084
27346 #, no-wrap
27347 msgid ""
27348 " int\n"
27349 " guestfs_lsetxattr (guestfs_h *g,\n"
27350 "                    const char *xattr,\n"
27351 "                    const char *val,\n"
27352 "                    int vallen,\n"
27353 "                    const char *path);\n"
27354 "\n"
27355 msgstr ""
27356
27357 #. type: textblock
27358 #: ../src/guestfs-actions.pod:4091
27359 msgid ""
27360 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27361 "then it sets an extended attribute of the link itself."
27362 msgstr ""
27363
27364 #. type: =head2
27365 #: ../src/guestfs-actions.pod:4099
27366 msgid "guestfs_lstat"
27367 msgstr ""
27368
27369 #. type: verbatim
27370 #: ../src/guestfs-actions.pod:4101
27371 #, no-wrap
27372 msgid ""
27373 " struct guestfs_stat *\n"
27374 " guestfs_lstat (guestfs_h *g,\n"
27375 "                const char *path);\n"
27376 "\n"
27377 msgstr ""
27378
27379 #. type: textblock
27380 #: ../src/guestfs-actions.pod:4107
27381 msgid ""
27382 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27383 "link, then the link is stat-ed, not the file it refers to."
27384 msgstr ""
27385
27386 #. type: textblock
27387 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
27388 msgid ""
27389 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27390 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27391 msgstr ""
27392
27393 #. type: textblock
27394 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
27395 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
27396 msgid "(Added in 0.9.2)"
27397 msgstr ""
27398
27399 #. type: =head2
27400 #: ../src/guestfs-actions.pod:4119
27401 msgid "guestfs_lstatlist"
27402 msgstr ""
27403
27404 #. type: verbatim
27405 #: ../src/guestfs-actions.pod:4121
27406 #, no-wrap
27407 msgid ""
27408 " struct guestfs_stat_list *\n"
27409 " guestfs_lstatlist (guestfs_h *g,\n"
27410 "                    const char *path,\n"
27411 "                    char *const *names);\n"
27412 "\n"
27413 msgstr ""
27414
27415 #. type: textblock
27416 #: ../src/guestfs-actions.pod:4126
27417 msgid ""
27418 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27419 "files, where all files are in the directory C<path>.  C<names> is the list "
27420 "of files from this directory."
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:4135
27425 msgid ""
27426 "This call is intended for programs that want to efficiently list a directory "
27427 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27428 "for a similarly efficient call for getting extended attributes.  Very long "
27429 "directory listings might cause the protocol message size to be exceeded, "
27430 "causing this call to fail.  The caller must split up such requests into "
27431 "smaller groups of names."
27432 msgstr ""
27433
27434 #. type: textblock
27435 #: ../src/guestfs-actions.pod:4143
27436 msgid ""
27437 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27438 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27439 msgstr ""
27440
27441 #. type: =head2
27442 #: ../src/guestfs-actions.pod:4149
27443 msgid "guestfs_luks_add_key"
27444 msgstr ""
27445
27446 #. type: verbatim
27447 #: ../src/guestfs-actions.pod:4151
27448 #, no-wrap
27449 msgid ""
27450 " int\n"
27451 " guestfs_luks_add_key (guestfs_h *g,\n"
27452 "                       const char *device,\n"
27453 "                       const char *key,\n"
27454 "                       const char *newkey,\n"
27455 "                       int keyslot);\n"
27456 "\n"
27457 msgstr ""
27458
27459 #. type: textblock
27460 #: ../src/guestfs-actions.pod:4163
27461 msgid ""
27462 "Note that if C<keyslot> already contains a key, then this command will "
27463 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27464 msgstr ""
27465
27466 #. type: textblock
27467 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
27468 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
27469 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
27470 msgid ""
27471 "This function takes a key or passphrase parameter which could contain "
27472 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27473 "information."
27474 msgstr ""
27475
27476 #. type: textblock
27477 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
27478 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
27479 msgid "(Added in 1.5.2)"
27480 msgstr ""
27481
27482 #. type: =head2
27483 #: ../src/guestfs-actions.pod:4175
27484 msgid "guestfs_luks_close"
27485 msgstr ""
27486
27487 #. type: verbatim
27488 #: ../src/guestfs-actions.pod:4177
27489 #, no-wrap
27490 msgid ""
27491 " int\n"
27492 " guestfs_luks_close (guestfs_h *g,\n"
27493 "                     const char *device);\n"
27494 "\n"
27495 msgstr ""
27496
27497 #. type: textblock
27498 #: ../src/guestfs-actions.pod:4181
27499 msgid ""
27500 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27501 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27502 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27503 "underlying block device."
27504 msgstr ""
27505
27506 #. type: textblock
27507 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
27508 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
27509 #: ../src/guestfs-actions.pod:4408
27510 msgid "(Added in 1.5.1)"
27511 msgstr ""
27512
27513 #. type: =head2
27514 #: ../src/guestfs-actions.pod:4191
27515 msgid "guestfs_luks_format"
27516 msgstr ""
27517
27518 #. type: verbatim
27519 #: ../src/guestfs-actions.pod:4193
27520 #, no-wrap
27521 msgid ""
27522 " int\n"
27523 " guestfs_luks_format (guestfs_h *g,\n"
27524 "                      const char *device,\n"
27525 "                      const char *key,\n"
27526 "                      int keyslot);\n"
27527 "\n"
27528 msgstr ""
27529
27530 #. type: =head2
27531 #: ../src/guestfs-actions.pod:4215
27532 msgid "guestfs_luks_format_cipher"
27533 msgstr ""
27534
27535 #. type: verbatim
27536 #: ../src/guestfs-actions.pod:4217
27537 #, no-wrap
27538 msgid ""
27539 " int\n"
27540 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27541 "                             const char *device,\n"
27542 "                             const char *key,\n"
27543 "                             int keyslot,\n"
27544 "                             const char *cipher);\n"
27545 "\n"
27546 msgstr ""
27547
27548 #. type: textblock
27549 #: ../src/guestfs-actions.pod:4224
27550 msgid ""
27551 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27552 "set the C<cipher> used."
27553 msgstr ""
27554
27555 #. type: =head2
27556 #: ../src/guestfs-actions.pod:4238
27557 msgid "guestfs_luks_kill_slot"
27558 msgstr ""
27559
27560 #. type: verbatim
27561 #: ../src/guestfs-actions.pod:4240
27562 #, no-wrap
27563 msgid ""
27564 " int\n"
27565 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27566 "                         const char *device,\n"
27567 "                         const char *key,\n"
27568 "                         int keyslot);\n"
27569 "\n"
27570 msgstr ""
27571
27572 #. type: =head2
27573 #: ../src/guestfs-actions.pod:4258
27574 msgid "guestfs_luks_open"
27575 msgstr ""
27576
27577 #. type: verbatim
27578 #: ../src/guestfs-actions.pod:4260
27579 #, no-wrap
27580 msgid ""
27581 " int\n"
27582 " guestfs_luks_open (guestfs_h *g,\n"
27583 "                    const char *device,\n"
27584 "                    const char *key,\n"
27585 "                    const char *mapname);\n"
27586 "\n"
27587 msgstr ""
27588
27589 #. type: textblock
27590 #: ../src/guestfs-actions.pod:4278
27591 msgid ""
27592 "If this block device contains LVM volume groups, then calling "
27593 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27594 "visible."
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../src/guestfs-actions.pod:4282
27599 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27600 msgstr ""
27601
27602 #. type: =head2
27603 #: ../src/guestfs-actions.pod:4293
27604 msgid "guestfs_luks_open_ro"
27605 msgstr ""
27606
27607 #. type: verbatim
27608 #: ../src/guestfs-actions.pod:4295
27609 #, no-wrap
27610 msgid ""
27611 " int\n"
27612 " guestfs_luks_open_ro (guestfs_h *g,\n"
27613 "                       const char *device,\n"
27614 "                       const char *key,\n"
27615 "                       const char *mapname);\n"
27616 "\n"
27617 msgstr ""
27618
27619 #. type: textblock
27620 #: ../src/guestfs-actions.pod:4301
27621 msgid ""
27622 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27623 "created."
27624 msgstr ""
27625
27626 #. type: =head2
27627 #: ../src/guestfs-actions.pod:4312
27628 msgid "guestfs_lvcreate"
27629 msgstr ""
27630
27631 #. type: verbatim
27632 #: ../src/guestfs-actions.pod:4314
27633 #, no-wrap
27634 msgid ""
27635 " int\n"
27636 " guestfs_lvcreate (guestfs_h *g,\n"
27637 "                   const char *logvol,\n"
27638 "                   const char *volgroup,\n"
27639 "                   int mbytes);\n"
27640 "\n"
27641 msgstr ""
27642
27643 #. type: =head2
27644 #: ../src/guestfs-actions.pod:4327
27645 msgid "guestfs_lvm_canonical_lv_name"
27646 msgstr ""
27647
27648 #. type: verbatim
27649 #: ../src/guestfs-actions.pod:4329
27650 #, no-wrap
27651 msgid ""
27652 " char *\n"
27653 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27654 "                                const char *lvname);\n"
27655 "\n"
27656 msgstr ""
27657
27658 #. type: textblock
27659 #: ../src/guestfs-actions.pod:4340
27660 msgid "See also C<guestfs_is_lv>."
27661 msgstr ""
27662
27663 #. type: textblock
27664 #: ../src/guestfs-actions.pod:4345
27665 msgid "(Added in 1.5.24)"
27666 msgstr ""
27667
27668 #. type: =head2
27669 #: ../src/guestfs-actions.pod:4347
27670 msgid "guestfs_lvm_clear_filter"
27671 msgstr ""
27672
27673 #. type: verbatim
27674 #: ../src/guestfs-actions.pod:4349
27675 #, no-wrap
27676 msgid ""
27677 " int\n"
27678 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27679 "\n"
27680 msgstr ""
27681
27682 #. type: textblock
27683 #: ../src/guestfs-actions.pod:4352
27684 msgid ""
27685 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27686 "see every block device."
27687 msgstr ""
27688
27689 #. type: =head2
27690 #: ../src/guestfs-actions.pod:4362
27691 msgid "guestfs_lvm_remove_all"
27692 msgstr ""
27693
27694 #. type: verbatim
27695 #: ../src/guestfs-actions.pod:4364
27696 #, no-wrap
27697 msgid ""
27698 " int\n"
27699 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27700 "\n"
27701 msgstr ""
27702
27703 #. type: =head2
27704 #: ../src/guestfs-actions.pod:4377
27705 msgid "guestfs_lvm_set_filter"
27706 msgstr ""
27707
27708 #. type: verbatim
27709 #: ../src/guestfs-actions.pod:4379
27710 #, no-wrap
27711 msgid ""
27712 " int\n"
27713 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27714 "                         char *const *devices);\n"
27715 "\n"
27716 msgstr ""
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:4410
27720 msgid "guestfs_lvremove"
27721 msgstr ""
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:4412
27725 #, no-wrap
27726 msgid ""
27727 " int\n"
27728 " guestfs_lvremove (guestfs_h *g,\n"
27729 "                   const char *device);\n"
27730 "\n"
27731 msgstr ""
27732
27733 #. type: textblock
27734 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
27735 #: ../src/guestfs-actions.pod:7667
27736 msgid "(Added in 1.0.13)"
27737 msgstr ""
27738
27739 #. type: =head2
27740 #: ../src/guestfs-actions.pod:4426
27741 msgid "guestfs_lvrename"
27742 msgstr ""
27743
27744 #. type: verbatim
27745 #: ../src/guestfs-actions.pod:4428
27746 #, no-wrap
27747 msgid ""
27748 " int\n"
27749 " guestfs_lvrename (guestfs_h *g,\n"
27750 "                   const char *logvol,\n"
27751 "                   const char *newlogvol);\n"
27752 "\n"
27753 msgstr ""
27754
27755 #. type: textblock
27756 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
27757 msgid "(Added in 1.0.83)"
27758 msgstr ""
27759
27760 #. type: =head2
27761 #: ../src/guestfs-actions.pod:4439
27762 msgid "guestfs_lvresize"
27763 msgstr ""
27764
27765 #. type: verbatim
27766 #: ../src/guestfs-actions.pod:4441
27767 #, no-wrap
27768 msgid ""
27769 " int\n"
27770 " guestfs_lvresize (guestfs_h *g,\n"
27771 "                   const char *device,\n"
27772 "                   int mbytes);\n"
27773 "\n"
27774 msgstr ""
27775
27776 #. type: =head2
27777 #: ../src/guestfs-actions.pod:4454
27778 msgid "guestfs_lvresize_free"
27779 msgstr ""
27780
27781 #. type: verbatim
27782 #: ../src/guestfs-actions.pod:4456
27783 #, no-wrap
27784 msgid ""
27785 " int\n"
27786 " guestfs_lvresize_free (guestfs_h *g,\n"
27787 "                        const char *lv,\n"
27788 "                        int percent);\n"
27789 "\n"
27790 msgstr ""
27791
27792 #. type: textblock
27793 #: ../src/guestfs-actions.pod:4469
27794 msgid "(Added in 1.3.3)"
27795 msgstr ""
27796
27797 #. type: =head2
27798 #: ../src/guestfs-actions.pod:4471
27799 msgid "guestfs_lvs"
27800 msgstr ""
27801
27802 #. type: verbatim
27803 #: ../src/guestfs-actions.pod:4473
27804 #, no-wrap
27805 msgid ""
27806 " char **\n"
27807 " guestfs_lvs (guestfs_h *g);\n"
27808 "\n"
27809 msgstr ""
27810
27811 #. type: textblock
27812 #: ../src/guestfs-actions.pod:4482
27813 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27814 msgstr ""
27815
27816 #. type: =head2
27817 #: ../src/guestfs-actions.pod:4490
27818 msgid "guestfs_lvs_full"
27819 msgstr ""
27820
27821 #. type: verbatim
27822 #: ../src/guestfs-actions.pod:4492
27823 #, no-wrap
27824 msgid ""
27825 " struct guestfs_lvm_lv_list *\n"
27826 " guestfs_lvs_full (guestfs_h *g);\n"
27827 "\n"
27828 msgstr ""
27829
27830 #. type: textblock
27831 #: ../src/guestfs-actions.pod:4498
27832 msgid ""
27833 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27834 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27835 msgstr ""
27836
27837 #. type: =head2
27838 #: ../src/guestfs-actions.pod:4504
27839 msgid "guestfs_lvuuid"
27840 msgstr ""
27841
27842 #. type: verbatim
27843 #: ../src/guestfs-actions.pod:4506
27844 #, no-wrap
27845 msgid ""
27846 " char *\n"
27847 " guestfs_lvuuid (guestfs_h *g,\n"
27848 "                 const char *device);\n"
27849 "\n"
27850 msgstr ""
27851
27852 #. type: =head2
27853 #: ../src/guestfs-actions.pod:4517
27854 msgid "guestfs_lxattrlist"
27855 msgstr ""
27856
27857 #. type: verbatim
27858 #: ../src/guestfs-actions.pod:4519
27859 #, no-wrap
27860 msgid ""
27861 " struct guestfs_xattr_list *\n"
27862 " guestfs_lxattrlist (guestfs_h *g,\n"
27863 "                     const char *path,\n"
27864 "                     char *const *names);\n"
27865 "\n"
27866 msgstr ""
27867
27868 #. type: textblock
27869 #: ../src/guestfs-actions.pod:4538
27870 msgid ""
27871 "This call is intended for programs that want to efficiently list a directory "
27872 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27873 "a similarly efficient call for getting standard stats.  Very long directory "
27874 "listings might cause the protocol message size to be exceeded, causing this "
27875 "call to fail.  The caller must split up such requests into smaller groups of "
27876 "names."
27877 msgstr ""
27878
27879 #. type: =head2
27880 #: ../src/guestfs-actions.pod:4552
27881 msgid "guestfs_mkdir"
27882 msgstr ""
27883
27884 #. type: verbatim
27885 #: ../src/guestfs-actions.pod:4554
27886 #, no-wrap
27887 msgid ""
27888 " int\n"
27889 " guestfs_mkdir (guestfs_h *g,\n"
27890 "                const char *path);\n"
27891 "\n"
27892 msgstr ""
27893
27894 #. type: =head2
27895 #: ../src/guestfs-actions.pod:4564
27896 msgid "guestfs_mkdir_mode"
27897 msgstr ""
27898
27899 #. type: verbatim
27900 #: ../src/guestfs-actions.pod:4566
27901 #, no-wrap
27902 msgid ""
27903 " int\n"
27904 " guestfs_mkdir_mode (guestfs_h *g,\n"
27905 "                     const char *path,\n"
27906 "                     int mode);\n"
27907 "\n"
27908 msgstr ""
27909
27910 #. type: textblock
27911 #: ../src/guestfs-actions.pod:4578
27912 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27913 msgstr ""
27914
27915 #. type: =head2
27916 #: ../src/guestfs-actions.pod:4584
27917 msgid "guestfs_mkdir_p"
27918 msgstr ""
27919
27920 #. type: verbatim
27921 #: ../src/guestfs-actions.pod:4586
27922 #, no-wrap
27923 msgid ""
27924 " int\n"
27925 " guestfs_mkdir_p (guestfs_h *g,\n"
27926 "                  const char *path);\n"
27927 "\n"
27928 msgstr ""
27929
27930 #. type: =head2
27931 #: ../src/guestfs-actions.pod:4597
27932 msgid "guestfs_mkdtemp"
27933 msgstr ""
27934
27935 #. type: verbatim
27936 #: ../src/guestfs-actions.pod:4599
27937 #, no-wrap
27938 msgid ""
27939 " char *\n"
27940 " guestfs_mkdtemp (guestfs_h *g,\n"
27941 "                  const char *template);\n"
27942 "\n"
27943 msgstr ""
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:4627
27947 msgid "guestfs_mke2fs_J"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:4629
27952 #, no-wrap
27953 msgid ""
27954 " int\n"
27955 " guestfs_mke2fs_J (guestfs_h *g,\n"
27956 "                   const char *fstype,\n"
27957 "                   int blocksize,\n"
27958 "                   const char *device,\n"
27959 "                   const char *journal);\n"
27960 "\n"
27961 msgstr ""
27962
27963 #. type: textblock
27964 #: ../src/guestfs-actions.pod:4642
27965 msgid "See also C<guestfs_mke2journal>."
27966 msgstr ""
27967
27968 #. type: textblock
27969 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
27970 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
27971 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
27972 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
27973 msgid "(Added in 1.0.68)"
27974 msgstr ""
27975
27976 #. type: =head2
27977 #: ../src/guestfs-actions.pod:4648
27978 msgid "guestfs_mke2fs_JL"
27979 msgstr ""
27980
27981 #. type: verbatim
27982 #: ../src/guestfs-actions.pod:4650
27983 #, no-wrap
27984 msgid ""
27985 " int\n"
27986 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27987 "                    const char *fstype,\n"
27988 "                    int blocksize,\n"
27989 "                    const char *device,\n"
27990 "                    const char *label);\n"
27991 "\n"
27992 msgstr ""
27993
27994 #. type: textblock
27995 #: ../src/guestfs-actions.pod:4660
27996 msgid "See also C<guestfs_mke2journal_L>."
27997 msgstr ""
27998
27999 #. type: =head2
28000 #: ../src/guestfs-actions.pod:4666
28001 msgid "guestfs_mke2fs_JU"
28002 msgstr ""
28003
28004 #. type: verbatim
28005 #: ../src/guestfs-actions.pod:4668
28006 #, no-wrap
28007 msgid ""
28008 " int\n"
28009 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28010 "                    const char *fstype,\n"
28011 "                    int blocksize,\n"
28012 "                    const char *device,\n"
28013 "                    const char *uuid);\n"
28014 "\n"
28015 msgstr ""
28016
28017 #. type: textblock
28018 #: ../src/guestfs-actions.pod:4678
28019 msgid "See also C<guestfs_mke2journal_U>."
28020 msgstr ""
28021
28022 #. type: =head2
28023 #: ../src/guestfs-actions.pod:4684
28024 msgid "guestfs_mke2journal"
28025 msgstr ""
28026
28027 #. type: verbatim
28028 #: ../src/guestfs-actions.pod:4686
28029 #, no-wrap
28030 msgid ""
28031 " int\n"
28032 " guestfs_mke2journal (guestfs_h *g,\n"
28033 "                      int blocksize,\n"
28034 "                      const char *device);\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: =head2
28039 #: ../src/guestfs-actions.pod:4700
28040 msgid "guestfs_mke2journal_L"
28041 msgstr ""
28042
28043 #. type: verbatim
28044 #: ../src/guestfs-actions.pod:4702
28045 #, no-wrap
28046 msgid ""
28047 " int\n"
28048 " guestfs_mke2journal_L (guestfs_h *g,\n"
28049 "                        int blocksize,\n"
28050 "                        const char *label,\n"
28051 "                        const char *device);\n"
28052 "\n"
28053 msgstr ""
28054
28055 #. type: =head2
28056 #: ../src/guestfs-actions.pod:4714
28057 msgid "guestfs_mke2journal_U"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:4716
28062 #, no-wrap
28063 msgid ""
28064 " int\n"
28065 " guestfs_mke2journal_U (guestfs_h *g,\n"
28066 "                        int blocksize,\n"
28067 "                        const char *uuid,\n"
28068 "                        const char *device);\n"
28069 "\n"
28070 msgstr ""
28071
28072 #. type: =head2
28073 #: ../src/guestfs-actions.pod:4728
28074 msgid "guestfs_mkfifo"
28075 msgstr ""
28076
28077 #. type: verbatim
28078 #: ../src/guestfs-actions.pod:4730
28079 #, no-wrap
28080 msgid ""
28081 " int\n"
28082 " guestfs_mkfifo (guestfs_h *g,\n"
28083 "                 int mode,\n"
28084 "                 const char *path);\n"
28085 "\n"
28086 msgstr ""
28087
28088 #. type: textblock
28089 #: ../src/guestfs-actions.pod:4735
28090 msgid ""
28091 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28092 "is just a convenient wrapper around C<guestfs_mknod>."
28093 msgstr ""
28094
28095 #. type: =head2
28096 #: ../src/guestfs-actions.pod:4745
28097 msgid "guestfs_mkfs"
28098 msgstr ""
28099
28100 #. type: verbatim
28101 #: ../src/guestfs-actions.pod:4747
28102 #, no-wrap
28103 msgid ""
28104 " int\n"
28105 " guestfs_mkfs (guestfs_h *g,\n"
28106 "               const char *fstype,\n"
28107 "               const char *device);\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:4760
28113 msgid "guestfs_mkfs_b"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:4762
28118 #, no-wrap
28119 msgid ""
28120 " int\n"
28121 " guestfs_mkfs_b (guestfs_h *g,\n"
28122 "                 const char *fstype,\n"
28123 "                 int blocksize,\n"
28124 "                 const char *device);\n"
28125 "\n"
28126 msgstr ""
28127
28128 #. type: textblock
28129 #: ../src/guestfs-actions.pod:4768
28130 msgid ""
28131 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28132 "call instead."
28133 msgstr ""
28134
28135 #. type: textblock
28136 #: ../src/guestfs-actions.pod:4775
28137 msgid ""
28138 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28139 "block size of the resulting filesystem.  Supported block sizes depend on the "
28140 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28141 msgstr ""
28142
28143 #. type: =head2
28144 #: ../src/guestfs-actions.pod:4787
28145 msgid "guestfs_mkfs_opts"
28146 msgstr ""
28147
28148 #. type: verbatim
28149 #: ../src/guestfs-actions.pod:4789
28150 #, no-wrap
28151 msgid ""
28152 " int\n"
28153 " guestfs_mkfs_opts (guestfs_h *g,\n"
28154 "                    const char *fstype,\n"
28155 "                    const char *device,\n"
28156 "                    ...);\n"
28157 "\n"
28158 msgstr ""
28159
28160 #. type: verbatim
28161 #: ../src/guestfs-actions.pod:4800
28162 #, no-wrap
28163 msgid ""
28164 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28165 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28166 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28167 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28168 "\n"
28169 msgstr ""
28170
28171 #. type: textblock
28172 #: ../src/guestfs-actions.pod:4848
28173 msgid "(Added in 1.7.19)"
28174 msgstr ""
28175
28176 #. type: =head2
28177 #: ../src/guestfs-actions.pod:4850
28178 msgid "guestfs_mkfs_opts_va"
28179 msgstr ""
28180
28181 #. type: verbatim
28182 #: ../src/guestfs-actions.pod:4852
28183 #, no-wrap
28184 msgid ""
28185 " int\n"
28186 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28187 "                       const char *fstype,\n"
28188 "                       const char *device,\n"
28189 "                       va_list args);\n"
28190 "\n"
28191 msgstr ""
28192
28193 #. type: textblock
28194 #: ../src/guestfs-actions.pod:4858
28195 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28196 msgstr ""
28197
28198 #. type: =head2
28199 #: ../src/guestfs-actions.pod:4862
28200 msgid "guestfs_mkfs_opts_argv"
28201 msgstr ""
28202
28203 #. type: verbatim
28204 #: ../src/guestfs-actions.pod:4864
28205 #, no-wrap
28206 msgid ""
28207 " int\n"
28208 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28209 "                         const char *fstype,\n"
28210 "                         const char *device,\n"
28211 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28212 "\n"
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../src/guestfs-actions.pod:4870
28217 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28218 msgstr ""
28219
28220 #. type: =head2
28221 #: ../src/guestfs-actions.pod:4874
28222 msgid "guestfs_mkmountpoint"
28223 msgstr ""
28224
28225 #. type: verbatim
28226 #: ../src/guestfs-actions.pod:4876
28227 #, no-wrap
28228 msgid ""
28229 " int\n"
28230 " guestfs_mkmountpoint (guestfs_h *g,\n"
28231 "                       const char *exemptpath);\n"
28232 "\n"
28233 msgstr ""
28234
28235 #. type: textblock
28236 #: ../src/guestfs-actions.pod:4880
28237 msgid ""
28238 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28239 "that can be used to create extra mountpoints before mounting the first "
28240 "filesystem."
28241 msgstr ""
28242
28243 #. type: textblock
28244 #: ../src/guestfs-actions.pod:4904
28245 msgid ""
28246 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28247 "may get unexpected errors if you try to mix these calls.  It is safest to "
28248 "manually unmount filesystems and remove mountpoints after use."
28249 msgstr ""
28250
28251 #. type: textblock
28252 #: ../src/guestfs-actions.pod:4908
28253 msgid ""
28254 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28255 "first, so for this to work for manual mountpoints, you must ensure that the "
28256 "innermost mountpoints have the longest pathnames, as in the example code "
28257 "above."
28258 msgstr ""
28259
28260 #. type: textblock
28261 #: ../src/guestfs-actions.pod:4915
28262 msgid ""
28263 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28264 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28265 "can also trigger these issues."
28266 msgstr ""
28267
28268 #. type: textblock
28269 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
28270 #: ../src/guestfs-actions.pod:6237
28271 msgid "(Added in 1.0.62)"
28272 msgstr ""
28273
28274 #. type: =head2
28275 #: ../src/guestfs-actions.pod:4923
28276 msgid "guestfs_mknod"
28277 msgstr ""
28278
28279 #. type: verbatim
28280 #: ../src/guestfs-actions.pod:4925
28281 #, no-wrap
28282 msgid ""
28283 " int\n"
28284 " guestfs_mknod (guestfs_h *g,\n"
28285 "                int mode,\n"
28286 "                int devmajor,\n"
28287 "                int devminor,\n"
28288 "                const char *path);\n"
28289 "\n"
28290 msgstr ""
28291
28292 #. type: textblock
28293 #: ../src/guestfs-actions.pod:4940
28294 msgid ""
28295 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28296 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28297 "regular file).  These constants are available in the standard Linux header "
28298 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28299 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28300 "the appropriate constant for you."
28301 msgstr ""
28302
28303 #. type: =head2
28304 #: ../src/guestfs-actions.pod:4954
28305 msgid "guestfs_mknod_b"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../src/guestfs-actions.pod:4956
28310 #, no-wrap
28311 msgid ""
28312 " int\n"
28313 " guestfs_mknod_b (guestfs_h *g,\n"
28314 "                  int mode,\n"
28315 "                  int devmajor,\n"
28316 "                  int devminor,\n"
28317 "                  const char *path);\n"
28318 "\n"
28319 msgstr ""
28320
28321 #. type: textblock
28322 #: ../src/guestfs-actions.pod:4963
28323 msgid ""
28324 "This call creates a block device node called C<path> with mode C<mode> and "
28325 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28326 "wrapper around C<guestfs_mknod>."
28327 msgstr ""
28328
28329 #. type: =head2
28330 #: ../src/guestfs-actions.pod:4973
28331 msgid "guestfs_mknod_c"
28332 msgstr ""
28333
28334 #. type: verbatim
28335 #: ../src/guestfs-actions.pod:4975
28336 #, no-wrap
28337 msgid ""
28338 " int\n"
28339 " guestfs_mknod_c (guestfs_h *g,\n"
28340 "                  int mode,\n"
28341 "                  int devmajor,\n"
28342 "                  int devminor,\n"
28343 "                  const char *path);\n"
28344 "\n"
28345 msgstr ""
28346
28347 #. type: textblock
28348 #: ../src/guestfs-actions.pod:4982
28349 msgid ""
28350 "This call creates a char device node called C<path> with mode C<mode> and "
28351 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28352 "wrapper around C<guestfs_mknod>."
28353 msgstr ""
28354
28355 #. type: =head2
28356 #: ../src/guestfs-actions.pod:4992
28357 msgid "guestfs_mkswap"
28358 msgstr ""
28359
28360 #. type: verbatim
28361 #: ../src/guestfs-actions.pod:4994
28362 #, no-wrap
28363 msgid ""
28364 " int\n"
28365 " guestfs_mkswap (guestfs_h *g,\n"
28366 "                 const char *device);\n"
28367 "\n"
28368 msgstr ""
28369
28370 #. type: =head2
28371 #: ../src/guestfs-actions.pod:5004
28372 msgid "guestfs_mkswap_L"
28373 msgstr ""
28374
28375 #. type: verbatim
28376 #: ../src/guestfs-actions.pod:5006
28377 #, no-wrap
28378 msgid ""
28379 " int\n"
28380 " guestfs_mkswap_L (guestfs_h *g,\n"
28381 "                   const char *label,\n"
28382 "                   const char *device);\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: =head2
28387 #: ../src/guestfs-actions.pod:5021
28388 msgid "guestfs_mkswap_U"
28389 msgstr ""
28390
28391 #. type: verbatim
28392 #: ../src/guestfs-actions.pod:5023
28393 #, no-wrap
28394 msgid ""
28395 " int\n"
28396 " guestfs_mkswap_U (guestfs_h *g,\n"
28397 "                   const char *uuid,\n"
28398 "                   const char *device);\n"
28399 "\n"
28400 msgstr ""
28401
28402 #. type: =head2
28403 #: ../src/guestfs-actions.pod:5034
28404 msgid "guestfs_mkswap_file"
28405 msgstr ""
28406
28407 #. type: verbatim
28408 #: ../src/guestfs-actions.pod:5036
28409 #, no-wrap
28410 msgid ""
28411 " int\n"
28412 " guestfs_mkswap_file (guestfs_h *g,\n"
28413 "                      const char *path);\n"
28414 "\n"
28415 msgstr ""
28416
28417 #. type: textblock
28418 #: ../src/guestfs-actions.pod:5042
28419 msgid ""
28420 "This command just writes a swap file signature to an existing file.  To "
28421 "create the file itself, use something like C<guestfs_fallocate>."
28422 msgstr ""
28423
28424 #. type: =head2
28425 #: ../src/guestfs-actions.pod:5049
28426 msgid "guestfs_modprobe"
28427 msgstr ""
28428
28429 #. type: verbatim
28430 #: ../src/guestfs-actions.pod:5051
28431 #, no-wrap
28432 msgid ""
28433 " int\n"
28434 " guestfs_modprobe (guestfs_h *g,\n"
28435 "                   const char *modulename);\n"
28436 "\n"
28437 msgstr ""
28438
28439 #. type: =head2
28440 #: ../src/guestfs-actions.pod:5064
28441 msgid "guestfs_mount"
28442 msgstr ""
28443
28444 #. type: verbatim
28445 #: ../src/guestfs-actions.pod:5066
28446 #, no-wrap
28447 msgid ""
28448 " int\n"
28449 " guestfs_mount (guestfs_h *g,\n"
28450 "                const char *device,\n"
28451 "                const char *mountpoint);\n"
28452 "\n"
28453 msgstr ""
28454
28455 #. type: textblock
28456 #: ../src/guestfs-actions.pod:5085
28457 msgid ""
28458 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
28459 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
28460 "problems for users.  If your program might need to work with older versions "
28461 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
28462 "for the first parameter if you don't want any options)."
28463 msgstr ""
28464
28465 #. type: =head2
28466 #: ../src/guestfs-actions.pod:5096
28467 msgid "guestfs_mount_9p"
28468 msgstr ""
28469
28470 #. type: verbatim
28471 #: ../src/guestfs-actions.pod:5098
28472 #, no-wrap
28473 msgid ""
28474 " int\n"
28475 " guestfs_mount_9p (guestfs_h *g,\n"
28476 "                   const char *mounttag,\n"
28477 "                   const char *mountpoint,\n"
28478 "                   ...);\n"
28479 "\n"
28480 msgstr ""
28481
28482 #. type: verbatim
28483 #: ../src/guestfs-actions.pod:5109
28484 #, no-wrap
28485 msgid ""
28486 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28487 "\n"
28488 msgstr ""
28489
28490 #. type: =head2
28491 #: ../src/guestfs-actions.pod:5122
28492 msgid "guestfs_mount_9p_va"
28493 msgstr ""
28494
28495 #. type: verbatim
28496 #: ../src/guestfs-actions.pod:5124
28497 #, no-wrap
28498 msgid ""
28499 " int\n"
28500 " guestfs_mount_9p_va (guestfs_h *g,\n"
28501 "                      const char *mounttag,\n"
28502 "                      const char *mountpoint,\n"
28503 "                      va_list args);\n"
28504 "\n"
28505 msgstr ""
28506
28507 #. type: textblock
28508 #: ../src/guestfs-actions.pod:5130
28509 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28510 msgstr ""
28511
28512 #. type: =head2
28513 #: ../src/guestfs-actions.pod:5134
28514 msgid "guestfs_mount_9p_argv"
28515 msgstr ""
28516
28517 #. type: verbatim
28518 #: ../src/guestfs-actions.pod:5136
28519 #, no-wrap
28520 msgid ""
28521 " int\n"
28522 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28523 "                        const char *mounttag,\n"
28524 "                        const char *mountpoint,\n"
28525 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28526 "\n"
28527 msgstr ""
28528
28529 #. type: textblock
28530 #: ../src/guestfs-actions.pod:5142
28531 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28532 msgstr ""
28533
28534 #. type: =head2
28535 #: ../src/guestfs-actions.pod:5146
28536 msgid "guestfs_mount_loop"
28537 msgstr ""
28538
28539 #. type: verbatim
28540 #: ../src/guestfs-actions.pod:5148
28541 #, no-wrap
28542 msgid ""
28543 " int\n"
28544 " guestfs_mount_loop (guestfs_h *g,\n"
28545 "                     const char *file,\n"
28546 "                     const char *mountpoint);\n"
28547 "\n"
28548 msgstr ""
28549
28550 #. type: =head2
28551 #: ../src/guestfs-actions.pod:5161
28552 msgid "guestfs_mount_options"
28553 msgstr ""
28554
28555 #. type: verbatim
28556 #: ../src/guestfs-actions.pod:5163
28557 #, no-wrap
28558 msgid ""
28559 " int\n"
28560 " guestfs_mount_options (guestfs_h *g,\n"
28561 "                        const char *options,\n"
28562 "                        const char *device,\n"
28563 "                        const char *mountpoint);\n"
28564 "\n"
28565 msgstr ""
28566
28567 #. type: textblock
28568 #: ../src/guestfs-actions.pod:5169
28569 msgid ""
28570 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28571 "the mount options as for the L<mount(8)> I<-o> flag."
28572 msgstr ""
28573
28574 #. type: textblock
28575 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
28576 #: ../src/guestfs-actions.pod:5210
28577 msgid "(Added in 1.0.10)"
28578 msgstr ""
28579
28580 #. type: =head2
28581 #: ../src/guestfs-actions.pod:5181
28582 msgid "guestfs_mount_ro"
28583 msgstr ""
28584
28585 #. type: verbatim
28586 #: ../src/guestfs-actions.pod:5183
28587 #, no-wrap
28588 msgid ""
28589 " int\n"
28590 " guestfs_mount_ro (guestfs_h *g,\n"
28591 "                   const char *device,\n"
28592 "                   const char *mountpoint);\n"
28593 "\n"
28594 msgstr ""
28595
28596 #. type: textblock
28597 #: ../src/guestfs-actions.pod:5188
28598 msgid ""
28599 "This is the same as the C<guestfs_mount> command, but it mounts the "
28600 "filesystem with the read-only (I<-o ro>) flag."
28601 msgstr ""
28602
28603 #. type: =head2
28604 #: ../src/guestfs-actions.pod:5195
28605 msgid "guestfs_mount_vfs"
28606 msgstr ""
28607
28608 #. type: verbatim
28609 #: ../src/guestfs-actions.pod:5197
28610 #, no-wrap
28611 msgid ""
28612 " int\n"
28613 " guestfs_mount_vfs (guestfs_h *g,\n"
28614 "                    const char *options,\n"
28615 "                    const char *vfstype,\n"
28616 "                    const char *device,\n"
28617 "                    const char *mountpoint);\n"
28618 "\n"
28619 msgstr ""
28620
28621 #. type: textblock
28622 #: ../src/guestfs-actions.pod:5204
28623 msgid ""
28624 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28625 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28626 "t> flags."
28627 msgstr ""
28628
28629 #. type: =head2
28630 #: ../src/guestfs-actions.pod:5212
28631 msgid "guestfs_mountpoints"
28632 msgstr ""
28633
28634 #. type: verbatim
28635 #: ../src/guestfs-actions.pod:5214
28636 #, no-wrap
28637 msgid ""
28638 " char **\n"
28639 " guestfs_mountpoints (guestfs_h *g);\n"
28640 "\n"
28641 msgstr ""
28642
28643 #. type: textblock
28644 #: ../src/guestfs-actions.pod:5217
28645 msgid ""
28646 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28647 "devices.  This one returns a hash table (map) of device name to directory "
28648 "where the device is mounted."
28649 msgstr ""
28650
28651 #. type: =head2
28652 #: ../src/guestfs-actions.pod:5229
28653 msgid "guestfs_mounts"
28654 msgstr ""
28655
28656 #. type: verbatim
28657 #: ../src/guestfs-actions.pod:5231
28658 #, no-wrap
28659 msgid ""
28660 " char **\n"
28661 " guestfs_mounts (guestfs_h *g);\n"
28662 "\n"
28663 msgstr ""
28664
28665 #. type: textblock
28666 #: ../src/guestfs-actions.pod:5239
28667 msgid "See also: C<guestfs_mountpoints>"
28668 msgstr ""
28669
28670 #. type: =head2
28671 #: ../src/guestfs-actions.pod:5247
28672 msgid "guestfs_mv"
28673 msgstr ""
28674
28675 #. type: verbatim
28676 #: ../src/guestfs-actions.pod:5249
28677 #, no-wrap
28678 msgid ""
28679 " int\n"
28680 " guestfs_mv (guestfs_h *g,\n"
28681 "             const char *src,\n"
28682 "             const char *dest);\n"
28683 "\n"
28684 msgstr ""
28685
28686 #. type: =head2
28687 #: ../src/guestfs-actions.pod:5261
28688 msgid "guestfs_ntfs_3g_probe"
28689 msgstr ""
28690
28691 #. type: verbatim
28692 #: ../src/guestfs-actions.pod:5263
28693 #, no-wrap
28694 msgid ""
28695 " int\n"
28696 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28697 "                        int rw,\n"
28698 "                        const char *device);\n"
28699 "\n"
28700 msgstr ""
28701
28702 #. type: textblock
28703 #: ../src/guestfs-actions.pod:5282
28704 msgid "(Added in 1.0.43)"
28705 msgstr ""
28706
28707 #. type: =head2
28708 #: ../src/guestfs-actions.pod:5284
28709 msgid "guestfs_ntfsresize"
28710 msgstr ""
28711
28712 #. type: verbatim
28713 #: ../src/guestfs-actions.pod:5286
28714 #, no-wrap
28715 msgid ""
28716 " int\n"
28717 " guestfs_ntfsresize (guestfs_h *g,\n"
28718 "                     const char *device);\n"
28719 "\n"
28720 msgstr ""
28721
28722 #. type: textblock
28723 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
28724 msgid ""
28725 "I<This function is deprecated.> In new code, use the L</"
28726 "guestfs_ntfsresize_opts> call instead."
28727 msgstr ""
28728
28729 #. type: =head2
28730 #: ../src/guestfs-actions.pod:5314
28731 msgid "guestfs_ntfsresize_opts"
28732 msgstr ""
28733
28734 #. type: verbatim
28735 #: ../src/guestfs-actions.pod:5316
28736 #, no-wrap
28737 msgid ""
28738 " int\n"
28739 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28740 "                          const char *device,\n"
28741 "                          ...);\n"
28742 "\n"
28743 msgstr ""
28744
28745 #. type: verbatim
28746 #: ../src/guestfs-actions.pod:5326
28747 #, no-wrap
28748 msgid ""
28749 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28750 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28751 "\n"
28752 msgstr ""
28753
28754 #. type: textblock
28755 #: ../src/guestfs-actions.pod:5346
28756 msgid ""
28757 "After the resize operation, the filesystem is always marked as requiring a "
28758 "consistency check (for safety).  You have to boot into Windows to perform "
28759 "this check and clear this condition.  If you I<don't> set the C<force> "
28760 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28761 "times on a single filesystem without booting into Windows between each "
28762 "resize."
28763 msgstr ""
28764
28765 #. type: =head2
28766 #: ../src/guestfs-actions.pod:5361
28767 msgid "guestfs_ntfsresize_opts_va"
28768 msgstr ""
28769
28770 #. type: verbatim
28771 #: ../src/guestfs-actions.pod:5363
28772 #, no-wrap
28773 msgid ""
28774 " int\n"
28775 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28776 "                             const char *device,\n"
28777 "                             va_list args);\n"
28778 "\n"
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../src/guestfs-actions.pod:5368
28783 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28784 msgstr ""
28785
28786 #. type: =head2
28787 #: ../src/guestfs-actions.pod:5372
28788 msgid "guestfs_ntfsresize_opts_argv"
28789 msgstr ""
28790
28791 #. type: verbatim
28792 #: ../src/guestfs-actions.pod:5374
28793 #, no-wrap
28794 msgid ""
28795 " int\n"
28796 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28797 "                               const char *device,\n"
28798 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28799 "\n"
28800 msgstr ""
28801
28802 #. type: textblock
28803 #: ../src/guestfs-actions.pod:5379
28804 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28805 msgstr ""
28806
28807 #. type: =head2
28808 #: ../src/guestfs-actions.pod:5383
28809 msgid "guestfs_ntfsresize_size"
28810 msgstr ""
28811
28812 #. type: verbatim
28813 #: ../src/guestfs-actions.pod:5385
28814 #, no-wrap
28815 msgid ""
28816 " int\n"
28817 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28818 "                          const char *device,\n"
28819 "                          int64_t size);\n"
28820 "\n"
28821 msgstr ""
28822
28823 #. type: textblock
28824 #: ../src/guestfs-actions.pod:5397
28825 msgid ""
28826 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28827 "to specify the new size (in bytes) explicitly."
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
28832 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
28833 #: ../src/guestfs-actions.pod:7824
28834 msgid "(Added in 1.3.14)"
28835 msgstr ""
28836
28837 #. type: =head2
28838 #: ../src/guestfs-actions.pod:5404
28839 msgid "guestfs_part_add"
28840 msgstr ""
28841
28842 #. type: verbatim
28843 #: ../src/guestfs-actions.pod:5406
28844 #, no-wrap
28845 msgid ""
28846 " int\n"
28847 " guestfs_part_add (guestfs_h *g,\n"
28848 "                   const char *device,\n"
28849 "                   const char *prlogex,\n"
28850 "                   int64_t startsect,\n"
28851 "                   int64_t endsect);\n"
28852 "\n"
28853 msgstr ""
28854
28855 #. type: textblock
28856 #: ../src/guestfs-actions.pod:5413
28857 msgid ""
28858 "This command adds a partition to C<device>.  If there is no partition table "
28859 "on the device, call C<guestfs_part_init> first."
28860 msgstr ""
28861
28862 #. type: textblock
28863 #: ../src/guestfs-actions.pod:5425
28864 msgid ""
28865 "Creating a partition which covers the whole disk is not so easy.  Use "
28866 "C<guestfs_part_disk> to do that."
28867 msgstr ""
28868
28869 #. type: textblock
28870 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
28871 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
28872 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
28873 #: ../src/guestfs-actions.pod:5702
28874 msgid "(Added in 1.0.78)"
28875 msgstr ""
28876
28877 #. type: =head2
28878 #: ../src/guestfs-actions.pod:5432
28879 msgid "guestfs_part_del"
28880 msgstr ""
28881
28882 #. type: verbatim
28883 #: ../src/guestfs-actions.pod:5434
28884 #, no-wrap
28885 msgid ""
28886 " int\n"
28887 " guestfs_part_del (guestfs_h *g,\n"
28888 "                   const char *device,\n"
28889 "                   int partnum);\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:5449
28895 msgid "guestfs_part_disk"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:5451
28900 #, no-wrap
28901 msgid ""
28902 " int\n"
28903 " guestfs_part_disk (guestfs_h *g,\n"
28904 "                    const char *device,\n"
28905 "                    const char *parttype);\n"
28906 "\n"
28907 msgstr ""
28908
28909 #. type: textblock
28910 #: ../src/guestfs-actions.pod:5456
28911 msgid ""
28912 "This command is simply a combination of C<guestfs_part_init> followed by "
28913 "C<guestfs_part_add> to create a single primary partition covering the whole "
28914 "disk."
28915 msgstr ""
28916
28917 #. type: textblock
28918 #: ../src/guestfs-actions.pod:5460
28919 msgid ""
28920 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28921 "possible values are described in C<guestfs_part_init>."
28922 msgstr ""
28923
28924 #. type: =head2
28925 #: ../src/guestfs-actions.pod:5470
28926 msgid "guestfs_part_get_bootable"
28927 msgstr ""
28928
28929 #. type: verbatim
28930 #: ../src/guestfs-actions.pod:5472
28931 #, no-wrap
28932 msgid ""
28933 " int\n"
28934 " guestfs_part_get_bootable (guestfs_h *g,\n"
28935 "                            const char *device,\n"
28936 "                            int partnum);\n"
28937 "\n"
28938 msgstr ""
28939
28940 #. type: textblock
28941 #: ../src/guestfs-actions.pod:5480
28942 msgid "See also C<guestfs_part_set_bootable>."
28943 msgstr ""
28944
28945 #. type: =head2
28946 #: ../src/guestfs-actions.pod:5486
28947 msgid "guestfs_part_get_mbr_id"
28948 msgstr ""
28949
28950 #. type: verbatim
28951 #: ../src/guestfs-actions.pod:5488
28952 #, no-wrap
28953 msgid ""
28954 " int\n"
28955 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28956 "                          const char *device,\n"
28957 "                          int partnum);\n"
28958 "\n"
28959 msgstr ""
28960
28961 #. type: textblock
28962 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
28963 msgid ""
28964 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28965 "undefined results for other partition table types (see "
28966 "C<guestfs_part_get_parttype>)."
28967 msgstr ""
28968
28969 #. type: =head2
28970 #: ../src/guestfs-actions.pod:5504
28971 msgid "guestfs_part_get_parttype"
28972 msgstr ""
28973
28974 #. type: verbatim
28975 #: ../src/guestfs-actions.pod:5506
28976 #, no-wrap
28977 msgid ""
28978 " char *\n"
28979 " guestfs_part_get_parttype (guestfs_h *g,\n"
28980 "                            const char *device);\n"
28981 "\n"
28982 msgstr ""
28983
28984 #. type: textblock
28985 #: ../src/guestfs-actions.pod:5513
28986 msgid ""
28987 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28988 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28989 "possible, although unusual.  See C<guestfs_part_init> for a full list."
28990 msgstr ""
28991
28992 #. type: =head2
28993 #: ../src/guestfs-actions.pod:5523
28994 msgid "guestfs_part_init"
28995 msgstr ""
28996
28997 #. type: verbatim
28998 #: ../src/guestfs-actions.pod:5525
28999 #, no-wrap
29000 msgid ""
29001 " int\n"
29002 " guestfs_part_init (guestfs_h *g,\n"
29003 "                    const char *device,\n"
29004 "                    const char *parttype);\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: textblock
29009 #: ../src/guestfs-actions.pod:5534
29010 msgid ""
29011 "Initially there are no partitions.  Following this, you should call "
29012 "C<guestfs_part_add> for each partition required."
29013 msgstr ""
29014
29015 #. type: =head2
29016 #: ../src/guestfs-actions.pod:5607
29017 msgid "guestfs_part_list"
29018 msgstr ""
29019
29020 #. type: verbatim
29021 #: ../src/guestfs-actions.pod:5609
29022 #, no-wrap
29023 msgid ""
29024 " struct guestfs_partition_list *\n"
29025 " guestfs_part_list (guestfs_h *g,\n"
29026 "                    const char *device);\n"
29027 "\n"
29028 msgstr ""
29029
29030 #. type: textblock
29031 #: ../src/guestfs-actions.pod:5626
29032 msgid ""
29033 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29034 "the device's sector size, see C<guestfs_blockdev_getss>."
29035 msgstr ""
29036
29037 #. type: textblock
29038 #: ../src/guestfs-actions.pod:5639
29039 msgid ""
29040 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29041 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29042 "use>."
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:5645
29047 msgid "guestfs_part_set_bootable"
29048 msgstr ""
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:5647
29052 #, no-wrap
29053 msgid ""
29054 " int\n"
29055 " guestfs_part_set_bootable (guestfs_h *g,\n"
29056 "                            const char *device,\n"
29057 "                            int partnum,\n"
29058 "                            int bootable);\n"
29059 "\n"
29060 msgstr ""
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:5664
29064 msgid "guestfs_part_set_mbr_id"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:5666
29069 #, no-wrap
29070 msgid ""
29071 " int\n"
29072 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29073 "                          const char *device,\n"
29074 "                          int partnum,\n"
29075 "                          int idbyte);\n"
29076 "\n"
29077 msgstr ""
29078
29079 #. type: =head2
29080 #: ../src/guestfs-actions.pod:5686
29081 msgid "guestfs_part_set_name"
29082 msgstr ""
29083
29084 #. type: verbatim
29085 #: ../src/guestfs-actions.pod:5688
29086 #, no-wrap
29087 msgid ""
29088 " int\n"
29089 " guestfs_part_set_name (guestfs_h *g,\n"
29090 "                        const char *device,\n"
29091 "                        int partnum,\n"
29092 "                        const char *name);\n"
29093 "\n"
29094 msgstr ""
29095
29096 #. type: =head2
29097 #: ../src/guestfs-actions.pod:5704
29098 msgid "guestfs_part_to_dev"
29099 msgstr ""
29100
29101 #. type: verbatim
29102 #: ../src/guestfs-actions.pod:5706
29103 #, no-wrap
29104 msgid ""
29105 " char *\n"
29106 " guestfs_part_to_dev (guestfs_h *g,\n"
29107 "                      const char *partition);\n"
29108 "\n"
29109 msgstr ""
29110
29111 #. type: textblock
29112 #: ../src/guestfs-actions.pod:5714
29113 msgid ""
29114 "The named partition must exist, for example as a string returned from "
29115 "C<guestfs_list_partitions>."
29116 msgstr ""
29117
29118 #. type: =head2
29119 #: ../src/guestfs-actions.pod:5722
29120 msgid "guestfs_ping_daemon"
29121 msgstr ""
29122
29123 #. type: verbatim
29124 #: ../src/guestfs-actions.pod:5724
29125 #, no-wrap
29126 msgid ""
29127 " int\n"
29128 " guestfs_ping_daemon (guestfs_h *g);\n"
29129 "\n"
29130 msgstr ""
29131
29132 #. type: =head2
29133 #: ../src/guestfs-actions.pod:5736
29134 msgid "guestfs_pread"
29135 msgstr ""
29136
29137 #. type: verbatim
29138 #: ../src/guestfs-actions.pod:5738
29139 #, no-wrap
29140 msgid ""
29141 " char *\n"
29142 " guestfs_pread (guestfs_h *g,\n"
29143 "                const char *path,\n"
29144 "                int count,\n"
29145 "                int64_t offset,\n"
29146 "                size_t *size_r);\n"
29147 "\n"
29148 msgstr ""
29149
29150 #. type: textblock
29151 #: ../src/guestfs-actions.pod:5751
29152 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29153 msgstr ""
29154
29155 #. type: =head2
29156 #: ../src/guestfs-actions.pod:5762
29157 msgid "guestfs_pread_device"
29158 msgstr ""
29159
29160 #. type: verbatim
29161 #: ../src/guestfs-actions.pod:5764
29162 #, no-wrap
29163 msgid ""
29164 " char *\n"
29165 " guestfs_pread_device (guestfs_h *g,\n"
29166 "                       const char *device,\n"
29167 "                       int count,\n"
29168 "                       int64_t offset,\n"
29169 "                       size_t *size_r);\n"
29170 "\n"
29171 msgstr ""
29172
29173 #. type: textblock
29174 #: ../src/guestfs-actions.pod:5777
29175 msgid "See also C<guestfs_pread>."
29176 msgstr ""
29177
29178 #. type: textblock
29179 #: ../src/guestfs-actions.pod:5786
29180 msgid "(Added in 1.5.21)"
29181 msgstr ""
29182
29183 #. type: =head2
29184 #: ../src/guestfs-actions.pod:5788
29185 msgid "guestfs_pvcreate"
29186 msgstr ""
29187
29188 #. type: verbatim
29189 #: ../src/guestfs-actions.pod:5790
29190 #, no-wrap
29191 msgid ""
29192 " int\n"
29193 " guestfs_pvcreate (guestfs_h *g,\n"
29194 "                   const char *device);\n"
29195 "\n"
29196 msgstr ""
29197
29198 #. type: =head2
29199 #: ../src/guestfs-actions.pod:5802
29200 msgid "guestfs_pvremove"
29201 msgstr ""
29202
29203 #. type: verbatim
29204 #: ../src/guestfs-actions.pod:5804
29205 #, no-wrap
29206 msgid ""
29207 " int\n"
29208 " guestfs_pvremove (guestfs_h *g,\n"
29209 "                   const char *device);\n"
29210 "\n"
29211 msgstr ""
29212
29213 #. type: =head2
29214 #: ../src/guestfs-actions.pod:5819
29215 msgid "guestfs_pvresize"
29216 msgstr ""
29217
29218 #. type: verbatim
29219 #: ../src/guestfs-actions.pod:5821
29220 #, no-wrap
29221 msgid ""
29222 " int\n"
29223 " guestfs_pvresize (guestfs_h *g,\n"
29224 "                   const char *device);\n"
29225 "\n"
29226 msgstr ""
29227
29228 #. type: =head2
29229 #: ../src/guestfs-actions.pod:5832
29230 msgid "guestfs_pvresize_size"
29231 msgstr ""
29232
29233 #. type: verbatim
29234 #: ../src/guestfs-actions.pod:5834
29235 #, no-wrap
29236 msgid ""
29237 " int\n"
29238 " guestfs_pvresize_size (guestfs_h *g,\n"
29239 "                        const char *device,\n"
29240 "                        int64_t size);\n"
29241 "\n"
29242 msgstr ""
29243
29244 #. type: textblock
29245 #: ../src/guestfs-actions.pod:5839
29246 msgid ""
29247 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29248 "specify the new size (in bytes) explicitly."
29249 msgstr ""
29250
29251 #. type: =head2
29252 #: ../src/guestfs-actions.pod:5846
29253 msgid "guestfs_pvs"
29254 msgstr ""
29255
29256 #. type: verbatim
29257 #: ../src/guestfs-actions.pod:5848
29258 #, no-wrap
29259 msgid ""
29260 " char **\n"
29261 " guestfs_pvs (guestfs_h *g);\n"
29262 "\n"
29263 msgstr ""
29264
29265 #. type: textblock
29266 #: ../src/guestfs-actions.pod:5857
29267 msgid "See also C<guestfs_pvs_full>."
29268 msgstr ""
29269
29270 #. type: =head2
29271 #: ../src/guestfs-actions.pod:5865
29272 msgid "guestfs_pvs_full"
29273 msgstr ""
29274
29275 #. type: verbatim
29276 #: ../src/guestfs-actions.pod:5867
29277 #, no-wrap
29278 msgid ""
29279 " struct guestfs_lvm_pv_list *\n"
29280 " guestfs_pvs_full (guestfs_h *g);\n"
29281 "\n"
29282 msgstr ""
29283
29284 #. type: textblock
29285 #: ../src/guestfs-actions.pod:5873
29286 msgid ""
29287 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29288 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29289 msgstr ""
29290
29291 #. type: =head2
29292 #: ../src/guestfs-actions.pod:5879
29293 msgid "guestfs_pvuuid"
29294 msgstr ""
29295
29296 #. type: verbatim
29297 #: ../src/guestfs-actions.pod:5881
29298 #, no-wrap
29299 msgid ""
29300 " char *\n"
29301 " guestfs_pvuuid (guestfs_h *g,\n"
29302 "                 const char *device);\n"
29303 "\n"
29304 msgstr ""
29305
29306 #. type: =head2
29307 #: ../src/guestfs-actions.pod:5892
29308 msgid "guestfs_pwrite"
29309 msgstr ""
29310
29311 #. type: verbatim
29312 #: ../src/guestfs-actions.pod:5894
29313 #, no-wrap
29314 msgid ""
29315 " int\n"
29316 " guestfs_pwrite (guestfs_h *g,\n"
29317 "                 const char *path,\n"
29318 "                 const char *content,\n"
29319 "                 size_t content_size,\n"
29320 "                 int64_t offset);\n"
29321 "\n"
29322 msgstr ""
29323
29324 #. type: textblock
29325 #: ../src/guestfs-actions.pod:5910
29326 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29327 msgstr ""
29328
29329 #. type: =head2
29330 #: ../src/guestfs-actions.pod:5919
29331 msgid "guestfs_pwrite_device"
29332 msgstr ""
29333
29334 #. type: verbatim
29335 #: ../src/guestfs-actions.pod:5921
29336 #, no-wrap
29337 msgid ""
29338 " int\n"
29339 " guestfs_pwrite_device (guestfs_h *g,\n"
29340 "                        const char *device,\n"
29341 "                        const char *content,\n"
29342 "                        size_t content_size,\n"
29343 "                        int64_t offset);\n"
29344 "\n"
29345 msgstr ""
29346
29347 #. type: textblock
29348 #: ../src/guestfs-actions.pod:5936
29349 msgid "See also C<guestfs_pwrite>."
29350 msgstr ""
29351
29352 #. type: textblock
29353 #: ../src/guestfs-actions.pod:5943
29354 msgid "(Added in 1.5.20)"
29355 msgstr ""
29356
29357 #. type: =head2
29358 #: ../src/guestfs-actions.pod:5945
29359 msgid "guestfs_read_file"
29360 msgstr ""
29361
29362 #. type: verbatim
29363 #: ../src/guestfs-actions.pod:5947
29364 #, no-wrap
29365 msgid ""
29366 " char *\n"
29367 " guestfs_read_file (guestfs_h *g,\n"
29368 "                    const char *path,\n"
29369 "                    size_t *size_r);\n"
29370 "\n"
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../src/guestfs-actions.pod:5955
29375 msgid ""
29376 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29377 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29378 "function is limited in the total size of file that can be handled."
29379 msgstr ""
29380
29381 #. type: textblock
29382 #: ../src/guestfs-actions.pod:5967
29383 msgid "(Added in 1.0.63)"
29384 msgstr ""
29385
29386 #. type: =head2
29387 #: ../src/guestfs-actions.pod:5969
29388 msgid "guestfs_read_lines"
29389 msgstr ""
29390
29391 #. type: verbatim
29392 #: ../src/guestfs-actions.pod:5971
29393 #, no-wrap
29394 msgid ""
29395 " char **\n"
29396 " guestfs_read_lines (guestfs_h *g,\n"
29397 "                     const char *path);\n"
29398 "\n"
29399 msgstr ""
29400
29401 #. type: textblock
29402 #: ../src/guestfs-actions.pod:5980
29403 msgid ""
29404 "Note that this function cannot correctly handle binary files (specifically, "
29405 "files containing C<\\0> character which is treated as end of line).  For "
29406 "those you need to use the C<guestfs_read_file> function which has a more "
29407 "complex interface."
29408 msgstr ""
29409
29410 #. type: =head2
29411 #: ../src/guestfs-actions.pod:5991
29412 msgid "guestfs_readdir"
29413 msgstr ""
29414
29415 #. type: verbatim
29416 #: ../src/guestfs-actions.pod:5993
29417 #, no-wrap
29418 msgid ""
29419 " struct guestfs_dirent_list *\n"
29420 " guestfs_readdir (guestfs_h *g,\n"
29421 "                  const char *dir);\n"
29422 "\n"
29423 msgstr ""
29424
29425 #. type: textblock
29426 #: ../src/guestfs-actions.pod:6047
29427 msgid ""
29428 "This function is primarily intended for use by programs.  To get a simple "
29429 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29430 "consumption, use C<guestfs_ll>."
29431 msgstr ""
29432
29433 #. type: textblock
29434 #: ../src/guestfs-actions.pod:6051
29435 msgid ""
29436 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29437 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29438 msgstr ""
29439
29440 #. type: =head2
29441 #: ../src/guestfs-actions.pod:6057
29442 msgid "guestfs_readlink"
29443 msgstr ""
29444
29445 #. type: verbatim
29446 #: ../src/guestfs-actions.pod:6059
29447 #, no-wrap
29448 msgid ""
29449 " char *\n"
29450 " guestfs_readlink (guestfs_h *g,\n"
29451 "                   const char *path);\n"
29452 "\n"
29453 msgstr ""
29454
29455 #. type: =head2
29456 #: ../src/guestfs-actions.pod:6070
29457 msgid "guestfs_readlinklist"
29458 msgstr ""
29459
29460 #. type: verbatim
29461 #: ../src/guestfs-actions.pod:6072
29462 #, no-wrap
29463 msgid ""
29464 " char **\n"
29465 " guestfs_readlinklist (guestfs_h *g,\n"
29466 "                       const char *path,\n"
29467 "                       char *const *names);\n"
29468 "\n"
29469 msgstr ""
29470
29471 #. type: =head2
29472 #: ../src/guestfs-actions.pod:6105
29473 msgid "guestfs_realpath"
29474 msgstr ""
29475
29476 #. type: verbatim
29477 #: ../src/guestfs-actions.pod:6107
29478 #, no-wrap
29479 msgid ""
29480 " char *\n"
29481 " guestfs_realpath (guestfs_h *g,\n"
29482 "                   const char *path);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: =head2
29487 #: ../src/guestfs-actions.pod:6119
29488 msgid "guestfs_removexattr"
29489 msgstr ""
29490
29491 #. type: verbatim
29492 #: ../src/guestfs-actions.pod:6121
29493 #, no-wrap
29494 msgid ""
29495 " int\n"
29496 " guestfs_removexattr (guestfs_h *g,\n"
29497 "                      const char *xattr,\n"
29498 "                      const char *path);\n"
29499 "\n"
29500 msgstr ""
29501
29502 #. type: textblock
29503 #: ../src/guestfs-actions.pod:6129
29504 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29505 msgstr ""
29506
29507 #. type: =head2
29508 #: ../src/guestfs-actions.pod:6135
29509 msgid "guestfs_resize2fs"
29510 msgstr ""
29511
29512 #. type: verbatim
29513 #: ../src/guestfs-actions.pod:6137
29514 #, no-wrap
29515 msgid ""
29516 " int\n"
29517 " guestfs_resize2fs (guestfs_h *g,\n"
29518 "                    const char *device);\n"
29519 "\n"
29520 msgstr ""
29521
29522 #. type: textblock
29523 #: ../src/guestfs-actions.pod:6144
29524 msgid ""
29525 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29526 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29527 "sometimes gives an error about this and sometimes not.  In any case, it is "
29528 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29529 msgstr ""
29530
29531 #. type: =head2
29532 #: ../src/guestfs-actions.pod:6154
29533 msgid "guestfs_resize2fs_M"
29534 msgstr ""
29535
29536 #. type: verbatim
29537 #: ../src/guestfs-actions.pod:6156
29538 #, no-wrap
29539 msgid ""
29540 " int\n"
29541 " guestfs_resize2fs_M (guestfs_h *g,\n"
29542 "                      const char *device);\n"
29543 "\n"
29544 msgstr ""
29545
29546 #. type: textblock
29547 #: ../src/guestfs-actions.pod:6160
29548 msgid ""
29549 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29550 "resized to its minimum size.  This works like the I<-M> option to the "
29551 "C<resize2fs> command."
29552 msgstr ""
29553
29554 #. type: textblock
29555 #: ../src/guestfs-actions.pod:6164
29556 msgid ""
29557 "To get the resulting size of the filesystem you should call "
29558 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29559 "These two numbers, multiplied together, give the resulting size of the "
29560 "minimal filesystem in bytes."
29561 msgstr ""
29562
29563 #. type: =head2
29564 #: ../src/guestfs-actions.pod:6173
29565 msgid "guestfs_resize2fs_size"
29566 msgstr ""
29567
29568 #. type: verbatim
29569 #: ../src/guestfs-actions.pod:6175
29570 #, no-wrap
29571 msgid ""
29572 " int\n"
29573 " guestfs_resize2fs_size (guestfs_h *g,\n"
29574 "                         const char *device,\n"
29575 "                         int64_t size);\n"
29576 "\n"
29577 msgstr ""
29578
29579 #. type: textblock
29580 #: ../src/guestfs-actions.pod:6180
29581 msgid ""
29582 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29583 "to specify the new size (in bytes) explicitly."
29584 msgstr ""
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:6187
29588 msgid "guestfs_rm"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:6189
29593 #, no-wrap
29594 msgid ""
29595 " int\n"
29596 " guestfs_rm (guestfs_h *g,\n"
29597 "             const char *path);\n"
29598 "\n"
29599 msgstr ""
29600
29601 #. type: =head2
29602 #: ../src/guestfs-actions.pod:6199
29603 msgid "guestfs_rm_rf"
29604 msgstr ""
29605
29606 #. type: verbatim
29607 #: ../src/guestfs-actions.pod:6201
29608 #, no-wrap
29609 msgid ""
29610 " int\n"
29611 " guestfs_rm_rf (guestfs_h *g,\n"
29612 "                const char *path);\n"
29613 "\n"
29614 msgstr ""
29615
29616 #. type: =head2
29617 #: ../src/guestfs-actions.pod:6213
29618 msgid "guestfs_rmdir"
29619 msgstr ""
29620
29621 #. type: verbatim
29622 #: ../src/guestfs-actions.pod:6215
29623 #, no-wrap
29624 msgid ""
29625 " int\n"
29626 " guestfs_rmdir (guestfs_h *g,\n"
29627 "                const char *path);\n"
29628 "\n"
29629 msgstr ""
29630
29631 #. type: =head2
29632 #: ../src/guestfs-actions.pod:6225
29633 msgid "guestfs_rmmountpoint"
29634 msgstr ""
29635
29636 #. type: verbatim
29637 #: ../src/guestfs-actions.pod:6227
29638 #, no-wrap
29639 msgid ""
29640 " int\n"
29641 " guestfs_rmmountpoint (guestfs_h *g,\n"
29642 "                       const char *exemptpath);\n"
29643 "\n"
29644 msgstr ""
29645
29646 #. type: textblock
29647 #: ../src/guestfs-actions.pod:6231
29648 msgid ""
29649 "This calls removes a mountpoint that was previously created with "
29650 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29651 msgstr ""
29652
29653 #. type: =head2
29654 #: ../src/guestfs-actions.pod:6239
29655 msgid "guestfs_scrub_device"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-actions.pod:6241
29660 #, no-wrap
29661 msgid ""
29662 " int\n"
29663 " guestfs_scrub_device (guestfs_h *g,\n"
29664 "                       const char *device);\n"
29665 "\n"
29666 msgstr ""
29667
29668 #. type: textblock
29669 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
29670 #: ../src/guestfs-actions.pod:6293
29671 msgid "(Added in 1.0.52)"
29672 msgstr ""
29673
29674 #. type: =head2
29675 #: ../src/guestfs-actions.pod:6258
29676 msgid "guestfs_scrub_file"
29677 msgstr ""
29678
29679 #. type: verbatim
29680 #: ../src/guestfs-actions.pod:6260
29681 #, no-wrap
29682 msgid ""
29683 " int\n"
29684 " guestfs_scrub_file (guestfs_h *g,\n"
29685 "                     const char *file);\n"
29686 "\n"
29687 msgstr ""
29688
29689 #. type: =head2
29690 #: ../src/guestfs-actions.pod:6276
29691 msgid "guestfs_scrub_freespace"
29692 msgstr ""
29693
29694 #. type: verbatim
29695 #: ../src/guestfs-actions.pod:6278
29696 #, no-wrap
29697 msgid ""
29698 " int\n"
29699 " guestfs_scrub_freespace (guestfs_h *g,\n"
29700 "                          const char *dir);\n"
29701 "\n"
29702 msgstr ""
29703
29704 #. type: textblock
29705 #: ../src/guestfs-actions.pod:6282
29706 msgid ""
29707 "This command creates the directory C<dir> and then fills it with files until "
29708 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29709 "and deletes them.  The intention is to scrub any free space on the partition "
29710 "containing C<dir>."
29711 msgstr ""
29712
29713 #. type: =head2
29714 #: ../src/guestfs-actions.pod:6295
29715 msgid "guestfs_set_append"
29716 msgstr ""
29717
29718 #. type: verbatim
29719 #: ../src/guestfs-actions.pod:6297
29720 #, no-wrap
29721 msgid ""
29722 " int\n"
29723 " guestfs_set_append (guestfs_h *g,\n"
29724 "                     const char *append);\n"
29725 "\n"
29726 msgstr ""
29727
29728 #. type: =head2
29729 #: ../src/guestfs-actions.pod:6314
29730 msgid "guestfs_set_attach_method"
29731 msgstr ""
29732
29733 #. type: verbatim
29734 #: ../src/guestfs-actions.pod:6316
29735 #, no-wrap
29736 msgid ""
29737 " int\n"
29738 " guestfs_set_attach_method (guestfs_h *g,\n"
29739 "                            const char *attachmethod);\n"
29740 "\n"
29741 msgstr ""
29742
29743 #. type: =head2
29744 #: ../src/guestfs-actions.pod:6344
29745 msgid "guestfs_set_autosync"
29746 msgstr ""
29747
29748 #. type: verbatim
29749 #: ../src/guestfs-actions.pod:6346
29750 #, no-wrap
29751 msgid ""
29752 " int\n"
29753 " guestfs_set_autosync (guestfs_h *g,\n"
29754 "                       int autosync);\n"
29755 "\n"
29756 msgstr ""
29757
29758 #. type: =head2
29759 #: ../src/guestfs-actions.pod:6362
29760 msgid "guestfs_set_direct"
29761 msgstr ""
29762
29763 #. type: verbatim
29764 #: ../src/guestfs-actions.pod:6364
29765 #, no-wrap
29766 msgid ""
29767 " int\n"
29768 " guestfs_set_direct (guestfs_h *g,\n"
29769 "                     int direct);\n"
29770 "\n"
29771 msgstr ""
29772
29773 #. type: textblock
29774 #: ../src/guestfs-actions.pod:6372
29775 msgid ""
29776 "One consequence of this is that log messages aren't caught by the library "
29777 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29778 "stdout."
29779 msgstr ""
29780
29781 #. type: =head2
29782 #: ../src/guestfs-actions.pod:6385
29783 msgid "guestfs_set_e2label"
29784 msgstr ""
29785
29786 #. type: verbatim
29787 #: ../src/guestfs-actions.pod:6387
29788 #, no-wrap
29789 msgid ""
29790 " int\n"
29791 " guestfs_set_e2label (guestfs_h *g,\n"
29792 "                      const char *device,\n"
29793 "                      const char *label);\n"
29794 "\n"
29795 msgstr ""
29796
29797 #. type: textblock
29798 #: ../src/guestfs-actions.pod:6396
29799 msgid ""
29800 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29801 "the existing label on a filesystem."
29802 msgstr ""
29803
29804 #. type: =head2
29805 #: ../src/guestfs-actions.pod:6403
29806 msgid "guestfs_set_e2uuid"
29807 msgstr ""
29808
29809 #. type: verbatim
29810 #: ../src/guestfs-actions.pod:6405
29811 #, no-wrap
29812 msgid ""
29813 " int\n"
29814 " guestfs_set_e2uuid (guestfs_h *g,\n"
29815 "                     const char *device,\n"
29816 "                     const char *uuid);\n"
29817 "\n"
29818 msgstr ""
29819
29820 #. type: textblock
29821 #: ../src/guestfs-actions.pod:6415
29822 msgid ""
29823 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29824 "the existing UUID of a filesystem."
29825 msgstr ""
29826
29827 #. type: =head2
29828 #: ../src/guestfs-actions.pod:6422
29829 msgid "guestfs_set_memsize"
29830 msgstr ""
29831
29832 #. type: verbatim
29833 #: ../src/guestfs-actions.pod:6424
29834 #, no-wrap
29835 msgid ""
29836 " int\n"
29837 " guestfs_set_memsize (guestfs_h *g,\n"
29838 "                      int memsize);\n"
29839 "\n"
29840 msgstr ""
29841
29842 #. type: textblock
29843 #: ../src/guestfs-actions.pod:6428
29844 msgid ""
29845 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29846 "This only has any effect if called before C<guestfs_launch>."
29847 msgstr ""
29848
29849 #. type: =head2
29850 #: ../src/guestfs-actions.pod:6443
29851 msgid "guestfs_set_network"
29852 msgstr ""
29853
29854 #. type: verbatim
29855 #: ../src/guestfs-actions.pod:6445
29856 #, no-wrap
29857 msgid ""
29858 " int\n"
29859 " guestfs_set_network (guestfs_h *g,\n"
29860 "                      int network);\n"
29861 "\n"
29862 msgstr ""
29863
29864 #. type: textblock
29865 #: ../src/guestfs-actions.pod:6455
29866 msgid ""
29867 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29868 "effect."
29869 msgstr ""
29870
29871 #. type: =head2
29872 #: ../src/guestfs-actions.pod:6462
29873 msgid "guestfs_set_path"
29874 msgstr ""
29875
29876 #. type: verbatim
29877 #: ../src/guestfs-actions.pod:6464
29878 #, no-wrap
29879 msgid ""
29880 " int\n"
29881 " guestfs_set_path (guestfs_h *g,\n"
29882 "                   const char *searchpath);\n"
29883 "\n"
29884 msgstr ""
29885
29886 #. type: =head2
29887 #: ../src/guestfs-actions.pod:6479
29888 msgid "guestfs_set_pgroup"
29889 msgstr ""
29890
29891 #. type: verbatim
29892 #: ../src/guestfs-actions.pod:6481
29893 #, no-wrap
29894 msgid ""
29895 " int\n"
29896 " guestfs_set_pgroup (guestfs_h *g,\n"
29897 "                     int pgroup);\n"
29898 "\n"
29899 msgstr ""
29900
29901 #. type: =head2
29902 #: ../src/guestfs-actions.pod:6498
29903 msgid "guestfs_set_qemu"
29904 msgstr ""
29905
29906 #. type: verbatim
29907 #: ../src/guestfs-actions.pod:6500
29908 #, no-wrap
29909 msgid ""
29910 " int\n"
29911 " guestfs_set_qemu (guestfs_h *g,\n"
29912 "                   const char *qemu);\n"
29913 "\n"
29914 msgstr ""
29915
29916 #. type: =head2
29917 #: ../src/guestfs-actions.pod:6526
29918 msgid "guestfs_set_recovery_proc"
29919 msgstr ""
29920
29921 #. type: verbatim
29922 #: ../src/guestfs-actions.pod:6528
29923 #, no-wrap
29924 msgid ""
29925 " int\n"
29926 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29927 "                            int recoveryproc);\n"
29928 "\n"
29929 msgstr ""
29930
29931 #. type: textblock
29932 #: ../src/guestfs-actions.pod:6532
29933 msgid ""
29934 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29935 "not create a recovery process.  The purpose of the recovery process is to "
29936 "stop runaway qemu processes in the case where the main program aborts "
29937 "abruptly."
29938 msgstr ""
29939
29940 #. type: textblock
29941 #: ../src/guestfs-actions.pod:6537
29942 msgid ""
29943 "This only has any effect if called before C<guestfs_launch>, and the default "
29944 "is true."
29945 msgstr ""
29946
29947 #. type: =head2
29948 #: ../src/guestfs-actions.pod:6550
29949 msgid "guestfs_set_selinux"
29950 msgstr ""
29951
29952 #. type: verbatim
29953 #: ../src/guestfs-actions.pod:6552
29954 #, no-wrap
29955 msgid ""
29956 " int\n"
29957 " guestfs_set_selinux (guestfs_h *g,\n"
29958 "                      int selinux);\n"
29959 "\n"
29960 msgstr ""
29961
29962 #. type: =head2
29963 #: ../src/guestfs-actions.pod:6569
29964 msgid "guestfs_set_smp"
29965 msgstr ""
29966
29967 #. type: verbatim
29968 #: ../src/guestfs-actions.pod:6571
29969 #, no-wrap
29970 msgid ""
29971 " int\n"
29972 " guestfs_set_smp (guestfs_h *g,\n"
29973 "                  int smp);\n"
29974 "\n"
29975 msgstr ""
29976
29977 #. type: textblock
29978 #: ../src/guestfs-actions.pod:6579
29979 msgid "This function must be called before C<guestfs_launch>."
29980 msgstr ""
29981
29982 #. type: =head2
29983 #: ../src/guestfs-actions.pod:6585
29984 msgid "guestfs_set_trace"
29985 msgstr ""
29986
29987 #. type: verbatim
29988 #: ../src/guestfs-actions.pod:6587
29989 #, no-wrap
29990 msgid ""
29991 " int\n"
29992 " guestfs_set_trace (guestfs_h *g,\n"
29993 "                    int trace);\n"
29994 "\n"
29995 msgstr ""
29996
29997 #. type: textblock
29998 #: ../src/guestfs-actions.pod:6601
29999 msgid ""
30000 "Trace messages are normally sent to C<stderr>, unless you register a "
30001 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30002 msgstr ""
30003
30004 #. type: =head2
30005 #: ../src/guestfs-actions.pod:6609
30006 msgid "guestfs_set_verbose"
30007 msgstr ""
30008
30009 #. type: verbatim
30010 #: ../src/guestfs-actions.pod:6611
30011 #, no-wrap
30012 msgid ""
30013 " int\n"
30014 " guestfs_set_verbose (guestfs_h *g,\n"
30015 "                      int verbose);\n"
30016 "\n"
30017 msgstr ""
30018
30019 #. type: textblock
30020 #: ../src/guestfs-actions.pod:6620
30021 msgid ""
30022 "Verbose messages are normally sent to C<stderr>, unless you register a "
30023 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30024 msgstr ""
30025
30026 #. type: =head2
30027 #: ../src/guestfs-actions.pod:6628
30028 msgid "guestfs_setcon"
30029 msgstr ""
30030
30031 #. type: verbatim
30032 #: ../src/guestfs-actions.pod:6630
30033 #, no-wrap
30034 msgid ""
30035 " int\n"
30036 " guestfs_setcon (guestfs_h *g,\n"
30037 "                 const char *context);\n"
30038 "\n"
30039 msgstr ""
30040
30041 #. type: =head2
30042 #: ../src/guestfs-actions.pod:6643
30043 msgid "guestfs_setxattr"
30044 msgstr ""
30045
30046 #. type: verbatim
30047 #: ../src/guestfs-actions.pod:6645
30048 #, no-wrap
30049 msgid ""
30050 " int\n"
30051 " guestfs_setxattr (guestfs_h *g,\n"
30052 "                   const char *xattr,\n"
30053 "                   const char *val,\n"
30054 "                   int vallen,\n"
30055 "                   const char *path);\n"
30056 "\n"
30057 msgstr ""
30058
30059 #. type: textblock
30060 #: ../src/guestfs-actions.pod:6656
30061 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30062 msgstr ""
30063
30064 #. type: =head2
30065 #: ../src/guestfs-actions.pod:6662
30066 msgid "guestfs_sfdisk"
30067 msgstr ""
30068
30069 #. type: verbatim
30070 #: ../src/guestfs-actions.pod:6664
30071 #, no-wrap
30072 msgid ""
30073 " int\n"
30074 " guestfs_sfdisk (guestfs_h *g,\n"
30075 "                 const char *device,\n"
30076 "                 int cyls,\n"
30077 "                 int heads,\n"
30078 "                 int sectors,\n"
30079 "                 char *const *lines);\n"
30080 "\n"
30081 msgstr ""
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
30085 #: ../src/guestfs-actions.pod:6750
30086 msgid ""
30087 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30088 "call instead."
30089 msgstr ""
30090
30091 #. type: textblock
30092 #: ../src/guestfs-actions.pod:6699
30093 msgid ""
30094 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30095 msgstr ""
30096
30097 #. type: =head2
30098 #: ../src/guestfs-actions.pod:6709
30099 msgid "guestfs_sfdiskM"
30100 msgstr ""
30101
30102 #. type: verbatim
30103 #: ../src/guestfs-actions.pod:6711
30104 #, no-wrap
30105 msgid ""
30106 " int\n"
30107 " guestfs_sfdiskM (guestfs_h *g,\n"
30108 "                  const char *device,\n"
30109 "                  char *const *lines);\n"
30110 "\n"
30111 msgstr ""
30112
30113 #. type: textblock
30114 #: ../src/guestfs-actions.pod:6723
30115 msgid ""
30116 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30117 "partition sizes are specified in megabytes only (rounded to the nearest "
30118 "cylinder) and you don't need to specify the cyls, heads and sectors "
30119 "parameters which were rarely if ever used anyway."
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../src/guestfs-actions.pod:6729
30124 msgid ""
30125 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30126 "C<guestfs_part_disk>"
30127 msgstr ""
30128
30129 #. type: =head2
30130 #: ../src/guestfs-actions.pod:6739
30131 msgid "guestfs_sfdisk_N"
30132 msgstr ""
30133
30134 #. type: verbatim
30135 #: ../src/guestfs-actions.pod:6741
30136 #, no-wrap
30137 msgid ""
30138 " int\n"
30139 " guestfs_sfdisk_N (guestfs_h *g,\n"
30140 "                   const char *device,\n"
30141 "                   int partnum,\n"
30142 "                   int cyls,\n"
30143 "                   int heads,\n"
30144 "                   int sectors,\n"
30145 "                   const char *line);\n"
30146 "\n"
30147 msgstr ""
30148
30149 #. type: textblock
30150 #: ../src/guestfs-actions.pod:6760
30151 msgid ""
30152 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30153 "for the cyls/heads/sectors parameters."
30154 msgstr ""
30155
30156 #. type: textblock
30157 #: ../src/guestfs-actions.pod:6763
30158 msgid "See also: C<guestfs_part_add>"
30159 msgstr ""
30160
30161 #. type: =head2
30162 #: ../src/guestfs-actions.pod:6772
30163 msgid "guestfs_sfdisk_disk_geometry"
30164 msgstr ""
30165
30166 #. type: verbatim
30167 #: ../src/guestfs-actions.pod:6774
30168 #, no-wrap
30169 msgid ""
30170 " char *\n"
30171 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30172 "                               const char *device);\n"
30173 "\n"
30174 msgstr ""
30175
30176 #. type: textblock
30177 #: ../src/guestfs-actions.pod:6778
30178 msgid ""
30179 "This displays the disk geometry of C<device> read from the partition table.  "
30180 "Especially in the case where the underlying block device has been resized, "
30181 "this can be different from the kernel's idea of the geometry (see "
30182 "C<guestfs_sfdisk_kernel_geometry>)."
30183 msgstr ""
30184
30185 #. type: =head2
30186 #: ../src/guestfs-actions.pod:6791
30187 msgid "guestfs_sfdisk_kernel_geometry"
30188 msgstr ""
30189
30190 #. type: verbatim
30191 #: ../src/guestfs-actions.pod:6793
30192 #, no-wrap
30193 msgid ""
30194 " char *\n"
30195 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30196 "                                 const char *device);\n"
30197 "\n"
30198 msgstr ""
30199
30200 #. type: =head2
30201 #: ../src/guestfs-actions.pod:6807
30202 msgid "guestfs_sfdisk_l"
30203 msgstr ""
30204
30205 #. type: verbatim
30206 #: ../src/guestfs-actions.pod:6809
30207 #, no-wrap
30208 msgid ""
30209 " char *\n"
30210 " guestfs_sfdisk_l (guestfs_h *g,\n"
30211 "                   const char *device);\n"
30212 "\n"
30213 msgstr ""
30214
30215 #. type: textblock
30216 #: ../src/guestfs-actions.pod:6813
30217 msgid ""
30218 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30219 "call instead."
30220 msgstr ""
30221
30222 #. type: textblock
30223 #: ../src/guestfs-actions.pod:6824
30224 msgid "See also: C<guestfs_part_list>"
30225 msgstr ""
30226
30227 #. type: =head2
30228 #: ../src/guestfs-actions.pod:6831
30229 msgid "guestfs_sh"
30230 msgstr ""
30231
30232 #. type: verbatim
30233 #: ../src/guestfs-actions.pod:6833
30234 #, no-wrap
30235 msgid ""
30236 " char *\n"
30237 " guestfs_sh (guestfs_h *g,\n"
30238 "             const char *command);\n"
30239 "\n"
30240 msgstr ""
30241
30242 #. type: textblock
30243 #: ../src/guestfs-actions.pod:6840
30244 msgid "This is like C<guestfs_command>, but passes the command to:"
30245 msgstr ""
30246
30247 #. type: textblock
30248 #: ../src/guestfs-actions.pod:6848
30249 msgid "All the provisos about C<guestfs_command> apply to this call."
30250 msgstr ""
30251
30252 #. type: =head2
30253 #: ../src/guestfs-actions.pod:6855
30254 msgid "guestfs_sh_lines"
30255 msgstr ""
30256
30257 #. type: verbatim
30258 #: ../src/guestfs-actions.pod:6857
30259 #, no-wrap
30260 msgid ""
30261 " char **\n"
30262 " guestfs_sh_lines (guestfs_h *g,\n"
30263 "                   const char *command);\n"
30264 "\n"
30265 msgstr ""
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:6861
30269 msgid ""
30270 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30271 "lines."
30272 msgstr ""
30273
30274 #. type: textblock
30275 #: ../src/guestfs-actions.pod:6864
30276 msgid "See also: C<guestfs_command_lines>"
30277 msgstr ""
30278
30279 #. type: =head2
30280 #: ../src/guestfs-actions.pod:6872
30281 msgid "guestfs_sleep"
30282 msgstr ""
30283
30284 #. type: verbatim
30285 #: ../src/guestfs-actions.pod:6874
30286 #, no-wrap
30287 msgid ""
30288 " int\n"
30289 " guestfs_sleep (guestfs_h *g,\n"
30290 "                int secs);\n"
30291 "\n"
30292 msgstr ""
30293
30294 #. type: textblock
30295 #: ../src/guestfs-actions.pod:6882
30296 msgid "(Added in 1.0.41)"
30297 msgstr ""
30298
30299 #. type: =head2
30300 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
30301 msgid "guestfs_stat"
30302 msgstr ""
30303
30304 #. type: verbatim
30305 #: ../src/guestfs-actions.pod:6886
30306 #, no-wrap
30307 msgid ""
30308 " struct guestfs_stat *\n"
30309 " guestfs_stat (guestfs_h *g,\n"
30310 "               const char *path);\n"
30311 "\n"
30312 msgstr ""
30313
30314 #. type: =head2
30315 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
30316 msgid "guestfs_statvfs"
30317 msgstr ""
30318
30319 #. type: verbatim
30320 #: ../src/guestfs-actions.pod:6902
30321 #, no-wrap
30322 msgid ""
30323 " struct guestfs_statvfs *\n"
30324 " guestfs_statvfs (guestfs_h *g,\n"
30325 "                  const char *path);\n"
30326 "\n"
30327 msgstr ""
30328
30329 #. type: textblock
30330 #: ../src/guestfs-actions.pod:6912
30331 msgid ""
30332 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30333 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30334 msgstr ""
30335
30336 #. type: =head2
30337 #: ../src/guestfs-actions.pod:6918
30338 msgid "guestfs_strings"
30339 msgstr ""
30340
30341 #. type: verbatim
30342 #: ../src/guestfs-actions.pod:6920
30343 #, no-wrap
30344 msgid ""
30345 " char **\n"
30346 " guestfs_strings (guestfs_h *g,\n"
30347 "                  const char *path);\n"
30348 "\n"
30349 msgstr ""
30350
30351 #. type: =head2
30352 #: ../src/guestfs-actions.pod:6936
30353 msgid "guestfs_strings_e"
30354 msgstr ""
30355
30356 #. type: verbatim
30357 #: ../src/guestfs-actions.pod:6938
30358 #, no-wrap
30359 msgid ""
30360 " char **\n"
30361 " guestfs_strings_e (guestfs_h *g,\n"
30362 "                    const char *encoding,\n"
30363 "                    const char *path);\n"
30364 "\n"
30365 msgstr ""
30366
30367 #. type: textblock
30368 #: ../src/guestfs-actions.pod:6943
30369 msgid ""
30370 "This is like the C<guestfs_strings> command, but allows you to specify the "
30371 "encoding of strings that are looked for in the source file C<path>."
30372 msgstr ""
30373
30374 #. type: textblock
30375 #: ../src/guestfs-actions.pod:6953
30376 msgid ""
30377 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30378 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30379 msgstr ""
30380
30381 #. type: =head2
30382 #: ../src/guestfs-actions.pod:6991
30383 msgid "guestfs_swapoff_device"
30384 msgstr ""
30385
30386 #. type: verbatim
30387 #: ../src/guestfs-actions.pod:6993
30388 #, no-wrap
30389 msgid ""
30390 " int\n"
30391 " guestfs_swapoff_device (guestfs_h *g,\n"
30392 "                         const char *device);\n"
30393 "\n"
30394 msgstr ""
30395
30396 #. type: textblock
30397 #: ../src/guestfs-actions.pod:6997
30398 msgid ""
30399 "This command disables the libguestfs appliance swap device or partition "
30400 "named C<device>.  See C<guestfs_swapon_device>."
30401 msgstr ""
30402
30403 #. type: =head2
30404 #: ../src/guestfs-actions.pod:7005
30405 msgid "guestfs_swapoff_file"
30406 msgstr ""
30407
30408 #. type: verbatim
30409 #: ../src/guestfs-actions.pod:7007
30410 #, no-wrap
30411 msgid ""
30412 " int\n"
30413 " guestfs_swapoff_file (guestfs_h *g,\n"
30414 "                       const char *file);\n"
30415 "\n"
30416 msgstr ""
30417
30418 #. type: =head2
30419 #: ../src/guestfs-actions.pod:7017
30420 msgid "guestfs_swapoff_label"
30421 msgstr ""
30422
30423 #. type: verbatim
30424 #: ../src/guestfs-actions.pod:7019
30425 #, no-wrap
30426 msgid ""
30427 " int\n"
30428 " guestfs_swapoff_label (guestfs_h *g,\n"
30429 "                        const char *label);\n"
30430 "\n"
30431 msgstr ""
30432
30433 #. type: =head2
30434 #: ../src/guestfs-actions.pod:7030
30435 msgid "guestfs_swapoff_uuid"
30436 msgstr ""
30437
30438 #. type: verbatim
30439 #: ../src/guestfs-actions.pod:7032
30440 #, no-wrap
30441 msgid ""
30442 " int\n"
30443 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30444 "                       const char *uuid);\n"
30445 "\n"
30446 msgstr ""
30447
30448 #. type: =head2
30449 #: ../src/guestfs-actions.pod:7043
30450 msgid "guestfs_swapon_device"
30451 msgstr ""
30452
30453 #. type: verbatim
30454 #: ../src/guestfs-actions.pod:7045
30455 #, no-wrap
30456 msgid ""
30457 " int\n"
30458 " guestfs_swapon_device (guestfs_h *g,\n"
30459 "                        const char *device);\n"
30460 "\n"
30461 msgstr ""
30462
30463 #. type: textblock
30464 #: ../src/guestfs-actions.pod:7049
30465 msgid ""
30466 "This command enables the libguestfs appliance to use the swap device or "
30467 "partition named C<device>.  The increased memory is made available for all "
30468 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30469 msgstr ""
30470
30471 #. type: =head2
30472 #: ../src/guestfs-actions.pod:7065
30473 msgid "guestfs_swapon_file"
30474 msgstr ""
30475
30476 #. type: verbatim
30477 #: ../src/guestfs-actions.pod:7067
30478 #, no-wrap
30479 msgid ""
30480 " int\n"
30481 " guestfs_swapon_file (guestfs_h *g,\n"
30482 "                      const char *file);\n"
30483 "\n"
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../src/guestfs-actions.pod:7071
30488 msgid ""
30489 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30490 "notes."
30491 msgstr ""
30492
30493 #. type: =head2
30494 #: ../src/guestfs-actions.pod:7078
30495 msgid "guestfs_swapon_label"
30496 msgstr ""
30497
30498 #. type: verbatim
30499 #: ../src/guestfs-actions.pod:7080
30500 #, no-wrap
30501 msgid ""
30502 " int\n"
30503 " guestfs_swapon_label (guestfs_h *g,\n"
30504 "                       const char *label);\n"
30505 "\n"
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../src/guestfs-actions.pod:7084
30510 msgid ""
30511 "This command enables swap to a labeled swap partition.  See "
30512 "C<guestfs_swapon_device> for other notes."
30513 msgstr ""
30514
30515 #. type: =head2
30516 #: ../src/guestfs-actions.pod:7091
30517 msgid "guestfs_swapon_uuid"
30518 msgstr ""
30519
30520 #. type: verbatim
30521 #: ../src/guestfs-actions.pod:7093
30522 #, no-wrap
30523 msgid ""
30524 " int\n"
30525 " guestfs_swapon_uuid (guestfs_h *g,\n"
30526 "                      const char *uuid);\n"
30527 "\n"
30528 msgstr ""
30529
30530 #. type: textblock
30531 #: ../src/guestfs-actions.pod:7097
30532 msgid ""
30533 "This command enables swap to a swap partition with the given UUID.  See "
30534 "C<guestfs_swapon_device> for other notes."
30535 msgstr ""
30536
30537 #. type: =head2
30538 #: ../src/guestfs-actions.pod:7104
30539 msgid "guestfs_sync"
30540 msgstr ""
30541
30542 #. type: verbatim
30543 #: ../src/guestfs-actions.pod:7106
30544 #, no-wrap
30545 msgid ""
30546 " int\n"
30547 " guestfs_sync (guestfs_h *g);\n"
30548 "\n"
30549 msgstr ""
30550
30551 #. type: =head2
30552 #: ../src/guestfs-actions.pod:7119
30553 msgid "guestfs_tail"
30554 msgstr ""
30555
30556 #. type: verbatim
30557 #: ../src/guestfs-actions.pod:7121
30558 #, no-wrap
30559 msgid ""
30560 " char **\n"
30561 " guestfs_tail (guestfs_h *g,\n"
30562 "               const char *path);\n"
30563 "\n"
30564 msgstr ""
30565
30566 #. type: =head2
30567 #: ../src/guestfs-actions.pod:7137
30568 msgid "guestfs_tail_n"
30569 msgstr ""
30570
30571 #. type: verbatim
30572 #: ../src/guestfs-actions.pod:7139
30573 #, no-wrap
30574 msgid ""
30575 " char **\n"
30576 " guestfs_tail_n (guestfs_h *g,\n"
30577 "                 int nrlines,\n"
30578 "                 const char *path);\n"
30579 "\n"
30580 msgstr ""
30581
30582 #. type: =head2
30583 #: ../src/guestfs-actions.pod:7161
30584 msgid "guestfs_tar_in"
30585 msgstr ""
30586
30587 #. type: verbatim
30588 #: ../src/guestfs-actions.pod:7163
30589 #, no-wrap
30590 msgid ""
30591 " int\n"
30592 " guestfs_tar_in (guestfs_h *g,\n"
30593 "                 const char *tarfile,\n"
30594 "                 const char *directory);\n"
30595 "\n"
30596 msgstr ""
30597
30598 #. type: textblock
30599 #: ../src/guestfs-actions.pod:7171
30600 msgid ""
30601 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30602 msgstr ""
30603
30604 #. type: textblock
30605 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
30606 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
30607 msgid "(Added in 1.0.3)"
30608 msgstr ""
30609
30610 #. type: =head2
30611 #: ../src/guestfs-actions.pod:7178
30612 msgid "guestfs_tar_out"
30613 msgstr ""
30614
30615 #. type: verbatim
30616 #: ../src/guestfs-actions.pod:7180
30617 #, no-wrap
30618 msgid ""
30619 " int\n"
30620 " guestfs_tar_out (guestfs_h *g,\n"
30621 "                  const char *directory,\n"
30622 "                  const char *tarfile);\n"
30623 "\n"
30624 msgstr ""
30625
30626 #. type: textblock
30627 #: ../src/guestfs-actions.pod:7188
30628 msgid ""
30629 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30630 "C<guestfs_txz_out>."
30631 msgstr ""
30632
30633 #. type: =head2
30634 #: ../src/guestfs-actions.pod:7195
30635 msgid "guestfs_tgz_in"
30636 msgstr ""
30637
30638 #. type: verbatim
30639 #: ../src/guestfs-actions.pod:7197
30640 #, no-wrap
30641 msgid ""
30642 " int\n"
30643 " guestfs_tgz_in (guestfs_h *g,\n"
30644 "                 const char *tarball,\n"
30645 "                 const char *directory);\n"
30646 "\n"
30647 msgstr ""
30648
30649 #. type: textblock
30650 #: ../src/guestfs-actions.pod:7205
30651 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30652 msgstr ""
30653
30654 #. type: =head2
30655 #: ../src/guestfs-actions.pod:7211
30656 msgid "guestfs_tgz_out"
30657 msgstr ""
30658
30659 #. type: verbatim
30660 #: ../src/guestfs-actions.pod:7213
30661 #, no-wrap
30662 msgid ""
30663 " int\n"
30664 " guestfs_tgz_out (guestfs_h *g,\n"
30665 "                  const char *directory,\n"
30666 "                  const char *tarball);\n"
30667 "\n"
30668 msgstr ""
30669
30670 #. type: textblock
30671 #: ../src/guestfs-actions.pod:7221
30672 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30673 msgstr ""
30674
30675 #. type: =head2
30676 #: ../src/guestfs-actions.pod:7227
30677 msgid "guestfs_touch"
30678 msgstr ""
30679
30680 #. type: verbatim
30681 #: ../src/guestfs-actions.pod:7229
30682 #, no-wrap
30683 msgid ""
30684 " int\n"
30685 " guestfs_touch (guestfs_h *g,\n"
30686 "                const char *path);\n"
30687 "\n"
30688 msgstr ""
30689
30690 #. type: =head2
30691 #: ../src/guestfs-actions.pod:7244
30692 msgid "guestfs_truncate"
30693 msgstr ""
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-actions.pod:7246
30697 #, no-wrap
30698 msgid ""
30699 " int\n"
30700 " guestfs_truncate (guestfs_h *g,\n"
30701 "                   const char *path);\n"
30702 "\n"
30703 msgstr ""
30704
30705 #. type: =head2
30706 #: ../src/guestfs-actions.pod:7257
30707 msgid "guestfs_truncate_size"
30708 msgstr ""
30709
30710 #. type: verbatim
30711 #: ../src/guestfs-actions.pod:7259
30712 #, no-wrap
30713 msgid ""
30714 " int\n"
30715 " guestfs_truncate_size (guestfs_h *g,\n"
30716 "                        const char *path,\n"
30717 "                        int64_t size);\n"
30718 "\n"
30719 msgstr ""
30720
30721 #. type: textblock
30722 #: ../src/guestfs-actions.pod:7267
30723 msgid ""
30724 "If the current file size is less than C<size> then the file is extended to "
30725 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30726 "blocks are not allocated for the file until you write to it).  To create a "
30727 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30728 msgstr ""
30729
30730 #. type: =head2
30731 #: ../src/guestfs-actions.pod:7277
30732 msgid "guestfs_tune2fs_l"
30733 msgstr ""
30734
30735 #. type: verbatim
30736 #: ../src/guestfs-actions.pod:7279
30737 #, no-wrap
30738 msgid ""
30739 " char **\n"
30740 " guestfs_tune2fs_l (guestfs_h *g,\n"
30741 "                    const char *device);\n"
30742 "\n"
30743 msgstr ""
30744
30745 #. type: =head2
30746 #: ../src/guestfs-actions.pod:7299
30747 msgid "guestfs_txz_in"
30748 msgstr ""
30749
30750 #. type: verbatim
30751 #: ../src/guestfs-actions.pod:7301
30752 #, no-wrap
30753 msgid ""
30754 " int\n"
30755 " guestfs_txz_in (guestfs_h *g,\n"
30756 "                 const char *tarball,\n"
30757 "                 const char *directory);\n"
30758 "\n"
30759 msgstr ""
30760
30761 #. type: =head2
30762 #: ../src/guestfs-actions.pod:7313
30763 msgid "guestfs_txz_out"
30764 msgstr ""
30765
30766 #. type: verbatim
30767 #: ../src/guestfs-actions.pod:7315
30768 #, no-wrap
30769 msgid ""
30770 " int\n"
30771 " guestfs_txz_out (guestfs_h *g,\n"
30772 "                  const char *directory,\n"
30773 "                  const char *tarball);\n"
30774 "\n"
30775 msgstr ""
30776
30777 #. type: =head2
30778 #: ../src/guestfs-actions.pod:7327
30779 msgid "guestfs_umask"
30780 msgstr ""
30781
30782 #. type: verbatim
30783 #: ../src/guestfs-actions.pod:7329
30784 #, no-wrap
30785 msgid ""
30786 " int\n"
30787 " guestfs_umask (guestfs_h *g,\n"
30788 "                int mask);\n"
30789 "\n"
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../src/guestfs-actions.pod:7345
30794 msgid ""
30795 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30796 "C<guestfs_mkdir>."
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:7354
30801 msgid "guestfs_umount"
30802 msgstr ""
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:7356
30806 #, no-wrap
30807 msgid ""
30808 " int\n"
30809 " guestfs_umount (guestfs_h *g,\n"
30810 "                 const char *pathordevice);\n"
30811 "\n"
30812 msgstr ""
30813
30814 #. type: =head2
30815 #: ../src/guestfs-actions.pod:7368
30816 msgid "guestfs_umount_all"
30817 msgstr ""
30818
30819 #. type: verbatim
30820 #: ../src/guestfs-actions.pod:7370
30821 #, no-wrap
30822 msgid ""
30823 " int\n"
30824 " guestfs_umount_all (guestfs_h *g);\n"
30825 "\n"
30826 msgstr ""
30827
30828 #. type: =head2
30829 #: ../src/guestfs-actions.pod:7381
30830 msgid "guestfs_upload"
30831 msgstr ""
30832
30833 #. type: verbatim
30834 #: ../src/guestfs-actions.pod:7383
30835 #, no-wrap
30836 msgid ""
30837 " int\n"
30838 " guestfs_upload (guestfs_h *g,\n"
30839 "                 const char *filename,\n"
30840 "                 const char *remotefilename);\n"
30841 "\n"
30842 msgstr ""
30843
30844 #. type: textblock
30845 #: ../src/guestfs-actions.pod:7393
30846 msgid "See also C<guestfs_download>."
30847 msgstr ""
30848
30849 #. type: =head2
30850 #: ../src/guestfs-actions.pod:7404
30851 msgid "guestfs_upload_offset"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs-actions.pod:7406
30856 #, no-wrap
30857 msgid ""
30858 " int\n"
30859 " guestfs_upload_offset (guestfs_h *g,\n"
30860 "                        const char *filename,\n"
30861 "                        const char *remotefilename,\n"
30862 "                        int64_t offset);\n"
30863 "\n"
30864 msgstr ""
30865
30866 #. type: textblock
30867 #: ../src/guestfs-actions.pod:7422
30868 msgid ""
30869 "Note that there is no limit on the amount of data that can be uploaded with "
30870 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30871 "full amount unless an error occurs."
30872 msgstr ""
30873
30874 #. type: textblock
30875 #: ../src/guestfs-actions.pod:7427
30876 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30877 msgstr ""
30878
30879 #. type: =head2
30880 #: ../src/guestfs-actions.pod:7438
30881 msgid "guestfs_utimens"
30882 msgstr ""
30883
30884 #. type: verbatim
30885 #: ../src/guestfs-actions.pod:7440
30886 #, no-wrap
30887 msgid ""
30888 " int\n"
30889 " guestfs_utimens (guestfs_h *g,\n"
30890 "                  const char *path,\n"
30891 "                  int64_t atsecs,\n"
30892 "                  int64_t atnsecs,\n"
30893 "                  int64_t mtsecs,\n"
30894 "                  int64_t mtnsecs);\n"
30895 "\n"
30896 msgstr ""
30897
30898 #. type: =head2
30899 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
30900 msgid "guestfs_version"
30901 msgstr ""
30902
30903 #. type: verbatim
30904 #: ../src/guestfs-actions.pod:7471
30905 #, no-wrap
30906 msgid ""
30907 " struct guestfs_version *\n"
30908 " guestfs_version (guestfs_h *g);\n"
30909 "\n"
30910 msgstr ""
30911
30912 #. type: textblock
30913 #: ../src/guestfs-actions.pod:7499
30914 msgid ""
30915 "I<Note:> Don't use this call to test for availability of features.  In "
30916 "enterprise distributions we backport features from later versions into "
30917 "earlier versions, making this an unreliable way to test for features.  Use "
30918 "C<guestfs_available> instead."
30919 msgstr ""
30920
30921 #. type: textblock
30922 #: ../src/guestfs-actions.pod:7505
30923 msgid ""
30924 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30925 "error.  I<The caller must call C<guestfs_free_version> after use>."
30926 msgstr ""
30927
30928 #. type: textblock
30929 #: ../src/guestfs-actions.pod:7509
30930 msgid "(Added in 1.0.58)"
30931 msgstr ""
30932
30933 #. type: =head2
30934 #: ../src/guestfs-actions.pod:7511
30935 msgid "guestfs_vfs_label"
30936 msgstr ""
30937
30938 #. type: verbatim
30939 #: ../src/guestfs-actions.pod:7513
30940 #, no-wrap
30941 msgid ""
30942 " char *\n"
30943 " guestfs_vfs_label (guestfs_h *g,\n"
30944 "                    const char *device);\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs-actions.pod:7522
30950 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30951 msgstr ""
30952
30953 #. type: textblock
30954 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
30955 msgid "(Added in 1.3.18)"
30956 msgstr ""
30957
30958 #. type: =head2
30959 #: ../src/guestfs-actions.pod:7529
30960 msgid "guestfs_vfs_type"
30961 msgstr ""
30962
30963 #. type: verbatim
30964 #: ../src/guestfs-actions.pod:7531
30965 #, no-wrap
30966 msgid ""
30967 " char *\n"
30968 " guestfs_vfs_type (guestfs_h *g,\n"
30969 "                   const char *device);\n"
30970 "\n"
30971 msgstr ""
30972
30973 #. type: =head2
30974 #: ../src/guestfs-actions.pod:7548
30975 msgid "guestfs_vfs_uuid"
30976 msgstr ""
30977
30978 #. type: verbatim
30979 #: ../src/guestfs-actions.pod:7550
30980 #, no-wrap
30981 msgid ""
30982 " char *\n"
30983 " guestfs_vfs_uuid (guestfs_h *g,\n"
30984 "                   const char *device);\n"
30985 "\n"
30986 msgstr ""
30987
30988 #. type: textblock
30989 #: ../src/guestfs-actions.pod:7559
30990 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30991 msgstr ""
30992
30993 #. type: =head2
30994 #: ../src/guestfs-actions.pod:7566
30995 msgid "guestfs_vg_activate"
30996 msgstr ""
30997
30998 #. type: verbatim
30999 #: ../src/guestfs-actions.pod:7568
31000 #, no-wrap
31001 msgid ""
31002 " int\n"
31003 " guestfs_vg_activate (guestfs_h *g,\n"
31004 "                      int activate,\n"
31005 "                      char *const *volgroups);\n"
31006 "\n"
31007 msgstr ""
31008
31009 #. type: =head2
31010 #: ../src/guestfs-actions.pod:7585
31011 msgid "guestfs_vg_activate_all"
31012 msgstr ""
31013
31014 #. type: verbatim
31015 #: ../src/guestfs-actions.pod:7587
31016 #, no-wrap
31017 msgid ""
31018 " int\n"
31019 " guestfs_vg_activate_all (guestfs_h *g,\n"
31020 "                          int activate);\n"
31021 "\n"
31022 msgstr ""
31023
31024 #. type: =head2
31025 #: ../src/guestfs-actions.pod:7600
31026 msgid "guestfs_vgcreate"
31027 msgstr ""
31028
31029 #. type: verbatim
31030 #: ../src/guestfs-actions.pod:7602
31031 #, no-wrap
31032 msgid ""
31033 " int\n"
31034 " guestfs_vgcreate (guestfs_h *g,\n"
31035 "                   const char *volgroup,\n"
31036 "                   char *const *physvols);\n"
31037 "\n"
31038 msgstr ""
31039
31040 #. type: =head2
31041 #: ../src/guestfs-actions.pod:7614
31042 msgid "guestfs_vglvuuids"
31043 msgstr ""
31044
31045 #. type: verbatim
31046 #: ../src/guestfs-actions.pod:7616
31047 #, no-wrap
31048 msgid ""
31049 " char **\n"
31050 " guestfs_vglvuuids (guestfs_h *g,\n"
31051 "                    const char *vgname);\n"
31052 "\n"
31053 msgstr ""
31054
31055 #. type: textblock
31056 #: ../src/guestfs-actions.pod:7623
31057 msgid ""
31058 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31059 "associate logical volumes and volume groups."
31060 msgstr ""
31061
31062 #. type: textblock
31063 #: ../src/guestfs-actions.pod:7626
31064 msgid "See also C<guestfs_vgpvuuids>."
31065 msgstr ""
31066
31067 #. type: =head2
31068 #: ../src/guestfs-actions.pod:7634
31069 msgid "guestfs_vgpvuuids"
31070 msgstr ""
31071
31072 #. type: verbatim
31073 #: ../src/guestfs-actions.pod:7636
31074 #, no-wrap
31075 msgid ""
31076 " char **\n"
31077 " guestfs_vgpvuuids (guestfs_h *g,\n"
31078 "                    const char *vgname);\n"
31079 "\n"
31080 msgstr ""
31081
31082 #. type: textblock
31083 #: ../src/guestfs-actions.pod:7643
31084 msgid ""
31085 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31086 "associate physical volumes and volume groups."
31087 msgstr ""
31088
31089 #. type: textblock
31090 #: ../src/guestfs-actions.pod:7646
31091 msgid "See also C<guestfs_vglvuuids>."
31092 msgstr ""
31093
31094 #. type: =head2
31095 #: ../src/guestfs-actions.pod:7654
31096 msgid "guestfs_vgremove"
31097 msgstr ""
31098
31099 #. type: verbatim
31100 #: ../src/guestfs-actions.pod:7656
31101 #, no-wrap
31102 msgid ""
31103 " int\n"
31104 " guestfs_vgremove (guestfs_h *g,\n"
31105 "                   const char *vgname);\n"
31106 "\n"
31107 msgstr ""
31108
31109 #. type: =head2
31110 #: ../src/guestfs-actions.pod:7669
31111 msgid "guestfs_vgrename"
31112 msgstr ""
31113
31114 #. type: verbatim
31115 #: ../src/guestfs-actions.pod:7671
31116 #, no-wrap
31117 msgid ""
31118 " int\n"
31119 " guestfs_vgrename (guestfs_h *g,\n"
31120 "                   const char *volgroup,\n"
31121 "                   const char *newvolgroup);\n"
31122 "\n"
31123 msgstr ""
31124
31125 #. type: =head2
31126 #: ../src/guestfs-actions.pod:7682
31127 msgid "guestfs_vgs"
31128 msgstr ""
31129
31130 #. type: verbatim
31131 #: ../src/guestfs-actions.pod:7684
31132 #, no-wrap
31133 msgid ""
31134 " char **\n"
31135 " guestfs_vgs (guestfs_h *g);\n"
31136 "\n"
31137 msgstr ""
31138
31139 #. type: textblock
31140 #: ../src/guestfs-actions.pod:7693
31141 msgid "See also C<guestfs_vgs_full>."
31142 msgstr ""
31143
31144 #. type: =head2
31145 #: ../src/guestfs-actions.pod:7701
31146 msgid "guestfs_vgs_full"
31147 msgstr ""
31148
31149 #. type: verbatim
31150 #: ../src/guestfs-actions.pod:7703
31151 #, no-wrap
31152 msgid ""
31153 " struct guestfs_lvm_vg_list *\n"
31154 " guestfs_vgs_full (guestfs_h *g);\n"
31155 "\n"
31156 msgstr ""
31157
31158 #. type: textblock
31159 #: ../src/guestfs-actions.pod:7709
31160 msgid ""
31161 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31162 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31163 msgstr ""
31164
31165 #. type: =head2
31166 #: ../src/guestfs-actions.pod:7715
31167 msgid "guestfs_vgscan"
31168 msgstr ""
31169
31170 #. type: verbatim
31171 #: ../src/guestfs-actions.pod:7717
31172 #, no-wrap
31173 msgid ""
31174 " int\n"
31175 " guestfs_vgscan (guestfs_h *g);\n"
31176 "\n"
31177 msgstr ""
31178
31179 #. type: =head2
31180 #: ../src/guestfs-actions.pod:7727
31181 msgid "guestfs_vguuid"
31182 msgstr ""
31183
31184 #. type: verbatim
31185 #: ../src/guestfs-actions.pod:7729
31186 #, no-wrap
31187 msgid ""
31188 " char *\n"
31189 " guestfs_vguuid (guestfs_h *g,\n"
31190 "                 const char *vgname);\n"
31191 "\n"
31192 msgstr ""
31193
31194 #. type: =head2
31195 #: ../src/guestfs-actions.pod:7740
31196 msgid "guestfs_wait_ready"
31197 msgstr ""
31198
31199 #. type: verbatim
31200 #: ../src/guestfs-actions.pod:7742
31201 #, no-wrap
31202 msgid ""
31203 " int\n"
31204 " guestfs_wait_ready (guestfs_h *g);\n"
31205 "\n"
31206 msgstr ""
31207
31208 #. type: textblock
31209 #: ../src/guestfs-actions.pod:7745
31210 msgid ""
31211 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31212 "instead."
31213 msgstr ""
31214
31215 #. type: textblock
31216 #: ../src/guestfs-actions.pod:7752
31217 msgid "This function is a no op."
31218 msgstr ""
31219
31220 #. type: textblock
31221 #: ../src/guestfs-actions.pod:7754
31222 msgid ""
31223 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31224 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31225 "is no longer necessary because C<guestfs_launch> now does the waiting."
31226 msgstr ""
31227
31228 #. type: textblock
31229 #: ../src/guestfs-actions.pod:7759
31230 msgid ""
31231 "If you see any calls to this function in code then you can just remove them, "
31232 "unless you want to retain compatibility with older versions of the API."
31233 msgstr ""
31234
31235 #. type: =head2
31236 #: ../src/guestfs-actions.pod:7767
31237 msgid "guestfs_wc_c"
31238 msgstr ""
31239
31240 #. type: verbatim
31241 #: ../src/guestfs-actions.pod:7769
31242 #, no-wrap
31243 msgid ""
31244 " int\n"
31245 " guestfs_wc_c (guestfs_h *g,\n"
31246 "               const char *path);\n"
31247 "\n"
31248 msgstr ""
31249
31250 #. type: =head2
31251 #: ../src/guestfs-actions.pod:7780
31252 msgid "guestfs_wc_l"
31253 msgstr ""
31254
31255 #. type: verbatim
31256 #: ../src/guestfs-actions.pod:7782
31257 #, no-wrap
31258 msgid ""
31259 " int\n"
31260 " guestfs_wc_l (guestfs_h *g,\n"
31261 "               const char *path);\n"
31262 "\n"
31263 msgstr ""
31264
31265 #. type: =head2
31266 #: ../src/guestfs-actions.pod:7793
31267 msgid "guestfs_wc_w"
31268 msgstr ""
31269
31270 #. type: verbatim
31271 #: ../src/guestfs-actions.pod:7795
31272 #, no-wrap
31273 msgid ""
31274 " int\n"
31275 " guestfs_wc_w (guestfs_h *g,\n"
31276 "               const char *path);\n"
31277 "\n"
31278 msgstr ""
31279
31280 #. type: =head2
31281 #: ../src/guestfs-actions.pod:7806
31282 msgid "guestfs_write"
31283 msgstr ""
31284
31285 #. type: verbatim
31286 #: ../src/guestfs-actions.pod:7808
31287 #, no-wrap
31288 msgid ""
31289 " int\n"
31290 " guestfs_write (guestfs_h *g,\n"
31291 "                const char *path,\n"
31292 "                const char *content,\n"
31293 "                size_t content_size);\n"
31294 "\n"
31295 msgstr ""
31296
31297 #. type: textblock
31298 #: ../src/guestfs-actions.pod:7817
31299 msgid "See also C<guestfs_write_append>."
31300 msgstr ""
31301
31302 #. type: =head2
31303 #: ../src/guestfs-actions.pod:7826
31304 msgid "guestfs_write_append"
31305 msgstr ""
31306
31307 #. type: verbatim
31308 #: ../src/guestfs-actions.pod:7828
31309 #, no-wrap
31310 msgid ""
31311 " int\n"
31312 " guestfs_write_append (guestfs_h *g,\n"
31313 "                       const char *path,\n"
31314 "                       const char *content,\n"
31315 "                       size_t content_size);\n"
31316 "\n"
31317 msgstr ""
31318
31319 #. type: textblock
31320 #: ../src/guestfs-actions.pod:7837
31321 msgid "See also C<guestfs_write>."
31322 msgstr ""
31323
31324 #. type: =head2
31325 #: ../src/guestfs-actions.pod:7846
31326 msgid "guestfs_write_file"
31327 msgstr ""
31328
31329 #. type: verbatim
31330 #: ../src/guestfs-actions.pod:7848
31331 #, no-wrap
31332 msgid ""
31333 " int\n"
31334 " guestfs_write_file (guestfs_h *g,\n"
31335 "                     const char *path,\n"
31336 "                     const char *content,\n"
31337 "                     int size);\n"
31338 "\n"
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../src/guestfs-actions.pod:7854
31343 msgid ""
31344 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31345 "instead."
31346 msgstr ""
31347
31348 #. type: =head2
31349 #: ../src/guestfs-actions.pod:7879
31350 msgid "guestfs_zegrep"
31351 msgstr ""
31352
31353 #. type: verbatim
31354 #: ../src/guestfs-actions.pod:7881
31355 #, no-wrap
31356 msgid ""
31357 " char **\n"
31358 " guestfs_zegrep (guestfs_h *g,\n"
31359 "                 const char *regex,\n"
31360 "                 const char *path);\n"
31361 "\n"
31362 msgstr ""
31363
31364 #. type: =head2
31365 #: ../src/guestfs-actions.pod:7898
31366 msgid "guestfs_zegrepi"
31367 msgstr ""
31368
31369 #. type: verbatim
31370 #: ../src/guestfs-actions.pod:7900
31371 #, no-wrap
31372 msgid ""
31373 " char **\n"
31374 " guestfs_zegrepi (guestfs_h *g,\n"
31375 "                  const char *regex,\n"
31376 "                  const char *path);\n"
31377 "\n"
31378 msgstr ""
31379
31380 #. type: =head2
31381 #: ../src/guestfs-actions.pod:7917
31382 msgid "guestfs_zero"
31383 msgstr ""
31384
31385 #. type: verbatim
31386 #: ../src/guestfs-actions.pod:7919
31387 #, no-wrap
31388 msgid ""
31389 " int\n"
31390 " guestfs_zero (guestfs_h *g,\n"
31391 "               const char *device);\n"
31392 "\n"
31393 msgstr ""
31394
31395 #. type: textblock
31396 #: ../src/guestfs-actions.pod:7933
31397 msgid ""
31398 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31399 "C<guestfs_is_zero_device>"
31400 msgstr ""
31401
31402 #. type: =head2
31403 #: ../src/guestfs-actions.pod:7945
31404 msgid "guestfs_zero_device"
31405 msgstr ""
31406
31407 #. type: verbatim
31408 #: ../src/guestfs-actions.pod:7947
31409 #, no-wrap
31410 msgid ""
31411 " int\n"
31412 " guestfs_zero_device (guestfs_h *g,\n"
31413 "                      const char *device);\n"
31414 "\n"
31415 msgstr ""
31416
31417 #. type: textblock
31418 #: ../src/guestfs-actions.pod:7951
31419 msgid ""
31420 "This command writes zeroes over the entire C<device>.  Compare with "
31421 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31422 msgstr ""
31423
31424 #. type: textblock
31425 #: ../src/guestfs-actions.pod:7969
31426 msgid "(Added in 1.3.1)"
31427 msgstr ""
31428
31429 #. type: =head2
31430 #: ../src/guestfs-actions.pod:7971
31431 msgid "guestfs_zerofree"
31432 msgstr ""
31433
31434 #. type: verbatim
31435 #: ../src/guestfs-actions.pod:7973
31436 #, no-wrap
31437 msgid ""
31438 " int\n"
31439 " guestfs_zerofree (guestfs_h *g,\n"
31440 "                   const char *device);\n"
31441 "\n"
31442 msgstr ""
31443
31444 #. type: =head2
31445 #: ../src/guestfs-actions.pod:7992
31446 msgid "guestfs_zfgrep"
31447 msgstr ""
31448
31449 #. type: verbatim
31450 #: ../src/guestfs-actions.pod:7994
31451 #, no-wrap
31452 msgid ""
31453 " char **\n"
31454 " guestfs_zfgrep (guestfs_h *g,\n"
31455 "                 const char *pattern,\n"
31456 "                 const char *path);\n"
31457 "\n"
31458 msgstr ""
31459
31460 #. type: =head2
31461 #: ../src/guestfs-actions.pod:8011
31462 msgid "guestfs_zfgrepi"
31463 msgstr ""
31464
31465 #. type: verbatim
31466 #: ../src/guestfs-actions.pod:8013
31467 #, no-wrap
31468 msgid ""
31469 " char **\n"
31470 " guestfs_zfgrepi (guestfs_h *g,\n"
31471 "                  const char *pattern,\n"
31472 "                  const char *path);\n"
31473 "\n"
31474 msgstr ""
31475
31476 #. type: =head2
31477 #: ../src/guestfs-actions.pod:8030
31478 msgid "guestfs_zfile"
31479 msgstr ""
31480
31481 #. type: verbatim
31482 #: ../src/guestfs-actions.pod:8032
31483 #, no-wrap
31484 msgid ""
31485 " char *\n"
31486 " guestfs_zfile (guestfs_h *g,\n"
31487 "                const char *meth,\n"
31488 "                const char *path);\n"
31489 "\n"
31490 msgstr ""
31491
31492 #. type: textblock
31493 #: ../src/guestfs-actions.pod:8037
31494 msgid ""
31495 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31496 "instead."
31497 msgstr ""
31498
31499 #. type: textblock
31500 #: ../src/guestfs-actions.pod:8049
31501 msgid ""
31502 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31503 "files."
31504 msgstr ""
31505
31506 #. type: =head2
31507 #: ../src/guestfs-actions.pod:8057
31508 msgid "guestfs_zgrep"
31509 msgstr ""
31510
31511 #. type: verbatim
31512 #: ../src/guestfs-actions.pod:8059
31513 #, no-wrap
31514 msgid ""
31515 " char **\n"
31516 " guestfs_zgrep (guestfs_h *g,\n"
31517 "                const char *regex,\n"
31518 "                const char *path);\n"
31519 "\n"
31520 msgstr ""
31521
31522 #. type: =head2
31523 #: ../src/guestfs-actions.pod:8076
31524 msgid "guestfs_zgrepi"
31525 msgstr ""
31526
31527 #. type: verbatim
31528 #: ../src/guestfs-actions.pod:8078
31529 #, no-wrap
31530 msgid ""
31531 " char **\n"
31532 " guestfs_zgrepi (guestfs_h *g,\n"
31533 "                 const char *regex,\n"
31534 "                 const char *path);\n"
31535 "\n"
31536 msgstr ""
31537
31538 #. type: =item
31539 #: ../src/guestfs-availability.pod:3
31540 msgid "B<augeas>"
31541 msgstr ""
31542
31543 #. type: textblock
31544 #: ../src/guestfs-availability.pod:5
31545 msgid ""
31546 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31547 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31548 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31549 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31550 "L</guestfs_aug_save> L</guestfs_aug_set>"
31551 msgstr ""
31552
31553 #. type: =item
31554 #: ../src/guestfs-availability.pod:21
31555 msgid "B<btrfs>"
31556 msgstr ""
31557
31558 #. type: textblock
31559 #: ../src/guestfs-availability.pod:23
31560 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31561 msgstr ""
31562
31563 #. type: =item
31564 #: ../src/guestfs-availability.pod:26
31565 msgid "B<grub>"
31566 msgstr ""
31567
31568 #. type: textblock
31569 #: ../src/guestfs-availability.pod:28
31570 msgid "The following functions: L</guestfs_grub_install>"
31571 msgstr ""
31572
31573 #. type: =item
31574 #: ../src/guestfs-availability.pod:31
31575 msgid "B<inotify>"
31576 msgstr ""
31577
31578 #. type: textblock
31579 #: ../src/guestfs-availability.pod:33
31580 msgid ""
31581 "The following functions: L</guestfs_inotify_add_watch> L</"
31582 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31583 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31584 msgstr ""
31585
31586 #. type: =item
31587 #: ../src/guestfs-availability.pod:41
31588 msgid "B<linuxfsuuid>"
31589 msgstr ""
31590
31591 #. type: textblock
31592 #: ../src/guestfs-availability.pod:43
31593 msgid ""
31594 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31595 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31596 msgstr ""
31597
31598 #. type: =item
31599 #: ../src/guestfs-availability.pod:50
31600 msgid "B<linuxmodules>"
31601 msgstr ""
31602
31603 #. type: textblock
31604 #: ../src/guestfs-availability.pod:52
31605 msgid "The following functions: L</guestfs_modprobe>"
31606 msgstr ""
31607
31608 #. type: =item
31609 #: ../src/guestfs-availability.pod:55
31610 msgid "B<linuxxattrs>"
31611 msgstr ""
31612
31613 #. type: textblock
31614 #: ../src/guestfs-availability.pod:57
31615 msgid ""
31616 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31617 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31618 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31619 "guestfs_setxattr>"
31620 msgstr ""
31621
31622 #. type: =item
31623 #: ../src/guestfs-availability.pod:68
31624 msgid "B<luks>"
31625 msgstr ""
31626
31627 #. type: textblock
31628 #: ../src/guestfs-availability.pod:70
31629 msgid ""
31630 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31631 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31632 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31633 msgstr ""
31634
31635 #. type: =item
31636 #: ../src/guestfs-availability.pod:79
31637 msgid "B<lvm2>"
31638 msgstr ""
31639
31640 #. type: textblock
31641 #: ../src/guestfs-availability.pod:81
31642 msgid ""
31643 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31644 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31645 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31646 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31647 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31648 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31649 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31650 msgstr ""
31651
31652 #. type: =item
31653 #: ../src/guestfs-availability.pod:104
31654 msgid "B<mknod>"
31655 msgstr ""
31656
31657 #. type: textblock
31658 #: ../src/guestfs-availability.pod:106
31659 msgid ""
31660 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31661 "guestfs_mknod_b> L</guestfs_mknod_c>"
31662 msgstr ""
31663
31664 #. type: =item
31665 #: ../src/guestfs-availability.pod:112
31666 msgid "B<ntfs3g>"
31667 msgstr ""
31668
31669 #. type: textblock
31670 #: ../src/guestfs-availability.pod:114
31671 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31672 msgstr ""
31673
31674 #. type: =item
31675 #: ../src/guestfs-availability.pod:117
31676 msgid "B<ntfsprogs>"
31677 msgstr ""
31678
31679 #. type: textblock
31680 #: ../src/guestfs-availability.pod:119
31681 msgid ""
31682 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31683 "L</guestfs_ntfsresize_size>"
31684 msgstr ""
31685
31686 #. type: =item
31687 #: ../src/guestfs-availability.pod:124
31688 msgid "B<realpath>"
31689 msgstr ""
31690
31691 #. type: textblock
31692 #: ../src/guestfs-availability.pod:126
31693 msgid "The following functions: L</guestfs_realpath>"
31694 msgstr ""
31695
31696 #. type: =item
31697 #: ../src/guestfs-availability.pod:129
31698 msgid "B<scrub>"
31699 msgstr ""
31700
31701 #. type: textblock
31702 #: ../src/guestfs-availability.pod:131
31703 msgid ""
31704 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31705 "guestfs_scrub_freespace>"
31706 msgstr ""
31707
31708 #. type: =item
31709 #: ../src/guestfs-availability.pod:136
31710 msgid "B<selinux>"
31711 msgstr ""
31712
31713 #. type: textblock
31714 #: ../src/guestfs-availability.pod:138
31715 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31716 msgstr ""
31717
31718 #. type: =item
31719 #: ../src/guestfs-availability.pod:142
31720 msgid "B<xz>"
31721 msgstr ""
31722
31723 #. type: textblock
31724 #: ../src/guestfs-availability.pod:144
31725 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31726 msgstr ""
31727
31728 #. type: =item
31729 #: ../src/guestfs-availability.pod:148
31730 msgid "B<zerofree>"
31731 msgstr ""
31732
31733 #. type: textblock
31734 #: ../src/guestfs-availability.pod:150
31735 msgid "The following functions: L</guestfs_zerofree>"
31736 msgstr ""
31737
31738 #. type: =head2
31739 #: ../src/guestfs-structs.pod:1
31740 msgid "guestfs_int_bool"
31741 msgstr ""
31742
31743 #. type: verbatim
31744 #: ../src/guestfs-structs.pod:3
31745 #, no-wrap
31746 msgid ""
31747 " struct guestfs_int_bool {\n"
31748 "   int32_t i;\n"
31749 "   int32_t b;\n"
31750 " };\n"
31751 " \n"
31752 msgstr ""
31753
31754 #. type: verbatim
31755 #: ../src/guestfs-structs.pod:8
31756 #, no-wrap
31757 msgid ""
31758 " struct guestfs_int_bool_list {\n"
31759 "   uint32_t len; /* Number of elements in list. */\n"
31760 "   struct guestfs_int_bool *val; /* Elements. */\n"
31761 " };\n"
31762 " \n"
31763 msgstr ""
31764
31765 #. type: verbatim
31766 #: ../src/guestfs-structs.pod:13
31767 #, no-wrap
31768 msgid ""
31769 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31770 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31771 "\n"
31772 msgstr ""
31773
31774 #. type: =head2
31775 #: ../src/guestfs-structs.pod:16
31776 msgid "guestfs_lvm_pv"
31777 msgstr ""
31778
31779 #. type: verbatim
31780 #: ../src/guestfs-structs.pod:18
31781 #, no-wrap
31782 msgid ""
31783 " struct guestfs_lvm_pv {\n"
31784 "   char *pv_name;\n"
31785 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31786 "   char pv_uuid[32];\n"
31787 "   char *pv_fmt;\n"
31788 "   uint64_t pv_size;\n"
31789 "   uint64_t dev_size;\n"
31790 "   uint64_t pv_free;\n"
31791 "   uint64_t pv_used;\n"
31792 "   char *pv_attr;\n"
31793 "   int64_t pv_pe_count;\n"
31794 "   int64_t pv_pe_alloc_count;\n"
31795 "   char *pv_tags;\n"
31796 "   uint64_t pe_start;\n"
31797 "   int64_t pv_mda_count;\n"
31798 "   uint64_t pv_mda_free;\n"
31799 " };\n"
31800 " \n"
31801 msgstr ""
31802
31803 #. type: verbatim
31804 #: ../src/guestfs-structs.pod:36
31805 #, no-wrap
31806 msgid ""
31807 " struct guestfs_lvm_pv_list {\n"
31808 "   uint32_t len; /* Number of elements in list. */\n"
31809 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31810 " };\n"
31811 " \n"
31812 msgstr ""
31813
31814 #. type: verbatim
31815 #: ../src/guestfs-structs.pod:41
31816 #, no-wrap
31817 msgid ""
31818 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31819 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31820 "\n"
31821 msgstr ""
31822
31823 #. type: =head2
31824 #: ../src/guestfs-structs.pod:44
31825 msgid "guestfs_lvm_vg"
31826 msgstr ""
31827
31828 #. type: verbatim
31829 #: ../src/guestfs-structs.pod:46
31830 #, no-wrap
31831 msgid ""
31832 " struct guestfs_lvm_vg {\n"
31833 "   char *vg_name;\n"
31834 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31835 "   char vg_uuid[32];\n"
31836 "   char *vg_fmt;\n"
31837 "   char *vg_attr;\n"
31838 "   uint64_t vg_size;\n"
31839 "   uint64_t vg_free;\n"
31840 "   char *vg_sysid;\n"
31841 "   uint64_t vg_extent_size;\n"
31842 "   int64_t vg_extent_count;\n"
31843 "   int64_t vg_free_count;\n"
31844 "   int64_t max_lv;\n"
31845 "   int64_t max_pv;\n"
31846 "   int64_t pv_count;\n"
31847 "   int64_t lv_count;\n"
31848 "   int64_t snap_count;\n"
31849 "   int64_t vg_seqno;\n"
31850 "   char *vg_tags;\n"
31851 "   int64_t vg_mda_count;\n"
31852 "   uint64_t vg_mda_free;\n"
31853 " };\n"
31854 " \n"
31855 msgstr ""
31856
31857 #. type: verbatim
31858 #: ../src/guestfs-structs.pod:69
31859 #, no-wrap
31860 msgid ""
31861 " struct guestfs_lvm_vg_list {\n"
31862 "   uint32_t len; /* Number of elements in list. */\n"
31863 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31864 " };\n"
31865 " \n"
31866 msgstr ""
31867
31868 #. type: verbatim
31869 #: ../src/guestfs-structs.pod:74
31870 #, no-wrap
31871 msgid ""
31872 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31873 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31874 "\n"
31875 msgstr ""
31876
31877 #. type: =head2
31878 #: ../src/guestfs-structs.pod:77
31879 msgid "guestfs_lvm_lv"
31880 msgstr ""
31881
31882 #. type: verbatim
31883 #: ../src/guestfs-structs.pod:79
31884 #, no-wrap
31885 msgid ""
31886 " struct guestfs_lvm_lv {\n"
31887 "   char *lv_name;\n"
31888 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31889 "   char lv_uuid[32];\n"
31890 "   char *lv_attr;\n"
31891 "   int64_t lv_major;\n"
31892 "   int64_t lv_minor;\n"
31893 "   int64_t lv_kernel_major;\n"
31894 "   int64_t lv_kernel_minor;\n"
31895 "   uint64_t lv_size;\n"
31896 "   int64_t seg_count;\n"
31897 "   char *origin;\n"
31898 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31899 "   float snap_percent;\n"
31900 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31901 "   float copy_percent;\n"
31902 "   char *move_pv;\n"
31903 "   char *lv_tags;\n"
31904 "   char *mirror_log;\n"
31905 "   char *modules;\n"
31906 " };\n"
31907 " \n"
31908 msgstr ""
31909
31910 #. type: verbatim
31911 #: ../src/guestfs-structs.pod:101
31912 #, no-wrap
31913 msgid ""
31914 " struct guestfs_lvm_lv_list {\n"
31915 "   uint32_t len; /* Number of elements in list. */\n"
31916 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31917 " };\n"
31918 " \n"
31919 msgstr ""
31920
31921 #. type: verbatim
31922 #: ../src/guestfs-structs.pod:106
31923 #, no-wrap
31924 msgid ""
31925 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31926 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31927 "\n"
31928 msgstr ""
31929
31930 #. type: verbatim
31931 #: ../src/guestfs-structs.pod:111
31932 #, no-wrap
31933 msgid ""
31934 " struct guestfs_stat {\n"
31935 "   int64_t dev;\n"
31936 "   int64_t ino;\n"
31937 "   int64_t mode;\n"
31938 "   int64_t nlink;\n"
31939 "   int64_t uid;\n"
31940 "   int64_t gid;\n"
31941 "   int64_t rdev;\n"
31942 "   int64_t size;\n"
31943 "   int64_t blksize;\n"
31944 "   int64_t blocks;\n"
31945 "   int64_t atime;\n"
31946 "   int64_t mtime;\n"
31947 "   int64_t ctime;\n"
31948 " };\n"
31949 " \n"
31950 msgstr ""
31951
31952 #. type: verbatim
31953 #: ../src/guestfs-structs.pod:127
31954 #, no-wrap
31955 msgid ""
31956 " struct guestfs_stat_list {\n"
31957 "   uint32_t len; /* Number of elements in list. */\n"
31958 "   struct guestfs_stat *val; /* Elements. */\n"
31959 " };\n"
31960 " \n"
31961 msgstr ""
31962
31963 #. type: verbatim
31964 #: ../src/guestfs-structs.pod:132
31965 #, no-wrap
31966 msgid ""
31967 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
31968 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
31969 "\n"
31970 msgstr ""
31971
31972 #. type: verbatim
31973 #: ../src/guestfs-structs.pod:137
31974 #, no-wrap
31975 msgid ""
31976 " struct guestfs_statvfs {\n"
31977 "   int64_t bsize;\n"
31978 "   int64_t frsize;\n"
31979 "   int64_t blocks;\n"
31980 "   int64_t bfree;\n"
31981 "   int64_t bavail;\n"
31982 "   int64_t files;\n"
31983 "   int64_t ffree;\n"
31984 "   int64_t favail;\n"
31985 "   int64_t fsid;\n"
31986 "   int64_t flag;\n"
31987 "   int64_t namemax;\n"
31988 " };\n"
31989 " \n"
31990 msgstr ""
31991
31992 #. type: verbatim
31993 #: ../src/guestfs-structs.pod:151
31994 #, no-wrap
31995 msgid ""
31996 " struct guestfs_statvfs_list {\n"
31997 "   uint32_t len; /* Number of elements in list. */\n"
31998 "   struct guestfs_statvfs *val; /* Elements. */\n"
31999 " };\n"
32000 " \n"
32001 msgstr ""
32002
32003 #. type: verbatim
32004 #: ../src/guestfs-structs.pod:156
32005 #, no-wrap
32006 msgid ""
32007 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32008 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32009 "\n"
32010 msgstr ""
32011
32012 #. type: =head2
32013 #: ../src/guestfs-structs.pod:159
32014 msgid "guestfs_dirent"
32015 msgstr ""
32016
32017 #. type: verbatim
32018 #: ../src/guestfs-structs.pod:161
32019 #, no-wrap
32020 msgid ""
32021 " struct guestfs_dirent {\n"
32022 "   int64_t ino;\n"
32023 "   char ftyp;\n"
32024 "   char *name;\n"
32025 " };\n"
32026 " \n"
32027 msgstr ""
32028
32029 #. type: verbatim
32030 #: ../src/guestfs-structs.pod:167
32031 #, no-wrap
32032 msgid ""
32033 " struct guestfs_dirent_list {\n"
32034 "   uint32_t len; /* Number of elements in list. */\n"
32035 "   struct guestfs_dirent *val; /* Elements. */\n"
32036 " };\n"
32037 " \n"
32038 msgstr ""
32039
32040 #. type: verbatim
32041 #: ../src/guestfs-structs.pod:172
32042 #, no-wrap
32043 msgid ""
32044 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32045 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32046 "\n"
32047 msgstr ""
32048
32049 #. type: verbatim
32050 #: ../src/guestfs-structs.pod:177
32051 #, no-wrap
32052 msgid ""
32053 " struct guestfs_version {\n"
32054 "   int64_t major;\n"
32055 "   int64_t minor;\n"
32056 "   int64_t release;\n"
32057 "   char *extra;\n"
32058 " };\n"
32059 " \n"
32060 msgstr ""
32061
32062 #. type: verbatim
32063 #: ../src/guestfs-structs.pod:184
32064 #, no-wrap
32065 msgid ""
32066 " struct guestfs_version_list {\n"
32067 "   uint32_t len; /* Number of elements in list. */\n"
32068 "   struct guestfs_version *val; /* Elements. */\n"
32069 " };\n"
32070 " \n"
32071 msgstr ""
32072
32073 #. type: verbatim
32074 #: ../src/guestfs-structs.pod:189
32075 #, no-wrap
32076 msgid ""
32077 " void guestfs_free_version (struct guestfs_free_version *);\n"
32078 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32079 "\n"
32080 msgstr ""
32081
32082 #. type: =head2
32083 #: ../src/guestfs-structs.pod:192
32084 msgid "guestfs_xattr"
32085 msgstr ""
32086
32087 #. type: verbatim
32088 #: ../src/guestfs-structs.pod:194
32089 #, no-wrap
32090 msgid ""
32091 " struct guestfs_xattr {\n"
32092 "   char *attrname;\n"
32093 "   /* The next two fields describe a byte array. */\n"
32094 "   uint32_t attrval_len;\n"
32095 "   char *attrval;\n"
32096 " };\n"
32097 " \n"
32098 msgstr ""
32099
32100 #. type: verbatim
32101 #: ../src/guestfs-structs.pod:201
32102 #, no-wrap
32103 msgid ""
32104 " struct guestfs_xattr_list {\n"
32105 "   uint32_t len; /* Number of elements in list. */\n"
32106 "   struct guestfs_xattr *val; /* Elements. */\n"
32107 " };\n"
32108 " \n"
32109 msgstr ""
32110
32111 #. type: verbatim
32112 #: ../src/guestfs-structs.pod:206
32113 #, no-wrap
32114 msgid ""
32115 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32116 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32117 "\n"
32118 msgstr ""
32119
32120 #. type: =head2
32121 #: ../src/guestfs-structs.pod:209
32122 msgid "guestfs_inotify_event"
32123 msgstr ""
32124
32125 #. type: verbatim
32126 #: ../src/guestfs-structs.pod:211
32127 #, no-wrap
32128 msgid ""
32129 " struct guestfs_inotify_event {\n"
32130 "   int64_t in_wd;\n"
32131 "   uint32_t in_mask;\n"
32132 "   uint32_t in_cookie;\n"
32133 "   char *in_name;\n"
32134 " };\n"
32135 " \n"
32136 msgstr ""
32137
32138 #. type: verbatim
32139 #: ../src/guestfs-structs.pod:218
32140 #, no-wrap
32141 msgid ""
32142 " struct guestfs_inotify_event_list {\n"
32143 "   uint32_t len; /* Number of elements in list. */\n"
32144 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32145 " };\n"
32146 " \n"
32147 msgstr ""
32148
32149 #. type: verbatim
32150 #: ../src/guestfs-structs.pod:223
32151 #, no-wrap
32152 msgid ""
32153 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32154 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32155 "\n"
32156 msgstr ""
32157
32158 #. type: =head2
32159 #: ../src/guestfs-structs.pod:226
32160 msgid "guestfs_partition"
32161 msgstr ""
32162
32163 #. type: verbatim
32164 #: ../src/guestfs-structs.pod:228
32165 #, no-wrap
32166 msgid ""
32167 " struct guestfs_partition {\n"
32168 "   int32_t part_num;\n"
32169 "   uint64_t part_start;\n"
32170 "   uint64_t part_end;\n"
32171 "   uint64_t part_size;\n"
32172 " };\n"
32173 " \n"
32174 msgstr ""
32175
32176 #. type: verbatim
32177 #: ../src/guestfs-structs.pod:235
32178 #, no-wrap
32179 msgid ""
32180 " struct guestfs_partition_list {\n"
32181 "   uint32_t len; /* Number of elements in list. */\n"
32182 "   struct guestfs_partition *val; /* Elements. */\n"
32183 " };\n"
32184 " \n"
32185 msgstr ""
32186
32187 #. type: verbatim
32188 #: ../src/guestfs-structs.pod:240
32189 #, no-wrap
32190 msgid ""
32191 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32192 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32193 "\n"
32194 msgstr ""
32195
32196 #. type: =head2
32197 #: ../src/guestfs-structs.pod:243
32198 msgid "guestfs_application"
32199 msgstr ""
32200
32201 #. type: verbatim
32202 #: ../src/guestfs-structs.pod:245
32203 #, no-wrap
32204 msgid ""
32205 " struct guestfs_application {\n"
32206 "   char *app_name;\n"
32207 "   char *app_display_name;\n"
32208 "   int32_t app_epoch;\n"
32209 "   char *app_version;\n"
32210 "   char *app_release;\n"
32211 "   char *app_install_path;\n"
32212 "   char *app_trans_path;\n"
32213 "   char *app_publisher;\n"
32214 "   char *app_url;\n"
32215 "   char *app_source_package;\n"
32216 "   char *app_summary;\n"
32217 "   char *app_description;\n"
32218 " };\n"
32219 " \n"
32220 msgstr ""
32221
32222 #. type: verbatim
32223 #: ../src/guestfs-structs.pod:260
32224 #, no-wrap
32225 msgid ""
32226 " struct guestfs_application_list {\n"
32227 "   uint32_t len; /* Number of elements in list. */\n"
32228 "   struct guestfs_application *val; /* Elements. */\n"
32229 " };\n"
32230 " \n"
32231 msgstr ""
32232
32233 #. type: verbatim
32234 #: ../src/guestfs-structs.pod:265
32235 #, no-wrap
32236 msgid ""
32237 " void guestfs_free_application (struct guestfs_free_application *);\n"
32238 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32239 "\n"
32240 msgstr ""
32241
32242 #. type: textblock
32243 #: ../src/guestfs.pod:5
32244 msgid "guestfs - Library for accessing and modifying virtual machine images"
32245 msgstr ""
32246
32247 #. type: verbatim
32248 #: ../src/guestfs.pod:11
32249 #, no-wrap
32250 msgid ""
32251 " guestfs_h *g = guestfs_create ();\n"
32252 " guestfs_add_drive (g, \"guest.img\");\n"
32253 " guestfs_launch (g);\n"
32254 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32255 " guestfs_touch (g, \"/hello\");\n"
32256 " guestfs_umount (g, \"/\");\n"
32257 " guestfs_close (g);\n"
32258 "\n"
32259 msgstr ""
32260
32261 #. type: textblock
32262 #: ../src/guestfs.pod:25
32263 msgid ""
32264 "Libguestfs is a library for accessing and modifying guest disk images.  "
32265 "Amongst the things this is good for: making batch configuration changes to "
32266 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32267 "between virtualization systems (see also: virt-p2v), performing partial "
32268 "backups, performing partial guest clones, cloning guests and changing "
32269 "registry/UUID/hostname info, and much else besides."
32270 msgstr ""
32271
32272 #. type: textblock
32273 #: ../src/guestfs.pod:33
32274 msgid ""
32275 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32276 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32277 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32278 "qcow2, vmdk."
32279 msgstr ""
32280
32281 #. type: textblock
32282 #: ../src/guestfs.pod:38
32283 msgid ""
32284 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32285 "what filesystem is in each LV, etc.).  It can also run commands in the "
32286 "context of the guest.  Also you can access filesystems over FUSE."
32287 msgstr ""
32288
32289 #. type: textblock
32290 #: ../src/guestfs.pod:43
32291 msgid ""
32292 "Libguestfs is a library that can be linked with C and C++ management "
32293 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32294 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
32295 "command line."
32296 msgstr ""
32297
32298 #. type: textblock
32299 #: ../src/guestfs.pod:48
32300 msgid ""
32301 "You don't need to be root to use libguestfs, although obviously you do need "
32302 "enough permissions to access the disk images."
32303 msgstr ""
32304
32305 #. type: textblock
32306 #: ../src/guestfs.pod:51
32307 msgid ""
32308 "Libguestfs is a large API because it can do many things.  For a gentle "
32309 "introduction, please read the L</API OVERVIEW> section next."
32310 msgstr ""
32311
32312 #. type: textblock
32313 #: ../src/guestfs.pod:54
32314 msgid ""
32315 "There are also some example programs in the L<guestfs-examples(3)> manual "
32316 "page."
32317 msgstr ""
32318
32319 #. type: =head1
32320 #: ../src/guestfs.pod:57
32321 msgid "API OVERVIEW"
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs.pod:59
32326 msgid ""
32327 "This section provides a gentler overview of the libguestfs API.  We also try "
32328 "to group API calls together, where that may not be obvious from reading "
32329 "about the individual calls in the main section of this manual."
32330 msgstr ""
32331
32332 #. type: =head2
32333 #: ../src/guestfs.pod:64
32334 msgid "HANDLES"
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs.pod:66
32339 msgid ""
32340 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32341 "must add at least one disk image to the handle, followed by launching the "
32342 "handle, then performing whatever operations you want, and finally closing "
32343 "the handle.  By convention we use the single letter C<g> for the name of the "
32344 "handle variable, although of course you can use any name you want."
32345 msgstr ""
32346
32347 #. type: textblock
32348 #: ../src/guestfs.pod:73
32349 msgid "The general structure of all libguestfs-using programs looks like this:"
32350 msgstr ""
32351
32352 #. type: verbatim
32353 #: ../src/guestfs.pod:76
32354 #, no-wrap
32355 msgid ""
32356 " guestfs_h *g = guestfs_create ();\n"
32357 " \n"
32358 msgstr ""
32359
32360 #. type: verbatim
32361 #: ../src/guestfs.pod:78
32362 #, no-wrap
32363 msgid ""
32364 " /* Call guestfs_add_drive additional times if there are\n"
32365 "  * multiple disk images.\n"
32366 "  */\n"
32367 " guestfs_add_drive (g, \"guest.img\");\n"
32368 " \n"
32369 msgstr ""
32370
32371 #. type: verbatim
32372 #: ../src/guestfs.pod:83
32373 #, no-wrap
32374 msgid ""
32375 " /* Most manipulation calls won't work until you've launched\n"
32376 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32377 "  * and _before_ other commands.\n"
32378 "  */\n"
32379 " guestfs_launch (g);\n"
32380 " \n"
32381 msgstr ""
32382
32383 #. type: verbatim
32384 #: ../src/guestfs.pod:89
32385 #, no-wrap
32386 msgid ""
32387 " /* Now you can examine what partitions, LVs etc are available.\n"
32388 "  */\n"
32389 " char **partitions = guestfs_list_partitions (g);\n"
32390 " char **logvols = guestfs_lvs (g);\n"
32391 " \n"
32392 msgstr ""
32393
32394 #. type: verbatim
32395 #: ../src/guestfs.pod:94
32396 #, no-wrap
32397 msgid ""
32398 " /* To access a filesystem in the image, you must mount it.\n"
32399 "  */\n"
32400 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32401 " \n"
32402 msgstr ""
32403
32404 #. type: verbatim
32405 #: ../src/guestfs.pod:98
32406 #, no-wrap
32407 msgid ""
32408 " /* Now you can perform filesystem actions on the guest\n"
32409 "  * disk image.\n"
32410 "  */\n"
32411 " guestfs_touch (g, \"/hello\");\n"
32412 " \n"
32413 msgstr ""
32414
32415 #. type: verbatim
32416 #: ../src/guestfs.pod:103
32417 #, no-wrap
32418 msgid ""
32419 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32420 "  * it is done automatically when you close the handle.  See\n"
32421 "  * discussion of autosync in this page.\n"
32422 "  */\n"
32423 " guestfs_sync (g);\n"
32424 " \n"
32425 msgstr ""
32426
32427 #. type: verbatim
32428 #: ../src/guestfs.pod:109
32429 #, no-wrap
32430 msgid ""
32431 " /* Close the handle 'g'. */\n"
32432 " guestfs_close (g);\n"
32433 "\n"
32434 msgstr ""
32435
32436 #. type: textblock
32437 #: ../src/guestfs.pod:112
32438 msgid ""
32439 "The code above doesn't include any error checking.  In real code you should "
32440 "check return values carefully for errors.  In general all functions that "
32441 "return integers return C<-1> on error, and all functions that return "
32442 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32443 "how to handle errors, and consult the documentation for each function call "
32444 "below to see precisely how they return error indications.  See L<guestfs-"
32445 "examples(3)> for fully worked examples."
32446 msgstr ""
32447
32448 #. type: =head2
32449 #: ../src/guestfs.pod:121
32450 msgid "DISK IMAGES"
32451 msgstr ""
32452
32453 #. type: textblock
32454 #: ../src/guestfs.pod:123
32455 msgid ""
32456 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32457 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32458 "actual block device, or simply an empty file of zeroes that you have created "
32459 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32460 "of these."
32461 msgstr ""
32462
32463 #. type: textblock
32464 #: ../src/guestfs.pod:129
32465 msgid ""
32466 "The call you should use in modern code for adding drives is L</"
32467 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32468 "specifying that the format is raw, do:"
32469 msgstr ""
32470
32471 #. type: verbatim
32472 #: ../src/guestfs.pod:133
32473 #, no-wrap
32474 msgid ""
32475 " guestfs_add_drive_opts (g, filename,\n"
32476 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32477 "                         -1);\n"
32478 "\n"
32479 msgstr ""
32480
32481 #. type: textblock
32482 #: ../src/guestfs.pod:137
32483 msgid "You can add a disk read-only using:"
32484 msgstr ""
32485
32486 #. type: verbatim
32487 #: ../src/guestfs.pod:139
32488 #, no-wrap
32489 msgid ""
32490 " guestfs_add_drive_opts (g, filename,\n"
32491 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32492 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32493 "                         -1);\n"
32494 "\n"
32495 msgstr ""
32496
32497 #. type: textblock
32498 #: ../src/guestfs.pod:144
32499 msgid ""
32500 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32501 "libguestfs won't modify the file."
32502 msgstr ""
32503
32504 #. type: textblock
32505 #: ../src/guestfs.pod:147
32506 msgid ""
32507 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32508 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32509 "corruption, but adding it read-only is safe."
32510 msgstr ""
32511
32512 #. type: textblock
32513 #: ../src/guestfs.pod:151
32514 msgid ""
32515 "You must add at least one disk image, and you may add multiple disk images.  "
32516 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32517 "first one you added), C</dev/sdb> (for the second one you added), etc."
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:156
32522 msgid ""
32523 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32524 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32525 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32526 msgstr ""
32527
32528 #. type: =head2
32529 #: ../src/guestfs.pod:161
32530 msgid "MOUNTING"
32531 msgstr ""
32532
32533 #. type: textblock
32534 #: ../src/guestfs.pod:163
32535 msgid ""
32536 "Before you can read or write files, create directories and so on in a disk "
32537 "image that contains filesystems, you have to mount those filesystems using "
32538 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32539 "a disk image contains (for example) one partition with a filesystem on that "
32540 "partition, then you can mount it directly:"
32541 msgstr ""
32542
32543 #. type: verbatim
32544 #: ../src/guestfs.pod:170
32545 #, no-wrap
32546 msgid ""
32547 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32548 "\n"
32549 msgstr ""
32550
32551 #. type: textblock
32552 #: ../src/guestfs.pod:172
32553 msgid ""
32554 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32555 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32556 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32557 "that these are libguestfs virtual devices, and are nothing to do with host "
32558 "devices."
32559 msgstr ""
32560
32561 #. type: textblock
32562 #: ../src/guestfs.pod:178
32563 msgid ""
32564 "If you are given a disk image and you don't know what it contains then you "
32565 "have to find out.  Libguestfs can do that too: use L</"
32566 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32567 "LVs, and either try mounting each to see what is mountable, or else examine "
32568 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32569 "filesystems, use L</guestfs_list_filesystems>."
32570 msgstr ""
32571
32572 #. type: textblock
32573 #: ../src/guestfs.pod:186
32574 msgid ""
32575 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32576 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32577 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32578 msgstr ""
32579
32580 #. type: textblock
32581 #: ../src/guestfs.pod:191
32582 msgid ""
32583 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32584 "several other variations of the C<guestfs_mount_*> call."
32585 msgstr ""
32586
32587 #. type: =head2
32588 #: ../src/guestfs.pod:194
32589 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs.pod:196
32594 msgid ""
32595 "The majority of the libguestfs API consists of fairly low-level calls for "
32596 "accessing and modifying the files, directories, symlinks etc on mounted "
32597 "filesystems.  There are over a hundred such calls which you can find listed "
32598 "in detail below in this man page, and we don't even pretend to cover them "
32599 "all in this overview."
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs.pod:202
32604 msgid ""
32605 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32606 "mount point."
32607 msgstr ""
32608
32609 #. type: textblock
32610 #: ../src/guestfs.pod:205
32611 msgid ""
32612 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32613 "the file called C<\"etc/passwd\"> then you could do:"
32614 msgstr ""
32615
32616 #. type: verbatim
32617 #: ../src/guestfs.pod:208
32618 #, no-wrap
32619 msgid ""
32620 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32621 "\n"
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs.pod:210
32626 msgid ""
32627 "This would return C<data> as a newly allocated buffer containing the full "
32628 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32629 "or C<NULL> if there was an error."
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs.pod:214
32634 msgid ""
32635 "As another example, to create a top-level directory on that filesystem "
32636 "called C<\"var\"> you would do:"
32637 msgstr ""
32638
32639 #. type: verbatim
32640 #: ../src/guestfs.pod:217
32641 #, no-wrap
32642 msgid ""
32643 " guestfs_mkdir (g, \"/var\");\n"
32644 "\n"
32645 msgstr ""
32646
32647 #. type: textblock
32648 #: ../src/guestfs.pod:219
32649 msgid "To create a symlink you could do:"
32650 msgstr ""
32651
32652 #. type: verbatim
32653 #: ../src/guestfs.pod:221
32654 #, no-wrap
32655 msgid ""
32656 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32657 "               \"/etc/rc3.d/S30portmap\");\n"
32658 "\n"
32659 msgstr ""
32660
32661 #. type: textblock
32662 #: ../src/guestfs.pod:224
32663 msgid ""
32664 "Libguestfs will reject attempts to use relative paths and there is no "
32665 "concept of a current working directory."
32666 msgstr ""
32667
32668 #. type: textblock
32669 #: ../src/guestfs.pod:227
32670 msgid ""
32671 "Libguestfs can return errors in many situations: for example if the "
32672 "filesystem isn't writable, or if a file or directory that you requested "
32673 "doesn't exist.  If you are using the C API (documented here)  you have to "
32674 "check for those error conditions after each call.  (Other language bindings "
32675 "turn these errors into exceptions)."
32676 msgstr ""
32677
32678 #. type: textblock
32679 #: ../src/guestfs.pod:233
32680 msgid ""
32681 "File writes are affected by the per-handle umask, set by calling L</"
32682 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32683 msgstr ""
32684
32685 #. type: =head2
32686 #: ../src/guestfs.pod:236
32687 msgid "PARTITIONING"
32688 msgstr ""
32689
32690 #. type: textblock
32691 #: ../src/guestfs.pod:238
32692 msgid ""
32693 "Libguestfs contains API calls to read, create and modify partition tables on "
32694 "disk images."
32695 msgstr ""
32696
32697 #. type: textblock
32698 #: ../src/guestfs.pod:241
32699 msgid ""
32700 "In the common case where you want to create a single partition covering the "
32701 "whole disk, you should use the L</guestfs_part_disk> call:"
32702 msgstr ""
32703
32704 #. type: verbatim
32705 #: ../src/guestfs.pod:245
32706 #, no-wrap
32707 msgid ""
32708 " const char *parttype = \"mbr\";\n"
32709 " if (disk_is_larger_than_2TB)\n"
32710 "   parttype = \"gpt\";\n"
32711 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32712 "\n"
32713 msgstr ""
32714
32715 #. type: textblock
32716 #: ../src/guestfs.pod:250
32717 msgid ""
32718 "Obviously this effectively wipes anything that was on that disk image before."
32719 msgstr ""
32720
32721 #. type: =head2
32722 #: ../src/guestfs.pod:253
32723 msgid "LVM2"
32724 msgstr ""
32725
32726 #. type: textblock
32727 #: ../src/guestfs.pod:255
32728 msgid ""
32729 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32730 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32731 "you familiarize yourself with the concepts of physical volumes, volume "
32732 "groups and logical volumes."
32733 msgstr ""
32734
32735 #. type: textblock
32736 #: ../src/guestfs.pod:260
32737 msgid ""
32738 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32739 "tldp.org/HOWTO/LVM-HOWTO/>."
32740 msgstr ""
32741
32742 #. type: =head2
32743 #: ../src/guestfs.pod:263
32744 msgid "DOWNLOADING"
32745 msgstr ""
32746
32747 #. type: textblock
32748 #: ../src/guestfs.pod:265
32749 msgid ""
32750 "Use L</guestfs_cat> to download small, text only files.  This call is "
32751 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32752 "NUL (C<\\0>) characters.  However the API is very simple to use."
32753 msgstr ""
32754
32755 #. type: textblock
32756 #: ../src/guestfs.pod:269
32757 msgid ""
32758 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32759 "bit data, since it returns a (pointer, size) pair.  However it is still "
32760 "limited to \"small\" files, less than 2 MB."
32761 msgstr ""
32762
32763 #. type: textblock
32764 #: ../src/guestfs.pod:273
32765 msgid ""
32766 "L</guestfs_download> can be used to download any file, with no limits on "
32767 "content or size (even files larger than 4 GB)."
32768 msgstr ""
32769
32770 #. type: textblock
32771 #: ../src/guestfs.pod:276
32772 msgid ""
32773 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32774 msgstr ""
32775
32776 #. type: =head2
32777 #: ../src/guestfs.pod:279
32778 msgid "UPLOADING"
32779 msgstr ""
32780
32781 #. type: textblock
32782 #: ../src/guestfs.pod:281
32783 msgid ""
32784 "It's often the case that you want to write a file or files to the disk image."
32785 msgstr ""
32786
32787 #. type: textblock
32788 #: ../src/guestfs.pod:284
32789 msgid ""
32790 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32791 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32792 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32793 "of other functions for creating test files, for example L</guestfs_fill> and "
32794 "L</guestfs_fill_pattern>."
32795 msgstr ""
32796
32797 #. type: textblock
32798 #: ../src/guestfs.pod:290
32799 msgid ""
32800 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32801 "file content or size (even files larger than 4 GB)."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:293
32806 msgid ""
32807 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32808 msgstr ""
32809
32810 #. type: textblock
32811 #: ../src/guestfs.pod:295
32812 msgid ""
32813 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32814 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32815 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32816 "in a predictable way (eg. adding it last after all other drives) then you "
32817 "can get the device name from L</guestfs_list_devices> and mount it directly "
32818 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32819 "portable between kernel versions, and they don't support labels or UUIDs.  "
32820 "If you want to pre-build an image or you need to mount it using a label or "
32821 "UUID, use an ISO image instead."
32822 msgstr ""
32823
32824 #. type: =head2
32825 #: ../src/guestfs.pod:306
32826 msgid "COPYING"
32827 msgstr ""
32828
32829 #. type: textblock
32830 #: ../src/guestfs.pod:308
32831 msgid ""
32832 "There are various different commands for copying between files and devices "
32833 "and in and out of the guest filesystem.  These are summarised in the table "
32834 "below."
32835 msgstr ""
32836
32837 #. type: =item
32838 #: ../src/guestfs.pod:314
32839 msgid "B<file> to B<file>"
32840 msgstr ""
32841
32842 #. type: textblock
32843 #: ../src/guestfs.pod:316
32844 msgid ""
32845 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32846 "directories recursively."
32847 msgstr ""
32848
32849 #. type: =item
32850 #: ../src/guestfs.pod:319
32851 msgid "B<file or device> to B<file or device>"
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs.pod:321
32856 msgid ""
32857 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32858 "devices in the guest."
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs.pod:324
32863 msgid "Example: duplicate the contents of an LV:"
32864 msgstr ""
32865
32866 #. type: verbatim
32867 #: ../src/guestfs.pod:326
32868 #, no-wrap
32869 msgid ""
32870 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32871 "\n"
32872 msgstr ""
32873
32874 #. type: textblock
32875 #: ../src/guestfs.pod:328
32876 msgid ""
32877 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32878 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
32879 "guestfs_copy_size>."
32880 msgstr ""
32881
32882 #. type: =item
32883 #: ../src/guestfs.pod:332
32884 msgid "B<file on the host> to B<file or device>"
32885 msgstr ""
32886
32887 #. type: textblock
32888 #: ../src/guestfs.pod:334
32889 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
32890 msgstr ""
32891
32892 #. type: =item
32893 #: ../src/guestfs.pod:336
32894 msgid "B<file or device> to B<file on the host>"
32895 msgstr ""
32896
32897 #. type: textblock
32898 #: ../src/guestfs.pod:338
32899 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
32900 msgstr ""
32901
32902 #. type: =head2
32903 #: ../src/guestfs.pod:342
32904 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
32905 msgstr ""
32906
32907 #. type: textblock
32908 #: ../src/guestfs.pod:344
32909 msgid ""
32910 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
32911 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
32912 "appears you can only upload and download to files.  However many Un*x-like "
32913 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
32914 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
32915 "and arbitrary file descriptor N."
32916 msgstr ""
32917
32918 #. type: textblock
32919 #: ../src/guestfs.pod:352
32920 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
32921 msgstr ""
32922
32923 #. type: verbatim
32924 #: ../src/guestfs.pod:355
32925 #, no-wrap
32926 msgid ""
32927 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32928 "\n"
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs.pod:357
32933 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
32934 msgstr ""
32935
32936 #. type: verbatim
32937 #: ../src/guestfs.pod:359
32938 #, no-wrap
32939 msgid ""
32940 " char devfd[64];\n"
32941 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
32942 " guestfs_tar_out (g, \"/\", devfd);\n"
32943 "\n"
32944 msgstr ""
32945
32946 #. type: =head2
32947 #: ../src/guestfs.pod:363
32948 msgid "LISTING FILES"
32949 msgstr ""
32950
32951 #. type: textblock
32952 #: ../src/guestfs.pod:365
32953 msgid ""
32954 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
32955 "L<guestfish(1)>-equivalent command C<ll>)."
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs.pod:368
32960 msgid ""
32961 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
32962 "programs, as a flat list of strings."
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs.pod:371
32967 msgid ""
32968 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
32969 "directory, plus additional information about each one.  It is more "
32970 "equivalent to using the L<readdir(3)> call on a local filesystem."
32971 msgstr ""
32972
32973 #. type: textblock
32974 #: ../src/guestfs.pod:375
32975 msgid ""
32976 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
32977 msgstr ""
32978
32979 #. type: =head2
32980 #: ../src/guestfs.pod:378
32981 msgid "RUNNING COMMANDS"
32982 msgstr ""
32983
32984 #. type: textblock
32985 #: ../src/guestfs.pod:380
32986 msgid ""
32987 "Although libguestfs is primarily an API for manipulating files inside guest "
32988 "images, we also provide some limited facilities for running commands inside "
32989 "guests."
32990 msgstr ""
32991
32992 #. type: textblock
32993 #: ../src/guestfs.pod:384
32994 msgid "There are many limitations to this:"
32995 msgstr ""
32996
32997 #. type: textblock
32998 #: ../src/guestfs.pod:390
32999 msgid ""
33000 "The kernel version that the command runs under will be different from what "
33001 "it expects."
33002 msgstr ""
33003
33004 #. type: textblock
33005 #: ../src/guestfs.pod:395
33006 msgid ""
33007 "If the command needs to communicate with daemons, then most likely they "
33008 "won't be running."
33009 msgstr ""
33010
33011 #. type: textblock
33012 #: ../src/guestfs.pod:400
33013 msgid "The command will be running in limited memory."
33014 msgstr ""
33015
33016 #. type: textblock
33017 #: ../src/guestfs.pod:404
33018 msgid ""
33019 "The network may not be available unless you enable it (see L</"
33020 "guestfs_set_network>)."
33021 msgstr ""
33022
33023 #. type: textblock
33024 #: ../src/guestfs.pod:409
33025 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33026 msgstr ""
33027
33028 #. type: textblock
33029 #: ../src/guestfs.pod:413
33030 msgid ""
33031 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33032 msgstr ""
33033
33034 #. type: textblock
33035 #: ../src/guestfs.pod:418
33036 msgid ""
33037 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33038 "See L</SELINUX> in this manpage."
33039 msgstr ""
33040
33041 #. type: textblock
33042 #: ../src/guestfs.pod:423
33043 msgid ""
33044 "I<Security:> It is not safe to run commands from untrusted, possibly "
33045 "malicious guests.  These commands may attempt to exploit your program by "
33046 "sending unexpected output.  They could also try to exploit the Linux kernel "
33047 "or qemu provided by the libguestfs appliance.  They could use the network "
33048 "provided by the libguestfs appliance to bypass ordinary network partitions "
33049 "and firewalls.  They could use the elevated privileges or different SELinux "
33050 "context of your program to their advantage."
33051 msgstr ""
33052
33053 #. type: textblock
33054 #: ../src/guestfs.pod:432
33055 msgid ""
33056 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33057 "(a script which runs when the guest next boots normally), and to have this "
33058 "script run the commands you want in the normal context of the running guest, "
33059 "network security and so on.  For information about other security issues, "
33060 "see L</SECURITY>."
33061 msgstr ""
33062
33063 #. type: textblock
33064 #: ../src/guestfs.pod:440
33065 msgid ""
33066 "The two main API calls to run commands are L</guestfs_command> and L</"
33067 "guestfs_sh> (there are also variations)."
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs.pod:443
33072 msgid ""
33073 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33074 "shell globs, redirections, etc will work."
33075 msgstr ""
33076
33077 #. type: =head2
33078 #: ../src/guestfs.pod:446
33079 msgid "CONFIGURATION FILES"
33080 msgstr ""
33081
33082 #. type: textblock
33083 #: ../src/guestfs.pod:448
33084 msgid ""
33085 "To read and write configuration files in Linux guest filesystems, we "
33086 "strongly recommend using Augeas.  For example, Augeas understands how to "
33087 "read and write, say, a Linux shadow password file or X.org configuration "
33088 "file, and so avoids you having to write that code."
33089 msgstr ""
33090
33091 #. type: textblock
33092 #: ../src/guestfs.pod:453
33093 msgid ""
33094 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33095 "document Augeas itself here because there is excellent documentation on the "
33096 "L<http://augeas.net/> website."
33097 msgstr ""
33098
33099 #. type: textblock
33100 #: ../src/guestfs.pod:457
33101 msgid ""
33102 "If you don't want to use Augeas (you fool!) then try calling L</"
33103 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33104 "over."
33105 msgstr ""
33106
33107 #. type: =head2
33108 #: ../src/guestfs.pod:461
33109 msgid "SELINUX"
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs.pod:463
33114 msgid ""
33115 "We support SELinux guests.  To ensure that labeling happens correctly in "
33116 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33117 msgstr ""
33118
33119 #. type: textblock
33120 #: ../src/guestfs.pod:471
33121 msgid "Before launching, do:"
33122 msgstr ""
33123
33124 #. type: verbatim
33125 #: ../src/guestfs.pod:473
33126 #, no-wrap
33127 msgid ""
33128 " guestfs_set_selinux (g, 1);\n"
33129 "\n"
33130 msgstr ""
33131
33132 #. type: textblock
33133 #: ../src/guestfs.pod:477
33134 msgid ""
33135 "After mounting the guest's filesystem(s), load the policy.  This is best "
33136 "done by running the L<load_policy(8)> command in the guest itself:"
33137 msgstr ""
33138
33139 #. type: verbatim
33140 #: ../src/guestfs.pod:481
33141 #, no-wrap
33142 msgid ""
33143 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33144 "\n"
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs.pod:483
33149 msgid ""
33150 "(Older versions of C<load_policy> require you to specify the name of the "
33151 "policy file)."
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:488
33156 msgid ""
33157 "Optionally, set the security context for the API.  The correct security "
33158 "context to use can only be known by inspecting the guest.  As an example:"
33159 msgstr ""
33160
33161 #. type: verbatim
33162 #: ../src/guestfs.pod:492
33163 #, no-wrap
33164 msgid ""
33165 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33166 "\n"
33167 msgstr ""
33168
33169 #. type: textblock
33170 #: ../src/guestfs.pod:496
33171 msgid "This will work for running commands and editing existing files."
33172 msgstr ""
33173
33174 #. type: textblock
33175 #: ../src/guestfs.pod:498
33176 msgid ""
33177 "When new files are created, you may need to label them explicitly, for "
33178 "example by running the external command C<restorecon pathname>."
33179 msgstr ""
33180
33181 #. type: =head2
33182 #: ../src/guestfs.pod:502
33183 msgid "UMASK"
33184 msgstr ""
33185
33186 #. type: textblock
33187 #: ../src/guestfs.pod:504
33188 msgid ""
33189 "Certain calls are affected by the current file mode creation mask (the "
33190 "\"umask\").  In particular ones which create files or directories, such as "
33191 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33192 "either the default mode that the file is created with or modifies the mode "
33193 "that you supply."
33194 msgstr ""
33195
33196 #. type: textblock
33197 #: ../src/guestfs.pod:510
33198 msgid ""
33199 "The default umask is C<022>, so files are created with modes such as C<0644> "
33200 "and directories with C<0755>."
33201 msgstr ""
33202
33203 #. type: textblock
33204 #: ../src/guestfs.pod:513
33205 msgid ""
33206 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33207 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33208 "guestfs_chmod> after creating each file or directory."
33209 msgstr ""
33210
33211 #. type: textblock
33212 #: ../src/guestfs.pod:517
33213 msgid "For more information about umask, see L<umask(2)>."
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs.pod:521
33218 msgid ""
33219 "Libguestfs allows you to access Linux guests which have been encrypted using "
33220 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33221 "standard.  This includes nearly all whole disk encryption systems used by "
33222 "modern Linux guests."
33223 msgstr ""
33224
33225 #. type: textblock
33226 #: ../src/guestfs.pod:527
33227 msgid ""
33228 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33229 "returns the string C<crypto_LUKS>)."
33230 msgstr ""
33231
33232 #. type: textblock
33233 #: ../src/guestfs.pod:530
33234 msgid ""
33235 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33236 "will require the passphrase!"
33237 msgstr ""
33238
33239 #. type: textblock
33240 #: ../src/guestfs.pod:533
33241 msgid ""
33242 "Opening a LUKS device creates a new device mapper device called C</dev/"
33243 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33244 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33245 "from and encrypted to the underlying block device respectively."
33246 msgstr ""
33247
33248 #. type: textblock
33249 #: ../src/guestfs.pod:539
33250 msgid ""
33251 "LVM volume groups on the device can be made visible by calling L</"
33252 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33253 "(s) can now be mounted in the usual way."
33254 msgstr ""
33255
33256 #. type: textblock
33257 #: ../src/guestfs.pod:543
33258 msgid ""
33259 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33260 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33261 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33262 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33263 "underlying encrypted block device)."
33264 msgstr ""
33265
33266 #. type: =head2
33267 #: ../src/guestfs.pod:550
33268 msgid "INSPECTION"
33269 msgstr ""
33270
33271 #. type: textblock
33272 #: ../src/guestfs.pod:552
33273 msgid ""
33274 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33275 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33276 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33277 "version 1.5.3 the most frequently used part of this library has been "
33278 "rewritten in C and moved into the core code)."
33279 msgstr ""
33280
33281 #. type: textblock
33282 #: ../src/guestfs.pod:559
33283 msgid ""
33284 "Add all disks belonging to the unknown virtual machine and call L</"
33285 "guestfs_launch> in the usual way."
33286 msgstr ""
33287
33288 #. type: textblock
33289 #: ../src/guestfs.pod:562
33290 msgid ""
33291 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33292 "and certain heuristics, and returns a list of operating systems that were "
33293 "found.  An empty list means none were found.  A single element is the root "
33294 "filesystem of the operating system.  For dual- or multi-boot guests, "
33295 "multiple roots can be returned, each one corresponding to a separate "
33296 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33297 "world of virtualization, but since this scenario can happen, we have built "
33298 "libguestfs to deal with it.)"
33299 msgstr ""
33300
33301 #. type: textblock
33302 #: ../src/guestfs.pod:571
33303 msgid ""
33304 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33305 "to get additional details about that operating system.  For example, call L</"
33306 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33307 "Windows and Linux-based operating systems respectively."
33308 msgstr ""
33309
33310 #. type: textblock
33311 #: ../src/guestfs.pod:577
33312 msgid ""
33313 "Un*x-like and Linux-based operating systems usually consist of several "
33314 "filesystems which are mounted at boot time (for example, a separate boot "
33315 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33316 "filesystems correspond to mount points.  Call "
33317 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33318 "hash table like this example:"
33319 msgstr ""
33320
33321 #. type: verbatim
33322 #: ../src/guestfs.pod:584
33323 #, no-wrap
33324 msgid ""
33325 " /boot => /dev/sda1\n"
33326 " /     => /dev/vg_guest/lv_root\n"
33327 " /usr  => /dev/vg_guest/lv_usr\n"
33328 "\n"
33329 msgstr ""
33330
33331 #. type: textblock
33332 #: ../src/guestfs.pod:588
33333 msgid ""
33334 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33335 "filesystems as suggested."
33336 msgstr ""
33337
33338 #. type: textblock
33339 #: ../src/guestfs.pod:591
33340 msgid ""
33341 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33342 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33343 msgstr ""
33344
33345 #. type: textblock
33346 #: ../src/guestfs.pod:595
33347 msgid ""
33348 "Inspection currently only works for some common operating systems.  "
33349 "Contributors are welcome to send patches for other operating systems that we "
33350 "currently cannot detect."
33351 msgstr ""
33352
33353 #. type: textblock
33354 #: ../src/guestfs.pod:599
33355 msgid ""
33356 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33357 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33358 "encrypted devices."
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:603
33363 msgid ""
33364 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33365 "inspection and caches the results in the guest handle.  Subsequent calls to "
33366 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33367 "read the disks.  If you change the content of the guest disks, you can redo "
33368 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33369 "guestfs_inspect_list_applications> works a little differently from the other "
33370 "calls and does read the disks.  See documentation for that function for "
33371 "details)."
33372 msgstr ""
33373
33374 #. type: =head3
33375 #: ../src/guestfs.pod:612
33376 msgid "INSPECTING INSTALL DISKS"
33377 msgstr ""
33378
33379 #. type: textblock
33380 #: ../src/guestfs.pod:614
33381 msgid ""
33382 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33383 "CDs and more."
33384 msgstr ""
33385
33386 #. type: textblock
33387 #: ../src/guestfs.pod:617
33388 msgid ""
33389 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33390 "system, which currently can be C<installed> (a regular operating system) or "
33391 "C<installer> (some sort of install disk)."
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs.pod:621
33396 msgid ""
33397 "Further information is available about the operating system that can be "
33398 "installed using the regular inspection APIs like L</"
33399 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33400 msgstr ""
33401
33402 #. type: textblock
33403 #: ../src/guestfs.pod:626
33404 msgid ""
33405 "Some additional information specific to installer disks is also available "
33406 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33407 "guestfs_inspect_is_multipart> calls."
33408 msgstr ""
33409
33410 #. type: =head2
33411 #: ../src/guestfs.pod:631
33412 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33413 msgstr ""
33414
33415 #. type: textblock
33416 #: ../src/guestfs.pod:633
33417 msgid ""
33418 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33419 "ntfs-3g.org/> driver."
33420 msgstr ""
33421
33422 #. type: =head3
33423 #: ../src/guestfs.pod:636
33424 msgid "DRIVE LETTERS AND PATHS"
33425 msgstr ""
33426
33427 #. type: textblock
33428 #: ../src/guestfs.pod:638
33429 msgid ""
33430 "DOS and Windows still use drive letters, and the filesystems are always "
33431 "treated as case insensitive by Windows itself, and therefore you might find "
33432 "a Windows configuration file referring to a path like C<c:\\windows"
33433 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33434 "might be referred to as C</WINDOWS/System32>."
33435 msgstr ""
33436
33437 #. type: textblock
33438 #: ../src/guestfs.pod:644
33439 msgid ""
33440 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33441 "L</guestfs_inspect_get_drive_mappings>)"
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:647
33446 msgid ""
33447 "Dealing with separator characters (backslash vs forward slash) is outside "
33448 "the scope of libguestfs, but usually a simple character replacement will "
33449 "work."
33450 msgstr ""
33451
33452 #. type: textblock
33453 #: ../src/guestfs.pod:651
33454 msgid ""
33455 "To resolve the case insensitivity of paths, call L</"
33456 "guestfs_case_sensitive_path>."
33457 msgstr ""
33458
33459 #. type: =head3
33460 #: ../src/guestfs.pod:654
33461 msgid "ACCESSING THE WINDOWS REGISTRY"
33462 msgstr ""
33463
33464 #. type: textblock
33465 #: ../src/guestfs.pod:656
33466 msgid ""
33467 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33468 "files, through the library C<hivex> which is part of the libguestfs project "
33469 "although ships as a separate tarball.  You have to locate and download the "
33470 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33471 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33472 "reg(1)> for more help on this issue."
33473 msgstr ""
33474
33475 #. type: =head3
33476 #: ../src/guestfs.pod:664
33477 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:666
33482 msgid ""
33483 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33484 "provide something which looks like a Linux symlink.  The way it tries to do "
33485 "the rewriting is described here:"
33486 msgstr ""
33487
33488 #. type: textblock
33489 #: ../src/guestfs.pod:670
33490 msgid ""
33491 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33492 "symbolic-links/>"
33493 msgstr ""
33494
33495 #. type: textblock
33496 #: ../src/guestfs.pod:672
33497 msgid ""
33498 "The essential problem is that ntfs-3g simply does not have enough "
33499 "information to do a correct job.  NTFS links can contain drive letters and "
33500 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33501 "It is almost certainly the case that libguestfs callers should ignore what "
33502 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33503 msgstr ""
33504
33505 #. type: textblock
33506 #: ../src/guestfs.pod:679
33507 msgid ""
33508 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33509 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33510 "attribute, and read the raw reparse data from that (you can find the format "
33511 "documented in various places around the web)."
33512 msgstr ""
33513
33514 #. type: =head3
33515 #: ../src/guestfs.pod:684
33516 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33517 msgstr ""
33518
33519 #. type: textblock
33520 #: ../src/guestfs.pod:686
33521 msgid ""
33522 "There are other useful extended attributes that can be read from ntfs-3g "
33523 "filesystems (using L</guestfs_getxattr>).  See:"
33524 msgstr ""
33525
33526 #. type: textblock
33527 #: ../src/guestfs.pod:689
33528 msgid ""
33529 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33530 msgstr ""
33531
33532 #. type: =head2
33533 #: ../src/guestfs.pod:691
33534 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:693
33539 msgid ""
33540 "Although we don't want to discourage you from using the C API, we will "
33541 "mention here that the same API is also available in other languages."
33542 msgstr ""
33543
33544 #. type: textblock
33545 #: ../src/guestfs.pod:696
33546 msgid ""
33547 "The API is broadly identical in all supported languages.  This means that "
33548 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33549 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33550 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33551 "each language."
33552 msgstr ""
33553
33554 #. type: textblock
33555 #: ../src/guestfs.pod:702
33556 msgid ""
33557 "Error messages are automatically transformed into exceptions if the language "
33558 "supports it."
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs.pod:705
33563 msgid ""
33564 "We don't try to \"object orientify\" parts of the API in OO languages, "
33565 "although contributors are welcome to write higher level APIs above what we "
33566 "provide in their favourite languages if they wish."
33567 msgstr ""
33568
33569 #. type: =item
33570 #: ../src/guestfs.pod:711
33571 msgid "B<C++>"
33572 msgstr ""
33573
33574 #. type: textblock
33575 #: ../src/guestfs.pod:713
33576 msgid ""
33577 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33578 "identical to the C API.  C++ classes and exceptions are not used."
33579 msgstr ""
33580
33581 #. type: =item
33582 #: ../src/guestfs.pod:717
33583 msgid "B<C#>"
33584 msgstr ""
33585
33586 #. type: textblock
33587 #: ../src/guestfs.pod:719
33588 msgid ""
33589 "The C# bindings are highly experimental.  Please read the warnings at the "
33590 "top of C<csharp/Libguestfs.cs>."
33591 msgstr ""
33592
33593 #. type: =item
33594 #: ../src/guestfs.pod:722
33595 msgid "B<Erlang>"
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs.pod:724
33600 msgid "See L<guestfs-erlang(3)>."
33601 msgstr ""
33602
33603 #. type: =item
33604 #: ../src/guestfs.pod:726
33605 msgid "B<Haskell>"
33606 msgstr ""
33607
33608 #. type: textblock
33609 #: ../src/guestfs.pod:728
33610 msgid ""
33611 "This is the only language binding that is working but incomplete.  Only "
33612 "calls which return simple integers have been bound in Haskell, and we are "
33613 "looking for help to complete this binding."
33614 msgstr ""
33615
33616 #. type: =item
33617 #: ../src/guestfs.pod:732
33618 msgid "B<Java>"
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs.pod:734
33623 msgid ""
33624 "Full documentation is contained in the Javadoc which is distributed with "
33625 "libguestfs.  For examples, see L<guestfs-java(3)>."
33626 msgstr ""
33627
33628 #. type: =item
33629 #: ../src/guestfs.pod:737
33630 msgid "B<OCaml>"
33631 msgstr ""
33632
33633 #. type: textblock
33634 #: ../src/guestfs.pod:739
33635 msgid "See L<guestfs-ocaml(3)>."
33636 msgstr ""
33637
33638 #. type: =item
33639 #: ../src/guestfs.pod:741
33640 msgid "B<Perl>"
33641 msgstr ""
33642
33643 #. type: textblock
33644 #: ../src/guestfs.pod:743
33645 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33646 msgstr ""
33647
33648 #. type: =item
33649 #: ../src/guestfs.pod:745
33650 msgid "B<PHP>"
33651 msgstr ""
33652
33653 #. type: textblock
33654 #: ../src/guestfs.pod:747
33655 msgid ""
33656 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33657 "the php-libguestfs package for your distribution."
33658 msgstr ""
33659
33660 #. type: textblock
33661 #: ../src/guestfs.pod:750
33662 msgid "The PHP binding only works correctly on 64 bit machines."
33663 msgstr ""
33664
33665 #. type: =item
33666 #: ../src/guestfs.pod:752
33667 msgid "B<Python>"
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:754
33672 msgid "See L<guestfs-python(3)>."
33673 msgstr ""
33674
33675 #. type: =item
33676 #: ../src/guestfs.pod:756
33677 msgid "B<Ruby>"
33678 msgstr ""
33679
33680 #. type: textblock
33681 #: ../src/guestfs.pod:758
33682 msgid "See L<guestfs-ruby(3)>."
33683 msgstr ""
33684
33685 #. type: =item
33686 #: ../src/guestfs.pod:760
33687 msgid "B<shell scripts>"
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs.pod:762
33692 msgid "See L<guestfish(1)>."
33693 msgstr ""
33694
33695 #. type: =head2
33696 #: ../src/guestfs.pod:766
33697 msgid "LIBGUESTFS GOTCHAS"
33698 msgstr ""
33699
33700 #. type: textblock
33701 #: ../src/guestfs.pod:768
33702 msgid ""
33703 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33704 "system [...] that works in the way it is documented but is counterintuitive "
33705 "and almost invites mistakes.\""
33706 msgstr ""
33707
33708 #. type: textblock
33709 #: ../src/guestfs.pod:772
33710 msgid ""
33711 "Since we developed libguestfs and the associated tools, there are several "
33712 "things we would have designed differently, but are now stuck with for "
33713 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33714 "release, you can expect these to change.  Beware of them."
33715 msgstr ""
33716
33717 #. type: =item
33718 #: ../src/guestfs.pod:780
33719 msgid "Autosync / forgetting to sync."
33720 msgstr ""
33721
33722 #. type: textblock
33723 #: ../src/guestfs.pod:782
33724 msgid ""
33725 "I<Update:> Autosync is enabled by default for all API users starting from "
33726 "libguestfs 1.5.24.  This section only applies to older versions."
33727 msgstr ""
33728
33729 #. type: textblock
33730 #: ../src/guestfs.pod:785
33731 msgid ""
33732 "When modifying a filesystem from C or another language, you B<must> unmount "
33733 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33734 "libguestfs handle.  You can also call:"
33735 msgstr ""
33736
33737 #. type: verbatim
33738 #: ../src/guestfs.pod:789
33739 #, no-wrap
33740 msgid ""
33741 " guestfs_set_autosync (g, 1);\n"
33742 "\n"
33743 msgstr ""
33744
33745 #. type: textblock
33746 #: ../src/guestfs.pod:791
33747 msgid ""
33748 "to have the unmount/sync done automatically for you when the handle 'g' is "
33749 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../src/guestfs.pod:795
33754 msgid ""
33755 "If you forget to do this, then it is entirely possible that your changes "
33756 "won't be written out, or will be partially written, or (very rarely) that "
33757 "you'll get disk corruption."
33758 msgstr ""
33759
33760 #. type: textblock
33761 #: ../src/guestfs.pod:799
33762 msgid ""
33763 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33764 "guestfish scripts that forget to sync will work just fine, which can make "
33765 "this very puzzling if you are trying to debug a problem."
33766 msgstr ""
33767
33768 #. type: =item
33769 #: ../src/guestfs.pod:803
33770 msgid "Mount option C<-o sync> should not be the default."
33771 msgstr ""
33772
33773 #. type: textblock
33774 #: ../src/guestfs.pod:805
33775 msgid ""
33776 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
33777 "libguestfs 1.13.16.  This section only applies to older versions."
33778 msgstr ""
33779
33780 #. type: textblock
33781 #: ../src/guestfs.pod:808
33782 msgid ""
33783 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33784 "However C<-o sync> does not add any reliability benefit, but does have a "
33785 "very large performance impact."
33786 msgstr ""
33787
33788 #. type: textblock
33789 #: ../src/guestfs.pod:812
33790 msgid ""
33791 "The work around is to use L</guestfs_mount_options> and set the mount "
33792 "options that you actually want to use."
33793 msgstr ""
33794
33795 #. type: =item
33796 #: ../src/guestfs.pod:815
33797 msgid "Read-only should be the default."
33798 msgstr ""
33799
33800 #. type: textblock
33801 #: ../src/guestfs.pod:817
33802 msgid ""
33803 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33804 "specify I<--rw> if you want to make changes to the image."
33805 msgstr ""
33806
33807 #. type: textblock
33808 #: ../src/guestfs.pod:820
33809 msgid "This would reduce the potential to corrupt live VM images."
33810 msgstr ""
33811
33812 #. type: textblock
33813 #: ../src/guestfs.pod:822
33814 msgid ""
33815 "Note that many filesystems change the disk when you just mount and unmount, "
33816 "even if you didn't perform any writes.  You need to use L</"
33817 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
33818 msgstr ""
33819
33820 #. type: =item
33821 #: ../src/guestfs.pod:826
33822 msgid "guestfish command line is hard to use."
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs.pod:828
33827 msgid ""
33828 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33829 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33830 "exist, so it fails.  In earlier versions of guestfish the error message was "
33831 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33832 "we should have used C<guestfish -c command> to run commands."
33833 msgstr ""
33834
33835 #. type: =item
33836 #: ../src/guestfs.pod:835
33837 msgid "guestfish megabyte modifiers don't work right on all commands"
33838 msgstr ""
33839
33840 #. type: textblock
33841 #: ../src/guestfs.pod:837
33842 msgid ""
33843 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33844 "other modifiers).  What guestfish actually does is to multiply the number "
33845 "part by the modifier part and pass the result to the C API.  However this "
33846 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33847 "expecting some other unit (eg. megabytes)."
33848 msgstr ""
33849
33850 #. type: textblock
33851 #: ../src/guestfs.pod:844
33852 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33853 msgstr ""
33854
33855 #. type: verbatim
33856 #: ../src/guestfs.pod:846
33857 #, no-wrap
33858 msgid ""
33859 " lvcreate LV VG 100M\n"
33860 "\n"
33861 msgstr ""
33862
33863 #. type: textblock
33864 #: ../src/guestfs.pod:848
33865 msgid ""
33866 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33867 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33868 "megabytes * megabytes) logical volume.  The error message you get from this "
33869 "is also a little obscure."
33870 msgstr ""
33871
33872 #. type: textblock
33873 #: ../src/guestfs.pod:853
33874 msgid ""
33875 "This could be fixed in the generator by specially marking parameters and "
33876 "return values which take bytes or other units."
33877 msgstr ""
33878
33879 #. type: =item
33880 #: ../src/guestfs.pod:856
33881 msgid "Ambiguity between devices and paths"
33882 msgstr ""
33883
33884 #. type: textblock
33885 #: ../src/guestfs.pod:858
33886 msgid ""
33887 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
33888 "sdb2>) and a similar pathname.  A file might just happen to be called "
33889 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
33890 msgstr ""
33891
33892 #. type: textblock
33893 #: ../src/guestfs.pod:863
33894 msgid ""
33895 "In the current API we usually resolve this ambiguity by having two separate "
33896 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
33897 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
33898 "detecting if the path supplied begins with C</dev/>."
33899 msgstr ""
33900
33901 #. type: textblock
33902 #: ../src/guestfs.pod:869
33903 msgid ""
33904 "To avoid both the ambiguity and the need to duplicate some calls, we could "
33905 "make paths/devices into structured names.  One way to do this would be to "
33906 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
33907 "aspect of grub.  Another way would be to use a structured type, equivalent "
33908 "to this OCaml type:"
33909 msgstr ""
33910
33911 #. type: verbatim
33912 #: ../src/guestfs.pod:875
33913 #, no-wrap
33914 msgid ""
33915 " type path = Path of string | Device of int | Partition of int * int\n"
33916 "\n"
33917 msgstr ""
33918
33919 #. type: textblock
33920 #: ../src/guestfs.pod:877
33921 msgid "which would allow you to pass arguments like:"
33922 msgstr ""
33923
33924 #. type: verbatim
33925 #: ../src/guestfs.pod:879
33926 #, no-wrap
33927 msgid ""
33928 " Path \"/foo/bar\"\n"
33929 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
33930 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
33931 " Path \"/dev/sdb2\"    (* not a device *)\n"
33932 "\n"
33933 msgstr ""
33934
33935 #. type: textblock
33936 #: ../src/guestfs.pod:884
33937 msgid ""
33938 "As you can see there are still problems to resolve even with this "
33939 "representation.  Also consider how it might work in guestfish."
33940 msgstr ""
33941
33942 #. type: =head2
33943 #: ../src/guestfs.pod:889
33944 msgid "KEYS AND PASSPHRASES"
33945 msgstr ""
33946
33947 #. type: textblock
33948 #: ../src/guestfs.pod:891
33949 msgid ""
33950 "Certain libguestfs calls take a parameter that contains sensitive key "
33951 "material, passed in as a C string."
33952 msgstr ""
33953
33954 #. type: textblock
33955 #: ../src/guestfs.pod:894
33956 msgid ""
33957 "In the future we would hope to change the libguestfs implementation so that "
33958 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
33959 "swap.  However this is I<not> done at the moment, because of the complexity "
33960 "of such an implementation."
33961 msgstr ""
33962
33963 #. type: textblock
33964 #: ../src/guestfs.pod:899
33965 msgid ""
33966 "Therefore you should be aware that any key parameter you pass to libguestfs "
33967 "might end up being written out to the swap partition.  If this is a concern, "
33968 "scrub the swap partition or don't use libguestfs on encrypted devices."
33969 msgstr ""
33970
33971 #. type: =head2
33972 #: ../src/guestfs.pod:904
33973 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs.pod:906
33978 msgid ""
33979 "All high-level libguestfs actions are synchronous.  If you want to use "
33980 "libguestfs asynchronously then you must create a thread."
33981 msgstr ""
33982
33983 #. type: textblock
33984 #: ../src/guestfs.pod:909
33985 msgid ""
33986 "Only use the handle from a single thread.  Either use the handle exclusively "
33987 "from one thread, or provide your own mutex so that two threads cannot issue "
33988 "calls on the same handle at the same time."
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs.pod:913
33993 msgid ""
33994 "See the graphical program guestfs-browser for one possible architecture for "
33995 "multithreaded programs using libvirt and libguestfs."
33996 msgstr ""
33997
33998 #. type: =head2
33999 #: ../src/guestfs.pod:916
34000 msgid "PATH"
34001 msgstr ""
34002
34003 #. type: textblock
34004 #: ../src/guestfs.pod:918
34005 msgid ""
34006 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34007 "internal path."
34008 msgstr ""
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:921
34012 msgid ""
34013 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34014 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:924
34019 msgid ""
34020 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34021 "to change the directories that libguestfs will search in.  The value is a "
34022 "colon-separated list of paths.  The current directory is I<not> searched "
34023 "unless the path contains an empty element or C<.>.  For example "
34024 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34025 "then C</usr/lib/guestfs>."
34026 msgstr ""
34027
34028 #. type: =head2
34029 #: ../src/guestfs.pod:931
34030 msgid "QEMU WRAPPERS"
34031 msgstr ""
34032
34033 #. type: textblock
34034 #: ../src/guestfs.pod:933
34035 msgid ""
34036 "If you want to compile your own qemu, run qemu from a non-standard location, "
34037 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34038 "around qemu."
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs.pod:937
34043 msgid ""
34044 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34045 "last command in the shell script (so that qemu replaces the shell and "
34046 "becomes the direct child of the libguestfs-using program).  If you don't do "
34047 "this, then the qemu process won't be cleaned up correctly."
34048 msgstr ""
34049
34050 #. type: textblock
34051 #: ../src/guestfs.pod:942
34052 msgid ""
34053 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34054 "source:"
34055 msgstr ""
34056
34057 #. type: verbatim
34058 #: ../src/guestfs.pod:945
34059 #, no-wrap
34060 msgid ""
34061 " #!/bin/sh -\n"
34062 " qemudir=/home/rjones/d/qemu\n"
34063 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34064 "\n"
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:949
34069 msgid ""
34070 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34071 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34072 "example:"
34073 msgstr ""
34074
34075 #. type: verbatim
34076 #: ../src/guestfs.pod:953
34077 #, no-wrap
34078 msgid ""
34079 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34080 "\n"
34081 msgstr ""
34082
34083 #. type: textblock
34084 #: ../src/guestfs.pod:955
34085 msgid ""
34086 "Note that libguestfs also calls qemu with the -help and -version options in "
34087 "order to determine features."
34088 msgstr ""
34089
34090 #. type: textblock
34091 #: ../src/guestfs.pod:958
34092 msgid ""
34093 "Wrappers can also be used to edit the options passed to qemu.  In the "
34094 "following example, the C<-machine ...> option (C<-machine> and the following "
34095 "argument) are removed from the command line and replaced with C<-machine pc,"
34096 "accel=tcg>.  The while loop iterates over the options until it finds the "
34097 "right one to remove, putting the remaining options into the C<args> array."
34098 msgstr ""
34099
34100 #. type: verbatim
34101 #: ../src/guestfs.pod:965
34102 #, no-wrap
34103 msgid ""
34104 " #!/bin/bash -\n"
34105 " \n"
34106 msgstr ""
34107
34108 #. type: verbatim
34109 #: ../src/guestfs.pod:967
34110 #, no-wrap
34111 msgid ""
34112 " i=0\n"
34113 " while [ $# -gt 0 ]; do\n"
34114 "     case \"$1\" in\n"
34115 "     -machine)\n"
34116 "         shift 2;;\n"
34117 "     *)\n"
34118 "         args[i]=\"$1\"\n"
34119 "         (( i++ ))\n"
34120 "         shift ;;\n"
34121 "     esac\n"
34122 " done\n"
34123 " \n"
34124 msgstr ""
34125
34126 #. type: verbatim
34127 #: ../src/guestfs.pod:979
34128 #, no-wrap
34129 msgid ""
34130 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
34131 "\n"
34132 msgstr ""
34133
34134 #. type: =head2
34135 #: ../src/guestfs.pod:981
34136 msgid "ATTACHING TO RUNNING DAEMONS"
34137 msgstr ""
34138
34139 #. type: textblock
34140 #: ../src/guestfs.pod:983
34141 msgid ""
34142 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34143 "babies.  Use with caution."
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:986
34148 msgid ""
34149 "I<Note (2):> This section explains how to attach to a running daemon from a "
34150 "low level perspective.  For most users, simply using virt tools such as "
34151 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34152 msgstr ""
34153
34154 #. type: =head3
34155 #: ../src/guestfs.pod:990
34156 msgid "Using guestfs_set_attach_method"
34157 msgstr ""
34158
34159 #. type: textblock
34160 #: ../src/guestfs.pod:992
34161 msgid ""
34162 "By calling L</guestfs_set_attach_method> you can change how the library "
34163 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34164 "ARCHITECTURE> for some background)."
34165 msgstr ""
34166
34167 #. type: textblock
34168 #: ../src/guestfs.pod:996
34169 msgid ""
34170 "The normal attach method is C<appliance>, where a small appliance is created "
34171 "containing the daemon, and then the library connects to this."
34172 msgstr ""
34173
34174 #. type: textblock
34175 #: ../src/guestfs.pod:999
34176 msgid ""
34177 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34178 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34179 "daemon over the Unix domain socket."
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs.pod:1003
34184 msgid ""
34185 "The normal use for this is to connect to a running virtual machine that "
34186 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34187 "files inside the live virtual machine."
34188 msgstr ""
34189
34190 #. type: =head3
34191 #: ../src/guestfs.pod:1007
34192 msgid "Using guestfs_add_domain with live flag"
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:1009
34197 msgid ""
34198 "L</guestfs_add_domain> provides some help for getting the correct attach "
34199 "method.  If you pass the C<live> option to this function, then (if the "
34200 "virtual machine is running) it will examine the libvirt XML looking for a "
34201 "virtio-serial channel to connect to:"
34202 msgstr ""
34203
34204 #. type: verbatim
34205 #: ../src/guestfs.pod:1015
34206 #, no-wrap
34207 msgid ""
34208 " <domain>\n"
34209 "   ...\n"
34210 "   <devices>\n"
34211 "     ...\n"
34212 "     <channel type='unix'>\n"
34213 "       <source mode='bind' path='/path/to/socket'/>\n"
34214 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34215 "     </channel>\n"
34216 "     ...\n"
34217 "   </devices>\n"
34218 " </domain>\n"
34219 "\n"
34220 msgstr ""
34221
34222 #. type: textblock
34223 #: ../src/guestfs.pod:1027
34224 msgid ""
34225 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34226 "method to C<unix:/path/to/socket>."
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs.pod:1030
34231 msgid ""
34232 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34233 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34234 "to attach to and modify live virtual machines."
34235 msgstr ""
34236
34237 #. type: textblock
34238 #: ../src/guestfs.pod:1034
34239 msgid ""
34240 "The virtual machine needs to have been set up beforehand so that it has the "
34241 "virtio-serial channel and so that guestfsd is running inside it."
34242 msgstr ""
34243
34244 #. type: =head2
34245 #: ../src/guestfs.pod:1038
34246 msgid "ABI GUARANTEE"
34247 msgstr ""
34248
34249 #. type: textblock
34250 #: ../src/guestfs.pod:1040
34251 msgid ""
34252 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34253 "actions as outlined in this section.  Although we will deprecate some "
34254 "actions, for example if they get replaced by newer calls, we will keep the "
34255 "old actions forever.  This allows you the developer to program in confidence "
34256 "against the libguestfs API."
34257 msgstr ""
34258
34259 #. type: =head2
34260 #: ../src/guestfs.pod:1046
34261 msgid "BLOCK DEVICE NAMING"
34262 msgstr ""
34263
34264 #. type: textblock
34265 #: ../src/guestfs.pod:1048
34266 msgid ""
34267 "In the kernel there is now quite a profusion of schemata for naming block "
34268 "devices (in this context, by I<block device> I mean a physical or virtual "
34269 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34270 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34271 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34272 "for the old IDE driver (particularly for SATA devices) those devices also "
34273 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34274 "paravirtualized drivers.  This has created several different naming systems, "
34275 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34276 msgstr ""
34277
34278 #. type: textblock
34279 #: ../src/guestfs.pod:1060
34280 msgid ""
34281 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34282 "Linux kernel to access block devices.  We can run a variety of appliances "
34283 "based on a variety of Linux kernels."
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs.pod:1064
34288 msgid ""
34289 "This causes a problem for libguestfs because many API calls use device or "
34290 "partition names.  Working scripts and the recipe (example) scripts that we "
34291 "make available over the internet could fail if the naming scheme changes."
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:1069
34296 msgid ""
34297 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34298 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34299 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34300 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34301 msgstr ""
34302
34303 #. type: textblock
34304 #: ../src/guestfs.pod:1075
34305 msgid ""
34306 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34307 "L</guestfs_list_partitions> and similar calls return the true names of the "
34308 "devices and partitions as known to the appliance."
34309 msgstr ""
34310
34311 #. type: =head3
34312 #: ../src/guestfs.pod:1080
34313 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34314 msgstr ""
34315
34316 #. type: textblock
34317 #: ../src/guestfs.pod:1082
34318 msgid ""
34319 "Usually this translation is transparent.  However in some (very rare)  cases "
34320 "you may need to know the exact algorithm.  Such cases include where you use "
34321 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34322 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:1088
34327 msgid ""
34328 "The algorithm is applied only to I<parameters> which are known to be either "
34329 "device or partition names.  Return values from functions such as L</"
34330 "guestfs_list_devices> are never changed."
34331 msgstr ""
34332
34333 #. type: textblock
34334 #: ../src/guestfs.pod:1096
34335 msgid "Is the string a parameter which is a device or partition name?"
34336 msgstr ""
34337
34338 #. type: textblock
34339 #: ../src/guestfs.pod:1100
34340 msgid "Does the string begin with C</dev/sd>?"
34341 msgstr ""
34342
34343 #. type: textblock
34344 #: ../src/guestfs.pod:1104
34345 msgid ""
34346 "Does the named device exist? If so, we use that device.  However if I<not> "
34347 "then we continue with this algorithm."
34348 msgstr ""
34349
34350 #. type: textblock
34351 #: ../src/guestfs.pod:1109
34352 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34353 msgstr ""
34354
34355 #. type: textblock
34356 #: ../src/guestfs.pod:1111
34357 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34358 msgstr ""
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:1113
34362 msgid "If that named device exists, use it.  If not, continue."
34363 msgstr ""
34364
34365 #. type: textblock
34366 #: ../src/guestfs.pod:1117
34367 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34368 msgstr ""
34369
34370 #. type: textblock
34371 #: ../src/guestfs.pod:1119
34372 msgid "If that named device exists, use it.  If not, return an error."
34373 msgstr ""
34374
34375 #. type: =head3
34376 #: ../src/guestfs.pod:1123
34377 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34378 msgstr ""
34379
34380 #. type: textblock
34381 #: ../src/guestfs.pod:1125
34382 msgid ""
34383 "Although the standard naming scheme and automatic translation is useful for "
34384 "simple programs and guestfish scripts, for larger programs it is best not to "
34385 "rely on this mechanism."
34386 msgstr ""
34387
34388 #. type: textblock
34389 #: ../src/guestfs.pod:1129
34390 msgid ""
34391 "Where possible for maximum future portability programs using libguestfs "
34392 "should use these future-proof techniques:"
34393 msgstr ""
34394
34395 #. type: textblock
34396 #: ../src/guestfs.pod:1136
34397 msgid ""
34398 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34399 "device names, and then use those names directly."
34400 msgstr ""
34401
34402 #. type: textblock
34403 #: ../src/guestfs.pod:1139
34404 msgid ""
34405 "Since those device names exist by definition, they will never be translated."
34406 msgstr ""
34407
34408 #. type: textblock
34409 #: ../src/guestfs.pod:1144
34410 msgid ""
34411 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34412 "filesystem labels."
34413 msgstr ""
34414
34415 #. type: =head1
34416 #: ../src/guestfs.pod:1149
34417 msgid "SECURITY"
34418 msgstr ""
34419
34420 #. type: textblock
34421 #: ../src/guestfs.pod:1151
34422 msgid ""
34423 "This section discusses security implications of using libguestfs, "
34424 "particularly with untrusted or malicious guests or disk images."
34425 msgstr ""
34426
34427 #. type: =head2
34428 #: ../src/guestfs.pod:1154
34429 msgid "GENERAL SECURITY CONSIDERATIONS"
34430 msgstr ""
34431
34432 #. type: textblock
34433 #: ../src/guestfs.pod:1156
34434 msgid ""
34435 "Be careful with any files or data that you download from a guest (by "
34436 "\"download\" we mean not just the L</guestfs_download> command but any "
34437 "command that reads files, filenames, directories or anything else from a "
34438 "disk image).  An attacker could manipulate the data to fool your program "
34439 "into doing the wrong thing.  Consider cases such as:"
34440 msgstr ""
34441
34442 #. type: textblock
34443 #: ../src/guestfs.pod:1166
34444 msgid "the data (file etc) not being present"
34445 msgstr ""
34446
34447 #. type: textblock
34448 #: ../src/guestfs.pod:1170
34449 msgid "being present but empty"
34450 msgstr ""
34451
34452 #. type: textblock
34453 #: ../src/guestfs.pod:1174
34454 msgid "being much larger than normal"
34455 msgstr ""
34456
34457 #. type: textblock
34458 #: ../src/guestfs.pod:1178
34459 msgid "containing arbitrary 8 bit data"
34460 msgstr ""
34461
34462 #. type: textblock
34463 #: ../src/guestfs.pod:1182
34464 msgid "being in an unexpected character encoding"
34465 msgstr ""
34466
34467 #. type: textblock
34468 #: ../src/guestfs.pod:1186
34469 msgid "containing homoglyphs."
34470 msgstr ""
34471
34472 #. type: =head2
34473 #: ../src/guestfs.pod:1190
34474 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34475 msgstr ""
34476
34477 #. type: textblock
34478 #: ../src/guestfs.pod:1192
34479 msgid ""
34480 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34481 "(VFS) module can sometimes be escalated into exploits by deliberately "
34482 "creating a malicious, malformed filesystem.  These exploits are very severe "
34483 "for two reasons.  Firstly there are very many filesystem drivers in the "
34484 "kernel, and many of them are infrequently used and not much developer "
34485 "attention has been paid to the code.  Linux userspace helps potential "
34486 "crackers by detecting the filesystem type and automatically choosing the "
34487 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34488 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34489 "exploit (worse in some ways), giving immediate and total access to the "
34490 "system right down to the hardware level."
34491 msgstr ""
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:1205
34495 msgid ""
34496 "That explains why you should never mount a filesystem from an untrusted "
34497 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34498 "inside a qemu virtual machine, usually running as a non-root user.  The "
34499 "attacker would need to write a filesystem which first exploited the kernel, "
34500 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34501 "the libguestfs protocol, and finally to be as serious as the host kernel "
34502 "exploit it would need to escalate its privileges to root.  This multi-step "
34503 "escalation, performed by a static piece of data, is thought to be extremely "
34504 "hard to do, although we never say 'never' about security issues."
34505 msgstr ""
34506
34507 #. type: textblock
34508 #: ../src/guestfs.pod:1216
34509 msgid ""
34510 "In any case callers can reduce the attack surface by forcing the filesystem "
34511 "type when mounting (use L</guestfs_mount_vfs>)."
34512 msgstr ""
34513
34514 #. type: =head2
34515 #: ../src/guestfs.pod:1219
34516 msgid "PROTOCOL SECURITY"
34517 msgstr ""
34518
34519 #. type: textblock
34520 #: ../src/guestfs.pod:1221
34521 msgid ""
34522 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34523 "defined upper message size.  However a program that uses libguestfs must "
34524 "also take care - for example you can write a program that downloads a binary "
34525 "from a disk image and executes it locally, and no amount of protocol "
34526 "security will save you from the consequences."
34527 msgstr ""
34528
34529 #. type: =head2
34530 #: ../src/guestfs.pod:1227
34531 msgid "INSPECTION SECURITY"
34532 msgstr ""
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:1229
34536 msgid ""
34537 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34538 "directly from the guest, and these could contain any 8 bit data.  Callers "
34539 "should be careful to escape these before printing them to a structured file "
34540 "(for example, use HTML escaping if creating a web page)."
34541 msgstr ""
34542
34543 #. type: textblock
34544 #: ../src/guestfs.pod:1235
34545 msgid ""
34546 "Guest configuration may be altered in unusual ways by the administrator of "
34547 "the virtual machine, and may not reflect reality (particularly for untrusted "
34548 "or actively malicious guests).  For example we parse the hostname from "
34549 "configuration files like C</etc/sysconfig/network> that we find in the "
34550 "guest, but the guest administrator can easily manipulate these files to "
34551 "provide the wrong hostname."
34552 msgstr ""
34553
34554 #. type: textblock
34555 #: ../src/guestfs.pod:1243
34556 msgid ""
34557 "The inspection API parses guest configuration using two external libraries: "
34558 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34559 "designed to be robust in the face of malicious data, although denial of "
34560 "service attacks are still possible, for example with oversized configuration "
34561 "files."
34562 msgstr ""
34563
34564 #. type: =head2
34565 #: ../src/guestfs.pod:1249
34566 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:1251
34571 msgid ""
34572 "Be very cautious about running commands from the guest.  By running a "
34573 "command in the guest, you are giving CPU time to a binary that you do not "
34574 "control, under the same user account as the library, albeit wrapped in qemu "
34575 "virtualization.  More information and alternatives can be found in the "
34576 "section L</RUNNING COMMANDS>."
34577 msgstr ""
34578
34579 #. type: =head2
34580 #: ../src/guestfs.pod:1257
34581 msgid "CVE-2010-3851"
34582 msgstr ""
34583
34584 #. type: textblock
34585 #: ../src/guestfs.pod:1259
34586 msgid "https://bugzilla.redhat.com/642934"
34587 msgstr ""
34588
34589 #. type: textblock
34590 #: ../src/guestfs.pod:1261
34591 msgid ""
34592 "This security bug concerns the automatic disk format detection that qemu "
34593 "does on disk images."
34594 msgstr ""
34595
34596 #. type: textblock
34597 #: ../src/guestfs.pod:1264
34598 msgid ""
34599 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34600 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34601 "for one of the known headers, and if none is found then assuming the disk "
34602 "image must be raw."
34603 msgstr ""
34604
34605 #. type: textblock
34606 #: ../src/guestfs.pod:1269
34607 msgid ""
34608 "This allows a guest which has been given a raw disk image to write some "
34609 "other header.  At next boot (or when the disk image is accessed by "
34610 "libguestfs) qemu would do autodetection and think the disk image format was, "
34611 "say, qcow2 based on the header written by the guest."
34612 msgstr ""
34613
34614 #. type: textblock
34615 #: ../src/guestfs.pod:1274
34616 msgid ""
34617 "This in itself would not be a problem, but qcow2 offers many features, one "
34618 "of which is to allow a disk image to refer to another image (called the "
34619 "\"backing disk\").  It does this by placing the path to the backing disk "
34620 "into the qcow2 header.  This path is not validated and could point to any "
34621 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34622 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34623 "control of the attacker."
34624 msgstr ""
34625
34626 #. type: textblock
34627 #: ../src/guestfs.pod:1282
34628 msgid ""
34629 "In libguestfs this is rather hard to exploit except under two circumstances:"
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:1289
34634 msgid "You have enabled the network or have opened the disk in write mode."
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:1293
34639 msgid ""
34640 "You are also running untrusted code from the guest (see L</RUNNING "
34641 "COMMANDS>)."
34642 msgstr ""
34643
34644 #. type: textblock
34645 #: ../src/guestfs.pod:1298
34646 msgid ""
34647 "The way to avoid this is to specify the expected disk format when adding "
34648 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34649 "should always do this if the disk is raw format, and it's a good idea for "
34650 "other cases too."
34651 msgstr ""
34652
34653 #. type: textblock
34654 #: ../src/guestfs.pod:1303
34655 msgid ""
34656 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34657 "format is fetched from libvirt and passed through."
34658 msgstr ""
34659
34660 #. type: textblock
34661 #: ../src/guestfs.pod:1306
34662 msgid ""
34663 "For libguestfs tools, use the I<--format> command line parameter as "
34664 "appropriate."
34665 msgstr ""
34666
34667 #. type: =head1
34668 #: ../src/guestfs.pod:1309
34669 msgid "CONNECTION MANAGEMENT"
34670 msgstr ""
34671
34672 #. type: =head2
34673 #: ../src/guestfs.pod:1311
34674 msgid "guestfs_h *"
34675 msgstr ""
34676
34677 #. type: textblock
34678 #: ../src/guestfs.pod:1313
34679 msgid ""
34680 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34681 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34682 "handle and release all resources used."
34683 msgstr ""
34684
34685 #. type: textblock
34686 #: ../src/guestfs.pod:1317
34687 msgid ""
34688 "For information on using multiple handles and threads, see the section L</"
34689 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34690 msgstr ""
34691
34692 #. type: =head2
34693 #: ../src/guestfs.pod:1320
34694 msgid "guestfs_create"
34695 msgstr ""
34696
34697 #. type: verbatim
34698 #: ../src/guestfs.pod:1322
34699 #, no-wrap
34700 msgid ""
34701 " guestfs_h *guestfs_create (void);\n"
34702 "\n"
34703 msgstr ""
34704
34705 #. type: textblock
34706 #: ../src/guestfs.pod:1324
34707 msgid "Create a connection handle."
34708 msgstr ""
34709
34710 #. type: textblock
34711 #: ../src/guestfs.pod:1326
34712 msgid ""
34713 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34714 "NULL."
34715 msgstr ""
34716
34717 #. type: textblock
34718 #: ../src/guestfs.pod:1329
34719 msgid ""
34720 "You have to \"configure\" the handle after creating it.  This includes "
34721 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34722 "handle at least once."
34723 msgstr ""
34724
34725 #. type: textblock
34726 #: ../src/guestfs.pod:1333
34727 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34728 msgstr ""
34729
34730 #. type: textblock
34731 #: ../src/guestfs.pod:1335
34732 msgid ""
34733 "You may also want to configure error handling for the handle.  See the L</"
34734 "ERROR HANDLING> section below."
34735 msgstr ""
34736
34737 #. type: =head2
34738 #: ../src/guestfs.pod:1338
34739 msgid "guestfs_close"
34740 msgstr ""
34741
34742 #. type: verbatim
34743 #: ../src/guestfs.pod:1340
34744 #, no-wrap
34745 msgid ""
34746 " void guestfs_close (guestfs_h *g);\n"
34747 "\n"
34748 msgstr ""
34749
34750 #. type: textblock
34751 #: ../src/guestfs.pod:1342
34752 msgid "This closes the connection handle and frees up all resources used."
34753 msgstr ""
34754
34755 #. type: textblock
34756 #: ../src/guestfs.pod:1344
34757 msgid ""
34758 "If autosync was set on the handle and the handle was launched, then this "
34759 "implicitly calls various functions to unmount filesystems and sync the "
34760 "disk.  See L</guestfs_set_autosync> for more details."
34761 msgstr ""
34762
34763 #. type: textblock
34764 #: ../src/guestfs.pod:1348
34765 msgid "If a close callback was set on the handle, then it is called."
34766 msgstr ""
34767
34768 #. type: =head1
34769 #: ../src/guestfs.pod:1350
34770 msgid "ERROR HANDLING"
34771 msgstr ""
34772
34773 #. type: textblock
34774 #: ../src/guestfs.pod:1352
34775 msgid ""
34776 "API functions can return errors.  For example, almost all functions that "
34777 "return C<int> will return C<-1> to indicate an error."
34778 msgstr ""
34779
34780 #. type: textblock
34781 #: ../src/guestfs.pod:1355
34782 msgid ""
34783 "Additional information is available for errors: an error message string and "
34784 "optionally an error number (errno) if the thing that failed was a system "
34785 "call."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:1359
34790 msgid ""
34791 "You can get at the additional information about the last error on the handle "
34792 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34793 "up an error handler with L</guestfs_set_error_handler>."
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:1364
34798 msgid ""
34799 "When the handle is created, a default error handler is installed which "
34800 "prints the error message string to C<stderr>.  For small short-running "
34801 "command line programs it is sufficient to do:"
34802 msgstr ""
34803
34804 #. type: verbatim
34805 #: ../src/guestfs.pod:1368
34806 #, no-wrap
34807 msgid ""
34808 " if (guestfs_launch (g) == -1)\n"
34809 "   exit (EXIT_FAILURE);\n"
34810 "\n"
34811 msgstr ""
34812
34813 #. type: textblock
34814 #: ../src/guestfs.pod:1371
34815 msgid ""
34816 "since the default error handler will ensure that an error message has been "
34817 "printed to C<stderr> before the program exits."
34818 msgstr ""
34819
34820 #. type: textblock
34821 #: ../src/guestfs.pod:1374
34822 msgid ""
34823 "For other programs the caller will almost certainly want to install an "
34824 "alternate error handler or do error handling in-line like this:"
34825 msgstr ""
34826
34827 #. type: verbatim
34828 #: ../src/guestfs.pod:1377
34829 #, no-wrap
34830 msgid ""
34831 " /* This disables the default behaviour of printing errors\n"
34832 "    on stderr. */\n"
34833 " guestfs_set_error_handler (g, NULL, NULL);\n"
34834 " \n"
34835 msgstr ""
34836
34837 #. type: verbatim
34838 #: ../src/guestfs.pod:1381
34839 #, no-wrap
34840 msgid ""
34841 " if (guestfs_launch (g) == -1) {\n"
34842 "   /* Examine the error message and print it etc. */\n"
34843 "   char *msg = guestfs_last_error (g);\n"
34844 "   int errnum = guestfs_last_errno (g);\n"
34845 "   fprintf (stderr, \"%s\", msg);\n"
34846 "   if (errnum != 0)\n"
34847 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
34848 "   fprintf (stderr, \"\\n\");\n"
34849 "   /* ... */\n"
34850 " }\n"
34851 "\n"
34852 msgstr ""
34853
34854 #. type: textblock
34855 #: ../src/guestfs.pod:1392
34856 msgid ""
34857 "Out of memory errors are handled differently.  The default action is to call "
34858 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
34859 "guestfs_set_out_of_memory_handler>."
34860 msgstr ""
34861
34862 #. type: textblock
34863 #: ../src/guestfs.pod:1396
34864 msgid ""
34865 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34866 "because there is no handle if this happens there is no way to get additional "
34867 "error information.  However L</guestfs_create> is supposed to be a "
34868 "lightweight operation which can only fail because of insufficient memory (it "
34869 "returns NULL in this case)."
34870 msgstr ""
34871
34872 #. type: =head2
34873 #: ../src/guestfs.pod:1402
34874 msgid "guestfs_last_error"
34875 msgstr ""
34876
34877 #. type: verbatim
34878 #: ../src/guestfs.pod:1404
34879 #, no-wrap
34880 msgid ""
34881 " const char *guestfs_last_error (guestfs_h *g);\n"
34882 "\n"
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:1406
34887 msgid ""
34888 "This returns the last error message that happened on C<g>.  If there has not "
34889 "been an error since the handle was created, then this returns C<NULL>."
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:1410
34894 msgid ""
34895 "The lifetime of the returned string is until the next error occurs, or L</"
34896 "guestfs_close> is called."
34897 msgstr ""
34898
34899 #. type: =head2
34900 #: ../src/guestfs.pod:1413
34901 msgid "guestfs_last_errno"
34902 msgstr ""
34903
34904 #. type: verbatim
34905 #: ../src/guestfs.pod:1415
34906 #, no-wrap
34907 msgid ""
34908 " int guestfs_last_errno (guestfs_h *g);\n"
34909 "\n"
34910 msgstr ""
34911
34912 #. type: textblock
34913 #: ../src/guestfs.pod:1417
34914 msgid "This returns the last error number (errno) that happened on C<g>."
34915 msgstr ""
34916
34917 #. type: textblock
34918 #: ../src/guestfs.pod:1419
34919 msgid "If successful, an errno integer not equal to zero is returned."
34920 msgstr ""
34921
34922 #. type: textblock
34923 #: ../src/guestfs.pod:1421
34924 msgid ""
34925 "If no error, this returns 0.  This call can return 0 in three situations:"
34926 msgstr ""
34927
34928 #. type: textblock
34929 #: ../src/guestfs.pod:1428
34930 msgid "There has not been any error on the handle."
34931 msgstr ""
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:1432
34935 msgid ""
34936 "There has been an error but the errno was meaningless.  This corresponds to "
34937 "the case where the error did not come from a failed system call, but for "
34938 "some other reason."
34939 msgstr ""
34940
34941 #. type: textblock
34942 #: ../src/guestfs.pod:1438
34943 msgid ""
34944 "There was an error from a failed system call, but for some reason the errno "
34945 "was not captured and returned.  This usually indicates a bug in libguestfs."
34946 msgstr ""
34947
34948 #. type: textblock
34949 #: ../src/guestfs.pod:1444
34950 msgid ""
34951 "Libguestfs tries to convert the errno from inside the applicance into a "
34952 "corresponding errno for the caller (not entirely trivial: the appliance "
34953 "might be running a completely different operating system from the library "
34954 "and error numbers are not standardized across Un*xen).  If this could not be "
34955 "done, then the error is translated to C<EINVAL>.  In practice this should "
34956 "only happen in very rare circumstances."
34957 msgstr ""
34958
34959 #. type: =head2
34960 #: ../src/guestfs.pod:1452
34961 msgid "guestfs_set_error_handler"
34962 msgstr ""
34963
34964 #. type: verbatim
34965 #: ../src/guestfs.pod:1454
34966 #, no-wrap
34967 msgid ""
34968 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
34969 "                                           void *opaque,\n"
34970 "                                           const char *msg);\n"
34971 " void guestfs_set_error_handler (guestfs_h *g,\n"
34972 "                                 guestfs_error_handler_cb cb,\n"
34973 "                                 void *opaque);\n"
34974 "\n"
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:1461
34979 msgid ""
34980 "The callback C<cb> will be called if there is an error.  The parameters "
34981 "passed to the callback are an opaque data pointer and the error message "
34982 "string."
34983 msgstr ""
34984
34985 #. type: textblock
34986 #: ../src/guestfs.pod:1465
34987 msgid ""
34988 "C<errno> is not passed to the callback.  To get that the callback must call "
34989 "L</guestfs_last_errno>."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:1468
34994 msgid ""
34995 "Note that the message string C<msg> is freed as soon as the callback "
34996 "function returns, so if you want to stash it somewhere you must make your "
34997 "own copy."
34998 msgstr ""
34999
35000 #. type: textblock
35001 #: ../src/guestfs.pod:1472
35002 msgid "The default handler prints messages on C<stderr>."
35003 msgstr ""
35004
35005 #. type: textblock
35006 #: ../src/guestfs.pod:1474
35007 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35008 msgstr ""
35009
35010 #. type: =head2
35011 #: ../src/guestfs.pod:1476
35012 msgid "guestfs_get_error_handler"
35013 msgstr ""
35014
35015 #. type: verbatim
35016 #: ../src/guestfs.pod:1478
35017 #, no-wrap
35018 msgid ""
35019 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35020 "                                                     void **opaque_rtn);\n"
35021 "\n"
35022 msgstr ""
35023
35024 #. type: textblock
35025 #: ../src/guestfs.pod:1481
35026 msgid "Returns the current error handler callback."
35027 msgstr ""
35028
35029 #. type: =head2
35030 #: ../src/guestfs.pod:1483
35031 msgid "guestfs_set_out_of_memory_handler"
35032 msgstr ""
35033
35034 #. type: verbatim
35035 #: ../src/guestfs.pod:1485
35036 #, no-wrap
35037 msgid ""
35038 " typedef void (*guestfs_abort_cb) (void);\n"
35039 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35040 "                                         guestfs_abort_cb);\n"
35041 "\n"
35042 msgstr ""
35043
35044 #. type: textblock
35045 #: ../src/guestfs.pod:1489
35046 msgid ""
35047 "The callback C<cb> will be called if there is an out of memory situation.  "
35048 "I<Note this callback must not return>."
35049 msgstr ""
35050
35051 #. type: textblock
35052 #: ../src/guestfs.pod:1492
35053 msgid "The default is to call L<abort(3)>."
35054 msgstr ""
35055
35056 #. type: textblock
35057 #: ../src/guestfs.pod:1494
35058 msgid ""
35059 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35060 msgstr ""
35061
35062 #. type: =head2
35063 #: ../src/guestfs.pod:1497
35064 msgid "guestfs_get_out_of_memory_handler"
35065 msgstr ""
35066
35067 #. type: verbatim
35068 #: ../src/guestfs.pod:1499
35069 #, no-wrap
35070 msgid ""
35071 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35072 "\n"
35073 msgstr ""
35074
35075 #. type: textblock
35076 #: ../src/guestfs.pod:1501
35077 msgid "This returns the current out of memory handler."
35078 msgstr ""
35079
35080 #. type: =head1
35081 #: ../src/guestfs.pod:1503
35082 msgid "API CALLS"
35083 msgstr ""
35084
35085 #. type: =head1
35086 #: ../src/guestfs.pod:1507
35087 msgid "STRUCTURES"
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs.pod:1509
35092 msgid "@STRUCTS@"
35093 msgstr ""
35094
35095 #. type: =head1
35096 #: ../src/guestfs.pod:1511
35097 msgid "AVAILABILITY"
35098 msgstr ""
35099
35100 #. type: =head2
35101 #: ../src/guestfs.pod:1513
35102 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:1515
35107 msgid ""
35108 "Using L</guestfs_available> you can test availability of the following "
35109 "groups of functions.  This test queries the appliance to see if the "
35110 "appliance you are currently using supports the functionality."
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:1520
35115 msgid "@AVAILABILITY@"
35116 msgstr ""
35117
35118 #. type: =head2
35119 #: ../src/guestfs.pod:1522
35120 msgid "GUESTFISH supported COMMAND"
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:1524
35125 msgid ""
35126 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35127 "prints out the available groups and whether they are supported by this build "
35128 "of libguestfs.  Note however that you have to do C<run> first."
35129 msgstr ""
35130
35131 #. type: =head2
35132 #: ../src/guestfs.pod:1529
35133 msgid "SINGLE CALLS AT COMPILE TIME"
35134 msgstr ""
35135
35136 #. type: textblock
35137 #: ../src/guestfs.pod:1531
35138 msgid ""
35139 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35140 "function, such as:"
35141 msgstr ""
35142
35143 #. type: verbatim
35144 #: ../src/guestfs.pod:1534
35145 #, no-wrap
35146 msgid ""
35147 " #define LIBGUESTFS_HAVE_DD 1\n"
35148 "\n"
35149 msgstr ""
35150
35151 #. type: textblock
35152 #: ../src/guestfs.pod:1536
35153 msgid "if L</guestfs_dd> is available."
35154 msgstr ""
35155
35156 #. type: textblock
35157 #: ../src/guestfs.pod:1538
35158 msgid ""
35159 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35160 "function is available at compile time, we recommended using build tools such "
35161 "as autoconf or cmake.  For example in autotools you could use:"
35162 msgstr ""
35163
35164 #. type: verbatim
35165 #: ../src/guestfs.pod:1543
35166 #, no-wrap
35167 msgid ""
35168 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35169 " AC_CHECK_FUNCS([guestfs_dd])\n"
35170 "\n"
35171 msgstr ""
35172
35173 #. type: textblock
35174 #: ../src/guestfs.pod:1546
35175 msgid ""
35176 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35177 "in your program."
35178 msgstr ""
35179
35180 #. type: =head2
35181 #: ../src/guestfs.pod:1549
35182 msgid "SINGLE CALLS AT RUN TIME"
35183 msgstr ""
35184
35185 #. type: textblock
35186 #: ../src/guestfs.pod:1551
35187 msgid ""
35188 "Testing at compile time doesn't guarantee that a function really exists in "
35189 "the library.  The reason is that you might be dynamically linked against a "
35190 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35191 "This situation unfortunately results in a segmentation fault, which is a "
35192 "shortcoming of the C dynamic linking system itself."
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:1558
35197 msgid ""
35198 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35199 "in this example program (note that you still need the compile time check as "
35200 "well):"
35201 msgstr ""
35202
35203 #. type: verbatim
35204 #: ../src/guestfs.pod:1562
35205 #, no-wrap
35206 msgid ""
35207 " #include <stdio.h>\n"
35208 " #include <stdlib.h>\n"
35209 " #include <unistd.h>\n"
35210 " #include <dlfcn.h>\n"
35211 " #include <guestfs.h>\n"
35212 " \n"
35213 msgstr ""
35214
35215 #. type: verbatim
35216 #: ../src/guestfs.pod:1568
35217 #, no-wrap
35218 msgid ""
35219 " main ()\n"
35220 " {\n"
35221 " #ifdef LIBGUESTFS_HAVE_DD\n"
35222 "   void *dl;\n"
35223 "   int has_function;\n"
35224 " \n"
35225 msgstr ""
35226
35227 #. type: verbatim
35228 #: ../src/guestfs.pod:1574
35229 #, no-wrap
35230 msgid ""
35231 "   /* Test if the function guestfs_dd is really available. */\n"
35232 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35233 "   if (!dl) {\n"
35234 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35235 "     exit (EXIT_FAILURE);\n"
35236 "   }\n"
35237 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35238 "   dlclose (dl);\n"
35239 " \n"
35240 msgstr ""
35241
35242 #. type: verbatim
35243 #: ../src/guestfs.pod:1583
35244 #, no-wrap
35245 msgid ""
35246 "   if (!has_function)\n"
35247 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35248 "   else {\n"
35249 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35250 "     /* Now it's safe to call\n"
35251 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35252 "     */\n"
35253 "   }\n"
35254 " #else\n"
35255 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35256 " #endif\n"
35257 "  }\n"
35258 "\n"
35259 msgstr ""
35260
35261 #. type: textblock
35262 #: ../src/guestfs.pod:1596
35263 msgid ""
35264 "You may think the above is an awful lot of hassle, and it is.  There are "
35265 "other ways outside of the C linking system to ensure that this kind of "
35266 "incompatibility never arises, such as using package versioning:"
35267 msgstr ""
35268
35269 #. type: verbatim
35270 #: ../src/guestfs.pod:1601
35271 #, no-wrap
35272 msgid ""
35273 " Requires: libguestfs >= 1.0.80\n"
35274 "\n"
35275 msgstr ""
35276
35277 #. type: =head1
35278 #: ../src/guestfs.pod:1603
35279 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35280 msgstr ""
35281
35282 #. type: textblock
35283 #: ../src/guestfs.pod:1605
35284 msgid ""
35285 "A recent feature of the API is the introduction of calls which take optional "
35286 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35287 "takes variable arguments (ie. C<...>), as in this example:"
35288 msgstr ""
35289
35290 #. type: verbatim
35291 #: ../src/guestfs.pod:1610
35292 #, no-wrap
35293 msgid ""
35294 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35295 "\n"
35296 msgstr ""
35297
35298 #. type: textblock
35299 #: ../src/guestfs.pod:1612
35300 msgid ""
35301 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35302 "call with no optional arguments specified:"
35303 msgstr ""
35304
35305 #. type: verbatim
35306 #: ../src/guestfs.pod:1615
35307 #, no-wrap
35308 msgid ""
35309 " guestfs_add_drive_opts (g, filename, -1);\n"
35310 "\n"
35311 msgstr ""
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:1617
35315 msgid "With a single optional argument:"
35316 msgstr ""
35317
35318 #. type: verbatim
35319 #: ../src/guestfs.pod:1619
35320 #, no-wrap
35321 msgid ""
35322 " guestfs_add_drive_opts (g, filename,\n"
35323 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35324 "                         -1);\n"
35325 "\n"
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:1623
35330 msgid "With two:"
35331 msgstr ""
35332
35333 #. type: verbatim
35334 #: ../src/guestfs.pod:1625
35335 #, no-wrap
35336 msgid ""
35337 " guestfs_add_drive_opts (g, filename,\n"
35338 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35339 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35340 "                         -1);\n"
35341 "\n"
35342 msgstr ""
35343
35344 #. type: textblock
35345 #: ../src/guestfs.pod:1630
35346 msgid ""
35347 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35348 "happen!"
35349 msgstr ""
35350
35351 #. type: =head2
35352 #: ../src/guestfs.pod:1633
35353 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35354 msgstr ""
35355
35356 #. type: textblock
35357 #: ../src/guestfs.pod:1635
35358 msgid ""
35359 "The second variant has the same name with the suffix C<_va>, which works the "
35360 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35361 "example function, this is declared:"
35362 msgstr ""
35363
35364 #. type: verbatim
35365 #: ../src/guestfs.pod:1639
35366 #, no-wrap
35367 msgid ""
35368 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35369 "                                va_list args);\n"
35370 "\n"
35371 msgstr ""
35372
35373 #. type: =head2
35374 #: ../src/guestfs.pod:1642
35375 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35376 msgstr ""
35377
35378 #. type: textblock
35379 #: ../src/guestfs.pod:1644
35380 msgid ""
35381 "The third variant is useful where you need to construct these calls.  You "
35382 "pass in a structure where you fill in the optional fields.  The structure "
35383 "has a bitmask as the first element which you must set to indicate which "
35384 "fields you have filled in.  For our example function the structure and call "
35385 "are declared:"
35386 msgstr ""
35387
35388 #. type: verbatim
35389 #: ../src/guestfs.pod:1650
35390 #, no-wrap
35391 msgid ""
35392 " struct guestfs_add_drive_opts_argv {\n"
35393 "   uint64_t bitmask;\n"
35394 "   int readonly;\n"
35395 "   const char *format;\n"
35396 "   /* ... */\n"
35397 " };\n"
35398 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35399 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35400 "\n"
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs.pod:1659
35405 msgid "You could call it like this:"
35406 msgstr ""
35407
35408 #. type: verbatim
35409 #: ../src/guestfs.pod:1661
35410 #, no-wrap
35411 msgid ""
35412 " struct guestfs_add_drive_opts_argv optargs = {\n"
35413 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35414 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35415 "   .readonly = 1,\n"
35416 "   .format = \"qcow2\"\n"
35417 " };\n"
35418 " \n"
35419 msgstr ""
35420
35421 #. type: verbatim
35422 #: ../src/guestfs.pod:1668
35423 #, no-wrap
35424 msgid ""
35425 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35426 "\n"
35427 msgstr ""
35428
35429 #. type: textblock
35430 #: ../src/guestfs.pod:1676
35431 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35432 msgstr ""
35433
35434 #. type: textblock
35435 #: ../src/guestfs.pod:1681
35436 msgid "You do not need to fill in all fields of the structure."
35437 msgstr ""
35438
35439 #. type: textblock
35440 #: ../src/guestfs.pod:1685
35441 msgid ""
35442 "There must be a one-to-one correspondence between fields of the structure "
35443 "that are filled in, and bits set in the bitmask."
35444 msgstr ""
35445
35446 #. type: =head2
35447 #: ../src/guestfs.pod:1690
35448 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:1692
35453 msgid ""
35454 "In other languages, optional arguments are expressed in the way that is "
35455 "natural for that language.  We refer you to the language-specific "
35456 "documentation for more details on that."
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:1696
35461 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35462 msgstr ""
35463
35464 #. type: =head2
35465 #: ../src/guestfs.pod:1698
35466 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:1700
35471 msgid ""
35472 "B<Note:> This section documents the generic event mechanism introduced in "
35473 "libguestfs 1.10, which you should use in new code if possible.  The old "
35474 "functions C<guestfs_set_log_message_callback>, "
35475 "C<guestfs_set_subprocess_quit_callback>, "
35476 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35477 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35478 "page.  Because of the ABI guarantee, the old functions continue to work."
35479 msgstr ""
35480
35481 #. type: textblock
35482 #: ../src/guestfs.pod:1709
35483 msgid ""
35484 "Handles generate events when certain things happen, such as log messages "
35485 "being generated, progress messages during long-running operations, or the "
35486 "handle being closed.  The API calls described below let you register a "
35487 "callback to be called when events happen.  You can register multiple "
35488 "callbacks (for the same, different or overlapping sets of events), and "
35489 "individually remove callbacks.  If callbacks are not removed, then they "
35490 "remain in force until the handle is closed."
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:1717
35495 msgid ""
35496 "In the current implementation, events are only generated synchronously: that "
35497 "means that events (and hence callbacks) can only happen while you are in the "
35498 "middle of making another libguestfs call.  The callback is called in the "
35499 "same thread."
35500 msgstr ""
35501
35502 #. type: textblock
35503 #: ../src/guestfs.pod:1722
35504 msgid ""
35505 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35506 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35507 msgstr ""
35508
35509 #. type: =head3
35510 #: ../src/guestfs.pod:1726
35511 msgid "CLASSES OF EVENTS"
35512 msgstr ""
35513
35514 #. type: =item
35515 #: ../src/guestfs.pod:1730
35516 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35517 msgstr ""
35518
35519 #. type: textblock
35520 #: ../src/guestfs.pod:1733
35521 msgid ""
35522 "The callback function will be called while the handle is being closed "
35523 "(synchronously from L</guestfs_close>)."
35524 msgstr ""
35525
35526 #. type: textblock
35527 #: ../src/guestfs.pod:1736
35528 msgid ""
35529 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35530 "handles that are open when the program exits.  This means that this callback "
35531 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35532 "problems in higher-level languages (eg. if your HLL interpreter has already "
35533 "been cleaned up by the time this is called, and if your callback then jumps "
35534 "into some HLL function)."
35535 msgstr ""
35536
35537 #. type: textblock
35538 #: ../src/guestfs.pod:1743
35539 msgid ""
35540 "If no callback is registered: the handle is closed without any callback "
35541 "being invoked."
35542 msgstr ""
35543
35544 #. type: =item
35545 #: ../src/guestfs.pod:1746
35546 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35547 msgstr ""
35548
35549 #. type: textblock
35550 #: ../src/guestfs.pod:1749
35551 msgid ""
35552 "The callback function will be called when the child process quits, either "
35553 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35554 "corresponds to a transition from any state to the CONFIG state)."
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
35559 msgid "If no callback is registered: the event is ignored."
35560 msgstr ""
35561
35562 #. type: =item
35563 #: ../src/guestfs.pod:1755
35564 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:1758
35569 msgid ""
35570 "The callback function will be called when the child process becomes ready "
35571 "first time after it has been launched.  (This corresponds to a transition "
35572 "from LAUNCHING to the READY state)."
35573 msgstr ""
35574
35575 #. type: =item
35576 #: ../src/guestfs.pod:1764
35577 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35578 msgstr ""
35579
35580 #. type: textblock
35581 #: ../src/guestfs.pod:1767
35582 msgid ""
35583 "Some long-running operations can generate progress messages.  If this "
35584 "callback is registered, then it will be called each time a progress message "
35585 "is generated (usually two seconds after the operation started, and three "
35586 "times per second thereafter until it completes, although the frequency may "
35587 "change in future versions)."
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:1773
35592 msgid ""
35593 "The callback receives in the payload four unsigned 64 bit numbers which are "
35594 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35595 msgstr ""
35596
35597 #. type: textblock
35598 #: ../src/guestfs.pod:1776
35599 msgid ""
35600 "The units of C<total> are not defined, although for some operations C<total> "
35601 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35602 "or megabytes), and C<position> may be the portion which has been transferred."
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:1781
35607 msgid "The only defined and stable parts of the API are:"
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:1787
35612 msgid ""
35613 "The callback can display to the user some type of progress bar or indicator "
35614 "which shows the ratio of C<position>:C<total>."
35615 msgstr ""
35616
35617 #. type: textblock
35618 #: ../src/guestfs.pod:1792
35619 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs.pod:1796
35624 msgid ""
35625 "If any progress notification is sent during a call, then a final progress "
35626 "notification is always sent when C<position> = C<total> (I<unless> the call "
35627 "fails with an error)."
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:1800
35632 msgid ""
35633 "This is to simplify caller code, so callers can easily set the progress "
35634 "indicator to \"100%\" at the end of the operation, without requiring special "
35635 "code to detect this case."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:1806
35640 msgid ""
35641 "For some calls we are unable to estimate the progress of the call, but we "
35642 "can still generate progress messages to indicate activity.  This is known as "
35643 "\"pulse mode\", and is directly supported by certain progress bar "
35644 "implementations (eg. GtkProgressBar)."
35645 msgstr ""
35646
35647 #. type: textblock
35648 #: ../src/guestfs.pod:1811
35649 msgid ""
35650 "For these calls, zero or more progress messages are generated with "
35651 "C<position = 0> and C<total = 1>, followed by a final message with "
35652 "C<position = total = 1>."
35653 msgstr ""
35654
35655 #. type: textblock
35656 #: ../src/guestfs.pod:1815
35657 msgid ""
35658 "As noted above, if the call fails with an error then the final message may "
35659 "not be generated."
35660 msgstr ""
35661
35662 #. type: textblock
35663 #: ../src/guestfs.pod:1820
35664 msgid ""
35665 "The callback also receives the procedure number (C<proc_nr>) and serial "
35666 "number (C<serial>) of the call.  These are only useful for debugging "
35667 "protocol issues, and the callback can normally ignore them.  The callback "
35668 "may want to print these numbers in error messages or debugging messages."
35669 msgstr ""
35670
35671 #. type: textblock
35672 #: ../src/guestfs.pod:1826
35673 msgid "If no callback is registered: progress messages are discarded."
35674 msgstr ""
35675
35676 #. type: =item
35677 #: ../src/guestfs.pod:1828
35678 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:1831
35683 msgid ""
35684 "The callback function is called whenever a log message is generated by qemu, "
35685 "the appliance kernel, guestfsd (daemon), or utility programs."
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:1834
35690 msgid ""
35691 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35692 "guestfs_launch>) then additional debug messages are generated."
35693 msgstr ""
35694
35695 #. type: textblock
35696 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
35697 msgid ""
35698 "If no callback is registered: the messages are discarded unless the verbose "
35699 "flag is set in which case they are sent to stderr.  You can override the "
35700 "printing of verbose messages to stderr by setting up a callback."
35701 msgstr ""
35702
35703 #. type: =item
35704 #: ../src/guestfs.pod:1842
35705 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35706 msgstr ""
35707
35708 #. type: textblock
35709 #: ../src/guestfs.pod:1845
35710 msgid ""
35711 "The callback function is called whenever a log message is generated by the "
35712 "library part of libguestfs."
35713 msgstr ""
35714
35715 #. type: textblock
35716 #: ../src/guestfs.pod:1848
35717 msgid ""
35718 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35719 "messages are generated."
35720 msgstr ""
35721
35722 #. type: =item
35723 #: ../src/guestfs.pod:1856
35724 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:1859
35729 msgid ""
35730 "The callback function is called whenever a trace message is generated.  This "
35731 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35732 msgstr ""
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:1862
35736 msgid ""
35737 "If no callback is registered: the messages are sent to stderr.  You can "
35738 "override the printing of trace messages to stderr by setting up a callback."
35739 msgstr ""
35740
35741 #. type: =item
35742 #: ../src/guestfs.pod:1866
35743 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:1869
35748 msgid ""
35749 "The callback function is called whenever a libguestfs function is entered."
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:1872
35754 msgid ""
35755 "The payload is a string which contains the name of the function that we are "
35756 "entering (not including C<guestfs_> prefix)."
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../src/guestfs.pod:1875
35761 msgid ""
35762 "Note that libguestfs functions can call themselves, so you may see many "
35763 "events from a single call.  A few libguestfs functions do not generate this "
35764 "event."
35765 msgstr ""
35766
35767 #. type: =head3
35768 #: ../src/guestfs.pod:1883
35769 msgid "guestfs_set_event_callback"
35770 msgstr ""
35771
35772 #. type: verbatim
35773 #: ../src/guestfs.pod:1885
35774 #, no-wrap
35775 msgid ""
35776 " int guestfs_set_event_callback (guestfs_h *g,\n"
35777 "                                 guestfs_event_callback cb,\n"
35778 "                                 uint64_t event_bitmask,\n"
35779 "                                 int flags,\n"
35780 "                                 void *opaque);\n"
35781 "\n"
35782 msgstr ""
35783
35784 #. type: textblock
35785 #: ../src/guestfs.pod:1891
35786 msgid ""
35787 "This function registers a callback (C<cb>) for all event classes in the "
35788 "C<event_bitmask>."
35789 msgstr ""
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:1894
35793 msgid ""
35794 "For example, to register for all log message events, you could call this "
35795 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35796 "To register a single callback for all possible classes of events, use "
35797 "C<GUESTFS_EVENT_ALL>."
35798 msgstr ""
35799
35800 #. type: textblock
35801 #: ../src/guestfs.pod:1900
35802 msgid "C<flags> should always be passed as 0."
35803 msgstr ""
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:1902
35807 msgid ""
35808 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35809 "it for any purpose."
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../src/guestfs.pod:1905
35814 msgid ""
35815 "The return value is the event handle (an integer) which you can use to "
35816 "delete the callback (see below)."
35817 msgstr ""
35818
35819 #. type: textblock
35820 #: ../src/guestfs.pod:1908
35821 msgid ""
35822 "If there is an error, this function returns C<-1>, and sets the error in the "
35823 "handle in the usual way (see L</guestfs_last_error> etc.)"
35824 msgstr ""
35825
35826 #. type: textblock
35827 #: ../src/guestfs.pod:1911
35828 msgid ""
35829 "Callbacks remain in effect until they are deleted, or until the handle is "
35830 "closed."
35831 msgstr ""
35832
35833 #. type: textblock
35834 #: ../src/guestfs.pod:1914
35835 msgid ""
35836 "In the case where multiple callbacks are registered for a particular event "
35837 "class, all of the callbacks are called.  The order in which multiple "
35838 "callbacks are called is not defined."
35839 msgstr ""
35840
35841 #. type: =head3
35842 #: ../src/guestfs.pod:1918
35843 msgid "guestfs_delete_event_callback"
35844 msgstr ""
35845
35846 #. type: verbatim
35847 #: ../src/guestfs.pod:1920
35848 #, no-wrap
35849 msgid ""
35850 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
35851 "\n"
35852 msgstr ""
35853
35854 #. type: textblock
35855 #: ../src/guestfs.pod:1922
35856 msgid ""
35857 "Delete a callback that was previously registered.  C<event_handle> should be "
35858 "the integer that was returned by a previous call to "
35859 "C<guestfs_set_event_callback> on the same handle."
35860 msgstr ""
35861
35862 #. type: =head3
35863 #: ../src/guestfs.pod:1926
35864 msgid "guestfs_event_callback"
35865 msgstr ""
35866
35867 #. type: verbatim
35868 #: ../src/guestfs.pod:1928
35869 #, no-wrap
35870 msgid ""
35871 " typedef void (*guestfs_event_callback) (\n"
35872 "                  guestfs_h *g,\n"
35873 "                  void *opaque,\n"
35874 "                  uint64_t event,\n"
35875 "                  int event_handle,\n"
35876 "                  int flags,\n"
35877 "                  const char *buf, size_t buf_len,\n"
35878 "                  const uint64_t *array, size_t array_len);\n"
35879 "\n"
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:1937
35884 msgid ""
35885 "This is the type of the event callback function that you have to provide."
35886 msgstr ""
35887
35888 #. type: textblock
35889 #: ../src/guestfs.pod:1940
35890 msgid ""
35891 "The basic parameters are: the handle (C<g>), the opaque user pointer "
35892 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
35893 "handle, and C<flags> which in the current API you should ignore."
35894 msgstr ""
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:1944
35898 msgid ""
35899 "The remaining parameters contain the event payload (if any).  Each event may "
35900 "contain a payload, which usually relates to the event class, but for future "
35901 "proofing your code should be written to handle any payload for any event "
35902 "class."
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:1949
35907 msgid ""
35908 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
35909 "there is no message buffer).  Note that this message buffer can contain "
35910 "arbitrary 8 bit data, including NUL bytes."
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../src/guestfs.pod:1953
35915 msgid ""
35916 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
35917 "moment this is only used for progress messages."
35918 msgstr ""
35919
35920 #. type: =head3
35921 #: ../src/guestfs.pod:1956
35922 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
35923 msgstr ""
35924
35925 #. type: textblock
35926 #: ../src/guestfs.pod:1958
35927 msgid ""
35928 "One motivation for the generic event API was to allow GUI programs to "
35929 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
35930 "unconditionally to C<stderr>."
35931 msgstr ""
35932
35933 #. type: textblock
35934 #: ../src/guestfs.pod:1962
35935 msgid ""
35936 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
35937 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
35938 "messages are not events; you must capture error messages separately)."
35939 msgstr ""
35940
35941 #. type: textblock
35942 #: ../src/guestfs.pod:1967
35943 msgid ""
35944 "Programs have to set up a callback to capture the classes of events of "
35945 "interest:"
35946 msgstr ""
35947
35948 #. type: verbatim
35949 #: ../src/guestfs.pod:1970
35950 #, no-wrap
35951 msgid ""
35952 " int eh =\n"
35953 "   guestfs_set_event_callback\n"
35954 "     (g, message_callback,\n"
35955 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
35956 "      GUESTFS_EVENT_TRACE,\n"
35957 "      0, NULL) == -1)\n"
35958 " if (eh == -1) {\n"
35959 "   // handle error in the usual way\n"
35960 " }\n"
35961 "\n"
35962 msgstr ""
35963
35964 #. type: textblock
35965 #: ../src/guestfs.pod:1980
35966 msgid ""
35967 "The callback can then direct messages to the appropriate place.  In this "
35968 "example, messages are directed to syslog:"
35969 msgstr ""
35970
35971 #. type: verbatim
35972 #: ../src/guestfs.pod:1983
35973 #, no-wrap
35974 msgid ""
35975 " static void\n"
35976 " message_callback (\n"
35977 "         guestfs_h *g,\n"
35978 "         void *opaque,\n"
35979 "         uint64_t event,\n"
35980 "         int event_handle,\n"
35981 "         int flags,\n"
35982 "         const char *buf, size_t buf_len,\n"
35983 "         const uint64_t *array, size_t array_len)\n"
35984 " {\n"
35985 "   const int priority = LOG_USER|LOG_INFO;\n"
35986 "   if (buf_len > 0)\n"
35987 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
35988 " }\n"
35989 "\n"
35990 msgstr ""
35991
35992 #. type: =head1
35993 #: ../src/guestfs.pod:1998
35994 msgid "CANCELLING LONG TRANSFERS"
35995 msgstr ""
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:2000
35999 msgid ""
36000 "Some operations can be cancelled by the caller while they are in progress.  "
36001 "Currently only operations that involve uploading or downloading data can be "
36002 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36003 "parameters in the generator)."
36004 msgstr ""
36005
36006 #. type: =head2
36007 #: ../src/guestfs.pod:2005
36008 msgid "guestfs_user_cancel"
36009 msgstr ""
36010
36011 #. type: verbatim
36012 #: ../src/guestfs.pod:2007
36013 #, no-wrap
36014 msgid ""
36015 " void guestfs_user_cancel (guestfs_h *g);\n"
36016 "\n"
36017 msgstr ""
36018
36019 #. type: textblock
36020 #: ../src/guestfs.pod:2009
36021 msgid ""
36022 "C<guestfs_user_cancel> cancels the current upload or download operation."
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:2012
36027 msgid ""
36028 "Unlike most other libguestfs calls, this function is signal safe and thread "
36029 "safe.  You can call it from a signal handler or from another thread, without "
36030 "needing to do any locking."
36031 msgstr ""
36032
36033 #. type: textblock
36034 #: ../src/guestfs.pod:2016
36035 msgid ""
36036 "The transfer that was in progress (if there is one) will stop shortly "
36037 "afterwards, and will return an error.  The errno (see L</"
36038 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36039 "out if the operation was cancelled or failed because of another error."
36040 msgstr ""
36041
36042 #. type: textblock
36043 #: ../src/guestfs.pod:2022
36044 msgid ""
36045 "No cleanup is performed: for example, if a file was being uploaded then "
36046 "after cancellation there may be a partially uploaded file.  It is the "
36047 "caller's responsibility to clean up if necessary."
36048 msgstr ""
36049
36050 #. type: textblock
36051 #: ../src/guestfs.pod:2026
36052 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36053 msgstr ""
36054
36055 #. type: textblock
36056 #: ../src/guestfs.pod:2028
36057 msgid ""
36058 "In an interactive text-based program, you might call it from a C<SIGINT> "
36059 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36060 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36061 "receive the C<^C> signal)."
36062 msgstr ""
36063
36064 #. type: textblock
36065 #: ../src/guestfs.pod:2033
36066 msgid ""
36067 "In a graphical program, when the main thread is displaying a progress bar "
36068 "with a cancel button, wire up the cancel button to call this function."
36069 msgstr ""
36070
36071 #. type: =head1
36072 #: ../src/guestfs.pod:2037
36073 msgid "PRIVATE DATA AREA"
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:2039
36078 msgid ""
36079 "You can attach named pieces of private data to the libguestfs handle, fetch "
36080 "them by name, and walk over them, for the lifetime of the handle.  This is "
36081 "called the private data area and is only available from the C API."
36082 msgstr ""
36083
36084 #. type: textblock
36085 #: ../src/guestfs.pod:2044
36086 msgid "To attach a named piece of data, use the following call:"
36087 msgstr ""
36088
36089 #. type: verbatim
36090 #: ../src/guestfs.pod:2046
36091 #, no-wrap
36092 msgid ""
36093 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36094 "\n"
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs.pod:2048
36099 msgid ""
36100 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36101 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36102 "overwritten."
36103 msgstr ""
36104
36105 #. type: textblock
36106 #: ../src/guestfs.pod:2052
36107 msgid ""
36108 "You can use any C<key> you want, but your key should I<not> start with an "
36109 "underscore character.  Keys beginning with an underscore character are "
36110 "reserved for internal libguestfs purposes (eg. for implementing language "
36111 "bindings).  It is recommended that you prefix the key with some unique "
36112 "string to avoid collisions with other users."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:2058
36117 msgid "To retrieve the pointer, use:"
36118 msgstr ""
36119
36120 #. type: verbatim
36121 #: ../src/guestfs.pod:2060
36122 #, no-wrap
36123 msgid ""
36124 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36125 "\n"
36126 msgstr ""
36127
36128 #. type: textblock
36129 #: ../src/guestfs.pod:2062
36130 msgid ""
36131 "This function returns C<NULL> if either no data is found associated with "
36132 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36133 "C<NULL>."
36134 msgstr ""
36135
36136 #. type: textblock
36137 #: ../src/guestfs.pod:2066
36138 msgid ""
36139 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36140 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36141 "all.  In particular, libguestfs does I<not> try to free the data when the "
36142 "handle is closed.  If the data must be freed, then the caller must either "
36143 "free it before calling L</guestfs_close> or must set up a close callback to "
36144 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:2073
36149 msgid "To walk over all entries, use these two functions:"
36150 msgstr ""
36151
36152 #. type: verbatim
36153 #: ../src/guestfs.pod:2075
36154 #, no-wrap
36155 msgid ""
36156 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36157 "\n"
36158 msgstr ""
36159
36160 #. type: verbatim
36161 #: ../src/guestfs.pod:2077
36162 #, no-wrap
36163 msgid ""
36164 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36165 "\n"
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:2079
36170 msgid ""
36171 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36172 "not have any particular meaning -- keys are not returned in any defined "
36173 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36174 "corresponding data pointer is returned from the function.  C<NULL> is "
36175 "returned if there are no keys stored in the handle."
36176 msgstr ""
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:2085
36180 msgid ""
36181 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36182 "value of this function is also C<NULL> is there are no further entries to "
36183 "return."
36184 msgstr ""
36185
36186 #. type: textblock
36187 #: ../src/guestfs.pod:2089
36188 msgid "Notes about walking over entries:"
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../src/guestfs.pod:2095
36193 msgid ""
36194 "You must not call C<guestfs_set_private> while walking over the entries."
36195 msgstr ""
36196
36197 #. type: textblock
36198 #: ../src/guestfs.pod:2100
36199 msgid ""
36200 "The handle maintains an internal iterator which is reset when you call "
36201 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36202 "call C<guestfs_set_private>."
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:2106
36207 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36208 msgstr ""
36209
36210 #. type: verbatim
36211 #: ../src/guestfs.pod:2108
36212 #, no-wrap
36213 msgid ""
36214 " guestfs_set_private (g, key, NULL);\n"
36215 "\n"
36216 msgstr ""
36217
36218 #. type: textblock
36219 #: ../src/guestfs.pod:2110
36220 msgid "then that C<key> is not returned when walking."
36221 msgstr ""
36222
36223 #. type: textblock
36224 #: ../src/guestfs.pod:2114
36225 msgid ""
36226 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36227 "C<guestfs_next_private> or C<guestfs_set_private>."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:2120
36232 msgid ""
36233 "The following example code shows how to print all keys and data pointers "
36234 "that are associated with the handle C<g>:"
36235 msgstr ""
36236
36237 #. type: verbatim
36238 #: ../src/guestfs.pod:2123
36239 #, no-wrap
36240 msgid ""
36241 " const char *key;\n"
36242 " void *data = guestfs_first_private (g, &key);\n"
36243 " while (data != NULL)\n"
36244 "   {\n"
36245 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36246 "     data = guestfs_next_private (g, &key);\n"
36247 "   }\n"
36248 "\n"
36249 msgstr ""
36250
36251 #. type: textblock
36252 #: ../src/guestfs.pod:2131
36253 msgid ""
36254 "More commonly you are only interested in keys that begin with an application-"
36255 "specific prefix C<foo_>.  Modify the loop like so:"
36256 msgstr ""
36257
36258 #. type: verbatim
36259 #: ../src/guestfs.pod:2134
36260 #, no-wrap
36261 msgid ""
36262 " const char *key;\n"
36263 " void *data = guestfs_first_private (g, &key);\n"
36264 " while (data != NULL)\n"
36265 "   {\n"
36266 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36267 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36268 "     data = guestfs_next_private (g, &key);\n"
36269 "   }\n"
36270 "\n"
36271 msgstr ""
36272
36273 #. type: textblock
36274 #: ../src/guestfs.pod:2143
36275 msgid ""
36276 "If you need to modify keys while walking, then you have to jump back to the "
36277 "beginning of the loop.  For example, to delete all keys prefixed with "
36278 "C<foo_>:"
36279 msgstr ""
36280
36281 #. type: verbatim
36282 #: ../src/guestfs.pod:2147
36283 #, no-wrap
36284 msgid ""
36285 "  const char *key;\n"
36286 "  void *data;\n"
36287 " again:\n"
36288 "  data = guestfs_first_private (g, &key);\n"
36289 "  while (data != NULL)\n"
36290 "    {\n"
36291 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36292 "        {\n"
36293 "          guestfs_set_private (g, key, NULL);\n"
36294 "          /* note that 'key' pointer is now invalid, and so is\n"
36295 "             the internal iterator */\n"
36296 "          goto again;\n"
36297 "        }\n"
36298 "      data = guestfs_next_private (g, &key);\n"
36299 "    }\n"
36300 "\n"
36301 msgstr ""
36302
36303 #. type: textblock
36304 #: ../src/guestfs.pod:2163
36305 msgid ""
36306 "Note that the above loop is guaranteed to terminate because the keys are "
36307 "being deleted, but other manipulations of keys within the loop might not "
36308 "terminate unless you also maintain an indication of which keys have been "
36309 "visited."
36310 msgstr ""
36311
36312 #. type: =end
36313 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
36314 msgid "html"
36315 msgstr ""
36316
36317 #. type: textblock
36318 #: ../src/guestfs.pod:2170
36319 msgid ""
36320 "<!-- old anchor for the next section --> <a name="
36321 "\"state_machine_and_low_level_event_api\"/>"
36322 msgstr ""
36323
36324 #. type: =head1
36325 #: ../src/guestfs.pod:2175
36326 msgid "ARCHITECTURE"
36327 msgstr ""
36328
36329 #. type: textblock
36330 #: ../src/guestfs.pod:2177
36331 msgid ""
36332 "Internally, libguestfs is implemented by running an appliance (a special "
36333 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36334 "process of the main program."
36335 msgstr ""
36336
36337 #. type: verbatim
36338 #: ../src/guestfs.pod:2181
36339 #, no-wrap
36340 msgid ""
36341 "  ___________________\n"
36342 " /                   \\\n"
36343 " | main program      |\n"
36344 " |                   |\n"
36345 " |                   |           child process / appliance\n"
36346 " |                   |           __________________________\n"
36347 " |                   |          / qemu                     \\\n"
36348 " +-------------------+   RPC    |      +-----------------+ |\n"
36349 " | libguestfs     <--------------------> guestfsd        | |\n"
36350 " |                   |          |      +-----------------+ |\n"
36351 " \\___________________/          |      | Linux kernel    | |\n"
36352 "                                |      +--^--------------+ |\n"
36353 "                                \\_________|________________/\n"
36354 "                                          |\n"
36355 "                                   _______v______\n"
36356 "                                  /              \\\n"
36357 "                                  | Device or    |\n"
36358 "                                  | disk image   |\n"
36359 "                                  \\______________/\n"
36360 "\n"
36361 msgstr ""
36362
36363 #. type: textblock
36364 #: ../src/guestfs.pod:2201
36365 msgid ""
36366 "The library, linked to the main program, creates the child process and hence "
36367 "the appliance in the L</guestfs_launch> function."
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:2204
36372 msgid ""
36373 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36374 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36375 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36376 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36377 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36378 "attached to the qemu process which translates device access by the "
36379 "appliance's Linux kernel into accesses to the image."
36380 msgstr ""
36381
36382 #. type: textblock
36383 #: ../src/guestfs.pod:2213
36384 msgid ""
36385 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36386 "Although the disk image you are attached to might also be used by some "
36387 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36388 "care if both libguestfs's qemu process and your virtual machine are trying "
36389 "to update the disk image at the same time, since these usually results in "
36390 "massive disk corruption)."
36391 msgstr ""
36392
36393 #. type: =head1
36394 #: ../src/guestfs.pod:2220
36395 msgid "STATE MACHINE"
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:2222
36400 msgid "libguestfs uses a state machine to model the child process:"
36401 msgstr ""
36402
36403 #. type: verbatim
36404 #: ../src/guestfs.pod:2224
36405 #, no-wrap
36406 msgid ""
36407 "                         |\n"
36408 "                    guestfs_create\n"
36409 "                         |\n"
36410 "                         |\n"
36411 "                     ____V_____\n"
36412 "                    /          \\\n"
36413 "                    |  CONFIG  |\n"
36414 "                    \\__________/\n"
36415 "                     ^ ^   ^  \\\n"
36416 "                    /  |    \\  \\ guestfs_launch\n"
36417 "                   /   |    _\\__V______\n"
36418 "                  /    |   /           \\\n"
36419 "                 /     |   | LAUNCHING |\n"
36420 "                /      |   \\___________/\n"
36421 "               /       |       /\n"
36422 "              /        |  guestfs_launch\n"
36423 "             /         |     /\n"
36424 "    ______  /        __|____V\n"
36425 "   /      \\ ------> /        \\\n"
36426 "   | BUSY |         | READY  |\n"
36427 "   \\______/ <------ \\________/\n"
36428 "\n"
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:2246
36433 msgid ""
36434 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36435 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36436 "(3) alternating between READY and BUSY as commands are issued to, and "
36437 "carried out by, the child process."
36438 msgstr ""
36439
36440 #. type: textblock
36441 #: ../src/guestfs.pod:2251
36442 msgid ""
36443 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36444 "asynchronously at any time (eg. due to some internal error), and that causes "
36445 "the state to transition back to CONFIG."
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:2255
36450 msgid ""
36451 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36452 "issued when in the CONFIG state."
36453 msgstr ""
36454
36455 #. type: textblock
36456 #: ../src/guestfs.pod:2258
36457 msgid ""
36458 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36459 "L</guestfs_launch> blocks until the child process is READY to accept "
36460 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36461 "moves the state from CONFIG to LAUNCHING while it is running."
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:2264
36466 msgid ""
36467 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36468 "state.  These API calls block waiting for the command to be carried out (ie. "
36469 "the state to transition to BUSY and then back to READY).  There are no non-"
36470 "blocking versions, and no way to issue more than one command per handle at "
36471 "the same time."
36472 msgstr ""
36473
36474 #. type: textblock
36475 #: ../src/guestfs.pod:2270
36476 msgid ""
36477 "Finally, the child process sends asynchronous messages back to the main "
36478 "program, such as kernel log messages.  You can register a callback to "
36479 "receive these messages."
36480 msgstr ""
36481
36482 #. type: =head1
36483 #: ../src/guestfs.pod:2274
36484 msgid "INTERNALS"
36485 msgstr ""
36486
36487 #. type: =head2
36488 #: ../src/guestfs.pod:2276
36489 msgid "APPLIANCE BOOT PROCESS"
36490 msgstr ""
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:2278
36494 msgid ""
36495 "This process has evolved and continues to evolve.  The description here "
36496 "corresponds only to the current version of libguestfs and is provided for "
36497 "information only."
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:2282
36502 msgid ""
36503 "In order to follow the stages involved below, enable libguestfs debugging "
36504 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36505 msgstr ""
36506
36507 #. type: =item
36508 #: ../src/guestfs.pod:2287
36509 msgid "Create the appliance"
36510 msgstr ""
36511
36512 #. type: textblock
36513 #: ../src/guestfs.pod:2289
36514 msgid ""
36515 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36516 "initrd and the appliance."
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:2292
36521 msgid ""
36522 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36523 "directory if C<TMPDIR> is set)."
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../src/guestfs.pod:2295
36528 msgid ""
36529 "For a complete description of how the appliance is created and cached, read "
36530 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36531 msgstr ""
36532
36533 #. type: =item
36534 #: ../src/guestfs.pod:2299
36535 msgid "Start qemu and boot the kernel"
36536 msgstr ""
36537
36538 #. type: textblock
36539 #: ../src/guestfs.pod:2301
36540 msgid "qemu is invoked to boot the kernel."
36541 msgstr ""
36542
36543 #. type: =item
36544 #: ../src/guestfs.pod:2303
36545 msgid "Run the initrd"
36546 msgstr ""
36547
36548 #. type: textblock
36549 #: ../src/guestfs.pod:2305
36550 msgid ""
36551 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
36552 "appliance.  The purpose of the initrd is to load enough kernel modules in "
36553 "order that the appliance itself can be mounted and started."
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../src/guestfs.pod:2309
36558 msgid ""
36559 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
36560 "initrd>."
36561 msgstr ""
36562
36563 #. type: textblock
36564 #: ../src/guestfs.pod:2312
36565 msgid ""
36566 "When the initrd has started you will see messages showing that kernel "
36567 "modules are being loaded, similar to this:"
36568 msgstr ""
36569
36570 #. type: verbatim
36571 #: ../src/guestfs.pod:2315
36572 #, no-wrap
36573 msgid ""
36574 " febootstrap: ext2 mini initrd starting up\n"
36575 " febootstrap: mounting /sys\n"
36576 " febootstrap: internal insmod libcrc32c.ko\n"
36577 " febootstrap: internal insmod crc32c-intel.ko\n"
36578 "\n"
36579 msgstr ""
36580
36581 #. type: =item
36582 #: ../src/guestfs.pod:2320
36583 msgid "Find and mount the appliance device"
36584 msgstr ""
36585
36586 #. type: textblock
36587 #: ../src/guestfs.pod:2322
36588 msgid ""
36589 "The appliance is a sparse file containing an ext2 filesystem which contains "
36590 "a familiar (although reduced in size) Linux operating system.  It would "
36591 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:2326
36596 msgid ""
36597 "The regular disks being inspected by libguestfs are the first devices "
36598 "exposed by qemu (eg. as C</dev/vda>)."
36599 msgstr ""
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:2329
36603 msgid ""
36604 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
36605 "there was only one regular disk)."
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:2332
36610 msgid ""
36611 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
36612 "and switch root into the appliance, and run C</init> from the appliance."
36613 msgstr ""
36614
36615 #. type: textblock
36616 #: ../src/guestfs.pod:2336
36617 msgid "If this works successfully you will see messages such as:"
36618 msgstr ""
36619
36620 #. type: verbatim
36621 #: ../src/guestfs.pod:2338
36622 #, no-wrap
36623 msgid ""
36624 " febootstrap: picked /sys/block/vdb/dev as root device\n"
36625 " febootstrap: creating /dev/root as block special 252:16\n"
36626 " febootstrap: mounting new root on /root\n"
36627 " febootstrap: chroot\n"
36628 " Starting /init script ...\n"
36629 "\n"
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:2344
36634 msgid ""
36635 "Note that C<Starting /init script ...> indicates that the appliance's init "
36636 "script is now running."
36637 msgstr ""
36638
36639 #. type: =item
36640 #: ../src/guestfs.pod:2347
36641 msgid "Initialize the appliance"
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../src/guestfs.pod:2349
36646 msgid ""
36647 "The appliance itself now initializes itself.  This involves starting certain "
36648 "processes like C<udev>, possibly printing some debug information, and "
36649 "finally running the daemon (C<guestfsd>)."
36650 msgstr ""
36651
36652 #. type: =item
36653 #: ../src/guestfs.pod:2353
36654 msgid "The daemon"
36655 msgstr ""
36656
36657 #. type: textblock
36658 #: ../src/guestfs.pod:2355
36659 msgid ""
36660 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
36661 "should see:"
36662 msgstr ""
36663
36664 #. type: verbatim
36665 #: ../src/guestfs.pod:2358
36666 #, no-wrap
36667 msgid ""
36668 " verbose daemon enabled\n"
36669 "\n"
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:2360
36674 msgid ""
36675 "The daemon expects to see a named virtio-serial port exposed by qemu and "
36676 "connected on the other end to the library."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:2363
36681 msgid ""
36682 "The daemon connects to this port (and hence to the library) and sends a four "
36683 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
36684 "protocol (see below)."
36685 msgstr ""
36686
36687 #. type: =head2
36688 #: ../src/guestfs.pod:2369
36689 msgid "COMMUNICATION PROTOCOL"
36690 msgstr ""
36691
36692 #. type: textblock
36693 #: ../src/guestfs.pod:2371
36694 msgid ""
36695 "Don't rely on using this protocol directly.  This section documents how it "
36696 "currently works, but it may change at any time."
36697 msgstr ""
36698
36699 #. type: textblock
36700 #: ../src/guestfs.pod:2374
36701 msgid ""
36702 "The protocol used to talk between the library and the daemon running inside "
36703 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36704 "1014, RFC 1832, RFC 4506)."
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:2378
36709 msgid ""
36710 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36711 "this file is automatically generated)."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../src/guestfs.pod:2381
36716 msgid ""
36717 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36718 "and C<FileOut> parameters, which are handled with very simple request/reply "
36719 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36720 "parameters, which use the same request and reply messages, but they may also "
36721 "be followed by files sent using a chunked encoding."
36722 msgstr ""
36723
36724 #. type: =head3
36725 #: ../src/guestfs.pod:2388
36726 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36727 msgstr ""
36728
36729 #. type: textblock
36730 #: ../src/guestfs.pod:2390
36731 msgid "For ordinary functions, the request message is:"
36732 msgstr ""
36733
36734 #. type: verbatim
36735 #: ../src/guestfs.pod:2392
36736 #, no-wrap
36737 msgid ""
36738 " total length (header + arguments,\n"
36739 "      but not including the length word itself)\n"
36740 " struct guestfs_message_header (encoded as XDR)\n"
36741 " struct guestfs_<foo>_args (encoded as XDR)\n"
36742 "\n"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:2397
36747 msgid ""
36748 "The total length field allows the daemon to allocate a fixed size buffer "
36749 "into which it slurps the rest of the message.  As a result, the total length "
36750 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36751 "effective size of any request is limited to somewhere under this size."
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:2403
36756 msgid ""
36757 "Note also that many functions don't take any arguments, in which case the "
36758 "C<guestfs_I<foo>_args> is completely omitted."
36759 msgstr ""
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:2406
36763 msgid ""
36764 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36765 "receiver knows what type of args structure to expect, or none at all."
36766 msgstr ""
36767
36768 #. type: textblock
36769 #: ../src/guestfs.pod:2410
36770 msgid ""
36771 "For functions that take optional arguments, the optional arguments are "
36772 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36773 "arguments.  A bitmask in the header indicates which optional arguments are "
36774 "meaningful.  The bitmask is also checked to see if it contains bits set "
36775 "which the daemon does not know about (eg. if more optional arguments were "
36776 "added in a later version of the library), and this causes the call to be "
36777 "rejected."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:2418
36782 msgid "The reply message for ordinary functions is:"
36783 msgstr ""
36784
36785 #. type: verbatim
36786 #: ../src/guestfs.pod:2420
36787 #, no-wrap
36788 msgid ""
36789 " total length (header + ret,\n"
36790 "      but not including the length word itself)\n"
36791 " struct guestfs_message_header (encoded as XDR)\n"
36792 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36793 "\n"
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../src/guestfs.pod:2425
36798 msgid ""
36799 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36800 "functions that return no formal return values."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:2428
36805 msgid ""
36806 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:2431
36811 msgid ""
36812 "In the case of an error, a flag is set in the header, and the reply message "
36813 "is slightly changed:"
36814 msgstr ""
36815
36816 #. type: verbatim
36817 #: ../src/guestfs.pod:2434
36818 #, no-wrap
36819 msgid ""
36820 " total length (header + error,\n"
36821 "      but not including the length word itself)\n"
36822 " struct guestfs_message_header (encoded as XDR)\n"
36823 " struct guestfs_message_error (encoded as XDR)\n"
36824 "\n"
36825 msgstr ""
36826
36827 #. type: textblock
36828 #: ../src/guestfs.pod:2439
36829 msgid ""
36830 "The C<guestfs_message_error> structure contains the error message as a "
36831 "string."
36832 msgstr ""
36833
36834 #. type: =head3
36835 #: ../src/guestfs.pod:2442
36836 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:2444
36841 msgid ""
36842 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36843 "The normal request message is sent (see above).  However this is followed by "
36844 "a sequence of file chunks."
36845 msgstr ""
36846
36847 #. type: verbatim
36848 #: ../src/guestfs.pod:2448
36849 #, no-wrap
36850 msgid ""
36851 " total length (header + arguments,\n"
36852 "      but not including the length word itself,\n"
36853 "      and not including the chunks)\n"
36854 " struct guestfs_message_header (encoded as XDR)\n"
36855 " struct guestfs_<foo>_args (encoded as XDR)\n"
36856 " sequence of chunks for FileIn param #0\n"
36857 " sequence of chunks for FileIn param #1 etc.\n"
36858 "\n"
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:2456
36863 msgid "The \"sequence of chunks\" is:"
36864 msgstr ""
36865
36866 #. type: verbatim
36867 #: ../src/guestfs.pod:2458
36868 #, no-wrap
36869 msgid ""
36870 " length of chunk (not including length word itself)\n"
36871 " struct guestfs_chunk (encoded as XDR)\n"
36872 " length of chunk\n"
36873 " struct guestfs_chunk (encoded as XDR)\n"
36874 "   ...\n"
36875 " length of chunk\n"
36876 " struct guestfs_chunk (with data.data_len == 0)\n"
36877 "\n"
36878 msgstr ""
36879
36880 #. type: textblock
36881 #: ../src/guestfs.pod:2466
36882 msgid ""
36883 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36884 "is set in the final chunk to indicate either successful completion or early "
36885 "cancellation."
36886 msgstr ""
36887
36888 #. type: textblock
36889 #: ../src/guestfs.pod:2470
36890 msgid ""
36891 "At time of writing there are no functions that have more than one FileIn "
36892 "parameter.  However this is (theoretically) supported, by sending the "
36893 "sequence of chunks for each FileIn parameter one after another (from left to "
36894 "right)."
36895 msgstr ""
36896
36897 #. type: textblock
36898 #: ../src/guestfs.pod:2475
36899 msgid ""
36900 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36901 "transfer.  The library does this by sending a chunk with a special flag set "
36902 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36903 "RPC, does I<not> send any reply, and goes back to reading the next request."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:2481
36908 msgid ""
36909 "The daemon may also cancel.  It does this by writing a special word "
36910 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36911 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36912 "cancel chunk).  The special word is chosen so that even if cancellation "
36913 "happens right at the end of the transfer (after the library has finished "
36914 "writing and has started listening for the reply), the \"spurious\" cancel "
36915 "flag will not be confused with the reply message."
36916 msgstr ""
36917
36918 #. type: textblock
36919 #: ../src/guestfs.pod:2490
36920 msgid ""
36921 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36922 "limit), and also files where the size is not known in advance (eg. from "
36923 "pipes or sockets).  However the chunks are rather small "
36924 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36925 "to keep much in memory."
36926 msgstr ""
36927
36928 #. type: =head3
36929 #: ../src/guestfs.pod:2496
36930 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36931 msgstr ""
36932
36933 #. type: textblock
36934 #: ../src/guestfs.pod:2498
36935 msgid ""
36936 "The protocol for FileOut parameters is exactly the same as for FileIn "
36937 "parameters, but with the roles of daemon and library reversed."
36938 msgstr ""
36939
36940 #. type: verbatim
36941 #: ../src/guestfs.pod:2501
36942 #, no-wrap
36943 msgid ""
36944 " total length (header + ret,\n"
36945 "      but not including the length word itself,\n"
36946 "      and not including the chunks)\n"
36947 " struct guestfs_message_header (encoded as XDR)\n"
36948 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36949 " sequence of chunks for FileOut param #0\n"
36950 " sequence of chunks for FileOut param #1 etc.\n"
36951 "\n"
36952 msgstr ""
36953
36954 #. type: =head3
36955 #: ../src/guestfs.pod:2509
36956 msgid "INITIAL MESSAGE"
36957 msgstr ""
36958
36959 #. type: textblock
36960 #: ../src/guestfs.pod:2511
36961 msgid ""
36962 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36963 "which indicates that the guest and daemon is alive.  This is what L</"
36964 "guestfs_launch> waits for."
36965 msgstr ""
36966
36967 #. type: =head3
36968 #: ../src/guestfs.pod:2515
36969 msgid "PROGRESS NOTIFICATION MESSAGES"
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../src/guestfs.pod:2517
36974 msgid ""
36975 "The daemon may send progress notification messages at any time.  These are "
36976 "distinguished by the normal length word being replaced by "
36977 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:2521
36982 msgid ""
36983 "The library turns them into progress callbacks (see L</"
36984 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
36985 "if not."
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../src/guestfs.pod:2525
36990 msgid ""
36991 "The daemon self-limits the frequency of progress messages it sends (see "
36992 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
36993 "messages."
36994 msgstr ""
36995
36996 #. type: =head1
36997 #: ../src/guestfs.pod:2529
36998 msgid "LIBGUESTFS VERSION NUMBERS"
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../src/guestfs.pod:2531
37003 msgid ""
37004 "Since April 2010, libguestfs has started to make separate development and "
37005 "stable releases, along with corresponding branches in our git repository.  "
37006 "These separate releases can be identified by version number:"
37007 msgstr ""
37008
37009 #. type: verbatim
37010 #: ../src/guestfs.pod:2536
37011 #, no-wrap
37012 msgid ""
37013 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37014 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37015 "       |\n"
37016 "       v\n"
37017 " 1  .  3  .  5\n"
37018 " ^           ^\n"
37019 " |           |\n"
37020 " |           `-------- sub-version\n"
37021 " |\n"
37022 " `------ always '1' because we don't change the ABI\n"
37023 "\n"
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../src/guestfs.pod:2547
37028 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../src/guestfs.pod:2549
37033 msgid ""
37034 "As time passes we cherry pick fixes from the development branch and backport "
37035 "those into the stable branch, the effect being that the stable branch should "
37036 "get more stable and less buggy over time.  So the stable releases are ideal "
37037 "for people who don't need new features but would just like the software to "
37038 "work."
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../src/guestfs.pod:2555
37043 msgid "Our criteria for backporting changes are:"
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../src/guestfs.pod:2561
37048 msgid ""
37049 "Documentation changes which don't affect any code are backported unless the "
37050 "documentation refers to a future feature which is not in stable."
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../src/guestfs.pod:2567
37055 msgid ""
37056 "Bug fixes which are not controversial, fix obvious problems, and have been "
37057 "well tested are backported."
37058 msgstr ""
37059
37060 #. type: textblock
37061 #: ../src/guestfs.pod:2572
37062 msgid ""
37063 "Simple rearrangements of code which shouldn't affect how it works get "
37064 "backported.  This is so that the code in the two branches doesn't get too "
37065 "far out of step, allowing us to backport future fixes more easily."
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:2578
37070 msgid ""
37071 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37072 "exceptional case: the new feature is required in order to implement an "
37073 "important bug fix."
37074 msgstr ""
37075
37076 #. type: textblock
37077 #: ../src/guestfs.pod:2584
37078 msgid ""
37079 "A new stable branch starts when we think the new features in development are "
37080 "substantial and compelling enough over the current stable branch to warrant "
37081 "it.  When that happens we create new stable and development versions 1.N.0 "
37082 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37083 "stable at this point, but by backporting fixes from development, that branch "
37084 "will stabilize over time."
37085 msgstr ""
37086
37087 #. type: =head1
37088 #: ../src/guestfs.pod:2592
37089 msgid "EXTENDING LIBGUESTFS"
37090 msgstr ""
37091
37092 #. type: =head2
37093 #: ../src/guestfs.pod:2594
37094 msgid "ADDING A NEW API ACTION"
37095 msgstr ""
37096
37097 #. type: textblock
37098 #: ../src/guestfs.pod:2596
37099 msgid ""
37100 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37101 "documentation) are generated, and this makes it easy to extend the "
37102 "libguestfs API."
37103 msgstr ""
37104
37105 #. type: textblock
37106 #: ../src/guestfs.pod:2600
37107 msgid "To add a new API action there are two changes:"
37108 msgstr ""
37109
37110 #. type: textblock
37111 #: ../src/guestfs.pod:2606
37112 msgid ""
37113 "You need to add a description of the call (name, parameters, return type, "
37114 "tests, documentation) to C<generator/generator_actions.ml>."
37115 msgstr ""
37116
37117 #. type: textblock
37118 #: ../src/guestfs.pod:2609
37119 msgid ""
37120 "There are two sorts of API action, depending on whether the call goes "
37121 "through to the daemon in the appliance, or is serviced entirely by the "
37122 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37123 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37124 "an example of the latter, since a trace flag is maintained in the handle and "
37125 "all tracing is done on the library side."
37126 msgstr ""
37127
37128 #. type: textblock
37129 #: ../src/guestfs.pod:2617
37130 msgid ""
37131 "Most new actions are of the first type, and get added to the "
37132 "C<daemon_functions> list.  Each function has a unique procedure number used "
37133 "in the RPC protocol which is assigned to that action when we publish "
37134 "libguestfs and cannot be reused.  Take the latest procedure number and "
37135 "increment it."
37136 msgstr ""
37137
37138 #. type: textblock
37139 #: ../src/guestfs.pod:2623
37140 msgid ""
37141 "For library-only actions of the second type, add to the "
37142 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37143 "library and do not travel over the RPC mechanism to the daemon, these "
37144 "functions do not need a procedure number, and so the procedure number is set "
37145 "to C<-1>."
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:2631
37150 msgid "Implement the action (in C):"
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../src/guestfs.pod:2633
37155 msgid ""
37156 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37157 "C<daemon/> directory."
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:2636
37162 msgid ""
37163 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37164 "(note: double underscore) in the C<src/> directory."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:2639
37169 msgid "In either case, use another function as an example of what to do."
37170 msgstr ""
37171
37172 #. type: textblock
37173 #: ../src/guestfs.pod:2643
37174 msgid "After making these changes, use C<make> to compile."
37175 msgstr ""
37176
37177 #. type: textblock
37178 #: ../src/guestfs.pod:2645
37179 msgid ""
37180 "Note that you don't need to implement the RPC, language bindings, manual "
37181 "pages or anything else.  It's all automatically generated from the OCaml "
37182 "description."
37183 msgstr ""
37184
37185 #. type: =head2
37186 #: ../src/guestfs.pod:2649
37187 msgid "ADDING TESTS FOR AN API ACTION"
37188 msgstr ""
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:2651
37192 msgid ""
37193 "You can supply zero or as many tests as you want per API call.  The tests "
37194 "can either be added as part of the API description (C<generator/"
37195 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37196 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37197 "slower, so if possible use the first method."
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:2657
37202 msgid ""
37203 "The following describes the test environment used when you add an API test "
37204 "in C<generator_actions.ml>."
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../src/guestfs.pod:2660
37209 msgid "The test environment has 4 block devices:"
37210 msgstr ""
37211
37212 #. type: =item
37213 #: ../src/guestfs.pod:2664
37214 msgid "C</dev/sda> 500MB"
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:2666
37219 msgid "General block device for testing."
37220 msgstr ""
37221
37222 #. type: =item
37223 #: ../src/guestfs.pod:2668
37224 msgid "C</dev/sdb> 50MB"
37225 msgstr ""
37226
37227 #. type: textblock
37228 #: ../src/guestfs.pod:2670
37229 msgid ""
37230 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37231 "operations."
37232 msgstr ""
37233
37234 #. type: =item
37235 #: ../src/guestfs.pod:2673
37236 msgid "C</dev/sdc> 10MB"
37237 msgstr ""
37238
37239 #. type: textblock
37240 #: ../src/guestfs.pod:2675
37241 msgid "Used in a few tests where two block devices are needed."
37242 msgstr ""
37243
37244 #. type: =item
37245 #: ../src/guestfs.pod:2677
37246 msgid "C</dev/sdd>"
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../src/guestfs.pod:2679
37251 msgid "ISO with fixed content (see C<images/test.iso>)."
37252 msgstr ""
37253
37254 #. type: textblock
37255 #: ../src/guestfs.pod:2683
37256 msgid ""
37257 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37258 "appliance and block devices are reused between tests.  So don't try testing "
37259 "L</guestfs_kill_subprocess> :-x"
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:2687
37264 msgid ""
37265 "Each test starts with an initial scenario, selected using one of the "
37266 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37267 "initialize the disks mentioned above in a particular way as documented in "
37268 "C<generator_types.ml>.  You should not assume anything about the previous "
37269 "contents of other disks that are not initialized."
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../src/guestfs.pod:2693
37274 msgid ""
37275 "You can add a prerequisite clause to any individual test.  This is a run-"
37276 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37277 "testing a command which might not work on all variations of libguestfs "
37278 "builds.  A test that has prerequisite of C<Always> means to run "
37279 "unconditionally."
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../src/guestfs.pod:2699
37284 msgid ""
37285 "In addition, packagers can skip individual tests by setting environment "
37286 "variables before running C<make check>."
37287 msgstr ""
37288
37289 #. type: verbatim
37290 #: ../src/guestfs.pod:2702
37291 #, no-wrap
37292 msgid ""
37293 " SKIP_TEST_<CMD>_<NUM>=1\n"
37294 "\n"
37295 msgstr ""
37296
37297 #. type: textblock
37298 #: ../src/guestfs.pod:2704
37299 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37300 msgstr ""
37301
37302 #. type: textblock
37303 #: ../src/guestfs.pod:2706
37304 msgid "or:"
37305 msgstr ""
37306
37307 #. type: verbatim
37308 #: ../src/guestfs.pod:2708
37309 #, no-wrap
37310 msgid ""
37311 " SKIP_TEST_<CMD>=1\n"
37312 "\n"
37313 msgstr ""
37314
37315 #. type: textblock
37316 #: ../src/guestfs.pod:2710
37317 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37318 msgstr ""
37319
37320 #. type: textblock
37321 #: ../src/guestfs.pod:2712
37322 msgid "Packagers can run only certain tests by setting for example:"
37323 msgstr ""
37324
37325 #. type: verbatim
37326 #: ../src/guestfs.pod:2714
37327 #, no-wrap
37328 msgid ""
37329 " TEST_ONLY=\"vfs_type zerofree\"\n"
37330 "\n"
37331 msgstr ""
37332
37333 #. type: textblock
37334 #: ../src/guestfs.pod:2716
37335 msgid ""
37336 "See C<capitests/tests.c> for more details of how these environment variables "
37337 "work."
37338 msgstr ""
37339
37340 #. type: =head2
37341 #: ../src/guestfs.pod:2719
37342 msgid "DEBUGGING NEW API ACTIONS"
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:2721
37347 msgid "Test new actions work before submitting them."
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../src/guestfs.pod:2723
37352 msgid "You can use guestfish to try out new commands."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2725
37357 msgid ""
37358 "Debugging the daemon is a problem because it runs inside a minimal "
37359 "environment.  However you can fprintf messages in the daemon to stderr, and "
37360 "they will show up if you use C<guestfish -v>."
37361 msgstr ""
37362
37363 #. type: =head2
37364 #: ../src/guestfs.pod:2729
37365 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:2731
37370 msgid ""
37371 "Our C source code generally adheres to some basic code-formatting "
37372 "conventions.  The existing code base is not totally consistent on this "
37373 "front, but we do prefer that contributed code be formatted similarly.  In "
37374 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37375 "indentation level, and other than that, follow the K&R style."
37376 msgstr ""
37377
37378 #. type: textblock
37379 #: ../src/guestfs.pod:2737
37380 msgid ""
37381 "If you use Emacs, add the following to one of one of your start-up files (e."
37382 "g., ~/.emacs), to help ensure that you get indentation right:"
37383 msgstr ""
37384
37385 #. type: verbatim
37386 #: ../src/guestfs.pod:2740
37387 #, no-wrap
37388 msgid ""
37389 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37390 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37391 " (add-hook 'find-file-hook\n"
37392 "     '(lambda () (if (and buffer-file-name\n"
37393 "                          (string-match \"/libguestfs\\\\>\"\n"
37394 "                              (buffer-file-name))\n"
37395 "                          (not (string-equal mode-name \"Change Log\"))\n"
37396 "                          (not (string-equal mode-name \"Makefile\")))\n"
37397 "                     (setq indent-tabs-mode nil))))\n"
37398 " \n"
37399 msgstr ""
37400
37401 #. type: verbatim
37402 #: ../src/guestfs.pod:2750
37403 #, no-wrap
37404 msgid ""
37405 " ;;; When editing C sources in libguestfs, use this style.\n"
37406 " (defun libguestfs-c-mode ()\n"
37407 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37408 "   (interactive)\n"
37409 "   (c-set-style \"K&R\")\n"
37410 "   (setq c-indent-level 2)\n"
37411 "   (setq c-basic-offset 2))\n"
37412 " (add-hook 'c-mode-hook\n"
37413 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37414 "                               (buffer-file-name))\n"
37415 "                           (libguestfs-c-mode))))\n"
37416 "\n"
37417 msgstr ""
37418
37419 #. type: textblock
37420 #: ../src/guestfs.pod:2762
37421 msgid "Enable warnings when compiling (and fix any problems this finds):"
37422 msgstr ""
37423
37424 #. type: verbatim
37425 #: ../src/guestfs.pod:2765
37426 #, no-wrap
37427 msgid ""
37428 " ./configure --enable-gcc-warnings\n"
37429 "\n"
37430 msgstr ""
37431
37432 #. type: textblock
37433 #: ../src/guestfs.pod:2767
37434 msgid "Useful targets are:"
37435 msgstr ""
37436
37437 #. type: verbatim
37438 #: ../src/guestfs.pod:2769
37439 #, no-wrap
37440 msgid ""
37441 " make syntax-check  # checks the syntax of the C code\n"
37442 " make check         # runs the test suite\n"
37443 "\n"
37444 msgstr ""
37445
37446 #. type: =head2
37447 #: ../src/guestfs.pod:2772
37448 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37449 msgstr ""
37450
37451 #. type: textblock
37452 #: ../src/guestfs.pod:2774
37453 msgid ""
37454 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37455 "which are used to do shell quoting."
37456 msgstr ""
37457
37458 #. type: =item
37459 #: ../src/guestfs.pod:2779
37460 msgid "%Q"
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:2781
37465 msgid ""
37466 "Simple shell quoted string.  Any spaces or other shell characters are "
37467 "escaped for you."
37468 msgstr ""
37469
37470 #. type: =item
37471 #: ../src/guestfs.pod:2784
37472 msgid "%R"
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:2786
37477 msgid ""
37478 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37479 "the sysroot."
37480 msgstr ""
37481
37482 #. type: verbatim
37483 #: ../src/guestfs.pod:2793
37484 #, no-wrap
37485 msgid ""
37486 " asprintf (&cmd, \"cat %R\", path);\n"
37487 "\n"
37488 msgstr ""
37489
37490 #. type: textblock
37491 #: ../src/guestfs.pod:2795
37492 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../src/guestfs.pod:2797
37497 msgid ""
37498 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37499 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37500 "they are not passed via the shell (instead, straight to exec).  You probably "
37501 "want to use the C<sysroot_path()> function however."
37502 msgstr ""
37503
37504 #. type: =head2
37505 #: ../src/guestfs.pod:2803
37506 msgid "SUBMITTING YOUR NEW API ACTIONS"
37507 msgstr ""
37508
37509 #. type: textblock
37510 #: ../src/guestfs.pod:2805
37511 msgid ""
37512 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37513 "libguestfs> and CC to L<rjones@redhat.com>."
37514 msgstr ""
37515
37516 #. type: =head2
37517 #: ../src/guestfs.pod:2809
37518 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:2811
37523 msgid "We support i18n (gettext anyhow) in the library."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:2813
37528 msgid ""
37529 "However many messages come from the daemon, and we don't translate those at "
37530 "the moment.  One reason is that the appliance generally has all locale files "
37531 "removed from it, because they take up a lot of space.  So we'd have to readd "
37532 "some of those, as well as copying our PO files into the appliance."
37533 msgstr ""
37534
37535 #. type: textblock
37536 #: ../src/guestfs.pod:2819
37537 msgid ""
37538 "Debugging messages are never translated, since they are intended for the "
37539 "programmers."
37540 msgstr ""
37541
37542 #. type: =head2
37543 #: ../src/guestfs.pod:2822
37544 msgid "SOURCE CODE SUBDIRECTORIES"
37545 msgstr ""
37546
37547 #. type: =item
37548 #: ../src/guestfs.pod:2826
37549 msgid "C<align>"
37550 msgstr ""
37551
37552 #. type: textblock
37553 #: ../src/guestfs.pod:2828
37554 msgid "L<virt-alignment-scan(1)> command and documentation."
37555 msgstr ""
37556
37557 #. type: textblock
37558 #: ../src/guestfs.pod:2832
37559 msgid "The libguestfs appliance, build scripts and so on."
37560 msgstr ""
37561
37562 #. type: =item
37563 #: ../src/guestfs.pod:2834
37564 msgid "C<capitests>"
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:2836
37569 msgid "Automated tests of the C API."
37570 msgstr ""
37571
37572 #. type: =item
37573 #: ../src/guestfs.pod:2838
37574 msgid "C<cat>"
37575 msgstr ""
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:2840
37579 msgid ""
37580 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37581 "documentation."
37582 msgstr ""
37583
37584 #. type: =item
37585 #: ../src/guestfs.pod:2843
37586 msgid "C<caution>"
37587 msgstr ""
37588
37589 #. type: textblock
37590 #: ../src/guestfs.pod:2845
37591 msgid ""
37592 "Safety and liveness tests of components that libguestfs depends upon (not of "
37593 "libguestfs itself).  Mainly this is for qemu and the kernel."
37594 msgstr ""
37595
37596 #. type: =item
37597 #: ../src/guestfs.pod:2848
37598 msgid "C<contrib>"
37599 msgstr ""
37600
37601 #. type: textblock
37602 #: ../src/guestfs.pod:2850
37603 msgid "Outside contributions, experimental parts."
37604 msgstr ""
37605
37606 #. type: =item
37607 #: ../src/guestfs.pod:2852
37608 msgid "C<daemon>"
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:2854
37613 msgid ""
37614 "The daemon that runs inside the libguestfs appliance and carries out actions."
37615 msgstr ""
37616
37617 #. type: =item
37618 #: ../src/guestfs.pod:2857
37619 msgid "C<df>"
37620 msgstr ""
37621
37622 #. type: textblock
37623 #: ../src/guestfs.pod:2859
37624 msgid "L<virt-df(1)> command and documentation."
37625 msgstr ""
37626
37627 #. type: =item
37628 #: ../src/guestfs.pod:2861
37629 msgid "C<edit>"
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:2863
37634 msgid "L<virt-edit(1)> command and documentation."
37635 msgstr ""
37636
37637 #. type: =item
37638 #: ../src/guestfs.pod:2865
37639 msgid "C<examples>"
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:2867
37644 msgid "C API example code."
37645 msgstr ""
37646
37647 #. type: =item
37648 #: ../src/guestfs.pod:2869
37649 msgid "C<fish>"
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:2871
37654 msgid ""
37655 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37656 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37657 "L<virt-tar-out(1)>."
37658 msgstr ""
37659
37660 #. type: =item
37661 #: ../src/guestfs.pod:2875
37662 msgid "C<fuse>"
37663 msgstr ""
37664
37665 #. type: textblock
37666 #: ../src/guestfs.pod:2877
37667 msgid ""
37668 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37669 msgstr ""
37670
37671 #. type: =item
37672 #: ../src/guestfs.pod:2879
37673 msgid "C<generator>"
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:2881
37678 msgid ""
37679 "The crucially important generator, used to automatically generate large "
37680 "amounts of boilerplate C code for things like RPC and bindings."
37681 msgstr ""
37682
37683 #. type: =item
37684 #: ../src/guestfs.pod:2884
37685 msgid "C<images>"
37686 msgstr ""
37687
37688 #. type: textblock
37689 #: ../src/guestfs.pod:2886
37690 msgid "Files used by the test suite."
37691 msgstr ""
37692
37693 #. type: textblock
37694 #: ../src/guestfs.pod:2888
37695 msgid "Some \"phony\" guest images which we test against."
37696 msgstr ""
37697
37698 #. type: =item
37699 #: ../src/guestfs.pod:2890
37700 msgid "C<inspector>"
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../src/guestfs.pod:2892
37705 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37706 msgstr ""
37707
37708 #. type: =item
37709 #: ../src/guestfs.pod:2894
37710 msgid "C<logo>"
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:2896
37715 msgid "Logo used on the website.  The fish is called Arthur by the way."
37716 msgstr ""
37717
37718 #. type: =item
37719 #: ../src/guestfs.pod:2898
37720 msgid "C<m4>"
37721 msgstr ""
37722
37723 #. type: textblock
37724 #: ../src/guestfs.pod:2900
37725 msgid "M4 macros used by autoconf."
37726 msgstr ""
37727
37728 #. type: =item
37729 #: ../src/guestfs.pod:2902
37730 msgid "C<po>"
37731 msgstr ""
37732
37733 #. type: textblock
37734 #: ../src/guestfs.pod:2904
37735 msgid "Translations of simple gettext strings."
37736 msgstr ""
37737
37738 #. type: =item
37739 #: ../src/guestfs.pod:2906
37740 msgid "C<po-docs>"
37741 msgstr ""
37742
37743 #. type: textblock
37744 #: ../src/guestfs.pod:2908
37745 msgid ""
37746 "The build infrastructure and PO files for translations of manpages and POD "
37747 "files.  Eventually this will be combined with the C<po> directory, but that "
37748 "is rather complicated."
37749 msgstr ""
37750
37751 #. type: =item
37752 #: ../src/guestfs.pod:2912
37753 msgid "C<regressions>"
37754 msgstr ""
37755
37756 #. type: textblock
37757 #: ../src/guestfs.pod:2914
37758 msgid "Regression tests."
37759 msgstr ""
37760
37761 #. type: =item
37762 #: ../src/guestfs.pod:2916
37763 msgid "C<rescue>"
37764 msgstr ""
37765
37766 #. type: textblock
37767 #: ../src/guestfs.pod:2918
37768 msgid "L<virt-rescue(1)> command and documentation."
37769 msgstr ""
37770
37771 #. type: =item
37772 #: ../src/guestfs.pod:2920
37773 msgid "C<resize>"
37774 msgstr ""
37775
37776 #. type: textblock
37777 #: ../src/guestfs.pod:2922
37778 msgid "L<virt-resize(1)> command and documentation."
37779 msgstr ""
37780
37781 #. type: =item
37782 #: ../src/guestfs.pod:2924
37783 msgid "C<sparsify>"
37784 msgstr ""
37785
37786 #. type: textblock
37787 #: ../src/guestfs.pod:2926
37788 msgid "L<virt-sparsify(1)> command and documentation."
37789 msgstr ""
37790
37791 #. type: =item
37792 #: ../src/guestfs.pod:2928
37793 msgid "C<src>"
37794 msgstr ""
37795
37796 #. type: textblock
37797 #: ../src/guestfs.pod:2930
37798 msgid "Source code to the C library."
37799 msgstr ""
37800
37801 #. type: =item
37802 #: ../src/guestfs.pod:2932
37803 msgid "C<tools>"
37804 msgstr ""
37805
37806 #. type: textblock
37807 #: ../src/guestfs.pod:2934
37808 msgid ""
37809 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
37810 msgstr ""
37811
37812 #. type: =item
37813 #: ../src/guestfs.pod:2936
37814 msgid "C<test-tool>"
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:2938
37819 msgid ""
37820 "Test tool for end users to test if their qemu/kernel combination will work "
37821 "with libguestfs."
37822 msgstr ""
37823
37824 #. type: =item
37825 #: ../src/guestfs.pod:2941
37826 msgid "C<csharp>"
37827 msgstr ""
37828
37829 #. type: =item
37830 #: ../src/guestfs.pod:2943
37831 msgid "C<erlang>"
37832 msgstr ""
37833
37834 #. type: =item
37835 #: ../src/guestfs.pod:2945
37836 msgid "C<haskell>"
37837 msgstr ""
37838
37839 #. type: =item
37840 #: ../src/guestfs.pod:2947
37841 msgid "C<java>"
37842 msgstr ""
37843
37844 #. type: =item
37845 #: ../src/guestfs.pod:2949
37846 msgid "C<ocaml>"
37847 msgstr ""
37848
37849 #. type: =item
37850 #: ../src/guestfs.pod:2951
37851 msgid "C<php>"
37852 msgstr ""
37853
37854 #. type: =item
37855 #: ../src/guestfs.pod:2953
37856 msgid "C<perl>"
37857 msgstr ""
37858
37859 #. type: =item
37860 #: ../src/guestfs.pod:2955
37861 msgid "C<python>"
37862 msgstr ""
37863
37864 #. type: =item
37865 #: ../src/guestfs.pod:2957
37866 msgid "C<ruby>"
37867 msgstr ""
37868
37869 #. type: textblock
37870 #: ../src/guestfs.pod:2959
37871 msgid "Language bindings."
37872 msgstr ""
37873
37874 #. type: =head2
37875 #: ../src/guestfs.pod:2963
37876 msgid "MAKING A STABLE RELEASE"
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../src/guestfs.pod:2965
37881 msgid ""
37882 "When we make a stable release, there are several steps documented here.  See "
37883 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37884 "branch policy."
37885 msgstr ""
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:2973
37889 msgid ""
37890 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:2978
37895 msgid "Finalize RELEASE-NOTES."
37896 msgstr ""
37897
37898 #. type: textblock
37899 #: ../src/guestfs.pod:2982
37900 msgid "Update ROADMAP."
37901 msgstr ""
37902
37903 #. type: textblock
37904 #: ../src/guestfs.pod:2986
37905 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37906 msgstr ""
37907
37908 #. type: textblock
37909 #: ../src/guestfs.pod:2990
37910 msgid "Push and pull from Transifex."
37911 msgstr ""
37912
37913 #. type: textblock
37914 #: ../src/guestfs.pod:2992
37915 msgid "Run:"
37916 msgstr ""
37917
37918 #. type: verbatim
37919 #: ../src/guestfs.pod:2994
37920 #, no-wrap
37921 msgid ""
37922 " tx push -s\n"
37923 "\n"
37924 msgstr ""
37925
37926 #. type: textblock
37927 #: ../src/guestfs.pod:2996
37928 msgid "to push the latest POT files to Transifex.  Then run:"
37929 msgstr ""
37930
37931 #. type: verbatim
37932 #: ../src/guestfs.pod:2998
37933 #, no-wrap
37934 msgid ""
37935 " ./tx-pull.sh\n"
37936 "\n"
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../src/guestfs.pod:3000
37941 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37942 msgstr ""
37943
37944 #. type: textblock
37945 #: ../src/guestfs.pod:3004
37946 msgid ""
37947 "Create new stable and development directories under L<http://libguestfs.org/"
37948 "download>."
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:3009
37953 msgid "Create the branch in git:"
37954 msgstr ""
37955
37956 #. type: verbatim
37957 #: ../src/guestfs.pod:3011
37958 #, no-wrap
37959 msgid ""
37960 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37961 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37962 " git branch stable-1.XX\n"
37963 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37964 "\n"
37965 msgstr ""
37966
37967 #. type: =head1
37968 #: ../src/guestfs.pod:3018
37969 msgid "LIMITS"
37970 msgstr ""
37971
37972 #. type: =head2
37973 #: ../src/guestfs.pod:3020
37974 msgid "PROTOCOL LIMITS"
37975 msgstr ""
37976
37977 #. type: textblock
37978 #: ../src/guestfs.pod:3022
37979 msgid ""
37980 "Internally libguestfs uses a message-based protocol to pass API calls and "
37981 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37982 "plenty more detail about this).  The maximum message size used by the "
37983 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37984 "aware of this limit.  The API calls which may be affected are individually "
37985 "documented, with a link back to this section of the documentation."
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:3030
37990 msgid ""
37991 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37992 "a simple string.  Because this string is at some point internally encoded as "
37993 "a message, the maximum size that it can return is slightly under 4 MB.  If "
37994 "the requested file is larger than this then you will get an error."
37995 msgstr ""
37996
37997 #. type: textblock
37998 #: ../src/guestfs.pod:3036
37999 msgid ""
38000 "In order to transfer large files into and out of the guest filesystem, you "
38001 "need to use particular calls that support this.  The sections L</UPLOADING> "
38002 "and L</DOWNLOADING> document how to do this."
38003 msgstr ""
38004
38005 #. type: textblock
38006 #: ../src/guestfs.pod:3040
38007 msgid ""
38008 "You might also consider mounting the disk image using our FUSE filesystem "
38009 "support (L<guestmount(1)>)."
38010 msgstr ""
38011
38012 #. type: =head2
38013 #: ../src/guestfs.pod:3043
38014 msgid "MAXIMUM NUMBER OF DISKS"
38015 msgstr ""
38016
38017 #. type: textblock
38018 #: ../src/guestfs.pod:3045
38019 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../src/guestfs.pod:3048
38024 msgid ""
38025 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38026 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38027 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38028 "purposes."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:3053
38033 msgid ""
38034 "We are working to substantially raise this limit in future versions but it "
38035 "requires complex changes to qemu."
38036 msgstr ""
38037
38038 #. type: textblock
38039 #: ../src/guestfs.pod:3056
38040 msgid ""
38041 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38042 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38043 "requires changes to qemu."
38044 msgstr ""
38045
38046 #. type: =head2
38047 #: ../src/guestfs.pod:3060
38048 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38049 msgstr ""
38050
38051 #. type: textblock
38052 #: ../src/guestfs.pod:3062
38053 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38054 msgstr ""
38055
38056 #. type: textblock
38057 #: ../src/guestfs.pod:3064
38058 msgid ""
38059 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38060 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38061 msgstr ""
38062
38063 #. type: textblock
38064 #: ../src/guestfs.pod:3067
38065 msgid ""
38066 "If you attach a disk with more than 15 partitions, the extra partitions are "
38067 "ignored by libguestfs."
38068 msgstr ""
38069
38070 #. type: =head2
38071 #: ../src/guestfs.pod:3070
38072 msgid "MAXIMUM SIZE OF A DISK"
38073 msgstr ""
38074
38075 #. type: textblock
38076 #: ../src/guestfs.pod:3072
38077 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38078 msgstr ""
38079
38080 #. type: textblock
38081 #: ../src/guestfs.pod:3074
38082 msgid ""
38083 "We have tested block devices up to 1 exabyte (2**60 or "
38084 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38085 "filesystem."
38086 msgstr ""
38087
38088 #. type: textblock
38089 #: ../src/guestfs.pod:3078
38090 msgid ""
38091 "Although libguestfs probably does not impose any limit, the underlying host "
38092 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38093 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38094 "TB).  If you store disk images as host logical volumes then you are limited "
38095 "by the maximum size of an LV."
38096 msgstr ""
38097
38098 #. type: textblock
38099 #: ../src/guestfs.pod:3084
38100 msgid ""
38101 "For the hugest disk image files, we recommend using XFS on the host for "
38102 "storage."
38103 msgstr ""
38104
38105 #. type: =head2
38106 #: ../src/guestfs.pod:3087
38107 msgid "MAXIMUM SIZE OF A PARTITION"
38108 msgstr ""
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:3089
38112 msgid ""
38113 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38114 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38115 "address a partition located beyond 2 TB on the disk."
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:3093
38120 msgid ""
38121 "It is recommended that you use GPT partitions on disks which are larger than "
38122 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38123 "which are theoretically larger than the largest disk we could support."
38124 msgstr ""
38125
38126 #. type: =head2
38127 #: ../src/guestfs.pod:3098
38128 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38129 msgstr ""
38130
38131 #. type: textblock
38132 #: ../src/guestfs.pod:3100
38133 msgid ""
38134 "This depends on the filesystem type.  libguestfs itself does not impose any "
38135 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38136 "what these limits are."
38137 msgstr ""
38138
38139 #. type: =head2
38140 #: ../src/guestfs.pod:3104
38141 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38142 msgstr ""
38143
38144 #. type: textblock
38145 #: ../src/guestfs.pod:3106
38146 msgid ""
38147 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38148 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38149 "uploads and downloads."
38150 msgstr ""
38151
38152 #. type: =head2
38153 #: ../src/guestfs.pod:3110
38154 msgid "INSPECTION LIMITS"
38155 msgstr ""
38156
38157 #. type: textblock
38158 #: ../src/guestfs.pod:3112
38159 msgid ""
38160 "The inspection code has several arbitrary limits on things like the size of "
38161 "Windows Registry hive it will read, and the length of product name.  These "
38162 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38163 "memory and disk space on the host, and should not be reached in practice.  "
38164 "See the source code for more information."
38165 msgstr ""
38166
38167 #. type: textblock
38168 #: ../src/guestfs.pod:3138
38169 msgid ""
38170 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38171 "effect as calling C<guestfs_set_verbose (g, 1)>."
38172 msgstr ""
38173
38174 #. type: textblock
38175 #: ../src/guestfs.pod:3150
38176 msgid ""
38177 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38178 "the discussion of paths in section L</PATH> above."
38179 msgstr ""
38180
38181 #. type: textblock
38182 #: ../src/guestfs.pod:3159
38183 msgid "See also L</QEMU WRAPPERS> above."
38184 msgstr ""
38185
38186 #. type: textblock
38187 #: ../src/guestfs.pod:3163
38188 msgid ""
38189 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38190 "effect as calling C<guestfs_set_trace (g, 1)>."
38191 msgstr ""
38192
38193 #. type: textblock
38194 #: ../src/guestfs.pod:3181
38195 msgid ""
38196 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
38197 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
38198 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
38199 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
38200 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
38201 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
38202 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in"
38203 "(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38204 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../src/guestfs.pod:3215
38209 msgid ""
38210 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38211 "(8)>, L<disktype(1)>."
38212 msgstr ""
38213
38214 #. type: =head1
38215 #: ../src/guestfs.pod:3222 ../tools/virt-make-fs.pl:553
38216 #: ../tools/virt-win-reg.pl:761
38217 msgid "BUGS"
38218 msgstr ""
38219
38220 #. type: textblock
38221 #: ../src/guestfs.pod:3224
38222 msgid "To get a list of bugs against libguestfs use this link:"
38223 msgstr ""
38224
38225 #. type: textblock
38226 #: ../src/guestfs.pod:3226
38227 msgid ""
38228 "L<https://bugzilla.redhat.com/buglist.cgi?"
38229 "component=libguestfs&product=Virtualization+Tools>"
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:3228
38234 msgid "To report a new bug against libguestfs use this link:"
38235 msgstr ""
38236
38237 #. type: textblock
38238 #: ../src/guestfs.pod:3230
38239 msgid ""
38240 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38241 "component=libguestfs&product=Virtualization+Tools>"
38242 msgstr ""
38243
38244 #. type: textblock
38245 #: ../src/guestfs.pod:3232
38246 msgid "When reporting a bug, please check:"
38247 msgstr ""
38248
38249 #. type: textblock
38250 #: ../src/guestfs.pod:3238
38251 msgid "That the bug hasn't been reported already."
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:3242
38256 msgid "That you are testing a recent version."
38257 msgstr ""
38258
38259 #. type: textblock
38260 #: ../src/guestfs.pod:3246
38261 msgid "Describe the bug accurately, and give a way to reproduce it."
38262 msgstr ""
38263
38264 #. type: textblock
38265 #: ../src/guestfs.pod:3250
38266 msgid ""
38267 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38268 "bug report."
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../test-tool/libguestfs-test-tool.pod:5
38273 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38274 msgstr ""
38275
38276 #. type: verbatim
38277 #: ../test-tool/libguestfs-test-tool.pod:9
38278 #, no-wrap
38279 msgid ""
38280 " libguestfs-test-tool [--options]\n"
38281 "\n"
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../test-tool/libguestfs-test-tool.pod:13
38286 msgid ""
38287 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38288 "to check basic libguestfs functionality is working.  This is needed because "
38289 "libguestfs occasionally breaks for reasons beyond our control: usually "
38290 "because of changes in the underlying qemu or kernel packages, or the host "
38291 "environment."
38292 msgstr ""
38293
38294 #. type: textblock
38295 #: ../test-tool/libguestfs-test-tool.pod:19
38296 msgid "If you suspect a problem in libguestfs, then just run:"
38297 msgstr ""
38298
38299 #. type: verbatim
38300 #: ../test-tool/libguestfs-test-tool.pod:21
38301 #, no-wrap
38302 msgid ""
38303 " libguestfs-test-tool\n"
38304 "\n"
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../test-tool/libguestfs-test-tool.pod:23
38309 msgid "It will print lots of diagnostic messages."
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../test-tool/libguestfs-test-tool.pod:25
38314 msgid "If it runs to completion successfully, you will see this near the end:"
38315 msgstr ""
38316
38317 #. type: verbatim
38318 #: ../test-tool/libguestfs-test-tool.pod:27
38319 #, no-wrap
38320 msgid ""
38321 " ===== TEST FINISHED OK =====\n"
38322 "\n"
38323 msgstr ""
38324
38325 #. type: textblock
38326 #: ../test-tool/libguestfs-test-tool.pod:29
38327 msgid "and the test tool will exit with code 0."
38328 msgstr ""
38329
38330 #. type: textblock
38331 #: ../test-tool/libguestfs-test-tool.pod:31
38332 msgid ""
38333 "If it fails (and/or exits with non-zero error code), please paste the "
38334 "I<complete, unedited> output of the test tool into a bug report.  More "
38335 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38336 "> website."
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../test-tool/libguestfs-test-tool.pod:42
38341 msgid "Display short usage information and exit."
38342 msgstr ""
38343
38344 #. type: =item
38345 #: ../test-tool/libguestfs-test-tool.pod:44
38346 msgid "B<--qemu qemu_binary>"
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../test-tool/libguestfs-test-tool.pod:46
38351 msgid ""
38352 "If you have downloaded another qemu binary, point this option at the full "
38353 "path of the binary to try it."
38354 msgstr ""
38355
38356 #. type: =item
38357 #: ../test-tool/libguestfs-test-tool.pod:49
38358 msgid "B<--qemudir qemu_source_dir>"
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../test-tool/libguestfs-test-tool.pod:51
38363 msgid ""
38364 "If you have compiled qemu from source, point this option at the source "
38365 "directory to try it."
38366 msgstr ""
38367
38368 #. type: =item
38369 #: ../test-tool/libguestfs-test-tool.pod:54
38370 msgid "B<-t N>"
38371 msgstr ""
38372
38373 #. type: =item
38374 #: ../test-tool/libguestfs-test-tool.pod:56
38375 msgid "B<--timeout N>"
38376 msgstr ""
38377
38378 #. type: textblock
38379 #: ../test-tool/libguestfs-test-tool.pod:58
38380 msgid ""
38381 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38382 "minutes) which does not usually need to be adjusted."
38383 msgstr ""
38384
38385 #. type: =head1
38386 #: ../test-tool/libguestfs-test-tool.pod:63
38387 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38388 msgstr ""
38389
38390 #. type: textblock
38391 #: ../test-tool/libguestfs-test-tool.pod:65
38392 msgid ""
38393 "If you have compiled another version of qemu from source and would like to "
38394 "try that, then you can use the I<--qemudir> option to point to the qemu "
38395 "source directory."
38396 msgstr ""
38397
38398 #. type: textblock
38399 #: ../test-tool/libguestfs-test-tool.pod:69
38400 msgid ""
38401 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38402 "option to point to the binary."
38403 msgstr ""
38404
38405 #. type: textblock
38406 #: ../test-tool/libguestfs-test-tool.pod:72
38407 msgid ""
38408 "Note when using these options, you can ignore the business of qemu wrapper "
38409 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38410 "wrapper script for you if one is needed."
38411 msgstr ""
38412
38413 #. type: =head1
38414 #: ../test-tool/libguestfs-test-tool.pod:76
38415 msgid "TRYING OUT A DIFFERENT KERNEL"
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../test-tool/libguestfs-test-tool.pod:78
38420 msgid ""
38421 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38422 "libguestfs tries.  You do this by setting the environment variables "
38423 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38424 msgstr ""
38425
38426 #. type: textblock
38427 #: ../test-tool/libguestfs-test-tool.pod:82
38428 msgid ""
38429 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38430 "information."
38431 msgstr ""
38432
38433 #. type: =head1
38434 #: ../test-tool/libguestfs-test-tool.pod:85
38435 msgid "SELF-DIAGNOSIS"
38436 msgstr ""
38437
38438 #. type: textblock
38439 #: ../test-tool/libguestfs-test-tool.pod:87
38440 msgid ""
38441 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38442 "produced by libguestfs-test-tool and/or possible errors."
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../test-tool/libguestfs-test-tool.pod:92
38447 msgid ""
38448 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38449 "I<1> if there was an error."
38450 msgstr ""
38451
38452 #. type: textblock
38453 #: ../test-tool/libguestfs-test-tool.pod:97
38454 msgid ""
38455 "For the full list of environment variables which may affect libguestfs, "
38456 "please see the L<guestfs(3)> manual page."
38457 msgstr ""
38458
38459 #. type: textblock
38460 #: ../test-tool/libguestfs-test-tool.pod:102
38461 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38462 msgstr ""
38463
38464 #. type: textblock
38465 #: ../tools/virt-list-filesystems.pl:32
38466 msgid ""
38467 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38468 msgstr ""
38469
38470 #. type: verbatim
38471 #: ../tools/virt-list-filesystems.pl:36
38472 #, no-wrap
38473 msgid ""
38474 " virt-list-filesystems [--options] domname\n"
38475 "\n"
38476 msgstr ""
38477
38478 #. type: verbatim
38479 #: ../tools/virt-list-filesystems.pl:38
38480 #, no-wrap
38481 msgid ""
38482 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38483 "\n"
38484 msgstr ""
38485
38486 #. type: textblock
38487 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38488 msgid ""
38489 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38490 "replacement."
38491 msgstr ""
38492
38493 #. type: textblock
38494 #: ../tools/virt-list-filesystems.pl:45
38495 msgid ""
38496 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38497 "are contained in a virtual machine or disk image."
38498 msgstr ""
38499
38500 #. type: textblock
38501 #: ../tools/virt-list-filesystems.pl:49
38502 msgid ""
38503 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38504 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38505 "> tool."
38506 msgstr ""
38507
38508 #. type: textblock
38509 #: ../tools/virt-list-filesystems.pl:112
38510 msgid ""
38511 "With this option, C<virt-list-filesystems> displays the type of each "
38512 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38513 msgstr ""
38514
38515 #. type: =item
38516 #: ../tools/virt-list-filesystems.pl:119
38517 msgid "B<-a>"
38518 msgstr ""
38519
38520 #. type: textblock
38521 #: ../tools/virt-list-filesystems.pl:123
38522 msgid ""
38523 "Normally we only show mountable filesystems.  If this option is given then "
38524 "swap devices are shown too."
38525 msgstr ""
38526
38527 #. type: textblock
38528 #: ../tools/virt-list-filesystems.pl:197
38529 msgid ""
38530 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38531 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38532 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38533 msgstr ""
38534
38535 #. type: textblock
38536 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38537 msgid "Copyright (C) 2009 Red Hat Inc."
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../tools/virt-list-partitions.pl:32
38542 msgid ""
38543 "virt-list-partitions - List partitions in a virtual machine or disk image"
38544 msgstr ""
38545
38546 #. type: verbatim
38547 #: ../tools/virt-list-partitions.pl:36
38548 #, no-wrap
38549 msgid ""
38550 " virt-list-partitions [--options] domname\n"
38551 "\n"
38552 msgstr ""
38553
38554 #. type: verbatim
38555 #: ../tools/virt-list-partitions.pl:38
38556 #, no-wrap
38557 msgid ""
38558 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38559 "\n"
38560 msgstr ""
38561
38562 #. type: textblock
38563 #: ../tools/virt-list-partitions.pl:45
38564 msgid ""
38565 "C<virt-list-partitions> is a command line tool to list the partitions that "
38566 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38567 "first step to using L<virt-resize(1)>."
38568 msgstr ""
38569
38570 #. type: textblock
38571 #: ../tools/virt-list-partitions.pl:50
38572 msgid ""
38573 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38574 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38575 "> tool."
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../tools/virt-list-partitions.pl:113
38580 msgid "Show sizes in human-readable form (eg. \"1G\")."
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../tools/virt-list-partitions.pl:123
38585 msgid ""
38586 "With this option, C<virt-list-partitions> displays the type and size of each "
38587 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38588 msgstr ""
38589
38590 #. type: =item
38591 #: ../tools/virt-list-partitions.pl:130
38592 msgid "B<-t>"
38593 msgstr ""
38594
38595 #. type: =item
38596 #: ../tools/virt-list-partitions.pl:132
38597 msgid "B<--total>"
38598 msgstr ""
38599
38600 #. type: textblock
38601 #: ../tools/virt-list-partitions.pl:134
38602 msgid ""
38603 "Display the total size of each block device (as a separate row or rows)."
38604 msgstr ""
38605
38606 #. type: textblock
38607 #: ../tools/virt-list-partitions.pl:267
38608 msgid ""
38609 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38610 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38611 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38612 msgstr ""
38613
38614 #. type: textblock
38615 #: ../tools/virt-list-partitions.pl:283
38616 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../tools/virt-make-fs.pl:37
38621 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38622 msgstr ""
38623
38624 #. type: verbatim
38625 #: ../tools/virt-make-fs.pl:41
38626 #, no-wrap
38627 msgid ""
38628 " virt-make-fs [--options] input.tar output.img\n"
38629 "\n"
38630 msgstr ""
38631
38632 #. type: verbatim
38633 #: ../tools/virt-make-fs.pl:43
38634 #, no-wrap
38635 msgid ""
38636 " virt-make-fs [--options] input.tar.gz output.img\n"
38637 "\n"
38638 msgstr ""
38639
38640 #. type: verbatim
38641 #: ../tools/virt-make-fs.pl:45
38642 #, no-wrap
38643 msgid ""
38644 " virt-make-fs [--options] directory output.img\n"
38645 "\n"
38646 msgstr ""
38647
38648 #. type: textblock
38649 #: ../tools/virt-make-fs.pl:49
38650 msgid ""
38651 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38652 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38653 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38654 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38655 "you want to attach these filesystems to existing virtual machines (eg. to "
38656 "import large amounts of read-only data to a VM)."
38657 msgstr ""
38658
38659 #. type: textblock
38660 #: ../tools/virt-make-fs.pl:57
38661 msgid "Basic usage is:"
38662 msgstr ""
38663
38664 #. type: verbatim
38665 #: ../tools/virt-make-fs.pl:59
38666 #, no-wrap
38667 msgid ""
38668 " virt-make-fs input output\n"
38669 "\n"
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../tools/virt-make-fs.pl:61
38674 msgid ""
38675 "where C<input> is either a directory containing files that you want to add, "
38676 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38677 "C<output> is a disk image.  The input type is detected automatically.  The "
38678 "output disk image defaults to a raw ext2 image unless you specify extra "
38679 "flags (see L</OPTIONS> below)."
38680 msgstr ""
38681
38682 #. type: =head2
38683 #: ../tools/virt-make-fs.pl:67
38684 msgid "EXTRA SPACE"
38685 msgstr ""
38686
38687 #. type: textblock
38688 #: ../tools/virt-make-fs.pl:69
38689 msgid ""
38690 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38691 "the files that it contains, but might have extra space.  Depending on how "
38692 "you are going to use the output, you might think this extra space is wasted "
38693 "and want to minimize it, or you might want to leave space so that more files "
38694 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38695 "but you can use the I<--size> flag to leave space in the filesystem if you "
38696 "want it."
38697 msgstr ""
38698
38699 #. type: textblock
38700 #: ../tools/virt-make-fs.pl:77
38701 msgid ""
38702 "An alternative way to leave extra space but not make the output image any "
38703 "bigger is to use an alternative disk image format (instead of the default "
38704 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38705 "image format (check your hypervisor supports this before using it).  This "
38706 "allows you to choose a large I<--size> but the extra space won't actually be "
38707 "allocated in the image until you try to store something in it."
38708 msgstr ""
38709
38710 #. type: textblock
38711 #: ../tools/virt-make-fs.pl:85
38712 msgid ""
38713 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38714 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38715 "to build another image from scratch."
38716 msgstr ""
38717
38718 #. type: =head3
38719 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38720 #: ../tools/virt-make-fs.pl:142
38721 msgid "EXAMPLE"
38722 msgstr ""
38723
38724 #. type: verbatim
38725 #: ../tools/virt-make-fs.pl:91
38726 #, no-wrap
38727 msgid ""
38728 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38729 "\n"
38730 msgstr ""
38731
38732 #. type: =head2
38733 #: ../tools/virt-make-fs.pl:93
38734 msgid "FILESYSTEM TYPE"
38735 msgstr ""
38736
38737 #. type: textblock
38738 #: ../tools/virt-make-fs.pl:95
38739 msgid ""
38740 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38741 "libguestfs supports can be used (but I<not> read-only formats like "
38742 "ISO9660).  Here are some of the more common choices:"
38743 msgstr ""
38744
38745 #. type: =item
38746 #: ../tools/virt-make-fs.pl:101
38747 msgid "I<ext3>"
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../tools/virt-make-fs.pl:103
38752 msgid ""
38753 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38754 "you are not going to use the filesystem in a way that requires the journal, "
38755 "then this is just wasted overhead."
38756 msgstr ""
38757
38758 #. type: =item
38759 #: ../tools/virt-make-fs.pl:107
38760 msgid "I<ntfs> or I<vfat>"
38761 msgstr ""
38762
38763 #. type: textblock
38764 #: ../tools/virt-make-fs.pl:109
38765 msgid "Useful if exporting data to a Windows guest."
38766 msgstr ""
38767
38768 #. type: textblock
38769 #: ../tools/virt-make-fs.pl:111
38770 msgid ""
38771 "I<Note for vfat>: The tar archive or local directory must only contain files "
38772 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38773 "program running within libguestfs is unable to change the ownership of non-"
38774 "root files, since vfat itself does not support this."
38775 msgstr ""
38776
38777 #. type: =item
38778 #: ../tools/virt-make-fs.pl:116
38779 msgid "I<minix>"
38780 msgstr ""
38781
38782 #. type: textblock
38783 #: ../tools/virt-make-fs.pl:118
38784 msgid ""
38785 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38786 "total filesystem size."
38787 msgstr ""
38788
38789 #. type: verbatim
38790 #: ../tools/virt-make-fs.pl:125
38791 #, no-wrap
38792 msgid ""
38793 " virt-make-fs --type=minix input minixfs.img\n"
38794 "\n"
38795 msgstr ""
38796
38797 #. type: =head2
38798 #: ../tools/virt-make-fs.pl:127
38799 msgid "TO PARTITION OR NOT TO PARTITION"
38800 msgstr ""
38801
38802 #. type: textblock
38803 #: ../tools/virt-make-fs.pl:129
38804 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38805 msgstr ""
38806
38807 #. type: textblock
38808 #: ../tools/virt-make-fs.pl:131
38809 msgid ""
38810 "Adding a partition can make the disk image more compatible with certain "
38811 "virtualized operating systems which don't expect to see a filesystem "
38812 "directly located on a block device (Linux doesn't care and will happily "
38813 "handle both types)."
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../tools/virt-make-fs.pl:136
38818 msgid ""
38819 "On the other hand, if you have a partition table then the output image is no "
38820 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38821 "directly on a partitioned disk image.  (However libguestfs tools such as "
38822 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38823 msgstr ""
38824
38825 #. type: textblock
38826 #: ../tools/virt-make-fs.pl:144
38827 msgid "Add an MBR partition:"
38828 msgstr ""
38829
38830 #. type: verbatim
38831 #: ../tools/virt-make-fs.pl:146
38832 #, no-wrap
38833 msgid ""
38834 " virt-make-fs --partition -- input disk.img\n"
38835 "\n"
38836 msgstr ""
38837
38838 #. type: textblock
38839 #: ../tools/virt-make-fs.pl:148
38840 msgid ""
38841 "If the output disk image could be terabyte-sized or larger, it's better to "
38842 "use an EFI/GPT-compatible partition table:"
38843 msgstr ""
38844
38845 #. type: verbatim
38846 #: ../tools/virt-make-fs.pl:151
38847 #, no-wrap
38848 msgid ""
38849 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38850 "\n"
38851 msgstr ""
38852
38853 #. type: textblock
38854 #: ../tools/virt-make-fs.pl:179
38855 msgid "Enable debugging information."
38856 msgstr ""
38857
38858 #. type: =item
38859 #: ../tools/virt-make-fs.pl:185
38860 msgid "B<--size=E<lt>NE<gt>>"
38861 msgstr ""
38862
38863 #. type: =item
38864 #: ../tools/virt-make-fs.pl:187
38865 msgid "B<--size=+E<lt>NE<gt>>"
38866 msgstr ""
38867
38868 #. type: =item
38869 #: ../tools/virt-make-fs.pl:189
38870 msgid "B<-s E<lt>NE<gt>>"
38871 msgstr ""
38872
38873 #. type: =item
38874 #: ../tools/virt-make-fs.pl:191
38875 msgid "B<-s +E<lt>NE<gt>>"
38876 msgstr ""
38877
38878 #. type: textblock
38879 #: ../tools/virt-make-fs.pl:193
38880 msgid ""
38881 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38882 msgstr ""
38883
38884 #. type: textblock
38885 #: ../tools/virt-make-fs.pl:196
38886 msgid ""
38887 "If this option is I<not> given, then the output image will be just large "
38888 "enough to contain all the files, with not much wasted space."
38889 msgstr ""
38890
38891 #. type: textblock
38892 #: ../tools/virt-make-fs.pl:199
38893 msgid ""
38894 "To choose a fixed size output disk, specify an absolute number followed by b/"
38895 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38896 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38897 "files, else you will get an error."
38898 msgstr ""
38899
38900 #. type: textblock
38901 #: ../tools/virt-make-fs.pl:204
38902 msgid ""
38903 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38904 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38905 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38906 "the input files, and (approximately) an extra 200 MB free space."
38907 msgstr ""
38908
38909 #. type: textblock
38910 #: ../tools/virt-make-fs.pl:210
38911 msgid ""
38912 "Note that virt-make-fs estimates free space, and therefore will not produce "
38913 "filesystems containing precisely the free space requested.  (It is much more "
38914 "expensive and time-consuming to produce a filesystem which has precisely the "
38915 "desired free space)."
38916 msgstr ""
38917
38918 #. type: =item
38919 #: ../tools/virt-make-fs.pl:219
38920 msgid "B<--format=E<lt>fmtE<gt>>"
38921 msgstr ""
38922
38923 #. type: =item
38924 #: ../tools/virt-make-fs.pl:221
38925 msgid "B<-F E<lt>fmtE<gt>>"
38926 msgstr ""
38927
38928 #. type: textblock
38929 #: ../tools/virt-make-fs.pl:223
38930 msgid "Choose the output disk image format."
38931 msgstr ""
38932
38933 #. type: textblock
38934 #: ../tools/virt-make-fs.pl:225
38935 msgid "The default is C<raw> (raw disk image)."
38936 msgstr ""
38937
38938 #. type: textblock
38939 #: ../tools/virt-make-fs.pl:227
38940 msgid ""
38941 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38942 "that would really make sense here is C<qcow2>."
38943 msgstr ""
38944
38945 #. type: =item
38946 #: ../tools/virt-make-fs.pl:234
38947 msgid "B<--type=E<lt>fsE<gt>>"
38948 msgstr ""
38949
38950 #. type: =item
38951 #: ../tools/virt-make-fs.pl:236
38952 msgid "B<-t E<lt>fsE<gt>>"
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../tools/virt-make-fs.pl:238
38957 msgid "Choose the output filesystem type."
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../tools/virt-make-fs.pl:240
38962 msgid "The default is C<ext2>."
38963 msgstr ""
38964
38965 #. type: textblock
38966 #: ../tools/virt-make-fs.pl:242
38967 msgid ""
38968 "Any filesystem which is supported read-write by libguestfs can be used here."
38969 msgstr ""
38970
38971 #. type: =item
38972 #: ../tools/virt-make-fs.pl:249
38973 msgid "B<--partition>"
38974 msgstr ""
38975
38976 #. type: =item
38977 #: ../tools/virt-make-fs.pl:251
38978 msgid "B<--partition=E<lt>parttypeE<gt>>"
38979 msgstr ""
38980
38981 #. type: textblock
38982 #: ../tools/virt-make-fs.pl:253
38983 msgid ""
38984 "If specified, this flag adds an MBR partition table to the output disk image."
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../tools/virt-make-fs.pl:256
38989 msgid ""
38990 "You can change the partition table type, eg. I<--partition=gpt> for large "
38991 "disks."
38992 msgstr ""
38993
38994 #. type: textblock
38995 #: ../tools/virt-make-fs.pl:259
38996 msgid ""
38997 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38998 "might consider the next parameter to be the partition type.  For example:"
38999 msgstr ""
39000
39001 #. type: verbatim
39002 #: ../tools/virt-make-fs.pl:263
39003 #, no-wrap
39004 msgid ""
39005 " virt-make-fs --partition input.tar ...\n"
39006 "\n"
39007 msgstr ""
39008
39009 #. type: textblock
39010 #: ../tools/virt-make-fs.pl:265
39011 msgid ""
39012 "would cause virt-make-fs to think you wanted to use a partition type of "
39013 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39014 "dash) between options and the input file argument:"
39015 msgstr ""
39016
39017 #. type: verbatim
39018 #: ../tools/virt-make-fs.pl:269
39019 #, no-wrap
39020 msgid ""
39021 " virt-make-fs --partition -- input.tar ...\n"
39022 "\n"
39023 msgstr ""
39024
39025 #. type: textblock
39026 #: ../tools/virt-make-fs.pl:541
39027 msgid ""
39028 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39029 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39030 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39031 msgstr ""
39032
39033 #. type: textblock
39034 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39035 msgid ""
39036 "When reporting bugs, please enable debugging and capture the I<complete> "
39037 "output:"
39038 msgstr ""
39039
39040 #. type: verbatim
39041 #: ../tools/virt-make-fs.pl:558
39042 #, no-wrap
39043 msgid ""
39044 " export LIBGUESTFS_DEBUG=1\n"
39045 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39046 "\n"
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../tools/virt-make-fs.pl:561
39051 msgid ""
39052 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39053 "redhat.com/>"
39054 msgstr ""
39055
39056 #. type: textblock
39057 #: ../tools/virt-tar.pl:33
39058 msgid "virt-tar - Extract or upload files to a virtual machine"
39059 msgstr ""
39060
39061 #. type: verbatim
39062 #: ../tools/virt-tar.pl:37
39063 #, no-wrap
39064 msgid ""
39065 " virt-tar [--options] -x domname directory tarball\n"
39066 "\n"
39067 msgstr ""
39068
39069 #. type: verbatim
39070 #: ../tools/virt-tar.pl:39
39071 #, no-wrap
39072 msgid ""
39073 " virt-tar [--options] -u domname tarball directory\n"
39074 "\n"
39075 msgstr ""
39076
39077 #. type: verbatim
39078 #: ../tools/virt-tar.pl:41
39079 #, no-wrap
39080 msgid ""
39081 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39082 "\n"
39083 msgstr ""
39084
39085 #. type: verbatim
39086 #: ../tools/virt-tar.pl:43
39087 #, no-wrap
39088 msgid ""
39089 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39090 "\n"
39091 msgstr ""
39092
39093 #. type: =head2
39094 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39095 msgid "NOTE"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../tools/virt-tar.pl:47
39100 msgid ""
39101 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39102 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39103 msgstr ""
39104
39105 #. type: textblock
39106 #: ../tools/virt-tar.pl:52
39107 msgid "Download C</home> from the VM into a local tarball:"
39108 msgstr ""
39109
39110 #. type: verbatim
39111 #: ../tools/virt-tar.pl:54
39112 #, no-wrap
39113 msgid ""
39114 " virt-tar -x domname /home home.tar\n"
39115 "\n"
39116 msgstr ""
39117
39118 #. type: verbatim
39119 #: ../tools/virt-tar.pl:56
39120 #, no-wrap
39121 msgid ""
39122 " virt-tar -zx domname /home home.tar.gz\n"
39123 "\n"
39124 msgstr ""
39125
39126 #. type: textblock
39127 #: ../tools/virt-tar.pl:58
39128 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39129 msgstr ""
39130
39131 #. type: verbatim
39132 #: ../tools/virt-tar.pl:60
39133 #, no-wrap
39134 msgid ""
39135 " virt-tar -u domname uploadstuff.tar /tmp\n"
39136 "\n"
39137 msgstr ""
39138
39139 #. type: verbatim
39140 #: ../tools/virt-tar.pl:62
39141 #, no-wrap
39142 msgid ""
39143 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39144 "\n"
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../tools/virt-tar.pl:66
39149 msgid ""
39150 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39151 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39152 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39153 msgstr ""
39154
39155 #. type: textblock
39156 #: ../tools/virt-tar.pl:71
39157 msgid ""
39158 "You can use I<-x> (extract) on live virtual machines, but you might get "
39159 "inconsistent results or errors if there is filesystem activity inside the "
39160 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39161 "work, but the only way to guarantee consistent results is if the virtual "
39162 "machine is shut down."
39163 msgstr ""
39164
39165 #. type: textblock
39166 #: ../tools/virt-tar.pl:79
39167 msgid ""
39168 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39169 "parts of a guest filesystem.  There are many possibilities: making backups, "
39170 "uploading data files, snooping on guest activity, fixing or customizing "
39171 "guests, etc."
39172 msgstr ""
39173
39174 #. type: textblock
39175 #: ../tools/virt-tar.pl:84
39176 msgid ""
39177 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39178 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39179 "should look at the L<guestfish(1)> tool."
39180 msgstr ""
39181
39182 #. type: textblock
39183 #: ../tools/virt-tar.pl:88
39184 msgid ""
39185 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39186 "its contents (recursively) from the virtual machine into a local tarball.  "
39187 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39188 "virtual machine.  You cannot use these two options together."
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../tools/virt-tar.pl:94
39193 msgid ""
39194 "In addition, you may need to use the I<-z> (gZip) option to enable "
39195 "compression.  When uploading, you have to specify I<-z> if the upload file "
39196 "is compressed because virt-tar won't detect this on its own."
39197 msgstr ""
39198
39199 #. type: textblock
39200 #: ../tools/virt-tar.pl:98
39201 msgid ""
39202 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39203 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39204 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39205 "the L<libguestfs(3)> API)."
39206 msgstr ""
39207
39208 #. type: =item
39209 #: ../tools/virt-tar.pl:160
39210 msgid "B<--extract>"
39211 msgstr ""
39212
39213 #. type: =item
39214 #: ../tools/virt-tar.pl:162
39215 msgid "B<--download>"
39216 msgstr ""
39217
39218 #. type: =item
39219 #: ../tools/virt-tar.pl:164
39220 msgid "B<-u>"
39221 msgstr ""
39222
39223 #. type: =item
39224 #: ../tools/virt-tar.pl:166
39225 msgid "B<--upload>"
39226 msgstr ""
39227
39228 #. type: textblock
39229 #: ../tools/virt-tar.pl:168
39230 msgid ""
39231 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39232 "local tarball."
39233 msgstr ""
39234
39235 #. type: textblock
39236 #: ../tools/virt-tar.pl:171
39237 msgid ""
39238 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39239 "Please read the L</WARNING> section above before using this option."
39240 msgstr ""
39241
39242 #. type: textblock
39243 #: ../tools/virt-tar.pl:175
39244 msgid "You must specify exactly one of these options."
39245 msgstr ""
39246
39247 #. type: =item
39248 #: ../tools/virt-tar.pl:181
39249 msgid "B<-z>"
39250 msgstr ""
39251
39252 #. type: =item
39253 #: ../tools/virt-tar.pl:183
39254 msgid "B<--gzip>"
39255 msgstr ""
39256
39257 #. type: textblock
39258 #: ../tools/virt-tar.pl:185
39259 msgid "Specify that the input or output tarball is gzip-compressed."
39260 msgstr ""
39261
39262 #. type: textblock
39263 #: ../tools/virt-tar.pl:298
39264 msgid ""
39265 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39266 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39267 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39268 "org/>."
39269 msgstr ""
39270
39271 #. type: textblock
39272 #: ../tools/virt-win-reg.pl:37
39273 msgid ""
39274 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39275 msgstr ""
39276
39277 #. type: verbatim
39278 #: ../tools/virt-win-reg.pl:41
39279 #, no-wrap
39280 msgid ""
39281 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39282 "\n"
39283 msgstr ""
39284
39285 #. type: verbatim
39286 #: ../tools/virt-win-reg.pl:43
39287 #, no-wrap
39288 msgid ""
39289 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39290 "\n"
39291 msgstr ""
39292
39293 #. type: verbatim
39294 #: ../tools/virt-win-reg.pl:45
39295 #, no-wrap
39296 msgid ""
39297 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39298 "\n"
39299 msgstr ""
39300
39301 #. type: verbatim
39302 #: ../tools/virt-win-reg.pl:47
39303 #, no-wrap
39304 msgid ""
39305 " virt-win-reg --merge domname [input.reg ...]\n"
39306 "\n"
39307 msgstr ""
39308
39309 #. type: verbatim
39310 #: ../tools/virt-win-reg.pl:49
39311 #, no-wrap
39312 msgid ""
39313 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39314 "\n"
39315 msgstr ""
39316
39317 #. type: textblock
39318 #: ../tools/virt-win-reg.pl:53
39319 msgid ""
39320 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39321 "virtual machines.  If you do this, you I<will> get irreversible disk "
39322 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39323 "but doesn't catch all cases."
39324 msgstr ""
39325
39326 #. type: textblock
39327 #: ../tools/virt-win-reg.pl:58
39328 msgid ""
39329 "Modifying the Windows Registry is an inherently risky operation.  The format "
39330 "is deliberately obscure and undocumented, and Registry changes can leave the "
39331 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39332 "you have a reliable backup first."
39333 msgstr ""
39334
39335 #. type: textblock
39336 #: ../tools/virt-win-reg.pl:65
39337 msgid ""
39338 "This program can export and merge Windows Registry entries from a Windows "
39339 "guest."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../tools/virt-win-reg.pl:68
39344 msgid ""
39345 "The first parameter is the libvirt guest name or the raw disk image of a "
39346 "Windows guest."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../tools/virt-win-reg.pl:71
39351 msgid ""
39352 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39353 "exported (recursively).  For example:"
39354 msgstr ""
39355
39356 #. type: verbatim
39357 #: ../tools/virt-win-reg.pl:74
39358 #, no-wrap
39359 msgid ""
39360 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39361 "\n"
39362 msgstr ""
39363
39364 #. type: textblock
39365 #: ../tools/virt-win-reg.pl:76
39366 msgid ""
39367 "You can also display single values from within registry keys, for example:"
39368 msgstr ""
39369
39370 #. type: verbatim
39371 #: ../tools/virt-win-reg.pl:79
39372 #, no-wrap
39373 msgid ""
39374 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39375 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39376 " Windows 7 Enterprise\n"
39377 "\n"
39378 msgstr ""
39379
39380 #. type: textblock
39381 #: ../tools/virt-win-reg.pl:83
39382 msgid ""
39383 "With I<--merge>, you can merge a textual regedit file into the Windows "
39384 "Registry:"
39385 msgstr ""
39386
39387 #. type: verbatim
39388 #: ../tools/virt-win-reg.pl:86
39389 #, no-wrap
39390 msgid ""
39391 " $ virt-win-reg --merge Windows7 changes.reg\n"
39392 "\n"
39393 msgstr ""
39394
39395 #. type: textblock
39396 #: ../tools/virt-win-reg.pl:90
39397 msgid ""
39398 "This program is only meant for simple access to the registry.  If you want "
39399 "to do complicated things with the registry, we suggest you download the "
39400 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39401 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39402 "L<hivexregedit(1)>."
39403 msgstr ""
39404
39405 #. type: =item
39406 #: ../tools/virt-win-reg.pl:159
39407 msgid "B<--merge>"
39408 msgstr ""
39409
39410 #. type: textblock
39411 #: ../tools/virt-win-reg.pl:161
39412 msgid ""
39413 "In merge mode, this merges a textual regedit file into the Windows Registry "
39414 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39415 "displays or exports Registry entries instead."
39416 msgstr ""
39417
39418 #. type: textblock
39419 #: ../tools/virt-win-reg.pl:165
39420 msgid ""
39421 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39422 "result in disk corruption.  However exporting (without this flag)  is always "
39423 "safe."
39424 msgstr ""
39425
39426 #. type: =item
39427 #: ../tools/virt-win-reg.pl:173
39428 msgid "B<--encoding> UTF-16LE|ASCII"
39429 msgstr ""
39430
39431 #. type: textblock
39432 #: ../tools/virt-win-reg.pl:175
39433 msgid ""
39434 "When merging (only), you may need to specify the encoding for strings to be "
39435 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39436 "(3)/ENCODING STRINGS>."
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../tools/virt-win-reg.pl:179
39441 msgid ""
39442 "The default is to use UTF-16LE, which should work with recent versions of "
39443 "Windows."
39444 msgstr ""
39445
39446 #. type: =item
39447 #: ../tools/virt-win-reg.pl:186
39448 msgid "B<--unsafe-printable-strings>"
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../tools/virt-win-reg.pl:188
39453 msgid ""
39454 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39455 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39456 "present."
39457 msgstr ""
39458
39459 #. type: textblock
39460 #: ../tools/virt-win-reg.pl:192
39461 msgid ""
39462 "This is unsafe and does not preserve the fidelity of strings in the original "
39463 "Registry for various reasons:"
39464 msgstr ""
39465
39466 #. type: textblock
39467 #: ../tools/virt-win-reg.pl:199
39468 msgid ""
39469 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39470 "other encodings will be corrupted by this transformation."
39471 msgstr ""
39472
39473 #. type: textblock
39474 #: ../tools/virt-win-reg.pl:204
39475 msgid ""
39476 "Assumes that everything which has type 1 or 2 is really a string and that "
39477 "everything else is not a string, but the type field in real Registries is "
39478 "not reliable."
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../tools/virt-win-reg.pl:210
39483 msgid ""
39484 "Loses information about whether a zero codepoint followed the string in the "
39485 "Registry or not."
39486 msgstr ""
39487
39488 #. type: textblock
39489 #: ../tools/virt-win-reg.pl:215
39490 msgid ""
39491 "This all happens because the Registry itself contains no information about "
39492 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39493 msgstr ""
39494
39495 #. type: textblock
39496 #: ../tools/virt-win-reg.pl:219
39497 msgid ""
39498 "You should only use this option for quick hacking and debugging of the "
39499 "Registry contents, and I<never> use it if the output is going to be passed "
39500 "into another program or stored in another Registry."
39501 msgstr ""
39502
39503 #. type: =head1
39504 #: ../tools/virt-win-reg.pl:556
39505 msgid "SUPPORTED SYSTEMS"
39506 msgstr ""
39507
39508 #. type: textblock
39509 #: ../tools/virt-win-reg.pl:558
39510 msgid ""
39511 "The program currently supports Windows NT-derived guests starting with "
39512 "Windows XP through to at least Windows 7."
39513 msgstr ""
39514
39515 #. type: textblock
39516 #: ../tools/virt-win-reg.pl:561
39517 msgid "The following Registry keys are supported:"
39518 msgstr ""
39519
39520 #. type: =item
39521 #: ../tools/virt-win-reg.pl:565
39522 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39523 msgstr ""
39524
39525 #. type: =item
39526 #: ../tools/virt-win-reg.pl:567
39527 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39528 msgstr ""
39529
39530 #. type: =item
39531 #: ../tools/virt-win-reg.pl:569
39532 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39533 msgstr ""
39534
39535 #. type: =item
39536 #: ../tools/virt-win-reg.pl:571
39537 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39538 msgstr ""
39539
39540 #. type: =item
39541 #: ../tools/virt-win-reg.pl:573
39542 msgid "C<HKEY_USERS\\.DEFAULT>"
39543 msgstr ""
39544
39545 #. type: =item
39546 #: ../tools/virt-win-reg.pl:575
39547 msgid "C<HKEY_USERS\\I<SID>>"
39548 msgstr ""
39549
39550 #. type: textblock
39551 #: ../tools/virt-win-reg.pl:577
39552 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39553 msgstr ""
39554
39555 #. type: =item
39556 #: ../tools/virt-win-reg.pl:579
39557 msgid "C<HKEY_USERS\\I<username>>"
39558 msgstr ""
39559
39560 #. type: textblock
39561 #: ../tools/virt-win-reg.pl:581
39562 msgid ""
39563 "where I<username> is a local user name (this is a libguestfs extension)."
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../tools/virt-win-reg.pl:585
39568 msgid ""
39569 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39570 "C<HKEY_USERS>."
39571 msgstr ""
39572
39573 #. type: textblock
39574 #: ../tools/virt-win-reg.pl:588
39575 msgid ""
39576 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39577 "supported (there is no \"current user\")."
39578 msgstr ""
39579
39580 #. type: =head1
39581 #: ../tools/virt-win-reg.pl:591
39582 msgid "ENCODING"
39583 msgstr ""
39584
39585 #. type: textblock
39586 #: ../tools/virt-win-reg.pl:593
39587 msgid ""
39588 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39589 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39590 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39591 "Windows-style line endings, you may need to reencode the whole file before "
39592 "or after processing."
39593 msgstr ""
39594
39595 #. type: textblock
39596 #: ../tools/virt-win-reg.pl:599
39597 msgid ""
39598 "To reencode a file from Windows format to Linux (before processing it with "
39599 "the I<--merge> option), you would do something like this:"
39600 msgstr ""
39601
39602 #. type: verbatim
39603 #: ../tools/virt-win-reg.pl:602
39604 #, no-wrap
39605 msgid ""
39606 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39607 "\n"
39608 msgstr ""
39609
39610 #. type: textblock
39611 #: ../tools/virt-win-reg.pl:604
39612 msgid ""
39613 "To go in the opposite direction, after exporting and before sending the file "
39614 "to a Windows user, do something like this:"
39615 msgstr ""
39616
39617 #. type: verbatim
39618 #: ../tools/virt-win-reg.pl:607
39619 #, no-wrap
39620 msgid ""
39621 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39622 "\n"
39623 msgstr ""
39624
39625 #. type: textblock
39626 #: ../tools/virt-win-reg.pl:609
39627 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39628 msgstr ""
39629
39630 #. type: textblock
39631 #: ../tools/virt-win-reg.pl:611
39632 msgid ""
39633 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39634 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39635 "style (CRLF) line endings, like this:"
39636 msgstr ""
39637
39638 #. type: verbatim
39639 #: ../tools/virt-win-reg.pl:615
39640 #, no-wrap
39641 msgid ""
39642 " $ file software.reg\n"
39643 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39644 " with CRLF line terminators\n"
39645 "\n"
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../tools/virt-win-reg.pl:619
39650 msgid "This file would need conversion before you could I<--merge> it."
39651 msgstr ""
39652
39653 #. type: =head1
39654 #: ../tools/virt-win-reg.pl:621
39655 msgid "CurrentControlSet etc."
39656 msgstr ""
39657
39658 #. type: textblock
39659 #: ../tools/virt-win-reg.pl:623
39660 msgid ""
39661 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39662 "Registry at the level of the hive file, and therefore you cannot modify "
39663 "these."
39664 msgstr ""
39665
39666 #. type: textblock
39667 #: ../tools/virt-win-reg.pl:627
39668 msgid ""
39669 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39670 "circumstances it might refer to another control set.  The way to find out is "
39671 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39672 msgstr ""
39673
39674 #. type: verbatim
39675 #: ../tools/virt-win-reg.pl:631
39676 #, no-wrap
39677 msgid ""
39678 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39679 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39680 " \"Current\"=dword:00000001\n"
39681 " \"Default\"=dword:00000001\n"
39682 " \"Failed\"=dword:00000000\n"
39683 " \"LastKnownGood\"=dword:00000002\n"
39684 "\n"
39685 msgstr ""
39686
39687 #. type: textblock
39688 #: ../tools/virt-win-reg.pl:638
39689 msgid "\"Current\" is the one which Windows will choose when it boots."
39690 msgstr ""
39691
39692 #. type: textblock
39693 #: ../tools/virt-win-reg.pl:640
39694 msgid ""
39695 "Similarly, other C<Current...> keys in the path may need to be replaced."
39696 msgstr ""
39697
39698 #. type: =head1
39699 #: ../tools/virt-win-reg.pl:643
39700 msgid "WINDOWS TIPS"
39701 msgstr ""
39702
39703 #. type: textblock
39704 #: ../tools/virt-win-reg.pl:645
39705 msgid ""
39706 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39707 "be shut off, else you will get disk corruption."
39708 msgstr ""
39709
39710 #. type: =head2
39711 #: ../tools/virt-win-reg.pl:648
39712 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39713 msgstr ""
39714
39715 #. type: textblock
39716 #: ../tools/virt-win-reg.pl:650
39717 msgid ""
39718 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39719 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39720 "is uploaded into C<C:\\>:"
39721 msgstr ""
39722
39723 #. type: verbatim
39724 #: ../tools/virt-win-reg.pl:654
39725 #, no-wrap
39726 msgid ""
39727 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39728 "\n"
39729 msgstr ""
39730
39731 #. type: textblock
39732 #: ../tools/virt-win-reg.pl:656
39733 msgid "Prepare a regedit file containing the registry change:"
39734 msgstr ""
39735
39736 #. type: verbatim
39737 #: ../tools/virt-win-reg.pl:658
39738 #, no-wrap
39739 msgid ""
39740 " cat > test.reg <<'EOF'\n"
39741 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39742 " \"Test\"=\"c:\\\\test.bat\"\n"
39743 " EOF\n"
39744 "\n"
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../tools/virt-win-reg.pl:663
39749 msgid ""
39750 "In this example we use the key C<RunOnce> which means that the script will "
39751 "run precisely once when the first user logs in.  If you want it to run every "
39752 "time a user logs in, replace C<RunOnce> with C<Run>."
39753 msgstr ""
39754
39755 #. type: textblock
39756 #: ../tools/virt-win-reg.pl:667
39757 msgid "Now update the registry:"
39758 msgstr ""
39759
39760 #. type: verbatim
39761 #: ../tools/virt-win-reg.pl:669
39762 #, no-wrap
39763 msgid ""
39764 " virt-win-reg --merge WindowsGuest test.reg\n"
39765 "\n"
39766 msgstr ""
39767
39768 #. type: =head2
39769 #: ../tools/virt-win-reg.pl:671
39770 msgid "INSTALLING A SERVICE"
39771 msgstr ""
39772
39773 #. type: textblock
39774 #: ../tools/virt-win-reg.pl:673
39775 msgid ""
39776 "This section assumes you are familiar with Windows services, and you either "
39777 "have a program which handles the Windows Service Control Protocol directly "
39778 "or you want to run any program using a service wrapper like SrvAny or the "
39779 "free RHSrvAny."
39780 msgstr ""
39781
39782 #. type: textblock
39783 #: ../tools/virt-win-reg.pl:678
39784 msgid ""
39785 "First upload the program and optionally the service wrapper.  In this case "
39786 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39787 msgstr ""
39788
39789 #. type: verbatim
39790 #: ../tools/virt-win-reg.pl:682
39791 #, no-wrap
39792 msgid ""
39793 " guestfish -i -d WindowsGuest <<EOF\n"
39794 "   upload rhsrvany.exe /rhsrvany.exe\n"
39795 "   upload test.exe /test.exe\n"
39796 " EOF\n"
39797 "\n"
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../tools/virt-win-reg.pl:687
39802 msgid ""
39803 "Prepare a regedit file containing the registry changes.  In this example, "
39804 "the first registry change is needed for the service itself or the service "
39805 "wrapper (if used).  The second registry change is only needed because I am "
39806 "using the RHSrvAny service wrapper."
39807 msgstr ""
39808
39809 #. type: verbatim
39810 #: ../tools/virt-win-reg.pl:692
39811 #, no-wrap
39812 msgid ""
39813 " cat > service.reg <<'EOF'\n"
39814 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39815 " \"Type\"=dword:00000010\n"
39816 " \"Start\"=dword:00000002\n"
39817 " \"ErrorControl\"=dword:00000001\n"
39818 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39819 " \"DisplayName\"=\"RHSrvAny\"\n"
39820 " \"ObjectName\"=\"NetworkService\"\n"
39821 " \n"
39822 msgstr ""
39823
39824 #. type: verbatim
39825 #: ../tools/virt-win-reg.pl:701
39826 #, no-wrap
39827 msgid ""
39828 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39829 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39830 " \"PWD\"=\"c:\\\\Temp\"\n"
39831 " EOF\n"
39832 "\n"
39833 msgstr ""
39834
39835 #. type: textblock
39836 #: ../tools/virt-win-reg.pl:712
39837 msgid ""
39838 "For use of C<ControlSet001> see the section above in this manual page.  You "
39839 "may need to adjust this according to the control set that is in use by the "
39840 "guest."
39841 msgstr ""
39842
39843 #. type: textblock
39844 #: ../tools/virt-win-reg.pl:718
39845 msgid ""
39846 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39847 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39848 "privileged account."
39849 msgstr ""
39850
39851 #. type: textblock
39852 #: ../tools/virt-win-reg.pl:724
39853 msgid ""
39854 "For the meaning of the magic numbers, see this Microsoft KB article: "
39855 "L<http://support.microsoft.com/kb/103000>."
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../tools/virt-win-reg.pl:729
39860 msgid "Update the registry:"
39861 msgstr ""
39862
39863 #. type: verbatim
39864 #: ../tools/virt-win-reg.pl:731
39865 #, no-wrap
39866 msgid ""
39867 " virt-win-reg --merge WindowsGuest service.reg\n"
39868 "\n"
39869 msgstr ""
39870
39871 #. type: textblock
39872 #: ../tools/virt-win-reg.pl:735
39873 msgid ""
39874 "Be careful when passing parameters containing C<\\> (backslash) in the "
39875 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39876 "(but not both) to protect them from the shell."
39877 msgstr ""
39878
39879 #. type: textblock
39880 #: ../tools/virt-win-reg.pl:739
39881 msgid "Paths and value names are case-insensitive."
39882 msgstr ""
39883
39884 #. type: textblock
39885 #: ../tools/virt-win-reg.pl:748
39886 msgid ""
39887 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39888 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39889 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39890 msgstr ""
39891
39892 #. type: verbatim
39893 #: ../tools/virt-win-reg.pl:766
39894 #, no-wrap
39895 msgid ""
39896 " export LIBGUESTFS_DEBUG=1\n"
39897 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39898 "\n"
39899 msgstr ""
39900
39901 #. type: textblock
39902 #: ../tools/virt-win-reg.pl:769
39903 msgid ""
39904 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39905 "redhat.com/>"
39906 msgstr ""