Version 1.15.4.
[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 # Translators:
6 # rjones <rjones@redhat.com>, 2011.
7 #   <www.carrotsoft@gmail.com>, 2011.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: libguestfs\n"
11 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
12 "POT-Creation-Date: 2011-11-17 13:11+0000\n"
13 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "名前"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr ""
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr ""
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
308 msgid "B<-a> file"
309 msgstr ""
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
316 msgid "B<--add> file"
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:135
340 msgid "B<-c> URI"
341 msgstr ""
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:137
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../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:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:142
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
378 msgid "B<-d> guest"
379 msgstr ""
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
386 msgid "B<--domain> guest"
387 msgstr ""
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr ""
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:154
415 msgid "B<--format>"
416 msgstr ""
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
437 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:165
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:169
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr ""
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr ""
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr ""
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr ""
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical consumer hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/hw_sector_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/physical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/logical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/minimum_io_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/optimal_io_size\n"
725 " 0\n"
726 "\n"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:245
731 msgid "For a new consumer hard drive with 4Kbyte sectors:"
732 msgstr ""
733
734 #. type: verbatim
735 #: ../align/virt-alignment-scan.pod:247
736 #, no-wrap
737 msgid ""
738 " $ cat /sys/block/sda/queue/hw_sector_size\n"
739 " 4096\n"
740 " $ cat /sys/block/sda/queue/physical_block_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/logical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/minimum_io_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/optimal_io_size\n"
747 " 0\n"
748 "\n"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:258
753 msgid "For a NetApp LUN:"
754 msgstr ""
755
756 #. type: verbatim
757 #: ../align/virt-alignment-scan.pod:260
758 #, no-wrap
759 msgid ""
760 " $ cat /sys/block/sdc/queue/logical_block_size\n"
761 " 512\n"
762 " $ cat /sys/block/sdc/queue/physical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
765 " 4096\n"
766 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
767 " 65536\n"
768 "\n"
769 msgstr ""
770
771 #. type: textblock
772 #: ../align/virt-alignment-scan.pod:269
773 msgid ""
774 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
775 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
776 msgstr ""
777
778 #. type: textblock
779 #: ../align/virt-alignment-scan.pod:273
780 msgid ""
781 "For detailed information about what these numbers mean, see L<http://docs."
782 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
783 "Storage_Administration_Guide/newstorage-iolimits.html>"
784 msgstr ""
785
786 #. type: textblock
787 #: ../align/virt-alignment-scan.pod:276
788 msgid ""
789 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
790 "for providing NetApp data and additional information.]"
791 msgstr ""
792
793 #. type: =head2
794 #: ../align/virt-alignment-scan.pod:279
795 msgid "1 MB PARTITION ALIGNMENT"
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:281
800 msgid ""
801 "Microsoft picked 1 MB as the default alignment for all partitions starting "
802 "with Windows 2008 Server, and Linux has followed this."
803 msgstr ""
804
805 #. type: textblock
806 #: ../align/virt-alignment-scan.pod:284
807 msgid ""
808 "Assuming 512 byte sectors in the guest, you will now see the first partition "
809 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
810 "multiple of 2048 sectors."
811 msgstr ""
812
813 #. type: textblock
814 #: ../align/virt-alignment-scan.pod:288
815 msgid ""
816 "1 MB alignment is compatible with all current alignment requirements (4K, "
817 "64K) and provides room for future growth in physical block sizes."
818 msgstr ""
819
820 #. type: =head2
821 #: ../align/virt-alignment-scan.pod:291
822 msgid "SETTING ALIGNMENT"
823 msgstr ""
824
825 #. type: textblock
826 #: ../align/virt-alignment-scan.pod:293
827 msgid ""
828 "L<virt-resize(1)> can change the alignment of the partitions of some "
829 "guests.  Currently it can fully align all the partitions of all Windows "
830 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
831 "it can align the second and subsequent partitions, so the majority of OS "
832 "accesses except at boot will be aligned."
833 msgstr ""
834
835 #. type: textblock
836 #: ../align/virt-alignment-scan.pod:299
837 msgid ""
838 "Another way to correct partition alignment problems is to reinstall your "
839 "guest operating systems.  If you install operating systems from templates, "
840 "ensure these have correct partition alignment too."
841 msgstr ""
842
843 #. type: textblock
844 #: ../align/virt-alignment-scan.pod:303
845 msgid ""
846 "For older versions of Windows, the following NetApp document contains useful "
847 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
848 msgstr ""
849
850 #. type: textblock
851 #: ../align/virt-alignment-scan.pod:306
852 msgid ""
853 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
854 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
855 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
856 "contains an example."
857 msgstr ""
858
859 #. type: =head1
860 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
861 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
862 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
863 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
864 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:676
865 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
866 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
867 #: ../tools/virt-win-reg.pl:744
868 msgid "SHELL QUOTING"
869 msgstr ""
870
871 #. type: textblock
872 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
873 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
874 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
875 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
876 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:678
877 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
878 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
879 #: ../tools/virt-win-reg.pl:752
880 msgid ""
881 "Libvirt guest names can contain arbitrary characters, some of which have "
882 "meaning to the shell such as C<#> and space.  You may need to quote or "
883 "escape these characters on the command line.  See the shell manual page L<sh"
884 "(1)> for details."
885 msgstr ""
886
887 #. type: =head1
888 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
889 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
890 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
891 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
892 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
893 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
894 #: ../test-tool/libguestfs-test-tool.pod:90
895 msgid "EXIT STATUS"
896 msgstr ""
897
898 #. type: textblock
899 #: ../align/virt-alignment-scan.pod:320
900 msgid "This program returns:"
901 msgstr ""
902
903 #. type: =item
904 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
905 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
906 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
907 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
908 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
909 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
910 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
911 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
912 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
913 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
914 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
915 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
916 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
917 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
918 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
919 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
920 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
921 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
922 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
923 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
924 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
925 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
926 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
927 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
928 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
929 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
930 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
931 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
932 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
933 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
934 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
935 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
936 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
937 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
938 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
939 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408
940 #: ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359
941 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
942 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
943 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
944 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
945 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
946 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
947 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
948 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
949 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
950 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
951 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
952 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
953 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
954 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
955 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
956 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
957 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
958 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
959 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
960 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
961 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
962 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
963 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
964 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
965 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
966 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
967 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
968 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
969 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
970 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
971 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
972 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
973 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
974 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
975 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
976 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
977 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
978 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
979 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
980 #: ../tools/virt-win-reg.pl:733
981 msgid "*"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:326
986 msgid "0"
987 msgstr ""
988
989 #. type: textblock
990 #: ../align/virt-alignment-scan.pod:328
991 msgid ""
992 "successful exit, all partitions are aligned E<ge> 64K for best performance"
993 msgstr ""
994
995 #. type: textblock
996 #: ../align/virt-alignment-scan.pod:332
997 msgid "1"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../align/virt-alignment-scan.pod:334
1002 msgid "an error scanning the disk image or guest"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../align/virt-alignment-scan.pod:338
1007 msgid "2"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../align/virt-alignment-scan.pod:340
1012 msgid ""
1013 "successful exit, some partitions have alignment E<lt> 64K which can result "
1014 "in poor performance on high end network storage"
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../align/virt-alignment-scan.pod:345
1019 msgid "3"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../align/virt-alignment-scan.pod:347
1024 msgid ""
1025 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1026 "poor performance on most hypervisors"
1027 msgstr ""
1028
1029 #. type: =head1
1030 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1031 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1032 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1033 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1034 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1035 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1036 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1037 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1038 #: ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45
1039 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1040 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1041 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1042 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1043 #: ../test-tool/libguestfs-test-tool.pod:100
1044 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1045 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1046 #: ../tools/virt-win-reg.pl:757
1047 msgid "SEE ALSO"
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../align/virt-alignment-scan.pod:354
1052 msgid ""
1053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1054 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1055 msgstr ""
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1059 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1060 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1061 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1062 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1063 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1064 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1065 #: ../tools/virt-win-reg.pl:783
1066 msgid "AUTHOR"
1067 msgstr ""
1068
1069 #. type: textblock
1070 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1071 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1072 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1073 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1074 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:713
1075 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1076 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1077 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1078 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1079 msgstr ""
1080
1081 #. type: =head1
1082 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1083 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1084 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1085 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1086 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1087 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1088 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1089 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1090 #: ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62
1091 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1092 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1093 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1094 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1095 #: ../test-tool/libguestfs-test-tool.pod:110
1096 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1097 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1098 #: ../tools/virt-win-reg.pl:787
1099 msgid "COPYRIGHT"
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1104 #: ../sparsify/virt-sparsify.pod:270
1105 msgid "Copyright (C) 2011 Red Hat Inc."
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1110 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1111 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1112 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1113 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1114 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1115 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1116 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:719
1117 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1118 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1119 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1120 #: ../tools/virt-win-reg.pl:791
1121 msgid ""
1122 "This program is free software; you can redistribute it and/or modify it "
1123 "under the terms of the GNU General Public License as published by the Free "
1124 "Software Foundation; either version 2 of the License, or (at your option) "
1125 "any later version."
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1130 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1131 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1132 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1133 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1134 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1135 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1136 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:724
1137 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1138 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1139 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1140 #: ../tools/virt-win-reg.pl:796
1141 msgid ""
1142 "This program is distributed in the hope that it will be useful, but WITHOUT "
1143 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1144 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1145 "more details."
1146 msgstr ""
1147
1148 #. type: textblock
1149 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1150 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1151 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1152 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1153 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1154 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1155 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1156 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:729
1157 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1158 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1159 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1160 #: ../tools/virt-win-reg.pl:801
1161 msgid ""
1162 "You should have received a copy of the GNU General Public License along with "
1163 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1164 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1165 msgstr ""
1166
1167 #. type: textblock
1168 #: ../cat/virt-cat.pod:5
1169 msgid "virt-cat - Display files in a virtual machine"
1170 msgstr ""
1171
1172 #. type: verbatim
1173 #: ../cat/virt-cat.pod:9
1174 #, no-wrap
1175 msgid ""
1176 " virt-cat [--options] -d domname file [file ...]\n"
1177 "\n"
1178 msgstr ""
1179
1180 #. type: verbatim
1181 #: ../cat/virt-cat.pod:11
1182 #, no-wrap
1183 msgid ""
1184 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1185 "\n"
1186 msgstr ""
1187
1188 #. type: textblock
1189 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1190 #: ../inspector/virt-inspector.pod:13
1191 msgid "Old-style:"
1192 msgstr ""
1193
1194 #. type: verbatim
1195 #: ../cat/virt-cat.pod:15
1196 #, no-wrap
1197 msgid ""
1198 " virt-cat domname file\n"
1199 "\n"
1200 msgstr ""
1201
1202 #. type: verbatim
1203 #: ../cat/virt-cat.pod:17
1204 #, no-wrap
1205 msgid ""
1206 " virt-cat disk.img file\n"
1207 "\n"
1208 msgstr ""
1209
1210 #. type: textblock
1211 #: ../cat/virt-cat.pod:21
1212 msgid ""
1213 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1214 "C<file> exists in the named virtual machine (or disk image)."
1215 msgstr ""
1216
1217 #. type: textblock
1218 #: ../cat/virt-cat.pod:24
1219 msgid ""
1220 "Multiple filenames can be given, in which case they are concatenated "
1221 "together.  Each filename must be a full path, starting at the root directory "
1222 "(starting with '/')."
1223 msgstr ""
1224
1225 #. type: textblock
1226 #: ../cat/virt-cat.pod:28
1227 msgid ""
1228 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1229 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1230 "(see L</USING GUESTFISH> below)."
1231 msgstr ""
1232
1233 #. type: =head1
1234 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1235 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1236 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1237 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1238 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1239 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1240 #: ../tools/virt-tar.pl:50
1241 msgid "EXAMPLES"
1242 msgstr ""
1243
1244 #. type: textblock
1245 #: ../cat/virt-cat.pod:34
1246 msgid ""
1247 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1248 msgstr ""
1249
1250 #. type: verbatim
1251 #: ../cat/virt-cat.pod:37
1252 #, no-wrap
1253 msgid ""
1254 " virt-cat -d mydomain /etc/fstab\n"
1255 "\n"
1256 msgstr ""
1257
1258 #. type: textblock
1259 #: ../cat/virt-cat.pod:39
1260 msgid "List syslog messages from a VM disk image file:"
1261 msgstr ""
1262
1263 #. type: verbatim
1264 #: ../cat/virt-cat.pod:41
1265 #, no-wrap
1266 msgid ""
1267 " virt-cat -a disk.img /var/log/messages | tail\n"
1268 "\n"
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-cat.pod:43
1273 msgid "Find out what DHCP IP address a VM acquired:"
1274 msgstr ""
1275
1276 #. type: verbatim
1277 #: ../cat/virt-cat.pod:45
1278 #, no-wrap
1279 msgid ""
1280 " virt-cat -d mydomain /var/log/messages | \\\n"
1281 "   grep 'dhclient: bound to' | tail\n"
1282 "\n"
1283 msgstr ""
1284
1285 #. type: textblock
1286 #: ../cat/virt-cat.pod:48
1287 msgid "Find out what packages were recently installed:"
1288 msgstr ""
1289
1290 #. type: verbatim
1291 #: ../cat/virt-cat.pod:50
1292 #, no-wrap
1293 msgid ""
1294 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1295 "\n"
1296 msgstr ""
1297
1298 #. type: textblock
1299 #: ../cat/virt-cat.pod:52
1300 msgid "Find out who is logged on inside a virtual machine:"
1301 msgstr ""
1302
1303 #. type: verbatim
1304 #: ../cat/virt-cat.pod:54
1305 #, no-wrap
1306 msgid ""
1307 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1308 " who /tmp/utmp\n"
1309 "\n"
1310 msgstr ""
1311
1312 #. type: textblock
1313 #: ../cat/virt-cat.pod:57
1314 msgid "or who was logged on:"
1315 msgstr ""
1316
1317 #. type: verbatim
1318 #: ../cat/virt-cat.pod:59
1319 #, no-wrap
1320 msgid ""
1321 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1322 " last -f /tmp/wtmp\n"
1323 "\n"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1328 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1329 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1330 msgid ""
1331 "Add I<file> which should be a disk image from a virtual machine.  If the "
1332 "virtual machine has multiple block devices, you must supply all of them with "
1333 "separate I<-a> options."
1334 msgstr ""
1335
1336 #. type: =item
1337 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1338 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1339 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1340 msgid "B<--echo-keys>"
1341 msgstr ""
1342
1343 #. type: textblock
1344 #: ../cat/virt-cat.pod:100
1345 msgid ""
1346 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1347 "so you cannot see what you are typing.  If you are not worried about Tempest "
1348 "attacks and there is no one else in the room you can specify this flag to "
1349 "see what you are typing."
1350 msgstr ""
1351
1352 #. type: verbatim
1353 #: ../cat/virt-cat.pod:116
1354 #, no-wrap
1355 msgid ""
1356 " virt-cat --format=raw -a disk.img file\n"
1357 "\n"
1358 msgstr ""
1359
1360 #. type: verbatim
1361 #: ../cat/virt-cat.pod:120
1362 #, no-wrap
1363 msgid ""
1364 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1365 "\n"
1366 msgstr ""
1367
1368 #. type: =item
1369 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1370 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1371 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1372 msgid "B<--keys-from-stdin>"
1373 msgstr ""
1374
1375 #. type: textblock
1376 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1377 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1378 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1379 msgid ""
1380 "Read key or passphrase parameters from stdin.  The default is to try to read "
1381 "passphrases from the user by opening C</dev/tty>."
1382 msgstr ""
1383
1384 #. type: =head1
1385 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1386 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1387 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1388 msgstr ""
1389
1390 #. type: textblock
1391 #: ../cat/virt-cat.pod:154
1392 msgid "Previous versions of virt-cat allowed you to write either:"
1393 msgstr ""
1394
1395 #. type: verbatim
1396 #: ../cat/virt-cat.pod:156
1397 #, no-wrap
1398 msgid ""
1399 " virt-cat disk.img [disk.img ...] file\n"
1400 "\n"
1401 msgstr ""
1402
1403 #. type: textblock
1404 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1405 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1406 msgid "or"
1407 msgstr ""
1408
1409 #. type: verbatim
1410 #: ../cat/virt-cat.pod:160
1411 #, no-wrap
1412 msgid ""
1413 " virt-cat guestname file\n"
1414 "\n"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1419 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1420 msgid ""
1421 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1422 "the confusing case where a disk image might have the same name as a guest."
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1427 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1428 msgid "For compatibility the old style is still supported."
1429 msgstr ""
1430
1431 #. type: =head1
1432 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1433 msgid "WINDOWS PATHS"
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../cat/virt-cat.pod:170
1438 msgid ""
1439 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1440 "paths (eg. C<E:\\foo\\bar.txt>)."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1445 msgid "If and only if the guest is running Windows then:"
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1450 msgid ""
1451 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1452 "to the correct filesystem."
1453 msgstr ""
1454
1455 #. type: textblock
1456 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1457 msgid ""
1458 "Any backslash (C<\\>) characters in the path are replaced with forward "
1459 "slashes so that libguestfs can process it."
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-cat.pod:189
1464 msgid ""
1465 "The path is resolved case insensitively to locate the file that should be "
1466 "displayed."
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1471 msgid "There are some known shortcomings:"
1472 msgstr ""
1473
1474 #. type: textblock
1475 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1476 msgid "Some NTFS symbolic links may not be followed correctly."
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1481 msgid "NTFS junction points that cross filesystems are not followed."
1482 msgstr ""
1483
1484 #. type: =head1
1485 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1486 msgid "USING GUESTFISH"
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../cat/virt-cat.pod:210
1491 msgid ""
1492 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1493 "C<virt-cat> doesn't work."
1494 msgstr ""
1495
1496 #. type: textblock
1497 #: ../cat/virt-cat.pod:213
1498 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1499 msgstr ""
1500
1501 #. type: verbatim
1502 #: ../cat/virt-cat.pod:215
1503 #, no-wrap
1504 msgid ""
1505 " guestfish --ro -i -d domname download file -\n"
1506 "\n"
1507 msgstr ""
1508
1509 #. type: textblock
1510 #: ../cat/virt-cat.pod:217
1511 msgid ""
1512 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1513 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-cat.pod:221
1518 msgid ""
1519 "The command above uses libguestfs's guest inspection feature and so does not "
1520 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1521 "disk images that don't contain guests.  To display a file from a disk image "
1522 "directly, use:"
1523 msgstr ""
1524
1525 #. type: verbatim
1526 #: ../cat/virt-cat.pod:226
1527 #, no-wrap
1528 msgid ""
1529 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1530 "\n"
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../cat/virt-cat.pod:228
1535 msgid ""
1536 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1537 "the disk image, and C<file> is the full path to the file."
1538 msgstr ""
1539
1540 #. type: textblock
1541 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1542 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1543 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1544 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1545 msgid ""
1546 "This program returns 0 if successful, or non-zero if there was an error."
1547 msgstr ""
1548
1549 #. type: textblock
1550 #: ../cat/virt-cat.pod:245
1551 msgid ""
1552 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1553 "tar-out(1)>, L<http://libguestfs.org/>."
1554 msgstr ""
1555
1556 #. type: textblock
1557 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1558 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1559 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1560 msgstr ""
1561
1562 #. type: textblock
1563 #: ../cat/virt-filesystems.pod:5
1564 msgid ""
1565 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1566 "virtual machine or disk image"
1567 msgstr ""
1568
1569 #. type: verbatim
1570 #: ../cat/virt-filesystems.pod:9
1571 #, no-wrap
1572 msgid ""
1573 " virt-filesystems [--options] -d domname\n"
1574 "\n"
1575 msgstr ""
1576
1577 #. type: verbatim
1578 #: ../cat/virt-filesystems.pod:11
1579 #, no-wrap
1580 msgid ""
1581 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1582 "\n"
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-filesystems.pod:15
1587 msgid ""
1588 "This tool allows you to discover filesystems, partitions, logical volumes, "
1589 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1590 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1591 msgstr ""
1592
1593 #. type: textblock
1594 #: ../cat/virt-filesystems.pod:20
1595 msgid ""
1596 "One use for this tool is from shell scripts to iterate over all filesystems "
1597 "from a disk image:"
1598 msgstr ""
1599
1600 #. type: verbatim
1601 #: ../cat/virt-filesystems.pod:23
1602 #, no-wrap
1603 msgid ""
1604 " for fs in $(virt-filesystems -a disk.img); do\n"
1605 "   # ...\n"
1606 " done\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-filesystems.pod:27
1612 msgid ""
1613 "Another use is to list partitions before using another tool to modify those "
1614 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1615 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1616 msgstr ""
1617
1618 #. type: textblock
1619 #: ../cat/virt-filesystems.pod:32
1620 msgid ""
1621 "Various command line options control what this program displays.  You need "
1622 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1623 "guest respectively.  If you just specify that then the program shows "
1624 "filesystems found, one per line, like this:"
1625 msgstr ""
1626
1627 #. type: verbatim
1628 #: ../cat/virt-filesystems.pod:37
1629 #, no-wrap
1630 msgid ""
1631 " $ virt-filesystems -a disk.img\n"
1632 " /dev/sda1\n"
1633 " /dev/vg_guest/lv_root\n"
1634 "\n"
1635 msgstr ""
1636
1637 #. type: textblock
1638 #: ../cat/virt-filesystems.pod:41
1639 msgid ""
1640 "If you add I<-l> or I<--long> then the output includes extra information:"
1641 msgstr ""
1642
1643 #. type: verbatim
1644 #: ../cat/virt-filesystems.pod:44
1645 #, no-wrap
1646 msgid ""
1647 " $ virt-filesystems -a disk.img -l\n"
1648 " Name                   Type         VFS   Label  Size\n"
1649 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1650 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1651 "\n"
1652 msgstr ""
1653
1654 #. type: textblock
1655 #: ../cat/virt-filesystems.pod:49
1656 msgid ""
1657 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1658 "shown as well:"
1659 msgstr ""
1660
1661 #. type: verbatim
1662 #: ../cat/virt-filesystems.pod:52
1663 #, no-wrap
1664 msgid ""
1665 " $ virt-filesystems -a disk.img --extra\n"
1666 " /dev/sda1\n"
1667 " /dev/vg_guest/lv_root\n"
1668 " /dev/vg_guest/lv_swap\n"
1669 " /dev/vg_guest/lv_data\n"
1670 "\n"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-filesystems.pod:58
1675 msgid ""
1676 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1677 msgstr ""
1678
1679 #. type: verbatim
1680 #: ../cat/virt-filesystems.pod:60
1681 #, no-wrap
1682 msgid ""
1683 " $ virt-filesystems -a disk.img --partitions\n"
1684 " /dev/sda1\n"
1685 " /dev/sda2\n"
1686 "\n"
1687 msgstr ""
1688
1689 #. type: textblock
1690 #: ../cat/virt-filesystems.pod:64
1691 msgid ""
1692 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1693 "volumes>, I<--block-devices> to list those items."
1694 msgstr ""
1695
1696 #. type: textblock
1697 #: ../cat/virt-filesystems.pod:67
1698 msgid ""
1699 "You can use these options in combination as well (if you want a combination "
1700 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1701 "items fall into several categories (eg. C</dev/sda1> might be both a "
1702 "partition and a filesystem).  These items are listed several times.  To get "
1703 "a list which includes absolutely everything that virt-filesystems knows "
1704 "about, use the I<--all> option."
1705 msgstr ""
1706
1707 #. type: textblock
1708 #: ../cat/virt-filesystems.pod:74
1709 msgid ""
1710 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1711 "uuid> option to display device and filesystem UUIDs in the long output."
1712 msgstr ""
1713
1714 #. type: textblock
1715 #: ../cat/virt-filesystems.pod:78
1716 msgid ""
1717 "I<--all --long --uuid> is a useful combination to display all possible "
1718 "information about everything."
1719 msgstr ""
1720
1721 #. type: verbatim
1722 #: ../cat/virt-filesystems.pod:81
1723 #, no-wrap
1724 msgid ""
1725 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1726 " Name      Type       VFS  Label           Size Parent   UUID\n"
1727 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1728 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1729 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1730 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1731 " /dev/sda  device     -    -               20G  -        -\n"
1732 "\n"
1733 msgstr ""
1734
1735 #. type: textblock
1736 #: ../cat/virt-filesystems.pod:89
1737 msgid ""
1738 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1739 msgstr ""
1740
1741 #. type: =item
1742 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1743 msgid "B<--all>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-filesystems.pod:112
1748 msgid ""
1749 "Display everything.  This is currently the same as specifying these options: "
1750 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1751 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1752 "added to this list in future)."
1753 msgstr ""
1754
1755 #. type: textblock
1756 #: ../cat/virt-filesystems.pod:117
1757 msgid "See also I<--long>."
1758 msgstr ""
1759
1760 #. type: =item
1761 #: ../cat/virt-filesystems.pod:119
1762 msgid "B<--blkdevs>"
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-filesystems.pod:121
1767 msgid "B<--block-devices>"
1768 msgstr ""
1769
1770 #. type: textblock
1771 #: ../cat/virt-filesystems.pod:123
1772 msgid "Display block devices."
1773 msgstr ""
1774
1775 #. type: =item
1776 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1777 msgid "B<--csv>"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1782 msgid ""
1783 "Write out the results in CSV format (comma-separated values).  This format "
1784 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1785 "ABOUT CSV FORMAT> below."
1786 msgstr ""
1787
1788 #. type: textblock
1789 #: ../cat/virt-filesystems.pod:150
1790 msgid ""
1791 "When prompting for keys and passphrases, virt-filesystems normally turns "
1792 "echoing off so you cannot see what you are typing.  If you are not worried "
1793 "about Tempest attacks and there is no one else in the room you can specify "
1794 "this flag to see what you are typing."
1795 msgstr ""
1796
1797 #. type: =item
1798 #: ../cat/virt-filesystems.pod:155
1799 msgid "B<--extra>"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:157
1804 msgid ""
1805 "This causes filesystems that are not ordinary, mountable filesystems to be "
1806 "displayed.  This category includes swapspace, and filesystems that are empty "
1807 "or contain unknown data."
1808 msgstr ""
1809
1810 #. type: textblock
1811 #: ../cat/virt-filesystems.pod:161
1812 msgid "This option implies I<--filesystems>."
1813 msgstr ""
1814
1815 #. type: =item
1816 #: ../cat/virt-filesystems.pod:163
1817 msgid "B<--filesystems>"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-filesystems.pod:165
1822 msgid ""
1823 "Display mountable filesystems.  If no display option was selected then this "
1824 "option is implied."
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-filesystems.pod:168
1829 msgid "With I<--extra>, non-mountable filesystems are shown too."
1830 msgstr ""
1831
1832 #. type: verbatim
1833 #: ../cat/virt-filesystems.pod:181
1834 #, no-wrap
1835 msgid ""
1836 " virt-filesystems --format=raw -a disk.img\n"
1837 "\n"
1838 msgstr ""
1839
1840 #. type: verbatim
1841 #: ../cat/virt-filesystems.pod:185
1842 #, no-wrap
1843 msgid ""
1844 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1845 "\n"
1846 msgstr ""
1847
1848 #. type: =item
1849 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1850 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1851 #: ../tools/virt-list-partitions.pl:109
1852 msgid "B<-h>"
1853 msgstr ""
1854
1855 #. type: =item
1856 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1857 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1858 msgid "B<--human-readable>"
1859 msgstr ""
1860
1861 #. type: textblock
1862 #: ../cat/virt-filesystems.pod:198
1863 msgid "In I<--long> mode, display sizes in human-readable format."
1864 msgstr ""
1865
1866 #. type: =item
1867 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1868 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1869 msgid "B<-l>"
1870 msgstr ""
1871
1872 #. type: =item
1873 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1874 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1875 msgid "B<--long>"
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-filesystems.pod:209
1880 msgid "Display extra columns of data (\"long format\")."
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-filesystems.pod:211
1885 msgid "A title row is added unless you also specify I<--no-title>."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../cat/virt-filesystems.pod:213
1890 msgid ""
1891 "The extra columns displayed depend on what output you select, and the "
1892 "ordering of columns may change in future versions.  Use the title row, I<--"
1893 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1894 "programs."
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-filesystems.pod:218
1899 msgid ""
1900 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1901 "default is to show raw numbers of I<bytes>."
1902 msgstr ""
1903
1904 #. type: textblock
1905 #: ../cat/virt-filesystems.pod:221
1906 msgid "Use I<--uuid> to display UUIDs too."
1907 msgstr ""
1908
1909 #. type: =item
1910 #: ../cat/virt-filesystems.pod:223
1911 msgid "B<--lvs>"
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-filesystems.pod:225
1916 msgid "B<--logvols>"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-filesystems.pod:227
1921 msgid "B<--logical-volumes>"
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-filesystems.pod:229
1926 msgid ""
1927 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1928 "of whether the LVs contain filesystems."
1929 msgstr ""
1930
1931 #. type: =item
1932 #: ../cat/virt-filesystems.pod:232
1933 msgid "B<--no-title>"
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-filesystems.pod:234
1938 msgid "In I<--long> mode, don't add a title row."
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-filesystems.pod:236
1943 msgid ""
1944 "Note that the order of the columns is not fixed, and may change in future "
1945 "versions of virt-filesystems, so using this option may give you unexpected "
1946 "surprises."
1947 msgstr ""
1948
1949 #. type: =item
1950 #: ../cat/virt-filesystems.pod:240
1951 msgid "B<--parts>"
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:242
1956 msgid "B<--partitions>"
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../cat/virt-filesystems.pod:244
1961 msgid ""
1962 "Display partitions.  In this mode, these are displayed irrespective of "
1963 "whether the partitions contain filesystems."
1964 msgstr ""
1965
1966 #. type: =item
1967 #: ../cat/virt-filesystems.pod:247
1968 msgid "B<--pvs>"
1969 msgstr ""
1970
1971 #. type: =item
1972 #: ../cat/virt-filesystems.pod:249
1973 msgid "B<--physvols>"
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:251
1978 msgid "B<--physical-volumes>"
1979 msgstr ""
1980
1981 #. type: textblock
1982 #: ../cat/virt-filesystems.pod:253
1983 msgid "Display LVM physical volumes."
1984 msgstr ""
1985
1986 #. type: =item
1987 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1988 msgid "B<--uuid>"
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:257
1993 msgid "B<--uuids>"
1994 msgstr ""
1995
1996 #. type: textblock
1997 #: ../cat/virt-filesystems.pod:259
1998 msgid "In I<--long> mode, display UUIDs as well."
1999 msgstr ""
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:273
2003 msgid "B<--vgs>"
2004 msgstr ""
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:275
2008 msgid "B<--volgroups>"
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:277
2013 msgid "B<--volume-groups>"
2014 msgstr ""
2015
2016 #. type: textblock
2017 #: ../cat/virt-filesystems.pod:279
2018 msgid "Display LVM volume groups."
2019 msgstr ""
2020
2021 #. type: =head1
2022 #: ../cat/virt-filesystems.pod:287
2023 msgid "COLUMNS"
2024 msgstr ""
2025
2026 #. type: textblock
2027 #: ../cat/virt-filesystems.pod:289
2028 msgid ""
2029 "Note that columns in the output are subject to reordering and change in "
2030 "future versions of this tool."
2031 msgstr ""
2032
2033 #. type: =item
2034 #: ../cat/virt-filesystems.pod:294
2035 msgid "B<Name>"
2036 msgstr ""
2037
2038 #. type: textblock
2039 #: ../cat/virt-filesystems.pod:296
2040 msgid "The filesystem, partition, block device or LVM name."
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-filesystems.pod:298
2045 msgid ""
2046 "For device and partition names these are displayed as canonical libguestfs "
2047 "names, so that for example C</dev/sda2> is the second partition on the first "
2048 "device."
2049 msgstr ""
2050
2051 #. type: textblock
2052 #: ../cat/virt-filesystems.pod:302
2053 msgid ""
2054 "If the I<--long> option is B<not> specified, then only the name column is "
2055 "shown in the output."
2056 msgstr ""
2057
2058 #. type: =item
2059 #: ../cat/virt-filesystems.pod:305
2060 msgid "B<Type>"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../cat/virt-filesystems.pod:307
2065 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2066 msgstr ""
2067
2068 #. type: =item
2069 #: ../cat/virt-filesystems.pod:309
2070 msgid "B<VFS>"
2071 msgstr ""
2072
2073 #. type: textblock
2074 #: ../cat/virt-filesystems.pod:311
2075 msgid ""
2076 "If there is a filesystem, then this column displays the filesystem type if "
2077 "one could be detected, eg. C<ext4>."
2078 msgstr ""
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:314
2082 msgid "B<Label>"
2083 msgstr ""
2084
2085 #. type: textblock
2086 #: ../cat/virt-filesystems.pod:316
2087 msgid ""
2088 "If the object has a label (used for identifying and mounting filesystems) "
2089 "then this column contains the label."
2090 msgstr ""
2091
2092 #. type: =item
2093 #: ../cat/virt-filesystems.pod:319
2094 msgid "B<MBR>"
2095 msgstr ""
2096
2097 #. type: textblock
2098 #: ../cat/virt-filesystems.pod:321
2099 msgid ""
2100 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2101 "comprehensive list of partition types can be found here: L<http://www.win."
2102 "tue.nl/~aeb/partitions/partition_types-1.html>"
2103 msgstr ""
2104
2105 #. type: textblock
2106 #: ../cat/virt-filesystems.pod:325
2107 msgid "This is only applicable for DOS (MBR) partitions."
2108 msgstr ""
2109
2110 #. type: =item
2111 #: ../cat/virt-filesystems.pod:327
2112 msgid "B<Size>"
2113 msgstr ""
2114
2115 #. type: textblock
2116 #: ../cat/virt-filesystems.pod:329
2117 msgid ""
2118 "The size of the object in bytes.  If the I<--human> option is used then the "
2119 "size is displayed in a human-readable form."
2120 msgstr ""
2121
2122 #. type: =item
2123 #: ../cat/virt-filesystems.pod:332
2124 msgid "B<Parent>"
2125 msgstr ""
2126
2127 #. type: textblock
2128 #: ../cat/virt-filesystems.pod:334
2129 msgid ""
2130 "The parent column records the parent relationship between objects.  For "
2131 "example, if the object is a partition, then this column contains the name of "
2132 "the containing device.  If the object is a logical volume, then this column "
2133 "is the name of the volume group."
2134 msgstr ""
2135
2136 #. type: =item
2137 #: ../cat/virt-filesystems.pod:339
2138 msgid "B<UUID>"
2139 msgstr ""
2140
2141 #. type: textblock
2142 #: ../cat/virt-filesystems.pod:341
2143 msgid ""
2144 "If the object has a UUID (used for identifying and mounting filesystems and "
2145 "block devices) then this column contains the UUID as a string."
2146 msgstr ""
2147
2148 #. type: textblock
2149 #: ../cat/virt-filesystems.pod:345
2150 msgid "The UUID is only displayed if the I<--uuid> option is given."
2151 msgstr ""
2152
2153 #. type: =head1
2154 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2155 #: ../df/virt-df.pod:191
2156 msgid "NOTE ABOUT CSV FORMAT"
2157 msgstr ""
2158
2159 #. type: textblock
2160 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2161 #: ../df/virt-df.pod:193
2162 msgid ""
2163 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2164 "should be easy to parse, but it is definitely not easy to parse."
2165 msgstr ""
2166
2167 #. type: textblock
2168 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2169 #: ../df/virt-df.pod:196
2170 msgid ""
2171 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2172 "reliably.  This example has two columns:"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2177 #: ../df/virt-df.pod:199
2178 #, no-wrap
2179 msgid ""
2180 " \"foo,bar\",baz\n"
2181 "\n"
2182 msgstr ""
2183
2184 #. type: textblock
2185 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2186 #: ../df/virt-df.pod:201
2187 msgid ""
2188 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2189 "reliably.  This example has one row:"
2190 msgstr ""
2191
2192 #. type: verbatim
2193 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2194 #: ../df/virt-df.pod:204
2195 #, no-wrap
2196 msgid ""
2197 " \"foo\n"
2198 " bar\",baz\n"
2199 "\n"
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2204 #: ../df/virt-df.pod:207
2205 msgid ""
2206 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2207 "packaged in major Linux distributions)."
2208 msgstr ""
2209
2210 #. type: textblock
2211 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2212 #: ../df/virt-df.pod:210
2213 msgid ""
2214 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2215 "or Python's built-in csv library)."
2216 msgstr ""
2217
2218 #. type: textblock
2219 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2220 #: ../df/virt-df.pod:213
2221 msgid "Most spreadsheets and databases can import CSV directly."
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-filesystems.pod:387
2226 msgid ""
2227 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2228 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2229 "libguestfs.org/>."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2234 msgid "Copyright (C) 2010 Red Hat Inc."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:5
2239 msgid "virt-ls - List files in a virtual machine"
2240 msgstr ""
2241
2242 #. type: verbatim
2243 #: ../cat/virt-ls.pod:9
2244 #, no-wrap
2245 msgid ""
2246 " virt-ls [--options] -d domname directory [directory ...]\n"
2247 "\n"
2248 msgstr ""
2249
2250 #. type: verbatim
2251 #: ../cat/virt-ls.pod:11
2252 #, no-wrap
2253 msgid ""
2254 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2255 "\n"
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2260 msgid "Old style:"
2261 msgstr ""
2262
2263 #. type: verbatim
2264 #: ../cat/virt-ls.pod:15
2265 #, no-wrap
2266 msgid ""
2267 " virt-ls [--options] domname directory\n"
2268 "\n"
2269 msgstr ""
2270
2271 #. type: verbatim
2272 #: ../cat/virt-ls.pod:17
2273 #, no-wrap
2274 msgid ""
2275 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2276 "\n"
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../cat/virt-ls.pod:21
2281 msgid ""
2282 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2283 "more from a virtual machine or disk image."
2284 msgstr ""
2285
2286 #. type: textblock
2287 #: ../cat/virt-ls.pod:24
2288 msgid ""
2289 "Multiple directory names can be given, in which case the output from each is "
2290 "concatenated."
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-ls.pod:27
2295 msgid ""
2296 "To list directories from a libvirt guest use the I<-d> option to specify the "
2297 "name of the guest.  For a disk image, use the I<-a> option."
2298 msgstr ""
2299
2300 #. type: textblock
2301 #: ../cat/virt-ls.pod:31
2302 msgid ""
2303 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2304 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2305 "(3)> API."
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../cat/virt-ls.pod:37
2310 msgid "Get a list of all files and directories in a virtual machine:"
2311 msgstr ""
2312
2313 #. type: verbatim
2314 #: ../cat/virt-ls.pod:39
2315 #, no-wrap
2316 msgid ""
2317 " virt-ls -R -d guest /\n"
2318 "\n"
2319 msgstr ""
2320
2321 #. type: textblock
2322 #: ../cat/virt-ls.pod:41
2323 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2324 msgstr ""
2325
2326 #. type: verbatim
2327 #: ../cat/virt-ls.pod:43
2328 #, no-wrap
2329 msgid ""
2330 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2331 "\n"
2332 msgstr ""
2333
2334 #. type: textblock
2335 #: ../cat/virt-ls.pod:45
2336 msgid "List all public-writable directories in a Linux virtual machine:"
2337 msgstr ""
2338
2339 #. type: verbatim
2340 #: ../cat/virt-ls.pod:47
2341 #, no-wrap
2342 msgid ""
2343 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2344 "\n"
2345 msgstr ""
2346
2347 #. type: textblock
2348 #: ../cat/virt-ls.pod:49
2349 msgid "List all Unix domain sockets in a Linux virtual machine:"
2350 msgstr ""
2351
2352 #. type: verbatim
2353 #: ../cat/virt-ls.pod:51
2354 #, no-wrap
2355 msgid ""
2356 " virt-ls -lR -d guest / | grep '^s'\n"
2357 "\n"
2358 msgstr ""
2359
2360 #. type: textblock
2361 #: ../cat/virt-ls.pod:53
2362 msgid "List all regular files with filenames ending in '.png':"
2363 msgstr ""
2364
2365 #. type: verbatim
2366 #: ../cat/virt-ls.pod:55
2367 #, no-wrap
2368 msgid ""
2369 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2370 "\n"
2371 msgstr ""
2372
2373 #. type: textblock
2374 #: ../cat/virt-ls.pod:57
2375 msgid "To display files larger than 10MB in home directories:"
2376 msgstr ""
2377
2378 #. type: verbatim
2379 #: ../cat/virt-ls.pod:59
2380 #, no-wrap
2381 msgid ""
2382 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2383 "\n"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../cat/virt-ls.pod:61
2388 msgid "Find everything modified in the last 7 days:"
2389 msgstr ""
2390
2391 #. type: verbatim
2392 #: ../cat/virt-ls.pod:63
2393 #, no-wrap
2394 msgid ""
2395 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2396 "\n"
2397 msgstr ""
2398
2399 #. type: textblock
2400 #: ../cat/virt-ls.pod:65
2401 msgid "Find regular files modified in the last 24 hours:"
2402 msgstr ""
2403
2404 #. type: verbatim
2405 #: ../cat/virt-ls.pod:67
2406 #, no-wrap
2407 msgid ""
2408 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2409 "\n"
2410 msgstr ""
2411
2412 #. type: =head2
2413 #: ../cat/virt-ls.pod:69
2414 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2415 msgstr ""
2416
2417 #. type: textblock
2418 #: ../cat/virt-ls.pod:71
2419 msgid ""
2420 "Find the differences between files in a guest and an earlier snapshot of the "
2421 "same guest."
2422 msgstr ""
2423
2424 #. type: verbatim
2425 #: ../cat/virt-ls.pod:74
2426 #, no-wrap
2427 msgid ""
2428 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2429 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2430 " diff -u old new | less\n"
2431 "\n"
2432 msgstr ""
2433
2434 #. type: textblock
2435 #: ../cat/virt-ls.pod:78
2436 msgid ""
2437 "The commands above won't find files where the content has changed but the "
2438 "metadata (eg. file size and modification date) is the same.  To do that, you "
2439 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2440 "checksum> can be quite slow since it has to read and compute a checksum of "
2441 "every regular file in the virtual machine."
2442 msgstr ""
2443
2444 #. type: =head1
2445 #: ../cat/virt-ls.pod:84
2446 msgid "OUTPUT MODES"
2447 msgstr ""
2448
2449 #. type: textblock
2450 #: ../cat/virt-ls.pod:86
2451 msgid ""
2452 "C<virt-ls> has four output modes, controlled by different combinations of "
2453 "the I<-l> and I<-R> options."
2454 msgstr ""
2455
2456 #. type: =head2
2457 #: ../cat/virt-ls.pod:89
2458 msgid "SIMPLE LISTING"
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../cat/virt-ls.pod:91
2463 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2464 msgstr ""
2465
2466 #. type: verbatim
2467 #: ../cat/virt-ls.pod:93
2468 #, no-wrap
2469 msgid ""
2470 " $ virt-ls -d guest /\n"
2471 " bin\n"
2472 " boot\n"
2473 " [etc.]\n"
2474 "\n"
2475 msgstr ""
2476
2477 #. type: =head2
2478 #: ../cat/virt-ls.pod:98
2479 msgid "LONG LISTING"
2480 msgstr ""
2481
2482 #. type: textblock
2483 #: ../cat/virt-ls.pod:100
2484 msgid ""
2485 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2486 "(more specifically, like the C<guestfs_ll> function)."
2487 msgstr ""
2488
2489 #. type: verbatim
2490 #: ../cat/virt-ls.pod:103
2491 #, no-wrap
2492 msgid ""
2493 " $ virt-ls -l -d guest /\n"
2494 " total 204\n"
2495 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2496 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2497 " [etc.]\n"
2498 "\n"
2499 msgstr ""
2500
2501 #. type: textblock
2502 #: ../cat/virt-ls.pod:109
2503 msgid ""
2504 "Note that while this is useful for displaying a directory, do not try "
2505 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2506 "instead."
2507 msgstr ""
2508
2509 #. type: =head2
2510 #: ../cat/virt-ls.pod:113
2511 msgid "RECURSIVE LISTING"
2512 msgstr ""
2513
2514 #. type: textblock
2515 #: ../cat/virt-ls.pod:115
2516 msgid ""
2517 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2518 "and directories recursively:"
2519 msgstr ""
2520
2521 #. type: verbatim
2522 #: ../cat/virt-ls.pod:118
2523 #, no-wrap
2524 msgid ""
2525 " $ virt-ls -R -d guest /tmp\n"
2526 " foo\n"
2527 " foo/bar\n"
2528 " [etc.]\n"
2529 "\n"
2530 msgstr ""
2531
2532 #. type: textblock
2533 #: ../cat/virt-ls.pod:123
2534 msgid ""
2535 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2536 "converts C<\\0> characters to C<\\n>."
2537 msgstr ""
2538
2539 #. type: =head2
2540 #: ../cat/virt-ls.pod:126
2541 msgid "RECURSIVE LONG LISTING"
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../cat/virt-ls.pod:128
2546 msgid ""
2547 "Using I<-lR> options together changes the output to display directories "
2548 "recursively, with file stats, and optionally other features such as "
2549 "checksums and extended attributes."
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../cat/virt-ls.pod:132
2554 msgid ""
2555 "Most of the interesting features of C<virt-ls> are only available when using "
2556 "I<-lR> mode."
2557 msgstr ""
2558
2559 #. type: textblock
2560 #: ../cat/virt-ls.pod:135
2561 msgid ""
2562 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2563 "you cannot use the output in another program (because filenames can contain "
2564 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2565 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2566 "on you by creating filenames with embedded newline characters.  To B<safely> "
2567 "parse the output in another program, use the I<--csv> (Comma-Separated "
2568 "Values) option."
2569 msgstr ""
2570
2571 #. type: textblock
2572 #: ../cat/virt-ls.pod:143
2573 msgid ""
2574 "Note that this output format is completely unrelated to the C<ls -lR> "
2575 "command."
2576 msgstr ""
2577
2578 #. type: verbatim
2579 #: ../cat/virt-ls.pod:146
2580 #, no-wrap
2581 msgid ""
2582 " $ virt-ls -lR -d guest /bin\n"
2583 " d 0555       4096 /bin\n"
2584 " - 0755        123 /bin/alsaunmute\n"
2585 " - 0755      28328 /bin/arch\n"
2586 " l 0777          4 /bin/awk -> gawk\n"
2587 " - 0755      27216 /bin/basename\n"
2588 " - 0755     943360 /bin/bash\n"
2589 " [etc.]\n"
2590 "\n"
2591 msgstr ""
2592
2593 #. type: textblock
2594 #: ../cat/virt-ls.pod:155
2595 msgid "These basic fields are always shown:"
2596 msgstr ""
2597
2598 #. type: =item
2599 #: ../cat/virt-ls.pod:159
2600 msgid "type"
2601 msgstr ""
2602
2603 #. type: textblock
2604 #: ../cat/virt-ls.pod:161
2605 msgid ""
2606 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2607 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2608 "link), C<s> (socket) or C<u> (unknown)."
2609 msgstr ""
2610
2611 #. type: =item
2612 #: ../cat/virt-ls.pod:171
2613 msgid "permissions"
2614 msgstr ""
2615
2616 #. type: textblock
2617 #: ../cat/virt-ls.pod:173
2618 msgid "The Unix permissions, displayed as a 4 digit octal number."
2619 msgstr ""
2620
2621 #. type: =item
2622 #: ../cat/virt-ls.pod:175
2623 msgid "size"
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../cat/virt-ls.pod:177
2628 msgid ""
2629 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2630 "readable> option is given, in which case this is shown as a human-readable "
2631 "number."
2632 msgstr ""
2633
2634 #. type: =head2
2635 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4477
2636 msgid "path"
2637 msgstr ""
2638
2639 #. type: textblock
2640 #: ../cat/virt-ls.pod:183
2641 msgid "The full path of the file or directory."
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../cat/virt-ls.pod:185
2646 msgid "link"
2647 msgstr ""
2648
2649 #. type: textblock
2650 #: ../cat/virt-ls.pod:187
2651 msgid "For symbolic links only, the link target."
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:191
2656 msgid ""
2657 "In I<-lR> mode, additional command line options enable the display of more "
2658 "fields."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../cat/virt-ls.pod:194
2663 msgid ""
2664 "With the I<--uids> flag, these additional fields are displayed before the "
2665 "path:"
2666 msgstr ""
2667
2668 #. type: =item
2669 #: ../cat/virt-ls.pod:199
2670 msgid "uid"
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:201
2675 msgid "gid"
2676 msgstr ""
2677
2678 #. type: textblock
2679 #: ../cat/virt-ls.pod:203
2680 msgid ""
2681 "The UID and GID of the owner of the file (displayed numerically).  Note "
2682 "these only make sense in the context of a Unix-like guest."
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../cat/virt-ls.pod:208
2687 msgid "With the I<--times> flag, these additional fields are displayed:"
2688 msgstr ""
2689
2690 #. type: =item
2691 #: ../cat/virt-ls.pod:212
2692 msgid "atime"
2693 msgstr ""
2694
2695 #. type: textblock
2696 #: ../cat/virt-ls.pod:214
2697 msgid "The time of last access."
2698 msgstr ""
2699
2700 #. type: =item
2701 #: ../cat/virt-ls.pod:216
2702 msgid "mtime"
2703 msgstr ""
2704
2705 #. type: textblock
2706 #: ../cat/virt-ls.pod:218
2707 msgid "The time of last modification."
2708 msgstr ""
2709
2710 #. type: =item
2711 #: ../cat/virt-ls.pod:220
2712 msgid "ctime"
2713 msgstr ""
2714
2715 #. type: textblock
2716 #: ../cat/virt-ls.pod:222
2717 msgid "The time of last status change."
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../cat/virt-ls.pod:226
2722 msgid ""
2723 "The time fields are displayed as string dates and times, unless one of the "
2724 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2725 msgstr ""
2726
2727 #. type: textblock
2728 #: ../cat/virt-ls.pod:229
2729 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2730 msgstr ""
2731
2732 #. type: =item
2733 #: ../cat/virt-ls.pod:233
2734 msgid "device"
2735 msgstr ""
2736
2737 #. type: textblock
2738 #: ../cat/virt-ls.pod:235
2739 msgid ""
2740 "The device containing the file (displayed as major:minor).  This may not "
2741 "match devices as known to the guest."
2742 msgstr ""
2743
2744 #. type: =item
2745 #: ../cat/virt-ls.pod:238
2746 msgid "inode"
2747 msgstr ""
2748
2749 #. type: textblock
2750 #: ../cat/virt-ls.pod:240
2751 msgid "The inode number."
2752 msgstr ""
2753
2754 #. type: =item
2755 #: ../cat/virt-ls.pod:242
2756 msgid "nlink"
2757 msgstr ""
2758
2759 #. type: textblock
2760 #: ../cat/virt-ls.pod:244
2761 msgid "The number of hard links."
2762 msgstr ""
2763
2764 #. type: =item
2765 #: ../cat/virt-ls.pod:246
2766 msgid "rdev"
2767 msgstr ""
2768
2769 #. type: textblock
2770 #: ../cat/virt-ls.pod:248
2771 msgid ""
2772 "For block and char special files, the device (displayed as major:minor)."
2773 msgstr ""
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:251
2777 msgid "blocks"
2778 msgstr ""
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:253
2782 msgid "The number of 512 byte blocks allocated to the file."
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../cat/virt-ls.pod:257
2787 msgid ""
2788 "With the I<--checksum> flag, the checksum of the file contents is shown "
2789 "(only for regular files).  Computing file checksums can take a considerable "
2790 "amount of time."
2791 msgstr ""
2792
2793 #. type: =item
2794 #: ../cat/virt-ls.pod:280
2795 msgid "B<--checksum>"
2796 msgstr ""
2797
2798 #. type: =item
2799 #: ../cat/virt-ls.pod:282
2800 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2801 msgstr ""
2802
2803 #. type: textblock
2804 #: ../cat/virt-ls.pod:284
2805 msgid ""
2806 "Display checksum over file contents for regular files.  With no argument, "
2807 "this defaults to using I<md5>.  Using an argument, you can select the "
2808 "checksum type to use."
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2813 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2814 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2815 msgid ""
2816 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2817 "LISTING> above."
2818 msgstr ""
2819
2820 #. type: textblock
2821 #: ../cat/virt-ls.pod:316
2822 msgid ""
2823 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2824 "so you cannot see what you are typing.  If you are not worried about Tempest "
2825 "attacks and there is no one else in the room you can specify this flag to "
2826 "see what you are typing."
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:321
2831 msgid "B<--extra-stats>"
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:323
2836 msgid "Display extra stats."
2837 msgstr ""
2838
2839 #. type: verbatim
2840 #: ../cat/virt-ls.pod:339
2841 #, no-wrap
2842 msgid ""
2843 " virt-ls --format=raw -a disk.img /dir\n"
2844 "\n"
2845 msgstr ""
2846
2847 #. type: verbatim
2848 #: ../cat/virt-ls.pod:343
2849 #, no-wrap
2850 msgid ""
2851 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2852 "\n"
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:356
2857 msgid "Display file sizes in human-readable format."
2858 msgstr ""
2859
2860 #. type: =item
2861 #: ../cat/virt-ls.pod:370
2862 msgid "B<-R>"
2863 msgstr ""
2864
2865 #. type: =item
2866 #: ../cat/virt-ls.pod:372
2867 msgid "B<--recursive>"
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../cat/virt-ls.pod:374
2872 msgid ""
2873 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2874 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2875 "LISTING>."
2876 msgstr ""
2877
2878 #. type: textblock
2879 #: ../cat/virt-ls.pod:378
2880 msgid ""
2881 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2882 "LONG LISTING>."
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../cat/virt-ls.pod:381
2887 msgid ""
2888 "C<virt-ls -R> produces a recursive list of files starting at the named "
2889 "directory.  See L</RECURSIVE LISTING>."
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../cat/virt-ls.pod:384
2894 msgid ""
2895 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2896 "parsed.  See L</RECURSIVE LONG LISTING>."
2897 msgstr ""
2898
2899 #. type: =item
2900 #: ../cat/virt-ls.pod:387
2901 msgid "B<--times>"
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../cat/virt-ls.pod:389
2906 msgid "Display time fields."
2907 msgstr ""
2908
2909 #. type: =item
2910 #: ../cat/virt-ls.pod:394
2911 msgid "B<--time-days>"
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../cat/virt-ls.pod:396
2916 msgid "Display time fields as days before now (negative if in the future)."
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../cat/virt-ls.pod:398
2921 msgid ""
2922 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2923 "of the file is between 0 and 86399 seconds."
2924 msgstr ""
2925
2926 #. type: =item
2927 #: ../cat/virt-ls.pod:404
2928 msgid "B<--time-relative>"
2929 msgstr ""
2930
2931 #. type: textblock
2932 #: ../cat/virt-ls.pod:406
2933 msgid "Display time fields as seconds before now (negative if in the future)."
2934 msgstr ""
2935
2936 #. type: =item
2937 #: ../cat/virt-ls.pod:411
2938 msgid "B<--time-t>"
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../cat/virt-ls.pod:413
2943 msgid "Display time fields as seconds since the Unix epoch."
2944 msgstr ""
2945
2946 #. type: =item
2947 #: ../cat/virt-ls.pod:418
2948 msgid "B<--uids>"
2949 msgstr ""
2950
2951 #. type: textblock
2952 #: ../cat/virt-ls.pod:420
2953 msgid "Display UID and GID fields."
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../cat/virt-ls.pod:445
2958 msgid "Previous versions of virt-ls allowed you to write either:"
2959 msgstr ""
2960
2961 #. type: verbatim
2962 #: ../cat/virt-ls.pod:447
2963 #, no-wrap
2964 msgid ""
2965 " virt-ls disk.img [disk.img ...] /dir\n"
2966 "\n"
2967 msgstr ""
2968
2969 #. type: verbatim
2970 #: ../cat/virt-ls.pod:451
2971 #, no-wrap
2972 msgid ""
2973 " virt-ls guestname /dir\n"
2974 "\n"
2975 msgstr ""
2976
2977 #. type: textblock
2978 #: ../cat/virt-ls.pod:497
2979 msgid ""
2980 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2981 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2982 "L<http://libguestfs.org/>."
2983 msgstr ""
2984
2985 #. type: textblock
2986 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2987 #: ../rescue/virt-rescue.pod:340
2988 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2989 msgstr ""
2990
2991 #. type: textblock
2992 #: ../clone/virt-sysprep.pod:5
2993 msgid ""
2994 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2995 msgstr ""
2996
2997 #. type: verbatim
2998 #: ../clone/virt-sysprep.pod:9
2999 #, no-wrap
3000 msgid ""
3001 " virt-sysprep [--options] -d domname\n"
3002 "\n"
3003 msgstr ""
3004
3005 #. type: verbatim
3006 #: ../clone/virt-sysprep.pod:11
3007 #, no-wrap
3008 msgid ""
3009 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3010 "\n"
3011 msgstr ""
3012
3013 #. type: textblock
3014 #: ../clone/virt-sysprep.pod:15
3015 msgid ""
3016 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3017 "can be made from it.  Steps in this process include removing SSH host keys, "
3018 "removing persistent network MAC configuration, and removing user accounts.  "
3019 "Each step can be enabled or disabled as required."
3020 msgstr ""
3021
3022 #. type: textblock
3023 #: ../clone/virt-sysprep.pod:21
3024 msgid ""
3025 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3026 "customization by the system administrator."
3027 msgstr ""
3028
3029 #. type: textblock
3030 #: ../clone/virt-sysprep.pod:24
3031 msgid ""
3032 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3033 "be shut down.  If you want to preserve the existing contents of the guest, "
3034 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3035 msgstr ""
3036
3037 #. type: textblock
3038 #: ../clone/virt-sysprep.pod:29
3039 msgid ""
3040 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3041 "recommend that you don't.  The time you might want to run it as root is when "
3042 "you need root in order to access the disk image, but even in this case it "
3043 "would be better to change the permissions on the disk image to be writable "
3044 "as the non-root user running virt-sysprep."
3045 msgstr ""
3046
3047 #. type: textblock
3048 #: ../clone/virt-sysprep.pod:35
3049 msgid ""
3050 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3051 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3052 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3053 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3054 "Windows sysprepping in a future version, and we already have code to do it."
3055 msgstr ""
3056
3057 #. type: =item
3058 #: ../clone/virt-sysprep.pod:76
3059 msgid "B<--enable=...>"
3060 msgstr ""
3061
3062 #. type: textblock
3063 #: ../clone/virt-sysprep.pod:78
3064 msgid ""
3065 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3066 "operations, for example:"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../clone/virt-sysprep.pod:81
3071 #, no-wrap
3072 msgid ""
3073 " --enable=ssh-hostkeys,udev-persistent-net\n"
3074 "\n"
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../clone/virt-sysprep.pod:83
3079 msgid ""
3080 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3081 msgstr ""
3082
3083 #. type: textblock
3084 #: ../clone/virt-sysprep.pod:85
3085 msgid ""
3086 "If the I<--enable> option is not given, then we default to trying all "
3087 "possible sysprep operations.  But some sysprep operations are skipped for "
3088 "some guest types."
3089 msgstr ""
3090
3091 #. type: textblock
3092 #: ../clone/virt-sysprep.pod:89
3093 msgid ""
3094 "Use I<--list-operations> to list operations supported by a particular "
3095 "version of virt-sysprep."
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../clone/virt-sysprep.pod:92
3100 msgid ""
3101 "See L</OPERATIONS> below for a list and an explanation of each operation."
3102 msgstr ""
3103
3104 #. type: verbatim
3105 #: ../clone/virt-sysprep.pod:106
3106 #, no-wrap
3107 msgid ""
3108 " virt-sysprep --format=raw -a disk.img\n"
3109 "\n"
3110 msgstr ""
3111
3112 #. type: verbatim
3113 #: ../clone/virt-sysprep.pod:110
3114 #, no-wrap
3115 msgid ""
3116 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3117 "\n"
3118 msgstr ""
3119
3120 #. type: =item
3121 #: ../clone/virt-sysprep.pod:119
3122 msgid "B<--hostname> newhostname"
3123 msgstr ""
3124
3125 #. type: textblock
3126 #: ../clone/virt-sysprep.pod:121
3127 msgid ""
3128 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3129 "defaults to C<localhost.localdomain>."
3130 msgstr ""
3131
3132 #. type: =item
3133 #: ../clone/virt-sysprep.pod:124
3134 msgid "B<--list-operations>"
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:126
3139 msgid "List the operations supported by the virt-sysprep program."
3140 msgstr ""
3141
3142 #. type: =item
3143 #: ../clone/virt-sysprep.pod:128
3144 msgid "B<--selinux-relabel>"
3145 msgstr ""
3146
3147 #. type: =item
3148 #: ../clone/virt-sysprep.pod:130
3149 msgid "B<--no-selinux-relabel>"
3150 msgstr ""
3151
3152 #. type: textblock
3153 #: ../clone/virt-sysprep.pod:132
3154 msgid ""
3155 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3156 "I<--no-selinux-relabel> disables relabelling."
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../clone/virt-sysprep.pod:135
3161 msgid ""
3162 "The default is to try to detect if SELinux relabelling is required.  See L</"
3163 "SELINUX RELABELLING> below for more details."
3164 msgstr ""
3165
3166 #. type: =head1
3167 #: ../clone/virt-sysprep.pod:156
3168 msgid "OPERATIONS"
3169 msgstr ""
3170
3171 #. type: textblock
3172 #: ../clone/virt-sysprep.pod:158
3173 msgid ""
3174 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3175 "enabled>, although some are skipped depending on the type of guest."
3176 msgstr ""
3177
3178 #. type: textblock
3179 #: ../clone/virt-sysprep.pod:162
3180 msgid ""
3181 "Operations can be individually enabled using the I<--enable> option.  Use a "
3182 "comma-separated list, for example:"
3183 msgstr ""
3184
3185 #. type: verbatim
3186 #: ../clone/virt-sysprep.pod:165
3187 #, no-wrap
3188 msgid ""
3189 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3190 "\n"
3191 msgstr ""
3192
3193 #. type: textblock
3194 #: ../clone/virt-sysprep.pod:167
3195 msgid ""
3196 "To list the operations supported by the current version of virt-sysprep, use "
3197 "I<--list-operations>."
3198 msgstr ""
3199
3200 #. type: textblock
3201 #: ../clone/virt-sysprep.pod:170
3202 msgid ""
3203 "Future versions of virt-sysprep may add more operations.  If you are using "
3204 "virt-sysprep and want predictable behaviour, specify only the operations "
3205 "that you want to have enabled."
3206 msgstr ""
3207
3208 #. type: =head2
3209 #: ../clone/virt-sysprep.pod:174
3210 msgid "cron-spool"
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:176
3215 msgid "Remove user at-jobs and cron-jobs."
3216 msgstr ""
3217
3218 #. type: =head2
3219 #: ../clone/virt-sysprep.pod:178
3220 msgid "dhcp-client-state"
3221 msgstr ""
3222
3223 #. type: textblock
3224 #: ../clone/virt-sysprep.pod:180
3225 msgid "Remove DHCP client leases."
3226 msgstr ""
3227
3228 #. type: =head2
3229 #: ../clone/virt-sysprep.pod:182
3230 msgid "dhcp-server-state"
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../clone/virt-sysprep.pod:184
3235 msgid "Remove DHCP server leases."
3236 msgstr ""
3237
3238 #. type: =head2
3239 #: ../clone/virt-sysprep.pod:186
3240 msgid "hostname"
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../clone/virt-sysprep.pod:188
3245 msgid ""
3246 "Changes the hostname of the guest to the value given in the I<--hostname> "
3247 "parameter."
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../clone/virt-sysprep.pod:191
3252 msgid ""
3253 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3254 "C<localhost.localdomain>."
3255 msgstr ""
3256
3257 #. type: =head2
3258 #: ../clone/virt-sysprep.pod:194
3259 msgid "logfiles"
3260 msgstr ""
3261
3262 #. type: textblock
3263 #: ../clone/virt-sysprep.pod:196
3264 msgid "Remove many log files."
3265 msgstr ""
3266
3267 #. type: =head2
3268 #: ../clone/virt-sysprep.pod:198
3269 msgid "mail-spool"
3270 msgstr ""
3271
3272 #. type: textblock
3273 #: ../clone/virt-sysprep.pod:200
3274 msgid "Remove email from the local mail spool directory."
3275 msgstr ""
3276
3277 #. type: =head2
3278 #: ../clone/virt-sysprep.pod:202
3279 msgid "net-hwaddr"
3280 msgstr ""
3281
3282 #. type: textblock
3283 #: ../clone/virt-sysprep.pod:204
3284 msgid ""
3285 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3286 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3287 msgstr ""
3288
3289 #. type: =head2
3290 #: ../clone/virt-sysprep.pod:207
3291 msgid "random-seed"
3292 msgstr ""
3293
3294 #. type: textblock
3295 #: ../clone/virt-sysprep.pod:209
3296 msgid ""
3297 "Write some random bytes from the host into the random seed file of the guest."
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../clone/virt-sysprep.pod:212
3302 msgid "See L</RANDOM SEED> below."
3303 msgstr ""
3304
3305 #. type: =head2
3306 #: ../clone/virt-sysprep.pod:214
3307 msgid "rhn-systemid"
3308 msgstr ""
3309
3310 #. type: textblock
3311 #: ../clone/virt-sysprep.pod:216
3312 msgid "Remove the RHN system ID."
3313 msgstr ""
3314
3315 #. type: =head2
3316 #: ../clone/virt-sysprep.pod:218
3317 msgid "smolt-uuid"
3318 msgstr ""
3319
3320 #. type: textblock
3321 #: ../clone/virt-sysprep.pod:220
3322 msgid "Remove the Smolt hardware UUID."
3323 msgstr ""
3324
3325 #. type: =head2
3326 #: ../clone/virt-sysprep.pod:222
3327 msgid "ssh-hostkeys"
3328 msgstr ""
3329
3330 #. type: textblock
3331 #: ../clone/virt-sysprep.pod:224
3332 msgid "Remove the SSH host keys in the guest."
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../clone/virt-sysprep.pod:226
3337 msgid ""
3338 "The SSH host keys are regenerated (differently) next time the guest is "
3339 "booted."
3340 msgstr ""
3341
3342 #. type: textblock
3343 #: ../clone/virt-sysprep.pod:229
3344 msgid ""
3345 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3346 "stark warning about the host key changing:"
3347 msgstr ""
3348
3349 #. type: verbatim
3350 #: ../clone/virt-sysprep.pod:232
3351 #, no-wrap
3352 msgid ""
3353 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3354 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3355 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3356 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3357 "\n"
3358 msgstr ""
3359
3360 #. type: =head2
3361 #: ../clone/virt-sysprep.pod:237
3362 msgid "udev-persistent-net"
3363 msgstr ""
3364
3365 #. type: textblock
3366 #: ../clone/virt-sysprep.pod:239
3367 msgid ""
3368 "Remove udev persistent net rules which map the guest's existing MAC address "
3369 "to a fixed ethernet device (eg. eth0)."
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:242
3374 msgid ""
3375 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3376 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3377 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3378 "Erasing the udev persistent net rules avoids this."
3379 msgstr ""
3380
3381 #. type: =head2
3382 #: ../clone/virt-sysprep.pod:247
3383 msgid "utmp"
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../clone/virt-sysprep.pod:249
3388 msgid "Remove the utmp file."
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../clone/virt-sysprep.pod:251
3393 msgid ""
3394 "This records who is currently logged in on a machine.  In modern Linux "
3395 "distros it is stored in a ramdisk and hence not part of the virtual "
3396 "machine's disk, but it was stored on disk in older distros."
3397 msgstr ""
3398
3399 #. type: =head2
3400 #: ../clone/virt-sysprep.pod:255
3401 msgid "yum-uuid"
3402 msgstr ""
3403
3404 #. type: textblock
3405 #: ../clone/virt-sysprep.pod:257
3406 msgid "Remove the yum UUID."
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:259
3411 msgid ""
3412 "Yum creates a fresh UUID the next time it runs when it notices that the "
3413 "original UUID has been erased."
3414 msgstr ""
3415
3416 #. type: =head1
3417 #: ../clone/virt-sysprep.pod:262
3418 msgid "COPYING AND CLONING"
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../clone/virt-sysprep.pod:264
3423 msgid ""
3424 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3425 "prepare a template from which guests can be cloned.  There are many "
3426 "different ways to achieve this using the virt tools, and this section is "
3427 "just an introduction."
3428 msgstr ""
3429
3430 #. type: textblock
3431 #: ../clone/virt-sysprep.pod:269
3432 msgid "A virtual machine (when switched off) consists of two parts:"
3433 msgstr ""
3434
3435 #. type: =item
3436 #: ../clone/virt-sysprep.pod:273
3437 msgid "I<configuration>"
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../clone/virt-sysprep.pod:275
3442 msgid ""
3443 "The configuration or description of the guest.  eg. The libvirt XML (see "
3444 "C<virsh dumpxml>), the running configuration of the guest, or another "
3445 "external format like OVF."
3446 msgstr ""
3447
3448 #. type: textblock
3449 #: ../clone/virt-sysprep.pod:279
3450 msgid "Some configuration items that might need to be changed:"
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../clone/virt-sysprep.pod:285
3455 msgid "name"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3460 msgid "UUID"
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../clone/virt-sysprep.pod:293
3465 msgid "path to block device(s)"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../clone/virt-sysprep.pod:297
3470 msgid "network card MAC address"
3471 msgstr ""
3472
3473 #. type: =item
3474 #: ../clone/virt-sysprep.pod:301
3475 msgid "I<block device(s)>"
3476 msgstr ""
3477
3478 #. type: textblock
3479 #: ../clone/virt-sysprep.pod:303
3480 msgid ""
3481 "One or more hard disk images, themselves containing files, directories, "
3482 "applications, kernels, configuration, etc."
3483 msgstr ""
3484
3485 #. type: textblock
3486 #: ../clone/virt-sysprep.pod:306
3487 msgid "Some things inside the block devices that might need to be changed:"
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../clone/virt-sysprep.pod:312
3492 msgid "hostname and other net configuration"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../clone/virt-sysprep.pod:320
3497 msgid "SSH host keys"
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../clone/virt-sysprep.pod:324
3502 msgid "Windows unique security ID (SID)"
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../clone/virt-sysprep.pod:328
3507 msgid "Puppet registration"
3508 msgstr ""
3509
3510 #. type: =head2
3511 #: ../clone/virt-sysprep.pod:334
3512 msgid "COPYING THE BLOCK DEVICE"
3513 msgstr ""
3514
3515 #. type: textblock
3516 #: ../clone/virt-sysprep.pod:336
3517 msgid ""
3518 "Starting with an original guest, you probably wish to copy the guest block "
3519 "device and its configuration to make a template.  Then once you are happy "
3520 "with the template, you will want to make many clones from it."
3521 msgstr ""
3522
3523 #. type: verbatim
3524 #: ../clone/virt-sysprep.pod:341
3525 #, no-wrap
3526 msgid ""
3527 "                        virt-sysprep\n"
3528 "                             |\n"
3529 "                             v\n"
3530 " original guest --------> template ---------->\n"
3531 "                                      \\------> cloned\n"
3532 "                                       \\-----> guests\n"
3533 "                                        \\---->\n"
3534 "\n"
3535 msgstr ""
3536
3537 #. type: textblock
3538 #: ../clone/virt-sysprep.pod:349
3539 msgid ""
3540 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3541 "L<dd(1)>."
3542 msgstr ""
3543
3544 #. type: verbatim
3545 #: ../clone/virt-sysprep.pod:352
3546 #, no-wrap
3547 msgid ""
3548 "                   dd                 dd\n"
3549 " original guest --------> template ---------->\n"
3550 "                                      \\------> cloned\n"
3551 "                                       \\-----> guests\n"
3552 "                                        \\---->\n"
3553 "\n"
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../clone/virt-sysprep.pod:358
3558 msgid "There are some smarter (and faster) ways too:"
3559 msgstr ""
3560
3561 #. type: verbatim
3562 #: ../clone/virt-sysprep.pod:364
3563 #, no-wrap
3564 msgid ""
3565 "                          snapshot\n"
3566 "                template ---------->\n"
3567 "                            \\------> cloned\n"
3568 "                             \\-----> guests\n"
3569 "                              \\---->\n"
3570 "\n"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:370
3575 msgid ""
3576 "Use the block device as a backing file and create a snapshot on top for each "
3577 "guest.  The advantage is that you don't need to copy the block device (very "
3578 "fast) and only changes are stored (less storage required)."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../clone/virt-sysprep.pod:375
3583 msgid ""
3584 "Note that writing to the backing file once you have created guests on top of "
3585 "it is not possible: you will corrupt the guests."
3586 msgstr ""
3587
3588 #. type: textblock
3589 #: ../clone/virt-sysprep.pod:378
3590 msgid ""
3591 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3592 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3593 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3594 "also create cheap snapshots from files or LUNs."
3595 msgstr ""
3596
3597 #. type: textblock
3598 #: ../clone/virt-sysprep.pod:386
3599 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../clone/virt-sysprep.pod:390
3604 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3605 msgstr ""
3606
3607 #. type: =head2
3608 #: ../clone/virt-sysprep.pod:394
3609 msgid "VIRT-CLONE"
3610 msgstr ""
3611
3612 #. type: textblock
3613 #: ../clone/virt-sysprep.pod:396
3614 msgid ""
3615 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3616 "and/or modify the external libvirt configuration of a guest.  It will reset "
3617 "the name, UUID and MAC address of the guest in the libvirt XML."
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../clone/virt-sysprep.pod:401
3622 msgid ""
3623 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3624 "image.  This was the original motivation to write virt-sysprep."
3625 msgstr ""
3626
3627 #. type: =head2
3628 #: ../clone/virt-sysprep.pod:404
3629 msgid "SPARSIFY"
3630 msgstr ""
3631
3632 #. type: verbatim
3633 #: ../clone/virt-sysprep.pod:406
3634 #, no-wrap
3635 msgid ""
3636 "              virt-sparsify\n"
3637 " original guest --------> template\n"
3638 "\n"
3639 msgstr ""
3640
3641 #. type: textblock
3642 #: ../clone/virt-sysprep.pod:409
3643 msgid ""
3644 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3645 "it easier to compress and/or faster to copy."
3646 msgstr ""
3647
3648 #. type: textblock
3649 #: ../clone/virt-sysprep.pod:412
3650 msgid ""
3651 "Notice that since virt-sparsify also copies the image, you can use it to "
3652 "make the initial copy (instead of C<dd>)."
3653 msgstr ""
3654
3655 #. type: =head2
3656 #: ../clone/virt-sysprep.pod:415
3657 msgid "RESIZE"
3658 msgstr ""
3659
3660 #. type: verbatim
3661 #: ../clone/virt-sysprep.pod:417
3662 #, no-wrap
3663 msgid ""
3664 "                         virt-resize\n"
3665 "                template ---------->\n"
3666 "                            \\------> cloned\n"
3667 "                             \\-----> guests\n"
3668 "                              \\---->\n"
3669 "\n"
3670 msgstr ""
3671
3672 #. type: textblock
3673 #: ../clone/virt-sysprep.pod:423
3674 msgid ""
3675 "If you want to give people cloned guests, but let them pick the size of the "
3676 "guest themselves (eg. depending on how much they are prepared to pay for "
3677 "disk space), then instead of copying the template, you can run L<virt-resize"
3678 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3679 "guests from a template."
3680 msgstr ""
3681
3682 #. type: =head1
3683 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3684 msgid "SECURITY"
3685 msgstr ""
3686
3687 #. type: textblock
3688 #: ../clone/virt-sysprep.pod:431
3689 msgid ""
3690 "Although virt-sysprep removes some sensitive information from the guest, it "
3691 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3692 "above, and the implementation of the operations in the shell script.  You "
3693 "should also examine the guest afterwards."
3694 msgstr ""
3695
3696 #. type: textblock
3697 #: ../clone/virt-sysprep.pod:436
3698 msgid ""
3699 "Sensitive files are simply removed.  The data they contained may still exist "
3700 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3701 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3702 "(1)> command to get rid of deleted content in directory entries and inodes."
3703 msgstr ""
3704
3705 #. type: =head2
3706 #: ../clone/virt-sysprep.pod:442
3707 msgid "RANDOM SEED"
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../clone/virt-sysprep.pod:444
3712 msgid "I<(This section applies to Linux guests only)>"
3713 msgstr ""
3714
3715 #. type: textblock
3716 #: ../clone/virt-sysprep.pod:446
3717 msgid ""
3718 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3719 "from the host into the guest's random seed file."
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../clone/virt-sysprep.pod:449
3724 msgid ""
3725 "If this is just done once and the guest is cloned from the same template, "
3726 "then each guest will start with the same entropy, and things like SSH host "
3727 "keys and TCP sequence numbers may be predictable."
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../clone/virt-sysprep.pod:453
3732 msgid ""
3733 "Therefore you should arrange to add more randomness I<after> cloning from a "
3734 "template too, which can be done by just enabling the C<random-seed> "
3735 "operation:"
3736 msgstr ""
3737
3738 #. type: verbatim
3739 #: ../clone/virt-sysprep.pod:457
3740 #, no-wrap
3741 msgid ""
3742 " cp template.img newguest.img\n"
3743 " virt-sysprep --enable=random-seed -a newguest.img\n"
3744 "\n"
3745 msgstr ""
3746
3747 #. type: =head2
3748 #: ../clone/virt-sysprep.pod:460
3749 msgid "SELINUX RELABELLING"
3750 msgstr ""
3751
3752 #. type: textblock
3753 #: ../clone/virt-sysprep.pod:462
3754 msgid "I<(This section applies to Linux guests using SELinux only)>"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../clone/virt-sysprep.pod:464
3759 msgid ""
3760 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3761 "autorelabel> so that these will be correctly labelled by SELinux the next "
3762 "time the guest is booted.  This process interrupts boot and can take some "
3763 "time."
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../clone/virt-sysprep.pod:469
3768 msgid ""
3769 "You can force relabelling for all guests by supplying the I<--selinux-"
3770 "relabel> option."
3771 msgstr ""
3772
3773 #. type: textblock
3774 #: ../clone/virt-sysprep.pod:472
3775 msgid ""
3776 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3777 "relabel> option."
3778 msgstr ""
3779
3780 #. type: textblock
3781 #: ../clone/virt-sysprep.pod:484
3782 msgid "This program returns 0 on success, or 1 if there was an error."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../clone/virt-sysprep.pod:488
3787 msgid ""
3788 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3789 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3790 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3791 msgstr ""
3792
3793 #. type: textblock
3794 #: ../df/virt-df.pod:5
3795 msgid "virt-df - Display free space on virtual filesystems"
3796 msgstr ""
3797
3798 #. type: verbatim
3799 #: ../df/virt-df.pod:9
3800 #, no-wrap
3801 msgid ""
3802 " virt-df [--options]\n"
3803 "\n"
3804 msgstr ""
3805
3806 #. type: verbatim
3807 #: ../df/virt-df.pod:11
3808 #, no-wrap
3809 msgid ""
3810 " virt-df [--options] -d domname\n"
3811 "\n"
3812 msgstr ""
3813
3814 #. type: verbatim
3815 #: ../df/virt-df.pod:13
3816 #, no-wrap
3817 msgid ""
3818 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3819 "\n"
3820 msgstr ""
3821
3822 #. type: verbatim
3823 #: ../df/virt-df.pod:17
3824 #, no-wrap
3825 msgid ""
3826 " virt-df [--options] domname\n"
3827 "\n"
3828 msgstr ""
3829
3830 #. type: verbatim
3831 #: ../df/virt-df.pod:19
3832 #, no-wrap
3833 msgid ""
3834 " virt-df [--options] disk.img [disk.img ...]\n"
3835 "\n"
3836 msgstr ""
3837
3838 #. type: textblock
3839 #: ../df/virt-df.pod:23
3840 msgid ""
3841 "C<virt-df> is a command line tool to display free space on virtual machine "
3842 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3843 "allocated to a virtual machine, but can look inside disk images to see how "
3844 "much space is really being used."
3845 msgstr ""
3846
3847 #. type: textblock
3848 #: ../df/virt-df.pod:28
3849 msgid ""
3850 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3851 "to get a list of all active and inactive guests, and performs a C<df>-type "
3852 "operation on each one in turn, printing out the results."
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../df/virt-df.pod:32
3857 msgid ""
3858 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3859 "type operation on either the single named libvirt domain, or on the disk "
3860 "image(s) listed on the command line (which must all belong to a single VM).  "
3861 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3862 "guest>.  If you want to run on multiple guests, then you have to invoke "
3863 "C<virt-df> multiple times."
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../df/virt-df.pod:39
3868 msgid ""
3869 "Use the I<--csv> option to get a format which can be easily parsed by other "
3870 "programs.  Other options are similar to the standard L<df(1)> command."
3871 msgstr ""
3872
3873 #. type: textblock
3874 #: ../df/virt-df.pod:45
3875 msgid ""
3876 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3877 "output human-readable:"
3878 msgstr ""
3879
3880 #. type: verbatim
3881 #: ../df/virt-df.pod:48
3882 #, no-wrap
3883 msgid ""
3884 " # virt-df -d F14x64 -h\n"
3885 " Filesystem                       Size     Used  Available  Use%\n"
3886 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3887 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3888 "\n"
3889 msgstr ""
3890
3891 #. type: textblock
3892 #: ../df/virt-df.pod:53
3893 msgid "Show disk usage for a disk image file called C<test.img>:"
3894 msgstr ""
3895
3896 #. type: verbatim
3897 #: ../df/virt-df.pod:55
3898 #, no-wrap
3899 msgid ""
3900 " $ virt-df -a test1.img\n"
3901 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3902 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3903 "\n"
3904 msgstr ""
3905
3906 #. type: verbatim
3907 #: ../df/virt-df.pod:112
3908 #, no-wrap
3909 msgid ""
3910 " virt-df --format=raw -a disk.img\n"
3911 "\n"
3912 msgstr ""
3913
3914 #. type: verbatim
3915 #: ../df/virt-df.pod:116
3916 #, no-wrap
3917 msgid ""
3918 " virt-df --format=raw -a disk.img --format -a another.img\n"
3919 "\n"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../df/virt-df.pod:129
3924 msgid "Print sizes in human-readable format."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:131
3929 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3930 msgstr ""
3931
3932 #. type: =item
3933 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3934 msgid "B<-i>"
3935 msgstr ""
3936
3937 #. type: =item
3938 #: ../df/virt-df.pod:135
3939 msgid "B<--inodes>"
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../df/virt-df.pod:137
3944 msgid "Print inodes instead of blocks."
3945 msgstr ""
3946
3947 #. type: =item
3948 #: ../df/virt-df.pod:139
3949 msgid "B<--one-per-guest>"
3950 msgstr ""
3951
3952 #. type: textblock
3953 #: ../df/virt-df.pod:141
3954 msgid ""
3955 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3956 "disks from several guests to a single libguestfs appliance."
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../df/virt-df.pod:144
3961 msgid "You might use this option in the following circumstances:"
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:150
3966 msgid ""
3967 "If you think an untrusted guest might actively try to exploit the libguestfs "
3968 "appliance kernel, then this prevents one guest from interfering with the "
3969 "stats printed for another guest."
3970 msgstr ""
3971
3972 #. type: textblock
3973 #: ../df/virt-df.pod:156
3974 msgid ""
3975 "If the kernel has a bug which stops it from accessing a filesystem in one "
3976 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3977 "and report stats for further guests."
3978 msgstr ""
3979
3980 #. type: textblock
3981 #: ../df/virt-df.pod:165
3982 msgid ""
3983 "Print UUIDs instead of names.  This is useful for following a guest even "
3984 "when the guest is migrated or renamed, or when two guests happen to have the "
3985 "same name."
3986 msgstr ""
3987
3988 #. type: textblock
3989 #: ../df/virt-df.pod:169
3990 msgid ""
3991 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3992 "images, we still print the disk image name even when this option is "
3993 "specified."
3994 msgstr ""
3995
3996 #. type: textblock
3997 #: ../df/virt-df.pod:229
3998 msgid ""
3999 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4000 "libguestfs.org/>."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../edit/virt-edit.pod:5
4005 msgid "virt-edit - Edit a file in a virtual machine"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../edit/virt-edit.pod:9
4010 #, no-wrap
4011 msgid ""
4012 " virt-edit [--options] -d domname file [file ...]\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../edit/virt-edit.pod:11
4018 #, no-wrap
4019 msgid ""
4020 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../edit/virt-edit.pod:13
4026 #, no-wrap
4027 msgid ""
4028 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4029 "\n"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:17
4034 #, no-wrap
4035 msgid ""
4036 " virt-edit domname file\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: verbatim
4041 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4042 #, no-wrap
4043 msgid ""
4044 " virt-edit disk.img [disk.img ...] file\n"
4045 "\n"
4046 msgstr ""
4047
4048 #. type: =head1
4049 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4050 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4051 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4052 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4053 msgid "WARNING"
4054 msgstr ""
4055
4056 #. type: textblock
4057 #: ../edit/virt-edit.pod:23
4058 msgid ""
4059 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4060 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4061 "doing this, but doesn't catch all cases."
4062 msgstr ""
4063
4064 #. type: textblock
4065 #: ../edit/virt-edit.pod:29
4066 msgid ""
4067 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4068 "exists in the named virtual machine (or disk image)."
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../edit/virt-edit.pod:32
4073 msgid ""
4074 "Multiple filenames can be given, in which case they are each edited in "
4075 "turn.  Each filename must be a full path, starting at the root directory "
4076 "(starting with '/')."
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../edit/virt-edit.pod:36
4081 msgid "If you want to just view a file, use L<virt-cat(1)>."
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../edit/virt-edit.pod:38
4086 msgid ""
4087 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4088 "USING GUESTFISH> below)."
4089 msgstr ""
4090
4091 #. type: textblock
4092 #: ../edit/virt-edit.pod:41
4093 msgid ""
4094 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4095 "that and much more."
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../edit/virt-edit.pod:46
4100 msgid "Edit the named files interactively:"
4101 msgstr ""
4102
4103 #. type: verbatim
4104 #: ../edit/virt-edit.pod:48
4105 #, no-wrap
4106 msgid ""
4107 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4108 "\n"
4109 msgstr ""
4110
4111 #. type: verbatim
4112 #: ../edit/virt-edit.pod:50
4113 #, no-wrap
4114 msgid ""
4115 " virt-edit -d mydomain /etc/passwd\n"
4116 "\n"
4117 msgstr ""
4118
4119 #. type: textblock
4120 #: ../edit/virt-edit.pod:52
4121 msgid "For Windows guests, some Windows paths are understood:"
4122 msgstr ""
4123
4124 #. type: verbatim
4125 #: ../edit/virt-edit.pod:54
4126 #, no-wrap
4127 msgid ""
4128 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4129 "\n"
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../edit/virt-edit.pod:56
4134 msgid ""
4135 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4136 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4137 msgstr ""
4138
4139 #. type: verbatim
4140 #: ../edit/virt-edit.pod:60
4141 #, no-wrap
4142 msgid ""
4143 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4144 "\n"
4145 msgstr ""
4146
4147 #. type: =item
4148 #: ../edit/virt-edit.pod:81
4149 msgid "B<-b> extension"
4150 msgstr ""
4151
4152 #. type: =item
4153 #: ../edit/virt-edit.pod:83
4154 msgid "B<--backup> extension"
4155 msgstr ""
4156
4157 #. type: textblock
4158 #: ../edit/virt-edit.pod:85
4159 msgid ""
4160 "Create a backup of the original file I<in the guest disk image>.  The backup "
4161 "has the original filename with C<extension> added."
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../edit/virt-edit.pod:88
4166 msgid ""
4167 "Usually the first character of C<extension> would be a dot C<.> so you would "
4168 "write:"
4169 msgstr ""
4170
4171 #. type: verbatim
4172 #: ../edit/virt-edit.pod:91
4173 #, no-wrap
4174 msgid ""
4175 " virt-edit -b .orig [etc]\n"
4176 "\n"
4177 msgstr ""
4178
4179 #. type: textblock
4180 #: ../edit/virt-edit.pod:93
4181 msgid "By default, no backup file is made."
4182 msgstr ""
4183
4184 #. type: =item
4185 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4186 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4187 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4188 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4189 msgid "B<-c URI>"
4190 msgstr ""
4191
4192 #. type: =item
4193 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4194 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4195 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4196 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4197 msgid "B<--connect URI>"
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4202 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4203 #: ../tools/virt-win-reg.pl:135
4204 msgid ""
4205 "If you specify guest block devices directly, then libvirt is not used at all."
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../edit/virt-edit.pod:114
4210 msgid ""
4211 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4212 "off so you cannot see what you are typing.  If you are not worried about "
4213 "Tempest attacks and there is no one else in the room you can specify this "
4214 "flag to see what you are typing."
4215 msgstr ""
4216
4217 #. type: =item
4218 #: ../edit/virt-edit.pod:119
4219 msgid "B<-e> EXPR"
4220 msgstr ""
4221
4222 #. type: =item
4223 #: ../edit/virt-edit.pod:121
4224 msgid "B<--expr> EXPR"
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../edit/virt-edit.pod:123
4229 msgid ""
4230 "Instead of launching the external editor, non-interactively apply the Perl "
4231 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4232 "EDITING> below."
4233 msgstr ""
4234
4235 #. type: textblock
4236 #: ../edit/virt-edit.pod:127
4237 msgid ""
4238 "Be careful to properly quote the expression to prevent it from being altered "
4239 "by the shell."
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../edit/virt-edit.pod:130
4244 msgid "Note that this option is only available when Perl 5 is installed."
4245 msgstr ""
4246
4247 #. type: =item
4248 #: ../edit/virt-edit.pod:132
4249 msgid "B<--format> raw|qcow2|..."
4250 msgstr ""
4251
4252 #. type: verbatim
4253 #: ../edit/virt-edit.pod:143
4254 #, no-wrap
4255 msgid ""
4256 " virt-edit --format=raw -a disk.img file\n"
4257 "\n"
4258 msgstr ""
4259
4260 #. type: verbatim
4261 #: ../edit/virt-edit.pod:147
4262 #, no-wrap
4263 msgid ""
4264 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4265 "\n"
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../edit/virt-edit.pod:181
4270 msgid "Previous versions of virt-edit allowed you to write either:"
4271 msgstr ""
4272
4273 #. type: verbatim
4274 #: ../edit/virt-edit.pod:187
4275 #, no-wrap
4276 msgid ""
4277 " virt-edit guestname file\n"
4278 "\n"
4279 msgstr ""
4280
4281 #. type: =head1
4282 #: ../edit/virt-edit.pod:195
4283 msgid "NON-INTERACTIVE EDITING"
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../edit/virt-edit.pod:197
4288 msgid ""
4289 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4290 "administrator can interactively edit the file."
4291 msgstr ""
4292
4293 #. type: textblock
4294 #: ../edit/virt-edit.pod:200
4295 msgid ""
4296 "There are two ways also to use C<virt-edit> from scripts in order to make "
4297 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4298 "like this, it's less error-prone to write scripts directly using the "
4299 "libguestfs API and Augeas for configuration file editing.)"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:206
4304 msgid ""
4305 "The first method is to temporarily set C<$EDITOR> to any script or program "
4306 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4307 "update C<tmpfile> in place however it likes."
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../edit/virt-edit.pod:210
4312 msgid ""
4313 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4314 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4315 "instances of C<foo> with C<bar> in a file:"
4316 msgstr ""
4317
4318 #. type: verbatim
4319 #: ../edit/virt-edit.pod:214
4320 #, no-wrap
4321 msgid ""
4322 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4323 "\n"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../edit/virt-edit.pod:216
4328 msgid ""
4329 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4330 "For example to delete root's password you could do:"
4331 msgstr ""
4332
4333 #. type: verbatim
4334 #: ../edit/virt-edit.pod:219
4335 #, no-wrap
4336 msgid ""
4337 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4338 "\n"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../edit/virt-edit.pod:221
4343 msgid ""
4344 "What really happens is that the snippet is evaluated as a Perl expression "
4345 "for each line of the file.  The line, including the final C<\\n>, is passed "
4346 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../edit/virt-edit.pod:226
4351 msgid ""
4352 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4353 "C<apache> user account from the password file you can do:"
4354 msgstr ""
4355
4356 #. type: verbatim
4357 #: ../edit/virt-edit.pod:229
4358 #, no-wrap
4359 msgid ""
4360 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4361 "\n"
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../edit/virt-edit.pod:231
4366 msgid ""
4367 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4368 "the end of the file is rather difficult this way since there is no concept "
4369 "of \"last line of the file\" - your expression just doesn't get called "
4370 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4371 "want to do this."
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../edit/virt-edit.pod:237
4376 msgid ""
4377 "The variable C<$lineno> contains the current line number.  As is "
4378 "traditional, the first line in the file is number C<1>."
4379 msgstr ""
4380
4381 #. type: textblock
4382 #: ../edit/virt-edit.pod:240
4383 msgid ""
4384 "The return value from the expression is ignored, but the expression may call "
4385 "C<die> in order to abort the whole program, leaving the original file "
4386 "untouched."
4387 msgstr ""
4388
4389 #. type: textblock
4390 #: ../edit/virt-edit.pod:244
4391 msgid ""
4392 "Remember when matching the end of a line that C<$_> may contain the final C<"
4393 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4394 "newline then neither of these.  Thus to match or substitute some text at the "
4395 "end of a line, use this regular expression:"
4396 msgstr ""
4397
4398 #. type: verbatim
4399 #: ../edit/virt-edit.pod:249
4400 #, no-wrap
4401 msgid ""
4402 " /some text(\\r?\\n)?$/\n"
4403 "\n"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../edit/virt-edit.pod:251
4408 msgid ""
4409 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4410 "$_> itself (since that would remove all newlines from the file):"
4411 msgstr ""
4412
4413 #. type: verbatim
4414 #: ../edit/virt-edit.pod:255
4415 #, no-wrap
4416 msgid ""
4417 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../edit/virt-edit.pod:259
4423 msgid ""
4424 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4425 "paths (eg. C<E:\\foo\\bar.txt>)."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:278
4430 msgid ""
4431 "The path is resolved case insensitively to locate the file that should be "
4432 "edited."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../edit/virt-edit.pod:299
4437 msgid ""
4438 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4439 "C<virt-edit> doesn't work."
4440 msgstr ""
4441
4442 #. type: textblock
4443 #: ../edit/virt-edit.pod:302
4444 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../edit/virt-edit.pod:304
4449 #, no-wrap
4450 msgid ""
4451 " guestfish --rw -i -d domname edit /file\n"
4452 "\n"
4453 msgstr ""
4454
4455 #. type: textblock
4456 #: ../edit/virt-edit.pod:306
4457 msgid ""
4458 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4459 "path to the file."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:309
4464 msgid ""
4465 "The command above uses libguestfs's guest inspection feature and so does not "
4466 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4467 "disk images that don't contain guests.  To edit a file on a disk image "
4468 "directly, use:"
4469 msgstr ""
4470
4471 #. type: verbatim
4472 #: ../edit/virt-edit.pod:314
4473 #, no-wrap
4474 msgid ""
4475 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4476 "\n"
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../edit/virt-edit.pod:316
4481 msgid ""
4482 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4483 "the disk image to edit, and C</file> is the full path to the file."
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../edit/virt-edit.pod:320
4488 msgid ""
4489 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4490 "C<write> or C<upload> instead:"
4491 msgstr ""
4492
4493 #. type: verbatim
4494 #: ../edit/virt-edit.pod:323
4495 #, no-wrap
4496 msgid ""
4497 " guestfish --rw -i -d domname touch /newfile\n"
4498 "\n"
4499 msgstr ""
4500
4501 #. type: verbatim
4502 #: ../edit/virt-edit.pod:325
4503 #, no-wrap
4504 msgid ""
4505 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: verbatim
4510 #: ../edit/virt-edit.pod:327
4511 #, no-wrap
4512 msgid ""
4513 " guestfish --rw -i -d domname upload localfile /newfile\n"
4514 "\n"
4515 msgstr ""
4516
4517 #. type: =head1
4518 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4519 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:232
4520 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4521 msgid "ENVIRONMENT VARIABLES"
4522 msgstr ""
4523
4524 #. type: =item
4525 #: ../edit/virt-edit.pod:333
4526 msgid "C<EDITOR>"
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../edit/virt-edit.pod:335
4531 msgid ""
4532 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4533 "\"emacs -nw\">"
4534 msgstr ""
4535
4536 #. type: textblock
4537 #: ../edit/virt-edit.pod:338
4538 msgid "If not set, C<vi> is used."
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../edit/virt-edit.pod:356
4543 msgid ""
4544 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4545 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4546 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../erlang/examples/guestfs-erlang.pod:5
4551 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4552 msgstr ""
4553
4554 #. type: verbatim
4555 #: ../erlang/examples/guestfs-erlang.pod:9
4556 #, no-wrap
4557 msgid ""
4558 " {ok, G} = guestfs:create(),\n"
4559 " ok = guestfs:add_drive_opts(G, Disk,\n"
4560 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4561 " ok = guestfs:launch(G),\n"
4562 " [Device] = guestfs:list_devices(G),\n"
4563 " ok = guestfs:close(G).\n"
4564 "\n"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../erlang/examples/guestfs-erlang.pod:18
4569 msgid ""
4570 "This manual page documents how to call libguestfs from the Erlang "
4571 "programming language.  This page just documents the differences from the C "
4572 "API and gives some examples.  If you are not familiar with using libguestfs, "
4573 "you also need to read L<guestfs(3)>."
4574 msgstr ""
4575
4576 #. type: =head2
4577 #: ../erlang/examples/guestfs-erlang.pod:23
4578 msgid "OPENING AND CLOSING THE HANDLE"
4579 msgstr ""
4580
4581 #. type: textblock
4582 #: ../erlang/examples/guestfs-erlang.pod:25
4583 msgid ""
4584 "The Erlang bindings are implemented using an external program called C<erl-"
4585 "guestfs>.  This program must be on the current PATH, or else you should "
4586 "specify the full path to the program:"
4587 msgstr ""
4588
4589 #. type: verbatim
4590 #: ../erlang/examples/guestfs-erlang.pod:29
4591 #, no-wrap
4592 msgid ""
4593 " {ok, G} = guestfs:create().\n"
4594 "\n"
4595 msgstr ""
4596
4597 #. type: verbatim
4598 #: ../erlang/examples/guestfs-erlang.pod:31
4599 #, no-wrap
4600 msgid ""
4601 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4602 "\n"
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../erlang/examples/guestfs-erlang.pod:33
4607 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../erlang/examples/guestfs-erlang.pod:36
4612 msgid "To close the handle:"
4613 msgstr ""
4614
4615 #. type: verbatim
4616 #: ../erlang/examples/guestfs-erlang.pod:38
4617 #, no-wrap
4618 msgid ""
4619 " ok = guestfs:close(G).\n"
4620 "\n"
4621 msgstr ""
4622
4623 #. type: =head2
4624 #: ../erlang/examples/guestfs-erlang.pod:40
4625 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../erlang/examples/guestfs-erlang.pod:42
4630 msgid ""
4631 "For functions that take optional arguments, the first arguments are the non-"
4632 "optional ones.  The last argument is a list of tuples supplying the "
4633 "remaining optional arguments."
4634 msgstr ""
4635
4636 #. type: verbatim
4637 #: ../erlang/examples/guestfs-erlang.pod:46
4638 #, no-wrap
4639 msgid ""
4640 " ok = guestfs:add_drive_opts(G, Disk,\n"
4641 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4642 "\n"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../erlang/examples/guestfs-erlang.pod:49
4647 msgid "If the last argument would be an empty list, you can also omit it:"
4648 msgstr ""
4649
4650 #. type: verbatim
4651 #: ../erlang/examples/guestfs-erlang.pod:51
4652 #, no-wrap
4653 msgid ""
4654 " ok = guestfs:add_drive_opts(G, Disk).\n"
4655 "\n"
4656 msgstr ""
4657
4658 #. type: =head2
4659 #: ../erlang/examples/guestfs-erlang.pod:53
4660 msgid "RETURN VALUES AND ERRORS"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../erlang/examples/guestfs-erlang.pod:55
4665 msgid ""
4666 "On success, most functions return a C<Result> term (which could be a list, "
4667 "string, tuple etc.).  If there is nothing for the function to return, then "
4668 "the atom C<ok> is returned."
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../erlang/examples/guestfs-erlang.pod:59
4673 msgid "On error, you would see one of the following tuples:"
4674 msgstr ""
4675
4676 #. type: =item
4677 #: ../erlang/examples/guestfs-erlang.pod:63
4678 msgid "C<{error, Msg, Errno}>"
4679 msgstr ""
4680
4681 #. type: textblock
4682 #: ../erlang/examples/guestfs-erlang.pod:65
4683 msgid "This indicates an ordinary error from the function."
4684 msgstr ""
4685
4686 #. type: textblock
4687 #: ../erlang/examples/guestfs-erlang.pod:67
4688 msgid ""
4689 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4690 "(integer)."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../erlang/examples/guestfs-erlang.pod:70
4695 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4696 msgstr ""
4697
4698 #. type: =item
4699 #: ../erlang/examples/guestfs-erlang.pod:72
4700 msgid "C<{unknown, Function}>"
4701 msgstr ""
4702
4703 #. type: textblock
4704 #: ../erlang/examples/guestfs-erlang.pod:74
4705 msgid ""
4706 "This indicates that the function you called is not known.  Generally this "
4707 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4708 "which you should not do."
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../erlang/examples/guestfs-erlang.pod:78
4713 msgid "C<Function> is the name of the unknown function."
4714 msgstr ""
4715
4716 #. type: =item
4717 #: ../erlang/examples/guestfs-erlang.pod:80
4718 msgid "C<{unknownarg, Arg}>"
4719 msgstr ""
4720
4721 #. type: textblock
4722 #: ../erlang/examples/guestfs-erlang.pod:82
4723 msgid ""
4724 "This indicates that you called a function with optional arguments, with an "
4725 "unknown argument name."
4726 msgstr ""
4727
4728 #. type: textblock
4729 #: ../erlang/examples/guestfs-erlang.pod:85
4730 msgid "C<Arg> is the name of the unknown argument."
4731 msgstr ""
4732
4733 #. type: =head1
4734 #: ../erlang/examples/guestfs-erlang.pod:89
4735 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4736 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4737 #: ../python/examples/guestfs-python.pod:34
4738 #: ../ruby/examples/guestfs-ruby.pod:28
4739 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../erlang/examples/guestfs-erlang.pod:91
4744 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4745 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4746 #: ../python/examples/guestfs-python.pod:36
4747 #: ../ruby/examples/guestfs-ruby.pod:30
4748 msgid "@EXAMPLE1@"
4749 msgstr ""
4750
4751 #. type: =head1
4752 #: ../erlang/examples/guestfs-erlang.pod:93
4753 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4754 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4755 #: ../python/examples/guestfs-python.pod:38
4756 #: ../ruby/examples/guestfs-ruby.pod:32
4757 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4758 msgstr ""
4759
4760 #. type: textblock
4761 #: ../erlang/examples/guestfs-erlang.pod:95
4762 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4763 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4764 #: ../python/examples/guestfs-python.pod:40
4765 #: ../ruby/examples/guestfs-ruby.pod:34
4766 msgid "@EXAMPLE2@"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../erlang/examples/guestfs-erlang.pod:99
4771 msgid ""
4772 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4773 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4774 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4775 msgstr ""
4776
4777 #. type: =head1
4778 #: ../erlang/examples/guestfs-erlang.pod:110
4779 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4780 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4781 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4782 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4783 #: ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58
4784 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4785 #: ../python/examples/guestfs-python.pod:54
4786 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4787 #: ../test-tool/libguestfs-test-tool.pod:106
4788 msgid "AUTHORS"
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../erlang/examples/guestfs-erlang.pod:112
4793 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4794 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4795 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4796 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4797 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4798 #: ../perl/examples/guestfs-perl.pod:54
4799 #: ../python/examples/guestfs-python.pod:56
4800 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4801 #: ../test-tool/libguestfs-test-tool.pod:108
4802 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4803 msgstr ""
4804
4805 #. type: textblock
4806 #: ../erlang/examples/guestfs-erlang.pod:116
4807 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4808 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4809 msgstr ""
4810
4811 #. type: textblock
4812 #: ../erlang/examples/guestfs-erlang.pod:118
4813 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4814 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4815 #: ../perl/examples/guestfs-perl.pod:60
4816 #: ../python/examples/guestfs-python.pod:62
4817 #: ../ruby/examples/guestfs-ruby.pod:56
4818 msgid ""
4819 "The examples in this manual page may be freely copied, modified and "
4820 "distributed without any restrictions."
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../erlang/examples/guestfs-erlang.pod:121
4825 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4826 #: ../java/examples/guestfs-java.pod:69
4827 #: ../ocaml/examples/guestfs-ocaml.pod:102
4828 #: ../perl/examples/guestfs-perl.pod:63
4829 #: ../python/examples/guestfs-python.pod:65
4830 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4831 msgid ""
4832 "This library is free software; you can redistribute it and/or modify it "
4833 "under the terms of the GNU Lesser General Public License as published by the "
4834 "Free Software Foundation; either version 2 of the License, or (at your "
4835 "option) any later version."
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../erlang/examples/guestfs-erlang.pod:126
4840 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4841 #: ../java/examples/guestfs-java.pod:74
4842 #: ../ocaml/examples/guestfs-ocaml.pod:107
4843 #: ../perl/examples/guestfs-perl.pod:68
4844 #: ../python/examples/guestfs-python.pod:70
4845 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4846 msgid ""
4847 "This library is distributed in the hope that it will be useful, but WITHOUT "
4848 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4849 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4850 "for more details."
4851 msgstr ""
4852
4853 #. type: textblock
4854 #: ../erlang/examples/guestfs-erlang.pod:131
4855 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4856 #: ../java/examples/guestfs-java.pod:79
4857 #: ../ocaml/examples/guestfs-ocaml.pod:112
4858 #: ../perl/examples/guestfs-perl.pod:73
4859 #: ../python/examples/guestfs-python.pod:75
4860 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4861 msgid ""
4862 "You should have received a copy of the GNU Lesser General Public License "
4863 "along with this library; if not, write to the Free Software Foundation, "
4864 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../examples/guestfs-examples.pod:5
4869 msgid "guestfs-examples - Examples of using libguestfs from C"
4870 msgstr ""
4871
4872 #. type: verbatim
4873 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4874 #, no-wrap
4875 msgid ""
4876 " #include <guestfs.h>\n"
4877 " \n"
4878 msgstr "#include <guestfs.h>\n"
4879
4880 #. type: verbatim
4881 #: ../examples/guestfs-examples.pod:11
4882 #, no-wrap
4883 msgid ""
4884 " guestfs_h *g = guestfs_create ();\n"
4885 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4886 " guestfs_launch (g);\n"
4887 "\n"
4888 msgstr ""
4889
4890 #. type: verbatim
4891 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4892 #, no-wrap
4893 msgid ""
4894 " cc prog.c -o prog -lguestfs\n"
4895 "or:\n"
4896 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4897 "\n"
4898 msgstr ""
4899 " cc prog.c -o prog -lguestfs\n"
4900 "or:\n"
4901 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4902 "\n"
4903
4904 #. type: textblock
4905 #: ../examples/guestfs-examples.pod:21
4906 msgid ""
4907 "This manual page contains examples of calling libguestfs from the C "
4908 "programming language.  If you are not familiar with using libguestfs, you "
4909 "also need to read L<guestfs(3)>."
4910 msgstr ""
4911
4912 #. type: textblock
4913 #: ../examples/guestfs-examples.pod:35
4914 msgid ""
4915 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4916 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4917 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4922 #: ../python/examples/guestfs-python.pod:60
4923 #: ../ruby/examples/guestfs-ruby.pod:54
4924 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4925 msgstr ""
4926
4927 #. type: =end
4928 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4929 msgid "comment"
4930 msgstr ""
4931
4932 #. type: textblock
4933 #: ../examples/guestfs-recipes.pod:5
4934 msgid ""
4935 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4936 "here.  The only way which works for both sorts of output is to just write "
4937 "the URL directly.  Do NOT use L<...> for URLs."
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../examples/guestfs-recipes.pod:9
4942 msgid ""
4943 "We break with tradition here and don't use ALL CAPS for the section "
4944 "headings, as this makes them much easier to read."
4945 msgstr ""
4946
4947 #. type: textblock
4948 #: ../examples/guestfs-recipes.pod:16
4949 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4950 msgstr ""
4951
4952 #. type: textblock
4953 #: ../examples/guestfs-recipes.pod:20
4954 msgid ""
4955 "This page contains recipes for and links to things you can do using "
4956 "libguestfs, L<guestfish(1)> and the virt tools."
4957 msgstr ""
4958
4959 #. type: =head1
4960 #: ../examples/guestfs-recipes.pod:23
4961 msgid "Audit a virtual machine for setuid files"
4962 msgstr ""
4963
4964 #. type: textblock
4965 #: ../examples/guestfs-recipes.pod:25
4966 msgid ""
4967 "The link below contains a small program which can be used to audit a Linux "
4968 "virtual machine to see what setuid and setgid files it contains."
4969 msgstr ""
4970
4971 #. type: textblock
4972 #: ../examples/guestfs-recipes.pod:28
4973 msgid ""
4974 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4975 "files/#content"
4976 msgstr ""
4977
4978 #. type: =head1
4979 #: ../examples/guestfs-recipes.pod:30
4980 msgid "Change the background image in a Windows XP VM"
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../examples/guestfs-recipes.pod:32
4985 msgid ""
4986 "The links below explain how to use L<guestfish(1)> to change the background "
4987 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4988 "be substantially different for each version of Windows."
4989 msgstr ""
4990
4991 #. type: textblock
4992 #: ../examples/guestfs-recipes.pod:37
4993 msgid ""
4994 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4995 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4996 msgstr ""
4997
4998 #. type: =head1
4999 #: ../examples/guestfs-recipes.pod:40
5000 msgid "Cloning a virtual machine (Linux)"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:42
5005 msgid ""
5006 "The guestfish technique described in the link below works well for most "
5007 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5008 "slightly."
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../examples/guestfs-recipes.pod:46
5013 msgid ""
5014 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5015 "vm/#content"
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../examples/guestfs-recipes.pod:48
5020 msgid ""
5021 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5022 "discussion."
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../examples/guestfs-recipes.pod:51
5027 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5028 msgstr ""
5029
5030 #. type: =head1
5031 #: ../examples/guestfs-recipes.pod:53
5032 msgid "Cloning a virtual machine (Windows)"
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../examples/guestfs-recipes.pod:55
5037 msgid ""
5038 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5039 "straightforward.  Currently there is code in the Aeolus Oz project which "
5040 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5041 "we may add sysprepping ability."
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../examples/guestfs-recipes.pod:60
5046 msgid ""
5047 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5048 "list/2011-May/msg00019.html"
5049 msgstr ""
5050
5051 #. type: =head1
5052 #: ../examples/guestfs-recipes.pod:63
5053 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5054 msgstr ""
5055
5056 #. type: textblock
5057 #: ../examples/guestfs-recipes.pod:65
5058 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5059 msgstr ""
5060
5061 #. type: verbatim
5062 #: ../examples/guestfs-recipes.pod:67
5063 #, no-wrap
5064 msgid ""
5065 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5066 "\n"
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../examples/guestfs-recipes.pod:69
5071 msgid "To export just a subdirectory, eg. C</files>, do:"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../examples/guestfs-recipes.pod:71
5076 #, no-wrap
5077 msgid ""
5078 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: =head1
5083 #: ../examples/guestfs-recipes.pod:73
5084 msgid "Create empty disk images"
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../examples/guestfs-recipes.pod:75
5089 msgid ""
5090 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5091 "The useful guide below explains the options available."
5092 msgstr ""
5093
5094 #. type: textblock
5095 #: ../examples/guestfs-recipes.pod:78
5096 msgid ""
5097 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5098 "#content"
5099 msgstr ""
5100
5101 #. type: =head1
5102 #: ../examples/guestfs-recipes.pod:80
5103 msgid "Dump raw filesystem content from inside a disk image or VM"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../examples/guestfs-recipes.pod:82
5108 msgid ""
5109 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5110 "filesystem content from any filesystem in a disk image or a VM (even one "
5111 "which is encrypted or buried inside an LV):"
5112 msgstr ""
5113
5114 #. type: verbatim
5115 #: ../examples/guestfs-recipes.pod:86
5116 #, no-wrap
5117 msgid ""
5118 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5119 "\n"
5120 msgstr ""
5121
5122 #. type: verbatim
5123 #: ../examples/guestfs-recipes.pod:88
5124 #, no-wrap
5125 msgid ""
5126 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5127 "\n"
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../examples/guestfs-recipes.pod:90
5132 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5133 msgstr ""
5134
5135 #. type: =head1
5136 #: ../examples/guestfs-recipes.pod:92
5137 msgid "Edit grub configuration in a VM"
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../examples/guestfs-recipes.pod:94
5142 msgid "You can use this to:"
5143 msgstr ""
5144
5145 #. type: textblock
5146 #: ../examples/guestfs-recipes.pod:100
5147 msgid "Fix a virtual machine that does not boot."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:104
5152 msgid "Change which kernel is used to boot the VM."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../examples/guestfs-recipes.pod:108
5157 msgid "Change kernel command line options."
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../examples/guestfs-recipes.pod:112
5162 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5163 msgstr ""
5164
5165 #. type: verbatim
5166 #: ../examples/guestfs-recipes.pod:114
5167 #, no-wrap
5168 msgid ""
5169 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5170 "\n"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../examples/guestfs-recipes.pod:116
5175 msgid ""
5176 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5177 "this:"
5178 msgstr ""
5179
5180 #. type: verbatim
5181 #: ../examples/guestfs-recipes.pod:119
5182 #, no-wrap
5183 msgid ""
5184 " virt-rescue -d BrokenGuest\n"
5185 "\n"
5186 msgstr ""
5187
5188 #. type: =head1
5189 #: ../examples/guestfs-recipes.pod:121
5190 msgid "Export any directory from a VM"
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../examples/guestfs-recipes.pod:123
5195 msgid ""
5196 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5197 msgstr ""
5198
5199 #. type: verbatim
5200 #: ../examples/guestfs-recipes.pod:126
5201 #, no-wrap
5202 msgid ""
5203 " virt-copy-out -d Guest /home .\n"
5204 "\n"
5205 msgstr ""
5206
5207 #. type: textblock
5208 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5209 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5210 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5211 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5212 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5213 #: ../tools/virt-win-reg.pl:717
5214 msgid "Notes:"
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../examples/guestfs-recipes.pod:134
5219 msgid ""
5220 "The final dot of the command is not a printing error.  It means we want to "
5221 "copy out to the current directory."
5222 msgstr ""
5223
5224 #. type: textblock
5225 #: ../examples/guestfs-recipes.pod:139
5226 msgid "This creates a directory called C<home> under the current directory."
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:143
5231 msgid ""
5232 "If the guest is a Windows guest then you can use drive letters and "
5233 "backslashes, but you must prefix the path with C<win:> and quote it to "
5234 "protect it from the shell, like this:"
5235 msgstr ""
5236
5237 #. type: verbatim
5238 #: ../examples/guestfs-recipes.pod:147
5239 #, no-wrap
5240 msgid ""
5241 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5242 "\n"
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../examples/guestfs-recipes.pod:149
5247 msgid "To get the output as a compressed tarball, do:"
5248 msgstr ""
5249
5250 #. type: verbatim
5251 #: ../examples/guestfs-recipes.pod:151
5252 #, no-wrap
5253 msgid ""
5254 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5255 "\n"
5256 msgstr ""
5257
5258 #. type: textblock
5259 #: ../examples/guestfs-recipes.pod:153
5260 msgid ""
5261 "Although it sounds tempting, this is usually not a reliable way to get a "
5262 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5263 "org/FAQ.html#backup"
5264 msgstr ""
5265
5266 #. type: =head1
5267 #: ../examples/guestfs-recipes.pod:157
5268 msgid "Find out which user is using the most space"
5269 msgstr ""
5270
5271 #. type: textblock
5272 #: ../examples/guestfs-recipes.pod:159
5273 msgid ""
5274 "This simple script examines a Linux guest to find out which user is using "
5275 "the most space in their home directory:"
5276 msgstr ""
5277
5278 #. type: verbatim
5279 #: ../examples/guestfs-recipes.pod:162
5280 #, no-wrap
5281 msgid ""
5282 " #!/bin/sh -\n"
5283 " \n"
5284 msgstr ""
5285
5286 #. type: verbatim
5287 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5288 #, no-wrap
5289 msgid ""
5290 " set -e\n"
5291 " \n"
5292 msgstr ""
5293
5294 #. type: verbatim
5295 #: ../examples/guestfs-recipes.pod:166
5296 #, no-wrap
5297 msgid ""
5298 " vm=\"$1\"\n"
5299 " dir=/home\n"
5300 " \n"
5301 msgstr ""
5302
5303 #. type: verbatim
5304 #: ../examples/guestfs-recipes.pod:169
5305 #, no-wrap
5306 msgid ""
5307 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5308 " \n"
5309 msgstr ""
5310
5311 #. type: verbatim
5312 #: ../examples/guestfs-recipes.pod:171
5313 #, no-wrap
5314 msgid ""
5315 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5316 "     echo -n \"$dir/$d\"\n"
5317 "     echo -ne '\\t'\n"
5318 "     guestfish --remote du \"$dir/$d\";\n"
5319 " done | sort -nr -k 2\n"
5320 " \n"
5321 msgstr ""
5322
5323 #. type: verbatim
5324 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5325 #, no-wrap
5326 msgid ""
5327 " guestfish --remote exit\n"
5328 "\n"
5329 msgstr ""
5330
5331 #. type: =head1
5332 #: ../examples/guestfs-recipes.pod:179
5333 msgid "Get DHCP address from a VM"
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../examples/guestfs-recipes.pod:181
5338 msgid ""
5339 "The link below explains the many different possible techniques for getting "
5340 "the last assigned DHCP address of a virtual machine."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:184
5345 msgid ""
5346 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5347 "a-virtual-machine-disk-image/#content"
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../examples/guestfs-recipes.pod:186
5352 msgid ""
5353 "In the libguestfs source examples directory you will find the latest version "
5354 "of the C<virt-dhcp-address.c> program."
5355 msgstr ""
5356
5357 #. type: =head1
5358 #: ../examples/guestfs-recipes.pod:189
5359 msgid "Get the operating system product name string"
5360 msgstr ""
5361
5362 #. type: textblock
5363 #: ../examples/guestfs-recipes.pod:191
5364 msgid "Save the following script into a file called C<product-name.sh>:"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../examples/guestfs-recipes.pod:193
5369 #, no-wrap
5370 msgid ""
5371 " #!/bin/sh -\n"
5372 " set -e\n"
5373 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5374 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5375 " guestfish --remote inspect-get-product-name \"$root\"\n"
5376 " guestfish --remote exit\n"
5377 "\n"
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../examples/guestfs-recipes.pod:200
5382 msgid "Make the script executable and run it on a named guest:"
5383 msgstr ""
5384
5385 #. type: verbatim
5386 #: ../examples/guestfs-recipes.pod:202
5387 #, no-wrap
5388 msgid ""
5389 " # product-name.sh RHEL60x64\n"
5390 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5391 "\n"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../examples/guestfs-recipes.pod:205
5396 msgid ""
5397 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5398 "C<xpath> command line tool or from your favourite programming language:"
5399 msgstr ""
5400
5401 #. type: verbatim
5402 #: ../examples/guestfs-recipes.pod:209
5403 #, no-wrap
5404 msgid ""
5405 " # virt-inspector RHEL60x64 > xml\n"
5406 " # xpath '//product_name' < xml\n"
5407 " Found 1 nodes:\n"
5408 " -- NODE --\n"
5409 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5410 "\n"
5411 msgstr ""
5412
5413 #. type: =head1
5414 #: ../examples/guestfs-recipes.pod:215
5415 msgid "Get the default boot kernel for a Linux VM"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../examples/guestfs-recipes.pod:217
5420 msgid ""
5421 "The link below contains a program to print the default boot kernel for a "
5422 "Linux VM."
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../examples/guestfs-recipes.pod:220
5427 msgid ""
5428 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5429 "kernel-for-a-vm/#content"
5430 msgstr ""
5431
5432 #. type: textblock
5433 #: ../examples/guestfs-recipes.pod:222
5434 msgid ""
5435 "It uses Augeas, and the technique is generally applicable for many different "
5436 "tasks, such as:"
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../examples/guestfs-recipes.pod:229
5441 msgid "listing the user accounts in the guest"
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../examples/guestfs-recipes.pod:233
5446 msgid "what repositories is it configured to use"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../examples/guestfs-recipes.pod:237
5451 msgid "what NTP servers does it connect to"
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../examples/guestfs-recipes.pod:241
5456 msgid "what were the boot messages last time it booted"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:245
5461 msgid "listing who was logged in recently"
5462 msgstr ""
5463
5464 #. type: textblock
5465 #: ../examples/guestfs-recipes.pod:249
5466 msgid "http://augeas.net/"
5467 msgstr ""
5468
5469 #. type: =head1
5470 #: ../examples/guestfs-recipes.pod:251
5471 msgid "Install RPMs in a guest"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../examples/guestfs-recipes.pod:253
5476 msgid ""
5477 "The link below contains a method to install RPMs in a guest.  In fact the "
5478 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5479 "installs them next time the guest is booted.  You could use this technique "
5480 "to install vital security updates in an offline guest."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../examples/guestfs-recipes.pod:259
5485 msgid ""
5486 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5487 msgstr ""
5488
5489 #. type: =head1
5490 #: ../examples/guestfs-recipes.pod:261
5491 msgid "List applications installed in a VM"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../examples/guestfs-recipes.pod:263
5496 msgid "Save the following to a file C<list-apps.sh>:"
5497 msgstr ""
5498
5499 #. type: verbatim
5500 #: ../examples/guestfs-recipes.pod:265
5501 #, no-wrap
5502 msgid ""
5503 " #!/bin/sh -\n"
5504 " set -e\n"
5505 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5506 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5507 " guestfish --remote inspect-list-applications \"$root\"\n"
5508 " guestfish --remote exit\n"
5509 "\n"
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../examples/guestfs-recipes.pod:272
5514 msgid ""
5515 "Make the file executable and then you can run it on any named virtual "
5516 "machine:"
5517 msgstr ""
5518
5519 #. type: verbatim
5520 #: ../examples/guestfs-recipes.pod:275
5521 #, no-wrap
5522 msgid ""
5523 " # list-apps.sh WinGuest\n"
5524 " [0] = {\n"
5525 "   app_name: Mozilla Firefox (3.6.12)\n"
5526 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5527 "   app_epoch: 0\n"
5528 "   app_version: 3.6.12 (en-GB)\n"
5529 "   app_release:\n"
5530 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5531 "   app_trans_path:\n"
5532 "   app_publisher: Mozilla\n"
5533 "   app_url: http://www.mozilla.com/en-GB/\n"
5534 "   app_source_package:\n"
5535 "   app_summary:\n"
5536 "   app_description: Mozilla Firefox\n"
5537 " }\n"
5538 " [1] = {\n"
5539 "   app_name: VLC media player\n"
5540 "   app_display_name: VLC media player 1.1.5\n"
5541 "   app_epoch: 0\n"
5542 "   app_version: 1.1.5\n"
5543 "   app_release:\n"
5544 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5545 "   app_trans_path:\n"
5546 "   app_publisher: VideoLAN\n"
5547 "   app_url: http://www.videolan.org/\n"
5548 "   app_source_package:\n"
5549 "   app_summary:\n"
5550 "   app_description:\n"
5551 " }\n"
5552 "\n"
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../examples/guestfs-recipes.pod:305
5557 msgid ""
5558 "If you want to run the script on disk images (instead of libvirt virtual "
5559 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5560 ">."
5561 msgstr ""
5562
5563 #. type: =head1
5564 #: ../examples/guestfs-recipes.pod:309
5565 msgid "List files and directories in a VM"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:311
5570 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5571 msgstr ""
5572
5573 #. type: verbatim
5574 #: ../examples/guestfs-recipes.pod:313
5575 #, no-wrap
5576 msgid ""
5577 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5578 "\n"
5579 msgstr ""
5580
5581 #. type: =head1
5582 #: ../examples/guestfs-recipes.pod:315
5583 msgid "List services in a Windows VM"
5584 msgstr ""
5585
5586 #. type: textblock
5587 #: ../examples/guestfs-recipes.pod:317
5588 msgid ""
5589 "The link below contains a script that can be used to list out the services "
5590 "from a Windows VM, and whether those services run at boot time or are loaded "
5591 "on demand."
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../examples/guestfs-recipes.pod:321
5596 msgid ""
5597 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5598 "#content"
5599 msgstr ""
5600
5601 #. type: =head1
5602 #: ../examples/guestfs-recipes.pod:323
5603 msgid "Make a disk image sparse"
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../examples/guestfs-recipes.pod:325
5608 msgid ""
5609 "The link below contains some guides for making a disk image sparse (or "
5610 "reintroducing sparseness)."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-recipes.pod:328
5615 msgid ""
5616 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:330
5621 msgid "Monitor disk usage over time"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:332
5626 msgid ""
5627 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5628 "The link below contains a guide."
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../examples/guestfs-recipes.pod:335
5633 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5634 msgstr ""
5635
5636 #. type: =head1
5637 #: ../examples/guestfs-recipes.pod:337
5638 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5639 msgstr ""
5640
5641 #. type: textblock
5642 #: ../examples/guestfs-recipes.pod:339
5643 msgid ""
5644 "L<guestfish(1)> plus the tools described in the link below can be used to "
5645 "read out the Windows Event Log from any virtual machine running Windows "
5646 "Vista or a later version."
5647 msgstr ""
5648
5649 #. type: textblock
5650 #: ../examples/guestfs-recipes.pod:343
5651 msgid ""
5652 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5653 "guestfish/#content"
5654 msgstr ""
5655
5656 #. type: =head1
5657 #: ../examples/guestfs-recipes.pod:345
5658 msgid "Remove root password (Linux)"
5659 msgstr ""
5660
5661 #. type: textblock
5662 #: ../examples/guestfs-recipes.pod:347
5663 msgid ""
5664 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5665 "files.  One use is to remove the root password from a Linux guest:"
5666 msgstr ""
5667
5668 #. type: verbatim
5669 #: ../examples/guestfs-recipes.pod:350
5670 #, no-wrap
5671 msgid ""
5672 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5673 "\n"
5674 msgstr ""
5675
5676 #. type: =head1
5677 #: ../examples/guestfs-recipes.pod:352
5678 msgid "Remove Administrator password (Windows)"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../examples/guestfs-recipes.pod:354
5683 msgid ""
5684 "The link below contains one technique for removing the Administrator "
5685 "password from a Windows VM, or to be more precise, it gives you a command "
5686 "prompt the next time you log in which you can use to bypass any security:"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../examples/guestfs-recipes.pod:359
5691 msgid ""
5692 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5693 "administrator-password-with-guestfish/"
5694 msgstr ""
5695
5696 #. type: =head1
5697 #: ../examples/guestfs-recipes.pod:361
5698 msgid "Unpack a live CD"
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../examples/guestfs-recipes.pod:363
5703 msgid ""
5704 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5705 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5706 "layers, as outlined in the guide below."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../examples/guestfs-recipes.pod:367
5711 msgid ""
5712 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5713 "cd/#content"
5714 msgstr ""
5715
5716 #. type: =head1
5717 #: ../examples/guestfs-recipes.pod:369
5718 msgid "Uploading and downloading files"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../examples/guestfs-recipes.pod:371
5723 msgid ""
5724 "The link below contains general tips on uploading (copying in)  and "
5725 "downloading (copying out) files from VMs."
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../examples/guestfs-recipes.pod:374
5730 msgid ""
5731 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5732 msgstr ""
5733
5734 #. type: =head1
5735 #: ../examples/guestfs-recipes.pod:376
5736 msgid "Use libguestfs tools on VMware ESX guests"
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../examples/guestfs-recipes.pod:378
5741 msgid ""
5742 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5743 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../examples/guestfs-recipes.pod:382
5748 msgid ""
5749 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5750 "guests/#content"
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../examples/guestfs-recipes.pod:386
5755 msgid ""
5756 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5757 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5758 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../examples/guestfs-recipes.pod:403
5763 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5764 msgstr ""
5765
5766 #. type: =head2
5767 #: ../fish/guestfish-actions.pod:1
5768 msgid "add-cdrom"
5769 msgstr ""
5770
5771 #. type: verbatim
5772 #: ../fish/guestfish-actions.pod:3
5773 #, no-wrap
5774 msgid ""
5775 " add-cdrom filename\n"
5776 "\n"
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5781 msgid "This function adds a virtual CD-ROM disk image to the guest."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5786 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../fish/guestfish-actions.pod:15
5791 msgid ""
5792 "This call checks for the existence of C<filename>.  This stops you from "
5793 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5794 "and C<http:> URLs.  To specify those, use the general L</config> call "
5795 "instead."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:22
5800 msgid ""
5801 "If you just want to add an ISO file (often you use this as an efficient way "
5802 "to transfer large files into the guest), then you should probably use L</add-"
5803 "drive-ro> instead."
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5808 #: ../fish/guestfish-actions.pod:228
5809 msgid ""
5810 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5811 "instead."
5812 msgstr ""
5813
5814 #. type: textblock
5815 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5816 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5817 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5818 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5819 #: ../fish/guestfish-actions.pod:3381 ../fish/guestfish-actions.pod:3692
5820 #: ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:4658
5821 #: ../fish/guestfish-actions.pod:4678 ../fish/guestfish-actions.pod:4697
5822 #: ../fish/guestfish-actions.pod:4735 ../fish/guestfish-actions.pod:5463
5823 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:10
5824 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5825 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
5826 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
5827 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5225
5828 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5847
5829 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7184
5830 #: ../src/guestfs-actions.pod:7215 ../src/guestfs-actions.pod:7275
5831 #: ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8436
5832 #: ../src/guestfs-actions.pod:8616
5833 msgid ""
5834 "Deprecated functions will not be removed from the API, but the fact that "
5835 "they are deprecated indicates that there are problems with correct use of "
5836 "these functions."
5837 msgstr ""
5838
5839 #. type: =head2
5840 #: ../fish/guestfish-actions.pod:35
5841 msgid "add-domain"
5842 msgstr ""
5843
5844 #. type: =head2
5845 #: ../fish/guestfish-actions.pod:37
5846 msgid "domain"
5847 msgstr ""
5848
5849 #. type: verbatim
5850 #: ../fish/guestfish-actions.pod:39
5851 #, no-wrap
5852 msgid ""
5853 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
5854 "\n"
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:41
5859 msgid ""
5860 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5861 "It works by connecting to libvirt, requesting the domain and domain XML from "
5862 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5867 msgid ""
5868 "The number of disks added is returned.  This operation is atomic: if an "
5869 "error is returned, then no disks are added."
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5874 msgid ""
5875 "This function does some minimal checks to make sure the libvirt domain is "
5876 "not running (unless C<readonly> is true).  In a future version we will try "
5877 "to acquire the libvirt lock on each disk."
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5882 msgid ""
5883 "Disks must be accessible locally.  This often means that adding disks from a "
5884 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5885 "unless those disks are accessible via the same device path locally too."
5886 msgstr ""
5887
5888 #. type: textblock
5889 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5890 msgid ""
5891 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5892 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5893 "libvirt URI (or one set through an environment variable, see the libvirt "
5894 "documentation for full details)."
5895 msgstr ""
5896
5897 #. type: textblock
5898 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5899 msgid ""
5900 "The optional C<live> flag controls whether this call will try to connect to "
5901 "a running virtual machine C<guestfsd> process if it sees a suitable "
5902 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5903 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5904 "DAEMONS> for more information."
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
5909 msgid ""
5910 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5911 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5912 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5913 "as usual."
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
5918 msgid ""
5919 "The optional C<readonlydisk> parameter controls what we do for disks which "
5920 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
5921 msgstr ""
5922
5923 #. type: =item
5924 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
5925 msgid "readonlydisk = \"error\""
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
5930 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
5931 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
5932 msgid "If C<readonly> is false:"
5933 msgstr ""
5934
5935 #. type: textblock
5936 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
5937 msgid ""
5938 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
5939 "E<gt> flag is found."
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
5944 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
5945 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
5946 msgid "If C<readonly> is true:"
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
5951 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
5952 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
5953 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
5954 msgstr ""
5955
5956 #. type: =item
5957 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
5958 msgid "readonlydisk = \"read\""
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
5963 msgid ""
5964 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
5965 "are added read/write."
5966 msgstr ""
5967
5968 #. type: =item
5969 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
5970 msgid "readonlydisk = \"write\" (default)"
5971 msgstr ""
5972
5973 #. type: textblock
5974 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
5975 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
5976 msgstr ""
5977
5978 #. type: =item
5979 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
5980 msgid "readonlydisk = \"ignore\""
5981 msgstr ""
5982
5983 #. type: textblock
5984 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
5985 msgid "If C<readonly> is true or false:"
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
5990 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:122
5995 msgid ""
5996 "The other optional parameters are passed directly through to L</add-drive-"
5997 "opts>."
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6002 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6003 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6004 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6005 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6006 #: ../fish/guestfish-actions.pod:3215 ../fish/guestfish-actions.pod:3430
6007 #: ../fish/guestfish-actions.pod:3593 ../fish/guestfish-actions.pod:3728
6008 #: ../fish/guestfish-actions.pod:5099
6009 msgid ""
6010 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6011 msgstr ""
6012
6013 #. type: =head2
6014 #: ../fish/guestfish-actions.pod:127
6015 msgid "add-drive"
6016 msgstr ""
6017
6018 #. type: verbatim
6019 #: ../fish/guestfish-actions.pod:129
6020 #, no-wrap
6021 msgid ""
6022 " add-drive filename\n"
6023 "\n"
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:131
6028 msgid ""
6029 "This function is the equivalent of calling L</add-drive-opts> with no "
6030 "optional parameters, so the disk is added writable, with the format being "
6031 "detected automatically."
6032 msgstr ""
6033
6034 #. type: textblock
6035 #: ../fish/guestfish-actions.pod:135
6036 msgid ""
6037 "Automatic detection of the format opens you up to a potential security hole "
6038 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6039 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6040 "you should think about replacing calls to this function with calls to L</add-"
6041 "drive-opts>, and specifying the format."
6042 msgstr ""
6043
6044 #. type: =head2
6045 #: ../fish/guestfish-actions.pod:142
6046 msgid "add-drive-opts"
6047 msgstr ""
6048
6049 #. type: =head2
6050 #: ../fish/guestfish-actions.pod:144
6051 msgid "add"
6052 msgstr ""
6053
6054 #. type: verbatim
6055 #: ../fish/guestfish-actions.pod:146
6056 #, no-wrap
6057 msgid ""
6058 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6059 "\n"
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6064 msgid ""
6065 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6066 "The first time you call this function, the disk appears as C</dev/sda>, the "
6067 "second time as C</dev/sdb>, and so on."
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6072 msgid ""
6073 "You don't necessarily need to be root when using libguestfs.  However you "
6074 "obviously do need sufficient permissions to access the filename for whatever "
6075 "operations you want to perform (ie. read access if you just want to read the "
6076 "image or write access if you want to modify the image)."
6077 msgstr ""
6078
6079 #. type: textblock
6080 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6081 msgid "This call checks that C<filename> exists."
6082 msgstr ""
6083
6084 #. type: textblock
6085 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3392
6086 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5262
6087 msgid "The optional arguments are:"
6088 msgstr ""
6089
6090 #. type: =item
6091 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6092 msgid "C<readonly>"
6093 msgstr ""
6094
6095 #. type: textblock
6096 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6097 msgid ""
6098 "If true then the image is treated as read-only.  Writes are still allowed, "
6099 "but they are stored in a temporary snapshot overlay which is discarded at "
6100 "the end.  The disk that you add is not modified."
6101 msgstr ""
6102
6103 #. type: =item
6104 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6105 msgid "C<format>"
6106 msgstr ""
6107
6108 #. type: textblock
6109 #: ../fish/guestfish-actions.pod:173
6110 msgid ""
6111 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6112 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6113 "include C<raw> and C<qcow2>."
6114 msgstr ""
6115
6116 #. type: textblock
6117 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6118 msgid ""
6119 "Automatic detection of the format opens you up to a potential security hole "
6120 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6121 "RHBZ#642934.  Specifying the format closes this security hole."
6122 msgstr ""
6123
6124 #. type: =item
6125 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6126 msgid "C<iface>"
6127 msgstr ""
6128
6129 #. type: textblock
6130 #: ../fish/guestfish-actions.pod:184
6131 msgid ""
6132 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6133 "add-drive-with-if> call (q.v.)"
6134 msgstr ""
6135
6136 #. type: =item
6137 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3242
6138 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4994
6139 msgid "C<name>"
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6144 msgid ""
6145 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6146 "a hint to the guest inspection process if it is available."
6147 msgstr ""
6148
6149 #. type: =head2
6150 #: ../fish/guestfish-actions.pod:196
6151 msgid "add-drive-ro"
6152 msgstr ""
6153
6154 #. type: =head2
6155 #: ../fish/guestfish-actions.pod:198
6156 msgid "add-ro"
6157 msgstr ""
6158
6159 #. type: verbatim
6160 #: ../fish/guestfish-actions.pod:200
6161 #, no-wrap
6162 msgid ""
6163 " add-drive-ro filename\n"
6164 "\n"
6165 msgstr ""
6166
6167 #. type: textblock
6168 #: ../fish/guestfish-actions.pod:202
6169 msgid ""
6170 "This function is the equivalent of calling L</add-drive-opts> with the "
6171 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6172 "is added read-only, with the format being detected automatically."
6173 msgstr ""
6174
6175 #. type: =head2
6176 #: ../fish/guestfish-actions.pod:207
6177 msgid "add-drive-ro-with-if"
6178 msgstr ""
6179
6180 #. type: verbatim
6181 #: ../fish/guestfish-actions.pod:209
6182 #, no-wrap
6183 msgid ""
6184 " add-drive-ro-with-if filename iface\n"
6185 "\n"
6186 msgstr ""
6187
6188 #. type: textblock
6189 #: ../fish/guestfish-actions.pod:211
6190 msgid ""
6191 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6192 "interface emulation to use at run time."
6193 msgstr ""
6194
6195 #. type: =head2
6196 #: ../fish/guestfish-actions.pod:221
6197 msgid "add-drive-with-if"
6198 msgstr ""
6199
6200 #. type: verbatim
6201 #: ../fish/guestfish-actions.pod:223
6202 #, no-wrap
6203 msgid ""
6204 " add-drive-with-if filename iface\n"
6205 "\n"
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../fish/guestfish-actions.pod:225
6210 msgid ""
6211 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6212 "interface emulation to use at run time."
6213 msgstr ""
6214
6215 #. type: =head2
6216 #: ../fish/guestfish-actions.pod:235
6217 msgid "aug-clear"
6218 msgstr ""
6219
6220 #. type: verbatim
6221 #: ../fish/guestfish-actions.pod:237
6222 #, no-wrap
6223 msgid ""
6224 " aug-clear augpath\n"
6225 "\n"
6226 msgstr ""
6227
6228 #. type: textblock
6229 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6230 msgid ""
6231 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6232 "L<augtool(1)> C<clear> command."
6233 msgstr ""
6234
6235 #. type: =head2
6236 #: ../fish/guestfish-actions.pod:242
6237 msgid "aug-close"
6238 msgstr ""
6239
6240 #. type: verbatim
6241 #: ../fish/guestfish-actions.pod:244
6242 #, no-wrap
6243 msgid ""
6244 " aug-close\n"
6245 "\n"
6246 msgstr ""
6247
6248 #. type: textblock
6249 #: ../fish/guestfish-actions.pod:246
6250 msgid ""
6251 "Close the current Augeas handle and free up any resources used by it.  After "
6252 "calling this, you have to call L</aug-init> again before you can use any "
6253 "other Augeas functions."
6254 msgstr ""
6255
6256 #. type: =head2
6257 #: ../fish/guestfish-actions.pod:251
6258 msgid "aug-defnode"
6259 msgstr ""
6260
6261 #. type: verbatim
6262 #: ../fish/guestfish-actions.pod:253
6263 #, no-wrap
6264 msgid ""
6265 " aug-defnode name expr val\n"
6266 "\n"
6267 msgstr ""
6268
6269 #. type: textblock
6270 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6271 msgid ""
6272 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6273 msgstr ""
6274
6275 #. type: textblock
6276 #: ../fish/guestfish-actions.pod:258
6277 msgid ""
6278 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6279 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6280 "containing that single node."
6281 msgstr ""
6282
6283 #. type: textblock
6284 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6285 msgid ""
6286 "On success this returns a pair containing the number of nodes in the "
6287 "nodeset, and a boolean flag if a node was created."
6288 msgstr ""
6289
6290 #. type: =head2
6291 #: ../fish/guestfish-actions.pod:266
6292 msgid "aug-defvar"
6293 msgstr ""
6294
6295 #. type: verbatim
6296 #: ../fish/guestfish-actions.pod:268
6297 #, no-wrap
6298 msgid ""
6299 " aug-defvar name expr\n"
6300 "\n"
6301 msgstr ""
6302
6303 #. type: textblock
6304 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6305 msgid ""
6306 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6307 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6308 msgstr ""
6309
6310 #. type: textblock
6311 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6312 msgid ""
6313 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6314 "evaluates to something which is not a nodeset."
6315 msgstr ""
6316
6317 #. type: =head2
6318 #: ../fish/guestfish-actions.pod:277
6319 msgid "aug-get"
6320 msgstr ""
6321
6322 #. type: verbatim
6323 #: ../fish/guestfish-actions.pod:279
6324 #, no-wrap
6325 msgid ""
6326 " aug-get augpath\n"
6327 "\n"
6328 msgstr ""
6329
6330 #. type: textblock
6331 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6332 msgid ""
6333 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6334 "node, the C<value> is returned."
6335 msgstr ""
6336
6337 #. type: =head2
6338 #: ../fish/guestfish-actions.pod:284
6339 msgid "aug-init"
6340 msgstr ""
6341
6342 #. type: verbatim
6343 #: ../fish/guestfish-actions.pod:286
6344 #, no-wrap
6345 msgid ""
6346 " aug-init root flags\n"
6347 "\n"
6348 msgstr ""
6349
6350 #. type: textblock
6351 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6352 msgid ""
6353 "Create a new Augeas handle for editing configuration files.  If there was "
6354 "any previous Augeas handle associated with this guestfs session, then it is "
6355 "closed."
6356 msgstr ""
6357
6358 #. type: textblock
6359 #: ../fish/guestfish-actions.pod:292
6360 msgid "You must call this before using any other L</aug-*> commands."
6361 msgstr ""
6362
6363 #. type: textblock
6364 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6365 msgid ""
6366 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6371 msgid ""
6372 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6373 "logical I<or> of the following integers:"
6374 msgstr ""
6375
6376 #. type: =item
6377 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6378 msgid "C<AUG_SAVE_BACKUP> = 1"
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6383 msgid "Keep the original file with a C<.augsave> extension."
6384 msgstr ""
6385
6386 #. type: =item
6387 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6388 msgid "C<AUG_SAVE_NEWFILE> = 2"
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6393 msgid ""
6394 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6395 "original.  Overrides C<AUG_SAVE_BACKUP>."
6396 msgstr ""
6397
6398 #. type: =item
6399 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6400 msgid "C<AUG_TYPE_CHECK> = 4"
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6405 msgid "Typecheck lenses."
6406 msgstr ""
6407
6408 #. type: textblock
6409 #: ../fish/guestfish-actions.pod:317
6410 msgid ""
6411 "This option is only useful when debugging Augeas lenses.  Use of this option "
6412 "may require additional memory for the libguestfs appliance.  You may need to "
6413 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6414 msgstr ""
6415
6416 #. type: =item
6417 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6418 msgid "C<AUG_NO_STDINC> = 8"
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6423 msgid "Do not use standard load path for modules."
6424 msgstr ""
6425
6426 #. type: =item
6427 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6428 msgid "C<AUG_SAVE_NOOP> = 16"
6429 msgstr ""
6430
6431 #. type: textblock
6432 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6433 msgid "Make save a no-op, just record what would have been changed."
6434 msgstr ""
6435
6436 #. type: =item
6437 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6438 msgid "C<AUG_NO_LOAD> = 32"
6439 msgstr ""
6440
6441 #. type: textblock
6442 #: ../fish/guestfish-actions.pod:332
6443 msgid "Do not load the tree in L</aug-init>."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:336
6448 msgid "To close the handle, you can call L</aug-close>."
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6453 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6454 msgstr ""
6455
6456 #. type: =head2
6457 #: ../fish/guestfish-actions.pod:340
6458 msgid "aug-insert"
6459 msgstr ""
6460
6461 #. type: verbatim
6462 #: ../fish/guestfish-actions.pod:342
6463 #, no-wrap
6464 msgid ""
6465 " aug-insert augpath label true|false\n"
6466 "\n"
6467 msgstr ""
6468
6469 #. type: textblock
6470 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6471 msgid ""
6472 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6473 "or after C<path> (depending on the boolean flag C<before>)."
6474 msgstr ""
6475
6476 #. type: textblock
6477 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6478 msgid ""
6479 "C<path> must match exactly one existing node in the tree, and C<label> must "
6480 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6481 msgstr ""
6482
6483 #. type: =head2
6484 #: ../fish/guestfish-actions.pod:352
6485 msgid "aug-load"
6486 msgstr ""
6487
6488 #. type: verbatim
6489 #: ../fish/guestfish-actions.pod:354
6490 #, no-wrap
6491 msgid ""
6492 " aug-load\n"
6493 "\n"
6494 msgstr ""
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6498 msgid "Load files into the tree."
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6503 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6504 msgstr ""
6505
6506 #. type: =head2
6507 #: ../fish/guestfish-actions.pod:361
6508 msgid "aug-ls"
6509 msgstr ""
6510
6511 #. type: verbatim
6512 #: ../fish/guestfish-actions.pod:363
6513 #, no-wrap
6514 msgid ""
6515 " aug-ls augpath\n"
6516 "\n"
6517 msgstr ""
6518
6519 #. type: textblock
6520 #: ../fish/guestfish-actions.pod:365
6521 msgid ""
6522 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6523 "resulting nodes into alphabetical order."
6524 msgstr ""
6525
6526 #. type: =head2
6527 #: ../fish/guestfish-actions.pod:368
6528 msgid "aug-match"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../fish/guestfish-actions.pod:370
6533 #, no-wrap
6534 msgid ""
6535 " aug-match augpath\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6541 msgid ""
6542 "Returns a list of paths which match the path expression C<path>.  The "
6543 "returned paths are sufficiently qualified so that they match exactly one "
6544 "node in the current tree."
6545 msgstr ""
6546
6547 #. type: =head2
6548 #: ../fish/guestfish-actions.pod:376
6549 msgid "aug-mv"
6550 msgstr ""
6551
6552 #. type: verbatim
6553 #: ../fish/guestfish-actions.pod:378
6554 #, no-wrap
6555 msgid ""
6556 " aug-mv src dest\n"
6557 "\n"
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6562 msgid ""
6563 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6564 "C<dest> is overwritten if it exists."
6565 msgstr ""
6566
6567 #. type: =head2
6568 #: ../fish/guestfish-actions.pod:383
6569 msgid "aug-rm"
6570 msgstr ""
6571
6572 #. type: verbatim
6573 #: ../fish/guestfish-actions.pod:385
6574 #, no-wrap
6575 msgid ""
6576 " aug-rm augpath\n"
6577 "\n"
6578 msgstr ""
6579
6580 #. type: textblock
6581 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6582 msgid "Remove C<path> and all of its children."
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6587 msgid "On success this returns the number of entries which were removed."
6588 msgstr ""
6589
6590 #. type: =head2
6591 #: ../fish/guestfish-actions.pod:391
6592 msgid "aug-save"
6593 msgstr ""
6594
6595 #. type: verbatim
6596 #: ../fish/guestfish-actions.pod:393
6597 #, no-wrap
6598 msgid ""
6599 " aug-save\n"
6600 "\n"
6601 msgstr ""
6602
6603 #. type: textblock
6604 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6605 msgid "This writes all pending changes to disk."
6606 msgstr ""
6607
6608 #. type: textblock
6609 #: ../fish/guestfish-actions.pod:397
6610 msgid ""
6611 "The flags which were passed to L</aug-init> affect exactly how files are "
6612 "saved."
6613 msgstr ""
6614
6615 #. type: =head2
6616 #: ../fish/guestfish-actions.pod:400
6617 msgid "aug-set"
6618 msgstr ""
6619
6620 #. type: verbatim
6621 #: ../fish/guestfish-actions.pod:402
6622 #, no-wrap
6623 msgid ""
6624 " aug-set augpath val\n"
6625 "\n"
6626 msgstr ""
6627
6628 #. type: textblock
6629 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6630 msgid "Set the value associated with C<path> to C<val>."
6631 msgstr ""
6632
6633 #. type: textblock
6634 #: ../fish/guestfish-actions.pod:406
6635 msgid ""
6636 "In the Augeas API, it is possible to clear a node by setting the value to "
6637 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6638 "this call.  Instead you must use the L</aug-clear> call."
6639 msgstr ""
6640
6641 #. type: =head2
6642 #: ../fish/guestfish-actions.pod:411
6643 msgid "available"
6644 msgstr ""
6645
6646 #. type: verbatim
6647 #: ../fish/guestfish-actions.pod:413
6648 #, no-wrap
6649 msgid ""
6650 " available 'groups ...'\n"
6651 "\n"
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6656 msgid ""
6657 "This command is used to check the availability of some groups of "
6658 "functionality in the appliance, which not all builds of the libguestfs "
6659 "appliance will be able to provide."
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../fish/guestfish-actions.pod:419
6664 msgid ""
6665 "The libguestfs groups, and the functions that those groups correspond to, "
6666 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6667 "runtime by calling L</available-all-groups>."
6668 msgstr ""
6669
6670 #. type: textblock
6671 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6672 msgid ""
6673 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6674 "\"]> would check for the availability of the Linux inotify functions and "
6675 "Augeas (configuration file editing) functions."
6676 msgstr ""
6677
6678 #. type: textblock
6679 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6680 msgid "The command returns no error if I<all> requested groups are available."
6681 msgstr ""
6682
6683 #. type: textblock
6684 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6685 msgid ""
6686 "It fails with an error if one or more of the requested groups is unavailable "
6687 "in the appliance."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6692 msgid ""
6693 "If an unknown group name is included in the list of groups then an error is "
6694 "always returned."
6695 msgstr ""
6696
6697 #. type: textblock
6698 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6699 msgid "I<Notes:>"
6700 msgstr ""
6701
6702 #. type: textblock
6703 #: ../fish/guestfish-actions.pod:443
6704 msgid "You must call L</launch> before calling this function."
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6709 msgid ""
6710 "The reason is because we don't know what groups are supported by the "
6711 "appliance/daemon until it is running and can be queried."
6712 msgstr ""
6713
6714 #. type: textblock
6715 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6716 msgid ""
6717 "If a group of functions is available, this does not necessarily mean that "
6718 "they will work.  You still have to check for errors when calling individual "
6719 "API functions even if they are available."
6720 msgstr ""
6721
6722 #. type: textblock
6723 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6724 msgid ""
6725 "It is usually the job of distro packagers to build complete functionality "
6726 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6727 "with all requirements satisfied, will support everything."
6728 msgstr ""
6729
6730 #. type: textblock
6731 #: ../fish/guestfish-actions.pod:465
6732 msgid ""
6733 "This call was added in version C<1.0.80>.  In previous versions of "
6734 "libguestfs all you could do would be to speculatively execute a command to "
6735 "find out if the daemon implemented it.  See also L</version>."
6736 msgstr ""
6737
6738 #. type: =head2
6739 #: ../fish/guestfish-actions.pod:472
6740 msgid "available-all-groups"
6741 msgstr ""
6742
6743 #. type: verbatim
6744 #: ../fish/guestfish-actions.pod:474
6745 #, no-wrap
6746 msgid ""
6747 " available-all-groups\n"
6748 "\n"
6749 msgstr ""
6750
6751 #. type: textblock
6752 #: ../fish/guestfish-actions.pod:476
6753 msgid ""
6754 "This command returns a list of all optional groups that this daemon knows "
6755 "about.  Note this returns both supported and unsupported groups.  To find "
6756 "out which ones the daemon can actually support you have to call L</"
6757 "available> on each member of the returned list."
6758 msgstr ""
6759
6760 #. type: textblock
6761 #: ../fish/guestfish-actions.pod:482
6762 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6763 msgstr ""
6764
6765 #. type: =head2
6766 #: ../fish/guestfish-actions.pod:484
6767 msgid "base64-in"
6768 msgstr ""
6769
6770 #. type: verbatim
6771 #: ../fish/guestfish-actions.pod:486
6772 #, no-wrap
6773 msgid ""
6774 " base64-in (base64file|-) filename\n"
6775 "\n"
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6780 msgid ""
6781 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6786 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6787 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6788 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6789 #: ../fish/guestfish-actions.pod:4955 ../fish/guestfish-actions.pod:4967
6790 #: ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4989
6791 #: ../fish/guestfish-actions.pod:5120 ../fish/guestfish-actions.pod:5129
6792 #: ../fish/guestfish-actions.pod:5183 ../fish/guestfish-actions.pod:5206
6793 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6794 msgstr ""
6795
6796 #. type: =head2
6797 #: ../fish/guestfish-actions.pod:493
6798 msgid "base64-out"
6799 msgstr ""
6800
6801 #. type: verbatim
6802 #: ../fish/guestfish-actions.pod:495
6803 #, no-wrap
6804 msgid ""
6805 " base64-out filename (base64file|-)\n"
6806 "\n"
6807 msgstr ""
6808
6809 #. type: textblock
6810 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6811 msgid ""
6812 "This command downloads the contents of C<filename>, writing it out to local "
6813 "file C<base64file> encoded as base64."
6814 msgstr ""
6815
6816 #. type: =head2
6817 #: ../fish/guestfish-actions.pod:502
6818 msgid "blockdev-flushbufs"
6819 msgstr ""
6820
6821 #. type: verbatim
6822 #: ../fish/guestfish-actions.pod:504
6823 #, no-wrap
6824 msgid ""
6825 " blockdev-flushbufs device\n"
6826 "\n"
6827 msgstr ""
6828
6829 #. type: textblock
6830 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6831 msgid ""
6832 "This tells the kernel to flush internal buffers associated with C<device>."
6833 msgstr ""
6834
6835 #. type: textblock
6836 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6837 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6838 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6839 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6840 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6841 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6842 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6843 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6844 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6845 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6846 msgid "This uses the L<blockdev(8)> command."
6847 msgstr ""
6848
6849 #. type: =head2
6850 #: ../fish/guestfish-actions.pod:511
6851 msgid "blockdev-getbsz"
6852 msgstr ""
6853
6854 #. type: verbatim
6855 #: ../fish/guestfish-actions.pod:513
6856 #, no-wrap
6857 msgid ""
6858 " blockdev-getbsz device\n"
6859 "\n"
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6864 msgid "This returns the block size of a device."
6865 msgstr ""
6866
6867 #. type: textblock
6868 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6869 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6870 msgid ""
6871 "(Note this is different from both I<size in blocks> and I<filesystem block "
6872 "size>)."
6873 msgstr ""
6874
6875 #. type: =head2
6876 #: ../fish/guestfish-actions.pod:522
6877 msgid "blockdev-getro"
6878 msgstr ""
6879
6880 #. type: verbatim
6881 #: ../fish/guestfish-actions.pod:524
6882 #, no-wrap
6883 msgid ""
6884 " blockdev-getro device\n"
6885 "\n"
6886 msgstr ""
6887
6888 #. type: textblock
6889 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6890 msgid ""
6891 "Returns a boolean indicating if the block device is read-only (true if read-"
6892 "only, false if not)."
6893 msgstr ""
6894
6895 #. type: =head2
6896 #: ../fish/guestfish-actions.pod:531
6897 msgid "blockdev-getsize64"
6898 msgstr ""
6899
6900 #. type: verbatim
6901 #: ../fish/guestfish-actions.pod:533
6902 #, no-wrap
6903 msgid ""
6904 " blockdev-getsize64 device\n"
6905 "\n"
6906 msgstr ""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
6910 msgid "This returns the size of the device in bytes."
6911 msgstr ""
6912
6913 #. type: textblock
6914 #: ../fish/guestfish-actions.pod:537
6915 msgid "See also L</blockdev-getsz>."
6916 msgstr ""
6917
6918 #. type: =head2
6919 #: ../fish/guestfish-actions.pod:541
6920 msgid "blockdev-getss"
6921 msgstr ""
6922
6923 #. type: verbatim
6924 #: ../fish/guestfish-actions.pod:543
6925 #, no-wrap
6926 msgid ""
6927 " blockdev-getss device\n"
6928 "\n"
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
6933 msgid ""
6934 "This returns the size of sectors on a block device.  Usually 512, but can be "
6935 "larger for modern devices."
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../fish/guestfish-actions.pod:548
6940 msgid ""
6941 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6942 msgstr ""
6943
6944 #. type: =head2
6945 #: ../fish/guestfish-actions.pod:553
6946 msgid "blockdev-getsz"
6947 msgstr ""
6948
6949 #. type: verbatim
6950 #: ../fish/guestfish-actions.pod:555
6951 #, no-wrap
6952 msgid ""
6953 " blockdev-getsz device\n"
6954 "\n"
6955 msgstr ""
6956
6957 #. type: textblock
6958 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
6959 msgid ""
6960 "This returns the size of the device in units of 512-byte sectors (even if "
6961 "the sectorsize isn't 512 bytes ... weird)."
6962 msgstr ""
6963
6964 #. type: textblock
6965 #: ../fish/guestfish-actions.pod:560
6966 msgid ""
6967 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6968 "blockdev-getsize64> for the more useful I<size in bytes>."
6969 msgstr ""
6970
6971 #. type: =head2
6972 #: ../fish/guestfish-actions.pod:566
6973 msgid "blockdev-rereadpt"
6974 msgstr ""
6975
6976 #. type: verbatim
6977 #: ../fish/guestfish-actions.pod:568
6978 #, no-wrap
6979 msgid ""
6980 " blockdev-rereadpt device\n"
6981 "\n"
6982 msgstr ""
6983
6984 #. type: textblock
6985 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
6986 msgid "Reread the partition table on C<device>."
6987 msgstr ""
6988
6989 #. type: =head2
6990 #: ../fish/guestfish-actions.pod:574
6991 msgid "blockdev-setbsz"
6992 msgstr ""
6993
6994 #. type: verbatim
6995 #: ../fish/guestfish-actions.pod:576
6996 #, no-wrap
6997 msgid ""
6998 " blockdev-setbsz device blocksize\n"
6999 "\n"
7000 msgstr ""
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7004 msgid "This sets the block size of a device."
7005 msgstr ""
7006
7007 #. type: =head2
7008 #: ../fish/guestfish-actions.pod:585
7009 msgid "blockdev-setro"
7010 msgstr ""
7011
7012 #. type: verbatim
7013 #: ../fish/guestfish-actions.pod:587
7014 #, no-wrap
7015 msgid ""
7016 " blockdev-setro device\n"
7017 "\n"
7018 msgstr ""
7019
7020 #. type: textblock
7021 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7022 msgid "Sets the block device named C<device> to read-only."
7023 msgstr ""
7024
7025 #. type: =head2
7026 #: ../fish/guestfish-actions.pod:593
7027 msgid "blockdev-setrw"
7028 msgstr ""
7029
7030 #. type: verbatim
7031 #: ../fish/guestfish-actions.pod:595
7032 #, no-wrap
7033 msgid ""
7034 " blockdev-setrw device\n"
7035 "\n"
7036 msgstr ""
7037
7038 #. type: textblock
7039 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7040 msgid "Sets the block device named C<device> to read-write."
7041 msgstr ""
7042
7043 #. type: =head2
7044 #: ../fish/guestfish-actions.pod:601
7045 msgid "btrfs-filesystem-resize"
7046 msgstr ""
7047
7048 #. type: verbatim
7049 #: ../fish/guestfish-actions.pod:603
7050 #, no-wrap
7051 msgid ""
7052 " btrfs-filesystem-resize mountpoint [size:N]\n"
7053 "\n"
7054 msgstr ""
7055
7056 #. type: textblock
7057 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7058 msgid "This command resizes a btrfs filesystem."
7059 msgstr ""
7060
7061 #. type: textblock
7062 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7063 msgid ""
7064 "Note that unlike other resize calls, the filesystem has to be mounted and "
7065 "the parameter is the mountpoint not the device (this is a requirement of "
7066 "btrfs itself)."
7067 msgstr ""
7068
7069 #. type: textblock
7070 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3164
7071 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:5029
7072 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4890
7073 #: ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:7762
7074 msgid "The optional parameters are:"
7075 msgstr ""
7076
7077 #. type: =item
7078 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3707
7079 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5790
7080 msgid "C<size>"
7081 msgstr ""
7082
7083 #. type: textblock
7084 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7085 msgid ""
7086 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7087 "resized to the maximum size."
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7092 msgid "See also L<btrfs(8)>."
7093 msgstr ""
7094
7095 #. type: =head2
7096 #: ../fish/guestfish-actions.pod:626
7097 msgid "case-sensitive-path"
7098 msgstr ""
7099
7100 #. type: verbatim
7101 #: ../fish/guestfish-actions.pod:628
7102 #, no-wrap
7103 msgid ""
7104 " case-sensitive-path path\n"
7105 "\n"
7106 msgstr ""
7107
7108 #. type: textblock
7109 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7110 msgid ""
7111 "This can be used to resolve case insensitive paths on a filesystem which is "
7112 "case sensitive.  The use case is to resolve paths which you have read from "
7113 "Windows configuration files or the Windows Registry, to the true path."
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7118 msgid ""
7119 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7120 "(and probably others), which is that although the underlying filesystem is "
7121 "case-insensitive, the driver exports the filesystem to Linux as case-"
7122 "sensitive."
7123 msgstr ""
7124
7125 #. type: textblock
7126 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7127 msgid ""
7128 "One consequence of this is that special directories such as C<c:\\windows> "
7129 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7130 "precise details of how they were created.  In Windows itself this would not "
7131 "be a problem."
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7136 msgid ""
7137 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7138 "#posixfilenames1>"
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7143 msgid ""
7144 "This function resolves the true case of each element in the path and returns "
7145 "the case-sensitive path."
7146 msgstr ""
7147
7148 #. type: textblock
7149 #: ../fish/guestfish-actions.pod:652
7150 msgid ""
7151 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7152 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7153 "the directories were originally created under Windows)."
7154 msgstr ""
7155
7156 #. type: textblock
7157 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7158 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:660
7163 msgid "See also L</realpath>."
7164 msgstr ""
7165
7166 #. type: =head2
7167 #: ../fish/guestfish-actions.pod:662
7168 msgid "cat"
7169 msgstr ""
7170
7171 #. type: verbatim
7172 #: ../fish/guestfish-actions.pod:664
7173 #, no-wrap
7174 msgid ""
7175 " cat path\n"
7176 "\n"
7177 msgstr ""
7178
7179 #. type: textblock
7180 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4134
7181 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6446
7182 msgid "Return the contents of the file named C<path>."
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:668
7187 msgid ""
7188 "Note that this function cannot correctly handle binary files (specifically, "
7189 "files containing C<\\0> character which is treated as end of string).  For "
7190 "those you need to use the L</read-file> or L</download> functions which have "
7191 "a more complex interface."
7192 msgstr ""
7193
7194 #. type: textblock
7195 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7196 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7197 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7198 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7199 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7200 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7201 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7202 #: ../fish/guestfish-actions.pod:4004 ../fish/guestfish-actions.pod:4019
7203 #: ../fish/guestfish-actions.pod:4095 ../fish/guestfish-actions.pod:4112
7204 #: ../fish/guestfish-actions.pod:4127 ../fish/guestfish-actions.pod:4796
7205 #: ../fish/guestfish-actions.pod:4842 ../fish/guestfish-actions.pod:4927
7206 #: ../fish/guestfish-actions.pod:4942 ../fish/guestfish-actions.pod:5427
7207 #: ../fish/guestfish-actions.pod:5439 ../fish/guestfish-actions.pod:5457
7208 #: ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5484
7209 #: ../fish/guestfish-actions.pod:5538 ../fish/guestfish-actions.pod:5548
7210 #: ../fish/guestfish-actions.pod:5577 ../fish/guestfish-actions.pod:5587
7211 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7212 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7213 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7214 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7215 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7216 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7217 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7218 #: ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6254
7219 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6411
7220 #: ../src/guestfs-actions.pod:6435 ../src/guestfs-actions.pod:7390
7221 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7591
7222 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:8400
7223 #: ../src/guestfs-actions.pod:8420 ../src/guestfs-actions.pod:8453
7224 #: ../src/guestfs-actions.pod:8472 ../src/guestfs-actions.pod:8491
7225 #: ../src/guestfs-actions.pod:8582 ../src/guestfs-actions.pod:8601
7226 #: ../src/guestfs-actions.pod:8647 ../src/guestfs-actions.pod:8666
7227 msgid ""
7228 "Because of the message protocol, there is a transfer limit of somewhere "
7229 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7230 msgstr ""
7231
7232 #. type: =head2
7233 #: ../fish/guestfish-actions.pod:676
7234 msgid "checksum"
7235 msgstr ""
7236
7237 #. type: verbatim
7238 #: ../fish/guestfish-actions.pod:678
7239 #, no-wrap
7240 msgid ""
7241 " checksum csumtype path\n"
7242 "\n"
7243 msgstr ""
7244
7245 #. type: textblock
7246 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7247 msgid ""
7248 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7253 msgid ""
7254 "The type of checksum to compute is given by the C<csumtype> parameter which "
7255 "must have one of the following values:"
7256 msgstr ""
7257
7258 #. type: =item
7259 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7260 msgid "C<crc>"
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7265 msgid ""
7266 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7267 "C<cksum> command."
7268 msgstr ""
7269
7270 #. type: =item
7271 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7272 msgid "C<md5>"
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7277 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7278 msgstr ""
7279
7280 #. type: =item
7281 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7282 msgid "C<sha1>"
7283 msgstr ""
7284
7285 #. type: textblock
7286 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7287 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7288 msgstr ""
7289
7290 #. type: =item
7291 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7292 msgid "C<sha224>"
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7297 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7298 msgstr ""
7299
7300 #. type: =item
7301 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7302 msgid "C<sha256>"
7303 msgstr ""
7304
7305 #. type: textblock
7306 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7307 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7308 msgstr ""
7309
7310 #. type: =item
7311 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7312 msgid "C<sha384>"
7313 msgstr ""
7314
7315 #. type: textblock
7316 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7317 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7318 msgstr ""
7319
7320 #. type: =item
7321 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7322 msgid "C<sha512>"
7323 msgstr ""
7324
7325 #. type: textblock
7326 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7327 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7332 msgid "The checksum is returned as a printable string."
7333 msgstr ""
7334
7335 #. type: textblock
7336 #: ../fish/guestfish-actions.pod:721
7337 msgid "To get the checksum for a device, use L</checksum-device>."
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:723
7342 msgid "To get the checksums for many files, use L</checksums-out>."
7343 msgstr ""
7344
7345 #. type: =head2
7346 #: ../fish/guestfish-actions.pod:725
7347 msgid "checksum-device"
7348 msgstr ""
7349
7350 #. type: verbatim
7351 #: ../fish/guestfish-actions.pod:727
7352 #, no-wrap
7353 msgid ""
7354 " checksum-device csumtype device\n"
7355 "\n"
7356 msgstr ""
7357
7358 #. type: textblock
7359 #: ../fish/guestfish-actions.pod:729
7360 msgid ""
7361 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7362 "device named C<device>.  For the types of checksums supported see the L</"
7363 "checksum> command."
7364 msgstr ""
7365
7366 #. type: =head2
7367 #: ../fish/guestfish-actions.pod:733
7368 msgid "checksums-out"
7369 msgstr ""
7370
7371 #. type: verbatim
7372 #: ../fish/guestfish-actions.pod:735
7373 #, no-wrap
7374 msgid ""
7375 " checksums-out csumtype directory (sumsfile|-)\n"
7376 "\n"
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7381 msgid ""
7382 "This command computes the checksums of all regular files in C<directory> and "
7383 "then emits a list of those checksums to the local output file C<sumsfile>."
7384 msgstr ""
7385
7386 #. type: textblock
7387 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7388 msgid ""
7389 "This can be used for verifying the integrity of a virtual machine.  However "
7390 "to be properly secure you should pay attention to the output of the checksum "
7391 "command (it uses the ones from GNU coreutils).  In particular when the "
7392 "filename is not printable, coreutils uses a special backslash syntax.  For "
7393 "more information, see the GNU coreutils info file."
7394 msgstr ""
7395
7396 #. type: =head2
7397 #: ../fish/guestfish-actions.pod:751
7398 msgid "chmod"
7399 msgstr ""
7400
7401 #. type: verbatim
7402 #: ../fish/guestfish-actions.pod:753
7403 #, no-wrap
7404 msgid ""
7405 " chmod mode path\n"
7406 "\n"
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7411 msgid ""
7412 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7413 "supported."
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7418 msgid ""
7419 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7420 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7421 "C<700>."
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3356
7426 #: ../fish/guestfish-actions.pod:3495 ../fish/guestfish-actions.pod:3505
7427 #: ../fish/guestfish-actions.pod:3515 ../src/guestfs-actions.pod:1117
7428 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5402
7429 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
7430 msgid "The mode actually set is affected by the umask."
7431 msgstr ""
7432
7433 #. type: =head2
7434 #: ../fish/guestfish-actions.pod:764
7435 msgid "chown"
7436 msgstr ""
7437
7438 #. type: verbatim
7439 #: ../fish/guestfish-actions.pod:766
7440 #, no-wrap
7441 msgid ""
7442 " chown owner group path\n"
7443 "\n"
7444 msgstr ""
7445
7446 #. type: textblock
7447 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7448 msgid "Change the file owner to C<owner> and group to C<group>."
7449 msgstr ""
7450
7451 #. type: textblock
7452 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7453 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7454 msgid ""
7455 "Only numeric uid and gid are supported.  If you want to use names, you will "
7456 "need to locate and parse the password file yourself (Augeas support makes "
7457 "this relatively easy)."
7458 msgstr ""
7459
7460 #. type: =head2
7461 #: ../fish/guestfish-actions.pod:774
7462 msgid "command"
7463 msgstr ""
7464
7465 #. type: verbatim
7466 #: ../fish/guestfish-actions.pod:776
7467 #, no-wrap
7468 msgid ""
7469 " command 'arguments ...'\n"
7470 "\n"
7471 msgstr ""
7472
7473 #. type: textblock
7474 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7475 msgid ""
7476 "This call runs a command from the guest filesystem.  The filesystem must be "
7477 "mounted, and must contain a compatible operating system (ie. something "
7478 "Linux, with the same or compatible processor architecture)."
7479 msgstr ""
7480
7481 #. type: textblock
7482 #: ../fish/guestfish-actions.pod:783
7483 msgid ""
7484 "The single parameter is an argv-style list of arguments.  The first element "
7485 "is the name of the program to run.  Subsequent elements are parameters.  The "
7486 "list must be non-empty (ie. must contain a program name).  Note that the "
7487 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7492 msgid "The return value is anything printed to I<stdout> by the command."
7493 msgstr ""
7494
7495 #. type: textblock
7496 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7497 msgid ""
7498 "If the command returns a non-zero exit status, then this function returns an "
7499 "error message.  The error message string is the content of I<stderr> from "
7500 "the command."
7501 msgstr ""
7502
7503 #. type: textblock
7504 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7505 msgid ""
7506 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7507 "bin>.  If you require a program from another location, you should provide "
7508 "the full path in the first parameter."
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7513 msgid ""
7514 "Shared libraries and data files required by the program must be available on "
7515 "filesystems which are mounted in the correct places.  It is the caller's "
7516 "responsibility to ensure all filesystems that are needed are mounted at the "
7517 "right locations."
7518 msgstr ""
7519
7520 #. type: =head2
7521 #: ../fish/guestfish-actions.pod:811
7522 msgid "command-lines"
7523 msgstr ""
7524
7525 #. type: verbatim
7526 #: ../fish/guestfish-actions.pod:813
7527 #, no-wrap
7528 msgid ""
7529 " command-lines 'arguments ...'\n"
7530 "\n"
7531 msgstr ""
7532
7533 #. type: textblock
7534 #: ../fish/guestfish-actions.pod:815
7535 msgid ""
7536 "This is the same as L</command>, but splits the result into a list of lines."
7537 msgstr ""
7538
7539 #. type: textblock
7540 #: ../fish/guestfish-actions.pod:818
7541 msgid "See also: L</sh-lines>"
7542 msgstr ""
7543
7544 #. type: =head2
7545 #: ../fish/guestfish-actions.pod:823
7546 msgid "compress-device-out"
7547 msgstr ""
7548
7549 #. type: verbatim
7550 #: ../fish/guestfish-actions.pod:825
7551 #, no-wrap
7552 msgid ""
7553 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7554 "\n"
7555 msgstr ""
7556
7557 #. type: textblock
7558 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7559 msgid ""
7560 "This command compresses C<device> and writes it out to the local file "
7561 "C<zdevice>."
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../fish/guestfish-actions.pod:830
7566 msgid ""
7567 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7568 "compress-out>."
7569 msgstr ""
7570
7571 #. type: =head2
7572 #: ../fish/guestfish-actions.pod:837
7573 msgid "compress-out"
7574 msgstr ""
7575
7576 #. type: verbatim
7577 #: ../fish/guestfish-actions.pod:839
7578 #, no-wrap
7579 msgid ""
7580 " compress-out ctype file (zfile|-) [level:N]\n"
7581 "\n"
7582 msgstr ""
7583
7584 #. type: textblock
7585 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7586 msgid ""
7587 "This command compresses C<file> and writes it out to the local file C<zfile>."
7588 msgstr ""
7589
7590 #. type: textblock
7591 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7592 msgid ""
7593 "The compression program used is controlled by the C<ctype> parameter.  "
7594 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7595 "Some compression types may not be supported by particular builds of "
7596 "libguestfs, in which case you will get an error containing the substring "
7597 "\"not supported\"."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7602 msgid ""
7603 "The optional C<level> parameter controls compression level.  The meaning and "
7604 "default for this parameter depends on the compression program being used."
7605 msgstr ""
7606
7607 #. type: =head2
7608 #: ../fish/guestfish-actions.pod:858
7609 msgid "config"
7610 msgstr ""
7611
7612 #. type: verbatim
7613 #: ../fish/guestfish-actions.pod:860
7614 #, no-wrap
7615 msgid ""
7616 " config qemuparam qemuvalue\n"
7617 "\n"
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7622 msgid ""
7623 "This can be used to add arbitrary qemu command line parameters of the form "
7624 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7625 "setting some parameters which would interfere with parameters that we use."
7626 msgstr ""
7627
7628 #. type: textblock
7629 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7630 msgid "The first character of C<param> string must be a C<-> (dash)."
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7635 msgid "C<value> can be NULL."
7636 msgstr ""
7637
7638 #. type: =head2
7639 #: ../fish/guestfish-actions.pod:871
7640 msgid "copy-device-to-device"
7641 msgstr ""
7642
7643 #. type: verbatim
7644 #: ../fish/guestfish-actions.pod:873
7645 #, no-wrap
7646 msgid ""
7647 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7648 "\n"
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:875
7653 msgid ""
7654 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7655 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7656 "(device|file) to a destination (device|file)."
7657 msgstr ""
7658
7659 #. type: textblock
7660 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7661 msgid ""
7662 "Partial copies can be made since you can specify optionally the source "
7663 "offset, destination offset and size to copy.  These values are all specified "
7664 "in bytes.  If not given, the offsets both default to zero, and the size "
7665 "defaults to copying as much as possible until we hit the end of the source."
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7670 msgid ""
7671 "The source and destination may be the same object.  However overlapping "
7672 "regions may not be copied correctly."
7673 msgstr ""
7674
7675 #. type: textblock
7676 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7677 msgid ""
7678 "If the destination is a file, it is created if required.  If the destination "
7679 "file is not large enough, it is extended."
7680 msgstr ""
7681
7682 #. type: =head2
7683 #: ../fish/guestfish-actions.pod:896
7684 msgid "copy-device-to-file"
7685 msgstr ""
7686
7687 #. type: verbatim
7688 #: ../fish/guestfish-actions.pod:898
7689 #, no-wrap
7690 msgid ""
7691 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7692 "\n"
7693 msgstr ""
7694
7695 #. type: textblock
7696 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7697 #: ../fish/guestfish-actions.pod:918
7698 msgid "See L</copy-device-to-device> for a general overview of this call."
7699 msgstr ""
7700
7701 #. type: =head2
7702 #: ../fish/guestfish-actions.pod:905
7703 msgid "copy-file-to-device"
7704 msgstr ""
7705
7706 #. type: verbatim
7707 #: ../fish/guestfish-actions.pod:907
7708 #, no-wrap
7709 msgid ""
7710 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7711 "\n"
7712 msgstr ""
7713
7714 #. type: =head2
7715 #: ../fish/guestfish-actions.pod:914
7716 msgid "copy-file-to-file"
7717 msgstr ""
7718
7719 #. type: verbatim
7720 #: ../fish/guestfish-actions.pod:916
7721 #, no-wrap
7722 msgid ""
7723 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7724 "\n"
7725 msgstr ""
7726
7727 #. type: textblock
7728 #: ../fish/guestfish-actions.pod:921
7729 msgid ""
7730 "This is B<not> the function you want for copying files.  This is for copying "
7731 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7732 "file copying and moving functions."
7733 msgstr ""
7734
7735 #. type: =head2
7736 #: ../fish/guestfish-actions.pod:928
7737 msgid "copy-size"
7738 msgstr ""
7739
7740 #. type: verbatim
7741 #: ../fish/guestfish-actions.pod:930
7742 #, no-wrap
7743 msgid ""
7744 " copy-size src dest size\n"
7745 "\n"
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7750 msgid ""
7751 "This command copies exactly C<size> bytes from one source device or file "
7752 "C<src> to another destination device or file C<dest>."
7753 msgstr ""
7754
7755 #. type: textblock
7756 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7757 msgid ""
7758 "Note this will fail if the source is too short or if the destination is not "
7759 "large enough."
7760 msgstr ""
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7764 msgid ""
7765 "I<This function is deprecated.> In new code, use the L</"
7766 "copy_device_to_device> call instead."
7767 msgstr ""
7768
7769 #. type: =head2
7770 #: ../fish/guestfish-actions.pod:945
7771 msgid "cp"
7772 msgstr ""
7773
7774 #. type: verbatim
7775 #: ../fish/guestfish-actions.pod:947
7776 #, no-wrap
7777 msgid ""
7778 " cp src dest\n"
7779 "\n"
7780 msgstr ""
7781
7782 #. type: textblock
7783 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7784 msgid ""
7785 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7786 "destination filename or destination directory."
7787 msgstr ""
7788
7789 #. type: =head2
7790 #: ../fish/guestfish-actions.pod:952
7791 msgid "cp-a"
7792 msgstr ""
7793
7794 #. type: verbatim
7795 #: ../fish/guestfish-actions.pod:954
7796 #, no-wrap
7797 msgid ""
7798 " cp-a src dest\n"
7799 "\n"
7800 msgstr ""
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7804 msgid ""
7805 "This copies a file or directory from C<src> to C<dest> recursively using the "
7806 "C<cp -a> command."
7807 msgstr ""
7808
7809 #. type: =head2
7810 #: ../fish/guestfish-actions.pod:959
7811 msgid "dd"
7812 msgstr ""
7813
7814 #. type: verbatim
7815 #: ../fish/guestfish-actions.pod:961
7816 #, no-wrap
7817 msgid ""
7818 " dd src dest\n"
7819 "\n"
7820 msgstr ""
7821
7822 #. type: textblock
7823 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7824 msgid ""
7825 "This command copies from one source device or file C<src> to another "
7826 "destination device or file C<dest>.  Normally you would use this to copy to "
7827 "or from a device or partition, for example to duplicate a filesystem."
7828 msgstr ""
7829
7830 #. type: textblock
7831 #: ../fish/guestfish-actions.pod:968
7832 msgid ""
7833 "If the destination is a device, it must be as large or larger than the "
7834 "source file or device, otherwise the copy will fail.  This command cannot do "
7835 "partial copies (see L</copy-device-to-device>)."
7836 msgstr ""
7837
7838 #. type: =head2
7839 #: ../fish/guestfish-actions.pod:980
7840 msgid "df"
7841 msgstr ""
7842
7843 #. type: verbatim
7844 #: ../fish/guestfish-actions.pod:982
7845 #, no-wrap
7846 msgid ""
7847 " df\n"
7848 "\n"
7849 msgstr ""
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7853 msgid "This command runs the C<df> command to report disk space used."
7854 msgstr ""
7855
7856 #. type: textblock
7857 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7858 msgid ""
7859 "This command is mostly useful for interactive sessions.  It is I<not> "
7860 "intended that you try to parse the output string.  Use L</statvfs> from "
7861 "programs."
7862 msgstr ""
7863
7864 #. type: =head2
7865 #: ../fish/guestfish-actions.pod:990
7866 msgid "df-h"
7867 msgstr ""
7868
7869 #. type: verbatim
7870 #: ../fish/guestfish-actions.pod:992
7871 #, no-wrap
7872 msgid ""
7873 " df-h\n"
7874 "\n"
7875 msgstr ""
7876
7877 #. type: textblock
7878 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
7879 msgid ""
7880 "This command runs the C<df -h> command to report disk space used in human-"
7881 "readable format."
7882 msgstr ""
7883
7884 #. type: =head2
7885 #: ../fish/guestfish-actions.pod:1001
7886 msgid "dmesg"
7887 msgstr ""
7888
7889 #. type: verbatim
7890 #: ../fish/guestfish-actions.pod:1003
7891 #, no-wrap
7892 msgid ""
7893 " dmesg\n"
7894 "\n"
7895 msgstr ""
7896
7897 #. type: textblock
7898 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
7899 msgid ""
7900 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7901 "This is sometimes useful for extended debugging of problems."
7902 msgstr ""
7903
7904 #. type: textblock
7905 #: ../fish/guestfish-actions.pod:1009
7906 msgid ""
7907 "Another way to get the same information is to enable verbose messages with "
7908 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7909 "before running the program."
7910 msgstr ""
7911
7912 #. type: =head2
7913 #: ../fish/guestfish-actions.pod:1014
7914 msgid "download"
7915 msgstr ""
7916
7917 #. type: verbatim
7918 #: ../fish/guestfish-actions.pod:1016
7919 #, no-wrap
7920 msgid ""
7921 " download remotefilename (filename|-)\n"
7922 "\n"
7923 msgstr ""
7924
7925 #. type: textblock
7926 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
7927 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
7928 msgid ""
7929 "Download file C<remotefilename> and save it as C<filename> on the local "
7930 "machine."
7931 msgstr ""
7932
7933 #. type: textblock
7934 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5179
7935 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7970
7936 msgid "C<filename> can also be a named pipe."
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:1023
7941 msgid "See also L</upload>, L</cat>."
7942 msgstr ""
7943
7944 #. type: =head2
7945 #: ../fish/guestfish-actions.pod:1027
7946 msgid "download-offset"
7947 msgstr ""
7948
7949 #. type: verbatim
7950 #: ../fish/guestfish-actions.pod:1029
7951 #, no-wrap
7952 msgid ""
7953 " download-offset remotefilename (filename|-) offset size\n"
7954 "\n"
7955 msgstr ""
7956
7957 #. type: textblock
7958 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
7959 msgid ""
7960 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7961 "region must be within the file or device)."
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:1037
7966 msgid ""
7967 "Note that there is no limit on the amount of data that can be downloaded "
7968 "with this call, unlike with L</pread>, and this call always reads the full "
7969 "amount unless an error occurs."
7970 msgstr ""
7971
7972 #. type: textblock
7973 #: ../fish/guestfish-actions.pod:1042
7974 msgid "See also L</download>, L</pread>."
7975 msgstr ""
7976
7977 #. type: =head2
7978 #: ../fish/guestfish-actions.pod:1046
7979 msgid "drop-caches"
7980 msgstr ""
7981
7982 #. type: verbatim
7983 #: ../fish/guestfish-actions.pod:1048
7984 #, no-wrap
7985 msgid ""
7986 " drop-caches whattodrop\n"
7987 "\n"
7988 msgstr ""
7989
7990 #. type: textblock
7991 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
7992 msgid ""
7993 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7994 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7995 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8000 msgid "Setting C<whattodrop> to 3 should drop everything."
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8005 msgid ""
8006 "This automatically calls L<sync(2)> before the operation, so that the "
8007 "maximum guest memory is freed."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:1060
8012 msgid "du"
8013 msgstr ""
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:1062
8017 #, no-wrap
8018 msgid ""
8019 " du path\n"
8020 "\n"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8025 msgid ""
8026 "This command runs the C<du -s> command to estimate file space usage for "
8027 "C<path>."
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8032 msgid ""
8033 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8034 "estimate includes the contents of the directory and all subdirectories "
8035 "(recursively)."
8036 msgstr ""
8037
8038 #. type: textblock
8039 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8040 msgid ""
8041 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8042 msgstr ""
8043
8044 #. type: =head2
8045 #: ../fish/guestfish-actions.pod:1074
8046 msgid "e2fsck-f"
8047 msgstr ""
8048
8049 #. type: verbatim
8050 #: ../fish/guestfish-actions.pod:1076
8051 #, no-wrap
8052 msgid ""
8053 " e2fsck-f device\n"
8054 "\n"
8055 msgstr ""
8056
8057 #. type: textblock
8058 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8059 msgid ""
8060 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8061 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8062 "clean (I<-f>)."
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1082
8067 msgid ""
8068 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8069 "should use L</fsck>."
8070 msgstr ""
8071
8072 #. type: =head2
8073 #: ../fish/guestfish-actions.pod:1085
8074 msgid "echo-daemon"
8075 msgstr ""
8076
8077 #. type: verbatim
8078 #: ../fish/guestfish-actions.pod:1087
8079 #, no-wrap
8080 msgid ""
8081 " echo-daemon 'words ...'\n"
8082 "\n"
8083 msgstr ""
8084
8085 #. type: textblock
8086 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8087 msgid ""
8088 "This command concatenates the list of C<words> passed with single spaces "
8089 "between them and returns the resulting string."
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8094 msgid "You can use this command to test the connection through to the daemon."
8095 msgstr ""
8096
8097 #. type: textblock
8098 #: ../fish/guestfish-actions.pod:1094
8099 msgid "See also L</ping-daemon>."
8100 msgstr ""
8101
8102 #. type: =head2
8103 #: ../fish/guestfish-actions.pod:1096
8104 msgid "egrep"
8105 msgstr ""
8106
8107 #. type: verbatim
8108 #: ../fish/guestfish-actions.pod:1098
8109 #, no-wrap
8110 msgid ""
8111 " egrep regex path\n"
8112 "\n"
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8117 msgid ""
8118 "This calls the external C<egrep> program and returns the matching lines."
8119 msgstr ""
8120
8121 #. type: =head2
8122 #: ../fish/guestfish-actions.pod:1106
8123 msgid "egrepi"
8124 msgstr ""
8125
8126 #. type: verbatim
8127 #: ../fish/guestfish-actions.pod:1108
8128 #, no-wrap
8129 msgid ""
8130 " egrepi regex path\n"
8131 "\n"
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8136 msgid ""
8137 "This calls the external C<egrep -i> program and returns the matching lines."
8138 msgstr ""
8139
8140 #. type: =head2
8141 #: ../fish/guestfish-actions.pod:1116
8142 msgid "equal"
8143 msgstr ""
8144
8145 #. type: verbatim
8146 #: ../fish/guestfish-actions.pod:1118
8147 #, no-wrap
8148 msgid ""
8149 " equal file1 file2\n"
8150 "\n"
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8155 msgid ""
8156 "This compares the two files C<file1> and C<file2> and returns true if their "
8157 "content is exactly equal, or false otherwise."
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8162 msgid "The external L<cmp(1)> program is used for the comparison."
8163 msgstr ""
8164
8165 #. type: =head2
8166 #: ../fish/guestfish-actions.pod:1125
8167 msgid "exists"
8168 msgstr ""
8169
8170 #. type: verbatim
8171 #: ../fish/guestfish-actions.pod:1127
8172 #, no-wrap
8173 msgid ""
8174 " exists path\n"
8175 "\n"
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8180 msgid ""
8181 "This returns C<true> if and only if there is a file, directory (or anything) "
8182 "with the given C<path> name."
8183 msgstr ""
8184
8185 #. type: textblock
8186 #: ../fish/guestfish-actions.pod:1132
8187 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8188 msgstr ""
8189
8190 #. type: =head2
8191 #: ../fish/guestfish-actions.pod:1134
8192 msgid "fallocate"
8193 msgstr ""
8194
8195 #. type: verbatim
8196 #: ../fish/guestfish-actions.pod:1136
8197 #, no-wrap
8198 msgid ""
8199 " fallocate path len\n"
8200 "\n"
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8205 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8206 msgid ""
8207 "This command preallocates a file (containing zero bytes) named C<path> of "
8208 "size C<len> bytes.  If the file exists already, it is overwritten."
8209 msgstr ""
8210
8211 #. type: textblock
8212 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8213 msgid ""
8214 "Do not confuse this with the guestfish-specific C<alloc> command which "
8215 "allocates a file in the host and attaches it as a device."
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:1146
8220 msgid ""
8221 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8222 "instead."
8223 msgstr ""
8224
8225 #. type: =head2
8226 #: ../fish/guestfish-actions.pod:1153
8227 msgid "fallocate64"
8228 msgstr ""
8229
8230 #. type: verbatim
8231 #: ../fish/guestfish-actions.pod:1155
8232 #, no-wrap
8233 msgid ""
8234 " fallocate64 path len\n"
8235 "\n"
8236 msgstr ""
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:1161
8240 msgid ""
8241 "Note that this call allocates disk blocks for the file.  To create a sparse "
8242 "file use L</truncate-size> instead."
8243 msgstr ""
8244
8245 #. type: textblock
8246 #: ../fish/guestfish-actions.pod:1164
8247 msgid ""
8248 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8249 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8250 "maximum size of files created through that call to 1GB."
8251 msgstr ""
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8255 msgid ""
8256 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8257 "commands which create a file in the host and attach it as a device."
8258 msgstr ""
8259
8260 #. type: =head2
8261 #: ../fish/guestfish-actions.pod:1173
8262 msgid "fgrep"
8263 msgstr ""
8264
8265 #. type: verbatim
8266 #: ../fish/guestfish-actions.pod:1175
8267 #, no-wrap
8268 msgid ""
8269 " fgrep pattern path\n"
8270 "\n"
8271 msgstr ""
8272
8273 #. type: textblock
8274 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8275 msgid ""
8276 "This calls the external C<fgrep> program and returns the matching lines."
8277 msgstr ""
8278
8279 #. type: =head2
8280 #: ../fish/guestfish-actions.pod:1183
8281 msgid "fgrepi"
8282 msgstr ""
8283
8284 #. type: verbatim
8285 #: ../fish/guestfish-actions.pod:1185
8286 #, no-wrap
8287 msgid ""
8288 " fgrepi pattern path\n"
8289 "\n"
8290 msgstr ""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8294 msgid ""
8295 "This calls the external C<fgrep -i> program and returns the matching lines."
8296 msgstr ""
8297
8298 #. type: =head2
8299 #: ../fish/guestfish-actions.pod:1193
8300 msgid "file"
8301 msgstr ""
8302
8303 #. type: verbatim
8304 #: ../fish/guestfish-actions.pod:1195
8305 #, no-wrap
8306 msgid ""
8307 " file path\n"
8308 "\n"
8309 msgstr ""
8310
8311 #. type: textblock
8312 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8313 msgid ""
8314 "This call uses the standard L<file(1)> command to determine the type or "
8315 "contents of the file."
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8320 msgid ""
8321 "This call will also transparently look inside various types of compressed "
8322 "file."
8323 msgstr ""
8324
8325 #. type: textblock
8326 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8327 msgid ""
8328 "The exact command which runs is C<file -zb path>.  Note in particular that "
8329 "the filename is not prepended to the output (the I<-b> option)."
8330 msgstr ""
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8334 msgid ""
8335 "The output depends on the output of the underlying L<file(1)> command and it "
8336 "can change in future in ways beyond our control.  In other words, the output "
8337 "is not guaranteed by the ABI."
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:1211
8342 msgid ""
8343 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8344 "(etc), L</is-zero>."
8345 msgstr ""
8346
8347 #. type: =head2
8348 #: ../fish/guestfish-actions.pod:1214
8349 msgid "file-architecture"
8350 msgstr ""
8351
8352 #. type: verbatim
8353 #: ../fish/guestfish-actions.pod:1216
8354 #, no-wrap
8355 msgid ""
8356 " file-architecture filename\n"
8357 "\n"
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8362 msgid ""
8363 "This detects the architecture of the binary C<filename>, and returns it if "
8364 "known."
8365 msgstr ""
8366
8367 #. type: textblock
8368 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8369 msgid "Currently defined architectures are:"
8370 msgstr ""
8371
8372 #. type: =item
8373 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8374 msgid "\"i386\""
8375 msgstr ""
8376
8377 #. type: textblock
8378 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8379 msgid ""
8380 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8381 "irrespective of the precise processor requirements of the binary."
8382 msgstr ""
8383
8384 #. type: =item
8385 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8386 msgid "\"x86_64\""
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8391 msgid "64 bit x86-64."
8392 msgstr ""
8393
8394 #. type: =item
8395 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8396 msgid "\"sparc\""
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8401 msgid "32 bit SPARC."
8402 msgstr ""
8403
8404 #. type: =item
8405 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8406 msgid "\"sparc64\""
8407 msgstr ""
8408
8409 #. type: textblock
8410 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8411 msgid "64 bit SPARC V9 and above."
8412 msgstr ""
8413
8414 #. type: =item
8415 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8416 msgid "\"ia64\""
8417 msgstr ""
8418
8419 #. type: textblock
8420 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8421 msgid "Intel Itanium."
8422 msgstr ""
8423
8424 #. type: =item
8425 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8426 msgid "\"ppc\""
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8431 msgid "32 bit Power PC."
8432 msgstr ""
8433
8434 #. type: =item
8435 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8436 msgid "\"ppc64\""
8437 msgstr ""
8438
8439 #. type: textblock
8440 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8441 msgid "64 bit Power PC."
8442 msgstr ""
8443
8444 #. type: textblock
8445 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8446 msgid "Libguestfs may return other architecture strings in future."
8447 msgstr ""
8448
8449 #. type: textblock
8450 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8451 msgid "The function works on at least the following types of files:"
8452 msgstr ""
8453
8454 #. type: textblock
8455 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8456 msgid "many types of Un*x and Linux binary"
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8461 msgid "many types of Un*x and Linux shared library"
8462 msgstr ""
8463
8464 #. type: textblock
8465 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8466 msgid "Windows Win32 and Win64 binaries"
8467 msgstr ""
8468
8469 #. type: textblock
8470 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8471 msgid "Windows Win32 and Win64 DLLs"
8472 msgstr ""
8473
8474 #. type: textblock
8475 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8476 msgid "Win32 binaries and DLLs return C<i386>."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8481 msgid "Win64 binaries and DLLs return C<x86_64>."
8482 msgstr ""
8483
8484 #. type: textblock
8485 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8486 msgid "Linux kernel modules"
8487 msgstr ""
8488
8489 #. type: textblock
8490 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8491 msgid "Linux new-style initrd images"
8492 msgstr ""
8493
8494 #. type: textblock
8495 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8496 msgid "some non-x86 Linux vmlinuz kernels"
8497 msgstr ""
8498
8499 #. type: textblock
8500 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8501 msgid "What it can't do currently:"
8502 msgstr ""
8503
8504 #. type: textblock
8505 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8506 msgid "static libraries (libfoo.a)"
8507 msgstr ""
8508
8509 #. type: textblock
8510 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8511 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8512 msgstr ""
8513
8514 #. type: textblock
8515 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8516 msgid "x86 Linux vmlinuz kernels"
8517 msgstr ""
8518
8519 #. type: textblock
8520 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8521 msgid ""
8522 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8523 "compressed code, and are horribly hard to unpack.  If you want to find the "
8524 "architecture of a kernel, use the architecture of the associated initrd or "
8525 "kernel module(s) instead."
8526 msgstr ""
8527
8528 #. type: =head2
8529 #: ../fish/guestfish-actions.pod:1319
8530 msgid "filesize"
8531 msgstr ""
8532
8533 #. type: verbatim
8534 #: ../fish/guestfish-actions.pod:1321
8535 #, no-wrap
8536 msgid ""
8537 " filesize file\n"
8538 "\n"
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8543 msgid "This command returns the size of C<file> in bytes."
8544 msgstr ""
8545
8546 #. type: textblock
8547 #: ../fish/guestfish-actions.pod:1325
8548 msgid ""
8549 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8550 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8551 msgstr ""
8552
8553 #. type: =head2
8554 #: ../fish/guestfish-actions.pod:1329
8555 msgid "fill"
8556 msgstr ""
8557
8558 #. type: verbatim
8559 #: ../fish/guestfish-actions.pod:1331
8560 #, no-wrap
8561 msgid ""
8562 " fill c len path\n"
8563 "\n"
8564 msgstr ""
8565
8566 #. type: textblock
8567 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8568 msgid ""
8569 "This command creates a new file called C<path>.  The initial content of the "
8570 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8571 "[0..255]>."
8572 msgstr ""
8573
8574 #. type: textblock
8575 #: ../fish/guestfish-actions.pod:1337
8576 msgid ""
8577 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8578 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8579 "L</fill-pattern>."
8580 msgstr ""
8581
8582 #. type: =head2
8583 #: ../fish/guestfish-actions.pod:1342
8584 msgid "fill-pattern"
8585 msgstr ""
8586
8587 #. type: verbatim
8588 #: ../fish/guestfish-actions.pod:1344
8589 #, no-wrap
8590 msgid ""
8591 " fill-pattern pattern len path\n"
8592 "\n"
8593 msgstr ""
8594
8595 #. type: textblock
8596 #: ../fish/guestfish-actions.pod:1346
8597 msgid ""
8598 "This function is like L</fill> except that it creates a new file of length "
8599 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8600 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8601 "bytes."
8602 msgstr ""
8603
8604 #. type: =head2
8605 #: ../fish/guestfish-actions.pod:1351
8606 msgid "find"
8607 msgstr ""
8608
8609 #. type: verbatim
8610 #: ../fish/guestfish-actions.pod:1353
8611 #, no-wrap
8612 msgid ""
8613 " find directory\n"
8614 "\n"
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8619 msgid ""
8620 "This command lists out all files and directories, recursively, starting at "
8621 "C<directory>.  It is essentially equivalent to running the shell command "
8622 "C<find directory -print> but some post-processing happens on the output, "
8623 "described below."
8624 msgstr ""
8625
8626 #. type: textblock
8627 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8628 msgid ""
8629 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8630 "structure was:"
8631 msgstr ""
8632
8633 #. type: verbatim
8634 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8635 #, no-wrap
8636 msgid ""
8637 " /tmp/a\n"
8638 " /tmp/b\n"
8639 " /tmp/c/d\n"
8640 "\n"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:1367
8645 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8646 msgstr ""
8647
8648 #. type: verbatim
8649 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8650 #, no-wrap
8651 msgid ""
8652 " a\n"
8653 " b\n"
8654 " c\n"
8655 " c/d\n"
8656 "\n"
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8661 msgid "If C<directory> is not a directory, then this command returns an error."
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8666 msgid "The returned list is sorted."
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1380
8671 msgid "See also L</find0>."
8672 msgstr ""
8673
8674 #. type: =head2
8675 #: ../fish/guestfish-actions.pod:1385
8676 msgid "find0"
8677 msgstr ""
8678
8679 #. type: verbatim
8680 #: ../fish/guestfish-actions.pod:1387
8681 #, no-wrap
8682 msgid ""
8683 " find0 directory (files|-)\n"
8684 "\n"
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8689 msgid ""
8690 "This command lists out all files and directories, recursively, starting at "
8691 "C<directory>, placing the resulting list in the external file called "
8692 "C<files>."
8693 msgstr ""
8694
8695 #. type: textblock
8696 #: ../fish/guestfish-actions.pod:1393
8697 msgid ""
8698 "This command works the same way as L</find> with the following exceptions:"
8699 msgstr ""
8700
8701 #. type: textblock
8702 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8703 msgid "The resulting list is written to an external file."
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8708 msgid ""
8709 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8710 "L<find(1)> option I<-print0>."
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8715 msgid "This command is not limited in the number of names that it can return."
8716 msgstr ""
8717
8718 #. type: textblock
8719 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8720 msgid "The result list is not sorted."
8721 msgstr ""
8722
8723 #. type: =head2
8724 #: ../fish/guestfish-actions.pod:1420
8725 msgid "findfs-label"
8726 msgstr ""
8727
8728 #. type: verbatim
8729 #: ../fish/guestfish-actions.pod:1422
8730 #, no-wrap
8731 msgid ""
8732 " findfs-label label\n"
8733 "\n"
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8738 msgid ""
8739 "This command searches the filesystems and returns the one which has the "
8740 "given label.  An error is returned if no such filesystem can be found."
8741 msgstr ""
8742
8743 #. type: textblock
8744 #: ../fish/guestfish-actions.pod:1428
8745 msgid "To find the label of a filesystem, use L</vfs-label>."
8746 msgstr ""
8747
8748 #. type: =head2
8749 #: ../fish/guestfish-actions.pod:1430
8750 msgid "findfs-uuid"
8751 msgstr ""
8752
8753 #. type: verbatim
8754 #: ../fish/guestfish-actions.pod:1432
8755 #, no-wrap
8756 msgid ""
8757 " findfs-uuid uuid\n"
8758 "\n"
8759 msgstr ""
8760
8761 #. type: textblock
8762 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8763 msgid ""
8764 "This command searches the filesystems and returns the one which has the "
8765 "given UUID.  An error is returned if no such filesystem can be found."
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../fish/guestfish-actions.pod:1438
8770 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8771 msgstr ""
8772
8773 #. type: =head2
8774 #: ../fish/guestfish-actions.pod:1440
8775 msgid "fsck"
8776 msgstr ""
8777
8778 #. type: verbatim
8779 #: ../fish/guestfish-actions.pod:1442
8780 #, no-wrap
8781 msgid ""
8782 " fsck fstype device\n"
8783 "\n"
8784 msgstr ""
8785
8786 #. type: textblock
8787 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8788 msgid ""
8789 "This runs the filesystem checker (fsck) on C<device> which should have "
8790 "filesystem type C<fstype>."
8791 msgstr ""
8792
8793 #. type: textblock
8794 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8795 msgid ""
8796 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8797 "codes from C<fsck>."
8798 msgstr ""
8799
8800 #. type: textblock
8801 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8802 msgid "Multiple status codes can be summed together."
8803 msgstr ""
8804
8805 #. type: textblock
8806 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8807 msgid ""
8808 "A non-zero return code can mean \"success\", for example if errors have been "
8809 "corrected on the filesystem."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8814 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8819 msgid ""
8820 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8821 msgstr ""
8822
8823 #. type: =head2
8824 #: ../fish/guestfish-actions.pod:1472
8825 msgid "get-append"
8826 msgstr ""
8827
8828 #. type: verbatim
8829 #: ../fish/guestfish-actions.pod:1474
8830 #, no-wrap
8831 msgid ""
8832 " get-append\n"
8833 "\n"
8834 msgstr ""
8835
8836 #. type: textblock
8837 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8838 msgid ""
8839 "Return the additional kernel options which are added to the guest kernel "
8840 "command line."
8841 msgstr ""
8842
8843 #. type: textblock
8844 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
8845 msgid "If C<NULL> then no options are added."
8846 msgstr ""
8847
8848 #. type: =head2
8849 #: ../fish/guestfish-actions.pod:1481
8850 msgid "get-attach-method"
8851 msgstr ""
8852
8853 #. type: verbatim
8854 #: ../fish/guestfish-actions.pod:1483
8855 #, no-wrap
8856 msgid ""
8857 " get-attach-method\n"
8858 "\n"
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:1485
8863 msgid "Return the current attach method.  See L</set-attach-method>."
8864 msgstr ""
8865
8866 #. type: =head2
8867 #: ../fish/guestfish-actions.pod:1487
8868 msgid "get-autosync"
8869 msgstr ""
8870
8871 #. type: verbatim
8872 #: ../fish/guestfish-actions.pod:1489
8873 #, no-wrap
8874 msgid ""
8875 " get-autosync\n"
8876 "\n"
8877 msgstr ""
8878
8879 #. type: textblock
8880 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
8881 msgid "Get the autosync flag."
8882 msgstr ""
8883
8884 #. type: =head2
8885 #: ../fish/guestfish-actions.pod:1493
8886 msgid "get-direct"
8887 msgstr ""
8888
8889 #. type: verbatim
8890 #: ../fish/guestfish-actions.pod:1495
8891 #, no-wrap
8892 msgid ""
8893 " get-direct\n"
8894 "\n"
8895 msgstr ""
8896
8897 #. type: textblock
8898 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
8899 msgid "Return the direct appliance mode flag."
8900 msgstr ""
8901
8902 #. type: =head2
8903 #: ../fish/guestfish-actions.pod:1499
8904 msgid "get-e2label"
8905 msgstr ""
8906
8907 #. type: verbatim
8908 #: ../fish/guestfish-actions.pod:1501
8909 #, no-wrap
8910 msgid ""
8911 " get-e2label device\n"
8912 "\n"
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
8917 msgid ""
8918 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8919 msgstr ""
8920
8921 #. type: textblock
8922 #: ../fish/guestfish-actions.pod:1506
8923 msgid ""
8924 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8925 "instead."
8926 msgstr ""
8927
8928 #. type: =head2
8929 #: ../fish/guestfish-actions.pod:1513
8930 msgid "get-e2uuid"
8931 msgstr ""
8932
8933 #. type: verbatim
8934 #: ../fish/guestfish-actions.pod:1515
8935 #, no-wrap
8936 msgid ""
8937 " get-e2uuid device\n"
8938 "\n"
8939 msgstr ""
8940
8941 #. type: textblock
8942 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
8943 msgid ""
8944 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8945 msgstr ""
8946
8947 #. type: textblock
8948 #: ../fish/guestfish-actions.pod:1520
8949 msgid ""
8950 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8951 "instead."
8952 msgstr ""
8953
8954 #. type: =head2
8955 #: ../fish/guestfish-actions.pod:1527
8956 msgid "get-memsize"
8957 msgstr ""
8958
8959 #. type: verbatim
8960 #: ../fish/guestfish-actions.pod:1529
8961 #, no-wrap
8962 msgid ""
8963 " get-memsize\n"
8964 "\n"
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
8969 msgid ""
8970 "This gets the memory size in megabytes allocated to the qemu subprocess."
8971 msgstr ""
8972
8973 #. type: textblock
8974 #: ../fish/guestfish-actions.pod:1534
8975 msgid ""
8976 "If L</set-memsize> was not called on this handle, and if "
8977 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8978 "value for memsize."
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
8983 #: ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4559
8984 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
8985 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:7030
8986 msgid ""
8987 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8988 msgstr ""
8989
8990 #. type: =head2
8991 #: ../fish/guestfish-actions.pod:1541
8992 msgid "get-network"
8993 msgstr ""
8994
8995 #. type: verbatim
8996 #: ../fish/guestfish-actions.pod:1543
8997 #, no-wrap
8998 msgid ""
8999 " get-network\n"
9000 "\n"
9001 msgstr ""
9002
9003 #. type: textblock
9004 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9005 msgid "This returns the enable network flag."
9006 msgstr ""
9007
9008 #. type: =head2
9009 #: ../fish/guestfish-actions.pod:1547
9010 msgid "get-path"
9011 msgstr ""
9012
9013 #. type: verbatim
9014 #: ../fish/guestfish-actions.pod:1549
9015 #, no-wrap
9016 msgid ""
9017 " get-path\n"
9018 "\n"
9019 msgstr ""
9020
9021 #. type: textblock
9022 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9023 msgid "Return the current search path."
9024 msgstr ""
9025
9026 #. type: textblock
9027 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9028 msgid ""
9029 "This is always non-NULL.  If it wasn't set already, then this will return "
9030 "the default path."
9031 msgstr ""
9032
9033 #. type: =head2
9034 #: ../fish/guestfish-actions.pod:1556
9035 msgid "get-pgroup"
9036 msgstr ""
9037
9038 #. type: verbatim
9039 #: ../fish/guestfish-actions.pod:1558
9040 #, no-wrap
9041 msgid ""
9042 " get-pgroup\n"
9043 "\n"
9044 msgstr ""
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9048 msgid "This returns the process group flag."
9049 msgstr ""
9050
9051 #. type: =head2
9052 #: ../fish/guestfish-actions.pod:1562
9053 msgid "get-pid"
9054 msgstr ""
9055
9056 #. type: =head2
9057 #: ../fish/guestfish-actions.pod:1564
9058 msgid "pid"
9059 msgstr ""
9060
9061 #. type: verbatim
9062 #: ../fish/guestfish-actions.pod:1566
9063 #, no-wrap
9064 msgid ""
9065 " get-pid\n"
9066 "\n"
9067 msgstr ""
9068
9069 #. type: textblock
9070 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9071 msgid ""
9072 "Return the process ID of the qemu subprocess.  If there is no qemu "
9073 "subprocess, then this will return an error."
9074 msgstr ""
9075
9076 #. type: textblock
9077 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9078 msgid "This is an internal call used for debugging and testing."
9079 msgstr ""
9080
9081 #. type: =head2
9082 #: ../fish/guestfish-actions.pod:1573
9083 msgid "get-qemu"
9084 msgstr ""
9085
9086 #. type: verbatim
9087 #: ../fish/guestfish-actions.pod:1575
9088 #, no-wrap
9089 msgid ""
9090 " get-qemu\n"
9091 "\n"
9092 msgstr ""
9093
9094 #. type: textblock
9095 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9096 msgid "Return the current qemu binary."
9097 msgstr ""
9098
9099 #. type: textblock
9100 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9101 msgid ""
9102 "This is always non-NULL.  If it wasn't set already, then this will return "
9103 "the default qemu binary name."
9104 msgstr ""
9105
9106 #. type: =head2
9107 #: ../fish/guestfish-actions.pod:1582
9108 msgid "get-recovery-proc"
9109 msgstr ""
9110
9111 #. type: verbatim
9112 #: ../fish/guestfish-actions.pod:1584
9113 #, no-wrap
9114 msgid ""
9115 " get-recovery-proc\n"
9116 "\n"
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9121 msgid "Return the recovery process enabled flag."
9122 msgstr ""
9123
9124 #. type: =head2
9125 #: ../fish/guestfish-actions.pod:1588
9126 msgid "get-selinux"
9127 msgstr ""
9128
9129 #. type: verbatim
9130 #: ../fish/guestfish-actions.pod:1590
9131 #, no-wrap
9132 msgid ""
9133 " get-selinux\n"
9134 "\n"
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1592
9139 msgid ""
9140 "This returns the current setting of the selinux flag which is passed to the "
9141 "appliance at boot time.  See L</set-selinux>."
9142 msgstr ""
9143
9144 #. type: =head2
9145 #: ../fish/guestfish-actions.pod:1598
9146 msgid "get-smp"
9147 msgstr ""
9148
9149 #. type: verbatim
9150 #: ../fish/guestfish-actions.pod:1600
9151 #, no-wrap
9152 msgid ""
9153 " get-smp\n"
9154 "\n"
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9159 msgid "This returns the number of virtual CPUs assigned to the appliance."
9160 msgstr ""
9161
9162 #. type: =head2
9163 #: ../fish/guestfish-actions.pod:1604
9164 msgid "get-state"
9165 msgstr ""
9166
9167 #. type: verbatim
9168 #: ../fish/guestfish-actions.pod:1606
9169 #, no-wrap
9170 msgid ""
9171 " get-state\n"
9172 "\n"
9173 msgstr ""
9174
9175 #. type: textblock
9176 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9177 msgid ""
9178 "This returns the current state as an opaque integer.  This is only useful "
9179 "for printing debug and internal error messages."
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9184 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9185 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9186 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9187 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9188 msgid "For more information on states, see L<guestfs(3)>."
9189 msgstr ""
9190
9191 #. type: =head2
9192 #: ../fish/guestfish-actions.pod:1613
9193 msgid "get-trace"
9194 msgstr ""
9195
9196 #. type: verbatim
9197 #: ../fish/guestfish-actions.pod:1615
9198 #, no-wrap
9199 msgid ""
9200 " get-trace\n"
9201 "\n"
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9206 msgid "Return the command trace flag."
9207 msgstr ""
9208
9209 #. type: =head2
9210 #: ../fish/guestfish-actions.pod:1619
9211 msgid "get-umask"
9212 msgstr ""
9213
9214 #. type: verbatim
9215 #: ../fish/guestfish-actions.pod:1621
9216 #, no-wrap
9217 msgid ""
9218 " get-umask\n"
9219 "\n"
9220 msgstr ""
9221
9222 #. type: textblock
9223 #: ../fish/guestfish-actions.pod:1623
9224 msgid ""
9225 "Return the current umask.  By default the umask is C<022> unless it has been "
9226 "set by calling L</umask>."
9227 msgstr ""
9228
9229 #. type: =head2
9230 #: ../fish/guestfish-actions.pod:1626
9231 msgid "get-verbose"
9232 msgstr ""
9233
9234 #. type: verbatim
9235 #: ../fish/guestfish-actions.pod:1628
9236 #, no-wrap
9237 msgid ""
9238 " get-verbose\n"
9239 "\n"
9240 msgstr ""
9241
9242 #. type: textblock
9243 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9244 msgid "This returns the verbose messages flag."
9245 msgstr ""
9246
9247 #. type: =head2
9248 #: ../fish/guestfish-actions.pod:1632
9249 msgid "getcon"
9250 msgstr ""
9251
9252 #. type: verbatim
9253 #: ../fish/guestfish-actions.pod:1634
9254 #, no-wrap
9255 msgid ""
9256 " getcon\n"
9257 "\n"
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9262 msgid "This gets the SELinux security context of the daemon."
9263 msgstr ""
9264
9265 #. type: textblock
9266 #: ../fish/guestfish-actions.pod:1638
9267 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9268 msgstr ""
9269
9270 #. type: =head2
9271 #: ../fish/guestfish-actions.pod:1641
9272 msgid "getxattr"
9273 msgstr ""
9274
9275 #. type: verbatim
9276 #: ../fish/guestfish-actions.pod:1643
9277 #, no-wrap
9278 msgid ""
9279 " getxattr path name\n"
9280 "\n"
9281 msgstr ""
9282
9283 #. type: textblock
9284 #: ../fish/guestfish-actions.pod:1645
9285 msgid ""
9286 "Get a single extended attribute from file C<path> named C<name>.  This call "
9287 "follows symlinks.  If you want to lookup an extended attribute for the "
9288 "symlink itself, use L</lgetxattr>."
9289 msgstr ""
9290
9291 #. type: textblock
9292 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9293 msgid ""
9294 "Normally it is better to get all extended attributes from a file in one go "
9295 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9296 "buggy and do not provide a way to list out attributes.  For these "
9297 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9298 "attributes you want in advance and call this function."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9303 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9304 msgid ""
9305 "Extended attribute values are blobs of binary data.  If there is no extended "
9306 "attribute named C<name>, this returns an error."
9307 msgstr ""
9308
9309 #. type: textblock
9310 #: ../fish/guestfish-actions.pod:1659
9311 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9312 msgstr ""
9313
9314 #. type: =head2
9315 #: ../fish/guestfish-actions.pod:1661
9316 msgid "getxattrs"
9317 msgstr ""
9318
9319 #. type: verbatim
9320 #: ../fish/guestfish-actions.pod:1663
9321 #, no-wrap
9322 msgid ""
9323 " getxattrs path\n"
9324 "\n"
9325 msgstr ""
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9329 msgid ""
9330 "This call lists the extended attributes of the file or directory C<path>."
9331 msgstr ""
9332
9333 #. type: textblock
9334 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9335 msgid ""
9336 "At the system call level, this is a combination of the L<listxattr(2)> and "
9337 "L<getxattr(2)> calls."
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../fish/guestfish-actions.pod:1671
9342 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9343 msgstr ""
9344
9345 #. type: =head2
9346 #: ../fish/guestfish-actions.pod:1673
9347 msgid "glob-expand"
9348 msgstr ""
9349
9350 #. type: verbatim
9351 #: ../fish/guestfish-actions.pod:1675
9352 #, no-wrap
9353 msgid ""
9354 " glob-expand pattern\n"
9355 "\n"
9356 msgstr ""
9357
9358 #. type: textblock
9359 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9360 msgid ""
9361 "This command searches for all the pathnames matching C<pattern> according to "
9362 "the wildcard expansion rules used by the shell."
9363 msgstr ""
9364
9365 #. type: textblock
9366 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9367 msgid ""
9368 "If no paths match, then this returns an empty list (note: not an error)."
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9373 msgid ""
9374 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9375 "GLOB_BRACE>.  See that manual page for more details."
9376 msgstr ""
9377
9378 #. type: =head2
9379 #: ../fish/guestfish-actions.pod:1688
9380 msgid "grep"
9381 msgstr ""
9382
9383 #. type: verbatim
9384 #: ../fish/guestfish-actions.pod:1690
9385 #, no-wrap
9386 msgid ""
9387 " grep regex path\n"
9388 "\n"
9389 msgstr ""
9390
9391 #. type: textblock
9392 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9393 msgid "This calls the external C<grep> program and returns the matching lines."
9394 msgstr ""
9395
9396 #. type: =head2
9397 #: ../fish/guestfish-actions.pod:1698
9398 msgid "grepi"
9399 msgstr ""
9400
9401 #. type: verbatim
9402 #: ../fish/guestfish-actions.pod:1700
9403 #, no-wrap
9404 msgid ""
9405 " grepi regex path\n"
9406 "\n"
9407 msgstr ""
9408
9409 #. type: textblock
9410 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9411 msgid ""
9412 "This calls the external C<grep -i> program and returns the matching lines."
9413 msgstr ""
9414
9415 #. type: =head2
9416 #: ../fish/guestfish-actions.pod:1708
9417 msgid "grub-install"
9418 msgstr ""
9419
9420 #. type: verbatim
9421 #: ../fish/guestfish-actions.pod:1710
9422 #, no-wrap
9423 msgid ""
9424 " grub-install root device\n"
9425 "\n"
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9430 msgid ""
9431 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9432 "with the root directory being C<root>."
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9437 msgid ""
9438 "There is currently no way in the API to install grub2, which is used by most "
9439 "modern Linux guests.  It is possible to run the grub2 command from the "
9440 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9441 msgstr ""
9442
9443 #. type: textblock
9444 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9445 msgid ""
9446 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9447 "compatible with itself, so this only works in rather narrow circumstances.  "
9448 "Careful testing with each guest version is advisable."
9449 msgstr ""
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9453 msgid ""
9454 "If grub-install reports the error \"No suitable drive was found in the "
9455 "generated device map.\" it may be that you need to create a C</boot/grub/"
9456 "device.map> file first that contains the mapping between grub device names "
9457 "and Linux device names.  It is usually sufficient to create a file "
9458 "containing:"
9459 msgstr ""
9460
9461 #. type: verbatim
9462 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9463 #, no-wrap
9464 msgid ""
9465 " (hd0) /dev/vda\n"
9466 "\n"
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9471 msgid "replacing C</dev/vda> with the name of the installation device."
9472 msgstr ""
9473
9474 #. type: =head2
9475 #: ../fish/guestfish-actions.pod:1748
9476 msgid "head"
9477 msgstr ""
9478
9479 #. type: verbatim
9480 #: ../fish/guestfish-actions.pod:1750
9481 #, no-wrap
9482 msgid ""
9483 " head path\n"
9484 "\n"
9485 msgstr ""
9486
9487 #. type: textblock
9488 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9489 msgid ""
9490 "This command returns up to the first 10 lines of a file as a list of strings."
9491 msgstr ""
9492
9493 #. type: =head2
9494 #: ../fish/guestfish-actions.pod:1758
9495 msgid "head-n"
9496 msgstr ""
9497
9498 #. type: verbatim
9499 #: ../fish/guestfish-actions.pod:1760
9500 #, no-wrap
9501 msgid ""
9502 " head-n nrlines path\n"
9503 "\n"
9504 msgstr ""
9505
9506 #. type: textblock
9507 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9508 msgid ""
9509 "If the parameter C<nrlines> is a positive number, this returns the first "
9510 "C<nrlines> lines of the file C<path>."
9511 msgstr ""
9512
9513 #. type: textblock
9514 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9515 msgid ""
9516 "If the parameter C<nrlines> is a negative number, this returns lines from "
9517 "the file C<path>, excluding the last C<nrlines> lines."
9518 msgstr ""
9519
9520 #. type: textblock
9521 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4940
9522 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7609
9523 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9524 msgstr ""
9525
9526 #. type: =head2
9527 #: ../fish/guestfish-actions.pod:1773
9528 msgid "hexdump"
9529 msgstr ""
9530
9531 #. type: verbatim
9532 #: ../fish/guestfish-actions.pod:1775
9533 #, no-wrap
9534 msgid ""
9535 " hexdump path\n"
9536 "\n"
9537 msgstr ""
9538
9539 #. type: textblock
9540 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9541 msgid ""
9542 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9543 "readable, canonical hex dump of the file."
9544 msgstr ""
9545
9546 #. type: =head2
9547 #: ../fish/guestfish-actions.pod:1783
9548 msgid "initrd-cat"
9549 msgstr ""
9550
9551 #. type: verbatim
9552 #: ../fish/guestfish-actions.pod:1785
9553 #, no-wrap
9554 msgid ""
9555 " initrd-cat initrdpath filename\n"
9556 "\n"
9557 msgstr ""
9558
9559 #. type: textblock
9560 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9561 msgid ""
9562 "This command unpacks the file C<filename> from the initrd file called "
9563 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9564 "character."
9565 msgstr ""
9566
9567 #. type: textblock
9568 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9569 msgid ""
9570 "For example, in guestfish you could use the following command to examine the "
9571 "boot script (usually called C</init>)  contained in a Linux initrd or "
9572 "initramfs image:"
9573 msgstr ""
9574
9575 #. type: verbatim
9576 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9577 #, no-wrap
9578 msgid ""
9579 " initrd-cat /boot/initrd-<version>.img init\n"
9580 "\n"
9581 msgstr ""
9582
9583 #. type: textblock
9584 #: ../fish/guestfish-actions.pod:1797
9585 msgid "See also L</initrd-list>."
9586 msgstr ""
9587
9588 #. type: =head2
9589 #: ../fish/guestfish-actions.pod:1802
9590 msgid "initrd-list"
9591 msgstr ""
9592
9593 #. type: verbatim
9594 #: ../fish/guestfish-actions.pod:1804
9595 #, no-wrap
9596 msgid ""
9597 " initrd-list path\n"
9598 "\n"
9599 msgstr ""
9600
9601 #. type: textblock
9602 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9603 msgid "This command lists out files contained in an initrd."
9604 msgstr ""
9605
9606 #. type: textblock
9607 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9608 msgid ""
9609 "The files are listed without any initial C</> character.  The files are "
9610 "listed in the order they appear (not necessarily alphabetical).  Directory "
9611 "names are listed as separate items."
9612 msgstr ""
9613
9614 #. type: textblock
9615 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9616 msgid ""
9617 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9618 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9619 "files)."
9620 msgstr ""
9621
9622 #. type: =head2
9623 #: ../fish/guestfish-actions.pod:1816
9624 msgid "inotify-add-watch"
9625 msgstr ""
9626
9627 #. type: verbatim
9628 #: ../fish/guestfish-actions.pod:1818
9629 #, no-wrap
9630 msgid ""
9631 " inotify-add-watch path mask\n"
9632 "\n"
9633 msgstr ""
9634
9635 #. type: textblock
9636 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9637 msgid "Watch C<path> for the events listed in C<mask>."
9638 msgstr ""
9639
9640 #. type: textblock
9641 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9642 msgid ""
9643 "Note that if C<path> is a directory then events within that directory are "
9644 "watched, but this does I<not> happen recursively (in subdirectories)."
9645 msgstr ""
9646
9647 #. type: textblock
9648 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9649 msgid ""
9650 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9651 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9652 msgstr ""
9653
9654 #. type: =head2
9655 #: ../fish/guestfish-actions.pod:1830
9656 msgid "inotify-close"
9657 msgstr ""
9658
9659 #. type: verbatim
9660 #: ../fish/guestfish-actions.pod:1832
9661 #, no-wrap
9662 msgid ""
9663 " inotify-close\n"
9664 "\n"
9665 msgstr ""
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9669 msgid ""
9670 "This closes the inotify handle which was previously opened by inotify_init.  "
9671 "It removes all watches, throws away any pending events, and deallocates all "
9672 "resources."
9673 msgstr ""
9674
9675 #. type: =head2
9676 #: ../fish/guestfish-actions.pod:1838
9677 msgid "inotify-files"
9678 msgstr ""
9679
9680 #. type: verbatim
9681 #: ../fish/guestfish-actions.pod:1840
9682 #, no-wrap
9683 msgid ""
9684 " inotify-files\n"
9685 "\n"
9686 msgstr ""
9687
9688 #. type: textblock
9689 #: ../fish/guestfish-actions.pod:1842
9690 msgid ""
9691 "This function is a helpful wrapper around L</inotify-read> which just "
9692 "returns a list of pathnames of objects that were touched.  The returned "
9693 "pathnames are sorted and deduplicated."
9694 msgstr ""
9695
9696 #. type: =head2
9697 #: ../fish/guestfish-actions.pod:1846
9698 msgid "inotify-init"
9699 msgstr ""
9700
9701 #. type: verbatim
9702 #: ../fish/guestfish-actions.pod:1848
9703 #, no-wrap
9704 msgid ""
9705 " inotify-init maxevents\n"
9706 "\n"
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9711 msgid ""
9712 "This command creates a new inotify handle.  The inotify subsystem can be "
9713 "used to notify events which happen to objects in the guest filesystem."
9714 msgstr ""
9715
9716 #. type: textblock
9717 #: ../fish/guestfish-actions.pod:1854
9718 msgid ""
9719 "C<maxevents> is the maximum number of events which will be queued up between "
9720 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9721 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9722 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9723 "but records the fact that it threw them away by setting a flag "
9724 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:1864
9729 msgid ""
9730 "Before any events are generated, you have to add some watches to the "
9731 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9732 "L</inotify-watch-all>."
9733 msgstr ""
9734
9735 #. type: textblock
9736 #: ../fish/guestfish-actions.pod:1870
9737 msgid ""
9738 "Queued up events should be read periodically by calling L</inotify-read> (or "
9739 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9740 "If you don't read the events out often enough then you risk the internal "
9741 "queue overflowing."
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../fish/guestfish-actions.pod:1877
9746 msgid ""
9747 "The handle should be closed after use by calling L</inotify-close>.  This "
9748 "also removes any watches automatically."
9749 msgstr ""
9750
9751 #. type: textblock
9752 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9753 msgid ""
9754 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9755 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9756 "that there is one global inotify handle per libguestfs instance."
9757 msgstr ""
9758
9759 #. type: =head2
9760 #: ../fish/guestfish-actions.pod:1886
9761 msgid "inotify-read"
9762 msgstr ""
9763
9764 #. type: verbatim
9765 #: ../fish/guestfish-actions.pod:1888
9766 #, no-wrap
9767 msgid ""
9768 " inotify-read\n"
9769 "\n"
9770 msgstr ""
9771
9772 #. type: textblock
9773 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9774 msgid ""
9775 "Return the complete queue of events that have happened since the previous "
9776 "read call."
9777 msgstr ""
9778
9779 #. type: textblock
9780 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
9781 msgid "If no events have happened, this returns an empty list."
9782 msgstr ""
9783
9784 #. type: textblock
9785 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
9786 msgid ""
9787 "I<Note>: In order to make sure that all events have been read, you must call "
9788 "this function repeatedly until it returns an empty list.  The reason is that "
9789 "the call will read events up to the maximum appliance-to-host message size "
9790 "and leave remaining events in the queue."
9791 msgstr ""
9792
9793 #. type: =head2
9794 #: ../fish/guestfish-actions.pod:1901
9795 msgid "inotify-rm-watch"
9796 msgstr ""
9797
9798 #. type: verbatim
9799 #: ../fish/guestfish-actions.pod:1903
9800 #, no-wrap
9801 msgid ""
9802 " inotify-rm-watch wd\n"
9803 "\n"
9804 msgstr ""
9805
9806 #. type: textblock
9807 #: ../fish/guestfish-actions.pod:1905
9808 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9809 msgstr ""
9810
9811 #. type: =head2
9812 #: ../fish/guestfish-actions.pod:1908
9813 msgid "inspect-get-arch"
9814 msgstr ""
9815
9816 #. type: verbatim
9817 #: ../fish/guestfish-actions.pod:1910
9818 #, no-wrap
9819 msgid ""
9820 " inspect-get-arch root\n"
9821 "\n"
9822 msgstr ""
9823
9824 #. type: textblock
9825 #: ../fish/guestfish-actions.pod:1912
9826 msgid ""
9827 "This returns the architecture of the inspected operating system.  The "
9828 "possible return values are listed under L</file-architecture>."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
9833 msgid ""
9834 "If the architecture could not be determined, then the string C<unknown> is "
9835 "returned."
9836 msgstr ""
9837
9838 #. type: textblock
9839 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
9840 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
9841 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
9842 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
9843 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
9844 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
9845 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
9846 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
9847 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
9848 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
9849 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
9850 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
9851 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
9852 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
9853 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
9854 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
9855 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
9856 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9857 msgstr ""
9858
9859 #. type: =head2
9860 #: ../fish/guestfish-actions.pod:1921
9861 msgid "inspect-get-distro"
9862 msgstr ""
9863
9864 #. type: verbatim
9865 #: ../fish/guestfish-actions.pod:1923
9866 #, no-wrap
9867 msgid ""
9868 " inspect-get-distro root\n"
9869 "\n"
9870 msgstr ""
9871
9872 #. type: textblock
9873 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
9874 msgid ""
9875 "This returns the distro (distribution) of the inspected operating system."
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
9880 msgid "Currently defined distros are:"
9881 msgstr ""
9882
9883 #. type: =item
9884 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
9885 msgid "\"archlinux\""
9886 msgstr ""
9887
9888 #. type: textblock
9889 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
9890 msgid "Arch Linux."
9891 msgstr ""
9892
9893 #. type: =item
9894 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
9895 msgid "\"centos\""
9896 msgstr ""
9897
9898 #. type: textblock
9899 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
9900 msgid "CentOS."
9901 msgstr ""
9902
9903 #. type: =item
9904 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
9905 msgid "\"debian\""
9906 msgstr ""
9907
9908 #. type: textblock
9909 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
9910 msgid "Debian."
9911 msgstr ""
9912
9913 #. type: =item
9914 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
9915 msgid "\"fedora\""
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
9920 msgid "Fedora."
9921 msgstr ""
9922
9923 #. type: =item
9924 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
9925 msgid "\"gentoo\""
9926 msgstr ""
9927
9928 #. type: textblock
9929 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
9930 msgid "Gentoo."
9931 msgstr ""
9932
9933 #. type: =item
9934 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
9935 msgid "\"linuxmint\""
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
9940 msgid "Linux Mint."
9941 msgstr ""
9942
9943 #. type: =item
9944 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
9945 msgid "\"mageia\""
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
9950 msgid "Mageia."
9951 msgstr ""
9952
9953 #. type: =item
9954 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
9955 msgid "\"mandriva\""
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
9960 msgid "Mandriva."
9961 msgstr ""
9962
9963 #. type: =item
9964 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
9965 msgid "\"meego\""
9966 msgstr ""
9967
9968 #. type: textblock
9969 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
9970 msgid "MeeGo."
9971 msgstr ""
9972
9973 #. type: =item
9974 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
9975 msgid "\"opensuse\""
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
9980 msgid "OpenSUSE."
9981 msgstr ""
9982
9983 #. type: =item
9984 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
9985 msgid "\"pardus\""
9986 msgstr ""
9987
9988 #. type: textblock
9989 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
9990 msgid "Pardus."
9991 msgstr ""
9992
9993 #. type: =item
9994 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
9995 msgid "\"redhat-based\""
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10000 msgid "Some Red Hat-derived distro."
10001 msgstr ""
10002
10003 #. type: =item
10004 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10005 msgid "\"rhel\""
10006 msgstr ""
10007
10008 #. type: textblock
10009 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10010 msgid "Red Hat Enterprise Linux."
10011 msgstr ""
10012
10013 #. type: =item
10014 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10015 msgid "\"scientificlinux\""
10016 msgstr ""
10017
10018 #. type: textblock
10019 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10020 msgid "Scientific Linux."
10021 msgstr ""
10022
10023 #. type: =item
10024 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10025 msgid "\"slackware\""
10026 msgstr ""
10027
10028 #. type: textblock
10029 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10030 msgid "Slackware."
10031 msgstr ""
10032
10033 #. type: =item
10034 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10035 msgid "\"ttylinux\""
10036 msgstr ""
10037
10038 #. type: textblock
10039 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10040 msgid "ttylinux."
10041 msgstr ""
10042
10043 #. type: =item
10044 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10045 msgid "\"ubuntu\""
10046 msgstr ""
10047
10048 #. type: textblock
10049 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10050 msgid "Ubuntu."
10051 msgstr ""
10052
10053 #. type: =item
10054 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10055 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10056 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10057 msgid "\"unknown\""
10058 msgstr ""
10059
10060 #. type: textblock
10061 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10062 msgid "The distro could not be determined."
10063 msgstr ""
10064
10065 #. type: =item
10066 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10067 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10068 msgid "\"windows\""
10069 msgstr ""
10070
10071 #. type: textblock
10072 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10073 msgid ""
10074 "Windows does not have distributions.  This string is returned if the OS type "
10075 "is Windows."
10076 msgstr ""
10077
10078 #. type: textblock
10079 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10080 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10081 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10082 msgid ""
10083 "Future versions of libguestfs may return other strings here.  The caller "
10084 "should be prepared to handle any string."
10085 msgstr ""
10086
10087 #. type: =head2
10088 #: ../fish/guestfish-actions.pod:2016
10089 msgid "inspect-get-drive-mappings"
10090 msgstr ""
10091
10092 #. type: verbatim
10093 #: ../fish/guestfish-actions.pod:2018
10094 #, no-wrap
10095 msgid ""
10096 " inspect-get-drive-mappings root\n"
10097 "\n"
10098 msgstr ""
10099
10100 #. type: textblock
10101 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10102 msgid ""
10103 "This call is useful for Windows which uses a primitive system of assigning "
10104 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10105 "Windows Registry to find out how disks/partitions are mapped to drive "
10106 "letters, and returns a hash table as in the example below:"
10107 msgstr ""
10108
10109 #. type: verbatim
10110 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10111 #, no-wrap
10112 msgid ""
10113 " C      =>     /dev/vda2\n"
10114 " E      =>     /dev/vdb1\n"
10115 " F      =>     /dev/vdc1\n"
10116 "\n"
10117 msgstr ""
10118
10119 #. type: textblock
10120 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10121 msgid ""
10122 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10123 "and just contains the drive letter, without the customary colon separator "
10124 "character."
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10129 msgid ""
10130 "In future we may support other operating systems that also used drive "
10131 "letters, but the keys for those might not be case insensitive and might be "
10132 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10133 "C<h1> etc."
10134 msgstr ""
10135
10136 #. type: textblock
10137 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10138 msgid ""
10139 "For Windows guests, currently only hard drive mappings are returned.  "
10140 "Removable disks (eg. DVD-ROMs) are ignored."
10141 msgstr ""
10142
10143 #. type: textblock
10144 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10145 msgid ""
10146 "For guests that do not use drive mappings, or if the drive mappings could "
10147 "not be determined, this returns an empty hash table."
10148 msgstr ""
10149
10150 #. type: textblock
10151 #: ../fish/guestfish-actions.pod:2045
10152 msgid ""
10153 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10154 "get-mountpoints>, L</inspect-get-filesystems>."
10155 msgstr ""
10156
10157 #. type: =head2
10158 #: ../fish/guestfish-actions.pod:2049
10159 msgid "inspect-get-filesystems"
10160 msgstr ""
10161
10162 #. type: verbatim
10163 #: ../fish/guestfish-actions.pod:2051
10164 #, no-wrap
10165 msgid ""
10166 " inspect-get-filesystems root\n"
10167 "\n"
10168 msgstr ""
10169
10170 #. type: textblock
10171 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10172 msgid ""
10173 "This returns a list of all the filesystems that we think are associated with "
10174 "this operating system.  This includes the root filesystem, other ordinary "
10175 "filesystems, and non-mounted devices like swap partitions."
10176 msgstr ""
10177
10178 #. type: textblock
10179 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10180 msgid ""
10181 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10182 "to be shared between operating systems."
10183 msgstr ""
10184
10185 #. type: textblock
10186 #: ../fish/guestfish-actions.pod:2061
10187 msgid ""
10188 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10189 "get-mountpoints>."
10190 msgstr ""
10191
10192 #. type: =head2
10193 #: ../fish/guestfish-actions.pod:2064
10194 msgid "inspect-get-format"
10195 msgstr ""
10196
10197 #. type: verbatim
10198 #: ../fish/guestfish-actions.pod:2066
10199 #, no-wrap
10200 msgid ""
10201 " inspect-get-format root\n"
10202 "\n"
10203 msgstr ""
10204
10205 #. type: textblock
10206 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10207 msgid ""
10208 "This returns the format of the inspected operating system.  You can use it "
10209 "to detect install images, live CDs and similar."
10210 msgstr ""
10211
10212 #. type: textblock
10213 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10214 msgid "Currently defined formats are:"
10215 msgstr ""
10216
10217 #. type: =item
10218 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10219 msgid "\"installed\""
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10224 msgid "This is an installed operating system."
10225 msgstr ""
10226
10227 #. type: =item
10228 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10229 msgid "\"installer\""
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10234 msgid ""
10235 "The disk image being inspected is not an installed operating system, but a "
10236 "I<bootable> install disk, live CD, or similar."
10237 msgstr ""
10238
10239 #. type: textblock
10240 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10241 msgid "The format of this disk image is not known."
10242 msgstr ""
10243
10244 #. type: =head2
10245 #: ../fish/guestfish-actions.pod:2095
10246 msgid "inspect-get-hostname"
10247 msgstr ""
10248
10249 #. type: verbatim
10250 #: ../fish/guestfish-actions.pod:2097
10251 #, no-wrap
10252 msgid ""
10253 " inspect-get-hostname root\n"
10254 "\n"
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10259 msgid ""
10260 "This function returns the hostname of the operating system as found by "
10261 "inspection of the guest's configuration files."
10262 msgstr ""
10263
10264 #. type: textblock
10265 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10266 msgid ""
10267 "If the hostname could not be determined, then the string C<unknown> is "
10268 "returned."
10269 msgstr ""
10270
10271 #. type: =head2
10272 #: ../fish/guestfish-actions.pod:2107
10273 msgid "inspect-get-icon"
10274 msgstr ""
10275
10276 #. type: verbatim
10277 #: ../fish/guestfish-actions.pod:2109
10278 #, no-wrap
10279 msgid ""
10280 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10281 "\n"
10282 msgstr ""
10283
10284 #. type: textblock
10285 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10286 msgid ""
10287 "This function returns an icon corresponding to the inspected operating "
10288 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10289 "to PNG if necessary)."
10290 msgstr ""
10291
10292 #. type: textblock
10293 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10294 msgid ""
10295 "If it was not possible to get an icon this function returns a zero-length "
10296 "(non-NULL) buffer.  I<Callers must check for this case>."
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10301 msgid ""
10302 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10303 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10304 "this file will be returned.  You can disable favicons by passing the "
10305 "optional C<favicon> boolean as false (default is true)."
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10310 msgid ""
10311 "If finding the favicon fails, then we look in other places in the guest for "
10312 "a suitable icon."
10313 msgstr ""
10314
10315 #. type: textblock
10316 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10317 msgid ""
10318 "If the optional C<highquality> boolean is true then only high quality icons "
10319 "are returned, which means only icons of high resolution with an alpha "
10320 "channel.  The default (false) is to return any icon we can, even if it is of "
10321 "substandard quality."
10322 msgstr ""
10323
10324 #. type: textblock
10325 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10326 msgid ""
10327 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10328 "before you call this, since it needs to read information from the guest "
10329 "filesystem during the call."
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10334 msgid ""
10335 "B<Security:> The icon data comes from the untrusted guest, and should be "
10336 "treated with caution.  PNG files have been known to contain exploits.  "
10337 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10338 "trying to process or display the icon."
10339 msgstr ""
10340
10341 #. type: textblock
10342 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10343 msgid ""
10344 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10345 "tries to return the largest, highest quality icon available.  The "
10346 "application must scale the icon to the required size."
10347 msgstr ""
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10351 msgid ""
10352 "Extracting icons from Windows guests requires the external C<wrestool> "
10353 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10354 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10355 "installed separately."
10356 msgstr ""
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10360 msgid ""
10361 "Operating system icons are usually trademarks.  Seek legal advice before "
10362 "using trademarks in applications."
10363 msgstr ""
10364
10365 #. type: =head2
10366 #: ../fish/guestfish-actions.pod:2173
10367 msgid "inspect-get-major-version"
10368 msgstr ""
10369
10370 #. type: verbatim
10371 #: ../fish/guestfish-actions.pod:2175
10372 #, no-wrap
10373 msgid ""
10374 " inspect-get-major-version root\n"
10375 "\n"
10376 msgstr ""
10377
10378 #. type: textblock
10379 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10380 msgid ""
10381 "This returns the major version number of the inspected operating system."
10382 msgstr ""
10383
10384 #. type: textblock
10385 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10386 msgid ""
10387 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10388 "popular public names used by the operating system.  Notably the operating "
10389 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10390 "1).  You can find out the real versions corresponding to releases of Windows "
10391 "by consulting Wikipedia or MSDN."
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10396 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10397 msgid "If the version could not be determined, then C<0> is returned."
10398 msgstr ""
10399
10400 #. type: =head2
10401 #: ../fish/guestfish-actions.pod:2191
10402 msgid "inspect-get-minor-version"
10403 msgstr ""
10404
10405 #. type: verbatim
10406 #: ../fish/guestfish-actions.pod:2193
10407 #, no-wrap
10408 msgid ""
10409 " inspect-get-minor-version root\n"
10410 "\n"
10411 msgstr ""
10412
10413 #. type: textblock
10414 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10415 msgid ""
10416 "This returns the minor version number of the inspected operating system."
10417 msgstr ""
10418
10419 #. type: textblock
10420 #: ../fish/guestfish-actions.pod:2200
10421 msgid ""
10422 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10423 "get-major-version>."
10424 msgstr ""
10425
10426 #. type: =head2
10427 #: ../fish/guestfish-actions.pod:2203
10428 msgid "inspect-get-mountpoints"
10429 msgstr ""
10430
10431 #. type: verbatim
10432 #: ../fish/guestfish-actions.pod:2205
10433 #, no-wrap
10434 msgid ""
10435 " inspect-get-mountpoints root\n"
10436 "\n"
10437 msgstr ""
10438
10439 #. type: textblock
10440 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10441 msgid ""
10442 "This returns a hash of where we think the filesystems associated with this "
10443 "operating system should be mounted.  Callers should note that this is at "
10444 "best an educated guess made by reading configuration files such as C</etc/"
10445 "fstab>.  I<In particular note> that this may return filesystems which are "
10446 "non-existent or not mountable and callers should be prepared to handle or "
10447 "ignore failures if they try to mount them."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10452 msgid ""
10453 "Each element in the returned hashtable has a key which is the path of the "
10454 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10455 "mounted there (eg. C</dev/sda1>)."
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10460 msgid ""
10461 "Non-mounted devices such as swap devices are I<not> returned in this list."
10462 msgstr ""
10463
10464 #. type: textblock
10465 #: ../fish/guestfish-actions.pod:2224
10466 msgid ""
10467 "For operating systems like Windows which still use drive letters, this call "
10468 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10469 "information about the mapping of drive letters to partitions, see L</inspect-"
10470 "get-drive-mappings>."
10471 msgstr ""
10472
10473 #. type: textblock
10474 #: ../fish/guestfish-actions.pod:2230
10475 msgid ""
10476 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10477 "get-filesystems>."
10478 msgstr ""
10479
10480 #. type: =head2
10481 #: ../fish/guestfish-actions.pod:2233
10482 msgid "inspect-get-package-format"
10483 msgstr ""
10484
10485 #. type: verbatim
10486 #: ../fish/guestfish-actions.pod:2235
10487 #, no-wrap
10488 msgid ""
10489 " inspect-get-package-format root\n"
10490 "\n"
10491 msgstr ""
10492
10493 #. type: textblock
10494 #: ../fish/guestfish-actions.pod:2237
10495 msgid ""
10496 "This function and L</inspect-get-package-management> return the package "
10497 "format and package management tool used by the inspected operating system.  "
10498 "For example for Fedora these functions would return C<rpm> (package format) "
10499 "and C<yum> (package management)."
10500 msgstr ""
10501
10502 #. type: textblock
10503 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10504 msgid ""
10505 "This returns the string C<unknown> if we could not determine the package "
10506 "format I<or> if the operating system does not have a real packaging system "
10507 "(eg. Windows)."
10508 msgstr ""
10509
10510 #. type: textblock
10511 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10512 msgid ""
10513 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10514 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10515 msgstr ""
10516
10517 #. type: =head2
10518 #: ../fish/guestfish-actions.pod:2253
10519 msgid "inspect-get-package-management"
10520 msgstr ""
10521
10522 #. type: verbatim
10523 #: ../fish/guestfish-actions.pod:2255
10524 #, no-wrap
10525 msgid ""
10526 " inspect-get-package-management root\n"
10527 "\n"
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:2257
10532 msgid ""
10533 "L</inspect-get-package-format> and this function return the package format "
10534 "and package management tool used by the inspected operating system.  For "
10535 "example for Fedora these functions would return C<rpm> (package format) and "
10536 "C<yum> (package management)."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10541 msgid ""
10542 "This returns the string C<unknown> if we could not determine the package "
10543 "management tool I<or> if the operating system does not have a real packaging "
10544 "system (eg. Windows)."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10549 msgid ""
10550 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10551 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10552 "versions of libguestfs may return other strings."
10553 msgstr ""
10554
10555 #. type: =head2
10556 #: ../fish/guestfish-actions.pod:2274
10557 msgid "inspect-get-product-name"
10558 msgstr ""
10559
10560 #. type: verbatim
10561 #: ../fish/guestfish-actions.pod:2276
10562 #, no-wrap
10563 msgid ""
10564 " inspect-get-product-name root\n"
10565 "\n"
10566 msgstr ""
10567
10568 #. type: textblock
10569 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10570 msgid ""
10571 "This returns the product name of the inspected operating system.  The "
10572 "product name is generally some freeform string which can be displayed to the "
10573 "user, but should not be parsed by programs."
10574 msgstr ""
10575
10576 #. type: textblock
10577 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10578 msgid ""
10579 "If the product name could not be determined, then the string C<unknown> is "
10580 "returned."
10581 msgstr ""
10582
10583 #. type: =head2
10584 #: ../fish/guestfish-actions.pod:2288
10585 msgid "inspect-get-product-variant"
10586 msgstr ""
10587
10588 #. type: verbatim
10589 #: ../fish/guestfish-actions.pod:2290
10590 #, no-wrap
10591 msgid ""
10592 " inspect-get-product-variant root\n"
10593 "\n"
10594 msgstr ""
10595
10596 #. type: textblock
10597 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10598 msgid "This returns the product variant of the inspected operating system."
10599 msgstr ""
10600
10601 #. type: textblock
10602 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10603 msgid ""
10604 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10605 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10606 "is usually a string such as C<Client> or C<Server> (other values are "
10607 "possible).  This can be used to distinguish consumer and enterprise versions "
10608 "of Windows that have the same version number (for example, Windows 7 and "
10609 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10610 "the latter is C<Server>)."
10611 msgstr ""
10612
10613 #. type: textblock
10614 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10615 msgid ""
10616 "For enterprise Linux guests, in future we intend this to return the product "
10617 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10618 "implemented at present."
10619 msgstr ""
10620
10621 #. type: textblock
10622 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10623 msgid ""
10624 "If the product variant could not be determined, then the string C<unknown> "
10625 "is returned."
10626 msgstr ""
10627
10628 #. type: textblock
10629 #: ../fish/guestfish-actions.pod:2311
10630 msgid ""
10631 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10632 "get-product-name>, L</inspect-get-major-version>."
10633 msgstr ""
10634
10635 #. type: =head2
10636 #: ../fish/guestfish-actions.pod:2315
10637 msgid "inspect-get-roots"
10638 msgstr ""
10639
10640 #. type: verbatim
10641 #: ../fish/guestfish-actions.pod:2317
10642 #, no-wrap
10643 msgid ""
10644 " inspect-get-roots\n"
10645 "\n"
10646 msgstr ""
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:2319
10650 msgid ""
10651 "This function is a convenient way to get the list of root devices, as "
10652 "returned from a previous call to L</inspect-os>, but without redoing the "
10653 "whole inspection process."
10654 msgstr ""
10655
10656 #. type: textblock
10657 #: ../fish/guestfish-actions.pod:2323
10658 msgid ""
10659 "This returns an empty list if either no root devices were found or the "
10660 "caller has not called L</inspect-os>."
10661 msgstr ""
10662
10663 #. type: =head2
10664 #: ../fish/guestfish-actions.pod:2328
10665 msgid "inspect-get-type"
10666 msgstr ""
10667
10668 #. type: verbatim
10669 #: ../fish/guestfish-actions.pod:2330
10670 #, no-wrap
10671 msgid ""
10672 " inspect-get-type root\n"
10673 "\n"
10674 msgstr ""
10675
10676 #. type: textblock
10677 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10678 msgid ""
10679 "This returns the type of the inspected operating system.  Currently defined "
10680 "types are:"
10681 msgstr ""
10682
10683 #. type: =item
10684 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10685 msgid "\"linux\""
10686 msgstr ""
10687
10688 #. type: textblock
10689 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10690 msgid "Any Linux-based operating system."
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10695 msgid "Any Microsoft Windows operating system."
10696 msgstr ""
10697
10698 #. type: =item
10699 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10700 msgid "\"freebsd\""
10701 msgstr ""
10702
10703 #. type: textblock
10704 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10705 msgid "FreeBSD."
10706 msgstr ""
10707
10708 #. type: =item
10709 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10710 msgid "\"netbsd\""
10711 msgstr ""
10712
10713 #. type: textblock
10714 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10715 msgid "NetBSD."
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10720 msgid "The operating system type could not be determined."
10721 msgstr ""
10722
10723 #. type: =head2
10724 #: ../fish/guestfish-actions.pod:2364
10725 msgid "inspect-get-windows-current-control-set"
10726 msgstr ""
10727
10728 #. type: verbatim
10729 #: ../fish/guestfish-actions.pod:2366
10730 #, no-wrap
10731 msgid ""
10732 " inspect-get-windows-current-control-set root\n"
10733 "\n"
10734 msgstr ""
10735
10736 #. type: textblock
10737 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10738 msgid ""
10739 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10740 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10741 msgstr ""
10742
10743 #. type: textblock
10744 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10745 msgid ""
10746 "This call assumes that the guest is Windows and that the Registry could be "
10747 "examined by inspection.  If this is not the case then an error is returned."
10748 msgstr ""
10749
10750 #. type: =head2
10751 #: ../fish/guestfish-actions.pod:2377
10752 msgid "inspect-get-windows-systemroot"
10753 msgstr ""
10754
10755 #. type: verbatim
10756 #: ../fish/guestfish-actions.pod:2379
10757 #, no-wrap
10758 msgid ""
10759 " inspect-get-windows-systemroot root\n"
10760 "\n"
10761 msgstr ""
10762
10763 #. type: textblock
10764 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
10765 msgid ""
10766 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10767 "is a directory path such as C</WINDOWS>."
10768 msgstr ""
10769
10770 #. type: textblock
10771 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
10772 msgid ""
10773 "This call assumes that the guest is Windows and that the systemroot could be "
10774 "determined by inspection.  If this is not the case then an error is returned."
10775 msgstr ""
10776
10777 #. type: =head2
10778 #: ../fish/guestfish-actions.pod:2390
10779 msgid "inspect-is-live"
10780 msgstr ""
10781
10782 #. type: verbatim
10783 #: ../fish/guestfish-actions.pod:2392
10784 #, no-wrap
10785 msgid ""
10786 " inspect-is-live root\n"
10787 "\n"
10788 msgstr ""
10789
10790 #. type: textblock
10791 #: ../fish/guestfish-actions.pod:2394
10792 msgid ""
10793 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10794 "then this returns true if a live image was detected on the disk."
10795 msgstr ""
10796
10797 #. type: =head2
10798 #: ../fish/guestfish-actions.pod:2400
10799 msgid "inspect-is-multipart"
10800 msgstr ""
10801
10802 #. type: verbatim
10803 #: ../fish/guestfish-actions.pod:2402
10804 #, no-wrap
10805 msgid ""
10806 " inspect-is-multipart root\n"
10807 "\n"
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2404
10812 msgid ""
10813 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10814 "then this returns true if the disk is part of a set."
10815 msgstr ""
10816
10817 #. type: =head2
10818 #: ../fish/guestfish-actions.pod:2410
10819 msgid "inspect-is-netinst"
10820 msgstr ""
10821
10822 #. type: verbatim
10823 #: ../fish/guestfish-actions.pod:2412
10824 #, no-wrap
10825 msgid ""
10826 " inspect-is-netinst root\n"
10827 "\n"
10828 msgstr ""
10829
10830 #. type: textblock
10831 #: ../fish/guestfish-actions.pod:2414
10832 msgid ""
10833 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10834 "then this returns true if the disk is a network installer, ie. not a self-"
10835 "contained install CD but one which is likely to require network access to "
10836 "complete the install."
10837 msgstr ""
10838
10839 #. type: =head2
10840 #: ../fish/guestfish-actions.pod:2422
10841 msgid "inspect-list-applications"
10842 msgstr ""
10843
10844 #. type: verbatim
10845 #: ../fish/guestfish-actions.pod:2424
10846 #, no-wrap
10847 msgid ""
10848 " inspect-list-applications root\n"
10849 "\n"
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
10854 msgid "Return the list of applications installed in the operating system."
10855 msgstr ""
10856
10857 #. type: textblock
10858 #: ../fish/guestfish-actions.pod:2428
10859 msgid ""
10860 "I<Note:> This call works differently from other parts of the inspection "
10861 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10862 "then mount up the disks, before calling this.  Listing applications is a "
10863 "significantly more difficult operation which requires access to the full "
10864 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10865 "are just returning data cached in the libguestfs handle, this call actually "
10866 "reads parts of the mounted filesystems during the call."
10867 msgstr ""
10868
10869 #. type: textblock
10870 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
10871 msgid ""
10872 "This returns an empty list if the inspection code was not able to determine "
10873 "the list of applications."
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
10878 msgid "The application structure contains the following fields:"
10879 msgstr ""
10880
10881 #. type: =item
10882 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
10883 msgid "C<app_name>"
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
10888 msgid ""
10889 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10890 "guests, this is the package name."
10891 msgstr ""
10892
10893 #. type: =item
10894 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
10895 msgid "C<app_display_name>"
10896 msgstr ""
10897
10898 #. type: textblock
10899 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
10900 msgid ""
10901 "The display name of the application, sometimes localized to the install "
10902 "language of the guest operating system."
10903 msgstr ""
10904
10905 #. type: textblock
10906 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
10907 msgid ""
10908 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10909 "to display something can use C<app_name> instead."
10910 msgstr ""
10911
10912 #. type: =item
10913 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
10914 msgid "C<app_epoch>"
10915 msgstr ""
10916
10917 #. type: textblock
10918 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
10919 msgid ""
10920 "For package managers which use epochs, this contains the epoch of the "
10921 "package (an integer).  If unavailable, this is returned as C<0>."
10922 msgstr ""
10923
10924 #. type: =item
10925 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
10926 msgid "C<app_version>"
10927 msgstr ""
10928
10929 #. type: textblock
10930 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
10931 msgid ""
10932 "The version string of the application or package.  If unavailable this is "
10933 "returned as an empty string C<\"\">."
10934 msgstr ""
10935
10936 #. type: =item
10937 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
10938 msgid "C<app_release>"
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
10943 msgid ""
10944 "The release string of the application or package, for package managers that "
10945 "use this.  If unavailable this is returned as an empty string C<\"\">."
10946 msgstr ""
10947
10948 #. type: =item
10949 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
10950 msgid "C<app_install_path>"
10951 msgstr ""
10952
10953 #. type: textblock
10954 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
10955 msgid ""
10956 "The installation path of the application (on operating systems such as "
10957 "Windows which use installation paths).  This path is in the format used by "
10958 "the guest operating system, it is not a libguestfs path."
10959 msgstr ""
10960
10961 #. type: textblock
10962 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
10963 msgid "If unavailable this is returned as an empty string C<\"\">."
10964 msgstr ""
10965
10966 #. type: =item
10967 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
10968 msgid "C<app_trans_path>"
10969 msgstr ""
10970
10971 #. type: textblock
10972 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
10973 msgid ""
10974 "The install path translated into a libguestfs path.  If unavailable this is "
10975 "returned as an empty string C<\"\">."
10976 msgstr ""
10977
10978 #. type: =item
10979 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
10980 msgid "C<app_publisher>"
10981 msgstr ""
10982
10983 #. type: textblock
10984 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
10985 msgid ""
10986 "The name of the publisher of the application, for package managers that use "
10987 "this.  If unavailable this is returned as an empty string C<\"\">."
10988 msgstr ""
10989
10990 #. type: =item
10991 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
10992 msgid "C<app_url>"
10993 msgstr ""
10994
10995 #. type: textblock
10996 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
10997 msgid ""
10998 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10999 "returned as an empty string C<\"\">."
11000 msgstr ""
11001
11002 #. type: =item
11003 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11004 msgid "C<app_source_package>"
11005 msgstr ""
11006
11007 #. type: textblock
11008 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11009 msgid ""
11010 "For packaging systems which support this, the name of the source package.  "
11011 "If unavailable this is returned as an empty string C<\"\">."
11012 msgstr ""
11013
11014 #. type: =item
11015 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11016 msgid "C<app_summary>"
11017 msgstr ""
11018
11019 #. type: textblock
11020 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11021 msgid ""
11022 "A short (usually one line) description of the application or package.  If "
11023 "unavailable this is returned as an empty string C<\"\">."
11024 msgstr ""
11025
11026 #. type: =item
11027 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11028 msgid "C<app_description>"
11029 msgstr ""
11030
11031 #. type: textblock
11032 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11033 msgid ""
11034 "A longer description of the application or package.  If unavailable this is "
11035 "returned as an empty string C<\"\">."
11036 msgstr ""
11037
11038 #. type: =head2
11039 #: ../fish/guestfish-actions.pod:2518
11040 msgid "inspect-os"
11041 msgstr ""
11042
11043 #. type: verbatim
11044 #: ../fish/guestfish-actions.pod:2520
11045 #, no-wrap
11046 msgid ""
11047 " inspect-os\n"
11048 "\n"
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11053 msgid ""
11054 "This function uses other libguestfs functions and certain heuristics to "
11055 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11056 "for operating systems."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11061 msgid "The list returned is empty if no operating systems were found."
11062 msgstr ""
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11066 msgid ""
11067 "If one operating system was found, then this returns a list with a single "
11068 "element, which is the name of the root filesystem of this operating system.  "
11069 "It is also possible for this function to return a list containing more than "
11070 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11071 "element being the root filesystem of one of the operating systems."
11072 msgstr ""
11073
11074 #. type: textblock
11075 #: ../fish/guestfish-actions.pod:2535
11076 msgid ""
11077 "You can pass the root string(s) returned to other L</inspect-get-*> "
11078 "functions in order to query further information about each operating system, "
11079 "such as the name and version."
11080 msgstr ""
11081
11082 #. type: textblock
11083 #: ../fish/guestfish-actions.pod:2540
11084 msgid ""
11085 "This function uses other libguestfs features such as L</mount-ro> and L</"
11086 "umount-all> in order to mount and unmount filesystems and look at the "
11087 "contents.  This should be called with no disks currently mounted.  The "
11088 "function may also use Augeas, so any existing Augeas handle will be closed."
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11093 msgid ""
11094 "This function cannot decrypt encrypted disks.  The caller must do that first "
11095 "(supplying the necessary keys) if the disk is encrypted."
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11100 #: ../fish/guestfish-actions.pod:2815
11101 msgid "See also L</list-filesystems>."
11102 msgstr ""
11103
11104 #. type: =head2
11105 #: ../fish/guestfish-actions.pod:2554
11106 msgid "is-blockdev"
11107 msgstr ""
11108
11109 #. type: verbatim
11110 #: ../fish/guestfish-actions.pod:2556
11111 #, no-wrap
11112 msgid ""
11113 " is-blockdev path\n"
11114 "\n"
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11119 msgid ""
11120 "This returns C<true> if and only if there is a block device with the given "
11121 "C<path> name."
11122 msgstr ""
11123
11124 #. type: textblock
11125 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11126 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11127 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11128 #: ../fish/guestfish-actions.pod:2660
11129 msgid "See also L</stat>."
11130 msgstr ""
11131
11132 #. type: =head2
11133 #: ../fish/guestfish-actions.pod:2563
11134 msgid "is-busy"
11135 msgstr ""
11136
11137 #. type: verbatim
11138 #: ../fish/guestfish-actions.pod:2565
11139 #, no-wrap
11140 msgid ""
11141 " is-busy\n"
11142 "\n"
11143 msgstr ""
11144
11145 #. type: textblock
11146 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11147 msgid ""
11148 "This returns true iff this handle is busy processing a command (in the "
11149 "C<BUSY> state)."
11150 msgstr ""
11151
11152 #. type: =head2
11153 #: ../fish/guestfish-actions.pod:2572
11154 msgid "is-chardev"
11155 msgstr ""
11156
11157 #. type: verbatim
11158 #: ../fish/guestfish-actions.pod:2574
11159 #, no-wrap
11160 msgid ""
11161 " is-chardev path\n"
11162 "\n"
11163 msgstr ""
11164
11165 #. type: textblock
11166 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11167 msgid ""
11168 "This returns C<true> if and only if there is a character device with the "
11169 "given C<path> name."
11170 msgstr ""
11171
11172 #. type: =head2
11173 #: ../fish/guestfish-actions.pod:2581
11174 msgid "is-config"
11175 msgstr ""
11176
11177 #. type: verbatim
11178 #: ../fish/guestfish-actions.pod:2583
11179 #, no-wrap
11180 msgid ""
11181 " is-config\n"
11182 "\n"
11183 msgstr ""
11184
11185 #. type: textblock
11186 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11187 msgid ""
11188 "This returns true iff this handle is being configured (in the C<CONFIG> "
11189 "state)."
11190 msgstr ""
11191
11192 #. type: =head2
11193 #: ../fish/guestfish-actions.pod:2590
11194 msgid "is-dir"
11195 msgstr ""
11196
11197 #. type: verbatim
11198 #: ../fish/guestfish-actions.pod:2592
11199 #, no-wrap
11200 msgid ""
11201 " is-dir path\n"
11202 "\n"
11203 msgstr ""
11204
11205 #. type: textblock
11206 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11207 msgid ""
11208 "This returns C<true> if and only if there is a directory with the given "
11209 "C<path> name.  Note that it returns false for other objects like files."
11210 msgstr ""
11211
11212 #. type: =head2
11213 #: ../fish/guestfish-actions.pod:2600
11214 msgid "is-fifo"
11215 msgstr ""
11216
11217 #. type: verbatim
11218 #: ../fish/guestfish-actions.pod:2602
11219 #, no-wrap
11220 msgid ""
11221 " is-fifo path\n"
11222 "\n"
11223 msgstr ""
11224
11225 #. type: textblock
11226 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11227 msgid ""
11228 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11229 "given C<path> name."
11230 msgstr ""
11231
11232 #. type: =head2
11233 #: ../fish/guestfish-actions.pod:2609
11234 msgid "is-file"
11235 msgstr ""
11236
11237 #. type: verbatim
11238 #: ../fish/guestfish-actions.pod:2611
11239 #, no-wrap
11240 msgid ""
11241 " is-file path\n"
11242 "\n"
11243 msgstr ""
11244
11245 #. type: textblock
11246 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11247 msgid ""
11248 "This returns C<true> if and only if there is a regular file with the given "
11249 "C<path> name.  Note that it returns false for other objects like directories."
11250 msgstr ""
11251
11252 #. type: =head2
11253 #: ../fish/guestfish-actions.pod:2619
11254 msgid "is-launching"
11255 msgstr ""
11256
11257 #. type: verbatim
11258 #: ../fish/guestfish-actions.pod:2621
11259 #, no-wrap
11260 msgid ""
11261 " is-launching\n"
11262 "\n"
11263 msgstr ""
11264
11265 #. type: textblock
11266 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11267 msgid ""
11268 "This returns true iff this handle is launching the subprocess (in the "
11269 "C<LAUNCHING> state)."
11270 msgstr ""
11271
11272 #. type: =head2
11273 #: ../fish/guestfish-actions.pod:2628
11274 msgid "is-lv"
11275 msgstr ""
11276
11277 #. type: verbatim
11278 #: ../fish/guestfish-actions.pod:2630
11279 #, no-wrap
11280 msgid ""
11281 " is-lv device\n"
11282 "\n"
11283 msgstr ""
11284
11285 #. type: textblock
11286 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11287 msgid ""
11288 "This command tests whether C<device> is a logical volume, and returns true "
11289 "iff this is the case."
11290 msgstr ""
11291
11292 #. type: =head2
11293 #: ../fish/guestfish-actions.pod:2635
11294 msgid "is-ready"
11295 msgstr ""
11296
11297 #. type: verbatim
11298 #: ../fish/guestfish-actions.pod:2637
11299 #, no-wrap
11300 msgid ""
11301 " is-ready\n"
11302 "\n"
11303 msgstr ""
11304
11305 #. type: textblock
11306 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11307 msgid ""
11308 "This returns true iff this handle is ready to accept commands (in the "
11309 "C<READY> state)."
11310 msgstr ""
11311
11312 #. type: =head2
11313 #: ../fish/guestfish-actions.pod:2644
11314 msgid "is-socket"
11315 msgstr ""
11316
11317 #. type: verbatim
11318 #: ../fish/guestfish-actions.pod:2646
11319 #, no-wrap
11320 msgid ""
11321 " is-socket path\n"
11322 "\n"
11323 msgstr ""
11324
11325 #. type: textblock
11326 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11327 msgid ""
11328 "This returns C<true> if and only if there is a Unix domain socket with the "
11329 "given C<path> name."
11330 msgstr ""
11331
11332 #. type: =head2
11333 #: ../fish/guestfish-actions.pod:2653
11334 msgid "is-symlink"
11335 msgstr ""
11336
11337 #. type: verbatim
11338 #: ../fish/guestfish-actions.pod:2655
11339 #, no-wrap
11340 msgid ""
11341 " is-symlink path\n"
11342 "\n"
11343 msgstr ""
11344
11345 #. type: textblock
11346 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11347 msgid ""
11348 "This returns C<true> if and only if there is a symbolic link with the given "
11349 "C<path> name."
11350 msgstr ""
11351
11352 #. type: =head2
11353 #: ../fish/guestfish-actions.pod:2662
11354 msgid "is-zero"
11355 msgstr ""
11356
11357 #. type: verbatim
11358 #: ../fish/guestfish-actions.pod:2664
11359 #, no-wrap
11360 msgid ""
11361 " is-zero path\n"
11362 "\n"
11363 msgstr ""
11364
11365 #. type: textblock
11366 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11367 msgid ""
11368 "This returns true iff the file exists and the file is empty or it contains "
11369 "all zero bytes."
11370 msgstr ""
11371
11372 #. type: =head2
11373 #: ../fish/guestfish-actions.pod:2669
11374 msgid "is-zero-device"
11375 msgstr ""
11376
11377 #. type: verbatim
11378 #: ../fish/guestfish-actions.pod:2671
11379 #, no-wrap
11380 msgid ""
11381 " is-zero-device device\n"
11382 "\n"
11383 msgstr ""
11384
11385 #. type: textblock
11386 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11387 msgid "This returns true iff the device exists and contains all zero bytes."
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11392 msgid "Note that for large devices this can take a long time to run."
11393 msgstr ""
11394
11395 #. type: =head2
11396 #: ../fish/guestfish-actions.pod:2677
11397 msgid "kill-subprocess"
11398 msgstr ""
11399
11400 #. type: verbatim
11401 #: ../fish/guestfish-actions.pod:2679
11402 #, no-wrap
11403 msgid ""
11404 " kill-subprocess\n"
11405 "\n"
11406 msgstr ""
11407
11408 #. type: textblock
11409 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11410 msgid "This kills the qemu subprocess.  You should never need to call this."
11411 msgstr ""
11412
11413 #. type: =head2
11414 #: ../fish/guestfish-actions.pod:2683
11415 msgid "launch"
11416 msgstr ""
11417
11418 #. type: =head2
11419 #: ../fish/guestfish-actions.pod:2685
11420 msgid "run"
11421 msgstr ""
11422
11423 #. type: verbatim
11424 #: ../fish/guestfish-actions.pod:2687
11425 #, no-wrap
11426 msgid ""
11427 " launch\n"
11428 "\n"
11429 msgstr ""
11430
11431 #. type: textblock
11432 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11433 msgid ""
11434 "Internally libguestfs is implemented by running a virtual machine using "
11435 "L<qemu(1)>."
11436 msgstr ""
11437
11438 #. type: textblock
11439 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11440 msgid ""
11441 "You should call this after configuring the handle (eg. adding drives) but "
11442 "before performing any actions."
11443 msgstr ""
11444
11445 #. type: =head2
11446 #: ../fish/guestfish-actions.pod:2695
11447 msgid "lchown"
11448 msgstr ""
11449
11450 #. type: verbatim
11451 #: ../fish/guestfish-actions.pod:2697
11452 #, no-wrap
11453 msgid ""
11454 " lchown owner group path\n"
11455 "\n"
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../fish/guestfish-actions.pod:2699
11460 msgid ""
11461 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11462 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11463 "target."
11464 msgstr ""
11465
11466 #. type: =head2
11467 #: ../fish/guestfish-actions.pod:2707
11468 msgid "lgetxattr"
11469 msgstr ""
11470
11471 #. type: verbatim
11472 #: ../fish/guestfish-actions.pod:2709
11473 #, no-wrap
11474 msgid ""
11475 " lgetxattr path name\n"
11476 "\n"
11477 msgstr ""
11478
11479 #. type: textblock
11480 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11481 msgid ""
11482 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11483 "is a symlink, then this call returns an extended attribute from the symlink."
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../fish/guestfish-actions.pod:2725
11488 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11489 msgstr ""
11490
11491 #. type: =head2
11492 #: ../fish/guestfish-actions.pod:2727
11493 msgid "lgetxattrs"
11494 msgstr ""
11495
11496 #. type: verbatim
11497 #: ../fish/guestfish-actions.pod:2729
11498 #, no-wrap
11499 msgid ""
11500 " lgetxattrs path\n"
11501 "\n"
11502 msgstr ""
11503
11504 #. type: textblock
11505 #: ../fish/guestfish-actions.pod:2731
11506 msgid ""
11507 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11508 "it returns the extended attributes of the link itself."
11509 msgstr ""
11510
11511 #. type: =head2
11512 #: ../fish/guestfish-actions.pod:2735
11513 msgid "list-9p"
11514 msgstr ""
11515
11516 #. type: verbatim
11517 #: ../fish/guestfish-actions.pod:2737
11518 #, no-wrap
11519 msgid ""
11520 " list-9p\n"
11521 "\n"
11522 msgstr ""
11523
11524 #. type: textblock
11525 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11526 msgid ""
11527 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11528 "returned."
11529 msgstr ""
11530
11531 #. type: =head2
11532 #: ../fish/guestfish-actions.pod:2742
11533 msgid "list-devices"
11534 msgstr ""
11535
11536 #. type: verbatim
11537 #: ../fish/guestfish-actions.pod:2744
11538 #, no-wrap
11539 msgid ""
11540 " list-devices\n"
11541 "\n"
11542 msgstr ""
11543
11544 #. type: textblock
11545 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11546 msgid "List all the block devices."
11547 msgstr ""
11548
11549 #. type: textblock
11550 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11551 msgid "The full block device names are returned, eg. C</dev/sda>."
11552 msgstr ""
11553
11554 #. type: =head2
11555 #: ../fish/guestfish-actions.pod:2752
11556 msgid "list-dm-devices"
11557 msgstr ""
11558
11559 #. type: verbatim
11560 #: ../fish/guestfish-actions.pod:2754
11561 #, no-wrap
11562 msgid ""
11563 " list-dm-devices\n"
11564 "\n"
11565 msgstr ""
11566
11567 #. type: textblock
11568 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11569 msgid "List all device mapper devices."
11570 msgstr ""
11571
11572 #. type: textblock
11573 #: ../fish/guestfish-actions.pod:2758
11574 msgid ""
11575 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11576 "previous call to L</luks-open>."
11577 msgstr ""
11578
11579 #. type: textblock
11580 #: ../fish/guestfish-actions.pod:2761
11581 msgid ""
11582 "Device mapper devices which correspond to logical volumes are I<not> "
11583 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11584 msgstr ""
11585
11586 #. type: =head2
11587 #: ../fish/guestfish-actions.pod:2765
11588 msgid "list-filesystems"
11589 msgstr ""
11590
11591 #. type: verbatim
11592 #: ../fish/guestfish-actions.pod:2767
11593 #, no-wrap
11594 msgid ""
11595 " list-filesystems\n"
11596 "\n"
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11601 msgid ""
11602 "This inspection command looks for filesystems on partitions, block devices "
11603 "and logical volumes, returning a list of devices containing filesystems and "
11604 "their type."
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11609 msgid ""
11610 "The return value is a hash, where the keys are the devices containing "
11611 "filesystems, and the values are the filesystem types.  For example:"
11612 msgstr ""
11613
11614 #. type: verbatim
11615 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11616 #, no-wrap
11617 msgid ""
11618 " \"/dev/sda1\" => \"ntfs\"\n"
11619 " \"/dev/sda2\" => \"ext2\"\n"
11620 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11621 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11622 "\n"
11623 msgstr ""
11624
11625 #. type: textblock
11626 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11627 msgid ""
11628 "The value can have the special value \"unknown\", meaning the content of the "
11629 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11630 msgstr ""
11631
11632 #. type: textblock
11633 #: ../fish/guestfish-actions.pod:2786
11634 msgid ""
11635 "This command runs other libguestfs commands, which might include L</mount> "
11636 "and L</umount>, and therefore you should use this soon after launch and only "
11637 "when nothing is mounted."
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:2790
11642 msgid ""
11643 "Not all of the filesystems returned will be mountable.  In particular, swap "
11644 "partitions are returned in the list.  Also this command does not check that "
11645 "each filesystem found is valid and mountable, and some filesystems might be "
11646 "mountable but require special options.  Filesystems may not all belong to a "
11647 "single logical operating system (use L</inspect-os> to look for OSes)."
11648 msgstr ""
11649
11650 #. type: =head2
11651 #: ../fish/guestfish-actions.pod:2798
11652 msgid "list-md-devices"
11653 msgstr ""
11654
11655 #. type: verbatim
11656 #: ../fish/guestfish-actions.pod:2800
11657 #, no-wrap
11658 msgid ""
11659 " list-md-devices\n"
11660 "\n"
11661 msgstr ""
11662
11663 #. type: textblock
11664 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11665 msgid "List all Linux md devices."
11666 msgstr ""
11667
11668 #. type: =head2
11669 #: ../fish/guestfish-actions.pod:2804
11670 msgid "list-partitions"
11671 msgstr ""
11672
11673 #. type: verbatim
11674 #: ../fish/guestfish-actions.pod:2806
11675 #, no-wrap
11676 msgid ""
11677 " list-partitions\n"
11678 "\n"
11679 msgstr ""
11680
11681 #. type: textblock
11682 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4287
11683 msgid "List all the partitions detected on all block devices."
11684 msgstr ""
11685
11686 #. type: textblock
11687 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4289
11688 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11689 msgstr ""
11690
11691 #. type: textblock
11692 #: ../fish/guestfish-actions.pod:2812
11693 msgid ""
11694 "This does not return logical volumes.  For that you will need to call L</"
11695 "lvs>."
11696 msgstr ""
11697
11698 #. type: =head2
11699 #: ../fish/guestfish-actions.pod:2817
11700 msgid "ll"
11701 msgstr ""
11702
11703 #. type: verbatim
11704 #: ../fish/guestfish-actions.pod:2819
11705 #, no-wrap
11706 msgid ""
11707 " ll directory\n"
11708 "\n"
11709 msgstr ""
11710
11711 #. type: textblock
11712 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4308
11713 msgid ""
11714 "List the files in C<directory> (relative to the root directory, there is no "
11715 "cwd) in the format of 'ls -la'."
11716 msgstr ""
11717
11718 #. type: textblock
11719 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4311
11720 msgid ""
11721 "This command is mostly useful for interactive sessions.  It is I<not> "
11722 "intended that you try to parse the output string."
11723 msgstr ""
11724
11725 #. type: =head2
11726 #: ../fish/guestfish-actions.pod:2827
11727 msgid "ln"
11728 msgstr ""
11729
11730 #. type: verbatim
11731 #: ../fish/guestfish-actions.pod:2829
11732 #, no-wrap
11733 msgid ""
11734 " ln target linkname\n"
11735 "\n"
11736 msgstr ""
11737
11738 #. type: textblock
11739 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4326
11740 msgid "This command creates a hard link using the C<ln> command."
11741 msgstr ""
11742
11743 #. type: =head2
11744 #: ../fish/guestfish-actions.pod:2833
11745 msgid "ln-f"
11746 msgstr ""
11747
11748 #. type: verbatim
11749 #: ../fish/guestfish-actions.pod:2835
11750 #, no-wrap
11751 msgid ""
11752 " ln-f target linkname\n"
11753 "\n"
11754 msgstr ""
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4339
11758 msgid ""
11759 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11760 "option removes the link (C<linkname>) if it exists already."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../fish/guestfish-actions.pod:2840
11765 msgid "ln-s"
11766 msgstr ""
11767
11768 #. type: verbatim
11769 #: ../fish/guestfish-actions.pod:2842
11770 #, no-wrap
11771 msgid ""
11772 " ln-s target linkname\n"
11773 "\n"
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4353
11778 msgid "This command creates a symbolic link using the C<ln -s> command."
11779 msgstr ""
11780
11781 #. type: =head2
11782 #: ../fish/guestfish-actions.pod:2846
11783 msgid "ln-sf"
11784 msgstr ""
11785
11786 #. type: verbatim
11787 #: ../fish/guestfish-actions.pod:2848
11788 #, no-wrap
11789 msgid ""
11790 " ln-sf target linkname\n"
11791 "\n"
11792 msgstr ""
11793
11794 #. type: textblock
11795 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4366
11796 msgid ""
11797 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11798 "option removes the link (C<linkname>) if it exists already."
11799 msgstr ""
11800
11801 #. type: =head2
11802 #: ../fish/guestfish-actions.pod:2853
11803 msgid "lremovexattr"
11804 msgstr ""
11805
11806 #. type: verbatim
11807 #: ../fish/guestfish-actions.pod:2855
11808 #, no-wrap
11809 msgid ""
11810 " lremovexattr xattr path\n"
11811 "\n"
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../fish/guestfish-actions.pod:2857
11816 msgid ""
11817 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11818 "it removes an extended attribute of the link itself."
11819 msgstr ""
11820
11821 #. type: =head2
11822 #: ../fish/guestfish-actions.pod:2861
11823 msgid "ls"
11824 msgstr ""
11825
11826 #. type: verbatim
11827 #: ../fish/guestfish-actions.pod:2863
11828 #, no-wrap
11829 msgid ""
11830 " ls directory\n"
11831 "\n"
11832 msgstr ""
11833
11834 #. type: textblock
11835 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4394
11836 msgid ""
11837 "List the files in C<directory> (relative to the root directory, there is no "
11838 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11839 msgstr ""
11840
11841 #. type: textblock
11842 #: ../fish/guestfish-actions.pod:2869
11843 msgid ""
11844 "This command is mostly useful for interactive sessions.  Programs should "
11845 "probably use L</readdir> instead."
11846 msgstr ""
11847
11848 #. type: =head2
11849 #: ../fish/guestfish-actions.pod:2872
11850 msgid "lsetxattr"
11851 msgstr ""
11852
11853 #. type: verbatim
11854 #: ../fish/guestfish-actions.pod:2874
11855 #, no-wrap
11856 msgid ""
11857 " lsetxattr xattr val vallen path\n"
11858 "\n"
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:2876
11863 msgid ""
11864 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11865 "sets an extended attribute of the link itself."
11866 msgstr ""
11867
11868 #. type: =head2
11869 #: ../fish/guestfish-actions.pod:2880
11870 msgid "lstat"
11871 msgstr ""
11872
11873 #. type: verbatim
11874 #: ../fish/guestfish-actions.pod:2882
11875 #, no-wrap
11876 msgid ""
11877 " lstat path\n"
11878 "\n"
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4775
11883 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:7349
11884 msgid "Returns file information for the given C<path>."
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:2886
11889 msgid ""
11890 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11891 "the link is stat-ed, not the file it refers to."
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4436
11896 msgid "This is the same as the C<lstat(2)> system call."
11897 msgstr ""
11898
11899 #. type: =head2
11900 #: ../fish/guestfish-actions.pod:2892
11901 msgid "lstatlist"
11902 msgstr ""
11903
11904 #. type: verbatim
11905 #: ../fish/guestfish-actions.pod:2894
11906 #, no-wrap
11907 msgid ""
11908 " lstatlist path 'names ...'\n"
11909 "\n"
11910 msgstr ""
11911
11912 #. type: textblock
11913 #: ../fish/guestfish-actions.pod:2896
11914 msgid ""
11915 "This call allows you to perform the L</lstat> operation on multiple files, "
11916 "where all files are in the directory C<path>.  C<names> is the list of files "
11917 "from this directory."
11918 msgstr ""
11919
11920 #. type: textblock
11921 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4455
11922 msgid ""
11923 "On return you get a list of stat structs, with a one-to-one correspondence "
11924 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11925 "then the C<ino> field of that structure is set to C<-1>."
11926 msgstr ""
11927
11928 #. type: textblock
11929 #: ../fish/guestfish-actions.pod:2905
11930 msgid ""
11931 "This call is intended for programs that want to efficiently list a directory "
11932 "contents without making many round-trips.  See also L</lxattrlist> for a "
11933 "similarly efficient call for getting extended attributes.  Very long "
11934 "directory listings might cause the protocol message size to be exceeded, "
11935 "causing this call to fail.  The caller must split up such requests into "
11936 "smaller groups of names."
11937 msgstr ""
11938
11939 #. type: =head2
11940 #: ../fish/guestfish-actions.pod:2913
11941 msgid "luks-add-key"
11942 msgstr ""
11943
11944 #. type: verbatim
11945 #: ../fish/guestfish-actions.pod:2915
11946 #, no-wrap
11947 msgid ""
11948 " luks-add-key device keyslot\n"
11949 "\n"
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4483
11954 msgid ""
11955 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11956 "existing key, and is used to access the device.  C<newkey> is the new key to "
11957 "add.  C<keyslot> is the key slot that will be replaced."
11958 msgstr ""
11959
11960 #. type: textblock
11961 #: ../fish/guestfish-actions.pod:2922
11962 msgid ""
11963 "Note that if C<keyslot> already contains a key, then this command will "
11964 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2926 ../fish/guestfish-actions.pod:2948
11969 #: ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:2969
11970 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
11971 msgid ""
11972 "This command has one or more key or passphrase parameters.  Guestfish will "
11973 "prompt for these separately."
11974 msgstr ""
11975
11976 #. type: =head2
11977 #: ../fish/guestfish-actions.pod:2929
11978 msgid "luks-close"
11979 msgstr ""
11980
11981 #. type: verbatim
11982 #: ../fish/guestfish-actions.pod:2931
11983 #, no-wrap
11984 msgid ""
11985 " luks-close device\n"
11986 "\n"
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:2933
11991 msgid ""
11992 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11993 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11994 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11995 "block device."
11996 msgstr ""
11997
11998 #. type: =head2
11999 #: ../fish/guestfish-actions.pod:2939
12000 msgid "luks-format"
12001 msgstr ""
12002
12003 #. type: verbatim
12004 #: ../fish/guestfish-actions.pod:2941
12005 #, no-wrap
12006 msgid ""
12007 " luks-format device keyslot\n"
12008 "\n"
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4524
12013 msgid ""
12014 "This command erases existing data on C<device> and formats the device as a "
12015 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12016 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12017 msgstr ""
12018
12019 #. type: =head2
12020 #: ../fish/guestfish-actions.pod:2951
12021 msgid "luks-format-cipher"
12022 msgstr ""
12023
12024 #. type: verbatim
12025 #: ../fish/guestfish-actions.pod:2953
12026 #, no-wrap
12027 msgid ""
12028 " luks-format-cipher device keyslot cipher\n"
12029 "\n"
12030 msgstr ""
12031
12032 #. type: textblock
12033 #: ../fish/guestfish-actions.pod:2955
12034 msgid ""
12035 "This command is the same as L</luks-format> but it also allows you to set "
12036 "the C<cipher> used."
12037 msgstr ""
12038
12039 #. type: =head2
12040 #: ../fish/guestfish-actions.pod:2961
12041 msgid "luks-kill-slot"
12042 msgstr ""
12043
12044 #. type: verbatim
12045 #: ../fish/guestfish-actions.pod:2963
12046 #, no-wrap
12047 msgid ""
12048 " luks-kill-slot device keyslot\n"
12049 "\n"
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4565
12054 msgid ""
12055 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12056 "device C<device>.  C<key> must be one of the I<other> keys."
12057 msgstr ""
12058
12059 #. type: =head2
12060 #: ../fish/guestfish-actions.pod:2972
12061 msgid "luks-open"
12062 msgstr ""
12063
12064 #. type: verbatim
12065 #: ../fish/guestfish-actions.pod:2974
12066 #, no-wrap
12067 msgid ""
12068 " luks-open device mapname\n"
12069 "\n"
12070 msgstr ""
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4585
12074 msgid ""
12075 "This command opens a block device which has been encrypted according to the "
12076 "Linux Unified Key Setup (LUKS) standard."
12077 msgstr ""
12078
12079 #. type: textblock
12080 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4588
12081 msgid "C<device> is the encrypted block device or partition."
12082 msgstr ""
12083
12084 #. type: textblock
12085 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4590
12086 msgid ""
12087 "The caller must supply one of the keys associated with the LUKS block "
12088 "device, in the C<key> parameter."
12089 msgstr ""
12090
12091 #. type: textblock
12092 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4593
12093 msgid ""
12094 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12095 "writes to this block device are decrypted from and encrypted to the "
12096 "underlying C<device> respectively."
12097 msgstr ""
12098
12099 #. type: textblock
12100 #: ../fish/guestfish-actions.pod:2988
12101 msgid ""
12102 "If this block device contains LVM volume groups, then calling L</vgscan> "
12103 "followed by L</vg-activate-all> will make them visible."
12104 msgstr ""
12105
12106 #. type: textblock
12107 #: ../fish/guestfish-actions.pod:2992
12108 msgid "Use L</list-dm-devices> to list all device mapper devices."
12109 msgstr ""
12110
12111 #. type: =head2
12112 #: ../fish/guestfish-actions.pod:2998
12113 msgid "luks-open-ro"
12114 msgstr ""
12115
12116 #. type: verbatim
12117 #: ../fish/guestfish-actions.pod:3000
12118 #, no-wrap
12119 msgid ""
12120 " luks-open-ro device mapname\n"
12121 "\n"
12122 msgstr ""
12123
12124 #. type: textblock
12125 #: ../fish/guestfish-actions.pod:3002
12126 msgid ""
12127 "This is the same as L</luks-open> except that a read-only mapping is created."
12128 msgstr ""
12129
12130 #. type: =head2
12131 #: ../fish/guestfish-actions.pod:3008
12132 msgid "lvcreate"
12133 msgstr ""
12134
12135 #. type: verbatim
12136 #: ../fish/guestfish-actions.pod:3010
12137 #, no-wrap
12138 msgid ""
12139 " lvcreate logvol volgroup mbytes\n"
12140 "\n"
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4639
12145 msgid ""
12146 "This creates an LVM logical volume called C<logvol> on the volume group "
12147 "C<volgroup>, with C<size> megabytes."
12148 msgstr ""
12149
12150 #. type: =head2
12151 #: ../fish/guestfish-actions.pod:3015
12152 msgid "lvm-canonical-lv-name"
12153 msgstr ""
12154
12155 #. type: verbatim
12156 #: ../fish/guestfish-actions.pod:3017
12157 #, no-wrap
12158 msgid ""
12159 " lvm-canonical-lv-name lvname\n"
12160 "\n"
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4652
12165 msgid ""
12166 "This converts alternative naming schemes for LVs that you might find to the "
12167 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12168 "LV>."
12169 msgstr ""
12170
12171 #. type: textblock
12172 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4656
12173 msgid ""
12174 "This command returns an error if the C<lvname> parameter does not refer to a "
12175 "logical volume."
12176 msgstr ""
12177
12178 #. type: textblock
12179 #: ../fish/guestfish-actions.pod:3026
12180 msgid "See also L</is-lv>."
12181 msgstr ""
12182
12183 #. type: =head2
12184 #: ../fish/guestfish-actions.pod:3028
12185 msgid "lvm-clear-filter"
12186 msgstr ""
12187
12188 #. type: verbatim
12189 #: ../fish/guestfish-actions.pod:3030
12190 #, no-wrap
12191 msgid ""
12192 " lvm-clear-filter\n"
12193 "\n"
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:3032
12198 msgid ""
12199 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12200 "block device."
12201 msgstr ""
12202
12203 #. type: textblock
12204 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063
12205 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4713
12206 msgid ""
12207 "This command also clears the LVM cache and performs a volume group scan."
12208 msgstr ""
12209
12210 #. type: =head2
12211 #: ../fish/guestfish-actions.pod:3038
12212 msgid "lvm-remove-all"
12213 msgstr ""
12214
12215 #. type: verbatim
12216 #: ../fish/guestfish-actions.pod:3040
12217 #, no-wrap
12218 msgid ""
12219 " lvm-remove-all\n"
12220 "\n"
12221 msgstr ""
12222
12223 #. type: textblock
12224 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4686
12225 msgid ""
12226 "This command removes all LVM logical volumes, volume groups and physical "
12227 "volumes."
12228 msgstr ""
12229
12230 #. type: =head2
12231 #: ../fish/guestfish-actions.pod:3045
12232 msgid "lvm-set-filter"
12233 msgstr ""
12234
12235 #. type: verbatim
12236 #: ../fish/guestfish-actions.pod:3047
12237 #, no-wrap
12238 msgid ""
12239 " lvm-set-filter 'devices ...'\n"
12240 "\n"
12241 msgstr ""
12242
12243 #. type: textblock
12244 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4699
12245 msgid ""
12246 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12247 "block devices in the list C<devices>, and will ignore all other attached "
12248 "block devices."
12249 msgstr ""
12250
12251 #. type: textblock
12252 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4703
12253 msgid ""
12254 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12255 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12256 "there are two types of duplication possible: either cloned PVs/VGs which "
12257 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12258 "same name.  In normal operation you cannot create this situation, but you "
12259 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12260 "inside the LVM metadata."
12261 msgstr ""
12262
12263 #. type: textblock
12264 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4716
12265 msgid "You can filter whole block devices or individual partitions."
12266 msgstr ""
12267
12268 #. type: textblock
12269 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4718
12270 msgid ""
12271 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12272 "filesystem), even if you are not filtering out that VG."
12273 msgstr ""
12274
12275 #. type: =head2
12276 #: ../fish/guestfish-actions.pod:3072
12277 msgid "lvremove"
12278 msgstr ""
12279
12280 #. type: verbatim
12281 #: ../fish/guestfish-actions.pod:3074
12282 #, no-wrap
12283 msgid ""
12284 " lvremove device\n"
12285 "\n"
12286 msgstr ""
12287
12288 #. type: textblock
12289 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4732
12290 msgid ""
12291 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12292 "LV, such as C</dev/VG/LV>."
12293 msgstr ""
12294
12295 #. type: textblock
12296 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4735
12297 msgid ""
12298 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12299 "dev/VG>."
12300 msgstr ""
12301
12302 #. type: =head2
12303 #: ../fish/guestfish-actions.pod:3082
12304 msgid "lvrename"
12305 msgstr ""
12306
12307 #. type: verbatim
12308 #: ../fish/guestfish-actions.pod:3084
12309 #, no-wrap
12310 msgid ""
12311 " lvrename logvol newlogvol\n"
12312 "\n"
12313 msgstr ""
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4749
12317 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12318 msgstr ""
12319
12320 #. type: =head2
12321 #: ../fish/guestfish-actions.pod:3088
12322 msgid "lvresize"
12323 msgstr ""
12324
12325 #. type: verbatim
12326 #: ../fish/guestfish-actions.pod:3090
12327 #, no-wrap
12328 msgid ""
12329 " lvresize device mbytes\n"
12330 "\n"
12331 msgstr ""
12332
12333 #. type: textblock
12334 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4762
12335 msgid ""
12336 "This resizes (expands or shrinks) an existing LVM logical volume to "
12337 "C<mbytes>.  When reducing, data in the reduced part is lost."
12338 msgstr ""
12339
12340 #. type: =head2
12341 #: ../fish/guestfish-actions.pod:3096
12342 msgid "lvresize-free"
12343 msgstr ""
12344
12345 #. type: verbatim
12346 #: ../fish/guestfish-actions.pod:3098
12347 #, no-wrap
12348 msgid ""
12349 " lvresize-free lv percent\n"
12350 "\n"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4777
12355 msgid ""
12356 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12357 "remaining free space in the volume group.  Commonly you would call this with "
12358 "pc = 100 which expands the logical volume as much as possible, using all "
12359 "remaining free space in the volume group."
12360 msgstr ""
12361
12362 #. type: =head2
12363 #: ../fish/guestfish-actions.pod:3106
12364 msgid "lvs"
12365 msgstr ""
12366
12367 #. type: verbatim
12368 #: ../fish/guestfish-actions.pod:3108
12369 #, no-wrap
12370 msgid ""
12371 " lvs\n"
12372 "\n"
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4792
12377 msgid ""
12378 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12379 "(8)> command."
12380 msgstr ""
12381
12382 #. type: textblock
12383 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4795
12384 msgid ""
12385 "This returns a list of the logical volume device names (eg. C</dev/"
12386 "VolGroup00/LogVol00>)."
12387 msgstr ""
12388
12389 #. type: textblock
12390 #: ../fish/guestfish-actions.pod:3116
12391 msgid "See also L</lvs-full>, L</list-filesystems>."
12392 msgstr ""
12393
12394 #. type: =head2
12395 #: ../fish/guestfish-actions.pod:3118
12396 msgid "lvs-full"
12397 msgstr ""
12398
12399 #. type: verbatim
12400 #: ../fish/guestfish-actions.pod:3120
12401 #, no-wrap
12402 msgid ""
12403 " lvs-full\n"
12404 "\n"
12405 msgstr ""
12406
12407 #. type: textblock
12408 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4811
12409 msgid ""
12410 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12411 "(8)> command.  The \"full\" version includes all fields."
12412 msgstr ""
12413
12414 #. type: =head2
12415 #: ../fish/guestfish-actions.pod:3125
12416 msgid "lvuuid"
12417 msgstr ""
12418
12419 #. type: verbatim
12420 #: ../fish/guestfish-actions.pod:3127
12421 #, no-wrap
12422 msgid ""
12423 " lvuuid device\n"
12424 "\n"
12425 msgstr ""
12426
12427 #. type: textblock
12428 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4826
12429 msgid "This command returns the UUID of the LVM LV C<device>."
12430 msgstr ""
12431
12432 #. type: =head2
12433 #: ../fish/guestfish-actions.pod:3131
12434 msgid "lxattrlist"
12435 msgstr ""
12436
12437 #. type: verbatim
12438 #: ../fish/guestfish-actions.pod:3133
12439 #, no-wrap
12440 msgid ""
12441 " lxattrlist path 'names ...'\n"
12442 "\n"
12443 msgstr ""
12444
12445 #. type: textblock
12446 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4840
12447 msgid ""
12448 "This call allows you to get the extended attributes of multiple files, where "
12449 "all files are in the directory C<path>.  C<names> is the list of files from "
12450 "this directory."
12451 msgstr ""
12452
12453 #. type: textblock
12454 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4844
12455 msgid ""
12456 "On return you get a flat list of xattr structs which must be interpreted "
12457 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12458 "C<attrval> in this struct is zero-length to indicate there was an error "
12459 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12460 "number (the number of following attributes for this file, which could be C<"
12461 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12462 "for the first named file.  This repeats for the second and subsequent files."
12463 msgstr ""
12464
12465 #. type: textblock
12466 #: ../fish/guestfish-actions.pod:3149
12467 msgid ""
12468 "This call is intended for programs that want to efficiently list a directory "
12469 "contents without making many round-trips.  See also L</lstatlist> for a "
12470 "similarly efficient call for getting standard stats.  Very long directory "
12471 "listings might cause the protocol message size to be exceeded, causing this "
12472 "call to fail.  The caller must split up such requests into smaller groups of "
12473 "names."
12474 msgstr ""
12475
12476 #. type: =head2
12477 #: ../fish/guestfish-actions.pod:3157
12478 msgid "mdadm-create"
12479 msgstr ""
12480
12481 #. type: verbatim
12482 #: ../fish/guestfish-actions.pod:3159
12483 #, no-wrap
12484 msgid ""
12485 " mdadm-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
12486 "\n"
12487 msgstr ""
12488
12489 #. type: textblock
12490 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4887
12491 msgid ""
12492 "Create a Linux md (RAID) device named C<name> on the devices in the list "
12493 "C<devices>."
12494 msgstr ""
12495
12496 #. type: =item
12497 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4894
12498 msgid "C<missingbitmap>"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4896
12503 msgid ""
12504 "A bitmap of missing devices.  If a bit is set it means that a missing device "
12505 "is added to the array.  The least significant bit corresponds to the first "
12506 "device in the array."
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4900
12511 msgid "As examples:"
12512 msgstr ""
12513
12514 #. type: textblock
12515 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4902
12516 msgid ""
12517 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
12518 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
12519 msgstr ""
12520
12521 #. type: textblock
12522 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4905
12523 msgid ""
12524 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
12525 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
12526 msgstr ""
12527
12528 #. type: textblock
12529 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4908
12530 msgid "This defaults to C<0> (no missing devices)."
12531 msgstr ""
12532
12533 #. type: textblock
12534 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4910
12535 msgid ""
12536 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
12537 "equal C<nrdevices> + C<spare>."
12538 msgstr ""
12539
12540 #. type: =item
12541 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4913
12542 msgid "C<nrdevices>"
12543 msgstr ""
12544
12545 #. type: textblock
12546 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4915
12547 msgid "The number of active RAID devices."
12548 msgstr ""
12549
12550 #. type: textblock
12551 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4917
12552 msgid ""
12553 "If not set, this defaults to the length of C<devices> plus the number of "
12554 "bits set in C<missingbitmap>."
12555 msgstr ""
12556
12557 #. type: =item
12558 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4920
12559 msgid "C<spare>"
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4922
12564 msgid "The number of spare devices."
12565 msgstr ""
12566
12567 #. type: textblock
12568 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4924
12569 msgid "If not set, this defaults to C<0>."
12570 msgstr ""
12571
12572 #. type: =item
12573 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4926
12574 msgid "C<chunk>"
12575 msgstr ""
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4928
12579 msgid "The chunk size in bytes."
12580 msgstr ""
12581
12582 #. type: =item
12583 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226
12584 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4978
12585 msgid "C<level>"
12586 msgstr ""
12587
12588 #. type: textblock
12589 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4932
12590 msgid ""
12591 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
12592 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
12593 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
12594 "added in future."
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4937
12599 msgid "If not set, this defaults to C<raid1>."
12600 msgstr ""
12601
12602 #. type: =head2
12603 #: ../fish/guestfish-actions.pod:3217
12604 msgid "mdadm-detail"
12605 msgstr ""
12606
12607 #. type: verbatim
12608 #: ../fish/guestfish-actions.pod:3219
12609 #, no-wrap
12610 msgid ""
12611 " mdadm-detail md\n"
12612 "\n"
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4973
12617 msgid ""
12618 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
12619 "are usually present in the returned hash. Other fields may also be present."
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4980
12624 msgid "The raid level of the MD device."
12625 msgstr ""
12626
12627 #. type: =item
12628 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4982
12629 msgid "C<devices>"
12630 msgstr ""
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4984
12634 msgid "The number of underlying devices in the MD device."
12635 msgstr ""
12636
12637 #. type: =item
12638 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4986
12639 msgid "C<metadata>"
12640 msgstr ""
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4988
12644 msgid "The metadata version used."
12645 msgstr ""
12646
12647 #. type: =item
12648 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4990
12649 msgid "C<uuid>"
12650 msgstr ""
12651
12652 #. type: textblock
12653 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4992
12654 msgid "The UUID of the MD device."
12655 msgstr ""
12656
12657 #. type: textblock
12658 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4996
12659 msgid "The name of the MD device."
12660 msgstr ""
12661
12662 #. type: =head2
12663 #: ../fish/guestfish-actions.pod:3248
12664 msgid "mkdir"
12665 msgstr ""
12666
12667 #. type: verbatim
12668 #: ../fish/guestfish-actions.pod:3250
12669 #, no-wrap
12670 msgid ""
12671 " mkdir path\n"
12672 "\n"
12673 msgstr ""
12674
12675 #. type: textblock
12676 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5012
12677 msgid "Create a directory named C<path>."
12678 msgstr ""
12679
12680 #. type: =head2
12681 #: ../fish/guestfish-actions.pod:3254
12682 msgid "mkdir-mode"
12683 msgstr ""
12684
12685 #. type: verbatim
12686 #: ../fish/guestfish-actions.pod:3256
12687 #, no-wrap
12688 msgid ""
12689 " mkdir-mode path mode\n"
12690 "\n"
12691 msgstr ""
12692
12693 #. type: textblock
12694 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5025
12695 msgid ""
12696 "This command creates a directory, setting the initial permissions of the "
12697 "directory to C<mode>."
12698 msgstr ""
12699
12700 #. type: textblock
12701 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5028
12702 msgid ""
12703 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12704 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12705 "other ways."
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:3265
12710 msgid "See also L</mkdir>, L</umask>"
12711 msgstr ""
12712
12713 #. type: =head2
12714 #: ../fish/guestfish-actions.pod:3267
12715 msgid "mkdir-p"
12716 msgstr ""
12717
12718 #. type: verbatim
12719 #: ../fish/guestfish-actions.pod:3269
12720 #, no-wrap
12721 msgid ""
12722 " mkdir-p path\n"
12723 "\n"
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5044
12728 msgid ""
12729 "Create a directory named C<path>, creating any parent directories as "
12730 "necessary.  This is like the C<mkdir -p> shell command."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../fish/guestfish-actions.pod:3274
12735 msgid "mkdtemp"
12736 msgstr ""
12737
12738 #. type: verbatim
12739 #: ../fish/guestfish-actions.pod:3276
12740 #, no-wrap
12741 msgid ""
12742 " mkdtemp template\n"
12743 "\n"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5057
12748 msgid ""
12749 "This command creates a temporary directory.  The C<template> parameter "
12750 "should be a full pathname for the temporary directory name with the final "
12751 "six characters being \"XXXXXX\"."
12752 msgstr ""
12753
12754 #. type: textblock
12755 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:5062
12756 msgid ""
12757 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12758 "being suitable for Windows filesystems."
12759 msgstr ""
12760
12761 #. type: textblock
12762 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5065
12763 msgid "The name of the temporary directory that was created is returned."
12764 msgstr ""
12765
12766 #. type: textblock
12767 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5068
12768 msgid "The temporary directory is created with mode 0700 and is owned by root."
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5071
12773 msgid ""
12774 "The caller is responsible for deleting the temporary directory and its "
12775 "contents after use."
12776 msgstr ""
12777
12778 #. type: textblock
12779 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5074
12780 msgid "See also: L<mkdtemp(3)>"
12781 msgstr ""
12782
12783 #. type: =head2
12784 #: ../fish/guestfish-actions.pod:3297
12785 msgid "mke2fs-J"
12786 msgstr ""
12787
12788 #. type: verbatim
12789 #: ../fish/guestfish-actions.pod:3299
12790 #, no-wrap
12791 msgid ""
12792 " mke2fs-J fstype blocksize device journal\n"
12793 "\n"
12794 msgstr ""
12795
12796 #. type: textblock
12797 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5090
12798 msgid ""
12799 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12800 "C<journal>.  It is equivalent to the command:"
12801 msgstr ""
12802
12803 #. type: verbatim
12804 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5094
12805 #, no-wrap
12806 msgid ""
12807 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12808 "\n"
12809 msgstr ""
12810
12811 #. type: textblock
12812 #: ../fish/guestfish-actions.pod:3307
12813 msgid "See also L</mke2journal>."
12814 msgstr ""
12815
12816 #. type: =head2
12817 #: ../fish/guestfish-actions.pod:3309
12818 msgid "mke2fs-JL"
12819 msgstr ""
12820
12821 #. type: verbatim
12822 #: ../fish/guestfish-actions.pod:3311
12823 #, no-wrap
12824 msgid ""
12825 " mke2fs-JL fstype blocksize device label\n"
12826 "\n"
12827 msgstr ""
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5111
12831 msgid ""
12832 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12833 "the journal labeled C<label>."
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3316
12838 msgid "See also L</mke2journal-L>."
12839 msgstr ""
12840
12841 #. type: =head2
12842 #: ../fish/guestfish-actions.pod:3318
12843 msgid "mke2fs-JU"
12844 msgstr ""
12845
12846 #. type: verbatim
12847 #: ../fish/guestfish-actions.pod:3320
12848 #, no-wrap
12849 msgid ""
12850 " mke2fs-JU fstype blocksize device uuid\n"
12851 "\n"
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5129
12856 msgid ""
12857 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12858 "the journal with UUID C<uuid>."
12859 msgstr ""
12860
12861 #. type: textblock
12862 #: ../fish/guestfish-actions.pod:3325
12863 msgid "See also L</mke2journal-U>."
12864 msgstr ""
12865
12866 #. type: =head2
12867 #: ../fish/guestfish-actions.pod:3327
12868 msgid "mke2journal"
12869 msgstr ""
12870
12871 #. type: verbatim
12872 #: ../fish/guestfish-actions.pod:3329
12873 #, no-wrap
12874 msgid ""
12875 " mke2journal blocksize device\n"
12876 "\n"
12877 msgstr ""
12878
12879 #. type: textblock
12880 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5145
12881 msgid ""
12882 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12883 "command:"
12884 msgstr ""
12885
12886 #. type: verbatim
12887 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5148
12888 #, no-wrap
12889 msgid ""
12890 " mke2fs -O journal_dev -b blocksize device\n"
12891 "\n"
12892 msgstr ""
12893
12894 #. type: =head2
12895 #: ../fish/guestfish-actions.pod:3336
12896 msgid "mke2journal-L"
12897 msgstr ""
12898
12899 #. type: verbatim
12900 #: ../fish/guestfish-actions.pod:3338
12901 #, no-wrap
12902 msgid ""
12903 " mke2journal-L blocksize label device\n"
12904 "\n"
12905 msgstr ""
12906
12907 #. type: textblock
12908 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5162
12909 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12910 msgstr ""
12911
12912 #. type: =head2
12913 #: ../fish/guestfish-actions.pod:3342
12914 msgid "mke2journal-U"
12915 msgstr ""
12916
12917 #. type: verbatim
12918 #: ../fish/guestfish-actions.pod:3344
12919 #, no-wrap
12920 msgid ""
12921 " mke2journal-U blocksize uuid device\n"
12922 "\n"
12923 msgstr ""
12924
12925 #. type: textblock
12926 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5176
12927 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12928 msgstr ""
12929
12930 #. type: =head2
12931 #: ../fish/guestfish-actions.pod:3348
12932 msgid "mkfifo"
12933 msgstr ""
12934
12935 #. type: verbatim
12936 #: ../fish/guestfish-actions.pod:3350
12937 #, no-wrap
12938 msgid ""
12939 " mkfifo mode path\n"
12940 "\n"
12941 msgstr ""
12942
12943 #. type: textblock
12944 #: ../fish/guestfish-actions.pod:3352
12945 msgid ""
12946 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12947 "is just a convenient wrapper around L</mknod>."
12948 msgstr ""
12949
12950 #. type: =head2
12951 #: ../fish/guestfish-actions.pod:3358
12952 msgid "mkfs"
12953 msgstr ""
12954
12955 #. type: verbatim
12956 #: ../fish/guestfish-actions.pod:3360
12957 #, no-wrap
12958 msgid ""
12959 " mkfs fstype device\n"
12960 "\n"
12961 msgstr ""
12962
12963 #. type: textblock
12964 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5206
12965 msgid ""
12966 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12967 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12968 msgstr ""
12969
12970 #. type: =head2
12971 #: ../fish/guestfish-actions.pod:3366
12972 msgid "mkfs-b"
12973 msgstr ""
12974
12975 #. type: verbatim
12976 #: ../fish/guestfish-actions.pod:3368
12977 #, no-wrap
12978 msgid ""
12979 " mkfs-b fstype blocksize device\n"
12980 "\n"
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:3370
12985 msgid ""
12986 "This call is similar to L</mkfs>, but it allows you to control the block "
12987 "size of the resulting filesystem.  Supported block sizes depend on the "
12988 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12989 msgstr ""
12990
12991 #. type: textblock
12992 #: ../fish/guestfish-actions.pod:3375 ../fish/guestfish-actions.pod:3402
12993 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5272
12994 msgid ""
12995 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12996 "cluster size."
12997 msgstr ""
12998
12999 #. type: textblock
13000 #: ../fish/guestfish-actions.pod:3378
13001 msgid ""
13002 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13003 "instead."
13004 msgstr ""
13005
13006 #. type: =head2
13007 #: ../fish/guestfish-actions.pod:3385
13008 msgid "mkfs-opts"
13009 msgstr ""
13010
13011 #. type: verbatim
13012 #: ../fish/guestfish-actions.pod:3387
13013 #, no-wrap
13014 msgid ""
13015 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13016 "\n"
13017 msgstr ""
13018
13019 #. type: textblock
13020 #: ../fish/guestfish-actions.pod:3389 ../src/guestfs-actions.pod:5259
13021 msgid ""
13022 "This function creates a filesystem on C<device>.  The filesystem type is "
13023 "C<fstype>, for example C<ext3>."
13024 msgstr ""
13025
13026 #. type: =item
13027 #: ../fish/guestfish-actions.pod:3396 ../src/guestfs-actions.pod:5266
13028 msgid "C<blocksize>"
13029 msgstr ""
13030
13031 #. type: textblock
13032 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5268
13033 msgid ""
13034 "The filesystem block size.  Supported block sizes depend on the filesystem "
13035 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13036 "filesystems."
13037 msgstr ""
13038
13039 #. type: textblock
13040 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5275
13041 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13042 msgstr ""
13043
13044 #. type: =item
13045 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5277
13046 msgid "C<features>"
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5279
13051 msgid "This passes the I<-O> parameter to the external mkfs program."
13052 msgstr ""
13053
13054 #. type: textblock
13055 #: ../fish/guestfish-actions.pod:3411 ../src/guestfs-actions.pod:5281
13056 msgid ""
13057 "For certain filesystem types, this allows extra filesystem features to be "
13058 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13059 msgstr ""
13060
13061 #. type: textblock
13062 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5285
13063 msgid ""
13064 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13065 "type."
13066 msgstr ""
13067
13068 #. type: =item
13069 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5288
13070 msgid "C<inode>"
13071 msgstr ""
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5290
13075 msgid ""
13076 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13077 "sets the inode size (only for ext2/3/4 filesystems at present)."
13078 msgstr ""
13079
13080 #. type: =item
13081 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5293
13082 msgid "C<sectorsize>"
13083 msgstr ""
13084
13085 #. type: textblock
13086 #: ../fish/guestfish-actions.pod:3425 ../src/guestfs-actions.pod:5295
13087 msgid ""
13088 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13089 "sets sector size for ufs filesystem."
13090 msgstr ""
13091
13092 #. type: =head2
13093 #: ../fish/guestfish-actions.pod:3432
13094 msgid "mkmountpoint"
13095 msgstr ""
13096
13097 #. type: verbatim
13098 #: ../fish/guestfish-actions.pod:3434
13099 #, no-wrap
13100 msgid ""
13101 " mkmountpoint exemptpath\n"
13102 "\n"
13103 msgstr ""
13104
13105 #. type: textblock
13106 #: ../fish/guestfish-actions.pod:3436
13107 msgid ""
13108 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13109 "to create extra mountpoints before mounting the first filesystem."
13110 msgstr ""
13111
13112 #. type: textblock
13113 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5338
13114 msgid ""
13115 "These calls are I<only> necessary in some very limited circumstances, mainly "
13116 "the case where you want to mount a mix of unrelated and/or read-only "
13117 "filesystems together."
13118 msgstr ""
13119
13120 #. type: textblock
13121 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5342
13122 msgid ""
13123 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13124 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13125 "inside that.  You can unpack this as follows in guestfish:"
13126 msgstr ""
13127
13128 #. type: verbatim
13129 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5347
13130 #, no-wrap
13131 msgid ""
13132 " add-ro Fedora-11-i686-Live.iso\n"
13133 " run\n"
13134 " mkmountpoint /cd\n"
13135 " mkmountpoint /sqsh\n"
13136 " mkmountpoint /ext3fs\n"
13137 " mount /dev/sda /cd\n"
13138 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13139 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13140 "\n"
13141 msgstr ""
13142
13143 #. type: textblock
13144 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5356
13145 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:3460
13150 msgid ""
13151 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13152 "unexpected errors if you try to mix these calls.  It is safest to manually "
13153 "unmount filesystems and remove mountpoints after use."
13154 msgstr ""
13155
13156 #. type: textblock
13157 #: ../fish/guestfish-actions.pod:3464
13158 msgid ""
13159 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13160 "for this to work for manual mountpoints, you must ensure that the innermost "
13161 "mountpoints have the longest pathnames, as in the example code above."
13162 msgstr ""
13163
13164 #. type: textblock
13165 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5367
13166 msgid ""
13167 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13168 msgstr ""
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:3471
13172 msgid ""
13173 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13174 "L</umount-all> to be called when the handle is closed which can also trigger "
13175 "these issues."
13176 msgstr ""
13177
13178 #. type: =head2
13179 #: ../fish/guestfish-actions.pod:3475
13180 msgid "mknod"
13181 msgstr ""
13182
13183 #. type: verbatim
13184 #: ../fish/guestfish-actions.pod:3477
13185 #, no-wrap
13186 msgid ""
13187 " mknod mode devmajor devminor path\n"
13188 "\n"
13189 msgstr ""
13190
13191 #. type: textblock
13192 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5386
13193 msgid ""
13194 "This call creates block or character special devices, or named pipes (FIFOs)."
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5389
13199 msgid ""
13200 "The C<mode> parameter should be the mode, using the standard constants.  "
13201 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13202 "used when creating block and character special devices."
13203 msgstr ""
13204
13205 #. type: textblock
13206 #: ../fish/guestfish-actions.pod:3487
13207 msgid ""
13208 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13209 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13210 "regular file).  These constants are available in the standard Linux header "
13211 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13212 "wrappers around this command which bitwise OR in the appropriate constant "
13213 "for you."
13214 msgstr ""
13215
13216 #. type: =head2
13217 #: ../fish/guestfish-actions.pod:3497
13218 msgid "mknod-b"
13219 msgstr ""
13220
13221 #. type: verbatim
13222 #: ../fish/guestfish-actions.pod:3499
13223 #, no-wrap
13224 msgid ""
13225 " mknod-b mode devmajor devminor path\n"
13226 "\n"
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3501
13231 msgid ""
13232 "This call creates a block device node called C<path> with mode C<mode> and "
13233 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13234 "wrapper around L</mknod>."
13235 msgstr ""
13236
13237 #. type: =head2
13238 #: ../fish/guestfish-actions.pod:3507
13239 msgid "mknod-c"
13240 msgstr ""
13241
13242 #. type: verbatim
13243 #: ../fish/guestfish-actions.pod:3509
13244 #, no-wrap
13245 msgid ""
13246 " mknod-c mode devmajor devminor path\n"
13247 "\n"
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../fish/guestfish-actions.pod:3511
13252 msgid ""
13253 "This call creates a char device node called C<path> with mode C<mode> and "
13254 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13255 "wrapper around L</mknod>."
13256 msgstr ""
13257
13258 #. type: =head2
13259 #: ../fish/guestfish-actions.pod:3517
13260 msgid "mkswap"
13261 msgstr ""
13262
13263 #. type: verbatim
13264 #: ../fish/guestfish-actions.pod:3519
13265 #, no-wrap
13266 msgid ""
13267 " mkswap device\n"
13268 "\n"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5452
13273 msgid "Create a swap partition on C<device>."
13274 msgstr ""
13275
13276 #. type: =head2
13277 #: ../fish/guestfish-actions.pod:3523
13278 msgid "mkswap-L"
13279 msgstr ""
13280
13281 #. type: verbatim
13282 #: ../fish/guestfish-actions.pod:3525
13283 #, no-wrap
13284 msgid ""
13285 " mkswap-L label device\n"
13286 "\n"
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5465
13291 msgid "Create a swap partition on C<device> with label C<label>."
13292 msgstr ""
13293
13294 #. type: textblock
13295 #: ../fish/guestfish-actions.pod:3529 ../src/guestfs-actions.pod:5467
13296 msgid ""
13297 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13298 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13299 "or swap tools."
13300 msgstr ""
13301
13302 #. type: =head2
13303 #: ../fish/guestfish-actions.pod:3533
13304 msgid "mkswap-U"
13305 msgstr ""
13306
13307 #. type: verbatim
13308 #: ../fish/guestfish-actions.pod:3535
13309 #, no-wrap
13310 msgid ""
13311 " mkswap-U uuid device\n"
13312 "\n"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5482
13317 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13318 msgstr ""
13319
13320 #. type: =head2
13321 #: ../fish/guestfish-actions.pod:3539
13322 msgid "mkswap-file"
13323 msgstr ""
13324
13325 #. type: verbatim
13326 #: ../fish/guestfish-actions.pod:3541
13327 #, no-wrap
13328 msgid ""
13329 " mkswap-file path\n"
13330 "\n"
13331 msgstr ""
13332
13333 #. type: textblock
13334 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5494
13335 msgid "Create a swap file."
13336 msgstr ""
13337
13338 #. type: textblock
13339 #: ../fish/guestfish-actions.pod:3545
13340 msgid ""
13341 "This command just writes a swap file signature to an existing file.  To "
13342 "create the file itself, use something like L</fallocate>."
13343 msgstr ""
13344
13345 #. type: =head2
13346 #: ../fish/guestfish-actions.pod:3548
13347 msgid "modprobe"
13348 msgstr ""
13349
13350 #. type: verbatim
13351 #: ../fish/guestfish-actions.pod:3550
13352 #, no-wrap
13353 msgid ""
13354 " modprobe modulename\n"
13355 "\n"
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5509
13360 msgid "This loads a kernel module in the appliance."
13361 msgstr ""
13362
13363 #. type: textblock
13364 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
13365 msgid ""
13366 "The kernel module must have been whitelisted when libguestfs was built (see "
13367 "C<appliance/kmod.whitelist.in> in the source)."
13368 msgstr ""
13369
13370 #. type: =head2
13371 #: ../fish/guestfish-actions.pod:3557
13372 msgid "mount"
13373 msgstr ""
13374
13375 #. type: verbatim
13376 #: ../fish/guestfish-actions.pod:3559
13377 #, no-wrap
13378 msgid ""
13379 " mount device mountpoint\n"
13380 "\n"
13381 msgstr ""
13382
13383 #. type: textblock
13384 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5525
13385 msgid ""
13386 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13387 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13388 "those block devices contain partitions, they will have the usual names (eg. "
13389 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13390 msgstr ""
13391
13392 #. type: textblock
13393 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5531
13394 msgid ""
13395 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13396 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13397 "mounted on directories which already exist."
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5536
13402 msgid ""
13403 "The mounted filesystem is writable, if we have sufficient permissions on the "
13404 "underlying device."
13405 msgstr ""
13406
13407 #. type: textblock
13408 #: ../fish/guestfish-actions.pod:3575
13409 msgid ""
13410 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13411 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13412 "problems for users.  If your program might need to work with older versions "
13413 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13414 "first parameter if you don't want any options)."
13415 msgstr ""
13416
13417 #. type: =head2
13418 #: ../fish/guestfish-actions.pod:3582
13419 msgid "mount-9p"
13420 msgstr ""
13421
13422 #. type: verbatim
13423 #: ../fish/guestfish-actions.pod:3584
13424 #, no-wrap
13425 msgid ""
13426 " mount-9p mounttag mountpoint [options:..]\n"
13427 "\n"
13428 msgstr ""
13429
13430 #. type: textblock
13431 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5565
13432 msgid ""
13433 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13434 "C<mountpoint>."
13435 msgstr ""
13436
13437 #. type: textblock
13438 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5568
13439 msgid ""
13440 "If required, C<trans=virtio> will be automatically added to the options.  "
13441 "Any other options required can be passed in the optional C<options> "
13442 "parameter."
13443 msgstr ""
13444
13445 #. type: =head2
13446 #: ../fish/guestfish-actions.pod:3595
13447 msgid "mount-loop"
13448 msgstr ""
13449
13450 #. type: verbatim
13451 #: ../fish/guestfish-actions.pod:3597
13452 #, no-wrap
13453 msgid ""
13454 " mount-loop file mountpoint\n"
13455 "\n"
13456 msgstr ""
13457
13458 #. type: textblock
13459 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5607
13460 msgid ""
13461 "This command lets you mount C<file> (a filesystem image in a file) on a "
13462 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13463 "mountpoint>."
13464 msgstr ""
13465
13466 #. type: =head2
13467 #: ../fish/guestfish-actions.pod:3603
13468 msgid "mount-options"
13469 msgstr ""
13470
13471 #. type: verbatim
13472 #: ../fish/guestfish-actions.pod:3605
13473 #, no-wrap
13474 msgid ""
13475 " mount-options options device mountpoint\n"
13476 "\n"
13477 msgstr ""
13478
13479 #. type: textblock
13480 #: ../fish/guestfish-actions.pod:3607
13481 msgid ""
13482 "This is the same as the L</mount> command, but it allows you to set the "
13483 "mount options as for the L<mount(8)> I<-o> flag."
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5627
13488 msgid ""
13489 "If the C<options> parameter is an empty string, then no options are passed "
13490 "(all options default to whatever the filesystem uses)."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:3615
13495 msgid "mount-ro"
13496 msgstr ""
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:3617
13500 #, no-wrap
13501 msgid ""
13502 " mount-ro device mountpoint\n"
13503 "\n"
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../fish/guestfish-actions.pod:3619
13508 msgid ""
13509 "This is the same as the L</mount> command, but it mounts the filesystem with "
13510 "the read-only (I<-o ro>) flag."
13511 msgstr ""
13512
13513 #. type: =head2
13514 #: ../fish/guestfish-actions.pod:3622
13515 msgid "mount-vfs"
13516 msgstr ""
13517
13518 #. type: verbatim
13519 #: ../fish/guestfish-actions.pod:3624
13520 #, no-wrap
13521 msgid ""
13522 " mount-vfs options vfstype device mountpoint\n"
13523 "\n"
13524 msgstr ""
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:3626
13528 msgid ""
13529 "This is the same as the L</mount> command, but it allows you to set both the "
13530 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13531 msgstr ""
13532
13533 #. type: =head2
13534 #: ../fish/guestfish-actions.pod:3630
13535 msgid "mountpoints"
13536 msgstr ""
13537
13538 #. type: verbatim
13539 #: ../fish/guestfish-actions.pod:3632
13540 #, no-wrap
13541 msgid ""
13542 " mountpoints\n"
13543 "\n"
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:3634
13548 msgid ""
13549 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13550 "This one returns a hash table (map) of device name to directory where the "
13551 "device is mounted."
13552 msgstr ""
13553
13554 #. type: =head2
13555 #: ../fish/guestfish-actions.pod:3638
13556 msgid "mounts"
13557 msgstr ""
13558
13559 #. type: verbatim
13560 #: ../fish/guestfish-actions.pod:3640
13561 #, no-wrap
13562 msgid ""
13563 " mounts\n"
13564 "\n"
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5688
13569 msgid ""
13570 "This returns the list of currently mounted filesystems.  It returns the list "
13571 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13572 msgstr ""
13573
13574 #. type: textblock
13575 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5691
13576 msgid "Some internal mounts are not shown."
13577 msgstr ""
13578
13579 #. type: textblock
13580 #: ../fish/guestfish-actions.pod:3647
13581 msgid "See also: L</mountpoints>"
13582 msgstr ""
13583
13584 #. type: =head2
13585 #: ../fish/guestfish-actions.pod:3649
13586 msgid "mv"
13587 msgstr ""
13588
13589 #. type: verbatim
13590 #: ../fish/guestfish-actions.pod:3651
13591 #, no-wrap
13592 msgid ""
13593 " mv src dest\n"
13594 "\n"
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5708
13599 msgid ""
13600 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13601 "destination filename or destination directory."
13602 msgstr ""
13603
13604 #. type: =head2
13605 #: ../fish/guestfish-actions.pod:3656
13606 msgid "ntfs-3g-probe"
13607 msgstr ""
13608
13609 #. type: verbatim
13610 #: ../fish/guestfish-actions.pod:3658
13611 #, no-wrap
13612 msgid ""
13613 " ntfs-3g-probe true|false device\n"
13614 "\n"
13615 msgstr ""
13616
13617 #. type: textblock
13618 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5722
13619 msgid ""
13620 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13621 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13622 "write, and some cannot be mounted at all)."
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5726
13627 msgid ""
13628 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13629 "can be mounted read-write.  Set it to false if you want to test if the "
13630 "volume can be mounted read-only."
13631 msgstr ""
13632
13633 #. type: textblock
13634 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5730
13635 msgid ""
13636 "The return value is an integer which C<0> if the operation would succeed, or "
13637 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13638 msgstr ""
13639
13640 #. type: =head2
13641 #: ../fish/guestfish-actions.pod:3672
13642 msgid "ntfsresize"
13643 msgstr ""
13644
13645 #. type: verbatim
13646 #: ../fish/guestfish-actions.pod:3674
13647 #, no-wrap
13648 msgid ""
13649 " ntfsresize device\n"
13650 "\n"
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3700
13655 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5783
13656 msgid ""
13657 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13658 "size of the underlying device."
13659 msgstr ""
13660
13661 #. type: textblock
13662 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5754
13663 msgid ""
13664 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13665 "consistency check (for safety).  You have to boot into Windows to perform "
13666 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13667 "resize filesystems which have been marked in this way.  So in effect it is "
13668 "not possible to call ntfsresize multiple times on a single filesystem "
13669 "without booting into Windows between each resize."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3726
13674 #: ../src/guestfs-actions.pod:5762 ../src/guestfs-actions.pod:5809
13675 msgid "See also L<ntfsresize(8)>."
13676 msgstr ""
13677
13678 #. type: textblock
13679 #: ../fish/guestfish-actions.pod:3689 ../fish/guestfish-actions.pod:3737
13680 msgid ""
13681 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13682 "call instead."
13683 msgstr ""
13684
13685 #. type: =head2
13686 #: ../fish/guestfish-actions.pod:3696
13687 msgid "ntfsresize-opts"
13688 msgstr ""
13689
13690 #. type: verbatim
13691 #: ../fish/guestfish-actions.pod:3698
13692 #, no-wrap
13693 msgid ""
13694 " ntfsresize-opts device [size:N] [force:true|false]\n"
13695 "\n"
13696 msgstr ""
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5792
13700 msgid ""
13701 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13702 "resized to fit the container (eg. partition)."
13703 msgstr ""
13704
13705 #. type: =item
13706 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:5033
13707 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7766
13708 msgid "C<force>"
13709 msgstr ""
13710
13711 #. type: textblock
13712 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5797
13713 msgid ""
13714 "If this option is true, then force the resize of the filesystem even if the "
13715 "filesystem is marked as requiring a consistency check."
13716 msgstr ""
13717
13718 #. type: textblock
13719 #: ../fish/guestfish-actions.pod:3717
13720 msgid ""
13721 "After the resize operation, the filesystem is always marked as requiring a "
13722 "consistency check (for safety).  You have to boot into Windows to perform "
13723 "this check and clear this condition.  If you I<don't> set the C<force> "
13724 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13725 "a single filesystem without booting into Windows between each resize."
13726 msgstr ""
13727
13728 #. type: =head2
13729 #: ../fish/guestfish-actions.pod:3730
13730 msgid "ntfsresize-size"
13731 msgstr ""
13732
13733 #. type: verbatim
13734 #: ../fish/guestfish-actions.pod:3732
13735 #, no-wrap
13736 msgid ""
13737 " ntfsresize-size device size\n"
13738 "\n"
13739 msgstr ""
13740
13741 #. type: textblock
13742 #: ../fish/guestfish-actions.pod:3734
13743 msgid ""
13744 "This command is the same as L</ntfsresize> except that it allows you to "
13745 "specify the new size (in bytes) explicitly."
13746 msgstr ""
13747
13748 #. type: =head2
13749 #: ../fish/guestfish-actions.pod:3744
13750 msgid "part-add"
13751 msgstr ""
13752
13753 #. type: verbatim
13754 #: ../fish/guestfish-actions.pod:3746
13755 #, no-wrap
13756 msgid ""
13757 " part-add device prlogex startsect endsect\n"
13758 "\n"
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../fish/guestfish-actions.pod:3748
13763 msgid ""
13764 "This command adds a partition to C<device>.  If there is no partition table "
13765 "on the device, call L</part-init> first."
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5870
13770 msgid ""
13771 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13772 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13773 "C<logical>) and C<e> (or C<extended>) partition types."
13774 msgstr ""
13775
13776 #. type: textblock
13777 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5875
13778 msgid ""
13779 "C<startsect> and C<endsect> are the start and end of the partition in "
13780 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13781 "from the end of the disk (C<-1> is the last sector)."
13782 msgstr ""
13783
13784 #. type: textblock
13785 #: ../fish/guestfish-actions.pod:3760
13786 msgid ""
13787 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13788 "part-disk> to do that."
13789 msgstr ""
13790
13791 #. type: =head2
13792 #: ../fish/guestfish-actions.pod:3763
13793 msgid "part-del"
13794 msgstr ""
13795
13796 #. type: verbatim
13797 #: ../fish/guestfish-actions.pod:3765
13798 #, no-wrap
13799 msgid ""
13800 " part-del device partnum\n"
13801 "\n"
13802 msgstr ""
13803
13804 #. type: textblock
13805 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5893
13806 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5895
13811 msgid ""
13812 "Note that in the case of MBR partitioning, deleting an extended partition "
13813 "also deletes any logical partitions it contains."
13814 msgstr ""
13815
13816 #. type: =head2
13817 #: ../fish/guestfish-actions.pod:3773
13818 msgid "part-disk"
13819 msgstr ""
13820
13821 #. type: verbatim
13822 #: ../fish/guestfish-actions.pod:3775
13823 #, no-wrap
13824 msgid ""
13825 " part-disk device parttype\n"
13826 "\n"
13827 msgstr ""
13828
13829 #. type: textblock
13830 #: ../fish/guestfish-actions.pod:3777
13831 msgid ""
13832 "This command is simply a combination of L</part-init> followed by L</part-"
13833 "add> to create a single primary partition covering the whole disk."
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:3781
13838 msgid ""
13839 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13840 "possible values are described in L</part-init>."
13841 msgstr ""
13842
13843 #. type: =head2
13844 #: ../fish/guestfish-actions.pod:3784
13845 msgid "part-get-bootable"
13846 msgstr ""
13847
13848 #. type: verbatim
13849 #: ../fish/guestfish-actions.pod:3786
13850 #, no-wrap
13851 msgid ""
13852 " part-get-bootable device partnum\n"
13853 "\n"
13854 msgstr ""
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5928
13858 msgid ""
13859 "This command returns true if the partition C<partnum> on C<device> has the "
13860 "bootable flag set."
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:3791
13865 msgid "See also L</part-set-bootable>."
13866 msgstr ""
13867
13868 #. type: =head2
13869 #: ../fish/guestfish-actions.pod:3793
13870 msgid "part-get-mbr-id"
13871 msgstr ""
13872
13873 #. type: verbatim
13874 #: ../fish/guestfish-actions.pod:3795
13875 #, no-wrap
13876 msgid ""
13877 " part-get-mbr-id device partnum\n"
13878 "\n"
13879 msgstr ""
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5944
13883 msgid ""
13884 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13885 "partition C<partnum>."
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3944
13890 msgid ""
13891 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13892 "undefined results for other partition table types (see L</part-get-"
13893 "parttype>)."
13894 msgstr ""
13895
13896 #. type: =head2
13897 #: ../fish/guestfish-actions.pod:3804
13898 msgid "part-get-parttype"
13899 msgstr ""
13900
13901 #. type: verbatim
13902 #: ../fish/guestfish-actions.pod:3806
13903 #, no-wrap
13904 msgid ""
13905 " part-get-parttype device\n"
13906 "\n"
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
13911 msgid ""
13912 "This command examines the partition table on C<device> and returns the "
13913 "partition table type (format) being used."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:3811
13918 msgid ""
13919 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13920 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13921 "possible, although unusual.  See L</part-init> for a full list."
13922 msgstr ""
13923
13924 #. type: =head2
13925 #: ../fish/guestfish-actions.pod:3816
13926 msgid "part-init"
13927 msgstr ""
13928
13929 #. type: verbatim
13930 #: ../fish/guestfish-actions.pod:3818
13931 #, no-wrap
13932 msgid ""
13933 " part-init device parttype\n"
13934 "\n"
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5981
13939 msgid ""
13940 "This creates an empty partition table on C<device> of one of the partition "
13941 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13942 "(for large disks)."
13943 msgstr ""
13944
13945 #. type: textblock
13946 #: ../fish/guestfish-actions.pod:3824
13947 msgid ""
13948 "Initially there are no partitions.  Following this, you should call L</part-"
13949 "add> for each partition required."
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5988
13954 msgid "Possible values for C<parttype> are:"
13955 msgstr ""
13956
13957 #. type: =item
13958 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5992
13959 msgid "B<efi>"
13960 msgstr ""
13961
13962 #. type: =item
13963 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5994
13964 msgid "B<gpt>"
13965 msgstr ""
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5996
13969 msgid "Intel EFI / GPT partition table."
13970 msgstr ""
13971
13972 #. type: textblock
13973 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5998
13974 msgid ""
13975 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13976 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13977 "the C<mbr> format."
13978 msgstr ""
13979
13980 #. type: =item
13981 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:6002
13982 msgid "B<mbr>"
13983 msgstr ""
13984
13985 #. type: =item
13986 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:6004
13987 msgid "B<msdos>"
13988 msgstr ""
13989
13990 #. type: textblock
13991 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:6006
13992 msgid ""
13993 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13994 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13995 "TB.  For large disks we recommend using C<gpt>."
13996 msgstr ""
13997
13998 #. type: textblock
13999 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6013
14000 msgid ""
14001 "Other partition table types that may work but are not supported include:"
14002 msgstr ""
14003
14004 #. type: =item
14005 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:6018
14006 msgid "B<aix>"
14007 msgstr ""
14008
14009 #. type: textblock
14010 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:6020
14011 msgid "AIX disk labels."
14012 msgstr ""
14013
14014 #. type: =item
14015 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:6022
14016 msgid "B<amiga>"
14017 msgstr ""
14018
14019 #. type: =item
14020 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6024
14021 msgid "B<rdb>"
14022 msgstr ""
14023
14024 #. type: textblock
14025 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6026
14026 msgid "Amiga \"Rigid Disk Block\" format."
14027 msgstr ""
14028
14029 #. type: =item
14030 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6028
14031 msgid "B<bsd>"
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6030
14036 msgid "BSD disk labels."
14037 msgstr ""
14038
14039 #. type: =item
14040 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:6032
14041 msgid "B<dasd>"
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6034
14046 msgid "DASD, used on IBM mainframes."
14047 msgstr ""
14048
14049 #. type: =item
14050 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6036
14051 msgid "B<dvh>"
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6038
14056 msgid "MIPS/SGI volumes."
14057 msgstr ""
14058
14059 #. type: =item
14060 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6040
14061 msgid "B<mac>"
14062 msgstr ""
14063
14064 #. type: textblock
14065 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:6042
14066 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14067 msgstr ""
14068
14069 #. type: =item
14070 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6044
14071 msgid "B<pc98>"
14072 msgstr ""
14073
14074 #. type: textblock
14075 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6046
14076 msgid "NEC PC-98 format, common in Japan apparently."
14077 msgstr ""
14078
14079 #. type: =item
14080 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6048
14081 msgid "B<sun>"
14082 msgstr ""
14083
14084 #. type: textblock
14085 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:6050
14086 msgid "Sun disk labels."
14087 msgstr ""
14088
14089 #. type: =head2
14090 #: ../fish/guestfish-actions.pod:3893
14091 msgid "part-list"
14092 msgstr ""
14093
14094 #. type: verbatim
14095 #: ../fish/guestfish-actions.pod:3895
14096 #, no-wrap
14097 msgid ""
14098 " part-list device\n"
14099 "\n"
14100 msgstr ""
14101
14102 #. type: textblock
14103 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:6064
14104 msgid ""
14105 "This command parses the partition table on C<device> and returns the list of "
14106 "partitions found."
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14111 msgid "The fields in the returned structure are:"
14112 msgstr ""
14113
14114 #. type: =item
14115 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
14116 msgid "B<part_num>"
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
14121 msgid "Partition number, counting from 1."
14122 msgstr ""
14123
14124 #. type: =item
14125 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6075
14126 msgid "B<part_start>"
14127 msgstr ""
14128
14129 #. type: textblock
14130 #: ../fish/guestfish-actions.pod:3910
14131 msgid ""
14132 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14133 "the device's sector size, see L</blockdev-getss>."
14134 msgstr ""
14135
14136 #. type: =item
14137 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6080
14138 msgid "B<part_end>"
14139 msgstr ""
14140
14141 #. type: textblock
14142 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6082
14143 msgid "End of the partition in bytes."
14144 msgstr ""
14145
14146 #. type: =item
14147 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6084
14148 msgid "B<part_size>"
14149 msgstr ""
14150
14151 #. type: textblock
14152 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6086
14153 msgid "Size of the partition in bytes."
14154 msgstr ""
14155
14156 #. type: =head2
14157 #: ../fish/guestfish-actions.pod:3923
14158 msgid "part-set-bootable"
14159 msgstr ""
14160
14161 #. type: verbatim
14162 #: ../fish/guestfish-actions.pod:3925
14163 #, no-wrap
14164 msgid ""
14165 " part-set-bootable device partnum true|false\n"
14166 "\n"
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6104
14171 msgid ""
14172 "This sets the bootable flag on partition numbered C<partnum> on device "
14173 "C<device>.  Note that partitions are numbered from 1."
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6107
14178 msgid ""
14179 "The bootable flag is used by some operating systems (notably Windows) to "
14180 "determine which partition to boot from.  It is by no means universally "
14181 "recognized."
14182 msgstr ""
14183
14184 #. type: =head2
14185 #: ../fish/guestfish-actions.pod:3934
14186 msgid "part-set-mbr-id"
14187 msgstr ""
14188
14189 #. type: verbatim
14190 #: ../fish/guestfish-actions.pod:3936
14191 #, no-wrap
14192 msgid ""
14193 " part-set-mbr-id device partnum idbyte\n"
14194 "\n"
14195 msgstr ""
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6123
14199 msgid ""
14200 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14201 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14202 "documentation are in fact hexadecimal numbers, but usually documented "
14203 "without any leading \"0x\" which might be confusing."
14204 msgstr ""
14205
14206 #. type: =head2
14207 #: ../fish/guestfish-actions.pod:3948
14208 msgid "part-set-name"
14209 msgstr ""
14210
14211 #. type: verbatim
14212 #: ../fish/guestfish-actions.pod:3950
14213 #, no-wrap
14214 msgid ""
14215 " part-set-name device partnum name\n"
14216 "\n"
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6145
14221 msgid ""
14222 "This sets the partition name on partition numbered C<partnum> on device "
14223 "C<device>.  Note that partitions are numbered from 1."
14224 msgstr ""
14225
14226 #. type: textblock
14227 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6148
14228 msgid ""
14229 "The partition name can only be set on certain types of partition table.  "
14230 "This works on C<gpt> but not on C<mbr> partitions."
14231 msgstr ""
14232
14233 #. type: =head2
14234 #: ../fish/guestfish-actions.pod:3958
14235 msgid "part-to-dev"
14236 msgstr ""
14237
14238 #. type: verbatim
14239 #: ../fish/guestfish-actions.pod:3960
14240 #, no-wrap
14241 msgid ""
14242 " part-to-dev partition\n"
14243 "\n"
14244 msgstr ""
14245
14246 #. type: textblock
14247 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6161
14248 msgid ""
14249 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14250 "partition number, returning the device name (eg. \"/dev/sdb\")."
14251 msgstr ""
14252
14253 #. type: textblock
14254 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:3978
14255 msgid ""
14256 "The named partition must exist, for example as a string returned from L</"
14257 "list-partitions>."
14258 msgstr ""
14259
14260 #. type: textblock
14261 #: ../fish/guestfish-actions.pod:3969
14262 msgid "See also L</part-to-partnum>."
14263 msgstr ""
14264
14265 #. type: =head2
14266 #: ../fish/guestfish-actions.pod:3971
14267 msgid "part-to-partnum"
14268 msgstr ""
14269
14270 #. type: verbatim
14271 #: ../fish/guestfish-actions.pod:3973
14272 #, no-wrap
14273 msgid ""
14274 " part-to-partnum partition\n"
14275 "\n"
14276 msgstr ""
14277
14278 #. type: textblock
14279 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6181
14280 msgid ""
14281 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14282 "partition number (eg. C<1>)."
14283 msgstr ""
14284
14285 #. type: textblock
14286 #: ../fish/guestfish-actions.pod:3981
14287 msgid "See also L</part-to-dev>."
14288 msgstr ""
14289
14290 #. type: =head2
14291 #: ../fish/guestfish-actions.pod:3983
14292 msgid "ping-daemon"
14293 msgstr ""
14294
14295 #. type: verbatim
14296 #: ../fish/guestfish-actions.pod:3985
14297 #, no-wrap
14298 msgid ""
14299 " ping-daemon\n"
14300 "\n"
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6198
14305 msgid ""
14306 "This is a test probe into the guestfs daemon running inside the qemu "
14307 "subprocess.  Calling this function checks that the daemon responds to the "
14308 "ping message, without affecting the daemon or attached block device(s) in "
14309 "any other way."
14310 msgstr ""
14311
14312 #. type: =head2
14313 #: ../fish/guestfish-actions.pod:3992
14314 msgid "pread"
14315 msgstr ""
14316
14317 #. type: verbatim
14318 #: ../fish/guestfish-actions.pod:3994
14319 #, no-wrap
14320 msgid ""
14321 " pread path count offset\n"
14322 "\n"
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6216
14327 msgid ""
14328 "This command lets you read part of a file.  It reads C<count> bytes of the "
14329 "file, starting at C<offset>, from file C<path>."
14330 msgstr ""
14331
14332 #. type: textblock
14333 #: ../fish/guestfish-actions.pod:3999 ../fish/guestfish-actions.pod:4014
14334 #: ../src/guestfs-actions.pod:6219 ../src/guestfs-actions.pod:6245
14335 msgid ""
14336 "This may read fewer bytes than requested.  For further details see the "
14337 "L<pread(2)> system call."
14338 msgstr ""
14339
14340 #. type: textblock
14341 #: ../fish/guestfish-actions.pod:4002
14342 msgid "See also L</pwrite>, L</pread-device>."
14343 msgstr ""
14344
14345 #. type: =head2
14346 #: ../fish/guestfish-actions.pod:4007
14347 msgid "pread-device"
14348 msgstr ""
14349
14350 #. type: verbatim
14351 #: ../fish/guestfish-actions.pod:4009
14352 #, no-wrap
14353 msgid ""
14354 " pread-device device count offset\n"
14355 "\n"
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:4011 ../src/guestfs-actions.pod:6242
14360 msgid ""
14361 "This command lets you read part of a file.  It reads C<count> bytes of "
14362 "C<device>, starting at C<offset>."
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:4017
14367 msgid "See also L</pread>."
14368 msgstr ""
14369
14370 #. type: =head2
14371 #: ../fish/guestfish-actions.pod:4022
14372 msgid "pvcreate"
14373 msgstr ""
14374
14375 #. type: verbatim
14376 #: ../fish/guestfish-actions.pod:4024
14377 #, no-wrap
14378 msgid ""
14379 " pvcreate device\n"
14380 "\n"
14381 msgstr ""
14382
14383 #. type: textblock
14384 #: ../fish/guestfish-actions.pod:4026 ../src/guestfs-actions.pod:6265
14385 msgid ""
14386 "This creates an LVM physical volume on the named C<device>, where C<device> "
14387 "should usually be a partition name such as C</dev/sda1>."
14388 msgstr ""
14389
14390 #. type: =head2
14391 #: ../fish/guestfish-actions.pod:4030
14392 msgid "pvremove"
14393 msgstr ""
14394
14395 #. type: verbatim
14396 #: ../fish/guestfish-actions.pod:4032
14397 #, no-wrap
14398 msgid ""
14399 " pvremove device\n"
14400 "\n"
14401 msgstr ""
14402
14403 #. type: textblock
14404 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6279
14405 msgid ""
14406 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14407 "it."
14408 msgstr ""
14409
14410 #. type: textblock
14411 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
14412 msgid ""
14413 "The implementation uses the C<pvremove> command which refuses to wipe "
14414 "physical volumes that contain any volume groups, so you have to remove those "
14415 "first."
14416 msgstr ""
14417
14418 #. type: =head2
14419 #: ../fish/guestfish-actions.pod:4041
14420 msgid "pvresize"
14421 msgstr ""
14422
14423 #. type: verbatim
14424 #: ../fish/guestfish-actions.pod:4043
14425 #, no-wrap
14426 msgid ""
14427 " pvresize device\n"
14428 "\n"
14429 msgstr ""
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
14433 msgid ""
14434 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14435 "the new size of the underlying device."
14436 msgstr ""
14437
14438 #. type: =head2
14439 #: ../fish/guestfish-actions.pod:4048
14440 msgid "pvresize-size"
14441 msgstr ""
14442
14443 #. type: verbatim
14444 #: ../fish/guestfish-actions.pod:4050
14445 #, no-wrap
14446 msgid ""
14447 " pvresize-size device size\n"
14448 "\n"
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:4052
14453 msgid ""
14454 "This command is the same as L</pvresize> except that it allows you to "
14455 "specify the new size (in bytes) explicitly."
14456 msgstr ""
14457
14458 #. type: =head2
14459 #: ../fish/guestfish-actions.pod:4055
14460 msgid "pvs"
14461 msgstr ""
14462
14463 #. type: verbatim
14464 #: ../fish/guestfish-actions.pod:4057
14465 #, no-wrap
14466 msgid ""
14467 " pvs\n"
14468 "\n"
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:4059 ../src/guestfs-actions.pod:6322
14473 msgid ""
14474 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14475 "(8)> command."
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6325
14480 msgid ""
14481 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14482 "sda2>)."
14483 msgstr ""
14484
14485 #. type: textblock
14486 #: ../fish/guestfish-actions.pod:4065
14487 msgid "See also L</pvs-full>."
14488 msgstr ""
14489
14490 #. type: =head2
14491 #: ../fish/guestfish-actions.pod:4067
14492 msgid "pvs-full"
14493 msgstr ""
14494
14495 #. type: verbatim
14496 #: ../fish/guestfish-actions.pod:4069
14497 #, no-wrap
14498 msgid ""
14499 " pvs-full\n"
14500 "\n"
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6341
14505 msgid ""
14506 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14507 "(8)> command.  The \"full\" version includes all fields."
14508 msgstr ""
14509
14510 #. type: =head2
14511 #: ../fish/guestfish-actions.pod:4074
14512 msgid "pvuuid"
14513 msgstr ""
14514
14515 #. type: verbatim
14516 #: ../fish/guestfish-actions.pod:4076
14517 #, no-wrap
14518 msgid ""
14519 " pvuuid device\n"
14520 "\n"
14521 msgstr ""
14522
14523 #. type: textblock
14524 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6356
14525 msgid "This command returns the UUID of the LVM PV C<device>."
14526 msgstr ""
14527
14528 #. type: =head2
14529 #: ../fish/guestfish-actions.pod:4080
14530 msgid "pwrite"
14531 msgstr ""
14532
14533 #. type: verbatim
14534 #: ../fish/guestfish-actions.pod:4082
14535 #, no-wrap
14536 msgid ""
14537 " pwrite path content offset\n"
14538 "\n"
14539 msgstr ""
14540
14541 #. type: textblock
14542 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6372
14543 msgid ""
14544 "This command writes to part of a file.  It writes the data buffer C<content> "
14545 "to the file C<path> starting at offset C<offset>."
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6375
14550 msgid ""
14551 "This command implements the L<pwrite(2)> system call, and like that system "
14552 "call it may not write the full data requested.  The return value is the "
14553 "number of bytes that were actually written to the file.  This could even be "
14554 "0, although short writes are unlikely for regular files in ordinary "
14555 "circumstances."
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../fish/guestfish-actions.pod:4093
14560 msgid "See also L</pread>, L</pwrite-device>."
14561 msgstr ""
14562
14563 #. type: =head2
14564 #: ../fish/guestfish-actions.pod:4098
14565 msgid "pwrite-device"
14566 msgstr ""
14567
14568 #. type: verbatim
14569 #: ../fish/guestfish-actions.pod:4100
14570 #, no-wrap
14571 msgid ""
14572 " pwrite-device device content offset\n"
14573 "\n"
14574 msgstr ""
14575
14576 #. type: textblock
14577 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6399
14578 msgid ""
14579 "This command writes to part of a device.  It writes the data buffer "
14580 "C<content> to C<device> starting at offset C<offset>."
14581 msgstr ""
14582
14583 #. type: textblock
14584 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6402
14585 msgid ""
14586 "This command implements the L<pwrite(2)> system call, and like that system "
14587 "call it may not write the full data requested (although short writes to disk "
14588 "devices and partitions are probably impossible with standard Linux kernels)."
14589 msgstr ""
14590
14591 #. type: textblock
14592 #: ../fish/guestfish-actions.pod:4110
14593 msgid "See also L</pwrite>."
14594 msgstr ""
14595
14596 #. type: =head2
14597 #: ../fish/guestfish-actions.pod:4115
14598 msgid "read-file"
14599 msgstr ""
14600
14601 #. type: verbatim
14602 #: ../fish/guestfish-actions.pod:4117
14603 #, no-wrap
14604 msgid ""
14605 " read-file path\n"
14606 "\n"
14607 msgstr ""
14608
14609 #. type: textblock
14610 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6423
14611 msgid "This calls returns the contents of the file C<path> as a buffer."
14612 msgstr ""
14613
14614 #. type: textblock
14615 #: ../fish/guestfish-actions.pod:4122
14616 msgid ""
14617 "Unlike L</cat>, this function can correctly handle files that contain "
14618 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14619 "is limited in the total size of file that can be handled."
14620 msgstr ""
14621
14622 #. type: =head2
14623 #: ../fish/guestfish-actions.pod:4130
14624 msgid "read-lines"
14625 msgstr ""
14626
14627 #. type: verbatim
14628 #: ../fish/guestfish-actions.pod:4132
14629 #, no-wrap
14630 msgid ""
14631 " read-lines path\n"
14632 "\n"
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6448
14637 msgid ""
14638 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14639 "C<CRLF> character sequences are I<not> returned."
14640 msgstr ""
14641
14642 #. type: textblock
14643 #: ../fish/guestfish-actions.pod:4139
14644 msgid ""
14645 "Note that this function cannot correctly handle binary files (specifically, "
14646 "files containing C<\\0> character which is treated as end of line).  For "
14647 "those you need to use the L</read-file> function which has a more complex "
14648 "interface."
14649 msgstr ""
14650
14651 #. type: =head2
14652 #: ../fish/guestfish-actions.pod:4144
14653 msgid "readdir"
14654 msgstr ""
14655
14656 #. type: verbatim
14657 #: ../fish/guestfish-actions.pod:4146
14658 #, no-wrap
14659 msgid ""
14660 " readdir dir\n"
14661 "\n"
14662 msgstr ""
14663
14664 #. type: textblock
14665 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6468
14666 msgid "This returns the list of directory entries in directory C<dir>."
14667 msgstr ""
14668
14669 #. type: textblock
14670 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6470
14671 msgid ""
14672 "All entries in the directory are returned, including C<.> and C<..>.  The "
14673 "entries are I<not> sorted, but returned in the same order as the underlying "
14674 "filesystem."
14675 msgstr ""
14676
14677 #. type: textblock
14678 #: ../fish/guestfish-actions.pod:4154 ../src/guestfs-actions.pod:6474
14679 msgid ""
14680 "Also this call returns basic file type information about each file.  The "
14681 "C<ftyp> field will contain one of the following characters:"
14682 msgstr ""
14683
14684 #. type: =item
14685 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6479
14686 msgid "'b'"
14687 msgstr ""
14688
14689 #. type: textblock
14690 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6481
14691 msgid "Block special"
14692 msgstr ""
14693
14694 #. type: =item
14695 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6483
14696 msgid "'c'"
14697 msgstr ""
14698
14699 #. type: textblock
14700 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6485
14701 msgid "Char special"
14702 msgstr ""
14703
14704 #. type: =item
14705 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6487
14706 msgid "'d'"
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6489
14711 msgid "Directory"
14712 msgstr ""
14713
14714 #. type: =item
14715 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6491
14716 msgid "'f'"
14717 msgstr ""
14718
14719 #. type: textblock
14720 #: ../fish/guestfish-actions.pod:4173 ../src/guestfs-actions.pod:6493
14721 msgid "FIFO (named pipe)"
14722 msgstr ""
14723
14724 #. type: =item
14725 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6495
14726 msgid "'l'"
14727 msgstr ""
14728
14729 #. type: textblock
14730 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6497
14731 msgid "Symbolic link"
14732 msgstr ""
14733
14734 #. type: =item
14735 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6499
14736 msgid "'r'"
14737 msgstr ""
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:4181 ../src/guestfs-actions.pod:6501
14741 msgid "Regular file"
14742 msgstr ""
14743
14744 #. type: =item
14745 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6503
14746 msgid "'s'"
14747 msgstr ""
14748
14749 #. type: textblock
14750 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6505
14751 msgid "Socket"
14752 msgstr ""
14753
14754 #. type: =item
14755 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6507
14756 msgid "'u'"
14757 msgstr ""
14758
14759 #. type: textblock
14760 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6509
14761 msgid "Unknown file type"
14762 msgstr ""
14763
14764 #. type: =item
14765 #: ../fish/guestfish-actions.pod:4191 ../src/guestfs-actions.pod:6511
14766 msgid "'?'"
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6513
14771 msgid ""
14772 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../fish/guestfish-actions.pod:4198
14777 msgid ""
14778 "This function is primarily intended for use by programs.  To get a simple "
14779 "list of names, use L</ls>.  To get a printable directory for human "
14780 "consumption, use L</ll>."
14781 msgstr ""
14782
14783 #. type: =head2
14784 #: ../fish/guestfish-actions.pod:4202
14785 msgid "readlink"
14786 msgstr ""
14787
14788 #. type: verbatim
14789 #: ../fish/guestfish-actions.pod:4204
14790 #, no-wrap
14791 msgid ""
14792 " readlink path\n"
14793 "\n"
14794 msgstr ""
14795
14796 #. type: textblock
14797 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6534
14798 msgid "This command reads the target of a symbolic link."
14799 msgstr ""
14800
14801 #. type: =head2
14802 #: ../fish/guestfish-actions.pod:4208
14803 msgid "readlinklist"
14804 msgstr ""
14805
14806 #. type: verbatim
14807 #: ../fish/guestfish-actions.pod:4210
14808 #, no-wrap
14809 msgid ""
14810 " readlinklist path 'names ...'\n"
14811 "\n"
14812 msgstr ""
14813
14814 #. type: textblock
14815 #: ../fish/guestfish-actions.pod:4212 ../src/guestfs-actions.pod:6548
14816 msgid ""
14817 "This call allows you to do a C<readlink> operation on multiple files, where "
14818 "all files are in the directory C<path>.  C<names> is the list of files from "
14819 "this directory."
14820 msgstr ""
14821
14822 #. type: textblock
14823 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6552
14824 msgid ""
14825 "On return you get a list of strings, with a one-to-one correspondence to the "
14826 "C<names> list.  Each string is the value of the symbolic link."
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6556
14831 msgid ""
14832 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14833 "result string is the empty string C<\"\">.  However the whole operation is "
14834 "completed even if there were C<readlink(2)> errors, and so you can call this "
14835 "function with names where you don't know if they are symbolic links already "
14836 "(albeit slightly less efficient)."
14837 msgstr ""
14838
14839 #. type: textblock
14840 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6563
14841 msgid ""
14842 "This call is intended for programs that want to efficiently list a directory "
14843 "contents without making many round-trips.  Very long directory listings "
14844 "might cause the protocol message size to be exceeded, causing this call to "
14845 "fail.  The caller must split up such requests into smaller groups of names."
14846 msgstr ""
14847
14848 #. type: =head2
14849 #: ../fish/guestfish-actions.pod:4234
14850 msgid "realpath"
14851 msgstr ""
14852
14853 #. type: verbatim
14854 #: ../fish/guestfish-actions.pod:4236
14855 #, no-wrap
14856 msgid ""
14857 " realpath path\n"
14858 "\n"
14859 msgstr ""
14860
14861 #. type: textblock
14862 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6582
14863 msgid ""
14864 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14865 "has no C<.>, C<..> or symbolic link path elements."
14866 msgstr ""
14867
14868 #. type: =head2
14869 #: ../fish/guestfish-actions.pod:4241
14870 msgid "removexattr"
14871 msgstr ""
14872
14873 #. type: verbatim
14874 #: ../fish/guestfish-actions.pod:4243
14875 #, no-wrap
14876 msgid ""
14877 " removexattr xattr path\n"
14878 "\n"
14879 msgstr ""
14880
14881 #. type: textblock
14882 #: ../fish/guestfish-actions.pod:4245 ../src/guestfs-actions.pod:6597
14883 msgid ""
14884 "This call removes the extended attribute named C<xattr> of the file C<path>."
14885 msgstr ""
14886
14887 #. type: textblock
14888 #: ../fish/guestfish-actions.pod:4248
14889 msgid "See also: L</lremovexattr>, L<attr(5)>."
14890 msgstr ""
14891
14892 #. type: =head2
14893 #: ../fish/guestfish-actions.pod:4250
14894 msgid "resize2fs"
14895 msgstr ""
14896
14897 #. type: verbatim
14898 #: ../fish/guestfish-actions.pod:4252
14899 #, no-wrap
14900 msgid ""
14901 " resize2fs device\n"
14902 "\n"
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6612
14907 msgid ""
14908 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14909 "underlying device."
14910 msgstr ""
14911
14912 #. type: textblock
14913 #: ../fish/guestfish-actions.pod:4257
14914 msgid ""
14915 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14916 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14917 "gives an error about this and sometimes not.  In any case, it is always safe "
14918 "to call L</e2fsck-f> before calling this function."
14919 msgstr ""
14920
14921 #. type: =head2
14922 #: ../fish/guestfish-actions.pod:4263
14923 msgid "resize2fs-M"
14924 msgstr ""
14925
14926 #. type: verbatim
14927 #: ../fish/guestfish-actions.pod:4265
14928 #, no-wrap
14929 msgid ""
14930 " resize2fs-M device\n"
14931 "\n"
14932 msgstr ""
14933
14934 #. type: textblock
14935 #: ../fish/guestfish-actions.pod:4267
14936 msgid ""
14937 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14938 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14939 "command."
14940 msgstr ""
14941
14942 #. type: textblock
14943 #: ../fish/guestfish-actions.pod:4271
14944 msgid ""
14945 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14946 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14947 "multiplied together, give the resulting size of the minimal filesystem in "
14948 "bytes."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../fish/guestfish-actions.pod:4276
14953 msgid "resize2fs-size"
14954 msgstr ""
14955
14956 #. type: verbatim
14957 #: ../fish/guestfish-actions.pod:4278
14958 #, no-wrap
14959 msgid ""
14960 " resize2fs-size device size\n"
14961 "\n"
14962 msgstr ""
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-actions.pod:4280
14966 msgid ""
14967 "This command is the same as L</resize2fs> except that it allows you to "
14968 "specify the new size (in bytes) explicitly."
14969 msgstr ""
14970
14971 #. type: =head2
14972 #: ../fish/guestfish-actions.pod:4283
14973 msgid "rm"
14974 msgstr ""
14975
14976 #. type: verbatim
14977 #: ../fish/guestfish-actions.pod:4285
14978 #, no-wrap
14979 msgid ""
14980 " rm path\n"
14981 "\n"
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6664
14986 msgid "Remove the single file C<path>."
14987 msgstr ""
14988
14989 #. type: =head2
14990 #: ../fish/guestfish-actions.pod:4289
14991 msgid "rm-rf"
14992 msgstr ""
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-actions.pod:4291
14996 #, no-wrap
14997 msgid ""
14998 " rm-rf path\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6676
15004 msgid ""
15005 "Remove the file or directory C<path>, recursively removing the contents if "
15006 "its a directory.  This is like the C<rm -rf> shell command."
15007 msgstr ""
15008
15009 #. type: =head2
15010 #: ../fish/guestfish-actions.pod:4297
15011 msgid "rmdir"
15012 msgstr ""
15013
15014 #. type: verbatim
15015 #: ../fish/guestfish-actions.pod:4299
15016 #, no-wrap
15017 msgid ""
15018 " rmdir path\n"
15019 "\n"
15020 msgstr ""
15021
15022 #. type: textblock
15023 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6690
15024 msgid "Remove the single directory C<path>."
15025 msgstr ""
15026
15027 #. type: =head2
15028 #: ../fish/guestfish-actions.pod:4303
15029 msgid "rmmountpoint"
15030 msgstr ""
15031
15032 #. type: verbatim
15033 #: ../fish/guestfish-actions.pod:4305
15034 #, no-wrap
15035 msgid ""
15036 " rmmountpoint exemptpath\n"
15037 "\n"
15038 msgstr ""
15039
15040 #. type: textblock
15041 #: ../fish/guestfish-actions.pod:4307
15042 msgid ""
15043 "This calls removes a mountpoint that was previously created with L</"
15044 "mkmountpoint>.  See L</mkmountpoint> for full details."
15045 msgstr ""
15046
15047 #. type: =head2
15048 #: ../fish/guestfish-actions.pod:4311
15049 msgid "scrub-device"
15050 msgstr ""
15051
15052 #. type: verbatim
15053 #: ../fish/guestfish-actions.pod:4313
15054 #, no-wrap
15055 msgid ""
15056 " scrub-device device\n"
15057 "\n"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6716
15062 msgid ""
15063 "This command writes patterns over C<device> to make data retrieval more "
15064 "difficult."
15065 msgstr ""
15066
15067 #. type: textblock
15068 #: ../fish/guestfish-actions.pod:4318 ../fish/guestfish-actions.pod:4330
15069 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6719
15070 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6756
15071 msgid ""
15072 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15073 "more details."
15074 msgstr ""
15075
15076 #. type: =head2
15077 #: ../fish/guestfish-actions.pod:4321
15078 msgid "scrub-file"
15079 msgstr ""
15080
15081 #. type: verbatim
15082 #: ../fish/guestfish-actions.pod:4323
15083 #, no-wrap
15084 msgid ""
15085 " scrub-file file\n"
15086 "\n"
15087 msgstr ""
15088
15089 #. type: textblock
15090 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6732
15091 msgid ""
15092 "This command writes patterns over a file to make data retrieval more "
15093 "difficult."
15094 msgstr ""
15095
15096 #. type: textblock
15097 #: ../fish/guestfish-actions.pod:4328 ../src/guestfs-actions.pod:6735
15098 msgid "The file is I<removed> after scrubbing."
15099 msgstr ""
15100
15101 #. type: =head2
15102 #: ../fish/guestfish-actions.pod:4333
15103 msgid "scrub-freespace"
15104 msgstr ""
15105
15106 #. type: verbatim
15107 #: ../fish/guestfish-actions.pod:4335
15108 #, no-wrap
15109 msgid ""
15110 " scrub-freespace dir\n"
15111 "\n"
15112 msgstr ""
15113
15114 #. type: textblock
15115 #: ../fish/guestfish-actions.pod:4337
15116 msgid ""
15117 "This command creates the directory C<dir> and then fills it with files until "
15118 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15119 "deletes them.  The intention is to scrub any free space on the partition "
15120 "containing C<dir>."
15121 msgstr ""
15122
15123 #. type: =head2
15124 #: ../fish/guestfish-actions.pod:4346
15125 msgid "set-append"
15126 msgstr ""
15127
15128 #. type: =head2
15129 #: ../fish/guestfish-actions.pod:4348
15130 msgid "append"
15131 msgstr ""
15132
15133 #. type: verbatim
15134 #: ../fish/guestfish-actions.pod:4350
15135 #, no-wrap
15136 msgid ""
15137 " set-append append\n"
15138 "\n"
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-actions.pod:4352 ../src/guestfs-actions.pod:6769
15143 msgid ""
15144 "This function is used to add additional options to the guest kernel command "
15145 "line."
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6772
15150 msgid ""
15151 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15152 "environment variable."
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6775
15157 msgid ""
15158 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15159 "(libguestfs always adds a few of its own)."
15160 msgstr ""
15161
15162 #. type: =head2
15163 #: ../fish/guestfish-actions.pod:4361
15164 msgid "set-attach-method"
15165 msgstr ""
15166
15167 #. type: =head2
15168 #: ../fish/guestfish-actions.pod:4363
15169 msgid "attach-method"
15170 msgstr ""
15171
15172 #. type: verbatim
15173 #: ../fish/guestfish-actions.pod:4365
15174 #, no-wrap
15175 msgid ""
15176 " set-attach-method attachmethod\n"
15177 "\n"
15178 msgstr ""
15179
15180 #. type: textblock
15181 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15182 msgid ""
15183 "Set the method that libguestfs uses to connect to the back end guestfsd "
15184 "daemon.  Possible methods are:"
15185 msgstr ""
15186
15187 #. type: =item
15188 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6793
15189 #: ../src/guestfs.pod:2916
15190 msgid "C<appliance>"
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../fish/guestfish-actions.pod:4374 ../src/guestfs-actions.pod:6795
15195 msgid ""
15196 "Launch an appliance and connect to it.  This is the ordinary method and the "
15197 "default."
15198 msgstr ""
15199
15200 #. type: =item
15201 #: ../fish/guestfish-actions.pod:4377 ../src/guestfs-actions.pod:6798
15202 msgid "C<unix:I<path>>"
15203 msgstr ""
15204
15205 #. type: textblock
15206 #: ../fish/guestfish-actions.pod:4379 ../src/guestfs-actions.pod:6800
15207 msgid "Connect to the Unix domain socket I<path>."
15208 msgstr ""
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6802
15212 msgid ""
15213 "This method lets you connect to an existing daemon or (using virtio-serial) "
15214 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15215 "RUNNING DAEMONS>."
15216 msgstr ""
15217
15218 #. type: =head2
15219 #: ../fish/guestfish-actions.pod:4387
15220 msgid "set-autosync"
15221 msgstr ""
15222
15223 #. type: =head2
15224 #: ../fish/guestfish-actions.pod:4389
15225 msgid "autosync"
15226 msgstr ""
15227
15228 #. type: verbatim
15229 #: ../fish/guestfish-actions.pod:4391
15230 #, no-wrap
15231 msgid ""
15232 " set-autosync true|false\n"
15233 "\n"
15234 msgstr ""
15235
15236 #. type: textblock
15237 #: ../fish/guestfish-actions.pod:4393 ../src/guestfs-actions.pod:6818
15238 msgid ""
15239 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15240 "effort attempt to make filesystems consistent and synchronized when the "
15241 "handle is closed (also if the program exits without closing handles)."
15242 msgstr ""
15243
15244 #. type: textblock
15245 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6823
15246 msgid ""
15247 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15248 "disabled by default)."
15249 msgstr ""
15250
15251 #. type: =head2
15252 #: ../fish/guestfish-actions.pod:4401
15253 msgid "set-direct"
15254 msgstr ""
15255
15256 #. type: =head2
15257 #: ../fish/guestfish-actions.pod:4403
15258 msgid "direct"
15259 msgstr ""
15260
15261 #. type: verbatim
15262 #: ../fish/guestfish-actions.pod:4405
15263 #, no-wrap
15264 msgid ""
15265 " set-direct true|false\n"
15266 "\n"
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:4407 ../src/guestfs-actions.pod:6836
15271 msgid ""
15272 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15273 "passed directly through to the appliance once it is launched."
15274 msgstr ""
15275
15276 #. type: textblock
15277 #: ../fish/guestfish-actions.pod:4411
15278 msgid ""
15279 "One consequence of this is that log messages aren't caught by the library "
15280 "and handled by L</set-log-message-callback>, but go straight to stdout."
15281 msgstr ""
15282
15283 #. type: textblock
15284 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6844
15285 msgid "You probably don't want to use this unless you know what you are doing."
15286 msgstr ""
15287
15288 #. type: textblock
15289 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6847
15290 msgid "The default is disabled."
15291 msgstr ""
15292
15293 #. type: =head2
15294 #: ../fish/guestfish-actions.pod:4420
15295 msgid "set-e2label"
15296 msgstr ""
15297
15298 #. type: verbatim
15299 #: ../fish/guestfish-actions.pod:4422
15300 #, no-wrap
15301 msgid ""
15302 " set-e2label device label\n"
15303 "\n"
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6860
15308 msgid ""
15309 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15310 "C<label>.  Filesystem labels are limited to 16 characters."
15311 msgstr ""
15312
15313 #. type: textblock
15314 #: ../fish/guestfish-actions.pod:4428
15315 msgid ""
15316 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15317 "label on a filesystem."
15318 msgstr ""
15319
15320 #. type: =head2
15321 #: ../fish/guestfish-actions.pod:4431
15322 msgid "set-e2uuid"
15323 msgstr ""
15324
15325 #. type: verbatim
15326 #: ../fish/guestfish-actions.pod:4433
15327 #, no-wrap
15328 msgid ""
15329 " set-e2uuid device uuid\n"
15330 "\n"
15331 msgstr ""
15332
15333 #. type: textblock
15334 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6878
15335 msgid ""
15336 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15337 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15338 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15339 msgstr ""
15340
15341 #. type: textblock
15342 #: ../fish/guestfish-actions.pod:4440
15343 msgid ""
15344 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15345 "UUID of a filesystem."
15346 msgstr ""
15347
15348 #. type: =head2
15349 #: ../fish/guestfish-actions.pod:4443
15350 msgid "set-memsize"
15351 msgstr ""
15352
15353 #. type: =head2
15354 #: ../fish/guestfish-actions.pod:4445
15355 msgid "memsize"
15356 msgstr ""
15357
15358 #. type: verbatim
15359 #: ../fish/guestfish-actions.pod:4447
15360 #, no-wrap
15361 msgid ""
15362 " set-memsize memsize\n"
15363 "\n"
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../fish/guestfish-actions.pod:4449
15368 msgid ""
15369 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15370 "This only has any effect if called before L</launch>."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6900
15375 msgid ""
15376 "You can also change this by setting the environment variable "
15377 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15378 msgstr ""
15379
15380 #. type: =head2
15381 #: ../fish/guestfish-actions.pod:4460
15382 msgid "set-network"
15383 msgstr ""
15384
15385 #. type: =head2
15386 #: ../fish/guestfish-actions.pod:4462
15387 msgid "network"
15388 msgstr ""
15389
15390 #. type: verbatim
15391 #: ../fish/guestfish-actions.pod:4464
15392 #, no-wrap
15393 msgid ""
15394 " set-network true|false\n"
15395 "\n"
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6917
15400 msgid ""
15401 "If C<network> is true, then the network is enabled in the libguestfs "
15402 "appliance.  The default is false."
15403 msgstr ""
15404
15405 #. type: textblock
15406 #: ../fish/guestfish-actions.pod:4469 ../src/guestfs-actions.pod:6920
15407 msgid ""
15408 "This affects whether commands are able to access the network (see L<guestfs"
15409 "(3)/RUNNING COMMANDS>)."
15410 msgstr ""
15411
15412 #. type: textblock
15413 #: ../fish/guestfish-actions.pod:4472
15414 msgid ""
15415 "You must call this before calling L</launch>, otherwise it has no effect."
15416 msgstr ""
15417
15418 #. type: =head2
15419 #: ../fish/guestfish-actions.pod:4475
15420 msgid "set-path"
15421 msgstr ""
15422
15423 #. type: verbatim
15424 #: ../fish/guestfish-actions.pod:4479
15425 #, no-wrap
15426 msgid ""
15427 " set-path searchpath\n"
15428 "\n"
15429 msgstr ""
15430
15431 #. type: textblock
15432 #: ../fish/guestfish-actions.pod:4481 ../src/guestfs-actions.pod:6936
15433 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15434 msgstr ""
15435
15436 #. type: textblock
15437 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6938
15438 msgid ""
15439 "The default is C<$libdir/guestfs> unless overridden by setting "
15440 "C<LIBGUESTFS_PATH> environment variable."
15441 msgstr ""
15442
15443 #. type: textblock
15444 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6941
15445 msgid "Setting C<path> to C<NULL> restores the default path."
15446 msgstr ""
15447
15448 #. type: =head2
15449 #: ../fish/guestfish-actions.pod:4488
15450 msgid "set-pgroup"
15451 msgstr ""
15452
15453 #. type: =head2
15454 #: ../fish/guestfish-actions.pod:4490
15455 msgid "pgroup"
15456 msgstr ""
15457
15458 #. type: verbatim
15459 #: ../fish/guestfish-actions.pod:4492
15460 #, no-wrap
15461 msgid ""
15462 " set-pgroup true|false\n"
15463 "\n"
15464 msgstr ""
15465
15466 #. type: textblock
15467 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6953
15468 msgid ""
15469 "If C<pgroup> is true, child processes are placed into their own process "
15470 "group."
15471 msgstr ""
15472
15473 #. type: textblock
15474 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6956
15475 msgid ""
15476 "The practical upshot of this is that signals like C<SIGINT> (from users "
15477 "pressing C<^C>) won't be received by the child process."
15478 msgstr ""
15479
15480 #. type: textblock
15481 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6959
15482 msgid ""
15483 "The default for this flag is false, because usually you want C<^C> to kill "
15484 "the subprocess."
15485 msgstr ""
15486
15487 #. type: =head2
15488 #: ../fish/guestfish-actions.pod:4503
15489 msgid "set-qemu"
15490 msgstr ""
15491
15492 #. type: =head2
15493 #: ../fish/guestfish-actions.pod:4505
15494 msgid "qemu"
15495 msgstr ""
15496
15497 #. type: verbatim
15498 #: ../fish/guestfish-actions.pod:4507
15499 #, no-wrap
15500 msgid ""
15501 " set-qemu qemu\n"
15502 "\n"
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6972
15507 msgid "Set the qemu binary that we will use."
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6974
15512 msgid ""
15513 "The default is chosen when the library was compiled by the configure script."
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6977
15518 msgid ""
15519 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15520 "variable."
15521 msgstr ""
15522
15523 #. type: textblock
15524 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6980
15525 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15526 msgstr ""
15527
15528 #. type: textblock
15529 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6982
15530 msgid ""
15531 "Note that you should call this function as early as possible after creating "
15532 "the handle.  This is because some pre-launch operations depend on testing "
15533 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15534 "don't retest features, and so you might see inconsistent results.  Using the "
15535 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15536 "the qemu binary at the same time as the handle is created."
15537 msgstr ""
15538
15539 #. type: =head2
15540 #: ../fish/guestfish-actions.pod:4527
15541 msgid "set-recovery-proc"
15542 msgstr ""
15543
15544 #. type: =head2
15545 #: ../fish/guestfish-actions.pod:4529
15546 msgid "recovery-proc"
15547 msgstr ""
15548
15549 #. type: verbatim
15550 #: ../fish/guestfish-actions.pod:4531
15551 #, no-wrap
15552 msgid ""
15553 " set-recovery-proc true|false\n"
15554 "\n"
15555 msgstr ""
15556
15557 #. type: textblock
15558 #: ../fish/guestfish-actions.pod:4533
15559 msgid ""
15560 "If this is called with the parameter C<false> then L</launch> does not "
15561 "create a recovery process.  The purpose of the recovery process is to stop "
15562 "runaway qemu processes in the case where the main program aborts abruptly."
15563 msgstr ""
15564
15565 #. type: textblock
15566 #: ../fish/guestfish-actions.pod:4538
15567 msgid ""
15568 "This only has any effect if called before L</launch>, and the default is "
15569 "true."
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:7008
15574 msgid ""
15575 "About the only time when you would want to disable this is if the main "
15576 "process will fork itself into the background (\"daemonize\" itself).  In "
15577 "this case the recovery process thinks that the main program has disappeared "
15578 "and so kills qemu, which is not very helpful."
15579 msgstr ""
15580
15581 #. type: =head2
15582 #: ../fish/guestfish-actions.pod:4547
15583 msgid "set-selinux"
15584 msgstr ""
15585
15586 #. type: =head2
15587 #: ../fish/guestfish-actions.pod:4549
15588 msgid "selinux"
15589 msgstr ""
15590
15591 #. type: verbatim
15592 #: ../fish/guestfish-actions.pod:4551
15593 #, no-wrap
15594 msgid ""
15595 " set-selinux true|false\n"
15596 "\n"
15597 msgstr ""
15598
15599 #. type: textblock
15600 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7024
15601 msgid ""
15602 "This sets the selinux flag that is passed to the appliance at boot time.  "
15603 "The default is C<selinux=0> (disabled)."
15604 msgstr ""
15605
15606 #. type: textblock
15607 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7027
15608 msgid ""
15609 "Note that if SELinux is enabled, it is always in Permissive mode "
15610 "(C<enforcing=0>)."
15611 msgstr ""
15612
15613 #. type: =head2
15614 #: ../fish/guestfish-actions.pod:4562
15615 msgid "set-smp"
15616 msgstr ""
15617
15618 #. type: =head2
15619 #: ../fish/guestfish-actions.pod:4564
15620 msgid "smp"
15621 msgstr ""
15622
15623 #. type: verbatim
15624 #: ../fish/guestfish-actions.pod:4566
15625 #, no-wrap
15626 msgid ""
15627 " set-smp smp\n"
15628 "\n"
15629 msgstr ""
15630
15631 #. type: textblock
15632 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:7043
15633 msgid ""
15634 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15635 "C<1>.  Increasing this may improve performance, though often it has no "
15636 "effect."
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4572
15641 msgid "This function must be called before L</launch>."
15642 msgstr ""
15643
15644 #. type: =head2
15645 #: ../fish/guestfish-actions.pod:4574
15646 msgid "set-trace"
15647 msgstr ""
15648
15649 #. type: =head2
15650 #: ../fish/guestfish-actions.pod:4576
15651 msgid "trace"
15652 msgstr ""
15653
15654 #. type: verbatim
15655 #: ../fish/guestfish-actions.pod:4578
15656 #, no-wrap
15657 msgid ""
15658 " set-trace true|false\n"
15659 "\n"
15660 msgstr ""
15661
15662 #. type: textblock
15663 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:7059
15664 msgid ""
15665 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15666 "return values are traced."
15667 msgstr ""
15668
15669 #. type: textblock
15670 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7062
15671 msgid ""
15672 "If you want to trace C API calls into libguestfs (and other libraries) then "
15673 "possibly a better way is to use the external ltrace(1) command."
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:7066
15678 msgid ""
15679 "Command traces are disabled unless the environment variable "
15680 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:4590
15685 msgid ""
15686 "Trace messages are normally sent to C<stderr>, unless you register a "
15687 "callback to send them somewhere else (see L</set-event-callback>)."
15688 msgstr ""
15689
15690 #. type: =head2
15691 #: ../fish/guestfish-actions.pod:4594
15692 msgid "set-verbose"
15693 msgstr ""
15694
15695 #. type: =head2
15696 #: ../fish/guestfish-actions.pod:4596
15697 msgid "verbose"
15698 msgstr ""
15699
15700 #. type: verbatim
15701 #: ../fish/guestfish-actions.pod:4598
15702 #, no-wrap
15703 msgid ""
15704 " set-verbose true|false\n"
15705 "\n"
15706 msgstr ""
15707
15708 #. type: textblock
15709 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7083
15710 msgid "If C<verbose> is true, this turns on verbose messages."
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:7085
15715 msgid ""
15716 "Verbose messages are disabled unless the environment variable "
15717 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4605
15722 msgid ""
15723 "Verbose messages are normally sent to C<stderr>, unless you register a "
15724 "callback to send them somewhere else (see L</set-event-callback>)."
15725 msgstr ""
15726
15727 #. type: =head2
15728 #: ../fish/guestfish-actions.pod:4609
15729 msgid "setcon"
15730 msgstr ""
15731
15732 #. type: verbatim
15733 #: ../fish/guestfish-actions.pod:4611
15734 #, no-wrap
15735 msgid ""
15736 " setcon context\n"
15737 "\n"
15738 msgstr ""
15739
15740 #. type: textblock
15741 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
15742 msgid ""
15743 "This sets the SELinux security context of the daemon to the string "
15744 "C<context>."
15745 msgstr ""
15746
15747 #. type: textblock
15748 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:7105
15749 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15750 msgstr ""
15751
15752 #. type: =head2
15753 #: ../fish/guestfish-actions.pod:4618
15754 msgid "setxattr"
15755 msgstr ""
15756
15757 #. type: verbatim
15758 #: ../fish/guestfish-actions.pod:4620
15759 #, no-wrap
15760 msgid ""
15761 " setxattr xattr val vallen path\n"
15762 "\n"
15763 msgstr ""
15764
15765 #. type: textblock
15766 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7120
15767 msgid ""
15768 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15769 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-actions.pod:4626
15774 msgid "See also: L</lsetxattr>, L<attr(5)>."
15775 msgstr ""
15776
15777 #. type: =head2
15778 #: ../fish/guestfish-actions.pod:4628
15779 msgid "sfdisk"
15780 msgstr ""
15781
15782 #. type: verbatim
15783 #: ../fish/guestfish-actions.pod:4630
15784 #, no-wrap
15785 msgid ""
15786 " sfdisk device cyls heads sectors 'lines ...'\n"
15787 "\n"
15788 msgstr ""
15789
15790 #. type: textblock
15791 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:7147
15792 msgid ""
15793 "This is a direct interface to the L<sfdisk(8)> program for creating "
15794 "partitions on block devices."
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:7150
15799 msgid "C<device> should be a block device, for example C</dev/sda>."
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:7152
15804 msgid ""
15805 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15806 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15807 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15808 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15809 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15810 "the kernel) cannot work out the right geometry and you will need to tell it."
15811 msgstr ""
15812
15813 #. type: textblock
15814 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:7160
15815 msgid ""
15816 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15817 "refer to the L<sfdisk(8)> manpage."
15818 msgstr ""
15819
15820 #. type: textblock
15821 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7163
15822 msgid ""
15823 "To create a single partition occupying the whole disk, you would pass "
15824 "C<lines> as a single element list, when the single element being the string "
15825 "C<,> (comma)."
15826 msgstr ""
15827
15828 #. type: textblock
15829 #: ../fish/guestfish-actions.pod:4652
15830 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../fish/guestfish-actions.pod:4655 ../fish/guestfish-actions.pod:4675
15835 #: ../fish/guestfish-actions.pod:4694
15836 msgid ""
15837 "I<This function is deprecated.> In new code, use the L</part_add> call "
15838 "instead."
15839 msgstr ""
15840
15841 #. type: =head2
15842 #: ../fish/guestfish-actions.pod:4662
15843 msgid "sfdiskM"
15844 msgstr ""
15845
15846 #. type: verbatim
15847 #: ../fish/guestfish-actions.pod:4664
15848 #, no-wrap
15849 msgid ""
15850 " sfdiskM device 'lines ...'\n"
15851 "\n"
15852 msgstr ""
15853
15854 #. type: textblock
15855 #: ../fish/guestfish-actions.pod:4666
15856 msgid ""
15857 "This is a simplified interface to the L</sfdisk> command, where partition "
15858 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15859 "you don't need to specify the cyls, heads and sectors parameters which were "
15860 "rarely if ever used anyway."
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-actions.pod:4672
15865 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15866 msgstr ""
15867
15868 #. type: =head2
15869 #: ../fish/guestfish-actions.pod:4682
15870 msgid "sfdisk-N"
15871 msgstr ""
15872
15873 #. type: verbatim
15874 #: ../fish/guestfish-actions.pod:4684
15875 #, no-wrap
15876 msgid ""
15877 " sfdisk-N device partnum cyls heads sectors line\n"
15878 "\n"
15879 msgstr ""
15880
15881 #. type: textblock
15882 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7219
15883 msgid ""
15884 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15885 "(note: C<n> counts from 1)."
15886 msgstr ""
15887
15888 #. type: textblock
15889 #: ../fish/guestfish-actions.pod:4689
15890 msgid ""
15891 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15892 "cyls/heads/sectors parameters."
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4692
15897 msgid "See also: L</part-add>"
15898 msgstr ""
15899
15900 #. type: =head2
15901 #: ../fish/guestfish-actions.pod:4701
15902 msgid "sfdisk-disk-geometry"
15903 msgstr ""
15904
15905 #. type: verbatim
15906 #: ../fish/guestfish-actions.pod:4703
15907 #, no-wrap
15908 msgid ""
15909 " sfdisk-disk-geometry device\n"
15910 "\n"
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../fish/guestfish-actions.pod:4705
15915 msgid ""
15916 "This displays the disk geometry of C<device> read from the partition table.  "
15917 "Especially in the case where the underlying block device has been resized, "
15918 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15919 "kernel-geometry>)."
15920 msgstr ""
15921
15922 #. type: textblock
15923 #: ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4719
15924 #: ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7258
15925 msgid "The result is in human-readable format, and not designed to be parsed."
15926 msgstr ""
15927
15928 #. type: =head2
15929 #: ../fish/guestfish-actions.pod:4713
15930 msgid "sfdisk-kernel-geometry"
15931 msgstr ""
15932
15933 #. type: verbatim
15934 #: ../fish/guestfish-actions.pod:4715
15935 #, no-wrap
15936 msgid ""
15937 " sfdisk-kernel-geometry device\n"
15938 "\n"
15939 msgstr ""
15940
15941 #. type: textblock
15942 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7256
15943 msgid "This displays the kernel's idea of the geometry of C<device>."
15944 msgstr ""
15945
15946 #. type: =head2
15947 #: ../fish/guestfish-actions.pod:4722
15948 msgid "sfdisk-l"
15949 msgstr ""
15950
15951 #. type: verbatim
15952 #: ../fish/guestfish-actions.pod:4724
15953 #, no-wrap
15954 msgid ""
15955 " sfdisk-l device\n"
15956 "\n"
15957 msgstr ""
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7279
15961 msgid ""
15962 "This displays the partition table on C<device>, in the human-readable output "
15963 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15964 msgstr ""
15965
15966 #. type: textblock
15967 #: ../fish/guestfish-actions.pod:4730
15968 msgid "See also: L</part-list>"
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish-actions.pod:4732
15973 msgid ""
15974 "I<This function is deprecated.> In new code, use the L</part_list> call "
15975 "instead."
15976 msgstr ""
15977
15978 #. type: =head2
15979 #: ../fish/guestfish-actions.pod:4739
15980 msgid "sh"
15981 msgstr ""
15982
15983 #. type: verbatim
15984 #: ../fish/guestfish-actions.pod:4741
15985 #, no-wrap
15986 msgid ""
15987 " sh command\n"
15988 "\n"
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7296
15993 msgid ""
15994 "This call runs a command from the guest filesystem via the guest's C</bin/"
15995 "sh>."
15996 msgstr ""
15997
15998 #. type: textblock
15999 #: ../fish/guestfish-actions.pod:4746
16000 msgid "This is like L</command>, but passes the command to:"
16001 msgstr ""
16002
16003 #. type: verbatim
16004 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7301
16005 #, no-wrap
16006 msgid ""
16007 " /bin/sh -c \"command\"\n"
16008 "\n"
16009 msgstr ""
16010
16011 #. type: textblock
16012 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7303
16013 msgid ""
16014 "Depending on the guest's shell, this usually results in wildcards being "
16015 "expanded, shell expressions being interpolated and so on."
16016 msgstr ""
16017
16018 #. type: textblock
16019 #: ../fish/guestfish-actions.pod:4754
16020 msgid "All the provisos about L</command> apply to this call."
16021 msgstr ""
16022
16023 #. type: =head2
16024 #: ../fish/guestfish-actions.pod:4756
16025 msgid "sh-lines"
16026 msgstr ""
16027
16028 #. type: verbatim
16029 #: ../fish/guestfish-actions.pod:4758
16030 #, no-wrap
16031 msgid ""
16032 " sh-lines command\n"
16033 "\n"
16034 msgstr ""
16035
16036 #. type: textblock
16037 #: ../fish/guestfish-actions.pod:4760
16038 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../fish/guestfish-actions.pod:4763
16043 msgid "See also: L</command-lines>"
16044 msgstr ""
16045
16046 #. type: =head2
16047 #: ../fish/guestfish-actions.pod:4765
16048 msgid "sleep"
16049 msgstr ""
16050
16051 #. type: verbatim
16052 #: ../fish/guestfish-actions.pod:4767
16053 #, no-wrap
16054 msgid ""
16055 " sleep secs\n"
16056 "\n"
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish-actions.pod:4769 ../src/guestfs-actions.pod:7337
16061 msgid "Sleep for C<secs> seconds."
16062 msgstr ""
16063
16064 #. type: =head2
16065 #: ../fish/guestfish-actions.pod:4771
16066 msgid "stat"
16067 msgstr ""
16068
16069 #. type: verbatim
16070 #: ../fish/guestfish-actions.pod:4773
16071 #, no-wrap
16072 msgid ""
16073 " stat path\n"
16074 "\n"
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7351
16079 msgid "This is the same as the C<stat(2)> system call."
16080 msgstr ""
16081
16082 #. type: =head2
16083 #: ../fish/guestfish-actions.pod:4779
16084 msgid "statvfs"
16085 msgstr ""
16086
16087 #. type: verbatim
16088 #: ../fish/guestfish-actions.pod:4781
16089 #, no-wrap
16090 msgid ""
16091 " statvfs path\n"
16092 "\n"
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7365
16097 msgid ""
16098 "Returns file system statistics for any mounted file system.  C<path> should "
16099 "be a file or directory in the mounted file system (typically it is the mount "
16100 "point itself, but it doesn't need to be)."
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7369
16105 msgid "This is the same as the C<statvfs(2)> system call."
16106 msgstr ""
16107
16108 #. type: =head2
16109 #: ../fish/guestfish-actions.pod:4789
16110 msgid "strings"
16111 msgstr ""
16112
16113 #. type: verbatim
16114 #: ../fish/guestfish-actions.pod:4791
16115 #, no-wrap
16116 msgid ""
16117 " strings path\n"
16118 "\n"
16119 msgstr ""
16120
16121 #. type: textblock
16122 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7383
16123 msgid ""
16124 "This runs the L<strings(1)> command on a file and returns the list of "
16125 "printable strings found."
16126 msgstr ""
16127
16128 #. type: =head2
16129 #: ../fish/guestfish-actions.pod:4799
16130 msgid "strings-e"
16131 msgstr ""
16132
16133 #. type: verbatim
16134 #: ../fish/guestfish-actions.pod:4801
16135 #, no-wrap
16136 msgid ""
16137 " strings-e encoding path\n"
16138 "\n"
16139 msgstr ""
16140
16141 #. type: textblock
16142 #: ../fish/guestfish-actions.pod:4803
16143 msgid ""
16144 "This is like the L</strings> command, but allows you to specify the encoding "
16145 "of strings that are looked for in the source file C<path>."
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:4807 ../src/guestfs-actions.pod:7406
16150 msgid "Allowed encodings are:"
16151 msgstr ""
16152
16153 #. type: =item
16154 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7410
16155 msgid "s"
16156 msgstr ""
16157
16158 #. type: textblock
16159 #: ../fish/guestfish-actions.pod:4813
16160 msgid ""
16161 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16162 "ISO-8859-X (this is what L</strings> uses)."
16163 msgstr ""
16164
16165 #. type: =item
16166 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7415
16167 msgid "S"
16168 msgstr ""
16169
16170 #. type: textblock
16171 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7417
16172 msgid "Single 8-bit-byte characters."
16173 msgstr ""
16174
16175 #. type: =item
16176 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7419
16177 msgid "b"
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7421
16182 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16183 msgstr ""
16184
16185 #. type: =item
16186 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7424
16187 msgid "l (lower case letter L)"
16188 msgstr ""
16189
16190 #. type: textblock
16191 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7426
16192 msgid ""
16193 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16194 "examining binaries in Windows guests."
16195 msgstr ""
16196
16197 #. type: =item
16198 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7429
16199 msgid "B"
16200 msgstr ""
16201
16202 #. type: textblock
16203 #: ../fish/guestfish-actions.pod:4832 ../src/guestfs-actions.pod:7431
16204 msgid "32-bit big endian such as UCS-4BE."
16205 msgstr ""
16206
16207 #. type: =item
16208 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7433
16209 msgid "L"
16210 msgstr ""
16211
16212 #. type: textblock
16213 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7435
16214 msgid "32-bit little endian such as UCS-4LE."
16215 msgstr ""
16216
16217 #. type: textblock
16218 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7439
16219 msgid "The returned strings are transcoded to UTF-8."
16220 msgstr ""
16221
16222 #. type: =head2
16223 #: ../fish/guestfish-actions.pod:4845
16224 msgid "swapoff-device"
16225 msgstr ""
16226
16227 #. type: verbatim
16228 #: ../fish/guestfish-actions.pod:4847
16229 #, no-wrap
16230 msgid ""
16231 " swapoff-device device\n"
16232 "\n"
16233 msgstr ""
16234
16235 #. type: textblock
16236 #: ../fish/guestfish-actions.pod:4849
16237 msgid ""
16238 "This command disables the libguestfs appliance swap device or partition "
16239 "named C<device>.  See L</swapon-device>."
16240 msgstr ""
16241
16242 #. type: =head2
16243 #: ../fish/guestfish-actions.pod:4853
16244 msgid "swapoff-file"
16245 msgstr ""
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish-actions.pod:4855
16249 #, no-wrap
16250 msgid ""
16251 " swapoff-file file\n"
16252 "\n"
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7470
16257 msgid "This command disables the libguestfs appliance swap on file."
16258 msgstr ""
16259
16260 #. type: =head2
16261 #: ../fish/guestfish-actions.pod:4859
16262 msgid "swapoff-label"
16263 msgstr ""
16264
16265 #. type: verbatim
16266 #: ../fish/guestfish-actions.pod:4861
16267 #, no-wrap
16268 msgid ""
16269 " swapoff-label label\n"
16270 "\n"
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7482
16275 msgid ""
16276 "This command disables the libguestfs appliance swap on labeled swap "
16277 "partition."
16278 msgstr ""
16279
16280 #. type: =head2
16281 #: ../fish/guestfish-actions.pod:4866
16282 msgid "swapoff-uuid"
16283 msgstr ""
16284
16285 #. type: verbatim
16286 #: ../fish/guestfish-actions.pod:4868
16287 #, no-wrap
16288 msgid ""
16289 " swapoff-uuid uuid\n"
16290 "\n"
16291 msgstr ""
16292
16293 #. type: textblock
16294 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7495
16295 msgid ""
16296 "This command disables the libguestfs appliance swap partition with the given "
16297 "UUID."
16298 msgstr ""
16299
16300 #. type: =head2
16301 #: ../fish/guestfish-actions.pod:4873
16302 msgid "swapon-device"
16303 msgstr ""
16304
16305 #. type: verbatim
16306 #: ../fish/guestfish-actions.pod:4875
16307 #, no-wrap
16308 msgid ""
16309 " swapon-device device\n"
16310 "\n"
16311 msgstr ""
16312
16313 #. type: textblock
16314 #: ../fish/guestfish-actions.pod:4877
16315 msgid ""
16316 "This command enables the libguestfs appliance to use the swap device or "
16317 "partition named C<device>.  The increased memory is made available for all "
16318 "commands, for example those run using L</command> or L</sh>."
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7513
16323 msgid ""
16324 "Note that you should not swap to existing guest swap partitions unless you "
16325 "know what you are doing.  They may contain hibernation information, or other "
16326 "information that the guest doesn't want you to trash.  You also risk leaking "
16327 "information about the host to the guest this way.  Instead, attach a new "
16328 "host device to the guest and swap on that."
16329 msgstr ""
16330
16331 #. type: =head2
16332 #: ../fish/guestfish-actions.pod:4889
16333 msgid "swapon-file"
16334 msgstr ""
16335
16336 #. type: verbatim
16337 #: ../fish/guestfish-actions.pod:4891
16338 #, no-wrap
16339 msgid ""
16340 " swapon-file file\n"
16341 "\n"
16342 msgstr ""
16343
16344 #. type: textblock
16345 #: ../fish/guestfish-actions.pod:4893
16346 msgid ""
16347 "This command enables swap to a file.  See L</swapon-device> for other notes."
16348 msgstr ""
16349
16350 #. type: =head2
16351 #: ../fish/guestfish-actions.pod:4896
16352 msgid "swapon-label"
16353 msgstr ""
16354
16355 #. type: verbatim
16356 #: ../fish/guestfish-actions.pod:4898
16357 #, no-wrap
16358 msgid ""
16359 " swapon-label label\n"
16360 "\n"
16361 msgstr ""
16362
16363 #. type: textblock
16364 #: ../fish/guestfish-actions.pod:4900
16365 msgid ""
16366 "This command enables swap to a labeled swap partition.  See L</swapon-"
16367 "device> for other notes."
16368 msgstr ""
16369
16370 #. type: =head2
16371 #: ../fish/guestfish-actions.pod:4903
16372 msgid "swapon-uuid"
16373 msgstr ""
16374
16375 #. type: verbatim
16376 #: ../fish/guestfish-actions.pod:4905
16377 #, no-wrap
16378 msgid ""
16379 " swapon-uuid uuid\n"
16380 "\n"
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-actions.pod:4907
16385 msgid ""
16386 "This command enables swap to a swap partition with the given UUID.  See L</"
16387 "swapon-device> for other notes."
16388 msgstr ""
16389
16390 #. type: =head2
16391 #: ../fish/guestfish-actions.pod:4910
16392 msgid "sync"
16393 msgstr ""
16394
16395 #. type: verbatim
16396 #: ../fish/guestfish-actions.pod:4912
16397 #, no-wrap
16398 msgid ""
16399 " sync\n"
16400 "\n"
16401 msgstr ""
16402
16403 #. type: textblock
16404 #: ../fish/guestfish-actions.pod:4914 ../src/guestfs-actions.pod:7568
16405 msgid ""
16406 "This syncs the disk, so that any writes are flushed through to the "
16407 "underlying disk image."
16408 msgstr ""
16409
16410 #. type: textblock
16411 #: ../fish/guestfish-actions.pod:4917 ../src/guestfs-actions.pod:7571
16412 msgid ""
16413 "You should always call this if you have modified a disk image, before "
16414 "closing the handle."
16415 msgstr ""
16416
16417 #. type: =head2
16418 #: ../fish/guestfish-actions.pod:4920
16419 msgid "tail"
16420 msgstr ""
16421
16422 #. type: verbatim
16423 #: ../fish/guestfish-actions.pod:4922
16424 #, no-wrap
16425 msgid ""
16426 " tail path\n"
16427 "\n"
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7584
16432 msgid ""
16433 "This command returns up to the last 10 lines of a file as a list of strings."
16434 msgstr ""
16435
16436 #. type: =head2
16437 #: ../fish/guestfish-actions.pod:4930
16438 msgid "tail-n"
16439 msgstr ""
16440
16441 #. type: verbatim
16442 #: ../fish/guestfish-actions.pod:4932
16443 #, no-wrap
16444 msgid ""
16445 " tail-n nrlines path\n"
16446 "\n"
16447 msgstr ""
16448
16449 #. type: textblock
16450 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7603
16451 msgid ""
16452 "If the parameter C<nrlines> is a positive number, this returns the last "
16453 "C<nrlines> lines of the file C<path>."
16454 msgstr ""
16455
16456 #. type: textblock
16457 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7606
16458 msgid ""
16459 "If the parameter C<nrlines> is a negative number, this returns lines from "
16460 "the file C<path>, starting with the C<-nrlines>th line."
16461 msgstr ""
16462
16463 #. type: =head2
16464 #: ../fish/guestfish-actions.pod:4945
16465 msgid "tar-in"
16466 msgstr ""
16467
16468 #. type: verbatim
16469 #: ../fish/guestfish-actions.pod:4947
16470 #, no-wrap
16471 msgid ""
16472 " tar-in (tarfile|-) directory\n"
16473 "\n"
16474 msgstr ""
16475
16476 #. type: textblock
16477 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7627
16478 msgid ""
16479 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16480 "tar file) into C<directory>."
16481 msgstr ""
16482
16483 #. type: textblock
16484 #: ../fish/guestfish-actions.pod:4952
16485 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16486 msgstr ""
16487
16488 #. type: =head2
16489 #: ../fish/guestfish-actions.pod:4957
16490 msgid "tar-out"
16491 msgstr ""
16492
16493 #. type: verbatim
16494 #: ../fish/guestfish-actions.pod:4959
16495 #, no-wrap
16496 msgid ""
16497 " tar-out directory (tarfile|-)\n"
16498 "\n"
16499 msgstr ""
16500
16501 #. type: textblock
16502 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7644
16503 msgid ""
16504 "This command packs the contents of C<directory> and downloads it to local "
16505 "file C<tarfile>."
16506 msgstr ""
16507
16508 #. type: textblock
16509 #: ../fish/guestfish-actions.pod:4964
16510 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16511 msgstr ""
16512
16513 #. type: =head2
16514 #: ../fish/guestfish-actions.pod:4969
16515 msgid "tgz-in"
16516 msgstr ""
16517
16518 #. type: verbatim
16519 #: ../fish/guestfish-actions.pod:4971
16520 #, no-wrap
16521 msgid ""
16522 " tgz-in (tarball|-) directory\n"
16523 "\n"
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../fish/guestfish-actions.pod:4973 ../src/guestfs-actions.pod:7661
16528 msgid ""
16529 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16530 "tar file) into C<directory>."
16531 msgstr ""
16532
16533 #. type: textblock
16534 #: ../fish/guestfish-actions.pod:4976
16535 msgid "To upload an uncompressed tarball, use L</tar-in>."
16536 msgstr ""
16537
16538 #. type: =head2
16539 #: ../fish/guestfish-actions.pod:4980
16540 msgid "tgz-out"
16541 msgstr ""
16542
16543 #. type: verbatim
16544 #: ../fish/guestfish-actions.pod:4982
16545 #, no-wrap
16546 msgid ""
16547 " tgz-out directory (tarball|-)\n"
16548 "\n"
16549 msgstr ""
16550
16551 #. type: textblock
16552 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7677
16553 msgid ""
16554 "This command packs the contents of C<directory> and downloads it to local "
16555 "file C<tarball>."
16556 msgstr ""
16557
16558 #. type: textblock
16559 #: ../fish/guestfish-actions.pod:4987
16560 msgid "To download an uncompressed tarball, use L</tar-out>."
16561 msgstr ""
16562
16563 #. type: =head2
16564 #: ../fish/guestfish-actions.pod:4991
16565 msgid "touch"
16566 msgstr ""
16567
16568 #. type: verbatim
16569 #: ../fish/guestfish-actions.pod:4993
16570 #, no-wrap
16571 msgid ""
16572 " touch path\n"
16573 "\n"
16574 msgstr ""
16575
16576 #. type: textblock
16577 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7692
16578 msgid ""
16579 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16580 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16581 "length file."
16582 msgstr ""
16583
16584 #. type: textblock
16585 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7696
16586 msgid ""
16587 "This command only works on regular files, and will fail on other file types "
16588 "such as directories, symbolic links, block special etc."
16589 msgstr ""
16590
16591 #. type: =head2
16592 #: ../fish/guestfish-actions.pod:5002
16593 msgid "truncate"
16594 msgstr ""
16595
16596 #. type: verbatim
16597 #: ../fish/guestfish-actions.pod:5004
16598 #, no-wrap
16599 msgid ""
16600 " truncate path\n"
16601 "\n"
16602 msgstr ""
16603
16604 #. type: textblock
16605 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
16606 msgid ""
16607 "This command truncates C<path> to a zero-length file.  The file must exist "
16608 "already."
16609 msgstr ""
16610
16611 #. type: =head2
16612 #: ../fish/guestfish-actions.pod:5009
16613 msgid "truncate-size"
16614 msgstr ""
16615
16616 #. type: verbatim
16617 #: ../fish/guestfish-actions.pod:5011
16618 #, no-wrap
16619 msgid ""
16620 " truncate-size path size\n"
16621 "\n"
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7723
16626 msgid ""
16627 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16628 "already."
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-actions.pod:5016
16633 msgid ""
16634 "If the current file size is less than C<size> then the file is extended to "
16635 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16636 "blocks are not allocated for the file until you write to it).  To create a "
16637 "non-sparse file of zeroes, use L</fallocate64> instead."
16638 msgstr ""
16639
16640 #. type: =head2
16641 #: ../fish/guestfish-actions.pod:5022
16642 msgid "tune2fs"
16643 msgstr ""
16644
16645 #. type: verbatim
16646 #: ../fish/guestfish-actions.pod:5024
16647 #, no-wrap
16648 msgid ""
16649 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
16650 "\n"
16651 msgstr ""
16652
16653 #. type: textblock
16654 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7759
16655 msgid ""
16656 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
16657 "ext4 filesystem called C<device>."
16658 msgstr ""
16659
16660 #. type: textblock
16661 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7768
16662 msgid ""
16663 "Force tune2fs to complete the operation even in the face of errors.  This is "
16664 "the same as the tune2fs C<-f> option."
16665 msgstr ""
16666
16667 #. type: =item
16668 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7771
16669 msgid "C<maxmountcount>"
16670 msgstr ""
16671
16672 #. type: textblock
16673 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7773
16674 msgid ""
16675 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
16676 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
16677 "same as the tune2fs C<-c> option."
16678 msgstr ""
16679
16680 #. type: =item
16681 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7777
16682 msgid "C<mountcount>"
16683 msgstr ""
16684
16685 #. type: textblock
16686 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7779
16687 msgid ""
16688 "Set the number of times the filesystem has been mounted.  This is the same "
16689 "as the tune2fs C<-C> option."
16690 msgstr ""
16691
16692 #. type: =item
16693 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7782
16694 msgid "C<errorbehavior>"
16695 msgstr ""
16696
16697 #. type: textblock
16698 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7784
16699 msgid ""
16700 "Change the behavior of the kernel code when errors are detected.  Possible "
16701 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
16702 "these options don't really make any difference, particularly for write "
16703 "errors."
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7789
16708 msgid "This is the same as the tune2fs C<-e> option."
16709 msgstr ""
16710
16711 #. type: =item
16712 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7791
16713 msgid "C<group>"
16714 msgstr ""
16715
16716 #. type: textblock
16717 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7793
16718 msgid ""
16719 "Set the group which can use reserved filesystem blocks.  This is the same as "
16720 "the tune2fs C<-g> option except that it can only be specified as a number."
16721 msgstr ""
16722
16723 #. type: =item
16724 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7797
16725 msgid "C<intervalbetweenchecks>"
16726 msgstr ""
16727
16728 #. type: textblock
16729 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7799
16730 msgid ""
16731 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
16732 "option is passed as C<0> then time-dependent checking is disabled."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7803
16737 msgid "This is the same as the tune2fs C<-i> option."
16738 msgstr ""
16739
16740 #. type: =item
16741 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7805
16742 msgid "C<reservedblockspercentage>"
16743 msgstr ""
16744
16745 #. type: textblock
16746 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7807
16747 msgid ""
16748 "Set the percentage of the filesystem which may only be allocated by "
16749 "privileged processes.  This is the same as the tune2fs C<-m> option."
16750 msgstr ""
16751
16752 #. type: =item
16753 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7811
16754 msgid "C<lastmounteddirectory>"
16755 msgstr ""
16756
16757 #. type: textblock
16758 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7813
16759 msgid ""
16760 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
16761 "option."
16762 msgstr ""
16763
16764 #. type: =item
16765 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7816
16766 msgid ""
16767 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
16768 "is the same as the tune2fs C<-r> option."
16769 msgstr ""
16770
16771 #. type: =item
16772 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7820
16773 msgid "C<user>"
16774 msgstr ""
16775
16776 #. type: textblock
16777 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7822
16778 msgid ""
16779 "Set the user who can use the reserved filesystem blocks.  This is the same "
16780 "as the tune2fs C<-u> option except that it can only be specified as a number."
16781 msgstr ""
16782
16783 #. type: textblock
16784 #: ../fish/guestfish-actions.pod:5095
16785 msgid ""
16786 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
16787 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
16788 msgstr ""
16789
16790 #. type: =head2
16791 #: ../fish/guestfish-actions.pod:5101
16792 msgid "tune2fs-l"
16793 msgstr ""
16794
16795 #. type: verbatim
16796 #: ../fish/guestfish-actions.pod:5103
16797 #, no-wrap
16798 msgid ""
16799 " tune2fs-l device\n"
16800 "\n"
16801 msgstr ""
16802
16803 #. type: textblock
16804 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7862
16805 msgid ""
16806 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16807 "C<device>."
16808 msgstr ""
16809
16810 #. type: textblock
16811 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7865
16812 msgid ""
16813 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16814 "for more details.  The list of fields returned isn't clearly defined, and "
16815 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16816 "and the filesystem itself."
16817 msgstr ""
16818
16819 #. type: =head2
16820 #: ../fish/guestfish-actions.pod:5113
16821 msgid "txz-in"
16822 msgstr ""
16823
16824 #. type: verbatim
16825 #: ../fish/guestfish-actions.pod:5115
16826 #, no-wrap
16827 msgid ""
16828 " txz-in (tarball|-) directory\n"
16829 "\n"
16830 msgstr ""
16831
16832 #. type: textblock
16833 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7885
16834 msgid ""
16835 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16836 "tar file) into C<directory>."
16837 msgstr ""
16838
16839 #. type: =head2
16840 #: ../fish/guestfish-actions.pod:5122
16841 msgid "txz-out"
16842 msgstr ""
16843
16844 #. type: verbatim
16845 #: ../fish/guestfish-actions.pod:5124
16846 #, no-wrap
16847 msgid ""
16848 " txz-out directory (tarball|-)\n"
16849 "\n"
16850 msgstr ""
16851
16852 #. type: textblock
16853 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7899
16854 msgid ""
16855 "This command packs the contents of C<directory> and downloads it to local "
16856 "file C<tarball> (as an xz compressed tar archive)."
16857 msgstr ""
16858
16859 #. type: =head2
16860 #: ../fish/guestfish-actions.pod:5131
16861 msgid "umask"
16862 msgstr ""
16863
16864 #. type: verbatim
16865 #: ../fish/guestfish-actions.pod:5133
16866 #, no-wrap
16867 msgid ""
16868 " umask mask\n"
16869 "\n"
16870 msgstr ""
16871
16872 #. type: textblock
16873 #: ../fish/guestfish-actions.pod:5135 ../src/guestfs-actions.pod:7912
16874 msgid ""
16875 "This function sets the mask used for creating new files and device nodes to "
16876 "C<mask & 0777>."
16877 msgstr ""
16878
16879 #. type: textblock
16880 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7915
16881 msgid ""
16882 "Typical umask values would be C<022> which creates new files with "
16883 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16884 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7920
16889 msgid ""
16890 "The default umask is C<022>.  This is important because it means that "
16891 "directories and device nodes will be created with C<0644> or C<0755> mode "
16892 "even if you specify C<0777>."
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish-actions.pod:5147
16897 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7927
16902 msgid "This call returns the previous umask."
16903 msgstr ""
16904
16905 #. type: =head2
16906 #: ../fish/guestfish-actions.pod:5152
16907 msgid "umount"
16908 msgstr ""
16909
16910 #. type: =head2
16911 #: ../fish/guestfish-actions.pod:5154
16912 msgid "unmount"
16913 msgstr ""
16914
16915 #. type: verbatim
16916 #: ../fish/guestfish-actions.pod:5156
16917 #, no-wrap
16918 msgid ""
16919 " umount pathordevice\n"
16920 "\n"
16921 msgstr ""
16922
16923 #. type: textblock
16924 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
16925 msgid ""
16926 "This unmounts the given filesystem.  The filesystem may be specified either "
16927 "by its mountpoint (path) or the device which contains the filesystem."
16928 msgstr ""
16929
16930 #. type: =head2
16931 #: ../fish/guestfish-actions.pod:5162
16932 msgid "umount-all"
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../fish/guestfish-actions.pod:5164
16937 msgid "unmount-all"
16938 msgstr ""
16939
16940 #. type: verbatim
16941 #: ../fish/guestfish-actions.pod:5166
16942 #, no-wrap
16943 msgid ""
16944 " umount-all\n"
16945 "\n"
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7952
16950 msgid "This unmounts all mounted filesystems."
16951 msgstr ""
16952
16953 #. type: textblock
16954 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7954
16955 msgid "Some internal mounts are not unmounted by this call."
16956 msgstr ""
16957
16958 #. type: =head2
16959 #: ../fish/guestfish-actions.pod:5172
16960 msgid "upload"
16961 msgstr ""
16962
16963 #. type: verbatim
16964 #: ../fish/guestfish-actions.pod:5174
16965 #, no-wrap
16966 msgid ""
16967 " upload (filename|-) remotefilename\n"
16968 "\n"
16969 msgstr ""
16970
16971 #. type: textblock
16972 #: ../fish/guestfish-actions.pod:5176 ../fish/guestfish-actions.pod:5189
16973 #: ../src/guestfs-actions.pod:7967 ../src/guestfs-actions.pod:7991
16974 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16975 msgstr ""
16976
16977 #. type: textblock
16978 #: ../fish/guestfish-actions.pod:5181
16979 msgid "See also L</download>."
16980 msgstr ""
16981
16982 #. type: =head2
16983 #: ../fish/guestfish-actions.pod:5185
16984 msgid "upload-offset"
16985 msgstr ""
16986
16987 #. type: verbatim
16988 #: ../fish/guestfish-actions.pod:5187
16989 #, no-wrap
16990 msgid ""
16991 " upload-offset (filename|-) remotefilename offset\n"
16992 "\n"
16993 msgstr ""
16994
16995 #. type: textblock
16996 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7994
16997 msgid ""
16998 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16999 "The intention is to overwrite parts of existing files or devices, although "
17000 "if a non-existant file is specified then it is created with a \"hole\" "
17001 "before C<offset>.  The size of the data written is implicit in the size of "
17002 "the source C<filename>."
17003 msgstr ""
17004
17005 #. type: textblock
17006 #: ../fish/guestfish-actions.pod:5199
17007 msgid ""
17008 "Note that there is no limit on the amount of data that can be uploaded with "
17009 "this call, unlike with L</pwrite>, and this call always writes the full "
17010 "amount unless an error occurs."
17011 msgstr ""
17012
17013 #. type: textblock
17014 #: ../fish/guestfish-actions.pod:5204
17015 msgid "See also L</upload>, L</pwrite>."
17016 msgstr ""
17017
17018 #. type: =head2
17019 #: ../fish/guestfish-actions.pod:5208
17020 msgid "utimens"
17021 msgstr ""
17022
17023 #. type: verbatim
17024 #: ../fish/guestfish-actions.pod:5210
17025 #, no-wrap
17026 msgid ""
17027 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17028 "\n"
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8027
17033 msgid "This command sets the timestamps of a file with nanosecond precision."
17034 msgstr ""
17035
17036 #. type: textblock
17037 #: ../fish/guestfish-actions.pod:5215 ../src/guestfs-actions.pod:8030
17038 msgid ""
17039 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17040 "from the epoch."
17041 msgstr ""
17042
17043 #. type: textblock
17044 #: ../fish/guestfish-actions.pod:5218 ../src/guestfs-actions.pod:8033
17045 msgid ""
17046 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17047 "nanoseconds from the epoch."
17048 msgstr ""
17049
17050 #. type: textblock
17051 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:8036
17052 msgid ""
17053 "If the C<*nsecs> field contains the special value C<-1> then the "
17054 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17055 "ignored in this case)."
17056 msgstr ""
17057
17058 #. type: textblock
17059 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8040
17060 msgid ""
17061 "If the C<*nsecs> field contains the special value C<-2> then the "
17062 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17063 "in this case)."
17064 msgstr ""
17065
17066 #. type: =head2
17067 #: ../fish/guestfish-actions.pod:5229
17068 msgid "version"
17069 msgstr ""
17070
17071 #. type: verbatim
17072 #: ../fish/guestfish-actions.pod:5231
17073 #, no-wrap
17074 msgid ""
17075 " version\n"
17076 "\n"
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../fish/guestfish-actions.pod:5233 ../src/guestfs-actions.pod:8053
17081 msgid ""
17082 "Return the libguestfs version number that the program is linked against."
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8056
17087 msgid ""
17088 "Note that because of dynamic linking this is not necessarily the version of "
17089 "libguestfs that you compiled against.  You can compile the program, and then "
17090 "at runtime dynamically link against a completely different C<libguestfs.so> "
17091 "library."
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../fish/guestfish-actions.pod:5241 ../src/guestfs-actions.pod:8061
17096 msgid ""
17097 "This call was added in version C<1.0.58>.  In previous versions of "
17098 "libguestfs there was no way to get the version number.  From C code you can "
17099 "use dynamic linker functions to find out if this symbol exists (if it "
17100 "doesn't, then it's an earlier version)."
17101 msgstr ""
17102
17103 #. type: textblock
17104 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8067
17105 msgid ""
17106 "The call returns a structure with four elements.  The first three (C<major>, "
17107 "C<minor> and C<release>) are numbers and correspond to the usual version "
17108 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17109 "but may be used for distro-specific information."
17110 msgstr ""
17111
17112 #. type: textblock
17113 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8073
17114 msgid ""
17115 "To construct the original version string: C<$major.$minor.$release$extra>"
17116 msgstr ""
17117
17118 #. type: textblock
17119 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8076
17120 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish-actions.pod:5258
17125 msgid ""
17126 "I<Note:> Don't use this call to test for availability of features.  In "
17127 "enterprise distributions we backport features from later versions into "
17128 "earlier versions, making this an unreliable way to test for features.  Use "
17129 "L</available> instead."
17130 msgstr ""
17131
17132 #. type: =head2
17133 #: ../fish/guestfish-actions.pod:5264
17134 msgid "vfs-label"
17135 msgstr ""
17136
17137 #. type: verbatim
17138 #: ../fish/guestfish-actions.pod:5266
17139 #, no-wrap
17140 msgid ""
17141 " vfs-label device\n"
17142 "\n"
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../fish/guestfish-actions.pod:5268 ../src/guestfs-actions.pod:8096
17147 msgid "This returns the filesystem label of the filesystem on C<device>."
17148 msgstr ""
17149
17150 #. type: textblock
17151 #: ../fish/guestfish-actions.pod:5271 ../src/guestfs-actions.pod:8099
17152 msgid "If the filesystem is unlabeled, this returns the empty string."
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../fish/guestfish-actions.pod:5273
17157 msgid "To find a filesystem from the label, use L</findfs-label>."
17158 msgstr ""
17159
17160 #. type: =head2
17161 #: ../fish/guestfish-actions.pod:5275
17162 msgid "vfs-type"
17163 msgstr ""
17164
17165 #. type: verbatim
17166 #: ../fish/guestfish-actions.pod:5277
17167 #, no-wrap
17168 msgid ""
17169 " vfs-type device\n"
17170 "\n"
17171 msgstr ""
17172
17173 #. type: textblock
17174 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8114
17175 msgid ""
17176 "This command gets the filesystem type corresponding to the filesystem on "
17177 "C<device>."
17178 msgstr ""
17179
17180 #. type: textblock
17181 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8117
17182 msgid ""
17183 "For most filesystems, the result is the name of the Linux VFS module which "
17184 "would be used to mount this filesystem if you mounted it without specifying "
17185 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17186 msgstr ""
17187
17188 #. type: =head2
17189 #: ../fish/guestfish-actions.pod:5287
17190 msgid "vfs-uuid"
17191 msgstr ""
17192
17193 #. type: verbatim
17194 #: ../fish/guestfish-actions.pod:5289
17195 #, no-wrap
17196 msgid ""
17197 " vfs-uuid device\n"
17198 "\n"
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish-actions.pod:5291 ../src/guestfs-actions.pod:8133
17203 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17204 msgstr ""
17205
17206 #. type: textblock
17207 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8136
17208 msgid "If the filesystem does not have a UUID, this returns the empty string."
17209 msgstr ""
17210
17211 #. type: textblock
17212 #: ../fish/guestfish-actions.pod:5296
17213 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17214 msgstr ""
17215
17216 #. type: =head2
17217 #: ../fish/guestfish-actions.pod:5298
17218 msgid "vg-activate"
17219 msgstr ""
17220
17221 #. type: verbatim
17222 #: ../fish/guestfish-actions.pod:5300
17223 #, no-wrap
17224 msgid ""
17225 " vg-activate true|false 'volgroups ...'\n"
17226 "\n"
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17231 msgid ""
17232 "This command activates or (if C<activate> is false) deactivates all logical "
17233 "volumes in the listed volume groups C<volgroups>."
17234 msgstr ""
17235
17236 #. type: textblock
17237 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17238 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish-actions.pod:5307 ../src/guestfs-actions.pod:8157
17243 msgid ""
17244 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17245 "activated or deactivated."
17246 msgstr ""
17247
17248 #. type: =head2
17249 #: ../fish/guestfish-actions.pod:5310
17250 msgid "vg-activate-all"
17251 msgstr ""
17252
17253 #. type: verbatim
17254 #: ../fish/guestfish-actions.pod:5312
17255 #, no-wrap
17256 msgid ""
17257 " vg-activate-all true|false\n"
17258 "\n"
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../fish/guestfish-actions.pod:5314 ../src/guestfs-actions.pod:8170
17263 msgid ""
17264 "This command activates or (if C<activate> is false) deactivates all logical "
17265 "volumes in all volume groups."
17266 msgstr ""
17267
17268 #. type: textblock
17269 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8173
17270 msgid "This command is the same as running C<vgchange -a y|n>"
17271 msgstr ""
17272
17273 #. type: =head2
17274 #: ../fish/guestfish-actions.pod:5319
17275 msgid "vgcreate"
17276 msgstr ""
17277
17278 #. type: verbatim
17279 #: ../fish/guestfish-actions.pod:5321
17280 #, no-wrap
17281 msgid ""
17282 " vgcreate volgroup 'physvols ...'\n"
17283 "\n"
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../fish/guestfish-actions.pod:5323 ../src/guestfs-actions.pod:8186
17288 msgid ""
17289 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17290 "of physical volumes C<physvols>."
17291 msgstr ""
17292
17293 #. type: =head2
17294 #: ../fish/guestfish-actions.pod:5326
17295 msgid "vglvuuids"
17296 msgstr ""
17297
17298 #. type: verbatim
17299 #: ../fish/guestfish-actions.pod:5328
17300 #, no-wrap
17301 msgid ""
17302 " vglvuuids vgname\n"
17303 "\n"
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8199
17308 msgid ""
17309 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17310 "volumes created in this volume group."
17311 msgstr ""
17312
17313 #. type: textblock
17314 #: ../fish/guestfish-actions.pod:5333
17315 msgid ""
17316 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17317 "logical volumes and volume groups."
17318 msgstr ""
17319
17320 #. type: textblock
17321 #: ../fish/guestfish-actions.pod:5336
17322 msgid "See also L</vgpvuuids>."
17323 msgstr ""
17324
17325 #. type: =head2
17326 #: ../fish/guestfish-actions.pod:5338
17327 msgid "vgpvuuids"
17328 msgstr ""
17329
17330 #. type: verbatim
17331 #: ../fish/guestfish-actions.pod:5340
17332 #, no-wrap
17333 msgid ""
17334 " vgpvuuids vgname\n"
17335 "\n"
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish-actions.pod:5342 ../src/guestfs-actions.pod:8219
17340 msgid ""
17341 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17342 "volumes that this volume group resides on."
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../fish/guestfish-actions.pod:5345
17347 msgid ""
17348 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17349 "physical volumes and volume groups."
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish-actions.pod:5348
17354 msgid "See also L</vglvuuids>."
17355 msgstr ""
17356
17357 #. type: =head2
17358 #: ../fish/guestfish-actions.pod:5350
17359 msgid "vgremove"
17360 msgstr ""
17361
17362 #. type: verbatim
17363 #: ../fish/guestfish-actions.pod:5352
17364 #, no-wrap
17365 msgid ""
17366 " vgremove vgname\n"
17367 "\n"
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../fish/guestfish-actions.pod:5354 ../src/guestfs-actions.pod:8239
17372 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17373 msgstr ""
17374
17375 #. type: textblock
17376 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8241
17377 msgid ""
17378 "This also forcibly removes all logical volumes in the volume group (if any)."
17379 msgstr ""
17380
17381 #. type: =head2
17382 #: ../fish/guestfish-actions.pod:5359
17383 msgid "vgrename"
17384 msgstr ""
17385
17386 #. type: verbatim
17387 #: ../fish/guestfish-actions.pod:5361
17388 #, no-wrap
17389 msgid ""
17390 " vgrename volgroup newvolgroup\n"
17391 "\n"
17392 msgstr ""
17393
17394 #. type: textblock
17395 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8255
17396 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17397 msgstr ""
17398
17399 #. type: =head2
17400 #: ../fish/guestfish-actions.pod:5365
17401 msgid "vgs"
17402 msgstr ""
17403
17404 #. type: verbatim
17405 #: ../fish/guestfish-actions.pod:5367
17406 #, no-wrap
17407 msgid ""
17408 " vgs\n"
17409 "\n"
17410 msgstr ""
17411
17412 #. type: textblock
17413 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8266
17414 msgid ""
17415 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17416 "> command."
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8269
17421 msgid ""
17422 "This returns a list of just the volume group names that were detected (eg. "
17423 "C<VolGroup00>)."
17424 msgstr ""
17425
17426 #. type: textblock
17427 #: ../fish/guestfish-actions.pod:5375
17428 msgid "See also L</vgs-full>."
17429 msgstr ""
17430
17431 #. type: =head2
17432 #: ../fish/guestfish-actions.pod:5377
17433 msgid "vgs-full"
17434 msgstr ""
17435
17436 #. type: verbatim
17437 #: ../fish/guestfish-actions.pod:5379
17438 #, no-wrap
17439 msgid ""
17440 " vgs-full\n"
17441 "\n"
17442 msgstr ""
17443
17444 #. type: textblock
17445 #: ../fish/guestfish-actions.pod:5381 ../src/guestfs-actions.pod:8285
17446 msgid ""
17447 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17448 "> command.  The \"full\" version includes all fields."
17449 msgstr ""
17450
17451 #. type: =head2
17452 #: ../fish/guestfish-actions.pod:5384
17453 msgid "vgscan"
17454 msgstr ""
17455
17456 #. type: verbatim
17457 #: ../fish/guestfish-actions.pod:5386
17458 #, no-wrap
17459 msgid ""
17460 " vgscan\n"
17461 "\n"
17462 msgstr ""
17463
17464 #. type: textblock
17465 #: ../fish/guestfish-actions.pod:5388 ../src/guestfs-actions.pod:8299
17466 msgid ""
17467 "This rescans all block devices and rebuilds the list of LVM physical "
17468 "volumes, volume groups and logical volumes."
17469 msgstr ""
17470
17471 #. type: =head2
17472 #: ../fish/guestfish-actions.pod:5391
17473 msgid "vguuid"
17474 msgstr ""
17475
17476 #. type: verbatim
17477 #: ../fish/guestfish-actions.pod:5393
17478 #, no-wrap
17479 msgid ""
17480 " vguuid vgname\n"
17481 "\n"
17482 msgstr ""
17483
17484 #. type: textblock
17485 #: ../fish/guestfish-actions.pod:5395 ../src/guestfs-actions.pod:8312
17486 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17487 msgstr ""
17488
17489 #. type: =head2
17490 #: ../fish/guestfish-actions.pod:5397
17491 msgid "wc-c"
17492 msgstr ""
17493
17494 #. type: verbatim
17495 #: ../fish/guestfish-actions.pod:5399
17496 #, no-wrap
17497 msgid ""
17498 " wc-c path\n"
17499 "\n"
17500 msgstr ""
17501
17502 #. type: textblock
17503 #: ../fish/guestfish-actions.pod:5401 ../src/guestfs-actions.pod:8352
17504 msgid ""
17505 "This command counts the characters in a file, using the C<wc -c> external "
17506 "command."
17507 msgstr ""
17508
17509 #. type: =head2
17510 #: ../fish/guestfish-actions.pod:5404
17511 msgid "wc-l"
17512 msgstr ""
17513
17514 #. type: verbatim
17515 #: ../fish/guestfish-actions.pod:5406
17516 #, no-wrap
17517 msgid ""
17518 " wc-l path\n"
17519 "\n"
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8365
17524 msgid ""
17525 "This command counts the lines in a file, using the C<wc -l> external command."
17526 msgstr ""
17527
17528 #. type: =head2
17529 #: ../fish/guestfish-actions.pod:5411
17530 msgid "wc-w"
17531 msgstr ""
17532
17533 #. type: verbatim
17534 #: ../fish/guestfish-actions.pod:5413
17535 #, no-wrap
17536 msgid ""
17537 " wc-w path\n"
17538 "\n"
17539 msgstr ""
17540
17541 #. type: textblock
17542 #: ../fish/guestfish-actions.pod:5415 ../src/guestfs-actions.pod:8378
17543 msgid ""
17544 "This command counts the words in a file, using the C<wc -w> external command."
17545 msgstr ""
17546
17547 #. type: =head2
17548 #: ../fish/guestfish-actions.pod:5418
17549 msgid "write"
17550 msgstr ""
17551
17552 #. type: verbatim
17553 #: ../fish/guestfish-actions.pod:5420
17554 #, no-wrap
17555 msgid ""
17556 " write path content\n"
17557 "\n"
17558 msgstr ""
17559
17560 #. type: textblock
17561 #: ../fish/guestfish-actions.pod:5422 ../src/guestfs-actions.pod:8393
17562 msgid ""
17563 "This call creates a file called C<path>.  The content of the file is the "
17564 "string C<content> (which can contain any 8 bit data)."
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish-actions.pod:5425
17569 msgid "See also L</write-append>."
17570 msgstr ""
17571
17572 #. type: =head2
17573 #: ../fish/guestfish-actions.pod:5430
17574 msgid "write-append"
17575 msgstr ""
17576
17577 #. type: verbatim
17578 #: ../fish/guestfish-actions.pod:5432
17579 #, no-wrap
17580 msgid ""
17581 " write-append path content\n"
17582 "\n"
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish-actions.pod:5434 ../src/guestfs-actions.pod:8413
17587 msgid ""
17588 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17589 "not exist, then a new file is created."
17590 msgstr ""
17591
17592 #. type: textblock
17593 #: ../fish/guestfish-actions.pod:5437
17594 msgid "See also L</write>."
17595 msgstr ""
17596
17597 #. type: =head2
17598 #: ../fish/guestfish-actions.pod:5442
17599 msgid "write-file"
17600 msgstr ""
17601
17602 #. type: verbatim
17603 #: ../fish/guestfish-actions.pod:5444
17604 #, no-wrap
17605 msgid ""
17606 " write-file path content size\n"
17607 "\n"
17608 msgstr ""
17609
17610 #. type: textblock
17611 #: ../fish/guestfish-actions.pod:5446 ../src/guestfs-actions.pod:8440
17612 msgid ""
17613 "This call creates a file called C<path>.  The contents of the file is the "
17614 "string C<content> (which can contain any 8 bit data), with length C<size>."
17615 msgstr ""
17616
17617 #. type: textblock
17618 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8444
17619 msgid ""
17620 "As a special case, if C<size> is C<0> then the length is calculated using "
17621 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17622 msgstr ""
17623
17624 #. type: textblock
17625 #: ../fish/guestfish-actions.pod:5454 ../src/guestfs-actions.pod:8448
17626 msgid ""
17627 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17628 "I<not> work, even if the length is specified."
17629 msgstr ""
17630
17631 #. type: textblock
17632 #: ../fish/guestfish-actions.pod:5460
17633 msgid ""
17634 "I<This function is deprecated.> In new code, use the L</write> call instead."
17635 msgstr ""
17636
17637 #. type: =head2
17638 #: ../fish/guestfish-actions.pod:5467
17639 msgid "zegrep"
17640 msgstr ""
17641
17642 #. type: verbatim
17643 #: ../fish/guestfish-actions.pod:5469
17644 #, no-wrap
17645 msgid ""
17646 " zegrep regex path\n"
17647 "\n"
17648 msgstr ""
17649
17650 #. type: textblock
17651 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8465
17652 msgid ""
17653 "This calls the external C<zegrep> program and returns the matching lines."
17654 msgstr ""
17655
17656 #. type: =head2
17657 #: ../fish/guestfish-actions.pod:5477
17658 msgid "zegrepi"
17659 msgstr ""
17660
17661 #. type: verbatim
17662 #: ../fish/guestfish-actions.pod:5479
17663 #, no-wrap
17664 msgid ""
17665 " zegrepi regex path\n"
17666 "\n"
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../fish/guestfish-actions.pod:5481 ../src/guestfs-actions.pod:8484
17671 msgid ""
17672 "This calls the external C<zegrep -i> program and returns the matching lines."
17673 msgstr ""
17674
17675 #. type: =head2
17676 #: ../fish/guestfish-actions.pod:5487
17677 msgid "zero"
17678 msgstr ""
17679
17680 #. type: verbatim
17681 #: ../fish/guestfish-actions.pod:5489
17682 #, no-wrap
17683 msgid ""
17684 " zero device\n"
17685 "\n"
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish-actions.pod:5491 ../src/guestfs-actions.pod:8502
17690 msgid "This command writes zeroes over the first few blocks of C<device>."
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish-actions.pod:5493 ../src/guestfs-actions.pod:8504
17695 msgid ""
17696 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17697 "securely wipe the device).  It should be sufficient to remove any partition "
17698 "tables, filesystem superblocks and so on."
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../fish/guestfish-actions.pod:5497 ../fish/guestfish-actions.pod:5512
17703 #: ../src/guestfs-actions.pod:8508 ../src/guestfs-actions.pod:8534
17704 msgid ""
17705 "If blocks are already zero, then this command avoids writing zeroes.  This "
17706 "prevents the underlying device from becoming non-sparse or growing "
17707 "unnecessarily."
17708 msgstr ""
17709
17710 #. type: textblock
17711 #: ../fish/guestfish-actions.pod:5501
17712 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17713 msgstr ""
17714
17715 #. type: =head2
17716 #: ../fish/guestfish-actions.pod:5504
17717 msgid "zero-device"
17718 msgstr ""
17719
17720 #. type: verbatim
17721 #: ../fish/guestfish-actions.pod:5506
17722 #, no-wrap
17723 msgid ""
17724 " zero-device device\n"
17725 "\n"
17726 msgstr ""
17727
17728 #. type: textblock
17729 #: ../fish/guestfish-actions.pod:5508
17730 msgid ""
17731 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17732 "which just zeroes the first few blocks of a device."
17733 msgstr ""
17734
17735 #. type: =head2
17736 #: ../fish/guestfish-actions.pod:5516
17737 msgid "zerofree"
17738 msgstr ""
17739
17740 #. type: verbatim
17741 #: ../fish/guestfish-actions.pod:5518
17742 #, no-wrap
17743 msgid ""
17744 " zerofree device\n"
17745 "\n"
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish-actions.pod:5520 ../src/guestfs-actions.pod:8553
17750 msgid ""
17751 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17752 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17753 "possible to compress the filesystem more effectively."
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../fish/guestfish-actions.pod:5525 ../src/guestfs-actions.pod:8558
17758 msgid "You should B<not> run this program if the filesystem is mounted."
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../fish/guestfish-actions.pod:5528 ../src/guestfs-actions.pod:8561
17763 msgid ""
17764 "It is possible that using this program can damage the filesystem or data on "
17765 "the filesystem."
17766 msgstr ""
17767
17768 #. type: =head2
17769 #: ../fish/guestfish-actions.pod:5531
17770 msgid "zfgrep"
17771 msgstr ""
17772
17773 #. type: verbatim
17774 #: ../fish/guestfish-actions.pod:5533
17775 #, no-wrap
17776 msgid ""
17777 " zfgrep pattern path\n"
17778 "\n"
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8575
17783 msgid ""
17784 "This calls the external C<zfgrep> program and returns the matching lines."
17785 msgstr ""
17786
17787 #. type: =head2
17788 #: ../fish/guestfish-actions.pod:5541
17789 msgid "zfgrepi"
17790 msgstr ""
17791
17792 #. type: verbatim
17793 #: ../fish/guestfish-actions.pod:5543
17794 #, no-wrap
17795 msgid ""
17796 " zfgrepi pattern path\n"
17797 "\n"
17798 msgstr ""
17799
17800 #. type: textblock
17801 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8594
17802 msgid ""
17803 "This calls the external C<zfgrep -i> program and returns the matching lines."
17804 msgstr ""
17805
17806 #. type: =head2
17807 #: ../fish/guestfish-actions.pod:5551
17808 msgid "zfile"
17809 msgstr ""
17810
17811 #. type: verbatim
17812 #: ../fish/guestfish-actions.pod:5553
17813 #, no-wrap
17814 msgid ""
17815 " zfile meth path\n"
17816 "\n"
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../fish/guestfish-actions.pod:5555 ../src/guestfs-actions.pod:8620
17821 msgid ""
17822 "This command runs C<file> after first decompressing C<path> using C<method>."
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish-actions.pod:5558 ../src/guestfs-actions.pod:8623
17827 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17828 msgstr ""
17829
17830 #. type: textblock
17831 #: ../fish/guestfish-actions.pod:5560
17832 msgid ""
17833 "Since 1.0.63, use L</file> instead which can now process compressed files."
17834 msgstr ""
17835
17836 #. type: textblock
17837 #: ../fish/guestfish-actions.pod:5563
17838 msgid ""
17839 "I<This function is deprecated.> In new code, use the L</file> call instead."
17840 msgstr ""
17841
17842 #. type: =head2
17843 #: ../fish/guestfish-actions.pod:5570
17844 msgid "zgrep"
17845 msgstr ""
17846
17847 #. type: verbatim
17848 #: ../fish/guestfish-actions.pod:5572
17849 #, no-wrap
17850 msgid ""
17851 " zgrep regex path\n"
17852 "\n"
17853 msgstr ""
17854
17855 #. type: textblock
17856 #: ../fish/guestfish-actions.pod:5574 ../src/guestfs-actions.pod:8640
17857 msgid ""
17858 "This calls the external C<zgrep> program and returns the matching lines."
17859 msgstr ""
17860
17861 #. type: =head2
17862 #: ../fish/guestfish-actions.pod:5580
17863 msgid "zgrepi"
17864 msgstr ""
17865
17866 #. type: verbatim
17867 #: ../fish/guestfish-actions.pod:5582
17868 #, no-wrap
17869 msgid ""
17870 " zgrepi regex path\n"
17871 "\n"
17872 msgstr ""
17873
17874 #. type: textblock
17875 #: ../fish/guestfish-actions.pod:5584 ../src/guestfs-actions.pod:8659
17876 msgid ""
17877 "This calls the external C<zgrep -i> program and returns the matching lines."
17878 msgstr ""
17879
17880 #. type: =head2
17881 #: ../fish/guestfish-commands.pod:1
17882 msgid "alloc"
17883 msgstr ""
17884
17885 #. type: =head2
17886 #: ../fish/guestfish-commands.pod:3
17887 msgid "allocate"
17888 msgstr ""
17889
17890 #. type: verbatim
17891 #: ../fish/guestfish-commands.pod:5
17892 #, no-wrap
17893 msgid ""
17894 " alloc filename size\n"
17895 "\n"
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish-commands.pod:7
17900 msgid ""
17901 "This creates an empty (zeroed) file of the given size, and then adds so it "
17902 "can be further examined."
17903 msgstr ""
17904
17905 #. type: textblock
17906 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17907 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17908 msgstr ""
17909
17910 #. type: textblock
17911 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17912 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17913 msgstr ""
17914
17915 #. type: textblock
17916 #: ../fish/guestfish-commands.pod:14
17917 msgid ""
17918 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17919 "image, see L</PREPARED DISK IMAGES>."
17920 msgstr ""
17921
17922 #. type: =head2
17923 #: ../fish/guestfish-commands.pod:17
17924 msgid "copy-in"
17925 msgstr ""
17926
17927 #. type: verbatim
17928 #: ../fish/guestfish-commands.pod:19
17929 #, no-wrap
17930 msgid ""
17931 " copy-in local [local ...] /remotedir\n"
17932 "\n"
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../fish/guestfish-commands.pod:21
17937 msgid ""
17938 "C<copy-in> copies local files or directories recursively into the disk "
17939 "image, placing them in the directory called C</remotedir> (which must "
17940 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17941 "other commands as necessary."
17942 msgstr ""
17943
17944 #. type: textblock
17945 #: ../fish/guestfish-commands.pod:26
17946 msgid ""
17947 "Multiple local files and directories can be specified, but the last "
17948 "parameter must always be a remote directory.  Wildcards cannot be used."
17949 msgstr ""
17950
17951 #. type: =head2
17952 #: ../fish/guestfish-commands.pod:30
17953 msgid "copy-out"
17954 msgstr ""
17955
17956 #. type: verbatim
17957 #: ../fish/guestfish-commands.pod:32
17958 #, no-wrap
17959 msgid ""
17960 " copy-out remote [remote ...] localdir\n"
17961 "\n"
17962 msgstr ""
17963
17964 #. type: textblock
17965 #: ../fish/guestfish-commands.pod:34
17966 msgid ""
17967 "C<copy-out> copies remote files or directories recursively out of the disk "
17968 "image, placing them on the host disk in a local directory called C<localdir> "
17969 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17970 "download>, L</tar-out> and other commands as necessary."
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish-commands.pod:40
17975 msgid ""
17976 "Multiple remote files and directories can be specified, but the last "
17977 "parameter must always be a local directory.  To download to the current "
17978 "directory, use C<.> as in:"
17979 msgstr ""
17980
17981 #. type: verbatim
17982 #: ../fish/guestfish-commands.pod:44
17983 #, no-wrap
17984 msgid ""
17985 " copy-out /home .\n"
17986 "\n"
17987 msgstr ""
17988
17989 #. type: textblock
17990 #: ../fish/guestfish-commands.pod:46
17991 msgid ""
17992 "Wildcards cannot be used in the ordinary command, but you can use them with "
17993 "the help of L</glob> like this:"
17994 msgstr ""
17995
17996 #. type: verbatim
17997 #: ../fish/guestfish-commands.pod:49
17998 #, no-wrap
17999 msgid ""
18000 " glob copy-out /home/* .\n"
18001 "\n"
18002 msgstr ""
18003
18004 #. type: =head2
18005 #: ../fish/guestfish-commands.pod:51
18006 msgid "display"
18007 msgstr ""
18008
18009 #. type: verbatim
18010 #: ../fish/guestfish-commands.pod:53
18011 #, no-wrap
18012 msgid ""
18013 " display filename\n"
18014 "\n"
18015 msgstr ""
18016
18017 #. type: textblock
18018 #: ../fish/guestfish-commands.pod:55
18019 msgid ""
18020 "Use C<display> (a graphical display program) to display an image file.  It "
18021 "downloads the file, and runs C<display> on it."
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish-commands.pod:58
18026 msgid ""
18027 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18028 "environment variable.  For example to use the GNOME display program:"
18029 msgstr ""
18030
18031 #. type: verbatim
18032 #: ../fish/guestfish-commands.pod:61
18033 #, no-wrap
18034 msgid ""
18035 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18036 "\n"
18037 msgstr ""
18038
18039 #. type: textblock
18040 #: ../fish/guestfish-commands.pod:63
18041 msgid "See also L<display(1)>."
18042 msgstr ""
18043
18044 #. type: =head2
18045 #: ../fish/guestfish-commands.pod:65
18046 msgid "echo"
18047 msgstr ""
18048
18049 #. type: verbatim
18050 #: ../fish/guestfish-commands.pod:67
18051 #, no-wrap
18052 msgid ""
18053 " echo [params ...]\n"
18054 "\n"
18055 msgstr ""
18056
18057 #. type: textblock
18058 #: ../fish/guestfish-commands.pod:69
18059 msgid "This echos the parameters to the terminal."
18060 msgstr ""
18061
18062 #. type: =head2
18063 #: ../fish/guestfish-commands.pod:71
18064 msgid "edit"
18065 msgstr ""
18066
18067 #. type: =head2
18068 #: ../fish/guestfish-commands.pod:73
18069 msgid "vi"
18070 msgstr ""
18071
18072 #. type: =head2
18073 #: ../fish/guestfish-commands.pod:75
18074 msgid "emacs"
18075 msgstr ""
18076
18077 #. type: verbatim
18078 #: ../fish/guestfish-commands.pod:77
18079 #, no-wrap
18080 msgid ""
18081 " edit filename\n"
18082 "\n"
18083 msgstr ""
18084
18085 #. type: textblock
18086 #: ../fish/guestfish-commands.pod:79
18087 msgid ""
18088 "This is used to edit a file.  It downloads the file, edits it locally using "
18089 "your editor, then uploads the result."
18090 msgstr ""
18091
18092 #. type: textblock
18093 #: ../fish/guestfish-commands.pod:82
18094 msgid ""
18095 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18096 "or C<emacs> you will get those corresponding editors."
18097 msgstr ""
18098
18099 #. type: =head2
18100 #: ../fish/guestfish-commands.pod:86
18101 msgid "glob"
18102 msgstr ""
18103
18104 #. type: verbatim
18105 #: ../fish/guestfish-commands.pod:88
18106 #, no-wrap
18107 msgid ""
18108 " glob command args...\n"
18109 "\n"
18110 msgstr ""
18111
18112 #. type: textblock
18113 #: ../fish/guestfish-commands.pod:90
18114 msgid ""
18115 "Expand wildcards in any paths in the args list, and run C<command> "
18116 "repeatedly on each matching path."
18117 msgstr ""
18118
18119 #. type: textblock
18120 #: ../fish/guestfish-commands.pod:93
18121 msgid "See L</WILDCARDS AND GLOBBING>."
18122 msgstr ""
18123
18124 #. type: =head2
18125 #: ../fish/guestfish-commands.pod:95
18126 msgid "hexedit"
18127 msgstr ""
18128
18129 #. type: verbatim
18130 #: ../fish/guestfish-commands.pod:97
18131 #, no-wrap
18132 msgid ""
18133 " hexedit <filename|device>\n"
18134 " hexedit <filename|device> <max>\n"
18135 " hexedit <filename|device> <start> <max>\n"
18136 "\n"
18137 msgstr ""
18138
18139 #. type: textblock
18140 #: ../fish/guestfish-commands.pod:101
18141 msgid ""
18142 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18143 "device."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish-commands.pod:104
18148 msgid ""
18149 "This command works by downloading potentially the whole file or device, "
18150 "editing it locally, then uploading it.  If the file or device is large, you "
18151 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18152 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18153 "usual modifiers allowed such as C<1M> (1 megabyte)."
18154 msgstr ""
18155
18156 #. type: textblock
18157 #: ../fish/guestfish-commands.pod:111
18158 msgid "For example to edit the first few sectors of a disk you might do:"
18159 msgstr ""
18160
18161 #. type: verbatim
18162 #: ../fish/guestfish-commands.pod:114
18163 #, no-wrap
18164 msgid ""
18165 " hexedit /dev/sda 1M\n"
18166 "\n"
18167 msgstr ""
18168
18169 #. type: textblock
18170 #: ../fish/guestfish-commands.pod:116
18171 msgid ""
18172 "which would allow you to edit anywhere within the first megabyte of the disk."
18173 msgstr ""
18174
18175 #. type: textblock
18176 #: ../fish/guestfish-commands.pod:119
18177 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18178 msgstr ""
18179
18180 #. type: verbatim
18181 #: ../fish/guestfish-commands.pod:121
18182 #, no-wrap
18183 msgid ""
18184 " hexedit /dev/sda1 0x400 0x400\n"
18185 "\n"
18186 msgstr ""
18187
18188 #. type: textblock
18189 #: ../fish/guestfish-commands.pod:123
18190 msgid "(assuming the superblock is in the standard location)."
18191 msgstr ""
18192
18193 #. type: textblock
18194 #: ../fish/guestfish-commands.pod:125
18195 msgid ""
18196 "This command requires the external L<hexedit(1)> program.  You can specify "
18197 "another program to use by setting the C<HEXEDITOR> environment variable."
18198 msgstr ""
18199
18200 #. type: textblock
18201 #: ../fish/guestfish-commands.pod:129
18202 msgid "See also L</hexdump>."
18203 msgstr ""
18204
18205 #. type: =head2
18206 #: ../fish/guestfish-commands.pod:131
18207 msgid "lcd"
18208 msgstr ""
18209
18210 #. type: verbatim
18211 #: ../fish/guestfish-commands.pod:133
18212 #, no-wrap
18213 msgid ""
18214 " lcd directory\n"
18215 "\n"
18216 msgstr ""
18217
18218 #. type: textblock
18219 #: ../fish/guestfish-commands.pod:135
18220 msgid ""
18221 "Change the local directory, ie. the current directory of guestfish itself."
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../fish/guestfish-commands.pod:138
18226 msgid "Note that C<!cd> won't do what you might expect."
18227 msgstr ""
18228
18229 #. type: =head2
18230 #: ../fish/guestfish-commands.pod:140
18231 msgid "man"
18232 msgstr ""
18233
18234 #. type: =head2
18235 #: ../fish/guestfish-commands.pod:142
18236 msgid "manual"
18237 msgstr ""
18238
18239 #. type: verbatim
18240 #: ../fish/guestfish-commands.pod:144
18241 #, no-wrap
18242 msgid ""
18243 "  man\n"
18244 "\n"
18245 msgstr ""
18246
18247 #. type: textblock
18248 #: ../fish/guestfish-commands.pod:146
18249 msgid "Opens the manual page for guestfish."
18250 msgstr ""
18251
18252 #. type: =head2
18253 #: ../fish/guestfish-commands.pod:148
18254 msgid "more"
18255 msgstr ""
18256
18257 #. type: =head2
18258 #: ../fish/guestfish-commands.pod:150
18259 msgid "less"
18260 msgstr ""
18261
18262 #. type: verbatim
18263 #: ../fish/guestfish-commands.pod:152
18264 #, no-wrap
18265 msgid ""
18266 " more filename\n"
18267 "\n"
18268 msgstr ""
18269
18270 #. type: verbatim
18271 #: ../fish/guestfish-commands.pod:154
18272 #, no-wrap
18273 msgid ""
18274 " less filename\n"
18275 "\n"
18276 msgstr ""
18277
18278 #. type: textblock
18279 #: ../fish/guestfish-commands.pod:156
18280 msgid "This is used to view a file."
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish-commands.pod:158
18285 msgid ""
18286 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18287 "C<less> you will get the C<less> command specifically."
18288 msgstr ""
18289
18290 #. type: =head2
18291 #: ../fish/guestfish-commands.pod:161
18292 msgid "reopen"
18293 msgstr ""
18294
18295 #. type: verbatim
18296 #: ../fish/guestfish-commands.pod:163
18297 #, no-wrap
18298 msgid ""
18299 "  reopen\n"
18300 "\n"
18301 msgstr ""
18302
18303 #. type: textblock
18304 #: ../fish/guestfish-commands.pod:165
18305 msgid ""
18306 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18307 "normally, because the handle is closed properly when guestfish exits.  "
18308 "However this is occasionally useful for testing."
18309 msgstr ""
18310
18311 #. type: =head2
18312 #: ../fish/guestfish-commands.pod:169
18313 msgid "setenv"
18314 msgstr ""
18315
18316 #. type: verbatim
18317 #: ../fish/guestfish-commands.pod:171
18318 #, no-wrap
18319 msgid ""
18320 "  setenv VAR value\n"
18321 "\n"
18322 msgstr ""
18323
18324 #. type: textblock
18325 #: ../fish/guestfish-commands.pod:173
18326 msgid "Set the environment variable C<VAR> to the string C<value>."
18327 msgstr ""
18328
18329 #. type: textblock
18330 #: ../fish/guestfish-commands.pod:175
18331 msgid ""
18332 "To print the value of an environment variable use a shell command such as:"
18333 msgstr ""
18334
18335 #. type: verbatim
18336 #: ../fish/guestfish-commands.pod:178
18337 #, no-wrap
18338 msgid ""
18339 " !echo $VAR\n"
18340 "\n"
18341 msgstr ""
18342
18343 #. type: =head2
18344 #: ../fish/guestfish-commands.pod:180
18345 msgid "sparse"
18346 msgstr ""
18347
18348 #. type: verbatim
18349 #: ../fish/guestfish-commands.pod:182
18350 #, no-wrap
18351 msgid ""
18352 " sparse filename size\n"
18353 "\n"
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish-commands.pod:184
18358 msgid ""
18359 "This creates an empty sparse file of the given size, and then adds so it can "
18360 "be further examined."
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish-commands.pod:187
18365 msgid ""
18366 "In all respects it works the same as the L</alloc> command, except that the "
18367 "image file is allocated sparsely, which means that disk blocks are not "
18368 "assigned to the file until they are needed.  Sparse disk files only use "
18369 "space when written to, but they are slower and there is a danger you could "
18370 "run out of real disk space during a write operation."
18371 msgstr ""
18372
18373 #. type: =head2
18374 #: ../fish/guestfish-commands.pod:197
18375 msgid "supported"
18376 msgstr ""
18377
18378 #. type: verbatim
18379 #: ../fish/guestfish-commands.pod:199
18380 #, no-wrap
18381 msgid ""
18382 " supported\n"
18383 "\n"
18384 msgstr ""
18385
18386 #. type: textblock
18387 #: ../fish/guestfish-commands.pod:201
18388 msgid ""
18389 "This command returns a list of the optional groups known to the daemon, and "
18390 "indicates which ones are supported by this build of the libguestfs appliance."
18391 msgstr ""
18392
18393 #. type: textblock
18394 #: ../fish/guestfish-commands.pod:205
18395 msgid "See also L<guestfs(3)/AVAILABILITY>."
18396 msgstr ""
18397
18398 #. type: =head2
18399 #: ../fish/guestfish-commands.pod:207
18400 msgid "time"
18401 msgstr ""
18402
18403 #. type: verbatim
18404 #: ../fish/guestfish-commands.pod:209
18405 #, no-wrap
18406 msgid ""
18407 " time command args...\n"
18408 "\n"
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish-commands.pod:211
18413 msgid ""
18414 "Run the command as usual, but print the elapsed time afterwards.  This can "
18415 "be useful for benchmarking operations."
18416 msgstr ""
18417
18418 #. type: =head2
18419 #: ../fish/guestfish-commands.pod:214
18420 msgid "unsetenv"
18421 msgstr ""
18422
18423 #. type: verbatim
18424 #: ../fish/guestfish-commands.pod:216
18425 #, no-wrap
18426 msgid ""
18427 "  unsetenv VAR\n"
18428 "\n"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/guestfish-commands.pod:218
18433 msgid "Remove C<VAR> from the environment."
18434 msgstr ""
18435
18436 #. type: textblock
18437 #: ../fish/guestfish.pod:5
18438 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18439 msgstr ""
18440
18441 #. type: verbatim
18442 #: ../fish/guestfish.pod:9
18443 #, no-wrap
18444 msgid ""
18445 " guestfish [--options] [commands]\n"
18446 "\n"
18447 msgstr ""
18448
18449 #. type: verbatim
18450 #: ../fish/guestfish.pod:11
18451 #, no-wrap
18452 msgid ""
18453 " guestfish\n"
18454 "\n"
18455 msgstr ""
18456
18457 #. type: verbatim
18458 #: ../fish/guestfish.pod:13
18459 #, no-wrap
18460 msgid ""
18461 " guestfish [--ro|--rw] -a disk.img\n"
18462 "\n"
18463 msgstr ""
18464
18465 #. type: verbatim
18466 #: ../fish/guestfish.pod:15
18467 #, no-wrap
18468 msgid ""
18469 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18470 "\n"
18471 msgstr ""
18472
18473 #. type: verbatim
18474 #: ../fish/guestfish.pod:17
18475 #, no-wrap
18476 msgid ""
18477 " guestfish -d libvirt-domain\n"
18478 "\n"
18479 msgstr ""
18480
18481 #. type: verbatim
18482 #: ../fish/guestfish.pod:19
18483 #, no-wrap
18484 msgid ""
18485 " guestfish [--ro|--rw] -a disk.img -i\n"
18486 "\n"
18487 msgstr ""
18488
18489 #. type: verbatim
18490 #: ../fish/guestfish.pod:21
18491 #, no-wrap
18492 msgid ""
18493 " guestfish -d libvirt-domain -i\n"
18494 "\n"
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fish/guestfish.pod:25
18499 msgid ""
18500 "Using guestfish in read/write mode on live virtual machines can be "
18501 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18502 "option to use guestfish safely if the disk image or virtual machine might be "
18503 "live."
18504 msgstr ""
18505
18506 #. type: textblock
18507 #: ../fish/guestfish.pod:32
18508 msgid ""
18509 "Guestfish is a shell and command-line tool for examining and modifying "
18510 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18511 "functionality of the guestfs API, see L<guestfs(3)>."
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish.pod:36
18516 msgid ""
18517 "Guestfish gives you structured access to the libguestfs API, from shell "
18518 "scripts or the command line or interactively.  If you want to rescue a "
18519 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18520 "command."
18521 msgstr ""
18522
18523 #. type: =head2
18524 #: ../fish/guestfish.pod:43
18525 msgid "As an interactive shell"
18526 msgstr ""
18527
18528 #. type: verbatim
18529 #: ../fish/guestfish.pod:45
18530 #, no-wrap
18531 msgid ""
18532 " $ guestfish\n"
18533 " \n"
18534 msgstr ""
18535
18536 #. type: verbatim
18537 #: ../fish/guestfish.pod:47
18538 #, no-wrap
18539 msgid ""
18540 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18541 " editing virtual machine filesystems.\n"
18542 " \n"
18543 msgstr ""
18544
18545 #. type: verbatim
18546 #: ../fish/guestfish.pod:50
18547 #, no-wrap
18548 msgid ""
18549 " Type: 'help' for a list of commands\n"
18550 "       'man' to read the manual\n"
18551 "       'quit' to quit the shell\n"
18552 " \n"
18553 msgstr ""
18554
18555 #. type: verbatim
18556 #: ../fish/guestfish.pod:54
18557 #, no-wrap
18558 msgid ""
18559 " ><fs> add-ro disk.img\n"
18560 " ><fs> run\n"
18561 " ><fs> list-filesystems\n"
18562 " /dev/sda1: ext4\n"
18563 " /dev/vg_guest/lv_root: ext4\n"
18564 " /dev/vg_guest/lv_swap: swap\n"
18565 " ><fs> mount /dev/vg_guest/lv_root /\n"
18566 " ><fs> cat /etc/fstab\n"
18567 " # /etc/fstab\n"
18568 " # Created by anaconda\n"
18569 " [...]\n"
18570 " ><fs> exit\n"
18571 "\n"
18572 msgstr ""
18573
18574 #. type: =head2
18575 #: ../fish/guestfish.pod:67
18576 msgid "From shell scripts"
18577 msgstr ""
18578
18579 #. type: textblock
18580 #: ../fish/guestfish.pod:69
18581 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18582 msgstr ""
18583
18584 #. type: verbatim
18585 #: ../fish/guestfish.pod:71
18586 #, no-wrap
18587 msgid ""
18588 " guestfish <<_EOF_\n"
18589 " add disk.img\n"
18590 " run\n"
18591 " mount /dev/vg_guest/lv_root /\n"
18592 " write /etc/motd \"Welcome, new users\"\n"
18593 " _EOF_\n"
18594 "\n"
18595 msgstr ""
18596
18597 #. type: textblock
18598 #: ../fish/guestfish.pod:78
18599 msgid "List the LVM logical volumes in a disk image:"
18600 msgstr ""
18601
18602 #. type: verbatim
18603 #: ../fish/guestfish.pod:80
18604 #, no-wrap
18605 msgid ""
18606 " guestfish -a disk.img --ro <<_EOF_\n"
18607 " run\n"
18608 " lvs\n"
18609 " _EOF_\n"
18610 "\n"
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fish/guestfish.pod:85
18615 msgid "List all the filesystems in a disk image:"
18616 msgstr ""
18617
18618 #. type: verbatim
18619 #: ../fish/guestfish.pod:87
18620 #, no-wrap
18621 msgid ""
18622 " guestfish -a disk.img --ro <<_EOF_\n"
18623 " run\n"
18624 " list-filesystems\n"
18625 " _EOF_\n"
18626 "\n"
18627 msgstr ""
18628
18629 #. type: =head2
18630 #: ../fish/guestfish.pod:92
18631 msgid "On one command line"
18632 msgstr ""
18633
18634 #. type: textblock
18635 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18636 msgid "Update C</etc/resolv.conf> in a guest:"
18637 msgstr ""
18638
18639 #. type: verbatim
18640 #: ../fish/guestfish.pod:96
18641 #, no-wrap
18642 msgid ""
18643 " guestfish \\\n"
18644 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18645 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18646 "\n"
18647 msgstr ""
18648
18649 #. type: textblock
18650 #: ../fish/guestfish.pod:100
18651 msgid "Edit C</boot/grub/grub.conf> interactively:"
18652 msgstr ""
18653
18654 #. type: verbatim
18655 #: ../fish/guestfish.pod:102
18656 #, no-wrap
18657 msgid ""
18658 " guestfish --rw --add disk.img \\\n"
18659 "   --mount /dev/vg_guest/lv_root \\\n"
18660 "   --mount /dev/sda1:/boot \\\n"
18661 "   edit /boot/grub/grub.conf\n"
18662 "\n"
18663 msgstr ""
18664
18665 #. type: =head2
18666 #: ../fish/guestfish.pod:107
18667 msgid "Mount disks automatically"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:109
18672 msgid ""
18673 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18674 msgstr ""
18675
18676 #. type: verbatim
18677 #: ../fish/guestfish.pod:112
18678 #, no-wrap
18679 msgid ""
18680 " guestfish --ro -a disk.img -i cat /etc/group\n"
18681 "\n"
18682 msgstr ""
18683
18684 #. type: verbatim
18685 #: ../fish/guestfish.pod:114
18686 #, no-wrap
18687 msgid ""
18688 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18689 "\n"
18690 msgstr ""
18691
18692 #. type: textblock
18693 #: ../fish/guestfish.pod:116
18694 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18695 msgstr ""
18696
18697 #. type: verbatim
18698 #: ../fish/guestfish.pod:118
18699 #, no-wrap
18700 msgid ""
18701 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18702 "\n"
18703 msgstr ""
18704
18705 #. type: =head2
18706 #: ../fish/guestfish.pod:120
18707 msgid "As a script interpreter"
18708 msgstr ""
18709
18710 #. type: textblock
18711 #: ../fish/guestfish.pod:122
18712 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18713 msgstr ""
18714
18715 #. type: verbatim
18716 #: ../fish/guestfish.pod:124
18717 #, no-wrap
18718 msgid ""
18719 " #!/usr/bin/guestfish -f\n"
18720 " sparse test1.img 100M\n"
18721 " run\n"
18722 " part-disk /dev/sda mbr\n"
18723 " mkfs ext2 /dev/sda1\n"
18724 "\n"
18725 msgstr ""
18726
18727 #. type: =head2
18728 #: ../fish/guestfish.pod:130
18729 msgid "Start with a prepared disk"
18730 msgstr ""
18731
18732 #. type: textblock
18733 #: ../fish/guestfish.pod:132
18734 msgid ""
18735 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18736 "single ext2-formatted partition:"
18737 msgstr ""
18738
18739 #. type: verbatim
18740 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18741 #, no-wrap
18742 msgid ""
18743 " guestfish -N fs\n"
18744 "\n"
18745 msgstr ""
18746
18747 #. type: textblock
18748 #: ../fish/guestfish.pod:137
18749 msgid "To list what is available do:"
18750 msgstr ""
18751
18752 #. type: verbatim
18753 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18754 #, no-wrap
18755 msgid ""
18756 " guestfish -N help | less\n"
18757 "\n"
18758 msgstr ""
18759
18760 #. type: =head2
18761 #: ../fish/guestfish.pod:141
18762 msgid "Remote control"
18763 msgstr ""
18764
18765 #. type: verbatim
18766 #: ../fish/guestfish.pod:143
18767 #, no-wrap
18768 msgid ""
18769 " eval \"`guestfish --listen`\"\n"
18770 " guestfish --remote add-ro disk.img\n"
18771 " guestfish --remote run\n"
18772 " guestfish --remote lvs\n"
18773 "\n"
18774 msgstr ""
18775
18776 #. type: textblock
18777 #: ../fish/guestfish.pod:154
18778 msgid "Displays general help on options."
18779 msgstr ""
18780
18781 #. type: =item
18782 #: ../fish/guestfish.pod:158
18783 msgid "B<--cmd-help>"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:160
18788 msgid "Lists all available guestfish commands."
18789 msgstr ""
18790
18791 #. type: =item
18792 #: ../fish/guestfish.pod:162
18793 msgid "B<-h cmd>"
18794 msgstr ""
18795
18796 #. type: =item
18797 #: ../fish/guestfish.pod:164
18798 msgid "B<--cmd-help cmd>"
18799 msgstr ""
18800
18801 #. type: textblock
18802 #: ../fish/guestfish.pod:166
18803 msgid "Displays detailed help on a single command C<cmd>."
18804 msgstr ""
18805
18806 #. type: =item
18807 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18808 msgid "B<-a image>"
18809 msgstr ""
18810
18811 #. type: =item
18812 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18813 msgid "B<--add image>"
18814 msgstr ""
18815
18816 #. type: textblock
18817 #: ../fish/guestfish.pod:172
18818 msgid "Add a block device or virtual machine image to the shell."
18819 msgstr ""
18820
18821 #. type: textblock
18822 #: ../fish/guestfish.pod:177
18823 msgid ""
18824 "Using this flag is mostly equivalent to using the C<add> command, with "
18825 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18826 "the I<--format=...> flag was given."
18827 msgstr ""
18828
18829 #. type: textblock
18830 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18831 msgid ""
18832 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18833 "URI to use.  The default is to use the default libvirt connection."
18834 msgstr ""
18835
18836 #. type: =item
18837 #: ../fish/guestfish.pod:189
18838 msgid "B<--csh>"
18839 msgstr ""
18840
18841 #. type: textblock
18842 #: ../fish/guestfish.pod:191
18843 msgid ""
18844 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18845 "section L</REMOTE CONTROL AND CSH> below."
18846 msgstr ""
18847
18848 #. type: =item
18849 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18850 msgid "B<-d libvirt-domain>"
18851 msgstr ""
18852
18853 #. type: =item
18854 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18855 msgid "B<--domain libvirt-domain>"
18856 msgstr ""
18857
18858 #. type: textblock
18859 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18860 msgid ""
18861 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18862 "used, then any libvirt domain can be used.  However in write mode, only "
18863 "libvirt domains which are shut down can be named here."
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18868 msgid "Domain UUIDs can be used instead of names."
18869 msgstr ""
18870
18871 #. type: textblock
18872 #: ../fish/guestfish.pod:204
18873 msgid ""
18874 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18875 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18876 "if the I<--format:...> flag was given."
18877 msgstr ""
18878
18879 #. type: =item
18880 #: ../fish/guestfish.pod:208
18881 msgid "B<-D>"
18882 msgstr ""
18883
18884 #. type: =item
18885 #: ../fish/guestfish.pod:210
18886 msgid "B<--no-dest-paths>"
18887 msgstr ""
18888
18889 #. type: textblock
18890 #: ../fish/guestfish.pod:212
18891 msgid ""
18892 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18893 "to hit the tab key to complete paths on the guest filesystem, but this "
18894 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18895 "allow this feature to be disabled."
18896 msgstr ""
18897
18898 #. type: textblock
18899 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18900 msgid ""
18901 "When prompting for keys and passphrases, guestfish normally turns echoing "
18902 "off so you cannot see what you are typing.  If you are not worried about "
18903 "Tempest attacks and there is no one else in the room you can specify this "
18904 "flag to see what you are typing."
18905 msgstr ""
18906
18907 #. type: =item
18908 #: ../fish/guestfish.pod:224
18909 msgid "B<-f file>"
18910 msgstr ""
18911
18912 #. type: =item
18913 #: ../fish/guestfish.pod:226
18914 msgid "B<--file file>"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:228
18919 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18920 msgstr ""
18921
18922 #. type: verbatim
18923 #: ../fish/guestfish.pod:231
18924 #, no-wrap
18925 msgid ""
18926 " #!/usr/bin/guestfish -f\n"
18927 "\n"
18928 msgstr ""
18929
18930 #. type: verbatim
18931 #: ../fish/guestfish.pod:244
18932 #, no-wrap
18933 msgid ""
18934 " guestfish --format=raw -a disk.img\n"
18935 "\n"
18936 msgstr ""
18937
18938 #. type: verbatim
18939 #: ../fish/guestfish.pod:248
18940 #, no-wrap
18941 msgid ""
18942 " guestfish --format=raw -a disk.img --format -a another.img\n"
18943 "\n"
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish.pod:253
18948 msgid ""
18949 "If you have untrusted raw-format guest disk images, you should use this "
18950 "option to specify the disk format.  This avoids a possible security problem "
18951 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18952 msgstr ""
18953
18954 #. type: =item
18955 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18956 msgid "B<--inspector>"
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18961 msgid ""
18962 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18963 "system and mount filesystems as they would be mounted on the real virtual "
18964 "machine."
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../fish/guestfish.pod:266
18969 msgid "Typical usage is either:"
18970 msgstr ""
18971
18972 #. type: verbatim
18973 #: ../fish/guestfish.pod:268
18974 #, no-wrap
18975 msgid ""
18976 " guestfish -d myguest -i\n"
18977 "\n"
18978 msgstr ""
18979
18980 #. type: textblock
18981 #: ../fish/guestfish.pod:270
18982 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18983 msgstr ""
18984
18985 #. type: verbatim
18986 #: ../fish/guestfish.pod:272
18987 #, no-wrap
18988 msgid ""
18989 " guestfish --ro -d myguest -i\n"
18990 "\n"
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../fish/guestfish.pod:274
18995 msgid "(for active domains, readonly), or specify the block device directly:"
18996 msgstr ""
18997
18998 #. type: verbatim
18999 #: ../fish/guestfish.pod:276
19000 #, no-wrap
19001 msgid ""
19002 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19003 "\n"
19004 msgstr ""
19005
19006 #. type: textblock
19007 #: ../fish/guestfish.pod:278
19008 msgid ""
19009 "Note that the command line syntax changed slightly over older versions of "
19010 "guestfish.  You can still use the old syntax:"
19011 msgstr ""
19012
19013 #. type: verbatim
19014 #: ../fish/guestfish.pod:281
19015 #, no-wrap
19016 msgid ""
19017 " guestfish [--ro] -i disk.img\n"
19018 "\n"
19019 msgstr ""
19020
19021 #. type: verbatim
19022 #: ../fish/guestfish.pod:283
19023 #, no-wrap
19024 msgid ""
19025 " guestfish [--ro] -i libvirt-domain\n"
19026 "\n"
19027 msgstr ""
19028
19029 #. type: textblock
19030 #: ../fish/guestfish.pod:285
19031 msgid ""
19032 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19033 "then using other commands to mount the filesystems that were found."
19034 msgstr ""
19035
19036 #. type: =item
19037 #: ../fish/guestfish.pod:294
19038 msgid "B<--listen>"
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:296
19043 msgid ""
19044 "Fork into the background and listen for remote commands.  See section L</"
19045 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19046 msgstr ""
19047
19048 #. type: =item
19049 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19050 msgid "B<--live>"
19051 msgstr ""
19052
19053 #. type: textblock
19054 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19055 msgid ""
19056 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19057 "ATTACHING TO RUNNING DAEMONS>)."
19058 msgstr ""
19059
19060 #. type: =item
19061 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19062 msgid "B<-m dev[:mountpoint[:options]]>"
19063 msgstr ""
19064
19065 #. type: =item
19066 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19067 msgid "B<--mount dev[:mountpoint[:options]]>"
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fish/guestfish.pod:308
19072 msgid "Mount the named partition or logical volume on the given mountpoint."
19073 msgstr ""
19074
19075 #. type: textblock
19076 #: ../fish/guestfish.pod:310
19077 msgid "If the mountpoint is omitted, it defaults to C</>."
19078 msgstr ""
19079
19080 #. type: textblock
19081 #: ../fish/guestfish.pod:312
19082 msgid "You have to mount something on C</> before most commands will work."
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish.pod:314
19087 msgid ""
19088 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19089 "launched."
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:317
19094 msgid ""
19095 "If you don't know what filesystems a disk image contains, you can either run "
19096 "guestfish without this option, then list the partitions, filesystems and LVs "
19097 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19098 "commands), or you can use the L<virt-filesystems(1)> program."
19099 msgstr ""
19100
19101 #. type: textblock
19102 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19103 msgid ""
19104 "The third (and rarely used) part of the mount parameter is the list of mount "
19105 "options used to mount the underlying filesystem.  If this is not given, then "
19106 "the mount options are either the empty string or C<ro> (the latter if the "
19107 "I<--ro> flag is used).  By specifying the mount options, you override this "
19108 "default choice.  Probably the only time you would use this is to enable ACLs "
19109 "and/or extended attributes if the filesystem can support them:"
19110 msgstr ""
19111
19112 #. type: verbatim
19113 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19114 #, no-wrap
19115 msgid ""
19116 " -m /dev/sda1:/:acl,user_xattr\n"
19117 "\n"
19118 msgstr ""
19119
19120 #. type: textblock
19121 #: ../fish/guestfish.pod:333
19122 msgid "Using this flag is equivalent to using the C<mount-options> command."
19123 msgstr ""
19124
19125 #. type: =item
19126 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19127 #: ../resize/virt-resize.pod:435
19128 msgid "B<-n>"
19129 msgstr ""
19130
19131 #. type: =item
19132 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19133 msgid "B<--no-sync>"
19134 msgstr ""
19135
19136 #. type: textblock
19137 #: ../fish/guestfish.pod:339
19138 msgid ""
19139 "Disable autosync.  This is enabled by default.  See the discussion of "
19140 "autosync in the L<guestfs(3)> manpage."
19141 msgstr ""
19142
19143 #. type: =item
19144 #: ../fish/guestfish.pod:342
19145 msgid "B<-N type>"
19146 msgstr ""
19147
19148 #. type: =item
19149 #: ../fish/guestfish.pod:344
19150 msgid "B<--new type>"
19151 msgstr ""
19152
19153 #. type: =item
19154 #: ../fish/guestfish.pod:346
19155 msgid "B<-N help>"
19156 msgstr ""
19157
19158 #. type: textblock
19159 #: ../fish/guestfish.pod:348
19160 msgid ""
19161 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19162 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19163 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19164 "IMAGES> below."
19165 msgstr ""
19166
19167 #. type: =item
19168 #: ../fish/guestfish.pod:353
19169 msgid "B<--progress-bars>"
19170 msgstr ""
19171
19172 #. type: textblock
19173 #: ../fish/guestfish.pod:355
19174 msgid "Enable progress bars, even when guestfish is used non-interactively."
19175 msgstr ""
19176
19177 #. type: textblock
19178 #: ../fish/guestfish.pod:357
19179 msgid ""
19180 "Progress bars are enabled by default when guestfish is used as an "
19181 "interactive shell."
19182 msgstr ""
19183
19184 #. type: =item
19185 #: ../fish/guestfish.pod:360
19186 msgid "B<--no-progress-bars>"
19187 msgstr ""
19188
19189 #. type: textblock
19190 #: ../fish/guestfish.pod:362
19191 msgid "Disable progress bars."
19192 msgstr ""
19193
19194 #. type: =item
19195 #: ../fish/guestfish.pod:364
19196 msgid "B<--remote[=pid]>"
19197 msgstr ""
19198
19199 #. type: textblock
19200 #: ../fish/guestfish.pod:366
19201 msgid ""
19202 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19203 "CONTROL GUESTFISH OVER A SOCKET> below."
19204 msgstr ""
19205
19206 #. type: =item
19207 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19208 #: ../rescue/virt-rescue.pod:189
19209 msgid "B<-r>"
19210 msgstr ""
19211
19212 #. type: =item
19213 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19214 #: ../rescue/virt-rescue.pod:191
19215 msgid "B<--ro>"
19216 msgstr ""
19217
19218 #. type: textblock
19219 #: ../fish/guestfish.pod:373
19220 msgid ""
19221 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19222 "mounts are done read-only."
19223 msgstr ""
19224
19225 #. type: textblock
19226 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19227 msgid ""
19228 "The option must always be used if the disk image or virtual machine might be "
19229 "running, and is generally recommended in cases where you don't need write "
19230 "access to the disk."
19231 msgstr ""
19232
19233 #. type: textblock
19234 #: ../fish/guestfish.pod:380
19235 msgid ""
19236 "Note that prepared disk images created with I<-N> are not affected by this "
19237 "option.  Also commands like C<add> are not affected - you have to specify "
19238 "the C<readonly:true> option explicitly if you need it."
19239 msgstr ""
19240
19241 #. type: textblock
19242 #: ../fish/guestfish.pod:384
19243 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19244 msgstr ""
19245
19246 #. type: =item
19247 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19248 #: ../rescue/virt-rescue.pod:201
19249 msgid "B<--selinux>"
19250 msgstr ""
19251
19252 #. type: textblock
19253 #: ../fish/guestfish.pod:388
19254 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19255 msgstr ""
19256
19257 #. type: textblock
19258 #: ../fish/guestfish.pod:394
19259 msgid ""
19260 "Enable very verbose messages.  This is particularly useful if you find a bug."
19261 msgstr ""
19262
19263 #. type: textblock
19264 #: ../fish/guestfish.pod:401
19265 msgid "Display the guestfish / libguestfs version number and exit."
19266 msgstr ""
19267
19268 #. type: =item
19269 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19270 #: ../rescue/virt-rescue.pod:231
19271 msgid "B<-w>"
19272 msgstr ""
19273
19274 #. type: =item
19275 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19276 #: ../rescue/virt-rescue.pod:233
19277 msgid "B<--rw>"
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19282 msgid ""
19283 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19284 "mounts are done read-write."
19285 msgstr ""
19286
19287 #. type: textblock
19288 #: ../fish/guestfish.pod:410
19289 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish.pod:414
19294 msgid "Echo each command before executing it."
19295 msgstr ""
19296
19297 #. type: =head1
19298 #: ../fish/guestfish.pod:418
19299 msgid "COMMANDS ON COMMAND LINE"
19300 msgstr ""
19301
19302 #. type: textblock
19303 #: ../fish/guestfish.pod:420
19304 msgid ""
19305 "Any additional (non-option) arguments are treated as commands to execute."
19306 msgstr ""
19307
19308 #. type: textblock
19309 #: ../fish/guestfish.pod:423
19310 msgid ""
19311 "Commands to execute should be separated by a colon (C<:>), where the colon "
19312 "is a separate parameter.  Thus:"
19313 msgstr ""
19314
19315 #. type: verbatim
19316 #: ../fish/guestfish.pod:426
19317 #, no-wrap
19318 msgid ""
19319 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19320 "\n"
19321 msgstr ""
19322
19323 #. type: textblock
19324 #: ../fish/guestfish.pod:428
19325 msgid ""
19326 "If there are no additional arguments, then we enter a shell, either an "
19327 "interactive shell with a prompt (if the input is a terminal) or a non-"
19328 "interactive shell."
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fish/guestfish.pod:432
19333 msgid ""
19334 "In either command line mode or non-interactive shell, the first command that "
19335 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19336 "prompt) if a command fails, you can continue to enter commands."
19337 msgstr ""
19338
19339 #. type: =head1
19340 #: ../fish/guestfish.pod:437
19341 msgid "USING launch (OR run)"
19342 msgstr ""
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:439
19346 msgid ""
19347 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19348 "then launch it, then mount any disks you need, and finally issue actions/"
19349 "commands.  So the general order of the day is:"
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:447
19354 msgid "add or -a/--add"
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:451
19359 msgid "launch (aka run)"
19360 msgstr ""
19361
19362 #. type: textblock
19363 #: ../fish/guestfish.pod:455
19364 msgid "mount or -m/--mount"
19365 msgstr ""
19366
19367 #. type: textblock
19368 #: ../fish/guestfish.pod:459
19369 msgid "any other commands"
19370 msgstr ""
19371
19372 #. type: textblock
19373 #: ../fish/guestfish.pod:463
19374 msgid ""
19375 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19376 "guest before mounting or performing any other commands."
19377 msgstr ""
19378
19379 #. type: textblock
19380 #: ../fish/guestfish.pod:466
19381 msgid ""
19382 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19383 "I<--new> options were given then C<run> is done automatically, simply "
19384 "because guestfish can't perform the action you asked for without doing this."
19385 msgstr ""
19386
19387 #. type: =head1
19388 #: ../fish/guestfish.pod:471
19389 msgid "OPENING DISKS FOR READ AND WRITE"
19390 msgstr ""
19391
19392 #. type: textblock
19393 #: ../fish/guestfish.pod:473
19394 msgid ""
19395 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19396 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19397 "I<-i> and I<-m> open disk images read-only or for writing."
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:478
19402 msgid ""
19403 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19404 "opening disk images supplied on the command line for write.  To open a disk "
19405 "image read-only you have to do I<-a image --ro>."
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../fish/guestfish.pod:482
19410 msgid ""
19411 "This matters: If you accidentally open a live VM disk image writable then "
19412 "you will cause irreversible disk corruption."
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fish/guestfish.pod:485
19417 msgid ""
19418 "In a future libguestfs we intend to change the default the other way.  Disk "
19419 "images will be opened read-only.  You will have to either specify "
19420 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19421 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19422 "access for disk images specified by those other command line options."
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../fish/guestfish.pod:492
19427 msgid ""
19428 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19429 "which does nothing (it is already the default).  However it is highly "
19430 "recommended that you use this option to indicate that you need write access, "
19431 "and prepare your scripts for the day when this option will be required for "
19432 "write access."
19433 msgstr ""
19434
19435 #. type: textblock
19436 #: ../fish/guestfish.pod:498
19437 msgid ""
19438 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19439 "other libguestfs program apart from guestfish and guestmount."
19440 msgstr ""
19441
19442 #. type: =head1
19443 #: ../fish/guestfish.pod:501
19444 msgid "QUOTING"
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../fish/guestfish.pod:503
19449 msgid ""
19450 "You can quote ordinary parameters using either single or double quotes.  For "
19451 "example:"
19452 msgstr ""
19453
19454 #. type: verbatim
19455 #: ../fish/guestfish.pod:506
19456 #, no-wrap
19457 msgid ""
19458 " add \"file with a space.img\"\n"
19459 "\n"
19460 msgstr ""
19461
19462 #. type: verbatim
19463 #: ../fish/guestfish.pod:508
19464 #, no-wrap
19465 msgid ""
19466 " rm '/file name'\n"
19467 "\n"
19468 msgstr ""
19469
19470 #. type: verbatim
19471 #: ../fish/guestfish.pod:510
19472 #, no-wrap
19473 msgid ""
19474 " rm '/\"'\n"
19475 "\n"
19476 msgstr ""
19477
19478 #. type: textblock
19479 #: ../fish/guestfish.pod:512
19480 msgid ""
19481 "A few commands require a list of strings to be passed.  For these, use a "
19482 "whitespace-separated list, enclosed in quotes.  Strings containing "
19483 "whitespace to be passed through must be enclosed in single quotes.  A "
19484 "literal single quote must be escaped with a backslash."
19485 msgstr ""
19486
19487 #. type: verbatim
19488 #: ../fish/guestfish.pod:517
19489 #, no-wrap
19490 msgid ""
19491 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19492 " command \"/bin/echo 'foo      bar'\"\n"
19493 " command \"/bin/echo \\'foo\\'\"\n"
19494 "\n"
19495 msgstr ""
19496
19497 #. type: =head2
19498 #: ../fish/guestfish.pod:521
19499 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19500 msgstr ""
19501
19502 #. type: textblock
19503 #: ../fish/guestfish.pod:523
19504 msgid ""
19505 "In double-quoted arguments (only) use backslash to insert special characters:"
19506 msgstr ""
19507
19508 #. type: =item
19509 #: ../fish/guestfish.pod:528
19510 msgid "C<\\a>"
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:530
19515 msgid "Alert (bell) character."
19516 msgstr ""
19517
19518 #. type: =item
19519 #: ../fish/guestfish.pod:532
19520 msgid "C<\\b>"
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:534
19525 msgid "Backspace character."
19526 msgstr ""
19527
19528 #. type: =item
19529 #: ../fish/guestfish.pod:536
19530 msgid "C<\\f>"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:538
19535 msgid "Form feed character."
19536 msgstr ""
19537
19538 #. type: =item
19539 #: ../fish/guestfish.pod:540
19540 msgid "C<\\n>"
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:542
19545 msgid "Newline character."
19546 msgstr ""
19547
19548 #. type: =item
19549 #: ../fish/guestfish.pod:544
19550 msgid "C<\\r>"
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:546
19555 msgid "Carriage return character."
19556 msgstr ""
19557
19558 #. type: =item
19559 #: ../fish/guestfish.pod:548
19560 msgid "C<\\t>"
19561 msgstr ""
19562
19563 #. type: textblock
19564 #: ../fish/guestfish.pod:550
19565 msgid "Horizontal tab character."
19566 msgstr ""
19567
19568 #. type: =item
19569 #: ../fish/guestfish.pod:552
19570 msgid "C<\\v>"
19571 msgstr ""
19572
19573 #. type: textblock
19574 #: ../fish/guestfish.pod:554
19575 msgid "Vertical tab character."
19576 msgstr ""
19577
19578 #. type: =item
19579 #: ../fish/guestfish.pod:556
19580 msgid "C<\\\">"
19581 msgstr ""
19582
19583 #. type: textblock
19584 #: ../fish/guestfish.pod:558
19585 msgid "A literal double quote character."
19586 msgstr ""
19587
19588 #. type: =item
19589 #: ../fish/guestfish.pod:560
19590 msgid "C<\\ooo>"
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../fish/guestfish.pod:562
19595 msgid ""
19596 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19597 "(unlike C)."
19598 msgstr ""
19599
19600 #. type: =item
19601 #: ../fish/guestfish.pod:565
19602 msgid "C<\\xhh>"
19603 msgstr ""
19604
19605 #. type: textblock
19606 #: ../fish/guestfish.pod:567
19607 msgid ""
19608 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../fish/guestfish.pod:570
19613 msgid ""
19614 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19615 "strings."
19616 msgstr ""
19617
19618 #. type: =item
19619 #: ../fish/guestfish.pod:573
19620 msgid "C<\\\\>"
19621 msgstr ""
19622
19623 #. type: textblock
19624 #: ../fish/guestfish.pod:575
19625 msgid "A literal backslash character."
19626 msgstr ""
19627
19628 #. type: =head1
19629 #: ../fish/guestfish.pod:579
19630 msgid "OPTIONAL ARGUMENTS"
19631 msgstr ""
19632
19633 #. type: textblock
19634 #: ../fish/guestfish.pod:581
19635 msgid ""
19636 "Some commands take optional arguments.  These arguments appear in this "
19637 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19638 msgstr ""
19639
19640 #. type: verbatim
19641 #: ../fish/guestfish.pod:585
19642 #, no-wrap
19643 msgid ""
19644 " add-drive-opts filename\n"
19645 "\n"
19646 msgstr ""
19647
19648 #. type: verbatim
19649 #: ../fish/guestfish.pod:587
19650 #, no-wrap
19651 msgid ""
19652 " add-drive-opts filename readonly:true\n"
19653 "\n"
19654 msgstr ""
19655
19656 #. type: verbatim
19657 #: ../fish/guestfish.pod:589
19658 #, no-wrap
19659 msgid ""
19660 " add-drive-opts filename format:qcow2 readonly:false\n"
19661 "\n"
19662 msgstr ""
19663
19664 #. type: textblock
19665 #: ../fish/guestfish.pod:591
19666 msgid ""
19667 "Each optional argument can appear at most once.  All optional arguments must "
19668 "appear after the required ones."
19669 msgstr ""
19670
19671 #. type: =head1
19672 #: ../fish/guestfish.pod:594
19673 msgid "NUMBERS"
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../fish/guestfish.pod:596
19678 msgid ""
19679 "This section applies to all commands which can take integers as parameters."
19680 msgstr ""
19681
19682 #. type: =head2
19683 #: ../fish/guestfish.pod:599
19684 msgid "SIZE SUFFIX"
19685 msgstr ""
19686
19687 #. type: textblock
19688 #: ../fish/guestfish.pod:601
19689 msgid ""
19690 "When the command takes a parameter measured in bytes, you can use one of the "
19691 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19692 msgstr ""
19693
19694 #. type: =item
19695 #: ../fish/guestfish.pod:607
19696 msgid "B<k> or B<K> or B<KiB>"
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:609
19701 msgid "The size in kilobytes (multiplied by 1024)."
19702 msgstr ""
19703
19704 #. type: =item
19705 #: ../fish/guestfish.pod:611
19706 msgid "B<KB>"
19707 msgstr ""
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:613
19711 msgid "The size in SI 1000 byte units."
19712 msgstr ""
19713
19714 #. type: =item
19715 #: ../fish/guestfish.pod:615
19716 msgid "B<M> or B<MiB>"
19717 msgstr ""
19718
19719 #. type: textblock
19720 #: ../fish/guestfish.pod:617
19721 msgid "The size in megabytes (multiplied by 1048576)."
19722 msgstr ""
19723
19724 #. type: =item
19725 #: ../fish/guestfish.pod:619
19726 msgid "B<MB>"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:621
19731 msgid "The size in SI 1000000 byte units."
19732 msgstr ""
19733
19734 #. type: =item
19735 #: ../fish/guestfish.pod:623
19736 msgid "B<G> or B<GiB>"
19737 msgstr ""
19738
19739 #. type: textblock
19740 #: ../fish/guestfish.pod:625
19741 msgid "The size in gigabytes (multiplied by 2**30)."
19742 msgstr ""
19743
19744 #. type: =item
19745 #: ../fish/guestfish.pod:627
19746 msgid "B<GB>"
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:629
19751 msgid "The size in SI 10**9 byte units."
19752 msgstr ""
19753
19754 #. type: =item
19755 #: ../fish/guestfish.pod:631
19756 msgid "B<T> or B<TiB>"
19757 msgstr ""
19758
19759 #. type: textblock
19760 #: ../fish/guestfish.pod:633
19761 msgid "The size in terabytes (multiplied by 2**40)."
19762 msgstr ""
19763
19764 #. type: =item
19765 #: ../fish/guestfish.pod:635
19766 msgid "B<TB>"
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/guestfish.pod:637
19771 msgid "The size in SI 10**12 byte units."
19772 msgstr ""
19773
19774 #. type: =item
19775 #: ../fish/guestfish.pod:639
19776 msgid "B<P> or B<PiB>"
19777 msgstr ""
19778
19779 #. type: textblock
19780 #: ../fish/guestfish.pod:641
19781 msgid "The size in petabytes (multiplied by 2**50)."
19782 msgstr ""
19783
19784 #. type: =item
19785 #: ../fish/guestfish.pod:643
19786 msgid "B<PB>"
19787 msgstr ""
19788
19789 #. type: textblock
19790 #: ../fish/guestfish.pod:645
19791 msgid "The size in SI 10**15 byte units."
19792 msgstr ""
19793
19794 #. type: =item
19795 #: ../fish/guestfish.pod:647
19796 msgid "B<E> or B<EiB>"
19797 msgstr ""
19798
19799 #. type: textblock
19800 #: ../fish/guestfish.pod:649
19801 msgid "The size in exabytes (multiplied by 2**60)."
19802 msgstr ""
19803
19804 #. type: =item
19805 #: ../fish/guestfish.pod:651
19806 msgid "B<EB>"
19807 msgstr ""
19808
19809 #. type: textblock
19810 #: ../fish/guestfish.pod:653
19811 msgid "The size in SI 10**18 byte units."
19812 msgstr ""
19813
19814 #. type: =item
19815 #: ../fish/guestfish.pod:655
19816 msgid "B<Z> or B<ZiB>"
19817 msgstr ""
19818
19819 #. type: textblock
19820 #: ../fish/guestfish.pod:657
19821 msgid "The size in zettabytes (multiplied by 2**70)."
19822 msgstr ""
19823
19824 #. type: =item
19825 #: ../fish/guestfish.pod:659
19826 msgid "B<ZB>"
19827 msgstr ""
19828
19829 #. type: textblock
19830 #: ../fish/guestfish.pod:661
19831 msgid "The size in SI 10**21 byte units."
19832 msgstr ""
19833
19834 #. type: =item
19835 #: ../fish/guestfish.pod:663
19836 msgid "B<Y> or B<YiB>"
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../fish/guestfish.pod:665
19841 msgid "The size in yottabytes (multiplied by 2**80)."
19842 msgstr ""
19843
19844 #. type: =item
19845 #: ../fish/guestfish.pod:667
19846 msgid "B<YB>"
19847 msgstr ""
19848
19849 #. type: textblock
19850 #: ../fish/guestfish.pod:669
19851 msgid "The size in SI 10**24 byte units."
19852 msgstr ""
19853
19854 #. type: verbatim
19855 #: ../fish/guestfish.pod:675
19856 #, no-wrap
19857 msgid ""
19858 " truncate-size /file 1G\n"
19859 "\n"
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish.pod:677
19864 msgid "would truncate the file to 1 gigabyte."
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../fish/guestfish.pod:679
19869 msgid ""
19870 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19871 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19872 "suffix will probably not do what you expect."
19873 msgstr ""
19874
19875 #. type: =head2
19876 #: ../fish/guestfish.pod:683
19877 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../fish/guestfish.pod:685
19882 msgid ""
19883 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19884 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19885 msgstr ""
19886
19887 #. type: verbatim
19888 #: ../fish/guestfish.pod:688
19889 #, no-wrap
19890 msgid ""
19891 " 1234      decimal number 1234\n"
19892 " 02322     octal number, equivalent to decimal 1234\n"
19893 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19894 "\n"
19895 msgstr ""
19896
19897 #. type: textblock
19898 #: ../fish/guestfish.pod:692
19899 msgid ""
19900 "When using the C<chmod> command, you almost always want to specify an octal "
19901 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19902 "L<chmod(1)> program):"
19903 msgstr ""
19904
19905 #. type: verbatim
19906 #: ../fish/guestfish.pod:696
19907 #, no-wrap
19908 msgid ""
19909 " chmod 0777 /public  # OK\n"
19910 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19911 "\n"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/guestfish.pod:699
19916 msgid ""
19917 "Commands that return numbers usually print them in decimal, but some "
19918 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19919 "octal, preceeded by C<0>)."
19920 msgstr ""
19921
19922 #. type: =head1
19923 #: ../fish/guestfish.pod:703
19924 msgid "WILDCARDS AND GLOBBING"
19925 msgstr ""
19926
19927 #. type: textblock
19928 #: ../fish/guestfish.pod:705
19929 msgid ""
19930 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19931 "(globbing) by default.  So for example the following will not do what you "
19932 "expect:"
19933 msgstr ""
19934
19935 #. type: verbatim
19936 #: ../fish/guestfish.pod:709
19937 #, no-wrap
19938 msgid ""
19939 " rm-rf /home/*\n"
19940 "\n"
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/guestfish.pod:711
19945 msgid ""
19946 "Assuming you don't have a directory called literally C</home/*> then the "
19947 "above command will return an error."
19948 msgstr ""
19949
19950 #. type: textblock
19951 #: ../fish/guestfish.pod:714
19952 msgid "To perform wildcard expansion, use the C<glob> command."
19953 msgstr ""
19954
19955 #. type: verbatim
19956 #: ../fish/guestfish.pod:716
19957 #, no-wrap
19958 msgid ""
19959 " glob rm-rf /home/*\n"
19960 "\n"
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../fish/guestfish.pod:718
19965 msgid ""
19966 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19967 "many times), equivalent to:"
19968 msgstr ""
19969
19970 #. type: verbatim
19971 #: ../fish/guestfish.pod:721
19972 #, no-wrap
19973 msgid ""
19974 " rm-rf /home/jim\n"
19975 " rm-rf /home/joe\n"
19976 " rm-rf /home/mary\n"
19977 "\n"
19978 msgstr ""
19979
19980 #. type: textblock
19981 #: ../fish/guestfish.pod:725
19982 msgid "C<glob> only works on simple guest paths and not on device names."
19983 msgstr ""
19984
19985 #. type: textblock
19986 #: ../fish/guestfish.pod:727
19987 msgid ""
19988 "If you have several parameters, each containing a wildcard, then glob will "
19989 "perform a Cartesian product."
19990 msgstr ""
19991
19992 #. type: =head1
19993 #: ../fish/guestfish.pod:730
19994 msgid "COMMENTS"
19995 msgstr ""
19996
19997 #. type: textblock
19998 #: ../fish/guestfish.pod:732
19999 msgid ""
20000 "Any line which starts with a I<#> character is treated as a comment and "
20001 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20002 "a command.  For example:"
20003 msgstr ""
20004
20005 #. type: verbatim
20006 #: ../fish/guestfish.pod:736
20007 #, no-wrap
20008 msgid ""
20009 " # this is a comment\n"
20010 "         # this is a comment\n"
20011 " foo # NOT a comment\n"
20012 "\n"
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../fish/guestfish.pod:740
20017 msgid "Blank lines are also ignored."
20018 msgstr ""
20019
20020 #. type: =head1
20021 #: ../fish/guestfish.pod:742
20022 msgid "RUNNING COMMANDS LOCALLY"
20023 msgstr ""
20024
20025 #. type: textblock
20026 #: ../fish/guestfish.pod:744
20027 msgid ""
20028 "Any line which starts with a I<!> character is treated as a command sent to "
20029 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20030 msgstr ""
20031
20032 #. type: verbatim
20033 #: ../fish/guestfish.pod:748
20034 #, no-wrap
20035 msgid ""
20036 " !mkdir local\n"
20037 " tgz-out /remote local/remote-data.tar.gz\n"
20038 "\n"
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../fish/guestfish.pod:751
20043 msgid ""
20044 "will create a directory C<local> on the host, and then export the contents "
20045 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20046 "(See C<tgz-out>)."
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/guestfish.pod:755
20051 msgid ""
20052 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20053 "effect, due to the way that subprocesses work in Unix."
20054 msgstr ""
20055
20056 #. type: =head2
20057 #: ../fish/guestfish.pod:758
20058 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../fish/guestfish.pod:760
20063 msgid ""
20064 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20065 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20066 "and executed as guestfish commands."
20067 msgstr ""
20068
20069 #. type: textblock
20070 #: ../fish/guestfish.pod:764
20071 msgid ""
20072 "Thus you can use shell script to construct arbitrary guestfish commands "
20073 "which are then parsed by guestfish."
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../fish/guestfish.pod:767
20078 msgid ""
20079 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20080 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20081 "if we use a shell script to create the guestfish commands for us:"
20082 msgstr ""
20083
20084 #. type: verbatim
20085 #: ../fish/guestfish.pod:772
20086 #, no-wrap
20087 msgid ""
20088 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20089 "\n"
20090 msgstr ""
20091
20092 #. type: textblock
20093 #: ../fish/guestfish.pod:774
20094 msgid "or with names like C</foo.001>:"
20095 msgstr ""
20096
20097 #. type: verbatim
20098 #: ../fish/guestfish.pod:776
20099 #, no-wrap
20100 msgid ""
20101 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20102 "\n"
20103 msgstr ""
20104
20105 #. type: textblock
20106 #: ../fish/guestfish.pod:778
20107 msgid ""
20108 "When using guestfish interactively it can be helpful to just run the shell "
20109 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20110 "ordinary I<!> local command), see what guestfish commands it would run, and "
20111 "when you are happy with those prepend the C<E<lt>> character to run the "
20112 "guestfish commands for real."
20113 msgstr ""
20114
20115 #. type: =head1
20116 #: ../fish/guestfish.pod:784
20117 msgid "PIPES"
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../fish/guestfish.pod:786
20122 msgid ""
20123 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20124 "command (a guestfish command) to the second command (any host command).  For "
20125 "example:"
20126 msgstr ""
20127
20128 #. type: verbatim
20129 #: ../fish/guestfish.pod:790
20130 #, no-wrap
20131 msgid ""
20132 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20133 "\n"
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../fish/guestfish.pod:792
20138 msgid ""
20139 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20140 "program).  The above command would list all accounts in the guest filesystem "
20141 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20142 msgstr ""
20143
20144 #. type: verbatim
20145 #: ../fish/guestfish.pod:797
20146 #, no-wrap
20147 msgid ""
20148 " hexdump /bin/ls | head\n"
20149 " list-devices | tail -1\n"
20150 " tgz-out / - | tar ztf -\n"
20151 "\n"
20152 msgstr ""
20153
20154 #. type: textblock
20155 #: ../fish/guestfish.pod:801
20156 msgid ""
20157 "The space before the pipe symbol is required, any space after the pipe "
20158 "symbol is optional.  Everything after the pipe symbol is just passed "
20159 "straight to the host shell, so it can contain redirections, globs and "
20160 "anything else that makes sense on the host side."
20161 msgstr ""
20162
20163 #. type: textblock
20164 #: ../fish/guestfish.pod:806
20165 msgid ""
20166 "To use a literal argument which begins with a pipe symbol, you have to quote "
20167 "it, eg:"
20168 msgstr ""
20169
20170 #. type: verbatim
20171 #: ../fish/guestfish.pod:809
20172 #, no-wrap
20173 msgid ""
20174 " echo \"|\"\n"
20175 "\n"
20176 msgstr ""
20177
20178 #. type: =head1
20179 #: ../fish/guestfish.pod:811
20180 msgid "HOME DIRECTORIES"
20181 msgstr ""
20182
20183 #. type: textblock
20184 #: ../fish/guestfish.pod:813
20185 msgid ""
20186 "If a parameter starts with the character C<~> then the tilde may be expanded "
20187 "as a home directory path (either C<~> for the current user's home directory, "
20188 "or C<~user> for another user)."
20189 msgstr ""
20190
20191 #. type: textblock
20192 #: ../fish/guestfish.pod:817
20193 msgid ""
20194 "Note that home directory expansion happens for users known I<on the host>, "
20195 "not in the guest filesystem."
20196 msgstr ""
20197
20198 #. type: textblock
20199 #: ../fish/guestfish.pod:820
20200 msgid ""
20201 "To use a literal argument which begins with a tilde, you have to quote it, "
20202 "eg:"
20203 msgstr ""
20204
20205 #. type: verbatim
20206 #: ../fish/guestfish.pod:823
20207 #, no-wrap
20208 msgid ""
20209 " echo \"~\"\n"
20210 "\n"
20211 msgstr ""
20212
20213 #. type: =head2
20214 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20215 msgid "ENCRYPTED DISKS"
20216 msgstr ""
20217
20218 #. type: textblock
20219 #: ../fish/guestfish.pod:827
20220 msgid ""
20221 "Libguestfs has some support for Linux guests encrypted according to the "
20222 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20223 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20224 "LUKS is supported."
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:832
20229 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20230 msgstr ""
20231
20232 #. type: verbatim
20233 #: ../fish/guestfish.pod:834
20234 #, no-wrap
20235 msgid ""
20236 " ><fs> vfs-type /dev/sda2\n"
20237 " crypto_LUKS\n"
20238 "\n"
20239 msgstr ""
20240
20241 #. type: textblock
20242 #: ../fish/guestfish.pod:837
20243 msgid ""
20244 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20245 "device called C</dev/mapper/luksdev>."
20246 msgstr ""
20247
20248 #. type: verbatim
20249 #: ../fish/guestfish.pod:840
20250 #, no-wrap
20251 msgid ""
20252 " ><fs> luks-open /dev/sda2 luksdev\n"
20253 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20254 "\n"
20255 msgstr ""
20256
20257 #. type: textblock
20258 #: ../fish/guestfish.pod:843
20259 msgid ""
20260 "Finally you have to tell LVM to scan for volume groups on the newly created "
20261 "mapper device:"
20262 msgstr ""
20263
20264 #. type: verbatim
20265 #: ../fish/guestfish.pod:846
20266 #, no-wrap
20267 msgid ""
20268 " vgscan\n"
20269 " vg-activate-all true\n"
20270 "\n"
20271 msgstr ""
20272
20273 #. type: textblock
20274 #: ../fish/guestfish.pod:849
20275 msgid "The logical volume(s) can now be mounted in the usual way."
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../fish/guestfish.pod:851
20280 msgid ""
20281 "Before closing a LUKS device you must unmount any logical volumes on it and "
20282 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20283 "one.  Then you can close the mapper device:"
20284 msgstr ""
20285
20286 #. type: verbatim
20287 #: ../fish/guestfish.pod:855
20288 #, no-wrap
20289 msgid ""
20290 " vg-activate false /dev/VG\n"
20291 " luks-close /dev/mapper/luksdev\n"
20292 "\n"
20293 msgstr ""
20294
20295 #. type: textblock
20296 #: ../fish/guestfish.pod:860
20297 msgid ""
20298 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20299 "letters and paths (with some limitations).  The following commands are "
20300 "equivalent:"
20301 msgstr ""
20302
20303 #. type: verbatim
20304 #: ../fish/guestfish.pod:864
20305 #, no-wrap
20306 msgid ""
20307 " file /WINDOWS/system32/config/system.LOG\n"
20308 "\n"
20309 msgstr ""
20310
20311 #. type: verbatim
20312 #: ../fish/guestfish.pod:866
20313 #, no-wrap
20314 msgid ""
20315 " file win:\\windows\\system32\\config\\system.log\n"
20316 "\n"
20317 msgstr ""
20318
20319 #. type: verbatim
20320 #: ../fish/guestfish.pod:868
20321 #, no-wrap
20322 msgid ""
20323 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20324 "\n"
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:870
20329 msgid ""
20330 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20331 "where the drive is mounted, prepending that to the path, changing all "
20332 "backslash characters to forward slash, then resolving the result using L</"
20333 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20334 "the parameter might be rewritten like this:"
20335 msgstr ""
20336
20337 #. type: verbatim
20338 #: ../fish/guestfish.pod:876
20339 #, no-wrap
20340 msgid ""
20341 " win:e:\\foo\\bar => /e/FOO/bar\n"
20342 "\n"
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../fish/guestfish.pod:878
20347 msgid "This only works in argument positions that expect a path."
20348 msgstr ""
20349
20350 #. type: =head1
20351 #: ../fish/guestfish.pod:880
20352 msgid "UPLOADING AND DOWNLOADING FILES"
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:882
20357 msgid ""
20358 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20359 "others which upload from or download to a local file, you can use the "
20360 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20361 msgstr ""
20362
20363 #. type: verbatim
20364 #: ../fish/guestfish.pod:886
20365 #, no-wrap
20366 msgid ""
20367 " upload - /foo\n"
20368 "\n"
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fish/guestfish.pod:888
20373 msgid ""
20374 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20375 msgstr ""
20376
20377 #. type: verbatim
20378 #: ../fish/guestfish.pod:891
20379 #, no-wrap
20380 msgid ""
20381 " tar-out /etc - | tar tf -\n"
20382 "\n"
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fish/guestfish.pod:893
20387 msgid ""
20388 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20389 "command (see L</PIPES>)."
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../fish/guestfish.pod:896
20394 msgid ""
20395 "When using C<-> to read from stdin, the input is read up to the end of "
20396 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20397 "some arbitrary end marker:"
20398 msgstr ""
20399
20400 #. type: verbatim
20401 #: ../fish/guestfish.pod:900
20402 #, no-wrap
20403 msgid ""
20404 " upload -<<END /foo\n"
20405 " input line 1\n"
20406 " input line 2\n"
20407 " input line 3\n"
20408 " END\n"
20409 "\n"
20410 msgstr ""
20411
20412 #. type: textblock
20413 #: ../fish/guestfish.pod:906
20414 msgid ""
20415 "Any string of characters can be used instead of C<END>.  The end marker must "
20416 "appear on a line of its own, without any preceeding or following characters "
20417 "(not even spaces)."
20418 msgstr ""
20419
20420 #. type: textblock
20421 #: ../fish/guestfish.pod:910
20422 msgid ""
20423 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20424 "upload local files (so-called \"FileIn\" parameters in the generator)."
20425 msgstr ""
20426
20427 #. type: =head1
20428 #: ../fish/guestfish.pod:913
20429 msgid "EXIT ON ERROR BEHAVIOUR"
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../fish/guestfish.pod:915
20434 msgid ""
20435 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20436 "taking commands from a human over a tty), and will exit on the first error "
20437 "in non-interactive mode (scripts, commands given on the command line)."
20438 msgstr ""
20439
20440 #. type: textblock
20441 #: ../fish/guestfish.pod:920
20442 msgid ""
20443 "If you prefix a command with a I<-> character, then that command will not "
20444 "cause guestfish to exit, even if that (one) command returns an error."
20445 msgstr ""
20446
20447 #. type: =head1
20448 #: ../fish/guestfish.pod:924
20449 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20450 msgstr ""
20451
20452 #. type: textblock
20453 #: ../fish/guestfish.pod:926
20454 msgid ""
20455 "Guestfish can be remote-controlled over a socket.  This is useful "
20456 "particularly in shell scripts where you want to make several different "
20457 "changes to a filesystem, but you don't want the overhead of starting up a "
20458 "guestfish process each time."
20459 msgstr ""
20460
20461 #. type: textblock
20462 #: ../fish/guestfish.pod:931
20463 msgid "Start a guestfish server process using:"
20464 msgstr ""
20465
20466 #. type: verbatim
20467 #: ../fish/guestfish.pod:933
20468 #, no-wrap
20469 msgid ""
20470 " eval \"`guestfish --listen`\"\n"
20471 "\n"
20472 msgstr ""
20473
20474 #. type: textblock
20475 #: ../fish/guestfish.pod:935
20476 msgid "and then send it commands by doing:"
20477 msgstr ""
20478
20479 #. type: verbatim
20480 #: ../fish/guestfish.pod:937
20481 #, no-wrap
20482 msgid ""
20483 " guestfish --remote cmd [...]\n"
20484 "\n"
20485 msgstr ""
20486
20487 #. type: textblock
20488 #: ../fish/guestfish.pod:939
20489 msgid "To cause the server to exit, send it the exit command:"
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../fish/guestfish.pod:943
20494 msgid ""
20495 "Note that the server will normally exit if there is an error in a command.  "
20496 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20497 "BEHAVIOUR>."
20498 msgstr ""
20499
20500 #. type: =head2
20501 #: ../fish/guestfish.pod:947
20502 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../fish/guestfish.pod:949
20507 msgid ""
20508 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20509 "is how the I<--remote> option knows where to send the commands.  You can "
20510 "have several guestfish listener processes running using:"
20511 msgstr ""
20512
20513 #. type: verbatim
20514 #: ../fish/guestfish.pod:953
20515 #, no-wrap
20516 msgid ""
20517 " eval \"`guestfish --listen`\"\n"
20518 " pid1=$GUESTFISH_PID\n"
20519 " eval \"`guestfish --listen`\"\n"
20520 " pid2=$GUESTFISH_PID\n"
20521 " ...\n"
20522 " guestfish --remote=$pid1 cmd\n"
20523 " guestfish --remote=$pid2 cmd\n"
20524 "\n"
20525 msgstr ""
20526
20527 #. type: =head2
20528 #: ../fish/guestfish.pod:961
20529 msgid "REMOTE CONTROL AND CSH"
20530 msgstr ""
20531
20532 #. type: textblock
20533 #: ../fish/guestfish.pod:963
20534 msgid ""
20535 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20536 "option:"
20537 msgstr ""
20538
20539 #. type: verbatim
20540 #: ../fish/guestfish.pod:966
20541 #, no-wrap
20542 msgid ""
20543 " eval \"`guestfish --listen --csh`\"\n"
20544 "\n"
20545 msgstr ""
20546
20547 #. type: =head2
20548 #: ../fish/guestfish.pod:968
20549 msgid "REMOTE CONTROL DETAILS"
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../fish/guestfish.pod:970
20554 msgid ""
20555 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20556 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20557 "and C<$PID> is the process ID of the server."
20558 msgstr ""
20559
20560 #. type: textblock
20561 #: ../fish/guestfish.pod:974
20562 msgid "Guestfish client and server versions must match exactly."
20563 msgstr ""
20564
20565 #. type: =head2
20566 #: ../fish/guestfish.pod:976
20567 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20568 msgstr ""
20569
20570 #. type: textblock
20571 #: ../fish/guestfish.pod:978
20572 msgid ""
20573 "From Bash, you can use the following code which creates a guestfish "
20574 "instance, correctly quotes the command line, handles failure to start, and "
20575 "cleans up guestfish when the script exits:"
20576 msgstr ""
20577
20578 #. type: verbatim
20579 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20580 #, no-wrap
20581 msgid ""
20582 " #!/bin/bash -\n"
20583 " \n"
20584 msgstr ""
20585
20586 #. type: verbatim
20587 #: ../fish/guestfish.pod:986
20588 #, no-wrap
20589 msgid ""
20590 " guestfish[0]=\"guestfish\"\n"
20591 " guestfish[1]=\"--listen\"\n"
20592 " guestfish[2]=\"--ro\"\n"
20593 " guestfish[3]=\"-a\"\n"
20594 " guestfish[4]=\"disk.img\"\n"
20595 " \n"
20596 msgstr ""
20597
20598 #. type: verbatim
20599 #: ../fish/guestfish.pod:992
20600 #, no-wrap
20601 msgid ""
20602 " GUESTFISH_PID=\n"
20603 " eval $(\"${guestfish[@]}\")\n"
20604 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20605 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20606 "     exit 1\n"
20607 " fi\n"
20608 " \n"
20609 msgstr ""
20610
20611 #. type: verbatim
20612 #: ../fish/guestfish.pod:999
20613 #, no-wrap
20614 msgid ""
20615 " cleanup_guestfish ()\n"
20616 " {\n"
20617 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20618 " }\n"
20619 " trap cleanup_guestfish EXIT ERR\n"
20620 " \n"
20621 msgstr ""
20622
20623 #. type: verbatim
20624 #: ../fish/guestfish.pod:1005
20625 #, no-wrap
20626 msgid ""
20627 " guestfish --remote -- run\n"
20628 " \n"
20629 msgstr ""
20630
20631 #. type: verbatim
20632 #: ../fish/guestfish.pod:1007
20633 #, no-wrap
20634 msgid ""
20635 " # ...\n"
20636 "\n"
20637 msgstr ""
20638
20639 #. type: =head2
20640 #: ../fish/guestfish.pod:1009
20641 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fish/guestfish.pod:1011
20646 msgid ""
20647 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20648 "context hangs, ie. don't do (note the backquotes):"
20649 msgstr ""
20650
20651 #. type: verbatim
20652 #: ../fish/guestfish.pod:1014
20653 #, no-wrap
20654 msgid ""
20655 " a=`guestfish --remote run`\n"
20656 "\n"
20657 msgstr ""
20658
20659 #. type: textblock
20660 #: ../fish/guestfish.pod:1016
20661 msgid ""
20662 "Since the C<run> command produces no output on stdout, this is not useful "
20663 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20664 "cgi?id=592910>."
20665 msgstr ""
20666
20667 #. type: =head1
20668 #: ../fish/guestfish.pod:1020
20669 msgid "PREPARED DISK IMAGES"
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../fish/guestfish.pod:1022
20674 msgid ""
20675 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20676 "preformatted disk images that guestfish can make for you to save typing.  "
20677 "This is particularly useful for testing purposes.  This option is used "
20678 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20679 "can be mixed with I<-a>)."
20680 msgstr ""
20681
20682 #. type: textblock
20683 #: ../fish/guestfish.pod:1028
20684 msgid ""
20685 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20686 "the second and so on.  Existing files in the current directory are "
20687 "I<overwritten>."
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fish/guestfish.pod:1032
20692 msgid ""
20693 "The type briefly describes how the disk should be sized, partitioned, how "
20694 "filesystem(s) should be created, and how content should be added.  "
20695 "Optionally the type can be followed by extra parameters, separated by C<:> "
20696 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20697 "allocated disk, containing a single partition, with the partition formatted "
20698 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20699 "disk instead."
20700 msgstr ""
20701
20702 #. type: textblock
20703 #: ../fish/guestfish.pod:1040
20704 msgid "To list the available types and any extra parameters they take, run:"
20705 msgstr ""
20706
20707 #. type: textblock
20708 #: ../fish/guestfish.pod:1044
20709 msgid ""
20710 "Note that the prepared filesystem is not mounted.  You would usually have to "
20711 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../fish/guestfish.pod:1048
20716 msgid ""
20717 "If any I<-N> or I<--new> options are given, the guest is automatically "
20718 "launched."
20719 msgstr ""
20720
20721 #. type: textblock
20722 #: ../fish/guestfish.pod:1053
20723 msgid "Create a 100MB disk with an ext4-formatted partition:"
20724 msgstr ""
20725
20726 #. type: verbatim
20727 #: ../fish/guestfish.pod:1055
20728 #, no-wrap
20729 msgid ""
20730 " guestfish -N fs:ext4\n"
20731 "\n"
20732 msgstr ""
20733
20734 #. type: textblock
20735 #: ../fish/guestfish.pod:1057
20736 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20737 msgstr ""
20738
20739 #. type: verbatim
20740 #: ../fish/guestfish.pod:1059
20741 #, no-wrap
20742 msgid ""
20743 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20744 "\n"
20745 msgstr ""
20746
20747 #. type: textblock
20748 #: ../fish/guestfish.pod:1061
20749 msgid "Create a blank 200MB disk:"
20750 msgstr ""
20751
20752 #. type: verbatim
20753 #: ../fish/guestfish.pod:1063
20754 #, no-wrap
20755 msgid ""
20756 " guestfish -N disk:200M\n"
20757 "\n"
20758 msgstr ""
20759
20760 #. type: =head1
20761 #: ../fish/guestfish.pod:1065
20762 msgid "PROGRESS BARS"
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../fish/guestfish.pod:1067
20767 msgid ""
20768 "Some (not all) long-running commands send progress notification messages as "
20769 "they are running.  Guestfish turns these messages into progress bars."
20770 msgstr ""
20771
20772 #. type: textblock
20773 #: ../fish/guestfish.pod:1071
20774 msgid ""
20775 "When a command that supports progress bars takes longer than two seconds to "
20776 "run, and if progress bars are enabled, then you will see one appearing below "
20777 "the command:"
20778 msgstr ""
20779
20780 #. type: verbatim
20781 #: ../fish/guestfish.pod:1075
20782 #, no-wrap
20783 msgid ""
20784 " ><fs> copy-size /large-file /another-file 2048M\n"
20785 " / 10% [#####-----------------------------------------] 00:30\n"
20786 "\n"
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../fish/guestfish.pod:1078
20791 msgid ""
20792 "The spinner on the left hand side moves round once for every progress "
20793 "notification received from the backend.  This is a (reasonably) golden "
20794 "assurance that the command is \"doing something\" even if the progress bar "
20795 "is not moving, because the command is able to send the progress "
20796 "notifications.  When the bar reaches 100% and the command finishes, the "
20797 "spinner disappears."
20798 msgstr ""
20799
20800 #. type: textblock
20801 #: ../fish/guestfish.pod:1085
20802 msgid ""
20803 "Progress bars are enabled by default when guestfish is used interactively.  "
20804 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20805 "and you can disable them completely using I<--no-progress-bars>."
20806 msgstr ""
20807
20808 #. type: =head1
20809 #: ../fish/guestfish.pod:1090
20810 msgid "GUESTFISH COMMANDS"
20811 msgstr ""
20812
20813 #. type: textblock
20814 #: ../fish/guestfish.pod:1092
20815 msgid ""
20816 "The commands in this section are guestfish convenience commands, in other "
20817 "words, they are not part of the L<guestfs(3)> API."
20818 msgstr ""
20819
20820 #. type: =head2
20821 #: ../fish/guestfish.pod:1095
20822 msgid "help"
20823 msgstr ""
20824
20825 #. type: verbatim
20826 #: ../fish/guestfish.pod:1097
20827 #, no-wrap
20828 msgid ""
20829 " help\n"
20830 " help cmd\n"
20831 "\n"
20832 msgstr ""
20833
20834 #. type: textblock
20835 #: ../fish/guestfish.pod:1100
20836 msgid "Without any parameter, this provides general help."
20837 msgstr ""
20838
20839 #. type: textblock
20840 #: ../fish/guestfish.pod:1102
20841 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20842 msgstr ""
20843
20844 #. type: =head2
20845 #: ../fish/guestfish.pod:1104
20846 msgid "quit | exit"
20847 msgstr ""
20848
20849 #. type: textblock
20850 #: ../fish/guestfish.pod:1106
20851 msgid "This exits guestfish.  You can also use C<^D> key."
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../fish/guestfish.pod:1108
20856 msgid "@FISH_COMMANDS@"
20857 msgstr ""
20858
20859 #. type: =head1
20860 #: ../fish/guestfish.pod:1110
20861 msgid "COMMANDS"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
20866 msgid "@ACTIONS@"
20867 msgstr ""
20868
20869 #. type: textblock
20870 #: ../fish/guestfish.pod:1116
20871 msgid ""
20872 "guestfish returns 0 if the commands completed without error, or 1 if there "
20873 "was an error."
20874 msgstr ""
20875
20876 #. type: =item
20877 #: ../fish/guestfish.pod:1123
20878 msgid "EDITOR"
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fish/guestfish.pod:1125
20883 msgid ""
20884 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20885 "C<vi>."
20886 msgstr ""
20887
20888 #. type: =item
20889 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
20890 msgid "FEBOOTSTRAP_KERNEL"
20891 msgstr ""
20892
20893 #. type: =item
20894 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
20895 msgid "FEBOOTSTRAP_MODULES"
20896 msgstr ""
20897
20898 #. type: textblock
20899 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
20900 msgid ""
20901 "These two environment variables allow the kernel that libguestfs uses in the "
20902 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20903 "most recent host kernel is chosen.  For more information about kernel "
20904 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20905 "available in febootstrap E<ge> 3.8."
20906 msgstr ""
20907
20908 #. type: =item
20909 #: ../fish/guestfish.pod:1138
20910 msgid "GUESTFISH_DISPLAY_IMAGE"
20911 msgstr ""
20912
20913 #. type: textblock
20914 #: ../fish/guestfish.pod:1140
20915 msgid ""
20916 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20917 "If not set, it uses L<display(1)>."
20918 msgstr ""
20919
20920 #. type: =item
20921 #: ../fish/guestfish.pod:1143
20922 msgid "GUESTFISH_PID"
20923 msgstr ""
20924
20925 #. type: textblock
20926 #: ../fish/guestfish.pod:1145
20927 msgid ""
20928 "Used with the I<--remote> option to specify the remote guestfish process to "
20929 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20930 msgstr ""
20931
20932 #. type: =item
20933 #: ../fish/guestfish.pod:1149
20934 msgid "HEXEDITOR"
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:1151
20939 msgid ""
20940 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20941 "not specified, the external L<hexedit(1)> program is used."
20942 msgstr ""
20943
20944 #. type: =item
20945 #: ../fish/guestfish.pod:1155
20946 msgid "HOME"
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../fish/guestfish.pod:1157
20951 msgid ""
20952 "If compiled with GNU readline support, various files in the home directory "
20953 "can be used.  See L</FILES>."
20954 msgstr ""
20955
20956 #. type: =item
20957 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
20958 msgid "LIBGUESTFS_APPEND"
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
20963 msgid "Pass additional options to the guest kernel."
20964 msgstr ""
20965
20966 #. type: =item
20967 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
20968 msgid "LIBGUESTFS_DEBUG"
20969 msgstr ""
20970
20971 #. type: textblock
20972 #: ../fish/guestfish.pod:1166
20973 msgid ""
20974 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20975 "effect as using the B<-v> option."
20976 msgstr ""
20977
20978 #. type: =item
20979 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
20980 msgid "LIBGUESTFS_MEMSIZE"
20981 msgstr ""
20982
20983 #. type: textblock
20984 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
20985 msgid ""
20986 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20987 msgstr ""
20988
20989 #. type: verbatim
20990 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
20991 #, no-wrap
20992 msgid ""
20993 " LIBGUESTFS_MEMSIZE=700\n"
20994 "\n"
20995 msgstr ""
20996
20997 #. type: =item
20998 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
20999 msgid "LIBGUESTFS_PATH"
21000 msgstr ""
21001
21002 #. type: textblock
21003 #: ../fish/guestfish.pod:1178
21004 msgid ""
21005 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21006 "the discussion of paths in L<guestfs(3)>."
21007 msgstr ""
21008
21009 #. type: =item
21010 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21011 msgid "LIBGUESTFS_QEMU"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21016 msgid ""
21017 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21018 "which was found at compile time by the configure script is used."
21019 msgstr ""
21020
21021 #. type: =item
21022 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21023 msgid "LIBGUESTFS_TRACE"
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../fish/guestfish.pod:1189
21028 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21029 msgstr ""
21030
21031 #. type: =item
21032 #: ../fish/guestfish.pod:1191
21033 msgid "PAGER"
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../fish/guestfish.pod:1193
21038 msgid ""
21039 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21040 "C<more>."
21041 msgstr ""
21042
21043 #. type: =item
21044 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21045 #: ../src/guestfs.pod:3257
21046 msgid "TMPDIR"
21047 msgstr ""
21048
21049 #. type: textblock
21050 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21051 msgid ""
21052 "Location of temporary directory, defaults to C</tmp> except for the cached "
21053 "supermin appliance which defaults to C</var/tmp>."
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21058 msgid ""
21059 "If libguestfs was compiled to use the supermin appliance then the real "
21060 "appliance is cached in this directory, shared between all handles belonging "
21061 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21062 "use in case C</var/tmp> is not large enough."
21063 msgstr ""
21064
21065 #. type: =head1
21066 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21067 #: ../rescue/virt-rescue.pod:310
21068 msgid "FILES"
21069 msgstr ""
21070
21071 #. type: =item
21072 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21073 #: ../rescue/virt-rescue.pod:314
21074 msgid "$HOME/.libguestfs-tools.rc"
21075 msgstr ""
21076
21077 #. type: =item
21078 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21079 #: ../rescue/virt-rescue.pod:316
21080 msgid "/etc/libguestfs-tools.conf"
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21085 #: ../rescue/virt-rescue.pod:318
21086 msgid ""
21087 "This configuration file controls the default read-only or read-write mode "
21088 "(I<--ro> or I<--rw>)."
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../fish/guestfish.pod:1220
21093 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21094 msgstr ""
21095
21096 #. type: =item
21097 #: ../fish/guestfish.pod:1222
21098 msgid "$HOME/.guestfish"
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../fish/guestfish.pod:1224
21103 msgid ""
21104 "If compiled with GNU readline support, then the command history is saved in "
21105 "this file."
21106 msgstr ""
21107
21108 #. type: =item
21109 #: ../fish/guestfish.pod:1227
21110 msgid "$HOME/.inputrc"
21111 msgstr ""
21112
21113 #. type: =item
21114 #: ../fish/guestfish.pod:1229
21115 msgid "/etc/inputrc"
21116 msgstr ""
21117
21118 #. type: textblock
21119 #: ../fish/guestfish.pod:1231
21120 msgid ""
21121 "If compiled with GNU readline support, then these files can be used to "
21122 "configure readline.  For further information, please see L<readline(3)/"
21123 "INITIALIZATION FILE>."
21124 msgstr ""
21125
21126 #. type: textblock
21127 #: ../fish/guestfish.pod:1235
21128 msgid "To write rules which only apply to guestfish, use:"
21129 msgstr ""
21130
21131 #. type: verbatim
21132 #: ../fish/guestfish.pod:1237
21133 #, no-wrap
21134 msgid ""
21135 " $if guestfish\n"
21136 " ...\n"
21137 " $endif\n"
21138 "\n"
21139 msgstr ""
21140
21141 #. type: textblock
21142 #: ../fish/guestfish.pod:1241
21143 msgid ""
21144 "Variables that you can set in inputrc that change the behaviour of guestfish "
21145 "in useful ways include:"
21146 msgstr ""
21147
21148 #. type: =item
21149 #: ../fish/guestfish.pod:1246
21150 msgid "completion-ignore-case (default: on)"
21151 msgstr ""
21152
21153 #. type: textblock
21154 #: ../fish/guestfish.pod:1248
21155 msgid ""
21156 "By default, guestfish will ignore case when tab-completing paths on the "
21157 "disk.  Use:"
21158 msgstr ""
21159
21160 #. type: verbatim
21161 #: ../fish/guestfish.pod:1251
21162 #, no-wrap
21163 msgid ""
21164 " set completion-ignore-case off\n"
21165 "\n"
21166 msgstr ""
21167
21168 #. type: textblock
21169 #: ../fish/guestfish.pod:1253
21170 msgid "to make guestfish case sensitive."
21171 msgstr ""
21172
21173 #. type: =item
21174 #: ../fish/guestfish.pod:1257
21175 msgid "test1.img"
21176 msgstr ""
21177
21178 #. type: =item
21179 #: ../fish/guestfish.pod:1259
21180 msgid "test2.img (etc)"
21181 msgstr ""
21182
21183 #. type: textblock
21184 #: ../fish/guestfish.pod:1261
21185 msgid ""
21186 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21187 "will be created in the file C<test1.img> in the current directory.  The "
21188 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21189 "the same name will be overwritten."
21190 msgstr ""
21191
21192 #. type: textblock
21193 #: ../fish/guestfish.pod:1270
21194 msgid ""
21195 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21196 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21197 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21198 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21199 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21200 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21201 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21202 msgstr ""
21203
21204 #. type: textblock
21205 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21206 #: ../test-tool/libguestfs-test-tool.pod:112
21207 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21208 msgstr ""
21209
21210 #. type: textblock
21211 #: ../fish/virt-copy-in.pod:5
21212 msgid ""
21213 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21214 msgstr ""
21215
21216 #. type: verbatim
21217 #: ../fish/virt-copy-in.pod:9
21218 #, no-wrap
21219 msgid ""
21220 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21221 "\n"
21222 msgstr ""
21223
21224 #. type: verbatim
21225 #: ../fish/virt-copy-in.pod:11
21226 #, no-wrap
21227 msgid ""
21228 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21229 "\n"
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../fish/virt-copy-in.pod:15
21234 msgid ""
21235 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21236 "causing disk corruption.  The virtual machine must be shut down before you "
21237 "use this command."
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../fish/virt-copy-in.pod:21
21242 msgid ""
21243 "C<virt-copy-in> copies files and directories from the local disk into a "
21244 "virtual machine disk image or named libvirt domain."
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../fish/virt-copy-in.pod:24
21249 msgid ""
21250 "You can give one of more filenames and directories on the command line.  "
21251 "Directories are copied in recursively.  The final parameter must be the "
21252 "destination directory in the disk image which must be an absolute path "
21253 "starting with a C</> character."
21254 msgstr ""
21255
21256 #. type: verbatim
21257 #: ../fish/virt-copy-in.pod:33
21258 #, no-wrap
21259 msgid ""
21260 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21261 "\n"
21262 msgstr ""
21263
21264 #. type: textblock
21265 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21266 msgid "Upload a home directory to a guest:"
21267 msgstr ""
21268
21269 #. type: verbatim
21270 #: ../fish/virt-copy-in.pod:37
21271 #, no-wrap
21272 msgid ""
21273 " virt-copy-in -d MyGuest skel /home\n"
21274 "\n"
21275 msgstr ""
21276
21277 #. type: =head1
21278 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21279 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21280 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21281 msgstr ""
21282
21283 #. type: textblock
21284 #: ../fish/virt-copy-in.pod:41
21285 msgid ""
21286 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21287 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21288 "are probably better off using guestfish directly."
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21293 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21294 msgid ""
21295 "Since the shell script just passes options straight to guestfish, read "
21296 "L<guestfish(1)> to see the full list of options."
21297 msgstr ""
21298
21299 #. type: textblock
21300 #: ../fish/virt-copy-in.pod:52
21301 msgid ""
21302 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21303 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21308 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21309 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../fish/virt-copy-out.pod:5
21314 msgid ""
21315 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21316 "image."
21317 msgstr ""
21318
21319 #. type: verbatim
21320 #: ../fish/virt-copy-out.pod:9
21321 #, no-wrap
21322 msgid ""
21323 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21324 "\n"
21325 msgstr ""
21326
21327 #. type: verbatim
21328 #: ../fish/virt-copy-out.pod:11
21329 #, no-wrap
21330 msgid ""
21331 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21332 "\n"
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../fish/virt-copy-out.pod:15
21337 msgid ""
21338 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21339 "image or named libvirt domain."
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../fish/virt-copy-out.pod:18
21344 msgid ""
21345 "You can give one of more filenames and directories on the command line.  "
21346 "Directories are copied out recursively."
21347 msgstr ""
21348
21349 #. type: textblock
21350 #: ../fish/virt-copy-out.pod:23
21351 msgid "Download the home directories from a virtual machine:"
21352 msgstr ""
21353
21354 #. type: verbatim
21355 #: ../fish/virt-copy-out.pod:25
21356 #, no-wrap
21357 msgid ""
21358 " mkdir homes\n"
21359 " virt-copy-out -d MyGuest /home homes\n"
21360 "\n"
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../fish/virt-copy-out.pod:30
21365 msgid ""
21366 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21367 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21368 "are probably better off using guestfish directly."
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../fish/virt-copy-out.pod:41
21373 msgid ""
21374 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21375 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21376 msgstr ""
21377
21378 #. type: textblock
21379 #: ../fish/virt-tar-in.pod:5
21380 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21381 msgstr ""
21382
21383 #. type: verbatim
21384 #: ../fish/virt-tar-in.pod:9
21385 #, no-wrap
21386 msgid ""
21387 " virt-tar-in -a disk.img data.tar /destination\n"
21388 "\n"
21389 msgstr ""
21390
21391 #. type: verbatim
21392 #: ../fish/virt-tar-in.pod:11
21393 #, no-wrap
21394 msgid ""
21395 " virt-tar-in -d domain data.tar /destination\n"
21396 "\n"
21397 msgstr ""
21398
21399 #. type: verbatim
21400 #: ../fish/virt-tar-in.pod:13
21401 #, no-wrap
21402 msgid ""
21403 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21404 "\n"
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../fish/virt-tar-in.pod:17
21409 msgid ""
21410 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21411 "causing disk corruption.  The virtual machine must be shut down before you "
21412 "use this command."
21413 msgstr ""
21414
21415 #. type: textblock
21416 #: ../fish/virt-tar-in.pod:23
21417 msgid ""
21418 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21419 "image or named libvirt domain."
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../fish/virt-tar-in.pod:26
21424 msgid ""
21425 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21426 "standard input.  The second parameter is the absolute target directory to "
21427 "unpack into."
21428 msgstr ""
21429
21430 #. type: verbatim
21431 #: ../fish/virt-tar-in.pod:34
21432 #, no-wrap
21433 msgid ""
21434 " virt-tar-in -d MyGuest homes.tar /home\n"
21435 "\n"
21436 msgstr ""
21437
21438 #. type: textblock
21439 #: ../fish/virt-tar-in.pod:38
21440 msgid ""
21441 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21442 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21443 "probably better off using guestfish directly."
21444 msgstr ""
21445
21446 #. type: textblock
21447 #: ../fish/virt-tar-in.pod:49
21448 msgid ""
21449 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21450 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21451 "org/>."
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../fish/virt-tar-out.pod:5
21456 msgid ""
21457 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21458 msgstr ""
21459
21460 #. type: verbatim
21461 #: ../fish/virt-tar-out.pod:9
21462 #, no-wrap
21463 msgid ""
21464 " virt-tar-out -a disk.img /dir files.tar\n"
21465 "\n"
21466 msgstr ""
21467
21468 #. type: verbatim
21469 #: ../fish/virt-tar-out.pod:11
21470 #, no-wrap
21471 msgid ""
21472 " virt-tar-out -d domain /dir files.tar\n"
21473 "\n"
21474 msgstr ""
21475
21476 #. type: verbatim
21477 #: ../fish/virt-tar-out.pod:13
21478 #, no-wrap
21479 msgid ""
21480 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21481 "\n"
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../fish/virt-tar-out.pod:17
21486 msgid ""
21487 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21488 msgstr ""
21489
21490 #. type: textblock
21491 #: ../fish/virt-tar-out.pod:20
21492 msgid ""
21493 "The first parameter is the absolute path of the virtual machine directory.  "
21494 "The second parameter is the tar file to write.  Use C<-> to write to "
21495 "standard output."
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../fish/virt-tar-out.pod:26
21500 msgid "Download the home directories from a guest:"
21501 msgstr ""
21502
21503 #. type: verbatim
21504 #: ../fish/virt-tar-out.pod:28
21505 #, no-wrap
21506 msgid ""
21507 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21508 "\n"
21509 msgstr ""
21510
21511 #. type: textblock
21512 #: ../fish/virt-tar-out.pod:32
21513 msgid ""
21514 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21515 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21516 "are probably better off using guestfish directly."
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../fish/virt-tar-out.pod:43
21521 msgid ""
21522 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21523 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../fuse/guestmount.pod:5
21528 msgid ""
21529 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21530 msgstr ""
21531
21532 #. type: verbatim
21533 #: ../fuse/guestmount.pod:9
21534 #, no-wrap
21535 msgid ""
21536 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21537 "\n"
21538 msgstr ""
21539
21540 #. type: verbatim
21541 #: ../fuse/guestmount.pod:11
21542 #, no-wrap
21543 msgid ""
21544 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21545 "\n"
21546 msgstr ""
21547
21548 #. type: verbatim
21549 #: ../fuse/guestmount.pod:13
21550 #, no-wrap
21551 msgid ""
21552 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21553 "\n"
21554 msgstr ""
21555
21556 #. type: textblock
21557 #: ../fuse/guestmount.pod:17
21558 msgid ""
21559 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21560 "machines.  If you do this, you risk disk corruption in the VM."
21561 msgstr ""
21562
21563 #. type: textblock
21564 #: ../fuse/guestmount.pod:22
21565 msgid ""
21566 "The guestmount program can be used to mount virtual machine filesystems and "
21567 "other disk images on the host.  It uses libguestfs for access to the guest "
21568 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21569 "a mountable device."
21570 msgstr ""
21571
21572 #. type: textblock
21573 #: ../fuse/guestmount.pod:27
21574 msgid ""
21575 "Along with other options, you have to give at least one device (I<-a> "
21576 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21577 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21578 "this works is better explained in the L<guestfish(1)> manual page, or by "
21579 "looking at the examples below."
21580 msgstr ""
21581
21582 #. type: textblock
21583 #: ../fuse/guestmount.pod:33
21584 msgid ""
21585 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21586 "by you, and the filesystem will not be visible to any other users unless you "
21587 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21588 "the filesystem, use the C<fusermount -u> command."
21589 msgstr ""
21590
21591 #. type: textblock
21592 #: ../fuse/guestmount.pod:41
21593 msgid ""
21594 "For a typical Windows guest which has its main filesystem on the first "
21595 "partition:"
21596 msgstr ""
21597
21598 #. type: verbatim
21599 #: ../fuse/guestmount.pod:44
21600 #, no-wrap
21601 msgid ""
21602 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21603 "\n"
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../fuse/guestmount.pod:46
21608 msgid ""
21609 "For a typical Linux guest which has a /boot filesystem on the first "
21610 "partition, and the root filesystem on a logical volume:"
21611 msgstr ""
21612
21613 #. type: verbatim
21614 #: ../fuse/guestmount.pod:49
21615 #, no-wrap
21616 msgid ""
21617 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21618 "\n"
21619 msgstr ""
21620
21621 #. type: textblock
21622 #: ../fuse/guestmount.pod:51
21623 msgid "To get libguestfs to detect guest mountpoints for you:"
21624 msgstr ""
21625
21626 #. type: verbatim
21627 #: ../fuse/guestmount.pod:53
21628 #, no-wrap
21629 msgid ""
21630 " guestmount -a guest.img -i --ro /mnt\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../fuse/guestmount.pod:55
21636 msgid "For a libvirt guest called \"Guest\" you could do:"
21637 msgstr ""
21638
21639 #. type: verbatim
21640 #: ../fuse/guestmount.pod:57
21641 #, no-wrap
21642 msgid ""
21643 " guestmount -d Guest -i --ro /mnt\n"
21644 "\n"
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../fuse/guestmount.pod:59
21649 msgid ""
21650 "If you don't know what filesystems are contained in a guest or disk image, "
21651 "use L<virt-filesystems(1)> first:"
21652 msgstr ""
21653
21654 #. type: verbatim
21655 #: ../fuse/guestmount.pod:62
21656 #, no-wrap
21657 msgid ""
21658 " virt-filesystems MyGuest\n"
21659 "\n"
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../fuse/guestmount.pod:64
21664 msgid ""
21665 "If you want to trace the libguestfs calls but without excessive debugging "
21666 "information, we recommend:"
21667 msgstr ""
21668
21669 #. type: verbatim
21670 #: ../fuse/guestmount.pod:67
21671 #, no-wrap
21672 msgid ""
21673 " guestmount [...] --trace /mnt\n"
21674 "\n"
21675 msgstr ""
21676
21677 #. type: textblock
21678 #: ../fuse/guestmount.pod:69
21679 msgid "If you want to debug the program, we recommend:"
21680 msgstr ""
21681
21682 #. type: verbatim
21683 #: ../fuse/guestmount.pod:71
21684 #, no-wrap
21685 msgid ""
21686 " guestmount [...] --trace --verbose /mnt\n"
21687 "\n"
21688 msgstr ""
21689
21690 #. type: =head1
21691 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
21692 #: ../resize/virt-resize.pod:621
21693 msgid "NOTES"
21694 msgstr ""
21695
21696 #. type: =head2
21697 #: ../fuse/guestmount.pod:75
21698 msgid "Other users cannot see the filesystem by default"
21699 msgstr ""
21700
21701 #. type: textblock
21702 #: ../fuse/guestmount.pod:77
21703 msgid ""
21704 "If you mount a filesystem as one user (eg. root), then other users will not "
21705 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21706 "option when mounting:"
21707 msgstr ""
21708
21709 #. type: verbatim
21710 #: ../fuse/guestmount.pod:81
21711 #, no-wrap
21712 msgid ""
21713 " sudo guestmount [...] -o allow_other /mnt\n"
21714 "\n"
21715 msgstr ""
21716
21717 #. type: =head2
21718 #: ../fuse/guestmount.pod:83
21719 msgid "Enabling FUSE"
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../fuse/guestmount.pod:85
21724 msgid ""
21725 "On some distros, you may need to add yourself to a special group (eg. "
21726 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21727 "Debian and derivatives."
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../fuse/guestmount.pod:89
21732 msgid ""
21733 "On other distros, no special group is required.  It is not necessary on "
21734 "Fedora or Red Hat Enterprise Linux."
21735 msgstr ""
21736
21737 #. type: textblock
21738 #: ../fuse/guestmount.pod:100
21739 msgid "Add a block device or virtual machine image."
21740 msgstr ""
21741
21742 #. type: =item
21743 #: ../fuse/guestmount.pod:123
21744 msgid "B<--dir-cache-timeout N>"
21745 msgstr ""
21746
21747 #. type: textblock
21748 #: ../fuse/guestmount.pod:125
21749 msgid ""
21750 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21751 "seconds.  The readdir cache [actually, there are several semi-independent "
21752 "caches] is populated after a readdir(2) call with the stat and extended "
21753 "attributes of the files in the directory, in anticipation that they will be "
21754 "requested soon after."
21755 msgstr ""
21756
21757 #. type: textblock
21758 #: ../fuse/guestmount.pod:131
21759 msgid ""
21760 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21761 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21762 "requests, only cache existing ones."
21763 msgstr ""
21764
21765 #. type: textblock
21766 #: ../fuse/guestmount.pod:151
21767 msgid ""
21768 "If you have untrusted raw-format guest disk images, you should use this "
21769 "option to specify the disk format.  This avoids a possible security problem "
21770 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21771 "guestfs_add_drive_opts>."
21772 msgstr ""
21773
21774 #. type: =item
21775 #: ../fuse/guestmount.pod:156
21776 msgid "B<--fuse-help>"
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../fuse/guestmount.pod:158
21781 msgid "Display help on special FUSE options (see I<-o> below)."
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../fuse/guestmount.pod:162
21786 msgid "Display brief help and exit."
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../fuse/guestmount.pod:186
21791 msgid ""
21792 "Mount the named partition or logical volume on the given mountpoint B<in the "
21793 "guest> (this has nothing to do with mountpoints in the host)."
21794 msgstr ""
21795
21796 #. type: textblock
21797 #: ../fuse/guestmount.pod:189
21798 msgid ""
21799 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21800 "something on C</>."
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../fuse/guestmount.pod:206
21805 msgid ""
21806 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21807 "unmounted.  If you specify this option, then we don't attempt to sync the "
21808 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21809 msgstr ""
21810
21811 #. type: =item
21812 #: ../fuse/guestmount.pod:211
21813 msgid "B<-o option>"
21814 msgstr ""
21815
21816 #. type: =item
21817 #: ../fuse/guestmount.pod:213
21818 msgid "B<--option option>"
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../fuse/guestmount.pod:215
21823 msgid "Pass extra options to FUSE."
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../fuse/guestmount.pod:217
21828 msgid ""
21829 "To get a list of all the extra options supported by FUSE, use the command "
21830 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21831 "of them are a good idea."
21832 msgstr ""
21833
21834 #. type: verbatim
21835 #: ../fuse/guestmount.pod:221
21836 #, no-wrap
21837 msgid ""
21838 " guestmount --fuse-help\n"
21839 "\n"
21840 msgstr ""
21841
21842 #. type: textblock
21843 #: ../fuse/guestmount.pod:223
21844 msgid "Some potentially useful FUSE options:"
21845 msgstr ""
21846
21847 #. type: =item
21848 #: ../fuse/guestmount.pod:227
21849 msgid "B<-o allow_other>"
21850 msgstr ""
21851
21852 #. type: textblock
21853 #: ../fuse/guestmount.pod:229
21854 msgid "Allow other users to see the filesystem."
21855 msgstr ""
21856
21857 #. type: =item
21858 #: ../fuse/guestmount.pod:231
21859 msgid "B<-o attr_timeout=N>"
21860 msgstr ""
21861
21862 #. type: textblock
21863 #: ../fuse/guestmount.pod:233
21864 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21865 msgstr ""
21866
21867 #. type: =item
21868 #: ../fuse/guestmount.pod:235
21869 msgid "B<-o kernel_cache>"
21870 msgstr ""
21871
21872 #. type: textblock
21873 #: ../fuse/guestmount.pod:237
21874 msgid ""
21875 "Allow the kernel to cache files (reduces the number of reads that have to go "
21876 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21877 "afford the extra memory usage."
21878 msgstr ""
21879
21880 #. type: =item
21881 #: ../fuse/guestmount.pod:241
21882 msgid "B<-o uid=N> B<-o gid=N>"
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../fuse/guestmount.pod:243
21887 msgid ""
21888 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21889 "the chosen values."
21890 msgstr ""
21891
21892 #. type: textblock
21893 #: ../fuse/guestmount.pod:252
21894 msgid ""
21895 "Add devices and mount everything read-only.  Also disallow writes and make "
21896 "the disk appear read-only to FUSE."
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../fuse/guestmount.pod:255
21901 msgid ""
21902 "This is highly recommended if you are not going to edit the guest disk.  If "
21903 "the guest is running and this option is I<not> supplied, then there is a "
21904 "strong risk of disk corruption in the guest.  We try to prevent this from "
21905 "happening, but it is not always possible."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
21910 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fuse/guestmount.pod:264
21915 msgid "Enable SELinux support for the guest."
21916 msgstr ""
21917
21918 #. type: textblock
21919 #: ../fuse/guestmount.pod:270
21920 msgid "Enable verbose messages from underlying libguestfs."
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../fuse/guestmount.pod:276
21925 msgid "Display the program version and exit."
21926 msgstr ""
21927
21928 #. type: textblock
21929 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21930 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
21931 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21932 msgstr ""
21933
21934 #. type: =item
21935 #: ../fuse/guestmount.pod:289
21936 msgid "B<--trace>"
21937 msgstr ""
21938
21939 #. type: textblock
21940 #: ../fuse/guestmount.pod:291
21941 msgid "Trace libguestfs calls and entry into each FUSE function."
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../fuse/guestmount.pod:293
21946 msgid "This also stops the daemon from forking into the background."
21947 msgstr ""
21948
21949 #. type: textblock
21950 #: ../fuse/guestmount.pod:319
21951 msgid ""
21952 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21953 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21954 "net/>."
21955 msgstr ""
21956
21957 #. type: textblock
21958 #: ../fuse/guestmount.pod:334
21959 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21960 msgstr ""
21961
21962 #. type: textblock
21963 #: ../inspector/virt-inspector.pod:5
21964 msgid ""
21965 "virt-inspector - Display operating system version and other information "
21966 "about a virtual machine"
21967 msgstr ""
21968
21969 #. type: verbatim
21970 #: ../inspector/virt-inspector.pod:9
21971 #, no-wrap
21972 msgid ""
21973 " virt-inspector [--options] -d domname\n"
21974 "\n"
21975 msgstr ""
21976
21977 #. type: verbatim
21978 #: ../inspector/virt-inspector.pod:11
21979 #, no-wrap
21980 msgid ""
21981 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21982 "\n"
21983 msgstr ""
21984
21985 #. type: verbatim
21986 #: ../inspector/virt-inspector.pod:15
21987 #, no-wrap
21988 msgid ""
21989 " virt-inspector domname\n"
21990 "\n"
21991 msgstr ""
21992
21993 #. type: verbatim
21994 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
21995 #, no-wrap
21996 msgid ""
21997 " virt-inspector disk.img [disk.img ...]\n"
21998 "\n"
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../inspector/virt-inspector.pod:21
22003 msgid ""
22004 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22005 "determine the version of the operating system and other information about "
22006 "the virtual machine."
22007 msgstr ""
22008
22009 #. type: textblock
22010 #: ../inspector/virt-inspector.pod:25
22011 msgid "Virt-inspector produces XML output for feeding into other programs."
22012 msgstr ""
22013
22014 #. type: textblock
22015 #: ../inspector/virt-inspector.pod:27
22016 msgid ""
22017 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22018 "the libvirt domain (see: C<virsh list --all>)."
22019 msgstr ""
22020
22021 #. type: textblock
22022 #: ../inspector/virt-inspector.pod:30
22023 msgid ""
22024 "You can also run virt-inspector directly on disk images from a single "
22025 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22026 "has several block devices, in which case you should list several I<-a> "
22027 "options one after another, with the first corresponding to the guest's C</"
22028 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22029 msgstr ""
22030
22031 #. type: textblock
22032 #: ../inspector/virt-inspector.pod:37
22033 msgid ""
22034 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22035 "keys and similar."
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../inspector/virt-inspector.pod:40
22040 msgid ""
22041 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22042 "inspect several virtual machines, you have to run virt-inspector several "
22043 "times (for example, from a shell script for-loop)."
22044 msgstr ""
22045
22046 #. type: textblock
22047 #: ../inspector/virt-inspector.pod:45
22048 msgid ""
22049 "Because virt-inspector needs direct access to guest images, it won't "
22050 "normally work over remote libvirt connections."
22051 msgstr ""
22052
22053 #. type: textblock
22054 #: ../inspector/virt-inspector.pod:48
22055 msgid ""
22056 "All of the information available from virt-inspector is also available "
22057 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22058 "The same information can also be fetched using guestfish or via libguestfs "
22059 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22060 "WITH OTHER PROGRAMMING LANGUAGES>)."
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../inspector/virt-inspector.pod:81
22065 msgid ""
22066 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22067 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22068 "at all."
22069 msgstr ""
22070
22071 #. type: textblock
22072 #: ../inspector/virt-inspector.pod:94
22073 msgid ""
22074 "When prompting for keys and passphrases, virt-inspector normally turns "
22075 "echoing off so you cannot see what you are typing.  If you are not worried "
22076 "about Tempest attacks and there is no one else in the room you can specify "
22077 "this flag to see what you are typing."
22078 msgstr ""
22079
22080 #. type: textblock
22081 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22082 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22083 #: ../tools/virt-win-reg.pl:144
22084 msgid ""
22085 "Specify the format of disk images given on the command line.  If this is "
22086 "omitted then the format is autodetected from the content of the disk image."
22087 msgstr ""
22088
22089 #. type: textblock
22090 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22091 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22092 #: ../tools/virt-win-reg.pl:148
22093 msgid ""
22094 "If disk images are requested from libvirt, then this program asks libvirt "
22095 "for this information.  In this case, the value of the format parameter is "
22096 "ignored."
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22101 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22102 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22103 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22104 msgid ""
22105 "If working with untrusted raw-format guest disk images, you should ensure "
22106 "the format is always specified."
22107 msgstr ""
22108
22109 #. type: =item
22110 #: ../inspector/virt-inspector.pod:135
22111 msgid "B<--xpath> query"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../inspector/virt-inspector.pod:137
22116 msgid ""
22117 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22118 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22119 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22120 msgstr ""
22121
22122 #. type: textblock
22123 #: ../inspector/virt-inspector.pod:146
22124 msgid "Previous versions of virt-inspector allowed you to write either:"
22125 msgstr ""
22126
22127 #. type: verbatim
22128 #: ../inspector/virt-inspector.pod:152
22129 #, no-wrap
22130 msgid ""
22131 " virt-inspector guestname\n"
22132 "\n"
22133 msgstr ""
22134
22135 #. type: =head1
22136 #: ../inspector/virt-inspector.pod:160
22137 msgid "XML FORMAT"
22138 msgstr ""
22139
22140 #. type: textblock
22141 #: ../inspector/virt-inspector.pod:162
22142 msgid ""
22143 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22144 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22145 "just an overview."
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../inspector/virt-inspector.pod:166
22150 msgid ""
22151 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22152 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22153 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22154 "which is vanishingly rare in real world VMs."
22155 msgstr ""
22156
22157 #. type: =head2
22158 #: ../inspector/virt-inspector.pod:171
22159 msgid "E<lt>operatingsystemE<gt>"
22160 msgstr ""
22161
22162 #. type: textblock
22163 #: ../inspector/virt-inspector.pod:173
22164 msgid ""
22165 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22166 "describe the operating system, its architecture, the descriptive \"product "
22167 "name\" string, the type of OS and so on, as in this example:"
22168 msgstr ""
22169
22170 #. type: verbatim
22171 #: ../inspector/virt-inspector.pod:177
22172 #, no-wrap
22173 msgid ""
22174 " <operatingsystems>\n"
22175 "   <operatingsystem>\n"
22176 "     <root>/dev/sda2</root>\n"
22177 "     <name>windows</name>\n"
22178 "     <arch>i386</arch>\n"
22179 "     <distro>windows</distro>\n"
22180 "     <product_name>Windows 7 Enterprise</product_name>\n"
22181 "     <product_variant>Client</product_variant>\n"
22182 "     <major_version>6</major_version>\n"
22183 "     <minor_version>1</minor_version>\n"
22184 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22185 "     <format>installed</format>\n"
22186 "\n"
22187 msgstr ""
22188
22189 #. type: textblock
22190 #: ../inspector/virt-inspector.pod:190
22191 msgid ""
22192 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22193 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22194 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22195 "architecture.  The other fields are fairly self-explanatory, but because "
22196 "these fields are taken directly from the libguestfs inspection API you can "
22197 "find precise information from L<guestfs(3)/INSPECTION>."
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../inspector/virt-inspector.pod:198
22202 msgid ""
22203 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22204 "of view of libguestfs (block devices may have completely different names "
22205 "inside the VM itself)."
22206 msgstr ""
22207
22208 #. type: =head2
22209 #: ../inspector/virt-inspector.pod:202
22210 msgid "E<lt>mountpointsE<gt>"
22211 msgstr ""
22212
22213 #. type: textblock
22214 #: ../inspector/virt-inspector.pod:204
22215 msgid ""
22216 "Un*x-like guests typically have multiple filesystems which are mounted at "
22217 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22218 "element which looks like this:"
22219 msgstr ""
22220
22221 #. type: verbatim
22222 #: ../inspector/virt-inspector.pod:208
22223 #, no-wrap
22224 msgid ""
22225 " <operatingsystems>\n"
22226 "   <operatingsystem>\n"
22227 "     ...\n"
22228 "     <mountpoints>\n"
22229 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22230 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22231 "     </mountpoints>\n"
22232 "\n"
22233 msgstr ""
22234
22235 #. type: textblock
22236 #: ../inspector/virt-inspector.pod:216
22237 msgid ""
22238 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22239 "and may have completely different names inside the guest.  Only mountable "
22240 "filesystems appear in this list, not things like swap devices."
22241 msgstr ""
22242
22243 #. type: =head2
22244 #: ../inspector/virt-inspector.pod:221
22245 msgid "E<lt>filesystemsE<gt>"
22246 msgstr ""
22247
22248 #. type: textblock
22249 #: ../inspector/virt-inspector.pod:223
22250 msgid ""
22251 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22252 "filesystems belonging to the guest, including swap and empty partitions.  "
22253 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22254 "this OS or shared with this OS and other OSes)."
22255 msgstr ""
22256
22257 #. type: textblock
22258 #: ../inspector/virt-inspector.pod:229
22259 msgid "You might see something like this:"
22260 msgstr ""
22261
22262 #. type: verbatim
22263 #: ../inspector/virt-inspector.pod:231
22264 #, no-wrap
22265 msgid ""
22266 " <operatingsystems>\n"
22267 "   <operatingsystem>\n"
22268 "     ...\n"
22269 "     <filesystems>\n"
22270 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22271 "         <type>ext4</type>\n"
22272 "         <label>Fedora-13-x86_64</label>\n"
22273 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22274 "       </filesystem>\n"
22275 "\n"
22276 msgstr ""
22277
22278 #. type: textblock
22279 #: ../inspector/virt-inspector.pod:241
22280 msgid ""
22281 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22282 "the label, and the UUID."
22283 msgstr ""
22284
22285 #. type: =head2
22286 #: ../inspector/virt-inspector.pod:244
22287 msgid "E<lt>applicationsE<gt>"
22288 msgstr ""
22289
22290 #. type: textblock
22291 #: ../inspector/virt-inspector.pod:246
22292 msgid ""
22293 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22294 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22295 "machine."
22296 msgstr ""
22297
22298 #. type: textblock
22299 #: ../inspector/virt-inspector.pod:250
22300 msgid ""
22301 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22302 "Typical values would be C<rpm> and C<deb>."
22303 msgstr ""
22304
22305 #. type: textblock
22306 #: ../inspector/virt-inspector.pod:253
22307 msgid ""
22308 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22309 "Typical values include C<yum>, C<up2date> and C<apt>"
22310 msgstr ""
22311
22312 #. type: textblock
22313 #: ../inspector/virt-inspector.pod:256
22314 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22315 msgstr ""
22316
22317 #. type: verbatim
22318 #: ../inspector/virt-inspector.pod:259
22319 #, no-wrap
22320 msgid ""
22321 " <operatingsystems>\n"
22322 "   <operatingsystem>\n"
22323 "     ...\n"
22324 "     <applications>\n"
22325 "       <application>\n"
22326 "         <name>coreutils</name>\n"
22327 "         <version>8.5</version>\n"
22328 "         <release>1</release>\n"
22329 "       </application>\n"
22330 "\n"
22331 msgstr ""
22332
22333 #. type: textblock
22334 #: ../inspector/virt-inspector.pod:269
22335 msgid ""
22336 "The version and release fields may not be available for some types guests.  "
22337 "Other fields are possible, see L<guestfs(3)/"
22338 "guestfs_inspect_list_applications>."
22339 msgstr ""
22340
22341 #. type: =head2
22342 #: ../inspector/virt-inspector.pod:273
22343 msgid "E<lt>drive_mappingsE<gt>"
22344 msgstr ""
22345
22346 #. type: textblock
22347 #: ../inspector/virt-inspector.pod:275
22348 msgid ""
22349 "For operating systems like Windows which use drive letters, virt-inspector "
22350 "is able to find out how drive letters map to filesystems."
22351 msgstr ""
22352
22353 #. type: verbatim
22354 #: ../inspector/virt-inspector.pod:279
22355 #, no-wrap
22356 msgid ""
22357 " <operatingsystems>\n"
22358 "   <operatingsystem>\n"
22359 "     ...\n"
22360 "     <drive_mappings>\n"
22361 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22362 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22363 "     </drive_mappings>\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../inspector/virt-inspector.pod:287
22369 msgid ""
22370 "In the example above, drive C maps to the filesystem on the second partition "
22371 "on the first disk, and drive E maps to the filesystem on the first partition "
22372 "on the second disk."
22373 msgstr ""
22374
22375 #. type: textblock
22376 #: ../inspector/virt-inspector.pod:291
22377 msgid ""
22378 "Note that this only covers permanent local filesystem mappings, not things "
22379 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22380 "here."
22381 msgstr ""
22382
22383 #. type: =head2
22384 #: ../inspector/virt-inspector.pod:295
22385 msgid "E<lt>iconE<gt>"
22386 msgstr ""
22387
22388 #. type: textblock
22389 #: ../inspector/virt-inspector.pod:297
22390 msgid ""
22391 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22392 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22393 "very large and high quality."
22394 msgstr ""
22395
22396 #. type: verbatim
22397 #: ../inspector/virt-inspector.pod:301
22398 #, no-wrap
22399 msgid ""
22400 " <operatingsystems>\n"
22401 "   <operatingsystem>\n"
22402 "     ...\n"
22403 "     <icon>\n"
22404 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22405 "       [... many lines of base64 data ...]\n"
22406 "     </icon>\n"
22407 "\n"
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../inspector/virt-inspector.pod:309
22412 msgid ""
22413 "To display the icon, you have to extract it and convert the base64 data back "
22414 "to a binary file.  Use an XPath query or simply an editor to extract the "
22415 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22416 "to a PNG file:"
22417 msgstr ""
22418
22419 #. type: verbatim
22420 #: ../inspector/virt-inspector.pod:314
22421 #, no-wrap
22422 msgid ""
22423 " base64 -i -d < icon.data > icon.png\n"
22424 "\n"
22425 msgstr ""
22426
22427 #. type: =head2
22428 #: ../inspector/virt-inspector.pod:316
22429 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22430 msgstr ""
22431
22432 #. type: textblock
22433 #: ../inspector/virt-inspector.pod:318
22434 msgid ""
22435 "Virt-inspector can detect some operating system installers on install disks, "
22436 "live CDs, bootable USB keys and more."
22437 msgstr ""
22438
22439 #. type: textblock
22440 #: ../inspector/virt-inspector.pod:321
22441 msgid ""
22442 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22443 "fields may be present to indicate a live CD, network installer, or one part "
22444 "of a multipart CD.  For example:"
22445 msgstr ""
22446
22447 #. type: verbatim
22448 #: ../inspector/virt-inspector.pod:325
22449 #, no-wrap
22450 msgid ""
22451 " <operatingsystems>\n"
22452 "   <operatingsystem>\n"
22453 "     <root>/dev/sda</root>\n"
22454 "     <name>linux</name>\n"
22455 "     <arch>i386</arch>\n"
22456 "     <distro>ubuntu</distro>\n"
22457 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22458 "     <major_version>10</major_version>\n"
22459 "     <minor_version>10</minor_version>\n"
22460 "     <format>installer</format>\n"
22461 "     <live/>\n"
22462 "\n"
22463 msgstr ""
22464
22465 #. type: =head1
22466 #: ../inspector/virt-inspector.pod:337
22467 msgid "XPATH QUERIES"
22468 msgstr ""
22469
22470 #. type: textblock
22471 #: ../inspector/virt-inspector.pod:339
22472 msgid ""
22473 "Virt-inspector includes built in support for running XPath queries.  The "
22474 "reason for including XPath support directly in virt-inspector is simply that "
22475 "there are no good and widely available command line programs that can do "
22476 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22477 "available on Red Hat Enterprise Linux."
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../inspector/virt-inspector.pod:346
22482 msgid ""
22483 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22484 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22485 "result on stdout.  All other inspection features are disabled in this mode."
22486 msgstr ""
22487
22488 #. type: verbatim
22489 #: ../inspector/virt-inspector.pod:353
22490 #, no-wrap
22491 msgid ""
22492 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22493 " <filesystems>\n"
22494 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22495 "        <type>ext4</type>\n"
22496 " [...]\n"
22497 "\n"
22498 msgstr ""
22499
22500 #. type: verbatim
22501 #: ../inspector/virt-inspector.pod:359
22502 #, no-wrap
22503 msgid ""
22504 " $ virt-inspector -d Guest | \\\n"
22505 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22506 " ext4\n"
22507 "\n"
22508 msgstr ""
22509
22510 #. type: verbatim
22511 #: ../inspector/virt-inspector.pod:363
22512 #, no-wrap
22513 msgid ""
22514 " $ virt-inspector -d Guest | \\\n"
22515 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22516 " [displays the guest icon, if there is one]\n"
22517 "\n"
22518 msgstr ""
22519
22520 #. type: =head1
22521 #: ../inspector/virt-inspector.pod:374
22522 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22523 msgstr ""
22524
22525 #. type: textblock
22526 #: ../inspector/virt-inspector.pod:376
22527 msgid ""
22528 "Early versions of libguestfs shipped with a different virt-inspector program "
22529 "written in Perl (the current version is written in C).  The XML output of "
22530 "the Perl virt-inspector was different and it could also output in other "
22531 "formats like text."
22532 msgstr ""
22533
22534 #. type: textblock
22535 #: ../inspector/virt-inspector.pod:381
22536 msgid ""
22537 "The old virt-inspector is no longer supported or shipped with libguestfs."
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../inspector/virt-inspector.pod:384
22542 msgid ""
22543 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22544 "versions of virt-inspector with different names:"
22545 msgstr ""
22546
22547 #. type: verbatim
22548 #: ../inspector/virt-inspector.pod:387
22549 #, no-wrap
22550 msgid ""
22551 " virt-inspector     Old Perl version.\n"
22552 " virt-inspector2    New C version.\n"
22553 "\n"
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../inspector/virt-inspector.pod:397
22558 msgid ""
22559 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22560 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22561 msgstr ""
22562
22563 #. type: textblock
22564 #: ../inspector/virt-inspector.pod:414
22565 msgid "Matthew Booth L<mbooth@redhat.com>"
22566 msgstr ""
22567
22568 #. type: textblock
22569 #: ../java/examples/guestfs-java.pod:5
22570 msgid "guestfs-java - How to use libguestfs from Java"
22571 msgstr ""
22572
22573 #. type: verbatim
22574 #: ../java/examples/guestfs-java.pod:9
22575 #, no-wrap
22576 msgid ""
22577 " import com.redhat.et.libguestfs.*;\n"
22578 " \n"
22579 msgstr ""
22580
22581 #. type: verbatim
22582 #: ../java/examples/guestfs-java.pod:11
22583 #, no-wrap
22584 msgid ""
22585 " GuestFS g = new GuestFS ();\n"
22586 " g.add_drive_opts (\"disk.img\", null);\n"
22587 " g.launch ();\n"
22588 "\n"
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../java/examples/guestfs-java.pod:17
22593 msgid ""
22594 "This manual page documents how to call libguestfs from the Java programming "
22595 "language.  This page just documents the differences from the C API and gives "
22596 "some examples.  If you are not familiar with using libguestfs, you also need "
22597 "to read L<guestfs(3)>."
22598 msgstr ""
22599
22600 #. type: =head2
22601 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22602 msgid "CLOSING THE HANDLE"
22603 msgstr ""
22604
22605 #. type: textblock
22606 #: ../java/examples/guestfs-java.pod:24
22607 msgid ""
22608 "The handle is closed when it is reaped by the garbage collector.  Because "
22609 "libguestfs handles include a lot of state, it is also possible to close (and "
22610 "hence free) them explicitly by calling the C<close> method."
22611 msgstr ""
22612
22613 #. type: =head2
22614 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22615 #: ../python/examples/guestfs-python.pod:21
22616 #: ../ruby/examples/guestfs-ruby.pod:22
22617 msgid "EXCEPTIONS"
22618 msgstr ""
22619
22620 #. type: textblock
22621 #: ../java/examples/guestfs-java.pod:31
22622 msgid ""
22623 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22624 "exception.  This has a single parameter which is the error message (a "
22625 "C<String>)."
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../java/examples/guestfs-java.pod:35
22630 msgid "Calling any method on a closed handle raises the same exception."
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../java/examples/guestfs-java.pod:47
22635 msgid ""
22636 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22637 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22638 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22639 msgstr ""
22640
22641 #. type: textblock
22642 #: ../ocaml/examples/guestfs-ocaml.pod:5
22643 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22644 msgstr ""
22645
22646 #. type: textblock
22647 #: ../ocaml/examples/guestfs-ocaml.pod:9
22648 msgid "Module style:"
22649 msgstr ""
22650
22651 #. type: verbatim
22652 #: ../ocaml/examples/guestfs-ocaml.pod:11
22653 #, no-wrap
22654 msgid ""
22655 " let g = Guestfs.create () in\n"
22656 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22657 " Guestfs.launch g;\n"
22658 "\n"
22659 msgstr ""
22660
22661 #. type: textblock
22662 #: ../ocaml/examples/guestfs-ocaml.pod:15
22663 msgid "Object-oriented style:"
22664 msgstr ""
22665
22666 #. type: verbatim
22667 #: ../ocaml/examples/guestfs-ocaml.pod:17
22668 #, no-wrap
22669 msgid ""
22670 " let g = new Guestfs.guestfs () in\n"
22671 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22672 " g#launch ();\n"
22673 "\n"
22674 msgstr ""
22675
22676 #. type: verbatim
22677 #: ../ocaml/examples/guestfs-ocaml.pod:21
22678 #, no-wrap
22679 msgid ""
22680 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22681 "or:\n"
22682 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22683 "\n"
22684 msgstr ""
22685
22686 #. type: textblock
22687 #: ../ocaml/examples/guestfs-ocaml.pod:27
22688 msgid ""
22689 "This manual page documents how to call libguestfs from the OCaml programming "
22690 "language.  This page just documents the differences from the C API and gives "
22691 "some examples.  If you are not familiar with using libguestfs, you also need "
22692 "to read L<guestfs(3)>."
22693 msgstr ""
22694
22695 #. type: =head2
22696 #: ../ocaml/examples/guestfs-ocaml.pod:32
22697 msgid "PROGRAMMING STYLES"
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../ocaml/examples/guestfs-ocaml.pod:34
22702 msgid ""
22703 "There are two different programming styles supported by the OCaml bindings.  "
22704 "You can use a module style, with each C function mapped to an OCaml function:"
22705 msgstr ""
22706
22707 #. type: verbatim
22708 #: ../ocaml/examples/guestfs-ocaml.pod:38
22709 #, no-wrap
22710 msgid ""
22711 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22712 "\n"
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../ocaml/examples/guestfs-ocaml.pod:40
22717 msgid "becomes:"
22718 msgstr ""
22719
22720 #. type: verbatim
22721 #: ../ocaml/examples/guestfs-ocaml.pod:42
22722 #, no-wrap
22723 msgid ""
22724 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22725 "\n"
22726 msgstr ""
22727
22728 #. type: textblock
22729 #: ../ocaml/examples/guestfs-ocaml.pod:44
22730 msgid ""
22731 "Alternately you can use an object-oriented style, calling methods on the "
22732 "class C<Guestfs.guestfs>:"
22733 msgstr ""
22734
22735 #. type: verbatim
22736 #: ../ocaml/examples/guestfs-ocaml.pod:47
22737 #, no-wrap
22738 msgid ""
22739 " method set_verbose : bool -> unit\n"
22740 "\n"
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../ocaml/examples/guestfs-ocaml.pod:49
22745 msgid ""
22746 "The object-oriented style is usually briefer, and the minor performance "
22747 "penalty isn't noticable in the general overhead of performing libguestfs "
22748 "functions."
22749 msgstr ""
22750
22751 #. type: textblock
22752 #: ../ocaml/examples/guestfs-ocaml.pod:55
22753 msgid ""
22754 "The handle is closed when it is reaped by the garbage collector.  Because "
22755 "libguestfs handles include a lot of state, it is also possible to close (and "
22756 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22757 "method."
22758 msgstr ""
22759
22760 #. type: textblock
22761 #: ../ocaml/examples/guestfs-ocaml.pod:62
22762 msgid ""
22763 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22764 "exception.  This has a single parameter which is the error message (a "
22765 "string)."
22766 msgstr ""
22767
22768 #. type: textblock
22769 #: ../ocaml/examples/guestfs-ocaml.pod:66
22770 msgid ""
22771 "Calling any function/method on a closed handle raises C<Guestfs."
22772 "Handle_closed>.  The single parameter is the name of the function that you "
22773 "called."
22774 msgstr ""
22775
22776 #. type: textblock
22777 #: ../ocaml/examples/guestfs-ocaml.pod:80
22778 msgid ""
22779 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22780 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22781 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../perl/examples/guestfs-perl.pod:5
22786 msgid "guestfs-perl - How to use libguestfs from Perl"
22787 msgstr ""
22788
22789 #. type: verbatim
22790 #: ../perl/examples/guestfs-perl.pod:9
22791 #, no-wrap
22792 msgid ""
22793 " use Sys::Guestfs;\n"
22794 " \n"
22795 msgstr ""
22796
22797 #. type: verbatim
22798 #: ../perl/examples/guestfs-perl.pod:11
22799 #, no-wrap
22800 msgid ""
22801 " my $h = Sys::Guestfs->new ();\n"
22802 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22803 " $h->launch ();\n"
22804 " $h->mount_options ('', '/dev/sda1', '/');\n"
22805 " $h->touch ('/hello');\n"
22806 " $h->sync ();\n"
22807 "\n"
22808 msgstr ""
22809
22810 #. type: textblock
22811 #: ../perl/examples/guestfs-perl.pod:20
22812 msgid ""
22813 "This manual page documents how to call libguestfs from the Perl programming "
22814 "language.  This page just documents the differences from the C API and gives "
22815 "some examples.  If you are not familiar with using libguestfs, you also need "
22816 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22817 msgstr ""
22818
22819 #. type: =head2
22820 #: ../perl/examples/guestfs-perl.pod:26
22821 msgid "ERRORS"
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../perl/examples/guestfs-perl.pod:28
22826 msgid ""
22827 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22828 ">)."
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../perl/examples/guestfs-perl.pod:41
22833 msgid ""
22834 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22835 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22836 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../python/examples/guestfs-python.pod:5
22841 msgid "guestfs-python - How to use libguestfs from Python"
22842 msgstr ""
22843
22844 #. type: verbatim
22845 #: ../python/examples/guestfs-python.pod:9
22846 #, no-wrap
22847 msgid ""
22848 " import guestfs\n"
22849 " g = guestfs.GuestFS ()\n"
22850 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22851 " g.launch\n"
22852 "\n"
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../python/examples/guestfs-python.pod:16
22857 msgid ""
22858 "This manual page documents how to call libguestfs from the Python "
22859 "programming language.  This page just documents the differences from the C "
22860 "API and gives some examples.  If you are not familiar with using libguestfs, "
22861 "you also need to read L<guestfs(3)>."
22862 msgstr ""
22863
22864 #. type: textblock
22865 #: ../python/examples/guestfs-python.pod:23
22866 msgid ""
22867 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22868 "single string argument which is the error message."
22869 msgstr ""
22870
22871 #. type: =head2
22872 #: ../python/examples/guestfs-python.pod:26
22873 msgid "MORE DOCUMENTATION"
22874 msgstr ""
22875
22876 #. type: textblock
22877 #: ../python/examples/guestfs-python.pod:28
22878 msgid "Type:"
22879 msgstr ""
22880
22881 #. type: verbatim
22882 #: ../python/examples/guestfs-python.pod:30
22883 #, no-wrap
22884 msgid ""
22885 " $ python\n"
22886 " >>> import guestfs\n"
22887 " >>> help (guestfs)\n"
22888 "\n"
22889 msgstr ""
22890
22891 #. type: textblock
22892 #: ../python/examples/guestfs-python.pod:44
22893 msgid ""
22894 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22895 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22896 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22897 msgstr ""
22898
22899 #. type: textblock
22900 #: ../rescue/virt-rescue.pod:5
22901 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22902 msgstr ""
22903
22904 #. type: verbatim
22905 #: ../rescue/virt-rescue.pod:9
22906 #, no-wrap
22907 msgid ""
22908 " virt-rescue [--options] -d domname\n"
22909 "\n"
22910 msgstr ""
22911
22912 #. type: verbatim
22913 #: ../rescue/virt-rescue.pod:11
22914 #, no-wrap
22915 msgid ""
22916 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22917 "\n"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../rescue/virt-rescue.pod:13
22922 #, no-wrap
22923 msgid ""
22924 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
22925 "\n"
22926 msgstr ""
22927
22928 #. type: verbatim
22929 #: ../rescue/virt-rescue.pod:17
22930 #, no-wrap
22931 msgid ""
22932 " virt-rescue [--options] domname\n"
22933 "\n"
22934 msgstr ""
22935
22936 #. type: verbatim
22937 #: ../rescue/virt-rescue.pod:19
22938 #, no-wrap
22939 msgid ""
22940 " virt-rescue [--options] disk.img [disk.img ...]\n"
22941 "\n"
22942 msgstr ""
22943
22944 #. type: textblock
22945 #: ../rescue/virt-rescue.pod:23
22946 msgid ""
22947 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22948 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22949 "you from doing this, but doesn't catch all cases."
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../rescue/virt-rescue.pod:27
22954 msgid ""
22955 "However if you use the I<--ro> (read only) option, then you can attach a "
22956 "shell to a live virtual machine.  The results might be strange or "
22957 "inconsistent at times but you won't get disk corruption."
22958 msgstr ""
22959
22960 #. type: textblock
22961 #: ../rescue/virt-rescue.pod:33
22962 msgid ""
22963 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22964 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22965 "recovery tools which you can use to examine or rescue a virtual machine or "
22966 "disk image."
22967 msgstr ""
22968
22969 #. type: textblock
22970 #: ../rescue/virt-rescue.pod:38
22971 msgid ""
22972 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22973 "on disk image(s):"
22974 msgstr ""
22975
22976 #. type: verbatim
22977 #: ../rescue/virt-rescue.pod:41
22978 #, no-wrap
22979 msgid ""
22980 " virt-rescue -d GuestName\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: verbatim
22985 #: ../rescue/virt-rescue.pod:43
22986 #, no-wrap
22987 msgid ""
22988 " virt-rescue --ro -a /path/to/disk.img\n"
22989 "\n"
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../rescue/virt-rescue.pod:45
22994 #, no-wrap
22995 msgid ""
22996 " virt-rescue -a /dev/sdc\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: textblock
23001 #: ../rescue/virt-rescue.pod:47
23002 msgid "For live VMs you I<must> use the --ro option."
23003 msgstr ""
23004
23005 #. type: textblock
23006 #: ../rescue/virt-rescue.pod:49
23007 msgid ""
23008 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23009 "in an interactive bash shell where you can use many ordinary Linux "
23010 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23011 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23012 "is an empty directory called C</sysroot> where you can mount filesystems."
23013 msgstr ""
23014
23015 #. type: textblock
23016 #: ../rescue/virt-rescue.pod:56
23017 msgid ""
23018 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23019 "suggest> option (in another terminal):"
23020 msgstr ""
23021
23022 #. type: verbatim
23023 #: ../rescue/virt-rescue.pod:59
23024 #, no-wrap
23025 msgid ""
23026 " $ virt-rescue --suggest -d Fedora15\n"
23027 " Inspecting the virtual machine or disk image ...\n"
23028 " \n"
23029 msgstr ""
23030
23031 #. type: verbatim
23032 #: ../rescue/virt-rescue.pod:62
23033 #, no-wrap
23034 msgid ""
23035 " This disk contains one or more operating systems.  You can use these\n"
23036 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23037 " filesystems.\n"
23038 " \n"
23039 msgstr ""
23040
23041 #. type: verbatim
23042 #: ../rescue/virt-rescue.pod:66
23043 #, no-wrap
23044 msgid ""
23045 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23046 " # type: linux, distro: fedora, version: 15.0\n"
23047 " # Fedora release 15 (Lovelock)\n"
23048 " \n"
23049 msgstr ""
23050
23051 #. type: verbatim
23052 #: ../rescue/virt-rescue.pod:70
23053 #, no-wrap
23054 msgid ""
23055 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23056 " mount /dev/vda1 /sysroot/boot\n"
23057 " mount --bind /dev /sysroot/dev\n"
23058 " mount --bind /dev/pts /sysroot/dev/pts\n"
23059 " mount --bind /proc /sysroot/proc\n"
23060 " mount --bind /sys /sysroot/sys\n"
23061 "\n"
23062 msgstr ""
23063
23064 #. type: textblock
23065 #: ../rescue/virt-rescue.pod:77
23066 msgid ""
23067 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23068 "(with L<parted(8)>) and mount them by hand:"
23069 msgstr ""
23070
23071 #. type: verbatim
23072 #: ../rescue/virt-rescue.pod:80
23073 #, no-wrap
23074 msgid ""
23075 " ><rescue> lvs\n"
23076 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23077 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23078 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23079 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23080 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23081 " ><rescue> ls /sysroot\n"
23082 "\n"
23083 msgstr ""
23084
23085 #. type: textblock
23086 #: ../rescue/virt-rescue.pod:88
23087 msgid ""
23088 "Another command to list available filesystems is L<virt-filesystems(1)>."
23089 msgstr ""
23090
23091 #. type: textblock
23092 #: ../rescue/virt-rescue.pod:91
23093 msgid ""
23094 "To run commands in a Linux guest (for example, grub), you should chroot into "
23095 "the /sysroot directory first:"
23096 msgstr ""
23097
23098 #. type: verbatim
23099 #: ../rescue/virt-rescue.pod:94
23100 #, no-wrap
23101 msgid ""
23102 " ><rescue> chroot /sysroot\n"
23103 "\n"
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../rescue/virt-rescue.pod:98
23108 msgid ""
23109 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23110 "virtual machine.  For example you can use it on a blank file if you want to "
23111 "partition that file (although we would recommend using L<guestfish(1)> "
23112 "instead as it is more suitable for this purpose).  You can even use virt-"
23113 "rescue on things like SD cards."
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../rescue/virt-rescue.pod:104
23118 msgid ""
23119 "Virt-rescue does not require root.  You only need to run it as root if you "
23120 "need root to open the disk image."
23121 msgstr ""
23122
23123 #. type: textblock
23124 #: ../rescue/virt-rescue.pod:107
23125 msgid ""
23126 "This tool is just designed for quick interactive hacking on a virtual "
23127 "machine.  For more structured access to a virtual machine disk image, you "
23128 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23129 "make scripted changes to guests, use L<guestfish(1)>."
23130 msgstr ""
23131
23132 #. type: =item
23133 #: ../rescue/virt-rescue.pod:131
23134 msgid "B<--append kernelopts>"
23135 msgstr ""
23136
23137 #. type: textblock
23138 #: ../rescue/virt-rescue.pod:133
23139 msgid "Pass additional options to the rescue kernel."
23140 msgstr ""
23141
23142 #. type: verbatim
23143 #: ../rescue/virt-rescue.pod:163
23144 #, no-wrap
23145 msgid ""
23146 " virt-rescue --format=raw -a disk.img\n"
23147 "\n"
23148 msgstr ""
23149
23150 #. type: verbatim
23151 #: ../rescue/virt-rescue.pod:167
23152 #, no-wrap
23153 msgid ""
23154 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23155 "\n"
23156 msgstr ""
23157
23158 #. type: =item
23159 #: ../rescue/virt-rescue.pod:176
23160 msgid "B<-m MB>"
23161 msgstr ""
23162
23163 #. type: =item
23164 #: ../rescue/virt-rescue.pod:178
23165 msgid "B<--memsize MB>"
23166 msgstr ""
23167
23168 #. type: textblock
23169 #: ../rescue/virt-rescue.pod:180
23170 msgid ""
23171 "Change the amount of memory allocated to the rescue system.  The default is "
23172 "set by libguestfs and is small but adequate for running system tools.  The "
23173 "occasional program might need more memory.  The parameter is specified in "
23174 "megabytes."
23175 msgstr ""
23176
23177 #. type: =item
23178 #: ../rescue/virt-rescue.pod:185
23179 msgid "B<--network>"
23180 msgstr ""
23181
23182 #. type: textblock
23183 #: ../rescue/virt-rescue.pod:187
23184 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23185 msgstr ""
23186
23187 #. type: textblock
23188 #: ../rescue/virt-rescue.pod:193
23189 msgid "Open the image read-only."
23190 msgstr ""
23191
23192 #. type: textblock
23193 #: ../rescue/virt-rescue.pod:203
23194 msgid ""
23195 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23196 "SELINUX> before using this option."
23197 msgstr ""
23198
23199 #. type: =item
23200 #: ../rescue/virt-rescue.pod:206
23201 msgid "B<--smp> N"
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../rescue/virt-rescue.pod:208
23206 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23207 msgstr ""
23208
23209 #. type: =item
23210 #: ../rescue/virt-rescue.pod:210
23211 msgid "B<--suggest>"
23212 msgstr ""
23213
23214 #. type: textblock
23215 #: ../rescue/virt-rescue.pod:212
23216 msgid ""
23217 "Inspect the disk image and suggest what mount commands should be used to "
23218 "mount the disks.  You should use the I<--suggest> option in a second "
23219 "terminal, then paste the commands into another virt-rescue."
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../rescue/virt-rescue.pod:216
23224 msgid ""
23225 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23226 "another virt-rescue is running."
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../rescue/virt-rescue.pod:235
23231 msgid ""
23232 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23233 "are done read-write."
23234 msgstr ""
23235
23236 #. type: textblock
23237 #: ../rescue/virt-rescue.pod:248
23238 msgid "Previous versions of virt-rescue allowed you to write either:"
23239 msgstr ""
23240
23241 #. type: verbatim
23242 #: ../rescue/virt-rescue.pod:250
23243 #, no-wrap
23244 msgid ""
23245 " virt-rescue disk.img [disk.img ...]\n"
23246 "\n"
23247 msgstr ""
23248
23249 #. type: verbatim
23250 #: ../rescue/virt-rescue.pod:254
23251 #, no-wrap
23252 msgid ""
23253 " virt-rescue guestname\n"
23254 "\n"
23255 msgstr ""
23256
23257 #. type: =head1
23258 #: ../rescue/virt-rescue.pod:262
23259 msgid "NETWORK"
23260 msgstr ""
23261
23262 #. type: textblock
23263 #: ../rescue/virt-rescue.pod:264
23264 msgid ""
23265 "Adding the I<--network> option enables QEMU user networking in the rescue "
23266 "appliance.  There are some differences between user networking and ordinary "
23267 "networking:"
23268 msgstr ""
23269
23270 #. type: =item
23271 #: ../rescue/virt-rescue.pod:270
23272 msgid "ping does not work"
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../rescue/virt-rescue.pod:272
23277 msgid ""
23278 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23279 "send the ping packets, and because virt-rescue must be able to run as non-"
23280 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23281 "The ping command will appear to resolve addresses but will not be able to "
23282 "send or receive any packets.  This does not mean that the network is not "
23283 "working."
23284 msgstr ""
23285
23286 #. type: =item
23287 #: ../rescue/virt-rescue.pod:279
23288 msgid "cannot receive connections"
23289 msgstr ""
23290
23291 #. type: textblock
23292 #: ../rescue/virt-rescue.pod:281
23293 msgid "QEMU user networking cannot receive incoming connections."
23294 msgstr ""
23295
23296 #. type: =item
23297 #: ../rescue/virt-rescue.pod:283
23298 msgid "making TCP connections"
23299 msgstr ""
23300
23301 #. type: textblock
23302 #: ../rescue/virt-rescue.pod:285
23303 msgid ""
23304 "The virt-rescue appliance needs to be small and so does not include many "
23305 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23306 "make TCP connections from the shell using the magical C</dev/tcp/"
23307 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23308 msgstr ""
23309
23310 #. type: verbatim
23311 #: ../rescue/virt-rescue.pod:290
23312 #, no-wrap
23313 msgid ""
23314 " exec 3<>/dev/tcp/redhat.com/80\n"
23315 " echo \"GET /\" >&3\n"
23316 " cat <&3\n"
23317 "\n"
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../rescue/virt-rescue.pod:294
23322 msgid "See L<bash(1)> for more details."
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../rescue/virt-rescue.pod:300
23327 msgid ""
23328 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23329 "ENVIRONMENT VARIABLES> for the complete list."
23330 msgstr ""
23331
23332 #. type: textblock
23333 #: ../rescue/virt-rescue.pod:327
23334 msgid ""
23335 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
23336 "filesystems(1)>, L<http://libguestfs.org/>."
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../resize/virt-resize.pod:5
23341 msgid "virt-resize - Resize a virtual machine disk"
23342 msgstr ""
23343
23344 #. type: verbatim
23345 #: ../resize/virt-resize.pod:9
23346 #, no-wrap
23347 msgid ""
23348 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23349 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23350 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23351 "\n"
23352 msgstr ""
23353
23354 #. type: textblock
23355 #: ../resize/virt-resize.pod:15
23356 msgid ""
23357 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23358 "larger or smaller overall, and resizing or deleting any partitions contained "
23359 "within."
23360 msgstr ""
23361
23362 #. type: textblock
23363 #: ../resize/virt-resize.pod:19
23364 msgid ""
23365 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23366 "not> be used on live virtual machines - for consistent results, shut the "
23367 "virtual machine down before resizing it."
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../resize/virt-resize.pod:23
23372 msgid ""
23373 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23374 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23375 msgstr ""
23376
23377 #. type: =item
23378 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23379 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23380 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23381 msgid "1."
23382 msgstr ""
23383
23384 #. type: textblock
23385 #: ../resize/virt-resize.pod:33
23386 msgid ""
23387 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23388 "fill the extra 5GB of space."
23389 msgstr ""
23390
23391 #. type: verbatim
23392 #: ../resize/virt-resize.pod:36
23393 #, no-wrap
23394 msgid ""
23395 " virt-filesystems --long -h --all -a olddisk\n"
23396 " \n"
23397 msgstr ""
23398
23399 #. type: verbatim
23400 #: ../resize/virt-resize.pod:38
23401 #, no-wrap
23402 msgid ""
23403 " truncate -r olddisk newdisk\n"
23404 " truncate -s +5G newdisk\n"
23405 " \n"
23406 msgstr ""
23407
23408 #. type: verbatim
23409 #: ../resize/virt-resize.pod:41
23410 #, no-wrap
23411 msgid ""
23412 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23413 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23414 "\n"
23415 msgstr ""
23416
23417 #. type: =item
23418 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23419 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23420 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23421 msgid "2."
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../resize/virt-resize.pod:46
23426 msgid ""
23427 "As above, but make the /boot partition 200MB bigger, while giving the "
23428 "remaining space to /dev/sda2:"
23429 msgstr ""
23430
23431 #. type: verbatim
23432 #: ../resize/virt-resize.pod:49
23433 #, no-wrap
23434 msgid ""
23435 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23436 "   olddisk newdisk\n"
23437 "\n"
23438 msgstr ""
23439
23440 #. type: =item
23441 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23442 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23443 #: ../src/guestfs.pod:1451
23444 msgid "3."
23445 msgstr ""
23446
23447 #. type: textblock
23448 #: ../resize/virt-resize.pod:54
23449 msgid ""
23450 "As in the first example, but expand a logical volume as the final step.  "
23451 "This is what you would typically use for Linux guests that use LVM:"
23452 msgstr ""
23453
23454 #. type: verbatim
23455 #: ../resize/virt-resize.pod:58
23456 #, no-wrap
23457 msgid ""
23458 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23459 "   olddisk newdisk\n"
23460 "\n"
23461 msgstr ""
23462
23463 #. type: =item
23464 #: ../resize/virt-resize.pod:61
23465 msgid "4."
23466 msgstr ""
23467
23468 #. type: textblock
23469 #: ../resize/virt-resize.pod:63
23470 msgid ""
23471 "As in the first example, but the output format will be qcow2 instead of a "
23472 "raw disk:"
23473 msgstr ""
23474
23475 #. type: verbatim
23476 #: ../resize/virt-resize.pod:66
23477 #, no-wrap
23478 msgid ""
23479 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23480 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23481 "\n"
23482 msgstr ""
23483
23484 #. type: =head1
23485 #: ../resize/virt-resize.pod:71
23486 msgid "DETAILED USAGE"
23487 msgstr ""
23488
23489 #. type: =head2
23490 #: ../resize/virt-resize.pod:73
23491 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23492 msgstr ""
23493
23494 #. type: =item
23495 #: ../resize/virt-resize.pod:77
23496 msgid "1. Shut down the virtual machine"
23497 msgstr ""
23498
23499 #. type: =item
23500 #: ../resize/virt-resize.pod:79
23501 msgid "2. Locate input disk image"
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../resize/virt-resize.pod:81
23506 msgid ""
23507 "Locate the input disk image (ie. the file or device on the host containing "
23508 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23509 "dumpxml> like this to find the disk image name:"
23510 msgstr ""
23511
23512 #. type: verbatim
23513 #: ../resize/virt-resize.pod:85
23514 #, no-wrap
23515 msgid ""
23516 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23517 " Found 1 nodes:\n"
23518 " -- NODE --\n"
23519 " <source dev=\"/dev/vg/lv_guest\" />\n"
23520 "\n"
23521 msgstr ""
23522
23523 #. type: =item
23524 #: ../resize/virt-resize.pod:90
23525 msgid "3. Look at current sizing"
23526 msgstr ""
23527
23528 #. type: textblock
23529 #: ../resize/virt-resize.pod:92
23530 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23531 msgstr ""
23532
23533 #. type: verbatim
23534 #: ../resize/virt-resize.pod:95
23535 #, no-wrap
23536 msgid ""
23537 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23538 " Name       Type       Size  Parent\n"
23539 " /dev/sda1  partition  101M  /dev/sda\n"
23540 " /dev/sda2  partition  7.9G  /dev/sda\n"
23541 " /dev/sda   device     8.0G  -\n"
23542 "\n"
23543 msgstr ""
23544
23545 #. type: textblock
23546 #: ../resize/virt-resize.pod:101
23547 msgid ""
23548 "(This example is a virtual machine with an 8 GB disk which we would like to "
23549 "expand up to 10 GB)."
23550 msgstr ""
23551
23552 #. type: =item
23553 #: ../resize/virt-resize.pod:104
23554 msgid "4. Create output disk"
23555 msgstr ""
23556
23557 #. type: textblock
23558 #: ../resize/virt-resize.pod:106
23559 msgid ""
23560 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23561 "to store the resized output disk."
23562 msgstr ""
23563
23564 #. type: textblock
23565 #: ../resize/virt-resize.pod:109
23566 msgid ""
23567 "To store the resized disk image in a file, create a file of a suitable size:"
23568 msgstr ""
23569
23570 #. type: verbatim
23571 #: ../resize/virt-resize.pod:112
23572 #, no-wrap
23573 msgid ""
23574 " # rm -f outdisk\n"
23575 " # truncate -s 10G outdisk\n"
23576 "\n"
23577 msgstr ""
23578
23579 #. type: textblock
23580 #: ../resize/virt-resize.pod:115
23581 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23582 msgstr ""
23583
23584 #. type: verbatim
23585 #: ../resize/virt-resize.pod:117
23586 #, no-wrap
23587 msgid ""
23588 " # lvcreate -L 10G -n lv_name vg_name\n"
23589 "\n"
23590 msgstr ""
23591
23592 #. type: textblock
23593 #: ../resize/virt-resize.pod:119
23594 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23595 msgstr ""
23596
23597 #. type: verbatim
23598 #: ../resize/virt-resize.pod:121
23599 #, no-wrap
23600 msgid ""
23601 " # virsh pool-list\n"
23602 " # virsh vol-create-as poolname newvol 10G\n"
23603 "\n"
23604 msgstr ""
23605
23606 #. type: =item
23607 #: ../resize/virt-resize.pod:124
23608 msgid "5. Resize"
23609 msgstr ""
23610
23611 #. type: textblock
23612 #: ../resize/virt-resize.pod:126
23613 msgid ""
23614 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23615 "file) and the output disk.  The output disk is the one created in the "
23616 "previous step."
23617 msgstr ""
23618
23619 #. type: verbatim
23620 #: ../resize/virt-resize.pod:130
23621 #, no-wrap
23622 msgid ""
23623 " # virt-resize indisk outdisk\n"
23624 "\n"
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../resize/virt-resize.pod:132
23629 msgid ""
23630 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23631 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23632 "larger, then an extra, empty partition is created at the end of the disk "
23633 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23634 "error."
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../resize/virt-resize.pod:138
23639 msgid ""
23640 "More realistically you'd want to expand existing partitions in the disk "
23641 "image by passing extra options (for the full list see the L</OPTIONS> "
23642 "section below)."
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../resize/virt-resize.pod:142
23647 msgid ""
23648 "L</--expand> is the most useful option.  It expands the named partition "
23649 "within the disk to fill any extra space:"
23650 msgstr ""
23651
23652 #. type: verbatim
23653 #: ../resize/virt-resize.pod:145
23654 #, no-wrap
23655 msgid ""
23656 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23657 "\n"
23658 msgstr ""
23659
23660 #. type: textblock
23661 #: ../resize/virt-resize.pod:147
23662 msgid ""
23663 "(In this case, an extra partition is I<not> created at the end of the disk, "
23664 "because there will be no unused space)."
23665 msgstr ""
23666
23667 #. type: textblock
23668 #: ../resize/virt-resize.pod:150
23669 msgid ""
23670 "L</--resize> is the other commonly used option.  The following would "
23671 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23672 "rest of the available space:"
23673 msgstr ""
23674
23675 #. type: verbatim
23676 #: ../resize/virt-resize.pod:154
23677 #, no-wrap
23678 msgid ""
23679 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23680 "     indisk outdisk\n"
23681 "\n"
23682 msgstr ""
23683
23684 #. type: textblock
23685 #: ../resize/virt-resize.pod:157
23686 msgid ""
23687 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23688 "if virt-resize knows how, it will resize the contents, the equivalent of "
23689 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23690 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23691 "filesystems, so you would have to online resize them after booting the guest."
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../resize/virt-resize.pod:164
23696 msgid "Other options are covered below."
23697 msgstr ""
23698
23699 #. type: =item
23700 #: ../resize/virt-resize.pod:166
23701 msgid "6. Test"
23702 msgstr ""
23703
23704 #. type: textblock
23705 #: ../resize/virt-resize.pod:168
23706 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../resize/virt-resize.pod:170
23711 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23712 msgstr ""
23713
23714 #. type: verbatim
23715 #: ../resize/virt-resize.pod:172
23716 #, no-wrap
23717 msgid ""
23718 " # virsh edit guestname\n"
23719 "\n"
23720 msgstr ""
23721
23722 #. type: textblock
23723 #: ../resize/virt-resize.pod:174
23724 msgid ""
23725 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23726 "html#elementsDisks>"
23727 msgstr ""
23728
23729 #. type: textblock
23730 #: ../resize/virt-resize.pod:177
23731 msgid "Then start up the domain with the new, resized disk:"
23732 msgstr ""
23733
23734 #. type: verbatim
23735 #: ../resize/virt-resize.pod:179
23736 #, no-wrap
23737 msgid ""
23738 " # virsh start guestname\n"
23739 "\n"
23740 msgstr ""
23741
23742 #. type: textblock
23743 #: ../resize/virt-resize.pod:181
23744 msgid ""
23745 "and check that it still works.  See also the L</NOTES> section below for "
23746 "additional information."
23747 msgstr ""
23748
23749 #. type: =item
23750 #: ../resize/virt-resize.pod:184
23751 msgid "7. Resize LVs etc inside the guest"
23752 msgstr ""
23753
23754 #. type: textblock
23755 #: ../resize/virt-resize.pod:186
23756 msgid "(This can also be done offline using L<guestfish(1)>)"
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../resize/virt-resize.pod:188
23761 msgid ""
23762 "Once the guest has booted you should see the new space available, at least "
23763 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23764 "may need to resize LVs inside PVs, and also resize filesystem types that "
23765 "virt-resize does not know how to expand."
23766 msgstr ""
23767
23768 #. type: =head2
23769 #: ../resize/virt-resize.pod:195
23770 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../resize/virt-resize.pod:197
23775 msgid ""
23776 "Shrinking is somewhat more complex than expanding, and only an overview is "
23777 "given here."
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../resize/virt-resize.pod:200
23782 msgid ""
23783 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23784 "filesystems).  The user has to shrink content before passing the disk image "
23785 "to virt-resize, and virt-resize will check that the content has been shrunk "
23786 "properly."
23787 msgstr ""
23788
23789 #. type: textblock
23790 #: ../resize/virt-resize.pod:205
23791 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23792 msgstr ""
23793
23794 #. type: textblock
23795 #: ../resize/virt-resize.pod:207
23796 msgid ""
23797 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23798 "steps 3 and 4 above to allocate a new disk image."
23799 msgstr ""
23800
23801 #. type: textblock
23802 #: ../resize/virt-resize.pod:210
23803 msgid ""
23804 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23805 msgstr ""
23806
23807 #. type: =head2
23808 #: ../resize/virt-resize.pod:213
23809 msgid "IGNORING OR DELETING PARTITIONS"
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../resize/virt-resize.pod:215
23814 msgid ""
23815 "virt-resize also gives a convenient way to ignore or delete partitions when "
23816 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23817 "up the copy where you don't care about the existing contents of a "
23818 "partition.  Deleting a partition removes it completely, but note that it "
23819 "also renumbers any partitions after the one which is deleted, which can "
23820 "leave some guests unbootable."
23821 msgstr ""
23822
23823 #. type: =head2
23824 #: ../resize/virt-resize.pod:222
23825 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23826 msgstr ""
23827
23828 #. type: textblock
23829 #: ../resize/virt-resize.pod:224
23830 msgid ""
23831 "If the input disk is in qcow2 format, then you may prefer that the output is "
23832 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23833 "the fly.  The output format is simply determined by the format of the empty "
23834 "output container that you provide.  Thus to create qcow2 output, use:"
23835 msgstr ""
23836
23837 #. type: verbatim
23838 #: ../resize/virt-resize.pod:230
23839 #, no-wrap
23840 msgid ""
23841 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23842 "\n"
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../resize/virt-resize.pod:232
23847 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../resize/virt-resize.pod:234
23852 msgid "Similarly, to get non-sparse raw output use:"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../resize/virt-resize.pod:236
23857 #, no-wrap
23858 msgid ""
23859 " fallocate -l size outdisk\n"
23860 "\n"
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../resize/virt-resize.pod:238
23865 msgid ""
23866 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23867 "dev/zero of=outdisk bs=1M count=..>)"
23868 msgstr ""
23869
23870 #. type: =head2
23871 #: ../resize/virt-resize.pod:241
23872 msgid "LOGICAL PARTITIONS"
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../resize/virt-resize.pod:243
23877 msgid ""
23878 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23879 "tables) cannot be resized."
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../resize/virt-resize.pod:246
23884 msgid ""
23885 "To understand what is going on, firstly one of the four partitions C</dev/"
23886 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
23887 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
23888 "type."
23889 msgstr ""
23890
23891 #. type: textblock
23892 #: ../resize/virt-resize.pod:251
23893 msgid "Logical partitions live inside the extended partition."
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../resize/virt-resize.pod:253
23898 msgid ""
23899 "The extended partition can be expanded, but not shrunk (unless you force it, "
23900 "which is not advisable).  When the extended partition is copied across, all "
23901 "the logical partitions contained inside are copied over implicitly.  Virt-"
23902 "resize does not look inside the extended partition, so it copies the logical "
23903 "partitions blindly."
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../resize/virt-resize.pod:259
23908 msgid ""
23909 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23910 "line.  Doing so will give an error."
23911 msgstr ""
23912
23913 #. type: textblock
23914 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23915 msgid "Display help."
23916 msgstr ""
23917
23918 #. type: =item
23919 #: ../resize/virt-resize.pod:270
23920 msgid "B<--align-first auto>"
23921 msgstr ""
23922
23923 #. type: =item
23924 #: ../resize/virt-resize.pod:272
23925 msgid "B<--align-first never>"
23926 msgstr ""
23927
23928 #. type: =item
23929 #: ../resize/virt-resize.pod:274
23930 msgid "B<--align-first always>"
23931 msgstr ""
23932
23933 #. type: textblock
23934 #: ../resize/virt-resize.pod:276
23935 msgid ""
23936 "Align the first partition for improved performance (see also the I<--"
23937 "alignment> option)."
23938 msgstr ""
23939
23940 #. type: textblock
23941 #: ../resize/virt-resize.pod:279
23942 msgid ""
23943 "The default is I<--align-first auto> which only aligns the first partition "
23944 "if it is safe to do so.  That is, only when we know how to fix the "
23945 "bootloader automatically, and at the moment that can only be done for "
23946 "Windows guests."
23947 msgstr ""
23948
23949 #. type: textblock
23950 #: ../resize/virt-resize.pod:284
23951 msgid ""
23952 "I<--align-first never> means we never move the first partition.  This is the "
23953 "safest option.  Try this if the guest does not boot after resizing."
23954 msgstr ""
23955
23956 #. type: textblock
23957 #: ../resize/virt-resize.pod:288
23958 msgid ""
23959 "I<--align-first always> means we always align the first partition (if it "
23960 "needs to be aligned).  For some guests this will break the bootloader, "
23961 "making the guest unbootable."
23962 msgstr ""
23963
23964 #. type: =item
23965 #: ../resize/virt-resize.pod:292
23966 msgid "B<--alignment N>"
23967 msgstr ""
23968
23969 #. type: textblock
23970 #: ../resize/virt-resize.pod:294
23971 msgid ""
23972 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23973 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../resize/virt-resize.pod:298
23978 msgid ""
23979 "Assuming 512 byte sector size inside the guest, here are some suitable "
23980 "values for this:"
23981 msgstr ""
23982
23983 #. type: =item
23984 #: ../resize/virt-resize.pod:303
23985 msgid "I<--alignment 1> (512 bytes)"
23986 msgstr ""
23987
23988 #. type: textblock
23989 #: ../resize/virt-resize.pod:305
23990 msgid ""
23991 "The partitions would be packed together as closely as possible, but would be "
23992 "completely unaligned.  In some cases this can cause very poor performance.  "
23993 "See L<virt-alignment-scan(1)> for further details."
23994 msgstr ""
23995
23996 #. type: =item
23997 #: ../resize/virt-resize.pod:309
23998 msgid "I<--alignment 8> (4K)"
23999 msgstr ""
24000
24001 #. type: textblock
24002 #: ../resize/virt-resize.pod:311
24003 msgid ""
24004 "This would be the minimum acceptable alignment for reasonable performance on "
24005 "modern hosts."
24006 msgstr ""
24007
24008 #. type: =item
24009 #: ../resize/virt-resize.pod:314
24010 msgid "I<--alignment 128> (64K)"
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../resize/virt-resize.pod:316
24015 msgid ""
24016 "This alignment provides good performance when the host is using high end "
24017 "network storage."
24018 msgstr ""
24019
24020 #. type: =item
24021 #: ../resize/virt-resize.pod:319
24022 msgid "I<--alignment 2048> (1M)"
24023 msgstr ""
24024
24025 #. type: textblock
24026 #: ../resize/virt-resize.pod:321
24027 msgid ""
24028 "This is the standard alignment used by all newly installed guests since "
24029 "around 2008."
24030 msgstr ""
24031
24032 #. type: =item
24033 #: ../resize/virt-resize.pod:326
24034 msgid "B<-d>"
24035 msgstr ""
24036
24037 #. type: =item
24038 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24039 #: ../tools/virt-win-reg.pl:120
24040 msgid "B<--debug>"
24041 msgstr ""
24042
24043 #. type: textblock
24044 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24045 msgid "Enable debugging messages."
24046 msgstr ""
24047
24048 #. type: =item
24049 #: ../resize/virt-resize.pod:332
24050 msgid "B<--delete part>"
24051 msgstr ""
24052
24053 #. type: textblock
24054 #: ../resize/virt-resize.pod:334
24055 msgid ""
24056 "Delete the named partition.  It would be more accurate to describe this as "
24057 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24058 "the original disk image is left intact."
24059 msgstr ""
24060
24061 #. type: textblock
24062 #: ../resize/virt-resize.pod:338
24063 msgid ""
24064 "Note that when you delete a partition, then anything contained in the "
24065 "partition is also deleted.  Furthermore, this causes any partitions that "
24066 "come after to be I<renumbered>, which can easily make your guest unbootable."
24067 msgstr ""
24068
24069 #. type: textblock
24070 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24071 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24072 msgid "You can give this option multiple times."
24073 msgstr ""
24074
24075 #. type: =item
24076 #: ../resize/virt-resize.pod:345
24077 msgid "B<--expand part>"
24078 msgstr ""
24079
24080 #. type: textblock
24081 #: ../resize/virt-resize.pod:347
24082 msgid ""
24083 "Expand the named partition so it uses up all extra space (space left over "
24084 "after any other resize changes that you request have been done)."
24085 msgstr ""
24086
24087 #. type: textblock
24088 #: ../resize/virt-resize.pod:350
24089 msgid ""
24090 "If virt-resize knows how, it will expand the direct content of the "
24091 "partition.  For example, if the partition is an LVM PV, it will expand the "
24092 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24093 "content it doesn't know about alone."
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../resize/virt-resize.pod:355
24098 msgid "Currently virt-resize can resize:"
24099 msgstr ""
24100
24101 #. type: textblock
24102 #: ../resize/virt-resize.pod:361
24103 msgid "ext2, ext3 and ext4 filesystems."
24104 msgstr ""
24105
24106 #. type: textblock
24107 #: ../resize/virt-resize.pod:365
24108 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../resize/virt-resize.pod:367
24113 msgid ""
24114 "The filesystem must have been shut down consistently last time it was used.  "
24115 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24116 "consistency check, so at the first boot after resizing Windows will check "
24117 "the disk."
24118 msgstr ""
24119
24120 #. type: textblock
24121 #: ../resize/virt-resize.pod:374
24122 msgid ""
24123 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24124 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24125 "resize LVs as desired after boot."
24126 msgstr ""
24127
24128 #. type: textblock
24129 #: ../resize/virt-resize.pod:380
24130 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24135 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24136 msgstr ""
24137
24138 #. type: =item
24139 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24140 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24141 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24142 msgid "B<--format> raw"
24143 msgstr ""
24144
24145 #. type: textblock
24146 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24147 msgid ""
24148 "Specify the format of the input disk image.  If this flag is not given then "
24149 "it is auto-detected from the image itself."
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../resize/virt-resize.pod:394
24154 msgid ""
24155 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24156 "AND NON-SPARSE RAW FORMATS>."
24157 msgstr ""
24158
24159 #. type: =item
24160 #: ../resize/virt-resize.pod:397
24161 msgid "B<--ignore part>"
24162 msgstr ""
24163
24164 #. type: textblock
24165 #: ../resize/virt-resize.pod:399
24166 msgid ""
24167 "Ignore the named partition.  Effectively this means the partition is "
24168 "allocated on the destination disk, but the content is not copied across from "
24169 "the source disk.  The content of the partition will be blank (all zero "
24170 "bytes)."
24171 msgstr ""
24172
24173 #. type: =item
24174 #: ../resize/virt-resize.pod:406
24175 msgid "B<--LV-expand logvol>"
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../resize/virt-resize.pod:408
24180 msgid ""
24181 "This takes the logical volume and, as a final step, expands it to fill all "
24182 "the space available in its volume group.  A typical usage, assuming a Linux "
24183 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24184 "lv_root> would be:"
24185 msgstr ""
24186
24187 #. type: verbatim
24188 #: ../resize/virt-resize.pod:413
24189 #, no-wrap
24190 msgid ""
24191 " virt-resize indisk outdisk \\\n"
24192 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24193 "\n"
24194 msgstr ""
24195
24196 #. type: textblock
24197 #: ../resize/virt-resize.pod:416
24198 msgid ""
24199 "This would first expand the partition (and PV), and then expand the root "
24200 "device to fill the extra space in the PV."
24201 msgstr ""
24202
24203 #. type: textblock
24204 #: ../resize/virt-resize.pod:419
24205 msgid ""
24206 "The contents of the LV are also resized if virt-resize knows how to do "
24207 "that.  You can stop virt-resize from trying to expand the content by using "
24208 "the option I<--no-expand-content>."
24209 msgstr ""
24210
24211 #. type: textblock
24212 #: ../resize/virt-resize.pod:423
24213 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24214 msgstr ""
24215
24216 #. type: textblock
24217 #: ../resize/virt-resize.pod:425
24218 msgid ""
24219 "You can give this option multiple times, I<but> it doesn't make sense to do "
24220 "this unless the logical volumes you specify are all in different volume "
24221 "groups."
24222 msgstr ""
24223
24224 #. type: =item
24225 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24226 msgid "B<--machine-readable>"
24227 msgstr ""
24228
24229 #. type: textblock
24230 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24231 msgid ""
24232 "This option is used to make the output more machine friendly when being "
24233 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24234 msgstr ""
24235
24236 #. type: =item
24237 #: ../resize/virt-resize.pod:437
24238 msgid "B<--dryrun>"
24239 msgstr ""
24240
24241 #. type: textblock
24242 #: ../resize/virt-resize.pod:439
24243 msgid "Print a summary of what would be done, but don't do anything."
24244 msgstr ""
24245
24246 #. type: =item
24247 #: ../resize/virt-resize.pod:441
24248 msgid "B<--no-copy-boot-loader>"
24249 msgstr ""
24250
24251 #. type: textblock
24252 #: ../resize/virt-resize.pod:443
24253 msgid ""
24254 "By default, virt-resize copies over some sectors at the start of the disk "
24255 "(up to the beginning of the first partition).  Commonly these sectors "
24256 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24257 "in order for the guest to boot correctly."
24258 msgstr ""
24259
24260 #. type: textblock
24261 #: ../resize/virt-resize.pod:448
24262 msgid ""
24263 "If you specify this flag, then this initial copy is not done.  You may need "
24264 "to reinstall the boot loader in this case."
24265 msgstr ""
24266
24267 #. type: =item
24268 #: ../resize/virt-resize.pod:451
24269 msgid "B<--no-extra-partition>"
24270 msgstr ""
24271
24272 #. type: textblock
24273 #: ../resize/virt-resize.pod:453
24274 msgid ""
24275 "By default, virt-resize creates an extra partition if there is any extra, "
24276 "unused space after all resizing has happened.  Use this option to prevent "
24277 "the extra partition from being created.  If you do this then the extra space "
24278 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24279 "tool in the guest."
24280 msgstr ""
24281
24282 #. type: textblock
24283 #: ../resize/virt-resize.pod:459
24284 msgid ""
24285 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24286 "will be created."
24287 msgstr ""
24288
24289 #. type: =item
24290 #: ../resize/virt-resize.pod:462
24291 msgid "B<--no-expand-content>"
24292 msgstr ""
24293
24294 #. type: textblock
24295 #: ../resize/virt-resize.pod:464
24296 msgid ""
24297 "By default, virt-resize will try to expand the direct contents of "
24298 "partitions, if it knows how (see I<--expand> option above)."
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../resize/virt-resize.pod:467
24303 msgid ""
24304 "If you give the I<--no-expand-content> option then virt-resize will not "
24305 "attempt this."
24306 msgstr ""
24307
24308 #. type: =item
24309 #: ../resize/virt-resize.pod:470
24310 msgid "B<--ntfsresize-force>"
24311 msgstr ""
24312
24313 #. type: textblock
24314 #: ../resize/virt-resize.pod:472
24315 msgid ""
24316 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24317 "the NTFS disk is marked as needing a consistency check.  You have to use "
24318 "this option if you want to resize a Windows guest multiple times without "
24319 "booting into Windows between each resize."
24320 msgstr ""
24321
24322 #. type: =item
24323 #: ../resize/virt-resize.pod:478
24324 msgid "B<--output-format> raw"
24325 msgstr ""
24326
24327 #. type: textblock
24328 #: ../resize/virt-resize.pod:480
24329 msgid ""
24330 "Specify the format of the output disk image.  If this flag is not given then "
24331 "it is auto-detected from the image itself."
24332 msgstr ""
24333
24334 #. type: textblock
24335 #: ../resize/virt-resize.pod:486
24336 msgid ""
24337 "Note that this option I<does not create> the output format.  This option "
24338 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24339 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24340 "SPARSE RAW FORMATS>."
24341 msgstr ""
24342
24343 #. type: textblock
24344 #: ../resize/virt-resize.pod:495
24345 msgid "Don't print the summary."
24346 msgstr ""
24347
24348 #. type: =item
24349 #: ../resize/virt-resize.pod:497
24350 msgid "B<--resize part=size>"
24351 msgstr ""
24352
24353 #. type: textblock
24354 #: ../resize/virt-resize.pod:499
24355 msgid ""
24356 "Resize the named partition (expanding or shrinking it) so that it has the "
24357 "given size."
24358 msgstr ""
24359
24360 #. type: textblock
24361 #: ../resize/virt-resize.pod:502
24362 msgid ""
24363 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24364 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24365 "size; or as a relative number or percentage.  For example:"
24366 msgstr ""
24367
24368 #. type: verbatim
24369 #: ../resize/virt-resize.pod:508
24370 #, no-wrap
24371 msgid ""
24372 " --resize /dev/sda2=10G\n"
24373 "\n"
24374 msgstr ""
24375
24376 #. type: verbatim
24377 #: ../resize/virt-resize.pod:510
24378 #, no-wrap
24379 msgid ""
24380 " --resize /dev/sda4=90%\n"
24381 "\n"
24382 msgstr ""
24383
24384 #. type: verbatim
24385 #: ../resize/virt-resize.pod:512
24386 #, no-wrap
24387 msgid ""
24388 " --resize /dev/sda2=+1G\n"
24389 "\n"
24390 msgstr ""
24391
24392 #. type: verbatim
24393 #: ../resize/virt-resize.pod:514
24394 #, no-wrap
24395 msgid ""
24396 " --resize /dev/sda2=-200M\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: verbatim
24401 #: ../resize/virt-resize.pod:516
24402 #, no-wrap
24403 msgid ""
24404 " --resize /dev/sda1=+128K\n"
24405 "\n"
24406 msgstr ""
24407
24408 #. type: verbatim
24409 #: ../resize/virt-resize.pod:518
24410 #, no-wrap
24411 msgid ""
24412 " --resize /dev/sda1=+10%\n"
24413 "\n"
24414 msgstr ""
24415
24416 #. type: verbatim
24417 #: ../resize/virt-resize.pod:520
24418 #, no-wrap
24419 msgid ""
24420 " --resize /dev/sda1=-10%\n"
24421 "\n"
24422 msgstr ""
24423
24424 #. type: textblock
24425 #: ../resize/virt-resize.pod:522
24426 msgid ""
24427 "You can increase the size of any partition.  Virt-resize will expand the "
24428 "direct content of the partition if it knows how (see I<--expand> below)."
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../resize/virt-resize.pod:526
24433 msgid ""
24434 "You can only I<decrease> the size of partitions that contain filesystems or "
24435 "PVs which have already been shrunk.  Virt-resize will check this has been "
24436 "done before proceeding, or else will print an error (see also I<--resize-"
24437 "force>)."
24438 msgstr ""
24439
24440 #. type: =item
24441 #: ../resize/virt-resize.pod:533
24442 msgid "B<--resize-force part=size>"
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../resize/virt-resize.pod:535
24447 msgid ""
24448 "This is the same as I<--resize> except that it will let you decrease the "
24449 "size of any partition.  Generally this means you will lose any data which "
24450 "was at the end of the partition you shrink, but you may not care about that "
24451 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24452 "as a swap partition)."
24453 msgstr ""
24454
24455 #. type: textblock
24456 #: ../resize/virt-resize.pod:541
24457 msgid "See also the I<--ignore> option."
24458 msgstr ""
24459
24460 #. type: =item
24461 #: ../resize/virt-resize.pod:543
24462 msgid "B<--shrink part>"
24463 msgstr ""
24464
24465 #. type: textblock
24466 #: ../resize/virt-resize.pod:545
24467 msgid ""
24468 "Shrink the named partition until the overall disk image fits in the "
24469 "destination.  The named partition B<must> contain a filesystem or PV which "
24470 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24471 "online tools).  Virt-resize will check this and give an error if it has not "
24472 "been done."
24473 msgstr ""
24474
24475 #. type: textblock
24476 #: ../resize/virt-resize.pod:551
24477 msgid ""
24478 "The amount by which the overall disk must be shrunk (after carrying out all "
24479 "other operations requested by the user) is called the \"deficit\".  For "
24480 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24481 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24482 "would give an error unless the user specified a partition to shrink and that "
24483 "partition had more than a gigabyte of free space."
24484 msgstr ""
24485
24486 #. type: =head1
24487 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24488 msgid "MACHINE READABLE OUTPUT"
24489 msgstr ""
24490
24491 #. type: textblock
24492 #: ../resize/virt-resize.pod:571
24493 msgid ""
24494 "The I<--machine-readable> option can be used to make the output more machine "
24495 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24496 "etc."
24497 msgstr ""
24498
24499 #. type: textblock
24500 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24501 msgid "There are two ways to use this option."
24502 msgstr ""
24503
24504 #. type: textblock
24505 #: ../resize/virt-resize.pod:577
24506 msgid ""
24507 "Firstly use the option on its own to query the capabilities of the virt-"
24508 "resize binary.  Typical output looks like this:"
24509 msgstr ""
24510
24511 #. type: verbatim
24512 #: ../resize/virt-resize.pod:580
24513 #, no-wrap
24514 msgid ""
24515 " $ virt-resize --machine-readable\n"
24516 " virt-resize\n"
24517 " ntfsresize-force\n"
24518 " 32bitok\n"
24519 " ntfs\n"
24520 " btrfs\n"
24521 "\n"
24522 msgstr ""
24523
24524 #. type: textblock
24525 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24526 msgid ""
24527 "A list of features is printed, one per line, and the program exits with "
24528 "status 0."
24529 msgstr ""
24530
24531 #. type: textblock
24532 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24533 msgid ""
24534 "Secondly use the option in conjunction with other options to make the "
24535 "regular program output more machine friendly."
24536 msgstr ""
24537
24538 #. type: textblock
24539 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24540 msgid "At the moment this means:"
24541 msgstr ""
24542
24543 #. type: textblock
24544 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24545 msgid ""
24546 "Progress bar messages can be parsed from stdout by looking for this regular "
24547 "expression:"
24548 msgstr ""
24549
24550 #. type: verbatim
24551 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24552 #, no-wrap
24553 msgid ""
24554 " ^[0-9]+/[0-9]+$\n"
24555 "\n"
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24560 msgid ""
24561 "The calling program should treat messages sent to stdout (except for "
24562 "progress bar messages) as status messages.  They can be logged and/or "
24563 "displayed to the user."
24564 msgstr ""
24565
24566 #. type: textblock
24567 #: ../resize/virt-resize.pod:612
24568 msgid ""
24569 "The calling program should treat messages sent to stderr as error messages.  "
24570 "In addition, virt-resize exits with a non-zero status code if there was a "
24571 "fatal error."
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../resize/virt-resize.pod:618
24576 msgid ""
24577 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24578 "readable> option and will return an error."
24579 msgstr ""
24580
24581 #. type: =head2
24582 #: ../resize/virt-resize.pod:623
24583 msgid "\"Partition 1 does not end on cylinder boundary.\""
24584 msgstr ""
24585
24586 #. type: textblock
24587 #: ../resize/virt-resize.pod:625
24588 msgid ""
24589 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24590 "alignment> parameter).  Usually this means the partitions will not be "
24591 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24592 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24593 "drives.  Alignment of partitions to cylinders is not required by any modern "
24594 "operating system."
24595 msgstr ""
24596
24597 #. type: =head2
24598 #: ../resize/virt-resize.pod:632
24599 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24600 msgstr ""
24601
24602 #. type: textblock
24603 #: ../resize/virt-resize.pod:634
24604 msgid ""
24605 "In Windows Vista and later versions, Microsoft switched to using a separate "
24606 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24607 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24608 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24609 "the second partition (ie. C: drive)  should work."
24610 msgstr ""
24611
24612 #. type: textblock
24613 #: ../resize/virt-resize.pod:641
24614 msgid ""
24615 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24616 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24617 "it find errors) is nothing to worry about."
24618 msgstr ""
24619
24620 #. type: =head2
24621 #: ../resize/virt-resize.pod:645
24622 msgid "GUEST BOOT STUCK AT \"GRUB\""
24623 msgstr ""
24624
24625 #. type: textblock
24626 #: ../resize/virt-resize.pod:647
24627 msgid ""
24628 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24629 "printing C<GRUB> on the console, try reinstalling grub."
24630 msgstr ""
24631
24632 #. type: verbatim
24633 #: ../resize/virt-resize.pod:650
24634 #, no-wrap
24635 msgid ""
24636 " guestfish -i -a newdisk\n"
24637 " ><fs> cat /boot/grub/device.map\n"
24638 " # check the contents of this file are sensible or\n"
24639 " # edit the file if necessary\n"
24640 " ><fs> grub-install / /dev/vda\n"
24641 " ><fs> exit\n"
24642 "\n"
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../resize/virt-resize.pod:657
24647 msgid ""
24648 "For more flexible guest reconfiguration, including if you need to specify "
24649 "other parameters to grub-install, use L<virt-rescue(1)>."
24650 msgstr ""
24651
24652 #. type: =head1
24653 #: ../resize/virt-resize.pod:660
24654 msgid "ALTERNATIVE TOOLS"
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../resize/virt-resize.pod:662
24659 msgid ""
24660 "There are several proprietary tools for resizing partitions.  We won't "
24661 "mention any here."
24662 msgstr ""
24663
24664 #. type: textblock
24665 #: ../resize/virt-resize.pod:665
24666 msgid ""
24667 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24668 "operations on disk images.  They can resize and move partitions, but I don't "
24669 "think they can do anything with the contents, and they certainly don't "
24670 "understand LVM."
24671 msgstr ""
24672
24673 #. type: textblock
24674 #: ../resize/virt-resize.pod:670
24675 msgid ""
24676 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24677 "but at a much lower level.  You will probably end up hand-calculating sector "
24678 "offsets, which is something that virt-resize was designed to avoid.  If you "
24679 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24680 "I<--debug> flag."
24681 msgstr ""
24682
24683 #. type: textblock
24684 #: ../resize/virt-resize.pod:690
24685 msgid ""
24686 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24687 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24688 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24689 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24690 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24691 msgstr ""
24692
24693 #. type: textblock
24694 #: ../ruby/examples/guestfs-ruby.pod:5
24695 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24696 msgstr ""
24697
24698 #. type: verbatim
24699 #: ../ruby/examples/guestfs-ruby.pod:9
24700 #, no-wrap
24701 msgid ""
24702 " require 'guestfs'\n"
24703 " g = Guestfs::Guestfs.new()\n"
24704 " g.add_drive_opts(\"disk.img\",\n"
24705 "                  :readonly => 1, :format => \"raw\")\n"
24706 " g.launch()\n"
24707 "\n"
24708 msgstr ""
24709
24710 #. type: textblock
24711 #: ../ruby/examples/guestfs-ruby.pod:17
24712 msgid ""
24713 "This manual page documents how to call libguestfs from the Ruby programming "
24714 "language.  This page just documents the differences from the C API and gives "
24715 "some examples.  If you are not familiar with using libguestfs, you also need "
24716 "to read L<guestfs(3)>."
24717 msgstr ""
24718
24719 #. type: textblock
24720 #: ../ruby/examples/guestfs-ruby.pod:24
24721 msgid ""
24722 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24723 "This has a single parameter which is the error message (a string)."
24724 msgstr ""
24725
24726 #. type: textblock
24727 #: ../ruby/examples/guestfs-ruby.pod:38
24728 msgid ""
24729 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24730 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24731 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24732 msgstr ""
24733
24734 #. type: textblock
24735 #: ../sparsify/virt-sparsify.pod:5
24736 msgid "virt-sparsify - Make a virtual machine disk sparse"
24737 msgstr ""
24738
24739 #. type: verbatim
24740 #: ../sparsify/virt-sparsify.pod:9
24741 #, no-wrap
24742 msgid ""
24743 " virt-sparsify [--options] indisk outdisk\n"
24744 "\n"
24745 msgstr ""
24746
24747 #. type: textblock
24748 #: ../sparsify/virt-sparsify.pod:13
24749 msgid ""
24750 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24751 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24752 "the disk image can be converted back to free space on the host."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../sparsify/virt-sparsify.pod:18
24757 msgid ""
24758 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24759 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24760 msgstr ""
24761
24762 #. type: textblock
24763 #: ../sparsify/virt-sparsify.pod:21
24764 msgid ""
24765 "Virt-sparsify can also convert between some disk formats, for example "
24766 "converting a raw disk image to a thin-provisioned qcow2 image."
24767 msgstr ""
24768
24769 #. type: textblock
24770 #: ../sparsify/virt-sparsify.pod:24
24771 msgid ""
24772 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24773 "machines.  If a virtual machine has more than one attached disk, you must "
24774 "sparsify each one separately."
24775 msgstr ""
24776
24777 #. type: =head2
24778 #: ../sparsify/virt-sparsify.pod:28
24779 msgid "IMPORTANT LIMITATIONS"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../sparsify/virt-sparsify.pod:34
24784 msgid ""
24785 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24786 "image to a destination image, leaving the source unchanged.  I<Check that "
24787 "the sparsification was successful before deleting the source image>."
24788 msgstr ""
24789
24790 #. type: textblock
24791 #: ../sparsify/virt-sparsify.pod:41
24792 msgid "The virtual machine I<must be shut down> before using this tool."
24793 msgstr ""
24794
24795 #. type: textblock
24796 #: ../sparsify/virt-sparsify.pod:45
24797 msgid ""
24798 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24799 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24800 "usually much less space is required."
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../sparsify/virt-sparsify.pod:51
24805 msgid ""
24806 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24807 msgstr ""
24808
24809 #. type: textblock
24810 #: ../sparsify/virt-sparsify.pod:56
24811 msgid "Virt-sparsify cannot handle encrypted disks."
24812 msgstr ""
24813
24814 #. type: textblock
24815 #: ../sparsify/virt-sparsify.pod:60
24816 msgid ""
24817 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24818 "this space is often used for critical items like bootloaders so it's not "
24819 "really unused."
24820 msgstr ""
24821
24822 #. type: textblock
24823 #: ../sparsify/virt-sparsify.pod:66
24824 msgid ""
24825 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24826 "to do this unless we can be sure there is no hibernation data, so at the "
24827 "moment swap partitions are ignored."
24828 msgstr ""
24829
24830 #. type: textblock
24831 #: ../sparsify/virt-sparsify.pod:72
24832 msgid ""
24833 "You may also want to read the manual pages for the associated tools L<virt-"
24834 "filesystems(1)> and L<virt-df(1)> before starting."
24835 msgstr ""
24836
24837 #. type: textblock
24838 #: ../sparsify/virt-sparsify.pod:77
24839 msgid "Typical usage is:"
24840 msgstr ""
24841
24842 #. type: verbatim
24843 #: ../sparsify/virt-sparsify.pod:79
24844 #, no-wrap
24845 msgid ""
24846 " virt-sparsify indisk outdisk\n"
24847 "\n"
24848 msgstr ""
24849
24850 #. type: textblock
24851 #: ../sparsify/virt-sparsify.pod:81
24852 msgid ""
24853 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24854 "is created, or overwritten if it already exists.  The format of the input "
24855 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24856 msgstr ""
24857
24858 #. type: textblock
24859 #: ../sparsify/virt-sparsify.pod:86
24860 msgid "To convert between formats, use the I<--convert> option:"
24861 msgstr ""
24862
24863 #. type: verbatim
24864 #: ../sparsify/virt-sparsify.pod:88
24865 #, no-wrap
24866 msgid ""
24867 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24868 "\n"
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../sparsify/virt-sparsify.pod:90
24873 msgid ""
24874 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24875 "can find within the source disk image.  You can get it to ignore (don't zero "
24876 "free space on) certain filesystems by doing:"
24877 msgstr ""
24878
24879 #. type: verbatim
24880 #: ../sparsify/virt-sparsify.pod:94
24881 #, no-wrap
24882 msgid ""
24883 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24884 "\n"
24885 msgstr ""
24886
24887 #. type: textblock
24888 #: ../sparsify/virt-sparsify.pod:96
24889 msgid ""
24890 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24891 msgstr ""
24892
24893 #. type: =item
24894 #: ../sparsify/virt-sparsify.pod:107
24895 msgid "B<--convert> raw"
24896 msgstr ""
24897
24898 #. type: =item
24899 #: ../sparsify/virt-sparsify.pod:109
24900 msgid "B<--convert> qcow2"
24901 msgstr ""
24902
24903 #. type: =item
24904 #: ../sparsify/virt-sparsify.pod:111
24905 msgid "B<--convert> [other formats]"
24906 msgstr ""
24907
24908 #. type: textblock
24909 #: ../sparsify/virt-sparsify.pod:113
24910 msgid ""
24911 "Use C<output-format> as the format for the destination image.  If this is "
24912 "not specified, then the input format is used."
24913 msgstr ""
24914
24915 #. type: textblock
24916 #: ../sparsify/virt-sparsify.pod:116
24917 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../sparsify/virt-sparsify.pod:118
24922 msgid ""
24923 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24924 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24925 msgstr ""
24926
24927 #. type: textblock
24928 #: ../sparsify/virt-sparsify.pod:122
24929 msgid ""
24930 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24931 "sparsify doesn't need to try to guess the input format."
24932 msgstr ""
24933
24934 #. type: =item
24935 #: ../sparsify/virt-sparsify.pod:127
24936 msgid "B<--format> qcow2"
24937 msgstr ""
24938
24939 #. type: =item
24940 #: ../sparsify/virt-sparsify.pod:135
24941 msgid "B<--ignore> filesystem"
24942 msgstr ""
24943
24944 #. type: =item
24945 #: ../sparsify/virt-sparsify.pod:137
24946 msgid "B<--ignore> volgroup"
24947 msgstr ""
24948
24949 #. type: textblock
24950 #: ../sparsify/virt-sparsify.pod:139
24951 msgid ""
24952 "Ignore the named filesystem.  Free space on the filesystem will not be "
24953 "zeroed, but existing blocks of zeroes will still be sparsified."
24954 msgstr ""
24955
24956 #. type: textblock
24957 #: ../sparsify/virt-sparsify.pod:142
24958 msgid ""
24959 "In the second form, this ignores the named volume group.  Use the volume "
24960 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24961 msgstr ""
24962
24963 #. type: textblock
24964 #: ../sparsify/virt-sparsify.pod:157
24965 msgid "This disables progress bars and other unnecessary output."
24966 msgstr ""
24967
24968 #. type: textblock
24969 #: ../sparsify/virt-sparsify.pod:179
24970 msgid ""
24971 "The I<--machine-readable> option can be used to make the output more machine "
24972 "friendly, which is useful when calling virt-sparsify from other programs, "
24973 "GUIs etc."
24974 msgstr ""
24975
24976 #. type: textblock
24977 #: ../sparsify/virt-sparsify.pod:185
24978 msgid ""
24979 "Firstly use the option on its own to query the capabilities of the virt-"
24980 "sparsify binary.  Typical output looks like this:"
24981 msgstr ""
24982
24983 #. type: verbatim
24984 #: ../sparsify/virt-sparsify.pod:188
24985 #, no-wrap
24986 msgid ""
24987 " $ virt-sparsify --machine-readable\n"
24988 " virt-sparsify\n"
24989 " ntfs\n"
24990 " btrfs\n"
24991 "\n"
24992 msgstr ""
24993
24994 #. type: textblock
24995 #: ../sparsify/virt-sparsify.pod:218
24996 msgid ""
24997 "The calling program should treat messages sent to stderr as error messages.  "
24998 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24999 "fatal error."
25000 msgstr ""
25001
25002 #. type: textblock
25003 #: ../sparsify/virt-sparsify.pod:224
25004 msgid ""
25005 "All versions of virt-sparsify have supported the I<--machine-readable> "
25006 "option."
25007 msgstr ""
25008
25009 #. type: textblock
25010 #: ../sparsify/virt-sparsify.pod:238
25011 msgid ""
25012 "Location of the temporary directory used for the potentially large temporary "
25013 "overlay file."
25014 msgstr ""
25015
25016 #. type: textblock
25017 #: ../sparsify/virt-sparsify.pod:241
25018 msgid ""
25019 "You should ensure there is enough free space in the worst case for a full "
25020 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25021 "to another directory that has enough space."
25022 msgstr ""
25023
25024 #. type: textblock
25025 #: ../sparsify/virt-sparsify.pod:245
25026 msgid "This defaults to C</tmp>."
25027 msgstr ""
25028
25029 #. type: textblock
25030 #: ../sparsify/virt-sparsify.pod:249
25031 msgid ""
25032 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25033 msgstr ""
25034
25035 #. type: textblock
25036 #: ../sparsify/virt-sparsify.pod:253
25037 msgid ""
25038 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25039 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25040 "(1)>, L<http://libguestfs.org/>."
25041 msgstr ""
25042
25043 #. type: =head2
25044 #: ../src/guestfs-actions.pod:1
25045 msgid "guestfs_add_cdrom"
25046 msgstr ""
25047
25048 #. type: verbatim
25049 #: ../src/guestfs-actions.pod:3
25050 #, no-wrap
25051 msgid ""
25052 " int\n"
25053 " guestfs_add_cdrom (guestfs_h *g,\n"
25054 "                    const char *filename);\n"
25055 "\n"
25056 msgstr ""
25057
25058 #. type: textblock
25059 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25060 #: ../src/guestfs-actions.pod:323
25061 msgid ""
25062 "I<This function is deprecated.> In new code, use the L</"
25063 "guestfs_add_drive_opts> call instead."
25064 msgstr ""
25065
25066 #. type: textblock
25067 #: ../src/guestfs-actions.pod:24
25068 msgid ""
25069 "This call checks for the existence of C<filename>.  This stops you from "
25070 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25071 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25072 "instead."
25073 msgstr ""
25074
25075 #. type: textblock
25076 #: ../src/guestfs-actions.pod:31
25077 msgid ""
25078 "If you just want to add an ISO file (often you use this as an efficient way "
25079 "to transfer large files into the guest), then you should probably use "
25080 "C<guestfs_add_drive_ro> instead."
25081 msgstr ""
25082
25083 #. type: textblock
25084 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25085 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25086 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25087 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25088 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25089 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25090 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25091 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25092 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25093 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25094 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25095 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25096 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25097 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25098 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25099 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25100 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25101 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25102 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25103 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25104 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25105 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25106 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25107 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25108 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25109 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25110 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4328
25111 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4355
25112 #: ../src/guestfs-actions.pod:4369 ../src/guestfs-actions.pod:4384
25113 #: ../src/guestfs-actions.pod:4420 ../src/guestfs-actions.pod:4492
25114 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4529
25115 #: ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4569
25116 #: ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4623
25117 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4677
25118 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4722
25119 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4751
25120 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4783
25121 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:5014
25122 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5047
25123 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5116
25124 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5150
25125 #: ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5178
25126 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5210
25127 #: ../src/guestfs-actions.pod:5237 ../src/guestfs-actions.pod:5300
25128 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5404
25129 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
25130 #: ../src/guestfs-actions.pod:5454 ../src/guestfs-actions.pod:5471
25131 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5499
25132 #: ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:5546
25133 #: ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:5611
25134 #: ../src/guestfs-actions.pod:5631 ../src/guestfs-actions.pod:5645
25135 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5711
25136 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5811
25137 #: ../src/guestfs-actions.pod:5854 ../src/guestfs-actions.pod:5882
25138 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5917
25139 #: ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6111
25140 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6151
25141 #: ../src/guestfs-actions.pod:6203 ../src/guestfs-actions.pod:6269
25142 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6299
25143 #: ../src/guestfs-actions.pod:6313 ../src/guestfs-actions.pod:6602
25144 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6640
25145 #: ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6666
25146 #: ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6692
25147 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6722
25148 #: ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6759
25149 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6808
25150 #: ../src/guestfs-actions.pod:6826 ../src/guestfs-actions.pod:6849
25151 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6886
25152 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6926
25153 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6962
25154 #: ../src/guestfs-actions.pod:6990 ../src/guestfs-actions.pod:7014
25155 #: ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7049
25156 #: ../src/guestfs-actions.pod:7073 ../src/guestfs-actions.pod:7092
25157 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7126
25158 #: ../src/guestfs-actions.pod:7170 ../src/guestfs-actions.pod:7197
25159 #: ../src/guestfs-actions.pod:7227 ../src/guestfs-actions.pod:7339
25160 #: ../src/guestfs-actions.pod:7460 ../src/guestfs-actions.pod:7472
25161 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7498
25162 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7533
25163 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7559
25164 #: ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7633
25165 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7666
25166 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7699
25167 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7732
25168 #: ../src/guestfs-actions.pod:7832 ../src/guestfs-actions.pod:7888
25169 #: ../src/guestfs-actions.pod:7902 ../src/guestfs-actions.pod:7943
25170 #: ../src/guestfs-actions.pod:7956 ../src/guestfs-actions.pod:7974
25171 #: ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8044
25172 #: ../src/guestfs-actions.pod:8160 ../src/guestfs-actions.pod:8175
25173 #: ../src/guestfs-actions.pod:8189 ../src/guestfs-actions.pod:8244
25174 #: ../src/guestfs-actions.pod:8257 ../src/guestfs-actions.pod:8302
25175 #: ../src/guestfs-actions.pod:8342 ../src/guestfs-actions.pod:8398
25176 #: ../src/guestfs-actions.pod:8418 ../src/guestfs-actions.pod:8451
25177 #: ../src/guestfs-actions.pod:8515 ../src/guestfs-actions.pod:8538
25178 #: ../src/guestfs-actions.pod:8564
25179 msgid "This function returns 0 on success or -1 on error."
25180 msgstr ""
25181
25182 #. type: textblock
25183 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25184 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25185 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25186 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25187 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:6828
25188 #: ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:7094
25189 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7701
25190 #: ../src/guestfs-actions.pod:8344
25191 msgid "(Added in 0.3)"
25192 msgstr ""
25193
25194 #. type: =head2
25195 #: ../src/guestfs-actions.pod:41
25196 msgid "guestfs_add_domain"
25197 msgstr ""
25198
25199 #. type: verbatim
25200 #: ../src/guestfs-actions.pod:43
25201 #, no-wrap
25202 msgid ""
25203 " int\n"
25204 " guestfs_add_domain (guestfs_h *g,\n"
25205 "                     const char *dom,\n"
25206 "                     ...);\n"
25207 "\n"
25208 msgstr ""
25209
25210 #. type: textblock
25211 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25212 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25213 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25214 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25215 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25216 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5249
25217 #: ../src/guestfs-actions.pod:5558 ../src/guestfs-actions.pod:5775
25218 #: ../src/guestfs-actions.pod:7743
25219 msgid ""
25220 "You may supply a list of optional arguments to this call.  Use zero or more "
25221 "of the following pairs of parameters, and terminate the list with C<-1> on "
25222 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25223 msgstr ""
25224
25225 #. type: verbatim
25226 #: ../src/guestfs-actions.pod:53
25227 #, no-wrap
25228 msgid ""
25229 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25230 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25231 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25232 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25233 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25234 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25235 "\n"
25236 msgstr ""
25237
25238 #. type: textblock
25239 #: ../src/guestfs-actions.pod:60
25240 msgid ""
25241 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25242 "It works by connecting to libvirt, requesting the domain and domain XML from "
25243 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25244 "one."
25245 msgstr ""
25246
25247 #. type: textblock
25248 #: ../src/guestfs-actions.pod:141
25249 msgid ""
25250 "The other optional parameters are passed directly through to "
25251 "C<guestfs_add_drive_opts>."
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25256 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25257 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25258 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25259 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25260 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25261 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25262 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25263 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25264 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5951
25265 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6383
25266 #: ../src/guestfs-actions.pod:6409 ../src/guestfs-actions.pod:7929
25267 #: ../src/guestfs-actions.pod:8355 ../src/guestfs-actions.pod:8368
25268 #: ../src/guestfs-actions.pod:8381
25269 msgid "On error this function returns -1."
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../src/guestfs-actions.pod:146
25274 msgid "(Added in 1.7.4)"
25275 msgstr ""
25276
25277 #. type: =head2
25278 #: ../src/guestfs-actions.pod:148
25279 msgid "guestfs_add_domain_va"
25280 msgstr ""
25281
25282 #. type: verbatim
25283 #: ../src/guestfs-actions.pod:150
25284 #, no-wrap
25285 msgid ""
25286 " int\n"
25287 " guestfs_add_domain_va (guestfs_h *g,\n"
25288 "                        const char *dom,\n"
25289 "                        va_list args);\n"
25290 "\n"
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../src/guestfs-actions.pod:155
25295 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25296 msgstr ""
25297
25298 #. type: textblock
25299 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25300 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25301 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25302 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25303 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25304 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25305 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25306 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25307 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25308 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25309 #: ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:4965
25310 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5326
25311 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5598
25312 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:5835
25313 #: ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7854
25314 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25315 msgstr ""
25316
25317 #. type: =head2
25318 #: ../src/guestfs-actions.pod:159
25319 msgid "guestfs_add_domain_argv"
25320 msgstr ""
25321
25322 #. type: verbatim
25323 #: ../src/guestfs-actions.pod:161
25324 #, no-wrap
25325 msgid ""
25326 " int\n"
25327 " guestfs_add_domain_argv (guestfs_h *g,\n"
25328 "                          const char *dom,\n"
25329 "                          const struct guestfs_add_domain_argv *optargs);\n"
25330 "\n"
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../src/guestfs-actions.pod:166
25335 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:170
25340 msgid "guestfs_add_drive"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:172
25345 #, no-wrap
25346 msgid ""
25347 " int\n"
25348 " guestfs_add_drive (guestfs_h *g,\n"
25349 "                    const char *filename);\n"
25350 "\n"
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../src/guestfs-actions.pod:176
25355 msgid ""
25356 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25357 "optional parameters, so the disk is added writable, with the format being "
25358 "detected automatically."
25359 msgstr ""
25360
25361 #. type: textblock
25362 #: ../src/guestfs-actions.pod:180
25363 msgid ""
25364 "Automatic detection of the format opens you up to a potential security hole "
25365 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25366 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25367 "you should think about replacing calls to this function with calls to "
25368 "C<guestfs_add_drive_opts>, and specifying the format."
25369 msgstr ""
25370
25371 #. type: =head2
25372 #: ../src/guestfs-actions.pod:191
25373 msgid "guestfs_add_drive_opts"
25374 msgstr ""
25375
25376 #. type: verbatim
25377 #: ../src/guestfs-actions.pod:193
25378 #, no-wrap
25379 msgid ""
25380 " int\n"
25381 " guestfs_add_drive_opts (guestfs_h *g,\n"
25382 "                         const char *filename,\n"
25383 "                         ...);\n"
25384 "\n"
25385 msgstr ""
25386
25387 #. type: verbatim
25388 #: ../src/guestfs-actions.pod:203
25389 #, no-wrap
25390 msgid ""
25391 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25392 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25393 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25394 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25395 "\n"
25396 msgstr ""
25397
25398 #. type: textblock
25399 #: ../src/guestfs-actions.pod:233
25400 msgid ""
25401 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25402 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25403 "Possible formats include C<raw> and C<qcow2>."
25404 msgstr ""
25405
25406 #. type: textblock
25407 #: ../src/guestfs-actions.pod:244
25408 msgid ""
25409 "This rarely-used option lets you emulate the behaviour of the deprecated "
25410 "C<guestfs_add_drive_with_if> call (q.v.)"
25411 msgstr ""
25412
25413 #. type: textblock
25414 #: ../src/guestfs-actions.pod:256
25415 msgid "(Added in 1.5.23)"
25416 msgstr ""
25417
25418 #. type: =head2
25419 #: ../src/guestfs-actions.pod:258
25420 msgid "guestfs_add_drive_opts_va"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../src/guestfs-actions.pod:260
25425 #, no-wrap
25426 msgid ""
25427 " int\n"
25428 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25429 "                            const char *filename,\n"
25430 "                            va_list args);\n"
25431 "\n"
25432 msgstr ""
25433
25434 #. type: textblock
25435 #: ../src/guestfs-actions.pod:265
25436 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25437 msgstr ""
25438
25439 #. type: =head2
25440 #: ../src/guestfs-actions.pod:269
25441 msgid "guestfs_add_drive_opts_argv"
25442 msgstr ""
25443
25444 #. type: verbatim
25445 #: ../src/guestfs-actions.pod:271
25446 #, no-wrap
25447 msgid ""
25448 " int\n"
25449 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25450 "                              const char *filename,\n"
25451 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25452 "\n"
25453 msgstr ""
25454
25455 #. type: textblock
25456 #: ../src/guestfs-actions.pod:276
25457 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25458 msgstr ""
25459
25460 #. type: =head2
25461 #: ../src/guestfs-actions.pod:280
25462 msgid "guestfs_add_drive_ro"
25463 msgstr ""
25464
25465 #. type: verbatim
25466 #: ../src/guestfs-actions.pod:282
25467 #, no-wrap
25468 msgid ""
25469 " int\n"
25470 " guestfs_add_drive_ro (guestfs_h *g,\n"
25471 "                       const char *filename);\n"
25472 "\n"
25473 msgstr ""
25474
25475 #. type: textblock
25476 #: ../src/guestfs-actions.pod:286
25477 msgid ""
25478 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25479 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25480 "disk is added read-only, with the format being detected automatically."
25481 msgstr ""
25482
25483 #. type: textblock
25484 #: ../src/guestfs-actions.pod:293
25485 msgid "(Added in 1.0.38)"
25486 msgstr ""
25487
25488 #. type: =head2
25489 #: ../src/guestfs-actions.pod:295
25490 msgid "guestfs_add_drive_ro_with_if"
25491 msgstr ""
25492
25493 #. type: verbatim
25494 #: ../src/guestfs-actions.pod:297
25495 #, no-wrap
25496 msgid ""
25497 " int\n"
25498 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25499 "                               const char *filename,\n"
25500 "                               const char *iface);\n"
25501 "\n"
25502 msgstr ""
25503
25504 #. type: textblock
25505 #: ../src/guestfs-actions.pod:309
25506 msgid ""
25507 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25508 "QEMU interface emulation to use at run time."
25509 msgstr ""
25510
25511 #. type: textblock
25512 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25513 #: ../src/guestfs-actions.pod:2881
25514 msgid "(Added in 1.0.84)"
25515 msgstr ""
25516
25517 #. type: =head2
25518 #: ../src/guestfs-actions.pod:316
25519 msgid "guestfs_add_drive_with_if"
25520 msgstr ""
25521
25522 #. type: verbatim
25523 #: ../src/guestfs-actions.pod:318
25524 #, no-wrap
25525 msgid ""
25526 " int\n"
25527 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25528 "                            const char *filename,\n"
25529 "                            const char *iface);\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../src/guestfs-actions.pod:330
25535 msgid ""
25536 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25537 "QEMU interface emulation to use at run time."
25538 msgstr ""
25539
25540 #. type: =head2
25541 #: ../src/guestfs-actions.pod:337
25542 msgid "guestfs_aug_clear"
25543 msgstr ""
25544
25545 #. type: verbatim
25546 #: ../src/guestfs-actions.pod:339
25547 #, no-wrap
25548 msgid ""
25549 " int\n"
25550 " guestfs_aug_clear (guestfs_h *g,\n"
25551 "                    const char *augpath);\n"
25552 "\n"
25553 msgstr ""
25554
25555 #. type: textblock
25556 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25557 msgid "(Added in 1.3.4)"
25558 msgstr ""
25559
25560 #. type: =head2
25561 #: ../src/guestfs-actions.pod:350
25562 msgid "guestfs_aug_close"
25563 msgstr ""
25564
25565 #. type: verbatim
25566 #: ../src/guestfs-actions.pod:352
25567 #, no-wrap
25568 msgid ""
25569 " int\n"
25570 " guestfs_aug_close (guestfs_h *g);\n"
25571 "\n"
25572 msgstr ""
25573
25574 #. type: textblock
25575 #: ../src/guestfs-actions.pod:355
25576 msgid ""
25577 "Close the current Augeas handle and free up any resources used by it.  After "
25578 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25579 "any other Augeas functions."
25580 msgstr ""
25581
25582 #. type: textblock
25583 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25584 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25585 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25586 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25587 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25588 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25589 #: ../src/guestfs-actions.pod:6460
25590 msgid "(Added in 0.7)"
25591 msgstr ""
25592
25593 #. type: =head2
25594 #: ../src/guestfs-actions.pod:364
25595 msgid "guestfs_aug_defnode"
25596 msgstr ""
25597
25598 #. type: verbatim
25599 #: ../src/guestfs-actions.pod:366
25600 #, no-wrap
25601 msgid ""
25602 " struct guestfs_int_bool *\n"
25603 " guestfs_aug_defnode (guestfs_h *g,\n"
25604 "                      const char *name,\n"
25605 "                      const char *expr,\n"
25606 "                      const char *val);\n"
25607 "\n"
25608 msgstr ""
25609
25610 #. type: textblock
25611 #: ../src/guestfs-actions.pod:375
25612 msgid ""
25613 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25614 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25615 "containing that single node."
25616 msgstr ""
25617
25618 #. type: textblock
25619 #: ../src/guestfs-actions.pod:383
25620 msgid ""
25621 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25622 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25623 msgstr ""
25624
25625 #. type: =head2
25626 #: ../src/guestfs-actions.pod:389
25627 msgid "guestfs_aug_defvar"
25628 msgstr ""
25629
25630 #. type: verbatim
25631 #: ../src/guestfs-actions.pod:391
25632 #, no-wrap
25633 msgid ""
25634 " int\n"
25635 " guestfs_aug_defvar (guestfs_h *g,\n"
25636 "                     const char *name,\n"
25637 "                     const char *expr);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: =head2
25642 #: ../src/guestfs-actions.pod:407
25643 msgid "guestfs_aug_get"
25644 msgstr ""
25645
25646 #. type: verbatim
25647 #: ../src/guestfs-actions.pod:409
25648 #, no-wrap
25649 msgid ""
25650 " char *\n"
25651 " guestfs_aug_get (guestfs_h *g,\n"
25652 "                  const char *augpath);\n"
25653 "\n"
25654 msgstr ""
25655
25656 #. type: textblock
25657 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25658 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25659 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25660 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25661 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25662 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25663 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25664 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25665 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25666 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25667 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25668 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25669 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25670 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25671 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25672 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4661
25673 #: ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:5076
25674 #: ../src/guestfs-actions.pod:5969 ../src/guestfs-actions.pod:6170
25675 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6536
25676 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:7245
25677 #: ../src/guestfs-actions.pod:7261 ../src/guestfs-actions.pod:7285
25678 #: ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:8103
25679 #: ../src/guestfs-actions.pod:8122 ../src/guestfs-actions.pod:8140
25680 #: ../src/guestfs-actions.pod:8314 ../src/guestfs-actions.pod:8628
25681 msgid ""
25682 "This function returns a string, or NULL on error.  I<The caller must free "
25683 "the returned string after use>."
25684 msgstr ""
25685
25686 #. type: =head2
25687 #: ../src/guestfs-actions.pod:421
25688 msgid "guestfs_aug_init"
25689 msgstr ""
25690
25691 #. type: verbatim
25692 #: ../src/guestfs-actions.pod:423
25693 #, no-wrap
25694 msgid ""
25695 " int\n"
25696 " guestfs_aug_init (guestfs_h *g,\n"
25697 "                   const char *root,\n"
25698 "                   int flags);\n"
25699 "\n"
25700 msgstr ""
25701
25702 #. type: textblock
25703 #: ../src/guestfs-actions.pod:432
25704 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25705 msgstr ""
25706
25707 #. type: textblock
25708 #: ../src/guestfs-actions.pod:457
25709 msgid ""
25710 "This option is only useful when debugging Augeas lenses.  Use of this option "
25711 "may require additional memory for the libguestfs appliance.  You may need to "
25712 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25713 "C<guestfs_set_memsize>."
25714 msgstr ""
25715
25716 #. type: textblock
25717 #: ../src/guestfs-actions.pod:472
25718 msgid "Do not load the tree in C<guestfs_aug_init>."
25719 msgstr ""
25720
25721 #. type: textblock
25722 #: ../src/guestfs-actions.pod:476
25723 msgid "To close the handle, you can call C<guestfs_aug_close>."
25724 msgstr ""
25725
25726 #. type: =head2
25727 #: ../src/guestfs-actions.pod:484
25728 msgid "guestfs_aug_insert"
25729 msgstr ""
25730
25731 #. type: verbatim
25732 #: ../src/guestfs-actions.pod:486
25733 #, no-wrap
25734 msgid ""
25735 " int\n"
25736 " guestfs_aug_insert (guestfs_h *g,\n"
25737 "                     const char *augpath,\n"
25738 "                     const char *label,\n"
25739 "                     int before);\n"
25740 "\n"
25741 msgstr ""
25742
25743 #. type: =head2
25744 #: ../src/guestfs-actions.pod:504
25745 msgid "guestfs_aug_load"
25746 msgstr ""
25747
25748 #. type: verbatim
25749 #: ../src/guestfs-actions.pod:506
25750 #, no-wrap
25751 msgid ""
25752 " int\n"
25753 " guestfs_aug_load (guestfs_h *g);\n"
25754 "\n"
25755 msgstr ""
25756
25757 #. type: =head2
25758 #: ../src/guestfs-actions.pod:518
25759 msgid "guestfs_aug_ls"
25760 msgstr ""
25761
25762 #. type: verbatim
25763 #: ../src/guestfs-actions.pod:520
25764 #, no-wrap
25765 msgid ""
25766 " char **\n"
25767 " guestfs_aug_ls (guestfs_h *g,\n"
25768 "                 const char *augpath);\n"
25769 "\n"
25770 msgstr ""
25771
25772 #. type: textblock
25773 #: ../src/guestfs-actions.pod:524
25774 msgid ""
25775 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25776 "sorting the resulting nodes into alphabetical order."
25777 msgstr ""
25778
25779 #. type: textblock
25780 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25781 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25782 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
25783 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
25784 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
25785 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
25786 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
25787 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
25788 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
25789 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
25790 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
25791 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4296
25792 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4800
25793 #: ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:6330
25794 #: ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6570
25795 #: ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7386
25796 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7587
25797 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8207
25798 #: ../src/guestfs-actions.pod:8227 ../src/guestfs-actions.pod:8274
25799 #: ../src/guestfs-actions.pod:8468 ../src/guestfs-actions.pod:8487
25800 #: ../src/guestfs-actions.pod:8578 ../src/guestfs-actions.pod:8597
25801 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
25802 msgid ""
25803 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25804 ">), or NULL if there was an error.  I<The caller must free the strings and "
25805 "the array after use>."
25806 msgstr ""
25807
25808 #. type: textblock
25809 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25810 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
25811 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
25812 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4691
25813 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5049
25814 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5699
25815 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6668
25816 #: ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6694
25817 #: ../src/guestfs-actions.pod:7172 ../src/guestfs-actions.pod:7945
25818 #: ../src/guestfs-actions.pod:7958 ../src/guestfs-actions.pod:8191
25819 #: ../src/guestfs-actions.pod:8456
25820 msgid "(Added in 0.8)"
25821 msgstr ""
25822
25823 #. type: =head2
25824 #: ../src/guestfs-actions.pod:533
25825 msgid "guestfs_aug_match"
25826 msgstr ""
25827
25828 #. type: verbatim
25829 #: ../src/guestfs-actions.pod:535
25830 #, no-wrap
25831 msgid ""
25832 " char **\n"
25833 " guestfs_aug_match (guestfs_h *g,\n"
25834 "                    const char *augpath);\n"
25835 "\n"
25836 msgstr ""
25837
25838 #. type: =head2
25839 #: ../src/guestfs-actions.pod:549
25840 msgid "guestfs_aug_mv"
25841 msgstr ""
25842
25843 #. type: verbatim
25844 #: ../src/guestfs-actions.pod:551
25845 #, no-wrap
25846 msgid ""
25847 " int\n"
25848 " guestfs_aug_mv (guestfs_h *g,\n"
25849 "                 const char *src,\n"
25850 "                 const char *dest);\n"
25851 "\n"
25852 msgstr ""
25853
25854 #. type: =head2
25855 #: ../src/guestfs-actions.pod:563
25856 msgid "guestfs_aug_rm"
25857 msgstr ""
25858
25859 #. type: verbatim
25860 #: ../src/guestfs-actions.pod:565
25861 #, no-wrap
25862 msgid ""
25863 " int\n"
25864 " guestfs_aug_rm (guestfs_h *g,\n"
25865 "                 const char *augpath);\n"
25866 "\n"
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../src/guestfs-actions.pod:577
25871 msgid "guestfs_aug_save"
25872 msgstr ""
25873
25874 #. type: verbatim
25875 #: ../src/guestfs-actions.pod:579
25876 #, no-wrap
25877 msgid ""
25878 " int\n"
25879 " guestfs_aug_save (guestfs_h *g);\n"
25880 "\n"
25881 msgstr ""
25882
25883 #. type: textblock
25884 #: ../src/guestfs-actions.pod:584
25885 msgid ""
25886 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25887 "are saved."
25888 msgstr ""
25889
25890 #. type: =head2
25891 #: ../src/guestfs-actions.pod:591
25892 msgid "guestfs_aug_set"
25893 msgstr ""
25894
25895 #. type: verbatim
25896 #: ../src/guestfs-actions.pod:593
25897 #, no-wrap
25898 msgid ""
25899 " int\n"
25900 " guestfs_aug_set (guestfs_h *g,\n"
25901 "                  const char *augpath,\n"
25902 "                  const char *val);\n"
25903 "\n"
25904 msgstr ""
25905
25906 #. type: textblock
25907 #: ../src/guestfs-actions.pod:600
25908 msgid ""
25909 "In the Augeas API, it is possible to clear a node by setting the value to "
25910 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25911 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25912 msgstr ""
25913
25914 #. type: =head2
25915 #: ../src/guestfs-actions.pod:609
25916 msgid "guestfs_available"
25917 msgstr ""
25918
25919 #. type: verbatim
25920 #: ../src/guestfs-actions.pod:611
25921 #, no-wrap
25922 msgid ""
25923 " int\n"
25924 " guestfs_available (guestfs_h *g,\n"
25925 "                    char *const *groups);\n"
25926 "\n"
25927 msgstr ""
25928
25929 #. type: textblock
25930 #: ../src/guestfs-actions.pod:619
25931 msgid ""
25932 "The libguestfs groups, and the functions that those groups correspond to, "
25933 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25934 "runtime by calling C<guestfs_available_all_groups>."
25935 msgstr ""
25936
25937 #. type: textblock
25938 #: ../src/guestfs-actions.pod:643
25939 msgid "You must call C<guestfs_launch> before calling this function."
25940 msgstr ""
25941
25942 #. type: textblock
25943 #: ../src/guestfs-actions.pod:665
25944 msgid ""
25945 "This call was added in version C<1.0.80>.  In previous versions of "
25946 "libguestfs all you could do would be to speculatively execute a command to "
25947 "find out if the daemon implemented it.  See also C<guestfs_version>."
25948 msgstr ""
25949
25950 #. type: textblock
25951 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
25952 msgid "(Added in 1.0.80)"
25953 msgstr ""
25954
25955 #. type: =head2
25956 #: ../src/guestfs-actions.pod:676
25957 msgid "guestfs_available_all_groups"
25958 msgstr ""
25959
25960 #. type: verbatim
25961 #: ../src/guestfs-actions.pod:678
25962 #, no-wrap
25963 msgid ""
25964 " char **\n"
25965 " guestfs_available_all_groups (guestfs_h *g);\n"
25966 "\n"
25967 msgstr ""
25968
25969 #. type: textblock
25970 #: ../src/guestfs-actions.pod:681
25971 msgid ""
25972 "This command returns a list of all optional groups that this daemon knows "
25973 "about.  Note this returns both supported and unsupported groups.  To find "
25974 "out which ones the daemon can actually support you have to call "
25975 "C<guestfs_available> on each member of the returned list."
25976 msgstr ""
25977
25978 #. type: textblock
25979 #: ../src/guestfs-actions.pod:687
25980 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25981 msgstr ""
25982
25983 #. type: textblock
25984 #: ../src/guestfs-actions.pod:693
25985 msgid "(Added in 1.3.15)"
25986 msgstr ""
25987
25988 #. type: =head2
25989 #: ../src/guestfs-actions.pod:695
25990 msgid "guestfs_base64_in"
25991 msgstr ""
25992
25993 #. type: verbatim
25994 #: ../src/guestfs-actions.pod:697
25995 #, no-wrap
25996 msgid ""
25997 " int\n"
25998 " guestfs_base64_in (guestfs_h *g,\n"
25999 "                    const char *base64file,\n"
26000 "                    const char *filename);\n"
26001 "\n"
26002 msgstr ""
26003
26004 #. type: textblock
26005 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26006 msgid "(Added in 1.3.5)"
26007 msgstr ""
26008
26009 #. type: =head2
26010 #: ../src/guestfs-actions.pod:709
26011 msgid "guestfs_base64_out"
26012 msgstr ""
26013
26014 #. type: verbatim
26015 #: ../src/guestfs-actions.pod:711
26016 #, no-wrap
26017 msgid ""
26018 " int\n"
26019 " guestfs_base64_out (guestfs_h *g,\n"
26020 "                     const char *filename,\n"
26021 "                     const char *base64file);\n"
26022 "\n"
26023 msgstr ""
26024
26025 #. type: =head2
26026 #: ../src/guestfs-actions.pod:723
26027 msgid "guestfs_blockdev_flushbufs"
26028 msgstr ""
26029
26030 #. type: verbatim
26031 #: ../src/guestfs-actions.pod:725
26032 #, no-wrap
26033 msgid ""
26034 " int\n"
26035 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26036 "                             const char *device);\n"
26037 "\n"
26038 msgstr ""
26039
26040 #. type: textblock
26041 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26042 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26043 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26044 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26045 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26046 msgid "(Added in 0.9.3)"
26047 msgstr ""
26048
26049 #. type: =head2
26050 #: ../src/guestfs-actions.pod:738
26051 msgid "guestfs_blockdev_getbsz"
26052 msgstr ""
26053
26054 #. type: verbatim
26055 #: ../src/guestfs-actions.pod:740
26056 #, no-wrap
26057 msgid ""
26058 " int\n"
26059 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26060 "                          const char *device);\n"
26061 "\n"
26062 msgstr ""
26063
26064 #. type: =head2
26065 #: ../src/guestfs-actions.pod:755
26066 msgid "guestfs_blockdev_getro"
26067 msgstr ""
26068
26069 #. type: verbatim
26070 #: ../src/guestfs-actions.pod:757
26071 #, no-wrap
26072 msgid ""
26073 " int\n"
26074 " guestfs_blockdev_getro (guestfs_h *g,\n"
26075 "                         const char *device);\n"
26076 "\n"
26077 msgstr ""
26078
26079 #. type: textblock
26080 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26081 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26082 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26083 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26084 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26085 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26086 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26087 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26088 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26089 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26090 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26091 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26092 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26093 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26094 #: ../src/guestfs-actions.pod:5933
26095 msgid "This function returns a C truth value on success or -1 on error."
26096 msgstr ""
26097
26098 #. type: =head2
26099 #: ../src/guestfs-actions.pod:770
26100 msgid "guestfs_blockdev_getsize64"
26101 msgstr ""
26102
26103 #. type: verbatim
26104 #: ../src/guestfs-actions.pod:772
26105 #, no-wrap
26106 msgid ""
26107 " int64_t\n"
26108 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26109 "                             const char *device);\n"
26110 "\n"
26111 msgstr ""
26112
26113 #. type: textblock
26114 #: ../src/guestfs-actions.pod:778
26115 msgid "See also C<guestfs_blockdev_getsz>."
26116 msgstr ""
26117
26118 #. type: =head2
26119 #: ../src/guestfs-actions.pod:786
26120 msgid "guestfs_blockdev_getss"
26121 msgstr ""
26122
26123 #. type: verbatim
26124 #: ../src/guestfs-actions.pod:788
26125 #, no-wrap
26126 msgid ""
26127 " int\n"
26128 " guestfs_blockdev_getss (guestfs_h *g,\n"
26129 "                         const char *device);\n"
26130 "\n"
26131 msgstr ""
26132
26133 #. type: textblock
26134 #: ../src/guestfs-actions.pod:795
26135 msgid ""
26136 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26137 "that)."
26138 msgstr ""
26139
26140 #. type: =head2
26141 #: ../src/guestfs-actions.pod:804
26142 msgid "guestfs_blockdev_getsz"
26143 msgstr ""
26144
26145 #. type: verbatim
26146 #: ../src/guestfs-actions.pod:806
26147 #, no-wrap
26148 msgid ""
26149 " int64_t\n"
26150 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26151 "                         const char *device);\n"
26152 "\n"
26153 msgstr ""
26154
26155 #. type: textblock
26156 #: ../src/guestfs-actions.pod:813
26157 msgid ""
26158 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26159 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26160 msgstr ""
26161
26162 #. type: =head2
26163 #: ../src/guestfs-actions.pod:823
26164 msgid "guestfs_blockdev_rereadpt"
26165 msgstr ""
26166
26167 #. type: verbatim
26168 #: ../src/guestfs-actions.pod:825
26169 #, no-wrap
26170 msgid ""
26171 " int\n"
26172 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26173 "                            const char *device);\n"
26174 "\n"
26175 msgstr ""
26176
26177 #. type: =head2
26178 #: ../src/guestfs-actions.pod:837
26179 msgid "guestfs_blockdev_setbsz"
26180 msgstr ""
26181
26182 #. type: verbatim
26183 #: ../src/guestfs-actions.pod:839
26184 #, no-wrap
26185 msgid ""
26186 " int\n"
26187 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26188 "                          const char *device,\n"
26189 "                          int blocksize);\n"
26190 "\n"
26191 msgstr ""
26192
26193 #. type: =head2
26194 #: ../src/guestfs-actions.pod:855
26195 msgid "guestfs_blockdev_setro"
26196 msgstr ""
26197
26198 #. type: verbatim
26199 #: ../src/guestfs-actions.pod:857
26200 #, no-wrap
26201 msgid ""
26202 " int\n"
26203 " guestfs_blockdev_setro (guestfs_h *g,\n"
26204 "                         const char *device);\n"
26205 "\n"
26206 msgstr ""
26207
26208 #. type: =head2
26209 #: ../src/guestfs-actions.pod:869
26210 msgid "guestfs_blockdev_setrw"
26211 msgstr ""
26212
26213 #. type: verbatim
26214 #: ../src/guestfs-actions.pod:871
26215 #, no-wrap
26216 msgid ""
26217 " int\n"
26218 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26219 "                         const char *device);\n"
26220 "\n"
26221 msgstr ""
26222
26223 #. type: =head2
26224 #: ../src/guestfs-actions.pod:883
26225 msgid "guestfs_btrfs_filesystem_resize"
26226 msgstr ""
26227
26228 #. type: verbatim
26229 #: ../src/guestfs-actions.pod:885
26230 #, no-wrap
26231 msgid ""
26232 " int\n"
26233 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26234 "                                  const char *mountpoint,\n"
26235 "                                  ...);\n"
26236 "\n"
26237 msgstr ""
26238
26239 #. type: verbatim
26240 #: ../src/guestfs-actions.pod:895
26241 #, no-wrap
26242 msgid ""
26243 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26244 "\n"
26245 msgstr ""
26246
26247 #. type: textblock
26248 #: ../src/guestfs-actions.pod:918
26249 msgid "(Added in 1.11.17)"
26250 msgstr ""
26251
26252 #. type: =head2
26253 #: ../src/guestfs-actions.pod:920
26254 msgid "guestfs_btrfs_filesystem_resize_va"
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:922
26259 #, no-wrap
26260 msgid ""
26261 " int\n"
26262 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26263 "                                     const char *mountpoint,\n"
26264 "                                     va_list args);\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: textblock
26269 #: ../src/guestfs-actions.pod:927
26270 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26271 msgstr ""
26272
26273 #. type: =head2
26274 #: ../src/guestfs-actions.pod:931
26275 msgid "guestfs_btrfs_filesystem_resize_argv"
26276 msgstr ""
26277
26278 #. type: verbatim
26279 #: ../src/guestfs-actions.pod:933
26280 #, no-wrap
26281 msgid ""
26282 " int\n"
26283 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26284 "                                       const char *mountpoint,\n"
26285 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26286 "\n"
26287 msgstr ""
26288
26289 #. type: textblock
26290 #: ../src/guestfs-actions.pod:938
26291 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26292 msgstr ""
26293
26294 #. type: =head2
26295 #: ../src/guestfs-actions.pod:942
26296 msgid "guestfs_case_sensitive_path"
26297 msgstr ""
26298
26299 #. type: verbatim
26300 #: ../src/guestfs-actions.pod:944
26301 #, no-wrap
26302 msgid ""
26303 " char *\n"
26304 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26305 "                              const char *path);\n"
26306 "\n"
26307 msgstr ""
26308
26309 #. type: textblock
26310 #: ../src/guestfs-actions.pod:970
26311 msgid ""
26312 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26313 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26314 "how the directories were originally created under Windows)."
26315 msgstr ""
26316
26317 #. type: textblock
26318 #: ../src/guestfs-actions.pod:978
26319 msgid "See also C<guestfs_realpath>."
26320 msgstr ""
26321
26322 #. type: textblock
26323 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8125
26324 msgid "(Added in 1.0.75)"
26325 msgstr ""
26326
26327 #. type: =head2
26328 #: ../src/guestfs-actions.pod:985
26329 msgid "guestfs_cat"
26330 msgstr ""
26331
26332 #. type: verbatim
26333 #: ../src/guestfs-actions.pod:987
26334 #, no-wrap
26335 msgid ""
26336 " char *\n"
26337 " guestfs_cat (guestfs_h *g,\n"
26338 "              const char *path);\n"
26339 "\n"
26340 msgstr ""
26341
26342 #. type: textblock
26343 #: ../src/guestfs-actions.pod:993
26344 msgid ""
26345 "Note that this function cannot correctly handle binary files (specifically, "
26346 "files containing C<\\0> character which is treated as end of string).  For "
26347 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26348 "functions which have a more complex interface."
26349 msgstr ""
26350
26351 #. type: textblock
26352 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
26353 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4317
26354 #: ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4804
26355 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:6334
26356 #: ../src/guestfs-actions.pod:6348 ../src/guestfs-actions.pod:8278
26357 #: ../src/guestfs-actions.pod:8292
26358 msgid "(Added in 0.4)"
26359 msgstr ""
26360
26361 #. type: =head2
26362 #: ../src/guestfs-actions.pod:1006
26363 msgid "guestfs_checksum"
26364 msgstr ""
26365
26366 #. type: verbatim
26367 #: ../src/guestfs-actions.pod:1008
26368 #, no-wrap
26369 msgid ""
26370 " char *\n"
26371 " guestfs_checksum (guestfs_h *g,\n"
26372 "                   const char *csumtype,\n"
26373 "                   const char *path);\n"
26374 "\n"
26375 msgstr ""
26376
26377 #. type: textblock
26378 #: ../src/guestfs-actions.pod:1054
26379 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26380 msgstr ""
26381
26382 #. type: textblock
26383 #: ../src/guestfs-actions.pod:1056
26384 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
26389 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
26390 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
26391 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7981
26392 msgid "(Added in 1.0.2)"
26393 msgstr ""
26394
26395 #. type: =head2
26396 #: ../src/guestfs-actions.pod:1063
26397 msgid "guestfs_checksum_device"
26398 msgstr ""
26399
26400 #. type: verbatim
26401 #: ../src/guestfs-actions.pod:1065
26402 #, no-wrap
26403 msgid ""
26404 " char *\n"
26405 " guestfs_checksum_device (guestfs_h *g,\n"
26406 "                          const char *csumtype,\n"
26407 "                          const char *device);\n"
26408 "\n"
26409 msgstr ""
26410
26411 #. type: textblock
26412 #: ../src/guestfs-actions.pod:1070
26413 msgid ""
26414 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26415 "device named C<device>.  For the types of checksums supported see the "
26416 "C<guestfs_checksum> command."
26417 msgstr ""
26418
26419 #. type: textblock
26420 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5766
26421 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5935
26422 #: ../src/guestfs-actions.pod:5953 ../src/guestfs-actions.pod:6135
26423 #: ../src/guestfs-actions.pod:7890 ../src/guestfs-actions.pod:7904
26424 #: ../src/guestfs-actions.pod:8304
26425 msgid "(Added in 1.3.2)"
26426 msgstr ""
26427
26428 #. type: =head2
26429 #: ../src/guestfs-actions.pod:1079
26430 msgid "guestfs_checksums_out"
26431 msgstr ""
26432
26433 #. type: verbatim
26434 #: ../src/guestfs-actions.pod:1081
26435 #, no-wrap
26436 msgid ""
26437 " int\n"
26438 " guestfs_checksums_out (guestfs_h *g,\n"
26439 "                        const char *csumtype,\n"
26440 "                        const char *directory,\n"
26441 "                        const char *sumsfile);\n"
26442 "\n"
26443 msgstr ""
26444
26445 #. type: textblock
26446 #: ../src/guestfs-actions.pod:1101
26447 msgid "(Added in 1.3.7)"
26448 msgstr ""
26449
26450 #. type: =head2
26451 #: ../src/guestfs-actions.pod:1103
26452 msgid "guestfs_chmod"
26453 msgstr ""
26454
26455 #. type: verbatim
26456 #: ../src/guestfs-actions.pod:1105
26457 #, no-wrap
26458 msgid ""
26459 " int\n"
26460 " guestfs_chmod (guestfs_h *g,\n"
26461 "                int mode,\n"
26462 "                const char *path);\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: =head2
26467 #: ../src/guestfs-actions.pod:1123
26468 msgid "guestfs_chown"
26469 msgstr ""
26470
26471 #. type: verbatim
26472 #: ../src/guestfs-actions.pod:1125
26473 #, no-wrap
26474 msgid ""
26475 " int\n"
26476 " guestfs_chown (guestfs_h *g,\n"
26477 "                int owner,\n"
26478 "                int group,\n"
26479 "                const char *path);\n"
26480 "\n"
26481 msgstr ""
26482
26483 #. type: =head2
26484 #: ../src/guestfs-actions.pod:1141
26485 msgid "guestfs_command"
26486 msgstr ""
26487
26488 #. type: verbatim
26489 #: ../src/guestfs-actions.pod:1143
26490 #, no-wrap
26491 msgid ""
26492 " char *\n"
26493 " guestfs_command (guestfs_h *g,\n"
26494 "                  char *const *arguments);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:1152
26500 msgid ""
26501 "The single parameter is an argv-style list of arguments.  The first element "
26502 "is the name of the program to run.  Subsequent elements are parameters.  The "
26503 "list must be non-empty (ie. must contain a program name).  Note that the "
26504 "command runs directly, and is I<not> invoked via the shell (see "
26505 "C<guestfs_sh>)."
26506 msgstr ""
26507
26508 #. type: textblock
26509 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26510 #: ../src/guestfs-actions.pod:2027
26511 msgid "(Added in 0.9.1)"
26512 msgstr ""
26513
26514 #. type: =head2
26515 #: ../src/guestfs-actions.pod:1185
26516 msgid "guestfs_command_lines"
26517 msgstr ""
26518
26519 #. type: verbatim
26520 #: ../src/guestfs-actions.pod:1187
26521 #, no-wrap
26522 msgid ""
26523 " char **\n"
26524 " guestfs_command_lines (guestfs_h *g,\n"
26525 "                        char *const *arguments);\n"
26526 "\n"
26527 msgstr ""
26528
26529 #. type: textblock
26530 #: ../src/guestfs-actions.pod:1191
26531 msgid ""
26532 "This is the same as C<guestfs_command>, but splits the result into a list of "
26533 "lines."
26534 msgstr ""
26535
26536 #. type: textblock
26537 #: ../src/guestfs-actions.pod:1194
26538 msgid "See also: C<guestfs_sh_lines>"
26539 msgstr ""
26540
26541 #. type: =head2
26542 #: ../src/guestfs-actions.pod:1205
26543 msgid "guestfs_compress_device_out"
26544 msgstr ""
26545
26546 #. type: verbatim
26547 #: ../src/guestfs-actions.pod:1207
26548 #, no-wrap
26549 msgid ""
26550 " int\n"
26551 " guestfs_compress_device_out (guestfs_h *g,\n"
26552 "                              const char *ctype,\n"
26553 "                              const char *device,\n"
26554 "                              const char *zdevice,\n"
26555 "                              ...);\n"
26556 "\n"
26557 msgstr ""
26558
26559 #. type: verbatim
26560 #: ../src/guestfs-actions.pod:1219
26561 #, no-wrap
26562 msgid ""
26563 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26564 "\n"
26565 msgstr ""
26566
26567 #. type: textblock
26568 #: ../src/guestfs-actions.pod:1224
26569 msgid ""
26570 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26571 "C<guestfs_compress_out>."
26572 msgstr ""
26573
26574 #. type: textblock
26575 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26576 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7051
26577 msgid "(Added in 1.13.15)"
26578 msgstr ""
26579
26580 #. type: =head2
26581 #: ../src/guestfs-actions.pod:1231
26582 msgid "guestfs_compress_device_out_va"
26583 msgstr ""
26584
26585 #. type: verbatim
26586 #: ../src/guestfs-actions.pod:1233
26587 #, no-wrap
26588 msgid ""
26589 " int\n"
26590 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26591 "                                 const char *ctype,\n"
26592 "                                 const char *device,\n"
26593 "                                 const char *zdevice,\n"
26594 "                                 va_list args);\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: textblock
26599 #: ../src/guestfs-actions.pod:1240
26600 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26601 msgstr ""
26602
26603 #. type: =head2
26604 #: ../src/guestfs-actions.pod:1244
26605 msgid "guestfs_compress_device_out_argv"
26606 msgstr ""
26607
26608 #. type: verbatim
26609 #: ../src/guestfs-actions.pod:1246
26610 #, no-wrap
26611 msgid ""
26612 " int\n"
26613 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26614 "                                   const char *ctype,\n"
26615 "                                   const char *device,\n"
26616 "                                   const char *zdevice,\n"
26617 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26618 "\n"
26619 msgstr ""
26620
26621 #. type: textblock
26622 #: ../src/guestfs-actions.pod:1253
26623 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26624 msgstr ""
26625
26626 #. type: =head2
26627 #: ../src/guestfs-actions.pod:1257
26628 msgid "guestfs_compress_out"
26629 msgstr ""
26630
26631 #. type: verbatim
26632 #: ../src/guestfs-actions.pod:1259
26633 #, no-wrap
26634 msgid ""
26635 " int\n"
26636 " guestfs_compress_out (guestfs_h *g,\n"
26637 "                       const char *ctype,\n"
26638 "                       const char *file,\n"
26639 "                       const char *zfile,\n"
26640 "                       ...);\n"
26641 "\n"
26642 msgstr ""
26643
26644 #. type: verbatim
26645 #: ../src/guestfs-actions.pod:1271
26646 #, no-wrap
26647 msgid ""
26648 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26649 "\n"
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:1290
26654 msgid "guestfs_compress_out_va"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:1292
26659 #, no-wrap
26660 msgid ""
26661 " int\n"
26662 " guestfs_compress_out_va (guestfs_h *g,\n"
26663 "                          const char *ctype,\n"
26664 "                          const char *file,\n"
26665 "                          const char *zfile,\n"
26666 "                          va_list args);\n"
26667 "\n"
26668 msgstr ""
26669
26670 #. type: textblock
26671 #: ../src/guestfs-actions.pod:1299
26672 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26673 msgstr ""
26674
26675 #. type: =head2
26676 #: ../src/guestfs-actions.pod:1303
26677 msgid "guestfs_compress_out_argv"
26678 msgstr ""
26679
26680 #. type: verbatim
26681 #: ../src/guestfs-actions.pod:1305
26682 #, no-wrap
26683 msgid ""
26684 " int\n"
26685 " guestfs_compress_out_argv (guestfs_h *g,\n"
26686 "                            const char *ctype,\n"
26687 "                            const char *file,\n"
26688 "                            const char *zfile,\n"
26689 "                            const struct guestfs_compress_out_argv *optargs);\n"
26690 "\n"
26691 msgstr ""
26692
26693 #. type: textblock
26694 #: ../src/guestfs-actions.pod:1312
26695 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26696 msgstr ""
26697
26698 #. type: =head2
26699 #: ../src/guestfs-actions.pod:1316
26700 msgid "guestfs_config"
26701 msgstr ""
26702
26703 #. type: verbatim
26704 #: ../src/guestfs-actions.pod:1318
26705 #, no-wrap
26706 msgid ""
26707 " int\n"
26708 " guestfs_config (guestfs_h *g,\n"
26709 "                 const char *qemuparam,\n"
26710 "                 const char *qemuvalue);\n"
26711 "\n"
26712 msgstr ""
26713
26714 #. type: =head2
26715 #: ../src/guestfs-actions.pod:1336
26716 msgid "guestfs_copy_device_to_device"
26717 msgstr ""
26718
26719 #. type: verbatim
26720 #: ../src/guestfs-actions.pod:1338
26721 #, no-wrap
26722 msgid ""
26723 " int\n"
26724 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26725 "                                const char *src,\n"
26726 "                                const char *dest,\n"
26727 "                                ...);\n"
26728 "\n"
26729 msgstr ""
26730
26731 #. type: verbatim
26732 #: ../src/guestfs-actions.pod:1349
26733 #, no-wrap
26734 msgid ""
26735 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26736 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26737 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26738 "\n"
26739 msgstr ""
26740
26741 #. type: textblock
26742 #: ../src/guestfs-actions.pod:1353
26743 msgid ""
26744 "The four calls C<guestfs_copy_device_to_device>, "
26745 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26746 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26747 "destination (device|file)."
26748 msgstr ""
26749
26750 #. type: textblock
26751 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
26752 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
26753 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
26754 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
26755 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
26756 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7976
26757 #: ../src/guestfs-actions.pod:8010 ../src/guestfs-actions.pod:8517
26758 #: ../src/guestfs-actions.pod:8540
26759 msgid ""
26760 "This long-running command can generate progress notification messages so "
26761 "that the caller can display a progress bar or indicator.  To receive these "
26762 "messages, the caller must register a progress event callback.  See L<guestfs"
26763 "(3)/GUESTFS_EVENT_PROGRESS>."
26764 msgstr ""
26765
26766 #. type: textblock
26767 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
26768 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
26769 #: ../src/guestfs-actions.pod:6191
26770 msgid "(Added in 1.13.25)"
26771 msgstr ""
26772
26773 #. type: =head2
26774 #: ../src/guestfs-actions.pod:1381
26775 msgid "guestfs_copy_device_to_device_va"
26776 msgstr ""
26777
26778 #. type: verbatim
26779 #: ../src/guestfs-actions.pod:1383
26780 #, no-wrap
26781 msgid ""
26782 " int\n"
26783 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26784 "                                   const char *src,\n"
26785 "                                   const char *dest,\n"
26786 "                                   va_list args);\n"
26787 "\n"
26788 msgstr ""
26789
26790 #. type: textblock
26791 #: ../src/guestfs-actions.pod:1389
26792 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
26793 msgstr ""
26794
26795 #. type: =head2
26796 #: ../src/guestfs-actions.pod:1393
26797 msgid "guestfs_copy_device_to_device_argv"
26798 msgstr ""
26799
26800 #. type: verbatim
26801 #: ../src/guestfs-actions.pod:1395
26802 #, no-wrap
26803 msgid ""
26804 " int\n"
26805 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
26806 "                                     const char *src,\n"
26807 "                                     const char *dest,\n"
26808 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
26809 "\n"
26810 msgstr ""
26811
26812 #. type: textblock
26813 #: ../src/guestfs-actions.pod:1401
26814 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
26815 msgstr ""
26816
26817 #. type: =head2
26818 #: ../src/guestfs-actions.pod:1405
26819 msgid "guestfs_copy_device_to_file"
26820 msgstr ""
26821
26822 #. type: verbatim
26823 #: ../src/guestfs-actions.pod:1407
26824 #, no-wrap
26825 msgid ""
26826 " int\n"
26827 " guestfs_copy_device_to_file (guestfs_h *g,\n"
26828 "                              const char *src,\n"
26829 "                              const char *dest,\n"
26830 "                              ...);\n"
26831 "\n"
26832 msgstr ""
26833
26834 #. type: verbatim
26835 #: ../src/guestfs-actions.pod:1418
26836 #, no-wrap
26837 msgid ""
26838 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26839 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26840 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
26841 "\n"
26842 msgstr ""
26843
26844 #. type: textblock
26845 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
26846 #: ../src/guestfs-actions.pod:1528
26847 msgid ""
26848 "See C<guestfs_copy_device_to_device> for a general overview of this call."
26849 msgstr ""
26850
26851 #. type: =head2
26852 #: ../src/guestfs-actions.pod:1434
26853 msgid "guestfs_copy_device_to_file_va"
26854 msgstr ""
26855
26856 #. type: verbatim
26857 #: ../src/guestfs-actions.pod:1436
26858 #, no-wrap
26859 msgid ""
26860 " int\n"
26861 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
26862 "                                 const char *src,\n"
26863 "                                 const char *dest,\n"
26864 "                                 va_list args);\n"
26865 "\n"
26866 msgstr ""
26867
26868 #. type: textblock
26869 #: ../src/guestfs-actions.pod:1442
26870 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
26871 msgstr ""
26872
26873 #. type: =head2
26874 #: ../src/guestfs-actions.pod:1446
26875 msgid "guestfs_copy_device_to_file_argv"
26876 msgstr ""
26877
26878 #. type: verbatim
26879 #: ../src/guestfs-actions.pod:1448
26880 #, no-wrap
26881 msgid ""
26882 " int\n"
26883 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
26884 "                                   const char *src,\n"
26885 "                                   const char *dest,\n"
26886 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
26887 "\n"
26888 msgstr ""
26889
26890 #. type: textblock
26891 #: ../src/guestfs-actions.pod:1454
26892 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:1458
26897 msgid "guestfs_copy_file_to_device"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:1460
26902 #, no-wrap
26903 msgid ""
26904 " int\n"
26905 " guestfs_copy_file_to_device (guestfs_h *g,\n"
26906 "                              const char *src,\n"
26907 "                              const char *dest,\n"
26908 "                              ...);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: verbatim
26913 #: ../src/guestfs-actions.pod:1471
26914 #, no-wrap
26915 msgid ""
26916 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26917 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26918 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
26919 "\n"
26920 msgstr ""
26921
26922 #. type: =head2
26923 #: ../src/guestfs-actions.pod:1487
26924 msgid "guestfs_copy_file_to_device_va"
26925 msgstr ""
26926
26927 #. type: verbatim
26928 #: ../src/guestfs-actions.pod:1489
26929 #, no-wrap
26930 msgid ""
26931 " int\n"
26932 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
26933 "                                 const char *src,\n"
26934 "                                 const char *dest,\n"
26935 "                                 va_list args);\n"
26936 "\n"
26937 msgstr ""
26938
26939 #. type: textblock
26940 #: ../src/guestfs-actions.pod:1495
26941 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
26942 msgstr ""
26943
26944 #. type: =head2
26945 #: ../src/guestfs-actions.pod:1499
26946 msgid "guestfs_copy_file_to_device_argv"
26947 msgstr ""
26948
26949 #. type: verbatim
26950 #: ../src/guestfs-actions.pod:1501
26951 #, no-wrap
26952 msgid ""
26953 " int\n"
26954 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
26955 "                                   const char *src,\n"
26956 "                                   const char *dest,\n"
26957 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: textblock
26962 #: ../src/guestfs-actions.pod:1507
26963 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
26964 msgstr ""
26965
26966 #. type: =head2
26967 #: ../src/guestfs-actions.pod:1511
26968 msgid "guestfs_copy_file_to_file"
26969 msgstr ""
26970
26971 #. type: verbatim
26972 #: ../src/guestfs-actions.pod:1513
26973 #, no-wrap
26974 msgid ""
26975 " int\n"
26976 " guestfs_copy_file_to_file (guestfs_h *g,\n"
26977 "                            const char *src,\n"
26978 "                            const char *dest,\n"
26979 "                            ...);\n"
26980 "\n"
26981 msgstr ""
26982
26983 #. type: verbatim
26984 #: ../src/guestfs-actions.pod:1524
26985 #, no-wrap
26986 msgid ""
26987 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
26988 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
26989 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../src/guestfs-actions.pod:1531
26995 msgid ""
26996 "This is B<not> the function you want for copying files.  This is for copying "
26997 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
26998 "C<guestfs_mv> for general file copying and moving functions."
26999 msgstr ""
27000
27001 #. type: =head2
27002 #: ../src/guestfs-actions.pod:1545
27003 msgid "guestfs_copy_file_to_file_va"
27004 msgstr ""
27005
27006 #. type: verbatim
27007 #: ../src/guestfs-actions.pod:1547
27008 #, no-wrap
27009 msgid ""
27010 " int\n"
27011 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27012 "                               const char *src,\n"
27013 "                               const char *dest,\n"
27014 "                               va_list args);\n"
27015 "\n"
27016 msgstr ""
27017
27018 #. type: textblock
27019 #: ../src/guestfs-actions.pod:1553
27020 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27021 msgstr ""
27022
27023 #. type: =head2
27024 #: ../src/guestfs-actions.pod:1557
27025 msgid "guestfs_copy_file_to_file_argv"
27026 msgstr ""
27027
27028 #. type: verbatim
27029 #: ../src/guestfs-actions.pod:1559
27030 #, no-wrap
27031 msgid ""
27032 " int\n"
27033 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27034 "                                 const char *src,\n"
27035 "                                 const char *dest,\n"
27036 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27037 "\n"
27038 msgstr ""
27039
27040 #. type: textblock
27041 #: ../src/guestfs-actions.pod:1565
27042 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27043 msgstr ""
27044
27045 #. type: =head2
27046 #: ../src/guestfs-actions.pod:1569
27047 msgid "guestfs_copy_size"
27048 msgstr ""
27049
27050 #. type: verbatim
27051 #: ../src/guestfs-actions.pod:1571
27052 #, no-wrap
27053 msgid ""
27054 " int\n"
27055 " guestfs_copy_size (guestfs_h *g,\n"
27056 "                    const char *src,\n"
27057 "                    const char *dest,\n"
27058 "                    int64_t size);\n"
27059 "\n"
27060 msgstr ""
27061
27062 #. type: textblock
27063 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27064 msgid ""
27065 "I<This function is deprecated.> In new code, use the L</"
27066 "guestfs_copy_device_to_device> call instead."
27067 msgstr ""
27068
27069 #. type: textblock
27070 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4831
27071 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:8211
27072 #: ../src/guestfs-actions.pod:8231 ../src/guestfs-actions.pod:8317
27073 msgid "(Added in 1.0.87)"
27074 msgstr ""
27075
27076 #. type: =head2
27077 #: ../src/guestfs-actions.pod:1599
27078 msgid "guestfs_cp"
27079 msgstr ""
27080
27081 #. type: verbatim
27082 #: ../src/guestfs-actions.pod:1601
27083 #, no-wrap
27084 msgid ""
27085 " int\n"
27086 " guestfs_cp (guestfs_h *g,\n"
27087 "             const char *src,\n"
27088 "             const char *dest);\n"
27089 "\n"
27090 msgstr ""
27091
27092 #. type: textblock
27093 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27094 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27095 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5713
27096 #: ../src/guestfs-actions.pod:6205
27097 msgid "(Added in 1.0.18)"
27098 msgstr ""
27099
27100 #. type: =head2
27101 #: ../src/guestfs-actions.pod:1613
27102 msgid "guestfs_cp_a"
27103 msgstr ""
27104
27105 #. type: verbatim
27106 #: ../src/guestfs-actions.pod:1615
27107 #, no-wrap
27108 msgid ""
27109 " int\n"
27110 " guestfs_cp_a (guestfs_h *g,\n"
27111 "               const char *src,\n"
27112 "               const char *dest);\n"
27113 "\n"
27114 msgstr ""
27115
27116 #. type: =head2
27117 #: ../src/guestfs-actions.pod:1627
27118 msgid "guestfs_dd"
27119 msgstr ""
27120
27121 #. type: verbatim
27122 #: ../src/guestfs-actions.pod:1629
27123 #, no-wrap
27124 msgid ""
27125 " int\n"
27126 " guestfs_dd (guestfs_h *g,\n"
27127 "             const char *src,\n"
27128 "             const char *dest);\n"
27129 "\n"
27130 msgstr ""
27131
27132 #. type: textblock
27133 #: ../src/guestfs-actions.pod:1646
27134 msgid ""
27135 "If the destination is a device, it must be as large or larger than the "
27136 "source file or device, otherwise the copy will fail.  This command cannot do "
27137 "partial copies (see C<guestfs_copy_device_to_device>)."
27138 msgstr ""
27139
27140 #. type: =head2
27141 #: ../src/guestfs-actions.pod:1655
27142 msgid "guestfs_df"
27143 msgstr ""
27144
27145 #. type: verbatim
27146 #: ../src/guestfs-actions.pod:1657
27147 #, no-wrap
27148 msgid ""
27149 " char *\n"
27150 " guestfs_df (guestfs_h *g);\n"
27151 "\n"
27152 msgstr ""
27153
27154 #. type: textblock
27155 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27156 msgid ""
27157 "This command is mostly useful for interactive sessions.  It is I<not> "
27158 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27159 "from programs."
27160 msgstr ""
27161
27162 #. type: textblock
27163 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27164 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27165 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27166 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5613
27167 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7618
27168 #: ../src/guestfs-actions.pod:8357 ../src/guestfs-actions.pod:8370
27169 #: ../src/guestfs-actions.pod:8383
27170 msgid "(Added in 1.0.54)"
27171 msgstr ""
27172
27173 #. type: =head2
27174 #: ../src/guestfs-actions.pod:1671
27175 msgid "guestfs_df_h"
27176 msgstr ""
27177
27178 #. type: verbatim
27179 #: ../src/guestfs-actions.pod:1673
27180 #, no-wrap
27181 msgid ""
27182 " char *\n"
27183 " guestfs_df_h (guestfs_h *g);\n"
27184 "\n"
27185 msgstr ""
27186
27187 #. type: =head2
27188 #: ../src/guestfs-actions.pod:1688
27189 msgid "guestfs_dmesg"
27190 msgstr ""
27191
27192 #. type: verbatim
27193 #: ../src/guestfs-actions.pod:1690
27194 #, no-wrap
27195 msgid ""
27196 " char *\n"
27197 " guestfs_dmesg (guestfs_h *g);\n"
27198 "\n"
27199 msgstr ""
27200
27201 #. type: textblock
27202 #: ../src/guestfs-actions.pod:1697
27203 msgid ""
27204 "Another way to get the same information is to enable verbose messages with "
27205 "C<guestfs_set_verbose> or by setting the environment variable "
27206 "C<LIBGUESTFS_DEBUG=1> before running the program."
27207 msgstr ""
27208
27209 #. type: =head2
27210 #: ../src/guestfs-actions.pod:1707
27211 msgid "guestfs_download"
27212 msgstr ""
27213
27214 #. type: verbatim
27215 #: ../src/guestfs-actions.pod:1709
27216 #, no-wrap
27217 msgid ""
27218 " int\n"
27219 " guestfs_download (guestfs_h *g,\n"
27220 "                   const char *remotefilename,\n"
27221 "                   const char *filename);\n"
27222 "\n"
27223 msgstr ""
27224
27225 #. type: textblock
27226 #: ../src/guestfs-actions.pod:1719
27227 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27228 msgstr ""
27229
27230 #. type: =head2
27231 #: ../src/guestfs-actions.pod:1730
27232 msgid "guestfs_download_offset"
27233 msgstr ""
27234
27235 #. type: verbatim
27236 #: ../src/guestfs-actions.pod:1732
27237 #, no-wrap
27238 msgid ""
27239 " int\n"
27240 " guestfs_download_offset (guestfs_h *g,\n"
27241 "                          const char *remotefilename,\n"
27242 "                          const char *filename,\n"
27243 "                          int64_t offset,\n"
27244 "                          int64_t size);\n"
27245 "\n"
27246 msgstr ""
27247
27248 #. type: textblock
27249 #: ../src/guestfs-actions.pod:1745
27250 msgid ""
27251 "Note that there is no limit on the amount of data that can be downloaded "
27252 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27253 "full amount unless an error occurs."
27254 msgstr ""
27255
27256 #. type: textblock
27257 #: ../src/guestfs-actions.pod:1750
27258 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27259 msgstr ""
27260
27261 #. type: textblock
27262 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8015
27263 msgid "(Added in 1.5.17)"
27264 msgstr ""
27265
27266 #. type: =head2
27267 #: ../src/guestfs-actions.pod:1761
27268 msgid "guestfs_drop_caches"
27269 msgstr ""
27270
27271 #. type: verbatim
27272 #: ../src/guestfs-actions.pod:1763
27273 #, no-wrap
27274 msgid ""
27275 " int\n"
27276 " guestfs_drop_caches (guestfs_h *g,\n"
27277 "                      int whattodrop);\n"
27278 "\n"
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:1781
27283 msgid "guestfs_du"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:1783
27288 #, no-wrap
27289 msgid ""
27290 " int64_t\n"
27291 " guestfs_du (guestfs_h *g,\n"
27292 "             const char *path);\n"
27293 "\n"
27294 msgstr ""
27295
27296 #. type: =head2
27297 #: ../src/guestfs-actions.pod:1806
27298 msgid "guestfs_e2fsck_f"
27299 msgstr ""
27300
27301 #. type: verbatim
27302 #: ../src/guestfs-actions.pod:1808
27303 #, no-wrap
27304 msgid ""
27305 " int\n"
27306 " guestfs_e2fsck_f (guestfs_h *g,\n"
27307 "                   const char *device);\n"
27308 "\n"
27309 msgstr ""
27310
27311 #. type: textblock
27312 #: ../src/guestfs-actions.pod:1816
27313 msgid ""
27314 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27315 "Normally you should use C<guestfs_fsck>."
27316 msgstr ""
27317
27318 #. type: textblock
27319 #: ../src/guestfs-actions.pod:1821
27320 msgid "(Added in 1.0.29)"
27321 msgstr ""
27322
27323 #. type: =head2
27324 #: ../src/guestfs-actions.pod:1823
27325 msgid "guestfs_echo_daemon"
27326 msgstr ""
27327
27328 #. type: verbatim
27329 #: ../src/guestfs-actions.pod:1825
27330 #, no-wrap
27331 msgid ""
27332 " char *\n"
27333 " guestfs_echo_daemon (guestfs_h *g,\n"
27334 "                      char *const *words);\n"
27335 "\n"
27336 msgstr ""
27337
27338 #. type: textblock
27339 #: ../src/guestfs-actions.pod:1834
27340 msgid "See also C<guestfs_ping_daemon>."
27341 msgstr ""
27342
27343 #. type: textblock
27344 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
27345 #: ../src/guestfs-actions.pod:7075
27346 msgid "(Added in 1.0.69)"
27347 msgstr ""
27348
27349 #. type: =head2
27350 #: ../src/guestfs-actions.pod:1841
27351 msgid "guestfs_egrep"
27352 msgstr ""
27353
27354 #. type: verbatim
27355 #: ../src/guestfs-actions.pod:1843
27356 #, no-wrap
27357 msgid ""
27358 " char **\n"
27359 " guestfs_egrep (guestfs_h *g,\n"
27360 "                const char *regex,\n"
27361 "                const char *path);\n"
27362 "\n"
27363 msgstr ""
27364
27365 #. type: textblock
27366 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
27367 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
27368 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
27369 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
27370 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
27371 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
27372 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4330
27373 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357
27374 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:5501
27375 #: ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6588
27376 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7474
27377 #: ../src/guestfs-actions.pod:7487 ../src/guestfs-actions.pod:7500
27378 #: ../src/guestfs-actions.pod:7522 ../src/guestfs-actions.pod:7535
27379 #: ../src/guestfs-actions.pod:7548 ../src/guestfs-actions.pod:7561
27380 #: ../src/guestfs-actions.pod:8475 ../src/guestfs-actions.pod:8494
27381 #: ../src/guestfs-actions.pod:8585 ../src/guestfs-actions.pod:8604
27382 #: ../src/guestfs-actions.pod:8650 ../src/guestfs-actions.pod:8669
27383 msgid "(Added in 1.0.66)"
27384 msgstr ""
27385
27386 #. type: =head2
27387 #: ../src/guestfs-actions.pod:1860
27388 msgid "guestfs_egrepi"
27389 msgstr ""
27390
27391 #. type: verbatim
27392 #: ../src/guestfs-actions.pod:1862
27393 #, no-wrap
27394 msgid ""
27395 " char **\n"
27396 " guestfs_egrepi (guestfs_h *g,\n"
27397 "                 const char *regex,\n"
27398 "                 const char *path);\n"
27399 "\n"
27400 msgstr ""
27401
27402 #. type: =head2
27403 #: ../src/guestfs-actions.pod:1879
27404 msgid "guestfs_equal"
27405 msgstr ""
27406
27407 #. type: verbatim
27408 #: ../src/guestfs-actions.pod:1881
27409 #, no-wrap
27410 msgid ""
27411 " int\n"
27412 " guestfs_equal (guestfs_h *g,\n"
27413 "                const char *file1,\n"
27414 "                const char *file2);\n"
27415 "\n"
27416 msgstr ""
27417
27418 #. type: =head2
27419 #: ../src/guestfs-actions.pod:1895
27420 msgid "guestfs_exists"
27421 msgstr ""
27422
27423 #. type: verbatim
27424 #: ../src/guestfs-actions.pod:1897
27425 #, no-wrap
27426 msgid ""
27427 " int\n"
27428 " guestfs_exists (guestfs_h *g,\n"
27429 "                 const char *path);\n"
27430 "\n"
27431 msgstr ""
27432
27433 #. type: textblock
27434 #: ../src/guestfs-actions.pod:1904
27435 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27436 msgstr ""
27437
27438 #. type: =head2
27439 #: ../src/guestfs-actions.pod:1910
27440 msgid "guestfs_fallocate"
27441 msgstr ""
27442
27443 #. type: verbatim
27444 #: ../src/guestfs-actions.pod:1912
27445 #, no-wrap
27446 msgid ""
27447 " int\n"
27448 " guestfs_fallocate (guestfs_h *g,\n"
27449 "                    const char *path,\n"
27450 "                    int len);\n"
27451 "\n"
27452 msgstr ""
27453
27454 #. type: textblock
27455 #: ../src/guestfs-actions.pod:1917
27456 msgid ""
27457 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27458 "call instead."
27459 msgstr ""
27460
27461 #. type: =head2
27462 #: ../src/guestfs-actions.pod:1936
27463 msgid "guestfs_fallocate64"
27464 msgstr ""
27465
27466 #. type: verbatim
27467 #: ../src/guestfs-actions.pod:1938
27468 #, no-wrap
27469 msgid ""
27470 " int\n"
27471 " guestfs_fallocate64 (guestfs_h *g,\n"
27472 "                      const char *path,\n"
27473 "                      int64_t len);\n"
27474 "\n"
27475 msgstr ""
27476
27477 #. type: textblock
27478 #: ../src/guestfs-actions.pod:1947
27479 msgid ""
27480 "Note that this call allocates disk blocks for the file.  To create a sparse "
27481 "file use C<guestfs_truncate_size> instead."
27482 msgstr ""
27483
27484 #. type: textblock
27485 #: ../src/guestfs-actions.pod:1950
27486 msgid ""
27487 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27488 "oversight it only allowed 30 bit lengths to be specified, effectively "
27489 "limiting the maximum size of files created through that call to 1GB."
27490 msgstr ""
27491
27492 #. type: textblock
27493 #: ../src/guestfs-actions.pod:1961
27494 msgid "(Added in 1.3.17)"
27495 msgstr ""
27496
27497 #. type: =head2
27498 #: ../src/guestfs-actions.pod:1963
27499 msgid "guestfs_fgrep"
27500 msgstr ""
27501
27502 #. type: verbatim
27503 #: ../src/guestfs-actions.pod:1965
27504 #, no-wrap
27505 msgid ""
27506 " char **\n"
27507 " guestfs_fgrep (guestfs_h *g,\n"
27508 "                const char *pattern,\n"
27509 "                const char *path);\n"
27510 "\n"
27511 msgstr ""
27512
27513 #. type: =head2
27514 #: ../src/guestfs-actions.pod:1982
27515 msgid "guestfs_fgrepi"
27516 msgstr ""
27517
27518 #. type: verbatim
27519 #: ../src/guestfs-actions.pod:1984
27520 #, no-wrap
27521 msgid ""
27522 " char **\n"
27523 " guestfs_fgrepi (guestfs_h *g,\n"
27524 "                 const char *pattern,\n"
27525 "                 const char *path);\n"
27526 "\n"
27527 msgstr ""
27528
27529 #. type: =head2
27530 #: ../src/guestfs-actions.pod:2001
27531 msgid "guestfs_file"
27532 msgstr ""
27533
27534 #. type: verbatim
27535 #: ../src/guestfs-actions.pod:2003
27536 #, no-wrap
27537 msgid ""
27538 " char *\n"
27539 " guestfs_file (guestfs_h *g,\n"
27540 "               const char *path);\n"
27541 "\n"
27542 msgstr ""
27543
27544 #. type: textblock
27545 #: ../src/guestfs-actions.pod:2021
27546 msgid ""
27547 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27548 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27549 msgstr ""
27550
27551 #. type: =head2
27552 #: ../src/guestfs-actions.pod:2029
27553 msgid "guestfs_file_architecture"
27554 msgstr ""
27555
27556 #. type: verbatim
27557 #: ../src/guestfs-actions.pod:2031
27558 #, no-wrap
27559 msgid ""
27560 " char *\n"
27561 " guestfs_file_architecture (guestfs_h *g,\n"
27562 "                            const char *filename);\n"
27563 "\n"
27564 msgstr ""
27565
27566 #. type: textblock
27567 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27568 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27569 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27570 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27571 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27572 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27573 #: ../src/guestfs-actions.pod:4008
27574 msgid "(Added in 1.5.3)"
27575 msgstr ""
27576
27577 #. type: =head2
27578 #: ../src/guestfs-actions.pod:2141
27579 msgid "guestfs_filesize"
27580 msgstr ""
27581
27582 #. type: verbatim
27583 #: ../src/guestfs-actions.pod:2143
27584 #, no-wrap
27585 msgid ""
27586 " int64_t\n"
27587 " guestfs_filesize (guestfs_h *g,\n"
27588 "                   const char *file);\n"
27589 "\n"
27590 msgstr ""
27591
27592 #. type: textblock
27593 #: ../src/guestfs-actions.pod:2149
27594 msgid ""
27595 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27596 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27597 "devices, use C<guestfs_blockdev_getsize64>."
27598 msgstr ""
27599
27600 #. type: textblock
27601 #: ../src/guestfs-actions.pod:2155
27602 msgid "(Added in 1.0.82)"
27603 msgstr ""
27604
27605 #. type: =head2
27606 #: ../src/guestfs-actions.pod:2157
27607 msgid "guestfs_fill"
27608 msgstr ""
27609
27610 #. type: verbatim
27611 #: ../src/guestfs-actions.pod:2159
27612 #, no-wrap
27613 msgid ""
27614 " int\n"
27615 " guestfs_fill (guestfs_h *g,\n"
27616 "               int c,\n"
27617 "               int len,\n"
27618 "               const char *path);\n"
27619 "\n"
27620 msgstr ""
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:2169
27624 msgid ""
27625 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27626 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27627 "bytes use C<guestfs_fill_pattern>."
27628 msgstr ""
27629
27630 #. type: textblock
27631 #: ../src/guestfs-actions.pod:2181
27632 msgid "(Added in 1.0.79)"
27633 msgstr ""
27634
27635 #. type: =head2
27636 #: ../src/guestfs-actions.pod:2183
27637 msgid "guestfs_fill_pattern"
27638 msgstr ""
27639
27640 #. type: verbatim
27641 #: ../src/guestfs-actions.pod:2185
27642 #, no-wrap
27643 msgid ""
27644 " int\n"
27645 " guestfs_fill_pattern (guestfs_h *g,\n"
27646 "                       const char *pattern,\n"
27647 "                       int len,\n"
27648 "                       const char *path);\n"
27649 "\n"
27650 msgstr ""
27651
27652 #. type: textblock
27653 #: ../src/guestfs-actions.pod:2191
27654 msgid ""
27655 "This function is like C<guestfs_fill> except that it creates a new file of "
27656 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27657 "pattern is truncated if necessary to ensure the length of the file is "
27658 "exactly C<len> bytes."
27659 msgstr ""
27660
27661 #. type: textblock
27662 #: ../src/guestfs-actions.pod:2203
27663 msgid "(Added in 1.3.12)"
27664 msgstr ""
27665
27666 #. type: =head2
27667 #: ../src/guestfs-actions.pod:2205
27668 msgid "guestfs_find"
27669 msgstr ""
27670
27671 #. type: verbatim
27672 #: ../src/guestfs-actions.pod:2207
27673 #, no-wrap
27674 msgid ""
27675 " char **\n"
27676 " guestfs_find (guestfs_h *g,\n"
27677 "               const char *directory);\n"
27678 "\n"
27679 msgstr ""
27680
27681 #. type: textblock
27682 #: ../src/guestfs-actions.pod:2223
27683 msgid ""
27684 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27685 msgstr ""
27686
27687 #. type: textblock
27688 #: ../src/guestfs-actions.pod:2236
27689 msgid "See also C<guestfs_find0>."
27690 msgstr ""
27691
27692 #. type: textblock
27693 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4768
27694 #: ../src/guestfs-actions.pod:6623
27695 msgid "(Added in 1.0.27)"
27696 msgstr ""
27697
27698 #. type: =head2
27699 #: ../src/guestfs-actions.pod:2247
27700 msgid "guestfs_find0"
27701 msgstr ""
27702
27703 #. type: verbatim
27704 #: ../src/guestfs-actions.pod:2249
27705 #, no-wrap
27706 msgid ""
27707 " int\n"
27708 " guestfs_find0 (guestfs_h *g,\n"
27709 "                const char *directory,\n"
27710 "                const char *files);\n"
27711 "\n"
27712 msgstr ""
27713
27714 #. type: textblock
27715 #: ../src/guestfs-actions.pod:2258
27716 msgid ""
27717 "This command works the same way as C<guestfs_find> with the following "
27718 "exceptions:"
27719 msgstr ""
27720
27721 #. type: textblock
27722 #: ../src/guestfs-actions.pod:2285
27723 msgid "(Added in 1.0.74)"
27724 msgstr ""
27725
27726 #. type: =head2
27727 #: ../src/guestfs-actions.pod:2287
27728 msgid "guestfs_findfs_label"
27729 msgstr ""
27730
27731 #. type: verbatim
27732 #: ../src/guestfs-actions.pod:2289
27733 #, no-wrap
27734 msgid ""
27735 " char *\n"
27736 " guestfs_findfs_label (guestfs_h *g,\n"
27737 "                       const char *label);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:2297
27743 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27744 msgstr ""
27745
27746 #. type: =head2
27747 #: ../src/guestfs-actions.pod:2304
27748 msgid "guestfs_findfs_uuid"
27749 msgstr ""
27750
27751 #. type: verbatim
27752 #: ../src/guestfs-actions.pod:2306
27753 #, no-wrap
27754 msgid ""
27755 " char *\n"
27756 " guestfs_findfs_uuid (guestfs_h *g,\n"
27757 "                      const char *uuid);\n"
27758 "\n"
27759 msgstr ""
27760
27761 #. type: textblock
27762 #: ../src/guestfs-actions.pod:2314
27763 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27764 msgstr ""
27765
27766 #. type: =head2
27767 #: ../src/guestfs-actions.pod:2321
27768 msgid "guestfs_fsck"
27769 msgstr ""
27770
27771 #. type: verbatim
27772 #: ../src/guestfs-actions.pod:2323
27773 #, no-wrap
27774 msgid ""
27775 " int\n"
27776 " guestfs_fsck (guestfs_h *g,\n"
27777 "               const char *fstype,\n"
27778 "               const char *device);\n"
27779 "\n"
27780 msgstr ""
27781
27782 #. type: textblock
27783 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8522
27784 msgid "(Added in 1.0.16)"
27785 msgstr ""
27786
27787 #. type: =head2
27788 #: ../src/guestfs-actions.pod:2360
27789 msgid "guestfs_get_append"
27790 msgstr ""
27791
27792 #. type: verbatim
27793 #: ../src/guestfs-actions.pod:2362
27794 #, no-wrap
27795 msgid ""
27796 " const char *\n"
27797 " guestfs_get_append (guestfs_h *g);\n"
27798 "\n"
27799 msgstr ""
27800
27801 #. type: textblock
27802 #: ../src/guestfs-actions.pod:2370
27803 msgid ""
27804 "This function returns a string which may be NULL.  There is no way to return "
27805 "an error from this function.  The string is owned by the guest handle and "
27806 "must I<not> be freed."
27807 msgstr ""
27808
27809 #. type: textblock
27810 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6301
27811 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7229
27812 #: ../src/guestfs-actions.pod:7248 ../src/guestfs-actions.pod:7264
27813 #: ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:8162
27814 #: ../src/guestfs-actions.pod:8177 ../src/guestfs-actions.pod:8566
27815 msgid "(Added in 1.0.26)"
27816 msgstr ""
27817
27818 #. type: =head2
27819 #: ../src/guestfs-actions.pod:2376
27820 msgid "guestfs_get_attach_method"
27821 msgstr ""
27822
27823 #. type: verbatim
27824 #: ../src/guestfs-actions.pod:2378
27825 #, no-wrap
27826 msgid ""
27827 " char *\n"
27828 " guestfs_get_attach_method (guestfs_h *g);\n"
27829 "\n"
27830 msgstr ""
27831
27832 #. type: textblock
27833 #: ../src/guestfs-actions.pod:2381
27834 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27835 msgstr ""
27836
27837 #. type: textblock
27838 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6810
27839 msgid "(Added in 1.9.8)"
27840 msgstr ""
27841
27842 #. type: =head2
27843 #: ../src/guestfs-actions.pod:2388
27844 msgid "guestfs_get_autosync"
27845 msgstr ""
27846
27847 #. type: verbatim
27848 #: ../src/guestfs-actions.pod:2390
27849 #, no-wrap
27850 msgid ""
27851 " int\n"
27852 " guestfs_get_autosync (guestfs_h *g);\n"
27853 "\n"
27854 msgstr ""
27855
27856 #. type: =head2
27857 #: ../src/guestfs-actions.pod:2399
27858 msgid "guestfs_get_direct"
27859 msgstr ""
27860
27861 #. type: verbatim
27862 #: ../src/guestfs-actions.pod:2401
27863 #, no-wrap
27864 msgid ""
27865 " int\n"
27866 " guestfs_get_direct (guestfs_h *g);\n"
27867 "\n"
27868 msgstr ""
27869
27870 #. type: textblock
27871 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6851
27872 msgid "(Added in 1.0.72)"
27873 msgstr ""
27874
27875 #. type: =head2
27876 #: ../src/guestfs-actions.pod:2410
27877 msgid "guestfs_get_e2label"
27878 msgstr ""
27879
27880 #. type: verbatim
27881 #: ../src/guestfs-actions.pod:2412
27882 #, no-wrap
27883 msgid ""
27884 " char *\n"
27885 " guestfs_get_e2label (guestfs_h *g,\n"
27886 "                      const char *device);\n"
27887 "\n"
27888 msgstr ""
27889
27890 #. type: textblock
27891 #: ../src/guestfs-actions.pod:2416
27892 msgid ""
27893 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27894 "call instead."
27895 msgstr ""
27896
27897 #. type: textblock
27898 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
27899 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
27900 msgid "(Added in 1.0.15)"
27901 msgstr ""
27902
27903 #. type: =head2
27904 #: ../src/guestfs-actions.pod:2431
27905 msgid "guestfs_get_e2uuid"
27906 msgstr ""
27907
27908 #. type: verbatim
27909 #: ../src/guestfs-actions.pod:2433
27910 #, no-wrap
27911 msgid ""
27912 " char *\n"
27913 " guestfs_get_e2uuid (guestfs_h *g,\n"
27914 "                     const char *device);\n"
27915 "\n"
27916 msgstr ""
27917
27918 #. type: textblock
27919 #: ../src/guestfs-actions.pod:2437
27920 msgid ""
27921 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27922 "call instead."
27923 msgstr ""
27924
27925 #. type: =head2
27926 #: ../src/guestfs-actions.pod:2452
27927 msgid "guestfs_get_memsize"
27928 msgstr ""
27929
27930 #. type: verbatim
27931 #: ../src/guestfs-actions.pod:2454
27932 #, no-wrap
27933 msgid ""
27934 " int\n"
27935 " guestfs_get_memsize (guestfs_h *g);\n"
27936 "\n"
27937 msgstr ""
27938
27939 #. type: textblock
27940 #: ../src/guestfs-actions.pod:2460
27941 msgid ""
27942 "If C<guestfs_set_memsize> was not called on this handle, and if "
27943 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27944 "value for memsize."
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5197
27949 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5425
27950 #: ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5456
27951 #: ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5486
27952 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6909
27953 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7931
27954 msgid "(Added in 1.0.55)"
27955 msgstr ""
27956
27957 #. type: =head2
27958 #: ../src/guestfs-actions.pod:2471
27959 msgid "guestfs_get_network"
27960 msgstr ""
27961
27962 #. type: verbatim
27963 #: ../src/guestfs-actions.pod:2473
27964 #, no-wrap
27965 msgid ""
27966 " int\n"
27967 " guestfs_get_network (guestfs_h *g);\n"
27968 "\n"
27969 msgstr ""
27970
27971 #. type: textblock
27972 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6928
27973 msgid "(Added in 1.5.4)"
27974 msgstr ""
27975
27976 #. type: =head2
27977 #: ../src/guestfs-actions.pod:2482
27978 msgid "guestfs_get_path"
27979 msgstr ""
27980
27981 #. type: verbatim
27982 #: ../src/guestfs-actions.pod:2484
27983 #, no-wrap
27984 msgid ""
27985 " const char *\n"
27986 " guestfs_get_path (guestfs_h *g);\n"
27987 "\n"
27988 msgstr ""
27989
27990 #. type: textblock
27991 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
27992 msgid ""
27993 "This function returns a string, or NULL on error.  The string is owned by "
27994 "the guest handle and must I<not> be freed."
27995 msgstr ""
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:2497
27999 msgid "guestfs_get_pgroup"
28000 msgstr ""
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:2499
28004 #, no-wrap
28005 msgid ""
28006 " int\n"
28007 " guestfs_get_pgroup (guestfs_h *g);\n"
28008 "\n"
28009 msgstr ""
28010
28011 #. type: textblock
28012 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6964
28013 #: ../src/guestfs-actions.pod:8423
28014 msgid "(Added in 1.11.18)"
28015 msgstr ""
28016
28017 #. type: =head2
28018 #: ../src/guestfs-actions.pod:2508
28019 msgid "guestfs_get_pid"
28020 msgstr ""
28021
28022 #. type: verbatim
28023 #: ../src/guestfs-actions.pod:2510
28024 #, no-wrap
28025 msgid ""
28026 " int\n"
28027 " guestfs_get_pid (guestfs_h *g);\n"
28028 "\n"
28029 msgstr ""
28030
28031 #. type: textblock
28032 #: ../src/guestfs-actions.pod:2520
28033 msgid "(Added in 1.0.56)"
28034 msgstr ""
28035
28036 #. type: =head2
28037 #: ../src/guestfs-actions.pod:2522
28038 msgid "guestfs_get_qemu"
28039 msgstr ""
28040
28041 #. type: verbatim
28042 #: ../src/guestfs-actions.pod:2524
28043 #, no-wrap
28044 msgid ""
28045 " const char *\n"
28046 " guestfs_get_qemu (guestfs_h *g);\n"
28047 "\n"
28048 msgstr ""
28049
28050 #. type: textblock
28051 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6992
28052 msgid "(Added in 1.0.6)"
28053 msgstr ""
28054
28055 #. type: =head2
28056 #: ../src/guestfs-actions.pod:2537
28057 msgid "guestfs_get_recovery_proc"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:2539
28062 #, no-wrap
28063 msgid ""
28064 " int\n"
28065 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28066 "\n"
28067 msgstr ""
28068
28069 #. type: textblock
28070 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28071 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4866
28072 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:6231
28073 #: ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:7016
28074 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7734
28075 #: ../src/guestfs-actions.pod:8046
28076 msgid "(Added in 1.0.77)"
28077 msgstr ""
28078
28079 #. type: =head2
28080 #: ../src/guestfs-actions.pod:2548
28081 msgid "guestfs_get_selinux"
28082 msgstr ""
28083
28084 #. type: verbatim
28085 #: ../src/guestfs-actions.pod:2550
28086 #, no-wrap
28087 msgid ""
28088 " int\n"
28089 " guestfs_get_selinux (guestfs_h *g);\n"
28090 "\n"
28091 msgstr ""
28092
28093 #. type: textblock
28094 #: ../src/guestfs-actions.pod:2553
28095 msgid ""
28096 "This returns the current setting of the selinux flag which is passed to the "
28097 "appliance at boot time.  See C<guestfs_set_selinux>."
28098 msgstr ""
28099
28100 #. type: textblock
28101 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28102 #: ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7109
28103 msgid "(Added in 1.0.67)"
28104 msgstr ""
28105
28106 #. type: =head2
28107 #: ../src/guestfs-actions.pod:2563
28108 msgid "guestfs_get_smp"
28109 msgstr ""
28110
28111 #. type: verbatim
28112 #: ../src/guestfs-actions.pod:2565
28113 #, no-wrap
28114 msgid ""
28115 " int\n"
28116 " guestfs_get_smp (guestfs_h *g);\n"
28117 "\n"
28118 msgstr ""
28119
28120 #. type: =head2
28121 #: ../src/guestfs-actions.pod:2574
28122 msgid "guestfs_get_state"
28123 msgstr ""
28124
28125 #. type: verbatim
28126 #: ../src/guestfs-actions.pod:2576
28127 #, no-wrap
28128 msgid ""
28129 " int\n"
28130 " guestfs_get_state (guestfs_h *g);\n"
28131 "\n"
28132 msgstr ""
28133
28134 #. type: =head2
28135 #: ../src/guestfs-actions.pod:2588
28136 msgid "guestfs_get_trace"
28137 msgstr ""
28138
28139 #. type: verbatim
28140 #: ../src/guestfs-actions.pod:2590
28141 #, no-wrap
28142 msgid ""
28143 " int\n"
28144 " guestfs_get_trace (guestfs_h *g);\n"
28145 "\n"
28146 msgstr ""
28147
28148 #. type: =head2
28149 #: ../src/guestfs-actions.pod:2599
28150 msgid "guestfs_get_umask"
28151 msgstr ""
28152
28153 #. type: verbatim
28154 #: ../src/guestfs-actions.pod:2601
28155 #, no-wrap
28156 msgid ""
28157 " int\n"
28158 " guestfs_get_umask (guestfs_h *g);\n"
28159 "\n"
28160 msgstr ""
28161
28162 #. type: textblock
28163 #: ../src/guestfs-actions.pod:2604
28164 msgid ""
28165 "Return the current umask.  By default the umask is C<022> unless it has been "
28166 "set by calling C<guestfs_umask>."
28167 msgstr ""
28168
28169 #. type: =head2
28170 #: ../src/guestfs-actions.pod:2611
28171 msgid "guestfs_get_verbose"
28172 msgstr ""
28173
28174 #. type: verbatim
28175 #: ../src/guestfs-actions.pod:2613
28176 #, no-wrap
28177 msgid ""
28178 " int\n"
28179 " guestfs_get_verbose (guestfs_h *g);\n"
28180 "\n"
28181 msgstr ""
28182
28183 #. type: =head2
28184 #: ../src/guestfs-actions.pod:2622
28185 msgid "guestfs_getcon"
28186 msgstr ""
28187
28188 #. type: verbatim
28189 #: ../src/guestfs-actions.pod:2624
28190 #, no-wrap
28191 msgid ""
28192 " char *\n"
28193 " guestfs_getcon (guestfs_h *g);\n"
28194 "\n"
28195 msgstr ""
28196
28197 #. type: textblock
28198 #: ../src/guestfs-actions.pod:2629
28199 msgid ""
28200 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28201 msgstr ""
28202
28203 #. type: =head2
28204 #: ../src/guestfs-actions.pod:2637
28205 msgid "guestfs_getxattr"
28206 msgstr ""
28207
28208 #. type: verbatim
28209 #: ../src/guestfs-actions.pod:2639
28210 #, no-wrap
28211 msgid ""
28212 " char *\n"
28213 " guestfs_getxattr (guestfs_h *g,\n"
28214 "                   const char *path,\n"
28215 "                   const char *name,\n"
28216 "                   size_t *size_r);\n"
28217 "\n"
28218 msgstr ""
28219
28220 #. type: textblock
28221 #: ../src/guestfs-actions.pod:2645
28222 msgid ""
28223 "Get a single extended attribute from file C<path> named C<name>.  This call "
28224 "follows symlinks.  If you want to lookup an extended attribute for the "
28225 "symlink itself, use C<guestfs_lgetxattr>."
28226 msgstr ""
28227
28228 #. type: textblock
28229 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
28230 msgid ""
28231 "Normally it is better to get all extended attributes from a file in one go "
28232 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28233 "implementations are buggy and do not provide a way to list out attributes.  "
28234 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28235 "extended attributes you want in advance and call this function."
28236 msgstr ""
28237
28238 #. type: textblock
28239 #: ../src/guestfs-actions.pod:2659
28240 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28241 msgstr ""
28242
28243 #. type: textblock
28244 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
28245 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
28246 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6250
28247 #: ../src/guestfs-actions.pod:6431
28248 msgid ""
28249 "This function returns a buffer, or NULL on error.  The size of the returned "
28250 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28251 "after use>."
28252 msgstr ""
28253
28254 #. type: textblock
28255 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
28256 msgid "(Added in 1.7.24)"
28257 msgstr ""
28258
28259 #. type: =head2
28260 #: ../src/guestfs-actions.pod:2667
28261 msgid "guestfs_getxattrs"
28262 msgstr ""
28263
28264 #. type: verbatim
28265 #: ../src/guestfs-actions.pod:2669
28266 #, no-wrap
28267 msgid ""
28268 " struct guestfs_xattr_list *\n"
28269 " guestfs_getxattrs (guestfs_h *g,\n"
28270 "                    const char *path);\n"
28271 "\n"
28272 msgstr ""
28273
28274 #. type: textblock
28275 #: ../src/guestfs-actions.pod:2679
28276 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28277 msgstr ""
28278
28279 #. type: textblock
28280 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
28281 #: ../src/guestfs-actions.pod:4862
28282 msgid ""
28283 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28284 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28285 msgstr ""
28286
28287 #. type: textblock
28288 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
28289 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4422
28290 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:7128
28291 #: ../src/guestfs-actions.pod:8631
28292 msgid "(Added in 1.0.59)"
28293 msgstr ""
28294
28295 #. type: =head2
28296 #: ../src/guestfs-actions.pod:2687
28297 msgid "guestfs_glob_expand"
28298 msgstr ""
28299
28300 #. type: verbatim
28301 #: ../src/guestfs-actions.pod:2689
28302 #, no-wrap
28303 msgid ""
28304 " char **\n"
28305 " guestfs_glob_expand (guestfs_h *g,\n"
28306 "                      const char *pattern);\n"
28307 "\n"
28308 msgstr ""
28309
28310 #. type: textblock
28311 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7312
28312 #: ../src/guestfs-actions.pod:7329
28313 msgid "(Added in 1.0.50)"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:2710
28318 msgid "guestfs_grep"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:2712
28323 #, no-wrap
28324 msgid ""
28325 " char **\n"
28326 " guestfs_grep (guestfs_h *g,\n"
28327 "               const char *regex,\n"
28328 "               const char *path);\n"
28329 "\n"
28330 msgstr ""
28331
28332 #. type: =head2
28333 #: ../src/guestfs-actions.pod:2729
28334 msgid "guestfs_grepi"
28335 msgstr ""
28336
28337 #. type: verbatim
28338 #: ../src/guestfs-actions.pod:2731
28339 #, no-wrap
28340 msgid ""
28341 " char **\n"
28342 " guestfs_grepi (guestfs_h *g,\n"
28343 "                const char *regex,\n"
28344 "                const char *path);\n"
28345 "\n"
28346 msgstr ""
28347
28348 #. type: =head2
28349 #: ../src/guestfs-actions.pod:2748
28350 msgid "guestfs_grub_install"
28351 msgstr ""
28352
28353 #. type: verbatim
28354 #: ../src/guestfs-actions.pod:2750
28355 #, no-wrap
28356 msgid ""
28357 " int\n"
28358 " guestfs_grub_install (guestfs_h *g,\n"
28359 "                       const char *root,\n"
28360 "                       const char *device);\n"
28361 "\n"
28362 msgstr ""
28363
28364 #. type: textblock
28365 #: ../src/guestfs-actions.pod:2793
28366 msgid "(Added in 1.0.17)"
28367 msgstr ""
28368
28369 #. type: =head2
28370 #: ../src/guestfs-actions.pod:2795
28371 msgid "guestfs_head"
28372 msgstr ""
28373
28374 #. type: verbatim
28375 #: ../src/guestfs-actions.pod:2797
28376 #, no-wrap
28377 msgid ""
28378 " char **\n"
28379 " guestfs_head (guestfs_h *g,\n"
28380 "               const char *path);\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: =head2
28385 #: ../src/guestfs-actions.pod:2813
28386 msgid "guestfs_head_n"
28387 msgstr ""
28388
28389 #. type: verbatim
28390 #: ../src/guestfs-actions.pod:2815
28391 #, no-wrap
28392 msgid ""
28393 " char **\n"
28394 " guestfs_head_n (guestfs_h *g,\n"
28395 "                 int nrlines,\n"
28396 "                 const char *path);\n"
28397 "\n"
28398 msgstr ""
28399
28400 #. type: =head2
28401 #: ../src/guestfs-actions.pod:2837
28402 msgid "guestfs_hexdump"
28403 msgstr ""
28404
28405 #. type: verbatim
28406 #: ../src/guestfs-actions.pod:2839
28407 #, no-wrap
28408 msgid ""
28409 " char *\n"
28410 " guestfs_hexdump (guestfs_h *g,\n"
28411 "                  const char *path);\n"
28412 "\n"
28413 msgstr ""
28414
28415 #. type: textblock
28416 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7393
28417 #: ../src/guestfs-actions.pod:7448
28418 msgid "(Added in 1.0.22)"
28419 msgstr ""
28420
28421 #. type: =head2
28422 #: ../src/guestfs-actions.pod:2854
28423 msgid "guestfs_initrd_cat"
28424 msgstr ""
28425
28426 #. type: verbatim
28427 #: ../src/guestfs-actions.pod:2856
28428 #, no-wrap
28429 msgid ""
28430 " char *\n"
28431 " guestfs_initrd_cat (guestfs_h *g,\n"
28432 "                     const char *initrdpath,\n"
28433 "                     const char *filename,\n"
28434 "                     size_t *size_r);\n"
28435 "\n"
28436 msgstr ""
28437
28438 #. type: textblock
28439 #: ../src/guestfs-actions.pod:2872
28440 msgid "See also C<guestfs_initrd_list>."
28441 msgstr ""
28442
28443 #. type: =head2
28444 #: ../src/guestfs-actions.pod:2883
28445 msgid "guestfs_initrd_list"
28446 msgstr ""
28447
28448 #. type: verbatim
28449 #: ../src/guestfs-actions.pod:2885
28450 #, no-wrap
28451 msgid ""
28452 " char **\n"
28453 " guestfs_initrd_list (guestfs_h *g,\n"
28454 "                      const char *path);\n"
28455 "\n"
28456 msgstr ""
28457
28458 #. type: =head2
28459 #: ../src/guestfs-actions.pod:2905
28460 msgid "guestfs_inotify_add_watch"
28461 msgstr ""
28462
28463 #. type: verbatim
28464 #: ../src/guestfs-actions.pod:2907
28465 #, no-wrap
28466 msgid ""
28467 " int64_t\n"
28468 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28469 "                            const char *path,\n"
28470 "                            int mask);\n"
28471 "\n"
28472 msgstr ""
28473
28474 #. type: =head2
28475 #: ../src/guestfs-actions.pod:2926
28476 msgid "guestfs_inotify_close"
28477 msgstr ""
28478
28479 #. type: verbatim
28480 #: ../src/guestfs-actions.pod:2928
28481 #, no-wrap
28482 msgid ""
28483 " int\n"
28484 " guestfs_inotify_close (guestfs_h *g);\n"
28485 "\n"
28486 msgstr ""
28487
28488 #. type: =head2
28489 #: ../src/guestfs-actions.pod:2939
28490 msgid "guestfs_inotify_files"
28491 msgstr ""
28492
28493 #. type: verbatim
28494 #: ../src/guestfs-actions.pod:2941
28495 #, no-wrap
28496 msgid ""
28497 " char **\n"
28498 " guestfs_inotify_files (guestfs_h *g);\n"
28499 "\n"
28500 msgstr ""
28501
28502 #. type: textblock
28503 #: ../src/guestfs-actions.pod:2944
28504 msgid ""
28505 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28506 "returns a list of pathnames of objects that were touched.  The returned "
28507 "pathnames are sorted and deduplicated."
28508 msgstr ""
28509
28510 #. type: =head2
28511 #: ../src/guestfs-actions.pod:2954
28512 msgid "guestfs_inotify_init"
28513 msgstr ""
28514
28515 #. type: verbatim
28516 #: ../src/guestfs-actions.pod:2956
28517 #, no-wrap
28518 msgid ""
28519 " int\n"
28520 " guestfs_inotify_init (guestfs_h *g,\n"
28521 "                       int maxevents);\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:2964
28527 msgid ""
28528 "C<maxevents> is the maximum number of events which will be queued up between "
28529 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28530 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28531 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28532 "throws away events, but records the fact that it threw them away by setting "
28533 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28534 "C<guestfs_inotify_read>)."
28535 msgstr ""
28536
28537 #. type: textblock
28538 #: ../src/guestfs-actions.pod:2974
28539 msgid ""
28540 "Before any events are generated, you have to add some watches to the "
28541 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28542 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../src/guestfs-actions.pod:2980
28547 msgid ""
28548 "Queued up events should be read periodically by calling "
28549 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28550 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28551 "often enough then you risk the internal queue overflowing."
28552 msgstr ""
28553
28554 #. type: textblock
28555 #: ../src/guestfs-actions.pod:2987
28556 msgid ""
28557 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28558 "This also removes any watches automatically."
28559 msgstr ""
28560
28561 #. type: =head2
28562 #: ../src/guestfs-actions.pod:3000
28563 msgid "guestfs_inotify_read"
28564 msgstr ""
28565
28566 #. type: verbatim
28567 #: ../src/guestfs-actions.pod:3002
28568 #, no-wrap
28569 msgid ""
28570 " struct guestfs_inotify_event_list *\n"
28571 " guestfs_inotify_read (guestfs_h *g);\n"
28572 "\n"
28573 msgstr ""
28574
28575 #. type: textblock
28576 #: ../src/guestfs-actions.pod:3016
28577 msgid ""
28578 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28579 "there was an error.  I<The caller must call "
28580 "C<guestfs_free_inotify_event_list> after use>."
28581 msgstr ""
28582
28583 #. type: =head2
28584 #: ../src/guestfs-actions.pod:3022
28585 msgid "guestfs_inotify_rm_watch"
28586 msgstr ""
28587
28588 #. type: verbatim
28589 #: ../src/guestfs-actions.pod:3024
28590 #, no-wrap
28591 msgid ""
28592 " int\n"
28593 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28594 "                           int wd);\n"
28595 "\n"
28596 msgstr ""
28597
28598 #. type: textblock
28599 #: ../src/guestfs-actions.pod:3028
28600 msgid ""
28601 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28602 msgstr ""
28603
28604 #. type: =head2
28605 #: ../src/guestfs-actions.pod:3035
28606 msgid "guestfs_inspect_get_arch"
28607 msgstr ""
28608
28609 #. type: verbatim
28610 #: ../src/guestfs-actions.pod:3037
28611 #, no-wrap
28612 msgid ""
28613 " char *\n"
28614 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28615 "                           const char *root);\n"
28616 "\n"
28617 msgstr ""
28618
28619 #. type: textblock
28620 #: ../src/guestfs-actions.pod:3041
28621 msgid ""
28622 "This returns the architecture of the inspected operating system.  The "
28623 "possible return values are listed under C<guestfs_file_architecture>."
28624 msgstr ""
28625
28626 #. type: =head2
28627 #: ../src/guestfs-actions.pod:3055
28628 msgid "guestfs_inspect_get_distro"
28629 msgstr ""
28630
28631 #. type: verbatim
28632 #: ../src/guestfs-actions.pod:3057
28633 #, no-wrap
28634 msgid ""
28635 " char *\n"
28636 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28637 "                             const char *root);\n"
28638 "\n"
28639 msgstr ""
28640
28641 #. type: =head2
28642 #: ../src/guestfs-actions.pod:3157
28643 msgid "guestfs_inspect_get_drive_mappings"
28644 msgstr ""
28645
28646 #. type: verbatim
28647 #: ../src/guestfs-actions.pod:3159
28648 #, no-wrap
28649 msgid ""
28650 " char **\n"
28651 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28652 "                                     const char *root);\n"
28653 "\n"
28654 msgstr ""
28655
28656 #. type: textblock
28657 #: ../src/guestfs-actions.pod:3188
28658 msgid ""
28659 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28660 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28661 msgstr ""
28662
28663 #. type: textblock
28664 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
28665 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5000
28666 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:7870
28667 msgid ""
28668 "This function returns a NULL-terminated array of strings, or NULL if there "
28669 "was an error.  The array of strings will always have length C<2n+1>, where "
28670 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28671 "caller must free the strings and the array after use>."
28672 msgstr ""
28673
28674 #. type: textblock
28675 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
28676 msgid "(Added in 1.9.17)"
28677 msgstr ""
28678
28679 #. type: =head2
28680 #: ../src/guestfs-actions.pod:3200
28681 msgid "guestfs_inspect_get_filesystems"
28682 msgstr ""
28683
28684 #. type: verbatim
28685 #: ../src/guestfs-actions.pod:3202
28686 #, no-wrap
28687 msgid ""
28688 " char **\n"
28689 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28690 "                                  const char *root);\n"
28691 "\n"
28692 msgstr ""
28693
28694 #. type: textblock
28695 #: ../src/guestfs-actions.pod:3214
28696 msgid ""
28697 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28698 "C<guestfs_inspect_get_mountpoints>."
28699 msgstr ""
28700
28701 #. type: =head2
28702 #: ../src/guestfs-actions.pod:3223
28703 msgid "guestfs_inspect_get_format"
28704 msgstr ""
28705
28706 #. type: verbatim
28707 #: ../src/guestfs-actions.pod:3225
28708 #, no-wrap
28709 msgid ""
28710 " char *\n"
28711 " guestfs_inspect_get_format (guestfs_h *g,\n"
28712 "                             const char *root);\n"
28713 "\n"
28714 msgstr ""
28715
28716 #. type: textblock
28717 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
28718 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
28719 #: ../src/guestfs-actions.pod:6642
28720 msgid "(Added in 1.9.4)"
28721 msgstr ""
28722
28723 #. type: =head2
28724 #: ../src/guestfs-actions.pod:3261
28725 msgid "guestfs_inspect_get_hostname"
28726 msgstr ""
28727
28728 #. type: verbatim
28729 #: ../src/guestfs-actions.pod:3263
28730 #, no-wrap
28731 msgid ""
28732 " char *\n"
28733 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28734 "                               const char *root);\n"
28735 "\n"
28736 msgstr ""
28737
28738 #. type: textblock
28739 #: ../src/guestfs-actions.pod:3278
28740 msgid "(Added in 1.7.9)"
28741 msgstr ""
28742
28743 #. type: =head2
28744 #: ../src/guestfs-actions.pod:3280
28745 msgid "guestfs_inspect_get_icon"
28746 msgstr ""
28747
28748 #. type: verbatim
28749 #: ../src/guestfs-actions.pod:3282
28750 #, no-wrap
28751 msgid ""
28752 " char *\n"
28753 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28754 "                           const char *root,\n"
28755 "                           size_t *size_r,\n"
28756 "                           ...);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: verbatim
28761 #: ../src/guestfs-actions.pod:3293
28762 #, no-wrap
28763 msgid ""
28764 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28765 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28766 "\n"
28767 msgstr ""
28768
28769 #. type: textblock
28770 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
28771 #: ../src/guestfs-actions.pod:5574
28772 msgid "(Added in 1.11.12)"
28773 msgstr ""
28774
28775 #. type: =head2
28776 #: ../src/guestfs-actions.pod:3362
28777 msgid "guestfs_inspect_get_icon_va"
28778 msgstr ""
28779
28780 #. type: verbatim
28781 #: ../src/guestfs-actions.pod:3364
28782 #, no-wrap
28783 msgid ""
28784 " char *\n"
28785 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28786 "                              const char *root,\n"
28787 "                              size_t *size_r,\n"
28788 "                              va_list args);\n"
28789 "\n"
28790 msgstr ""
28791
28792 #. type: textblock
28793 #: ../src/guestfs-actions.pod:3370
28794 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28795 msgstr ""
28796
28797 #. type: =head2
28798 #: ../src/guestfs-actions.pod:3374
28799 msgid "guestfs_inspect_get_icon_argv"
28800 msgstr ""
28801
28802 #. type: verbatim
28803 #: ../src/guestfs-actions.pod:3376
28804 #, no-wrap
28805 msgid ""
28806 " char *\n"
28807 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28808 "                                const char *root,\n"
28809 "                                size_t *size_r,\n"
28810 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28811 "\n"
28812 msgstr ""
28813
28814 #. type: textblock
28815 #: ../src/guestfs-actions.pod:3382
28816 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28817 msgstr ""
28818
28819 #. type: =head2
28820 #: ../src/guestfs-actions.pod:3386
28821 msgid "guestfs_inspect_get_major_version"
28822 msgstr ""
28823
28824 #. type: verbatim
28825 #: ../src/guestfs-actions.pod:3388
28826 #, no-wrap
28827 msgid ""
28828 " int\n"
28829 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28830 "                                    const char *root);\n"
28831 "\n"
28832 msgstr ""
28833
28834 #. type: =head2
28835 #: ../src/guestfs-actions.pod:3410
28836 msgid "guestfs_inspect_get_minor_version"
28837 msgstr ""
28838
28839 #. type: verbatim
28840 #: ../src/guestfs-actions.pod:3412
28841 #, no-wrap
28842 msgid ""
28843 " int\n"
28844 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28845 "                                    const char *root);\n"
28846 "\n"
28847 msgstr ""
28848
28849 #. type: textblock
28850 #: ../src/guestfs-actions.pod:3421
28851 msgid ""
28852 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28853 "C<guestfs_inspect_get_major_version>."
28854 msgstr ""
28855
28856 #. type: =head2
28857 #: ../src/guestfs-actions.pod:3428
28858 msgid "guestfs_inspect_get_mountpoints"
28859 msgstr ""
28860
28861 #. type: verbatim
28862 #: ../src/guestfs-actions.pod:3430
28863 #, no-wrap
28864 msgid ""
28865 " char **\n"
28866 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28867 "                                  const char *root);\n"
28868 "\n"
28869 msgstr ""
28870
28871 #. type: textblock
28872 #: ../src/guestfs-actions.pod:3451
28873 msgid ""
28874 "For operating systems like Windows which still use drive letters, this call "
28875 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28876 "information about the mapping of drive letters to partitions, see "
28877 "C<guestfs_inspect_get_drive_mappings>."
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../src/guestfs-actions.pod:3457
28882 msgid ""
28883 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28884 "C<guestfs_inspect_get_filesystems>."
28885 msgstr ""
28886
28887 #. type: =head2
28888 #: ../src/guestfs-actions.pod:3468
28889 msgid "guestfs_inspect_get_package_format"
28890 msgstr ""
28891
28892 #. type: verbatim
28893 #: ../src/guestfs-actions.pod:3470
28894 #, no-wrap
28895 msgid ""
28896 " char *\n"
28897 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28898 "                                     const char *root);\n"
28899 "\n"
28900 msgstr ""
28901
28902 #. type: textblock
28903 #: ../src/guestfs-actions.pod:3474
28904 msgid ""
28905 "This function and C<guestfs_inspect_get_package_management> return the "
28906 "package format and package management tool used by the inspected operating "
28907 "system.  For example for Fedora these functions would return C<rpm> (package "
28908 "format) and C<yum> (package management)."
28909 msgstr ""
28910
28911 #. type: textblock
28912 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
28913 msgid "(Added in 1.7.5)"
28914 msgstr ""
28915
28916 #. type: =head2
28917 #: ../src/guestfs-actions.pod:3495
28918 msgid "guestfs_inspect_get_package_management"
28919 msgstr ""
28920
28921 #. type: verbatim
28922 #: ../src/guestfs-actions.pod:3497
28923 #, no-wrap
28924 msgid ""
28925 " char *\n"
28926 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28927 "                                         const char *root);\n"
28928 "\n"
28929 msgstr ""
28930
28931 #. type: textblock
28932 #: ../src/guestfs-actions.pod:3501
28933 msgid ""
28934 "C<guestfs_inspect_get_package_format> and this function return the package "
28935 "format and package management tool used by the inspected operating system.  "
28936 "For example for Fedora these functions would return C<rpm> (package format) "
28937 "and C<yum> (package management)."
28938 msgstr ""
28939
28940 #. type: =head2
28941 #: ../src/guestfs-actions.pod:3523
28942 msgid "guestfs_inspect_get_product_name"
28943 msgstr ""
28944
28945 #. type: verbatim
28946 #: ../src/guestfs-actions.pod:3525
28947 #, no-wrap
28948 msgid ""
28949 " char *\n"
28950 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28951 "                                   const char *root);\n"
28952 "\n"
28953 msgstr ""
28954
28955 #. type: =head2
28956 #: ../src/guestfs-actions.pod:3544
28957 msgid "guestfs_inspect_get_product_variant"
28958 msgstr ""
28959
28960 #. type: verbatim
28961 #: ../src/guestfs-actions.pod:3546
28962 #, no-wrap
28963 msgid ""
28964 " char *\n"
28965 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28966 "                                      const char *root);\n"
28967 "\n"
28968 msgstr ""
28969
28970 #. type: textblock
28971 #: ../src/guestfs-actions.pod:3569
28972 msgid ""
28973 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28974 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../src/guestfs-actions.pod:3576
28979 msgid "(Added in 1.9.13)"
28980 msgstr ""
28981
28982 #. type: =head2
28983 #: ../src/guestfs-actions.pod:3578
28984 msgid "guestfs_inspect_get_roots"
28985 msgstr ""
28986
28987 #. type: verbatim
28988 #: ../src/guestfs-actions.pod:3580
28989 #, no-wrap
28990 msgid ""
28991 " char **\n"
28992 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28993 "\n"
28994 msgstr ""
28995
28996 #. type: textblock
28997 #: ../src/guestfs-actions.pod:3583
28998 msgid ""
28999 "This function is a convenient way to get the list of root devices, as "
29000 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29001 "the whole inspection process."
29002 msgstr ""
29003
29004 #. type: textblock
29005 #: ../src/guestfs-actions.pod:3587
29006 msgid ""
29007 "This returns an empty list if either no root devices were found or the "
29008 "caller has not called C<guestfs_inspect_os>."
29009 msgstr ""
29010
29011 #. type: textblock
29012 #: ../src/guestfs-actions.pod:3596
29013 msgid "(Added in 1.7.3)"
29014 msgstr ""
29015
29016 #. type: =head2
29017 #: ../src/guestfs-actions.pod:3598
29018 msgid "guestfs_inspect_get_type"
29019 msgstr ""
29020
29021 #. type: verbatim
29022 #: ../src/guestfs-actions.pod:3600
29023 #, no-wrap
29024 msgid ""
29025 " char *\n"
29026 " guestfs_inspect_get_type (guestfs_h *g,\n"
29027 "                           const char *root);\n"
29028 "\n"
29029 msgstr ""
29030
29031 #. type: =head2
29032 #: ../src/guestfs-actions.pod:3641
29033 msgid "guestfs_inspect_get_windows_current_control_set"
29034 msgstr ""
29035
29036 #. type: verbatim
29037 #: ../src/guestfs-actions.pod:3643
29038 #, no-wrap
29039 msgid ""
29040 " char *\n"
29041 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29042 "                                                  const char *root);\n"
29043 "\n"
29044 msgstr ""
29045
29046 #. type: =head2
29047 #: ../src/guestfs-actions.pod:3661
29048 msgid "guestfs_inspect_get_windows_systemroot"
29049 msgstr ""
29050
29051 #. type: verbatim
29052 #: ../src/guestfs-actions.pod:3663
29053 #, no-wrap
29054 msgid ""
29055 " char *\n"
29056 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29057 "                                         const char *root);\n"
29058 "\n"
29059 msgstr ""
29060
29061 #. type: textblock
29062 #: ../src/guestfs-actions.pod:3679
29063 msgid "(Added in 1.5.25)"
29064 msgstr ""
29065
29066 #. type: =head2
29067 #: ../src/guestfs-actions.pod:3681
29068 msgid "guestfs_inspect_is_live"
29069 msgstr ""
29070
29071 #. type: verbatim
29072 #: ../src/guestfs-actions.pod:3683
29073 #, no-wrap
29074 msgid ""
29075 " int\n"
29076 " guestfs_inspect_is_live (guestfs_h *g,\n"
29077 "                          const char *root);\n"
29078 "\n"
29079 msgstr ""
29080
29081 #. type: textblock
29082 #: ../src/guestfs-actions.pod:3687
29083 msgid ""
29084 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29085 "disk), then this returns true if a live image was detected on the disk."
29086 msgstr ""
29087
29088 #. type: =head2
29089 #: ../src/guestfs-actions.pod:3697
29090 msgid "guestfs_inspect_is_multipart"
29091 msgstr ""
29092
29093 #. type: verbatim
29094 #: ../src/guestfs-actions.pod:3699
29095 #, no-wrap
29096 msgid ""
29097 " int\n"
29098 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29099 "                               const char *root);\n"
29100 "\n"
29101 msgstr ""
29102
29103 #. type: textblock
29104 #: ../src/guestfs-actions.pod:3703
29105 msgid ""
29106 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29107 "disk), then this returns true if the disk is part of a set."
29108 msgstr ""
29109
29110 #. type: =head2
29111 #: ../src/guestfs-actions.pod:3713
29112 msgid "guestfs_inspect_is_netinst"
29113 msgstr ""
29114
29115 #. type: verbatim
29116 #: ../src/guestfs-actions.pod:3715
29117 #, no-wrap
29118 msgid ""
29119 " int\n"
29120 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29121 "                             const char *root);\n"
29122 "\n"
29123 msgstr ""
29124
29125 #. type: textblock
29126 #: ../src/guestfs-actions.pod:3719
29127 msgid ""
29128 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29129 "disk), then this returns true if the disk is a network installer, ie. not a "
29130 "self-contained install CD but one which is likely to require network access "
29131 "to complete the install."
29132 msgstr ""
29133
29134 #. type: =head2
29135 #: ../src/guestfs-actions.pod:3731
29136 msgid "guestfs_inspect_list_applications"
29137 msgstr ""
29138
29139 #. type: verbatim
29140 #: ../src/guestfs-actions.pod:3733
29141 #, no-wrap
29142 msgid ""
29143 " struct guestfs_application_list *\n"
29144 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29145 "                                    const char *root);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:3739
29151 msgid ""
29152 "I<Note:> This call works differently from other parts of the inspection "
29153 "API.  You have to call C<guestfs_inspect_os>, then "
29154 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29155 "this.  Listing applications is a significantly more difficult operation "
29156 "which requires access to the full filesystem.  Also note that unlike the "
29157 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29158 "the libguestfs handle, this call actually reads parts of the mounted "
29159 "filesystems during the call."
29160 msgstr ""
29161
29162 #. type: textblock
29163 #: ../src/guestfs-actions.pod:3829
29164 msgid ""
29165 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29166 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29167 "after use>."
29168 msgstr ""
29169
29170 #. type: textblock
29171 #: ../src/guestfs-actions.pod:3833
29172 msgid "(Added in 1.7.8)"
29173 msgstr ""
29174
29175 #. type: =head2
29176 #: ../src/guestfs-actions.pod:3835
29177 msgid "guestfs_inspect_os"
29178 msgstr ""
29179
29180 #. type: verbatim
29181 #: ../src/guestfs-actions.pod:3837
29182 #, no-wrap
29183 msgid ""
29184 " char **\n"
29185 " guestfs_inspect_os (guestfs_h *g);\n"
29186 "\n"
29187 msgstr ""
29188
29189 #. type: textblock
29190 #: ../src/guestfs-actions.pod:3853
29191 msgid ""
29192 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29193 "functions in order to query further information about each operating system, "
29194 "such as the name and version."
29195 msgstr ""
29196
29197 #. type: textblock
29198 #: ../src/guestfs-actions.pod:3858
29199 msgid ""
29200 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29201 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29202 "the contents.  This should be called with no disks currently mounted.  The "
29203 "function may also use Augeas, so any existing Augeas handle will be closed."
29204 msgstr ""
29205
29206 #. type: textblock
29207 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29208 #: ../src/guestfs-actions.pod:4294
29209 msgid "See also C<guestfs_list_filesystems>."
29210 msgstr ""
29211
29212 #. type: =head2
29213 #: ../src/guestfs-actions.pod:3878
29214 msgid "guestfs_is_blockdev"
29215 msgstr ""
29216
29217 #. type: verbatim
29218 #: ../src/guestfs-actions.pod:3880
29219 #, no-wrap
29220 msgid ""
29221 " int\n"
29222 " guestfs_is_blockdev (guestfs_h *g,\n"
29223 "                      const char *path);\n"
29224 "\n"
29225 msgstr ""
29226
29227 #. type: textblock
29228 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
29229 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
29230 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
29231 #: ../src/guestfs-actions.pod:4048
29232 msgid "See also C<guestfs_stat>."
29233 msgstr ""
29234
29235 #. type: textblock
29236 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
29237 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
29238 #: ../src/guestfs-actions.pod:4052
29239 msgid "(Added in 1.5.10)"
29240 msgstr ""
29241
29242 #. type: =head2
29243 #: ../src/guestfs-actions.pod:3893
29244 msgid "guestfs_is_busy"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../src/guestfs-actions.pod:3895
29249 #, no-wrap
29250 msgid ""
29251 " int\n"
29252 " guestfs_is_busy (guestfs_h *g);\n"
29253 "\n"
29254 msgstr ""
29255
29256 #. type: =head2
29257 #: ../src/guestfs-actions.pod:3907
29258 msgid "guestfs_is_chardev"
29259 msgstr ""
29260
29261 #. type: verbatim
29262 #: ../src/guestfs-actions.pod:3909
29263 #, no-wrap
29264 msgid ""
29265 " int\n"
29266 " guestfs_is_chardev (guestfs_h *g,\n"
29267 "                     const char *path);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:3922
29273 msgid "guestfs_is_config"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:3924
29278 #, no-wrap
29279 msgid ""
29280 " int\n"
29281 " guestfs_is_config (guestfs_h *g);\n"
29282 "\n"
29283 msgstr ""
29284
29285 #. type: =head2
29286 #: ../src/guestfs-actions.pod:3936
29287 msgid "guestfs_is_dir"
29288 msgstr ""
29289
29290 #. type: verbatim
29291 #: ../src/guestfs-actions.pod:3938
29292 #, no-wrap
29293 msgid ""
29294 " int\n"
29295 " guestfs_is_dir (guestfs_h *g,\n"
29296 "                 const char *path);\n"
29297 "\n"
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:3952
29302 msgid "guestfs_is_fifo"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:3954
29307 #, no-wrap
29308 msgid ""
29309 " int\n"
29310 " guestfs_is_fifo (guestfs_h *g,\n"
29311 "                  const char *path);\n"
29312 "\n"
29313 msgstr ""
29314
29315 #. type: =head2
29316 #: ../src/guestfs-actions.pod:3967
29317 msgid "guestfs_is_file"
29318 msgstr ""
29319
29320 #. type: verbatim
29321 #: ../src/guestfs-actions.pod:3969
29322 #, no-wrap
29323 msgid ""
29324 " int\n"
29325 " guestfs_is_file (guestfs_h *g,\n"
29326 "                  const char *path);\n"
29327 "\n"
29328 msgstr ""
29329
29330 #. type: =head2
29331 #: ../src/guestfs-actions.pod:3983
29332 msgid "guestfs_is_launching"
29333 msgstr ""
29334
29335 #. type: verbatim
29336 #: ../src/guestfs-actions.pod:3985
29337 #, no-wrap
29338 msgid ""
29339 " int\n"
29340 " guestfs_is_launching (guestfs_h *g);\n"
29341 "\n"
29342 msgstr ""
29343
29344 #. type: =head2
29345 #: ../src/guestfs-actions.pod:3997
29346 msgid "guestfs_is_lv"
29347 msgstr ""
29348
29349 #. type: verbatim
29350 #: ../src/guestfs-actions.pod:3999
29351 #, no-wrap
29352 msgid ""
29353 " int\n"
29354 " guestfs_is_lv (guestfs_h *g,\n"
29355 "                const char *device);\n"
29356 "\n"
29357 msgstr ""
29358
29359 #. type: =head2
29360 #: ../src/guestfs-actions.pod:4010
29361 msgid "guestfs_is_ready"
29362 msgstr ""
29363
29364 #. type: verbatim
29365 #: ../src/guestfs-actions.pod:4012
29366 #, no-wrap
29367 msgid ""
29368 " int\n"
29369 " guestfs_is_ready (guestfs_h *g);\n"
29370 "\n"
29371 msgstr ""
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:4024
29375 msgid "guestfs_is_socket"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:4026
29380 #, no-wrap
29381 msgid ""
29382 " int\n"
29383 " guestfs_is_socket (guestfs_h *g,\n"
29384 "                    const char *path);\n"
29385 "\n"
29386 msgstr ""
29387
29388 #. type: =head2
29389 #: ../src/guestfs-actions.pod:4039
29390 msgid "guestfs_is_symlink"
29391 msgstr ""
29392
29393 #. type: verbatim
29394 #: ../src/guestfs-actions.pod:4041
29395 #, no-wrap
29396 msgid ""
29397 " int\n"
29398 " guestfs_is_symlink (guestfs_h *g,\n"
29399 "                     const char *path);\n"
29400 "\n"
29401 msgstr ""
29402
29403 #. type: =head2
29404 #: ../src/guestfs-actions.pod:4054
29405 msgid "guestfs_is_zero"
29406 msgstr ""
29407
29408 #. type: verbatim
29409 #: ../src/guestfs-actions.pod:4056
29410 #, no-wrap
29411 msgid ""
29412 " int\n"
29413 " guestfs_is_zero (guestfs_h *g,\n"
29414 "                  const char *path);\n"
29415 "\n"
29416 msgstr ""
29417
29418 #. type: textblock
29419 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29420 msgid "(Added in 1.11.8)"
29421 msgstr ""
29422
29423 #. type: =head2
29424 #: ../src/guestfs-actions.pod:4067
29425 msgid "guestfs_is_zero_device"
29426 msgstr ""
29427
29428 #. type: verbatim
29429 #: ../src/guestfs-actions.pod:4069
29430 #, no-wrap
29431 msgid ""
29432 " int\n"
29433 " guestfs_is_zero_device (guestfs_h *g,\n"
29434 "                         const char *device);\n"
29435 "\n"
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:4081
29440 msgid "guestfs_kill_subprocess"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:4083
29445 #, no-wrap
29446 msgid ""
29447 " int\n"
29448 " guestfs_kill_subprocess (guestfs_h *g);\n"
29449 "\n"
29450 msgstr ""
29451
29452 #. type: =head2
29453 #: ../src/guestfs-actions.pod:4092
29454 msgid "guestfs_launch"
29455 msgstr ""
29456
29457 #. type: verbatim
29458 #: ../src/guestfs-actions.pod:4094
29459 #, no-wrap
29460 msgid ""
29461 " int\n"
29462 " guestfs_launch (guestfs_h *g);\n"
29463 "\n"
29464 msgstr ""
29465
29466 #. type: =head2
29467 #: ../src/guestfs-actions.pod:4112
29468 msgid "guestfs_lchown"
29469 msgstr ""
29470
29471 #. type: verbatim
29472 #: ../src/guestfs-actions.pod:4114
29473 #, no-wrap
29474 msgid ""
29475 " int\n"
29476 " guestfs_lchown (guestfs_h *g,\n"
29477 "                 int owner,\n"
29478 "                 int group,\n"
29479 "                 const char *path);\n"
29480 "\n"
29481 msgstr ""
29482
29483 #. type: textblock
29484 #: ../src/guestfs-actions.pod:4120
29485 msgid ""
29486 "Change the file owner to C<owner> and group to C<group>.  This is like "
29487 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29488 "changed, not the target."
29489 msgstr ""
29490
29491 #. type: =head2
29492 #: ../src/guestfs-actions.pod:4132
29493 msgid "guestfs_lgetxattr"
29494 msgstr ""
29495
29496 #. type: verbatim
29497 #: ../src/guestfs-actions.pod:4134
29498 #, no-wrap
29499 msgid ""
29500 " char *\n"
29501 " guestfs_lgetxattr (guestfs_h *g,\n"
29502 "                    const char *path,\n"
29503 "                    const char *name,\n"
29504 "                    size_t *size_r);\n"
29505 "\n"
29506 msgstr ""
29507
29508 #. type: textblock
29509 #: ../src/guestfs-actions.pod:4154
29510 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29511 msgstr ""
29512
29513 #. type: =head2
29514 #: ../src/guestfs-actions.pod:4162
29515 msgid "guestfs_lgetxattrs"
29516 msgstr ""
29517
29518 #. type: verbatim
29519 #: ../src/guestfs-actions.pod:4164
29520 #, no-wrap
29521 msgid ""
29522 " struct guestfs_xattr_list *\n"
29523 " guestfs_lgetxattrs (guestfs_h *g,\n"
29524 "                     const char *path);\n"
29525 "\n"
29526 msgstr ""
29527
29528 #. type: textblock
29529 #: ../src/guestfs-actions.pod:4168
29530 msgid ""
29531 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29532 "then it returns the extended attributes of the link itself."
29533 msgstr ""
29534
29535 #. type: =head2
29536 #: ../src/guestfs-actions.pod:4178
29537 msgid "guestfs_list_9p"
29538 msgstr ""
29539
29540 #. type: verbatim
29541 #: ../src/guestfs-actions.pod:4180
29542 #, no-wrap
29543 msgid ""
29544 " char **\n"
29545 " guestfs_list_9p (guestfs_h *g);\n"
29546 "\n"
29547 msgstr ""
29548
29549 #. type: =head2
29550 #: ../src/guestfs-actions.pod:4192
29551 msgid "guestfs_list_devices"
29552 msgstr ""
29553
29554 #. type: verbatim
29555 #: ../src/guestfs-actions.pod:4194
29556 #, no-wrap
29557 msgid ""
29558 " char **\n"
29559 " guestfs_list_devices (guestfs_h *g);\n"
29560 "\n"
29561 msgstr ""
29562
29563 #. type: =head2
29564 #: ../src/guestfs-actions.pod:4209
29565 msgid "guestfs_list_dm_devices"
29566 msgstr ""
29567
29568 #. type: verbatim
29569 #: ../src/guestfs-actions.pod:4211
29570 #, no-wrap
29571 msgid ""
29572 " char **\n"
29573 " guestfs_list_dm_devices (guestfs_h *g);\n"
29574 "\n"
29575 msgstr ""
29576
29577 #. type: textblock
29578 #: ../src/guestfs-actions.pod:4216
29579 msgid ""
29580 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29581 "previous call to C<guestfs_luks_open>."
29582 msgstr ""
29583
29584 #. type: textblock
29585 #: ../src/guestfs-actions.pod:4219
29586 msgid ""
29587 "Device mapper devices which correspond to logical volumes are I<not> "
29588 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29589 "volumes."
29590 msgstr ""
29591
29592 #. type: textblock
29593 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5813
29594 msgid "(Added in 1.11.15)"
29595 msgstr ""
29596
29597 #. type: =head2
29598 #: ../src/guestfs-actions.pod:4229
29599 msgid "guestfs_list_filesystems"
29600 msgstr ""
29601
29602 #. type: verbatim
29603 #: ../src/guestfs-actions.pod:4231
29604 #, no-wrap
29605 msgid ""
29606 " char **\n"
29607 " guestfs_list_filesystems (guestfs_h *g);\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:4251
29613 msgid ""
29614 "This command runs other libguestfs commands, which might include "
29615 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29616 "soon after launch and only when nothing is mounted."
29617 msgstr ""
29618
29619 #. type: textblock
29620 #: ../src/guestfs-actions.pod:4255
29621 msgid ""
29622 "Not all of the filesystems returned will be mountable.  In particular, swap "
29623 "partitions are returned in the list.  Also this command does not check that "
29624 "each filesystem found is valid and mountable, and some filesystems might be "
29625 "mountable but require special options.  Filesystems may not all belong to a "
29626 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29627 msgstr ""
29628
29629 #. type: textblock
29630 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6173
29631 msgid "(Added in 1.5.15)"
29632 msgstr ""
29633
29634 #. type: =head2
29635 #: ../src/guestfs-actions.pod:4271
29636 msgid "guestfs_list_md_devices"
29637 msgstr ""
29638
29639 #. type: verbatim
29640 #: ../src/guestfs-actions.pod:4273
29641 #, no-wrap
29642 msgid ""
29643 " char **\n"
29644 " guestfs_list_md_devices (guestfs_h *g);\n"
29645 "\n"
29646 msgstr ""
29647
29648 #. type: =head2
29649 #: ../src/guestfs-actions.pod:4282
29650 msgid "guestfs_list_partitions"
29651 msgstr ""
29652
29653 #. type: verbatim
29654 #: ../src/guestfs-actions.pod:4284
29655 #, no-wrap
29656 msgid ""
29657 " char **\n"
29658 " guestfs_list_partitions (guestfs_h *g);\n"
29659 "\n"
29660 msgstr ""
29661
29662 #. type: textblock
29663 #: ../src/guestfs-actions.pod:4291
29664 msgid ""
29665 "This does not return logical volumes.  For that you will need to call "
29666 "C<guestfs_lvs>."
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:4302
29671 msgid "guestfs_ll"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:4304
29676 #, no-wrap
29677 msgid ""
29678 " char *\n"
29679 " guestfs_ll (guestfs_h *g,\n"
29680 "             const char *directory);\n"
29681 "\n"
29682 msgstr ""
29683
29684 #. type: =head2
29685 #: ../src/guestfs-actions.pod:4319
29686 msgid "guestfs_ln"
29687 msgstr ""
29688
29689 #. type: verbatim
29690 #: ../src/guestfs-actions.pod:4321
29691 #, no-wrap
29692 msgid ""
29693 " int\n"
29694 " guestfs_ln (guestfs_h *g,\n"
29695 "             const char *target,\n"
29696 "             const char *linkname);\n"
29697 "\n"
29698 msgstr ""
29699
29700 #. type: =head2
29701 #: ../src/guestfs-actions.pod:4332
29702 msgid "guestfs_ln_f"
29703 msgstr ""
29704
29705 #. type: verbatim
29706 #: ../src/guestfs-actions.pod:4334
29707 #, no-wrap
29708 msgid ""
29709 " int\n"
29710 " guestfs_ln_f (guestfs_h *g,\n"
29711 "               const char *target,\n"
29712 "               const char *linkname);\n"
29713 "\n"
29714 msgstr ""
29715
29716 #. type: =head2
29717 #: ../src/guestfs-actions.pod:4346
29718 msgid "guestfs_ln_s"
29719 msgstr ""
29720
29721 #. type: verbatim
29722 #: ../src/guestfs-actions.pod:4348
29723 #, no-wrap
29724 msgid ""
29725 " int\n"
29726 " guestfs_ln_s (guestfs_h *g,\n"
29727 "               const char *target,\n"
29728 "               const char *linkname);\n"
29729 "\n"
29730 msgstr ""
29731
29732 #. type: =head2
29733 #: ../src/guestfs-actions.pod:4359
29734 msgid "guestfs_ln_sf"
29735 msgstr ""
29736
29737 #. type: verbatim
29738 #: ../src/guestfs-actions.pod:4361
29739 #, no-wrap
29740 msgid ""
29741 " int\n"
29742 " guestfs_ln_sf (guestfs_h *g,\n"
29743 "                const char *target,\n"
29744 "                const char *linkname);\n"
29745 "\n"
29746 msgstr ""
29747
29748 #. type: =head2
29749 #: ../src/guestfs-actions.pod:4373
29750 msgid "guestfs_lremovexattr"
29751 msgstr ""
29752
29753 #. type: verbatim
29754 #: ../src/guestfs-actions.pod:4375
29755 #, no-wrap
29756 msgid ""
29757 " int\n"
29758 " guestfs_lremovexattr (guestfs_h *g,\n"
29759 "                       const char *xattr,\n"
29760 "                       const char *path);\n"
29761 "\n"
29762 msgstr ""
29763
29764 #. type: textblock
29765 #: ../src/guestfs-actions.pod:4380
29766 msgid ""
29767 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29768 "link, then it removes an extended attribute of the link itself."
29769 msgstr ""
29770
29771 #. type: =head2
29772 #: ../src/guestfs-actions.pod:4388
29773 msgid "guestfs_ls"
29774 msgstr ""
29775
29776 #. type: verbatim
29777 #: ../src/guestfs-actions.pod:4390
29778 #, no-wrap
29779 msgid ""
29780 " char **\n"
29781 " guestfs_ls (guestfs_h *g,\n"
29782 "             const char *directory);\n"
29783 "\n"
29784 msgstr ""
29785
29786 #. type: textblock
29787 #: ../src/guestfs-actions.pod:4398
29788 msgid ""
29789 "This command is mostly useful for interactive sessions.  Programs should "
29790 "probably use C<guestfs_readdir> instead."
29791 msgstr ""
29792
29793 #. type: =head2
29794 #: ../src/guestfs-actions.pod:4407
29795 msgid "guestfs_lsetxattr"
29796 msgstr ""
29797
29798 #. type: verbatim
29799 #: ../src/guestfs-actions.pod:4409
29800 #, no-wrap
29801 msgid ""
29802 " int\n"
29803 " guestfs_lsetxattr (guestfs_h *g,\n"
29804 "                    const char *xattr,\n"
29805 "                    const char *val,\n"
29806 "                    int vallen,\n"
29807 "                    const char *path);\n"
29808 "\n"
29809 msgstr ""
29810
29811 #. type: textblock
29812 #: ../src/guestfs-actions.pod:4416
29813 msgid ""
29814 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29815 "then it sets an extended attribute of the link itself."
29816 msgstr ""
29817
29818 #. type: =head2
29819 #: ../src/guestfs-actions.pod:4424
29820 msgid "guestfs_lstat"
29821 msgstr ""
29822
29823 #. type: verbatim
29824 #: ../src/guestfs-actions.pod:4426
29825 #, no-wrap
29826 msgid ""
29827 " struct guestfs_stat *\n"
29828 " guestfs_lstat (guestfs_h *g,\n"
29829 "                const char *path);\n"
29830 "\n"
29831 msgstr ""
29832
29833 #. type: textblock
29834 #: ../src/guestfs-actions.pod:4432
29835 msgid ""
29836 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29837 "link, then the link is stat-ed, not the file it refers to."
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:7353
29842 msgid ""
29843 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29844 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29845 msgstr ""
29846
29847 #. type: textblock
29848 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:7357
29849 #: ../src/guestfs-actions.pod:7375 ../src/guestfs-actions.pod:7876
29850 msgid "(Added in 0.9.2)"
29851 msgstr ""
29852
29853 #. type: =head2
29854 #: ../src/guestfs-actions.pod:4444
29855 msgid "guestfs_lstatlist"
29856 msgstr ""
29857
29858 #. type: verbatim
29859 #: ../src/guestfs-actions.pod:4446
29860 #, no-wrap
29861 msgid ""
29862 " struct guestfs_stat_list *\n"
29863 " guestfs_lstatlist (guestfs_h *g,\n"
29864 "                    const char *path,\n"
29865 "                    char *const *names);\n"
29866 "\n"
29867 msgstr ""
29868
29869 #. type: textblock
29870 #: ../src/guestfs-actions.pod:4451
29871 msgid ""
29872 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29873 "files, where all files are in the directory C<path>.  C<names> is the list "
29874 "of files from this directory."
29875 msgstr ""
29876
29877 #. type: textblock
29878 #: ../src/guestfs-actions.pod:4460
29879 msgid ""
29880 "This call is intended for programs that want to efficiently list a directory "
29881 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29882 "for a similarly efficient call for getting extended attributes.  Very long "
29883 "directory listings might cause the protocol message size to be exceeded, "
29884 "causing this call to fail.  The caller must split up such requests into "
29885 "smaller groups of names."
29886 msgstr ""
29887
29888 #. type: textblock
29889 #: ../src/guestfs-actions.pod:4468
29890 msgid ""
29891 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29892 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29893 msgstr ""
29894
29895 #. type: =head2
29896 #: ../src/guestfs-actions.pod:4474
29897 msgid "guestfs_luks_add_key"
29898 msgstr ""
29899
29900 #. type: verbatim
29901 #: ../src/guestfs-actions.pod:4476
29902 #, no-wrap
29903 msgid ""
29904 " int\n"
29905 " guestfs_luks_add_key (guestfs_h *g,\n"
29906 "                       const char *device,\n"
29907 "                       const char *key,\n"
29908 "                       const char *newkey,\n"
29909 "                       int keyslot);\n"
29910 "\n"
29911 msgstr ""
29912
29913 #. type: textblock
29914 #: ../src/guestfs-actions.pod:4488
29915 msgid ""
29916 "Note that if C<keyslot> already contains a key, then this command will "
29917 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29918 msgstr ""
29919
29920 #. type: textblock
29921 #: ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:4531
29922 #: ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4571
29923 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4625
29924 msgid ""
29925 "This function takes a key or passphrase parameter which could contain "
29926 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29927 "information."
29928 msgstr ""
29929
29930 #. type: textblock
29931 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4535
29932 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
29933 msgid "(Added in 1.5.2)"
29934 msgstr ""
29935
29936 #. type: =head2
29937 #: ../src/guestfs-actions.pod:4500
29938 msgid "guestfs_luks_close"
29939 msgstr ""
29940
29941 #. type: verbatim
29942 #: ../src/guestfs-actions.pod:4502
29943 #, no-wrap
29944 msgid ""
29945 " int\n"
29946 " guestfs_luks_close (guestfs_h *g,\n"
29947 "                     const char *device);\n"
29948 "\n"
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../src/guestfs-actions.pod:4506
29953 msgid ""
29954 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29955 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29956 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29957 "underlying block device."
29958 msgstr ""
29959
29960 #. type: textblock
29961 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4610
29962 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4679
29963 #: ../src/guestfs-actions.pod:4724
29964 msgid "(Added in 1.5.1)"
29965 msgstr ""
29966
29967 #. type: =head2
29968 #: ../src/guestfs-actions.pod:4516
29969 msgid "guestfs_luks_format"
29970 msgstr ""
29971
29972 #. type: verbatim
29973 #: ../src/guestfs-actions.pod:4518
29974 #, no-wrap
29975 msgid ""
29976 " int\n"
29977 " guestfs_luks_format (guestfs_h *g,\n"
29978 "                      const char *device,\n"
29979 "                      const char *key,\n"
29980 "                      int keyslot);\n"
29981 "\n"
29982 msgstr ""
29983
29984 #. type: =head2
29985 #: ../src/guestfs-actions.pod:4537
29986 msgid "guestfs_luks_format_cipher"
29987 msgstr ""
29988
29989 #. type: verbatim
29990 #: ../src/guestfs-actions.pod:4539
29991 #, no-wrap
29992 msgid ""
29993 " int\n"
29994 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29995 "                             const char *device,\n"
29996 "                             const char *key,\n"
29997 "                             int keyslot,\n"
29998 "                             const char *cipher);\n"
29999 "\n"
30000 msgstr ""
30001
30002 #. type: textblock
30003 #: ../src/guestfs-actions.pod:4546
30004 msgid ""
30005 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30006 "set the C<cipher> used."
30007 msgstr ""
30008
30009 #. type: =head2
30010 #: ../src/guestfs-actions.pod:4557
30011 msgid "guestfs_luks_kill_slot"
30012 msgstr ""
30013
30014 #. type: verbatim
30015 #: ../src/guestfs-actions.pod:4559
30016 #, no-wrap
30017 msgid ""
30018 " int\n"
30019 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30020 "                         const char *device,\n"
30021 "                         const char *key,\n"
30022 "                         int keyslot);\n"
30023 "\n"
30024 msgstr ""
30025
30026 #. type: =head2
30027 #: ../src/guestfs-actions.pod:4577
30028 msgid "guestfs_luks_open"
30029 msgstr ""
30030
30031 #. type: verbatim
30032 #: ../src/guestfs-actions.pod:4579
30033 #, no-wrap
30034 msgid ""
30035 " int\n"
30036 " guestfs_luks_open (guestfs_h *g,\n"
30037 "                    const char *device,\n"
30038 "                    const char *key,\n"
30039 "                    const char *mapname);\n"
30040 "\n"
30041 msgstr ""
30042
30043 #. type: textblock
30044 #: ../src/guestfs-actions.pod:4597
30045 msgid ""
30046 "If this block device contains LVM volume groups, then calling "
30047 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30048 "visible."
30049 msgstr ""
30050
30051 #. type: textblock
30052 #: ../src/guestfs-actions.pod:4601
30053 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:4612
30058 msgid "guestfs_luks_open_ro"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:4614
30063 #, no-wrap
30064 msgid ""
30065 " int\n"
30066 " guestfs_luks_open_ro (guestfs_h *g,\n"
30067 "                       const char *device,\n"
30068 "                       const char *key,\n"
30069 "                       const char *mapname);\n"
30070 "\n"
30071 msgstr ""
30072
30073 #. type: textblock
30074 #: ../src/guestfs-actions.pod:4620
30075 msgid ""
30076 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30077 "created."
30078 msgstr ""
30079
30080 #. type: =head2
30081 #: ../src/guestfs-actions.pod:4631
30082 msgid "guestfs_lvcreate"
30083 msgstr ""
30084
30085 #. type: verbatim
30086 #: ../src/guestfs-actions.pod:4633
30087 #, no-wrap
30088 msgid ""
30089 " int\n"
30090 " guestfs_lvcreate (guestfs_h *g,\n"
30091 "                   const char *logvol,\n"
30092 "                   const char *volgroup,\n"
30093 "                   int mbytes);\n"
30094 "\n"
30095 msgstr ""
30096
30097 #. type: =head2
30098 #: ../src/guestfs-actions.pod:4646
30099 msgid "guestfs_lvm_canonical_lv_name"
30100 msgstr ""
30101
30102 #. type: verbatim
30103 #: ../src/guestfs-actions.pod:4648
30104 #, no-wrap
30105 msgid ""
30106 " char *\n"
30107 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30108 "                                const char *lvname);\n"
30109 "\n"
30110 msgstr ""
30111
30112 #. type: textblock
30113 #: ../src/guestfs-actions.pod:4659
30114 msgid "See also C<guestfs_is_lv>."
30115 msgstr ""
30116
30117 #. type: textblock
30118 #: ../src/guestfs-actions.pod:4664
30119 msgid "(Added in 1.5.24)"
30120 msgstr ""
30121
30122 #. type: =head2
30123 #: ../src/guestfs-actions.pod:4666
30124 msgid "guestfs_lvm_clear_filter"
30125 msgstr ""
30126
30127 #. type: verbatim
30128 #: ../src/guestfs-actions.pod:4668
30129 #, no-wrap
30130 msgid ""
30131 " int\n"
30132 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30133 "\n"
30134 msgstr ""
30135
30136 #. type: textblock
30137 #: ../src/guestfs-actions.pod:4671
30138 msgid ""
30139 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30140 "see every block device."
30141 msgstr ""
30142
30143 #. type: =head2
30144 #: ../src/guestfs-actions.pod:4681
30145 msgid "guestfs_lvm_remove_all"
30146 msgstr ""
30147
30148 #. type: verbatim
30149 #: ../src/guestfs-actions.pod:4683
30150 #, no-wrap
30151 msgid ""
30152 " int\n"
30153 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30154 "\n"
30155 msgstr ""
30156
30157 #. type: =head2
30158 #: ../src/guestfs-actions.pod:4693
30159 msgid "guestfs_lvm_set_filter"
30160 msgstr ""
30161
30162 #. type: verbatim
30163 #: ../src/guestfs-actions.pod:4695
30164 #, no-wrap
30165 msgid ""
30166 " int\n"
30167 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30168 "                         char *const *devices);\n"
30169 "\n"
30170 msgstr ""
30171
30172 #. type: =head2
30173 #: ../src/guestfs-actions.pod:4726
30174 msgid "guestfs_lvremove"
30175 msgstr ""
30176
30177 #. type: verbatim
30178 #: ../src/guestfs-actions.pod:4728
30179 #, no-wrap
30180 msgid ""
30181 " int\n"
30182 " guestfs_lvremove (guestfs_h *g,\n"
30183 "                   const char *device);\n"
30184 "\n"
30185 msgstr ""
30186
30187 #. type: textblock
30188 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:6288
30189 #: ../src/guestfs-actions.pod:8246
30190 msgid "(Added in 1.0.13)"
30191 msgstr ""
30192
30193 #. type: =head2
30194 #: ../src/guestfs-actions.pod:4742
30195 msgid "guestfs_lvrename"
30196 msgstr ""
30197
30198 #. type: verbatim
30199 #: ../src/guestfs-actions.pod:4744
30200 #, no-wrap
30201 msgid ""
30202 " int\n"
30203 " guestfs_lvrename (guestfs_h *g,\n"
30204 "                   const char *logvol,\n"
30205 "                   const char *newlogvol);\n"
30206 "\n"
30207 msgstr ""
30208
30209 #. type: textblock
30210 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:8259
30211 msgid "(Added in 1.0.83)"
30212 msgstr ""
30213
30214 #. type: =head2
30215 #: ../src/guestfs-actions.pod:4755
30216 msgid "guestfs_lvresize"
30217 msgstr ""
30218
30219 #. type: verbatim
30220 #: ../src/guestfs-actions.pod:4757
30221 #, no-wrap
30222 msgid ""
30223 " int\n"
30224 " guestfs_lvresize (guestfs_h *g,\n"
30225 "                   const char *device,\n"
30226 "                   int mbytes);\n"
30227 "\n"
30228 msgstr ""
30229
30230 #. type: =head2
30231 #: ../src/guestfs-actions.pod:4770
30232 msgid "guestfs_lvresize_free"
30233 msgstr ""
30234
30235 #. type: verbatim
30236 #: ../src/guestfs-actions.pod:4772
30237 #, no-wrap
30238 msgid ""
30239 " int\n"
30240 " guestfs_lvresize_free (guestfs_h *g,\n"
30241 "                        const char *lv,\n"
30242 "                        int percent);\n"
30243 "\n"
30244 msgstr ""
30245
30246 #. type: textblock
30247 #: ../src/guestfs-actions.pod:4785
30248 msgid "(Added in 1.3.3)"
30249 msgstr ""
30250
30251 #. type: =head2
30252 #: ../src/guestfs-actions.pod:4787
30253 msgid "guestfs_lvs"
30254 msgstr ""
30255
30256 #. type: verbatim
30257 #: ../src/guestfs-actions.pod:4789
30258 #, no-wrap
30259 msgid ""
30260 " char **\n"
30261 " guestfs_lvs (guestfs_h *g);\n"
30262 "\n"
30263 msgstr ""
30264
30265 #. type: textblock
30266 #: ../src/guestfs-actions.pod:4798
30267 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30268 msgstr ""
30269
30270 #. type: =head2
30271 #: ../src/guestfs-actions.pod:4806
30272 msgid "guestfs_lvs_full"
30273 msgstr ""
30274
30275 #. type: verbatim
30276 #: ../src/guestfs-actions.pod:4808
30277 #, no-wrap
30278 msgid ""
30279 " struct guestfs_lvm_lv_list *\n"
30280 " guestfs_lvs_full (guestfs_h *g);\n"
30281 "\n"
30282 msgstr ""
30283
30284 #. type: textblock
30285 #: ../src/guestfs-actions.pod:4814
30286 msgid ""
30287 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30288 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30289 msgstr ""
30290
30291 #. type: =head2
30292 #: ../src/guestfs-actions.pod:4820
30293 msgid "guestfs_lvuuid"
30294 msgstr ""
30295
30296 #. type: verbatim
30297 #: ../src/guestfs-actions.pod:4822
30298 #, no-wrap
30299 msgid ""
30300 " char *\n"
30301 " guestfs_lvuuid (guestfs_h *g,\n"
30302 "                 const char *device);\n"
30303 "\n"
30304 msgstr ""
30305
30306 #. type: =head2
30307 #: ../src/guestfs-actions.pod:4833
30308 msgid "guestfs_lxattrlist"
30309 msgstr ""
30310
30311 #. type: verbatim
30312 #: ../src/guestfs-actions.pod:4835
30313 #, no-wrap
30314 msgid ""
30315 " struct guestfs_xattr_list *\n"
30316 " guestfs_lxattrlist (guestfs_h *g,\n"
30317 "                     const char *path,\n"
30318 "                     char *const *names);\n"
30319 "\n"
30320 msgstr ""
30321
30322 #. type: textblock
30323 #: ../src/guestfs-actions.pod:4854
30324 msgid ""
30325 "This call is intended for programs that want to efficiently list a directory "
30326 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30327 "a similarly efficient call for getting standard stats.  Very long directory "
30328 "listings might cause the protocol message size to be exceeded, causing this "
30329 "call to fail.  The caller must split up such requests into smaller groups of "
30330 "names."
30331 msgstr ""
30332
30333 #. type: =head2
30334 #: ../src/guestfs-actions.pod:4868
30335 msgid "guestfs_mdadm_create"
30336 msgstr ""
30337
30338 #. type: verbatim
30339 #: ../src/guestfs-actions.pod:4870
30340 #, no-wrap
30341 msgid ""
30342 " int\n"
30343 " guestfs_mdadm_create (guestfs_h *g,\n"
30344 "                       const char *name,\n"
30345 "                       char *const *devices,\n"
30346 "                       ...);\n"
30347 "\n"
30348 msgstr ""
30349
30350 #. type: verbatim
30351 #: ../src/guestfs-actions.pod:4881
30352 #, no-wrap
30353 msgid ""
30354 " GUESTFS_MDADM_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
30355 " GUESTFS_MDADM_CREATE_NRDEVICES, int nrdevices,\n"
30356 " GUESTFS_MDADM_CREATE_SPARE, int spare,\n"
30357 " GUESTFS_MDADM_CREATE_CHUNK, int64_t chunk,\n"
30358 " GUESTFS_MDADM_CREATE_LEVEL, const char *level,\n"
30359 "\n"
30360 msgstr ""
30361
30362 #. type: =head2
30363 #: ../src/guestfs-actions.pod:4943
30364 msgid "guestfs_mdadm_create_va"
30365 msgstr ""
30366
30367 #. type: verbatim
30368 #: ../src/guestfs-actions.pod:4945
30369 #, no-wrap
30370 msgid ""
30371 " int\n"
30372 " guestfs_mdadm_create_va (guestfs_h *g,\n"
30373 "                          const char *name,\n"
30374 "                          char *const *devices,\n"
30375 "                          va_list args);\n"
30376 "\n"
30377 msgstr ""
30378
30379 #. type: textblock
30380 #: ../src/guestfs-actions.pod:4951
30381 msgid "This is the \"va_list variant\" of L</guestfs_mdadm_create>."
30382 msgstr ""
30383
30384 #. type: =head2
30385 #: ../src/guestfs-actions.pod:4955
30386 msgid "guestfs_mdadm_create_argv"
30387 msgstr ""
30388
30389 #. type: verbatim
30390 #: ../src/guestfs-actions.pod:4957
30391 #, no-wrap
30392 msgid ""
30393 " int\n"
30394 " guestfs_mdadm_create_argv (guestfs_h *g,\n"
30395 "                            const char *name,\n"
30396 "                            char *const *devices,\n"
30397 "                            const struct guestfs_mdadm_create_argv *optargs);\n"
30398 "\n"
30399 msgstr ""
30400
30401 #. type: textblock
30402 #: ../src/guestfs-actions.pod:4963
30403 msgid "This is the \"argv variant\" of L</guestfs_mdadm_create>."
30404 msgstr ""
30405
30406 #. type: =head2
30407 #: ../src/guestfs-actions.pod:4967
30408 msgid "guestfs_mdadm_detail"
30409 msgstr ""
30410
30411 #. type: verbatim
30412 #: ../src/guestfs-actions.pod:4969
30413 #, no-wrap
30414 msgid ""
30415 " char **\n"
30416 " guestfs_mdadm_detail (guestfs_h *g,\n"
30417 "                       const char *md);\n"
30418 "\n"
30419 msgstr ""
30420
30421 #. type: =head2
30422 #: ../src/guestfs-actions.pod:5006
30423 msgid "guestfs_mkdir"
30424 msgstr ""
30425
30426 #. type: verbatim
30427 #: ../src/guestfs-actions.pod:5008
30428 #, no-wrap
30429 msgid ""
30430 " int\n"
30431 " guestfs_mkdir (guestfs_h *g,\n"
30432 "                const char *path);\n"
30433 "\n"
30434 msgstr ""
30435
30436 #. type: =head2
30437 #: ../src/guestfs-actions.pod:5018
30438 msgid "guestfs_mkdir_mode"
30439 msgstr ""
30440
30441 #. type: verbatim
30442 #: ../src/guestfs-actions.pod:5020
30443 #, no-wrap
30444 msgid ""
30445 " int\n"
30446 " guestfs_mkdir_mode (guestfs_h *g,\n"
30447 "                     const char *path,\n"
30448 "                     int mode);\n"
30449 "\n"
30450 msgstr ""
30451
30452 #. type: textblock
30453 #: ../src/guestfs-actions.pod:5032
30454 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30455 msgstr ""
30456
30457 #. type: =head2
30458 #: ../src/guestfs-actions.pod:5038
30459 msgid "guestfs_mkdir_p"
30460 msgstr ""
30461
30462 #. type: verbatim
30463 #: ../src/guestfs-actions.pod:5040
30464 #, no-wrap
30465 msgid ""
30466 " int\n"
30467 " guestfs_mkdir_p (guestfs_h *g,\n"
30468 "                  const char *path);\n"
30469 "\n"
30470 msgstr ""
30471
30472 #. type: =head2
30473 #: ../src/guestfs-actions.pod:5051
30474 msgid "guestfs_mkdtemp"
30475 msgstr ""
30476
30477 #. type: verbatim
30478 #: ../src/guestfs-actions.pod:5053
30479 #, no-wrap
30480 msgid ""
30481 " char *\n"
30482 " guestfs_mkdtemp (guestfs_h *g,\n"
30483 "                  const char *template);\n"
30484 "\n"
30485 msgstr ""
30486
30487 #. type: =head2
30488 #: ../src/guestfs-actions.pod:5081
30489 msgid "guestfs_mke2fs_J"
30490 msgstr ""
30491
30492 #. type: verbatim
30493 #: ../src/guestfs-actions.pod:5083
30494 #, no-wrap
30495 msgid ""
30496 " int\n"
30497 " guestfs_mke2fs_J (guestfs_h *g,\n"
30498 "                   const char *fstype,\n"
30499 "                   int blocksize,\n"
30500 "                   const char *device,\n"
30501 "                   const char *journal);\n"
30502 "\n"
30503 msgstr ""
30504
30505 #. type: textblock
30506 #: ../src/guestfs-actions.pod:5096
30507 msgid "See also C<guestfs_mke2journal>."
30508 msgstr ""
30509
30510 #. type: textblock
30511 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5118
30512 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5152
30513 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5180
30514 #: ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5516
30515 msgid "(Added in 1.0.68)"
30516 msgstr ""
30517
30518 #. type: =head2
30519 #: ../src/guestfs-actions.pod:5102
30520 msgid "guestfs_mke2fs_JL"
30521 msgstr ""
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-actions.pod:5104
30525 #, no-wrap
30526 msgid ""
30527 " int\n"
30528 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30529 "                    const char *fstype,\n"
30530 "                    int blocksize,\n"
30531 "                    const char *device,\n"
30532 "                    const char *label);\n"
30533 "\n"
30534 msgstr ""
30535
30536 #. type: textblock
30537 #: ../src/guestfs-actions.pod:5114
30538 msgid "See also C<guestfs_mke2journal_L>."
30539 msgstr ""
30540
30541 #. type: =head2
30542 #: ../src/guestfs-actions.pod:5120
30543 msgid "guestfs_mke2fs_JU"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-actions.pod:5122
30548 #, no-wrap
30549 msgid ""
30550 " int\n"
30551 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30552 "                    const char *fstype,\n"
30553 "                    int blocksize,\n"
30554 "                    const char *device,\n"
30555 "                    const char *uuid);\n"
30556 "\n"
30557 msgstr ""
30558
30559 #. type: textblock
30560 #: ../src/guestfs-actions.pod:5132
30561 msgid "See also C<guestfs_mke2journal_U>."
30562 msgstr ""
30563
30564 #. type: =head2
30565 #: ../src/guestfs-actions.pod:5138
30566 msgid "guestfs_mke2journal"
30567 msgstr ""
30568
30569 #. type: verbatim
30570 #: ../src/guestfs-actions.pod:5140
30571 #, no-wrap
30572 msgid ""
30573 " int\n"
30574 " guestfs_mke2journal (guestfs_h *g,\n"
30575 "                      int blocksize,\n"
30576 "                      const char *device);\n"
30577 "\n"
30578 msgstr ""
30579
30580 #. type: =head2
30581 #: ../src/guestfs-actions.pod:5154
30582 msgid "guestfs_mke2journal_L"
30583 msgstr ""
30584
30585 #. type: verbatim
30586 #: ../src/guestfs-actions.pod:5156
30587 #, no-wrap
30588 msgid ""
30589 " int\n"
30590 " guestfs_mke2journal_L (guestfs_h *g,\n"
30591 "                        int blocksize,\n"
30592 "                        const char *label,\n"
30593 "                        const char *device);\n"
30594 "\n"
30595 msgstr ""
30596
30597 #. type: =head2
30598 #: ../src/guestfs-actions.pod:5168
30599 msgid "guestfs_mke2journal_U"
30600 msgstr ""
30601
30602 #. type: verbatim
30603 #: ../src/guestfs-actions.pod:5170
30604 #, no-wrap
30605 msgid ""
30606 " int\n"
30607 " guestfs_mke2journal_U (guestfs_h *g,\n"
30608 "                        int blocksize,\n"
30609 "                        const char *uuid,\n"
30610 "                        const char *device);\n"
30611 "\n"
30612 msgstr ""
30613
30614 #. type: =head2
30615 #: ../src/guestfs-actions.pod:5182
30616 msgid "guestfs_mkfifo"
30617 msgstr ""
30618
30619 #. type: verbatim
30620 #: ../src/guestfs-actions.pod:5184
30621 #, no-wrap
30622 msgid ""
30623 " int\n"
30624 " guestfs_mkfifo (guestfs_h *g,\n"
30625 "                 int mode,\n"
30626 "                 const char *path);\n"
30627 "\n"
30628 msgstr ""
30629
30630 #. type: textblock
30631 #: ../src/guestfs-actions.pod:5189
30632 msgid ""
30633 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30634 "is just a convenient wrapper around C<guestfs_mknod>."
30635 msgstr ""
30636
30637 #. type: =head2
30638 #: ../src/guestfs-actions.pod:5199
30639 msgid "guestfs_mkfs"
30640 msgstr ""
30641
30642 #. type: verbatim
30643 #: ../src/guestfs-actions.pod:5201
30644 #, no-wrap
30645 msgid ""
30646 " int\n"
30647 " guestfs_mkfs (guestfs_h *g,\n"
30648 "               const char *fstype,\n"
30649 "               const char *device);\n"
30650 "\n"
30651 msgstr ""
30652
30653 #. type: =head2
30654 #: ../src/guestfs-actions.pod:5214
30655 msgid "guestfs_mkfs_b"
30656 msgstr ""
30657
30658 #. type: verbatim
30659 #: ../src/guestfs-actions.pod:5216
30660 #, no-wrap
30661 msgid ""
30662 " int\n"
30663 " guestfs_mkfs_b (guestfs_h *g,\n"
30664 "                 const char *fstype,\n"
30665 "                 int blocksize,\n"
30666 "                 const char *device);\n"
30667 "\n"
30668 msgstr ""
30669
30670 #. type: textblock
30671 #: ../src/guestfs-actions.pod:5222
30672 msgid ""
30673 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30674 "call instead."
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../src/guestfs-actions.pod:5229
30679 msgid ""
30680 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30681 "block size of the resulting filesystem.  Supported block sizes depend on the "
30682 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30683 msgstr ""
30684
30685 #. type: =head2
30686 #: ../src/guestfs-actions.pod:5241
30687 msgid "guestfs_mkfs_opts"
30688 msgstr ""
30689
30690 #. type: verbatim
30691 #: ../src/guestfs-actions.pod:5243
30692 #, no-wrap
30693 msgid ""
30694 " int\n"
30695 " guestfs_mkfs_opts (guestfs_h *g,\n"
30696 "                    const char *fstype,\n"
30697 "                    const char *device,\n"
30698 "                    ...);\n"
30699 "\n"
30700 msgstr ""
30701
30702 #. type: verbatim
30703 #: ../src/guestfs-actions.pod:5254
30704 #, no-wrap
30705 msgid ""
30706 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30707 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30708 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30709 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30710 "\n"
30711 msgstr ""
30712
30713 #. type: textblock
30714 #: ../src/guestfs-actions.pod:5302
30715 msgid "(Added in 1.7.19)"
30716 msgstr ""
30717
30718 #. type: =head2
30719 #: ../src/guestfs-actions.pod:5304
30720 msgid "guestfs_mkfs_opts_va"
30721 msgstr ""
30722
30723 #. type: verbatim
30724 #: ../src/guestfs-actions.pod:5306
30725 #, no-wrap
30726 msgid ""
30727 " int\n"
30728 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30729 "                       const char *fstype,\n"
30730 "                       const char *device,\n"
30731 "                       va_list args);\n"
30732 "\n"
30733 msgstr ""
30734
30735 #. type: textblock
30736 #: ../src/guestfs-actions.pod:5312
30737 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30738 msgstr ""
30739
30740 #. type: =head2
30741 #: ../src/guestfs-actions.pod:5316
30742 msgid "guestfs_mkfs_opts_argv"
30743 msgstr ""
30744
30745 #. type: verbatim
30746 #: ../src/guestfs-actions.pod:5318
30747 #, no-wrap
30748 msgid ""
30749 " int\n"
30750 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30751 "                         const char *fstype,\n"
30752 "                         const char *device,\n"
30753 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30754 "\n"
30755 msgstr ""
30756
30757 #. type: textblock
30758 #: ../src/guestfs-actions.pod:5324
30759 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30760 msgstr ""
30761
30762 #. type: =head2
30763 #: ../src/guestfs-actions.pod:5328
30764 msgid "guestfs_mkmountpoint"
30765 msgstr ""
30766
30767 #. type: verbatim
30768 #: ../src/guestfs-actions.pod:5330
30769 #, no-wrap
30770 msgid ""
30771 " int\n"
30772 " guestfs_mkmountpoint (guestfs_h *g,\n"
30773 "                       const char *exemptpath);\n"
30774 "\n"
30775 msgstr ""
30776
30777 #. type: textblock
30778 #: ../src/guestfs-actions.pod:5334
30779 msgid ""
30780 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30781 "that can be used to create extra mountpoints before mounting the first "
30782 "filesystem."
30783 msgstr ""
30784
30785 #. type: textblock
30786 #: ../src/guestfs-actions.pod:5358
30787 msgid ""
30788 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30789 "may get unexpected errors if you try to mix these calls.  It is safest to "
30790 "manually unmount filesystems and remove mountpoints after use."
30791 msgstr ""
30792
30793 #. type: textblock
30794 #: ../src/guestfs-actions.pod:5362
30795 msgid ""
30796 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30797 "first, so for this to work for manual mountpoints, you must ensure that the "
30798 "innermost mountpoints have the longest pathnames, as in the example code "
30799 "above."
30800 msgstr ""
30801
30802 #. type: textblock
30803 #: ../src/guestfs-actions.pod:5369
30804 msgid ""
30805 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30806 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30807 "can also trigger these issues."
30808 msgstr ""
30809
30810 #. type: textblock
30811 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5681
30812 #: ../src/guestfs-actions.pod:6708
30813 msgid "(Added in 1.0.62)"
30814 msgstr ""
30815
30816 #. type: =head2
30817 #: ../src/guestfs-actions.pod:5377
30818 msgid "guestfs_mknod"
30819 msgstr ""
30820
30821 #. type: verbatim
30822 #: ../src/guestfs-actions.pod:5379
30823 #, no-wrap
30824 msgid ""
30825 " int\n"
30826 " guestfs_mknod (guestfs_h *g,\n"
30827 "                int mode,\n"
30828 "                int devmajor,\n"
30829 "                int devminor,\n"
30830 "                const char *path);\n"
30831 "\n"
30832 msgstr ""
30833
30834 #. type: textblock
30835 #: ../src/guestfs-actions.pod:5394
30836 msgid ""
30837 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30838 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30839 "regular file).  These constants are available in the standard Linux header "
30840 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30841 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30842 "the appropriate constant for you."
30843 msgstr ""
30844
30845 #. type: =head2
30846 #: ../src/guestfs-actions.pod:5408
30847 msgid "guestfs_mknod_b"
30848 msgstr ""
30849
30850 #. type: verbatim
30851 #: ../src/guestfs-actions.pod:5410
30852 #, no-wrap
30853 msgid ""
30854 " int\n"
30855 " guestfs_mknod_b (guestfs_h *g,\n"
30856 "                  int mode,\n"
30857 "                  int devmajor,\n"
30858 "                  int devminor,\n"
30859 "                  const char *path);\n"
30860 "\n"
30861 msgstr ""
30862
30863 #. type: textblock
30864 #: ../src/guestfs-actions.pod:5417
30865 msgid ""
30866 "This call creates a block device node called C<path> with mode C<mode> and "
30867 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30868 "wrapper around C<guestfs_mknod>."
30869 msgstr ""
30870
30871 #. type: =head2
30872 #: ../src/guestfs-actions.pod:5427
30873 msgid "guestfs_mknod_c"
30874 msgstr ""
30875
30876 #. type: verbatim
30877 #: ../src/guestfs-actions.pod:5429
30878 #, no-wrap
30879 msgid ""
30880 " int\n"
30881 " guestfs_mknod_c (guestfs_h *g,\n"
30882 "                  int mode,\n"
30883 "                  int devmajor,\n"
30884 "                  int devminor,\n"
30885 "                  const char *path);\n"
30886 "\n"
30887 msgstr ""
30888
30889 #. type: textblock
30890 #: ../src/guestfs-actions.pod:5436
30891 msgid ""
30892 "This call creates a char device node called C<path> with mode C<mode> and "
30893 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30894 "wrapper around C<guestfs_mknod>."
30895 msgstr ""
30896
30897 #. type: =head2
30898 #: ../src/guestfs-actions.pod:5446
30899 msgid "guestfs_mkswap"
30900 msgstr ""
30901
30902 #. type: verbatim
30903 #: ../src/guestfs-actions.pod:5448
30904 #, no-wrap
30905 msgid ""
30906 " int\n"
30907 " guestfs_mkswap (guestfs_h *g,\n"
30908 "                 const char *device);\n"
30909 "\n"
30910 msgstr ""
30911
30912 #. type: =head2
30913 #: ../src/guestfs-actions.pod:5458
30914 msgid "guestfs_mkswap_L"
30915 msgstr ""
30916
30917 #. type: verbatim
30918 #: ../src/guestfs-actions.pod:5460
30919 #, no-wrap
30920 msgid ""
30921 " int\n"
30922 " guestfs_mkswap_L (guestfs_h *g,\n"
30923 "                   const char *label,\n"
30924 "                   const char *device);\n"
30925 "\n"
30926 msgstr ""
30927
30928 #. type: =head2
30929 #: ../src/guestfs-actions.pod:5475
30930 msgid "guestfs_mkswap_U"
30931 msgstr ""
30932
30933 #. type: verbatim
30934 #: ../src/guestfs-actions.pod:5477
30935 #, no-wrap
30936 msgid ""
30937 " int\n"
30938 " guestfs_mkswap_U (guestfs_h *g,\n"
30939 "                   const char *uuid,\n"
30940 "                   const char *device);\n"
30941 "\n"
30942 msgstr ""
30943
30944 #. type: =head2
30945 #: ../src/guestfs-actions.pod:5488
30946 msgid "guestfs_mkswap_file"
30947 msgstr ""
30948
30949 #. type: verbatim
30950 #: ../src/guestfs-actions.pod:5490
30951 #, no-wrap
30952 msgid ""
30953 " int\n"
30954 " guestfs_mkswap_file (guestfs_h *g,\n"
30955 "                      const char *path);\n"
30956 "\n"
30957 msgstr ""
30958
30959 #. type: textblock
30960 #: ../src/guestfs-actions.pod:5496
30961 msgid ""
30962 "This command just writes a swap file signature to an existing file.  To "
30963 "create the file itself, use something like C<guestfs_fallocate>."
30964 msgstr ""
30965
30966 #. type: =head2
30967 #: ../src/guestfs-actions.pod:5503
30968 msgid "guestfs_modprobe"
30969 msgstr ""
30970
30971 #. type: verbatim
30972 #: ../src/guestfs-actions.pod:5505
30973 #, no-wrap
30974 msgid ""
30975 " int\n"
30976 " guestfs_modprobe (guestfs_h *g,\n"
30977 "                   const char *modulename);\n"
30978 "\n"
30979 msgstr ""
30980
30981 #. type: =head2
30982 #: ../src/guestfs-actions.pod:5518
30983 msgid "guestfs_mount"
30984 msgstr ""
30985
30986 #. type: verbatim
30987 #: ../src/guestfs-actions.pod:5520
30988 #, no-wrap
30989 msgid ""
30990 " int\n"
30991 " guestfs_mount (guestfs_h *g,\n"
30992 "                const char *device,\n"
30993 "                const char *mountpoint);\n"
30994 "\n"
30995 msgstr ""
30996
30997 #. type: textblock
30998 #: ../src/guestfs-actions.pod:5539
30999 msgid ""
31000 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31001 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31002 "problems for users.  If your program might need to work with older versions "
31003 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31004 "for the first parameter if you don't want any options)."
31005 msgstr ""
31006
31007 #. type: =head2
31008 #: ../src/guestfs-actions.pod:5550
31009 msgid "guestfs_mount_9p"
31010 msgstr ""
31011
31012 #. type: verbatim
31013 #: ../src/guestfs-actions.pod:5552
31014 #, no-wrap
31015 msgid ""
31016 " int\n"
31017 " guestfs_mount_9p (guestfs_h *g,\n"
31018 "                   const char *mounttag,\n"
31019 "                   const char *mountpoint,\n"
31020 "                   ...);\n"
31021 "\n"
31022 msgstr ""
31023
31024 #. type: verbatim
31025 #: ../src/guestfs-actions.pod:5563
31026 #, no-wrap
31027 msgid ""
31028 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31029 "\n"
31030 msgstr ""
31031
31032 #. type: =head2
31033 #: ../src/guestfs-actions.pod:5576
31034 msgid "guestfs_mount_9p_va"
31035 msgstr ""
31036
31037 #. type: verbatim
31038 #: ../src/guestfs-actions.pod:5578
31039 #, no-wrap
31040 msgid ""
31041 " int\n"
31042 " guestfs_mount_9p_va (guestfs_h *g,\n"
31043 "                      const char *mounttag,\n"
31044 "                      const char *mountpoint,\n"
31045 "                      va_list args);\n"
31046 "\n"
31047 msgstr ""
31048
31049 #. type: textblock
31050 #: ../src/guestfs-actions.pod:5584
31051 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31052 msgstr ""
31053
31054 #. type: =head2
31055 #: ../src/guestfs-actions.pod:5588
31056 msgid "guestfs_mount_9p_argv"
31057 msgstr ""
31058
31059 #. type: verbatim
31060 #: ../src/guestfs-actions.pod:5590
31061 #, no-wrap
31062 msgid ""
31063 " int\n"
31064 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31065 "                        const char *mounttag,\n"
31066 "                        const char *mountpoint,\n"
31067 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31068 "\n"
31069 msgstr ""
31070
31071 #. type: textblock
31072 #: ../src/guestfs-actions.pod:5596
31073 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31074 msgstr ""
31075
31076 #. type: =head2
31077 #: ../src/guestfs-actions.pod:5600
31078 msgid "guestfs_mount_loop"
31079 msgstr ""
31080
31081 #. type: verbatim
31082 #: ../src/guestfs-actions.pod:5602
31083 #, no-wrap
31084 msgid ""
31085 " int\n"
31086 " guestfs_mount_loop (guestfs_h *g,\n"
31087 "                     const char *file,\n"
31088 "                     const char *mountpoint);\n"
31089 "\n"
31090 msgstr ""
31091
31092 #. type: =head2
31093 #: ../src/guestfs-actions.pod:5615
31094 msgid "guestfs_mount_options"
31095 msgstr ""
31096
31097 #. type: verbatim
31098 #: ../src/guestfs-actions.pod:5617
31099 #, no-wrap
31100 msgid ""
31101 " int\n"
31102 " guestfs_mount_options (guestfs_h *g,\n"
31103 "                        const char *options,\n"
31104 "                        const char *device,\n"
31105 "                        const char *mountpoint);\n"
31106 "\n"
31107 msgstr ""
31108
31109 #. type: textblock
31110 #: ../src/guestfs-actions.pod:5623
31111 msgid ""
31112 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31113 "the mount options as for the L<mount(8)> I<-o> flag."
31114 msgstr ""
31115
31116 #. type: textblock
31117 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5647
31118 #: ../src/guestfs-actions.pod:5664
31119 msgid "(Added in 1.0.10)"
31120 msgstr ""
31121
31122 #. type: =head2
31123 #: ../src/guestfs-actions.pod:5635
31124 msgid "guestfs_mount_ro"
31125 msgstr ""
31126
31127 #. type: verbatim
31128 #: ../src/guestfs-actions.pod:5637
31129 #, no-wrap
31130 msgid ""
31131 " int\n"
31132 " guestfs_mount_ro (guestfs_h *g,\n"
31133 "                   const char *device,\n"
31134 "                   const char *mountpoint);\n"
31135 "\n"
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../src/guestfs-actions.pod:5642
31140 msgid ""
31141 "This is the same as the C<guestfs_mount> command, but it mounts the "
31142 "filesystem with the read-only (I<-o ro>) flag."
31143 msgstr ""
31144
31145 #. type: =head2
31146 #: ../src/guestfs-actions.pod:5649
31147 msgid "guestfs_mount_vfs"
31148 msgstr ""
31149
31150 #. type: verbatim
31151 #: ../src/guestfs-actions.pod:5651
31152 #, no-wrap
31153 msgid ""
31154 " int\n"
31155 " guestfs_mount_vfs (guestfs_h *g,\n"
31156 "                    const char *options,\n"
31157 "                    const char *vfstype,\n"
31158 "                    const char *device,\n"
31159 "                    const char *mountpoint);\n"
31160 "\n"
31161 msgstr ""
31162
31163 #. type: textblock
31164 #: ../src/guestfs-actions.pod:5658
31165 msgid ""
31166 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31167 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31168 "t> flags."
31169 msgstr ""
31170
31171 #. type: =head2
31172 #: ../src/guestfs-actions.pod:5666
31173 msgid "guestfs_mountpoints"
31174 msgstr ""
31175
31176 #. type: verbatim
31177 #: ../src/guestfs-actions.pod:5668
31178 #, no-wrap
31179 msgid ""
31180 " char **\n"
31181 " guestfs_mountpoints (guestfs_h *g);\n"
31182 "\n"
31183 msgstr ""
31184
31185 #. type: textblock
31186 #: ../src/guestfs-actions.pod:5671
31187 msgid ""
31188 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31189 "devices.  This one returns a hash table (map) of device name to directory "
31190 "where the device is mounted."
31191 msgstr ""
31192
31193 #. type: =head2
31194 #: ../src/guestfs-actions.pod:5683
31195 msgid "guestfs_mounts"
31196 msgstr ""
31197
31198 #. type: verbatim
31199 #: ../src/guestfs-actions.pod:5685
31200 #, no-wrap
31201 msgid ""
31202 " char **\n"
31203 " guestfs_mounts (guestfs_h *g);\n"
31204 "\n"
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs-actions.pod:5693
31209 msgid "See also: C<guestfs_mountpoints>"
31210 msgstr ""
31211
31212 #. type: =head2
31213 #: ../src/guestfs-actions.pod:5701
31214 msgid "guestfs_mv"
31215 msgstr ""
31216
31217 #. type: verbatim
31218 #: ../src/guestfs-actions.pod:5703
31219 #, no-wrap
31220 msgid ""
31221 " int\n"
31222 " guestfs_mv (guestfs_h *g,\n"
31223 "             const char *src,\n"
31224 "             const char *dest);\n"
31225 "\n"
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:5715
31230 msgid "guestfs_ntfs_3g_probe"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:5717
31235 #, no-wrap
31236 msgid ""
31237 " int\n"
31238 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31239 "                        int rw,\n"
31240 "                        const char *device);\n"
31241 "\n"
31242 msgstr ""
31243
31244 #. type: textblock
31245 #: ../src/guestfs-actions.pod:5736
31246 msgid "(Added in 1.0.43)"
31247 msgstr ""
31248
31249 #. type: =head2
31250 #: ../src/guestfs-actions.pod:5738
31251 msgid "guestfs_ntfsresize"
31252 msgstr ""
31253
31254 #. type: verbatim
31255 #: ../src/guestfs-actions.pod:5740
31256 #, no-wrap
31257 msgid ""
31258 " int\n"
31259 " guestfs_ntfsresize (guestfs_h *g,\n"
31260 "                     const char *device);\n"
31261 "\n"
31262 msgstr ""
31263
31264 #. type: textblock
31265 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5844
31266 msgid ""
31267 "I<This function is deprecated.> In new code, use the L</"
31268 "guestfs_ntfsresize_opts> call instead."
31269 msgstr ""
31270
31271 #. type: =head2
31272 #: ../src/guestfs-actions.pod:5768
31273 msgid "guestfs_ntfsresize_opts"
31274 msgstr ""
31275
31276 #. type: verbatim
31277 #: ../src/guestfs-actions.pod:5770
31278 #, no-wrap
31279 msgid ""
31280 " int\n"
31281 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31282 "                          const char *device,\n"
31283 "                          ...);\n"
31284 "\n"
31285 msgstr ""
31286
31287 #. type: verbatim
31288 #: ../src/guestfs-actions.pod:5780
31289 #, no-wrap
31290 msgid ""
31291 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31292 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31293 "\n"
31294 msgstr ""
31295
31296 #. type: textblock
31297 #: ../src/guestfs-actions.pod:5800
31298 msgid ""
31299 "After the resize operation, the filesystem is always marked as requiring a "
31300 "consistency check (for safety).  You have to boot into Windows to perform "
31301 "this check and clear this condition.  If you I<don't> set the C<force> "
31302 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31303 "times on a single filesystem without booting into Windows between each "
31304 "resize."
31305 msgstr ""
31306
31307 #. type: =head2
31308 #: ../src/guestfs-actions.pod:5815
31309 msgid "guestfs_ntfsresize_opts_va"
31310 msgstr ""
31311
31312 #. type: verbatim
31313 #: ../src/guestfs-actions.pod:5817
31314 #, no-wrap
31315 msgid ""
31316 " int\n"
31317 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31318 "                             const char *device,\n"
31319 "                             va_list args);\n"
31320 "\n"
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs-actions.pod:5822
31325 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31326 msgstr ""
31327
31328 #. type: =head2
31329 #: ../src/guestfs-actions.pod:5826
31330 msgid "guestfs_ntfsresize_opts_argv"
31331 msgstr ""
31332
31333 #. type: verbatim
31334 #: ../src/guestfs-actions.pod:5828
31335 #, no-wrap
31336 msgid ""
31337 " int\n"
31338 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31339 "                               const char *device,\n"
31340 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31341 "\n"
31342 msgstr ""
31343
31344 #. type: textblock
31345 #: ../src/guestfs-actions.pod:5833
31346 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31347 msgstr ""
31348
31349 #. type: =head2
31350 #: ../src/guestfs-actions.pod:5837
31351 msgid "guestfs_ntfsresize_size"
31352 msgstr ""
31353
31354 #. type: verbatim
31355 #: ../src/guestfs-actions.pod:5839
31356 #, no-wrap
31357 msgid ""
31358 " int\n"
31359 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31360 "                          const char *device,\n"
31361 "                          int64_t size);\n"
31362 "\n"
31363 msgstr ""
31364
31365 #. type: textblock
31366 #: ../src/guestfs-actions.pod:5851
31367 msgid ""
31368 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31369 "to specify the new size (in bytes) explicitly."
31370 msgstr ""
31371
31372 #. type: textblock
31373 #: ../src/guestfs-actions.pod:5856 ../src/guestfs-actions.pod:6315
31374 #: ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:6656
31375 #: ../src/guestfs-actions.pod:8403
31376 msgid "(Added in 1.3.14)"
31377 msgstr ""
31378
31379 #. type: =head2
31380 #: ../src/guestfs-actions.pod:5858
31381 msgid "guestfs_part_add"
31382 msgstr ""
31383
31384 #. type: verbatim
31385 #: ../src/guestfs-actions.pod:5860
31386 #, no-wrap
31387 msgid ""
31388 " int\n"
31389 " guestfs_part_add (guestfs_h *g,\n"
31390 "                   const char *device,\n"
31391 "                   const char *prlogex,\n"
31392 "                   int64_t startsect,\n"
31393 "                   int64_t endsect);\n"
31394 "\n"
31395 msgstr ""
31396
31397 #. type: textblock
31398 #: ../src/guestfs-actions.pod:5867
31399 msgid ""
31400 "This command adds a partition to C<device>.  If there is no partition table "
31401 "on the device, call C<guestfs_part_init> first."
31402 msgstr ""
31403
31404 #. type: textblock
31405 #: ../src/guestfs-actions.pod:5879
31406 msgid ""
31407 "Creating a partition which covers the whole disk is not so easy.  Use "
31408 "C<guestfs_part_disk> to do that."
31409 msgstr ""
31410
31411 #. type: textblock
31412 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5919
31413 #: ../src/guestfs-actions.pod:5972 ../src/guestfs-actions.pod:6056
31414 #: ../src/guestfs-actions.pod:6094 ../src/guestfs-actions.pod:6113
31415 #: ../src/guestfs-actions.pod:6153
31416 msgid "(Added in 1.0.78)"
31417 msgstr ""
31418
31419 #. type: =head2
31420 #: ../src/guestfs-actions.pod:5886
31421 msgid "guestfs_part_del"
31422 msgstr ""
31423
31424 #. type: verbatim
31425 #: ../src/guestfs-actions.pod:5888
31426 #, no-wrap
31427 msgid ""
31428 " int\n"
31429 " guestfs_part_del (guestfs_h *g,\n"
31430 "                   const char *device,\n"
31431 "                   int partnum);\n"
31432 "\n"
31433 msgstr ""
31434
31435 #. type: =head2
31436 #: ../src/guestfs-actions.pod:5903
31437 msgid "guestfs_part_disk"
31438 msgstr ""
31439
31440 #. type: verbatim
31441 #: ../src/guestfs-actions.pod:5905
31442 #, no-wrap
31443 msgid ""
31444 " int\n"
31445 " guestfs_part_disk (guestfs_h *g,\n"
31446 "                    const char *device,\n"
31447 "                    const char *parttype);\n"
31448 "\n"
31449 msgstr ""
31450
31451 #. type: textblock
31452 #: ../src/guestfs-actions.pod:5910
31453 msgid ""
31454 "This command is simply a combination of C<guestfs_part_init> followed by "
31455 "C<guestfs_part_add> to create a single primary partition covering the whole "
31456 "disk."
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs-actions.pod:5914
31461 msgid ""
31462 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31463 "possible values are described in C<guestfs_part_init>."
31464 msgstr ""
31465
31466 #. type: =head2
31467 #: ../src/guestfs-actions.pod:5921
31468 msgid "guestfs_part_get_bootable"
31469 msgstr ""
31470
31471 #. type: verbatim
31472 #: ../src/guestfs-actions.pod:5923
31473 #, no-wrap
31474 msgid ""
31475 " int\n"
31476 " guestfs_part_get_bootable (guestfs_h *g,\n"
31477 "                            const char *device,\n"
31478 "                            int partnum);\n"
31479 "\n"
31480 msgstr ""
31481
31482 #. type: textblock
31483 #: ../src/guestfs-actions.pod:5931
31484 msgid "See also C<guestfs_part_set_bootable>."
31485 msgstr ""
31486
31487 #. type: =head2
31488 #: ../src/guestfs-actions.pod:5937
31489 msgid "guestfs_part_get_mbr_id"
31490 msgstr ""
31491
31492 #. type: verbatim
31493 #: ../src/guestfs-actions.pod:5939
31494 #, no-wrap
31495 msgid ""
31496 " int\n"
31497 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31498 "                          const char *device,\n"
31499 "                          int partnum);\n"
31500 "\n"
31501 msgstr ""
31502
31503 #. type: textblock
31504 #: ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6129
31505 msgid ""
31506 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31507 "undefined results for other partition table types (see "
31508 "C<guestfs_part_get_parttype>)."
31509 msgstr ""
31510
31511 #. type: =head2
31512 #: ../src/guestfs-actions.pod:5955
31513 msgid "guestfs_part_get_parttype"
31514 msgstr ""
31515
31516 #. type: verbatim
31517 #: ../src/guestfs-actions.pod:5957
31518 #, no-wrap
31519 msgid ""
31520 " char *\n"
31521 " guestfs_part_get_parttype (guestfs_h *g,\n"
31522 "                            const char *device);\n"
31523 "\n"
31524 msgstr ""
31525
31526 #. type: textblock
31527 #: ../src/guestfs-actions.pod:5964
31528 msgid ""
31529 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31530 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31531 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31532 msgstr ""
31533
31534 #. type: =head2
31535 #: ../src/guestfs-actions.pod:5974
31536 msgid "guestfs_part_init"
31537 msgstr ""
31538
31539 #. type: verbatim
31540 #: ../src/guestfs-actions.pod:5976
31541 #, no-wrap
31542 msgid ""
31543 " int\n"
31544 " guestfs_part_init (guestfs_h *g,\n"
31545 "                    const char *device,\n"
31546 "                    const char *parttype);\n"
31547 "\n"
31548 msgstr ""
31549
31550 #. type: textblock
31551 #: ../src/guestfs-actions.pod:5985
31552 msgid ""
31553 "Initially there are no partitions.  Following this, you should call "
31554 "C<guestfs_part_add> for each partition required."
31555 msgstr ""
31556
31557 #. type: =head2
31558 #: ../src/guestfs-actions.pod:6058
31559 msgid "guestfs_part_list"
31560 msgstr ""
31561
31562 #. type: verbatim
31563 #: ../src/guestfs-actions.pod:6060
31564 #, no-wrap
31565 msgid ""
31566 " struct guestfs_partition_list *\n"
31567 " guestfs_part_list (guestfs_h *g,\n"
31568 "                    const char *device);\n"
31569 "\n"
31570 msgstr ""
31571
31572 #. type: textblock
31573 #: ../src/guestfs-actions.pod:6077
31574 msgid ""
31575 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31576 "the device's sector size, see C<guestfs_blockdev_getss>."
31577 msgstr ""
31578
31579 #. type: textblock
31580 #: ../src/guestfs-actions.pod:6090
31581 msgid ""
31582 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31583 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31584 "use>."
31585 msgstr ""
31586
31587 #. type: =head2
31588 #: ../src/guestfs-actions.pod:6096
31589 msgid "guestfs_part_set_bootable"
31590 msgstr ""
31591
31592 #. type: verbatim
31593 #: ../src/guestfs-actions.pod:6098
31594 #, no-wrap
31595 msgid ""
31596 " int\n"
31597 " guestfs_part_set_bootable (guestfs_h *g,\n"
31598 "                            const char *device,\n"
31599 "                            int partnum,\n"
31600 "                            int bootable);\n"
31601 "\n"
31602 msgstr ""
31603
31604 #. type: =head2
31605 #: ../src/guestfs-actions.pod:6115
31606 msgid "guestfs_part_set_mbr_id"
31607 msgstr ""
31608
31609 #. type: verbatim
31610 #: ../src/guestfs-actions.pod:6117
31611 #, no-wrap
31612 msgid ""
31613 " int\n"
31614 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31615 "                          const char *device,\n"
31616 "                          int partnum,\n"
31617 "                          int idbyte);\n"
31618 "\n"
31619 msgstr ""
31620
31621 #. type: =head2
31622 #: ../src/guestfs-actions.pod:6137
31623 msgid "guestfs_part_set_name"
31624 msgstr ""
31625
31626 #. type: verbatim
31627 #: ../src/guestfs-actions.pod:6139
31628 #, no-wrap
31629 msgid ""
31630 " int\n"
31631 " guestfs_part_set_name (guestfs_h *g,\n"
31632 "                        const char *device,\n"
31633 "                        int partnum,\n"
31634 "                        const char *name);\n"
31635 "\n"
31636 msgstr ""
31637
31638 #. type: =head2
31639 #: ../src/guestfs-actions.pod:6155
31640 msgid "guestfs_part_to_dev"
31641 msgstr ""
31642
31643 #. type: verbatim
31644 #: ../src/guestfs-actions.pod:6157
31645 #, no-wrap
31646 msgid ""
31647 " char *\n"
31648 " guestfs_part_to_dev (guestfs_h *g,\n"
31649 "                      const char *partition);\n"
31650 "\n"
31651 msgstr ""
31652
31653 #. type: textblock
31654 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6184
31655 msgid ""
31656 "The named partition must exist, for example as a string returned from "
31657 "C<guestfs_list_partitions>."
31658 msgstr ""
31659
31660 #. type: textblock
31661 #: ../src/guestfs-actions.pod:6168
31662 msgid "See also C<guestfs_part_to_partnum>."
31663 msgstr ""
31664
31665 #. type: =head2
31666 #: ../src/guestfs-actions.pod:6175
31667 msgid "guestfs_part_to_partnum"
31668 msgstr ""
31669
31670 #. type: verbatim
31671 #: ../src/guestfs-actions.pod:6177
31672 #, no-wrap
31673 msgid ""
31674 " int\n"
31675 " guestfs_part_to_partnum (guestfs_h *g,\n"
31676 "                          const char *partition);\n"
31677 "\n"
31678 msgstr ""
31679
31680 #. type: textblock
31681 #: ../src/guestfs-actions.pod:6187
31682 msgid "See also C<guestfs_part_to_dev>."
31683 msgstr ""
31684
31685 #. type: =head2
31686 #: ../src/guestfs-actions.pod:6193
31687 msgid "guestfs_ping_daemon"
31688 msgstr ""
31689
31690 #. type: verbatim
31691 #: ../src/guestfs-actions.pod:6195
31692 #, no-wrap
31693 msgid ""
31694 " int\n"
31695 " guestfs_ping_daemon (guestfs_h *g);\n"
31696 "\n"
31697 msgstr ""
31698
31699 #. type: =head2
31700 #: ../src/guestfs-actions.pod:6207
31701 msgid "guestfs_pread"
31702 msgstr ""
31703
31704 #. type: verbatim
31705 #: ../src/guestfs-actions.pod:6209
31706 #, no-wrap
31707 msgid ""
31708 " char *\n"
31709 " guestfs_pread (guestfs_h *g,\n"
31710 "                const char *path,\n"
31711 "                int count,\n"
31712 "                int64_t offset,\n"
31713 "                size_t *size_r);\n"
31714 "\n"
31715 msgstr ""
31716
31717 #. type: textblock
31718 #: ../src/guestfs-actions.pod:6222
31719 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31720 msgstr ""
31721
31722 #. type: =head2
31723 #: ../src/guestfs-actions.pod:6233
31724 msgid "guestfs_pread_device"
31725 msgstr ""
31726
31727 #. type: verbatim
31728 #: ../src/guestfs-actions.pod:6235
31729 #, no-wrap
31730 msgid ""
31731 " char *\n"
31732 " guestfs_pread_device (guestfs_h *g,\n"
31733 "                       const char *device,\n"
31734 "                       int count,\n"
31735 "                       int64_t offset,\n"
31736 "                       size_t *size_r);\n"
31737 "\n"
31738 msgstr ""
31739
31740 #. type: textblock
31741 #: ../src/guestfs-actions.pod:6248
31742 msgid "See also C<guestfs_pread>."
31743 msgstr ""
31744
31745 #. type: textblock
31746 #: ../src/guestfs-actions.pod:6257
31747 msgid "(Added in 1.5.21)"
31748 msgstr ""
31749
31750 #. type: =head2
31751 #: ../src/guestfs-actions.pod:6259
31752 msgid "guestfs_pvcreate"
31753 msgstr ""
31754
31755 #. type: verbatim
31756 #: ../src/guestfs-actions.pod:6261
31757 #, no-wrap
31758 msgid ""
31759 " int\n"
31760 " guestfs_pvcreate (guestfs_h *g,\n"
31761 "                   const char *device);\n"
31762 "\n"
31763 msgstr ""
31764
31765 #. type: =head2
31766 #: ../src/guestfs-actions.pod:6273
31767 msgid "guestfs_pvremove"
31768 msgstr ""
31769
31770 #. type: verbatim
31771 #: ../src/guestfs-actions.pod:6275
31772 #, no-wrap
31773 msgid ""
31774 " int\n"
31775 " guestfs_pvremove (guestfs_h *g,\n"
31776 "                   const char *device);\n"
31777 "\n"
31778 msgstr ""
31779
31780 #. type: =head2
31781 #: ../src/guestfs-actions.pod:6290
31782 msgid "guestfs_pvresize"
31783 msgstr ""
31784
31785 #. type: verbatim
31786 #: ../src/guestfs-actions.pod:6292
31787 #, no-wrap
31788 msgid ""
31789 " int\n"
31790 " guestfs_pvresize (guestfs_h *g,\n"
31791 "                   const char *device);\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: =head2
31796 #: ../src/guestfs-actions.pod:6303
31797 msgid "guestfs_pvresize_size"
31798 msgstr ""
31799
31800 #. type: verbatim
31801 #: ../src/guestfs-actions.pod:6305
31802 #, no-wrap
31803 msgid ""
31804 " int\n"
31805 " guestfs_pvresize_size (guestfs_h *g,\n"
31806 "                        const char *device,\n"
31807 "                        int64_t size);\n"
31808 "\n"
31809 msgstr ""
31810
31811 #. type: textblock
31812 #: ../src/guestfs-actions.pod:6310
31813 msgid ""
31814 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31815 "specify the new size (in bytes) explicitly."
31816 msgstr ""
31817
31818 #. type: =head2
31819 #: ../src/guestfs-actions.pod:6317
31820 msgid "guestfs_pvs"
31821 msgstr ""
31822
31823 #. type: verbatim
31824 #: ../src/guestfs-actions.pod:6319
31825 #, no-wrap
31826 msgid ""
31827 " char **\n"
31828 " guestfs_pvs (guestfs_h *g);\n"
31829 "\n"
31830 msgstr ""
31831
31832 #. type: textblock
31833 #: ../src/guestfs-actions.pod:6328
31834 msgid "See also C<guestfs_pvs_full>."
31835 msgstr ""
31836
31837 #. type: =head2
31838 #: ../src/guestfs-actions.pod:6336
31839 msgid "guestfs_pvs_full"
31840 msgstr ""
31841
31842 #. type: verbatim
31843 #: ../src/guestfs-actions.pod:6338
31844 #, no-wrap
31845 msgid ""
31846 " struct guestfs_lvm_pv_list *\n"
31847 " guestfs_pvs_full (guestfs_h *g);\n"
31848 "\n"
31849 msgstr ""
31850
31851 #. type: textblock
31852 #: ../src/guestfs-actions.pod:6344
31853 msgid ""
31854 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31855 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31856 msgstr ""
31857
31858 #. type: =head2
31859 #: ../src/guestfs-actions.pod:6350
31860 msgid "guestfs_pvuuid"
31861 msgstr ""
31862
31863 #. type: verbatim
31864 #: ../src/guestfs-actions.pod:6352
31865 #, no-wrap
31866 msgid ""
31867 " char *\n"
31868 " guestfs_pvuuid (guestfs_h *g,\n"
31869 "                 const char *device);\n"
31870 "\n"
31871 msgstr ""
31872
31873 #. type: =head2
31874 #: ../src/guestfs-actions.pod:6363
31875 msgid "guestfs_pwrite"
31876 msgstr ""
31877
31878 #. type: verbatim
31879 #: ../src/guestfs-actions.pod:6365
31880 #, no-wrap
31881 msgid ""
31882 " int\n"
31883 " guestfs_pwrite (guestfs_h *g,\n"
31884 "                 const char *path,\n"
31885 "                 const char *content,\n"
31886 "                 size_t content_size,\n"
31887 "                 int64_t offset);\n"
31888 "\n"
31889 msgstr ""
31890
31891 #. type: textblock
31892 #: ../src/guestfs-actions.pod:6381
31893 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31894 msgstr ""
31895
31896 #. type: =head2
31897 #: ../src/guestfs-actions.pod:6390
31898 msgid "guestfs_pwrite_device"
31899 msgstr ""
31900
31901 #. type: verbatim
31902 #: ../src/guestfs-actions.pod:6392
31903 #, no-wrap
31904 msgid ""
31905 " int\n"
31906 " guestfs_pwrite_device (guestfs_h *g,\n"
31907 "                        const char *device,\n"
31908 "                        const char *content,\n"
31909 "                        size_t content_size,\n"
31910 "                        int64_t offset);\n"
31911 "\n"
31912 msgstr ""
31913
31914 #. type: textblock
31915 #: ../src/guestfs-actions.pod:6407
31916 msgid "See also C<guestfs_pwrite>."
31917 msgstr ""
31918
31919 #. type: textblock
31920 #: ../src/guestfs-actions.pod:6414
31921 msgid "(Added in 1.5.20)"
31922 msgstr ""
31923
31924 #. type: =head2
31925 #: ../src/guestfs-actions.pod:6416
31926 msgid "guestfs_read_file"
31927 msgstr ""
31928
31929 #. type: verbatim
31930 #: ../src/guestfs-actions.pod:6418
31931 #, no-wrap
31932 msgid ""
31933 " char *\n"
31934 " guestfs_read_file (guestfs_h *g,\n"
31935 "                    const char *path,\n"
31936 "                    size_t *size_r);\n"
31937 "\n"
31938 msgstr ""
31939
31940 #. type: textblock
31941 #: ../src/guestfs-actions.pod:6426
31942 msgid ""
31943 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31944 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31945 "function is limited in the total size of file that can be handled."
31946 msgstr ""
31947
31948 #. type: textblock
31949 #: ../src/guestfs-actions.pod:6438
31950 msgid "(Added in 1.0.63)"
31951 msgstr ""
31952
31953 #. type: =head2
31954 #: ../src/guestfs-actions.pod:6440
31955 msgid "guestfs_read_lines"
31956 msgstr ""
31957
31958 #. type: verbatim
31959 #: ../src/guestfs-actions.pod:6442
31960 #, no-wrap
31961 msgid ""
31962 " char **\n"
31963 " guestfs_read_lines (guestfs_h *g,\n"
31964 "                     const char *path);\n"
31965 "\n"
31966 msgstr ""
31967
31968 #. type: textblock
31969 #: ../src/guestfs-actions.pod:6451
31970 msgid ""
31971 "Note that this function cannot correctly handle binary files (specifically, "
31972 "files containing C<\\0> character which is treated as end of line).  For "
31973 "those you need to use the C<guestfs_read_file> function which has a more "
31974 "complex interface."
31975 msgstr ""
31976
31977 #. type: =head2
31978 #: ../src/guestfs-actions.pod:6462
31979 msgid "guestfs_readdir"
31980 msgstr ""
31981
31982 #. type: verbatim
31983 #: ../src/guestfs-actions.pod:6464
31984 #, no-wrap
31985 msgid ""
31986 " struct guestfs_dirent_list *\n"
31987 " guestfs_readdir (guestfs_h *g,\n"
31988 "                  const char *dir);\n"
31989 "\n"
31990 msgstr ""
31991
31992 #. type: textblock
31993 #: ../src/guestfs-actions.pod:6518
31994 msgid ""
31995 "This function is primarily intended for use by programs.  To get a simple "
31996 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31997 "consumption, use C<guestfs_ll>."
31998 msgstr ""
31999
32000 #. type: textblock
32001 #: ../src/guestfs-actions.pod:6522
32002 msgid ""
32003 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32004 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32005 msgstr ""
32006
32007 #. type: =head2
32008 #: ../src/guestfs-actions.pod:6528
32009 msgid "guestfs_readlink"
32010 msgstr ""
32011
32012 #. type: verbatim
32013 #: ../src/guestfs-actions.pod:6530
32014 #, no-wrap
32015 msgid ""
32016 " char *\n"
32017 " guestfs_readlink (guestfs_h *g,\n"
32018 "                   const char *path);\n"
32019 "\n"
32020 msgstr ""
32021
32022 #. type: =head2
32023 #: ../src/guestfs-actions.pod:6541
32024 msgid "guestfs_readlinklist"
32025 msgstr ""
32026
32027 #. type: verbatim
32028 #: ../src/guestfs-actions.pod:6543
32029 #, no-wrap
32030 msgid ""
32031 " char **\n"
32032 " guestfs_readlinklist (guestfs_h *g,\n"
32033 "                       const char *path,\n"
32034 "                       char *const *names);\n"
32035 "\n"
32036 msgstr ""
32037
32038 #. type: =head2
32039 #: ../src/guestfs-actions.pod:6576
32040 msgid "guestfs_realpath"
32041 msgstr ""
32042
32043 #. type: verbatim
32044 #: ../src/guestfs-actions.pod:6578
32045 #, no-wrap
32046 msgid ""
32047 " char *\n"
32048 " guestfs_realpath (guestfs_h *g,\n"
32049 "                   const char *path);\n"
32050 "\n"
32051 msgstr ""
32052
32053 #. type: =head2
32054 #: ../src/guestfs-actions.pod:6590
32055 msgid "guestfs_removexattr"
32056 msgstr ""
32057
32058 #. type: verbatim
32059 #: ../src/guestfs-actions.pod:6592
32060 #, no-wrap
32061 msgid ""
32062 " int\n"
32063 " guestfs_removexattr (guestfs_h *g,\n"
32064 "                      const char *xattr,\n"
32065 "                      const char *path);\n"
32066 "\n"
32067 msgstr ""
32068
32069 #. type: textblock
32070 #: ../src/guestfs-actions.pod:6600
32071 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32072 msgstr ""
32073
32074 #. type: =head2
32075 #: ../src/guestfs-actions.pod:6606
32076 msgid "guestfs_resize2fs"
32077 msgstr ""
32078
32079 #. type: verbatim
32080 #: ../src/guestfs-actions.pod:6608
32081 #, no-wrap
32082 msgid ""
32083 " int\n"
32084 " guestfs_resize2fs (guestfs_h *g,\n"
32085 "                    const char *device);\n"
32086 "\n"
32087 msgstr ""
32088
32089 #. type: textblock
32090 #: ../src/guestfs-actions.pod:6615
32091 msgid ""
32092 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32093 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32094 "sometimes gives an error about this and sometimes not.  In any case, it is "
32095 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32096 msgstr ""
32097
32098 #. type: =head2
32099 #: ../src/guestfs-actions.pod:6625
32100 msgid "guestfs_resize2fs_M"
32101 msgstr ""
32102
32103 #. type: verbatim
32104 #: ../src/guestfs-actions.pod:6627
32105 #, no-wrap
32106 msgid ""
32107 " int\n"
32108 " guestfs_resize2fs_M (guestfs_h *g,\n"
32109 "                      const char *device);\n"
32110 "\n"
32111 msgstr ""
32112
32113 #. type: textblock
32114 #: ../src/guestfs-actions.pod:6631
32115 msgid ""
32116 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32117 "resized to its minimum size.  This works like the I<-M> option to the "
32118 "C<resize2fs> command."
32119 msgstr ""
32120
32121 #. type: textblock
32122 #: ../src/guestfs-actions.pod:6635
32123 msgid ""
32124 "To get the resulting size of the filesystem you should call "
32125 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32126 "These two numbers, multiplied together, give the resulting size of the "
32127 "minimal filesystem in bytes."
32128 msgstr ""
32129
32130 #. type: =head2
32131 #: ../src/guestfs-actions.pod:6644
32132 msgid "guestfs_resize2fs_size"
32133 msgstr ""
32134
32135 #. type: verbatim
32136 #: ../src/guestfs-actions.pod:6646
32137 #, no-wrap
32138 msgid ""
32139 " int\n"
32140 " guestfs_resize2fs_size (guestfs_h *g,\n"
32141 "                         const char *device,\n"
32142 "                         int64_t size);\n"
32143 "\n"
32144 msgstr ""
32145
32146 #. type: textblock
32147 #: ../src/guestfs-actions.pod:6651
32148 msgid ""
32149 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32150 "to specify the new size (in bytes) explicitly."
32151 msgstr ""
32152
32153 #. type: =head2
32154 #: ../src/guestfs-actions.pod:6658
32155 msgid "guestfs_rm"
32156 msgstr ""
32157
32158 #. type: verbatim
32159 #: ../src/guestfs-actions.pod:6660
32160 #, no-wrap
32161 msgid ""
32162 " int\n"
32163 " guestfs_rm (guestfs_h *g,\n"
32164 "             const char *path);\n"
32165 "\n"
32166 msgstr ""
32167
32168 #. type: =head2
32169 #: ../src/guestfs-actions.pod:6670
32170 msgid "guestfs_rm_rf"
32171 msgstr ""
32172
32173 #. type: verbatim
32174 #: ../src/guestfs-actions.pod:6672
32175 #, no-wrap
32176 msgid ""
32177 " int\n"
32178 " guestfs_rm_rf (guestfs_h *g,\n"
32179 "                const char *path);\n"
32180 "\n"
32181 msgstr ""
32182
32183 #. type: =head2
32184 #: ../src/guestfs-actions.pod:6684
32185 msgid "guestfs_rmdir"
32186 msgstr ""
32187
32188 #. type: verbatim
32189 #: ../src/guestfs-actions.pod:6686
32190 #, no-wrap
32191 msgid ""
32192 " int\n"
32193 " guestfs_rmdir (guestfs_h *g,\n"
32194 "                const char *path);\n"
32195 "\n"
32196 msgstr ""
32197
32198 #. type: =head2
32199 #: ../src/guestfs-actions.pod:6696
32200 msgid "guestfs_rmmountpoint"
32201 msgstr ""
32202
32203 #. type: verbatim
32204 #: ../src/guestfs-actions.pod:6698
32205 #, no-wrap
32206 msgid ""
32207 " int\n"
32208 " guestfs_rmmountpoint (guestfs_h *g,\n"
32209 "                       const char *exemptpath);\n"
32210 "\n"
32211 msgstr ""
32212
32213 #. type: textblock
32214 #: ../src/guestfs-actions.pod:6702
32215 msgid ""
32216 "This calls removes a mountpoint that was previously created with "
32217 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32218 msgstr ""
32219
32220 #. type: =head2
32221 #: ../src/guestfs-actions.pod:6710
32222 msgid "guestfs_scrub_device"
32223 msgstr ""
32224
32225 #. type: verbatim
32226 #: ../src/guestfs-actions.pod:6712
32227 #, no-wrap
32228 msgid ""
32229 " int\n"
32230 " guestfs_scrub_device (guestfs_h *g,\n"
32231 "                       const char *device);\n"
32232 "\n"
32233 msgstr ""
32234
32235 #. type: textblock
32236 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6742
32237 #: ../src/guestfs-actions.pod:6761
32238 msgid "(Added in 1.0.52)"
32239 msgstr ""
32240
32241 #. type: =head2
32242 #: ../src/guestfs-actions.pod:6726
32243 msgid "guestfs_scrub_file"
32244 msgstr ""
32245
32246 #. type: verbatim
32247 #: ../src/guestfs-actions.pod:6728
32248 #, no-wrap
32249 msgid ""
32250 " int\n"
32251 " guestfs_scrub_file (guestfs_h *g,\n"
32252 "                     const char *file);\n"
32253 "\n"
32254 msgstr ""
32255
32256 #. type: =head2
32257 #: ../src/guestfs-actions.pod:6744
32258 msgid "guestfs_scrub_freespace"
32259 msgstr ""
32260
32261 #. type: verbatim
32262 #: ../src/guestfs-actions.pod:6746
32263 #, no-wrap
32264 msgid ""
32265 " int\n"
32266 " guestfs_scrub_freespace (guestfs_h *g,\n"
32267 "                          const char *dir);\n"
32268 "\n"
32269 msgstr ""
32270
32271 #. type: textblock
32272 #: ../src/guestfs-actions.pod:6750
32273 msgid ""
32274 "This command creates the directory C<dir> and then fills it with files until "
32275 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32276 "and deletes them.  The intention is to scrub any free space on the partition "
32277 "containing C<dir>."
32278 msgstr ""
32279
32280 #. type: =head2
32281 #: ../src/guestfs-actions.pod:6763
32282 msgid "guestfs_set_append"
32283 msgstr ""
32284
32285 #. type: verbatim
32286 #: ../src/guestfs-actions.pod:6765
32287 #, no-wrap
32288 msgid ""
32289 " int\n"
32290 " guestfs_set_append (guestfs_h *g,\n"
32291 "                     const char *append);\n"
32292 "\n"
32293 msgstr ""
32294
32295 #. type: =head2
32296 #: ../src/guestfs-actions.pod:6782
32297 msgid "guestfs_set_attach_method"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-actions.pod:6784
32302 #, no-wrap
32303 msgid ""
32304 " int\n"
32305 " guestfs_set_attach_method (guestfs_h *g,\n"
32306 "                            const char *attachmethod);\n"
32307 "\n"
32308 msgstr ""
32309
32310 #. type: =head2
32311 #: ../src/guestfs-actions.pod:6812
32312 msgid "guestfs_set_autosync"
32313 msgstr ""
32314
32315 #. type: verbatim
32316 #: ../src/guestfs-actions.pod:6814
32317 #, no-wrap
32318 msgid ""
32319 " int\n"
32320 " guestfs_set_autosync (guestfs_h *g,\n"
32321 "                       int autosync);\n"
32322 "\n"
32323 msgstr ""
32324
32325 #. type: =head2
32326 #: ../src/guestfs-actions.pod:6830
32327 msgid "guestfs_set_direct"
32328 msgstr ""
32329
32330 #. type: verbatim
32331 #: ../src/guestfs-actions.pod:6832
32332 #, no-wrap
32333 msgid ""
32334 " int\n"
32335 " guestfs_set_direct (guestfs_h *g,\n"
32336 "                     int direct);\n"
32337 "\n"
32338 msgstr ""
32339
32340 #. type: textblock
32341 #: ../src/guestfs-actions.pod:6840
32342 msgid ""
32343 "One consequence of this is that log messages aren't caught by the library "
32344 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32345 "stdout."
32346 msgstr ""
32347
32348 #. type: =head2
32349 #: ../src/guestfs-actions.pod:6853
32350 msgid "guestfs_set_e2label"
32351 msgstr ""
32352
32353 #. type: verbatim
32354 #: ../src/guestfs-actions.pod:6855
32355 #, no-wrap
32356 msgid ""
32357 " int\n"
32358 " guestfs_set_e2label (guestfs_h *g,\n"
32359 "                      const char *device,\n"
32360 "                      const char *label);\n"
32361 "\n"
32362 msgstr ""
32363
32364 #. type: textblock
32365 #: ../src/guestfs-actions.pod:6864
32366 msgid ""
32367 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32368 "the existing label on a filesystem."
32369 msgstr ""
32370
32371 #. type: =head2
32372 #: ../src/guestfs-actions.pod:6871
32373 msgid "guestfs_set_e2uuid"
32374 msgstr ""
32375
32376 #. type: verbatim
32377 #: ../src/guestfs-actions.pod:6873
32378 #, no-wrap
32379 msgid ""
32380 " int\n"
32381 " guestfs_set_e2uuid (guestfs_h *g,\n"
32382 "                     const char *device,\n"
32383 "                     const char *uuid);\n"
32384 "\n"
32385 msgstr ""
32386
32387 #. type: textblock
32388 #: ../src/guestfs-actions.pod:6883
32389 msgid ""
32390 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32391 "the existing UUID of a filesystem."
32392 msgstr ""
32393
32394 #. type: =head2
32395 #: ../src/guestfs-actions.pod:6890
32396 msgid "guestfs_set_memsize"
32397 msgstr ""
32398
32399 #. type: verbatim
32400 #: ../src/guestfs-actions.pod:6892
32401 #, no-wrap
32402 msgid ""
32403 " int\n"
32404 " guestfs_set_memsize (guestfs_h *g,\n"
32405 "                      int memsize);\n"
32406 "\n"
32407 msgstr ""
32408
32409 #. type: textblock
32410 #: ../src/guestfs-actions.pod:6896
32411 msgid ""
32412 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32413 "This only has any effect if called before C<guestfs_launch>."
32414 msgstr ""
32415
32416 #. type: =head2
32417 #: ../src/guestfs-actions.pod:6911
32418 msgid "guestfs_set_network"
32419 msgstr ""
32420
32421 #. type: verbatim
32422 #: ../src/guestfs-actions.pod:6913
32423 #, no-wrap
32424 msgid ""
32425 " int\n"
32426 " guestfs_set_network (guestfs_h *g,\n"
32427 "                      int network);\n"
32428 "\n"
32429 msgstr ""
32430
32431 #. type: textblock
32432 #: ../src/guestfs-actions.pod:6923
32433 msgid ""
32434 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32435 "effect."
32436 msgstr ""
32437
32438 #. type: =head2
32439 #: ../src/guestfs-actions.pod:6930
32440 msgid "guestfs_set_path"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs-actions.pod:6932
32445 #, no-wrap
32446 msgid ""
32447 " int\n"
32448 " guestfs_set_path (guestfs_h *g,\n"
32449 "                   const char *searchpath);\n"
32450 "\n"
32451 msgstr ""
32452
32453 #. type: =head2
32454 #: ../src/guestfs-actions.pod:6947
32455 msgid "guestfs_set_pgroup"
32456 msgstr ""
32457
32458 #. type: verbatim
32459 #: ../src/guestfs-actions.pod:6949
32460 #, no-wrap
32461 msgid ""
32462 " int\n"
32463 " guestfs_set_pgroup (guestfs_h *g,\n"
32464 "                     int pgroup);\n"
32465 "\n"
32466 msgstr ""
32467
32468 #. type: =head2
32469 #: ../src/guestfs-actions.pod:6966
32470 msgid "guestfs_set_qemu"
32471 msgstr ""
32472
32473 #. type: verbatim
32474 #: ../src/guestfs-actions.pod:6968
32475 #, no-wrap
32476 msgid ""
32477 " int\n"
32478 " guestfs_set_qemu (guestfs_h *g,\n"
32479 "                   const char *qemu);\n"
32480 "\n"
32481 msgstr ""
32482
32483 #. type: =head2
32484 #: ../src/guestfs-actions.pod:6994
32485 msgid "guestfs_set_recovery_proc"
32486 msgstr ""
32487
32488 #. type: verbatim
32489 #: ../src/guestfs-actions.pod:6996
32490 #, no-wrap
32491 msgid ""
32492 " int\n"
32493 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32494 "                            int recoveryproc);\n"
32495 "\n"
32496 msgstr ""
32497
32498 #. type: textblock
32499 #: ../src/guestfs-actions.pod:7000
32500 msgid ""
32501 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32502 "not create a recovery process.  The purpose of the recovery process is to "
32503 "stop runaway qemu processes in the case where the main program aborts "
32504 "abruptly."
32505 msgstr ""
32506
32507 #. type: textblock
32508 #: ../src/guestfs-actions.pod:7005
32509 msgid ""
32510 "This only has any effect if called before C<guestfs_launch>, and the default "
32511 "is true."
32512 msgstr ""
32513
32514 #. type: =head2
32515 #: ../src/guestfs-actions.pod:7018
32516 msgid "guestfs_set_selinux"
32517 msgstr ""
32518
32519 #. type: verbatim
32520 #: ../src/guestfs-actions.pod:7020
32521 #, no-wrap
32522 msgid ""
32523 " int\n"
32524 " guestfs_set_selinux (guestfs_h *g,\n"
32525 "                      int selinux);\n"
32526 "\n"
32527 msgstr ""
32528
32529 #. type: =head2
32530 #: ../src/guestfs-actions.pod:7037
32531 msgid "guestfs_set_smp"
32532 msgstr ""
32533
32534 #. type: verbatim
32535 #: ../src/guestfs-actions.pod:7039
32536 #, no-wrap
32537 msgid ""
32538 " int\n"
32539 " guestfs_set_smp (guestfs_h *g,\n"
32540 "                  int smp);\n"
32541 "\n"
32542 msgstr ""
32543
32544 #. type: textblock
32545 #: ../src/guestfs-actions.pod:7047
32546 msgid "This function must be called before C<guestfs_launch>."
32547 msgstr ""
32548
32549 #. type: =head2
32550 #: ../src/guestfs-actions.pod:7053
32551 msgid "guestfs_set_trace"
32552 msgstr ""
32553
32554 #. type: verbatim
32555 #: ../src/guestfs-actions.pod:7055
32556 #, no-wrap
32557 msgid ""
32558 " int\n"
32559 " guestfs_set_trace (guestfs_h *g,\n"
32560 "                    int trace);\n"
32561 "\n"
32562 msgstr ""
32563
32564 #. type: textblock
32565 #: ../src/guestfs-actions.pod:7069
32566 msgid ""
32567 "Trace messages are normally sent to C<stderr>, unless you register a "
32568 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32569 msgstr ""
32570
32571 #. type: =head2
32572 #: ../src/guestfs-actions.pod:7077
32573 msgid "guestfs_set_verbose"
32574 msgstr ""
32575
32576 #. type: verbatim
32577 #: ../src/guestfs-actions.pod:7079
32578 #, no-wrap
32579 msgid ""
32580 " int\n"
32581 " guestfs_set_verbose (guestfs_h *g,\n"
32582 "                      int verbose);\n"
32583 "\n"
32584 msgstr ""
32585
32586 #. type: textblock
32587 #: ../src/guestfs-actions.pod:7088
32588 msgid ""
32589 "Verbose messages are normally sent to C<stderr>, unless you register a "
32590 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32591 msgstr ""
32592
32593 #. type: =head2
32594 #: ../src/guestfs-actions.pod:7096
32595 msgid "guestfs_setcon"
32596 msgstr ""
32597
32598 #. type: verbatim
32599 #: ../src/guestfs-actions.pod:7098
32600 #, no-wrap
32601 msgid ""
32602 " int\n"
32603 " guestfs_setcon (guestfs_h *g,\n"
32604 "                 const char *context);\n"
32605 "\n"
32606 msgstr ""
32607
32608 #. type: =head2
32609 #: ../src/guestfs-actions.pod:7111
32610 msgid "guestfs_setxattr"
32611 msgstr ""
32612
32613 #. type: verbatim
32614 #: ../src/guestfs-actions.pod:7113
32615 #, no-wrap
32616 msgid ""
32617 " int\n"
32618 " guestfs_setxattr (guestfs_h *g,\n"
32619 "                   const char *xattr,\n"
32620 "                   const char *val,\n"
32621 "                   int vallen,\n"
32622 "                   const char *path);\n"
32623 "\n"
32624 msgstr ""
32625
32626 #. type: textblock
32627 #: ../src/guestfs-actions.pod:7124
32628 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32629 msgstr ""
32630
32631 #. type: =head2
32632 #: ../src/guestfs-actions.pod:7130
32633 msgid "guestfs_sfdisk"
32634 msgstr ""
32635
32636 #. type: verbatim
32637 #: ../src/guestfs-actions.pod:7132
32638 #, no-wrap
32639 msgid ""
32640 " int\n"
32641 " guestfs_sfdisk (guestfs_h *g,\n"
32642 "                 const char *device,\n"
32643 "                 int cyls,\n"
32644 "                 int heads,\n"
32645 "                 int sectors,\n"
32646 "                 char *const *lines);\n"
32647 "\n"
32648 msgstr ""
32649
32650 #. type: textblock
32651 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7181
32652 #: ../src/guestfs-actions.pod:7212
32653 msgid ""
32654 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32655 "call instead."
32656 msgstr ""
32657
32658 #. type: textblock
32659 #: ../src/guestfs-actions.pod:7167
32660 msgid ""
32661 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32662 msgstr ""
32663
32664 #. type: =head2
32665 #: ../src/guestfs-actions.pod:7174
32666 msgid "guestfs_sfdiskM"
32667 msgstr ""
32668
32669 #. type: verbatim
32670 #: ../src/guestfs-actions.pod:7176
32671 #, no-wrap
32672 msgid ""
32673 " int\n"
32674 " guestfs_sfdiskM (guestfs_h *g,\n"
32675 "                  const char *device,\n"
32676 "                  char *const *lines);\n"
32677 "\n"
32678 msgstr ""
32679
32680 #. type: textblock
32681 #: ../src/guestfs-actions.pod:7188
32682 msgid ""
32683 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32684 "partition sizes are specified in megabytes only (rounded to the nearest "
32685 "cylinder) and you don't need to specify the cyls, heads and sectors "
32686 "parameters which were rarely if ever used anyway."
32687 msgstr ""
32688
32689 #. type: textblock
32690 #: ../src/guestfs-actions.pod:7194
32691 msgid ""
32692 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32693 "C<guestfs_part_disk>"
32694 msgstr ""
32695
32696 #. type: =head2
32697 #: ../src/guestfs-actions.pod:7201
32698 msgid "guestfs_sfdisk_N"
32699 msgstr ""
32700
32701 #. type: verbatim
32702 #: ../src/guestfs-actions.pod:7203
32703 #, no-wrap
32704 msgid ""
32705 " int\n"
32706 " guestfs_sfdisk_N (guestfs_h *g,\n"
32707 "                   const char *device,\n"
32708 "                   int partnum,\n"
32709 "                   int cyls,\n"
32710 "                   int heads,\n"
32711 "                   int sectors,\n"
32712 "                   const char *line);\n"
32713 "\n"
32714 msgstr ""
32715
32716 #. type: textblock
32717 #: ../src/guestfs-actions.pod:7222
32718 msgid ""
32719 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32720 "for the cyls/heads/sectors parameters."
32721 msgstr ""
32722
32723 #. type: textblock
32724 #: ../src/guestfs-actions.pod:7225
32725 msgid "See also: C<guestfs_part_add>"
32726 msgstr ""
32727
32728 #. type: =head2
32729 #: ../src/guestfs-actions.pod:7231
32730 msgid "guestfs_sfdisk_disk_geometry"
32731 msgstr ""
32732
32733 #. type: verbatim
32734 #: ../src/guestfs-actions.pod:7233
32735 #, no-wrap
32736 msgid ""
32737 " char *\n"
32738 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32739 "                               const char *device);\n"
32740 "\n"
32741 msgstr ""
32742
32743 #. type: textblock
32744 #: ../src/guestfs-actions.pod:7237
32745 msgid ""
32746 "This displays the disk geometry of C<device> read from the partition table.  "
32747 "Especially in the case where the underlying block device has been resized, "
32748 "this can be different from the kernel's idea of the geometry (see "
32749 "C<guestfs_sfdisk_kernel_geometry>)."
32750 msgstr ""
32751
32752 #. type: =head2
32753 #: ../src/guestfs-actions.pod:7250
32754 msgid "guestfs_sfdisk_kernel_geometry"
32755 msgstr ""
32756
32757 #. type: verbatim
32758 #: ../src/guestfs-actions.pod:7252
32759 #, no-wrap
32760 msgid ""
32761 " char *\n"
32762 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32763 "                                 const char *device);\n"
32764 "\n"
32765 msgstr ""
32766
32767 #. type: =head2
32768 #: ../src/guestfs-actions.pod:7266
32769 msgid "guestfs_sfdisk_l"
32770 msgstr ""
32771
32772 #. type: verbatim
32773 #: ../src/guestfs-actions.pod:7268
32774 #, no-wrap
32775 msgid ""
32776 " char *\n"
32777 " guestfs_sfdisk_l (guestfs_h *g,\n"
32778 "                   const char *device);\n"
32779 "\n"
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../src/guestfs-actions.pod:7272
32784 msgid ""
32785 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32786 "call instead."
32787 msgstr ""
32788
32789 #. type: textblock
32790 #: ../src/guestfs-actions.pod:7283
32791 msgid "See also: C<guestfs_part_list>"
32792 msgstr ""
32793
32794 #. type: =head2
32795 #: ../src/guestfs-actions.pod:7290
32796 msgid "guestfs_sh"
32797 msgstr ""
32798
32799 #. type: verbatim
32800 #: ../src/guestfs-actions.pod:7292
32801 #, no-wrap
32802 msgid ""
32803 " char *\n"
32804 " guestfs_sh (guestfs_h *g,\n"
32805 "             const char *command);\n"
32806 "\n"
32807 msgstr ""
32808
32809 #. type: textblock
32810 #: ../src/guestfs-actions.pod:7299
32811 msgid "This is like C<guestfs_command>, but passes the command to:"
32812 msgstr ""
32813
32814 #. type: textblock
32815 #: ../src/guestfs-actions.pod:7307
32816 msgid "All the provisos about C<guestfs_command> apply to this call."
32817 msgstr ""
32818
32819 #. type: =head2
32820 #: ../src/guestfs-actions.pod:7314
32821 msgid "guestfs_sh_lines"
32822 msgstr ""
32823
32824 #. type: verbatim
32825 #: ../src/guestfs-actions.pod:7316
32826 #, no-wrap
32827 msgid ""
32828 " char **\n"
32829 " guestfs_sh_lines (guestfs_h *g,\n"
32830 "                   const char *command);\n"
32831 "\n"
32832 msgstr ""
32833
32834 #. type: textblock
32835 #: ../src/guestfs-actions.pod:7320
32836 msgid ""
32837 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32838 "lines."
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs-actions.pod:7323
32843 msgid "See also: C<guestfs_command_lines>"
32844 msgstr ""
32845
32846 #. type: =head2
32847 #: ../src/guestfs-actions.pod:7331
32848 msgid "guestfs_sleep"
32849 msgstr ""
32850
32851 #. type: verbatim
32852 #: ../src/guestfs-actions.pod:7333
32853 #, no-wrap
32854 msgid ""
32855 " int\n"
32856 " guestfs_sleep (guestfs_h *g,\n"
32857 "                int secs);\n"
32858 "\n"
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs-actions.pod:7341
32863 msgid "(Added in 1.0.41)"
32864 msgstr ""
32865
32866 #. type: =head2
32867 #: ../src/guestfs-actions.pod:7343 ../src/guestfs-structs.pod:109
32868 msgid "guestfs_stat"
32869 msgstr ""
32870
32871 #. type: verbatim
32872 #: ../src/guestfs-actions.pod:7345
32873 #, no-wrap
32874 msgid ""
32875 " struct guestfs_stat *\n"
32876 " guestfs_stat (guestfs_h *g,\n"
32877 "               const char *path);\n"
32878 "\n"
32879 msgstr ""
32880
32881 #. type: =head2
32882 #: ../src/guestfs-actions.pod:7359 ../src/guestfs-structs.pod:135
32883 msgid "guestfs_statvfs"
32884 msgstr ""
32885
32886 #. type: verbatim
32887 #: ../src/guestfs-actions.pod:7361
32888 #, no-wrap
32889 msgid ""
32890 " struct guestfs_statvfs *\n"
32891 " guestfs_statvfs (guestfs_h *g,\n"
32892 "                  const char *path);\n"
32893 "\n"
32894 msgstr ""
32895
32896 #. type: textblock
32897 #: ../src/guestfs-actions.pod:7371
32898 msgid ""
32899 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32900 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32901 msgstr ""
32902
32903 #. type: =head2
32904 #: ../src/guestfs-actions.pod:7377
32905 msgid "guestfs_strings"
32906 msgstr ""
32907
32908 #. type: verbatim
32909 #: ../src/guestfs-actions.pod:7379
32910 #, no-wrap
32911 msgid ""
32912 " char **\n"
32913 " guestfs_strings (guestfs_h *g,\n"
32914 "                  const char *path);\n"
32915 "\n"
32916 msgstr ""
32917
32918 #. type: =head2
32919 #: ../src/guestfs-actions.pod:7395
32920 msgid "guestfs_strings_e"
32921 msgstr ""
32922
32923 #. type: verbatim
32924 #: ../src/guestfs-actions.pod:7397
32925 #, no-wrap
32926 msgid ""
32927 " char **\n"
32928 " guestfs_strings_e (guestfs_h *g,\n"
32929 "                    const char *encoding,\n"
32930 "                    const char *path);\n"
32931 "\n"
32932 msgstr ""
32933
32934 #. type: textblock
32935 #: ../src/guestfs-actions.pod:7402
32936 msgid ""
32937 "This is like the C<guestfs_strings> command, but allows you to specify the "
32938 "encoding of strings that are looked for in the source file C<path>."
32939 msgstr ""
32940
32941 #. type: textblock
32942 #: ../src/guestfs-actions.pod:7412
32943 msgid ""
32944 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32945 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32946 msgstr ""
32947
32948 #. type: =head2
32949 #: ../src/guestfs-actions.pod:7450
32950 msgid "guestfs_swapoff_device"
32951 msgstr ""
32952
32953 #. type: verbatim
32954 #: ../src/guestfs-actions.pod:7452
32955 #, no-wrap
32956 msgid ""
32957 " int\n"
32958 " guestfs_swapoff_device (guestfs_h *g,\n"
32959 "                         const char *device);\n"
32960 "\n"
32961 msgstr ""
32962
32963 #. type: textblock
32964 #: ../src/guestfs-actions.pod:7456
32965 msgid ""
32966 "This command disables the libguestfs appliance swap device or partition "
32967 "named C<device>.  See C<guestfs_swapon_device>."
32968 msgstr ""
32969
32970 #. type: =head2
32971 #: ../src/guestfs-actions.pod:7464
32972 msgid "guestfs_swapoff_file"
32973 msgstr ""
32974
32975 #. type: verbatim
32976 #: ../src/guestfs-actions.pod:7466
32977 #, no-wrap
32978 msgid ""
32979 " int\n"
32980 " guestfs_swapoff_file (guestfs_h *g,\n"
32981 "                       const char *file);\n"
32982 "\n"
32983 msgstr ""
32984
32985 #. type: =head2
32986 #: ../src/guestfs-actions.pod:7476
32987 msgid "guestfs_swapoff_label"
32988 msgstr ""
32989
32990 #. type: verbatim
32991 #: ../src/guestfs-actions.pod:7478
32992 #, no-wrap
32993 msgid ""
32994 " int\n"
32995 " guestfs_swapoff_label (guestfs_h *g,\n"
32996 "                        const char *label);\n"
32997 "\n"
32998 msgstr ""
32999
33000 #. type: =head2
33001 #: ../src/guestfs-actions.pod:7489
33002 msgid "guestfs_swapoff_uuid"
33003 msgstr ""
33004
33005 #. type: verbatim
33006 #: ../src/guestfs-actions.pod:7491
33007 #, no-wrap
33008 msgid ""
33009 " int\n"
33010 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33011 "                       const char *uuid);\n"
33012 "\n"
33013 msgstr ""
33014
33015 #. type: =head2
33016 #: ../src/guestfs-actions.pod:7502
33017 msgid "guestfs_swapon_device"
33018 msgstr ""
33019
33020 #. type: verbatim
33021 #: ../src/guestfs-actions.pod:7504
33022 #, no-wrap
33023 msgid ""
33024 " int\n"
33025 " guestfs_swapon_device (guestfs_h *g,\n"
33026 "                        const char *device);\n"
33027 "\n"
33028 msgstr ""
33029
33030 #. type: textblock
33031 #: ../src/guestfs-actions.pod:7508
33032 msgid ""
33033 "This command enables the libguestfs appliance to use the swap device or "
33034 "partition named C<device>.  The increased memory is made available for all "
33035 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33036 msgstr ""
33037
33038 #. type: =head2
33039 #: ../src/guestfs-actions.pod:7524
33040 msgid "guestfs_swapon_file"
33041 msgstr ""
33042
33043 #. type: verbatim
33044 #: ../src/guestfs-actions.pod:7526
33045 #, no-wrap
33046 msgid ""
33047 " int\n"
33048 " guestfs_swapon_file (guestfs_h *g,\n"
33049 "                      const char *file);\n"
33050 "\n"
33051 msgstr ""
33052
33053 #. type: textblock
33054 #: ../src/guestfs-actions.pod:7530
33055 msgid ""
33056 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33057 "notes."
33058 msgstr ""
33059
33060 #. type: =head2
33061 #: ../src/guestfs-actions.pod:7537
33062 msgid "guestfs_swapon_label"
33063 msgstr ""
33064
33065 #. type: verbatim
33066 #: ../src/guestfs-actions.pod:7539
33067 #, no-wrap
33068 msgid ""
33069 " int\n"
33070 " guestfs_swapon_label (guestfs_h *g,\n"
33071 "                       const char *label);\n"
33072 "\n"
33073 msgstr ""
33074
33075 #. type: textblock
33076 #: ../src/guestfs-actions.pod:7543
33077 msgid ""
33078 "This command enables swap to a labeled swap partition.  See "
33079 "C<guestfs_swapon_device> for other notes."
33080 msgstr ""
33081
33082 #. type: =head2
33083 #: ../src/guestfs-actions.pod:7550
33084 msgid "guestfs_swapon_uuid"
33085 msgstr ""
33086
33087 #. type: verbatim
33088 #: ../src/guestfs-actions.pod:7552
33089 #, no-wrap
33090 msgid ""
33091 " int\n"
33092 " guestfs_swapon_uuid (guestfs_h *g,\n"
33093 "                      const char *uuid);\n"
33094 "\n"
33095 msgstr ""
33096
33097 #. type: textblock
33098 #: ../src/guestfs-actions.pod:7556
33099 msgid ""
33100 "This command enables swap to a swap partition with the given UUID.  See "
33101 "C<guestfs_swapon_device> for other notes."
33102 msgstr ""
33103
33104 #. type: =head2
33105 #: ../src/guestfs-actions.pod:7563
33106 msgid "guestfs_sync"
33107 msgstr ""
33108
33109 #. type: verbatim
33110 #: ../src/guestfs-actions.pod:7565
33111 #, no-wrap
33112 msgid ""
33113 " int\n"
33114 " guestfs_sync (guestfs_h *g);\n"
33115 "\n"
33116 msgstr ""
33117
33118 #. type: =head2
33119 #: ../src/guestfs-actions.pod:7578
33120 msgid "guestfs_tail"
33121 msgstr ""
33122
33123 #. type: verbatim
33124 #: ../src/guestfs-actions.pod:7580
33125 #, no-wrap
33126 msgid ""
33127 " char **\n"
33128 " guestfs_tail (guestfs_h *g,\n"
33129 "               const char *path);\n"
33130 "\n"
33131 msgstr ""
33132
33133 #. type: =head2
33134 #: ../src/guestfs-actions.pod:7596
33135 msgid "guestfs_tail_n"
33136 msgstr ""
33137
33138 #. type: verbatim
33139 #: ../src/guestfs-actions.pod:7598
33140 #, no-wrap
33141 msgid ""
33142 " char **\n"
33143 " guestfs_tail_n (guestfs_h *g,\n"
33144 "                 int nrlines,\n"
33145 "                 const char *path);\n"
33146 "\n"
33147 msgstr ""
33148
33149 #. type: =head2
33150 #: ../src/guestfs-actions.pod:7620
33151 msgid "guestfs_tar_in"
33152 msgstr ""
33153
33154 #. type: verbatim
33155 #: ../src/guestfs-actions.pod:7622
33156 #, no-wrap
33157 msgid ""
33158 " int\n"
33159 " guestfs_tar_in (guestfs_h *g,\n"
33160 "                 const char *tarfile,\n"
33161 "                 const char *directory);\n"
33162 "\n"
33163 msgstr ""
33164
33165 #. type: textblock
33166 #: ../src/guestfs-actions.pod:7630
33167 msgid ""
33168 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33169 msgstr ""
33170
33171 #. type: textblock
33172 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7652
33173 #: ../src/guestfs-actions.pod:7668 ../src/guestfs-actions.pod:7684
33174 msgid "(Added in 1.0.3)"
33175 msgstr ""
33176
33177 #. type: =head2
33178 #: ../src/guestfs-actions.pod:7637
33179 msgid "guestfs_tar_out"
33180 msgstr ""
33181
33182 #. type: verbatim
33183 #: ../src/guestfs-actions.pod:7639
33184 #, no-wrap
33185 msgid ""
33186 " int\n"
33187 " guestfs_tar_out (guestfs_h *g,\n"
33188 "                  const char *directory,\n"
33189 "                  const char *tarfile);\n"
33190 "\n"
33191 msgstr ""
33192
33193 #. type: textblock
33194 #: ../src/guestfs-actions.pod:7647
33195 msgid ""
33196 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33197 "C<guestfs_txz_out>."
33198 msgstr ""
33199
33200 #. type: =head2
33201 #: ../src/guestfs-actions.pod:7654
33202 msgid "guestfs_tgz_in"
33203 msgstr ""
33204
33205 #. type: verbatim
33206 #: ../src/guestfs-actions.pod:7656
33207 #, no-wrap
33208 msgid ""
33209 " int\n"
33210 " guestfs_tgz_in (guestfs_h *g,\n"
33211 "                 const char *tarball,\n"
33212 "                 const char *directory);\n"
33213 "\n"
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs-actions.pod:7664
33218 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33219 msgstr ""
33220
33221 #. type: =head2
33222 #: ../src/guestfs-actions.pod:7670
33223 msgid "guestfs_tgz_out"
33224 msgstr ""
33225
33226 #. type: verbatim
33227 #: ../src/guestfs-actions.pod:7672
33228 #, no-wrap
33229 msgid ""
33230 " int\n"
33231 " guestfs_tgz_out (guestfs_h *g,\n"
33232 "                  const char *directory,\n"
33233 "                  const char *tarball);\n"
33234 "\n"
33235 msgstr ""
33236
33237 #. type: textblock
33238 #: ../src/guestfs-actions.pod:7680
33239 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33240 msgstr ""
33241
33242 #. type: =head2
33243 #: ../src/guestfs-actions.pod:7686
33244 msgid "guestfs_touch"
33245 msgstr ""
33246
33247 #. type: verbatim
33248 #: ../src/guestfs-actions.pod:7688
33249 #, no-wrap
33250 msgid ""
33251 " int\n"
33252 " guestfs_touch (guestfs_h *g,\n"
33253 "                const char *path);\n"
33254 "\n"
33255 msgstr ""
33256
33257 #. type: =head2
33258 #: ../src/guestfs-actions.pod:7703
33259 msgid "guestfs_truncate"
33260 msgstr ""
33261
33262 #. type: verbatim
33263 #: ../src/guestfs-actions.pod:7705
33264 #, no-wrap
33265 msgid ""
33266 " int\n"
33267 " guestfs_truncate (guestfs_h *g,\n"
33268 "                   const char *path);\n"
33269 "\n"
33270 msgstr ""
33271
33272 #. type: =head2
33273 #: ../src/guestfs-actions.pod:7716
33274 msgid "guestfs_truncate_size"
33275 msgstr ""
33276
33277 #. type: verbatim
33278 #: ../src/guestfs-actions.pod:7718
33279 #, no-wrap
33280 msgid ""
33281 " int\n"
33282 " guestfs_truncate_size (guestfs_h *g,\n"
33283 "                        const char *path,\n"
33284 "                        int64_t size);\n"
33285 "\n"
33286 msgstr ""
33287
33288 #. type: textblock
33289 #: ../src/guestfs-actions.pod:7726
33290 msgid ""
33291 "If the current file size is less than C<size> then the file is extended to "
33292 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33293 "blocks are not allocated for the file until you write to it).  To create a "
33294 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33295 msgstr ""
33296
33297 #. type: =head2
33298 #: ../src/guestfs-actions.pod:7736
33299 msgid "guestfs_tune2fs"
33300 msgstr ""
33301
33302 #. type: verbatim
33303 #: ../src/guestfs-actions.pod:7738
33304 #, no-wrap
33305 msgid ""
33306 " int\n"
33307 " guestfs_tune2fs (guestfs_h *g,\n"
33308 "                  const char *device,\n"
33309 "                  ...);\n"
33310 "\n"
33311 msgstr ""
33312
33313 #. type: verbatim
33314 #: ../src/guestfs-actions.pod:7748
33315 #, no-wrap
33316 msgid ""
33317 " GUESTFS_TUNE2FS_FORCE, int force,\n"
33318 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
33319 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
33320 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
33321 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
33322 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
33323 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
33324 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
33325 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
33326 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
33327 "\n"
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../src/guestfs-actions.pod:7828
33332 msgid ""
33333 "To get the current values of filesystem parameters, see "
33334 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
33335 "L<tune2fs(8)> man page."
33336 msgstr ""
33337
33338 #. type: =head2
33339 #: ../src/guestfs-actions.pod:7834
33340 msgid "guestfs_tune2fs_va"
33341 msgstr ""
33342
33343 #. type: verbatim
33344 #: ../src/guestfs-actions.pod:7836
33345 #, no-wrap
33346 msgid ""
33347 " int\n"
33348 " guestfs_tune2fs_va (guestfs_h *g,\n"
33349 "                     const char *device,\n"
33350 "                     va_list args);\n"
33351 "\n"
33352 msgstr ""
33353
33354 #. type: textblock
33355 #: ../src/guestfs-actions.pod:7841
33356 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
33357 msgstr ""
33358
33359 #. type: =head2
33360 #: ../src/guestfs-actions.pod:7845
33361 msgid "guestfs_tune2fs_argv"
33362 msgstr ""
33363
33364 #. type: verbatim
33365 #: ../src/guestfs-actions.pod:7847
33366 #, no-wrap
33367 msgid ""
33368 " int\n"
33369 " guestfs_tune2fs_argv (guestfs_h *g,\n"
33370 "                       const char *device,\n"
33371 "                       const struct guestfs_tune2fs_argv *optargs);\n"
33372 "\n"
33373 msgstr ""
33374
33375 #. type: textblock
33376 #: ../src/guestfs-actions.pod:7852
33377 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
33378 msgstr ""
33379
33380 #. type: =head2
33381 #: ../src/guestfs-actions.pod:7856
33382 msgid "guestfs_tune2fs_l"
33383 msgstr ""
33384
33385 #. type: verbatim
33386 #: ../src/guestfs-actions.pod:7858
33387 #, no-wrap
33388 msgid ""
33389 " char **\n"
33390 " guestfs_tune2fs_l (guestfs_h *g,\n"
33391 "                    const char *device);\n"
33392 "\n"
33393 msgstr ""
33394
33395 #. type: =head2
33396 #: ../src/guestfs-actions.pod:7878
33397 msgid "guestfs_txz_in"
33398 msgstr ""
33399
33400 #. type: verbatim
33401 #: ../src/guestfs-actions.pod:7880
33402 #, no-wrap
33403 msgid ""
33404 " int\n"
33405 " guestfs_txz_in (guestfs_h *g,\n"
33406 "                 const char *tarball,\n"
33407 "                 const char *directory);\n"
33408 "\n"
33409 msgstr ""
33410
33411 #. type: =head2
33412 #: ../src/guestfs-actions.pod:7892
33413 msgid "guestfs_txz_out"
33414 msgstr ""
33415
33416 #. type: verbatim
33417 #: ../src/guestfs-actions.pod:7894
33418 #, no-wrap
33419 msgid ""
33420 " int\n"
33421 " guestfs_txz_out (guestfs_h *g,\n"
33422 "                  const char *directory,\n"
33423 "                  const char *tarball);\n"
33424 "\n"
33425 msgstr ""
33426
33427 #. type: =head2
33428 #: ../src/guestfs-actions.pod:7906
33429 msgid "guestfs_umask"
33430 msgstr ""
33431
33432 #. type: verbatim
33433 #: ../src/guestfs-actions.pod:7908
33434 #, no-wrap
33435 msgid ""
33436 " int\n"
33437 " guestfs_umask (guestfs_h *g,\n"
33438 "                int mask);\n"
33439 "\n"
33440 msgstr ""
33441
33442 #. type: textblock
33443 #: ../src/guestfs-actions.pod:7924
33444 msgid ""
33445 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33446 "C<guestfs_mkdir>."
33447 msgstr ""
33448
33449 #. type: =head2
33450 #: ../src/guestfs-actions.pod:7933
33451 msgid "guestfs_umount"
33452 msgstr ""
33453
33454 #. type: verbatim
33455 #: ../src/guestfs-actions.pod:7935
33456 #, no-wrap
33457 msgid ""
33458 " int\n"
33459 " guestfs_umount (guestfs_h *g,\n"
33460 "                 const char *pathordevice);\n"
33461 "\n"
33462 msgstr ""
33463
33464 #. type: =head2
33465 #: ../src/guestfs-actions.pod:7947
33466 msgid "guestfs_umount_all"
33467 msgstr ""
33468
33469 #. type: verbatim
33470 #: ../src/guestfs-actions.pod:7949
33471 #, no-wrap
33472 msgid ""
33473 " int\n"
33474 " guestfs_umount_all (guestfs_h *g);\n"
33475 "\n"
33476 msgstr ""
33477
33478 #. type: =head2
33479 #: ../src/guestfs-actions.pod:7960
33480 msgid "guestfs_upload"
33481 msgstr ""
33482
33483 #. type: verbatim
33484 #: ../src/guestfs-actions.pod:7962
33485 #, no-wrap
33486 msgid ""
33487 " int\n"
33488 " guestfs_upload (guestfs_h *g,\n"
33489 "                 const char *filename,\n"
33490 "                 const char *remotefilename);\n"
33491 "\n"
33492 msgstr ""
33493
33494 #. type: textblock
33495 #: ../src/guestfs-actions.pod:7972
33496 msgid "See also C<guestfs_download>."
33497 msgstr ""
33498
33499 #. type: =head2
33500 #: ../src/guestfs-actions.pod:7983
33501 msgid "guestfs_upload_offset"
33502 msgstr ""
33503
33504 #. type: verbatim
33505 #: ../src/guestfs-actions.pod:7985
33506 #, no-wrap
33507 msgid ""
33508 " int\n"
33509 " guestfs_upload_offset (guestfs_h *g,\n"
33510 "                        const char *filename,\n"
33511 "                        const char *remotefilename,\n"
33512 "                        int64_t offset);\n"
33513 "\n"
33514 msgstr ""
33515
33516 #. type: textblock
33517 #: ../src/guestfs-actions.pod:8001
33518 msgid ""
33519 "Note that there is no limit on the amount of data that can be uploaded with "
33520 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33521 "full amount unless an error occurs."
33522 msgstr ""
33523
33524 #. type: textblock
33525 #: ../src/guestfs-actions.pod:8006
33526 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33527 msgstr ""
33528
33529 #. type: =head2
33530 #: ../src/guestfs-actions.pod:8017
33531 msgid "guestfs_utimens"
33532 msgstr ""
33533
33534 #. type: verbatim
33535 #: ../src/guestfs-actions.pod:8019
33536 #, no-wrap
33537 msgid ""
33538 " int\n"
33539 " guestfs_utimens (guestfs_h *g,\n"
33540 "                  const char *path,\n"
33541 "                  int64_t atsecs,\n"
33542 "                  int64_t atnsecs,\n"
33543 "                  int64_t mtsecs,\n"
33544 "                  int64_t mtnsecs);\n"
33545 "\n"
33546 msgstr ""
33547
33548 #. type: =head2
33549 #: ../src/guestfs-actions.pod:8048 ../src/guestfs-structs.pod:175
33550 msgid "guestfs_version"
33551 msgstr ""
33552
33553 #. type: verbatim
33554 #: ../src/guestfs-actions.pod:8050
33555 #, no-wrap
33556 msgid ""
33557 " struct guestfs_version *\n"
33558 " guestfs_version (guestfs_h *g);\n"
33559 "\n"
33560 msgstr ""
33561
33562 #. type: textblock
33563 #: ../src/guestfs-actions.pod:8078
33564 msgid ""
33565 "I<Note:> Don't use this call to test for availability of features.  In "
33566 "enterprise distributions we backport features from later versions into "
33567 "earlier versions, making this an unreliable way to test for features.  Use "
33568 "C<guestfs_available> instead."
33569 msgstr ""
33570
33571 #. type: textblock
33572 #: ../src/guestfs-actions.pod:8084
33573 msgid ""
33574 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33575 "error.  I<The caller must call C<guestfs_free_version> after use>."
33576 msgstr ""
33577
33578 #. type: textblock
33579 #: ../src/guestfs-actions.pod:8088
33580 msgid "(Added in 1.0.58)"
33581 msgstr ""
33582
33583 #. type: =head2
33584 #: ../src/guestfs-actions.pod:8090
33585 msgid "guestfs_vfs_label"
33586 msgstr ""
33587
33588 #. type: verbatim
33589 #: ../src/guestfs-actions.pod:8092
33590 #, no-wrap
33591 msgid ""
33592 " char *\n"
33593 " guestfs_vfs_label (guestfs_h *g,\n"
33594 "                    const char *device);\n"
33595 "\n"
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs-actions.pod:8101
33600 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33601 msgstr ""
33602
33603 #. type: textblock
33604 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-actions.pod:8143
33605 msgid "(Added in 1.3.18)"
33606 msgstr ""
33607
33608 #. type: =head2
33609 #: ../src/guestfs-actions.pod:8108
33610 msgid "guestfs_vfs_type"
33611 msgstr ""
33612
33613 #. type: verbatim
33614 #: ../src/guestfs-actions.pod:8110
33615 #, no-wrap
33616 msgid ""
33617 " char *\n"
33618 " guestfs_vfs_type (guestfs_h *g,\n"
33619 "                   const char *device);\n"
33620 "\n"
33621 msgstr ""
33622
33623 #. type: =head2
33624 #: ../src/guestfs-actions.pod:8127
33625 msgid "guestfs_vfs_uuid"
33626 msgstr ""
33627
33628 #. type: verbatim
33629 #: ../src/guestfs-actions.pod:8129
33630 #, no-wrap
33631 msgid ""
33632 " char *\n"
33633 " guestfs_vfs_uuid (guestfs_h *g,\n"
33634 "                   const char *device);\n"
33635 "\n"
33636 msgstr ""
33637
33638 #. type: textblock
33639 #: ../src/guestfs-actions.pod:8138
33640 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33641 msgstr ""
33642
33643 #. type: =head2
33644 #: ../src/guestfs-actions.pod:8145
33645 msgid "guestfs_vg_activate"
33646 msgstr ""
33647
33648 #. type: verbatim
33649 #: ../src/guestfs-actions.pod:8147
33650 #, no-wrap
33651 msgid ""
33652 " int\n"
33653 " guestfs_vg_activate (guestfs_h *g,\n"
33654 "                      int activate,\n"
33655 "                      char *const *volgroups);\n"
33656 "\n"
33657 msgstr ""
33658
33659 #. type: =head2
33660 #: ../src/guestfs-actions.pod:8164
33661 msgid "guestfs_vg_activate_all"
33662 msgstr ""
33663
33664 #. type: verbatim
33665 #: ../src/guestfs-actions.pod:8166
33666 #, no-wrap
33667 msgid ""
33668 " int\n"
33669 " guestfs_vg_activate_all (guestfs_h *g,\n"
33670 "                          int activate);\n"
33671 "\n"
33672 msgstr ""
33673
33674 #. type: =head2
33675 #: ../src/guestfs-actions.pod:8179
33676 msgid "guestfs_vgcreate"
33677 msgstr ""
33678
33679 #. type: verbatim
33680 #: ../src/guestfs-actions.pod:8181
33681 #, no-wrap
33682 msgid ""
33683 " int\n"
33684 " guestfs_vgcreate (guestfs_h *g,\n"
33685 "                   const char *volgroup,\n"
33686 "                   char *const *physvols);\n"
33687 "\n"
33688 msgstr ""
33689
33690 #. type: =head2
33691 #: ../src/guestfs-actions.pod:8193
33692 msgid "guestfs_vglvuuids"
33693 msgstr ""
33694
33695 #. type: verbatim
33696 #: ../src/guestfs-actions.pod:8195
33697 #, no-wrap
33698 msgid ""
33699 " char **\n"
33700 " guestfs_vglvuuids (guestfs_h *g,\n"
33701 "                    const char *vgname);\n"
33702 "\n"
33703 msgstr ""
33704
33705 #. type: textblock
33706 #: ../src/guestfs-actions.pod:8202
33707 msgid ""
33708 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33709 "associate logical volumes and volume groups."
33710 msgstr ""
33711
33712 #. type: textblock
33713 #: ../src/guestfs-actions.pod:8205
33714 msgid "See also C<guestfs_vgpvuuids>."
33715 msgstr ""
33716
33717 #. type: =head2
33718 #: ../src/guestfs-actions.pod:8213
33719 msgid "guestfs_vgpvuuids"
33720 msgstr ""
33721
33722 #. type: verbatim
33723 #: ../src/guestfs-actions.pod:8215
33724 #, no-wrap
33725 msgid ""
33726 " char **\n"
33727 " guestfs_vgpvuuids (guestfs_h *g,\n"
33728 "                    const char *vgname);\n"
33729 "\n"
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs-actions.pod:8222
33734 msgid ""
33735 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33736 "associate physical volumes and volume groups."
33737 msgstr ""
33738
33739 #. type: textblock
33740 #: ../src/guestfs-actions.pod:8225
33741 msgid "See also C<guestfs_vglvuuids>."
33742 msgstr ""
33743
33744 #. type: =head2
33745 #: ../src/guestfs-actions.pod:8233
33746 msgid "guestfs_vgremove"
33747 msgstr ""
33748
33749 #. type: verbatim
33750 #: ../src/guestfs-actions.pod:8235
33751 #, no-wrap
33752 msgid ""
33753 " int\n"
33754 " guestfs_vgremove (guestfs_h *g,\n"
33755 "                   const char *vgname);\n"
33756 "\n"
33757 msgstr ""
33758
33759 #. type: =head2
33760 #: ../src/guestfs-actions.pod:8248
33761 msgid "guestfs_vgrename"
33762 msgstr ""
33763
33764 #. type: verbatim
33765 #: ../src/guestfs-actions.pod:8250
33766 #, no-wrap
33767 msgid ""
33768 " int\n"
33769 " guestfs_vgrename (guestfs_h *g,\n"
33770 "                   const char *volgroup,\n"
33771 "                   const char *newvolgroup);\n"
33772 "\n"
33773 msgstr ""
33774
33775 #. type: =head2
33776 #: ../src/guestfs-actions.pod:8261
33777 msgid "guestfs_vgs"
33778 msgstr ""
33779
33780 #. type: verbatim
33781 #: ../src/guestfs-actions.pod:8263
33782 #, no-wrap
33783 msgid ""
33784 " char **\n"
33785 " guestfs_vgs (guestfs_h *g);\n"
33786 "\n"
33787 msgstr ""
33788
33789 #. type: textblock
33790 #: ../src/guestfs-actions.pod:8272
33791 msgid "See also C<guestfs_vgs_full>."
33792 msgstr ""
33793
33794 #. type: =head2
33795 #: ../src/guestfs-actions.pod:8280
33796 msgid "guestfs_vgs_full"
33797 msgstr ""
33798
33799 #. type: verbatim
33800 #: ../src/guestfs-actions.pod:8282
33801 #, no-wrap
33802 msgid ""
33803 " struct guestfs_lvm_vg_list *\n"
33804 " guestfs_vgs_full (guestfs_h *g);\n"
33805 "\n"
33806 msgstr ""
33807
33808 #. type: textblock
33809 #: ../src/guestfs-actions.pod:8288
33810 msgid ""
33811 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33812 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33813 msgstr ""
33814
33815 #. type: =head2
33816 #: ../src/guestfs-actions.pod:8294
33817 msgid "guestfs_vgscan"
33818 msgstr ""
33819
33820 #. type: verbatim
33821 #: ../src/guestfs-actions.pod:8296
33822 #, no-wrap
33823 msgid ""
33824 " int\n"
33825 " guestfs_vgscan (guestfs_h *g);\n"
33826 "\n"
33827 msgstr ""
33828
33829 #. type: =head2
33830 #: ../src/guestfs-actions.pod:8306
33831 msgid "guestfs_vguuid"
33832 msgstr ""
33833
33834 #. type: verbatim
33835 #: ../src/guestfs-actions.pod:8308
33836 #, no-wrap
33837 msgid ""
33838 " char *\n"
33839 " guestfs_vguuid (guestfs_h *g,\n"
33840 "                 const char *vgname);\n"
33841 "\n"
33842 msgstr ""
33843
33844 #. type: =head2
33845 #: ../src/guestfs-actions.pod:8319
33846 msgid "guestfs_wait_ready"
33847 msgstr ""
33848
33849 #. type: verbatim
33850 #: ../src/guestfs-actions.pod:8321
33851 #, no-wrap
33852 msgid ""
33853 " int\n"
33854 " guestfs_wait_ready (guestfs_h *g);\n"
33855 "\n"
33856 msgstr ""
33857
33858 #. type: textblock
33859 #: ../src/guestfs-actions.pod:8324
33860 msgid ""
33861 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33862 "instead."
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs-actions.pod:8331
33867 msgid "This function is a no op."
33868 msgstr ""
33869
33870 #. type: textblock
33871 #: ../src/guestfs-actions.pod:8333
33872 msgid ""
33873 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33874 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33875 "is no longer necessary because C<guestfs_launch> now does the waiting."
33876 msgstr ""
33877
33878 #. type: textblock
33879 #: ../src/guestfs-actions.pod:8338
33880 msgid ""
33881 "If you see any calls to this function in code then you can just remove them, "
33882 "unless you want to retain compatibility with older versions of the API."
33883 msgstr ""
33884
33885 #. type: =head2
33886 #: ../src/guestfs-actions.pod:8346
33887 msgid "guestfs_wc_c"
33888 msgstr ""
33889
33890 #. type: verbatim
33891 #: ../src/guestfs-actions.pod:8348
33892 #, no-wrap
33893 msgid ""
33894 " int\n"
33895 " guestfs_wc_c (guestfs_h *g,\n"
33896 "               const char *path);\n"
33897 "\n"
33898 msgstr ""
33899
33900 #. type: =head2
33901 #: ../src/guestfs-actions.pod:8359
33902 msgid "guestfs_wc_l"
33903 msgstr ""
33904
33905 #. type: verbatim
33906 #: ../src/guestfs-actions.pod:8361
33907 #, no-wrap
33908 msgid ""
33909 " int\n"
33910 " guestfs_wc_l (guestfs_h *g,\n"
33911 "               const char *path);\n"
33912 "\n"
33913 msgstr ""
33914
33915 #. type: =head2
33916 #: ../src/guestfs-actions.pod:8372
33917 msgid "guestfs_wc_w"
33918 msgstr ""
33919
33920 #. type: verbatim
33921 #: ../src/guestfs-actions.pod:8374
33922 #, no-wrap
33923 msgid ""
33924 " int\n"
33925 " guestfs_wc_w (guestfs_h *g,\n"
33926 "               const char *path);\n"
33927 "\n"
33928 msgstr ""
33929
33930 #. type: =head2
33931 #: ../src/guestfs-actions.pod:8385
33932 msgid "guestfs_write"
33933 msgstr ""
33934
33935 #. type: verbatim
33936 #: ../src/guestfs-actions.pod:8387
33937 #, no-wrap
33938 msgid ""
33939 " int\n"
33940 " guestfs_write (guestfs_h *g,\n"
33941 "                const char *path,\n"
33942 "                const char *content,\n"
33943 "                size_t content_size);\n"
33944 "\n"
33945 msgstr ""
33946
33947 #. type: textblock
33948 #: ../src/guestfs-actions.pod:8396
33949 msgid "See also C<guestfs_write_append>."
33950 msgstr ""
33951
33952 #. type: =head2
33953 #: ../src/guestfs-actions.pod:8405
33954 msgid "guestfs_write_append"
33955 msgstr ""
33956
33957 #. type: verbatim
33958 #: ../src/guestfs-actions.pod:8407
33959 #, no-wrap
33960 msgid ""
33961 " int\n"
33962 " guestfs_write_append (guestfs_h *g,\n"
33963 "                       const char *path,\n"
33964 "                       const char *content,\n"
33965 "                       size_t content_size);\n"
33966 "\n"
33967 msgstr ""
33968
33969 #. type: textblock
33970 #: ../src/guestfs-actions.pod:8416
33971 msgid "See also C<guestfs_write>."
33972 msgstr ""
33973
33974 #. type: =head2
33975 #: ../src/guestfs-actions.pod:8425
33976 msgid "guestfs_write_file"
33977 msgstr ""
33978
33979 #. type: verbatim
33980 #: ../src/guestfs-actions.pod:8427
33981 #, no-wrap
33982 msgid ""
33983 " int\n"
33984 " guestfs_write_file (guestfs_h *g,\n"
33985 "                     const char *path,\n"
33986 "                     const char *content,\n"
33987 "                     int size);\n"
33988 "\n"
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs-actions.pod:8433
33993 msgid ""
33994 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33995 "instead."
33996 msgstr ""
33997
33998 #. type: =head2
33999 #: ../src/guestfs-actions.pod:8458
34000 msgid "guestfs_zegrep"
34001 msgstr ""
34002
34003 #. type: verbatim
34004 #: ../src/guestfs-actions.pod:8460
34005 #, no-wrap
34006 msgid ""
34007 " char **\n"
34008 " guestfs_zegrep (guestfs_h *g,\n"
34009 "                 const char *regex,\n"
34010 "                 const char *path);\n"
34011 "\n"
34012 msgstr ""
34013
34014 #. type: =head2
34015 #: ../src/guestfs-actions.pod:8477
34016 msgid "guestfs_zegrepi"
34017 msgstr ""
34018
34019 #. type: verbatim
34020 #: ../src/guestfs-actions.pod:8479
34021 #, no-wrap
34022 msgid ""
34023 " char **\n"
34024 " guestfs_zegrepi (guestfs_h *g,\n"
34025 "                  const char *regex,\n"
34026 "                  const char *path);\n"
34027 "\n"
34028 msgstr ""
34029
34030 #. type: =head2
34031 #: ../src/guestfs-actions.pod:8496
34032 msgid "guestfs_zero"
34033 msgstr ""
34034
34035 #. type: verbatim
34036 #: ../src/guestfs-actions.pod:8498
34037 #, no-wrap
34038 msgid ""
34039 " int\n"
34040 " guestfs_zero (guestfs_h *g,\n"
34041 "               const char *device);\n"
34042 "\n"
34043 msgstr ""
34044
34045 #. type: textblock
34046 #: ../src/guestfs-actions.pod:8512
34047 msgid ""
34048 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34049 "C<guestfs_is_zero_device>"
34050 msgstr ""
34051
34052 #. type: =head2
34053 #: ../src/guestfs-actions.pod:8524
34054 msgid "guestfs_zero_device"
34055 msgstr ""
34056
34057 #. type: verbatim
34058 #: ../src/guestfs-actions.pod:8526
34059 #, no-wrap
34060 msgid ""
34061 " int\n"
34062 " guestfs_zero_device (guestfs_h *g,\n"
34063 "                      const char *device);\n"
34064 "\n"
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs-actions.pod:8530
34069 msgid ""
34070 "This command writes zeroes over the entire C<device>.  Compare with "
34071 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34072 msgstr ""
34073
34074 #. type: textblock
34075 #: ../src/guestfs-actions.pod:8545
34076 msgid "(Added in 1.3.1)"
34077 msgstr ""
34078
34079 #. type: =head2
34080 #: ../src/guestfs-actions.pod:8547
34081 msgid "guestfs_zerofree"
34082 msgstr ""
34083
34084 #. type: verbatim
34085 #: ../src/guestfs-actions.pod:8549
34086 #, no-wrap
34087 msgid ""
34088 " int\n"
34089 " guestfs_zerofree (guestfs_h *g,\n"
34090 "                   const char *device);\n"
34091 "\n"
34092 msgstr ""
34093
34094 #. type: =head2
34095 #: ../src/guestfs-actions.pod:8568
34096 msgid "guestfs_zfgrep"
34097 msgstr ""
34098
34099 #. type: verbatim
34100 #: ../src/guestfs-actions.pod:8570
34101 #, no-wrap
34102 msgid ""
34103 " char **\n"
34104 " guestfs_zfgrep (guestfs_h *g,\n"
34105 "                 const char *pattern,\n"
34106 "                 const char *path);\n"
34107 "\n"
34108 msgstr ""
34109
34110 #. type: =head2
34111 #: ../src/guestfs-actions.pod:8587
34112 msgid "guestfs_zfgrepi"
34113 msgstr ""
34114
34115 #. type: verbatim
34116 #: ../src/guestfs-actions.pod:8589
34117 #, no-wrap
34118 msgid ""
34119 " char **\n"
34120 " guestfs_zfgrepi (guestfs_h *g,\n"
34121 "                  const char *pattern,\n"
34122 "                  const char *path);\n"
34123 "\n"
34124 msgstr ""
34125
34126 #. type: =head2
34127 #: ../src/guestfs-actions.pod:8606
34128 msgid "guestfs_zfile"
34129 msgstr ""
34130
34131 #. type: verbatim
34132 #: ../src/guestfs-actions.pod:8608
34133 #, no-wrap
34134 msgid ""
34135 " char *\n"
34136 " guestfs_zfile (guestfs_h *g,\n"
34137 "                const char *meth,\n"
34138 "                const char *path);\n"
34139 "\n"
34140 msgstr ""
34141
34142 #. type: textblock
34143 #: ../src/guestfs-actions.pod:8613
34144 msgid ""
34145 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34146 "instead."
34147 msgstr ""
34148
34149 #. type: textblock
34150 #: ../src/guestfs-actions.pod:8625
34151 msgid ""
34152 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34153 "files."
34154 msgstr ""
34155
34156 #. type: =head2
34157 #: ../src/guestfs-actions.pod:8633
34158 msgid "guestfs_zgrep"
34159 msgstr ""
34160
34161 #. type: verbatim
34162 #: ../src/guestfs-actions.pod:8635
34163 #, no-wrap
34164 msgid ""
34165 " char **\n"
34166 " guestfs_zgrep (guestfs_h *g,\n"
34167 "                const char *regex,\n"
34168 "                const char *path);\n"
34169 "\n"
34170 msgstr ""
34171
34172 #. type: =head2
34173 #: ../src/guestfs-actions.pod:8652
34174 msgid "guestfs_zgrepi"
34175 msgstr ""
34176
34177 #. type: verbatim
34178 #: ../src/guestfs-actions.pod:8654
34179 #, no-wrap
34180 msgid ""
34181 " char **\n"
34182 " guestfs_zgrepi (guestfs_h *g,\n"
34183 "                 const char *regex,\n"
34184 "                 const char *path);\n"
34185 "\n"
34186 msgstr ""
34187
34188 #. type: =item
34189 #: ../src/guestfs-availability.pod:3
34190 msgid "B<augeas>"
34191 msgstr ""
34192
34193 #. type: textblock
34194 #: ../src/guestfs-availability.pod:5
34195 msgid ""
34196 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34197 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34198 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34199 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34200 "L</guestfs_aug_save> L</guestfs_aug_set>"
34201 msgstr ""
34202
34203 #. type: =item
34204 #: ../src/guestfs-availability.pod:21
34205 msgid "B<btrfs>"
34206 msgstr ""
34207
34208 #. type: textblock
34209 #: ../src/guestfs-availability.pod:23
34210 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34211 msgstr ""
34212
34213 #. type: =item
34214 #: ../src/guestfs-availability.pod:26
34215 msgid "B<grub>"
34216 msgstr ""
34217
34218 #. type: textblock
34219 #: ../src/guestfs-availability.pod:28
34220 msgid "The following functions: L</guestfs_grub_install>"
34221 msgstr ""
34222
34223 #. type: =item
34224 #: ../src/guestfs-availability.pod:31
34225 msgid "B<inotify>"
34226 msgstr ""
34227
34228 #. type: textblock
34229 #: ../src/guestfs-availability.pod:33
34230 msgid ""
34231 "The following functions: L</guestfs_inotify_add_watch> L</"
34232 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34233 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34234 msgstr ""
34235
34236 #. type: =item
34237 #: ../src/guestfs-availability.pod:41
34238 msgid "B<linuxfsuuid>"
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs-availability.pod:43
34243 msgid ""
34244 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34245 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34246 msgstr ""
34247
34248 #. type: =item
34249 #: ../src/guestfs-availability.pod:50
34250 msgid "B<linuxmodules>"
34251 msgstr ""
34252
34253 #. type: textblock
34254 #: ../src/guestfs-availability.pod:52
34255 msgid "The following functions: L</guestfs_modprobe>"
34256 msgstr ""
34257
34258 #. type: =item
34259 #: ../src/guestfs-availability.pod:55
34260 msgid "B<linuxxattrs>"
34261 msgstr ""
34262
34263 #. type: textblock
34264 #: ../src/guestfs-availability.pod:57
34265 msgid ""
34266 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34267 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34268 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34269 "guestfs_setxattr>"
34270 msgstr ""
34271
34272 #. type: =item
34273 #: ../src/guestfs-availability.pod:68
34274 msgid "B<luks>"
34275 msgstr ""
34276
34277 #. type: textblock
34278 #: ../src/guestfs-availability.pod:70
34279 msgid ""
34280 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34281 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34282 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34283 msgstr ""
34284
34285 #. type: =item
34286 #: ../src/guestfs-availability.pod:79
34287 msgid "B<lvm2>"
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs-availability.pod:81
34292 msgid ""
34293 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34294 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34295 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34296 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34297 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34298 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34299 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34300 msgstr ""
34301
34302 #. type: =item
34303 #: ../src/guestfs-availability.pod:104
34304 msgid "B<mdadm>"
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs-availability.pod:106
34309 msgid ""
34310 "The following functions: L</guestfs_mdadm_create> L</guestfs_mdadm_detail>"
34311 msgstr ""
34312
34313 #. type: =item
34314 #: ../src/guestfs-availability.pod:110
34315 msgid "B<mknod>"
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs-availability.pod:112
34320 msgid ""
34321 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34322 "guestfs_mknod_b> L</guestfs_mknod_c>"
34323 msgstr ""
34324
34325 #. type: =item
34326 #: ../src/guestfs-availability.pod:118
34327 msgid "B<ntfs3g>"
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs-availability.pod:120
34332 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34333 msgstr ""
34334
34335 #. type: =item
34336 #: ../src/guestfs-availability.pod:123
34337 msgid "B<ntfsprogs>"
34338 msgstr ""
34339
34340 #. type: textblock
34341 #: ../src/guestfs-availability.pod:125
34342 msgid ""
34343 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34344 "L</guestfs_ntfsresize_size>"
34345 msgstr ""
34346
34347 #. type: =item
34348 #: ../src/guestfs-availability.pod:130
34349 msgid "B<realpath>"
34350 msgstr ""
34351
34352 #. type: textblock
34353 #: ../src/guestfs-availability.pod:132
34354 msgid "The following functions: L</guestfs_realpath>"
34355 msgstr ""
34356
34357 #. type: =item
34358 #: ../src/guestfs-availability.pod:135
34359 msgid "B<scrub>"
34360 msgstr ""
34361
34362 #. type: textblock
34363 #: ../src/guestfs-availability.pod:137
34364 msgid ""
34365 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34366 "guestfs_scrub_freespace>"
34367 msgstr ""
34368
34369 #. type: =item
34370 #: ../src/guestfs-availability.pod:142
34371 msgid "B<selinux>"
34372 msgstr ""
34373
34374 #. type: textblock
34375 #: ../src/guestfs-availability.pod:144
34376 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34377 msgstr ""
34378
34379 #. type: =item
34380 #: ../src/guestfs-availability.pod:148
34381 msgid "B<xz>"
34382 msgstr ""
34383
34384 #. type: textblock
34385 #: ../src/guestfs-availability.pod:150
34386 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34387 msgstr ""
34388
34389 #. type: =item
34390 #: ../src/guestfs-availability.pod:154
34391 msgid "B<zerofree>"
34392 msgstr ""
34393
34394 #. type: textblock
34395 #: ../src/guestfs-availability.pod:156
34396 msgid "The following functions: L</guestfs_zerofree>"
34397 msgstr ""
34398
34399 #. type: =head2
34400 #: ../src/guestfs-structs.pod:1
34401 msgid "guestfs_int_bool"
34402 msgstr ""
34403
34404 #. type: verbatim
34405 #: ../src/guestfs-structs.pod:3
34406 #, no-wrap
34407 msgid ""
34408 " struct guestfs_int_bool {\n"
34409 "   int32_t i;\n"
34410 "   int32_t b;\n"
34411 " };\n"
34412 " \n"
34413 msgstr ""
34414
34415 #. type: verbatim
34416 #: ../src/guestfs-structs.pod:8
34417 #, no-wrap
34418 msgid ""
34419 " struct guestfs_int_bool_list {\n"
34420 "   uint32_t len; /* Number of elements in list. */\n"
34421 "   struct guestfs_int_bool *val; /* Elements. */\n"
34422 " };\n"
34423 " \n"
34424 msgstr ""
34425
34426 #. type: verbatim
34427 #: ../src/guestfs-structs.pod:13
34428 #, no-wrap
34429 msgid ""
34430 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34431 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34432 "\n"
34433 msgstr ""
34434
34435 #. type: =head2
34436 #: ../src/guestfs-structs.pod:16
34437 msgid "guestfs_lvm_pv"
34438 msgstr ""
34439
34440 #. type: verbatim
34441 #: ../src/guestfs-structs.pod:18
34442 #, no-wrap
34443 msgid ""
34444 " struct guestfs_lvm_pv {\n"
34445 "   char *pv_name;\n"
34446 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34447 "   char pv_uuid[32];\n"
34448 "   char *pv_fmt;\n"
34449 "   uint64_t pv_size;\n"
34450 "   uint64_t dev_size;\n"
34451 "   uint64_t pv_free;\n"
34452 "   uint64_t pv_used;\n"
34453 "   char *pv_attr;\n"
34454 "   int64_t pv_pe_count;\n"
34455 "   int64_t pv_pe_alloc_count;\n"
34456 "   char *pv_tags;\n"
34457 "   uint64_t pe_start;\n"
34458 "   int64_t pv_mda_count;\n"
34459 "   uint64_t pv_mda_free;\n"
34460 " };\n"
34461 " \n"
34462 msgstr ""
34463
34464 #. type: verbatim
34465 #: ../src/guestfs-structs.pod:36
34466 #, no-wrap
34467 msgid ""
34468 " struct guestfs_lvm_pv_list {\n"
34469 "   uint32_t len; /* Number of elements in list. */\n"
34470 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34471 " };\n"
34472 " \n"
34473 msgstr ""
34474
34475 #. type: verbatim
34476 #: ../src/guestfs-structs.pod:41
34477 #, no-wrap
34478 msgid ""
34479 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34480 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34481 "\n"
34482 msgstr ""
34483
34484 #. type: =head2
34485 #: ../src/guestfs-structs.pod:44
34486 msgid "guestfs_lvm_vg"
34487 msgstr ""
34488
34489 #. type: verbatim
34490 #: ../src/guestfs-structs.pod:46
34491 #, no-wrap
34492 msgid ""
34493 " struct guestfs_lvm_vg {\n"
34494 "   char *vg_name;\n"
34495 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34496 "   char vg_uuid[32];\n"
34497 "   char *vg_fmt;\n"
34498 "   char *vg_attr;\n"
34499 "   uint64_t vg_size;\n"
34500 "   uint64_t vg_free;\n"
34501 "   char *vg_sysid;\n"
34502 "   uint64_t vg_extent_size;\n"
34503 "   int64_t vg_extent_count;\n"
34504 "   int64_t vg_free_count;\n"
34505 "   int64_t max_lv;\n"
34506 "   int64_t max_pv;\n"
34507 "   int64_t pv_count;\n"
34508 "   int64_t lv_count;\n"
34509 "   int64_t snap_count;\n"
34510 "   int64_t vg_seqno;\n"
34511 "   char *vg_tags;\n"
34512 "   int64_t vg_mda_count;\n"
34513 "   uint64_t vg_mda_free;\n"
34514 " };\n"
34515 " \n"
34516 msgstr ""
34517
34518 #. type: verbatim
34519 #: ../src/guestfs-structs.pod:69
34520 #, no-wrap
34521 msgid ""
34522 " struct guestfs_lvm_vg_list {\n"
34523 "   uint32_t len; /* Number of elements in list. */\n"
34524 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34525 " };\n"
34526 " \n"
34527 msgstr ""
34528
34529 #. type: verbatim
34530 #: ../src/guestfs-structs.pod:74
34531 #, no-wrap
34532 msgid ""
34533 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34534 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34535 "\n"
34536 msgstr ""
34537
34538 #. type: =head2
34539 #: ../src/guestfs-structs.pod:77
34540 msgid "guestfs_lvm_lv"
34541 msgstr ""
34542
34543 #. type: verbatim
34544 #: ../src/guestfs-structs.pod:79
34545 #, no-wrap
34546 msgid ""
34547 " struct guestfs_lvm_lv {\n"
34548 "   char *lv_name;\n"
34549 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34550 "   char lv_uuid[32];\n"
34551 "   char *lv_attr;\n"
34552 "   int64_t lv_major;\n"
34553 "   int64_t lv_minor;\n"
34554 "   int64_t lv_kernel_major;\n"
34555 "   int64_t lv_kernel_minor;\n"
34556 "   uint64_t lv_size;\n"
34557 "   int64_t seg_count;\n"
34558 "   char *origin;\n"
34559 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34560 "   float snap_percent;\n"
34561 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34562 "   float copy_percent;\n"
34563 "   char *move_pv;\n"
34564 "   char *lv_tags;\n"
34565 "   char *mirror_log;\n"
34566 "   char *modules;\n"
34567 " };\n"
34568 " \n"
34569 msgstr ""
34570
34571 #. type: verbatim
34572 #: ../src/guestfs-structs.pod:101
34573 #, no-wrap
34574 msgid ""
34575 " struct guestfs_lvm_lv_list {\n"
34576 "   uint32_t len; /* Number of elements in list. */\n"
34577 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34578 " };\n"
34579 " \n"
34580 msgstr ""
34581
34582 #. type: verbatim
34583 #: ../src/guestfs-structs.pod:106
34584 #, no-wrap
34585 msgid ""
34586 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34587 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34588 "\n"
34589 msgstr ""
34590
34591 #. type: verbatim
34592 #: ../src/guestfs-structs.pod:111
34593 #, no-wrap
34594 msgid ""
34595 " struct guestfs_stat {\n"
34596 "   int64_t dev;\n"
34597 "   int64_t ino;\n"
34598 "   int64_t mode;\n"
34599 "   int64_t nlink;\n"
34600 "   int64_t uid;\n"
34601 "   int64_t gid;\n"
34602 "   int64_t rdev;\n"
34603 "   int64_t size;\n"
34604 "   int64_t blksize;\n"
34605 "   int64_t blocks;\n"
34606 "   int64_t atime;\n"
34607 "   int64_t mtime;\n"
34608 "   int64_t ctime;\n"
34609 " };\n"
34610 " \n"
34611 msgstr ""
34612
34613 #. type: verbatim
34614 #: ../src/guestfs-structs.pod:127
34615 #, no-wrap
34616 msgid ""
34617 " struct guestfs_stat_list {\n"
34618 "   uint32_t len; /* Number of elements in list. */\n"
34619 "   struct guestfs_stat *val; /* Elements. */\n"
34620 " };\n"
34621 " \n"
34622 msgstr ""
34623
34624 #. type: verbatim
34625 #: ../src/guestfs-structs.pod:132
34626 #, no-wrap
34627 msgid ""
34628 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34629 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34630 "\n"
34631 msgstr ""
34632
34633 #. type: verbatim
34634 #: ../src/guestfs-structs.pod:137
34635 #, no-wrap
34636 msgid ""
34637 " struct guestfs_statvfs {\n"
34638 "   int64_t bsize;\n"
34639 "   int64_t frsize;\n"
34640 "   int64_t blocks;\n"
34641 "   int64_t bfree;\n"
34642 "   int64_t bavail;\n"
34643 "   int64_t files;\n"
34644 "   int64_t ffree;\n"
34645 "   int64_t favail;\n"
34646 "   int64_t fsid;\n"
34647 "   int64_t flag;\n"
34648 "   int64_t namemax;\n"
34649 " };\n"
34650 " \n"
34651 msgstr ""
34652
34653 #. type: verbatim
34654 #: ../src/guestfs-structs.pod:151
34655 #, no-wrap
34656 msgid ""
34657 " struct guestfs_statvfs_list {\n"
34658 "   uint32_t len; /* Number of elements in list. */\n"
34659 "   struct guestfs_statvfs *val; /* Elements. */\n"
34660 " };\n"
34661 " \n"
34662 msgstr ""
34663
34664 #. type: verbatim
34665 #: ../src/guestfs-structs.pod:156
34666 #, no-wrap
34667 msgid ""
34668 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34669 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34670 "\n"
34671 msgstr ""
34672
34673 #. type: =head2
34674 #: ../src/guestfs-structs.pod:159
34675 msgid "guestfs_dirent"
34676 msgstr ""
34677
34678 #. type: verbatim
34679 #: ../src/guestfs-structs.pod:161
34680 #, no-wrap
34681 msgid ""
34682 " struct guestfs_dirent {\n"
34683 "   int64_t ino;\n"
34684 "   char ftyp;\n"
34685 "   char *name;\n"
34686 " };\n"
34687 " \n"
34688 msgstr ""
34689
34690 #. type: verbatim
34691 #: ../src/guestfs-structs.pod:167
34692 #, no-wrap
34693 msgid ""
34694 " struct guestfs_dirent_list {\n"
34695 "   uint32_t len; /* Number of elements in list. */\n"
34696 "   struct guestfs_dirent *val; /* Elements. */\n"
34697 " };\n"
34698 " \n"
34699 msgstr ""
34700
34701 #. type: verbatim
34702 #: ../src/guestfs-structs.pod:172
34703 #, no-wrap
34704 msgid ""
34705 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34706 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34707 "\n"
34708 msgstr ""
34709
34710 #. type: verbatim
34711 #: ../src/guestfs-structs.pod:177
34712 #, no-wrap
34713 msgid ""
34714 " struct guestfs_version {\n"
34715 "   int64_t major;\n"
34716 "   int64_t minor;\n"
34717 "   int64_t release;\n"
34718 "   char *extra;\n"
34719 " };\n"
34720 " \n"
34721 msgstr ""
34722
34723 #. type: verbatim
34724 #: ../src/guestfs-structs.pod:184
34725 #, no-wrap
34726 msgid ""
34727 " struct guestfs_version_list {\n"
34728 "   uint32_t len; /* Number of elements in list. */\n"
34729 "   struct guestfs_version *val; /* Elements. */\n"
34730 " };\n"
34731 " \n"
34732 msgstr ""
34733
34734 #. type: verbatim
34735 #: ../src/guestfs-structs.pod:189
34736 #, no-wrap
34737 msgid ""
34738 " void guestfs_free_version (struct guestfs_free_version *);\n"
34739 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34740 "\n"
34741 msgstr ""
34742
34743 #. type: =head2
34744 #: ../src/guestfs-structs.pod:192
34745 msgid "guestfs_xattr"
34746 msgstr ""
34747
34748 #. type: verbatim
34749 #: ../src/guestfs-structs.pod:194
34750 #, no-wrap
34751 msgid ""
34752 " struct guestfs_xattr {\n"
34753 "   char *attrname;\n"
34754 "   /* The next two fields describe a byte array. */\n"
34755 "   uint32_t attrval_len;\n"
34756 "   char *attrval;\n"
34757 " };\n"
34758 " \n"
34759 msgstr ""
34760
34761 #. type: verbatim
34762 #: ../src/guestfs-structs.pod:201
34763 #, no-wrap
34764 msgid ""
34765 " struct guestfs_xattr_list {\n"
34766 "   uint32_t len; /* Number of elements in list. */\n"
34767 "   struct guestfs_xattr *val; /* Elements. */\n"
34768 " };\n"
34769 " \n"
34770 msgstr ""
34771
34772 #. type: verbatim
34773 #: ../src/guestfs-structs.pod:206
34774 #, no-wrap
34775 msgid ""
34776 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34777 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34778 "\n"
34779 msgstr ""
34780
34781 #. type: =head2
34782 #: ../src/guestfs-structs.pod:209
34783 msgid "guestfs_inotify_event"
34784 msgstr ""
34785
34786 #. type: verbatim
34787 #: ../src/guestfs-structs.pod:211
34788 #, no-wrap
34789 msgid ""
34790 " struct guestfs_inotify_event {\n"
34791 "   int64_t in_wd;\n"
34792 "   uint32_t in_mask;\n"
34793 "   uint32_t in_cookie;\n"
34794 "   char *in_name;\n"
34795 " };\n"
34796 " \n"
34797 msgstr ""
34798
34799 #. type: verbatim
34800 #: ../src/guestfs-structs.pod:218
34801 #, no-wrap
34802 msgid ""
34803 " struct guestfs_inotify_event_list {\n"
34804 "   uint32_t len; /* Number of elements in list. */\n"
34805 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34806 " };\n"
34807 " \n"
34808 msgstr ""
34809
34810 #. type: verbatim
34811 #: ../src/guestfs-structs.pod:223
34812 #, no-wrap
34813 msgid ""
34814 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34815 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34816 "\n"
34817 msgstr ""
34818
34819 #. type: =head2
34820 #: ../src/guestfs-structs.pod:226
34821 msgid "guestfs_partition"
34822 msgstr ""
34823
34824 #. type: verbatim
34825 #: ../src/guestfs-structs.pod:228
34826 #, no-wrap
34827 msgid ""
34828 " struct guestfs_partition {\n"
34829 "   int32_t part_num;\n"
34830 "   uint64_t part_start;\n"
34831 "   uint64_t part_end;\n"
34832 "   uint64_t part_size;\n"
34833 " };\n"
34834 " \n"
34835 msgstr ""
34836
34837 #. type: verbatim
34838 #: ../src/guestfs-structs.pod:235
34839 #, no-wrap
34840 msgid ""
34841 " struct guestfs_partition_list {\n"
34842 "   uint32_t len; /* Number of elements in list. */\n"
34843 "   struct guestfs_partition *val; /* Elements. */\n"
34844 " };\n"
34845 " \n"
34846 msgstr ""
34847
34848 #. type: verbatim
34849 #: ../src/guestfs-structs.pod:240
34850 #, no-wrap
34851 msgid ""
34852 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34853 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34854 "\n"
34855 msgstr ""
34856
34857 #. type: =head2
34858 #: ../src/guestfs-structs.pod:243
34859 msgid "guestfs_application"
34860 msgstr ""
34861
34862 #. type: verbatim
34863 #: ../src/guestfs-structs.pod:245
34864 #, no-wrap
34865 msgid ""
34866 " struct guestfs_application {\n"
34867 "   char *app_name;\n"
34868 "   char *app_display_name;\n"
34869 "   int32_t app_epoch;\n"
34870 "   char *app_version;\n"
34871 "   char *app_release;\n"
34872 "   char *app_install_path;\n"
34873 "   char *app_trans_path;\n"
34874 "   char *app_publisher;\n"
34875 "   char *app_url;\n"
34876 "   char *app_source_package;\n"
34877 "   char *app_summary;\n"
34878 "   char *app_description;\n"
34879 " };\n"
34880 " \n"
34881 msgstr ""
34882
34883 #. type: verbatim
34884 #: ../src/guestfs-structs.pod:260
34885 #, no-wrap
34886 msgid ""
34887 " struct guestfs_application_list {\n"
34888 "   uint32_t len; /* Number of elements in list. */\n"
34889 "   struct guestfs_application *val; /* Elements. */\n"
34890 " };\n"
34891 " \n"
34892 msgstr ""
34893
34894 #. type: verbatim
34895 #: ../src/guestfs-structs.pod:265
34896 #, no-wrap
34897 msgid ""
34898 " void guestfs_free_application (struct guestfs_free_application *);\n"
34899 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34900 "\n"
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs.pod:5
34905 msgid "guestfs - Library for accessing and modifying virtual machine images"
34906 msgstr ""
34907
34908 #. type: verbatim
34909 #: ../src/guestfs.pod:11
34910 #, no-wrap
34911 msgid ""
34912 " guestfs_h *g = guestfs_create ();\n"
34913 " guestfs_add_drive (g, \"guest.img\");\n"
34914 " guestfs_launch (g);\n"
34915 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34916 " guestfs_touch (g, \"/hello\");\n"
34917 " guestfs_umount (g, \"/\");\n"
34918 " guestfs_close (g);\n"
34919 "\n"
34920 msgstr ""
34921 " guestfs_h *g = guestfs_create ();\n"
34922 " guestfs_add_drive (g, \"guest.img\");\n"
34923 " guestfs_launch (g);\n"
34924 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34925 " guestfs_touch (g, \"/hello\");\n"
34926 " guestfs_umount (g, \"/\");\n"
34927 " guestfs_close (g);\n"
34928 "\n"
34929
34930 #. type: textblock
34931 #: ../src/guestfs.pod:25
34932 msgid ""
34933 "Libguestfs is a library for accessing and modifying guest disk images.  "
34934 "Amongst the things this is good for: making batch configuration changes to "
34935 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34936 "between virtualization systems (see also: virt-p2v), performing partial "
34937 "backups, performing partial guest clones, cloning guests and changing "
34938 "registry/UUID/hostname info, and much else besides."
34939 msgstr ""
34940
34941 #. type: textblock
34942 #: ../src/guestfs.pod:33
34943 msgid ""
34944 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34945 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34946 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34947 "qcow2, vmdk."
34948 msgstr ""
34949
34950 #. type: textblock
34951 #: ../src/guestfs.pod:38
34952 msgid ""
34953 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34954 "what filesystem is in each LV, etc.).  It can also run commands in the "
34955 "context of the guest.  Also you can access filesystems over FUSE."
34956 msgstr ""
34957
34958 #. type: textblock
34959 #: ../src/guestfs.pod:43
34960 msgid ""
34961 "Libguestfs is a library that can be linked with C and C++ management "
34962 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34963 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34964 "command line."
34965 msgstr ""
34966
34967 #. type: textblock
34968 #: ../src/guestfs.pod:48
34969 msgid ""
34970 "You don't need to be root to use libguestfs, although obviously you do need "
34971 "enough permissions to access the disk images."
34972 msgstr ""
34973
34974 #. type: textblock
34975 #: ../src/guestfs.pod:51
34976 msgid ""
34977 "Libguestfs is a large API because it can do many things.  For a gentle "
34978 "introduction, please read the L</API OVERVIEW> section next."
34979 msgstr ""
34980
34981 #. type: textblock
34982 #: ../src/guestfs.pod:54
34983 msgid ""
34984 "There are also some example programs in the L<guestfs-examples(3)> manual "
34985 "page."
34986 msgstr ""
34987
34988 #. type: =head1
34989 #: ../src/guestfs.pod:57
34990 msgid "API OVERVIEW"
34991 msgstr ""
34992
34993 #. type: textblock
34994 #: ../src/guestfs.pod:59
34995 msgid ""
34996 "This section provides a gentler overview of the libguestfs API.  We also try "
34997 "to group API calls together, where that may not be obvious from reading "
34998 "about the individual calls in the main section of this manual."
34999 msgstr ""
35000
35001 #. type: =head2
35002 #: ../src/guestfs.pod:64
35003 msgid "HANDLES"
35004 msgstr ""
35005
35006 #. type: textblock
35007 #: ../src/guestfs.pod:66
35008 msgid ""
35009 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35010 "must add at least one disk image to the handle, followed by launching the "
35011 "handle, then performing whatever operations you want, and finally closing "
35012 "the handle.  By convention we use the single letter C<g> for the name of the "
35013 "handle variable, although of course you can use any name you want."
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:73
35018 msgid "The general structure of all libguestfs-using programs looks like this:"
35019 msgstr ""
35020
35021 #. type: verbatim
35022 #: ../src/guestfs.pod:76
35023 #, no-wrap
35024 msgid ""
35025 " guestfs_h *g = guestfs_create ();\n"
35026 " \n"
35027 msgstr ""
35028
35029 #. type: verbatim
35030 #: ../src/guestfs.pod:78
35031 #, no-wrap
35032 msgid ""
35033 " /* Call guestfs_add_drive additional times if there are\n"
35034 "  * multiple disk images.\n"
35035 "  */\n"
35036 " guestfs_add_drive (g, \"guest.img\");\n"
35037 " \n"
35038 msgstr ""
35039
35040 #. type: verbatim
35041 #: ../src/guestfs.pod:83
35042 #, no-wrap
35043 msgid ""
35044 " /* Most manipulation calls won't work until you've launched\n"
35045 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35046 "  * and _before_ other commands.\n"
35047 "  */\n"
35048 " guestfs_launch (g);\n"
35049 " \n"
35050 msgstr ""
35051
35052 #. type: verbatim
35053 #: ../src/guestfs.pod:89
35054 #, no-wrap
35055 msgid ""
35056 " /* Now you can examine what partitions, LVs etc are available.\n"
35057 "  */\n"
35058 " char **partitions = guestfs_list_partitions (g);\n"
35059 " char **logvols = guestfs_lvs (g);\n"
35060 " \n"
35061 msgstr ""
35062
35063 #. type: verbatim
35064 #: ../src/guestfs.pod:94
35065 #, no-wrap
35066 msgid ""
35067 " /* To access a filesystem in the image, you must mount it.\n"
35068 "  */\n"
35069 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35070 " \n"
35071 msgstr ""
35072
35073 #. type: verbatim
35074 #: ../src/guestfs.pod:98
35075 #, no-wrap
35076 msgid ""
35077 " /* Now you can perform filesystem actions on the guest\n"
35078 "  * disk image.\n"
35079 "  */\n"
35080 " guestfs_touch (g, \"/hello\");\n"
35081 " \n"
35082 msgstr ""
35083
35084 #. type: verbatim
35085 #: ../src/guestfs.pod:103
35086 #, no-wrap
35087 msgid ""
35088 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35089 "  * it is done automatically when you close the handle.  See\n"
35090 "  * discussion of autosync in this page.\n"
35091 "  */\n"
35092 " guestfs_sync (g);\n"
35093 " \n"
35094 msgstr ""
35095
35096 #. type: verbatim
35097 #: ../src/guestfs.pod:109
35098 #, no-wrap
35099 msgid ""
35100 " /* Close the handle 'g'. */\n"
35101 " guestfs_close (g);\n"
35102 "\n"
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:112
35107 msgid ""
35108 "The code above doesn't include any error checking.  In real code you should "
35109 "check return values carefully for errors.  In general all functions that "
35110 "return integers return C<-1> on error, and all functions that return "
35111 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35112 "how to handle errors, and consult the documentation for each function call "
35113 "below to see precisely how they return error indications.  See L<guestfs-"
35114 "examples(3)> for fully worked examples."
35115 msgstr ""
35116
35117 #. type: =head2
35118 #: ../src/guestfs.pod:121
35119 msgid "DISK IMAGES"
35120 msgstr ""
35121
35122 #. type: textblock
35123 #: ../src/guestfs.pod:123
35124 msgid ""
35125 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35126 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35127 "actual block device, or simply an empty file of zeroes that you have created "
35128 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35129 "of these."
35130 msgstr ""
35131
35132 #. type: textblock
35133 #: ../src/guestfs.pod:129
35134 msgid ""
35135 "The call you should use in modern code for adding drives is L</"
35136 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35137 "specifying that the format is raw, do:"
35138 msgstr ""
35139
35140 #. type: verbatim
35141 #: ../src/guestfs.pod:133
35142 #, no-wrap
35143 msgid ""
35144 " guestfs_add_drive_opts (g, filename,\n"
35145 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35146 "                         -1);\n"
35147 "\n"
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:137
35152 msgid "You can add a disk read-only using:"
35153 msgstr ""
35154
35155 #. type: verbatim
35156 #: ../src/guestfs.pod:139
35157 #, no-wrap
35158 msgid ""
35159 " guestfs_add_drive_opts (g, filename,\n"
35160 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35161 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35162 "                         -1);\n"
35163 "\n"
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs.pod:144
35168 msgid ""
35169 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35170 "libguestfs won't modify the file."
35171 msgstr ""
35172
35173 #. type: textblock
35174 #: ../src/guestfs.pod:147
35175 msgid ""
35176 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35177 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35178 "corruption, but adding it read-only is safe."
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:151
35183 msgid ""
35184 "You must add at least one disk image, and you may add multiple disk images.  "
35185 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35186 "first one you added), C</dev/sdb> (for the second one you added), etc."
35187 msgstr ""
35188
35189 #. type: textblock
35190 #: ../src/guestfs.pod:156
35191 msgid ""
35192 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35193 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35194 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35195 msgstr ""
35196
35197 #. type: =head2
35198 #: ../src/guestfs.pod:161
35199 msgid "MOUNTING"
35200 msgstr ""
35201
35202 #. type: textblock
35203 #: ../src/guestfs.pod:163
35204 msgid ""
35205 "Before you can read or write files, create directories and so on in a disk "
35206 "image that contains filesystems, you have to mount those filesystems using "
35207 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35208 "a disk image contains (for example) one partition with a filesystem on that "
35209 "partition, then you can mount it directly:"
35210 msgstr ""
35211
35212 #. type: verbatim
35213 #: ../src/guestfs.pod:170
35214 #, no-wrap
35215 msgid ""
35216 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35217 "\n"
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs.pod:172
35222 msgid ""
35223 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35224 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35225 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35226 "that these are libguestfs virtual devices, and are nothing to do with host "
35227 "devices."
35228 msgstr ""
35229
35230 #. type: textblock
35231 #: ../src/guestfs.pod:178
35232 msgid ""
35233 "If you are given a disk image and you don't know what it contains then you "
35234 "have to find out.  Libguestfs can do that too: use L</"
35235 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35236 "LVs, and either try mounting each to see what is mountable, or else examine "
35237 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35238 "filesystems, use L</guestfs_list_filesystems>."
35239 msgstr ""
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:186
35243 msgid ""
35244 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35245 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35246 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35247 msgstr ""
35248
35249 #. type: textblock
35250 #: ../src/guestfs.pod:191
35251 msgid ""
35252 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35253 "several other variations of the C<guestfs_mount_*> call."
35254 msgstr ""
35255
35256 #. type: =head2
35257 #: ../src/guestfs.pod:194
35258 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35259 msgstr ""
35260
35261 #. type: textblock
35262 #: ../src/guestfs.pod:196
35263 msgid ""
35264 "The majority of the libguestfs API consists of fairly low-level calls for "
35265 "accessing and modifying the files, directories, symlinks etc on mounted "
35266 "filesystems.  There are over a hundred such calls which you can find listed "
35267 "in detail below in this man page, and we don't even pretend to cover them "
35268 "all in this overview."
35269 msgstr ""
35270
35271 #. type: textblock
35272 #: ../src/guestfs.pod:202
35273 msgid ""
35274 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35275 "mount point."
35276 msgstr ""
35277
35278 #. type: textblock
35279 #: ../src/guestfs.pod:205
35280 msgid ""
35281 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35282 "the file called C<\"etc/passwd\"> then you could do:"
35283 msgstr ""
35284
35285 #. type: verbatim
35286 #: ../src/guestfs.pod:208
35287 #, no-wrap
35288 msgid ""
35289 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35290 "\n"
35291 msgstr ""
35292
35293 #. type: textblock
35294 #: ../src/guestfs.pod:210
35295 msgid ""
35296 "This would return C<data> as a newly allocated buffer containing the full "
35297 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35298 "or C<NULL> if there was an error."
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:214
35303 msgid ""
35304 "As another example, to create a top-level directory on that filesystem "
35305 "called C<\"var\"> you would do:"
35306 msgstr ""
35307
35308 #. type: verbatim
35309 #: ../src/guestfs.pod:217
35310 #, no-wrap
35311 msgid ""
35312 " guestfs_mkdir (g, \"/var\");\n"
35313 "\n"
35314 msgstr ""
35315
35316 #. type: textblock
35317 #: ../src/guestfs.pod:219
35318 msgid "To create a symlink you could do:"
35319 msgstr ""
35320
35321 #. type: verbatim
35322 #: ../src/guestfs.pod:221
35323 #, no-wrap
35324 msgid ""
35325 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35326 "               \"/etc/rc3.d/S30portmap\");\n"
35327 "\n"
35328 msgstr ""
35329
35330 #. type: textblock
35331 #: ../src/guestfs.pod:224
35332 msgid ""
35333 "Libguestfs will reject attempts to use relative paths and there is no "
35334 "concept of a current working directory."
35335 msgstr ""
35336
35337 #. type: textblock
35338 #: ../src/guestfs.pod:227
35339 msgid ""
35340 "Libguestfs can return errors in many situations: for example if the "
35341 "filesystem isn't writable, or if a file or directory that you requested "
35342 "doesn't exist.  If you are using the C API (documented here)  you have to "
35343 "check for those error conditions after each call.  (Other language bindings "
35344 "turn these errors into exceptions)."
35345 msgstr ""
35346
35347 #. type: textblock
35348 #: ../src/guestfs.pod:233
35349 msgid ""
35350 "File writes are affected by the per-handle umask, set by calling L</"
35351 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35352 msgstr ""
35353
35354 #. type: =head2
35355 #: ../src/guestfs.pod:236
35356 msgid "PARTITIONING"
35357 msgstr ""
35358
35359 #. type: textblock
35360 #: ../src/guestfs.pod:238
35361 msgid ""
35362 "Libguestfs contains API calls to read, create and modify partition tables on "
35363 "disk images."
35364 msgstr ""
35365
35366 #. type: textblock
35367 #: ../src/guestfs.pod:241
35368 msgid ""
35369 "In the common case where you want to create a single partition covering the "
35370 "whole disk, you should use the L</guestfs_part_disk> call:"
35371 msgstr ""
35372
35373 #. type: verbatim
35374 #: ../src/guestfs.pod:245
35375 #, no-wrap
35376 msgid ""
35377 " const char *parttype = \"mbr\";\n"
35378 " if (disk_is_larger_than_2TB)\n"
35379 "   parttype = \"gpt\";\n"
35380 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35381 "\n"
35382 msgstr ""
35383
35384 #. type: textblock
35385 #: ../src/guestfs.pod:250
35386 msgid ""
35387 "Obviously this effectively wipes anything that was on that disk image before."
35388 msgstr ""
35389
35390 #. type: =head2
35391 #: ../src/guestfs.pod:253
35392 msgid "LVM2"
35393 msgstr ""
35394
35395 #. type: textblock
35396 #: ../src/guestfs.pod:255
35397 msgid ""
35398 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35399 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35400 "you familiarize yourself with the concepts of physical volumes, volume "
35401 "groups and logical volumes."
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:260
35406 msgid ""
35407 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35408 "tldp.org/HOWTO/LVM-HOWTO/>."
35409 msgstr ""
35410
35411 #. type: =head2
35412 #: ../src/guestfs.pod:263
35413 msgid "DOWNLOADING"
35414 msgstr ""
35415
35416 #. type: textblock
35417 #: ../src/guestfs.pod:265
35418 msgid ""
35419 "Use L</guestfs_cat> to download small, text only files.  This call is "
35420 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35421 "NUL (C<\\0>) characters.  However the API is very simple to use."
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:269
35426 msgid ""
35427 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35428 "bit data, since it returns a (pointer, size) pair.  However it is still "
35429 "limited to \"small\" files, less than 2 MB."
35430 msgstr ""
35431
35432 #. type: textblock
35433 #: ../src/guestfs.pod:273
35434 msgid ""
35435 "L</guestfs_download> can be used to download any file, with no limits on "
35436 "content or size (even files larger than 4 GB)."
35437 msgstr ""
35438
35439 #. type: textblock
35440 #: ../src/guestfs.pod:276
35441 msgid ""
35442 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35443 msgstr ""
35444
35445 #. type: =head2
35446 #: ../src/guestfs.pod:279
35447 msgid "UPLOADING"
35448 msgstr ""
35449
35450 #. type: textblock
35451 #: ../src/guestfs.pod:281
35452 msgid ""
35453 "It's often the case that you want to write a file or files to the disk image."
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:284
35458 msgid ""
35459 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35460 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35461 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35462 "of other functions for creating test files, for example L</guestfs_fill> and "
35463 "L</guestfs_fill_pattern>."
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:290
35468 msgid ""
35469 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35470 "file content or size (even files larger than 4 GB)."
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs.pod:293
35475 msgid ""
35476 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:295
35481 msgid ""
35482 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35483 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35484 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35485 "in a predictable way (eg. adding it last after all other drives) then you "
35486 "can get the device name from L</guestfs_list_devices> and mount it directly "
35487 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35488 "portable between kernel versions, and they don't support labels or UUIDs.  "
35489 "If you want to pre-build an image or you need to mount it using a label or "
35490 "UUID, use an ISO image instead."
35491 msgstr ""
35492
35493 #. type: =head2
35494 #: ../src/guestfs.pod:306
35495 msgid "COPYING"
35496 msgstr ""
35497
35498 #. type: textblock
35499 #: ../src/guestfs.pod:308
35500 msgid ""
35501 "There are various different commands for copying between files and devices "
35502 "and in and out of the guest filesystem.  These are summarised in the table "
35503 "below."
35504 msgstr ""
35505
35506 #. type: =item
35507 #: ../src/guestfs.pod:314
35508 msgid "B<file> to B<file>"
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:316
35513 msgid ""
35514 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35515 "directories recursively."
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:319
35520 msgid ""
35521 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
35522 msgstr ""
35523
35524 #. type: =item
35525 #: ../src/guestfs.pod:322
35526 msgid "B<file> to B<device>"
35527 msgstr ""
35528
35529 #. type: =item
35530 #: ../src/guestfs.pod:324
35531 msgid "B<device> to B<file>"
35532 msgstr ""
35533
35534 #. type: =item
35535 #: ../src/guestfs.pod:326
35536 msgid "B<device> to B<device>"
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:328
35541 msgid ""
35542 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
35543 "guestfs_copy_device_to_device>."
35544 msgstr ""
35545
35546 #. type: textblock
35547 #: ../src/guestfs.pod:331
35548 msgid "Example: duplicate the contents of an LV:"
35549 msgstr ""
35550
35551 #. type: verbatim
35552 #: ../src/guestfs.pod:333
35553 #, no-wrap
35554 msgid ""
35555 " guestfs_copy_device_to_device (g,\n"
35556 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35557 "         /* -1 marks the end of the list of optional parameters */\n"
35558 "         -1);\n"
35559 "\n"
35560 msgstr ""
35561
35562 #. type: textblock
35563 #: ../src/guestfs.pod:338
35564 msgid ""
35565 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35566 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
35567 "optional C<size> parameter:"
35568 msgstr ""
35569
35570 #. type: verbatim
35571 #: ../src/guestfs.pod:342
35572 #, no-wrap
35573 msgid ""
35574 " guestfs_copy_device_to_device (g,\n"
35575 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
35576 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
35577 "         -1);\n"
35578 "\n"
35579 msgstr ""
35580
35581 #. type: =item
35582 #: ../src/guestfs.pod:347
35583 msgid "B<file on the host> to B<file or device>"
35584 msgstr ""
35585
35586 #. type: textblock
35587 #: ../src/guestfs.pod:349
35588 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35589 msgstr ""
35590
35591 #. type: =item
35592 #: ../src/guestfs.pod:351
35593 msgid "B<file or device> to B<file on the host>"
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:353
35598 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35599 msgstr ""
35600
35601 #. type: =head2
35602 #: ../src/guestfs.pod:357
35603 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35604 msgstr ""
35605
35606 #. type: textblock
35607 #: ../src/guestfs.pod:359
35608 msgid ""
35609 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35610 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35611 "appears you can only upload and download to files.  However many Un*x-like "
35612 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35613 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35614 "and arbitrary file descriptor N."
35615 msgstr ""
35616
35617 #. type: textblock
35618 #: ../src/guestfs.pod:367
35619 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35620 msgstr ""
35621
35622 #. type: verbatim
35623 #: ../src/guestfs.pod:370
35624 #, no-wrap
35625 msgid ""
35626 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35627 "\n"
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:372
35632 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35633 msgstr ""
35634
35635 #. type: verbatim
35636 #: ../src/guestfs.pod:374
35637 #, no-wrap
35638 msgid ""
35639 " char devfd[64];\n"
35640 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35641 " guestfs_tar_out (g, \"/\", devfd);\n"
35642 "\n"
35643 msgstr ""
35644
35645 #. type: =head2
35646 #: ../src/guestfs.pod:378
35647 msgid "LISTING FILES"
35648 msgstr ""
35649
35650 #. type: textblock
35651 #: ../src/guestfs.pod:380
35652 msgid ""
35653 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35654 "L<guestfish(1)>-equivalent command C<ll>)."
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:383
35659 msgid ""
35660 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35661 "programs, as a flat list of strings."
35662 msgstr ""
35663
35664 #. type: textblock
35665 #: ../src/guestfs.pod:386
35666 msgid ""
35667 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35668 "directory, plus additional information about each one.  It is more "
35669 "equivalent to using the L<readdir(3)> call on a local filesystem."
35670 msgstr ""
35671
35672 #. type: textblock
35673 #: ../src/guestfs.pod:390
35674 msgid ""
35675 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35676 msgstr ""
35677
35678 #. type: =head2
35679 #: ../src/guestfs.pod:393
35680 msgid "RUNNING COMMANDS"
35681 msgstr ""
35682
35683 #. type: textblock
35684 #: ../src/guestfs.pod:395
35685 msgid ""
35686 "Although libguestfs is primarily an API for manipulating files inside guest "
35687 "images, we also provide some limited facilities for running commands inside "
35688 "guests."
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:399
35693 msgid "There are many limitations to this:"
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:405
35698 msgid ""
35699 "The kernel version that the command runs under will be different from what "
35700 "it expects."
35701 msgstr ""
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:410
35705 msgid ""
35706 "If the command needs to communicate with daemons, then most likely they "
35707 "won't be running."
35708 msgstr ""
35709
35710 #. type: textblock
35711 #: ../src/guestfs.pod:415
35712 msgid "The command will be running in limited memory."
35713 msgstr ""
35714
35715 #. type: textblock
35716 #: ../src/guestfs.pod:419
35717 msgid ""
35718 "The network may not be available unless you enable it (see L</"
35719 "guestfs_set_network>)."
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:424
35724 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:428
35729 msgid ""
35730 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35731 msgstr ""
35732
35733 #. type: textblock
35734 #: ../src/guestfs.pod:433
35735 msgid ""
35736 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35737 "See L</SELINUX> in this manpage."
35738 msgstr ""
35739
35740 #. type: textblock
35741 #: ../src/guestfs.pod:438
35742 msgid ""
35743 "I<Security:> It is not safe to run commands from untrusted, possibly "
35744 "malicious guests.  These commands may attempt to exploit your program by "
35745 "sending unexpected output.  They could also try to exploit the Linux kernel "
35746 "or qemu provided by the libguestfs appliance.  They could use the network "
35747 "provided by the libguestfs appliance to bypass ordinary network partitions "
35748 "and firewalls.  They could use the elevated privileges or different SELinux "
35749 "context of your program to their advantage."
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:447
35754 msgid ""
35755 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35756 "(a script which runs when the guest next boots normally), and to have this "
35757 "script run the commands you want in the normal context of the running guest, "
35758 "network security and so on.  For information about other security issues, "
35759 "see L</SECURITY>."
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:455
35764 msgid ""
35765 "The two main API calls to run commands are L</guestfs_command> and L</"
35766 "guestfs_sh> (there are also variations)."
35767 msgstr ""
35768
35769 #. type: textblock
35770 #: ../src/guestfs.pod:458
35771 msgid ""
35772 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35773 "shell globs, redirections, etc will work."
35774 msgstr ""
35775
35776 #. type: =head2
35777 #: ../src/guestfs.pod:461
35778 msgid "CONFIGURATION FILES"
35779 msgstr ""
35780
35781 #. type: textblock
35782 #: ../src/guestfs.pod:463
35783 msgid ""
35784 "To read and write configuration files in Linux guest filesystems, we "
35785 "strongly recommend using Augeas.  For example, Augeas understands how to "
35786 "read and write, say, a Linux shadow password file or X.org configuration "
35787 "file, and so avoids you having to write that code."
35788 msgstr ""
35789
35790 #. type: textblock
35791 #: ../src/guestfs.pod:468
35792 msgid ""
35793 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35794 "document Augeas itself here because there is excellent documentation on the "
35795 "L<http://augeas.net/> website."
35796 msgstr ""
35797
35798 #. type: textblock
35799 #: ../src/guestfs.pod:472
35800 msgid ""
35801 "If you don't want to use Augeas (you fool!) then try calling L</"
35802 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35803 "over."
35804 msgstr ""
35805
35806 #. type: =head2
35807 #: ../src/guestfs.pod:476
35808 msgid "SELINUX"
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:478
35813 msgid ""
35814 "We support SELinux guests.  To ensure that labeling happens correctly in "
35815 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:486
35820 msgid "Before launching, do:"
35821 msgstr ""
35822
35823 #. type: verbatim
35824 #: ../src/guestfs.pod:488
35825 #, no-wrap
35826 msgid ""
35827 " guestfs_set_selinux (g, 1);\n"
35828 "\n"
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:492
35833 msgid ""
35834 "After mounting the guest's filesystem(s), load the policy.  This is best "
35835 "done by running the L<load_policy(8)> command in the guest itself:"
35836 msgstr ""
35837
35838 #. type: verbatim
35839 #: ../src/guestfs.pod:496
35840 #, no-wrap
35841 msgid ""
35842 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35843 "\n"
35844 msgstr ""
35845
35846 #. type: textblock
35847 #: ../src/guestfs.pod:498
35848 msgid ""
35849 "(Older versions of C<load_policy> require you to specify the name of the "
35850 "policy file)."
35851 msgstr ""
35852
35853 #. type: textblock
35854 #: ../src/guestfs.pod:503
35855 msgid ""
35856 "Optionally, set the security context for the API.  The correct security "
35857 "context to use can only be known by inspecting the guest.  As an example:"
35858 msgstr ""
35859
35860 #. type: verbatim
35861 #: ../src/guestfs.pod:507
35862 #, no-wrap
35863 msgid ""
35864 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35865 "\n"
35866 msgstr ""
35867
35868 #. type: textblock
35869 #: ../src/guestfs.pod:511
35870 msgid "This will work for running commands and editing existing files."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:513
35875 msgid ""
35876 "When new files are created, you may need to label them explicitly, for "
35877 "example by running the external command C<restorecon pathname>."
35878 msgstr ""
35879
35880 #. type: =head2
35881 #: ../src/guestfs.pod:517
35882 msgid "UMASK"
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:519
35887 msgid ""
35888 "Certain calls are affected by the current file mode creation mask (the "
35889 "\"umask\").  In particular ones which create files or directories, such as "
35890 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35891 "either the default mode that the file is created with or modifies the mode "
35892 "that you supply."
35893 msgstr ""
35894
35895 #. type: textblock
35896 #: ../src/guestfs.pod:525
35897 msgid ""
35898 "The default umask is C<022>, so files are created with modes such as C<0644> "
35899 "and directories with C<0755>."
35900 msgstr ""
35901
35902 #. type: textblock
35903 #: ../src/guestfs.pod:528
35904 msgid ""
35905 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35906 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35907 "guestfs_chmod> after creating each file or directory."
35908 msgstr ""
35909
35910 #. type: textblock
35911 #: ../src/guestfs.pod:532
35912 msgid "For more information about umask, see L<umask(2)>."
35913 msgstr ""
35914
35915 #. type: textblock
35916 #: ../src/guestfs.pod:536
35917 msgid ""
35918 "Libguestfs allows you to access Linux guests which have been encrypted using "
35919 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35920 "standard.  This includes nearly all whole disk encryption systems used by "
35921 "modern Linux guests."
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:542
35926 msgid ""
35927 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35928 "returns the string C<crypto_LUKS>)."
35929 msgstr ""
35930
35931 #. type: textblock
35932 #: ../src/guestfs.pod:545
35933 msgid ""
35934 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35935 "will require the passphrase!"
35936 msgstr ""
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:548
35940 msgid ""
35941 "Opening a LUKS device creates a new device mapper device called C</dev/"
35942 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35943 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35944 "from and encrypted to the underlying block device respectively."
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:554
35949 msgid ""
35950 "LVM volume groups on the device can be made visible by calling L</"
35951 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35952 "(s) can now be mounted in the usual way."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:558
35957 msgid ""
35958 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35959 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35960 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35961 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35962 "underlying encrypted block device)."
35963 msgstr ""
35964
35965 #. type: =head2
35966 #: ../src/guestfs.pod:565
35967 msgid "INSPECTION"
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:567
35972 msgid ""
35973 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35974 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35975 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35976 "version 1.5.3 the most frequently used part of this library has been "
35977 "rewritten in C and moved into the core code)."
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:574
35982 msgid ""
35983 "Add all disks belonging to the unknown virtual machine and call L</"
35984 "guestfs_launch> in the usual way."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:577
35989 msgid ""
35990 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35991 "and certain heuristics, and returns a list of operating systems that were "
35992 "found.  An empty list means none were found.  A single element is the root "
35993 "filesystem of the operating system.  For dual- or multi-boot guests, "
35994 "multiple roots can be returned, each one corresponding to a separate "
35995 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35996 "world of virtualization, but since this scenario can happen, we have built "
35997 "libguestfs to deal with it.)"
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:586
36002 msgid ""
36003 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36004 "to get additional details about that operating system.  For example, call L</"
36005 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36006 "Windows and Linux-based operating systems respectively."
36007 msgstr ""
36008
36009 #. type: textblock
36010 #: ../src/guestfs.pod:592
36011 msgid ""
36012 "Un*x-like and Linux-based operating systems usually consist of several "
36013 "filesystems which are mounted at boot time (for example, a separate boot "
36014 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36015 "filesystems correspond to mount points.  Call "
36016 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36017 "hash table like this example:"
36018 msgstr ""
36019
36020 #. type: verbatim
36021 #: ../src/guestfs.pod:599
36022 #, no-wrap
36023 msgid ""
36024 " /boot => /dev/sda1\n"
36025 " /     => /dev/vg_guest/lv_root\n"
36026 " /usr  => /dev/vg_guest/lv_usr\n"
36027 "\n"
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../src/guestfs.pod:603
36032 msgid ""
36033 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36034 "filesystems as suggested."
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../src/guestfs.pod:606
36039 msgid ""
36040 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36041 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36042 msgstr ""
36043
36044 #. type: textblock
36045 #: ../src/guestfs.pod:610
36046 msgid ""
36047 "Inspection currently only works for some common operating systems.  "
36048 "Contributors are welcome to send patches for other operating systems that we "
36049 "currently cannot detect."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:614
36054 msgid ""
36055 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36056 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36057 "encrypted devices."
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:618
36062 msgid ""
36063 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36064 "inspection and caches the results in the guest handle.  Subsequent calls to "
36065 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36066 "read the disks.  If you change the content of the guest disks, you can redo "
36067 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36068 "guestfs_inspect_list_applications> works a little differently from the other "
36069 "calls and does read the disks.  See documentation for that function for "
36070 "details)."
36071 msgstr ""
36072
36073 #. type: =head3
36074 #: ../src/guestfs.pod:627
36075 msgid "INSPECTING INSTALL DISKS"
36076 msgstr ""
36077
36078 #. type: textblock
36079 #: ../src/guestfs.pod:629
36080 msgid ""
36081 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36082 "CDs and more."
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:632
36087 msgid ""
36088 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36089 "system, which currently can be C<installed> (a regular operating system) or "
36090 "C<installer> (some sort of install disk)."
36091 msgstr ""
36092
36093 #. type: textblock
36094 #: ../src/guestfs.pod:636
36095 msgid ""
36096 "Further information is available about the operating system that can be "
36097 "installed using the regular inspection APIs like L</"
36098 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36099 msgstr ""
36100
36101 #. type: textblock
36102 #: ../src/guestfs.pod:641
36103 msgid ""
36104 "Some additional information specific to installer disks is also available "
36105 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36106 "guestfs_inspect_is_multipart> calls."
36107 msgstr ""
36108
36109 #. type: =head2
36110 #: ../src/guestfs.pod:646
36111 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36112 msgstr ""
36113
36114 #. type: textblock
36115 #: ../src/guestfs.pod:648
36116 msgid ""
36117 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36118 "ntfs-3g.org/> driver."
36119 msgstr ""
36120
36121 #. type: =head3
36122 #: ../src/guestfs.pod:651
36123 msgid "DRIVE LETTERS AND PATHS"
36124 msgstr ""
36125
36126 #. type: textblock
36127 #: ../src/guestfs.pod:653
36128 msgid ""
36129 "DOS and Windows still use drive letters, and the filesystems are always "
36130 "treated as case insensitive by Windows itself, and therefore you might find "
36131 "a Windows configuration file referring to a path like C<c:\\windows"
36132 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36133 "might be referred to as C</WINDOWS/System32>."
36134 msgstr ""
36135
36136 #. type: textblock
36137 #: ../src/guestfs.pod:659
36138 msgid ""
36139 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36140 "L</guestfs_inspect_get_drive_mappings>)"
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:662
36145 msgid ""
36146 "Dealing with separator characters (backslash vs forward slash) is outside "
36147 "the scope of libguestfs, but usually a simple character replacement will "
36148 "work."
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../src/guestfs.pod:666
36153 msgid ""
36154 "To resolve the case insensitivity of paths, call L</"
36155 "guestfs_case_sensitive_path>."
36156 msgstr ""
36157
36158 #. type: =head3
36159 #: ../src/guestfs.pod:669
36160 msgid "ACCESSING THE WINDOWS REGISTRY"
36161 msgstr ""
36162
36163 #. type: textblock
36164 #: ../src/guestfs.pod:671
36165 msgid ""
36166 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36167 "files, through the library C<hivex> which is part of the libguestfs project "
36168 "although ships as a separate tarball.  You have to locate and download the "
36169 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36170 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36171 "reg(1)> for more help on this issue."
36172 msgstr ""
36173
36174 #. type: =head3
36175 #: ../src/guestfs.pod:679
36176 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36177 msgstr ""
36178
36179 #. type: textblock
36180 #: ../src/guestfs.pod:681
36181 msgid ""
36182 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36183 "provide something which looks like a Linux symlink.  The way it tries to do "
36184 "the rewriting is described here:"
36185 msgstr ""
36186
36187 #. type: textblock
36188 #: ../src/guestfs.pod:685
36189 msgid ""
36190 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36191 "symbolic-links/>"
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:687
36196 msgid ""
36197 "The essential problem is that ntfs-3g simply does not have enough "
36198 "information to do a correct job.  NTFS links can contain drive letters and "
36199 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36200 "It is almost certainly the case that libguestfs callers should ignore what "
36201 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../src/guestfs.pod:694
36206 msgid ""
36207 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36208 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36209 "attribute, and read the raw reparse data from that (you can find the format "
36210 "documented in various places around the web)."
36211 msgstr ""
36212
36213 #. type: =head3
36214 #: ../src/guestfs.pod:699
36215 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36216 msgstr ""
36217
36218 #. type: textblock
36219 #: ../src/guestfs.pod:701
36220 msgid ""
36221 "There are other useful extended attributes that can be read from ntfs-3g "
36222 "filesystems (using L</guestfs_getxattr>).  See:"
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:704
36227 msgid ""
36228 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36229 msgstr ""
36230
36231 #. type: =head2
36232 #: ../src/guestfs.pod:706
36233 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:708
36238 msgid ""
36239 "Although we don't want to discourage you from using the C API, we will "
36240 "mention here that the same API is also available in other languages."
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:711
36245 msgid ""
36246 "The API is broadly identical in all supported languages.  This means that "
36247 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36248 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36249 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36250 "each language."
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:717
36255 msgid ""
36256 "Error messages are automatically transformed into exceptions if the language "
36257 "supports it."
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../src/guestfs.pod:720
36262 msgid ""
36263 "We don't try to \"object orientify\" parts of the API in OO languages, "
36264 "although contributors are welcome to write higher level APIs above what we "
36265 "provide in their favourite languages if they wish."
36266 msgstr ""
36267
36268 #. type: =item
36269 #: ../src/guestfs.pod:726
36270 msgid "B<C++>"
36271 msgstr ""
36272
36273 #. type: textblock
36274 #: ../src/guestfs.pod:728
36275 msgid ""
36276 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36277 "identical to the C API.  C++ classes and exceptions are not used."
36278 msgstr ""
36279
36280 #. type: =item
36281 #: ../src/guestfs.pod:732
36282 msgid "B<C#>"
36283 msgstr ""
36284
36285 #. type: textblock
36286 #: ../src/guestfs.pod:734
36287 msgid ""
36288 "The C# bindings are highly experimental.  Please read the warnings at the "
36289 "top of C<csharp/Libguestfs.cs>."
36290 msgstr ""
36291
36292 #. type: =item
36293 #: ../src/guestfs.pod:737
36294 msgid "B<Erlang>"
36295 msgstr ""
36296
36297 #. type: textblock
36298 #: ../src/guestfs.pod:739
36299 msgid "See L<guestfs-erlang(3)>."
36300 msgstr ""
36301
36302 #. type: =item
36303 #: ../src/guestfs.pod:741
36304 msgid "B<Haskell>"
36305 msgstr ""
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:743
36309 msgid ""
36310 "This is the only language binding that is working but incomplete.  Only "
36311 "calls which return simple integers have been bound in Haskell, and we are "
36312 "looking for help to complete this binding."
36313 msgstr ""
36314
36315 #. type: =item
36316 #: ../src/guestfs.pod:747
36317 msgid "B<Java>"
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs.pod:749
36322 msgid ""
36323 "Full documentation is contained in the Javadoc which is distributed with "
36324 "libguestfs.  For examples, see L<guestfs-java(3)>."
36325 msgstr ""
36326
36327 #. type: =item
36328 #: ../src/guestfs.pod:752
36329 msgid "B<OCaml>"
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:754
36334 msgid "See L<guestfs-ocaml(3)>."
36335 msgstr ""
36336
36337 #. type: =item
36338 #: ../src/guestfs.pod:756
36339 msgid "B<Perl>"
36340 msgstr ""
36341
36342 #. type: textblock
36343 #: ../src/guestfs.pod:758
36344 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36345 msgstr ""
36346
36347 #. type: =item
36348 #: ../src/guestfs.pod:760
36349 msgid "B<PHP>"
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:762
36354 msgid ""
36355 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36356 "the php-libguestfs package for your distribution."
36357 msgstr ""
36358
36359 #. type: textblock
36360 #: ../src/guestfs.pod:765
36361 msgid "The PHP binding only works correctly on 64 bit machines."
36362 msgstr ""
36363
36364 #. type: =item
36365 #: ../src/guestfs.pod:767
36366 msgid "B<Python>"
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:769
36371 msgid "See L<guestfs-python(3)>."
36372 msgstr ""
36373
36374 #. type: =item
36375 #: ../src/guestfs.pod:771
36376 msgid "B<Ruby>"
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:773
36381 msgid "See L<guestfs-ruby(3)>."
36382 msgstr ""
36383
36384 #. type: =item
36385 #: ../src/guestfs.pod:775
36386 msgid "B<shell scripts>"
36387 msgstr ""
36388
36389 #. type: textblock
36390 #: ../src/guestfs.pod:777
36391 msgid "See L<guestfish(1)>."
36392 msgstr ""
36393
36394 #. type: =head2
36395 #: ../src/guestfs.pod:781
36396 msgid "LIBGUESTFS GOTCHAS"
36397 msgstr ""
36398
36399 #. type: textblock
36400 #: ../src/guestfs.pod:783
36401 msgid ""
36402 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36403 "system [...] that works in the way it is documented but is counterintuitive "
36404 "and almost invites mistakes.\""
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:787
36409 msgid ""
36410 "Since we developed libguestfs and the associated tools, there are several "
36411 "things we would have designed differently, but are now stuck with for "
36412 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36413 "release, you can expect these to change.  Beware of them."
36414 msgstr ""
36415
36416 #. type: =item
36417 #: ../src/guestfs.pod:795
36418 msgid "Autosync / forgetting to sync."
36419 msgstr ""
36420
36421 #. type: textblock
36422 #: ../src/guestfs.pod:797
36423 msgid ""
36424 "I<Update:> Autosync is enabled by default for all API users starting from "
36425 "libguestfs 1.5.24.  This section only applies to older versions."
36426 msgstr ""
36427
36428 #. type: textblock
36429 #: ../src/guestfs.pod:800
36430 msgid ""
36431 "When modifying a filesystem from C or another language, you B<must> unmount "
36432 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36433 "libguestfs handle.  You can also call:"
36434 msgstr ""
36435
36436 #. type: verbatim
36437 #: ../src/guestfs.pod:804
36438 #, no-wrap
36439 msgid ""
36440 " guestfs_set_autosync (g, 1);\n"
36441 "\n"
36442 msgstr ""
36443
36444 #. type: textblock
36445 #: ../src/guestfs.pod:806
36446 msgid ""
36447 "to have the unmount/sync done automatically for you when the handle 'g' is "
36448 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:810
36453 msgid ""
36454 "If you forget to do this, then it is entirely possible that your changes "
36455 "won't be written out, or will be partially written, or (very rarely) that "
36456 "you'll get disk corruption."
36457 msgstr ""
36458
36459 #. type: textblock
36460 #: ../src/guestfs.pod:814
36461 msgid ""
36462 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36463 "guestfish scripts that forget to sync will work just fine, which can make "
36464 "this very puzzling if you are trying to debug a problem."
36465 msgstr ""
36466
36467 #. type: =item
36468 #: ../src/guestfs.pod:818
36469 msgid "Mount option C<-o sync> should not be the default."
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:820
36474 msgid ""
36475 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36476 "libguestfs 1.13.16.  This section only applies to older versions."
36477 msgstr ""
36478
36479 #. type: textblock
36480 #: ../src/guestfs.pod:823
36481 msgid ""
36482 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36483 "However C<-o sync> does not add any reliability benefit, but does have a "
36484 "very large performance impact."
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../src/guestfs.pod:827
36489 msgid ""
36490 "The work around is to use L</guestfs_mount_options> and set the mount "
36491 "options that you actually want to use."
36492 msgstr ""
36493
36494 #. type: =item
36495 #: ../src/guestfs.pod:830
36496 msgid "Read-only should be the default."
36497 msgstr ""
36498
36499 #. type: textblock
36500 #: ../src/guestfs.pod:832
36501 msgid ""
36502 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36503 "specify I<--rw> if you want to make changes to the image."
36504 msgstr ""
36505
36506 #. type: textblock
36507 #: ../src/guestfs.pod:835
36508 msgid "This would reduce the potential to corrupt live VM images."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:837
36513 msgid ""
36514 "Note that many filesystems change the disk when you just mount and unmount, "
36515 "even if you didn't perform any writes.  You need to use L</"
36516 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36517 msgstr ""
36518
36519 #. type: =item
36520 #: ../src/guestfs.pod:841
36521 msgid "guestfish command line is hard to use."
36522 msgstr ""
36523
36524 #. type: textblock
36525 #: ../src/guestfs.pod:843
36526 msgid ""
36527 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36528 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36529 "exist, so it fails.  In earlier versions of guestfish the error message was "
36530 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36531 "we should have used C<guestfish -c command> to run commands."
36532 msgstr ""
36533
36534 #. type: =item
36535 #: ../src/guestfs.pod:850
36536 msgid "guestfish megabyte modifiers don't work right on all commands"
36537 msgstr ""
36538
36539 #. type: textblock
36540 #: ../src/guestfs.pod:852
36541 msgid ""
36542 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36543 "other modifiers).  What guestfish actually does is to multiply the number "
36544 "part by the modifier part and pass the result to the C API.  However this "
36545 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36546 "expecting some other unit (eg. megabytes)."
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../src/guestfs.pod:859
36551 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36552 msgstr ""
36553
36554 #. type: verbatim
36555 #: ../src/guestfs.pod:861
36556 #, no-wrap
36557 msgid ""
36558 " lvcreate LV VG 100M\n"
36559 "\n"
36560 msgstr ""
36561
36562 #. type: textblock
36563 #: ../src/guestfs.pod:863
36564 msgid ""
36565 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36566 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36567 "megabytes * megabytes) logical volume.  The error message you get from this "
36568 "is also a little obscure."
36569 msgstr ""
36570
36571 #. type: textblock
36572 #: ../src/guestfs.pod:868
36573 msgid ""
36574 "This could be fixed in the generator by specially marking parameters and "
36575 "return values which take bytes or other units."
36576 msgstr ""
36577
36578 #. type: =item
36579 #: ../src/guestfs.pod:871
36580 msgid "Ambiguity between devices and paths"
36581 msgstr ""
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:873
36585 msgid ""
36586 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36587 "sdb2>) and a similar pathname.  A file might just happen to be called "
36588 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../src/guestfs.pod:878
36593 msgid ""
36594 "In the current API we usually resolve this ambiguity by having two separate "
36595 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36596 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36597 "detecting if the path supplied begins with C</dev/>."
36598 msgstr ""
36599
36600 #. type: textblock
36601 #: ../src/guestfs.pod:884
36602 msgid ""
36603 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36604 "make paths/devices into structured names.  One way to do this would be to "
36605 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36606 "aspect of grub.  Another way would be to use a structured type, equivalent "
36607 "to this OCaml type:"
36608 msgstr ""
36609
36610 #. type: verbatim
36611 #: ../src/guestfs.pod:890
36612 #, no-wrap
36613 msgid ""
36614 " type path = Path of string | Device of int | Partition of int * int\n"
36615 "\n"
36616 msgstr ""
36617
36618 #. type: textblock
36619 #: ../src/guestfs.pod:892
36620 msgid "which would allow you to pass arguments like:"
36621 msgstr ""
36622
36623 #. type: verbatim
36624 #: ../src/guestfs.pod:894
36625 #, no-wrap
36626 msgid ""
36627 " Path \"/foo/bar\"\n"
36628 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36629 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36630 " Path \"/dev/sdb2\"    (* not a device *)\n"
36631 "\n"
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:899
36636 msgid ""
36637 "As you can see there are still problems to resolve even with this "
36638 "representation.  Also consider how it might work in guestfish."
36639 msgstr ""
36640
36641 #. type: =head2
36642 #: ../src/guestfs.pod:904
36643 msgid "KEYS AND PASSPHRASES"
36644 msgstr ""
36645
36646 #. type: textblock
36647 #: ../src/guestfs.pod:906
36648 msgid ""
36649 "Certain libguestfs calls take a parameter that contains sensitive key "
36650 "material, passed in as a C string."
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../src/guestfs.pod:909
36655 msgid ""
36656 "In the future we would hope to change the libguestfs implementation so that "
36657 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36658 "swap.  However this is I<not> done at the moment, because of the complexity "
36659 "of such an implementation."
36660 msgstr ""
36661
36662 #. type: textblock
36663 #: ../src/guestfs.pod:914
36664 msgid ""
36665 "Therefore you should be aware that any key parameter you pass to libguestfs "
36666 "might end up being written out to the swap partition.  If this is a concern, "
36667 "scrub the swap partition or don't use libguestfs on encrypted devices."
36668 msgstr ""
36669
36670 #. type: =head2
36671 #: ../src/guestfs.pod:919
36672 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36673 msgstr ""
36674
36675 #. type: textblock
36676 #: ../src/guestfs.pod:921
36677 msgid ""
36678 "All high-level libguestfs actions are synchronous.  If you want to use "
36679 "libguestfs asynchronously then you must create a thread."
36680 msgstr ""
36681
36682 #. type: textblock
36683 #: ../src/guestfs.pod:924
36684 msgid ""
36685 "Only use the handle from a single thread.  Either use the handle exclusively "
36686 "from one thread, or provide your own mutex so that two threads cannot issue "
36687 "calls on the same handle at the same time."
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../src/guestfs.pod:928
36692 msgid ""
36693 "See the graphical program guestfs-browser for one possible architecture for "
36694 "multithreaded programs using libvirt and libguestfs."
36695 msgstr ""
36696
36697 #. type: =head2
36698 #: ../src/guestfs.pod:931
36699 msgid "PATH"
36700 msgstr ""
36701
36702 #. type: textblock
36703 #: ../src/guestfs.pod:933
36704 msgid ""
36705 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36706 "internal path."
36707 msgstr ""
36708
36709 #. type: textblock
36710 #: ../src/guestfs.pod:936
36711 msgid ""
36712 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36713 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36714 msgstr ""
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:939
36718 msgid ""
36719 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36720 "to change the directories that libguestfs will search in.  The value is a "
36721 "colon-separated list of paths.  The current directory is I<not> searched "
36722 "unless the path contains an empty element or C<.>.  For example "
36723 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36724 "then C</usr/lib/guestfs>."
36725 msgstr ""
36726
36727 #. type: =head2
36728 #: ../src/guestfs.pod:946
36729 msgid "QEMU WRAPPERS"
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:948
36734 msgid ""
36735 "If you want to compile your own qemu, run qemu from a non-standard location, "
36736 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36737 "around qemu."
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../src/guestfs.pod:952
36742 msgid ""
36743 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36744 "last command in the shell script (so that qemu replaces the shell and "
36745 "becomes the direct child of the libguestfs-using program).  If you don't do "
36746 "this, then the qemu process won't be cleaned up correctly."
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:957
36751 msgid ""
36752 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36753 "source:"
36754 msgstr ""
36755
36756 #. type: verbatim
36757 #: ../src/guestfs.pod:960
36758 #, no-wrap
36759 msgid ""
36760 " #!/bin/sh -\n"
36761 " qemudir=/home/rjones/d/qemu\n"
36762 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36763 "\n"
36764 msgstr ""
36765
36766 #. type: textblock
36767 #: ../src/guestfs.pod:964
36768 msgid ""
36769 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36770 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36771 "example:"
36772 msgstr ""
36773
36774 #. type: verbatim
36775 #: ../src/guestfs.pod:968
36776 #, no-wrap
36777 msgid ""
36778 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36779 "\n"
36780 msgstr ""
36781
36782 #. type: textblock
36783 #: ../src/guestfs.pod:970
36784 msgid ""
36785 "Note that libguestfs also calls qemu with the -help and -version options in "
36786 "order to determine features."
36787 msgstr ""
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:973
36791 msgid ""
36792 "Wrappers can also be used to edit the options passed to qemu.  In the "
36793 "following example, the C<-machine ...> option (C<-machine> and the following "
36794 "argument) are removed from the command line and replaced with C<-machine pc,"
36795 "accel=tcg>.  The while loop iterates over the options until it finds the "
36796 "right one to remove, putting the remaining options into the C<args> array."
36797 msgstr ""
36798
36799 #. type: verbatim
36800 #: ../src/guestfs.pod:982
36801 #, no-wrap
36802 msgid ""
36803 " i=0\n"
36804 " while [ $# -gt 0 ]; do\n"
36805 "     case \"$1\" in\n"
36806 "     -machine)\n"
36807 "         shift 2;;\n"
36808 "     *)\n"
36809 "         args[i]=\"$1\"\n"
36810 "         (( i++ ))\n"
36811 "         shift ;;\n"
36812 "     esac\n"
36813 " done\n"
36814 " \n"
36815 msgstr ""
36816
36817 #. type: verbatim
36818 #: ../src/guestfs.pod:994
36819 #, no-wrap
36820 msgid ""
36821 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36822 "\n"
36823 msgstr ""
36824
36825 #. type: =head2
36826 #: ../src/guestfs.pod:996
36827 msgid "ATTACHING TO RUNNING DAEMONS"
36828 msgstr ""
36829
36830 #. type: textblock
36831 #: ../src/guestfs.pod:998
36832 msgid ""
36833 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36834 "babies.  Use with caution."
36835 msgstr ""
36836
36837 #. type: textblock
36838 #: ../src/guestfs.pod:1001
36839 msgid ""
36840 "I<Note (2):> This section explains how to attach to a running daemon from a "
36841 "low level perspective.  For most users, simply using virt tools such as "
36842 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36843 msgstr ""
36844
36845 #. type: =head3
36846 #: ../src/guestfs.pod:1005
36847 msgid "Using guestfs_set_attach_method"
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../src/guestfs.pod:1007
36852 msgid ""
36853 "By calling L</guestfs_set_attach_method> you can change how the library "
36854 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36855 "ARCHITECTURE> for some background)."
36856 msgstr ""
36857
36858 #. type: textblock
36859 #: ../src/guestfs.pod:1011
36860 msgid ""
36861 "The normal attach method is C<appliance>, where a small appliance is created "
36862 "containing the daemon, and then the library connects to this."
36863 msgstr ""
36864
36865 #. type: textblock
36866 #: ../src/guestfs.pod:1014
36867 msgid ""
36868 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36869 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36870 "daemon over the Unix domain socket."
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../src/guestfs.pod:1018
36875 msgid ""
36876 "The normal use for this is to connect to a running virtual machine that "
36877 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36878 "files inside the live virtual machine."
36879 msgstr ""
36880
36881 #. type: =head3
36882 #: ../src/guestfs.pod:1022
36883 msgid "Using guestfs_add_domain with live flag"
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../src/guestfs.pod:1024
36888 msgid ""
36889 "L</guestfs_add_domain> provides some help for getting the correct attach "
36890 "method.  If you pass the C<live> option to this function, then (if the "
36891 "virtual machine is running) it will examine the libvirt XML looking for a "
36892 "virtio-serial channel to connect to:"
36893 msgstr ""
36894
36895 #. type: verbatim
36896 #: ../src/guestfs.pod:1030
36897 #, no-wrap
36898 msgid ""
36899 " <domain>\n"
36900 "   ...\n"
36901 "   <devices>\n"
36902 "     ...\n"
36903 "     <channel type='unix'>\n"
36904 "       <source mode='bind' path='/path/to/socket'/>\n"
36905 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36906 "     </channel>\n"
36907 "     ...\n"
36908 "   </devices>\n"
36909 " </domain>\n"
36910 "\n"
36911 msgstr ""
36912
36913 #. type: textblock
36914 #: ../src/guestfs.pod:1042
36915 msgid ""
36916 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36917 "method to C<unix:/path/to/socket>."
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../src/guestfs.pod:1045
36922 msgid ""
36923 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36924 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36925 "to attach to and modify live virtual machines."
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../src/guestfs.pod:1049
36930 msgid ""
36931 "The virtual machine needs to have been set up beforehand so that it has the "
36932 "virtio-serial channel and so that guestfsd is running inside it."
36933 msgstr ""
36934
36935 #. type: =head2
36936 #: ../src/guestfs.pod:1053
36937 msgid "ABI GUARANTEE"
36938 msgstr ""
36939
36940 #. type: textblock
36941 #: ../src/guestfs.pod:1055
36942 msgid ""
36943 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36944 "actions as outlined in this section.  Although we will deprecate some "
36945 "actions, for example if they get replaced by newer calls, we will keep the "
36946 "old actions forever.  This allows you the developer to program in confidence "
36947 "against the libguestfs API."
36948 msgstr ""
36949
36950 #. type: =head2
36951 #: ../src/guestfs.pod:1061
36952 msgid "BLOCK DEVICE NAMING"
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:1063
36957 msgid ""
36958 "In the kernel there is now quite a profusion of schemata for naming block "
36959 "devices (in this context, by I<block device> I mean a physical or virtual "
36960 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36961 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36962 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36963 "for the old IDE driver (particularly for SATA devices) those devices also "
36964 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36965 "paravirtualized drivers.  This has created several different naming systems, "
36966 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36967 msgstr ""
36968
36969 #. type: textblock
36970 #: ../src/guestfs.pod:1075
36971 msgid ""
36972 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36973 "Linux kernel to access block devices.  We can run a variety of appliances "
36974 "based on a variety of Linux kernels."
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:1079
36979 msgid ""
36980 "This causes a problem for libguestfs because many API calls use device or "
36981 "partition names.  Working scripts and the recipe (example) scripts that we "
36982 "make available over the internet could fail if the naming scheme changes."
36983 msgstr ""
36984
36985 #. type: textblock
36986 #: ../src/guestfs.pod:1084
36987 msgid ""
36988 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36989 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36990 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36991 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../src/guestfs.pod:1090
36996 msgid ""
36997 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36998 "L</guestfs_list_partitions> and similar calls return the true names of the "
36999 "devices and partitions as known to the appliance."
37000 msgstr ""
37001
37002 #. type: =head3
37003 #: ../src/guestfs.pod:1095
37004 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:1097
37009 msgid ""
37010 "Usually this translation is transparent.  However in some (very rare)  cases "
37011 "you may need to know the exact algorithm.  Such cases include where you use "
37012 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37013 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:1103
37018 msgid ""
37019 "The algorithm is applied only to I<parameters> which are known to be either "
37020 "device or partition names.  Return values from functions such as L</"
37021 "guestfs_list_devices> are never changed."
37022 msgstr ""
37023
37024 #. type: textblock
37025 #: ../src/guestfs.pod:1111
37026 msgid "Is the string a parameter which is a device or partition name?"
37027 msgstr ""
37028
37029 #. type: textblock
37030 #: ../src/guestfs.pod:1115
37031 msgid "Does the string begin with C</dev/sd>?"
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../src/guestfs.pod:1119
37036 msgid ""
37037 "Does the named device exist? If so, we use that device.  However if I<not> "
37038 "then we continue with this algorithm."
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../src/guestfs.pod:1124
37043 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../src/guestfs.pod:1126
37048 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../src/guestfs.pod:1128
37053 msgid "If that named device exists, use it.  If not, continue."
37054 msgstr ""
37055
37056 #. type: textblock
37057 #: ../src/guestfs.pod:1132
37058 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37059 msgstr ""
37060
37061 #. type: textblock
37062 #: ../src/guestfs.pod:1134
37063 msgid "If that named device exists, use it.  If not, return an error."
37064 msgstr ""
37065
37066 #. type: =head3
37067 #: ../src/guestfs.pod:1138
37068 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37069 msgstr ""
37070
37071 #. type: textblock
37072 #: ../src/guestfs.pod:1140
37073 msgid ""
37074 "Although the standard naming scheme and automatic translation is useful for "
37075 "simple programs and guestfish scripts, for larger programs it is best not to "
37076 "rely on this mechanism."
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:1144
37081 msgid ""
37082 "Where possible for maximum future portability programs using libguestfs "
37083 "should use these future-proof techniques:"
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:1151
37088 msgid ""
37089 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37090 "device names, and then use those names directly."
37091 msgstr ""
37092
37093 #. type: textblock
37094 #: ../src/guestfs.pod:1154
37095 msgid ""
37096 "Since those device names exist by definition, they will never be translated."
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:1159
37101 msgid ""
37102 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37103 "filesystem labels."
37104 msgstr ""
37105
37106 #. type: textblock
37107 #: ../src/guestfs.pod:1166
37108 msgid ""
37109 "This section discusses security implications of using libguestfs, "
37110 "particularly with untrusted or malicious guests or disk images."
37111 msgstr ""
37112
37113 #. type: =head2
37114 #: ../src/guestfs.pod:1169
37115 msgid "GENERAL SECURITY CONSIDERATIONS"
37116 msgstr ""
37117
37118 #. type: textblock
37119 #: ../src/guestfs.pod:1171
37120 msgid ""
37121 "Be careful with any files or data that you download from a guest (by "
37122 "\"download\" we mean not just the L</guestfs_download> command but any "
37123 "command that reads files, filenames, directories or anything else from a "
37124 "disk image).  An attacker could manipulate the data to fool your program "
37125 "into doing the wrong thing.  Consider cases such as:"
37126 msgstr ""
37127
37128 #. type: textblock
37129 #: ../src/guestfs.pod:1181
37130 msgid "the data (file etc) not being present"
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../src/guestfs.pod:1185
37135 msgid "being present but empty"
37136 msgstr ""
37137
37138 #. type: textblock
37139 #: ../src/guestfs.pod:1189
37140 msgid "being much larger than normal"
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:1193
37145 msgid "containing arbitrary 8 bit data"
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:1197
37150 msgid "being in an unexpected character encoding"
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../src/guestfs.pod:1201
37155 msgid "containing homoglyphs."
37156 msgstr ""
37157
37158 #. type: =head2
37159 #: ../src/guestfs.pod:1205
37160 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37161 msgstr ""
37162
37163 #. type: textblock
37164 #: ../src/guestfs.pod:1207
37165 msgid ""
37166 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37167 "(VFS) module can sometimes be escalated into exploits by deliberately "
37168 "creating a malicious, malformed filesystem.  These exploits are very severe "
37169 "for two reasons.  Firstly there are very many filesystem drivers in the "
37170 "kernel, and many of them are infrequently used and not much developer "
37171 "attention has been paid to the code.  Linux userspace helps potential "
37172 "crackers by detecting the filesystem type and automatically choosing the "
37173 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37174 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37175 "exploit (worse in some ways), giving immediate and total access to the "
37176 "system right down to the hardware level."
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:1220
37181 msgid ""
37182 "That explains why you should never mount a filesystem from an untrusted "
37183 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37184 "inside a qemu virtual machine, usually running as a non-root user.  The "
37185 "attacker would need to write a filesystem which first exploited the kernel, "
37186 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37187 "the libguestfs protocol, and finally to be as serious as the host kernel "
37188 "exploit it would need to escalate its privileges to root.  This multi-step "
37189 "escalation, performed by a static piece of data, is thought to be extremely "
37190 "hard to do, although we never say 'never' about security issues."
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:1231
37195 msgid ""
37196 "In any case callers can reduce the attack surface by forcing the filesystem "
37197 "type when mounting (use L</guestfs_mount_vfs>)."
37198 msgstr ""
37199
37200 #. type: =head2
37201 #: ../src/guestfs.pod:1234
37202 msgid "PROTOCOL SECURITY"
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../src/guestfs.pod:1236
37207 msgid ""
37208 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37209 "defined upper message size.  However a program that uses libguestfs must "
37210 "also take care - for example you can write a program that downloads a binary "
37211 "from a disk image and executes it locally, and no amount of protocol "
37212 "security will save you from the consequences."
37213 msgstr ""
37214
37215 #. type: =head2
37216 #: ../src/guestfs.pod:1242
37217 msgid "INSPECTION SECURITY"
37218 msgstr ""
37219
37220 #. type: textblock
37221 #: ../src/guestfs.pod:1244
37222 msgid ""
37223 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37224 "directly from the guest, and these could contain any 8 bit data.  Callers "
37225 "should be careful to escape these before printing them to a structured file "
37226 "(for example, use HTML escaping if creating a web page)."
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../src/guestfs.pod:1250
37231 msgid ""
37232 "Guest configuration may be altered in unusual ways by the administrator of "
37233 "the virtual machine, and may not reflect reality (particularly for untrusted "
37234 "or actively malicious guests).  For example we parse the hostname from "
37235 "configuration files like C</etc/sysconfig/network> that we find in the "
37236 "guest, but the guest administrator can easily manipulate these files to "
37237 "provide the wrong hostname."
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../src/guestfs.pod:1258
37242 msgid ""
37243 "The inspection API parses guest configuration using two external libraries: "
37244 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37245 "designed to be robust in the face of malicious data, although denial of "
37246 "service attacks are still possible, for example with oversized configuration "
37247 "files."
37248 msgstr ""
37249
37250 #. type: =head2
37251 #: ../src/guestfs.pod:1264
37252 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37253 msgstr ""
37254
37255 #. type: textblock
37256 #: ../src/guestfs.pod:1266
37257 msgid ""
37258 "Be very cautious about running commands from the guest.  By running a "
37259 "command in the guest, you are giving CPU time to a binary that you do not "
37260 "control, under the same user account as the library, albeit wrapped in qemu "
37261 "virtualization.  More information and alternatives can be found in the "
37262 "section L</RUNNING COMMANDS>."
37263 msgstr ""
37264
37265 #. type: =head2
37266 #: ../src/guestfs.pod:1272
37267 msgid "CVE-2010-3851"
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../src/guestfs.pod:1274
37272 msgid "https://bugzilla.redhat.com/642934"
37273 msgstr ""
37274
37275 #. type: textblock
37276 #: ../src/guestfs.pod:1276
37277 msgid ""
37278 "This security bug concerns the automatic disk format detection that qemu "
37279 "does on disk images."
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../src/guestfs.pod:1279
37284 msgid ""
37285 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37286 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37287 "for one of the known headers, and if none is found then assuming the disk "
37288 "image must be raw."
37289 msgstr ""
37290
37291 #. type: textblock
37292 #: ../src/guestfs.pod:1284
37293 msgid ""
37294 "This allows a guest which has been given a raw disk image to write some "
37295 "other header.  At next boot (or when the disk image is accessed by "
37296 "libguestfs) qemu would do autodetection and think the disk image format was, "
37297 "say, qcow2 based on the header written by the guest."
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../src/guestfs.pod:1289
37302 msgid ""
37303 "This in itself would not be a problem, but qcow2 offers many features, one "
37304 "of which is to allow a disk image to refer to another image (called the "
37305 "\"backing disk\").  It does this by placing the path to the backing disk "
37306 "into the qcow2 header.  This path is not validated and could point to any "
37307 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37308 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37309 "control of the attacker."
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../src/guestfs.pod:1297
37314 msgid ""
37315 "In libguestfs this is rather hard to exploit except under two circumstances:"
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../src/guestfs.pod:1304
37320 msgid "You have enabled the network or have opened the disk in write mode."
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../src/guestfs.pod:1308
37325 msgid ""
37326 "You are also running untrusted code from the guest (see L</RUNNING "
37327 "COMMANDS>)."
37328 msgstr ""
37329
37330 #. type: textblock
37331 #: ../src/guestfs.pod:1313
37332 msgid ""
37333 "The way to avoid this is to specify the expected disk format when adding "
37334 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37335 "should always do this if the disk is raw format, and it's a good idea for "
37336 "other cases too."
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:1318
37341 msgid ""
37342 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37343 "format is fetched from libvirt and passed through."
37344 msgstr ""
37345
37346 #. type: textblock
37347 #: ../src/guestfs.pod:1321
37348 msgid ""
37349 "For libguestfs tools, use the I<--format> command line parameter as "
37350 "appropriate."
37351 msgstr ""
37352
37353 #. type: =head1
37354 #: ../src/guestfs.pod:1324
37355 msgid "CONNECTION MANAGEMENT"
37356 msgstr ""
37357
37358 #. type: =head2
37359 #: ../src/guestfs.pod:1326
37360 msgid "guestfs_h *"
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:1328
37365 msgid ""
37366 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37367 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37368 "handle and release all resources used."
37369 msgstr ""
37370
37371 #. type: textblock
37372 #: ../src/guestfs.pod:1332
37373 msgid ""
37374 "For information on using multiple handles and threads, see the section L</"
37375 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37376 msgstr ""
37377
37378 #. type: =head2
37379 #: ../src/guestfs.pod:1335
37380 msgid "guestfs_create"
37381 msgstr ""
37382
37383 #. type: verbatim
37384 #: ../src/guestfs.pod:1337
37385 #, no-wrap
37386 msgid ""
37387 " guestfs_h *guestfs_create (void);\n"
37388 "\n"
37389 msgstr ""
37390
37391 #. type: textblock
37392 #: ../src/guestfs.pod:1339
37393 msgid "Create a connection handle."
37394 msgstr ""
37395
37396 #. type: textblock
37397 #: ../src/guestfs.pod:1341
37398 msgid ""
37399 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37400 "NULL."
37401 msgstr ""
37402
37403 #. type: textblock
37404 #: ../src/guestfs.pod:1344
37405 msgid ""
37406 "You have to \"configure\" the handle after creating it.  This includes "
37407 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37408 "handle at least once."
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../src/guestfs.pod:1348
37413 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../src/guestfs.pod:1350
37418 msgid ""
37419 "You may also want to configure error handling for the handle.  See the L</"
37420 "ERROR HANDLING> section below."
37421 msgstr ""
37422
37423 #. type: =head2
37424 #: ../src/guestfs.pod:1353
37425 msgid "guestfs_close"
37426 msgstr ""
37427
37428 #. type: verbatim
37429 #: ../src/guestfs.pod:1355
37430 #, no-wrap
37431 msgid ""
37432 " void guestfs_close (guestfs_h *g);\n"
37433 "\n"
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:1357
37438 msgid "This closes the connection handle and frees up all resources used."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:1359
37443 msgid ""
37444 "If autosync was set on the handle and the handle was launched, then this "
37445 "implicitly calls various functions to unmount filesystems and sync the "
37446 "disk.  See L</guestfs_set_autosync> for more details."
37447 msgstr ""
37448
37449 #. type: textblock
37450 #: ../src/guestfs.pod:1363
37451 msgid "If a close callback was set on the handle, then it is called."
37452 msgstr ""
37453
37454 #. type: =head1
37455 #: ../src/guestfs.pod:1365
37456 msgid "ERROR HANDLING"
37457 msgstr ""
37458
37459 #. type: textblock
37460 #: ../src/guestfs.pod:1367
37461 msgid ""
37462 "API functions can return errors.  For example, almost all functions that "
37463 "return C<int> will return C<-1> to indicate an error."
37464 msgstr ""
37465
37466 #. type: textblock
37467 #: ../src/guestfs.pod:1370
37468 msgid ""
37469 "Additional information is available for errors: an error message string and "
37470 "optionally an error number (errno) if the thing that failed was a system "
37471 "call."
37472 msgstr ""
37473
37474 #. type: textblock
37475 #: ../src/guestfs.pod:1374
37476 msgid ""
37477 "You can get at the additional information about the last error on the handle "
37478 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37479 "up an error handler with L</guestfs_set_error_handler>."
37480 msgstr ""
37481
37482 #. type: textblock
37483 #: ../src/guestfs.pod:1379
37484 msgid ""
37485 "When the handle is created, a default error handler is installed which "
37486 "prints the error message string to C<stderr>.  For small short-running "
37487 "command line programs it is sufficient to do:"
37488 msgstr ""
37489
37490 #. type: verbatim
37491 #: ../src/guestfs.pod:1383
37492 #, no-wrap
37493 msgid ""
37494 " if (guestfs_launch (g) == -1)\n"
37495 "   exit (EXIT_FAILURE);\n"
37496 "\n"
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:1386
37501 msgid ""
37502 "since the default error handler will ensure that an error message has been "
37503 "printed to C<stderr> before the program exits."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../src/guestfs.pod:1389
37508 msgid ""
37509 "For other programs the caller will almost certainly want to install an "
37510 "alternate error handler or do error handling in-line like this:"
37511 msgstr ""
37512
37513 #. type: verbatim
37514 #: ../src/guestfs.pod:1392
37515 #, no-wrap
37516 msgid ""
37517 " /* This disables the default behaviour of printing errors\n"
37518 "    on stderr. */\n"
37519 " guestfs_set_error_handler (g, NULL, NULL);\n"
37520 " \n"
37521 msgstr ""
37522
37523 #. type: verbatim
37524 #: ../src/guestfs.pod:1396
37525 #, no-wrap
37526 msgid ""
37527 " if (guestfs_launch (g) == -1) {\n"
37528 "   /* Examine the error message and print it etc. */\n"
37529 "   char *msg = guestfs_last_error (g);\n"
37530 "   int errnum = guestfs_last_errno (g);\n"
37531 "   fprintf (stderr, \"%s\", msg);\n"
37532 "   if (errnum != 0)\n"
37533 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37534 "   fprintf (stderr, \"\\n\");\n"
37535 "   /* ... */\n"
37536 " }\n"
37537 "\n"
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:1407
37542 msgid ""
37543 "Out of memory errors are handled differently.  The default action is to call "
37544 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
37545 "guestfs_set_out_of_memory_handler>."
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:1411
37550 msgid ""
37551 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37552 "because there is no handle if this happens there is no way to get additional "
37553 "error information.  However L</guestfs_create> is supposed to be a "
37554 "lightweight operation which can only fail because of insufficient memory (it "
37555 "returns NULL in this case)."
37556 msgstr ""
37557
37558 #. type: =head2
37559 #: ../src/guestfs.pod:1417
37560 msgid "guestfs_last_error"
37561 msgstr ""
37562
37563 #. type: verbatim
37564 #: ../src/guestfs.pod:1419
37565 #, no-wrap
37566 msgid ""
37567 " const char *guestfs_last_error (guestfs_h *g);\n"
37568 "\n"
37569 msgstr ""
37570
37571 #. type: textblock
37572 #: ../src/guestfs.pod:1421
37573 msgid ""
37574 "This returns the last error message that happened on C<g>.  If there has not "
37575 "been an error since the handle was created, then this returns C<NULL>."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:1425
37580 msgid ""
37581 "The lifetime of the returned string is until the next error occurs, or L</"
37582 "guestfs_close> is called."
37583 msgstr ""
37584
37585 #. type: =head2
37586 #: ../src/guestfs.pod:1428
37587 msgid "guestfs_last_errno"
37588 msgstr ""
37589
37590 #. type: verbatim
37591 #: ../src/guestfs.pod:1430
37592 #, no-wrap
37593 msgid ""
37594 " int guestfs_last_errno (guestfs_h *g);\n"
37595 "\n"
37596 msgstr ""
37597
37598 #. type: textblock
37599 #: ../src/guestfs.pod:1432
37600 msgid "This returns the last error number (errno) that happened on C<g>."
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../src/guestfs.pod:1434
37605 msgid "If successful, an errno integer not equal to zero is returned."
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../src/guestfs.pod:1436
37610 msgid ""
37611 "If no error, this returns 0.  This call can return 0 in three situations:"
37612 msgstr ""
37613
37614 #. type: textblock
37615 #: ../src/guestfs.pod:1443
37616 msgid "There has not been any error on the handle."
37617 msgstr ""
37618
37619 #. type: textblock
37620 #: ../src/guestfs.pod:1447
37621 msgid ""
37622 "There has been an error but the errno was meaningless.  This corresponds to "
37623 "the case where the error did not come from a failed system call, but for "
37624 "some other reason."
37625 msgstr ""
37626
37627 #. type: textblock
37628 #: ../src/guestfs.pod:1453
37629 msgid ""
37630 "There was an error from a failed system call, but for some reason the errno "
37631 "was not captured and returned.  This usually indicates a bug in libguestfs."
37632 msgstr ""
37633
37634 #. type: textblock
37635 #: ../src/guestfs.pod:1459
37636 msgid ""
37637 "Libguestfs tries to convert the errno from inside the applicance into a "
37638 "corresponding errno for the caller (not entirely trivial: the appliance "
37639 "might be running a completely different operating system from the library "
37640 "and error numbers are not standardized across Un*xen).  If this could not be "
37641 "done, then the error is translated to C<EINVAL>.  In practice this should "
37642 "only happen in very rare circumstances."
37643 msgstr ""
37644
37645 #. type: =head2
37646 #: ../src/guestfs.pod:1467
37647 msgid "guestfs_set_error_handler"
37648 msgstr ""
37649
37650 #. type: verbatim
37651 #: ../src/guestfs.pod:1469
37652 #, no-wrap
37653 msgid ""
37654 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37655 "                                           void *opaque,\n"
37656 "                                           const char *msg);\n"
37657 " void guestfs_set_error_handler (guestfs_h *g,\n"
37658 "                                 guestfs_error_handler_cb cb,\n"
37659 "                                 void *opaque);\n"
37660 "\n"
37661 msgstr ""
37662
37663 #. type: textblock
37664 #: ../src/guestfs.pod:1476
37665 msgid ""
37666 "The callback C<cb> will be called if there is an error.  The parameters "
37667 "passed to the callback are an opaque data pointer and the error message "
37668 "string."
37669 msgstr ""
37670
37671 #. type: textblock
37672 #: ../src/guestfs.pod:1480
37673 msgid ""
37674 "C<errno> is not passed to the callback.  To get that the callback must call "
37675 "L</guestfs_last_errno>."
37676 msgstr ""
37677
37678 #. type: textblock
37679 #: ../src/guestfs.pod:1483
37680 msgid ""
37681 "Note that the message string C<msg> is freed as soon as the callback "
37682 "function returns, so if you want to stash it somewhere you must make your "
37683 "own copy."
37684 msgstr ""
37685
37686 #. type: textblock
37687 #: ../src/guestfs.pod:1487
37688 msgid "The default handler prints messages on C<stderr>."
37689 msgstr ""
37690
37691 #. type: textblock
37692 #: ../src/guestfs.pod:1489
37693 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37694 msgstr ""
37695
37696 #. type: =head2
37697 #: ../src/guestfs.pod:1491
37698 msgid "guestfs_get_error_handler"
37699 msgstr ""
37700
37701 #. type: verbatim
37702 #: ../src/guestfs.pod:1493
37703 #, no-wrap
37704 msgid ""
37705 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37706 "                                                     void **opaque_rtn);\n"
37707 "\n"
37708 msgstr ""
37709
37710 #. type: textblock
37711 #: ../src/guestfs.pod:1496
37712 msgid "Returns the current error handler callback."
37713 msgstr ""
37714
37715 #. type: =head2
37716 #: ../src/guestfs.pod:1498
37717 msgid "guestfs_set_out_of_memory_handler"
37718 msgstr ""
37719
37720 #. type: verbatim
37721 #: ../src/guestfs.pod:1500
37722 #, no-wrap
37723 msgid ""
37724 " typedef void (*guestfs_abort_cb) (void);\n"
37725 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37726 "                                         guestfs_abort_cb);\n"
37727 "\n"
37728 msgstr ""
37729
37730 #. type: textblock
37731 #: ../src/guestfs.pod:1504
37732 msgid ""
37733 "The callback C<cb> will be called if there is an out of memory situation.  "
37734 "I<Note this callback must not return>."
37735 msgstr ""
37736
37737 #. type: textblock
37738 #: ../src/guestfs.pod:1507
37739 msgid "The default is to call L<abort(3)>."
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:1509
37744 msgid ""
37745 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37746 msgstr ""
37747
37748 #. type: =head2
37749 #: ../src/guestfs.pod:1512
37750 msgid "guestfs_get_out_of_memory_handler"
37751 msgstr ""
37752
37753 #. type: verbatim
37754 #: ../src/guestfs.pod:1514
37755 #, no-wrap
37756 msgid ""
37757 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37758 "\n"
37759 msgstr ""
37760
37761 #. type: textblock
37762 #: ../src/guestfs.pod:1516
37763 msgid "This returns the current out of memory handler."
37764 msgstr ""
37765
37766 #. type: =head1
37767 #: ../src/guestfs.pod:1518
37768 msgid "API CALLS"
37769 msgstr ""
37770
37771 #. type: =head1
37772 #: ../src/guestfs.pod:1522
37773 msgid "STRUCTURES"
37774 msgstr ""
37775
37776 #. type: textblock
37777 #: ../src/guestfs.pod:1524
37778 msgid "@STRUCTS@"
37779 msgstr ""
37780
37781 #. type: =head1
37782 #: ../src/guestfs.pod:1526
37783 msgid "AVAILABILITY"
37784 msgstr ""
37785
37786 #. type: =head2
37787 #: ../src/guestfs.pod:1528
37788 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37789 msgstr ""
37790
37791 #. type: textblock
37792 #: ../src/guestfs.pod:1530
37793 msgid ""
37794 "Using L</guestfs_available> you can test availability of the following "
37795 "groups of functions.  This test queries the appliance to see if the "
37796 "appliance you are currently using supports the functionality."
37797 msgstr ""
37798
37799 #. type: textblock
37800 #: ../src/guestfs.pod:1535
37801 msgid "@AVAILABILITY@"
37802 msgstr ""
37803
37804 #. type: =head2
37805 #: ../src/guestfs.pod:1537
37806 msgid "GUESTFISH supported COMMAND"
37807 msgstr ""
37808
37809 #. type: textblock
37810 #: ../src/guestfs.pod:1539
37811 msgid ""
37812 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37813 "prints out the available groups and whether they are supported by this build "
37814 "of libguestfs.  Note however that you have to do C<run> first."
37815 msgstr ""
37816
37817 #. type: =head2
37818 #: ../src/guestfs.pod:1544
37819 msgid "SINGLE CALLS AT COMPILE TIME"
37820 msgstr ""
37821
37822 #. type: textblock
37823 #: ../src/guestfs.pod:1546
37824 msgid ""
37825 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37826 "function, such as:"
37827 msgstr ""
37828
37829 #. type: verbatim
37830 #: ../src/guestfs.pod:1549
37831 #, no-wrap
37832 msgid ""
37833 " #define LIBGUESTFS_HAVE_DD 1\n"
37834 "\n"
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:1551
37839 msgid "if L</guestfs_dd> is available."
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../src/guestfs.pod:1553
37844 msgid ""
37845 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37846 "function is available at compile time, we recommended using build tools such "
37847 "as autoconf or cmake.  For example in autotools you could use:"
37848 msgstr ""
37849
37850 #. type: verbatim
37851 #: ../src/guestfs.pod:1558
37852 #, no-wrap
37853 msgid ""
37854 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37855 " AC_CHECK_FUNCS([guestfs_dd])\n"
37856 "\n"
37857 msgstr ""
37858
37859 #. type: textblock
37860 #: ../src/guestfs.pod:1561
37861 msgid ""
37862 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37863 "in your program."
37864 msgstr ""
37865
37866 #. type: =head2
37867 #: ../src/guestfs.pod:1564
37868 msgid "SINGLE CALLS AT RUN TIME"
37869 msgstr ""
37870
37871 #. type: textblock
37872 #: ../src/guestfs.pod:1566
37873 msgid ""
37874 "Testing at compile time doesn't guarantee that a function really exists in "
37875 "the library.  The reason is that you might be dynamically linked against a "
37876 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37877 "This situation unfortunately results in a segmentation fault, which is a "
37878 "shortcoming of the C dynamic linking system itself."
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:1573
37883 msgid ""
37884 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37885 "in this example program (note that you still need the compile time check as "
37886 "well):"
37887 msgstr ""
37888
37889 #. type: verbatim
37890 #: ../src/guestfs.pod:1577
37891 #, no-wrap
37892 msgid ""
37893 " #include <stdio.h>\n"
37894 " #include <stdlib.h>\n"
37895 " #include <unistd.h>\n"
37896 " #include <dlfcn.h>\n"
37897 " #include <guestfs.h>\n"
37898 " \n"
37899 msgstr ""
37900
37901 #. type: verbatim
37902 #: ../src/guestfs.pod:1583
37903 #, no-wrap
37904 msgid ""
37905 " main ()\n"
37906 " {\n"
37907 " #ifdef LIBGUESTFS_HAVE_DD\n"
37908 "   void *dl;\n"
37909 "   int has_function;\n"
37910 " \n"
37911 msgstr ""
37912
37913 #. type: verbatim
37914 #: ../src/guestfs.pod:1589
37915 #, no-wrap
37916 msgid ""
37917 "   /* Test if the function guestfs_dd is really available. */\n"
37918 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37919 "   if (!dl) {\n"
37920 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37921 "     exit (EXIT_FAILURE);\n"
37922 "   }\n"
37923 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37924 "   dlclose (dl);\n"
37925 " \n"
37926 msgstr ""
37927
37928 #. type: verbatim
37929 #: ../src/guestfs.pod:1598
37930 #, no-wrap
37931 msgid ""
37932 "   if (!has_function)\n"
37933 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37934 "   else {\n"
37935 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37936 "     /* Now it's safe to call\n"
37937 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37938 "     */\n"
37939 "   }\n"
37940 " #else\n"
37941 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37942 " #endif\n"
37943 "  }\n"
37944 "\n"
37945 msgstr ""
37946
37947 #. type: textblock
37948 #: ../src/guestfs.pod:1611
37949 msgid ""
37950 "You may think the above is an awful lot of hassle, and it is.  There are "
37951 "other ways outside of the C linking system to ensure that this kind of "
37952 "incompatibility never arises, such as using package versioning:"
37953 msgstr ""
37954
37955 #. type: verbatim
37956 #: ../src/guestfs.pod:1616
37957 #, no-wrap
37958 msgid ""
37959 " Requires: libguestfs >= 1.0.80\n"
37960 "\n"
37961 msgstr ""
37962
37963 #. type: =head1
37964 #: ../src/guestfs.pod:1618
37965 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:1620
37970 msgid ""
37971 "A recent feature of the API is the introduction of calls which take optional "
37972 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37973 "takes variable arguments (ie. C<...>), as in this example:"
37974 msgstr ""
37975
37976 #. type: verbatim
37977 #: ../src/guestfs.pod:1625
37978 #, no-wrap
37979 msgid ""
37980 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37981 "\n"
37982 msgstr ""
37983
37984 #. type: textblock
37985 #: ../src/guestfs.pod:1627
37986 msgid ""
37987 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37988 "call with no optional arguments specified:"
37989 msgstr ""
37990
37991 #. type: verbatim
37992 #: ../src/guestfs.pod:1630
37993 #, no-wrap
37994 msgid ""
37995 " guestfs_add_drive_opts (g, filename, -1);\n"
37996 "\n"
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:1632
38001 msgid "With a single optional argument:"
38002 msgstr ""
38003
38004 #. type: verbatim
38005 #: ../src/guestfs.pod:1634
38006 #, no-wrap
38007 msgid ""
38008 " guestfs_add_drive_opts (g, filename,\n"
38009 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38010 "                         -1);\n"
38011 "\n"
38012 msgstr ""
38013
38014 #. type: textblock
38015 #: ../src/guestfs.pod:1638
38016 msgid "With two:"
38017 msgstr ""
38018
38019 #. type: verbatim
38020 #: ../src/guestfs.pod:1640
38021 #, no-wrap
38022 msgid ""
38023 " guestfs_add_drive_opts (g, filename,\n"
38024 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38025 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38026 "                         -1);\n"
38027 "\n"
38028 msgstr ""
38029
38030 #. type: textblock
38031 #: ../src/guestfs.pod:1645
38032 msgid ""
38033 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38034 "happen!"
38035 msgstr ""
38036
38037 #. type: =head2
38038 #: ../src/guestfs.pod:1648
38039 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:1650
38044 msgid ""
38045 "The second variant has the same name with the suffix C<_va>, which works the "
38046 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38047 "example function, this is declared:"
38048 msgstr ""
38049
38050 #. type: verbatim
38051 #: ../src/guestfs.pod:1654
38052 #, no-wrap
38053 msgid ""
38054 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38055 "                                va_list args);\n"
38056 "\n"
38057 msgstr ""
38058
38059 #. type: =head2
38060 #: ../src/guestfs.pod:1657
38061 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38062 msgstr ""
38063
38064 #. type: textblock
38065 #: ../src/guestfs.pod:1659
38066 msgid ""
38067 "The third variant is useful where you need to construct these calls.  You "
38068 "pass in a structure where you fill in the optional fields.  The structure "
38069 "has a bitmask as the first element which you must set to indicate which "
38070 "fields you have filled in.  For our example function the structure and call "
38071 "are declared:"
38072 msgstr ""
38073
38074 #. type: verbatim
38075 #: ../src/guestfs.pod:1665
38076 #, no-wrap
38077 msgid ""
38078 " struct guestfs_add_drive_opts_argv {\n"
38079 "   uint64_t bitmask;\n"
38080 "   int readonly;\n"
38081 "   const char *format;\n"
38082 "   /* ... */\n"
38083 " };\n"
38084 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38085 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38086 "\n"
38087 msgstr ""
38088
38089 #. type: textblock
38090 #: ../src/guestfs.pod:1674
38091 msgid "You could call it like this:"
38092 msgstr ""
38093
38094 #. type: verbatim
38095 #: ../src/guestfs.pod:1676
38096 #, no-wrap
38097 msgid ""
38098 " struct guestfs_add_drive_opts_argv optargs = {\n"
38099 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38100 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38101 "   .readonly = 1,\n"
38102 "   .format = \"qcow2\"\n"
38103 " };\n"
38104 " \n"
38105 msgstr ""
38106
38107 #. type: verbatim
38108 #: ../src/guestfs.pod:1683
38109 #, no-wrap
38110 msgid ""
38111 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38112 "\n"
38113 msgstr ""
38114
38115 #. type: textblock
38116 #: ../src/guestfs.pod:1691
38117 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38118 msgstr ""
38119
38120 #. type: textblock
38121 #: ../src/guestfs.pod:1696
38122 msgid "You do not need to fill in all fields of the structure."
38123 msgstr ""
38124
38125 #. type: textblock
38126 #: ../src/guestfs.pod:1700
38127 msgid ""
38128 "There must be a one-to-one correspondence between fields of the structure "
38129 "that are filled in, and bits set in the bitmask."
38130 msgstr ""
38131
38132 #. type: =head2
38133 #: ../src/guestfs.pod:1705
38134 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38135 msgstr ""
38136
38137 #. type: textblock
38138 #: ../src/guestfs.pod:1707
38139 msgid ""
38140 "In other languages, optional arguments are expressed in the way that is "
38141 "natural for that language.  We refer you to the language-specific "
38142 "documentation for more details on that."
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:1711
38147 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38148 msgstr ""
38149
38150 #. type: =head2
38151 #: ../src/guestfs.pod:1713
38152 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38153 msgstr ""
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:1715
38157 msgid ""
38158 "B<Note:> This section documents the generic event mechanism introduced in "
38159 "libguestfs 1.10, which you should use in new code if possible.  The old "
38160 "functions C<guestfs_set_log_message_callback>, "
38161 "C<guestfs_set_subprocess_quit_callback>, "
38162 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38163 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38164 "page.  Because of the ABI guarantee, the old functions continue to work."
38165 msgstr ""
38166
38167 #. type: textblock
38168 #: ../src/guestfs.pod:1724
38169 msgid ""
38170 "Handles generate events when certain things happen, such as log messages "
38171 "being generated, progress messages during long-running operations, or the "
38172 "handle being closed.  The API calls described below let you register a "
38173 "callback to be called when events happen.  You can register multiple "
38174 "callbacks (for the same, different or overlapping sets of events), and "
38175 "individually remove callbacks.  If callbacks are not removed, then they "
38176 "remain in force until the handle is closed."
38177 msgstr ""
38178
38179 #. type: textblock
38180 #: ../src/guestfs.pod:1732
38181 msgid ""
38182 "In the current implementation, events are only generated synchronously: that "
38183 "means that events (and hence callbacks) can only happen while you are in the "
38184 "middle of making another libguestfs call.  The callback is called in the "
38185 "same thread."
38186 msgstr ""
38187
38188 #. type: textblock
38189 #: ../src/guestfs.pod:1737
38190 msgid ""
38191 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38192 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38193 msgstr ""
38194
38195 #. type: =head3
38196 #: ../src/guestfs.pod:1741
38197 msgid "CLASSES OF EVENTS"
38198 msgstr ""
38199
38200 #. type: =item
38201 #: ../src/guestfs.pod:1745
38202 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../src/guestfs.pod:1748
38207 msgid ""
38208 "The callback function will be called while the handle is being closed "
38209 "(synchronously from L</guestfs_close>)."
38210 msgstr ""
38211
38212 #. type: textblock
38213 #: ../src/guestfs.pod:1751
38214 msgid ""
38215 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38216 "handles that are open when the program exits.  This means that this callback "
38217 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38218 "problems in higher-level languages (eg. if your HLL interpreter has already "
38219 "been cleaned up by the time this is called, and if your callback then jumps "
38220 "into some HLL function)."
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../src/guestfs.pod:1758
38225 msgid ""
38226 "If no callback is registered: the handle is closed without any callback "
38227 "being invoked."
38228 msgstr ""
38229
38230 #. type: =item
38231 #: ../src/guestfs.pod:1761
38232 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38233 msgstr ""
38234
38235 #. type: textblock
38236 #: ../src/guestfs.pod:1764
38237 msgid ""
38238 "The callback function will be called when the child process quits, either "
38239 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38240 "corresponds to a transition from any state to the CONFIG state)."
38241 msgstr ""
38242
38243 #. type: textblock
38244 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38245 msgid "If no callback is registered: the event is ignored."
38246 msgstr ""
38247
38248 #. type: =item
38249 #: ../src/guestfs.pod:1770
38250 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:1773
38255 msgid ""
38256 "The callback function will be called when the child process becomes ready "
38257 "first time after it has been launched.  (This corresponds to a transition "
38258 "from LAUNCHING to the READY state)."
38259 msgstr ""
38260
38261 #. type: =item
38262 #: ../src/guestfs.pod:1779
38263 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38264 msgstr ""
38265
38266 #. type: textblock
38267 #: ../src/guestfs.pod:1782
38268 msgid ""
38269 "Some long-running operations can generate progress messages.  If this "
38270 "callback is registered, then it will be called each time a progress message "
38271 "is generated (usually two seconds after the operation started, and three "
38272 "times per second thereafter until it completes, although the frequency may "
38273 "change in future versions)."
38274 msgstr ""
38275
38276 #. type: textblock
38277 #: ../src/guestfs.pod:1788
38278 msgid ""
38279 "The callback receives in the payload four unsigned 64 bit numbers which are "
38280 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38281 msgstr ""
38282
38283 #. type: textblock
38284 #: ../src/guestfs.pod:1791
38285 msgid ""
38286 "The units of C<total> are not defined, although for some operations C<total> "
38287 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38288 "or megabytes), and C<position> may be the portion which has been transferred."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:1796
38293 msgid "The only defined and stable parts of the API are:"
38294 msgstr ""
38295
38296 #. type: textblock
38297 #: ../src/guestfs.pod:1802
38298 msgid ""
38299 "The callback can display to the user some type of progress bar or indicator "
38300 "which shows the ratio of C<position>:C<total>."
38301 msgstr ""
38302
38303 #. type: textblock
38304 #: ../src/guestfs.pod:1807
38305 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38306 msgstr ""
38307
38308 #. type: textblock
38309 #: ../src/guestfs.pod:1811
38310 msgid ""
38311 "If any progress notification is sent during a call, then a final progress "
38312 "notification is always sent when C<position> = C<total> (I<unless> the call "
38313 "fails with an error)."
38314 msgstr ""
38315
38316 #. type: textblock
38317 #: ../src/guestfs.pod:1815
38318 msgid ""
38319 "This is to simplify caller code, so callers can easily set the progress "
38320 "indicator to \"100%\" at the end of the operation, without requiring special "
38321 "code to detect this case."
38322 msgstr ""
38323
38324 #. type: textblock
38325 #: ../src/guestfs.pod:1821
38326 msgid ""
38327 "For some calls we are unable to estimate the progress of the call, but we "
38328 "can still generate progress messages to indicate activity.  This is known as "
38329 "\"pulse mode\", and is directly supported by certain progress bar "
38330 "implementations (eg. GtkProgressBar)."
38331 msgstr ""
38332
38333 #. type: textblock
38334 #: ../src/guestfs.pod:1826
38335 msgid ""
38336 "For these calls, zero or more progress messages are generated with "
38337 "C<position = 0> and C<total = 1>, followed by a final message with "
38338 "C<position = total = 1>."
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:1830
38343 msgid ""
38344 "As noted above, if the call fails with an error then the final message may "
38345 "not be generated."
38346 msgstr ""
38347
38348 #. type: textblock
38349 #: ../src/guestfs.pod:1835
38350 msgid ""
38351 "The callback also receives the procedure number (C<proc_nr>) and serial "
38352 "number (C<serial>) of the call.  These are only useful for debugging "
38353 "protocol issues, and the callback can normally ignore them.  The callback "
38354 "may want to print these numbers in error messages or debugging messages."
38355 msgstr ""
38356
38357 #. type: textblock
38358 #: ../src/guestfs.pod:1841
38359 msgid "If no callback is registered: progress messages are discarded."
38360 msgstr ""
38361
38362 #. type: =item
38363 #: ../src/guestfs.pod:1843
38364 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38365 msgstr ""
38366
38367 #. type: textblock
38368 #: ../src/guestfs.pod:1846
38369 msgid ""
38370 "The callback function is called whenever a log message is generated by qemu, "
38371 "the appliance kernel, guestfsd (daemon), or utility programs."
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:1849
38376 msgid ""
38377 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38378 "guestfs_launch>) then additional debug messages are generated."
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
38383 msgid ""
38384 "If no callback is registered: the messages are discarded unless the verbose "
38385 "flag is set in which case they are sent to stderr.  You can override the "
38386 "printing of verbose messages to stderr by setting up a callback."
38387 msgstr ""
38388
38389 #. type: =item
38390 #: ../src/guestfs.pod:1857
38391 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38392 msgstr ""
38393
38394 #. type: textblock
38395 #: ../src/guestfs.pod:1860
38396 msgid ""
38397 "The callback function is called whenever a log message is generated by the "
38398 "library part of libguestfs."
38399 msgstr ""
38400
38401 #. type: textblock
38402 #: ../src/guestfs.pod:1863
38403 msgid ""
38404 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38405 "messages are generated."
38406 msgstr ""
38407
38408 #. type: =item
38409 #: ../src/guestfs.pod:1871
38410 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:1874
38415 msgid ""
38416 "The callback function is called whenever a trace message is generated.  This "
38417 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:1877
38422 msgid ""
38423 "If no callback is registered: the messages are sent to stderr.  You can "
38424 "override the printing of trace messages to stderr by setting up a callback."
38425 msgstr ""
38426
38427 #. type: =item
38428 #: ../src/guestfs.pod:1881
38429 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../src/guestfs.pod:1884
38434 msgid ""
38435 "The callback function is called whenever a libguestfs function is entered."
38436 msgstr ""
38437
38438 #. type: textblock
38439 #: ../src/guestfs.pod:1887
38440 msgid ""
38441 "The payload is a string which contains the name of the function that we are "
38442 "entering (not including C<guestfs_> prefix)."
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../src/guestfs.pod:1890
38447 msgid ""
38448 "Note that libguestfs functions can call themselves, so you may see many "
38449 "events from a single call.  A few libguestfs functions do not generate this "
38450 "event."
38451 msgstr ""
38452
38453 #. type: =head3
38454 #: ../src/guestfs.pod:1898
38455 msgid "guestfs_set_event_callback"
38456 msgstr ""
38457
38458 #. type: verbatim
38459 #: ../src/guestfs.pod:1900
38460 #, no-wrap
38461 msgid ""
38462 " int guestfs_set_event_callback (guestfs_h *g,\n"
38463 "                                 guestfs_event_callback cb,\n"
38464 "                                 uint64_t event_bitmask,\n"
38465 "                                 int flags,\n"
38466 "                                 void *opaque);\n"
38467 "\n"
38468 msgstr ""
38469
38470 #. type: textblock
38471 #: ../src/guestfs.pod:1906
38472 msgid ""
38473 "This function registers a callback (C<cb>) for all event classes in the "
38474 "C<event_bitmask>."
38475 msgstr ""
38476
38477 #. type: textblock
38478 #: ../src/guestfs.pod:1909
38479 msgid ""
38480 "For example, to register for all log message events, you could call this "
38481 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38482 "To register a single callback for all possible classes of events, use "
38483 "C<GUESTFS_EVENT_ALL>."
38484 msgstr ""
38485
38486 #. type: textblock
38487 #: ../src/guestfs.pod:1915
38488 msgid "C<flags> should always be passed as 0."
38489 msgstr ""
38490
38491 #. type: textblock
38492 #: ../src/guestfs.pod:1917
38493 msgid ""
38494 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38495 "it for any purpose."
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:1920
38500 msgid ""
38501 "The return value is the event handle (an integer) which you can use to "
38502 "delete the callback (see below)."
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../src/guestfs.pod:1923
38507 msgid ""
38508 "If there is an error, this function returns C<-1>, and sets the error in the "
38509 "handle in the usual way (see L</guestfs_last_error> etc.)"
38510 msgstr ""
38511
38512 #. type: textblock
38513 #: ../src/guestfs.pod:1926
38514 msgid ""
38515 "Callbacks remain in effect until they are deleted, or until the handle is "
38516 "closed."
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../src/guestfs.pod:1929
38521 msgid ""
38522 "In the case where multiple callbacks are registered for a particular event "
38523 "class, all of the callbacks are called.  The order in which multiple "
38524 "callbacks are called is not defined."
38525 msgstr ""
38526
38527 #. type: =head3
38528 #: ../src/guestfs.pod:1933
38529 msgid "guestfs_delete_event_callback"
38530 msgstr ""
38531
38532 #. type: verbatim
38533 #: ../src/guestfs.pod:1935
38534 #, no-wrap
38535 msgid ""
38536 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38537 "\n"
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../src/guestfs.pod:1937
38542 msgid ""
38543 "Delete a callback that was previously registered.  C<event_handle> should be "
38544 "the integer that was returned by a previous call to "
38545 "C<guestfs_set_event_callback> on the same handle."
38546 msgstr ""
38547
38548 #. type: =head3
38549 #: ../src/guestfs.pod:1941
38550 msgid "guestfs_event_callback"
38551 msgstr ""
38552
38553 #. type: verbatim
38554 #: ../src/guestfs.pod:1943
38555 #, no-wrap
38556 msgid ""
38557 " typedef void (*guestfs_event_callback) (\n"
38558 "                  guestfs_h *g,\n"
38559 "                  void *opaque,\n"
38560 "                  uint64_t event,\n"
38561 "                  int event_handle,\n"
38562 "                  int flags,\n"
38563 "                  const char *buf, size_t buf_len,\n"
38564 "                  const uint64_t *array, size_t array_len);\n"
38565 "\n"
38566 msgstr ""
38567
38568 #. type: textblock
38569 #: ../src/guestfs.pod:1952
38570 msgid ""
38571 "This is the type of the event callback function that you have to provide."
38572 msgstr ""
38573
38574 #. type: textblock
38575 #: ../src/guestfs.pod:1955
38576 msgid ""
38577 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38578 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38579 "handle, and C<flags> which in the current API you should ignore."
38580 msgstr ""
38581
38582 #. type: textblock
38583 #: ../src/guestfs.pod:1959
38584 msgid ""
38585 "The remaining parameters contain the event payload (if any).  Each event may "
38586 "contain a payload, which usually relates to the event class, but for future "
38587 "proofing your code should be written to handle any payload for any event "
38588 "class."
38589 msgstr ""
38590
38591 #. type: textblock
38592 #: ../src/guestfs.pod:1964
38593 msgid ""
38594 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38595 "there is no message buffer).  Note that this message buffer can contain "
38596 "arbitrary 8 bit data, including NUL bytes."
38597 msgstr ""
38598
38599 #. type: textblock
38600 #: ../src/guestfs.pod:1968
38601 msgid ""
38602 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38603 "moment this is only used for progress messages."
38604 msgstr ""
38605
38606 #. type: =head3
38607 #: ../src/guestfs.pod:1971
38608 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38609 msgstr ""
38610
38611 #. type: textblock
38612 #: ../src/guestfs.pod:1973
38613 msgid ""
38614 "One motivation for the generic event API was to allow GUI programs to "
38615 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38616 "unconditionally to C<stderr>."
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:1977
38621 msgid ""
38622 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38623 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38624 "messages are not events; you must capture error messages separately)."
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:1982
38629 msgid ""
38630 "Programs have to set up a callback to capture the classes of events of "
38631 "interest:"
38632 msgstr ""
38633
38634 #. type: verbatim
38635 #: ../src/guestfs.pod:1985
38636 #, no-wrap
38637 msgid ""
38638 " int eh =\n"
38639 "   guestfs_set_event_callback\n"
38640 "     (g, message_callback,\n"
38641 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38642 "      GUESTFS_EVENT_TRACE,\n"
38643 "      0, NULL) == -1)\n"
38644 " if (eh == -1) {\n"
38645 "   // handle error in the usual way\n"
38646 " }\n"
38647 "\n"
38648 msgstr ""
38649
38650 #. type: textblock
38651 #: ../src/guestfs.pod:1995
38652 msgid ""
38653 "The callback can then direct messages to the appropriate place.  In this "
38654 "example, messages are directed to syslog:"
38655 msgstr ""
38656
38657 #. type: verbatim
38658 #: ../src/guestfs.pod:1998
38659 #, no-wrap
38660 msgid ""
38661 " static void\n"
38662 " message_callback (\n"
38663 "         guestfs_h *g,\n"
38664 "         void *opaque,\n"
38665 "         uint64_t event,\n"
38666 "         int event_handle,\n"
38667 "         int flags,\n"
38668 "         const char *buf, size_t buf_len,\n"
38669 "         const uint64_t *array, size_t array_len)\n"
38670 " {\n"
38671 "   const int priority = LOG_USER|LOG_INFO;\n"
38672 "   if (buf_len > 0)\n"
38673 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38674 " }\n"
38675 "\n"
38676 msgstr ""
38677
38678 #. type: =head1
38679 #: ../src/guestfs.pod:2013
38680 msgid "CANCELLING LONG TRANSFERS"
38681 msgstr ""
38682
38683 #. type: textblock
38684 #: ../src/guestfs.pod:2015
38685 msgid ""
38686 "Some operations can be cancelled by the caller while they are in progress.  "
38687 "Currently only operations that involve uploading or downloading data can be "
38688 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38689 "parameters in the generator)."
38690 msgstr ""
38691
38692 #. type: =head2
38693 #: ../src/guestfs.pod:2020
38694 msgid "guestfs_user_cancel"
38695 msgstr ""
38696
38697 #. type: verbatim
38698 #: ../src/guestfs.pod:2022
38699 #, no-wrap
38700 msgid ""
38701 " void guestfs_user_cancel (guestfs_h *g);\n"
38702 "\n"
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:2024
38707 msgid ""
38708 "C<guestfs_user_cancel> cancels the current upload or download operation."
38709 msgstr ""
38710
38711 #. type: textblock
38712 #: ../src/guestfs.pod:2027
38713 msgid ""
38714 "Unlike most other libguestfs calls, this function is signal safe and thread "
38715 "safe.  You can call it from a signal handler or from another thread, without "
38716 "needing to do any locking."
38717 msgstr ""
38718
38719 #. type: textblock
38720 #: ../src/guestfs.pod:2031
38721 msgid ""
38722 "The transfer that was in progress (if there is one) will stop shortly "
38723 "afterwards, and will return an error.  The errno (see L</"
38724 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38725 "out if the operation was cancelled or failed because of another error."
38726 msgstr ""
38727
38728 #. type: textblock
38729 #: ../src/guestfs.pod:2037
38730 msgid ""
38731 "No cleanup is performed: for example, if a file was being uploaded then "
38732 "after cancellation there may be a partially uploaded file.  It is the "
38733 "caller's responsibility to clean up if necessary."
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:2041
38738 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38739 msgstr ""
38740
38741 #. type: textblock
38742 #: ../src/guestfs.pod:2043
38743 msgid ""
38744 "In an interactive text-based program, you might call it from a C<SIGINT> "
38745 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38746 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38747 "receive the C<^C> signal)."
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2048
38752 msgid ""
38753 "In a graphical program, when the main thread is displaying a progress bar "
38754 "with a cancel button, wire up the cancel button to call this function."
38755 msgstr ""
38756
38757 #. type: =head1
38758 #: ../src/guestfs.pod:2052
38759 msgid "PRIVATE DATA AREA"
38760 msgstr ""
38761
38762 #. type: textblock
38763 #: ../src/guestfs.pod:2054
38764 msgid ""
38765 "You can attach named pieces of private data to the libguestfs handle, fetch "
38766 "them by name, and walk over them, for the lifetime of the handle.  This is "
38767 "called the private data area and is only available from the C API."
38768 msgstr ""
38769
38770 #. type: textblock
38771 #: ../src/guestfs.pod:2059
38772 msgid "To attach a named piece of data, use the following call:"
38773 msgstr ""
38774
38775 #. type: verbatim
38776 #: ../src/guestfs.pod:2061
38777 #, no-wrap
38778 msgid ""
38779 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38780 "\n"
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../src/guestfs.pod:2063
38785 msgid ""
38786 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38787 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38788 "overwritten."
38789 msgstr ""
38790
38791 #. type: textblock
38792 #: ../src/guestfs.pod:2067
38793 msgid ""
38794 "You can use any C<key> you want, but your key should I<not> start with an "
38795 "underscore character.  Keys beginning with an underscore character are "
38796 "reserved for internal libguestfs purposes (eg. for implementing language "
38797 "bindings).  It is recommended that you prefix the key with some unique "
38798 "string to avoid collisions with other users."
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../src/guestfs.pod:2073
38803 msgid "To retrieve the pointer, use:"
38804 msgstr ""
38805
38806 #. type: verbatim
38807 #: ../src/guestfs.pod:2075
38808 #, no-wrap
38809 msgid ""
38810 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38811 "\n"
38812 msgstr ""
38813
38814 #. type: textblock
38815 #: ../src/guestfs.pod:2077
38816 msgid ""
38817 "This function returns C<NULL> if either no data is found associated with "
38818 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38819 "C<NULL>."
38820 msgstr ""
38821
38822 #. type: textblock
38823 #: ../src/guestfs.pod:2081
38824 msgid ""
38825 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38826 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38827 "all.  In particular, libguestfs does I<not> try to free the data when the "
38828 "handle is closed.  If the data must be freed, then the caller must either "
38829 "free it before calling L</guestfs_close> or must set up a close callback to "
38830 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38831 msgstr ""
38832
38833 #. type: textblock
38834 #: ../src/guestfs.pod:2088
38835 msgid "To walk over all entries, use these two functions:"
38836 msgstr ""
38837
38838 #. type: verbatim
38839 #: ../src/guestfs.pod:2090
38840 #, no-wrap
38841 msgid ""
38842 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38843 "\n"
38844 msgstr ""
38845
38846 #. type: verbatim
38847 #: ../src/guestfs.pod:2092
38848 #, no-wrap
38849 msgid ""
38850 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38851 "\n"
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../src/guestfs.pod:2094
38856 msgid ""
38857 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38858 "not have any particular meaning -- keys are not returned in any defined "
38859 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38860 "corresponding data pointer is returned from the function.  C<NULL> is "
38861 "returned if there are no keys stored in the handle."
38862 msgstr ""
38863
38864 #. type: textblock
38865 #: ../src/guestfs.pod:2100
38866 msgid ""
38867 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38868 "value of this function is also C<NULL> is there are no further entries to "
38869 "return."
38870 msgstr ""
38871
38872 #. type: textblock
38873 #: ../src/guestfs.pod:2104
38874 msgid "Notes about walking over entries:"
38875 msgstr ""
38876
38877 #. type: textblock
38878 #: ../src/guestfs.pod:2110
38879 msgid ""
38880 "You must not call C<guestfs_set_private> while walking over the entries."
38881 msgstr ""
38882
38883 #. type: textblock
38884 #: ../src/guestfs.pod:2115
38885 msgid ""
38886 "The handle maintains an internal iterator which is reset when you call "
38887 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38888 "call C<guestfs_set_private>."
38889 msgstr ""
38890
38891 #. type: textblock
38892 #: ../src/guestfs.pod:2121
38893 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38894 msgstr ""
38895
38896 #. type: verbatim
38897 #: ../src/guestfs.pod:2123
38898 #, no-wrap
38899 msgid ""
38900 " guestfs_set_private (g, key, NULL);\n"
38901 "\n"
38902 msgstr ""
38903
38904 #. type: textblock
38905 #: ../src/guestfs.pod:2125
38906 msgid "then that C<key> is not returned when walking."
38907 msgstr ""
38908
38909 #. type: textblock
38910 #: ../src/guestfs.pod:2129
38911 msgid ""
38912 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38913 "C<guestfs_next_private> or C<guestfs_set_private>."
38914 msgstr ""
38915
38916 #. type: textblock
38917 #: ../src/guestfs.pod:2135
38918 msgid ""
38919 "The following example code shows how to print all keys and data pointers "
38920 "that are associated with the handle C<g>:"
38921 msgstr ""
38922
38923 #. type: verbatim
38924 #: ../src/guestfs.pod:2138
38925 #, no-wrap
38926 msgid ""
38927 " const char *key;\n"
38928 " void *data = guestfs_first_private (g, &key);\n"
38929 " while (data != NULL)\n"
38930 "   {\n"
38931 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38932 "     data = guestfs_next_private (g, &key);\n"
38933 "   }\n"
38934 "\n"
38935 msgstr ""
38936
38937 #. type: textblock
38938 #: ../src/guestfs.pod:2146
38939 msgid ""
38940 "More commonly you are only interested in keys that begin with an application-"
38941 "specific prefix C<foo_>.  Modify the loop like so:"
38942 msgstr ""
38943
38944 #. type: verbatim
38945 #: ../src/guestfs.pod:2149
38946 #, no-wrap
38947 msgid ""
38948 " const char *key;\n"
38949 " void *data = guestfs_first_private (g, &key);\n"
38950 " while (data != NULL)\n"
38951 "   {\n"
38952 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38953 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38954 "     data = guestfs_next_private (g, &key);\n"
38955 "   }\n"
38956 "\n"
38957 msgstr ""
38958
38959 #. type: textblock
38960 #: ../src/guestfs.pod:2158
38961 msgid ""
38962 "If you need to modify keys while walking, then you have to jump back to the "
38963 "beginning of the loop.  For example, to delete all keys prefixed with "
38964 "C<foo_>:"
38965 msgstr ""
38966
38967 #. type: verbatim
38968 #: ../src/guestfs.pod:2162
38969 #, no-wrap
38970 msgid ""
38971 "  const char *key;\n"
38972 "  void *data;\n"
38973 " again:\n"
38974 "  data = guestfs_first_private (g, &key);\n"
38975 "  while (data != NULL)\n"
38976 "    {\n"
38977 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38978 "        {\n"
38979 "          guestfs_set_private (g, key, NULL);\n"
38980 "          /* note that 'key' pointer is now invalid, and so is\n"
38981 "             the internal iterator */\n"
38982 "          goto again;\n"
38983 "        }\n"
38984 "      data = guestfs_next_private (g, &key);\n"
38985 "    }\n"
38986 "\n"
38987 msgstr ""
38988
38989 #. type: textblock
38990 #: ../src/guestfs.pod:2178
38991 msgid ""
38992 "Note that the above loop is guaranteed to terminate because the keys are "
38993 "being deleted, but other manipulations of keys within the loop might not "
38994 "terminate unless you also maintain an indication of which keys have been "
38995 "visited."
38996 msgstr ""
38997
38998 #. type: =head1
38999 #: ../src/guestfs.pod:2183
39000 msgid "SYSTEMTAP"
39001 msgstr ""
39002
39003 #. type: textblock
39004 #: ../src/guestfs.pod:2185
39005 msgid ""
39006 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39007 "true of any library, not just libguestfs.  However libguestfs also contains "
39008 "static markers to help in probing internal operations."
39009 msgstr ""
39010
39011 #. type: textblock
39012 #: ../src/guestfs.pod:2189
39013 msgid "You can list all the static markers by doing:"
39014 msgstr ""
39015
39016 #. type: verbatim
39017 #: ../src/guestfs.pod:2191
39018 #, no-wrap
39019 msgid ""
39020 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39021 "              .provider(\"guestfs\").mark(\"*\")'\n"
39022 "\n"
39023 msgstr ""
39024
39025 #. type: textblock
39026 #: ../src/guestfs.pod:2194
39027 msgid ""
39028 "B<Note:> These static markers are I<not> part of the stable API and may "
39029 "change in future versions."
39030 msgstr ""
39031
39032 #. type: =head2
39033 #: ../src/guestfs.pod:2197
39034 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:2199
39039 msgid ""
39040 "This script contains examples of displaying both the static markers and some "
39041 "ordinary C entry points:"
39042 msgstr ""
39043
39044 #. type: verbatim
39045 #: ../src/guestfs.pod:2202
39046 #, no-wrap
39047 msgid ""
39048 " global last;\n"
39049 " \n"
39050 msgstr ""
39051
39052 #. type: verbatim
39053 #: ../src/guestfs.pod:2204
39054 #, no-wrap
39055 msgid ""
39056 " function display_time () {\n"
39057 "       now = gettimeofday_us ();\n"
39058 "       delta = 0;\n"
39059 "       if (last > 0)\n"
39060 "             delta = now - last;\n"
39061 "       last = now;\n"
39062 " \n"
39063 msgstr ""
39064
39065 #. type: verbatim
39066 #: ../src/guestfs.pod:2211
39067 #, no-wrap
39068 msgid ""
39069 "       printf (\"%d (+%d):\", now, delta);\n"
39070 " }\n"
39071 " \n"
39072 msgstr ""
39073
39074 #. type: verbatim
39075 #: ../src/guestfs.pod:2214
39076 #, no-wrap
39077 msgid ""
39078 " probe begin {\n"
39079 "       last = 0;\n"
39080 "       printf (\"ready\\n\");\n"
39081 " }\n"
39082 " \n"
39083 msgstr ""
39084
39085 #. type: verbatim
39086 #: ../src/guestfs.pod:2219
39087 #, no-wrap
39088 msgid ""
39089 " /* Display all calls to static markers. */\n"
39090 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39091 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39092 "       display_time();\n"
39093 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39094 " }\n"
39095 " \n"
39096 msgstr ""
39097
39098 #. type: verbatim
39099 #: ../src/guestfs.pod:2226
39100 #, no-wrap
39101 msgid ""
39102 " /* Display all calls to guestfs_mkfs* functions. */\n"
39103 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39104 "           .function(\"guestfs_mkfs*\") ? {\n"
39105 "       display_time();\n"
39106 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39107 " }\n"
39108 "\n"
39109 msgstr ""
39110
39111 #. type: textblock
39112 #: ../src/guestfs.pod:2233
39113 msgid ""
39114 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39115 "program.  Note that you either have to be root, or you have to add yourself "
39116 "to several special stap groups.  Consult the systemtap documentation for "
39117 "more information."
39118 msgstr ""
39119
39120 #. type: verbatim
39121 #: ../src/guestfs.pod:2238
39122 #, no-wrap
39123 msgid ""
39124 " # stap /tmp/test.stap\n"
39125 " ready\n"
39126 "\n"
39127 msgstr ""
39128
39129 #. type: textblock
39130 #: ../src/guestfs.pod:2241
39131 msgid "In another terminal, run a guestfish command such as this:"
39132 msgstr ""
39133
39134 #. type: textblock
39135 #: ../src/guestfs.pod:2245
39136 msgid "In the first terminal, stap trace output similar to this is shown:"
39137 msgstr ""
39138
39139 #. type: verbatim
39140 #: ../src/guestfs.pod:2247
39141 #, no-wrap
39142 msgid ""
39143 " 1318248056692655 (+0):\tlaunch_start\n"
39144 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39145 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39146 " 1318248056838059 (+19774):     launch_run_qemu\n"
39147 " 1318248061071167 (+4233108):   launch_end\n"
39148 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39149 "\n"
39150 msgstr ""
39151
39152 #. type: =end
39153 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39154 msgid "html"
39155 msgstr ""
39156
39157 #. type: textblock
39158 #: ../src/guestfs.pod:2256
39159 msgid ""
39160 "<!-- old anchor for the next section --> <a name="
39161 "\"state_machine_and_low_level_event_api\"/>"
39162 msgstr ""
39163
39164 #. type: =head1
39165 #: ../src/guestfs.pod:2261
39166 msgid "ARCHITECTURE"
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:2263
39171 msgid ""
39172 "Internally, libguestfs is implemented by running an appliance (a special "
39173 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39174 "process of the main program."
39175 msgstr ""
39176
39177 #. type: verbatim
39178 #: ../src/guestfs.pod:2267
39179 #, no-wrap
39180 msgid ""
39181 "  ___________________\n"
39182 " /                   \\\n"
39183 " | main program      |\n"
39184 " |                   |\n"
39185 " |                   |           child process / appliance\n"
39186 " |                   |           __________________________\n"
39187 " |                   |          / qemu                     \\\n"
39188 " +-------------------+   RPC    |      +-----------------+ |\n"
39189 " | libguestfs     <--------------------> guestfsd        | |\n"
39190 " |                   |          |      +-----------------+ |\n"
39191 " \\___________________/          |      | Linux kernel    | |\n"
39192 "                                |      +--^--------------+ |\n"
39193 "                                \\_________|________________/\n"
39194 "                                          |\n"
39195 "                                   _______v______\n"
39196 "                                  /              \\\n"
39197 "                                  | Device or    |\n"
39198 "                                  | disk image   |\n"
39199 "                                  \\______________/\n"
39200 "\n"
39201 msgstr ""
39202
39203 #. type: textblock
39204 #: ../src/guestfs.pod:2287
39205 msgid ""
39206 "The library, linked to the main program, creates the child process and hence "
39207 "the appliance in the L</guestfs_launch> function."
39208 msgstr ""
39209
39210 #. type: textblock
39211 #: ../src/guestfs.pod:2290
39212 msgid ""
39213 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39214 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39215 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39216 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39217 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39218 "attached to the qemu process which translates device access by the "
39219 "appliance's Linux kernel into accesses to the image."
39220 msgstr ""
39221
39222 #. type: textblock
39223 #: ../src/guestfs.pod:2299
39224 msgid ""
39225 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39226 "Although the disk image you are attached to might also be used by some "
39227 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39228 "care if both libguestfs's qemu process and your virtual machine are trying "
39229 "to update the disk image at the same time, since these usually results in "
39230 "massive disk corruption)."
39231 msgstr ""
39232
39233 #. type: =head1
39234 #: ../src/guestfs.pod:2306
39235 msgid "STATE MACHINE"
39236 msgstr ""
39237
39238 #. type: textblock
39239 #: ../src/guestfs.pod:2308
39240 msgid "libguestfs uses a state machine to model the child process:"
39241 msgstr ""
39242
39243 #. type: verbatim
39244 #: ../src/guestfs.pod:2310
39245 #, no-wrap
39246 msgid ""
39247 "                         |\n"
39248 "                    guestfs_create\n"
39249 "                         |\n"
39250 "                         |\n"
39251 "                     ____V_____\n"
39252 "                    /          \\\n"
39253 "                    |  CONFIG  |\n"
39254 "                    \\__________/\n"
39255 "                     ^ ^   ^  \\\n"
39256 "                    /  |    \\  \\ guestfs_launch\n"
39257 "                   /   |    _\\__V______\n"
39258 "                  /    |   /           \\\n"
39259 "                 /     |   | LAUNCHING |\n"
39260 "                /      |   \\___________/\n"
39261 "               /       |       /\n"
39262 "              /        |  guestfs_launch\n"
39263 "             /         |     /\n"
39264 "    ______  /        __|____V\n"
39265 "   /      \\ ------> /        \\\n"
39266 "   | BUSY |         | READY  |\n"
39267 "   \\______/ <------ \\________/\n"
39268 "\n"
39269 msgstr ""
39270
39271 #. type: textblock
39272 #: ../src/guestfs.pod:2332
39273 msgid ""
39274 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39275 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39276 "(3) alternating between READY and BUSY as commands are issued to, and "
39277 "carried out by, the child process."
39278 msgstr ""
39279
39280 #. type: textblock
39281 #: ../src/guestfs.pod:2337
39282 msgid ""
39283 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39284 "asynchronously at any time (eg. due to some internal error), and that causes "
39285 "the state to transition back to CONFIG."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:2341
39290 msgid ""
39291 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39292 "issued when in the CONFIG state."
39293 msgstr ""
39294
39295 #. type: textblock
39296 #: ../src/guestfs.pod:2344
39297 msgid ""
39298 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39299 "L</guestfs_launch> blocks until the child process is READY to accept "
39300 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39301 "moves the state from CONFIG to LAUNCHING while it is running."
39302 msgstr ""
39303
39304 #. type: textblock
39305 #: ../src/guestfs.pod:2350
39306 msgid ""
39307 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39308 "state.  These API calls block waiting for the command to be carried out (ie. "
39309 "the state to transition to BUSY and then back to READY).  There are no non-"
39310 "blocking versions, and no way to issue more than one command per handle at "
39311 "the same time."
39312 msgstr ""
39313
39314 #. type: textblock
39315 #: ../src/guestfs.pod:2356
39316 msgid ""
39317 "Finally, the child process sends asynchronous messages back to the main "
39318 "program, such as kernel log messages.  You can register a callback to "
39319 "receive these messages."
39320 msgstr ""
39321
39322 #. type: =head1
39323 #: ../src/guestfs.pod:2360
39324 msgid "INTERNALS"
39325 msgstr ""
39326
39327 #. type: =head2
39328 #: ../src/guestfs.pod:2362
39329 msgid "APPLIANCE BOOT PROCESS"
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../src/guestfs.pod:2364
39334 msgid ""
39335 "This process has evolved and continues to evolve.  The description here "
39336 "corresponds only to the current version of libguestfs and is provided for "
39337 "information only."
39338 msgstr ""
39339
39340 #. type: textblock
39341 #: ../src/guestfs.pod:2368
39342 msgid ""
39343 "In order to follow the stages involved below, enable libguestfs debugging "
39344 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39345 msgstr ""
39346
39347 #. type: =item
39348 #: ../src/guestfs.pod:2373
39349 msgid "Create the appliance"
39350 msgstr ""
39351
39352 #. type: textblock
39353 #: ../src/guestfs.pod:2375
39354 msgid ""
39355 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39356 "initrd and the appliance."
39357 msgstr ""
39358
39359 #. type: textblock
39360 #: ../src/guestfs.pod:2378
39361 msgid ""
39362 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39363 "directory if C<TMPDIR> is set)."
39364 msgstr ""
39365
39366 #. type: textblock
39367 #: ../src/guestfs.pod:2381
39368 msgid ""
39369 "For a complete description of how the appliance is created and cached, read "
39370 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39371 msgstr ""
39372
39373 #. type: =item
39374 #: ../src/guestfs.pod:2385
39375 msgid "Start qemu and boot the kernel"
39376 msgstr ""
39377
39378 #. type: textblock
39379 #: ../src/guestfs.pod:2387
39380 msgid "qemu is invoked to boot the kernel."
39381 msgstr ""
39382
39383 #. type: =item
39384 #: ../src/guestfs.pod:2389
39385 msgid "Run the initrd"
39386 msgstr ""
39387
39388 #. type: textblock
39389 #: ../src/guestfs.pod:2391
39390 msgid ""
39391 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39392 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39393 "order that the appliance itself can be mounted and started."
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:2395
39398 msgid ""
39399 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39400 "initrd>."
39401 msgstr ""
39402
39403 #. type: textblock
39404 #: ../src/guestfs.pod:2398
39405 msgid ""
39406 "When the initrd has started you will see messages showing that kernel "
39407 "modules are being loaded, similar to this:"
39408 msgstr ""
39409
39410 #. type: verbatim
39411 #: ../src/guestfs.pod:2401
39412 #, no-wrap
39413 msgid ""
39414 " febootstrap: ext2 mini initrd starting up\n"
39415 " febootstrap: mounting /sys\n"
39416 " febootstrap: internal insmod libcrc32c.ko\n"
39417 " febootstrap: internal insmod crc32c-intel.ko\n"
39418 "\n"
39419 msgstr ""
39420
39421 #. type: =item
39422 #: ../src/guestfs.pod:2406
39423 msgid "Find and mount the appliance device"
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../src/guestfs.pod:2408
39428 msgid ""
39429 "The appliance is a sparse file containing an ext2 filesystem which contains "
39430 "a familiar (although reduced in size) Linux operating system.  It would "
39431 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:2412
39436 msgid ""
39437 "The regular disks being inspected by libguestfs are the first devices "
39438 "exposed by qemu (eg. as C</dev/vda>)."
39439 msgstr ""
39440
39441 #. type: textblock
39442 #: ../src/guestfs.pod:2415
39443 msgid ""
39444 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39445 "there was only one regular disk)."
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../src/guestfs.pod:2418
39450 msgid ""
39451 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39452 "and switch root into the appliance, and run C</init> from the appliance."
39453 msgstr ""
39454
39455 #. type: textblock
39456 #: ../src/guestfs.pod:2422
39457 msgid "If this works successfully you will see messages such as:"
39458 msgstr ""
39459
39460 #. type: verbatim
39461 #: ../src/guestfs.pod:2424
39462 #, no-wrap
39463 msgid ""
39464 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39465 " febootstrap: creating /dev/root as block special 252:16\n"
39466 " febootstrap: mounting new root on /root\n"
39467 " febootstrap: chroot\n"
39468 " Starting /init script ...\n"
39469 "\n"
39470 msgstr ""
39471
39472 #. type: textblock
39473 #: ../src/guestfs.pod:2430
39474 msgid ""
39475 "Note that C<Starting /init script ...> indicates that the appliance's init "
39476 "script is now running."
39477 msgstr ""
39478
39479 #. type: =item
39480 #: ../src/guestfs.pod:2433
39481 msgid "Initialize the appliance"
39482 msgstr ""
39483
39484 #. type: textblock
39485 #: ../src/guestfs.pod:2435
39486 msgid ""
39487 "The appliance itself now initializes itself.  This involves starting certain "
39488 "processes like C<udev>, possibly printing some debug information, and "
39489 "finally running the daemon (C<guestfsd>)."
39490 msgstr ""
39491
39492 #. type: =item
39493 #: ../src/guestfs.pod:2439
39494 msgid "The daemon"
39495 msgstr ""
39496
39497 #. type: textblock
39498 #: ../src/guestfs.pod:2441
39499 msgid ""
39500 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39501 "should see:"
39502 msgstr ""
39503
39504 #. type: verbatim
39505 #: ../src/guestfs.pod:2444
39506 #, no-wrap
39507 msgid ""
39508 " verbose daemon enabled\n"
39509 "\n"
39510 msgstr ""
39511
39512 #. type: textblock
39513 #: ../src/guestfs.pod:2446
39514 msgid ""
39515 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39516 "connected on the other end to the library."
39517 msgstr ""
39518
39519 #. type: textblock
39520 #: ../src/guestfs.pod:2449
39521 msgid ""
39522 "The daemon connects to this port (and hence to the library) and sends a four "
39523 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39524 "protocol (see below)."
39525 msgstr ""
39526
39527 #. type: =head2
39528 #: ../src/guestfs.pod:2455
39529 msgid "COMMUNICATION PROTOCOL"
39530 msgstr ""
39531
39532 #. type: textblock
39533 #: ../src/guestfs.pod:2457
39534 msgid ""
39535 "Don't rely on using this protocol directly.  This section documents how it "
39536 "currently works, but it may change at any time."
39537 msgstr ""
39538
39539 #. type: textblock
39540 #: ../src/guestfs.pod:2460
39541 msgid ""
39542 "The protocol used to talk between the library and the daemon running inside "
39543 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39544 "1014, RFC 1832, RFC 4506)."
39545 msgstr ""
39546
39547 #. type: textblock
39548 #: ../src/guestfs.pod:2464
39549 msgid ""
39550 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39551 "this file is automatically generated)."
39552 msgstr ""
39553
39554 #. type: textblock
39555 #: ../src/guestfs.pod:2467
39556 msgid ""
39557 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39558 "and C<FileOut> parameters, which are handled with very simple request/reply "
39559 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39560 "parameters, which use the same request and reply messages, but they may also "
39561 "be followed by files sent using a chunked encoding."
39562 msgstr ""
39563
39564 #. type: =head3
39565 #: ../src/guestfs.pod:2474
39566 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39567 msgstr ""
39568
39569 #. type: textblock
39570 #: ../src/guestfs.pod:2476
39571 msgid "For ordinary functions, the request message is:"
39572 msgstr ""
39573
39574 #. type: verbatim
39575 #: ../src/guestfs.pod:2478
39576 #, no-wrap
39577 msgid ""
39578 " total length (header + arguments,\n"
39579 "      but not including the length word itself)\n"
39580 " struct guestfs_message_header (encoded as XDR)\n"
39581 " struct guestfs_<foo>_args (encoded as XDR)\n"
39582 "\n"
39583 msgstr ""
39584
39585 #. type: textblock
39586 #: ../src/guestfs.pod:2483
39587 msgid ""
39588 "The total length field allows the daemon to allocate a fixed size buffer "
39589 "into which it slurps the rest of the message.  As a result, the total length "
39590 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39591 "effective size of any request is limited to somewhere under this size."
39592 msgstr ""
39593
39594 #. type: textblock
39595 #: ../src/guestfs.pod:2489
39596 msgid ""
39597 "Note also that many functions don't take any arguments, in which case the "
39598 "C<guestfs_I<foo>_args> is completely omitted."
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../src/guestfs.pod:2492
39603 msgid ""
39604 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39605 "receiver knows what type of args structure to expect, or none at all."
39606 msgstr ""
39607
39608 #. type: textblock
39609 #: ../src/guestfs.pod:2496
39610 msgid ""
39611 "For functions that take optional arguments, the optional arguments are "
39612 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39613 "arguments.  A bitmask in the header indicates which optional arguments are "
39614 "meaningful.  The bitmask is also checked to see if it contains bits set "
39615 "which the daemon does not know about (eg. if more optional arguments were "
39616 "added in a later version of the library), and this causes the call to be "
39617 "rejected."
39618 msgstr ""
39619
39620 #. type: textblock
39621 #: ../src/guestfs.pod:2504
39622 msgid "The reply message for ordinary functions is:"
39623 msgstr ""
39624
39625 #. type: verbatim
39626 #: ../src/guestfs.pod:2506
39627 #, no-wrap
39628 msgid ""
39629 " total length (header + ret,\n"
39630 "      but not including the length word itself)\n"
39631 " struct guestfs_message_header (encoded as XDR)\n"
39632 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39633 "\n"
39634 msgstr ""
39635
39636 #. type: textblock
39637 #: ../src/guestfs.pod:2511
39638 msgid ""
39639 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39640 "functions that return no formal return values."
39641 msgstr ""
39642
39643 #. type: textblock
39644 #: ../src/guestfs.pod:2514
39645 msgid ""
39646 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39647 msgstr ""
39648
39649 #. type: textblock
39650 #: ../src/guestfs.pod:2517
39651 msgid ""
39652 "In the case of an error, a flag is set in the header, and the reply message "
39653 "is slightly changed:"
39654 msgstr ""
39655
39656 #. type: verbatim
39657 #: ../src/guestfs.pod:2520
39658 #, no-wrap
39659 msgid ""
39660 " total length (header + error,\n"
39661 "      but not including the length word itself)\n"
39662 " struct guestfs_message_header (encoded as XDR)\n"
39663 " struct guestfs_message_error (encoded as XDR)\n"
39664 "\n"
39665 msgstr ""
39666
39667 #. type: textblock
39668 #: ../src/guestfs.pod:2525
39669 msgid ""
39670 "The C<guestfs_message_error> structure contains the error message as a "
39671 "string."
39672 msgstr ""
39673
39674 #. type: =head3
39675 #: ../src/guestfs.pod:2528
39676 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39677 msgstr ""
39678
39679 #. type: textblock
39680 #: ../src/guestfs.pod:2530
39681 msgid ""
39682 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39683 "The normal request message is sent (see above).  However this is followed by "
39684 "a sequence of file chunks."
39685 msgstr ""
39686
39687 #. type: verbatim
39688 #: ../src/guestfs.pod:2534
39689 #, no-wrap
39690 msgid ""
39691 " total length (header + arguments,\n"
39692 "      but not including the length word itself,\n"
39693 "      and not including the chunks)\n"
39694 " struct guestfs_message_header (encoded as XDR)\n"
39695 " struct guestfs_<foo>_args (encoded as XDR)\n"
39696 " sequence of chunks for FileIn param #0\n"
39697 " sequence of chunks for FileIn param #1 etc.\n"
39698 "\n"
39699 msgstr ""
39700
39701 #. type: textblock
39702 #: ../src/guestfs.pod:2542
39703 msgid "The \"sequence of chunks\" is:"
39704 msgstr ""
39705
39706 #. type: verbatim
39707 #: ../src/guestfs.pod:2544
39708 #, no-wrap
39709 msgid ""
39710 " length of chunk (not including length word itself)\n"
39711 " struct guestfs_chunk (encoded as XDR)\n"
39712 " length of chunk\n"
39713 " struct guestfs_chunk (encoded as XDR)\n"
39714 "   ...\n"
39715 " length of chunk\n"
39716 " struct guestfs_chunk (with data.data_len == 0)\n"
39717 "\n"
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../src/guestfs.pod:2552
39722 msgid ""
39723 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39724 "is set in the final chunk to indicate either successful completion or early "
39725 "cancellation."
39726 msgstr ""
39727
39728 #. type: textblock
39729 #: ../src/guestfs.pod:2556
39730 msgid ""
39731 "At time of writing there are no functions that have more than one FileIn "
39732 "parameter.  However this is (theoretically) supported, by sending the "
39733 "sequence of chunks for each FileIn parameter one after another (from left to "
39734 "right)."
39735 msgstr ""
39736
39737 #. type: textblock
39738 #: ../src/guestfs.pod:2561
39739 msgid ""
39740 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39741 "transfer.  The library does this by sending a chunk with a special flag set "
39742 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39743 "RPC, does I<not> send any reply, and goes back to reading the next request."
39744 msgstr ""
39745
39746 #. type: textblock
39747 #: ../src/guestfs.pod:2567
39748 msgid ""
39749 "The daemon may also cancel.  It does this by writing a special word "
39750 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39751 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39752 "cancel chunk).  The special word is chosen so that even if cancellation "
39753 "happens right at the end of the transfer (after the library has finished "
39754 "writing and has started listening for the reply), the \"spurious\" cancel "
39755 "flag will not be confused with the reply message."
39756 msgstr ""
39757
39758 #. type: textblock
39759 #: ../src/guestfs.pod:2576
39760 msgid ""
39761 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39762 "limit), and also files where the size is not known in advance (eg. from "
39763 "pipes or sockets).  However the chunks are rather small "
39764 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39765 "to keep much in memory."
39766 msgstr ""
39767
39768 #. type: =head3
39769 #: ../src/guestfs.pod:2582
39770 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39771 msgstr ""
39772
39773 #. type: textblock
39774 #: ../src/guestfs.pod:2584
39775 msgid ""
39776 "The protocol for FileOut parameters is exactly the same as for FileIn "
39777 "parameters, but with the roles of daemon and library reversed."
39778 msgstr ""
39779
39780 #. type: verbatim
39781 #: ../src/guestfs.pod:2587
39782 #, no-wrap
39783 msgid ""
39784 " total length (header + ret,\n"
39785 "      but not including the length word itself,\n"
39786 "      and not including the chunks)\n"
39787 " struct guestfs_message_header (encoded as XDR)\n"
39788 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39789 " sequence of chunks for FileOut param #0\n"
39790 " sequence of chunks for FileOut param #1 etc.\n"
39791 "\n"
39792 msgstr ""
39793
39794 #. type: =head3
39795 #: ../src/guestfs.pod:2595
39796 msgid "INITIAL MESSAGE"
39797 msgstr ""
39798
39799 #. type: textblock
39800 #: ../src/guestfs.pod:2597
39801 msgid ""
39802 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39803 "which indicates that the guest and daemon is alive.  This is what L</"
39804 "guestfs_launch> waits for."
39805 msgstr ""
39806
39807 #. type: =head3
39808 #: ../src/guestfs.pod:2601
39809 msgid "PROGRESS NOTIFICATION MESSAGES"
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../src/guestfs.pod:2603
39814 msgid ""
39815 "The daemon may send progress notification messages at any time.  These are "
39816 "distinguished by the normal length word being replaced by "
39817 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39818 msgstr ""
39819
39820 #. type: textblock
39821 #: ../src/guestfs.pod:2607
39822 msgid ""
39823 "The library turns them into progress callbacks (see L</"
39824 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39825 "if not."
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../src/guestfs.pod:2611
39830 msgid ""
39831 "The daemon self-limits the frequency of progress messages it sends (see "
39832 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39833 "messages."
39834 msgstr ""
39835
39836 #. type: =head1
39837 #: ../src/guestfs.pod:2615
39838 msgid "LIBGUESTFS VERSION NUMBERS"
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../src/guestfs.pod:2617
39843 msgid ""
39844 "Since April 2010, libguestfs has started to make separate development and "
39845 "stable releases, along with corresponding branches in our git repository.  "
39846 "These separate releases can be identified by version number:"
39847 msgstr ""
39848
39849 #. type: verbatim
39850 #: ../src/guestfs.pod:2622
39851 #, no-wrap
39852 msgid ""
39853 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39854 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39855 "       |\n"
39856 "       v\n"
39857 " 1  .  3  .  5\n"
39858 " ^           ^\n"
39859 " |           |\n"
39860 " |           `-------- sub-version\n"
39861 " |\n"
39862 " `------ always '1' because we don't change the ABI\n"
39863 "\n"
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:2633
39868 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39869 msgstr ""
39870
39871 #. type: textblock
39872 #: ../src/guestfs.pod:2635
39873 msgid ""
39874 "As time passes we cherry pick fixes from the development branch and backport "
39875 "those into the stable branch, the effect being that the stable branch should "
39876 "get more stable and less buggy over time.  So the stable releases are ideal "
39877 "for people who don't need new features but would just like the software to "
39878 "work."
39879 msgstr ""
39880
39881 #. type: textblock
39882 #: ../src/guestfs.pod:2641
39883 msgid "Our criteria for backporting changes are:"
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../src/guestfs.pod:2647
39888 msgid ""
39889 "Documentation changes which don't affect any code are backported unless the "
39890 "documentation refers to a future feature which is not in stable."
39891 msgstr ""
39892
39893 #. type: textblock
39894 #: ../src/guestfs.pod:2653
39895 msgid ""
39896 "Bug fixes which are not controversial, fix obvious problems, and have been "
39897 "well tested are backported."
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2658
39902 msgid ""
39903 "Simple rearrangements of code which shouldn't affect how it works get "
39904 "backported.  This is so that the code in the two branches doesn't get too "
39905 "far out of step, allowing us to backport future fixes more easily."
39906 msgstr ""
39907
39908 #. type: textblock
39909 #: ../src/guestfs.pod:2664
39910 msgid ""
39911 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39912 "exceptional case: the new feature is required in order to implement an "
39913 "important bug fix."
39914 msgstr ""
39915
39916 #. type: textblock
39917 #: ../src/guestfs.pod:2670
39918 msgid ""
39919 "A new stable branch starts when we think the new features in development are "
39920 "substantial and compelling enough over the current stable branch to warrant "
39921 "it.  When that happens we create new stable and development versions 1.N.0 "
39922 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39923 "stable at this point, but by backporting fixes from development, that branch "
39924 "will stabilize over time."
39925 msgstr ""
39926
39927 #. type: =head1
39928 #: ../src/guestfs.pod:2678
39929 msgid "EXTENDING LIBGUESTFS"
39930 msgstr ""
39931
39932 #. type: =head2
39933 #: ../src/guestfs.pod:2680
39934 msgid "ADDING A NEW API ACTION"
39935 msgstr ""
39936
39937 #. type: textblock
39938 #: ../src/guestfs.pod:2682
39939 msgid ""
39940 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39941 "documentation) are generated, and this makes it easy to extend the "
39942 "libguestfs API."
39943 msgstr ""
39944
39945 #. type: textblock
39946 #: ../src/guestfs.pod:2686
39947 msgid "To add a new API action there are two changes:"
39948 msgstr ""
39949
39950 #. type: textblock
39951 #: ../src/guestfs.pod:2692
39952 msgid ""
39953 "You need to add a description of the call (name, parameters, return type, "
39954 "tests, documentation) to C<generator/generator_actions.ml>."
39955 msgstr ""
39956
39957 #. type: textblock
39958 #: ../src/guestfs.pod:2695
39959 msgid ""
39960 "There are two sorts of API action, depending on whether the call goes "
39961 "through to the daemon in the appliance, or is serviced entirely by the "
39962 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39963 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39964 "an example of the latter, since a trace flag is maintained in the handle and "
39965 "all tracing is done on the library side."
39966 msgstr ""
39967
39968 #. type: textblock
39969 #: ../src/guestfs.pod:2703
39970 msgid ""
39971 "Most new actions are of the first type, and get added to the "
39972 "C<daemon_functions> list.  Each function has a unique procedure number used "
39973 "in the RPC protocol which is assigned to that action when we publish "
39974 "libguestfs and cannot be reused.  Take the latest procedure number and "
39975 "increment it."
39976 msgstr ""
39977
39978 #. type: textblock
39979 #: ../src/guestfs.pod:2709
39980 msgid ""
39981 "For library-only actions of the second type, add to the "
39982 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39983 "library and do not travel over the RPC mechanism to the daemon, these "
39984 "functions do not need a procedure number, and so the procedure number is set "
39985 "to C<-1>."
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../src/guestfs.pod:2717
39990 msgid "Implement the action (in C):"
39991 msgstr ""
39992
39993 #. type: textblock
39994 #: ../src/guestfs.pod:2719
39995 msgid ""
39996 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39997 "C<daemon/> directory."
39998 msgstr ""
39999
40000 #. type: textblock
40001 #: ../src/guestfs.pod:2722
40002 msgid ""
40003 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40004 "(note: double underscore) in the C<src/> directory."
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../src/guestfs.pod:2725
40009 msgid "In either case, use another function as an example of what to do."
40010 msgstr ""
40011
40012 #. type: textblock
40013 #: ../src/guestfs.pod:2729
40014 msgid "After making these changes, use C<make> to compile."
40015 msgstr ""
40016
40017 #. type: textblock
40018 #: ../src/guestfs.pod:2731
40019 msgid ""
40020 "Note that you don't need to implement the RPC, language bindings, manual "
40021 "pages or anything else.  It's all automatically generated from the OCaml "
40022 "description."
40023 msgstr ""
40024
40025 #. type: =head2
40026 #: ../src/guestfs.pod:2735
40027 msgid "ADDING TESTS FOR AN API ACTION"
40028 msgstr ""
40029
40030 #. type: textblock
40031 #: ../src/guestfs.pod:2737
40032 msgid ""
40033 "You can supply zero or as many tests as you want per API call.  The tests "
40034 "can either be added as part of the API description (C<generator/"
40035 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40036 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40037 "slower, so if possible use the first method."
40038 msgstr ""
40039
40040 #. type: textblock
40041 #: ../src/guestfs.pod:2743
40042 msgid ""
40043 "The following describes the test environment used when you add an API test "
40044 "in C<generator_actions.ml>."
40045 msgstr ""
40046
40047 #. type: textblock
40048 #: ../src/guestfs.pod:2746
40049 msgid "The test environment has 4 block devices:"
40050 msgstr ""
40051
40052 #. type: =item
40053 #: ../src/guestfs.pod:2750
40054 msgid "C</dev/sda> 500MB"
40055 msgstr ""
40056
40057 #. type: textblock
40058 #: ../src/guestfs.pod:2752
40059 msgid "General block device for testing."
40060 msgstr ""
40061
40062 #. type: =item
40063 #: ../src/guestfs.pod:2754
40064 msgid "C</dev/sdb> 50MB"
40065 msgstr ""
40066
40067 #. type: textblock
40068 #: ../src/guestfs.pod:2756
40069 msgid ""
40070 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40071 "operations."
40072 msgstr ""
40073
40074 #. type: =item
40075 #: ../src/guestfs.pod:2759
40076 msgid "C</dev/sdc> 10MB"
40077 msgstr ""
40078
40079 #. type: textblock
40080 #: ../src/guestfs.pod:2761
40081 msgid "Used in a few tests where two block devices are needed."
40082 msgstr ""
40083
40084 #. type: =item
40085 #: ../src/guestfs.pod:2763
40086 msgid "C</dev/sdd>"
40087 msgstr ""
40088
40089 #. type: textblock
40090 #: ../src/guestfs.pod:2765
40091 msgid "ISO with fixed content (see C<images/test.iso>)."
40092 msgstr ""
40093
40094 #. type: textblock
40095 #: ../src/guestfs.pod:2769
40096 msgid ""
40097 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40098 "appliance and block devices are reused between tests.  So don't try testing "
40099 "L</guestfs_kill_subprocess> :-x"
40100 msgstr ""
40101
40102 #. type: textblock
40103 #: ../src/guestfs.pod:2773
40104 msgid ""
40105 "Each test starts with an initial scenario, selected using one of the "
40106 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40107 "initialize the disks mentioned above in a particular way as documented in "
40108 "C<generator_types.ml>.  You should not assume anything about the previous "
40109 "contents of other disks that are not initialized."
40110 msgstr ""
40111
40112 #. type: textblock
40113 #: ../src/guestfs.pod:2779
40114 msgid ""
40115 "You can add a prerequisite clause to any individual test.  This is a run-"
40116 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40117 "testing a command which might not work on all variations of libguestfs "
40118 "builds.  A test that has prerequisite of C<Always> means to run "
40119 "unconditionally."
40120 msgstr ""
40121
40122 #. type: textblock
40123 #: ../src/guestfs.pod:2785
40124 msgid ""
40125 "In addition, packagers can skip individual tests by setting environment "
40126 "variables before running C<make check>."
40127 msgstr ""
40128
40129 #. type: verbatim
40130 #: ../src/guestfs.pod:2788
40131 #, no-wrap
40132 msgid ""
40133 " SKIP_TEST_<CMD>_<NUM>=1\n"
40134 "\n"
40135 msgstr ""
40136
40137 #. type: textblock
40138 #: ../src/guestfs.pod:2790
40139 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40140 msgstr ""
40141
40142 #. type: textblock
40143 #: ../src/guestfs.pod:2792
40144 msgid "or:"
40145 msgstr ""
40146
40147 #. type: verbatim
40148 #: ../src/guestfs.pod:2794
40149 #, no-wrap
40150 msgid ""
40151 " SKIP_TEST_<CMD>=1\n"
40152 "\n"
40153 msgstr ""
40154
40155 #. type: textblock
40156 #: ../src/guestfs.pod:2796
40157 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40158 msgstr ""
40159
40160 #. type: textblock
40161 #: ../src/guestfs.pod:2798
40162 msgid "Packagers can run only certain tests by setting for example:"
40163 msgstr ""
40164
40165 #. type: verbatim
40166 #: ../src/guestfs.pod:2800
40167 #, no-wrap
40168 msgid ""
40169 " TEST_ONLY=\"vfs_type zerofree\"\n"
40170 "\n"
40171 msgstr ""
40172
40173 #. type: textblock
40174 #: ../src/guestfs.pod:2802
40175 msgid ""
40176 "See C<capitests/tests.c> for more details of how these environment variables "
40177 "work."
40178 msgstr ""
40179
40180 #. type: =head2
40181 #: ../src/guestfs.pod:2805
40182 msgid "DEBUGGING NEW API ACTIONS"
40183 msgstr ""
40184
40185 #. type: textblock
40186 #: ../src/guestfs.pod:2807
40187 msgid "Test new actions work before submitting them."
40188 msgstr ""
40189
40190 #. type: textblock
40191 #: ../src/guestfs.pod:2809
40192 msgid "You can use guestfish to try out new commands."
40193 msgstr ""
40194
40195 #. type: textblock
40196 #: ../src/guestfs.pod:2811
40197 msgid ""
40198 "Debugging the daemon is a problem because it runs inside a minimal "
40199 "environment.  However you can fprintf messages in the daemon to stderr, and "
40200 "they will show up if you use C<guestfish -v>."
40201 msgstr ""
40202
40203 #. type: =head2
40204 #: ../src/guestfs.pod:2815
40205 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40206 msgstr ""
40207
40208 #. type: textblock
40209 #: ../src/guestfs.pod:2817
40210 msgid ""
40211 "Our C source code generally adheres to some basic code-formatting "
40212 "conventions.  The existing code base is not totally consistent on this "
40213 "front, but we do prefer that contributed code be formatted similarly.  In "
40214 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40215 "indentation level, and other than that, follow the K&R style."
40216 msgstr ""
40217
40218 #. type: textblock
40219 #: ../src/guestfs.pod:2823
40220 msgid ""
40221 "If you use Emacs, add the following to one of one of your start-up files (e."
40222 "g., ~/.emacs), to help ensure that you get indentation right:"
40223 msgstr ""
40224
40225 #. type: verbatim
40226 #: ../src/guestfs.pod:2826
40227 #, no-wrap
40228 msgid ""
40229 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40230 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40231 " (add-hook 'find-file-hook\n"
40232 "     '(lambda () (if (and buffer-file-name\n"
40233 "                          (string-match \"/libguestfs\\\\>\"\n"
40234 "                              (buffer-file-name))\n"
40235 "                          (not (string-equal mode-name \"Change Log\"))\n"
40236 "                          (not (string-equal mode-name \"Makefile\")))\n"
40237 "                     (setq indent-tabs-mode nil))))\n"
40238 " \n"
40239 msgstr ""
40240
40241 #. type: verbatim
40242 #: ../src/guestfs.pod:2836
40243 #, no-wrap
40244 msgid ""
40245 " ;;; When editing C sources in libguestfs, use this style.\n"
40246 " (defun libguestfs-c-mode ()\n"
40247 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40248 "   (interactive)\n"
40249 "   (c-set-style \"K&R\")\n"
40250 "   (setq c-indent-level 2)\n"
40251 "   (setq c-basic-offset 2))\n"
40252 " (add-hook 'c-mode-hook\n"
40253 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40254 "                               (buffer-file-name))\n"
40255 "                           (libguestfs-c-mode))))\n"
40256 "\n"
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:2848
40261 msgid "Enable warnings when compiling (and fix any problems this finds):"
40262 msgstr ""
40263
40264 #. type: verbatim
40265 #: ../src/guestfs.pod:2851
40266 #, no-wrap
40267 msgid ""
40268 " ./configure --enable-gcc-warnings\n"
40269 "\n"
40270 msgstr ""
40271
40272 #. type: textblock
40273 #: ../src/guestfs.pod:2853
40274 msgid "Useful targets are:"
40275 msgstr ""
40276
40277 #. type: verbatim
40278 #: ../src/guestfs.pod:2855
40279 #, no-wrap
40280 msgid ""
40281 " make syntax-check  # checks the syntax of the C code\n"
40282 " make check         # runs the test suite\n"
40283 "\n"
40284 msgstr ""
40285
40286 #. type: =head2
40287 #: ../src/guestfs.pod:2858
40288 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../src/guestfs.pod:2860
40293 msgid ""
40294 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40295 "which are used to do shell quoting."
40296 msgstr ""
40297
40298 #. type: =item
40299 #: ../src/guestfs.pod:2865
40300 msgid "%Q"
40301 msgstr ""
40302
40303 #. type: textblock
40304 #: ../src/guestfs.pod:2867
40305 msgid ""
40306 "Simple shell quoted string.  Any spaces or other shell characters are "
40307 "escaped for you."
40308 msgstr ""
40309
40310 #. type: =item
40311 #: ../src/guestfs.pod:2870
40312 msgid "%R"
40313 msgstr ""
40314
40315 #. type: textblock
40316 #: ../src/guestfs.pod:2872
40317 msgid ""
40318 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40319 "the sysroot."
40320 msgstr ""
40321
40322 #. type: verbatim
40323 #: ../src/guestfs.pod:2879
40324 #, no-wrap
40325 msgid ""
40326 " asprintf (&cmd, \"cat %R\", path);\n"
40327 "\n"
40328 msgstr ""
40329
40330 #. type: textblock
40331 #: ../src/guestfs.pod:2881
40332 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40333 msgstr ""
40334
40335 #. type: textblock
40336 #: ../src/guestfs.pod:2883
40337 msgid ""
40338 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40339 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40340 "they are not passed via the shell (instead, straight to exec).  You probably "
40341 "want to use the C<sysroot_path()> function however."
40342 msgstr ""
40343
40344 #. type: =head2
40345 #: ../src/guestfs.pod:2889
40346 msgid "SUBMITTING YOUR NEW API ACTIONS"
40347 msgstr ""
40348
40349 #. type: textblock
40350 #: ../src/guestfs.pod:2891
40351 msgid ""
40352 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40353 "libguestfs> and CC to L<rjones@redhat.com>."
40354 msgstr ""
40355
40356 #. type: =head2
40357 #: ../src/guestfs.pod:2895
40358 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40359 msgstr ""
40360
40361 #. type: textblock
40362 #: ../src/guestfs.pod:2897
40363 msgid "We support i18n (gettext anyhow) in the library."
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../src/guestfs.pod:2899
40368 msgid ""
40369 "However many messages come from the daemon, and we don't translate those at "
40370 "the moment.  One reason is that the appliance generally has all locale files "
40371 "removed from it, because they take up a lot of space.  So we'd have to readd "
40372 "some of those, as well as copying our PO files into the appliance."
40373 msgstr ""
40374
40375 #. type: textblock
40376 #: ../src/guestfs.pod:2905
40377 msgid ""
40378 "Debugging messages are never translated, since they are intended for the "
40379 "programmers."
40380 msgstr ""
40381
40382 #. type: =head2
40383 #: ../src/guestfs.pod:2908
40384 msgid "SOURCE CODE SUBDIRECTORIES"
40385 msgstr ""
40386
40387 #. type: =item
40388 #: ../src/guestfs.pod:2912
40389 msgid "C<align>"
40390 msgstr ""
40391
40392 #. type: textblock
40393 #: ../src/guestfs.pod:2914
40394 msgid "L<virt-alignment-scan(1)> command and documentation."
40395 msgstr ""
40396
40397 #. type: textblock
40398 #: ../src/guestfs.pod:2918
40399 msgid "The libguestfs appliance, build scripts and so on."
40400 msgstr ""
40401
40402 #. type: =item
40403 #: ../src/guestfs.pod:2920
40404 msgid "C<capitests>"
40405 msgstr ""
40406
40407 #. type: textblock
40408 #: ../src/guestfs.pod:2922
40409 msgid "Automated tests of the C API."
40410 msgstr ""
40411
40412 #. type: =item
40413 #: ../src/guestfs.pod:2924
40414 msgid "C<cat>"
40415 msgstr ""
40416
40417 #. type: textblock
40418 #: ../src/guestfs.pod:2926
40419 msgid ""
40420 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40421 "documentation."
40422 msgstr ""
40423
40424 #. type: =item
40425 #: ../src/guestfs.pod:2929
40426 msgid "C<caution>"
40427 msgstr ""
40428
40429 #. type: textblock
40430 #: ../src/guestfs.pod:2931
40431 msgid ""
40432 "Safety and liveness tests of components that libguestfs depends upon (not of "
40433 "libguestfs itself).  Mainly this is for qemu and the kernel."
40434 msgstr ""
40435
40436 #. type: =item
40437 #: ../src/guestfs.pod:2934
40438 msgid "C<clone>"
40439 msgstr ""
40440
40441 #. type: textblock
40442 #: ../src/guestfs.pod:2936
40443 msgid ""
40444 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40445 "command and documentation."
40446 msgstr ""
40447
40448 #. type: =item
40449 #: ../src/guestfs.pod:2939
40450 msgid "C<contrib>"
40451 msgstr ""
40452
40453 #. type: textblock
40454 #: ../src/guestfs.pod:2941
40455 msgid "Outside contributions, experimental parts."
40456 msgstr ""
40457
40458 #. type: =item
40459 #: ../src/guestfs.pod:2943
40460 msgid "C<daemon>"
40461 msgstr ""
40462
40463 #. type: textblock
40464 #: ../src/guestfs.pod:2945
40465 msgid ""
40466 "The daemon that runs inside the libguestfs appliance and carries out actions."
40467 msgstr ""
40468
40469 #. type: =item
40470 #: ../src/guestfs.pod:2948
40471 msgid "C<df>"
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../src/guestfs.pod:2950
40476 msgid "L<virt-df(1)> command and documentation."
40477 msgstr ""
40478
40479 #. type: =item
40480 #: ../src/guestfs.pod:2952
40481 msgid "C<edit>"
40482 msgstr ""
40483
40484 #. type: textblock
40485 #: ../src/guestfs.pod:2954
40486 msgid "L<virt-edit(1)> command and documentation."
40487 msgstr ""
40488
40489 #. type: =item
40490 #: ../src/guestfs.pod:2956
40491 msgid "C<examples>"
40492 msgstr ""
40493
40494 #. type: textblock
40495 #: ../src/guestfs.pod:2958
40496 msgid "C API example code."
40497 msgstr ""
40498
40499 #. type: =item
40500 #: ../src/guestfs.pod:2960
40501 msgid "C<fish>"
40502 msgstr ""
40503
40504 #. type: textblock
40505 #: ../src/guestfs.pod:2962
40506 msgid ""
40507 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40508 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40509 "L<virt-tar-out(1)>."
40510 msgstr ""
40511
40512 #. type: =item
40513 #: ../src/guestfs.pod:2966
40514 msgid "C<fuse>"
40515 msgstr ""
40516
40517 #. type: textblock
40518 #: ../src/guestfs.pod:2968
40519 msgid ""
40520 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40521 msgstr ""
40522
40523 #. type: =item
40524 #: ../src/guestfs.pod:2970
40525 msgid "C<generator>"
40526 msgstr ""
40527
40528 #. type: textblock
40529 #: ../src/guestfs.pod:2972
40530 msgid ""
40531 "The crucially important generator, used to automatically generate large "
40532 "amounts of boilerplate C code for things like RPC and bindings."
40533 msgstr ""
40534
40535 #. type: =item
40536 #: ../src/guestfs.pod:2975
40537 msgid "C<images>"
40538 msgstr ""
40539
40540 #. type: textblock
40541 #: ../src/guestfs.pod:2977
40542 msgid "Files used by the test suite."
40543 msgstr ""
40544
40545 #. type: textblock
40546 #: ../src/guestfs.pod:2979
40547 msgid "Some \"phony\" guest images which we test against."
40548 msgstr ""
40549
40550 #. type: =item
40551 #: ../src/guestfs.pod:2981
40552 msgid "C<inspector>"
40553 msgstr ""
40554
40555 #. type: textblock
40556 #: ../src/guestfs.pod:2983
40557 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40558 msgstr ""
40559
40560 #. type: =item
40561 #: ../src/guestfs.pod:2985
40562 msgid "C<logo>"
40563 msgstr ""
40564
40565 #. type: textblock
40566 #: ../src/guestfs.pod:2987
40567 msgid "Logo used on the website.  The fish is called Arthur by the way."
40568 msgstr ""
40569
40570 #. type: =item
40571 #: ../src/guestfs.pod:2989
40572 msgid "C<m4>"
40573 msgstr ""
40574
40575 #. type: textblock
40576 #: ../src/guestfs.pod:2991
40577 msgid "M4 macros used by autoconf."
40578 msgstr ""
40579
40580 #. type: =item
40581 #: ../src/guestfs.pod:2993
40582 msgid "C<po>"
40583 msgstr ""
40584
40585 #. type: textblock
40586 #: ../src/guestfs.pod:2995
40587 msgid "Translations of simple gettext strings."
40588 msgstr ""
40589
40590 #. type: =item
40591 #: ../src/guestfs.pod:2997
40592 msgid "C<po-docs>"
40593 msgstr ""
40594
40595 #. type: textblock
40596 #: ../src/guestfs.pod:2999
40597 msgid ""
40598 "The build infrastructure and PO files for translations of manpages and POD "
40599 "files.  Eventually this will be combined with the C<po> directory, but that "
40600 "is rather complicated."
40601 msgstr ""
40602
40603 #. type: =item
40604 #: ../src/guestfs.pod:3003
40605 msgid "C<regressions>"
40606 msgstr ""
40607
40608 #. type: textblock
40609 #: ../src/guestfs.pod:3005
40610 msgid "Regression tests."
40611 msgstr ""
40612
40613 #. type: =item
40614 #: ../src/guestfs.pod:3007
40615 msgid "C<rescue>"
40616 msgstr ""
40617
40618 #. type: textblock
40619 #: ../src/guestfs.pod:3009
40620 msgid "L<virt-rescue(1)> command and documentation."
40621 msgstr ""
40622
40623 #. type: =item
40624 #: ../src/guestfs.pod:3011
40625 msgid "C<resize>"
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../src/guestfs.pod:3013
40630 msgid "L<virt-resize(1)> command and documentation."
40631 msgstr ""
40632
40633 #. type: =item
40634 #: ../src/guestfs.pod:3015
40635 msgid "C<sparsify>"
40636 msgstr ""
40637
40638 #. type: textblock
40639 #: ../src/guestfs.pod:3017
40640 msgid "L<virt-sparsify(1)> command and documentation."
40641 msgstr ""
40642
40643 #. type: =item
40644 #: ../src/guestfs.pod:3019
40645 msgid "C<src>"
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../src/guestfs.pod:3021
40650 msgid "Source code to the C library."
40651 msgstr ""
40652
40653 #. type: =item
40654 #: ../src/guestfs.pod:3023
40655 msgid "C<tools>"
40656 msgstr ""
40657
40658 #. type: textblock
40659 #: ../src/guestfs.pod:3025
40660 msgid ""
40661 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40662 msgstr ""
40663
40664 #. type: =item
40665 #: ../src/guestfs.pod:3027
40666 msgid "C<test-tool>"
40667 msgstr ""
40668
40669 #. type: textblock
40670 #: ../src/guestfs.pod:3029
40671 msgid ""
40672 "Test tool for end users to test if their qemu/kernel combination will work "
40673 "with libguestfs."
40674 msgstr ""
40675
40676 #. type: =item
40677 #: ../src/guestfs.pod:3032
40678 msgid "C<csharp>"
40679 msgstr ""
40680
40681 #. type: =item
40682 #: ../src/guestfs.pod:3034
40683 msgid "C<erlang>"
40684 msgstr ""
40685
40686 #. type: =item
40687 #: ../src/guestfs.pod:3036
40688 msgid "C<haskell>"
40689 msgstr ""
40690
40691 #. type: =item
40692 #: ../src/guestfs.pod:3038
40693 msgid "C<java>"
40694 msgstr ""
40695
40696 #. type: =item
40697 #: ../src/guestfs.pod:3040
40698 msgid "C<ocaml>"
40699 msgstr ""
40700
40701 #. type: =item
40702 #: ../src/guestfs.pod:3042
40703 msgid "C<php>"
40704 msgstr ""
40705
40706 #. type: =item
40707 #: ../src/guestfs.pod:3044
40708 msgid "C<perl>"
40709 msgstr ""
40710
40711 #. type: =item
40712 #: ../src/guestfs.pod:3046
40713 msgid "C<python>"
40714 msgstr ""
40715
40716 #. type: =item
40717 #: ../src/guestfs.pod:3048
40718 msgid "C<ruby>"
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../src/guestfs.pod:3050
40723 msgid "Language bindings."
40724 msgstr ""
40725
40726 #. type: =head2
40727 #: ../src/guestfs.pod:3054
40728 msgid "MAKING A STABLE RELEASE"
40729 msgstr ""
40730
40731 #. type: textblock
40732 #: ../src/guestfs.pod:3056
40733 msgid ""
40734 "When we make a stable release, there are several steps documented here.  See "
40735 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40736 "branch policy."
40737 msgstr ""
40738
40739 #. type: textblock
40740 #: ../src/guestfs.pod:3064
40741 msgid ""
40742 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40743 msgstr ""
40744
40745 #. type: textblock
40746 #: ../src/guestfs.pod:3069
40747 msgid "Finalize RELEASE-NOTES."
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../src/guestfs.pod:3073
40752 msgid "Update ROADMAP."
40753 msgstr ""
40754
40755 #. type: textblock
40756 #: ../src/guestfs.pod:3077
40757 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40758 msgstr ""
40759
40760 #. type: textblock
40761 #: ../src/guestfs.pod:3081
40762 msgid "Push and pull from Transifex."
40763 msgstr ""
40764
40765 #. type: textblock
40766 #: ../src/guestfs.pod:3083
40767 msgid "Run:"
40768 msgstr ""
40769
40770 #. type: verbatim
40771 #: ../src/guestfs.pod:3085
40772 #, no-wrap
40773 msgid ""
40774 " tx push -s\n"
40775 "\n"
40776 msgstr ""
40777
40778 #. type: textblock
40779 #: ../src/guestfs.pod:3087
40780 msgid "to push the latest POT files to Transifex.  Then run:"
40781 msgstr ""
40782
40783 #. type: verbatim
40784 #: ../src/guestfs.pod:3089
40785 #, no-wrap
40786 msgid ""
40787 " ./tx-pull.sh\n"
40788 "\n"
40789 msgstr ""
40790
40791 #. type: textblock
40792 #: ../src/guestfs.pod:3091
40793 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40794 msgstr ""
40795
40796 #. type: textblock
40797 #: ../src/guestfs.pod:3095
40798 msgid ""
40799 "Create new stable and development directories under L<http://libguestfs.org/"
40800 "download>."
40801 msgstr ""
40802
40803 #. type: textblock
40804 #: ../src/guestfs.pod:3100
40805 msgid "Create the branch in git:"
40806 msgstr ""
40807
40808 #. type: verbatim
40809 #: ../src/guestfs.pod:3102
40810 #, no-wrap
40811 msgid ""
40812 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40813 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40814 " git branch stable-1.XX\n"
40815 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40816 "\n"
40817 msgstr ""
40818
40819 #. type: =head1
40820 #: ../src/guestfs.pod:3109
40821 msgid "LIMITS"
40822 msgstr ""
40823
40824 #. type: =head2
40825 #: ../src/guestfs.pod:3111
40826 msgid "PROTOCOL LIMITS"
40827 msgstr ""
40828
40829 #. type: textblock
40830 #: ../src/guestfs.pod:3113
40831 msgid ""
40832 "Internally libguestfs uses a message-based protocol to pass API calls and "
40833 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40834 "plenty more detail about this).  The maximum message size used by the "
40835 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40836 "aware of this limit.  The API calls which may be affected are individually "
40837 "documented, with a link back to this section of the documentation."
40838 msgstr ""
40839
40840 #. type: textblock
40841 #: ../src/guestfs.pod:3121
40842 msgid ""
40843 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40844 "a simple string.  Because this string is at some point internally encoded as "
40845 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40846 "the requested file is larger than this then you will get an error."
40847 msgstr ""
40848
40849 #. type: textblock
40850 #: ../src/guestfs.pod:3127
40851 msgid ""
40852 "In order to transfer large files into and out of the guest filesystem, you "
40853 "need to use particular calls that support this.  The sections L</UPLOADING> "
40854 "and L</DOWNLOADING> document how to do this."
40855 msgstr ""
40856
40857 #. type: textblock
40858 #: ../src/guestfs.pod:3131
40859 msgid ""
40860 "You might also consider mounting the disk image using our FUSE filesystem "
40861 "support (L<guestmount(1)>)."
40862 msgstr ""
40863
40864 #. type: =head2
40865 #: ../src/guestfs.pod:3134
40866 msgid "MAXIMUM NUMBER OF DISKS"
40867 msgstr ""
40868
40869 #. type: textblock
40870 #: ../src/guestfs.pod:3136
40871 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40872 msgstr ""
40873
40874 #. type: textblock
40875 #: ../src/guestfs.pod:3139
40876 msgid ""
40877 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40878 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40879 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40880 "purposes."
40881 msgstr ""
40882
40883 #. type: textblock
40884 #: ../src/guestfs.pod:3144
40885 msgid ""
40886 "We are working to substantially raise this limit in future versions but it "
40887 "requires complex changes to qemu."
40888 msgstr ""
40889
40890 #. type: textblock
40891 #: ../src/guestfs.pod:3147
40892 msgid ""
40893 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40894 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40895 "requires changes to qemu."
40896 msgstr ""
40897
40898 #. type: =head2
40899 #: ../src/guestfs.pod:3151
40900 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40901 msgstr ""
40902
40903 #. type: textblock
40904 #: ../src/guestfs.pod:3153
40905 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40906 msgstr ""
40907
40908 #. type: textblock
40909 #: ../src/guestfs.pod:3155
40910 msgid ""
40911 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40912 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40913 msgstr ""
40914
40915 #. type: textblock
40916 #: ../src/guestfs.pod:3158
40917 msgid ""
40918 "If you attach a disk with more than 15 partitions, the extra partitions are "
40919 "ignored by libguestfs."
40920 msgstr ""
40921
40922 #. type: =head2
40923 #: ../src/guestfs.pod:3161
40924 msgid "MAXIMUM SIZE OF A DISK"
40925 msgstr ""
40926
40927 #. type: textblock
40928 #: ../src/guestfs.pod:3163
40929 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40930 msgstr ""
40931
40932 #. type: textblock
40933 #: ../src/guestfs.pod:3165
40934 msgid ""
40935 "We have tested block devices up to 1 exabyte (2**60 or "
40936 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40937 "filesystem."
40938 msgstr ""
40939
40940 #. type: textblock
40941 #: ../src/guestfs.pod:3169
40942 msgid ""
40943 "Although libguestfs probably does not impose any limit, the underlying host "
40944 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40945 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40946 "TB).  If you store disk images as host logical volumes then you are limited "
40947 "by the maximum size of an LV."
40948 msgstr ""
40949
40950 #. type: textblock
40951 #: ../src/guestfs.pod:3175
40952 msgid ""
40953 "For the hugest disk image files, we recommend using XFS on the host for "
40954 "storage."
40955 msgstr ""
40956
40957 #. type: =head2
40958 #: ../src/guestfs.pod:3178
40959 msgid "MAXIMUM SIZE OF A PARTITION"
40960 msgstr ""
40961
40962 #. type: textblock
40963 #: ../src/guestfs.pod:3180
40964 msgid ""
40965 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40966 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40967 "address a partition located beyond 2 TB on the disk."
40968 msgstr ""
40969
40970 #. type: textblock
40971 #: ../src/guestfs.pod:3184
40972 msgid ""
40973 "It is recommended that you use GPT partitions on disks which are larger than "
40974 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40975 "which are theoretically larger than the largest disk we could support."
40976 msgstr ""
40977
40978 #. type: =head2
40979 #: ../src/guestfs.pod:3189
40980 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40981 msgstr ""
40982
40983 #. type: textblock
40984 #: ../src/guestfs.pod:3191
40985 msgid ""
40986 "This depends on the filesystem type.  libguestfs itself does not impose any "
40987 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40988 "what these limits are."
40989 msgstr ""
40990
40991 #. type: =head2
40992 #: ../src/guestfs.pod:3195
40993 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40994 msgstr ""
40995
40996 #. type: textblock
40997 #: ../src/guestfs.pod:3197
40998 msgid ""
40999 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41000 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41001 "uploads and downloads."
41002 msgstr ""
41003
41004 #. type: =head2
41005 #: ../src/guestfs.pod:3201
41006 msgid "INSPECTION LIMITS"
41007 msgstr ""
41008
41009 #. type: textblock
41010 #: ../src/guestfs.pod:3203
41011 msgid ""
41012 "The inspection code has several arbitrary limits on things like the size of "
41013 "Windows Registry hive it will read, and the length of product name.  These "
41014 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41015 "memory and disk space on the host, and should not be reached in practice.  "
41016 "See the source code for more information."
41017 msgstr ""
41018
41019 #. type: textblock
41020 #: ../src/guestfs.pod:3229
41021 msgid ""
41022 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41023 "effect as calling C<guestfs_set_verbose (g, 1)>."
41024 msgstr ""
41025
41026 #. type: textblock
41027 #: ../src/guestfs.pod:3241
41028 msgid ""
41029 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41030 "the discussion of paths in section L</PATH> above."
41031 msgstr ""
41032
41033 #. type: textblock
41034 #: ../src/guestfs.pod:3250
41035 msgid "See also L</QEMU WRAPPERS> above."
41036 msgstr ""
41037
41038 #. type: textblock
41039 #: ../src/guestfs.pod:3254
41040 msgid ""
41041 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41042 "effect as calling C<guestfs_set_trace (g, 1)>."
41043 msgstr ""
41044
41045 #. type: textblock
41046 #: ../src/guestfs.pod:3272
41047 msgid ""
41048 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41049 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41050 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41051 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41052 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41053 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41054 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41055 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41056 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41057 ">, L<http://libguestfs.org/>."
41058 msgstr ""
41059
41060 #. type: textblock
41061 #: ../src/guestfs.pod:3308
41062 msgid ""
41063 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41064 "(8)>, L<disktype(1)>."
41065 msgstr ""
41066
41067 #. type: =head1
41068 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41069 #: ../tools/virt-win-reg.pl:772
41070 msgid "BUGS"
41071 msgstr ""
41072
41073 #. type: textblock
41074 #: ../src/guestfs.pod:3317
41075 msgid "To get a list of bugs against libguestfs use this link:"
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../src/guestfs.pod:3319
41080 msgid ""
41081 "L<https://bugzilla.redhat.com/buglist.cgi?"
41082 "component=libguestfs&product=Virtualization+Tools>"
41083 msgstr ""
41084
41085 #. type: textblock
41086 #: ../src/guestfs.pod:3321
41087 msgid "To report a new bug against libguestfs use this link:"
41088 msgstr ""
41089
41090 #. type: textblock
41091 #: ../src/guestfs.pod:3323
41092 msgid ""
41093 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41094 "component=libguestfs&product=Virtualization+Tools>"
41095 msgstr ""
41096
41097 #. type: textblock
41098 #: ../src/guestfs.pod:3325
41099 msgid "When reporting a bug, please check:"
41100 msgstr ""
41101
41102 #. type: textblock
41103 #: ../src/guestfs.pod:3331
41104 msgid "That the bug hasn't been reported already."
41105 msgstr ""
41106
41107 #. type: textblock
41108 #: ../src/guestfs.pod:3335
41109 msgid "That you are testing a recent version."
41110 msgstr ""
41111
41112 #. type: textblock
41113 #: ../src/guestfs.pod:3339
41114 msgid "Describe the bug accurately, and give a way to reproduce it."
41115 msgstr ""
41116
41117 #. type: textblock
41118 #: ../src/guestfs.pod:3343
41119 msgid ""
41120 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41121 "bug report."
41122 msgstr ""
41123
41124 #. type: textblock
41125 #: ../test-tool/libguestfs-test-tool.pod:5
41126 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41127 msgstr ""
41128
41129 #. type: verbatim
41130 #: ../test-tool/libguestfs-test-tool.pod:9
41131 #, no-wrap
41132 msgid ""
41133 " libguestfs-test-tool [--options]\n"
41134 "\n"
41135 msgstr ""
41136
41137 #. type: textblock
41138 #: ../test-tool/libguestfs-test-tool.pod:13
41139 msgid ""
41140 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41141 "to check basic libguestfs functionality is working.  This is needed because "
41142 "libguestfs occasionally breaks for reasons beyond our control: usually "
41143 "because of changes in the underlying qemu or kernel packages, or the host "
41144 "environment."
41145 msgstr ""
41146
41147 #. type: textblock
41148 #: ../test-tool/libguestfs-test-tool.pod:19
41149 msgid "If you suspect a problem in libguestfs, then just run:"
41150 msgstr ""
41151
41152 #. type: verbatim
41153 #: ../test-tool/libguestfs-test-tool.pod:21
41154 #, no-wrap
41155 msgid ""
41156 " libguestfs-test-tool\n"
41157 "\n"
41158 msgstr ""
41159
41160 #. type: textblock
41161 #: ../test-tool/libguestfs-test-tool.pod:23
41162 msgid "It will print lots of diagnostic messages."
41163 msgstr ""
41164
41165 #. type: textblock
41166 #: ../test-tool/libguestfs-test-tool.pod:25
41167 msgid "If it runs to completion successfully, you will see this near the end:"
41168 msgstr ""
41169
41170 #. type: verbatim
41171 #: ../test-tool/libguestfs-test-tool.pod:27
41172 #, no-wrap
41173 msgid ""
41174 " ===== TEST FINISHED OK =====\n"
41175 "\n"
41176 msgstr ""
41177
41178 #. type: textblock
41179 #: ../test-tool/libguestfs-test-tool.pod:29
41180 msgid "and the test tool will exit with code 0."
41181 msgstr ""
41182
41183 #. type: textblock
41184 #: ../test-tool/libguestfs-test-tool.pod:31
41185 msgid ""
41186 "If it fails (and/or exits with non-zero error code), please paste the "
41187 "I<complete, unedited> output of the test tool into a bug report.  More "
41188 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41189 "> website."
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../test-tool/libguestfs-test-tool.pod:42
41194 msgid "Display short usage information and exit."
41195 msgstr ""
41196
41197 #. type: =item
41198 #: ../test-tool/libguestfs-test-tool.pod:44
41199 msgid "B<--qemu qemu_binary>"
41200 msgstr ""
41201
41202 #. type: textblock
41203 #: ../test-tool/libguestfs-test-tool.pod:46
41204 msgid ""
41205 "If you have downloaded another qemu binary, point this option at the full "
41206 "path of the binary to try it."
41207 msgstr ""
41208
41209 #. type: =item
41210 #: ../test-tool/libguestfs-test-tool.pod:49
41211 msgid "B<--qemudir qemu_source_dir>"
41212 msgstr ""
41213
41214 #. type: textblock
41215 #: ../test-tool/libguestfs-test-tool.pod:51
41216 msgid ""
41217 "If you have compiled qemu from source, point this option at the source "
41218 "directory to try it."
41219 msgstr ""
41220
41221 #. type: =item
41222 #: ../test-tool/libguestfs-test-tool.pod:54
41223 msgid "B<-t N>"
41224 msgstr ""
41225
41226 #. type: =item
41227 #: ../test-tool/libguestfs-test-tool.pod:56
41228 msgid "B<--timeout N>"
41229 msgstr ""
41230
41231 #. type: textblock
41232 #: ../test-tool/libguestfs-test-tool.pod:58
41233 msgid ""
41234 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41235 "minutes) which does not usually need to be adjusted."
41236 msgstr ""
41237
41238 #. type: =head1
41239 #: ../test-tool/libguestfs-test-tool.pod:63
41240 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41241 msgstr ""
41242
41243 #. type: textblock
41244 #: ../test-tool/libguestfs-test-tool.pod:65
41245 msgid ""
41246 "If you have compiled another version of qemu from source and would like to "
41247 "try that, then you can use the I<--qemudir> option to point to the qemu "
41248 "source directory."
41249 msgstr ""
41250
41251 #. type: textblock
41252 #: ../test-tool/libguestfs-test-tool.pod:69
41253 msgid ""
41254 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41255 "option to point to the binary."
41256 msgstr ""
41257
41258 #. type: textblock
41259 #: ../test-tool/libguestfs-test-tool.pod:72
41260 msgid ""
41261 "Note when using these options, you can ignore the business of qemu wrapper "
41262 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41263 "wrapper script for you if one is needed."
41264 msgstr ""
41265
41266 #. type: =head1
41267 #: ../test-tool/libguestfs-test-tool.pod:76
41268 msgid "TRYING OUT A DIFFERENT KERNEL"
41269 msgstr ""
41270
41271 #. type: textblock
41272 #: ../test-tool/libguestfs-test-tool.pod:78
41273 msgid ""
41274 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41275 "libguestfs tries.  You do this by setting the environment variables "
41276 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41277 msgstr ""
41278
41279 #. type: textblock
41280 #: ../test-tool/libguestfs-test-tool.pod:82
41281 msgid ""
41282 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41283 "information."
41284 msgstr ""
41285
41286 #. type: =head1
41287 #: ../test-tool/libguestfs-test-tool.pod:85
41288 msgid "SELF-DIAGNOSIS"
41289 msgstr ""
41290
41291 #. type: textblock
41292 #: ../test-tool/libguestfs-test-tool.pod:87
41293 msgid ""
41294 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41295 "produced by libguestfs-test-tool and/or possible errors."
41296 msgstr ""
41297
41298 #. type: textblock
41299 #: ../test-tool/libguestfs-test-tool.pod:92
41300 msgid ""
41301 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41302 "I<1> if there was an error."
41303 msgstr ""
41304
41305 #. type: textblock
41306 #: ../test-tool/libguestfs-test-tool.pod:97
41307 msgid ""
41308 "For the full list of environment variables which may affect libguestfs, "
41309 "please see the L<guestfs(3)> manual page."
41310 msgstr ""
41311
41312 #. type: textblock
41313 #: ../test-tool/libguestfs-test-tool.pod:102
41314 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41315 msgstr ""
41316
41317 #. type: textblock
41318 #: ../tools/virt-list-filesystems.pl:32
41319 msgid ""
41320 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41321 msgstr ""
41322
41323 #. type: verbatim
41324 #: ../tools/virt-list-filesystems.pl:36
41325 #, no-wrap
41326 msgid ""
41327 " virt-list-filesystems [--options] domname\n"
41328 "\n"
41329 msgstr ""
41330
41331 #. type: verbatim
41332 #: ../tools/virt-list-filesystems.pl:38
41333 #, no-wrap
41334 msgid ""
41335 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41336 "\n"
41337 msgstr ""
41338
41339 #. type: textblock
41340 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41341 msgid ""
41342 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41343 "replacement."
41344 msgstr ""
41345
41346 #. type: textblock
41347 #: ../tools/virt-list-filesystems.pl:45
41348 msgid ""
41349 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41350 "are contained in a virtual machine or disk image."
41351 msgstr ""
41352
41353 #. type: textblock
41354 #: ../tools/virt-list-filesystems.pl:49
41355 msgid ""
41356 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41357 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41358 "> tool."
41359 msgstr ""
41360
41361 #. type: textblock
41362 #: ../tools/virt-list-filesystems.pl:112
41363 msgid ""
41364 "With this option, C<virt-list-filesystems> displays the type of each "
41365 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41366 msgstr ""
41367
41368 #. type: =item
41369 #: ../tools/virt-list-filesystems.pl:119
41370 msgid "B<-a>"
41371 msgstr ""
41372
41373 #. type: textblock
41374 #: ../tools/virt-list-filesystems.pl:123
41375 msgid ""
41376 "Normally we only show mountable filesystems.  If this option is given then "
41377 "swap devices are shown too."
41378 msgstr ""
41379
41380 #. type: textblock
41381 #: ../tools/virt-list-filesystems.pl:197
41382 msgid ""
41383 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41384 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41385 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41386 msgstr ""
41387
41388 #. type: textblock
41389 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41390 msgid "Copyright (C) 2009 Red Hat Inc."
41391 msgstr ""
41392
41393 #. type: textblock
41394 #: ../tools/virt-list-partitions.pl:32
41395 msgid ""
41396 "virt-list-partitions - List partitions in a virtual machine or disk image"
41397 msgstr ""
41398
41399 #. type: verbatim
41400 #: ../tools/virt-list-partitions.pl:36
41401 #, no-wrap
41402 msgid ""
41403 " virt-list-partitions [--options] domname\n"
41404 "\n"
41405 msgstr ""
41406
41407 #. type: verbatim
41408 #: ../tools/virt-list-partitions.pl:38
41409 #, no-wrap
41410 msgid ""
41411 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41412 "\n"
41413 msgstr ""
41414
41415 #. type: textblock
41416 #: ../tools/virt-list-partitions.pl:45
41417 msgid ""
41418 "C<virt-list-partitions> is a command line tool to list the partitions that "
41419 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41420 "first step to using L<virt-resize(1)>."
41421 msgstr ""
41422
41423 #. type: textblock
41424 #: ../tools/virt-list-partitions.pl:50
41425 msgid ""
41426 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41427 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41428 "> tool."
41429 msgstr ""
41430
41431 #. type: textblock
41432 #: ../tools/virt-list-partitions.pl:113
41433 msgid "Show sizes in human-readable form (eg. \"1G\")."
41434 msgstr ""
41435
41436 #. type: textblock
41437 #: ../tools/virt-list-partitions.pl:123
41438 msgid ""
41439 "With this option, C<virt-list-partitions> displays the type and size of each "
41440 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41441 msgstr ""
41442
41443 #. type: =item
41444 #: ../tools/virt-list-partitions.pl:130
41445 msgid "B<-t>"
41446 msgstr ""
41447
41448 #. type: =item
41449 #: ../tools/virt-list-partitions.pl:132
41450 msgid "B<--total>"
41451 msgstr ""
41452
41453 #. type: textblock
41454 #: ../tools/virt-list-partitions.pl:134
41455 msgid ""
41456 "Display the total size of each block device (as a separate row or rows)."
41457 msgstr ""
41458
41459 #. type: textblock
41460 #: ../tools/virt-list-partitions.pl:267
41461 msgid ""
41462 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41463 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41464 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41465 msgstr ""
41466
41467 #. type: textblock
41468 #: ../tools/virt-list-partitions.pl:283
41469 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41470 msgstr ""
41471
41472 #. type: textblock
41473 #: ../tools/virt-make-fs.pl:37
41474 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41475 msgstr ""
41476
41477 #. type: verbatim
41478 #: ../tools/virt-make-fs.pl:41
41479 #, no-wrap
41480 msgid ""
41481 " virt-make-fs [--options] input.tar output.img\n"
41482 "\n"
41483 msgstr ""
41484
41485 #. type: verbatim
41486 #: ../tools/virt-make-fs.pl:43
41487 #, no-wrap
41488 msgid ""
41489 " virt-make-fs [--options] input.tar.gz output.img\n"
41490 "\n"
41491 msgstr ""
41492
41493 #. type: verbatim
41494 #: ../tools/virt-make-fs.pl:45
41495 #, no-wrap
41496 msgid ""
41497 " virt-make-fs [--options] directory output.img\n"
41498 "\n"
41499 msgstr ""
41500
41501 #. type: textblock
41502 #: ../tools/virt-make-fs.pl:49
41503 msgid ""
41504 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41505 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
41506 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
41507 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41508 "you want to attach these filesystems to existing virtual machines (eg. to "
41509 "import large amounts of read-only data to a VM)."
41510 msgstr ""
41511
41512 #. type: textblock
41513 #: ../tools/virt-make-fs.pl:57
41514 msgid "Basic usage is:"
41515 msgstr ""
41516
41517 #. type: verbatim
41518 #: ../tools/virt-make-fs.pl:59
41519 #, no-wrap
41520 msgid ""
41521 " virt-make-fs input output.img\n"
41522 "\n"
41523 msgstr ""
41524
41525 #. type: textblock
41526 #: ../tools/virt-make-fs.pl:61
41527 msgid ""
41528 "where C<input> is either a directory containing files that you want to add, "
41529 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41530 "C<output.img> is a disk image.  The input type is detected automatically.  "
41531 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41532 "extra flags (see L</OPTIONS> below)."
41533 msgstr ""
41534
41535 #. type: =head2
41536 #: ../tools/virt-make-fs.pl:67
41537 msgid "FILESYSTEM TYPE"
41538 msgstr ""
41539
41540 #. type: textblock
41541 #: ../tools/virt-make-fs.pl:69
41542 msgid ""
41543 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41544 "libguestfs supports can be used (but I<not> read-only formats like "
41545 "ISO9660).  Here are some of the more common choices:"
41546 msgstr ""
41547
41548 #. type: =item
41549 #: ../tools/virt-make-fs.pl:75
41550 msgid "I<ext3>"
41551 msgstr ""
41552
41553 #. type: textblock
41554 #: ../tools/virt-make-fs.pl:77
41555 msgid ""
41556 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41557 "you are not going to use the filesystem in a way that requires the journal, "
41558 "then this is just wasted overhead."
41559 msgstr ""
41560
41561 #. type: =item
41562 #: ../tools/virt-make-fs.pl:81
41563 msgid "I<ntfs> or I<vfat>"
41564 msgstr ""
41565
41566 #. type: textblock
41567 #: ../tools/virt-make-fs.pl:83
41568 msgid "Useful if exporting data to a Windows guest."
41569 msgstr ""
41570
41571 #. type: textblock
41572 #: ../tools/virt-make-fs.pl:85
41573 msgid ""
41574 "I<Note for vfat>: The tar archive or local directory must only contain files "
41575 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41576 "program running within libguestfs is unable to change the ownership of non-"
41577 "root files, since vfat itself does not support this."
41578 msgstr ""
41579
41580 #. type: =item
41581 #: ../tools/virt-make-fs.pl:90
41582 msgid "I<minix>"
41583 msgstr ""
41584
41585 #. type: textblock
41586 #: ../tools/virt-make-fs.pl:92
41587 msgid ""
41588 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41589 "total filesystem size."
41590 msgstr ""
41591
41592 #. type: =head3
41593 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
41594 #: ../tools/virt-make-fs.pl:149
41595 msgid "EXAMPLE"
41596 msgstr ""
41597
41598 #. type: verbatim
41599 #: ../tools/virt-make-fs.pl:99
41600 #, no-wrap
41601 msgid ""
41602 " virt-make-fs --type=minix input minixfs.img\n"
41603 "\n"
41604 msgstr ""
41605
41606 #. type: =head2
41607 #: ../tools/virt-make-fs.pl:101
41608 msgid "TO PARTITION OR NOT TO PARTITION"
41609 msgstr ""
41610
41611 #. type: textblock
41612 #: ../tools/virt-make-fs.pl:103
41613 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41614 msgstr ""
41615
41616 #. type: textblock
41617 #: ../tools/virt-make-fs.pl:105
41618 msgid ""
41619 "Adding a partition can make the disk image more compatible with certain "
41620 "virtualized operating systems which don't expect to see a filesystem "
41621 "directly located on a block device (Linux doesn't care and will happily "
41622 "handle both types)."
41623 msgstr ""
41624
41625 #. type: textblock
41626 #: ../tools/virt-make-fs.pl:110
41627 msgid ""
41628 "On the other hand, if you have a partition table then the output image is no "
41629 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41630 "directly on a partitioned disk image.  (However libguestfs tools such as "
41631 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41632 msgstr ""
41633
41634 #. type: textblock
41635 #: ../tools/virt-make-fs.pl:118
41636 msgid "Add an MBR partition:"
41637 msgstr ""
41638
41639 #. type: verbatim
41640 #: ../tools/virt-make-fs.pl:120
41641 #, no-wrap
41642 msgid ""
41643 " virt-make-fs --partition -- input disk.img\n"
41644 "\n"
41645 msgstr ""
41646
41647 #. type: textblock
41648 #: ../tools/virt-make-fs.pl:122
41649 msgid ""
41650 "If the output disk image could be terabyte-sized or larger, it's better to "
41651 "use an EFI/GPT-compatible partition table:"
41652 msgstr ""
41653
41654 #. type: verbatim
41655 #: ../tools/virt-make-fs.pl:125
41656 #, no-wrap
41657 msgid ""
41658 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41659 "\n"
41660 msgstr ""
41661
41662 #. type: =head2
41663 #: ../tools/virt-make-fs.pl:127
41664 msgid "EXTRA SPACE"
41665 msgstr ""
41666
41667 #. type: textblock
41668 #: ../tools/virt-make-fs.pl:129
41669 msgid ""
41670 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41671 "the files that it contains, but might have extra space.  Depending on how "
41672 "you are going to use the output, you might think this extra space is wasted "
41673 "and want to minimize it, or you might want to leave space so that more files "
41674 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41675 "but you can use the I<--size> flag to leave space in the filesystem if you "
41676 "want it."
41677 msgstr ""
41678
41679 #. type: textblock
41680 #: ../tools/virt-make-fs.pl:137
41681 msgid ""
41682 "An alternative way to leave extra space but not make the output image any "
41683 "bigger is to use an alternative disk image format (instead of the default "
41684 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41685 "image format (check your hypervisor supports this before using it).  This "
41686 "allows you to choose a large I<--size> but the extra space won't actually be "
41687 "allocated in the image until you try to store something in it."
41688 msgstr ""
41689
41690 #. type: textblock
41691 #: ../tools/virt-make-fs.pl:145
41692 msgid ""
41693 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41694 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41695 "to build another image from scratch."
41696 msgstr ""
41697
41698 #. type: verbatim
41699 #: ../tools/virt-make-fs.pl:151
41700 #, no-wrap
41701 msgid ""
41702 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41703 "\n"
41704 msgstr ""
41705
41706 #. type: textblock
41707 #: ../tools/virt-make-fs.pl:179
41708 msgid "Enable debugging information."
41709 msgstr ""
41710
41711 #. type: =item
41712 #: ../tools/virt-make-fs.pl:185
41713 msgid "B<--size=E<lt>NE<gt>>"
41714 msgstr ""
41715
41716 #. type: =item
41717 #: ../tools/virt-make-fs.pl:187
41718 msgid "B<--size=+E<lt>NE<gt>>"
41719 msgstr ""
41720
41721 #. type: =item
41722 #: ../tools/virt-make-fs.pl:189
41723 msgid "B<-s E<lt>NE<gt>>"
41724 msgstr ""
41725
41726 #. type: =item
41727 #: ../tools/virt-make-fs.pl:191
41728 msgid "B<-s +E<lt>NE<gt>>"
41729 msgstr ""
41730
41731 #. type: textblock
41732 #: ../tools/virt-make-fs.pl:193
41733 msgid ""
41734 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41735 msgstr ""
41736
41737 #. type: textblock
41738 #: ../tools/virt-make-fs.pl:196
41739 msgid ""
41740 "If this option is I<not> given, then the output image will be just large "
41741 "enough to contain all the files, with not much wasted space."
41742 msgstr ""
41743
41744 #. type: textblock
41745 #: ../tools/virt-make-fs.pl:199
41746 msgid ""
41747 "To choose a fixed size output disk, specify an absolute number followed by b/"
41748 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41749 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41750 "files, else you will get an error."
41751 msgstr ""
41752
41753 #. type: textblock
41754 #: ../tools/virt-make-fs.pl:204
41755 msgid ""
41756 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41757 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41758 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41759 "the input files, and (approximately) an extra 200 MB free space."
41760 msgstr ""
41761
41762 #. type: textblock
41763 #: ../tools/virt-make-fs.pl:210
41764 msgid ""
41765 "Note that virt-make-fs estimates free space, and therefore will not produce "
41766 "filesystems containing precisely the free space requested.  (It is much more "
41767 "expensive and time-consuming to produce a filesystem which has precisely the "
41768 "desired free space)."
41769 msgstr ""
41770
41771 #. type: =item
41772 #: ../tools/virt-make-fs.pl:219
41773 msgid "B<--format=E<lt>fmtE<gt>>"
41774 msgstr ""
41775
41776 #. type: =item
41777 #: ../tools/virt-make-fs.pl:221
41778 msgid "B<-F E<lt>fmtE<gt>>"
41779 msgstr ""
41780
41781 #. type: textblock
41782 #: ../tools/virt-make-fs.pl:223
41783 msgid "Choose the output disk image format."
41784 msgstr ""
41785
41786 #. type: textblock
41787 #: ../tools/virt-make-fs.pl:225
41788 msgid "The default is C<raw> (raw sparse disk image)."
41789 msgstr ""
41790
41791 #. type: textblock
41792 #: ../tools/virt-make-fs.pl:227
41793 msgid ""
41794 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41795 "that would really make sense here is C<qcow2>."
41796 msgstr ""
41797
41798 #. type: =item
41799 #: ../tools/virt-make-fs.pl:234
41800 msgid "B<--type=E<lt>fsE<gt>>"
41801 msgstr ""
41802
41803 #. type: =item
41804 #: ../tools/virt-make-fs.pl:236
41805 msgid "B<-t E<lt>fsE<gt>>"
41806 msgstr ""
41807
41808 #. type: textblock
41809 #: ../tools/virt-make-fs.pl:238
41810 msgid "Choose the output filesystem type."
41811 msgstr ""
41812
41813 #. type: textblock
41814 #: ../tools/virt-make-fs.pl:240
41815 msgid "The default is C<ext2>."
41816 msgstr ""
41817
41818 #. type: textblock
41819 #: ../tools/virt-make-fs.pl:242
41820 msgid ""
41821 "Any filesystem which is supported read-write by libguestfs can be used here."
41822 msgstr ""
41823
41824 #. type: =item
41825 #: ../tools/virt-make-fs.pl:249
41826 msgid "B<--partition>"
41827 msgstr ""
41828
41829 #. type: =item
41830 #: ../tools/virt-make-fs.pl:251
41831 msgid "B<--partition=E<lt>parttypeE<gt>>"
41832 msgstr ""
41833
41834 #. type: textblock
41835 #: ../tools/virt-make-fs.pl:253
41836 msgid ""
41837 "If specified, this flag adds an MBR partition table to the output disk image."
41838 msgstr ""
41839
41840 #. type: textblock
41841 #: ../tools/virt-make-fs.pl:256
41842 msgid ""
41843 "You can change the partition table type, eg. I<--partition=gpt> for large "
41844 "disks."
41845 msgstr ""
41846
41847 #. type: textblock
41848 #: ../tools/virt-make-fs.pl:259
41849 msgid ""
41850 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41851 "might consider the next parameter to be the partition type.  For example:"
41852 msgstr ""
41853
41854 #. type: verbatim
41855 #: ../tools/virt-make-fs.pl:263
41856 #, no-wrap
41857 msgid ""
41858 " virt-make-fs --partition input.tar output.img\n"
41859 "\n"
41860 msgstr ""
41861
41862 #. type: textblock
41863 #: ../tools/virt-make-fs.pl:265
41864 msgid ""
41865 "would cause virt-make-fs to think you wanted to use a partition type of "
41866 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41867 "dash) between options and the input and output arguments:"
41868 msgstr ""
41869
41870 #. type: verbatim
41871 #: ../tools/virt-make-fs.pl:269
41872 #, no-wrap
41873 msgid ""
41874 " virt-make-fs --partition -- input.tar output.img\n"
41875 "\n"
41876 msgstr ""
41877
41878 #. type: textblock
41879 #: ../tools/virt-make-fs.pl:271
41880 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41881 msgstr ""
41882
41883 #. type: textblock
41884 #: ../tools/virt-make-fs.pl:559
41885 msgid ""
41886 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41887 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41888 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41889 msgstr ""
41890
41891 #. type: textblock
41892 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41893 msgid ""
41894 "When reporting bugs, please enable debugging and capture the I<complete> "
41895 "output:"
41896 msgstr ""
41897
41898 #. type: verbatim
41899 #: ../tools/virt-make-fs.pl:576
41900 #, no-wrap
41901 msgid ""
41902 " export LIBGUESTFS_DEBUG=1\n"
41903 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41904 "\n"
41905 msgstr ""
41906
41907 #. type: textblock
41908 #: ../tools/virt-make-fs.pl:579
41909 msgid ""
41910 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41911 "redhat.com/>"
41912 msgstr ""
41913
41914 #. type: textblock
41915 #: ../tools/virt-tar.pl:33
41916 msgid "virt-tar - Extract or upload files to a virtual machine"
41917 msgstr ""
41918
41919 #. type: verbatim
41920 #: ../tools/virt-tar.pl:37
41921 #, no-wrap
41922 msgid ""
41923 " virt-tar [--options] -x domname directory tarball\n"
41924 "\n"
41925 msgstr ""
41926
41927 #. type: verbatim
41928 #: ../tools/virt-tar.pl:39
41929 #, no-wrap
41930 msgid ""
41931 " virt-tar [--options] -u domname tarball directory\n"
41932 "\n"
41933 msgstr ""
41934
41935 #. type: verbatim
41936 #: ../tools/virt-tar.pl:41
41937 #, no-wrap
41938 msgid ""
41939 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41940 "\n"
41941 msgstr ""
41942
41943 #. type: verbatim
41944 #: ../tools/virt-tar.pl:43
41945 #, no-wrap
41946 msgid ""
41947 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41948 "\n"
41949 msgstr ""
41950
41951 #. type: =head2
41952 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41953 msgid "NOTE"
41954 msgstr ""
41955
41956 #. type: textblock
41957 #: ../tools/virt-tar.pl:47
41958 msgid ""
41959 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41960 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41961 msgstr ""
41962
41963 #. type: textblock
41964 #: ../tools/virt-tar.pl:52
41965 msgid "Download C</home> from the VM into a local tarball:"
41966 msgstr ""
41967
41968 #. type: verbatim
41969 #: ../tools/virt-tar.pl:54
41970 #, no-wrap
41971 msgid ""
41972 " virt-tar -x domname /home home.tar\n"
41973 "\n"
41974 msgstr ""
41975
41976 #. type: verbatim
41977 #: ../tools/virt-tar.pl:56
41978 #, no-wrap
41979 msgid ""
41980 " virt-tar -zx domname /home home.tar.gz\n"
41981 "\n"
41982 msgstr ""
41983
41984 #. type: textblock
41985 #: ../tools/virt-tar.pl:58
41986 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41987 msgstr ""
41988
41989 #. type: verbatim
41990 #: ../tools/virt-tar.pl:60
41991 #, no-wrap
41992 msgid ""
41993 " virt-tar -u domname uploadstuff.tar /tmp\n"
41994 "\n"
41995 msgstr ""
41996
41997 #. type: verbatim
41998 #: ../tools/virt-tar.pl:62
41999 #, no-wrap
42000 msgid ""
42001 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42002 "\n"
42003 msgstr ""
42004
42005 #. type: textblock
42006 #: ../tools/virt-tar.pl:66
42007 msgid ""
42008 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42009 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42010 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42011 msgstr ""
42012
42013 #. type: textblock
42014 #: ../tools/virt-tar.pl:71
42015 msgid ""
42016 "You can use I<-x> (extract) on live virtual machines, but you might get "
42017 "inconsistent results or errors if there is filesystem activity inside the "
42018 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42019 "work, but the only way to guarantee consistent results is if the virtual "
42020 "machine is shut down."
42021 msgstr ""
42022
42023 #. type: textblock
42024 #: ../tools/virt-tar.pl:79
42025 msgid ""
42026 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42027 "parts of a guest filesystem.  There are many possibilities: making backups, "
42028 "uploading data files, snooping on guest activity, fixing or customizing "
42029 "guests, etc."
42030 msgstr ""
42031
42032 #. type: textblock
42033 #: ../tools/virt-tar.pl:84
42034 msgid ""
42035 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42036 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42037 "should look at the L<guestfish(1)> tool."
42038 msgstr ""
42039
42040 #. type: textblock
42041 #: ../tools/virt-tar.pl:88
42042 msgid ""
42043 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42044 "its contents (recursively) from the virtual machine into a local tarball.  "
42045 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42046 "virtual machine.  You cannot use these two options together."
42047 msgstr ""
42048
42049 #. type: textblock
42050 #: ../tools/virt-tar.pl:94
42051 msgid ""
42052 "In addition, you may need to use the I<-z> (gZip) option to enable "
42053 "compression.  When uploading, you have to specify I<-z> if the upload file "
42054 "is compressed because virt-tar won't detect this on its own."
42055 msgstr ""
42056
42057 #. type: textblock
42058 #: ../tools/virt-tar.pl:98
42059 msgid ""
42060 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42061 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42062 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42063 "the L<libguestfs(3)> API)."
42064 msgstr ""
42065
42066 #. type: =item
42067 #: ../tools/virt-tar.pl:160
42068 msgid "B<--extract>"
42069 msgstr ""
42070
42071 #. type: =item
42072 #: ../tools/virt-tar.pl:162
42073 msgid "B<--download>"
42074 msgstr ""
42075
42076 #. type: =item
42077 #: ../tools/virt-tar.pl:164
42078 msgid "B<-u>"
42079 msgstr ""
42080
42081 #. type: =item
42082 #: ../tools/virt-tar.pl:166
42083 msgid "B<--upload>"
42084 msgstr ""
42085
42086 #. type: textblock
42087 #: ../tools/virt-tar.pl:168
42088 msgid ""
42089 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42090 "local tarball."
42091 msgstr ""
42092
42093 #. type: textblock
42094 #: ../tools/virt-tar.pl:171
42095 msgid ""
42096 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42097 "Please read the L</WARNING> section above before using this option."
42098 msgstr ""
42099
42100 #. type: textblock
42101 #: ../tools/virt-tar.pl:175
42102 msgid "You must specify exactly one of these options."
42103 msgstr ""
42104
42105 #. type: =item
42106 #: ../tools/virt-tar.pl:181
42107 msgid "B<-z>"
42108 msgstr ""
42109
42110 #. type: =item
42111 #: ../tools/virt-tar.pl:183
42112 msgid "B<--gzip>"
42113 msgstr ""
42114
42115 #. type: textblock
42116 #: ../tools/virt-tar.pl:185
42117 msgid "Specify that the input or output tarball is gzip-compressed."
42118 msgstr ""
42119
42120 #. type: textblock
42121 #: ../tools/virt-tar.pl:298
42122 msgid ""
42123 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42124 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42125 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42126 "org/>."
42127 msgstr ""
42128
42129 #. type: textblock
42130 #: ../tools/virt-win-reg.pl:37
42131 msgid ""
42132 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42133 msgstr ""
42134
42135 #. type: verbatim
42136 #: ../tools/virt-win-reg.pl:41
42137 #, no-wrap
42138 msgid ""
42139 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42140 "\n"
42141 msgstr ""
42142
42143 #. type: verbatim
42144 #: ../tools/virt-win-reg.pl:43
42145 #, no-wrap
42146 msgid ""
42147 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42148 "\n"
42149 msgstr ""
42150
42151 #. type: verbatim
42152 #: ../tools/virt-win-reg.pl:45
42153 #, no-wrap
42154 msgid ""
42155 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42156 "\n"
42157 msgstr ""
42158
42159 #. type: verbatim
42160 #: ../tools/virt-win-reg.pl:47
42161 #, no-wrap
42162 msgid ""
42163 " virt-win-reg --merge domname [input.reg ...]\n"
42164 "\n"
42165 msgstr ""
42166
42167 #. type: verbatim
42168 #: ../tools/virt-win-reg.pl:49
42169 #, no-wrap
42170 msgid ""
42171 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42172 "\n"
42173 msgstr ""
42174
42175 #. type: textblock
42176 #: ../tools/virt-win-reg.pl:53
42177 msgid ""
42178 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42179 "virtual machines.  If you do this, you I<will> get irreversible disk "
42180 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42181 "but doesn't catch all cases."
42182 msgstr ""
42183
42184 #. type: textblock
42185 #: ../tools/virt-win-reg.pl:58
42186 msgid ""
42187 "Modifying the Windows Registry is an inherently risky operation.  The format "
42188 "is deliberately obscure and undocumented, and Registry changes can leave the "
42189 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42190 "you have a reliable backup first."
42191 msgstr ""
42192
42193 #. type: textblock
42194 #: ../tools/virt-win-reg.pl:65
42195 msgid ""
42196 "This program can export and merge Windows Registry entries from a Windows "
42197 "guest."
42198 msgstr ""
42199
42200 #. type: textblock
42201 #: ../tools/virt-win-reg.pl:68
42202 msgid ""
42203 "The first parameter is the libvirt guest name or the raw disk image of a "
42204 "Windows guest."
42205 msgstr ""
42206
42207 #. type: textblock
42208 #: ../tools/virt-win-reg.pl:71
42209 msgid ""
42210 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42211 "exported (recursively).  For example:"
42212 msgstr ""
42213
42214 #. type: verbatim
42215 #: ../tools/virt-win-reg.pl:74
42216 #, no-wrap
42217 msgid ""
42218 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42219 "\n"
42220 msgstr ""
42221
42222 #. type: textblock
42223 #: ../tools/virt-win-reg.pl:76
42224 msgid ""
42225 "You can also display single values from within registry keys, for example:"
42226 msgstr ""
42227
42228 #. type: verbatim
42229 #: ../tools/virt-win-reg.pl:79
42230 #, no-wrap
42231 msgid ""
42232 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42233 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42234 " Windows 7 Enterprise\n"
42235 "\n"
42236 msgstr ""
42237
42238 #. type: textblock
42239 #: ../tools/virt-win-reg.pl:83
42240 msgid ""
42241 "With I<--merge>, you can merge a textual regedit file into the Windows "
42242 "Registry:"
42243 msgstr ""
42244
42245 #. type: verbatim
42246 #: ../tools/virt-win-reg.pl:86
42247 #, no-wrap
42248 msgid ""
42249 " $ virt-win-reg --merge Windows7 changes.reg\n"
42250 "\n"
42251 msgstr ""
42252
42253 #. type: textblock
42254 #: ../tools/virt-win-reg.pl:90
42255 msgid ""
42256 "This program is only meant for simple access to the registry.  If you want "
42257 "to do complicated things with the registry, we suggest you download the "
42258 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42259 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42260 "L<hivexregedit(1)>."
42261 msgstr ""
42262
42263 #. type: =item
42264 #: ../tools/virt-win-reg.pl:159
42265 msgid "B<--merge>"
42266 msgstr ""
42267
42268 #. type: textblock
42269 #: ../tools/virt-win-reg.pl:161
42270 msgid ""
42271 "In merge mode, this merges a textual regedit file into the Windows Registry "
42272 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42273 "displays or exports Registry entries instead."
42274 msgstr ""
42275
42276 #. type: textblock
42277 #: ../tools/virt-win-reg.pl:165
42278 msgid ""
42279 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42280 "result in disk corruption.  However exporting (without this flag)  is always "
42281 "safe."
42282 msgstr ""
42283
42284 #. type: =item
42285 #: ../tools/virt-win-reg.pl:173
42286 msgid "B<--encoding> UTF-16LE|ASCII"
42287 msgstr ""
42288
42289 #. type: textblock
42290 #: ../tools/virt-win-reg.pl:175
42291 msgid ""
42292 "When merging (only), you may need to specify the encoding for strings to be "
42293 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42294 "(3)/ENCODING STRINGS>."
42295 msgstr ""
42296
42297 #. type: textblock
42298 #: ../tools/virt-win-reg.pl:179
42299 msgid ""
42300 "The default is to use UTF-16LE, which should work with recent versions of "
42301 "Windows."
42302 msgstr ""
42303
42304 #. type: =item
42305 #: ../tools/virt-win-reg.pl:186
42306 msgid "B<--unsafe-printable-strings>"
42307 msgstr ""
42308
42309 #. type: textblock
42310 #: ../tools/virt-win-reg.pl:188
42311 msgid ""
42312 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42313 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42314 "present."
42315 msgstr ""
42316
42317 #. type: textblock
42318 #: ../tools/virt-win-reg.pl:192
42319 msgid ""
42320 "This is unsafe and does not preserve the fidelity of strings in the original "
42321 "Registry for various reasons:"
42322 msgstr ""
42323
42324 #. type: textblock
42325 #: ../tools/virt-win-reg.pl:199
42326 msgid ""
42327 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42328 "other encodings will be corrupted by this transformation."
42329 msgstr ""
42330
42331 #. type: textblock
42332 #: ../tools/virt-win-reg.pl:204
42333 msgid ""
42334 "Assumes that everything which has type 1 or 2 is really a string and that "
42335 "everything else is not a string, but the type field in real Registries is "
42336 "not reliable."
42337 msgstr ""
42338
42339 #. type: textblock
42340 #: ../tools/virt-win-reg.pl:210
42341 msgid ""
42342 "Loses information about whether a zero codepoint followed the string in the "
42343 "Registry or not."
42344 msgstr ""
42345
42346 #. type: textblock
42347 #: ../tools/virt-win-reg.pl:215
42348 msgid ""
42349 "This all happens because the Registry itself contains no information about "
42350 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42351 msgstr ""
42352
42353 #. type: textblock
42354 #: ../tools/virt-win-reg.pl:219
42355 msgid ""
42356 "You should only use this option for quick hacking and debugging of the "
42357 "Registry contents, and I<never> use it if the output is going to be passed "
42358 "into another program or stored in another Registry."
42359 msgstr ""
42360
42361 #. type: =head1
42362 #: ../tools/virt-win-reg.pl:556
42363 msgid "SUPPORTED SYSTEMS"
42364 msgstr ""
42365
42366 #. type: textblock
42367 #: ../tools/virt-win-reg.pl:558
42368 msgid ""
42369 "The program currently supports Windows NT-derived guests starting with "
42370 "Windows XP through to at least Windows 7."
42371 msgstr ""
42372
42373 #. type: textblock
42374 #: ../tools/virt-win-reg.pl:561
42375 msgid "The following Registry keys are supported:"
42376 msgstr ""
42377
42378 #. type: =item
42379 #: ../tools/virt-win-reg.pl:565
42380 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42381 msgstr ""
42382
42383 #. type: =item
42384 #: ../tools/virt-win-reg.pl:567
42385 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42386 msgstr ""
42387
42388 #. type: =item
42389 #: ../tools/virt-win-reg.pl:569
42390 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42391 msgstr ""
42392
42393 #. type: =item
42394 #: ../tools/virt-win-reg.pl:571
42395 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42396 msgstr ""
42397
42398 #. type: =item
42399 #: ../tools/virt-win-reg.pl:573
42400 msgid "C<HKEY_USERS\\.DEFAULT>"
42401 msgstr ""
42402
42403 #. type: =item
42404 #: ../tools/virt-win-reg.pl:575
42405 msgid "C<HKEY_USERS\\I<SID>>"
42406 msgstr ""
42407
42408 #. type: textblock
42409 #: ../tools/virt-win-reg.pl:577
42410 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42411 msgstr ""
42412
42413 #. type: =item
42414 #: ../tools/virt-win-reg.pl:579
42415 msgid "C<HKEY_USERS\\I<username>>"
42416 msgstr ""
42417
42418 #. type: textblock
42419 #: ../tools/virt-win-reg.pl:581
42420 msgid ""
42421 "where I<username> is a local user name (this is a libguestfs extension)."
42422 msgstr ""
42423
42424 #. type: textblock
42425 #: ../tools/virt-win-reg.pl:585
42426 msgid ""
42427 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42428 "C<HKEY_USERS>."
42429 msgstr ""
42430
42431 #. type: textblock
42432 #: ../tools/virt-win-reg.pl:588
42433 msgid ""
42434 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42435 "supported (there is no \"current user\")."
42436 msgstr ""
42437
42438 #. type: =head1
42439 #: ../tools/virt-win-reg.pl:591
42440 msgid "ENCODING"
42441 msgstr ""
42442
42443 #. type: textblock
42444 #: ../tools/virt-win-reg.pl:593
42445 msgid ""
42446 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42447 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
42448 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
42449 "Windows-style line endings, you may need to reencode the whole file before "
42450 "or after processing."
42451 msgstr ""
42452
42453 #. type: textblock
42454 #: ../tools/virt-win-reg.pl:599
42455 msgid ""
42456 "To reencode a file from Windows format to Linux (before processing it with "
42457 "the I<--merge> option), you would do something like this:"
42458 msgstr ""
42459
42460 #. type: verbatim
42461 #: ../tools/virt-win-reg.pl:602
42462 #, no-wrap
42463 msgid ""
42464 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42465 "\n"
42466 msgstr ""
42467
42468 #. type: textblock
42469 #: ../tools/virt-win-reg.pl:604
42470 msgid ""
42471 "To go in the opposite direction, after exporting and before sending the file "
42472 "to a Windows user, do something like this:"
42473 msgstr ""
42474
42475 #. type: verbatim
42476 #: ../tools/virt-win-reg.pl:607
42477 #, no-wrap
42478 msgid ""
42479 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42480 "\n"
42481 msgstr ""
42482
42483 #. type: textblock
42484 #: ../tools/virt-win-reg.pl:609
42485 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42486 msgstr ""
42487
42488 #. type: textblock
42489 #: ../tools/virt-win-reg.pl:611
42490 msgid ""
42491 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42492 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42493 "style (CRLF) line endings, like this:"
42494 msgstr ""
42495
42496 #. type: verbatim
42497 #: ../tools/virt-win-reg.pl:615
42498 #, no-wrap
42499 msgid ""
42500 " $ file software.reg\n"
42501 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42502 " with CRLF line terminators\n"
42503 "\n"
42504 msgstr ""
42505
42506 #. type: textblock
42507 #: ../tools/virt-win-reg.pl:619
42508 msgid "This file would need conversion before you could I<--merge> it."
42509 msgstr ""
42510
42511 #. type: =head1
42512 #: ../tools/virt-win-reg.pl:621
42513 msgid "CurrentControlSet etc."
42514 msgstr ""
42515
42516 #. type: textblock
42517 #: ../tools/virt-win-reg.pl:623
42518 msgid ""
42519 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42520 "Registry at the level of the hive file, and therefore you cannot modify "
42521 "these."
42522 msgstr ""
42523
42524 #. type: textblock
42525 #: ../tools/virt-win-reg.pl:627
42526 msgid ""
42527 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42528 "circumstances it might refer to another control set.  The way to find out is "
42529 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42530 msgstr ""
42531
42532 #. type: verbatim
42533 #: ../tools/virt-win-reg.pl:631
42534 #, no-wrap
42535 msgid ""
42536 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42537 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42538 " \"Current\"=dword:00000001\n"
42539 " \"Default\"=dword:00000001\n"
42540 " \"Failed\"=dword:00000000\n"
42541 " \"LastKnownGood\"=dword:00000002\n"
42542 "\n"
42543 msgstr ""
42544
42545 #. type: textblock
42546 #: ../tools/virt-win-reg.pl:638
42547 msgid "\"Current\" is the one which Windows will choose when it boots."
42548 msgstr ""
42549
42550 #. type: textblock
42551 #: ../tools/virt-win-reg.pl:640
42552 msgid ""
42553 "Similarly, other C<Current...> keys in the path may need to be replaced."
42554 msgstr ""
42555
42556 #. type: =head1
42557 #: ../tools/virt-win-reg.pl:643
42558 msgid "DELETING REGISTRY KEYS AND VALUES"
42559 msgstr ""
42560
42561 #. type: textblock
42562 #: ../tools/virt-win-reg.pl:645
42563 msgid "To delete a whole registry key, use the syntax:"
42564 msgstr ""
42565
42566 #. type: verbatim
42567 #: ../tools/virt-win-reg.pl:647
42568 #, no-wrap
42569 msgid ""
42570 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42571 "\n"
42572 msgstr ""
42573
42574 #. type: textblock
42575 #: ../tools/virt-win-reg.pl:649
42576 msgid "To delete a single value within a key, use the syntax:"
42577 msgstr ""
42578
42579 #. type: verbatim
42580 #: ../tools/virt-win-reg.pl:651
42581 #, no-wrap
42582 msgid ""
42583 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42584 " \"Value\"=-\n"
42585 "\n"
42586 msgstr ""
42587
42588 #. type: =head1
42589 #: ../tools/virt-win-reg.pl:654
42590 msgid "WINDOWS TIPS"
42591 msgstr ""
42592
42593 #. type: textblock
42594 #: ../tools/virt-win-reg.pl:656
42595 msgid ""
42596 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42597 "be shut off, else you will get disk corruption."
42598 msgstr ""
42599
42600 #. type: =head2
42601 #: ../tools/virt-win-reg.pl:659
42602 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42603 msgstr ""
42604
42605 #. type: textblock
42606 #: ../tools/virt-win-reg.pl:661
42607 msgid ""
42608 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42609 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42610 "is uploaded into C<C:\\>:"
42611 msgstr ""
42612
42613 #. type: verbatim
42614 #: ../tools/virt-win-reg.pl:665
42615 #, no-wrap
42616 msgid ""
42617 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42618 "\n"
42619 msgstr ""
42620
42621 #. type: textblock
42622 #: ../tools/virt-win-reg.pl:667
42623 msgid "Prepare a regedit file containing the registry change:"
42624 msgstr ""
42625
42626 #. type: verbatim
42627 #: ../tools/virt-win-reg.pl:669
42628 #, no-wrap
42629 msgid ""
42630 " cat > test.reg <<'EOF'\n"
42631 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42632 " \"Test\"=\"c:\\\\test.bat\"\n"
42633 " EOF\n"
42634 "\n"
42635 msgstr ""
42636
42637 #. type: textblock
42638 #: ../tools/virt-win-reg.pl:674
42639 msgid ""
42640 "In this example we use the key C<RunOnce> which means that the script will "
42641 "run precisely once when the first user logs in.  If you want it to run every "
42642 "time a user logs in, replace C<RunOnce> with C<Run>."
42643 msgstr ""
42644
42645 #. type: textblock
42646 #: ../tools/virt-win-reg.pl:678
42647 msgid "Now update the registry:"
42648 msgstr ""
42649
42650 #. type: verbatim
42651 #: ../tools/virt-win-reg.pl:680
42652 #, no-wrap
42653 msgid ""
42654 " virt-win-reg --merge WindowsGuest test.reg\n"
42655 "\n"
42656 msgstr ""
42657
42658 #. type: =head2
42659 #: ../tools/virt-win-reg.pl:682
42660 msgid "INSTALLING A SERVICE"
42661 msgstr ""
42662
42663 #. type: textblock
42664 #: ../tools/virt-win-reg.pl:684
42665 msgid ""
42666 "This section assumes you are familiar with Windows services, and you either "
42667 "have a program which handles the Windows Service Control Protocol directly "
42668 "or you want to run any program using a service wrapper like SrvAny or the "
42669 "free RHSrvAny."
42670 msgstr ""
42671
42672 #. type: textblock
42673 #: ../tools/virt-win-reg.pl:689
42674 msgid ""
42675 "First upload the program and optionally the service wrapper.  In this case "
42676 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42677 msgstr ""
42678
42679 #. type: verbatim
42680 #: ../tools/virt-win-reg.pl:693
42681 #, no-wrap
42682 msgid ""
42683 " guestfish -i -d WindowsGuest <<EOF\n"
42684 "   upload rhsrvany.exe /rhsrvany.exe\n"
42685 "   upload test.exe /test.exe\n"
42686 " EOF\n"
42687 "\n"
42688 msgstr ""
42689
42690 #. type: textblock
42691 #: ../tools/virt-win-reg.pl:698
42692 msgid ""
42693 "Prepare a regedit file containing the registry changes.  In this example, "
42694 "the first registry change is needed for the service itself or the service "
42695 "wrapper (if used).  The second registry change is only needed because I am "
42696 "using the RHSrvAny service wrapper."
42697 msgstr ""
42698
42699 #. type: verbatim
42700 #: ../tools/virt-win-reg.pl:703
42701 #, no-wrap
42702 msgid ""
42703 " cat > service.reg <<'EOF'\n"
42704 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42705 " \"Type\"=dword:00000010\n"
42706 " \"Start\"=dword:00000002\n"
42707 " \"ErrorControl\"=dword:00000001\n"
42708 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42709 " \"DisplayName\"=\"RHSrvAny\"\n"
42710 " \"ObjectName\"=\"NetworkService\"\n"
42711 " \n"
42712 msgstr ""
42713
42714 #. type: verbatim
42715 #: ../tools/virt-win-reg.pl:712
42716 #, no-wrap
42717 msgid ""
42718 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42719 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42720 " \"PWD\"=\"c:\\\\Temp\"\n"
42721 " EOF\n"
42722 "\n"
42723 msgstr ""
42724
42725 #. type: textblock
42726 #: ../tools/virt-win-reg.pl:723
42727 msgid ""
42728 "For use of C<ControlSet001> see the section above in this manual page.  You "
42729 "may need to adjust this according to the control set that is in use by the "
42730 "guest."
42731 msgstr ""
42732
42733 #. type: textblock
42734 #: ../tools/virt-win-reg.pl:729
42735 msgid ""
42736 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42737 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42738 "privileged account."
42739 msgstr ""
42740
42741 #. type: textblock
42742 #: ../tools/virt-win-reg.pl:735
42743 msgid ""
42744 "For the meaning of the magic numbers, see this Microsoft KB article: "
42745 "L<http://support.microsoft.com/kb/103000>."
42746 msgstr ""
42747
42748 #. type: textblock
42749 #: ../tools/virt-win-reg.pl:740
42750 msgid "Update the registry:"
42751 msgstr ""
42752
42753 #. type: verbatim
42754 #: ../tools/virt-win-reg.pl:742
42755 #, no-wrap
42756 msgid ""
42757 " virt-win-reg --merge WindowsGuest service.reg\n"
42758 "\n"
42759 msgstr ""
42760
42761 #. type: textblock
42762 #: ../tools/virt-win-reg.pl:746
42763 msgid ""
42764 "Be careful when passing parameters containing C<\\> (backslash) in the "
42765 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42766 "(but not both) to protect them from the shell."
42767 msgstr ""
42768
42769 #. type: textblock
42770 #: ../tools/virt-win-reg.pl:750
42771 msgid "Paths and value names are case-insensitive."
42772 msgstr ""
42773
42774 #. type: textblock
42775 #: ../tools/virt-win-reg.pl:759
42776 msgid ""
42777 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42778 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42779 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42780 msgstr ""
42781
42782 #. type: verbatim
42783 #: ../tools/virt-win-reg.pl:777
42784 #, no-wrap
42785 msgid ""
42786 " export LIBGUESTFS_DEBUG=1\n"
42787 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42788 "\n"
42789 msgstr ""
42790
42791 #. type: textblock
42792 #: ../tools/virt-win-reg.pl:780
42793 msgid ""
42794 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42795 "redhat.com/>"
42796 msgstr ""