5e951f35d22de51942541ef871e4a5e51cbe8c33
[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-29 21:47+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 ../examples/guestfs-testing.pod:3
28 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
29 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
30 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
31 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
32 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
33 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
34 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
35 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
36 #: ../test-tool/libguestfs-test-tool.pod:3
37 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
38 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
39 #: ../tools/virt-win-reg.pl:35
40 msgid "NAME"
41 msgstr "名前"
42
43 #. type: textblock
44 #: ../align/virt-alignment-scan.pod:5
45 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
46 msgstr ""
47
48 #. type: =head1
49 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
50 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
51 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
52 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
53 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
54 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
55 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
56 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
57 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
58 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
59 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
60 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
61 #: ../test-tool/libguestfs-test-tool.pod:7
62 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
63 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
64 #: ../tools/virt-win-reg.pl:39
65 msgid "SYNOPSIS"
66 msgstr ""
67
68 #. type: verbatim
69 #: ../align/virt-alignment-scan.pod:9
70 #, no-wrap
71 msgid ""
72 " virt-alignment-scan [--options] -d domname\n"
73 "\n"
74 msgstr ""
75
76 #. type: verbatim
77 #: ../align/virt-alignment-scan.pod:11
78 #, no-wrap
79 msgid ""
80 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
81 "\n"
82 msgstr ""
83
84 #. type: =head1
85 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
86 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
87 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
88 #: ../erlang/examples/guestfs-erlang.pod:16
89 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
90 #: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30
91 #: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13
92 #: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15
93 #: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19
94 #: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25
95 #: ../perl/examples/guestfs-perl.pod:18
96 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
97 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
98 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
99 #: ../test-tool/libguestfs-test-tool.pod:11
100 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
101 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
102 #: ../tools/virt-win-reg.pl:63
103 msgid "DESCRIPTION"
104 msgstr ""
105
106 #. type: textblock
107 #: ../align/virt-alignment-scan.pod:15
108 msgid ""
109 "When older operating systems install themselves, the partitioning tools "
110 "place partitions at a sector misaligned with the underlying storage "
111 "(commonly the first partition starts on sector C<63>).  Misaligned "
112 "partitions can result in an operating system issuing more I/O than should be "
113 "necessary."
114 msgstr ""
115
116 #. type: textblock
117 #: ../align/virt-alignment-scan.pod:21
118 msgid ""
119 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
120 "machines and disk images and warns you if there are alignment problems."
121 msgstr ""
122
123 #. type: textblock
124 #: ../align/virt-alignment-scan.pod:25
125 msgid ""
126 "Currently there is no virt tool for fixing alignment problems.  You can only "
127 "reinstall the guest operating system.  The following NetApp document "
128 "summarises the problem and possible solutions: L<http://media.netapp.com/"
129 "documents/tr-3747.pdf>"
130 msgstr ""
131
132 #. type: =head1
133 #: ../align/virt-alignment-scan.pod:30
134 msgid "OUTPUT"
135 msgstr ""
136
137 #. type: textblock
138 #: ../align/virt-alignment-scan.pod:32
139 msgid "To run this tool on a disk image directly, use the I<-a> option:"
140 msgstr ""
141
142 #. type: verbatim
143 #: ../align/virt-alignment-scan.pod:34
144 #, no-wrap
145 msgid ""
146 " $ virt-alignment-scan -a winxp.img\n"
147 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
148 "\n"
149 msgstr ""
150
151 #. type: verbatim
152 #: ../align/virt-alignment-scan.pod:37
153 #, no-wrap
154 msgid ""
155 " $ virt-alignment-scan -a fedora16.img\n"
156 " /dev/sda1      1048576         1024K   ok\n"
157 " /dev/sda2      2097152         2048K   ok\n"
158 " /dev/sda3    526385152         2048K   ok\n"
159 "\n"
160 msgstr ""
161
162 #. type: textblock
163 #: ../align/virt-alignment-scan.pod:42
164 msgid ""
165 "To run the tool on a guest known to libvirt, use the I<-d> option and "
166 "possibly the I<-c> option:"
167 msgstr ""
168
169 #. type: verbatim
170 #: ../align/virt-alignment-scan.pod:45
171 #, no-wrap
172 msgid ""
173 " # virt-alignment-scan -d RHEL5\n"
174 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
175 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
176 "\n"
177 msgstr ""
178
179 #. type: verbatim
180 #: ../align/virt-alignment-scan.pod:49
181 #, no-wrap
182 msgid ""
183 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
184 " /dev/sda1      1048576         1024K   ok\n"
185 " /dev/sda2    105906176         1024K   ok\n"
186 " /dev/sdb1        65536           64K   ok\n"
187 "\n"
188 msgstr ""
189
190 #. type: textblock
191 #: ../align/virt-alignment-scan.pod:54
192 msgid ""
193 "The output consists of 4 or more whitespace-separated columns.  Only the "
194 "first 4 columns are signficant if you want to parse this from a program.  "
195 "The columns are:"
196 msgstr ""
197
198 #. type: =item
199 #: ../align/virt-alignment-scan.pod:60
200 msgid "col 1"
201 msgstr ""
202
203 #. type: textblock
204 #: ../align/virt-alignment-scan.pod:62
205 msgid ""
206 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
207 "on the first block device)"
208 msgstr ""
209
210 #. type: =item
211 #: ../align/virt-alignment-scan.pod:65
212 msgid "col 2"
213 msgstr ""
214
215 #. type: textblock
216 #: ../align/virt-alignment-scan.pod:67
217 msgid "the start of the partition in bytes"
218 msgstr ""
219
220 #. type: =item
221 #: ../align/virt-alignment-scan.pod:69
222 msgid "col 3"
223 msgstr ""
224
225 #. type: textblock
226 #: ../align/virt-alignment-scan.pod:71
227 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
228 msgstr ""
229
230 #. type: =item
231 #: ../align/virt-alignment-scan.pod:73
232 msgid "col 4"
233 msgstr ""
234
235 #. type: textblock
236 #: ../align/virt-alignment-scan.pod:75
237 msgid ""
238 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
239 "can cause performance problems"
240 msgstr ""
241
242 #. type: =item
243 #: ../align/virt-alignment-scan.pod:78
244 msgid "cols 5+"
245 msgstr ""
246
247 #. type: textblock
248 #: ../align/virt-alignment-scan.pod:80
249 msgid "optional free-text explanation."
250 msgstr ""
251
252 #. type: textblock
253 #: ../align/virt-alignment-scan.pod:84
254 msgid ""
255 "The exit code from the program changes depending on whether poorly aligned "
256 "partitions were found.  See L</EXIT STATUS> below."
257 msgstr ""
258
259 #. type: textblock
260 #: ../align/virt-alignment-scan.pod:87
261 msgid "If you just want the exit code with no output, use the I<-q> option."
262 msgstr ""
263
264 #. type: =head1
265 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
266 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
267 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
268 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
269 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
270 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
271 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
272 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
273 #: ../test-tool/libguestfs-test-tool.pod:36
274 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
275 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
276 #: ../tools/virt-win-reg.pl:96
277 msgid "OPTIONS"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
282 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
283 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
284 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
285 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
286 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
287 #: ../test-tool/libguestfs-test-tool.pod:40
288 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
289 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
290 #: ../tools/virt-win-reg.pl:104
291 msgid "B<--help>"
292 msgstr ""
293
294 #. type: textblock
295 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
296 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
297 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
298 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
299 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
300 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
301 #: ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr ""
304
305 #. type: =item
306 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
308 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
309 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
310 msgid "B<-a> file"
311 msgstr ""
312
313 #. type: =item
314 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
316 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
317 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
318 msgid "B<--add> file"
319 msgstr ""
320
321 #. type: textblock
322 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
323 msgid "Add I<file> which should be a disk image from a virtual machine."
324 msgstr ""
325
326 #. type: textblock
327 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
329 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
330 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
331 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
332 msgid ""
333 "The format of the disk image is auto-detected.  To override this and force a "
334 "particular format use the I<--format=..> option."
335 msgstr ""
336
337 #. type: =item
338 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
340 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
341 #: ../rescue/virt-rescue.pod:135
342 msgid "B<-c> URI"
343 msgstr ""
344
345 #. type: =item
346 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
347 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
348 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
349 #: ../rescue/virt-rescue.pod:137
350 msgid "B<--connect> URI"
351 msgstr ""
352
353 #. type: textblock
354 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
355 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
356 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
357 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
358 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
359 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
360 msgid ""
361 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
362 "to the default libvirt hypervisor."
363 msgstr ""
364
365 #. type: textblock
366 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
367 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
368 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
369 #: ../rescue/virt-rescue.pod:142
370 msgid ""
371 "If you specify guest block devices directly (I<-a>), then libvirt is not "
372 "used at all."
373 msgstr ""
374
375 #. type: =item
376 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
377 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
378 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
379 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
380 msgid "B<-d> guest"
381 msgstr ""
382
383 #. type: =item
384 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
385 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
386 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
387 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
388 msgid "B<--domain> guest"
389 msgstr ""
390
391 #. type: textblock
392 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
393 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
394 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
395 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
396 msgid ""
397 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
398 "instead of names."
399 msgstr ""
400
401 #. type: =item
402 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
403 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
404 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
405 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
406 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
407 msgid "B<--format=raw|qcow2|..>"
408 msgstr ""
409
410 #. type: =item
411 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
412 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
413 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
414 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
415 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
416 #: ../rescue/virt-rescue.pod:154
417 msgid "B<--format>"
418 msgstr ""
419
420 #. type: textblock
421 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
422 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
423 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
424 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
425 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
426 msgid ""
427 "The default for the I<-a> option is to auto-detect the format of the disk "
428 "image.  Using this forces the disk format for I<-a> options which follow on "
429 "the command line.  Using I<--format> with no argument switches back to auto-"
430 "detection for subsequent I<-a> options."
431 msgstr ""
432
433 #. type: textblock
434 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
435 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
436 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
437 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
438 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
439 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
440 msgid "For example:"
441 msgstr ""
442
443 #. type: verbatim
444 #: ../align/virt-alignment-scan.pod:134
445 #, no-wrap
446 msgid ""
447 " virt-alignment-scan --format=raw -a disk.img\n"
448 "\n"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
453 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
454 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
455 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
456 #: ../rescue/virt-rescue.pod:165
457 msgid "forces raw format (no auto-detection) for C<disk.img>."
458 msgstr ""
459
460 #. type: verbatim
461 #: ../align/virt-alignment-scan.pod:138
462 #, no-wrap
463 msgid ""
464 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
465 "\n"
466 msgstr ""
467
468 #. type: textblock
469 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
470 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
471 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
472 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
473 #: ../rescue/virt-rescue.pod:169
474 msgid ""
475 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
476 "detection for C<another.img>."
477 msgstr ""
478
479 #. type: textblock
480 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
481 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
482 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
483 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
484 msgid ""
485 "If you have untrusted raw-format guest disk images, you should use this "
486 "option to specify the disk format.  This avoids a possible security problem "
487 "with malicious guests (CVE-2010-3851)."
488 msgstr ""
489
490 #. type: =item
491 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497
492 #: ../sparsify/virt-sparsify.pod:177
493 msgid "B<-q>"
494 msgstr ""
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499
498 #: ../sparsify/virt-sparsify.pod:179
499 msgid "B<--quiet>"
500 msgstr ""
501
502 #. type: textblock
503 #: ../align/virt-alignment-scan.pod:151
504 msgid ""
505 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
506 "below)."
507 msgstr ""
508
509 #. type: =item
510 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
511 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
512 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
513 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
514 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
515 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:183
516 msgid "B<-v>"
517 msgstr ""
518
519 #. type: =item
520 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
521 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
522 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
523 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
524 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
525 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:185
526 msgid "B<--verbose>"
527 msgstr ""
528
529 #. type: textblock
530 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
531 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
532 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
533 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
534 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:187
535 msgid "Enable verbose messages for debugging."
536 msgstr ""
537
538 #. type: =item
539 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
540 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
541 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
542 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
543 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
544 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:567
545 #: ../sparsify/virt-sparsify.pod:189
546 msgid "B<-V>"
547 msgstr ""
548
549 #. type: =item
550 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
551 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
552 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
553 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
554 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
555 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:569
556 #: ../sparsify/virt-sparsify.pod:191 ../tools/virt-list-filesystems.pl:69
557 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
558 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
559 msgid "B<--version>"
560 msgstr ""
561
562 #. type: textblock
563 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
564 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
565 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
566 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
567 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:571
568 #: ../sparsify/virt-sparsify.pod:193 ../tools/virt-list-filesystems.pl:71
569 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
570 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
571 msgid "Display version number and exit."
572 msgstr ""
573
574 #. type: =item
575 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
576 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
577 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
578 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
579 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
580 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:195
581 #: ../tools/virt-tar.pl:158
582 msgid "B<-x>"
583 msgstr ""
584
585 #. type: textblock
586 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
587 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
588 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
589 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
590 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:197
591 msgid "Enable tracing of libguestfs API calls."
592 msgstr ""
593
594 #. type: =head1
595 #: ../align/virt-alignment-scan.pod:172
596 msgid "RECOMMENDED ALIGNMENT"
597 msgstr ""
598
599 #. type: textblock
600 #: ../align/virt-alignment-scan.pod:174
601 msgid ""
602 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
603 "first sector of the first partition at sector 63, with a 512 byte sector "
604 "size.  This happens because of a historical accident.  Drives have to report "
605 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
606 "completely meaningless on modern drives, but it happens that the geometry "
607 "reported always has 63 sectors per track.  The operating system therefore "
608 "places the first partition at the start of the second \"track\", at sector "
609 "63."
610 msgstr ""
611
612 #. type: textblock
613 #: ../align/virt-alignment-scan.pod:183
614 msgid ""
615 "When the guest OS is virtualized, the host operating system and hypervisor "
616 "may prefer accesses aligned to one of:"
617 msgstr ""
618
619 #. type: =item
620 #: ../align/virt-alignment-scan.pod:188
621 msgid "* 512 bytes"
622 msgstr ""
623
624 #. type: textblock
625 #: ../align/virt-alignment-scan.pod:190
626 msgid ""
627 "if the host OS uses local storage directly on hard drive partitions, and the "
628 "hard drive has 512 byte physical sectors."
629 msgstr ""
630
631 #. type: =item
632 #: ../align/virt-alignment-scan.pod:193
633 msgid "* 4 Kbytes"
634 msgstr ""
635
636 #. type: textblock
637 #: ../align/virt-alignment-scan.pod:195
638 msgid ""
639 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
640 "backed storage on filesystems with 4Kbyte block size; or for some types of "
641 "network-attached storage."
642 msgstr ""
643
644 #. type: =item
645 #: ../align/virt-alignment-scan.pod:199
646 msgid "* 64 Kbytes"
647 msgstr ""
648
649 #. type: textblock
650 #: ../align/virt-alignment-scan.pod:201
651 msgid ""
652 "for high-end network-attached storage.  This is the optimal block size for "
653 "some NetApp hardware."
654 msgstr ""
655
656 #. type: =item
657 #: ../align/virt-alignment-scan.pod:204
658 msgid "* 1 Mbyte"
659 msgstr ""
660
661 #. type: textblock
662 #: ../align/virt-alignment-scan.pod:206
663 msgid "see L</1 MB PARTITION ALIGNMENT> below."
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:210
668 msgid ""
669 "Partitions which are not aligned correctly to the underlying storage cause "
670 "extra I/O.  For example:"
671 msgstr ""
672
673 #. type: verbatim
674 #: ../align/virt-alignment-scan.pod:213
675 #, no-wrap
676 msgid ""
677 "                       sect#63\n"
678 "                       +--------------------------+------\n"
679 "                       |         guest            |\n"
680 "                       |    filesystem block      |\n"
681 " ---+------------------+------+-------------------+-----+---\n"
682 "    |  host block             |  host block             |\n"
683 "    |                         |                         |\n"
684 " ---+-------------------------+-------------------------+---\n"
685 "\n"
686 msgstr ""
687
688 #. type: textblock
689 #: ../align/virt-alignment-scan.pod:222
690 msgid ""
691 "In this example, each time a 4K guest block is read, two blocks on the host "
692 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
693 "written, two host blocks must first be read, the old and new data combined, "
694 "and the two blocks written back (4x I/O)."
695 msgstr ""
696
697 #. type: =head2
698 #: ../align/virt-alignment-scan.pod:227
699 msgid "LINUX HOST BLOCK AND I/O SIZE"
700 msgstr ""
701
702 #. type: textblock
703 #: ../align/virt-alignment-scan.pod:229
704 msgid ""
705 "New versions of the Linux kernel expose the physical and logical block size, "
706 "and minimum and recommended I/O size."
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:232
711 msgid "For a typical consumer hard drive with 512 byte sectors:"
712 msgstr ""
713
714 #. type: verbatim
715 #: ../align/virt-alignment-scan.pod:234
716 #, no-wrap
717 msgid ""
718 " $ cat /sys/block/sda/queue/hw_sector_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/physical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/logical_block_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/minimum_io_size\n"
725 " 512\n"
726 " $ cat /sys/block/sda/queue/optimal_io_size\n"
727 " 0\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../align/virt-alignment-scan.pod:245
733 msgid "For a new consumer hard drive with 4Kbyte sectors:"
734 msgstr ""
735
736 #. type: verbatim
737 #: ../align/virt-alignment-scan.pod:247
738 #, no-wrap
739 msgid ""
740 " $ cat /sys/block/sda/queue/hw_sector_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/physical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/logical_block_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/minimum_io_size\n"
747 " 4096\n"
748 " $ cat /sys/block/sda/queue/optimal_io_size\n"
749 " 0\n"
750 "\n"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:258
755 msgid "For a NetApp LUN:"
756 msgstr ""
757
758 #. type: verbatim
759 #: ../align/virt-alignment-scan.pod:260
760 #, no-wrap
761 msgid ""
762 " $ cat /sys/block/sdc/queue/logical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/physical_block_size\n"
765 " 512\n"
766 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
767 " 4096\n"
768 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
769 " 65536\n"
770 "\n"
771 msgstr ""
772
773 #. type: textblock
774 #: ../align/virt-alignment-scan.pod:269
775 msgid ""
776 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
777 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:273
782 msgid ""
783 "For detailed information about what these numbers mean, see L<http://docs."
784 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
785 "Storage_Administration_Guide/newstorage-iolimits.html>"
786 msgstr ""
787
788 #. type: textblock
789 #: ../align/virt-alignment-scan.pod:276
790 msgid ""
791 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
792 "for providing NetApp data and additional information.]"
793 msgstr ""
794
795 #. type: =head2
796 #: ../align/virt-alignment-scan.pod:279
797 msgid "1 MB PARTITION ALIGNMENT"
798 msgstr ""
799
800 #. type: textblock
801 #: ../align/virt-alignment-scan.pod:281
802 msgid ""
803 "Microsoft picked 1 MB as the default alignment for all partitions starting "
804 "with Windows 2008 Server, and Linux has followed this."
805 msgstr ""
806
807 #. type: textblock
808 #: ../align/virt-alignment-scan.pod:284
809 msgid ""
810 "Assuming 512 byte sectors in the guest, you will now see the first partition "
811 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
812 "multiple of 2048 sectors."
813 msgstr ""
814
815 #. type: textblock
816 #: ../align/virt-alignment-scan.pod:288
817 msgid ""
818 "1 MB alignment is compatible with all current alignment requirements (4K, "
819 "64K) and provides room for future growth in physical block sizes."
820 msgstr ""
821
822 #. type: =head2
823 #: ../align/virt-alignment-scan.pod:291
824 msgid "SETTING ALIGNMENT"
825 msgstr ""
826
827 #. type: textblock
828 #: ../align/virt-alignment-scan.pod:293
829 msgid ""
830 "L<virt-resize(1)> can change the alignment of the partitions of some "
831 "guests.  Currently it can fully align all the partitions of all Windows "
832 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
833 "it can align the second and subsequent partitions, so the majority of OS "
834 "accesses except at boot will be aligned."
835 msgstr ""
836
837 #. type: textblock
838 #: ../align/virt-alignment-scan.pod:299
839 msgid ""
840 "Another way to correct partition alignment problems is to reinstall your "
841 "guest operating systems.  If you install operating systems from templates, "
842 "ensure these have correct partition alignment too."
843 msgstr ""
844
845 #. type: textblock
846 #: ../align/virt-alignment-scan.pod:303
847 msgid ""
848 "For older versions of Windows, the following NetApp document contains useful "
849 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
850 msgstr ""
851
852 #. type: textblock
853 #: ../align/virt-alignment-scan.pod:306
854 msgid ""
855 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
856 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
857 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
858 "contains an example."
859 msgstr ""
860
861 #. type: =head1
862 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
863 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
864 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:682
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
871 msgstr ""
872
873 #. type: textblock
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:684
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
882 msgid ""
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space.  You may need to quote or "
885 "escape these characters on the command line.  See the shell manual page L<sh"
886 "(1)> for details."
887 msgstr ""
888
889 #. type: =head1
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:251
896 #: ../test-tool/libguestfs-test-tool.pod:90
897 msgid "EXIT STATUS"
898 msgstr ""
899
900 #. type: textblock
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
903 msgstr ""
904
905 #. type: =item
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262
929 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
930 #: ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282
931 #: ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290
932 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304
933 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398
934 #: ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407
935 #: ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454
936 #: ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463
937 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726
938 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136
939 #: ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150
940 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164
941 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
942 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
943 #: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412
944 #: ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369
945 #: ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384
946 #: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39
947 #: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49
948 #: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58
949 #: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22
950 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641
951 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656
952 #: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079
953 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087
954 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099
955 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107
956 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121
957 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263
958 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272
959 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338
960 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347
961 #: ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769
962 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321
963 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335
964 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349
965 #: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413
966 #: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426
967 #: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109
968 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122
969 #: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157
970 #: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187
971 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199
972 #: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698
973 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809
974 #: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113
975 #: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645
976 #: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662
977 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
984 msgid "*"
985 msgstr ""
986
987 #. type: textblock
988 #: ../align/virt-alignment-scan.pod:326
989 msgid "0"
990 msgstr ""
991
992 #. type: textblock
993 #: ../align/virt-alignment-scan.pod:328
994 msgid ""
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid "1"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1006 msgstr ""
1007
1008 #. type: textblock
1009 #: ../align/virt-alignment-scan.pod:338
1010 msgid "2"
1011 msgstr ""
1012
1013 #. type: textblock
1014 #: ../align/virt-alignment-scan.pod:340
1015 msgid ""
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../align/virt-alignment-scan.pod:345
1022 msgid "3"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../align/virt-alignment-scan.pod:347
1027 msgid ""
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1030 msgstr ""
1031
1032 #. type: =head1
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1045 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3275
1047 #: ../test-tool/libguestfs-test-tool.pod:100
1048 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1049 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1050 #: ../tools/virt-win-reg.pl:757
1051 msgid "SEE ALSO"
1052 msgstr ""
1053
1054 #. type: textblock
1055 #: ../align/virt-alignment-scan.pod:354
1056 msgid ""
1057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1058 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1059 msgstr ""
1060
1061 #. type: =head1
1062 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1063 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1064 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261
1065 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1066 #: ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288
1067 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1068 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1069 #: ../tools/virt-win-reg.pl:783
1070 msgid "AUTHOR"
1071 msgstr ""
1072
1073 #. type: textblock
1074 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1075 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1076 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263
1077 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1078 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:719
1079 #: ../sparsify/virt-sparsify.pod:290 ../tools/virt-list-filesystems.pl:210
1080 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1081 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1082 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1083 msgstr ""
1084
1085 #. type: =head1
1086 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1087 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1088 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265
1089 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1090 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1091 #: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300
1092 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1093 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1094 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1095 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1096 #: ../perl/examples/guestfs-perl.pod:56
1097 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1098 #: ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3358
1100 #: ../test-tool/libguestfs-test-tool.pod:110
1101 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1102 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1103 #: ../tools/virt-win-reg.pl:787
1104 msgid "COPYRIGHT"
1105 msgstr ""
1106
1107 #. type: textblock
1108 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1109 #: ../sparsify/virt-sparsify.pod:294
1110 msgid "Copyright (C) 2011 Red Hat Inc."
1111 msgstr ""
1112
1113 #. type: textblock
1114 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1115 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1116 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269
1117 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1118 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1119 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1120 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1121 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:725
1122 #: ../sparsify/virt-sparsify.pod:296 ../test-tool/libguestfs-test-tool.pod:115
1123 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1124 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1125 #: ../tools/virt-win-reg.pl:791
1126 msgid ""
1127 "This program is free software; you can redistribute it and/or modify it "
1128 "under the terms of the GNU General Public License as published by the Free "
1129 "Software Foundation; either version 2 of the License, or (at your option) "
1130 "any later version."
1131 msgstr ""
1132
1133 #. type: textblock
1134 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1135 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1136 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274
1137 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1138 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1139 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1140 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1141 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:730
1142 #: ../sparsify/virt-sparsify.pod:301 ../test-tool/libguestfs-test-tool.pod:120
1143 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1144 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1145 #: ../tools/virt-win-reg.pl:796
1146 msgid ""
1147 "This program is distributed in the hope that it will be useful, but WITHOUT "
1148 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1149 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1150 "more details."
1151 msgstr ""
1152
1153 #. type: textblock
1154 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1155 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1156 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279
1157 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1158 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1159 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1160 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1161 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:735
1162 #: ../sparsify/virt-sparsify.pod:306 ../test-tool/libguestfs-test-tool.pod:125
1163 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1164 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1165 #: ../tools/virt-win-reg.pl:801
1166 msgid ""
1167 "You should have received a copy of the GNU General Public License along with "
1168 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1169 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../cat/virt-cat.pod:5
1174 msgid "virt-cat - Display files in a virtual machine"
1175 msgstr ""
1176
1177 #. type: verbatim
1178 #: ../cat/virt-cat.pod:9
1179 #, no-wrap
1180 msgid ""
1181 " virt-cat [--options] -d domname file [file ...]\n"
1182 "\n"
1183 msgstr ""
1184
1185 #. type: verbatim
1186 #: ../cat/virt-cat.pod:11
1187 #, no-wrap
1188 msgid ""
1189 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1190 "\n"
1191 msgstr ""
1192
1193 #. type: textblock
1194 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1195 #: ../inspector/virt-inspector.pod:13
1196 msgid "Old-style:"
1197 msgstr ""
1198
1199 #. type: verbatim
1200 #: ../cat/virt-cat.pod:15
1201 #, no-wrap
1202 msgid ""
1203 " virt-cat domname file\n"
1204 "\n"
1205 msgstr ""
1206
1207 #. type: verbatim
1208 #: ../cat/virt-cat.pod:17
1209 #, no-wrap
1210 msgid ""
1211 " virt-cat disk.img file\n"
1212 "\n"
1213 msgstr ""
1214
1215 #. type: textblock
1216 #: ../cat/virt-cat.pod:21
1217 msgid ""
1218 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1219 "C<file> exists in the named virtual machine (or disk image)."
1220 msgstr ""
1221
1222 #. type: textblock
1223 #: ../cat/virt-cat.pod:24
1224 msgid ""
1225 "Multiple filenames can be given, in which case they are concatenated "
1226 "together.  Each filename must be a full path, starting at the root directory "
1227 "(starting with '/')."
1228 msgstr ""
1229
1230 #. type: textblock
1231 #: ../cat/virt-cat.pod:28
1232 msgid ""
1233 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1234 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1235 "(see L</USING GUESTFISH> below)."
1236 msgstr ""
1237
1238 #. type: =head1
1239 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1240 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1241 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1242 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1243 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1244 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1245 #: ../tools/virt-tar.pl:50
1246 msgid "EXAMPLES"
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-cat.pod:34
1251 msgid ""
1252 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1253 msgstr ""
1254
1255 #. type: verbatim
1256 #: ../cat/virt-cat.pod:37
1257 #, no-wrap
1258 msgid ""
1259 " virt-cat -d mydomain /etc/fstab\n"
1260 "\n"
1261 msgstr ""
1262
1263 #. type: textblock
1264 #: ../cat/virt-cat.pod:39
1265 msgid "List syslog messages from a VM disk image file:"
1266 msgstr ""
1267
1268 #. type: verbatim
1269 #: ../cat/virt-cat.pod:41
1270 #, no-wrap
1271 msgid ""
1272 " virt-cat -a disk.img /var/log/messages | tail\n"
1273 "\n"
1274 msgstr ""
1275
1276 #. type: textblock
1277 #: ../cat/virt-cat.pod:43
1278 msgid "Find out what DHCP IP address a VM acquired:"
1279 msgstr ""
1280
1281 #. type: verbatim
1282 #: ../cat/virt-cat.pod:45
1283 #, no-wrap
1284 msgid ""
1285 " virt-cat -d mydomain /var/log/messages | \\\n"
1286 "   grep 'dhclient: bound to' | tail\n"
1287 "\n"
1288 msgstr ""
1289
1290 #. type: textblock
1291 #: ../cat/virt-cat.pod:48
1292 msgid "Find out what packages were recently installed:"
1293 msgstr ""
1294
1295 #. type: verbatim
1296 #: ../cat/virt-cat.pod:50
1297 #, no-wrap
1298 msgid ""
1299 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1300 "\n"
1301 msgstr ""
1302
1303 #. type: textblock
1304 #: ../cat/virt-cat.pod:52
1305 msgid "Find out who is logged on inside a virtual machine:"
1306 msgstr ""
1307
1308 #. type: verbatim
1309 #: ../cat/virt-cat.pod:54
1310 #, no-wrap
1311 msgid ""
1312 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1313 " who /tmp/utmp\n"
1314 "\n"
1315 msgstr ""
1316
1317 #. type: textblock
1318 #: ../cat/virt-cat.pod:57
1319 msgid "or who was logged on:"
1320 msgstr ""
1321
1322 #. type: verbatim
1323 #: ../cat/virt-cat.pod:59
1324 #, no-wrap
1325 msgid ""
1326 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1327 " last -f /tmp/wtmp\n"
1328 "\n"
1329 msgstr ""
1330
1331 #. type: textblock
1332 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1333 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1334 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1335 msgid ""
1336 "Add I<file> which should be a disk image from a virtual machine.  If the "
1337 "virtual machine has multiple block devices, you must supply all of them with "
1338 "separate I<-a> options."
1339 msgstr ""
1340
1341 #. type: =item
1342 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1343 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1344 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1345 msgid "B<--echo-keys>"
1346 msgstr ""
1347
1348 #. type: textblock
1349 #: ../cat/virt-cat.pod:100
1350 msgid ""
1351 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1352 "so you cannot see what you are typing.  If you are not worried about Tempest "
1353 "attacks and there is no one else in the room you can specify this flag to "
1354 "see what you are typing."
1355 msgstr ""
1356
1357 #. type: verbatim
1358 #: ../cat/virt-cat.pod:116
1359 #, no-wrap
1360 msgid ""
1361 " virt-cat --format=raw -a disk.img file\n"
1362 "\n"
1363 msgstr ""
1364
1365 #. type: verbatim
1366 #: ../cat/virt-cat.pod:120
1367 #, no-wrap
1368 msgid ""
1369 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1370 "\n"
1371 msgstr ""
1372
1373 #. type: =item
1374 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1375 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1376 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1377 msgid "B<--keys-from-stdin>"
1378 msgstr ""
1379
1380 #. type: textblock
1381 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1382 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1383 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1384 msgid ""
1385 "Read key or passphrase parameters from stdin.  The default is to try to read "
1386 "passphrases from the user by opening C</dev/tty>."
1387 msgstr ""
1388
1389 #. type: =head1
1390 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1391 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1392 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1393 msgstr ""
1394
1395 #. type: textblock
1396 #: ../cat/virt-cat.pod:154
1397 msgid "Previous versions of virt-cat allowed you to write either:"
1398 msgstr ""
1399
1400 #. type: verbatim
1401 #: ../cat/virt-cat.pod:156
1402 #, no-wrap
1403 msgid ""
1404 " virt-cat disk.img [disk.img ...] file\n"
1405 "\n"
1406 msgstr ""
1407
1408 #. type: textblock
1409 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1410 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1411 msgid "or"
1412 msgstr ""
1413
1414 #. type: verbatim
1415 #: ../cat/virt-cat.pod:160
1416 #, no-wrap
1417 msgid ""
1418 " virt-cat guestname file\n"
1419 "\n"
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1424 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1425 msgid ""
1426 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1427 "the confusing case where a disk image might have the same name as a guest."
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1432 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1433 msgid "For compatibility the old style is still supported."
1434 msgstr ""
1435
1436 #. type: =head1
1437 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1438 msgid "WINDOWS PATHS"
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../cat/virt-cat.pod:170
1443 msgid ""
1444 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1445 "paths (eg. C<E:\\foo\\bar.txt>)."
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1450 msgid "If and only if the guest is running Windows then:"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1455 msgid ""
1456 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1457 "to the correct filesystem."
1458 msgstr ""
1459
1460 #. type: textblock
1461 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1462 msgid ""
1463 "Any backslash (C<\\>) characters in the path are replaced with forward "
1464 "slashes so that libguestfs can process it."
1465 msgstr ""
1466
1467 #. type: textblock
1468 #: ../cat/virt-cat.pod:189
1469 msgid ""
1470 "The path is resolved case insensitively to locate the file that should be "
1471 "displayed."
1472 msgstr ""
1473
1474 #. type: textblock
1475 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1476 msgid "There are some known shortcomings:"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1481 msgid "Some NTFS symbolic links may not be followed correctly."
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1486 msgid "NTFS junction points that cross filesystems are not followed."
1487 msgstr ""
1488
1489 #. type: =head1
1490 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1491 msgid "USING GUESTFISH"
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../cat/virt-cat.pod:210
1496 msgid ""
1497 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1498 "C<virt-cat> doesn't work."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-cat.pod:213
1503 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1504 msgstr ""
1505
1506 #. type: verbatim
1507 #: ../cat/virt-cat.pod:215
1508 #, no-wrap
1509 msgid ""
1510 " guestfish --ro -i -d domname download file -\n"
1511 "\n"
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-cat.pod:217
1516 msgid ""
1517 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1518 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1519 msgstr ""
1520
1521 #. type: textblock
1522 #: ../cat/virt-cat.pod:221
1523 msgid ""
1524 "The command above uses libguestfs's guest inspection feature and so does not "
1525 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1526 "disk images that don't contain guests.  To display a file from a disk image "
1527 "directly, use:"
1528 msgstr ""
1529
1530 #. type: verbatim
1531 #: ../cat/virt-cat.pod:226
1532 #, no-wrap
1533 msgid ""
1534 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1535 "\n"
1536 msgstr ""
1537
1538 #. type: textblock
1539 #: ../cat/virt-cat.pod:228
1540 msgid ""
1541 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1542 "the disk image, and C<file> is the full path to the file."
1543 msgstr ""
1544
1545 #. type: textblock
1546 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1547 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351
1548 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1549 #: ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:253
1550 msgid ""
1551 "This program returns 0 if successful, or non-zero if there was an error."
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-cat.pod:245
1556 msgid ""
1557 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1558 "tar-out(1)>, L<http://libguestfs.org/>."
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1563 #: ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1564 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1565 msgstr ""
1566
1567 #. type: textblock
1568 #: ../cat/virt-filesystems.pod:5
1569 msgid ""
1570 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1571 "virtual machine or disk image"
1572 msgstr ""
1573
1574 #. type: verbatim
1575 #: ../cat/virt-filesystems.pod:9
1576 #, no-wrap
1577 msgid ""
1578 " virt-filesystems [--options] -d domname\n"
1579 "\n"
1580 msgstr ""
1581
1582 #. type: verbatim
1583 #: ../cat/virt-filesystems.pod:11
1584 #, no-wrap
1585 msgid ""
1586 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1587 "\n"
1588 msgstr ""
1589
1590 #. type: textblock
1591 #: ../cat/virt-filesystems.pod:15
1592 msgid ""
1593 "This tool allows you to discover filesystems, partitions, logical volumes, "
1594 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1595 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-filesystems.pod:20
1600 msgid ""
1601 "One use for this tool is from shell scripts to iterate over all filesystems "
1602 "from a disk image:"
1603 msgstr ""
1604
1605 #. type: verbatim
1606 #: ../cat/virt-filesystems.pod:23
1607 #, no-wrap
1608 msgid ""
1609 " for fs in $(virt-filesystems -a disk.img); do\n"
1610 "   # ...\n"
1611 " done\n"
1612 "\n"
1613 msgstr ""
1614
1615 #. type: textblock
1616 #: ../cat/virt-filesystems.pod:27
1617 msgid ""
1618 "Another use is to list partitions before using another tool to modify those "
1619 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1620 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1621 msgstr ""
1622
1623 #. type: textblock
1624 #: ../cat/virt-filesystems.pod:32
1625 msgid ""
1626 "Various command line options control what this program displays.  You need "
1627 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1628 "guest respectively.  If you just specify that then the program shows "
1629 "filesystems found, one per line, like this:"
1630 msgstr ""
1631
1632 #. type: verbatim
1633 #: ../cat/virt-filesystems.pod:37
1634 #, no-wrap
1635 msgid ""
1636 " $ virt-filesystems -a disk.img\n"
1637 " /dev/sda1\n"
1638 " /dev/vg_guest/lv_root\n"
1639 "\n"
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-filesystems.pod:41
1644 msgid ""
1645 "If you add I<-l> or I<--long> then the output includes extra information:"
1646 msgstr ""
1647
1648 #. type: verbatim
1649 #: ../cat/virt-filesystems.pod:44
1650 #, no-wrap
1651 msgid ""
1652 " $ virt-filesystems -a disk.img -l\n"
1653 " Name                   Type         VFS   Label  Size\n"
1654 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1655 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1656 "\n"
1657 msgstr ""
1658
1659 #. type: textblock
1660 #: ../cat/virt-filesystems.pod:49
1661 msgid ""
1662 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1663 "shown as well:"
1664 msgstr ""
1665
1666 #. type: verbatim
1667 #: ../cat/virt-filesystems.pod:52
1668 #, no-wrap
1669 msgid ""
1670 " $ virt-filesystems -a disk.img --extra\n"
1671 " /dev/sda1\n"
1672 " /dev/vg_guest/lv_root\n"
1673 " /dev/vg_guest/lv_swap\n"
1674 " /dev/vg_guest/lv_data\n"
1675 "\n"
1676 msgstr ""
1677
1678 #. type: textblock
1679 #: ../cat/virt-filesystems.pod:58
1680 msgid ""
1681 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1682 msgstr ""
1683
1684 #. type: verbatim
1685 #: ../cat/virt-filesystems.pod:60
1686 #, no-wrap
1687 msgid ""
1688 " $ virt-filesystems -a disk.img --partitions\n"
1689 " /dev/sda1\n"
1690 " /dev/sda2\n"
1691 "\n"
1692 msgstr ""
1693
1694 #. type: textblock
1695 #: ../cat/virt-filesystems.pod:64
1696 msgid ""
1697 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1698 "volumes>, I<--block-devices> to list those items."
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:67
1703 msgid ""
1704 "You can use these options in combination as well (if you want a combination "
1705 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1706 "items fall into several categories (eg. C</dev/sda1> might be both a "
1707 "partition and a filesystem).  These items are listed several times.  To get "
1708 "a list which includes absolutely everything that virt-filesystems knows "
1709 "about, use the I<--all> option."
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:74
1714 msgid ""
1715 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1716 "uuid> option to display device and filesystem UUIDs in the long output."
1717 msgstr ""
1718
1719 #. type: textblock
1720 #: ../cat/virt-filesystems.pod:78
1721 msgid ""
1722 "I<--all --long --uuid> is a useful combination to display all possible "
1723 "information about everything."
1724 msgstr ""
1725
1726 #. type: verbatim
1727 #: ../cat/virt-filesystems.pod:81
1728 #, no-wrap
1729 msgid ""
1730 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1731 " Name      Type       VFS  Label           Size Parent   UUID\n"
1732 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1733 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1734 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1735 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1736 " /dev/sda  device     -    -               20G  -        -\n"
1737 "\n"
1738 msgstr ""
1739
1740 #. type: textblock
1741 #: ../cat/virt-filesystems.pod:89
1742 msgid ""
1743 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1744 msgstr ""
1745
1746 #. type: =item
1747 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1748 msgid "B<--all>"
1749 msgstr ""
1750
1751 #. type: textblock
1752 #: ../cat/virt-filesystems.pod:112
1753 msgid ""
1754 "Display everything.  This is currently the same as specifying these options: "
1755 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1756 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1757 "added to this list in future)."
1758 msgstr ""
1759
1760 #. type: textblock
1761 #: ../cat/virt-filesystems.pod:117
1762 msgid "See also I<--long>."
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-filesystems.pod:119
1767 msgid "B<--blkdevs>"
1768 msgstr ""
1769
1770 #. type: =item
1771 #: ../cat/virt-filesystems.pod:121
1772 msgid "B<--block-devices>"
1773 msgstr ""
1774
1775 #. type: textblock
1776 #: ../cat/virt-filesystems.pod:123
1777 msgid "Display block devices."
1778 msgstr ""
1779
1780 #. type: =item
1781 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1782 msgid "B<--csv>"
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1787 msgid ""
1788 "Write out the results in CSV format (comma-separated values).  This format "
1789 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1790 "ABOUT CSV FORMAT> below."
1791 msgstr ""
1792
1793 #. type: textblock
1794 #: ../cat/virt-filesystems.pod:150
1795 msgid ""
1796 "When prompting for keys and passphrases, virt-filesystems normally turns "
1797 "echoing off so you cannot see what you are typing.  If you are not worried "
1798 "about Tempest attacks and there is no one else in the room you can specify "
1799 "this flag to see what you are typing."
1800 msgstr ""
1801
1802 #. type: =item
1803 #: ../cat/virt-filesystems.pod:155
1804 msgid "B<--extra>"
1805 msgstr ""
1806
1807 #. type: textblock
1808 #: ../cat/virt-filesystems.pod:157
1809 msgid ""
1810 "This causes filesystems that are not ordinary, mountable filesystems to be "
1811 "displayed.  This category includes swapspace, and filesystems that are empty "
1812 "or contain unknown data."
1813 msgstr ""
1814
1815 #. type: textblock
1816 #: ../cat/virt-filesystems.pod:161
1817 msgid "This option implies I<--filesystems>."
1818 msgstr ""
1819
1820 #. type: =item
1821 #: ../cat/virt-filesystems.pod:163
1822 msgid "B<--filesystems>"
1823 msgstr ""
1824
1825 #. type: textblock
1826 #: ../cat/virt-filesystems.pod:165
1827 msgid ""
1828 "Display mountable filesystems.  If no display option was selected then this "
1829 "option is implied."
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../cat/virt-filesystems.pod:168
1834 msgid "With I<--extra>, non-mountable filesystems are shown too."
1835 msgstr ""
1836
1837 #. type: verbatim
1838 #: ../cat/virt-filesystems.pod:181
1839 #, no-wrap
1840 msgid ""
1841 " virt-filesystems --format=raw -a disk.img\n"
1842 "\n"
1843 msgstr ""
1844
1845 #. type: verbatim
1846 #: ../cat/virt-filesystems.pod:185
1847 #, no-wrap
1848 msgid ""
1849 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1850 "\n"
1851 msgstr ""
1852
1853 #. type: =item
1854 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1855 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1856 #: ../tools/virt-list-partitions.pl:109
1857 msgid "B<-h>"
1858 msgstr ""
1859
1860 #. type: =item
1861 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1862 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1863 msgid "B<--human-readable>"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-filesystems.pod:198
1868 msgid "In I<--long> mode, display sizes in human-readable format."
1869 msgstr ""
1870
1871 #. type: =item
1872 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1873 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1874 msgid "B<-l>"
1875 msgstr ""
1876
1877 #. type: =item
1878 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1879 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1880 msgid "B<--long>"
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-filesystems.pod:209
1885 msgid "Display extra columns of data (\"long format\")."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../cat/virt-filesystems.pod:211
1890 msgid "A title row is added unless you also specify I<--no-title>."
1891 msgstr ""
1892
1893 #. type: textblock
1894 #: ../cat/virt-filesystems.pod:213
1895 msgid ""
1896 "The extra columns displayed depend on what output you select, and the "
1897 "ordering of columns may change in future versions.  Use the title row, I<--"
1898 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1899 "programs."
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-filesystems.pod:218
1904 msgid ""
1905 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1906 "default is to show raw numbers of I<bytes>."
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-filesystems.pod:221
1911 msgid "Use I<--uuid> to display UUIDs too."
1912 msgstr ""
1913
1914 #. type: =item
1915 #: ../cat/virt-filesystems.pod:223
1916 msgid "B<--lvs>"
1917 msgstr ""
1918
1919 #. type: =item
1920 #: ../cat/virt-filesystems.pod:225
1921 msgid "B<--logvols>"
1922 msgstr ""
1923
1924 #. type: =item
1925 #: ../cat/virt-filesystems.pod:227
1926 msgid "B<--logical-volumes>"
1927 msgstr ""
1928
1929 #. type: textblock
1930 #: ../cat/virt-filesystems.pod:229
1931 msgid ""
1932 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1933 "of whether the LVs contain filesystems."
1934 msgstr ""
1935
1936 #. type: =item
1937 #: ../cat/virt-filesystems.pod:232
1938 msgid "B<--no-title>"
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-filesystems.pod:234
1943 msgid "In I<--long> mode, don't add a title row."
1944 msgstr ""
1945
1946 #. type: textblock
1947 #: ../cat/virt-filesystems.pod:236
1948 msgid ""
1949 "Note that the order of the columns is not fixed, and may change in future "
1950 "versions of virt-filesystems, so using this option may give you unexpected "
1951 "surprises."
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:240
1956 msgid "B<--parts>"
1957 msgstr ""
1958
1959 #. type: =item
1960 #: ../cat/virt-filesystems.pod:242
1961 msgid "B<--partitions>"
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-filesystems.pod:244
1966 msgid ""
1967 "Display partitions.  In this mode, these are displayed irrespective of "
1968 "whether the partitions contain filesystems."
1969 msgstr ""
1970
1971 #. type: =item
1972 #: ../cat/virt-filesystems.pod:247
1973 msgid "B<--pvs>"
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:249
1978 msgid "B<--physvols>"
1979 msgstr ""
1980
1981 #. type: =item
1982 #: ../cat/virt-filesystems.pod:251
1983 msgid "B<--physical-volumes>"
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../cat/virt-filesystems.pod:253
1988 msgid "Display LVM physical volumes."
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1993 msgid "B<--uuid>"
1994 msgstr ""
1995
1996 #. type: =item
1997 #: ../cat/virt-filesystems.pod:257
1998 msgid "B<--uuids>"
1999 msgstr ""
2000
2001 #. type: textblock
2002 #: ../cat/virt-filesystems.pod:259
2003 msgid "In I<--long> mode, display UUIDs as well."
2004 msgstr ""
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:273
2008 msgid "B<--vgs>"
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:275
2013 msgid "B<--volgroups>"
2014 msgstr ""
2015
2016 #. type: =item
2017 #: ../cat/virt-filesystems.pod:277
2018 msgid "B<--volume-groups>"
2019 msgstr ""
2020
2021 #. type: textblock
2022 #: ../cat/virt-filesystems.pod:279
2023 msgid "Display LVM volume groups."
2024 msgstr ""
2025
2026 #. type: =head1
2027 #: ../cat/virt-filesystems.pod:287
2028 msgid "COLUMNS"
2029 msgstr ""
2030
2031 #. type: textblock
2032 #: ../cat/virt-filesystems.pod:289
2033 msgid ""
2034 "Note that columns in the output are subject to reordering and change in "
2035 "future versions of this tool."
2036 msgstr ""
2037
2038 #. type: =item
2039 #: ../cat/virt-filesystems.pod:294
2040 msgid "B<Name>"
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-filesystems.pod:296
2045 msgid "The filesystem, partition, block device or LVM name."
2046 msgstr ""
2047
2048 #. type: textblock
2049 #: ../cat/virt-filesystems.pod:298
2050 msgid ""
2051 "For device and partition names these are displayed as canonical libguestfs "
2052 "names, so that for example C</dev/sda2> is the second partition on the first "
2053 "device."
2054 msgstr ""
2055
2056 #. type: textblock
2057 #: ../cat/virt-filesystems.pod:302
2058 msgid ""
2059 "If the I<--long> option is B<not> specified, then only the name column is "
2060 "shown in the output."
2061 msgstr ""
2062
2063 #. type: =item
2064 #: ../cat/virt-filesystems.pod:305
2065 msgid "B<Type>"
2066 msgstr ""
2067
2068 #. type: textblock
2069 #: ../cat/virt-filesystems.pod:307
2070 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2071 msgstr ""
2072
2073 #. type: =item
2074 #: ../cat/virt-filesystems.pod:309
2075 msgid "B<VFS>"
2076 msgstr ""
2077
2078 #. type: textblock
2079 #: ../cat/virt-filesystems.pod:311
2080 msgid ""
2081 "If there is a filesystem, then this column displays the filesystem type if "
2082 "one could be detected, eg. C<ext4>."
2083 msgstr ""
2084
2085 #. type: =item
2086 #: ../cat/virt-filesystems.pod:314
2087 msgid "B<Label>"
2088 msgstr ""
2089
2090 #. type: textblock
2091 #: ../cat/virt-filesystems.pod:316
2092 msgid ""
2093 "If the object has a label (used for identifying and mounting filesystems) "
2094 "then this column contains the label."
2095 msgstr ""
2096
2097 #. type: =item
2098 #: ../cat/virt-filesystems.pod:319
2099 msgid "B<MBR>"
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../cat/virt-filesystems.pod:321
2104 msgid ""
2105 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2106 "comprehensive list of partition types can be found here: L<http://www.win."
2107 "tue.nl/~aeb/partitions/partition_types-1.html>"
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-filesystems.pod:325
2112 msgid "This is only applicable for DOS (MBR) partitions."
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-filesystems.pod:327
2117 msgid "B<Size>"
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-filesystems.pod:329
2122 msgid ""
2123 "The size of the object in bytes.  If the I<--human> option is used then the "
2124 "size is displayed in a human-readable form."
2125 msgstr ""
2126
2127 #. type: =item
2128 #: ../cat/virt-filesystems.pod:332
2129 msgid "B<Parent>"
2130 msgstr ""
2131
2132 #. type: textblock
2133 #: ../cat/virt-filesystems.pod:334
2134 msgid ""
2135 "The parent column records the parent relationship between objects.  For "
2136 "example, if the object is a partition, then this column contains the name of "
2137 "the containing device.  If the object is a logical volume, then this column "
2138 "is the name of the volume group."
2139 msgstr ""
2140
2141 #. type: =item
2142 #: ../cat/virt-filesystems.pod:339
2143 msgid "B<UUID>"
2144 msgstr ""
2145
2146 #. type: textblock
2147 #: ../cat/virt-filesystems.pod:341
2148 msgid ""
2149 "If the object has a UUID (used for identifying and mounting filesystems and "
2150 "block devices) then this column contains the UUID as a string."
2151 msgstr ""
2152
2153 #. type: textblock
2154 #: ../cat/virt-filesystems.pod:345
2155 msgid "The UUID is only displayed if the I<--uuid> option is given."
2156 msgstr ""
2157
2158 #. type: =head1
2159 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2160 #: ../df/virt-df.pod:217
2161 msgid "NOTE ABOUT CSV FORMAT"
2162 msgstr ""
2163
2164 #. type: textblock
2165 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2166 #: ../df/virt-df.pod:219
2167 msgid ""
2168 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2169 "should be easy to parse, but it is definitely not easy to parse."
2170 msgstr ""
2171
2172 #. type: textblock
2173 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2174 #: ../df/virt-df.pod:222
2175 msgid ""
2176 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2177 "reliably.  This example has two columns:"
2178 msgstr ""
2179
2180 #. type: verbatim
2181 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2182 #: ../df/virt-df.pod:225
2183 #, no-wrap
2184 msgid ""
2185 " \"foo,bar\",baz\n"
2186 "\n"
2187 msgstr ""
2188
2189 #. type: textblock
2190 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2191 #: ../df/virt-df.pod:227
2192 msgid ""
2193 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2194 "reliably.  This example has one row:"
2195 msgstr ""
2196
2197 #. type: verbatim
2198 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2199 #: ../df/virt-df.pod:230
2200 #, no-wrap
2201 msgid ""
2202 " \"foo\n"
2203 " bar\",baz\n"
2204 "\n"
2205 msgstr ""
2206
2207 #. type: textblock
2208 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2209 #: ../df/virt-df.pod:233
2210 msgid ""
2211 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2212 "packaged in major Linux distributions)."
2213 msgstr ""
2214
2215 #. type: textblock
2216 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2217 #: ../df/virt-df.pod:236
2218 msgid ""
2219 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2220 "or Python's built-in csv library)."
2221 msgstr ""
2222
2223 #. type: textblock
2224 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2225 #: ../df/virt-df.pod:239
2226 msgid "Most spreadsheets and databases can import CSV directly."
2227 msgstr ""
2228
2229 #. type: textblock
2230 #: ../cat/virt-filesystems.pod:387
2231 msgid ""
2232 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2233 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2234 "libguestfs.org/>."
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2239 msgid "Copyright (C) 2010 Red Hat Inc."
2240 msgstr ""
2241
2242 #. type: textblock
2243 #: ../cat/virt-ls.pod:5
2244 msgid "virt-ls - List files in a virtual machine"
2245 msgstr ""
2246
2247 #. type: verbatim
2248 #: ../cat/virt-ls.pod:9
2249 #, no-wrap
2250 msgid ""
2251 " virt-ls [--options] -d domname directory [directory ...]\n"
2252 "\n"
2253 msgstr ""
2254
2255 #. type: verbatim
2256 #: ../cat/virt-ls.pod:11
2257 #, no-wrap
2258 msgid ""
2259 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2260 "\n"
2261 msgstr ""
2262
2263 #. type: textblock
2264 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2265 msgid "Old style:"
2266 msgstr ""
2267
2268 #. type: verbatim
2269 #: ../cat/virt-ls.pod:15
2270 #, no-wrap
2271 msgid ""
2272 " virt-ls [--options] domname directory\n"
2273 "\n"
2274 msgstr ""
2275
2276 #. type: verbatim
2277 #: ../cat/virt-ls.pod:17
2278 #, no-wrap
2279 msgid ""
2280 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2281 "\n"
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-ls.pod:21
2286 msgid ""
2287 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2288 "more from a virtual machine or disk image."
2289 msgstr ""
2290
2291 #. type: textblock
2292 #: ../cat/virt-ls.pod:24
2293 msgid ""
2294 "Multiple directory names can be given, in which case the output from each is "
2295 "concatenated."
2296 msgstr ""
2297
2298 #. type: textblock
2299 #: ../cat/virt-ls.pod:27
2300 msgid ""
2301 "To list directories from a libvirt guest use the I<-d> option to specify the "
2302 "name of the guest.  For a disk image, use the I<-a> option."
2303 msgstr ""
2304
2305 #. type: textblock
2306 #: ../cat/virt-ls.pod:31
2307 msgid ""
2308 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2309 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2310 "(3)> API."
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:37
2315 msgid "Get a list of all files and directories in a virtual machine:"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../cat/virt-ls.pod:39
2320 #, no-wrap
2321 msgid ""
2322 " virt-ls -R -d guest /\n"
2323 "\n"
2324 msgstr ""
2325
2326 #. type: textblock
2327 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
2328 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2329 msgstr ""
2330
2331 #. type: verbatim
2332 #: ../cat/virt-ls.pod:43
2333 #, no-wrap
2334 msgid ""
2335 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2336 "\n"
2337 msgstr ""
2338
2339 #. type: textblock
2340 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
2341 msgid "List all public-writable directories in a Linux virtual machine:"
2342 msgstr ""
2343
2344 #. type: verbatim
2345 #: ../cat/virt-ls.pod:47
2346 #, no-wrap
2347 msgid ""
2348 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2349 "\n"
2350 msgstr ""
2351
2352 #. type: textblock
2353 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
2354 msgid "List all Unix domain sockets in a Linux virtual machine:"
2355 msgstr ""
2356
2357 #. type: verbatim
2358 #: ../cat/virt-ls.pod:51
2359 #, no-wrap
2360 msgid ""
2361 " virt-ls -lR -d guest / | grep '^s'\n"
2362 "\n"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
2367 msgid "List all regular files with filenames ending in '.png':"
2368 msgstr ""
2369
2370 #. type: verbatim
2371 #: ../cat/virt-ls.pod:55
2372 #, no-wrap
2373 msgid ""
2374 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2375 "\n"
2376 msgstr ""
2377
2378 #. type: textblock
2379 #: ../cat/virt-ls.pod:57
2380 msgid "To display files larger than 10MB in home directories:"
2381 msgstr ""
2382
2383 #. type: verbatim
2384 #: ../cat/virt-ls.pod:59
2385 #, no-wrap
2386 msgid ""
2387 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2388 "\n"
2389 msgstr ""
2390
2391 #. type: textblock
2392 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
2393 msgid "Find everything modified in the last 7 days:"
2394 msgstr ""
2395
2396 #. type: verbatim
2397 #: ../cat/virt-ls.pod:63
2398 #, no-wrap
2399 msgid ""
2400 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2401 "\n"
2402 msgstr ""
2403
2404 #. type: textblock
2405 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
2406 msgid "Find regular files modified in the last 24 hours:"
2407 msgstr ""
2408
2409 #. type: verbatim
2410 #: ../cat/virt-ls.pod:67
2411 #, no-wrap
2412 msgid ""
2413 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2414 "\n"
2415 msgstr ""
2416
2417 #. type: =head2
2418 #: ../cat/virt-ls.pod:69
2419 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2420 msgstr ""
2421
2422 #. type: textblock
2423 #: ../cat/virt-ls.pod:71
2424 msgid ""
2425 "Find the differences between files in a guest and an earlier snapshot of the "
2426 "same guest."
2427 msgstr ""
2428
2429 #. type: verbatim
2430 #: ../cat/virt-ls.pod:74
2431 #, no-wrap
2432 msgid ""
2433 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2434 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2435 " diff -u old new | less\n"
2436 "\n"
2437 msgstr ""
2438
2439 #. type: textblock
2440 #: ../cat/virt-ls.pod:78
2441 msgid ""
2442 "The commands above won't find files where the content has changed but the "
2443 "metadata (eg. file size and modification date) is the same.  To do that, you "
2444 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2445 "checksum> can be quite slow since it has to read and compute a checksum of "
2446 "every regular file in the virtual machine."
2447 msgstr ""
2448
2449 #. type: =head1
2450 #: ../cat/virt-ls.pod:84
2451 msgid "OUTPUT MODES"
2452 msgstr ""
2453
2454 #. type: textblock
2455 #: ../cat/virt-ls.pod:86
2456 msgid ""
2457 "C<virt-ls> has four output modes, controlled by different combinations of "
2458 "the I<-l> and I<-R> options."
2459 msgstr ""
2460
2461 #. type: =head2
2462 #: ../cat/virt-ls.pod:89
2463 msgid "SIMPLE LISTING"
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../cat/virt-ls.pod:91
2468 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../cat/virt-ls.pod:93
2473 #, no-wrap
2474 msgid ""
2475 " $ virt-ls -d guest /\n"
2476 " bin\n"
2477 " boot\n"
2478 " [etc.]\n"
2479 "\n"
2480 msgstr ""
2481
2482 #. type: =head2
2483 #: ../cat/virt-ls.pod:98
2484 msgid "LONG LISTING"
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:100
2489 msgid ""
2490 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2491 "(more specifically, like the C<guestfs_ll> function)."
2492 msgstr ""
2493
2494 #. type: verbatim
2495 #: ../cat/virt-ls.pod:103
2496 #, no-wrap
2497 msgid ""
2498 " $ virt-ls -l -d guest /\n"
2499 " total 204\n"
2500 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2501 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2502 " [etc.]\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../cat/virt-ls.pod:109
2508 msgid ""
2509 "Note that while this is useful for displaying a directory, do not try "
2510 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2511 "instead."
2512 msgstr ""
2513
2514 #. type: =head2
2515 #: ../cat/virt-ls.pod:113
2516 msgid "RECURSIVE LISTING"
2517 msgstr ""
2518
2519 #. type: textblock
2520 #: ../cat/virt-ls.pod:115
2521 msgid ""
2522 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2523 "and directories recursively:"
2524 msgstr ""
2525
2526 #. type: verbatim
2527 #: ../cat/virt-ls.pod:118
2528 #, no-wrap
2529 msgid ""
2530 " $ virt-ls -R -d guest /tmp\n"
2531 " foo\n"
2532 " foo/bar\n"
2533 " [etc.]\n"
2534 "\n"
2535 msgstr ""
2536
2537 #. type: textblock
2538 #: ../cat/virt-ls.pod:123
2539 msgid ""
2540 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2541 "converts C<\\0> characters to C<\\n>."
2542 msgstr ""
2543
2544 #. type: =head2
2545 #: ../cat/virt-ls.pod:126
2546 msgid "RECURSIVE LONG LISTING"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../cat/virt-ls.pod:128
2551 msgid ""
2552 "Using I<-lR> options together changes the output to display directories "
2553 "recursively, with file stats, and optionally other features such as "
2554 "checksums and extended attributes."
2555 msgstr ""
2556
2557 #. type: textblock
2558 #: ../cat/virt-ls.pod:132
2559 msgid ""
2560 "Most of the interesting features of C<virt-ls> are only available when using "
2561 "I<-lR> mode."
2562 msgstr ""
2563
2564 #. type: textblock
2565 #: ../cat/virt-ls.pod:135
2566 msgid ""
2567 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2568 "you cannot use the output in another program (because filenames can contain "
2569 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2570 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2571 "on you by creating filenames with embedded newline characters.  To B<safely> "
2572 "parse the output in another program, use the I<--csv> (Comma-Separated "
2573 "Values) option."
2574 msgstr ""
2575
2576 #. type: textblock
2577 #: ../cat/virt-ls.pod:143
2578 msgid ""
2579 "Note that this output format is completely unrelated to the C<ls -lR> "
2580 "command."
2581 msgstr ""
2582
2583 #. type: verbatim
2584 #: ../cat/virt-ls.pod:146
2585 #, no-wrap
2586 msgid ""
2587 " $ virt-ls -lR -d guest /bin\n"
2588 " d 0555       4096 /bin\n"
2589 " - 0755        123 /bin/alsaunmute\n"
2590 " - 0755      28328 /bin/arch\n"
2591 " l 0777          4 /bin/awk -> gawk\n"
2592 " - 0755      27216 /bin/basename\n"
2593 " - 0755     943360 /bin/bash\n"
2594 " [etc.]\n"
2595 "\n"
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../cat/virt-ls.pod:155
2600 msgid "These basic fields are always shown:"
2601 msgstr ""
2602
2603 #. type: =item
2604 #: ../cat/virt-ls.pod:159
2605 msgid "type"
2606 msgstr ""
2607
2608 #. type: textblock
2609 #: ../cat/virt-ls.pod:161
2610 msgid ""
2611 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2612 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2613 "link), C<s> (socket) or C<u> (unknown)."
2614 msgstr ""
2615
2616 #. type: =item
2617 #: ../cat/virt-ls.pod:171
2618 msgid "permissions"
2619 msgstr ""
2620
2621 #. type: textblock
2622 #: ../cat/virt-ls.pod:173
2623 msgid "The Unix permissions, displayed as a 4 digit octal number."
2624 msgstr ""
2625
2626 #. type: =item
2627 #: ../cat/virt-ls.pod:175
2628 msgid "size"
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../cat/virt-ls.pod:177
2633 msgid ""
2634 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2635 "readable> option is given, in which case this is shown as a human-readable "
2636 "number."
2637 msgstr ""
2638
2639 #. type: =head2
2640 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4488
2641 msgid "path"
2642 msgstr ""
2643
2644 #. type: textblock
2645 #: ../cat/virt-ls.pod:183
2646 msgid "The full path of the file or directory."
2647 msgstr ""
2648
2649 #. type: =item
2650 #: ../cat/virt-ls.pod:185
2651 msgid "link"
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:187
2656 msgid "For symbolic links only, the link target."
2657 msgstr ""
2658
2659 #. type: textblock
2660 #: ../cat/virt-ls.pod:191
2661 msgid ""
2662 "In I<-lR> mode, additional command line options enable the display of more "
2663 "fields."
2664 msgstr ""
2665
2666 #. type: textblock
2667 #: ../cat/virt-ls.pod:194
2668 msgid ""
2669 "With the I<--uids> flag, these additional fields are displayed before the "
2670 "path:"
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:199
2675 msgid "uid"
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../cat/virt-ls.pod:201
2680 msgid "gid"
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../cat/virt-ls.pod:203
2685 msgid ""
2686 "The UID and GID of the owner of the file (displayed numerically).  Note "
2687 "these only make sense in the context of a Unix-like guest."
2688 msgstr ""
2689
2690 #. type: textblock
2691 #: ../cat/virt-ls.pod:208
2692 msgid "With the I<--times> flag, these additional fields are displayed:"
2693 msgstr ""
2694
2695 #. type: =item
2696 #: ../cat/virt-ls.pod:212
2697 msgid "atime"
2698 msgstr ""
2699
2700 #. type: textblock
2701 #: ../cat/virt-ls.pod:214
2702 msgid "The time of last access."
2703 msgstr ""
2704
2705 #. type: =item
2706 #: ../cat/virt-ls.pod:216
2707 msgid "mtime"
2708 msgstr ""
2709
2710 #. type: textblock
2711 #: ../cat/virt-ls.pod:218
2712 msgid "The time of last modification."
2713 msgstr ""
2714
2715 #. type: =item
2716 #: ../cat/virt-ls.pod:220
2717 msgid "ctime"
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../cat/virt-ls.pod:222
2722 msgid "The time of last status change."
2723 msgstr ""
2724
2725 #. type: textblock
2726 #: ../cat/virt-ls.pod:226
2727 msgid ""
2728 "The time fields are displayed as string dates and times, unless one of the "
2729 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../cat/virt-ls.pod:229
2734 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2735 msgstr ""
2736
2737 #. type: =item
2738 #: ../cat/virt-ls.pod:233
2739 msgid "device"
2740 msgstr ""
2741
2742 #. type: textblock
2743 #: ../cat/virt-ls.pod:235
2744 msgid ""
2745 "The device containing the file (displayed as major:minor).  This may not "
2746 "match devices as known to the guest."
2747 msgstr ""
2748
2749 #. type: =item
2750 #: ../cat/virt-ls.pod:238
2751 msgid "inode"
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../cat/virt-ls.pod:240
2756 msgid "The inode number."
2757 msgstr ""
2758
2759 #. type: =item
2760 #: ../cat/virt-ls.pod:242
2761 msgid "nlink"
2762 msgstr ""
2763
2764 #. type: textblock
2765 #: ../cat/virt-ls.pod:244
2766 msgid "The number of hard links."
2767 msgstr ""
2768
2769 #. type: =item
2770 #: ../cat/virt-ls.pod:246
2771 msgid "rdev"
2772 msgstr ""
2773
2774 #. type: textblock
2775 #: ../cat/virt-ls.pod:248
2776 msgid ""
2777 "For block and char special files, the device (displayed as major:minor)."
2778 msgstr ""
2779
2780 #. type: =item
2781 #: ../cat/virt-ls.pod:251
2782 msgid "blocks"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../cat/virt-ls.pod:253
2787 msgid "The number of 512 byte blocks allocated to the file."
2788 msgstr ""
2789
2790 #. type: textblock
2791 #: ../cat/virt-ls.pod:257
2792 msgid ""
2793 "With the I<--checksum> flag, the checksum of the file contents is shown "
2794 "(only for regular files).  Computing file checksums can take a considerable "
2795 "amount of time."
2796 msgstr ""
2797
2798 #. type: =item
2799 #: ../cat/virt-ls.pod:280
2800 msgid "B<--checksum>"
2801 msgstr ""
2802
2803 #. type: =item
2804 #: ../cat/virt-ls.pod:282
2805 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../cat/virt-ls.pod:284
2810 msgid ""
2811 "Display checksum over file contents for regular files.  With no argument, "
2812 "this defaults to using I<md5>.  Using an argument, you can select the "
2813 "checksum type to use."
2814 msgstr ""
2815
2816 #. type: textblock
2817 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2818 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2819 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2820 msgid ""
2821 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2822 "LISTING> above."
2823 msgstr ""
2824
2825 #. type: textblock
2826 #: ../cat/virt-ls.pod:316
2827 msgid ""
2828 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2829 "so you cannot see what you are typing.  If you are not worried about Tempest "
2830 "attacks and there is no one else in the room you can specify this flag to "
2831 "see what you are typing."
2832 msgstr ""
2833
2834 #. type: =item
2835 #: ../cat/virt-ls.pod:321
2836 msgid "B<--extra-stats>"
2837 msgstr ""
2838
2839 #. type: textblock
2840 #: ../cat/virt-ls.pod:323
2841 msgid "Display extra stats."
2842 msgstr ""
2843
2844 #. type: verbatim
2845 #: ../cat/virt-ls.pod:339
2846 #, no-wrap
2847 msgid ""
2848 " virt-ls --format=raw -a disk.img /dir\n"
2849 "\n"
2850 msgstr ""
2851
2852 #. type: verbatim
2853 #: ../cat/virt-ls.pod:343
2854 #, no-wrap
2855 msgid ""
2856 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2857 "\n"
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../cat/virt-ls.pod:356
2862 msgid "Display file sizes in human-readable format."
2863 msgstr ""
2864
2865 #. type: =item
2866 #: ../cat/virt-ls.pod:370
2867 msgid "B<-R>"
2868 msgstr ""
2869
2870 #. type: =item
2871 #: ../cat/virt-ls.pod:372
2872 msgid "B<--recursive>"
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../cat/virt-ls.pod:374
2877 msgid ""
2878 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2879 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2880 "LISTING>."
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../cat/virt-ls.pod:378
2885 msgid ""
2886 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2887 "LONG LISTING>."
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../cat/virt-ls.pod:381
2892 msgid ""
2893 "C<virt-ls -R> produces a recursive list of files starting at the named "
2894 "directory.  See L</RECURSIVE LISTING>."
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../cat/virt-ls.pod:384
2899 msgid ""
2900 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2901 "parsed.  See L</RECURSIVE LONG LISTING>."
2902 msgstr ""
2903
2904 #. type: =item
2905 #: ../cat/virt-ls.pod:387
2906 msgid "B<--times>"
2907 msgstr ""
2908
2909 #. type: textblock
2910 #: ../cat/virt-ls.pod:389
2911 msgid "Display time fields."
2912 msgstr ""
2913
2914 #. type: =item
2915 #: ../cat/virt-ls.pod:394
2916 msgid "B<--time-days>"
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../cat/virt-ls.pod:396
2921 msgid "Display time fields as days before now (negative if in the future)."
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../cat/virt-ls.pod:398
2926 msgid ""
2927 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2928 "of the file is between 0 and 86399 seconds."
2929 msgstr ""
2930
2931 #. type: =item
2932 #: ../cat/virt-ls.pod:404
2933 msgid "B<--time-relative>"
2934 msgstr ""
2935
2936 #. type: textblock
2937 #: ../cat/virt-ls.pod:406
2938 msgid "Display time fields as seconds before now (negative if in the future)."
2939 msgstr ""
2940
2941 #. type: =item
2942 #: ../cat/virt-ls.pod:411
2943 msgid "B<--time-t>"
2944 msgstr ""
2945
2946 #. type: textblock
2947 #: ../cat/virt-ls.pod:413
2948 msgid "Display time fields as seconds since the Unix epoch."
2949 msgstr ""
2950
2951 #. type: =item
2952 #: ../cat/virt-ls.pod:418
2953 msgid "B<--uids>"
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../cat/virt-ls.pod:420
2958 msgid "Display UID and GID fields."
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../cat/virt-ls.pod:445
2963 msgid "Previous versions of virt-ls allowed you to write either:"
2964 msgstr ""
2965
2966 #. type: verbatim
2967 #: ../cat/virt-ls.pod:447
2968 #, no-wrap
2969 msgid ""
2970 " virt-ls disk.img [disk.img ...] /dir\n"
2971 "\n"
2972 msgstr ""
2973
2974 #. type: verbatim
2975 #: ../cat/virt-ls.pod:451
2976 #, no-wrap
2977 msgid ""
2978 " virt-ls guestname /dir\n"
2979 "\n"
2980 msgstr ""
2981
2982 #. type: textblock
2983 #: ../cat/virt-ls.pod:497
2984 msgid ""
2985 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2986 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2987 "L<http://libguestfs.org/>."
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374
2992 #: ../rescue/virt-rescue.pod:340
2993 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2994 msgstr ""
2995
2996 #. type: textblock
2997 #: ../clone/virt-sysprep.pod:5
2998 msgid ""
2999 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3000 msgstr ""
3001
3002 #. type: verbatim
3003 #: ../clone/virt-sysprep.pod:9
3004 #, no-wrap
3005 msgid ""
3006 " virt-sysprep [--options] -d domname\n"
3007 "\n"
3008 msgstr ""
3009
3010 #. type: verbatim
3011 #: ../clone/virt-sysprep.pod:11
3012 #, no-wrap
3013 msgid ""
3014 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3015 "\n"
3016 msgstr ""
3017
3018 #. type: textblock
3019 #: ../clone/virt-sysprep.pod:15
3020 msgid ""
3021 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3022 "can be made from it.  Steps in this process include removing SSH host keys, "
3023 "removing persistent network MAC configuration, and removing user accounts.  "
3024 "Each step can be enabled or disabled as required."
3025 msgstr ""
3026
3027 #. type: textblock
3028 #: ../clone/virt-sysprep.pod:21
3029 msgid ""
3030 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3031 "customization by the system administrator."
3032 msgstr ""
3033
3034 #. type: textblock
3035 #: ../clone/virt-sysprep.pod:24
3036 msgid ""
3037 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3038 "be shut down.  If you want to preserve the existing contents of the guest, "
3039 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3040 msgstr ""
3041
3042 #. type: textblock
3043 #: ../clone/virt-sysprep.pod:29
3044 msgid ""
3045 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3046 "recommend that you don't.  The time you might want to run it as root is when "
3047 "you need root in order to access the disk image, but even in this case it "
3048 "would be better to change the permissions on the disk image to be writable "
3049 "as the non-root user running virt-sysprep."
3050 msgstr ""
3051
3052 #. type: textblock
3053 #: ../clone/virt-sysprep.pod:35
3054 msgid ""
3055 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3056 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3057 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3058 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3059 "Windows sysprepping in a future version, and we already have code to do it."
3060 msgstr ""
3061
3062 #. type: =item
3063 #: ../clone/virt-sysprep.pod:76
3064 msgid "B<--enable=...>"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../clone/virt-sysprep.pod:78
3069 msgid ""
3070 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3071 "operations, for example:"
3072 msgstr ""
3073
3074 #. type: verbatim
3075 #: ../clone/virt-sysprep.pod:81
3076 #, no-wrap
3077 msgid ""
3078 " --enable=ssh-hostkeys,udev-persistent-net\n"
3079 "\n"
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../clone/virt-sysprep.pod:83
3084 msgid ""
3085 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../clone/virt-sysprep.pod:85
3090 msgid ""
3091 "If the I<--enable> option is not given, then we default to trying all "
3092 "possible sysprep operations.  But some sysprep operations are skipped for "
3093 "some guest types."
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../clone/virt-sysprep.pod:89
3098 msgid ""
3099 "Use I<--list-operations> to list operations supported by a particular "
3100 "version of virt-sysprep."
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../clone/virt-sysprep.pod:92
3105 msgid ""
3106 "See L</OPERATIONS> below for a list and an explanation of each operation."
3107 msgstr ""
3108
3109 #. type: verbatim
3110 #: ../clone/virt-sysprep.pod:106
3111 #, no-wrap
3112 msgid ""
3113 " virt-sysprep --format=raw -a disk.img\n"
3114 "\n"
3115 msgstr ""
3116
3117 #. type: verbatim
3118 #: ../clone/virt-sysprep.pod:110
3119 #, no-wrap
3120 msgid ""
3121 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3122 "\n"
3123 msgstr ""
3124
3125 #. type: =item
3126 #: ../clone/virt-sysprep.pod:119
3127 msgid "B<--hostname> newhostname"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../clone/virt-sysprep.pod:121
3132 msgid ""
3133 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3134 "defaults to C<localhost.localdomain>."
3135 msgstr ""
3136
3137 #. type: =item
3138 #: ../clone/virt-sysprep.pod:124
3139 msgid "B<--list-operations>"
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../clone/virt-sysprep.pod:126
3144 msgid "List the operations supported by the virt-sysprep program."
3145 msgstr ""
3146
3147 #. type: =item
3148 #: ../clone/virt-sysprep.pod:128
3149 msgid "B<--selinux-relabel>"
3150 msgstr ""
3151
3152 #. type: =item
3153 #: ../clone/virt-sysprep.pod:130
3154 msgid "B<--no-selinux-relabel>"
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../clone/virt-sysprep.pod:132
3159 msgid ""
3160 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3161 "I<--no-selinux-relabel> disables relabelling."
3162 msgstr ""
3163
3164 #. type: textblock
3165 #: ../clone/virt-sysprep.pod:135
3166 msgid ""
3167 "The default is to try to detect if SELinux relabelling is required.  See L</"
3168 "SELINUX RELABELLING> below for more details."
3169 msgstr ""
3170
3171 #. type: =head1
3172 #: ../clone/virt-sysprep.pod:156
3173 msgid "OPERATIONS"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:158
3178 msgid ""
3179 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3180 "enabled>, although some are skipped depending on the type of guest."
3181 msgstr ""
3182
3183 #. type: textblock
3184 #: ../clone/virt-sysprep.pod:162
3185 msgid ""
3186 "Operations can be individually enabled using the I<--enable> option.  Use a "
3187 "comma-separated list, for example:"
3188 msgstr ""
3189
3190 #. type: verbatim
3191 #: ../clone/virt-sysprep.pod:165
3192 #, no-wrap
3193 msgid ""
3194 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3195 "\n"
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../clone/virt-sysprep.pod:167
3200 msgid ""
3201 "To list the operations supported by the current version of virt-sysprep, use "
3202 "I<--list-operations>."
3203 msgstr ""
3204
3205 #. type: textblock
3206 #: ../clone/virt-sysprep.pod:170
3207 msgid ""
3208 "Future versions of virt-sysprep may add more operations.  If you are using "
3209 "virt-sysprep and want predictable behaviour, specify only the operations "
3210 "that you want to have enabled."
3211 msgstr ""
3212
3213 #. type: =head2
3214 #: ../clone/virt-sysprep.pod:174
3215 msgid "cron-spool"
3216 msgstr ""
3217
3218 #. type: textblock
3219 #: ../clone/virt-sysprep.pod:176
3220 msgid "Remove user at-jobs and cron-jobs."
3221 msgstr ""
3222
3223 #. type: =head2
3224 #: ../clone/virt-sysprep.pod:178
3225 msgid "dhcp-client-state"
3226 msgstr ""
3227
3228 #. type: textblock
3229 #: ../clone/virt-sysprep.pod:180
3230 msgid "Remove DHCP client leases."
3231 msgstr ""
3232
3233 #. type: =head2
3234 #: ../clone/virt-sysprep.pod:182
3235 msgid "dhcp-server-state"
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../clone/virt-sysprep.pod:184
3240 msgid "Remove DHCP server leases."
3241 msgstr ""
3242
3243 #. type: =head2
3244 #: ../clone/virt-sysprep.pod:186
3245 msgid "hostname"
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../clone/virt-sysprep.pod:188
3250 msgid ""
3251 "Changes the hostname of the guest to the value given in the I<--hostname> "
3252 "parameter."
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../clone/virt-sysprep.pod:191
3257 msgid ""
3258 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3259 "C<localhost.localdomain>."
3260 msgstr ""
3261
3262 #. type: =head2
3263 #: ../clone/virt-sysprep.pod:194
3264 msgid "logfiles"
3265 msgstr ""
3266
3267 #. type: textblock
3268 #: ../clone/virt-sysprep.pod:196
3269 msgid "Remove many log files."
3270 msgstr ""
3271
3272 #. type: =head2
3273 #: ../clone/virt-sysprep.pod:198
3274 msgid "mail-spool"
3275 msgstr ""
3276
3277 #. type: textblock
3278 #: ../clone/virt-sysprep.pod:200
3279 msgid "Remove email from the local mail spool directory."
3280 msgstr ""
3281
3282 #. type: =head2
3283 #: ../clone/virt-sysprep.pod:202
3284 msgid "net-hwaddr"
3285 msgstr ""
3286
3287 #. type: textblock
3288 #: ../clone/virt-sysprep.pod:204
3289 msgid ""
3290 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3291 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3292 msgstr ""
3293
3294 #. type: =head2
3295 #: ../clone/virt-sysprep.pod:207
3296 msgid "random-seed"
3297 msgstr ""
3298
3299 #. type: textblock
3300 #: ../clone/virt-sysprep.pod:209
3301 msgid ""
3302 "Write some random bytes from the host into the random seed file of the guest."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../clone/virt-sysprep.pod:212
3307 msgid "See L</RANDOM SEED> below."
3308 msgstr ""
3309
3310 #. type: =head2
3311 #: ../clone/virt-sysprep.pod:214
3312 msgid "rhn-systemid"
3313 msgstr ""
3314
3315 #. type: textblock
3316 #: ../clone/virt-sysprep.pod:216
3317 msgid "Remove the RHN system ID."
3318 msgstr ""
3319
3320 #. type: =head2
3321 #: ../clone/virt-sysprep.pod:218
3322 msgid "smolt-uuid"
3323 msgstr ""
3324
3325 #. type: textblock
3326 #: ../clone/virt-sysprep.pod:220
3327 msgid "Remove the Smolt hardware UUID."
3328 msgstr ""
3329
3330 #. type: =head2
3331 #: ../clone/virt-sysprep.pod:222
3332 msgid "ssh-hostkeys"
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../clone/virt-sysprep.pod:224
3337 msgid "Remove the SSH host keys in the guest."
3338 msgstr ""
3339
3340 #. type: textblock
3341 #: ../clone/virt-sysprep.pod:226
3342 msgid ""
3343 "The SSH host keys are regenerated (differently) next time the guest is "
3344 "booted."
3345 msgstr ""
3346
3347 #. type: textblock
3348 #: ../clone/virt-sysprep.pod:229
3349 msgid ""
3350 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3351 "stark warning about the host key changing:"
3352 msgstr ""
3353
3354 #. type: verbatim
3355 #: ../clone/virt-sysprep.pod:232
3356 #, no-wrap
3357 msgid ""
3358 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3359 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3360 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3361 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3362 "\n"
3363 msgstr ""
3364
3365 #. type: =head2
3366 #: ../clone/virt-sysprep.pod:237
3367 msgid "udev-persistent-net"
3368 msgstr ""
3369
3370 #. type: textblock
3371 #: ../clone/virt-sysprep.pod:239
3372 msgid ""
3373 "Remove udev persistent net rules which map the guest's existing MAC address "
3374 "to a fixed ethernet device (eg. eth0)."
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../clone/virt-sysprep.pod:242
3379 msgid ""
3380 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3381 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3382 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3383 "Erasing the udev persistent net rules avoids this."
3384 msgstr ""
3385
3386 #. type: =head2
3387 #: ../clone/virt-sysprep.pod:247
3388 msgid "utmp"
3389 msgstr ""
3390
3391 #. type: textblock
3392 #: ../clone/virt-sysprep.pod:249
3393 msgid "Remove the utmp file."
3394 msgstr ""
3395
3396 #. type: textblock
3397 #: ../clone/virt-sysprep.pod:251
3398 msgid ""
3399 "This records who is currently logged in on a machine.  In modern Linux "
3400 "distros it is stored in a ramdisk and hence not part of the virtual "
3401 "machine's disk, but it was stored on disk in older distros."
3402 msgstr ""
3403
3404 #. type: =head2
3405 #: ../clone/virt-sysprep.pod:255
3406 msgid "yum-uuid"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../clone/virt-sysprep.pod:257
3411 msgid "Remove the yum UUID."
3412 msgstr ""
3413
3414 #. type: textblock
3415 #: ../clone/virt-sysprep.pod:259
3416 msgid ""
3417 "Yum creates a fresh UUID the next time it runs when it notices that the "
3418 "original UUID has been erased."
3419 msgstr ""
3420
3421 #. type: =head1
3422 #: ../clone/virt-sysprep.pod:262
3423 msgid "COPYING AND CLONING"
3424 msgstr ""
3425
3426 #. type: textblock
3427 #: ../clone/virt-sysprep.pod:264
3428 msgid ""
3429 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3430 "prepare a template from which guests can be cloned.  There are many "
3431 "different ways to achieve this using the virt tools, and this section is "
3432 "just an introduction."
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:269
3437 msgid "A virtual machine (when switched off) consists of two parts:"
3438 msgstr ""
3439
3440 #. type: =item
3441 #: ../clone/virt-sysprep.pod:273
3442 msgid "I<configuration>"
3443 msgstr ""
3444
3445 #. type: textblock
3446 #: ../clone/virt-sysprep.pod:275
3447 msgid ""
3448 "The configuration or description of the guest.  eg. The libvirt XML (see "
3449 "C<virsh dumpxml>), the running configuration of the guest, or another "
3450 "external format like OVF."
3451 msgstr ""
3452
3453 #. type: textblock
3454 #: ../clone/virt-sysprep.pod:279
3455 msgid "Some configuration items that might need to be changed:"
3456 msgstr ""
3457
3458 #. type: textblock
3459 #: ../clone/virt-sysprep.pod:285
3460 msgid "name"
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3465 msgid "UUID"
3466 msgstr ""
3467
3468 #. type: textblock
3469 #: ../clone/virt-sysprep.pod:293
3470 msgid "path to block device(s)"
3471 msgstr ""
3472
3473 #. type: textblock
3474 #: ../clone/virt-sysprep.pod:297
3475 msgid "network card MAC address"
3476 msgstr ""
3477
3478 #. type: =item
3479 #: ../clone/virt-sysprep.pod:301
3480 msgid "I<block device(s)>"
3481 msgstr ""
3482
3483 #. type: textblock
3484 #: ../clone/virt-sysprep.pod:303
3485 msgid ""
3486 "One or more hard disk images, themselves containing files, directories, "
3487 "applications, kernels, configuration, etc."
3488 msgstr ""
3489
3490 #. type: textblock
3491 #: ../clone/virt-sysprep.pod:306
3492 msgid "Some things inside the block devices that might need to be changed:"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../clone/virt-sysprep.pod:312
3497 msgid "hostname and other net configuration"
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../clone/virt-sysprep.pod:320
3502 msgid "SSH host keys"
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../clone/virt-sysprep.pod:324
3507 msgid "Windows unique security ID (SID)"
3508 msgstr ""
3509
3510 #. type: textblock
3511 #: ../clone/virt-sysprep.pod:328
3512 msgid "Puppet registration"
3513 msgstr ""
3514
3515 #. type: =head2
3516 #: ../clone/virt-sysprep.pod:334
3517 msgid "COPYING THE BLOCK DEVICE"
3518 msgstr ""
3519
3520 #. type: textblock
3521 #: ../clone/virt-sysprep.pod:336
3522 msgid ""
3523 "Starting with an original guest, you probably wish to copy the guest block "
3524 "device and its configuration to make a template.  Then once you are happy "
3525 "with the template, you will want to make many clones from it."
3526 msgstr ""
3527
3528 #. type: verbatim
3529 #: ../clone/virt-sysprep.pod:341
3530 #, no-wrap
3531 msgid ""
3532 "                        virt-sysprep\n"
3533 "                             |\n"
3534 "                             v\n"
3535 " original guest --------> template ---------->\n"
3536 "                                      \\------> cloned\n"
3537 "                                       \\-----> guests\n"
3538 "                                        \\---->\n"
3539 "\n"
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../clone/virt-sysprep.pod:349
3544 msgid ""
3545 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3546 "L<dd(1)>."
3547 msgstr ""
3548
3549 #. type: verbatim
3550 #: ../clone/virt-sysprep.pod:352
3551 #, no-wrap
3552 msgid ""
3553 "                   dd                 dd\n"
3554 " original guest --------> template ---------->\n"
3555 "                                      \\------> cloned\n"
3556 "                                       \\-----> guests\n"
3557 "                                        \\---->\n"
3558 "\n"
3559 msgstr ""
3560
3561 #. type: textblock
3562 #: ../clone/virt-sysprep.pod:358
3563 msgid "There are some smarter (and faster) ways too:"
3564 msgstr ""
3565
3566 #. type: verbatim
3567 #: ../clone/virt-sysprep.pod:364
3568 #, no-wrap
3569 msgid ""
3570 "                          snapshot\n"
3571 "                template ---------->\n"
3572 "                            \\------> cloned\n"
3573 "                             \\-----> guests\n"
3574 "                              \\---->\n"
3575 "\n"
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:370
3580 msgid ""
3581 "Use the block device as a backing file and create a snapshot on top for each "
3582 "guest.  The advantage is that you don't need to copy the block device (very "
3583 "fast) and only changes are stored (less storage required)."
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../clone/virt-sysprep.pod:375
3588 msgid ""
3589 "Note that writing to the backing file once you have created guests on top of "
3590 "it is not possible: you will corrupt the guests."
3591 msgstr ""
3592
3593 #. type: textblock
3594 #: ../clone/virt-sysprep.pod:378
3595 msgid ""
3596 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3597 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3598 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3599 "also create cheap snapshots from files or LUNs."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../clone/virt-sysprep.pod:386
3604 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3605 msgstr ""
3606
3607 #. type: textblock
3608 #: ../clone/virt-sysprep.pod:390
3609 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3610 msgstr ""
3611
3612 #. type: =head2
3613 #: ../clone/virt-sysprep.pod:394
3614 msgid "VIRT-CLONE"
3615 msgstr ""
3616
3617 #. type: textblock
3618 #: ../clone/virt-sysprep.pod:396
3619 msgid ""
3620 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3621 "and/or modify the external libvirt configuration of a guest.  It will reset "
3622 "the name, UUID and MAC address of the guest in the libvirt XML."
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../clone/virt-sysprep.pod:401
3627 msgid ""
3628 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3629 "image.  This was the original motivation to write virt-sysprep."
3630 msgstr ""
3631
3632 #. type: =head2
3633 #: ../clone/virt-sysprep.pod:404
3634 msgid "SPARSIFY"
3635 msgstr ""
3636
3637 #. type: verbatim
3638 #: ../clone/virt-sysprep.pod:406
3639 #, no-wrap
3640 msgid ""
3641 "              virt-sparsify\n"
3642 " original guest --------> template\n"
3643 "\n"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../clone/virt-sysprep.pod:409
3648 msgid ""
3649 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3650 "it easier to compress and/or faster to copy."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../clone/virt-sysprep.pod:412
3655 msgid ""
3656 "Notice that since virt-sparsify also copies the image, you can use it to "
3657 "make the initial copy (instead of C<dd>)."
3658 msgstr ""
3659
3660 #. type: =head2
3661 #: ../clone/virt-sysprep.pod:415
3662 msgid "RESIZE"
3663 msgstr ""
3664
3665 #. type: verbatim
3666 #: ../clone/virt-sysprep.pod:417
3667 #, no-wrap
3668 msgid ""
3669 "                         virt-resize\n"
3670 "                template ---------->\n"
3671 "                            \\------> cloned\n"
3672 "                             \\-----> guests\n"
3673 "                              \\---->\n"
3674 "\n"
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../clone/virt-sysprep.pod:423
3679 msgid ""
3680 "If you want to give people cloned guests, but let them pick the size of the "
3681 "guest themselves (eg. depending on how much they are prepared to pay for "
3682 "disk space), then instead of copying the template, you can run L<virt-resize"
3683 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3684 "guests from a template."
3685 msgstr ""
3686
3687 #. type: =head1
3688 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3689 msgid "SECURITY"
3690 msgstr ""
3691
3692 #. type: textblock
3693 #: ../clone/virt-sysprep.pod:431
3694 msgid ""
3695 "Although virt-sysprep removes some sensitive information from the guest, it "
3696 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3697 "above, and the implementation of the operations in the shell script.  You "
3698 "should also examine the guest afterwards."
3699 msgstr ""
3700
3701 #. type: textblock
3702 #: ../clone/virt-sysprep.pod:436
3703 msgid ""
3704 "Sensitive files are simply removed.  The data they contained may still exist "
3705 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3706 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3707 "(1)> command to get rid of deleted content in directory entries and inodes."
3708 msgstr ""
3709
3710 #. type: =head2
3711 #: ../clone/virt-sysprep.pod:442
3712 msgid "RANDOM SEED"
3713 msgstr ""
3714
3715 #. type: textblock
3716 #: ../clone/virt-sysprep.pod:444
3717 msgid "I<(This section applies to Linux guests only)>"
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../clone/virt-sysprep.pod:446
3722 msgid ""
3723 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3724 "from the host into the guest's random seed file."
3725 msgstr ""
3726
3727 #. type: textblock
3728 #: ../clone/virt-sysprep.pod:449
3729 msgid ""
3730 "If this is just done once and the guest is cloned from the same template, "
3731 "then each guest will start with the same entropy, and things like SSH host "
3732 "keys and TCP sequence numbers may be predictable."
3733 msgstr ""
3734
3735 #. type: textblock
3736 #: ../clone/virt-sysprep.pod:453
3737 msgid ""
3738 "Therefore you should arrange to add more randomness I<after> cloning from a "
3739 "template too, which can be done by just enabling the C<random-seed> "
3740 "operation:"
3741 msgstr ""
3742
3743 #. type: verbatim
3744 #: ../clone/virt-sysprep.pod:457
3745 #, no-wrap
3746 msgid ""
3747 " cp template.img newguest.img\n"
3748 " virt-sysprep --enable=random-seed -a newguest.img\n"
3749 "\n"
3750 msgstr ""
3751
3752 #. type: =head2
3753 #: ../clone/virt-sysprep.pod:460
3754 msgid "SELINUX RELABELLING"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../clone/virt-sysprep.pod:462
3759 msgid "I<(This section applies to Linux guests using SELinux only)>"
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../clone/virt-sysprep.pod:464
3764 msgid ""
3765 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3766 "autorelabel> so that these will be correctly labelled by SELinux the next "
3767 "time the guest is booted.  This process interrupts boot and can take some "
3768 "time."
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../clone/virt-sysprep.pod:469
3773 msgid ""
3774 "You can force relabelling for all guests by supplying the I<--selinux-"
3775 "relabel> option."
3776 msgstr ""
3777
3778 #. type: textblock
3779 #: ../clone/virt-sysprep.pod:472
3780 msgid ""
3781 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3782 "relabel> option."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../clone/virt-sysprep.pod:484
3787 msgid "This program returns 0 on success, or 1 if there was an error."
3788 msgstr ""
3789
3790 #. type: textblock
3791 #: ../clone/virt-sysprep.pod:488
3792 msgid ""
3793 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3794 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3795 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3796 msgstr ""
3797
3798 #. type: textblock
3799 #: ../df/virt-df.pod:5
3800 msgid "virt-df - Display free space on virtual filesystems"
3801 msgstr ""
3802
3803 #. type: verbatim
3804 #: ../df/virt-df.pod:9
3805 #, no-wrap
3806 msgid ""
3807 " virt-df [--options]\n"
3808 "\n"
3809 msgstr ""
3810
3811 #. type: verbatim
3812 #: ../df/virt-df.pod:11
3813 #, no-wrap
3814 msgid ""
3815 " virt-df [--options] -d domname\n"
3816 "\n"
3817 msgstr ""
3818
3819 #. type: verbatim
3820 #: ../df/virt-df.pod:13
3821 #, no-wrap
3822 msgid ""
3823 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3824 "\n"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../df/virt-df.pod:17
3829 #, no-wrap
3830 msgid ""
3831 " virt-df [--options] domname\n"
3832 "\n"
3833 msgstr ""
3834
3835 #. type: verbatim
3836 #: ../df/virt-df.pod:19
3837 #, no-wrap
3838 msgid ""
3839 " virt-df [--options] disk.img [disk.img ...]\n"
3840 "\n"
3841 msgstr ""
3842
3843 #. type: textblock
3844 #: ../df/virt-df.pod:23
3845 msgid ""
3846 "C<virt-df> is a command line tool to display free space on virtual machine "
3847 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3848 "allocated to a virtual machine, but can look inside disk images to see how "
3849 "much space is really being used."
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../df/virt-df.pod:28
3854 msgid ""
3855 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3856 "to get a list of all active and inactive guests, and performs a C<df>-type "
3857 "operation on each one in turn, printing out the results."
3858 msgstr ""
3859
3860 #. type: textblock
3861 #: ../df/virt-df.pod:32
3862 msgid ""
3863 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3864 "type operation on either the single named libvirt domain, or on the disk "
3865 "image(s) listed on the command line (which must all belong to a single VM).  "
3866 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3867 "guest>.  If you want to run on multiple guests, then you have to invoke "
3868 "C<virt-df> multiple times."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../df/virt-df.pod:39
3873 msgid ""
3874 "Use the I<--csv> option to get a format which can be easily parsed by other "
3875 "programs.  Other options are similar to the standard L<df(1)> command."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../df/virt-df.pod:45
3880 msgid ""
3881 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3882 "output human-readable:"
3883 msgstr ""
3884
3885 #. type: verbatim
3886 #: ../df/virt-df.pod:48
3887 #, no-wrap
3888 msgid ""
3889 " # virt-df -d F14x64 -h\n"
3890 " Filesystem                       Size     Used  Available  Use%\n"
3891 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3892 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../df/virt-df.pod:53
3898 msgid "Show disk usage for a disk image file called C<test.img>:"
3899 msgstr ""
3900
3901 #. type: verbatim
3902 #: ../df/virt-df.pod:55
3903 #, no-wrap
3904 msgid ""
3905 " $ virt-df -a test1.img\n"
3906 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3907 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3908 "\n"
3909 msgstr ""
3910
3911 #. type: verbatim
3912 #: ../df/virt-df.pod:112
3913 #, no-wrap
3914 msgid ""
3915 " virt-df --format=raw -a disk.img\n"
3916 "\n"
3917 msgstr ""
3918
3919 #. type: verbatim
3920 #: ../df/virt-df.pod:116
3921 #, no-wrap
3922 msgid ""
3923 " virt-df --format=raw -a disk.img --format -a another.img\n"
3924 "\n"
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:129
3929 msgid "Print sizes in human-readable format."
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../df/virt-df.pod:131
3934 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3935 msgstr ""
3936
3937 #. type: =item
3938 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3939 msgid "B<-i>"
3940 msgstr ""
3941
3942 #. type: =item
3943 #: ../df/virt-df.pod:135
3944 msgid "B<--inodes>"
3945 msgstr ""
3946
3947 #. type: textblock
3948 #: ../df/virt-df.pod:137
3949 msgid "Print inodes instead of blocks."
3950 msgstr ""
3951
3952 #. type: =item
3953 #: ../df/virt-df.pod:139
3954 msgid "B<--one-per-guest>"
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../df/virt-df.pod:141
3959 msgid ""
3960 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3961 "disks from several guests to a single libguestfs appliance."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:144
3966 msgid "You might use this option in the following circumstances:"
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../df/virt-df.pod:150
3971 msgid ""
3972 "If you think an untrusted guest might actively try to exploit the libguestfs "
3973 "appliance kernel, then this prevents one guest from interfering with the "
3974 "stats printed for another guest."
3975 msgstr ""
3976
3977 #. type: textblock
3978 #: ../df/virt-df.pod:156
3979 msgid ""
3980 "If the kernel has a bug which stops it from accessing a filesystem in one "
3981 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3982 "and report stats for further guests."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../df/virt-df.pod:165
3987 msgid ""
3988 "Print UUIDs instead of names.  This is useful for following a guest even "
3989 "when the guest is migrated or renamed, or when two guests happen to have the "
3990 "same name."
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../df/virt-df.pod:169
3995 msgid ""
3996 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3997 "images, we still print the disk image name even when this option is "
3998 "specified."
3999 msgstr ""
4000
4001 #. type: =head1
4002 #: ../df/virt-df.pod:191
4003 msgid "STATVFS NUMBERS"
4004 msgstr ""
4005
4006 #. type: textblock
4007 #: ../df/virt-df.pod:193
4008 msgid ""
4009 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
4010 "call.  You can get the same information directly, either from the host "
4011 "(using libguestfs) or inside the guest:"
4012 msgstr ""
4013
4014 #. type: =item
4015 #: ../df/virt-df.pod:199
4016 msgid "From the host"
4017 msgstr ""
4018
4019 #. type: textblock
4020 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
4021 msgid "Run this command:"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../df/virt-df.pod:203
4026 #, no-wrap
4027 msgid ""
4028 " guestfish --ro -d GuestName -i statvfs /\n"
4029 "\n"
4030 msgstr ""
4031
4032 #. type: textblock
4033 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
4034 msgid "(change C</> to see stats for other filesystems)."
4035 msgstr ""
4036
4037 #. type: =item
4038 #: ../df/virt-df.pod:207
4039 msgid "From inside the guest"
4040 msgstr ""
4041
4042 #. type: verbatim
4043 #: ../df/virt-df.pod:211
4044 #, no-wrap
4045 msgid ""
4046 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
4047 "\n"
4048 msgstr ""
4049
4050 #. type: textblock
4051 #: ../df/virt-df.pod:255
4052 msgid ""
4053 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4054 "libguestfs.org/>."
4055 msgstr ""
4056
4057 #. type: textblock
4058 #: ../edit/virt-edit.pod:5
4059 msgid "virt-edit - Edit a file in a virtual machine"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../edit/virt-edit.pod:9
4064 #, no-wrap
4065 msgid ""
4066 " virt-edit [--options] -d domname file [file ...]\n"
4067 "\n"
4068 msgstr ""
4069
4070 #. type: verbatim
4071 #: ../edit/virt-edit.pod:11
4072 #, no-wrap
4073 msgid ""
4074 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4075 "\n"
4076 msgstr ""
4077
4078 #. type: verbatim
4079 #: ../edit/virt-edit.pod:13
4080 #, no-wrap
4081 msgid ""
4082 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4083 "\n"
4084 msgstr ""
4085
4086 #. type: verbatim
4087 #: ../edit/virt-edit.pod:17
4088 #, no-wrap
4089 msgid ""
4090 " virt-edit domname file\n"
4091 "\n"
4092 msgstr ""
4093
4094 #. type: verbatim
4095 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4096 #, no-wrap
4097 msgid ""
4098 " virt-edit disk.img [disk.img ...] file\n"
4099 "\n"
4100 msgstr ""
4101
4102 #. type: =head1
4103 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4104 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4105 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4106 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4107 msgid "WARNING"
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../edit/virt-edit.pod:23
4112 msgid ""
4113 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4114 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4115 "doing this, but doesn't catch all cases."
4116 msgstr ""
4117
4118 #. type: textblock
4119 #: ../edit/virt-edit.pod:29
4120 msgid ""
4121 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4122 "exists in the named virtual machine (or disk image)."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../edit/virt-edit.pod:32
4127 msgid ""
4128 "Multiple filenames can be given, in which case they are each edited in "
4129 "turn.  Each filename must be a full path, starting at the root directory "
4130 "(starting with '/')."
4131 msgstr ""
4132
4133 #. type: textblock
4134 #: ../edit/virt-edit.pod:36
4135 msgid "If you want to just view a file, use L<virt-cat(1)>."
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../edit/virt-edit.pod:38
4140 msgid ""
4141 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4142 "USING GUESTFISH> below)."
4143 msgstr ""
4144
4145 #. type: textblock
4146 #: ../edit/virt-edit.pod:41
4147 msgid ""
4148 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4149 "that and much more."
4150 msgstr ""
4151
4152 #. type: textblock
4153 #: ../edit/virt-edit.pod:46
4154 msgid "Edit the named files interactively:"
4155 msgstr ""
4156
4157 #. type: verbatim
4158 #: ../edit/virt-edit.pod:48
4159 #, no-wrap
4160 msgid ""
4161 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4162 "\n"
4163 msgstr ""
4164
4165 #. type: verbatim
4166 #: ../edit/virt-edit.pod:50
4167 #, no-wrap
4168 msgid ""
4169 " virt-edit -d mydomain /etc/passwd\n"
4170 "\n"
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:52
4175 msgid "For Windows guests, some Windows paths are understood:"
4176 msgstr ""
4177
4178 #. type: verbatim
4179 #: ../edit/virt-edit.pod:54
4180 #, no-wrap
4181 msgid ""
4182 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4183 "\n"
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../edit/virt-edit.pod:56
4188 msgid ""
4189 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4190 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4191 msgstr ""
4192
4193 #. type: verbatim
4194 #: ../edit/virt-edit.pod:60
4195 #, no-wrap
4196 msgid ""
4197 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4198 "\n"
4199 msgstr ""
4200
4201 #. type: =item
4202 #: ../edit/virt-edit.pod:81
4203 msgid "B<-b> extension"
4204 msgstr ""
4205
4206 #. type: =item
4207 #: ../edit/virt-edit.pod:83
4208 msgid "B<--backup> extension"
4209 msgstr ""
4210
4211 #. type: textblock
4212 #: ../edit/virt-edit.pod:85
4213 msgid ""
4214 "Create a backup of the original file I<in the guest disk image>.  The backup "
4215 "has the original filename with C<extension> added."
4216 msgstr ""
4217
4218 #. type: textblock
4219 #: ../edit/virt-edit.pod:88
4220 msgid ""
4221 "Usually the first character of C<extension> would be a dot C<.> so you would "
4222 "write:"
4223 msgstr ""
4224
4225 #. type: verbatim
4226 #: ../edit/virt-edit.pod:91
4227 #, no-wrap
4228 msgid ""
4229 " virt-edit -b .orig [etc]\n"
4230 "\n"
4231 msgstr ""
4232
4233 #. type: textblock
4234 #: ../edit/virt-edit.pod:93
4235 msgid "By default, no backup file is made."
4236 msgstr ""
4237
4238 #. type: =item
4239 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4240 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4241 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4242 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4243 msgid "B<-c URI>"
4244 msgstr ""
4245
4246 #. type: =item
4247 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4248 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4249 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4250 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4251 msgid "B<--connect URI>"
4252 msgstr ""
4253
4254 #. type: textblock
4255 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4256 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4257 #: ../tools/virt-win-reg.pl:135
4258 msgid ""
4259 "If you specify guest block devices directly, then libvirt is not used at all."
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../edit/virt-edit.pod:114
4264 msgid ""
4265 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4266 "off so you cannot see what you are typing.  If you are not worried about "
4267 "Tempest attacks and there is no one else in the room you can specify this "
4268 "flag to see what you are typing."
4269 msgstr ""
4270
4271 #. type: =item
4272 #: ../edit/virt-edit.pod:119
4273 msgid "B<-e> EXPR"
4274 msgstr ""
4275
4276 #. type: =item
4277 #: ../edit/virt-edit.pod:121
4278 msgid "B<--expr> EXPR"
4279 msgstr ""
4280
4281 #. type: textblock
4282 #: ../edit/virt-edit.pod:123
4283 msgid ""
4284 "Instead of launching the external editor, non-interactively apply the Perl "
4285 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4286 "EDITING> below."
4287 msgstr ""
4288
4289 #. type: textblock
4290 #: ../edit/virt-edit.pod:127
4291 msgid ""
4292 "Be careful to properly quote the expression to prevent it from being altered "
4293 "by the shell."
4294 msgstr ""
4295
4296 #. type: textblock
4297 #: ../edit/virt-edit.pod:130
4298 msgid "Note that this option is only available when Perl 5 is installed."
4299 msgstr ""
4300
4301 #. type: =item
4302 #: ../edit/virt-edit.pod:132
4303 msgid "B<--format> raw|qcow2|..."
4304 msgstr ""
4305
4306 #. type: verbatim
4307 #: ../edit/virt-edit.pod:143
4308 #, no-wrap
4309 msgid ""
4310 " virt-edit --format=raw -a disk.img file\n"
4311 "\n"
4312 msgstr ""
4313
4314 #. type: verbatim
4315 #: ../edit/virt-edit.pod:147
4316 #, no-wrap
4317 msgid ""
4318 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4319 "\n"
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../edit/virt-edit.pod:181
4324 msgid "Previous versions of virt-edit allowed you to write either:"
4325 msgstr ""
4326
4327 #. type: verbatim
4328 #: ../edit/virt-edit.pod:187
4329 #, no-wrap
4330 msgid ""
4331 " virt-edit guestname file\n"
4332 "\n"
4333 msgstr ""
4334
4335 #. type: =head1
4336 #: ../edit/virt-edit.pod:195
4337 msgid "NON-INTERACTIVE EDITING"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../edit/virt-edit.pod:197
4342 msgid ""
4343 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4344 "administrator can interactively edit the file."
4345 msgstr ""
4346
4347 #. type: textblock
4348 #: ../edit/virt-edit.pod:200
4349 msgid ""
4350 "There are two ways also to use C<virt-edit> from scripts in order to make "
4351 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4352 "like this, it's less error-prone to write scripts directly using the "
4353 "libguestfs API and Augeas for configuration file editing.)"
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../edit/virt-edit.pod:206
4358 msgid ""
4359 "The first method is to temporarily set C<$EDITOR> to any script or program "
4360 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4361 "update C<tmpfile> in place however it likes."
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../edit/virt-edit.pod:210
4366 msgid ""
4367 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4368 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4369 "instances of C<foo> with C<bar> in a file:"
4370 msgstr ""
4371
4372 #. type: verbatim
4373 #: ../edit/virt-edit.pod:214
4374 #, no-wrap
4375 msgid ""
4376 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4377 "\n"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../edit/virt-edit.pod:216
4382 msgid ""
4383 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4384 "For example to delete root's password you could do:"
4385 msgstr ""
4386
4387 #. type: verbatim
4388 #: ../edit/virt-edit.pod:219
4389 #, no-wrap
4390 msgid ""
4391 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4392 "\n"
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../edit/virt-edit.pod:221
4397 msgid ""
4398 "What really happens is that the snippet is evaluated as a Perl expression "
4399 "for each line of the file.  The line, including the final C<\\n>, is passed "
4400 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4401 msgstr ""
4402
4403 #. type: textblock
4404 #: ../edit/virt-edit.pod:226
4405 msgid ""
4406 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4407 "C<apache> user account from the password file you can do:"
4408 msgstr ""
4409
4410 #. type: verbatim
4411 #: ../edit/virt-edit.pod:229
4412 #, no-wrap
4413 msgid ""
4414 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4415 "\n"
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../edit/virt-edit.pod:231
4420 msgid ""
4421 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4422 "the end of the file is rather difficult this way since there is no concept "
4423 "of \"last line of the file\" - your expression just doesn't get called "
4424 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4425 "want to do this."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:237
4430 msgid ""
4431 "The variable C<$lineno> contains the current line number.  As is "
4432 "traditional, the first line in the file is number C<1>."
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../edit/virt-edit.pod:240
4437 msgid ""
4438 "The return value from the expression is ignored, but the expression may call "
4439 "C<die> in order to abort the whole program, leaving the original file "
4440 "untouched."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../edit/virt-edit.pod:244
4445 msgid ""
4446 "Remember when matching the end of a line that C<$_> may contain the final C<"
4447 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4448 "newline then neither of these.  Thus to match or substitute some text at the "
4449 "end of a line, use this regular expression:"
4450 msgstr ""
4451
4452 #. type: verbatim
4453 #: ../edit/virt-edit.pod:249
4454 #, no-wrap
4455 msgid ""
4456 " /some text(\\r?\\n)?$/\n"
4457 "\n"
4458 msgstr ""
4459
4460 #. type: textblock
4461 #: ../edit/virt-edit.pod:251
4462 msgid ""
4463 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4464 "$_> itself (since that would remove all newlines from the file):"
4465 msgstr ""
4466
4467 #. type: verbatim
4468 #: ../edit/virt-edit.pod:255
4469 #, no-wrap
4470 msgid ""
4471 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../edit/virt-edit.pod:259
4477 msgid ""
4478 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4479 "paths (eg. C<E:\\foo\\bar.txt>)."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../edit/virt-edit.pod:278
4484 msgid ""
4485 "The path is resolved case insensitively to locate the file that should be "
4486 "edited."
4487 msgstr ""
4488
4489 #. type: textblock
4490 #: ../edit/virt-edit.pod:299
4491 msgid ""
4492 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4493 "C<virt-edit> doesn't work."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../edit/virt-edit.pod:302
4498 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4499 msgstr ""
4500
4501 #. type: verbatim
4502 #: ../edit/virt-edit.pod:304
4503 #, no-wrap
4504 msgid ""
4505 " guestfish --rw -i -d domname edit /file\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../edit/virt-edit.pod:306
4511 msgid ""
4512 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4513 "path to the file."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../edit/virt-edit.pod:309
4518 msgid ""
4519 "The command above uses libguestfs's guest inspection feature and so does not "
4520 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4521 "disk images that don't contain guests.  To edit a file on a disk image "
4522 "directly, use:"
4523 msgstr ""
4524
4525 #. type: verbatim
4526 #: ../edit/virt-edit.pod:314
4527 #, no-wrap
4528 msgid ""
4529 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4530 "\n"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../edit/virt-edit.pod:316
4535 msgid ""
4536 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4537 "the disk image to edit, and C</file> is the full path to the file."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../edit/virt-edit.pod:320
4542 msgid ""
4543 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4544 "C<write> or C<upload> instead:"
4545 msgstr ""
4546
4547 #. type: verbatim
4548 #: ../edit/virt-edit.pod:323
4549 #, no-wrap
4550 msgid ""
4551 " guestfish --rw -i -d domname touch /newfile\n"
4552 "\n"
4553 msgstr ""
4554
4555 #. type: verbatim
4556 #: ../edit/virt-edit.pod:325
4557 #, no-wrap
4558 msgid ""
4559 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4560 "\n"
4561 msgstr ""
4562
4563 #. type: verbatim
4564 #: ../edit/virt-edit.pod:327
4565 #, no-wrap
4566 msgid ""
4567 " guestfish --rw -i -d domname upload localfile /newfile\n"
4568 "\n"
4569 msgstr ""
4570
4571 #. type: =head1
4572 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4573 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:256
4574 #: ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4575 msgid "ENVIRONMENT VARIABLES"
4576 msgstr ""
4577
4578 #. type: =item
4579 #: ../edit/virt-edit.pod:333
4580 msgid "C<EDITOR>"
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../edit/virt-edit.pod:335
4585 msgid ""
4586 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4587 "\"emacs -nw\">"
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../edit/virt-edit.pod:338
4592 msgid "If not set, C<vi> is used."
4593 msgstr ""
4594
4595 #. type: textblock
4596 #: ../edit/virt-edit.pod:356
4597 msgid ""
4598 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4599 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4600 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../erlang/examples/guestfs-erlang.pod:5
4605 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4606 msgstr ""
4607
4608 #. type: verbatim
4609 #: ../erlang/examples/guestfs-erlang.pod:9
4610 #, no-wrap
4611 msgid ""
4612 " {ok, G} = guestfs:create(),\n"
4613 " ok = guestfs:add_drive_opts(G, Disk,\n"
4614 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4615 " ok = guestfs:launch(G),\n"
4616 " [Device] = guestfs:list_devices(G),\n"
4617 " ok = guestfs:close(G).\n"
4618 "\n"
4619 msgstr ""
4620
4621 #. type: textblock
4622 #: ../erlang/examples/guestfs-erlang.pod:18
4623 msgid ""
4624 "This manual page documents how to call libguestfs from the Erlang "
4625 "programming language.  This page just documents the differences from the C "
4626 "API and gives some examples.  If you are not familiar with using libguestfs, "
4627 "you also need to read L<guestfs(3)>."
4628 msgstr ""
4629
4630 #. type: =head2
4631 #: ../erlang/examples/guestfs-erlang.pod:23
4632 msgid "OPENING AND CLOSING THE HANDLE"
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../erlang/examples/guestfs-erlang.pod:25
4637 msgid ""
4638 "The Erlang bindings are implemented using an external program called C<erl-"
4639 "guestfs>.  This program must be on the current PATH, or else you should "
4640 "specify the full path to the program:"
4641 msgstr ""
4642
4643 #. type: verbatim
4644 #: ../erlang/examples/guestfs-erlang.pod:29
4645 #, no-wrap
4646 msgid ""
4647 " {ok, G} = guestfs:create().\n"
4648 "\n"
4649 msgstr ""
4650
4651 #. type: verbatim
4652 #: ../erlang/examples/guestfs-erlang.pod:31
4653 #, no-wrap
4654 msgid ""
4655 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4656 "\n"
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../erlang/examples/guestfs-erlang.pod:33
4661 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4662 msgstr ""
4663
4664 #. type: textblock
4665 #: ../erlang/examples/guestfs-erlang.pod:36
4666 msgid "To close the handle:"
4667 msgstr ""
4668
4669 #. type: verbatim
4670 #: ../erlang/examples/guestfs-erlang.pod:38
4671 #, no-wrap
4672 msgid ""
4673 " ok = guestfs:close(G).\n"
4674 "\n"
4675 msgstr ""
4676
4677 #. type: =head2
4678 #: ../erlang/examples/guestfs-erlang.pod:40
4679 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4680 msgstr ""
4681
4682 #. type: textblock
4683 #: ../erlang/examples/guestfs-erlang.pod:42
4684 msgid ""
4685 "For functions that take optional arguments, the first arguments are the non-"
4686 "optional ones.  The last argument is a list of tuples supplying the "
4687 "remaining optional arguments."
4688 msgstr ""
4689
4690 #. type: verbatim
4691 #: ../erlang/examples/guestfs-erlang.pod:46
4692 #, no-wrap
4693 msgid ""
4694 " ok = guestfs:add_drive_opts(G, Disk,\n"
4695 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4696 "\n"
4697 msgstr ""
4698
4699 #. type: textblock
4700 #: ../erlang/examples/guestfs-erlang.pod:49
4701 msgid "If the last argument would be an empty list, you can also omit it:"
4702 msgstr ""
4703
4704 #. type: verbatim
4705 #: ../erlang/examples/guestfs-erlang.pod:51
4706 #, no-wrap
4707 msgid ""
4708 " ok = guestfs:add_drive_opts(G, Disk).\n"
4709 "\n"
4710 msgstr ""
4711
4712 #. type: =head2
4713 #: ../erlang/examples/guestfs-erlang.pod:53
4714 msgid "RETURN VALUES AND ERRORS"
4715 msgstr ""
4716
4717 #. type: textblock
4718 #: ../erlang/examples/guestfs-erlang.pod:55
4719 msgid ""
4720 "On success, most functions return a C<Result> term (which could be a list, "
4721 "string, tuple etc.).  If there is nothing for the function to return, then "
4722 "the atom C<ok> is returned."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../erlang/examples/guestfs-erlang.pod:59
4727 msgid "On error, you would see one of the following tuples:"
4728 msgstr ""
4729
4730 #. type: =item
4731 #: ../erlang/examples/guestfs-erlang.pod:63
4732 msgid "C<{error, Msg, Errno}>"
4733 msgstr ""
4734
4735 #. type: textblock
4736 #: ../erlang/examples/guestfs-erlang.pod:65
4737 msgid "This indicates an ordinary error from the function."
4738 msgstr ""
4739
4740 #. type: textblock
4741 #: ../erlang/examples/guestfs-erlang.pod:67
4742 msgid ""
4743 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4744 "(integer)."
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../erlang/examples/guestfs-erlang.pod:70
4749 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4750 msgstr ""
4751
4752 #. type: =item
4753 #: ../erlang/examples/guestfs-erlang.pod:72
4754 msgid "C<{unknown, Function}>"
4755 msgstr ""
4756
4757 #. type: textblock
4758 #: ../erlang/examples/guestfs-erlang.pod:74
4759 msgid ""
4760 "This indicates that the function you called is not known.  Generally this "
4761 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4762 "which you should not do."
4763 msgstr ""
4764
4765 #. type: textblock
4766 #: ../erlang/examples/guestfs-erlang.pod:78
4767 msgid "C<Function> is the name of the unknown function."
4768 msgstr ""
4769
4770 #. type: =item
4771 #: ../erlang/examples/guestfs-erlang.pod:80
4772 msgid "C<{unknownarg, Arg}>"
4773 msgstr ""
4774
4775 #. type: textblock
4776 #: ../erlang/examples/guestfs-erlang.pod:82
4777 msgid ""
4778 "This indicates that you called a function with optional arguments, with an "
4779 "unknown argument name."
4780 msgstr ""
4781
4782 #. type: textblock
4783 #: ../erlang/examples/guestfs-erlang.pod:85
4784 msgid "C<Arg> is the name of the unknown argument."
4785 msgstr ""
4786
4787 #. type: =head1
4788 #: ../erlang/examples/guestfs-erlang.pod:89
4789 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4790 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4791 #: ../python/examples/guestfs-python.pod:34
4792 #: ../ruby/examples/guestfs-ruby.pod:28
4793 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../erlang/examples/guestfs-erlang.pod:91
4798 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4799 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4800 #: ../python/examples/guestfs-python.pod:36
4801 #: ../ruby/examples/guestfs-ruby.pod:30
4802 msgid "@EXAMPLE1@"
4803 msgstr ""
4804
4805 #. type: =head1
4806 #: ../erlang/examples/guestfs-erlang.pod:93
4807 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4808 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4809 #: ../python/examples/guestfs-python.pod:38
4810 #: ../ruby/examples/guestfs-ruby.pod:32
4811 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../erlang/examples/guestfs-erlang.pod:95
4816 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4817 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4818 #: ../python/examples/guestfs-python.pod:40
4819 #: ../ruby/examples/guestfs-ruby.pod:34
4820 msgid "@EXAMPLE2@"
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../erlang/examples/guestfs-erlang.pod:99
4825 msgid ""
4826 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4827 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4828 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4829 msgstr ""
4830
4831 #. type: =head1
4832 #: ../erlang/examples/guestfs-erlang.pod:110
4833 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4834 #: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296
4835 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4836 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4837 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4838 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4839 #: ../perl/examples/guestfs-perl.pod:52
4840 #: ../python/examples/guestfs-python.pod:54
4841 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354
4842 #: ../test-tool/libguestfs-test-tool.pod:106
4843 msgid "AUTHORS"
4844 msgstr ""
4845
4846 #. type: textblock
4847 #: ../erlang/examples/guestfs-erlang.pod:112
4848 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4849 #: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298
4850 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4851 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4852 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4853 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4854 #: ../python/examples/guestfs-python.pod:56
4855 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356
4856 #: ../test-tool/libguestfs-test-tool.pod:108
4857 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4858 msgstr ""
4859
4860 #. type: textblock
4861 #: ../erlang/examples/guestfs-erlang.pod:116
4862 #: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64
4863 #: ../perl/examples/guestfs-perl.pod:58
4864 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../erlang/examples/guestfs-erlang.pod:118
4869 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4870 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4871 #: ../perl/examples/guestfs-perl.pod:60
4872 #: ../python/examples/guestfs-python.pod:62
4873 #: ../ruby/examples/guestfs-ruby.pod:56
4874 msgid ""
4875 "The examples in this manual page may be freely copied, modified and "
4876 "distributed without any restrictions."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../erlang/examples/guestfs-erlang.pod:121
4881 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4882 #: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69
4883 #: ../ocaml/examples/guestfs-ocaml.pod:102
4884 #: ../perl/examples/guestfs-perl.pod:63
4885 #: ../python/examples/guestfs-python.pod:65
4886 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363
4887 msgid ""
4888 "This library is free software; you can redistribute it and/or modify it "
4889 "under the terms of the GNU Lesser General Public License as published by the "
4890 "Free Software Foundation; either version 2 of the License, or (at your "
4891 "option) any later version."
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../erlang/examples/guestfs-erlang.pod:126
4896 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4897 #: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74
4898 #: ../ocaml/examples/guestfs-ocaml.pod:107
4899 #: ../perl/examples/guestfs-perl.pod:68
4900 #: ../python/examples/guestfs-python.pod:70
4901 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368
4902 msgid ""
4903 "This library is distributed in the hope that it will be useful, but WITHOUT "
4904 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4905 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4906 "for more details."
4907 msgstr ""
4908
4909 #. type: textblock
4910 #: ../erlang/examples/guestfs-erlang.pod:131
4911 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4912 #: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79
4913 #: ../ocaml/examples/guestfs-ocaml.pod:112
4914 #: ../perl/examples/guestfs-perl.pod:73
4915 #: ../python/examples/guestfs-python.pod:75
4916 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373
4917 msgid ""
4918 "You should have received a copy of the GNU Lesser General Public License "
4919 "along with this library; if not, write to the Free Software Foundation, "
4920 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-examples.pod:5
4925 msgid "guestfs-examples - Examples of using libguestfs from C"
4926 msgstr ""
4927
4928 #. type: verbatim
4929 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4930 #, no-wrap
4931 msgid ""
4932 " #include <guestfs.h>\n"
4933 " \n"
4934 msgstr "#include <guestfs.h>\n"
4935
4936 #. type: verbatim
4937 #: ../examples/guestfs-examples.pod:11
4938 #, no-wrap
4939 msgid ""
4940 " guestfs_h *g = guestfs_create ();\n"
4941 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4942 " guestfs_launch (g);\n"
4943 "\n"
4944 msgstr ""
4945
4946 #. type: verbatim
4947 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4948 #, no-wrap
4949 msgid ""
4950 " cc prog.c -o prog -lguestfs\n"
4951 "or:\n"
4952 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4953 "\n"
4954 msgstr ""
4955 " cc prog.c -o prog -lguestfs\n"
4956 "or:\n"
4957 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4958 "\n"
4959
4960 #. type: textblock
4961 #: ../examples/guestfs-examples.pod:21
4962 msgid ""
4963 "This manual page contains examples of calling libguestfs from the C "
4964 "programming language.  If you are not familiar with using libguestfs, you "
4965 "also need to read L<guestfs(3)>."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../examples/guestfs-examples.pod:35
4970 msgid ""
4971 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4972 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4973 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4974 msgstr ""
4975
4976 #. type: textblock
4977 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4978 #: ../python/examples/guestfs-python.pod:60
4979 #: ../ruby/examples/guestfs-ruby.pod:54
4980 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4981 msgstr ""
4982
4983 #. type: =end
4984 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4985 msgid "comment"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../examples/guestfs-recipes.pod:5
4990 msgid ""
4991 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4992 "here.  The only way which works for both sorts of output is to just write "
4993 "the URL directly.  Do NOT use L<...> for URLs."
4994 msgstr ""
4995
4996 #. type: textblock
4997 #: ../examples/guestfs-recipes.pod:9
4998 msgid ""
4999 "We break with tradition here and don't use ALL CAPS for the section "
5000 "headings, as this makes them much easier to read."
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../examples/guestfs-recipes.pod:16
5005 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:20
5010 msgid ""
5011 "This page contains recipes for and links to things you can do using "
5012 "libguestfs, L<guestfish(1)> and the virt tools."
5013 msgstr ""
5014
5015 #. type: =head1
5016 #: ../examples/guestfs-recipes.pod:23
5017 msgid "Audit a virtual machine for setuid files"
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../examples/guestfs-recipes.pod:25
5022 msgid ""
5023 "The link below contains a small program which can be used to audit a Linux "
5024 "virtual machine to see what setuid and setgid files it contains."
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../examples/guestfs-recipes.pod:28
5029 msgid ""
5030 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5031 "files/#content"
5032 msgstr ""
5033
5034 #. type: =head1
5035 #: ../examples/guestfs-recipes.pod:30
5036 msgid "Change the background image in a Windows XP VM"
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../examples/guestfs-recipes.pod:32
5041 msgid ""
5042 "The links below explain how to use L<guestfish(1)> to change the background "
5043 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5044 "be substantially different for each version of Windows."
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../examples/guestfs-recipes.pod:37
5049 msgid ""
5050 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5051 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5052 msgstr ""
5053
5054 #. type: =head1
5055 #: ../examples/guestfs-recipes.pod:40
5056 msgid "Cloning a virtual machine (Linux)"
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:42
5061 msgid ""
5062 "The guestfish technique described in the link below works well for most "
5063 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5064 "slightly."
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../examples/guestfs-recipes.pod:46
5069 msgid ""
5070 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5071 "vm/#content"
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../examples/guestfs-recipes.pod:48
5076 msgid ""
5077 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5078 "discussion."
5079 msgstr ""
5080
5081 #. type: textblock
5082 #: ../examples/guestfs-recipes.pod:51
5083 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5084 msgstr ""
5085
5086 #. type: =head1
5087 #: ../examples/guestfs-recipes.pod:53
5088 msgid "Cloning a virtual machine (Windows)"
5089 msgstr ""
5090
5091 #. type: textblock
5092 #: ../examples/guestfs-recipes.pod:55
5093 msgid ""
5094 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5095 "straightforward.  Currently there is code in the Aeolus Oz project which "
5096 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5097 "we may add sysprepping ability."
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../examples/guestfs-recipes.pod:60
5102 msgid ""
5103 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5104 "list/2011-May/msg00019.html"
5105 msgstr ""
5106
5107 #. type: =head1
5108 #: ../examples/guestfs-recipes.pod:63
5109 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../examples/guestfs-recipes.pod:65
5114 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5115 msgstr ""
5116
5117 #. type: verbatim
5118 #: ../examples/guestfs-recipes.pod:67
5119 #, no-wrap
5120 msgid ""
5121 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5122 "\n"
5123 msgstr ""
5124
5125 #. type: textblock
5126 #: ../examples/guestfs-recipes.pod:69
5127 msgid "To export just a subdirectory, eg. C</files>, do:"
5128 msgstr ""
5129
5130 #. type: verbatim
5131 #: ../examples/guestfs-recipes.pod:71
5132 #, no-wrap
5133 msgid ""
5134 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5135 "\n"
5136 msgstr ""
5137
5138 #. type: =head1
5139 #: ../examples/guestfs-recipes.pod:73
5140 msgid "Create empty disk images"
5141 msgstr ""
5142
5143 #. type: textblock
5144 #: ../examples/guestfs-recipes.pod:75
5145 msgid ""
5146 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5147 "The useful guide below explains the options available."
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../examples/guestfs-recipes.pod:78
5152 msgid ""
5153 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5154 "#content"
5155 msgstr ""
5156
5157 #. type: =head1
5158 #: ../examples/guestfs-recipes.pod:80
5159 msgid "Dump raw filesystem content from inside a disk image or VM"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../examples/guestfs-recipes.pod:82
5164 msgid ""
5165 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5166 "filesystem content from any filesystem in a disk image or a VM (even one "
5167 "which is encrypted or buried inside an LV):"
5168 msgstr ""
5169
5170 #. type: verbatim
5171 #: ../examples/guestfs-recipes.pod:86
5172 #, no-wrap
5173 msgid ""
5174 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5175 "\n"
5176 msgstr ""
5177
5178 #. type: verbatim
5179 #: ../examples/guestfs-recipes.pod:88
5180 #, no-wrap
5181 msgid ""
5182 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5183 "\n"
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../examples/guestfs-recipes.pod:90
5188 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5189 msgstr ""
5190
5191 #. type: =head1
5192 #: ../examples/guestfs-recipes.pod:92
5193 msgid "Edit grub configuration in a VM"
5194 msgstr ""
5195
5196 #. type: textblock
5197 #: ../examples/guestfs-recipes.pod:94
5198 msgid "You can use this to:"
5199 msgstr ""
5200
5201 #. type: textblock
5202 #: ../examples/guestfs-recipes.pod:100
5203 msgid "Fix a virtual machine that does not boot."
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:104
5208 msgid "Change which kernel is used to boot the VM."
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../examples/guestfs-recipes.pod:108
5213 msgid "Change kernel command line options."
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../examples/guestfs-recipes.pod:112
5218 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5219 msgstr ""
5220
5221 #. type: verbatim
5222 #: ../examples/guestfs-recipes.pod:114
5223 #, no-wrap
5224 msgid ""
5225 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5226 "\n"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../examples/guestfs-recipes.pod:116
5231 msgid ""
5232 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5233 "this:"
5234 msgstr ""
5235
5236 #. type: verbatim
5237 #: ../examples/guestfs-recipes.pod:119
5238 #, no-wrap
5239 msgid ""
5240 " virt-rescue -d BrokenGuest\n"
5241 "\n"
5242 msgstr ""
5243
5244 #. type: =head1
5245 #: ../examples/guestfs-recipes.pod:121
5246 msgid "Export any directory from a VM"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../examples/guestfs-recipes.pod:123
5251 msgid ""
5252 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5253 msgstr ""
5254
5255 #. type: verbatim
5256 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5257 #, no-wrap
5258 msgid ""
5259 " virt-copy-out -d Guest /home .\n"
5260 "\n"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5265 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5266 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5267 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5268 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5269 #: ../tools/virt-win-reg.pl:717
5270 msgid "Notes:"
5271 msgstr ""
5272
5273 #. type: textblock
5274 #: ../examples/guestfs-recipes.pod:134
5275 msgid ""
5276 "The final dot of the command is not a printing error.  It means we want to "
5277 "copy out to the current directory."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../examples/guestfs-recipes.pod:139
5282 msgid "This creates a directory called C<home> under the current directory."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../examples/guestfs-recipes.pod:143
5287 msgid ""
5288 "If the guest is a Windows guest then you can use drive letters and "
5289 "backslashes, but you must prefix the path with C<win:> and quote it to "
5290 "protect it from the shell, like this:"
5291 msgstr ""
5292
5293 #. type: verbatim
5294 #: ../examples/guestfs-recipes.pod:147
5295 #, no-wrap
5296 msgid ""
5297 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5298 "\n"
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../examples/guestfs-recipes.pod:149
5303 msgid "To get the output as a compressed tarball, do:"
5304 msgstr ""
5305
5306 #. type: verbatim
5307 #: ../examples/guestfs-recipes.pod:151
5308 #, no-wrap
5309 msgid ""
5310 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5311 "\n"
5312 msgstr ""
5313
5314 #. type: textblock
5315 #: ../examples/guestfs-recipes.pod:153
5316 msgid ""
5317 "Although it sounds tempting, this is usually not a reliable way to get a "
5318 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5319 "org/FAQ.html#backup"
5320 msgstr ""
5321
5322 #. type: =head1
5323 #: ../examples/guestfs-recipes.pod:157
5324 msgid "Find out which user is using the most space"
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../examples/guestfs-recipes.pod:159
5329 msgid ""
5330 "This simple script examines a Linux guest to find out which user is using "
5331 "the most space in their home directory:"
5332 msgstr ""
5333
5334 #. type: verbatim
5335 #: ../examples/guestfs-recipes.pod:162
5336 #, no-wrap
5337 msgid ""
5338 " #!/bin/sh -\n"
5339 " \n"
5340 msgstr ""
5341
5342 #. type: verbatim
5343 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5344 #, no-wrap
5345 msgid ""
5346 " set -e\n"
5347 " \n"
5348 msgstr ""
5349
5350 #. type: verbatim
5351 #: ../examples/guestfs-recipes.pod:166
5352 #, no-wrap
5353 msgid ""
5354 " vm=\"$1\"\n"
5355 " dir=/home\n"
5356 " \n"
5357 msgstr ""
5358
5359 #. type: verbatim
5360 #: ../examples/guestfs-recipes.pod:169
5361 #, no-wrap
5362 msgid ""
5363 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5364 " \n"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../examples/guestfs-recipes.pod:171
5369 #, no-wrap
5370 msgid ""
5371 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5372 "     echo -n \"$dir/$d\"\n"
5373 "     echo -ne '\\t'\n"
5374 "     guestfish --remote du \"$dir/$d\";\n"
5375 " done | sort -nr -k 2\n"
5376 " \n"
5377 msgstr ""
5378
5379 #. type: verbatim
5380 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5381 #, no-wrap
5382 msgid ""
5383 " guestfish --remote exit\n"
5384 "\n"
5385 msgstr ""
5386
5387 #. type: =head1
5388 #: ../examples/guestfs-recipes.pod:179
5389 msgid "Get DHCP address from a VM"
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../examples/guestfs-recipes.pod:181
5394 msgid ""
5395 "The link below explains the many different possible techniques for getting "
5396 "the last assigned DHCP address of a virtual machine."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../examples/guestfs-recipes.pod:184
5401 msgid ""
5402 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5403 "a-virtual-machine-disk-image/#content"
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../examples/guestfs-recipes.pod:186
5408 msgid ""
5409 "In the libguestfs source examples directory you will find the latest version "
5410 "of the C<virt-dhcp-address.c> program."
5411 msgstr ""
5412
5413 #. type: =head1
5414 #: ../examples/guestfs-recipes.pod:189
5415 msgid "Get the operating system product name string"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../examples/guestfs-recipes.pod:191
5420 msgid "Save the following script into a file called C<product-name.sh>:"
5421 msgstr ""
5422
5423 #. type: verbatim
5424 #: ../examples/guestfs-recipes.pod:193
5425 #, no-wrap
5426 msgid ""
5427 " #!/bin/sh -\n"
5428 " set -e\n"
5429 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5430 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5431 " guestfish --remote inspect-get-product-name \"$root\"\n"
5432 " guestfish --remote exit\n"
5433 "\n"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../examples/guestfs-recipes.pod:200
5438 msgid "Make the script executable and run it on a named guest:"
5439 msgstr ""
5440
5441 #. type: verbatim
5442 #: ../examples/guestfs-recipes.pod:202
5443 #, no-wrap
5444 msgid ""
5445 " # product-name.sh RHEL60x64\n"
5446 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5447 "\n"
5448 msgstr ""
5449
5450 #. type: textblock
5451 #: ../examples/guestfs-recipes.pod:205
5452 msgid ""
5453 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5454 "C<xpath> command line tool or from your favourite programming language:"
5455 msgstr ""
5456
5457 #. type: verbatim
5458 #: ../examples/guestfs-recipes.pod:209
5459 #, no-wrap
5460 msgid ""
5461 " # virt-inspector RHEL60x64 > xml\n"
5462 " # xpath '//product_name' < xml\n"
5463 " Found 1 nodes:\n"
5464 " -- NODE --\n"
5465 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5466 "\n"
5467 msgstr ""
5468
5469 #. type: =head1
5470 #: ../examples/guestfs-recipes.pod:215
5471 msgid "Get the default boot kernel for a Linux VM"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../examples/guestfs-recipes.pod:217
5476 msgid ""
5477 "The link below contains a program to print the default boot kernel for a "
5478 "Linux VM."
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../examples/guestfs-recipes.pod:220
5483 msgid ""
5484 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5485 "kernel-for-a-vm/#content"
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../examples/guestfs-recipes.pod:222
5490 msgid ""
5491 "It uses Augeas, and the technique is generally applicable for many different "
5492 "tasks, such as:"
5493 msgstr ""
5494
5495 #. type: textblock
5496 #: ../examples/guestfs-recipes.pod:229
5497 msgid "listing the user accounts in the guest"
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../examples/guestfs-recipes.pod:233
5502 msgid "what repositories is it configured to use"
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../examples/guestfs-recipes.pod:237
5507 msgid "what NTP servers does it connect to"
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../examples/guestfs-recipes.pod:241
5512 msgid "what were the boot messages last time it booted"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../examples/guestfs-recipes.pod:245
5517 msgid "listing who was logged in recently"
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../examples/guestfs-recipes.pod:249
5522 msgid "http://augeas.net/"
5523 msgstr ""
5524
5525 #. type: =head1
5526 #: ../examples/guestfs-recipes.pod:251
5527 msgid "Install RPMs in a guest"
5528 msgstr ""
5529
5530 #. type: textblock
5531 #: ../examples/guestfs-recipes.pod:253
5532 msgid ""
5533 "The link below contains a method to install RPMs in a guest.  In fact the "
5534 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5535 "installs them next time the guest is booted.  You could use this technique "
5536 "to install vital security updates in an offline guest."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../examples/guestfs-recipes.pod:259
5541 msgid ""
5542 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5543 msgstr ""
5544
5545 #. type: =head1
5546 #: ../examples/guestfs-recipes.pod:261
5547 msgid "List applications installed in a VM"
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../examples/guestfs-recipes.pod:263
5552 msgid "Save the following to a file C<list-apps.sh>:"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../examples/guestfs-recipes.pod:265
5557 #, no-wrap
5558 msgid ""
5559 " #!/bin/sh -\n"
5560 " set -e\n"
5561 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5562 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5563 " guestfish --remote inspect-list-applications \"$root\"\n"
5564 " guestfish --remote exit\n"
5565 "\n"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:272
5570 msgid ""
5571 "Make the file executable and then you can run it on any named virtual "
5572 "machine:"
5573 msgstr ""
5574
5575 #. type: verbatim
5576 #: ../examples/guestfs-recipes.pod:275
5577 #, no-wrap
5578 msgid ""
5579 " # list-apps.sh WinGuest\n"
5580 " [0] = {\n"
5581 "   app_name: Mozilla Firefox (3.6.12)\n"
5582 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5583 "   app_epoch: 0\n"
5584 "   app_version: 3.6.12 (en-GB)\n"
5585 "   app_release:\n"
5586 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5587 "   app_trans_path:\n"
5588 "   app_publisher: Mozilla\n"
5589 "   app_url: http://www.mozilla.com/en-GB/\n"
5590 "   app_source_package:\n"
5591 "   app_summary:\n"
5592 "   app_description: Mozilla Firefox\n"
5593 " }\n"
5594 " [1] = {\n"
5595 "   app_name: VLC media player\n"
5596 "   app_display_name: VLC media player 1.1.5\n"
5597 "   app_epoch: 0\n"
5598 "   app_version: 1.1.5\n"
5599 "   app_release:\n"
5600 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5601 "   app_trans_path:\n"
5602 "   app_publisher: VideoLAN\n"
5603 "   app_url: http://www.videolan.org/\n"
5604 "   app_source_package:\n"
5605 "   app_summary:\n"
5606 "   app_description:\n"
5607 " }\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../examples/guestfs-recipes.pod:305
5613 msgid ""
5614 "If you want to run the script on disk images (instead of libvirt virtual "
5615 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5616 ">."
5617 msgstr ""
5618
5619 #. type: =head1
5620 #: ../examples/guestfs-recipes.pod:309
5621 msgid "List files and directories in a VM"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../examples/guestfs-recipes.pod:311
5626 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5627 msgstr ""
5628
5629 #. type: verbatim
5630 #: ../examples/guestfs-recipes.pod:313
5631 #, no-wrap
5632 msgid ""
5633 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5634 "\n"
5635 msgstr ""
5636
5637 #. type: =head1
5638 #: ../examples/guestfs-recipes.pod:315
5639 msgid "List services in a Windows VM"
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../examples/guestfs-recipes.pod:317
5644 msgid ""
5645 "The link below contains a script that can be used to list out the services "
5646 "from a Windows VM, and whether those services run at boot time or are loaded "
5647 "on demand."
5648 msgstr ""
5649
5650 #. type: textblock
5651 #: ../examples/guestfs-recipes.pod:321
5652 msgid ""
5653 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5654 "#content"
5655 msgstr ""
5656
5657 #. type: =head1
5658 #: ../examples/guestfs-recipes.pod:323
5659 msgid "Make a disk image sparse"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../examples/guestfs-recipes.pod:325
5664 msgid ""
5665 "The link below contains some guides for making a disk image sparse (or "
5666 "reintroducing sparseness)."
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../examples/guestfs-recipes.pod:328
5671 msgid ""
5672 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5673 msgstr ""
5674
5675 #. type: =head1
5676 #: ../examples/guestfs-recipes.pod:330
5677 msgid "Monitor disk usage over time"
5678 msgstr ""
5679
5680 #. type: textblock
5681 #: ../examples/guestfs-recipes.pod:332
5682 msgid ""
5683 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5684 "The link below contains a guide."
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../examples/guestfs-recipes.pod:335
5689 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5690 msgstr ""
5691
5692 #. type: =head1
5693 #: ../examples/guestfs-recipes.pod:337
5694 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../examples/guestfs-recipes.pod:339
5699 msgid ""
5700 "L<guestfish(1)> plus the tools described in the link below can be used to "
5701 "read out the Windows Event Log from any virtual machine running Windows "
5702 "Vista or a later version."
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../examples/guestfs-recipes.pod:343
5707 msgid ""
5708 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5709 "guestfish/#content"
5710 msgstr ""
5711
5712 #. type: =head1
5713 #: ../examples/guestfs-recipes.pod:345
5714 msgid "Remove root password (Linux)"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../examples/guestfs-recipes.pod:347
5719 msgid ""
5720 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5721 "files.  One use is to remove the root password from a Linux guest:"
5722 msgstr ""
5723
5724 #. type: verbatim
5725 #: ../examples/guestfs-recipes.pod:350
5726 #, no-wrap
5727 msgid ""
5728 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5729 "\n"
5730 msgstr ""
5731
5732 #. type: =head1
5733 #: ../examples/guestfs-recipes.pod:352
5734 msgid "Remove Administrator password (Windows)"
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../examples/guestfs-recipes.pod:354
5739 msgid ""
5740 "The link below contains one technique for removing the Administrator "
5741 "password from a Windows VM, or to be more precise, it gives you a command "
5742 "prompt the next time you log in which you can use to bypass any security:"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../examples/guestfs-recipes.pod:359
5747 msgid ""
5748 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5749 "administrator-password-with-guestfish/"
5750 msgstr ""
5751
5752 #. type: =head1
5753 #: ../examples/guestfs-recipes.pod:361
5754 msgid "Unpack a live CD"
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../examples/guestfs-recipes.pod:363
5759 msgid ""
5760 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5761 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5762 "layers, as outlined in the guide below."
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../examples/guestfs-recipes.pod:367
5767 msgid ""
5768 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5769 "cd/#content"
5770 msgstr ""
5771
5772 #. type: =head1
5773 #: ../examples/guestfs-recipes.pod:369
5774 msgid "Uploading and downloading files"
5775 msgstr ""
5776
5777 #. type: textblock
5778 #: ../examples/guestfs-recipes.pod:371
5779 msgid ""
5780 "The link below contains general tips on uploading (copying in)  and "
5781 "downloading (copying out) files from VMs."
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../examples/guestfs-recipes.pod:374
5786 msgid ""
5787 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5788 msgstr ""
5789
5790 #. type: =head1
5791 #: ../examples/guestfs-recipes.pod:376
5792 msgid "Use libguestfs tools on VMware ESX guests"
5793 msgstr ""
5794
5795 #. type: textblock
5796 #: ../examples/guestfs-recipes.pod:378
5797 msgid ""
5798 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5799 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../examples/guestfs-recipes.pod:382
5804 msgid ""
5805 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5806 "guests/#content"
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../examples/guestfs-recipes.pod:386
5811 msgid ""
5812 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5813 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5814 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../examples/guestfs-recipes.pod:403
5819 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../examples/guestfs-testing.pod:5
5824 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../examples/guestfs-testing.pod:9
5829 msgid ""
5830 "This page has manual tests you can try on libguestfs.  Everyone has a "
5831 "slightly different combination of platform, hardware and guests, so this "
5832 "testing is very valuable.  Thanks for helping out!"
5833 msgstr ""
5834
5835 #. type: textblock
5836 #: ../examples/guestfs-testing.pod:13
5837 msgid "These tests require libguestfs E<ge> 1.14."
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../examples/guestfs-testing.pod:15
5842 msgid ""
5843 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5844 "careful.  The others are safe and won't modify anything."
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../examples/guestfs-testing.pod:18
5849 msgid "You can report bugs you find through this link:"
5850 msgstr ""
5851
5852 #. type: textblock
5853 #: ../examples/guestfs-testing.pod:20
5854 msgid ""
5855 "https://bugzilla.redhat.com/enter_bug.cgi?"
5856 "component=libguestfs&product=Virtualization+Tools"
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../examples/guestfs-testing.pod:22
5861 msgid ""
5862 "or post on the mailing list (registration is B<not> required, but if you're "
5863 "not registered then you'll have to wait for a moderator to manually approve "
5864 "your message):"
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../examples/guestfs-testing.pod:26
5869 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5870 msgstr ""
5871
5872 #. type: =head1
5873 #: ../examples/guestfs-testing.pod:28
5874 msgid "TESTS"
5875 msgstr ""
5876
5877 #. type: =head2
5878 #: ../examples/guestfs-testing.pod:30
5879 msgid "Check KVM acceleration is being used."
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../examples/guestfs-testing.pod:32
5884 msgid ""
5885 "If your host has hardware virt acceleration, then with a hot cache "
5886 "libguestfs should be able to start up in a few seconds.  Run the following "
5887 "command a few times:"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../examples/guestfs-testing.pod:36
5892 #, no-wrap
5893 msgid ""
5894 " time guestfish -a /dev/null run\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../examples/guestfs-testing.pod:38
5900 msgid ""
5901 "After a few runs, the time should settle down to a few seconds (under 5 "
5902 "seconds on fast 64 bit hardware)."
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../examples/guestfs-testing.pod:41
5907 msgid "How to check for hardware virt:"
5908 msgstr ""
5909
5910 #. type: textblock
5911 #: ../examples/guestfs-testing.pod:43
5912 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../examples/guestfs-testing.pod:45
5917 msgid ""
5918 "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5919 msgstr ""
5920
5921 #. type: =head2
5922 #: ../examples/guestfs-testing.pod:48
5923 msgid "Run virt-alignment-scan on all your guests."
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../examples/guestfs-testing.pod:50
5928 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5929 msgstr ""
5930
5931 #. type: verbatim
5932 #: ../examples/guestfs-testing.pod:52
5933 #, no-wrap
5934 msgid ""
5935 " virt-alignment-scan -a /path/to/disk.img\n"
5936 "\n"
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161
5941 #: ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234
5942 #: ../src/guestfs.pod:2792
5943 msgid "or:"
5944 msgstr ""
5945
5946 #. type: verbatim
5947 #: ../examples/guestfs-testing.pod:56
5948 #, no-wrap
5949 msgid ""
5950 " virt-alignment-scan -d Guest\n"
5951 "\n"
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:58
5956 msgid "Does the alignment report match how the guest partitions are aligned?"
5957 msgstr ""
5958
5959 #. type: =head2
5960 #: ../examples/guestfs-testing.pod:60
5961 msgid "Run virt-cat on some files in guests."
5962 msgstr ""
5963
5964 #. type: textblock
5965 #: ../examples/guestfs-testing.pod:62
5966 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5967 msgstr ""
5968
5969 #. type: verbatim
5970 #: ../examples/guestfs-testing.pod:64
5971 #, no-wrap
5972 msgid ""
5973 " virt-cat LinuxGuest /etc/passwd\n"
5974 "\n"
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../examples/guestfs-testing.pod:66
5979 msgid "A recent feature is support for Windows paths, for example:"
5980 msgstr ""
5981
5982 #. type: verbatim
5983 #: ../examples/guestfs-testing.pod:68
5984 #, no-wrap
5985 msgid ""
5986 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5987 "\n"
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../examples/guestfs-testing.pod:70
5992 msgid ""
5993 "An even better test is if you have a Windows guest with multiple drives.  Do "
5994 "C<D:>, C<E:> etc paths work correctly?"
5995 msgstr ""
5996
5997 #. type: =head2
5998 #: ../examples/guestfs-testing.pod:73
5999 msgid "B<*> Copy some files into a B<shut off> guest."
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../examples/guestfs-testing.pod:75
6004 msgid ""
6005 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
6006 "or disk image."
6007 msgstr ""
6008
6009 #. type: verbatim
6010 #: ../examples/guestfs-testing.pod:78
6011 #, no-wrap
6012 msgid ""
6013 " virt-copy-in -d Guest /etc /tmp\n"
6014 "\n"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../examples/guestfs-testing.pod:80
6019 msgid ""
6020 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
6021 "(recursively).  If you boot the guest, can you see all of the copied files "
6022 "and directories?"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../examples/guestfs-testing.pod:84
6027 msgid "Shut the guest down and try copying multiple files and directories:"
6028 msgstr ""
6029
6030 #. type: verbatim
6031 #: ../examples/guestfs-testing.pod:86
6032 #, no-wrap
6033 msgid ""
6034 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
6035 "\n"
6036 msgstr ""
6037
6038 #. type: =head2
6039 #: ../examples/guestfs-testing.pod:88
6040 msgid "Copy some files out of a guest."
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../examples/guestfs-testing.pod:90
6045 msgid ""
6046 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
6047 "guest or disk image."
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../examples/guestfs-testing.pod:95
6052 msgid "Note the final space and period in the command is not a typo."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../examples/guestfs-testing.pod:97
6057 msgid "This should copy C</home> from the guest into the current directory."
6058 msgstr ""
6059
6060 #. type: =head2
6061 #: ../examples/guestfs-testing.pod:99
6062 msgid "Run virt-df."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../examples/guestfs-testing.pod:101
6067 msgid "L<virt-df(1)> lists disk space.  Run:"
6068 msgstr ""
6069
6070 #. type: verbatim
6071 #: ../examples/guestfs-testing.pod:103
6072 #, no-wrap
6073 msgid ""
6074 " virt-df\n"
6075 "\n"
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../examples/guestfs-testing.pod:105
6080 msgid ""
6081 "You can try comparing this to the results from L<df(1)> inside the guest, "
6082 "but there are some provisos:"
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../examples/guestfs-testing.pod:112
6087 msgid "The guest must be idle."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../examples/guestfs-testing.pod:116
6092 msgid "The guest disks must be synched using L<sync(1)>."
6093 msgstr ""
6094
6095 #. type: textblock
6096 #: ../examples/guestfs-testing.pod:120
6097 msgid ""
6098 "Any action such as booting the guest will write log files causing the "
6099 "numbers to change."
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../examples/guestfs-testing.pod:125
6104 msgid ""
6105 "We don't guarantee that the numbers will be identical even under these "
6106 "circumstances.  They should be similar.  It would indicate a bug if you saw "
6107 "greatly differing numbers."
6108 msgstr ""
6109
6110 #. type: =head2
6111 #: ../examples/guestfs-testing.pod:129
6112 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6113 msgstr ""
6114
6115 #. type: textblock
6116 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
6117 msgid "Run:"
6118 msgstr ""
6119
6120 #. type: verbatim
6121 #: ../examples/guestfs-testing.pod:133
6122 #, no-wrap
6123 msgid ""
6124 " virt-df --csv > /tmp/report.csv\n"
6125 "\n"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../examples/guestfs-testing.pod:135
6130 msgid ""
6131 "Now try to load this into your favorite spreadsheet or database.  Are the "
6132 "results reproduced faithfully in the spreadsheet/database?"
6133 msgstr ""
6134
6135 #. type: textblock
6136 #: ../examples/guestfs-testing.pod:138
6137 msgid ""
6138 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6139 "doc/refman/5.1/en/load-data.html"
6140 msgstr ""
6141
6142 #. type: =head2
6143 #: ../examples/guestfs-testing.pod:141
6144 msgid "B<*> Edit a file in a B<shut off> guest."
6145 msgstr ""
6146
6147 #. type: textblock
6148 #: ../examples/guestfs-testing.pod:143
6149 msgid ""
6150 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
6151 "Fedora guest:"
6152 msgstr ""
6153
6154 #. type: verbatim
6155 #: ../examples/guestfs-testing.pod:146
6156 #, no-wrap
6157 msgid ""
6158 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6159 "\n"
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../examples/guestfs-testing.pod:148
6164 msgid "On other Linux guests try editing other files such as:"
6165 msgstr ""
6166
6167 #. type: verbatim
6168 #: ../examples/guestfs-testing.pod:150
6169 #, no-wrap
6170 msgid ""
6171 " virt-edit LinuxGuest /etc/motd\n"
6172 "\n"
6173 msgstr ""
6174
6175 #. type: textblock
6176 #: ../examples/guestfs-testing.pod:152
6177 msgid "Are the changes seen inside the guest when it is booted?"
6178 msgstr ""
6179
6180 #. type: =head2
6181 #: ../examples/guestfs-testing.pod:154
6182 msgid "Display the filesystems / partitions / LVs in a guest."
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../examples/guestfs-testing.pod:156
6187 msgid ""
6188 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
6189 "this command on any disk image or guest:"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../examples/guestfs-testing.pod:159
6194 #, no-wrap
6195 msgid ""
6196 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6197 "\n"
6198 msgstr ""
6199
6200 #. type: verbatim
6201 #: ../examples/guestfs-testing.pod:163
6202 #, no-wrap
6203 msgid ""
6204 " virt-filesystems -d Guest --all --long -h\n"
6205 "\n"
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../examples/guestfs-testing.pod:165
6210 msgid "Do the results match what is seen in the guest?"
6211 msgstr ""
6212
6213 #. type: =head2
6214 #: ../examples/guestfs-testing.pod:167
6215 msgid "Run virt-inspector on all your guests."
6216 msgstr ""
6217
6218 #. type: textblock
6219 #: ../examples/guestfs-testing.pod:169
6220 msgid ""
6221 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6222 "images:"
6223 msgstr ""
6224
6225 #. type: verbatim
6226 #: ../examples/guestfs-testing.pod:172
6227 #, no-wrap
6228 msgid ""
6229 " virt-inspector -a /path/to/disk.img | less\n"
6230 "\n"
6231 msgstr ""
6232
6233 #. type: verbatim
6234 #: ../examples/guestfs-testing.pod:176
6235 #, no-wrap
6236 msgid ""
6237 " virt-inspector -d Guest | less\n"
6238 "\n"
6239 msgstr ""
6240
6241 #. type: textblock
6242 #: ../examples/guestfs-testing.pod:178
6243 msgid "Do the results match what is actually in the guest?"
6244 msgstr ""
6245
6246 #. type: =head2
6247 #: ../examples/guestfs-testing.pod:180
6248 msgid "Try the auditing features of virt-ls on all your guests."
6249 msgstr ""
6250
6251 #. type: verbatim
6252 #: ../examples/guestfs-testing.pod:184
6253 #, no-wrap
6254 msgid ""
6255 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6256 "\n"
6257 msgstr ""
6258
6259 #. type: verbatim
6260 #: ../examples/guestfs-testing.pod:188
6261 #, no-wrap
6262 msgid ""
6263 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6264 "\n"
6265 msgstr ""
6266
6267 #. type: verbatim
6268 #: ../examples/guestfs-testing.pod:192
6269 #, no-wrap
6270 msgid ""
6271 " virt-ls -lR -d Guest / | grep '^s'\n"
6272 "\n"
6273 msgstr ""
6274
6275 #. type: verbatim
6276 #: ../examples/guestfs-testing.pod:196
6277 #, no-wrap
6278 msgid ""
6279 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6280 "\n"
6281 msgstr ""
6282
6283 #. type: textblock
6284 #: ../examples/guestfs-testing.pod:198
6285 msgid "Display files larger than 10MB in home directories:"
6286 msgstr ""
6287
6288 #. type: verbatim
6289 #: ../examples/guestfs-testing.pod:200
6290 #, no-wrap
6291 msgid ""
6292 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6293 "\n"
6294 msgstr ""
6295
6296 #. type: verbatim
6297 #: ../examples/guestfs-testing.pod:204
6298 #, no-wrap
6299 msgid ""
6300 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6301 "\n"
6302 msgstr ""
6303
6304 #. type: verbatim
6305 #: ../examples/guestfs-testing.pod:208
6306 #, no-wrap
6307 msgid ""
6308 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6309 "\n"
6310 msgstr ""
6311
6312 #. type: textblock
6313 #: ../examples/guestfs-testing.pod:210
6314 msgid "Do the results match what is in the guest?"
6315 msgstr ""
6316
6317 #. type: =head2
6318 #: ../examples/guestfs-testing.pod:212
6319 msgid "Create a disk image from a tarball."
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../examples/guestfs-testing.pod:214
6324 msgid ""
6325 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6326 "happen to have:"
6327 msgstr ""
6328
6329 #. type: verbatim
6330 #: ../examples/guestfs-testing.pod:217
6331 #, no-wrap
6332 msgid ""
6333 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6334 "\n"
6335 msgstr ""
6336
6337 #. type: textblock
6338 #: ../examples/guestfs-testing.pod:219
6339 msgid ""
6340 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
6341 "see the files.  This test is particularly useful if you try it with a "
6342 "Windows guest."
6343 msgstr ""
6344
6345 #. type: textblock
6346 #: ../examples/guestfs-testing.pod:223
6347 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6348 msgstr ""
6349
6350 #. type: textblock
6351 #: ../examples/guestfs-testing.pod:225
6352 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6353 msgstr ""
6354
6355 #. type: =head2
6356 #: ../examples/guestfs-testing.pod:227
6357 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../examples/guestfs-testing.pod:229
6362 msgid ""
6363 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6364 "disk image:"
6365 msgstr ""
6366
6367 #. type: verbatim
6368 #: ../examples/guestfs-testing.pod:232
6369 #, no-wrap
6370 msgid ""
6371 " virt-rescue -a /path/to/disk.img\n"
6372 "\n"
6373 msgstr ""
6374
6375 #. type: verbatim
6376 #: ../examples/guestfs-testing.pod:236
6377 #, no-wrap
6378 msgid ""
6379 " virt-rescue -d Guest\n"
6380 "\n"
6381 msgstr ""
6382
6383 #. type: textblock
6384 #: ../examples/guestfs-testing.pod:238
6385 msgid "Can you use ordinary shell commands to examine the guest?"
6386 msgstr ""
6387
6388 #. type: =head2
6389 #: ../examples/guestfs-testing.pod:240
6390 msgid "B<*> Resize your guests."
6391 msgstr ""
6392
6393 #. type: textblock
6394 #: ../examples/guestfs-testing.pod:242
6395 msgid ""
6396 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
6397 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6398 msgstr ""
6399
6400 #. type: verbatim
6401 #: ../examples/guestfs-testing.pod:246
6402 #, no-wrap
6403 msgid ""
6404 " truncate -s 30G newdisk.img\n"
6405 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6406 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6407 " qemu-kvm -m 1024 -hda newdisk.img\n"
6408 "\n"
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../examples/guestfs-testing.pod:251
6413 msgid "Does the guest still boot? Try expanding other partitions."
6414 msgstr ""
6415
6416 #. type: =head2
6417 #: ../examples/guestfs-testing.pod:253
6418 msgid "B<*> Sparsify a guest disk."
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../examples/guestfs-testing.pod:255
6423 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6424 msgstr ""
6425
6426 #. type: verbatim
6427 #: ../examples/guestfs-testing.pod:257
6428 #, no-wrap
6429 msgid ""
6430 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6431 "\n"
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../examples/guestfs-testing.pod:259
6436 msgid ""
6437 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6438 "image smaller (use C<du> to check)?"
6439 msgstr ""
6440
6441 #. type: =head2
6442 #: ../examples/guestfs-testing.pod:262
6443 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../examples/guestfs-testing.pod:264
6448 msgid ""
6449 "Note that this really will mess up an existing guest, so it's better to "
6450 "clone the guest before trying this."
6451 msgstr ""
6452
6453 #. type: verbatim
6454 #: ../examples/guestfs-testing.pod:267
6455 #, no-wrap
6456 msgid ""
6457 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6458 "\n"
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../examples/guestfs-testing.pod:269
6463 msgid ""
6464 "Was the sysprep successful? After booting, what changes were made and were "
6465 "they successful?"
6466 msgstr ""
6467
6468 #. type: =head2
6469 #: ../examples/guestfs-testing.pod:272
6470 msgid "Dump the Windows Registry from your Windows guests."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../examples/guestfs-testing.pod:274
6475 msgid ""
6476 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6477 "guests that you have."
6478 msgstr ""
6479
6480 #. type: verbatim
6481 #: ../examples/guestfs-testing.pod:277
6482 #, no-wrap
6483 msgid ""
6484 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6485 "   less\n"
6486 "\n"
6487 msgstr ""
6488
6489 #. type: verbatim
6490 #: ../examples/guestfs-testing.pod:280
6491 #, no-wrap
6492 msgid ""
6493 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6494 "   less\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../examples/guestfs-testing.pod:283
6500 msgid "Does the output match running C<regedit> inside the guest?"
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../examples/guestfs-testing.pod:285
6505 msgid ""
6506 "A recent feature is the ability to dump user registries, so try this, "
6507 "replacing I<username> with the name of a local user in the guest:"
6508 msgstr ""
6509
6510 #. type: verbatim
6511 #: ../examples/guestfs-testing.pod:288
6512 #, no-wrap
6513 msgid ""
6514 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6515 "   less\n"
6516 "\n"
6517 msgstr ""
6518
6519 #. type: textblock
6520 #: ../examples/guestfs-testing.pod:293
6521 msgid ""
6522 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6523 "org/>."
6524 msgstr ""
6525
6526 #. type: =head2
6527 #: ../fish/guestfish-actions.pod:1
6528 msgid "add-cdrom"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../fish/guestfish-actions.pod:3
6533 #, no-wrap
6534 msgid ""
6535 " add-cdrom filename\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6541 msgid "This function adds a virtual CD-ROM disk image to the guest."
6542 msgstr ""
6543
6544 #. type: textblock
6545 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6546 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:15
6551 msgid ""
6552 "This call checks for the existence of C<filename>.  This stops you from "
6553 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6554 "and C<http:> URLs.  To specify those, use the general L</config> call "
6555 "instead."
6556 msgstr ""
6557
6558 #. type: textblock
6559 #: ../fish/guestfish-actions.pod:22
6560 msgid ""
6561 "If you just want to add an ISO file (often you use this as an efficient way "
6562 "to transfer large files into the guest), then you should probably use L</add-"
6563 "drive-ro> instead."
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6568 #: ../fish/guestfish-actions.pod:228
6569 msgid ""
6570 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6571 "instead."
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6576 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
6577 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
6578 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
6579 #: ../fish/guestfish-actions.pod:3392 ../fish/guestfish-actions.pod:3703
6580 #: ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:4669
6581 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4708
6582 #: ../fish/guestfish-actions.pod:4746 ../fish/guestfish-actions.pod:5474
6583 #: ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:10
6584 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6585 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
6586 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
6587 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5242
6588 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5864
6589 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7201
6590 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7292
6591 #: ../src/guestfs-actions.pod:8346 ../src/guestfs-actions.pod:8455
6592 #: ../src/guestfs-actions.pod:8635
6593 msgid ""
6594 "Deprecated functions will not be removed from the API, but the fact that "
6595 "they are deprecated indicates that there are problems with correct use of "
6596 "these functions."
6597 msgstr ""
6598
6599 #. type: =head2
6600 #: ../fish/guestfish-actions.pod:35
6601 msgid "add-domain"
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:37
6606 msgid "domain"
6607 msgstr ""
6608
6609 #. type: verbatim
6610 #: ../fish/guestfish-actions.pod:39
6611 #, no-wrap
6612 msgid ""
6613 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6614 "\n"
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:41
6619 msgid ""
6620 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6621 "It works by connecting to libvirt, requesting the domain and domain XML from "
6622 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6627 msgid ""
6628 "The number of disks added is returned.  This operation is atomic: if an "
6629 "error is returned, then no disks are added."
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6634 msgid ""
6635 "This function does some minimal checks to make sure the libvirt domain is "
6636 "not running (unless C<readonly> is true).  In a future version we will try "
6637 "to acquire the libvirt lock on each disk."
6638 msgstr ""
6639
6640 #. type: textblock
6641 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6642 msgid ""
6643 "Disks must be accessible locally.  This often means that adding disks from a "
6644 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6645 "unless those disks are accessible via the same device path locally too."
6646 msgstr ""
6647
6648 #. type: textblock
6649 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6650 msgid ""
6651 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6652 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6653 "libvirt URI (or one set through an environment variable, see the libvirt "
6654 "documentation for full details)."
6655 msgstr ""
6656
6657 #. type: textblock
6658 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6659 msgid ""
6660 "The optional C<live> flag controls whether this call will try to connect to "
6661 "a running virtual machine C<guestfsd> process if it sees a suitable "
6662 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6663 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6664 "DAEMONS> for more information."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6669 msgid ""
6670 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6671 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6672 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6673 "as usual."
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6678 msgid ""
6679 "The optional C<readonlydisk> parameter controls what we do for disks which "
6680 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6681 msgstr ""
6682
6683 #. type: =item
6684 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6685 msgid "readonlydisk = \"error\""
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6690 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6691 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6692 msgid "If C<readonly> is false:"
6693 msgstr ""
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6697 msgid ""
6698 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6699 "E<gt> flag is found."
6700 msgstr ""
6701
6702 #. type: textblock
6703 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6704 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6705 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6706 msgid "If C<readonly> is true:"
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6711 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6712 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6713 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6714 msgstr ""
6715
6716 #. type: =item
6717 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6718 msgid "readonlydisk = \"read\""
6719 msgstr ""
6720
6721 #. type: textblock
6722 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6723 msgid ""
6724 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6725 "are added read/write."
6726 msgstr ""
6727
6728 #. type: =item
6729 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6730 msgid "readonlydisk = \"write\" (default)"
6731 msgstr ""
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6735 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6736 msgstr ""
6737
6738 #. type: =item
6739 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6740 msgid "readonlydisk = \"ignore\""
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6745 msgid "If C<readonly> is true or false:"
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6750 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:122
6755 msgid ""
6756 "The other optional parameters are passed directly through to L</add-drive-"
6757 "opts>."
6758 msgstr ""
6759
6760 #. type: textblock
6761 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6762 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6763 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6764 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6765 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6766 #: ../fish/guestfish-actions.pod:3219 ../fish/guestfish-actions.pod:3441
6767 #: ../fish/guestfish-actions.pod:3604 ../fish/guestfish-actions.pod:3739
6768 #: ../fish/guestfish-actions.pod:5110
6769 msgid ""
6770 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6771 msgstr ""
6772
6773 #. type: =head2
6774 #: ../fish/guestfish-actions.pod:127
6775 msgid "add-drive"
6776 msgstr ""
6777
6778 #. type: verbatim
6779 #: ../fish/guestfish-actions.pod:129
6780 #, no-wrap
6781 msgid ""
6782 " add-drive filename\n"
6783 "\n"
6784 msgstr ""
6785
6786 #. type: textblock
6787 #: ../fish/guestfish-actions.pod:131
6788 msgid ""
6789 "This function is the equivalent of calling L</add-drive-opts> with no "
6790 "optional parameters, so the disk is added writable, with the format being "
6791 "detected automatically."
6792 msgstr ""
6793
6794 #. type: textblock
6795 #: ../fish/guestfish-actions.pod:135
6796 msgid ""
6797 "Automatic detection of the format opens you up to a potential security hole "
6798 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6799 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6800 "you should think about replacing calls to this function with calls to L</add-"
6801 "drive-opts>, and specifying the format."
6802 msgstr ""
6803
6804 #. type: =head2
6805 #: ../fish/guestfish-actions.pod:142
6806 msgid "add-drive-opts"
6807 msgstr ""
6808
6809 #. type: =head2
6810 #: ../fish/guestfish-actions.pod:144
6811 msgid "add"
6812 msgstr ""
6813
6814 #. type: verbatim
6815 #: ../fish/guestfish-actions.pod:146
6816 #, no-wrap
6817 msgid ""
6818 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6819 "\n"
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6824 msgid ""
6825 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6826 "The first time you call this function, the disk appears as C</dev/sda>, the "
6827 "second time as C</dev/sdb>, and so on."
6828 msgstr ""
6829
6830 #. type: textblock
6831 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6832 msgid ""
6833 "You don't necessarily need to be root when using libguestfs.  However you "
6834 "obviously do need sufficient permissions to access the filename for whatever "
6835 "operations you want to perform (ie. read access if you just want to read the "
6836 "image or write access if you want to modify the image)."
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6841 msgid "This call checks that C<filename> exists."
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3403
6846 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5279
6847 msgid "The optional arguments are:"
6848 msgstr ""
6849
6850 #. type: =item
6851 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6852 msgid "C<readonly>"
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6857 msgid ""
6858 "If true then the image is treated as read-only.  Writes are still allowed, "
6859 "but they are stored in a temporary snapshot overlay which is discarded at "
6860 "the end.  The disk that you add is not modified."
6861 msgstr ""
6862
6863 #. type: =item
6864 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6865 msgid "C<format>"
6866 msgstr ""
6867
6868 #. type: textblock
6869 #: ../fish/guestfish-actions.pod:173
6870 msgid ""
6871 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6872 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6873 "include C<raw> and C<qcow2>."
6874 msgstr ""
6875
6876 #. type: textblock
6877 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6878 msgid ""
6879 "Automatic detection of the format opens you up to a potential security hole "
6880 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6881 "RHBZ#642934.  Specifying the format closes this security hole."
6882 msgstr ""
6883
6884 #. type: =item
6885 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6886 msgid "C<iface>"
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../fish/guestfish-actions.pod:184
6891 msgid ""
6892 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6893 "add-drive-with-if> call (q.v.)"
6894 msgstr ""
6895
6896 #. type: =item
6897 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3246
6898 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5000
6899 msgid "C<name>"
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6904 msgid ""
6905 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6906 "a hint to the guest inspection process if it is available."
6907 msgstr ""
6908
6909 #. type: =head2
6910 #: ../fish/guestfish-actions.pod:196
6911 msgid "add-drive-ro"
6912 msgstr ""
6913
6914 #. type: =head2
6915 #: ../fish/guestfish-actions.pod:198
6916 msgid "add-ro"
6917 msgstr ""
6918
6919 #. type: verbatim
6920 #: ../fish/guestfish-actions.pod:200
6921 #, no-wrap
6922 msgid ""
6923 " add-drive-ro filename\n"
6924 "\n"
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:202
6929 msgid ""
6930 "This function is the equivalent of calling L</add-drive-opts> with the "
6931 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6932 "is added read-only, with the format being detected automatically."
6933 msgstr ""
6934
6935 #. type: =head2
6936 #: ../fish/guestfish-actions.pod:207
6937 msgid "add-drive-ro-with-if"
6938 msgstr ""
6939
6940 #. type: verbatim
6941 #: ../fish/guestfish-actions.pod:209
6942 #, no-wrap
6943 msgid ""
6944 " add-drive-ro-with-if filename iface\n"
6945 "\n"
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:211
6950 msgid ""
6951 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6952 "interface emulation to use at run time."
6953 msgstr ""
6954
6955 #. type: =head2
6956 #: ../fish/guestfish-actions.pod:221
6957 msgid "add-drive-with-if"
6958 msgstr ""
6959
6960 #. type: verbatim
6961 #: ../fish/guestfish-actions.pod:223
6962 #, no-wrap
6963 msgid ""
6964 " add-drive-with-if filename iface\n"
6965 "\n"
6966 msgstr ""
6967
6968 #. type: textblock
6969 #: ../fish/guestfish-actions.pod:225
6970 msgid ""
6971 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6972 "interface emulation to use at run time."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:235
6977 msgid "aug-clear"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:237
6982 #, no-wrap
6983 msgid ""
6984 " aug-clear augpath\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6990 msgid ""
6991 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6992 "L<augtool(1)> C<clear> command."
6993 msgstr ""
6994
6995 #. type: =head2
6996 #: ../fish/guestfish-actions.pod:242
6997 msgid "aug-close"
6998 msgstr ""
6999
7000 #. type: verbatim
7001 #: ../fish/guestfish-actions.pod:244
7002 #, no-wrap
7003 msgid ""
7004 " aug-close\n"
7005 "\n"
7006 msgstr ""
7007
7008 #. type: textblock
7009 #: ../fish/guestfish-actions.pod:246
7010 msgid ""
7011 "Close the current Augeas handle and free up any resources used by it.  After "
7012 "calling this, you have to call L</aug-init> again before you can use any "
7013 "other Augeas functions."
7014 msgstr ""
7015
7016 #. type: =head2
7017 #: ../fish/guestfish-actions.pod:251
7018 msgid "aug-defnode"
7019 msgstr ""
7020
7021 #. type: verbatim
7022 #: ../fish/guestfish-actions.pod:253
7023 #, no-wrap
7024 msgid ""
7025 " aug-defnode name expr val\n"
7026 "\n"
7027 msgstr ""
7028
7029 #. type: textblock
7030 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7031 msgid ""
7032 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7033 msgstr ""
7034
7035 #. type: textblock
7036 #: ../fish/guestfish-actions.pod:258
7037 msgid ""
7038 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7039 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
7040 "containing that single node."
7041 msgstr ""
7042
7043 #. type: textblock
7044 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7045 msgid ""
7046 "On success this returns a pair containing the number of nodes in the "
7047 "nodeset, and a boolean flag if a node was created."
7048 msgstr ""
7049
7050 #. type: =head2
7051 #: ../fish/guestfish-actions.pod:266
7052 msgid "aug-defvar"
7053 msgstr ""
7054
7055 #. type: verbatim
7056 #: ../fish/guestfish-actions.pod:268
7057 #, no-wrap
7058 msgid ""
7059 " aug-defvar name expr\n"
7060 "\n"
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7065 msgid ""
7066 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7067 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7068 msgstr ""
7069
7070 #. type: textblock
7071 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7072 msgid ""
7073 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7074 "evaluates to something which is not a nodeset."
7075 msgstr ""
7076
7077 #. type: =head2
7078 #: ../fish/guestfish-actions.pod:277
7079 msgid "aug-get"
7080 msgstr ""
7081
7082 #. type: verbatim
7083 #: ../fish/guestfish-actions.pod:279
7084 #, no-wrap
7085 msgid ""
7086 " aug-get augpath\n"
7087 "\n"
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7092 msgid ""
7093 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7094 "node, the C<value> is returned."
7095 msgstr ""
7096
7097 #. type: =head2
7098 #: ../fish/guestfish-actions.pod:284
7099 msgid "aug-init"
7100 msgstr ""
7101
7102 #. type: verbatim
7103 #: ../fish/guestfish-actions.pod:286
7104 #, no-wrap
7105 msgid ""
7106 " aug-init root flags\n"
7107 "\n"
7108 msgstr ""
7109
7110 #. type: textblock
7111 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7112 msgid ""
7113 "Create a new Augeas handle for editing configuration files.  If there was "
7114 "any previous Augeas handle associated with this guestfs session, then it is "
7115 "closed."
7116 msgstr ""
7117
7118 #. type: textblock
7119 #: ../fish/guestfish-actions.pod:292
7120 msgid "You must call this before using any other L</aug-*> commands."
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7125 msgid ""
7126 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7131 msgid ""
7132 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7133 "logical I<or> of the following integers:"
7134 msgstr ""
7135
7136 #. type: =item
7137 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7138 msgid "C<AUG_SAVE_BACKUP> = 1"
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7143 msgid "Keep the original file with a C<.augsave> extension."
7144 msgstr ""
7145
7146 #. type: =item
7147 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7148 msgid "C<AUG_SAVE_NEWFILE> = 2"
7149 msgstr ""
7150
7151 #. type: textblock
7152 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7153 msgid ""
7154 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7155 "original.  Overrides C<AUG_SAVE_BACKUP>."
7156 msgstr ""
7157
7158 #. type: =item
7159 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7160 msgid "C<AUG_TYPE_CHECK> = 4"
7161 msgstr ""
7162
7163 #. type: textblock
7164 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7165 msgid "Typecheck lenses."
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:317
7170 msgid ""
7171 "This option is only useful when debugging Augeas lenses.  Use of this option "
7172 "may require additional memory for the libguestfs appliance.  You may need to "
7173 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7174 msgstr ""
7175
7176 #. type: =item
7177 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7178 msgid "C<AUG_NO_STDINC> = 8"
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7183 msgid "Do not use standard load path for modules."
7184 msgstr ""
7185
7186 #. type: =item
7187 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7188 msgid "C<AUG_SAVE_NOOP> = 16"
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7193 msgid "Make save a no-op, just record what would have been changed."
7194 msgstr ""
7195
7196 #. type: =item
7197 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7198 msgid "C<AUG_NO_LOAD> = 32"
7199 msgstr ""
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:332
7203 msgid "Do not load the tree in L</aug-init>."
7204 msgstr ""
7205
7206 #. type: textblock
7207 #: ../fish/guestfish-actions.pod:336
7208 msgid "To close the handle, you can call L</aug-close>."
7209 msgstr ""
7210
7211 #. type: textblock
7212 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7213 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7214 msgstr ""
7215
7216 #. type: =head2
7217 #: ../fish/guestfish-actions.pod:340
7218 msgid "aug-insert"
7219 msgstr ""
7220
7221 #. type: verbatim
7222 #: ../fish/guestfish-actions.pod:342
7223 #, no-wrap
7224 msgid ""
7225 " aug-insert augpath label true|false\n"
7226 "\n"
7227 msgstr ""
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7231 msgid ""
7232 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7233 "or after C<path> (depending on the boolean flag C<before>)."
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7238 msgid ""
7239 "C<path> must match exactly one existing node in the tree, and C<label> must "
7240 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7241 msgstr ""
7242
7243 #. type: =head2
7244 #: ../fish/guestfish-actions.pod:352
7245 msgid "aug-load"
7246 msgstr ""
7247
7248 #. type: verbatim
7249 #: ../fish/guestfish-actions.pod:354
7250 #, no-wrap
7251 msgid ""
7252 " aug-load\n"
7253 "\n"
7254 msgstr ""
7255
7256 #. type: textblock
7257 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7258 msgid "Load files into the tree."
7259 msgstr ""
7260
7261 #. type: textblock
7262 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7263 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7264 msgstr ""
7265
7266 #. type: =head2
7267 #: ../fish/guestfish-actions.pod:361
7268 msgid "aug-ls"
7269 msgstr ""
7270
7271 #. type: verbatim
7272 #: ../fish/guestfish-actions.pod:363
7273 #, no-wrap
7274 msgid ""
7275 " aug-ls augpath\n"
7276 "\n"
7277 msgstr ""
7278
7279 #. type: textblock
7280 #: ../fish/guestfish-actions.pod:365
7281 msgid ""
7282 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7283 "resulting nodes into alphabetical order."
7284 msgstr ""
7285
7286 #. type: =head2
7287 #: ../fish/guestfish-actions.pod:368
7288 msgid "aug-match"
7289 msgstr ""
7290
7291 #. type: verbatim
7292 #: ../fish/guestfish-actions.pod:370
7293 #, no-wrap
7294 msgid ""
7295 " aug-match augpath\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7301 msgid ""
7302 "Returns a list of paths which match the path expression C<path>.  The "
7303 "returned paths are sufficiently qualified so that they match exactly one "
7304 "node in the current tree."
7305 msgstr ""
7306
7307 #. type: =head2
7308 #: ../fish/guestfish-actions.pod:376
7309 msgid "aug-mv"
7310 msgstr ""
7311
7312 #. type: verbatim
7313 #: ../fish/guestfish-actions.pod:378
7314 #, no-wrap
7315 msgid ""
7316 " aug-mv src dest\n"
7317 "\n"
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7322 msgid ""
7323 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7324 "C<dest> is overwritten if it exists."
7325 msgstr ""
7326
7327 #. type: =head2
7328 #: ../fish/guestfish-actions.pod:383
7329 msgid "aug-rm"
7330 msgstr ""
7331
7332 #. type: verbatim
7333 #: ../fish/guestfish-actions.pod:385
7334 #, no-wrap
7335 msgid ""
7336 " aug-rm augpath\n"
7337 "\n"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7342 msgid "Remove C<path> and all of its children."
7343 msgstr ""
7344
7345 #. type: textblock
7346 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7347 msgid "On success this returns the number of entries which were removed."
7348 msgstr ""
7349
7350 #. type: =head2
7351 #: ../fish/guestfish-actions.pod:391
7352 msgid "aug-save"
7353 msgstr ""
7354
7355 #. type: verbatim
7356 #: ../fish/guestfish-actions.pod:393
7357 #, no-wrap
7358 msgid ""
7359 " aug-save\n"
7360 "\n"
7361 msgstr ""
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7365 msgid "This writes all pending changes to disk."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:397
7370 msgid ""
7371 "The flags which were passed to L</aug-init> affect exactly how files are "
7372 "saved."
7373 msgstr ""
7374
7375 #. type: =head2
7376 #: ../fish/guestfish-actions.pod:400
7377 msgid "aug-set"
7378 msgstr ""
7379
7380 #. type: verbatim
7381 #: ../fish/guestfish-actions.pod:402
7382 #, no-wrap
7383 msgid ""
7384 " aug-set augpath val\n"
7385 "\n"
7386 msgstr ""
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7390 msgid "Set the value associated with C<path> to C<val>."
7391 msgstr ""
7392
7393 #. type: textblock
7394 #: ../fish/guestfish-actions.pod:406
7395 msgid ""
7396 "In the Augeas API, it is possible to clear a node by setting the value to "
7397 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7398 "this call.  Instead you must use the L</aug-clear> call."
7399 msgstr ""
7400
7401 #. type: =head2
7402 #: ../fish/guestfish-actions.pod:411
7403 msgid "available"
7404 msgstr ""
7405
7406 #. type: verbatim
7407 #: ../fish/guestfish-actions.pod:413
7408 #, no-wrap
7409 msgid ""
7410 " available 'groups ...'\n"
7411 "\n"
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7416 msgid ""
7417 "This command is used to check the availability of some groups of "
7418 "functionality in the appliance, which not all builds of the libguestfs "
7419 "appliance will be able to provide."
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:419
7424 msgid ""
7425 "The libguestfs groups, and the functions that those groups correspond to, "
7426 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7427 "runtime by calling L</available-all-groups>."
7428 msgstr ""
7429
7430 #. type: textblock
7431 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7432 msgid ""
7433 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7434 "\"]> would check for the availability of the Linux inotify functions and "
7435 "Augeas (configuration file editing) functions."
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7440 msgid "The command returns no error if I<all> requested groups are available."
7441 msgstr ""
7442
7443 #. type: textblock
7444 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7445 msgid ""
7446 "It fails with an error if one or more of the requested groups is unavailable "
7447 "in the appliance."
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7452 msgid ""
7453 "If an unknown group name is included in the list of groups then an error is "
7454 "always returned."
7455 msgstr ""
7456
7457 #. type: textblock
7458 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7459 msgid "I<Notes:>"
7460 msgstr ""
7461
7462 #. type: textblock
7463 #: ../fish/guestfish-actions.pod:443
7464 msgid "You must call L</launch> before calling this function."
7465 msgstr ""
7466
7467 #. type: textblock
7468 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7469 msgid ""
7470 "The reason is because we don't know what groups are supported by the "
7471 "appliance/daemon until it is running and can be queried."
7472 msgstr ""
7473
7474 #. type: textblock
7475 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7476 msgid ""
7477 "If a group of functions is available, this does not necessarily mean that "
7478 "they will work.  You still have to check for errors when calling individual "
7479 "API functions even if they are available."
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7484 msgid ""
7485 "It is usually the job of distro packagers to build complete functionality "
7486 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7487 "with all requirements satisfied, will support everything."
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../fish/guestfish-actions.pod:465
7492 msgid ""
7493 "This call was added in version C<1.0.80>.  In previous versions of "
7494 "libguestfs all you could do would be to speculatively execute a command to "
7495 "find out if the daemon implemented it.  See also L</version>."
7496 msgstr ""
7497
7498 #. type: =head2
7499 #: ../fish/guestfish-actions.pod:472
7500 msgid "available-all-groups"
7501 msgstr ""
7502
7503 #. type: verbatim
7504 #: ../fish/guestfish-actions.pod:474
7505 #, no-wrap
7506 msgid ""
7507 " available-all-groups\n"
7508 "\n"
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:476
7513 msgid ""
7514 "This command returns a list of all optional groups that this daemon knows "
7515 "about.  Note this returns both supported and unsupported groups.  To find "
7516 "out which ones the daemon can actually support you have to call L</"
7517 "available> on each member of the returned list."
7518 msgstr ""
7519
7520 #. type: textblock
7521 #: ../fish/guestfish-actions.pod:482
7522 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7523 msgstr ""
7524
7525 #. type: =head2
7526 #: ../fish/guestfish-actions.pod:484
7527 msgid "base64-in"
7528 msgstr ""
7529
7530 #. type: verbatim
7531 #: ../fish/guestfish-actions.pod:486
7532 #, no-wrap
7533 msgid ""
7534 " base64-in (base64file|-) filename\n"
7535 "\n"
7536 msgstr ""
7537
7538 #. type: textblock
7539 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7540 msgid ""
7541 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7542 msgstr ""
7543
7544 #. type: textblock
7545 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7546 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
7547 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7548 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7549 #: ../fish/guestfish-actions.pod:4966 ../fish/guestfish-actions.pod:4978
7550 #: ../fish/guestfish-actions.pod:4989 ../fish/guestfish-actions.pod:5000
7551 #: ../fish/guestfish-actions.pod:5131 ../fish/guestfish-actions.pod:5140
7552 #: ../fish/guestfish-actions.pod:5194 ../fish/guestfish-actions.pod:5217
7553 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7554 msgstr ""
7555
7556 #. type: =head2
7557 #: ../fish/guestfish-actions.pod:493
7558 msgid "base64-out"
7559 msgstr ""
7560
7561 #. type: verbatim
7562 #: ../fish/guestfish-actions.pod:495
7563 #, no-wrap
7564 msgid ""
7565 " base64-out filename (base64file|-)\n"
7566 "\n"
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7571 msgid ""
7572 "This command downloads the contents of C<filename>, writing it out to local "
7573 "file C<base64file> encoded as base64."
7574 msgstr ""
7575
7576 #. type: =head2
7577 #: ../fish/guestfish-actions.pod:502
7578 msgid "blockdev-flushbufs"
7579 msgstr ""
7580
7581 #. type: verbatim
7582 #: ../fish/guestfish-actions.pod:504
7583 #, no-wrap
7584 msgid ""
7585 " blockdev-flushbufs device\n"
7586 "\n"
7587 msgstr ""
7588
7589 #. type: textblock
7590 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7591 msgid ""
7592 "This tells the kernel to flush internal buffers associated with C<device>."
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7597 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7598 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7599 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7600 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7601 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7602 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7603 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7604 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7605 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7606 msgid "This uses the L<blockdev(8)> command."
7607 msgstr ""
7608
7609 #. type: =head2
7610 #: ../fish/guestfish-actions.pod:511
7611 msgid "blockdev-getbsz"
7612 msgstr ""
7613
7614 #. type: verbatim
7615 #: ../fish/guestfish-actions.pod:513
7616 #, no-wrap
7617 msgid ""
7618 " blockdev-getbsz device\n"
7619 "\n"
7620 msgstr ""
7621
7622 #. type: textblock
7623 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7624 msgid "This returns the block size of a device."
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7629 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7630 msgid ""
7631 "(Note this is different from both I<size in blocks> and I<filesystem block "
7632 "size>)."
7633 msgstr ""
7634
7635 #. type: =head2
7636 #: ../fish/guestfish-actions.pod:522
7637 msgid "blockdev-getro"
7638 msgstr ""
7639
7640 #. type: verbatim
7641 #: ../fish/guestfish-actions.pod:524
7642 #, no-wrap
7643 msgid ""
7644 " blockdev-getro device\n"
7645 "\n"
7646 msgstr ""
7647
7648 #. type: textblock
7649 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7650 msgid ""
7651 "Returns a boolean indicating if the block device is read-only (true if read-"
7652 "only, false if not)."
7653 msgstr ""
7654
7655 #. type: =head2
7656 #: ../fish/guestfish-actions.pod:531
7657 msgid "blockdev-getsize64"
7658 msgstr ""
7659
7660 #. type: verbatim
7661 #: ../fish/guestfish-actions.pod:533
7662 #, no-wrap
7663 msgid ""
7664 " blockdev-getsize64 device\n"
7665 "\n"
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7670 msgid "This returns the size of the device in bytes."
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:537
7675 msgid "See also L</blockdev-getsz>."
7676 msgstr ""
7677
7678 #. type: =head2
7679 #: ../fish/guestfish-actions.pod:541
7680 msgid "blockdev-getss"
7681 msgstr ""
7682
7683 #. type: verbatim
7684 #: ../fish/guestfish-actions.pod:543
7685 #, no-wrap
7686 msgid ""
7687 " blockdev-getss device\n"
7688 "\n"
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7693 msgid ""
7694 "This returns the size of sectors on a block device.  Usually 512, but can be "
7695 "larger for modern devices."
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:548
7700 msgid ""
7701 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7702 msgstr ""
7703
7704 #. type: =head2
7705 #: ../fish/guestfish-actions.pod:553
7706 msgid "blockdev-getsz"
7707 msgstr ""
7708
7709 #. type: verbatim
7710 #: ../fish/guestfish-actions.pod:555
7711 #, no-wrap
7712 msgid ""
7713 " blockdev-getsz device\n"
7714 "\n"
7715 msgstr ""
7716
7717 #. type: textblock
7718 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7719 msgid ""
7720 "This returns the size of the device in units of 512-byte sectors (even if "
7721 "the sectorsize isn't 512 bytes ... weird)."
7722 msgstr ""
7723
7724 #. type: textblock
7725 #: ../fish/guestfish-actions.pod:560
7726 msgid ""
7727 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7728 "blockdev-getsize64> for the more useful I<size in bytes>."
7729 msgstr ""
7730
7731 #. type: =head2
7732 #: ../fish/guestfish-actions.pod:566
7733 msgid "blockdev-rereadpt"
7734 msgstr ""
7735
7736 #. type: verbatim
7737 #: ../fish/guestfish-actions.pod:568
7738 #, no-wrap
7739 msgid ""
7740 " blockdev-rereadpt device\n"
7741 "\n"
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7746 msgid "Reread the partition table on C<device>."
7747 msgstr ""
7748
7749 #. type: =head2
7750 #: ../fish/guestfish-actions.pod:574
7751 msgid "blockdev-setbsz"
7752 msgstr ""
7753
7754 #. type: verbatim
7755 #: ../fish/guestfish-actions.pod:576
7756 #, no-wrap
7757 msgid ""
7758 " blockdev-setbsz device blocksize\n"
7759 "\n"
7760 msgstr ""
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7764 msgid "This sets the block size of a device."
7765 msgstr ""
7766
7767 #. type: =head2
7768 #: ../fish/guestfish-actions.pod:585
7769 msgid "blockdev-setro"
7770 msgstr ""
7771
7772 #. type: verbatim
7773 #: ../fish/guestfish-actions.pod:587
7774 #, no-wrap
7775 msgid ""
7776 " blockdev-setro device\n"
7777 "\n"
7778 msgstr ""
7779
7780 #. type: textblock
7781 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7782 msgid "Sets the block device named C<device> to read-only."
7783 msgstr ""
7784
7785 #. type: =head2
7786 #: ../fish/guestfish-actions.pod:593
7787 msgid "blockdev-setrw"
7788 msgstr ""
7789
7790 #. type: verbatim
7791 #: ../fish/guestfish-actions.pod:595
7792 #, no-wrap
7793 msgid ""
7794 " blockdev-setrw device\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7800 msgid "Sets the block device named C<device> to read-write."
7801 msgstr ""
7802
7803 #. type: =head2
7804 #: ../fish/guestfish-actions.pod:601
7805 msgid "btrfs-filesystem-resize"
7806 msgstr ""
7807
7808 #. type: verbatim
7809 #: ../fish/guestfish-actions.pod:603
7810 #, no-wrap
7811 msgid ""
7812 " btrfs-filesystem-resize mountpoint [size:N]\n"
7813 "\n"
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7818 msgid "This command resizes a btrfs filesystem."
7819 msgstr ""
7820
7821 #. type: textblock
7822 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7823 msgid ""
7824 "Note that unlike other resize calls, the filesystem has to be mounted and "
7825 "the parameter is the mountpoint not the device (this is a requirement of "
7826 "btrfs itself)."
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3168
7831 #: ../fish/guestfish-actions.pod:3714 ../fish/guestfish-actions.pod:5040
7832 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4896
7833 #: ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:7779
7834 msgid "The optional parameters are:"
7835 msgstr ""
7836
7837 #. type: =item
7838 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3718
7839 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5807
7840 msgid "C<size>"
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7845 msgid ""
7846 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7847 "resized to the maximum size."
7848 msgstr ""
7849
7850 #. type: textblock
7851 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7852 msgid "See also L<btrfs(8)>."
7853 msgstr ""
7854
7855 #. type: =head2
7856 #: ../fish/guestfish-actions.pod:626
7857 msgid "case-sensitive-path"
7858 msgstr ""
7859
7860 #. type: verbatim
7861 #: ../fish/guestfish-actions.pod:628
7862 #, no-wrap
7863 msgid ""
7864 " case-sensitive-path path\n"
7865 "\n"
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7870 msgid ""
7871 "This can be used to resolve case insensitive paths on a filesystem which is "
7872 "case sensitive.  The use case is to resolve paths which you have read from "
7873 "Windows configuration files or the Windows Registry, to the true path."
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7878 msgid ""
7879 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7880 "(and probably others), which is that although the underlying filesystem is "
7881 "case-insensitive, the driver exports the filesystem to Linux as case-"
7882 "sensitive."
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7887 msgid ""
7888 "One consequence of this is that special directories such as C<c:\\windows> "
7889 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7890 "precise details of how they were created.  In Windows itself this would not "
7891 "be a problem."
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7896 msgid ""
7897 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7898 "#posixfilenames1>"
7899 msgstr ""
7900
7901 #. type: textblock
7902 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7903 msgid ""
7904 "This function resolves the true case of each element in the path and returns "
7905 "the case-sensitive path."
7906 msgstr ""
7907
7908 #. type: textblock
7909 #: ../fish/guestfish-actions.pod:652
7910 msgid ""
7911 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7912 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7913 "the directories were originally created under Windows)."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7918 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7919 msgstr ""
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:660
7923 msgid "See also L</realpath>."
7924 msgstr ""
7925
7926 #. type: =head2
7927 #: ../fish/guestfish-actions.pod:662
7928 msgid "cat"
7929 msgstr ""
7930
7931 #. type: verbatim
7932 #: ../fish/guestfish-actions.pod:664
7933 #, no-wrap
7934 msgid ""
7935 " cat path\n"
7936 "\n"
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4145
7941 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6463
7942 msgid "Return the contents of the file named C<path>."
7943 msgstr ""
7944
7945 #. type: textblock
7946 #: ../fish/guestfish-actions.pod:668
7947 msgid ""
7948 "Note that this function cannot correctly handle binary files (specifically, "
7949 "files containing C<\\0> character which is treated as end of string).  For "
7950 "those you need to use the L</read-file> or L</download> functions which have "
7951 "a more complex interface."
7952 msgstr ""
7953
7954 #. type: textblock
7955 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7956 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7957 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7958 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7959 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7960 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7961 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7962 #: ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030
7963 #: ../fish/guestfish-actions.pod:4106 ../fish/guestfish-actions.pod:4123
7964 #: ../fish/guestfish-actions.pod:4138 ../fish/guestfish-actions.pod:4807
7965 #: ../fish/guestfish-actions.pod:4853 ../fish/guestfish-actions.pod:4938
7966 #: ../fish/guestfish-actions.pod:4953 ../fish/guestfish-actions.pod:5438
7967 #: ../fish/guestfish-actions.pod:5450 ../fish/guestfish-actions.pod:5468
7968 #: ../fish/guestfish-actions.pod:5485 ../fish/guestfish-actions.pod:5495
7969 #: ../fish/guestfish-actions.pod:5549 ../fish/guestfish-actions.pod:5559
7970 #: ../fish/guestfish-actions.pod:5588 ../fish/guestfish-actions.pod:5598
7971 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7972 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7973 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7974 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7975 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7976 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7977 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7978 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6271
7979 #: ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:6428
7980 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:7407
7981 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7608
7982 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:8419
7983 #: ../src/guestfs-actions.pod:8439 ../src/guestfs-actions.pod:8472
7984 #: ../src/guestfs-actions.pod:8491 ../src/guestfs-actions.pod:8510
7985 #: ../src/guestfs-actions.pod:8601 ../src/guestfs-actions.pod:8620
7986 #: ../src/guestfs-actions.pod:8666 ../src/guestfs-actions.pod:8685
7987 msgid ""
7988 "Because of the message protocol, there is a transfer limit of somewhere "
7989 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7990 msgstr ""
7991
7992 #. type: =head2
7993 #: ../fish/guestfish-actions.pod:676
7994 msgid "checksum"
7995 msgstr ""
7996
7997 #. type: verbatim
7998 #: ../fish/guestfish-actions.pod:678
7999 #, no-wrap
8000 msgid ""
8001 " checksum csumtype path\n"
8002 "\n"
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
8007 msgid ""
8008 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8009 msgstr ""
8010
8011 #. type: textblock
8012 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
8013 msgid ""
8014 "The type of checksum to compute is given by the C<csumtype> parameter which "
8015 "must have one of the following values:"
8016 msgstr ""
8017
8018 #. type: =item
8019 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
8020 msgid "C<crc>"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
8025 msgid ""
8026 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8027 "C<cksum> command."
8028 msgstr ""
8029
8030 #. type: =item
8031 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
8032 msgid "C<md5>"
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
8037 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8038 msgstr ""
8039
8040 #. type: =item
8041 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
8042 msgid "C<sha1>"
8043 msgstr ""
8044
8045 #. type: textblock
8046 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
8047 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8048 msgstr ""
8049
8050 #. type: =item
8051 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
8052 msgid "C<sha224>"
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
8057 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8058 msgstr ""
8059
8060 #. type: =item
8061 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
8062 msgid "C<sha256>"
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
8067 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8068 msgstr ""
8069
8070 #. type: =item
8071 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
8072 msgid "C<sha384>"
8073 msgstr ""
8074
8075 #. type: textblock
8076 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8077 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8078 msgstr ""
8079
8080 #. type: =item
8081 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8082 msgid "C<sha512>"
8083 msgstr ""
8084
8085 #. type: textblock
8086 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8087 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8088 msgstr ""
8089
8090 #. type: textblock
8091 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8092 msgid "The checksum is returned as a printable string."
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:721
8097 msgid "To get the checksum for a device, use L</checksum-device>."
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:723
8102 msgid "To get the checksums for many files, use L</checksums-out>."
8103 msgstr ""
8104
8105 #. type: =head2
8106 #: ../fish/guestfish-actions.pod:725
8107 msgid "checksum-device"
8108 msgstr ""
8109
8110 #. type: verbatim
8111 #: ../fish/guestfish-actions.pod:727
8112 #, no-wrap
8113 msgid ""
8114 " checksum-device csumtype device\n"
8115 "\n"
8116 msgstr ""
8117
8118 #. type: textblock
8119 #: ../fish/guestfish-actions.pod:729
8120 msgid ""
8121 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8122 "device named C<device>.  For the types of checksums supported see the L</"
8123 "checksum> command."
8124 msgstr ""
8125
8126 #. type: =head2
8127 #: ../fish/guestfish-actions.pod:733
8128 msgid "checksums-out"
8129 msgstr ""
8130
8131 #. type: verbatim
8132 #: ../fish/guestfish-actions.pod:735
8133 #, no-wrap
8134 msgid ""
8135 " checksums-out csumtype directory (sumsfile|-)\n"
8136 "\n"
8137 msgstr ""
8138
8139 #. type: textblock
8140 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8141 msgid ""
8142 "This command computes the checksums of all regular files in C<directory> and "
8143 "then emits a list of those checksums to the local output file C<sumsfile>."
8144 msgstr ""
8145
8146 #. type: textblock
8147 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8148 msgid ""
8149 "This can be used for verifying the integrity of a virtual machine.  However "
8150 "to be properly secure you should pay attention to the output of the checksum "
8151 "command (it uses the ones from GNU coreutils).  In particular when the "
8152 "filename is not printable, coreutils uses a special backslash syntax.  For "
8153 "more information, see the GNU coreutils info file."
8154 msgstr ""
8155
8156 #. type: =head2
8157 #: ../fish/guestfish-actions.pod:751
8158 msgid "chmod"
8159 msgstr ""
8160
8161 #. type: verbatim
8162 #: ../fish/guestfish-actions.pod:753
8163 #, no-wrap
8164 msgid ""
8165 " chmod mode path\n"
8166 "\n"
8167 msgstr ""
8168
8169 #. type: textblock
8170 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8171 msgid ""
8172 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8173 "supported."
8174 msgstr ""
8175
8176 #. type: textblock
8177 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8178 msgid ""
8179 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8180 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8181 "C<700>."
8182 msgstr ""
8183
8184 #. type: textblock
8185 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3367
8186 #: ../fish/guestfish-actions.pod:3506 ../fish/guestfish-actions.pod:3516
8187 #: ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:1117
8188 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5419
8189 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5457
8190 msgid "The mode actually set is affected by the umask."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:764
8195 msgid "chown"
8196 msgstr ""
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:766
8200 #, no-wrap
8201 msgid ""
8202 " chown owner group path\n"
8203 "\n"
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8208 msgid "Change the file owner to C<owner> and group to C<group>."
8209 msgstr ""
8210
8211 #. type: textblock
8212 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2707
8213 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4128
8214 msgid ""
8215 "Only numeric uid and gid are supported.  If you want to use names, you will "
8216 "need to locate and parse the password file yourself (Augeas support makes "
8217 "this relatively easy)."
8218 msgstr ""
8219
8220 #. type: =head2
8221 #: ../fish/guestfish-actions.pod:774
8222 msgid "command"
8223 msgstr ""
8224
8225 #. type: verbatim
8226 #: ../fish/guestfish-actions.pod:776
8227 #, no-wrap
8228 msgid ""
8229 " command 'arguments ...'\n"
8230 "\n"
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8235 msgid ""
8236 "This call runs a command from the guest filesystem.  The filesystem must be "
8237 "mounted, and must contain a compatible operating system (ie. something "
8238 "Linux, with the same or compatible processor architecture)."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:783
8243 msgid ""
8244 "The single parameter is an argv-style list of arguments.  The first element "
8245 "is the name of the program to run.  Subsequent elements are parameters.  The "
8246 "list must be non-empty (ie. must contain a program name).  Note that the "
8247 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8252 msgid "The return value is anything printed to I<stdout> by the command."
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8257 msgid ""
8258 "If the command returns a non-zero exit status, then this function returns an "
8259 "error message.  The error message string is the content of I<stderr> from "
8260 "the command."
8261 msgstr ""
8262
8263 #. type: textblock
8264 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8265 msgid ""
8266 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8267 "bin>.  If you require a program from another location, you should provide "
8268 "the full path in the first parameter."
8269 msgstr ""
8270
8271 #. type: textblock
8272 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8273 msgid ""
8274 "Shared libraries and data files required by the program must be available on "
8275 "filesystems which are mounted in the correct places.  It is the caller's "
8276 "responsibility to ensure all filesystems that are needed are mounted at the "
8277 "right locations."
8278 msgstr ""
8279
8280 #. type: =head2
8281 #: ../fish/guestfish-actions.pod:811
8282 msgid "command-lines"
8283 msgstr ""
8284
8285 #. type: verbatim
8286 #: ../fish/guestfish-actions.pod:813
8287 #, no-wrap
8288 msgid ""
8289 " command-lines 'arguments ...'\n"
8290 "\n"
8291 msgstr ""
8292
8293 #. type: textblock
8294 #: ../fish/guestfish-actions.pod:815
8295 msgid ""
8296 "This is the same as L</command>, but splits the result into a list of lines."
8297 msgstr ""
8298
8299 #. type: textblock
8300 #: ../fish/guestfish-actions.pod:818
8301 msgid "See also: L</sh-lines>"
8302 msgstr ""
8303
8304 #. type: =head2
8305 #: ../fish/guestfish-actions.pod:823
8306 msgid "compress-device-out"
8307 msgstr ""
8308
8309 #. type: verbatim
8310 #: ../fish/guestfish-actions.pod:825
8311 #, no-wrap
8312 msgid ""
8313 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8314 "\n"
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8319 msgid ""
8320 "This command compresses C<device> and writes it out to the local file "
8321 "C<zdevice>."
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:830
8326 msgid ""
8327 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8328 "compress-out>."
8329 msgstr ""
8330
8331 #. type: =head2
8332 #: ../fish/guestfish-actions.pod:837
8333 msgid "compress-out"
8334 msgstr ""
8335
8336 #. type: verbatim
8337 #: ../fish/guestfish-actions.pod:839
8338 #, no-wrap
8339 msgid ""
8340 " compress-out ctype file (zfile|-) [level:N]\n"
8341 "\n"
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8346 msgid ""
8347 "This command compresses C<file> and writes it out to the local file C<zfile>."
8348 msgstr ""
8349
8350 #. type: textblock
8351 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8352 msgid ""
8353 "The compression program used is controlled by the C<ctype> parameter.  "
8354 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8355 "Some compression types may not be supported by particular builds of "
8356 "libguestfs, in which case you will get an error containing the substring "
8357 "\"not supported\"."
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8362 msgid ""
8363 "The optional C<level> parameter controls compression level.  The meaning and "
8364 "default for this parameter depends on the compression program being used."
8365 msgstr ""
8366
8367 #. type: =head2
8368 #: ../fish/guestfish-actions.pod:858
8369 msgid "config"
8370 msgstr ""
8371
8372 #. type: verbatim
8373 #: ../fish/guestfish-actions.pod:860
8374 #, no-wrap
8375 msgid ""
8376 " config qemuparam qemuvalue\n"
8377 "\n"
8378 msgstr ""
8379
8380 #. type: textblock
8381 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8382 msgid ""
8383 "This can be used to add arbitrary qemu command line parameters of the form "
8384 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8385 "setting some parameters which would interfere with parameters that we use."
8386 msgstr ""
8387
8388 #. type: textblock
8389 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8390 msgid "The first character of C<param> string must be a C<-> (dash)."
8391 msgstr ""
8392
8393 #. type: textblock
8394 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8395 msgid "C<value> can be NULL."
8396 msgstr ""
8397
8398 #. type: =head2
8399 #: ../fish/guestfish-actions.pod:871
8400 msgid "copy-device-to-device"
8401 msgstr ""
8402
8403 #. type: verbatim
8404 #: ../fish/guestfish-actions.pod:873
8405 #, no-wrap
8406 msgid ""
8407 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8408 "\n"
8409 msgstr ""
8410
8411 #. type: textblock
8412 #: ../fish/guestfish-actions.pod:875
8413 msgid ""
8414 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8415 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8416 "(device|file) to a destination (device|file)."
8417 msgstr ""
8418
8419 #. type: textblock
8420 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8421 msgid ""
8422 "Partial copies can be made since you can specify optionally the source "
8423 "offset, destination offset and size to copy.  These values are all specified "
8424 "in bytes.  If not given, the offsets both default to zero, and the size "
8425 "defaults to copying as much as possible until we hit the end of the source."
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8430 msgid ""
8431 "The source and destination may be the same object.  However overlapping "
8432 "regions may not be copied correctly."
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8437 msgid ""
8438 "If the destination is a file, it is created if required.  If the destination "
8439 "file is not large enough, it is extended."
8440 msgstr ""
8441
8442 #. type: =head2
8443 #: ../fish/guestfish-actions.pod:896
8444 msgid "copy-device-to-file"
8445 msgstr ""
8446
8447 #. type: verbatim
8448 #: ../fish/guestfish-actions.pod:898
8449 #, no-wrap
8450 msgid ""
8451 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8452 "\n"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8457 #: ../fish/guestfish-actions.pod:918
8458 msgid "See L</copy-device-to-device> for a general overview of this call."
8459 msgstr ""
8460
8461 #. type: =head2
8462 #: ../fish/guestfish-actions.pod:905
8463 msgid "copy-file-to-device"
8464 msgstr ""
8465
8466 #. type: verbatim
8467 #: ../fish/guestfish-actions.pod:907
8468 #, no-wrap
8469 msgid ""
8470 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8471 "\n"
8472 msgstr ""
8473
8474 #. type: =head2
8475 #: ../fish/guestfish-actions.pod:914
8476 msgid "copy-file-to-file"
8477 msgstr ""
8478
8479 #. type: verbatim
8480 #: ../fish/guestfish-actions.pod:916
8481 #, no-wrap
8482 msgid ""
8483 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8484 "\n"
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:921
8489 msgid ""
8490 "This is B<not> the function you want for copying files.  This is for copying "
8491 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8492 "file copying and moving functions."
8493 msgstr ""
8494
8495 #. type: =head2
8496 #: ../fish/guestfish-actions.pod:928
8497 msgid "copy-size"
8498 msgstr ""
8499
8500 #. type: verbatim
8501 #: ../fish/guestfish-actions.pod:930
8502 #, no-wrap
8503 msgid ""
8504 " copy-size src dest size\n"
8505 "\n"
8506 msgstr ""
8507
8508 #. type: textblock
8509 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8510 msgid ""
8511 "This command copies exactly C<size> bytes from one source device or file "
8512 "C<src> to another destination device or file C<dest>."
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8517 msgid ""
8518 "Note this will fail if the source is too short or if the destination is not "
8519 "large enough."
8520 msgstr ""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8524 msgid ""
8525 "I<This function is deprecated.> In new code, use the L</"
8526 "copy_device_to_device> call instead."
8527 msgstr ""
8528
8529 #. type: =head2
8530 #: ../fish/guestfish-actions.pod:945
8531 msgid "cp"
8532 msgstr ""
8533
8534 #. type: verbatim
8535 #: ../fish/guestfish-actions.pod:947
8536 #, no-wrap
8537 msgid ""
8538 " cp src dest\n"
8539 "\n"
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8544 msgid ""
8545 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8546 "destination filename or destination directory."
8547 msgstr ""
8548
8549 #. type: =head2
8550 #: ../fish/guestfish-actions.pod:952
8551 msgid "cp-a"
8552 msgstr ""
8553
8554 #. type: verbatim
8555 #: ../fish/guestfish-actions.pod:954
8556 #, no-wrap
8557 msgid ""
8558 " cp-a src dest\n"
8559 "\n"
8560 msgstr ""
8561
8562 #. type: textblock
8563 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8564 msgid ""
8565 "This copies a file or directory from C<src> to C<dest> recursively using the "
8566 "C<cp -a> command."
8567 msgstr ""
8568
8569 #. type: =head2
8570 #: ../fish/guestfish-actions.pod:959
8571 msgid "dd"
8572 msgstr ""
8573
8574 #. type: verbatim
8575 #: ../fish/guestfish-actions.pod:961
8576 #, no-wrap
8577 msgid ""
8578 " dd src dest\n"
8579 "\n"
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8584 msgid ""
8585 "This command copies from one source device or file C<src> to another "
8586 "destination device or file C<dest>.  Normally you would use this to copy to "
8587 "or from a device or partition, for example to duplicate a filesystem."
8588 msgstr ""
8589
8590 #. type: textblock
8591 #: ../fish/guestfish-actions.pod:968
8592 msgid ""
8593 "If the destination is a device, it must be as large or larger than the "
8594 "source file or device, otherwise the copy will fail.  This command cannot do "
8595 "partial copies (see L</copy-device-to-device>)."
8596 msgstr ""
8597
8598 #. type: =head2
8599 #: ../fish/guestfish-actions.pod:980
8600 msgid "df"
8601 msgstr ""
8602
8603 #. type: verbatim
8604 #: ../fish/guestfish-actions.pod:982
8605 #, no-wrap
8606 msgid ""
8607 " df\n"
8608 "\n"
8609 msgstr ""
8610
8611 #. type: textblock
8612 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8613 msgid "This command runs the C<df> command to report disk space used."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8618 msgid ""
8619 "This command is mostly useful for interactive sessions.  It is I<not> "
8620 "intended that you try to parse the output string.  Use L</statvfs> from "
8621 "programs."
8622 msgstr ""
8623
8624 #. type: =head2
8625 #: ../fish/guestfish-actions.pod:990
8626 msgid "df-h"
8627 msgstr ""
8628
8629 #. type: verbatim
8630 #: ../fish/guestfish-actions.pod:992
8631 #, no-wrap
8632 msgid ""
8633 " df-h\n"
8634 "\n"
8635 msgstr ""
8636
8637 #. type: textblock
8638 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8639 msgid ""
8640 "This command runs the C<df -h> command to report disk space used in human-"
8641 "readable format."
8642 msgstr ""
8643
8644 #. type: =head2
8645 #: ../fish/guestfish-actions.pod:1001
8646 msgid "dmesg"
8647 msgstr ""
8648
8649 #. type: verbatim
8650 #: ../fish/guestfish-actions.pod:1003
8651 #, no-wrap
8652 msgid ""
8653 " dmesg\n"
8654 "\n"
8655 msgstr ""
8656
8657 #. type: textblock
8658 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8659 msgid ""
8660 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8661 "This is sometimes useful for extended debugging of problems."
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:1009
8666 msgid ""
8667 "Another way to get the same information is to enable verbose messages with "
8668 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8669 "before running the program."
8670 msgstr ""
8671
8672 #. type: =head2
8673 #: ../fish/guestfish-actions.pod:1014
8674 msgid "download"
8675 msgstr ""
8676
8677 #. type: verbatim
8678 #: ../fish/guestfish-actions.pod:1016
8679 #, no-wrap
8680 msgid ""
8681 " download remotefilename (filename|-)\n"
8682 "\n"
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8687 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8688 msgid ""
8689 "Download file C<remotefilename> and save it as C<filename> on the local "
8690 "machine."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5190
8695 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7989
8696 msgid "C<filename> can also be a named pipe."
8697 msgstr ""
8698
8699 #. type: textblock
8700 #: ../fish/guestfish-actions.pod:1023
8701 msgid "See also L</upload>, L</cat>."
8702 msgstr ""
8703
8704 #. type: =head2
8705 #: ../fish/guestfish-actions.pod:1027
8706 msgid "download-offset"
8707 msgstr ""
8708
8709 #. type: verbatim
8710 #: ../fish/guestfish-actions.pod:1029
8711 #, no-wrap
8712 msgid ""
8713 " download-offset remotefilename (filename|-) offset size\n"
8714 "\n"
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8719 msgid ""
8720 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8721 "region must be within the file or device)."
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:1037
8726 msgid ""
8727 "Note that there is no limit on the amount of data that can be downloaded "
8728 "with this call, unlike with L</pread>, and this call always reads the full "
8729 "amount unless an error occurs."
8730 msgstr ""
8731
8732 #. type: textblock
8733 #: ../fish/guestfish-actions.pod:1042
8734 msgid "See also L</download>, L</pread>."
8735 msgstr ""
8736
8737 #. type: =head2
8738 #: ../fish/guestfish-actions.pod:1046
8739 msgid "drop-caches"
8740 msgstr ""
8741
8742 #. type: verbatim
8743 #: ../fish/guestfish-actions.pod:1048
8744 #, no-wrap
8745 msgid ""
8746 " drop-caches whattodrop\n"
8747 "\n"
8748 msgstr ""
8749
8750 #. type: textblock
8751 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8752 msgid ""
8753 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8754 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8755 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8756 msgstr ""
8757
8758 #. type: textblock
8759 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8760 msgid "Setting C<whattodrop> to 3 should drop everything."
8761 msgstr ""
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8765 msgid ""
8766 "This automatically calls L<sync(2)> before the operation, so that the "
8767 "maximum guest memory is freed."
8768 msgstr ""
8769
8770 #. type: =head2
8771 #: ../fish/guestfish-actions.pod:1060
8772 msgid "du"
8773 msgstr ""
8774
8775 #. type: verbatim
8776 #: ../fish/guestfish-actions.pod:1062
8777 #, no-wrap
8778 msgid ""
8779 " du path\n"
8780 "\n"
8781 msgstr ""
8782
8783 #. type: textblock
8784 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8785 msgid ""
8786 "This command runs the C<du -s> command to estimate file space usage for "
8787 "C<path>."
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8792 msgid ""
8793 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8794 "estimate includes the contents of the directory and all subdirectories "
8795 "(recursively)."
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8800 msgid ""
8801 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8802 msgstr ""
8803
8804 #. type: =head2
8805 #: ../fish/guestfish-actions.pod:1074
8806 msgid "e2fsck-f"
8807 msgstr ""
8808
8809 #. type: verbatim
8810 #: ../fish/guestfish-actions.pod:1076
8811 #, no-wrap
8812 msgid ""
8813 " e2fsck-f device\n"
8814 "\n"
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8819 msgid ""
8820 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8821 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8822 "clean (I<-f>)."
8823 msgstr ""
8824
8825 #. type: textblock
8826 #: ../fish/guestfish-actions.pod:1082
8827 msgid ""
8828 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8829 "should use L</fsck>."
8830 msgstr ""
8831
8832 #. type: =head2
8833 #: ../fish/guestfish-actions.pod:1085
8834 msgid "echo-daemon"
8835 msgstr ""
8836
8837 #. type: verbatim
8838 #: ../fish/guestfish-actions.pod:1087
8839 #, no-wrap
8840 msgid ""
8841 " echo-daemon 'words ...'\n"
8842 "\n"
8843 msgstr ""
8844
8845 #. type: textblock
8846 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8847 msgid ""
8848 "This command concatenates the list of C<words> passed with single spaces "
8849 "between them and returns the resulting string."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8854 msgid "You can use this command to test the connection through to the daemon."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1094
8859 msgid "See also L</ping-daemon>."
8860 msgstr ""
8861
8862 #. type: =head2
8863 #: ../fish/guestfish-actions.pod:1096
8864 msgid "egrep"
8865 msgstr ""
8866
8867 #. type: verbatim
8868 #: ../fish/guestfish-actions.pod:1098
8869 #, no-wrap
8870 msgid ""
8871 " egrep regex path\n"
8872 "\n"
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8877 msgid ""
8878 "This calls the external C<egrep> program and returns the matching lines."
8879 msgstr ""
8880
8881 #. type: =head2
8882 #: ../fish/guestfish-actions.pod:1106
8883 msgid "egrepi"
8884 msgstr ""
8885
8886 #. type: verbatim
8887 #: ../fish/guestfish-actions.pod:1108
8888 #, no-wrap
8889 msgid ""
8890 " egrepi regex path\n"
8891 "\n"
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8896 msgid ""
8897 "This calls the external C<egrep -i> program and returns the matching lines."
8898 msgstr ""
8899
8900 #. type: =head2
8901 #: ../fish/guestfish-actions.pod:1116
8902 msgid "equal"
8903 msgstr ""
8904
8905 #. type: verbatim
8906 #: ../fish/guestfish-actions.pod:1118
8907 #, no-wrap
8908 msgid ""
8909 " equal file1 file2\n"
8910 "\n"
8911 msgstr ""
8912
8913 #. type: textblock
8914 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8915 msgid ""
8916 "This compares the two files C<file1> and C<file2> and returns true if their "
8917 "content is exactly equal, or false otherwise."
8918 msgstr ""
8919
8920 #. type: textblock
8921 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8922 msgid "The external L<cmp(1)> program is used for the comparison."
8923 msgstr ""
8924
8925 #. type: =head2
8926 #: ../fish/guestfish-actions.pod:1125
8927 msgid "exists"
8928 msgstr ""
8929
8930 #. type: verbatim
8931 #: ../fish/guestfish-actions.pod:1127
8932 #, no-wrap
8933 msgid ""
8934 " exists path\n"
8935 "\n"
8936 msgstr ""
8937
8938 #. type: textblock
8939 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8940 msgid ""
8941 "This returns C<true> if and only if there is a file, directory (or anything) "
8942 "with the given C<path> name."
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../fish/guestfish-actions.pod:1132
8947 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8948 msgstr ""
8949
8950 #. type: =head2
8951 #: ../fish/guestfish-actions.pod:1134
8952 msgid "fallocate"
8953 msgstr ""
8954
8955 #. type: verbatim
8956 #: ../fish/guestfish-actions.pod:1136
8957 #, no-wrap
8958 msgid ""
8959 " fallocate path len\n"
8960 "\n"
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8965 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8966 msgid ""
8967 "This command preallocates a file (containing zero bytes) named C<path> of "
8968 "size C<len> bytes.  If the file exists already, it is overwritten."
8969 msgstr ""
8970
8971 #. type: textblock
8972 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8973 msgid ""
8974 "Do not confuse this with the guestfish-specific C<alloc> command which "
8975 "allocates a file in the host and attaches it as a device."
8976 msgstr ""
8977
8978 #. type: textblock
8979 #: ../fish/guestfish-actions.pod:1146
8980 msgid ""
8981 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8982 "instead."
8983 msgstr ""
8984
8985 #. type: =head2
8986 #: ../fish/guestfish-actions.pod:1153
8987 msgid "fallocate64"
8988 msgstr ""
8989
8990 #. type: verbatim
8991 #: ../fish/guestfish-actions.pod:1155
8992 #, no-wrap
8993 msgid ""
8994 " fallocate64 path len\n"
8995 "\n"
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../fish/guestfish-actions.pod:1161
9000 msgid ""
9001 "Note that this call allocates disk blocks for the file.  To create a sparse "
9002 "file use L</truncate-size> instead."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:1164
9007 msgid ""
9008 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9009 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9010 "maximum size of files created through that call to 1GB."
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
9015 msgid ""
9016 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9017 "commands which create a file in the host and attach it as a device."
9018 msgstr ""
9019
9020 #. type: =head2
9021 #: ../fish/guestfish-actions.pod:1173
9022 msgid "fgrep"
9023 msgstr ""
9024
9025 #. type: verbatim
9026 #: ../fish/guestfish-actions.pod:1175
9027 #, no-wrap
9028 msgid ""
9029 " fgrep pattern path\n"
9030 "\n"
9031 msgstr ""
9032
9033 #. type: textblock
9034 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
9035 msgid ""
9036 "This calls the external C<fgrep> program and returns the matching lines."
9037 msgstr ""
9038
9039 #. type: =head2
9040 #: ../fish/guestfish-actions.pod:1183
9041 msgid "fgrepi"
9042 msgstr ""
9043
9044 #. type: verbatim
9045 #: ../fish/guestfish-actions.pod:1185
9046 #, no-wrap
9047 msgid ""
9048 " fgrepi pattern path\n"
9049 "\n"
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
9054 msgid ""
9055 "This calls the external C<fgrep -i> program and returns the matching lines."
9056 msgstr ""
9057
9058 #. type: =head2
9059 #: ../fish/guestfish-actions.pod:1193
9060 msgid "file"
9061 msgstr ""
9062
9063 #. type: verbatim
9064 #: ../fish/guestfish-actions.pod:1195
9065 #, no-wrap
9066 msgid ""
9067 " file path\n"
9068 "\n"
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
9073 msgid ""
9074 "This call uses the standard L<file(1)> command to determine the type or "
9075 "contents of the file."
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9080 msgid ""
9081 "This call will also transparently look inside various types of compressed "
9082 "file."
9083 msgstr ""
9084
9085 #. type: textblock
9086 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9087 msgid ""
9088 "The exact command which runs is C<file -zb path>.  Note in particular that "
9089 "the filename is not prepended to the output (the I<-b> option)."
9090 msgstr ""
9091
9092 #. type: textblock
9093 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9094 msgid ""
9095 "The output depends on the output of the underlying L<file(1)> command and it "
9096 "can change in future in ways beyond our control.  In other words, the output "
9097 "is not guaranteed by the ABI."
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:1211
9102 msgid ""
9103 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9104 "(etc), L</is-zero>."
9105 msgstr ""
9106
9107 #. type: =head2
9108 #: ../fish/guestfish-actions.pod:1214
9109 msgid "file-architecture"
9110 msgstr ""
9111
9112 #. type: verbatim
9113 #: ../fish/guestfish-actions.pod:1216
9114 #, no-wrap
9115 msgid ""
9116 " file-architecture filename\n"
9117 "\n"
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9122 msgid ""
9123 "This detects the architecture of the binary C<filename>, and returns it if "
9124 "known."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9129 msgid "Currently defined architectures are:"
9130 msgstr ""
9131
9132 #. type: =item
9133 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9134 msgid "\"i386\""
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9139 msgid ""
9140 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9141 "irrespective of the precise processor requirements of the binary."
9142 msgstr ""
9143
9144 #. type: =item
9145 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9146 msgid "\"x86_64\""
9147 msgstr ""
9148
9149 #. type: textblock
9150 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9151 msgid "64 bit x86-64."
9152 msgstr ""
9153
9154 #. type: =item
9155 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9156 msgid "\"sparc\""
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9161 msgid "32 bit SPARC."
9162 msgstr ""
9163
9164 #. type: =item
9165 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9166 msgid "\"sparc64\""
9167 msgstr ""
9168
9169 #. type: textblock
9170 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9171 msgid "64 bit SPARC V9 and above."
9172 msgstr ""
9173
9174 #. type: =item
9175 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9176 msgid "\"ia64\""
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9181 msgid "Intel Itanium."
9182 msgstr ""
9183
9184 #. type: =item
9185 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9186 msgid "\"ppc\""
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9191 msgid "32 bit Power PC."
9192 msgstr ""
9193
9194 #. type: =item
9195 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9196 msgid "\"ppc64\""
9197 msgstr ""
9198
9199 #. type: textblock
9200 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9201 msgid "64 bit Power PC."
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9206 msgid "Libguestfs may return other architecture strings in future."
9207 msgstr ""
9208
9209 #. type: textblock
9210 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9211 msgid "The function works on at least the following types of files:"
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9216 msgid "many types of Un*x and Linux binary"
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9221 msgid "many types of Un*x and Linux shared library"
9222 msgstr ""
9223
9224 #. type: textblock
9225 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9226 msgid "Windows Win32 and Win64 binaries"
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9231 msgid "Windows Win32 and Win64 DLLs"
9232 msgstr ""
9233
9234 #. type: textblock
9235 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9236 msgid "Win32 binaries and DLLs return C<i386>."
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9241 msgid "Win64 binaries and DLLs return C<x86_64>."
9242 msgstr ""
9243
9244 #. type: textblock
9245 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9246 msgid "Linux kernel modules"
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9251 msgid "Linux new-style initrd images"
9252 msgstr ""
9253
9254 #. type: textblock
9255 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9256 msgid "some non-x86 Linux vmlinuz kernels"
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9261 msgid "What it can't do currently:"
9262 msgstr ""
9263
9264 #. type: textblock
9265 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9266 msgid "static libraries (libfoo.a)"
9267 msgstr ""
9268
9269 #. type: textblock
9270 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9271 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9276 msgid "x86 Linux vmlinuz kernels"
9277 msgstr ""
9278
9279 #. type: textblock
9280 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9281 msgid ""
9282 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9283 "compressed code, and are horribly hard to unpack.  If you want to find the "
9284 "architecture of a kernel, use the architecture of the associated initrd or "
9285 "kernel module(s) instead."
9286 msgstr ""
9287
9288 #. type: =head2
9289 #: ../fish/guestfish-actions.pod:1319
9290 msgid "filesize"
9291 msgstr ""
9292
9293 #. type: verbatim
9294 #: ../fish/guestfish-actions.pod:1321
9295 #, no-wrap
9296 msgid ""
9297 " filesize file\n"
9298 "\n"
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9303 msgid "This command returns the size of C<file> in bytes."
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../fish/guestfish-actions.pod:1325
9308 msgid ""
9309 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9310 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9311 msgstr ""
9312
9313 #. type: =head2
9314 #: ../fish/guestfish-actions.pod:1329
9315 msgid "fill"
9316 msgstr ""
9317
9318 #. type: verbatim
9319 #: ../fish/guestfish-actions.pod:1331
9320 #, no-wrap
9321 msgid ""
9322 " fill c len path\n"
9323 "\n"
9324 msgstr ""
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9328 msgid ""
9329 "This command creates a new file called C<path>.  The initial content of the "
9330 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9331 "[0..255]>."
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../fish/guestfish-actions.pod:1337
9336 msgid ""
9337 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9338 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9339 "L</fill-pattern>."
9340 msgstr ""
9341
9342 #. type: =head2
9343 #: ../fish/guestfish-actions.pod:1342
9344 msgid "fill-pattern"
9345 msgstr ""
9346
9347 #. type: verbatim
9348 #: ../fish/guestfish-actions.pod:1344
9349 #, no-wrap
9350 msgid ""
9351 " fill-pattern pattern len path\n"
9352 "\n"
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../fish/guestfish-actions.pod:1346
9357 msgid ""
9358 "This function is like L</fill> except that it creates a new file of length "
9359 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9360 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9361 "bytes."
9362 msgstr ""
9363
9364 #. type: =head2
9365 #: ../fish/guestfish-actions.pod:1351
9366 msgid "find"
9367 msgstr ""
9368
9369 #. type: verbatim
9370 #: ../fish/guestfish-actions.pod:1353
9371 #, no-wrap
9372 msgid ""
9373 " find directory\n"
9374 "\n"
9375 msgstr ""
9376
9377 #. type: textblock
9378 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9379 msgid ""
9380 "This command lists out all files and directories, recursively, starting at "
9381 "C<directory>.  It is essentially equivalent to running the shell command "
9382 "C<find directory -print> but some post-processing happens on the output, "
9383 "described below."
9384 msgstr ""
9385
9386 #. type: textblock
9387 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9388 msgid ""
9389 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9390 "structure was:"
9391 msgstr ""
9392
9393 #. type: verbatim
9394 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9395 #, no-wrap
9396 msgid ""
9397 " /tmp/a\n"
9398 " /tmp/b\n"
9399 " /tmp/c/d\n"
9400 "\n"
9401 msgstr ""
9402
9403 #. type: textblock
9404 #: ../fish/guestfish-actions.pod:1367
9405 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9406 msgstr ""
9407
9408 #. type: verbatim
9409 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9410 #, no-wrap
9411 msgid ""
9412 " a\n"
9413 " b\n"
9414 " c\n"
9415 " c/d\n"
9416 "\n"
9417 msgstr ""
9418
9419 #. type: textblock
9420 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9421 msgid "If C<directory> is not a directory, then this command returns an error."
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9426 msgid "The returned list is sorted."
9427 msgstr ""
9428
9429 #. type: textblock
9430 #: ../fish/guestfish-actions.pod:1380
9431 msgid "See also L</find0>."
9432 msgstr ""
9433
9434 #. type: =head2
9435 #: ../fish/guestfish-actions.pod:1385
9436 msgid "find0"
9437 msgstr ""
9438
9439 #. type: verbatim
9440 #: ../fish/guestfish-actions.pod:1387
9441 #, no-wrap
9442 msgid ""
9443 " find0 directory (files|-)\n"
9444 "\n"
9445 msgstr ""
9446
9447 #. type: textblock
9448 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9449 msgid ""
9450 "This command lists out all files and directories, recursively, starting at "
9451 "C<directory>, placing the resulting list in the external file called "
9452 "C<files>."
9453 msgstr ""
9454
9455 #. type: textblock
9456 #: ../fish/guestfish-actions.pod:1393
9457 msgid ""
9458 "This command works the same way as L</find> with the following exceptions:"
9459 msgstr ""
9460
9461 #. type: textblock
9462 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9463 msgid "The resulting list is written to an external file."
9464 msgstr ""
9465
9466 #. type: textblock
9467 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9468 msgid ""
9469 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9470 "L<find(1)> option I<-print0>."
9471 msgstr ""
9472
9473 #. type: textblock
9474 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9475 msgid "This command is not limited in the number of names that it can return."
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9480 msgid "The result list is not sorted."
9481 msgstr ""
9482
9483 #. type: =head2
9484 #: ../fish/guestfish-actions.pod:1420
9485 msgid "findfs-label"
9486 msgstr ""
9487
9488 #. type: verbatim
9489 #: ../fish/guestfish-actions.pod:1422
9490 #, no-wrap
9491 msgid ""
9492 " findfs-label label\n"
9493 "\n"
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9498 msgid ""
9499 "This command searches the filesystems and returns the one which has the "
9500 "given label.  An error is returned if no such filesystem can be found."
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:1428
9505 msgid "To find the label of a filesystem, use L</vfs-label>."
9506 msgstr ""
9507
9508 #. type: =head2
9509 #: ../fish/guestfish-actions.pod:1430
9510 msgid "findfs-uuid"
9511 msgstr ""
9512
9513 #. type: verbatim
9514 #: ../fish/guestfish-actions.pod:1432
9515 #, no-wrap
9516 msgid ""
9517 " findfs-uuid uuid\n"
9518 "\n"
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9523 msgid ""
9524 "This command searches the filesystems and returns the one which has the "
9525 "given UUID.  An error is returned if no such filesystem can be found."
9526 msgstr ""
9527
9528 #. type: textblock
9529 #: ../fish/guestfish-actions.pod:1438
9530 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9531 msgstr ""
9532
9533 #. type: =head2
9534 #: ../fish/guestfish-actions.pod:1440
9535 msgid "fsck"
9536 msgstr ""
9537
9538 #. type: verbatim
9539 #: ../fish/guestfish-actions.pod:1442
9540 #, no-wrap
9541 msgid ""
9542 " fsck fstype device\n"
9543 "\n"
9544 msgstr ""
9545
9546 #. type: textblock
9547 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9548 msgid ""
9549 "This runs the filesystem checker (fsck) on C<device> which should have "
9550 "filesystem type C<fstype>."
9551 msgstr ""
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9555 msgid ""
9556 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9557 "codes from C<fsck>."
9558 msgstr ""
9559
9560 #. type: textblock
9561 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9562 msgid "Multiple status codes can be summed together."
9563 msgstr ""
9564
9565 #. type: textblock
9566 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9567 msgid ""
9568 "A non-zero return code can mean \"success\", for example if errors have been "
9569 "corrected on the filesystem."
9570 msgstr ""
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9574 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9575 msgstr ""
9576
9577 #. type: textblock
9578 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9579 msgid ""
9580 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9581 msgstr ""
9582
9583 #. type: =head2
9584 #: ../fish/guestfish-actions.pod:1472
9585 msgid "get-append"
9586 msgstr ""
9587
9588 #. type: verbatim
9589 #: ../fish/guestfish-actions.pod:1474
9590 #, no-wrap
9591 msgid ""
9592 " get-append\n"
9593 "\n"
9594 msgstr ""
9595
9596 #. type: textblock
9597 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9598 msgid ""
9599 "Return the additional kernel options which are added to the guest kernel "
9600 "command line."
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9605 msgid "If C<NULL> then no options are added."
9606 msgstr ""
9607
9608 #. type: =head2
9609 #: ../fish/guestfish-actions.pod:1481
9610 msgid "get-attach-method"
9611 msgstr ""
9612
9613 #. type: verbatim
9614 #: ../fish/guestfish-actions.pod:1483
9615 #, no-wrap
9616 msgid ""
9617 " get-attach-method\n"
9618 "\n"
9619 msgstr ""
9620
9621 #. type: textblock
9622 #: ../fish/guestfish-actions.pod:1485
9623 msgid "Return the current attach method.  See L</set-attach-method>."
9624 msgstr ""
9625
9626 #. type: =head2
9627 #: ../fish/guestfish-actions.pod:1487
9628 msgid "get-autosync"
9629 msgstr ""
9630
9631 #. type: verbatim
9632 #: ../fish/guestfish-actions.pod:1489
9633 #, no-wrap
9634 msgid ""
9635 " get-autosync\n"
9636 "\n"
9637 msgstr ""
9638
9639 #. type: textblock
9640 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9641 msgid "Get the autosync flag."
9642 msgstr ""
9643
9644 #. type: =head2
9645 #: ../fish/guestfish-actions.pod:1493
9646 msgid "get-direct"
9647 msgstr ""
9648
9649 #. type: verbatim
9650 #: ../fish/guestfish-actions.pod:1495
9651 #, no-wrap
9652 msgid ""
9653 " get-direct\n"
9654 "\n"
9655 msgstr ""
9656
9657 #. type: textblock
9658 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9659 msgid "Return the direct appliance mode flag."
9660 msgstr ""
9661
9662 #. type: =head2
9663 #: ../fish/guestfish-actions.pod:1499
9664 msgid "get-e2label"
9665 msgstr ""
9666
9667 #. type: verbatim
9668 #: ../fish/guestfish-actions.pod:1501
9669 #, no-wrap
9670 msgid ""
9671 " get-e2label device\n"
9672 "\n"
9673 msgstr ""
9674
9675 #. type: textblock
9676 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9677 msgid ""
9678 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1506
9683 msgid ""
9684 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9685 "instead."
9686 msgstr ""
9687
9688 #. type: =head2
9689 #: ../fish/guestfish-actions.pod:1513
9690 msgid "get-e2uuid"
9691 msgstr ""
9692
9693 #. type: verbatim
9694 #: ../fish/guestfish-actions.pod:1515
9695 #, no-wrap
9696 msgid ""
9697 " get-e2uuid device\n"
9698 "\n"
9699 msgstr ""
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9703 msgid ""
9704 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../fish/guestfish-actions.pod:1520
9709 msgid ""
9710 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9711 "instead."
9712 msgstr ""
9713
9714 #. type: =head2
9715 #: ../fish/guestfish-actions.pod:1527
9716 msgid "get-memsize"
9717 msgstr ""
9718
9719 #. type: verbatim
9720 #: ../fish/guestfish-actions.pod:1529
9721 #, no-wrap
9722 msgid ""
9723 " get-memsize\n"
9724 "\n"
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9729 msgid ""
9730 "This gets the memory size in megabytes allocated to the qemu subprocess."
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:1534
9735 msgid ""
9736 "If L</set-memsize> was not called on this handle, and if "
9737 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9738 "value for memsize."
9739 msgstr ""
9740
9741 #. type: textblock
9742 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9743 #: ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:4570
9744 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9745 #: ../src/guestfs-actions.pod:6921 ../src/guestfs-actions.pod:7047
9746 msgid ""
9747 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:1541
9752 msgid "get-network"
9753 msgstr ""
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:1543
9757 #, no-wrap
9758 msgid ""
9759 " get-network\n"
9760 "\n"
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9765 msgid "This returns the enable network flag."
9766 msgstr ""
9767
9768 #. type: =head2
9769 #: ../fish/guestfish-actions.pod:1547
9770 msgid "get-path"
9771 msgstr ""
9772
9773 #. type: verbatim
9774 #: ../fish/guestfish-actions.pod:1549
9775 #, no-wrap
9776 msgid ""
9777 " get-path\n"
9778 "\n"
9779 msgstr ""
9780
9781 #. type: textblock
9782 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9783 msgid "Return the current search path."
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9788 msgid ""
9789 "This is always non-NULL.  If it wasn't set already, then this will return "
9790 "the default path."
9791 msgstr ""
9792
9793 #. type: =head2
9794 #: ../fish/guestfish-actions.pod:1556
9795 msgid "get-pgroup"
9796 msgstr ""
9797
9798 #. type: verbatim
9799 #: ../fish/guestfish-actions.pod:1558
9800 #, no-wrap
9801 msgid ""
9802 " get-pgroup\n"
9803 "\n"
9804 msgstr ""
9805
9806 #. type: textblock
9807 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9808 msgid "This returns the process group flag."
9809 msgstr ""
9810
9811 #. type: =head2
9812 #: ../fish/guestfish-actions.pod:1562
9813 msgid "get-pid"
9814 msgstr ""
9815
9816 #. type: =head2
9817 #: ../fish/guestfish-actions.pod:1564
9818 msgid "pid"
9819 msgstr ""
9820
9821 #. type: verbatim
9822 #: ../fish/guestfish-actions.pod:1566
9823 #, no-wrap
9824 msgid ""
9825 " get-pid\n"
9826 "\n"
9827 msgstr ""
9828
9829 #. type: textblock
9830 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9831 msgid ""
9832 "Return the process ID of the qemu subprocess.  If there is no qemu "
9833 "subprocess, then this will return an error."
9834 msgstr ""
9835
9836 #. type: textblock
9837 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9838 msgid "This is an internal call used for debugging and testing."
9839 msgstr ""
9840
9841 #. type: =head2
9842 #: ../fish/guestfish-actions.pod:1573
9843 msgid "get-qemu"
9844 msgstr ""
9845
9846 #. type: verbatim
9847 #: ../fish/guestfish-actions.pod:1575
9848 #, no-wrap
9849 msgid ""
9850 " get-qemu\n"
9851 "\n"
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9856 msgid "Return the current qemu binary."
9857 msgstr ""
9858
9859 #. type: textblock
9860 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9861 msgid ""
9862 "This is always non-NULL.  If it wasn't set already, then this will return "
9863 "the default qemu binary name."
9864 msgstr ""
9865
9866 #. type: =head2
9867 #: ../fish/guestfish-actions.pod:1582
9868 msgid "get-recovery-proc"
9869 msgstr ""
9870
9871 #. type: verbatim
9872 #: ../fish/guestfish-actions.pod:1584
9873 #, no-wrap
9874 msgid ""
9875 " get-recovery-proc\n"
9876 "\n"
9877 msgstr ""
9878
9879 #. type: textblock
9880 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9881 msgid "Return the recovery process enabled flag."
9882 msgstr ""
9883
9884 #. type: =head2
9885 #: ../fish/guestfish-actions.pod:1588
9886 msgid "get-selinux"
9887 msgstr ""
9888
9889 #. type: verbatim
9890 #: ../fish/guestfish-actions.pod:1590
9891 #, no-wrap
9892 msgid ""
9893 " get-selinux\n"
9894 "\n"
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:1592
9899 msgid ""
9900 "This returns the current setting of the selinux flag which is passed to the "
9901 "appliance at boot time.  See L</set-selinux>."
9902 msgstr ""
9903
9904 #. type: =head2
9905 #: ../fish/guestfish-actions.pod:1598
9906 msgid "get-smp"
9907 msgstr ""
9908
9909 #. type: verbatim
9910 #: ../fish/guestfish-actions.pod:1600
9911 #, no-wrap
9912 msgid ""
9913 " get-smp\n"
9914 "\n"
9915 msgstr ""
9916
9917 #. type: textblock
9918 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9919 msgid "This returns the number of virtual CPUs assigned to the appliance."
9920 msgstr ""
9921
9922 #. type: =head2
9923 #: ../fish/guestfish-actions.pod:1604
9924 msgid "get-state"
9925 msgstr ""
9926
9927 #. type: verbatim
9928 #: ../fish/guestfish-actions.pod:1606
9929 #, no-wrap
9930 msgid ""
9931 " get-state\n"
9932 "\n"
9933 msgstr ""
9934
9935 #. type: textblock
9936 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9937 msgid ""
9938 "This returns the current state as an opaque integer.  This is only useful "
9939 "for printing debug and internal error messages."
9940 msgstr ""
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2574
9944 #: ../fish/guestfish-actions.pod:2592 ../fish/guestfish-actions.pod:2630
9945 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:2582
9946 #: ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934
9947 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022
9948 msgid "For more information on states, see L<guestfs(3)>."
9949 msgstr ""
9950
9951 #. type: =head2
9952 #: ../fish/guestfish-actions.pod:1613
9953 msgid "get-trace"
9954 msgstr ""
9955
9956 #. type: verbatim
9957 #: ../fish/guestfish-actions.pod:1615
9958 #, no-wrap
9959 msgid ""
9960 " get-trace\n"
9961 "\n"
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9966 msgid "Return the command trace flag."
9967 msgstr ""
9968
9969 #. type: =head2
9970 #: ../fish/guestfish-actions.pod:1619
9971 msgid "get-umask"
9972 msgstr ""
9973
9974 #. type: verbatim
9975 #: ../fish/guestfish-actions.pod:1621
9976 #, no-wrap
9977 msgid ""
9978 " get-umask\n"
9979 "\n"
9980 msgstr ""
9981
9982 #. type: textblock
9983 #: ../fish/guestfish-actions.pod:1623
9984 msgid ""
9985 "Return the current umask.  By default the umask is C<022> unless it has been "
9986 "set by calling L</umask>."
9987 msgstr ""
9988
9989 #. type: =head2
9990 #: ../fish/guestfish-actions.pod:1626
9991 msgid "get-verbose"
9992 msgstr ""
9993
9994 #. type: verbatim
9995 #: ../fish/guestfish-actions.pod:1628
9996 #, no-wrap
9997 msgid ""
9998 " get-verbose\n"
9999 "\n"
10000 msgstr ""
10001
10002 #. type: textblock
10003 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
10004 msgid "This returns the verbose messages flag."
10005 msgstr ""
10006
10007 #. type: =head2
10008 #: ../fish/guestfish-actions.pod:1632
10009 msgid "getcon"
10010 msgstr ""
10011
10012 #. type: verbatim
10013 #: ../fish/guestfish-actions.pod:1634
10014 #, no-wrap
10015 msgid ""
10016 " getcon\n"
10017 "\n"
10018 msgstr ""
10019
10020 #. type: textblock
10021 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
10022 msgid "This gets the SELinux security context of the daemon."
10023 msgstr ""
10024
10025 #. type: textblock
10026 #: ../fish/guestfish-actions.pod:1638
10027 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10028 msgstr ""
10029
10030 #. type: =head2
10031 #: ../fish/guestfish-actions.pod:1641
10032 msgid "getxattr"
10033 msgstr ""
10034
10035 #. type: verbatim
10036 #: ../fish/guestfish-actions.pod:1643
10037 #, no-wrap
10038 msgid ""
10039 " getxattr path name\n"
10040 "\n"
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:1645
10045 msgid ""
10046 "Get a single extended attribute from file C<path> named C<name>.  This call "
10047 "follows symlinks.  If you want to lookup an extended attribute for the "
10048 "symlink itself, use L</lgetxattr>."
10049 msgstr ""
10050
10051 #. type: textblock
10052 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2719
10053 msgid ""
10054 "Normally it is better to get all extended attributes from a file in one go "
10055 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
10056 "buggy and do not provide a way to list out attributes.  For these "
10057 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
10058 "attributes you want in advance and call this function."
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2726
10063 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4155
10064 msgid ""
10065 "Extended attribute values are blobs of binary data.  If there is no extended "
10066 "attribute named C<name>, this returns an error."
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:1659
10071 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10072 msgstr ""
10073
10074 #. type: =head2
10075 #: ../fish/guestfish-actions.pod:1661
10076 msgid "getxattrs"
10077 msgstr ""
10078
10079 #. type: verbatim
10080 #: ../fish/guestfish-actions.pod:1663
10081 #, no-wrap
10082 msgid ""
10083 " getxattrs path\n"
10084 "\n"
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10089 msgid ""
10090 "This call lists the extended attributes of the file or directory C<path>."
10091 msgstr ""
10092
10093 #. type: textblock
10094 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10095 msgid ""
10096 "At the system call level, this is a combination of the L<listxattr(2)> and "
10097 "L<getxattr(2)> calls."
10098 msgstr ""
10099
10100 #. type: textblock
10101 #: ../fish/guestfish-actions.pod:1671
10102 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10103 msgstr ""
10104
10105 #. type: =head2
10106 #: ../fish/guestfish-actions.pod:1673
10107 msgid "glob-expand"
10108 msgstr ""
10109
10110 #. type: verbatim
10111 #: ../fish/guestfish-actions.pod:1675
10112 #, no-wrap
10113 msgid ""
10114 " glob-expand pattern\n"
10115 "\n"
10116 msgstr ""
10117
10118 #. type: textblock
10119 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10120 msgid ""
10121 "This command searches for all the pathnames matching C<pattern> according to "
10122 "the wildcard expansion rules used by the shell."
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10127 msgid ""
10128 "If no paths match, then this returns an empty list (note: not an error)."
10129 msgstr ""
10130
10131 #. type: textblock
10132 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10133 msgid ""
10134 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10135 "GLOB_BRACE>.  See that manual page for more details."
10136 msgstr ""
10137
10138 #. type: =head2
10139 #: ../fish/guestfish-actions.pod:1688
10140 msgid "grep"
10141 msgstr ""
10142
10143 #. type: verbatim
10144 #: ../fish/guestfish-actions.pod:1690
10145 #, no-wrap
10146 msgid ""
10147 " grep regex path\n"
10148 "\n"
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10153 msgid "This calls the external C<grep> program and returns the matching lines."
10154 msgstr ""
10155
10156 #. type: =head2
10157 #: ../fish/guestfish-actions.pod:1698
10158 msgid "grepi"
10159 msgstr ""
10160
10161 #. type: verbatim
10162 #: ../fish/guestfish-actions.pod:1700
10163 #, no-wrap
10164 msgid ""
10165 " grepi regex path\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10171 msgid ""
10172 "This calls the external C<grep -i> program and returns the matching lines."
10173 msgstr ""
10174
10175 #. type: =head2
10176 #: ../fish/guestfish-actions.pod:1708
10177 msgid "grub-install"
10178 msgstr ""
10179
10180 #. type: verbatim
10181 #: ../fish/guestfish-actions.pod:1710
10182 #, no-wrap
10183 msgid ""
10184 " grub-install root device\n"
10185 "\n"
10186 msgstr ""
10187
10188 #. type: textblock
10189 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10190 msgid ""
10191 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10192 "with the root directory being C<root>."
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10197 msgid ""
10198 "There is currently no way in the API to install grub2, which is used by most "
10199 "modern Linux guests.  It is possible to run the grub2 command from the "
10200 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10205 msgid ""
10206 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10207 "compatible with itself, so this only works in rather narrow circumstances.  "
10208 "Careful testing with each guest version is advisable."
10209 msgstr ""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10213 msgid ""
10214 "If grub-install reports the error \"No suitable drive was found in the "
10215 "generated device map.\" it may be that you need to create a C</boot/grub/"
10216 "device.map> file first that contains the mapping between grub device names "
10217 "and Linux device names.  It is usually sufficient to create a file "
10218 "containing:"
10219 msgstr ""
10220
10221 #. type: verbatim
10222 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10223 #, no-wrap
10224 msgid ""
10225 " (hd0) /dev/vda\n"
10226 "\n"
10227 msgstr ""
10228
10229 #. type: textblock
10230 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10231 msgid "replacing C</dev/vda> with the name of the installation device."
10232 msgstr ""
10233
10234 #. type: =head2
10235 #: ../fish/guestfish-actions.pod:1748
10236 msgid "head"
10237 msgstr ""
10238
10239 #. type: verbatim
10240 #: ../fish/guestfish-actions.pod:1750
10241 #, no-wrap
10242 msgid ""
10243 " head path\n"
10244 "\n"
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10249 msgid ""
10250 "This command returns up to the first 10 lines of a file as a list of strings."
10251 msgstr ""
10252
10253 #. type: =head2
10254 #: ../fish/guestfish-actions.pod:1758
10255 msgid "head-n"
10256 msgstr ""
10257
10258 #. type: verbatim
10259 #: ../fish/guestfish-actions.pod:1760
10260 #, no-wrap
10261 msgid ""
10262 " head-n nrlines path\n"
10263 "\n"
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10268 msgid ""
10269 "If the parameter C<nrlines> is a positive number, this returns the first "
10270 "C<nrlines> lines of the file C<path>."
10271 msgstr ""
10272
10273 #. type: textblock
10274 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10275 msgid ""
10276 "If the parameter C<nrlines> is a negative number, this returns lines from "
10277 "the file C<path>, excluding the last C<nrlines> lines."
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4951
10282 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7626
10283 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10284 msgstr ""
10285
10286 #. type: =head2
10287 #: ../fish/guestfish-actions.pod:1773
10288 msgid "hexdump"
10289 msgstr ""
10290
10291 #. type: verbatim
10292 #: ../fish/guestfish-actions.pod:1775
10293 #, no-wrap
10294 msgid ""
10295 " hexdump path\n"
10296 "\n"
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10301 msgid ""
10302 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10303 "readable, canonical hex dump of the file."
10304 msgstr ""
10305
10306 #. type: =head2
10307 #: ../fish/guestfish-actions.pod:1783
10308 msgid "initrd-cat"
10309 msgstr ""
10310
10311 #. type: verbatim
10312 #: ../fish/guestfish-actions.pod:1785
10313 #, no-wrap
10314 msgid ""
10315 " initrd-cat initrdpath filename\n"
10316 "\n"
10317 msgstr ""
10318
10319 #. type: textblock
10320 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10321 msgid ""
10322 "This command unpacks the file C<filename> from the initrd file called "
10323 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10324 "character."
10325 msgstr ""
10326
10327 #. type: textblock
10328 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10329 msgid ""
10330 "For example, in guestfish you could use the following command to examine the "
10331 "boot script (usually called C</init>)  contained in a Linux initrd or "
10332 "initramfs image:"
10333 msgstr ""
10334
10335 #. type: verbatim
10336 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10337 #, no-wrap
10338 msgid ""
10339 " initrd-cat /boot/initrd-<version>.img init\n"
10340 "\n"
10341 msgstr ""
10342
10343 #. type: textblock
10344 #: ../fish/guestfish-actions.pod:1797
10345 msgid "See also L</initrd-list>."
10346 msgstr ""
10347
10348 #. type: =head2
10349 #: ../fish/guestfish-actions.pod:1802
10350 msgid "initrd-list"
10351 msgstr ""
10352
10353 #. type: verbatim
10354 #: ../fish/guestfish-actions.pod:1804
10355 #, no-wrap
10356 msgid ""
10357 " initrd-list path\n"
10358 "\n"
10359 msgstr ""
10360
10361 #. type: textblock
10362 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10363 msgid "This command lists out files contained in an initrd."
10364 msgstr ""
10365
10366 #. type: textblock
10367 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10368 msgid ""
10369 "The files are listed without any initial C</> character.  The files are "
10370 "listed in the order they appear (not necessarily alphabetical).  Directory "
10371 "names are listed as separate items."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10376 msgid ""
10377 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10378 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10379 "files)."
10380 msgstr ""
10381
10382 #. type: =head2
10383 #: ../fish/guestfish-actions.pod:1816
10384 msgid "inotify-add-watch"
10385 msgstr ""
10386
10387 #. type: verbatim
10388 #: ../fish/guestfish-actions.pod:1818
10389 #, no-wrap
10390 msgid ""
10391 " inotify-add-watch path mask\n"
10392 "\n"
10393 msgstr ""
10394
10395 #. type: textblock
10396 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10397 msgid "Watch C<path> for the events listed in C<mask>."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10402 msgid ""
10403 "Note that if C<path> is a directory then events within that directory are "
10404 "watched, but this does I<not> happen recursively (in subdirectories)."
10405 msgstr ""
10406
10407 #. type: textblock
10408 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10409 msgid ""
10410 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10411 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10412 msgstr ""
10413
10414 #. type: =head2
10415 #: ../fish/guestfish-actions.pod:1830
10416 msgid "inotify-close"
10417 msgstr ""
10418
10419 #. type: verbatim
10420 #: ../fish/guestfish-actions.pod:1832
10421 #, no-wrap
10422 msgid ""
10423 " inotify-close\n"
10424 "\n"
10425 msgstr ""
10426
10427 #. type: textblock
10428 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10429 msgid ""
10430 "This closes the inotify handle which was previously opened by inotify_init.  "
10431 "It removes all watches, throws away any pending events, and deallocates all "
10432 "resources."
10433 msgstr ""
10434
10435 #. type: =head2
10436 #: ../fish/guestfish-actions.pod:1838
10437 msgid "inotify-files"
10438 msgstr ""
10439
10440 #. type: verbatim
10441 #: ../fish/guestfish-actions.pod:1840
10442 #, no-wrap
10443 msgid ""
10444 " inotify-files\n"
10445 "\n"
10446 msgstr ""
10447
10448 #. type: textblock
10449 #: ../fish/guestfish-actions.pod:1842
10450 msgid ""
10451 "This function is a helpful wrapper around L</inotify-read> which just "
10452 "returns a list of pathnames of objects that were touched.  The returned "
10453 "pathnames are sorted and deduplicated."
10454 msgstr ""
10455
10456 #. type: =head2
10457 #: ../fish/guestfish-actions.pod:1846
10458 msgid "inotify-init"
10459 msgstr ""
10460
10461 #. type: verbatim
10462 #: ../fish/guestfish-actions.pod:1848
10463 #, no-wrap
10464 msgid ""
10465 " inotify-init maxevents\n"
10466 "\n"
10467 msgstr ""
10468
10469 #. type: textblock
10470 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10471 msgid ""
10472 "This command creates a new inotify handle.  The inotify subsystem can be "
10473 "used to notify events which happen to objects in the guest filesystem."
10474 msgstr ""
10475
10476 #. type: textblock
10477 #: ../fish/guestfish-actions.pod:1854
10478 msgid ""
10479 "C<maxevents> is the maximum number of events which will be queued up between "
10480 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10481 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10482 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10483 "but records the fact that it threw them away by setting a flag "
10484 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10485 msgstr ""
10486
10487 #. type: textblock
10488 #: ../fish/guestfish-actions.pod:1864
10489 msgid ""
10490 "Before any events are generated, you have to add some watches to the "
10491 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10492 "L</inotify-watch-all>."
10493 msgstr ""
10494
10495 #. type: textblock
10496 #: ../fish/guestfish-actions.pod:1870
10497 msgid ""
10498 "Queued up events should be read periodically by calling L</inotify-read> (or "
10499 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10500 "If you don't read the events out often enough then you risk the internal "
10501 "queue overflowing."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../fish/guestfish-actions.pod:1877
10506 msgid ""
10507 "The handle should be closed after use by calling L</inotify-close>.  This "
10508 "also removes any watches automatically."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10513 msgid ""
10514 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10515 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10516 "that there is one global inotify handle per libguestfs instance."
10517 msgstr ""
10518
10519 #. type: =head2
10520 #: ../fish/guestfish-actions.pod:1886
10521 msgid "inotify-read"
10522 msgstr ""
10523
10524 #. type: verbatim
10525 #: ../fish/guestfish-actions.pod:1888
10526 #, no-wrap
10527 msgid ""
10528 " inotify-read\n"
10529 "\n"
10530 msgstr ""
10531
10532 #. type: textblock
10533 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10534 msgid ""
10535 "Return the complete queue of events that have happened since the previous "
10536 "read call."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10541 msgid "If no events have happened, this returns an empty list."
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10546 msgid ""
10547 "I<Note>: In order to make sure that all events have been read, you must call "
10548 "this function repeatedly until it returns an empty list.  The reason is that "
10549 "the call will read events up to the maximum appliance-to-host message size "
10550 "and leave remaining events in the queue."
10551 msgstr ""
10552
10553 #. type: =head2
10554 #: ../fish/guestfish-actions.pod:1901
10555 msgid "inotify-rm-watch"
10556 msgstr ""
10557
10558 #. type: verbatim
10559 #: ../fish/guestfish-actions.pod:1903
10560 #, no-wrap
10561 msgid ""
10562 " inotify-rm-watch wd\n"
10563 "\n"
10564 msgstr ""
10565
10566 #. type: textblock
10567 #: ../fish/guestfish-actions.pod:1905
10568 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10569 msgstr ""
10570
10571 #. type: =head2
10572 #: ../fish/guestfish-actions.pod:1908
10573 msgid "inspect-get-arch"
10574 msgstr ""
10575
10576 #. type: verbatim
10577 #: ../fish/guestfish-actions.pod:1910
10578 #, no-wrap
10579 msgid ""
10580 " inspect-get-arch root\n"
10581 "\n"
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:1912
10586 msgid ""
10587 "This returns the architecture of the inspected operating system.  The "
10588 "possible return values are listed under L</file-architecture>."
10589 msgstr ""
10590
10591 #. type: textblock
10592 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10593 msgid ""
10594 "If the architecture could not be determined, then the string C<unknown> is "
10595 "returned."
10596 msgstr ""
10597
10598 #. type: textblock
10599 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10600 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10601 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10602 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10603 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2366
10604 #: ../fish/guestfish-actions.pod:2379 ../fish/guestfish-actions.pod:2392
10605 #: ../fish/guestfish-actions.pod:2402 ../fish/guestfish-actions.pod:2412
10606 #: ../fish/guestfish-actions.pod:2424 ../fish/guestfish-actions.pod:2520
10607 #: ../fish/guestfish-actions.pod:2554 ../src/guestfs-actions.pod:3048
10608 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10609 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10610 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10611 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10612 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:3658
10613 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3695
10614 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
10615 #: ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:3872
10616 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10617 msgstr ""
10618
10619 #. type: =head2
10620 #: ../fish/guestfish-actions.pod:1921
10621 msgid "inspect-get-distro"
10622 msgstr ""
10623
10624 #. type: verbatim
10625 #: ../fish/guestfish-actions.pod:1923
10626 #, no-wrap
10627 msgid ""
10628 " inspect-get-distro root\n"
10629 "\n"
10630 msgstr ""
10631
10632 #. type: textblock
10633 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10634 msgid ""
10635 "This returns the distro (distribution) of the inspected operating system."
10636 msgstr ""
10637
10638 #. type: textblock
10639 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10640 msgid "Currently defined distros are:"
10641 msgstr ""
10642
10643 #. type: =item
10644 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10645 msgid "\"archlinux\""
10646 msgstr ""
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10650 msgid "Arch Linux."
10651 msgstr ""
10652
10653 #. type: =item
10654 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10655 msgid "\"centos\""
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10660 msgid "CentOS."
10661 msgstr ""
10662
10663 #. type: =item
10664 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10665 msgid "\"debian\""
10666 msgstr ""
10667
10668 #. type: textblock
10669 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10670 msgid "Debian."
10671 msgstr ""
10672
10673 #. type: =item
10674 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10675 msgid "\"fedora\""
10676 msgstr ""
10677
10678 #. type: textblock
10679 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10680 msgid "Fedora."
10681 msgstr ""
10682
10683 #. type: =item
10684 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10685 msgid "\"gentoo\""
10686 msgstr ""
10687
10688 #. type: textblock
10689 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10690 msgid "Gentoo."
10691 msgstr ""
10692
10693 #. type: =item
10694 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10695 msgid "\"linuxmint\""
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10700 msgid "Linux Mint."
10701 msgstr ""
10702
10703 #. type: =item
10704 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10705 msgid "\"mageia\""
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10710 msgid "Mageia."
10711 msgstr ""
10712
10713 #. type: =item
10714 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10715 msgid "\"mandriva\""
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10720 msgid "Mandriva."
10721 msgstr ""
10722
10723 #. type: =item
10724 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10725 msgid "\"meego\""
10726 msgstr ""
10727
10728 #. type: textblock
10729 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10730 msgid "MeeGo."
10731 msgstr ""
10732
10733 #. type: =item
10734 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10735 msgid "\"opensuse\""
10736 msgstr ""
10737
10738 #. type: textblock
10739 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10740 msgid "OpenSUSE."
10741 msgstr ""
10742
10743 #. type: =item
10744 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10745 msgid "\"pardus\""
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10750 msgid "Pardus."
10751 msgstr ""
10752
10753 #. type: =item
10754 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10755 msgid "\"redhat-based\""
10756 msgstr ""
10757
10758 #. type: textblock
10759 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10760 msgid "Some Red Hat-derived distro."
10761 msgstr ""
10762
10763 #. type: =item
10764 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10765 msgid "\"rhel\""
10766 msgstr ""
10767
10768 #. type: textblock
10769 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10770 msgid "Red Hat Enterprise Linux."
10771 msgstr ""
10772
10773 #. type: =item
10774 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10775 msgid "\"scientificlinux\""
10776 msgstr ""
10777
10778 #. type: textblock
10779 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10780 msgid "Scientific Linux."
10781 msgstr ""
10782
10783 #. type: =item
10784 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10785 msgid "\"slackware\""
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10790 msgid "Slackware."
10791 msgstr ""
10792
10793 #. type: =item
10794 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10795 msgid "\"ttylinux\""
10796 msgstr ""
10797
10798 #. type: textblock
10799 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10800 msgid "ttylinux."
10801 msgstr ""
10802
10803 #. type: =item
10804 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10805 msgid "\"ubuntu\""
10806 msgstr ""
10807
10808 #. type: textblock
10809 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10810 msgid "Ubuntu."
10811 msgstr ""
10812
10813 #. type: =item
10814 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10815 #: ../fish/guestfish-actions.pod:2357 ../src/guestfs-actions.pod:3136
10816 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3629
10817 msgid "\"unknown\""
10818 msgstr ""
10819
10820 #. type: textblock
10821 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10822 msgid "The distro could not be determined."
10823 msgstr ""
10824
10825 #. type: =item
10826 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10827 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10828 msgid "\"windows\""
10829 msgstr ""
10830
10831 #. type: textblock
10832 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10833 msgid ""
10834 "Windows does not have distributions.  This string is returned if the OS type "
10835 "is Windows."
10836 msgstr ""
10837
10838 #. type: textblock
10839 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10840 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3147
10841 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3635
10842 msgid ""
10843 "Future versions of libguestfs may return other strings here.  The caller "
10844 "should be prepared to handle any string."
10845 msgstr ""
10846
10847 #. type: =head2
10848 #: ../fish/guestfish-actions.pod:2016
10849 msgid "inspect-get-drive-mappings"
10850 msgstr ""
10851
10852 #. type: verbatim
10853 #: ../fish/guestfish-actions.pod:2018
10854 #, no-wrap
10855 msgid ""
10856 " inspect-get-drive-mappings root\n"
10857 "\n"
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10862 msgid ""
10863 "This call is useful for Windows which uses a primitive system of assigning "
10864 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10865 "Windows Registry to find out how disks/partitions are mapped to drive "
10866 "letters, and returns a hash table as in the example below:"
10867 msgstr ""
10868
10869 #. type: verbatim
10870 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10871 #, no-wrap
10872 msgid ""
10873 " C      =>     /dev/vda2\n"
10874 " E      =>     /dev/vdb1\n"
10875 " F      =>     /dev/vdc1\n"
10876 "\n"
10877 msgstr ""
10878
10879 #. type: textblock
10880 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10881 msgid ""
10882 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10883 "and just contains the drive letter, without the customary colon separator "
10884 "character."
10885 msgstr ""
10886
10887 #. type: textblock
10888 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10889 msgid ""
10890 "In future we may support other operating systems that also used drive "
10891 "letters, but the keys for those might not be case insensitive and might be "
10892 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10893 "C<h1> etc."
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10898 msgid ""
10899 "For Windows guests, currently only hard drive mappings are returned.  "
10900 "Removable disks (eg. DVD-ROMs) are ignored."
10901 msgstr ""
10902
10903 #. type: textblock
10904 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10905 msgid ""
10906 "For guests that do not use drive mappings, or if the drive mappings could "
10907 "not be determined, this returns an empty hash table."
10908 msgstr ""
10909
10910 #. type: textblock
10911 #: ../fish/guestfish-actions.pod:2045
10912 msgid ""
10913 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10914 "get-mountpoints>, L</inspect-get-filesystems>."
10915 msgstr ""
10916
10917 #. type: =head2
10918 #: ../fish/guestfish-actions.pod:2049
10919 msgid "inspect-get-filesystems"
10920 msgstr ""
10921
10922 #. type: verbatim
10923 #: ../fish/guestfish-actions.pod:2051
10924 #, no-wrap
10925 msgid ""
10926 " inspect-get-filesystems root\n"
10927 "\n"
10928 msgstr ""
10929
10930 #. type: textblock
10931 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10932 msgid ""
10933 "This returns a list of all the filesystems that we think are associated with "
10934 "this operating system.  This includes the root filesystem, other ordinary "
10935 "filesystems, and non-mounted devices like swap partitions."
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10940 msgid ""
10941 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10942 "to be shared between operating systems."
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../fish/guestfish-actions.pod:2061
10947 msgid ""
10948 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10949 "get-mountpoints>."
10950 msgstr ""
10951
10952 #. type: =head2
10953 #: ../fish/guestfish-actions.pod:2064
10954 msgid "inspect-get-format"
10955 msgstr ""
10956
10957 #. type: verbatim
10958 #: ../fish/guestfish-actions.pod:2066
10959 #, no-wrap
10960 msgid ""
10961 " inspect-get-format root\n"
10962 "\n"
10963 msgstr ""
10964
10965 #. type: textblock
10966 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10967 msgid ""
10968 "This returns the format of the inspected operating system.  You can use it "
10969 "to detect install images, live CDs and similar."
10970 msgstr ""
10971
10972 #. type: textblock
10973 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10974 msgid "Currently defined formats are:"
10975 msgstr ""
10976
10977 #. type: =item
10978 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10979 msgid "\"installed\""
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10984 msgid "This is an installed operating system."
10985 msgstr ""
10986
10987 #. type: =item
10988 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10989 msgid "\"installer\""
10990 msgstr ""
10991
10992 #. type: textblock
10993 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10994 msgid ""
10995 "The disk image being inspected is not an installed operating system, but a "
10996 "I<bootable> install disk, live CD, or similar."
10997 msgstr ""
10998
10999 #. type: textblock
11000 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
11001 msgid "The format of this disk image is not known."
11002 msgstr ""
11003
11004 #. type: =head2
11005 #: ../fish/guestfish-actions.pod:2095
11006 msgid "inspect-get-hostname"
11007 msgstr ""
11008
11009 #. type: verbatim
11010 #: ../fish/guestfish-actions.pod:2097
11011 #, no-wrap
11012 msgid ""
11013 " inspect-get-hostname root\n"
11014 "\n"
11015 msgstr ""
11016
11017 #. type: textblock
11018 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
11019 msgid ""
11020 "This function returns the hostname of the operating system as found by "
11021 "inspection of the guest's configuration files."
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
11026 msgid ""
11027 "If the hostname could not be determined, then the string C<unknown> is "
11028 "returned."
11029 msgstr ""
11030
11031 #. type: =head2
11032 #: ../fish/guestfish-actions.pod:2107
11033 msgid "inspect-get-icon"
11034 msgstr ""
11035
11036 #. type: verbatim
11037 #: ../fish/guestfish-actions.pod:2109
11038 #, no-wrap
11039 msgid ""
11040 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11041 "\n"
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
11046 msgid ""
11047 "This function returns an icon corresponding to the inspected operating "
11048 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
11049 "to PNG if necessary)."
11050 msgstr ""
11051
11052 #. type: textblock
11053 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
11054 msgid ""
11055 "If it was not possible to get an icon this function returns a zero-length "
11056 "(non-NULL) buffer.  I<Callers must check for this case>."
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
11061 msgid ""
11062 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11063 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11064 "this file will be returned.  You can disable favicons by passing the "
11065 "optional C<favicon> boolean as false (default is true)."
11066 msgstr ""
11067
11068 #. type: textblock
11069 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
11070 msgid ""
11071 "If finding the favicon fails, then we look in other places in the guest for "
11072 "a suitable icon."
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11077 msgid ""
11078 "If the optional C<highquality> boolean is true then only high quality icons "
11079 "are returned, which means only icons of high resolution with an alpha "
11080 "channel.  The default (false) is to return any icon we can, even if it is of "
11081 "substandard quality."
11082 msgstr ""
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11086 msgid ""
11087 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11088 "before you call this, since it needs to read information from the guest "
11089 "filesystem during the call."
11090 msgstr ""
11091
11092 #. type: textblock
11093 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11094 msgid ""
11095 "B<Security:> The icon data comes from the untrusted guest, and should be "
11096 "treated with caution.  PNG files have been known to contain exploits.  "
11097 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11098 "trying to process or display the icon."
11099 msgstr ""
11100
11101 #. type: textblock
11102 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11103 msgid ""
11104 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11105 "tries to return the largest, highest quality icon available.  The "
11106 "application must scale the icon to the required size."
11107 msgstr ""
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11111 msgid ""
11112 "Extracting icons from Windows guests requires the external C<wrestool> "
11113 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11114 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11115 "installed separately."
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11120 msgid ""
11121 "Operating system icons are usually trademarks.  Seek legal advice before "
11122 "using trademarks in applications."
11123 msgstr ""
11124
11125 #. type: =head2
11126 #: ../fish/guestfish-actions.pod:2173
11127 msgid "inspect-get-major-version"
11128 msgstr ""
11129
11130 #. type: verbatim
11131 #: ../fish/guestfish-actions.pod:2175
11132 #, no-wrap
11133 msgid ""
11134 " inspect-get-major-version root\n"
11135 "\n"
11136 msgstr ""
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11140 msgid ""
11141 "This returns the major version number of the inspected operating system."
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11146 msgid ""
11147 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11148 "popular public names used by the operating system.  Notably the operating "
11149 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11150 "1).  You can find out the real versions corresponding to releases of Windows "
11151 "by consulting Wikipedia or MSDN."
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11156 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11157 msgid "If the version could not be determined, then C<0> is returned."
11158 msgstr ""
11159
11160 #. type: =head2
11161 #: ../fish/guestfish-actions.pod:2191
11162 msgid "inspect-get-minor-version"
11163 msgstr ""
11164
11165 #. type: verbatim
11166 #: ../fish/guestfish-actions.pod:2193
11167 #, no-wrap
11168 msgid ""
11169 " inspect-get-minor-version root\n"
11170 "\n"
11171 msgstr ""
11172
11173 #. type: textblock
11174 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11175 msgid ""
11176 "This returns the minor version number of the inspected operating system."
11177 msgstr ""
11178
11179 #. type: textblock
11180 #: ../fish/guestfish-actions.pod:2200
11181 msgid ""
11182 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11183 "get-major-version>."
11184 msgstr ""
11185
11186 #. type: =head2
11187 #: ../fish/guestfish-actions.pod:2203
11188 msgid "inspect-get-mountpoints"
11189 msgstr ""
11190
11191 #. type: verbatim
11192 #: ../fish/guestfish-actions.pod:2205
11193 #, no-wrap
11194 msgid ""
11195 " inspect-get-mountpoints root\n"
11196 "\n"
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11201 msgid ""
11202 "This returns a hash of where we think the filesystems associated with this "
11203 "operating system should be mounted.  Callers should note that this is at "
11204 "best an educated guess made by reading configuration files such as C</etc/"
11205 "fstab>.  I<In particular note> that this may return filesystems which are "
11206 "non-existent or not mountable and callers should be prepared to handle or "
11207 "ignore failures if they try to mount them."
11208 msgstr ""
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11212 msgid ""
11213 "Each element in the returned hashtable has a key which is the path of the "
11214 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11215 "mounted there (eg. C</dev/sda1>)."
11216 msgstr ""
11217
11218 #. type: textblock
11219 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11220 msgid ""
11221 "Non-mounted devices such as swap devices are I<not> returned in this list."
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:2224
11226 msgid ""
11227 "For operating systems like Windows which still use drive letters, this call "
11228 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11229 "information about the mapping of drive letters to partitions, see L</inspect-"
11230 "get-drive-mappings>."
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2230
11235 msgid ""
11236 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11237 "get-filesystems>."
11238 msgstr ""
11239
11240 #. type: =head2
11241 #: ../fish/guestfish-actions.pod:2233
11242 msgid "inspect-get-package-format"
11243 msgstr ""
11244
11245 #. type: verbatim
11246 #: ../fish/guestfish-actions.pod:2235
11247 #, no-wrap
11248 msgid ""
11249 " inspect-get-package-format root\n"
11250 "\n"
11251 msgstr ""
11252
11253 #. type: textblock
11254 #: ../fish/guestfish-actions.pod:2237
11255 msgid ""
11256 "This function and L</inspect-get-package-management> return the package "
11257 "format and package management tool used by the inspected operating system.  "
11258 "For example for Fedora these functions would return C<rpm> (package format) "
11259 "and C<yum> (package management)."
11260 msgstr ""
11261
11262 #. type: textblock
11263 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11264 msgid ""
11265 "This returns the string C<unknown> if we could not determine the package "
11266 "format I<or> if the operating system does not have a real packaging system "
11267 "(eg. Windows)."
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11272 msgid ""
11273 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11274 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11275 msgstr ""
11276
11277 #. type: =head2
11278 #: ../fish/guestfish-actions.pod:2253
11279 msgid "inspect-get-package-management"
11280 msgstr ""
11281
11282 #. type: verbatim
11283 #: ../fish/guestfish-actions.pod:2255
11284 #, no-wrap
11285 msgid ""
11286 " inspect-get-package-management root\n"
11287 "\n"
11288 msgstr ""
11289
11290 #. type: textblock
11291 #: ../fish/guestfish-actions.pod:2257
11292 msgid ""
11293 "L</inspect-get-package-format> and this function return the package format "
11294 "and package management tool used by the inspected operating system.  For "
11295 "example for Fedora these functions would return C<rpm> (package format) and "
11296 "C<yum> (package management)."
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11301 msgid ""
11302 "This returns the string C<unknown> if we could not determine the package "
11303 "management tool I<or> if the operating system does not have a real packaging "
11304 "system (eg. Windows)."
11305 msgstr ""
11306
11307 #. type: textblock
11308 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11309 msgid ""
11310 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11311 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11312 "versions of libguestfs may return other strings."
11313 msgstr ""
11314
11315 #. type: =head2
11316 #: ../fish/guestfish-actions.pod:2274
11317 msgid "inspect-get-product-name"
11318 msgstr ""
11319
11320 #. type: verbatim
11321 #: ../fish/guestfish-actions.pod:2276
11322 #, no-wrap
11323 msgid ""
11324 " inspect-get-product-name root\n"
11325 "\n"
11326 msgstr ""
11327
11328 #. type: textblock
11329 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11330 msgid ""
11331 "This returns the product name of the inspected operating system.  The "
11332 "product name is generally some freeform string which can be displayed to the "
11333 "user, but should not be parsed by programs."
11334 msgstr ""
11335
11336 #. type: textblock
11337 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11338 msgid ""
11339 "If the product name could not be determined, then the string C<unknown> is "
11340 "returned."
11341 msgstr ""
11342
11343 #. type: =head2
11344 #: ../fish/guestfish-actions.pod:2288
11345 msgid "inspect-get-product-variant"
11346 msgstr ""
11347
11348 #. type: verbatim
11349 #: ../fish/guestfish-actions.pod:2290
11350 #, no-wrap
11351 msgid ""
11352 " inspect-get-product-variant root\n"
11353 "\n"
11354 msgstr ""
11355
11356 #. type: textblock
11357 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11358 msgid "This returns the product variant of the inspected operating system."
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11363 msgid ""
11364 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11365 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11366 "is usually a string such as C<Client> or C<Server> (other values are "
11367 "possible).  This can be used to distinguish consumer and enterprise versions "
11368 "of Windows that have the same version number (for example, Windows 7 and "
11369 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11370 "the latter is C<Server>)."
11371 msgstr ""
11372
11373 #. type: textblock
11374 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11375 msgid ""
11376 "For enterprise Linux guests, in future we intend this to return the product "
11377 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11378 "implemented at present."
11379 msgstr ""
11380
11381 #. type: textblock
11382 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11383 msgid ""
11384 "If the product variant could not be determined, then the string C<unknown> "
11385 "is returned."
11386 msgstr ""
11387
11388 #. type: textblock
11389 #: ../fish/guestfish-actions.pod:2311
11390 msgid ""
11391 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11392 "get-product-name>, L</inspect-get-major-version>."
11393 msgstr ""
11394
11395 #. type: =head2
11396 #: ../fish/guestfish-actions.pod:2315
11397 msgid "inspect-get-roots"
11398 msgstr ""
11399
11400 #. type: verbatim
11401 #: ../fish/guestfish-actions.pod:2317
11402 #, no-wrap
11403 msgid ""
11404 " inspect-get-roots\n"
11405 "\n"
11406 msgstr ""
11407
11408 #. type: textblock
11409 #: ../fish/guestfish-actions.pod:2319
11410 msgid ""
11411 "This function is a convenient way to get the list of root devices, as "
11412 "returned from a previous call to L</inspect-os>, but without redoing the "
11413 "whole inspection process."
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:2323
11418 msgid ""
11419 "This returns an empty list if either no root devices were found or the "
11420 "caller has not called L</inspect-os>."
11421 msgstr ""
11422
11423 #. type: =head2
11424 #: ../fish/guestfish-actions.pod:2328
11425 msgid "inspect-get-type"
11426 msgstr ""
11427
11428 #. type: verbatim
11429 #: ../fish/guestfish-actions.pod:2330
11430 #, no-wrap
11431 msgid ""
11432 " inspect-get-type root\n"
11433 "\n"
11434 msgstr ""
11435
11436 #. type: textblock
11437 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11438 msgid ""
11439 "This returns the type of the inspected operating system.  Currently defined "
11440 "types are:"
11441 msgstr ""
11442
11443 #. type: =item
11444 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11445 msgid "\"linux\""
11446 msgstr ""
11447
11448 #. type: textblock
11449 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11450 msgid "Any Linux-based operating system."
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11455 msgid "Any Microsoft Windows operating system."
11456 msgstr ""
11457
11458 #. type: =item
11459 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11460 msgid "\"freebsd\""
11461 msgstr ""
11462
11463 #. type: textblock
11464 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11465 msgid "FreeBSD."
11466 msgstr ""
11467
11468 #. type: =item
11469 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11470 msgid "\"netbsd\""
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11475 msgid "NetBSD."
11476 msgstr ""
11477
11478 #. type: =item
11479 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3625
11480 msgid "\"hurd\""
11481 msgstr ""
11482
11483 #. type: textblock
11484 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11485 msgid "GNU/Hurd."
11486 msgstr ""
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3631
11490 msgid "The operating system type could not be determined."
11491 msgstr ""
11492
11493 #. type: =head2
11494 #: ../fish/guestfish-actions.pod:2368
11495 msgid "inspect-get-windows-current-control-set"
11496 msgstr ""
11497
11498 #. type: verbatim
11499 #: ../fish/guestfish-actions.pod:2370
11500 #, no-wrap
11501 msgid ""
11502 " inspect-get-windows-current-control-set root\n"
11503 "\n"
11504 msgstr ""
11505
11506 #. type: textblock
11507 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3651
11508 msgid ""
11509 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11510 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3654
11515 msgid ""
11516 "This call assumes that the guest is Windows and that the Registry could be "
11517 "examined by inspection.  If this is not the case then an error is returned."
11518 msgstr ""
11519
11520 #. type: =head2
11521 #: ../fish/guestfish-actions.pod:2381
11522 msgid "inspect-get-windows-systemroot"
11523 msgstr ""
11524
11525 #. type: verbatim
11526 #: ../fish/guestfish-actions.pod:2383
11527 #, no-wrap
11528 msgid ""
11529 " inspect-get-windows-systemroot root\n"
11530 "\n"
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:2385 ../src/guestfs-actions.pod:3671
11535 msgid ""
11536 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11537 "is a directory path such as C</WINDOWS>."
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3674
11542 msgid ""
11543 "This call assumes that the guest is Windows and that the systemroot could be "
11544 "determined by inspection.  If this is not the case then an error is returned."
11545 msgstr ""
11546
11547 #. type: =head2
11548 #: ../fish/guestfish-actions.pod:2394
11549 msgid "inspect-is-live"
11550 msgstr ""
11551
11552 #. type: verbatim
11553 #: ../fish/guestfish-actions.pod:2396
11554 #, no-wrap
11555 msgid ""
11556 " inspect-is-live root\n"
11557 "\n"
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../fish/guestfish-actions.pod:2398
11562 msgid ""
11563 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11564 "then this returns true if a live image was detected on the disk."
11565 msgstr ""
11566
11567 #. type: =head2
11568 #: ../fish/guestfish-actions.pod:2404
11569 msgid "inspect-is-multipart"
11570 msgstr ""
11571
11572 #. type: verbatim
11573 #: ../fish/guestfish-actions.pod:2406
11574 #, no-wrap
11575 msgid ""
11576 " inspect-is-multipart root\n"
11577 "\n"
11578 msgstr ""
11579
11580 #. type: textblock
11581 #: ../fish/guestfish-actions.pod:2408
11582 msgid ""
11583 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11584 "then this returns true if the disk is part of a set."
11585 msgstr ""
11586
11587 #. type: =head2
11588 #: ../fish/guestfish-actions.pod:2414
11589 msgid "inspect-is-netinst"
11590 msgstr ""
11591
11592 #. type: verbatim
11593 #: ../fish/guestfish-actions.pod:2416
11594 #, no-wrap
11595 msgid ""
11596 " inspect-is-netinst root\n"
11597 "\n"
11598 msgstr ""
11599
11600 #. type: textblock
11601 #: ../fish/guestfish-actions.pod:2418
11602 msgid ""
11603 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11604 "then this returns true if the disk is a network installer, ie. not a self-"
11605 "contained install CD but one which is likely to require network access to "
11606 "complete the install."
11607 msgstr ""
11608
11609 #. type: =head2
11610 #: ../fish/guestfish-actions.pod:2426
11611 msgid "inspect-list-applications"
11612 msgstr ""
11613
11614 #. type: verbatim
11615 #: ../fish/guestfish-actions.pod:2428
11616 #, no-wrap
11617 msgid ""
11618 " inspect-list-applications root\n"
11619 "\n"
11620 msgstr ""
11621
11622 #. type: textblock
11623 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3741
11624 msgid "Return the list of applications installed in the operating system."
11625 msgstr ""
11626
11627 #. type: textblock
11628 #: ../fish/guestfish-actions.pod:2432
11629 msgid ""
11630 "I<Note:> This call works differently from other parts of the inspection "
11631 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11632 "then mount up the disks, before calling this.  Listing applications is a "
11633 "significantly more difficult operation which requires access to the full "
11634 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11635 "are just returning data cached in the libguestfs handle, this call actually "
11636 "reads parts of the mounted filesystems during the call."
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3753
11641 msgid ""
11642 "This returns an empty list if the inspection code was not able to determine "
11643 "the list of applications."
11644 msgstr ""
11645
11646 #. type: textblock
11647 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11648 msgid "The application structure contains the following fields:"
11649 msgstr ""
11650
11651 #. type: =item
11652 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3760
11653 msgid "C<app_name>"
11654 msgstr ""
11655
11656 #. type: textblock
11657 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3762
11658 msgid ""
11659 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11660 "guests, this is the package name."
11661 msgstr ""
11662
11663 #. type: =item
11664 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3765
11665 msgid "C<app_display_name>"
11666 msgstr ""
11667
11668 #. type: textblock
11669 #: ../fish/guestfish-actions.pod:2456 ../src/guestfs-actions.pod:3767
11670 msgid ""
11671 "The display name of the application, sometimes localized to the install "
11672 "language of the guest operating system."
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../fish/guestfish-actions.pod:2459 ../src/guestfs-actions.pod:3770
11677 msgid ""
11678 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11679 "to display something can use C<app_name> instead."
11680 msgstr ""
11681
11682 #. type: =item
11683 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3773
11684 msgid "C<app_epoch>"
11685 msgstr ""
11686
11687 #. type: textblock
11688 #: ../fish/guestfish-actions.pod:2464 ../src/guestfs-actions.pod:3775
11689 msgid ""
11690 "For package managers which use epochs, this contains the epoch of the "
11691 "package (an integer).  If unavailable, this is returned as C<0>."
11692 msgstr ""
11693
11694 #. type: =item
11695 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3778
11696 msgid "C<app_version>"
11697 msgstr ""
11698
11699 #. type: textblock
11700 #: ../fish/guestfish-actions.pod:2469 ../src/guestfs-actions.pod:3780
11701 msgid ""
11702 "The version string of the application or package.  If unavailable this is "
11703 "returned as an empty string C<\"\">."
11704 msgstr ""
11705
11706 #. type: =item
11707 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3783
11708 msgid "C<app_release>"
11709 msgstr ""
11710
11711 #. type: textblock
11712 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11713 msgid ""
11714 "The release string of the application or package, for package managers that "
11715 "use this.  If unavailable this is returned as an empty string C<\"\">."
11716 msgstr ""
11717
11718 #. type: =item
11719 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3789
11720 msgid "C<app_install_path>"
11721 msgstr ""
11722
11723 #. type: textblock
11724 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3791
11725 msgid ""
11726 "The installation path of the application (on operating systems such as "
11727 "Windows which use installation paths).  This path is in the format used by "
11728 "the guest operating system, it is not a libguestfs path."
11729 msgstr ""
11730
11731 #. type: textblock
11732 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11733 msgid "If unavailable this is returned as an empty string C<\"\">."
11734 msgstr ""
11735
11736 #. type: =item
11737 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3798
11738 msgid "C<app_trans_path>"
11739 msgstr ""
11740
11741 #. type: textblock
11742 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3800
11743 msgid ""
11744 "The install path translated into a libguestfs path.  If unavailable this is "
11745 "returned as an empty string C<\"\">."
11746 msgstr ""
11747
11748 #. type: =item
11749 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3803
11750 msgid "C<app_publisher>"
11751 msgstr ""
11752
11753 #. type: textblock
11754 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11755 msgid ""
11756 "The name of the publisher of the application, for package managers that use "
11757 "this.  If unavailable this is returned as an empty string C<\"\">."
11758 msgstr ""
11759
11760 #. type: =item
11761 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3809
11762 msgid "C<app_url>"
11763 msgstr ""
11764
11765 #. type: textblock
11766 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3811
11767 msgid ""
11768 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11769 "returned as an empty string C<\"\">."
11770 msgstr ""
11771
11772 #. type: =item
11773 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3814
11774 msgid "C<app_source_package>"
11775 msgstr ""
11776
11777 #. type: textblock
11778 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3816
11779 msgid ""
11780 "For packaging systems which support this, the name of the source package.  "
11781 "If unavailable this is returned as an empty string C<\"\">."
11782 msgstr ""
11783
11784 #. type: =item
11785 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3819
11786 msgid "C<app_summary>"
11787 msgstr ""
11788
11789 #. type: textblock
11790 #: ../fish/guestfish-actions.pod:2510 ../src/guestfs-actions.pod:3821
11791 msgid ""
11792 "A short (usually one line) description of the application or package.  If "
11793 "unavailable this is returned as an empty string C<\"\">."
11794 msgstr ""
11795
11796 #. type: =item
11797 #: ../fish/guestfish-actions.pod:2513 ../src/guestfs-actions.pod:3824
11798 msgid "C<app_description>"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3826
11803 msgid ""
11804 "A longer description of the application or package.  If unavailable this is "
11805 "returned as an empty string C<\"\">."
11806 msgstr ""
11807
11808 #. type: =head2
11809 #: ../fish/guestfish-actions.pod:2522
11810 msgid "inspect-os"
11811 msgstr ""
11812
11813 #. type: verbatim
11814 #: ../fish/guestfish-actions.pod:2524
11815 #, no-wrap
11816 msgid ""
11817 " inspect-os\n"
11818 "\n"
11819 msgstr ""
11820
11821 #. type: textblock
11822 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11823 msgid ""
11824 "This function uses other libguestfs functions and certain heuristics to "
11825 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11826 "for operating systems."
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3848
11831 msgid "The list returned is empty if no operating systems were found."
11832 msgstr ""
11833
11834 #. type: textblock
11835 #: ../fish/guestfish-actions.pod:2532 ../src/guestfs-actions.pod:3850
11836 msgid ""
11837 "If one operating system was found, then this returns a list with a single "
11838 "element, which is the name of the root filesystem of this operating system.  "
11839 "It is also possible for this function to return a list containing more than "
11840 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11841 "element being the root filesystem of one of the operating systems."
11842 msgstr ""
11843
11844 #. type: textblock
11845 #: ../fish/guestfish-actions.pod:2539
11846 msgid ""
11847 "You can pass the root string(s) returned to other L</inspect-get-*> "
11848 "functions in order to query further information about each operating system, "
11849 "such as the name and version."
11850 msgstr ""
11851
11852 #. type: textblock
11853 #: ../fish/guestfish-actions.pod:2544
11854 msgid ""
11855 "This function uses other libguestfs features such as L</mount-ro> and L</"
11856 "umount-all> in order to mount and unmount filesystems and look at the "
11857 "contents.  This should be called with no disks currently mounted.  The "
11858 "function may also use Augeas, so any existing Augeas handle will be closed."
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3868
11863 msgid ""
11864 "This function cannot decrypt encrypted disks.  The caller must do that first "
11865 "(supplying the necessary keys) if the disk is encrypted."
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:2556 ../fish/guestfish-actions.pod:2754
11870 #: ../fish/guestfish-actions.pod:2819
11871 msgid "See also L</list-filesystems>."
11872 msgstr ""
11873
11874 #. type: =head2
11875 #: ../fish/guestfish-actions.pod:2558
11876 msgid "is-blockdev"
11877 msgstr ""
11878
11879 #. type: verbatim
11880 #: ../fish/guestfish-actions.pod:2560
11881 #, no-wrap
11882 msgid ""
11883 " is-blockdev path\n"
11884 "\n"
11885 msgstr ""
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3888
11889 msgid ""
11890 "This returns C<true> if and only if there is a block device with the given "
11891 "C<path> name."
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:2565 ../fish/guestfish-actions.pod:2583
11896 #: ../fish/guestfish-actions.pod:2602 ../fish/guestfish-actions.pod:2611
11897 #: ../fish/guestfish-actions.pod:2621 ../fish/guestfish-actions.pod:2655
11898 #: ../fish/guestfish-actions.pod:2664
11899 msgid "See also L</stat>."
11900 msgstr ""
11901
11902 #. type: =head2
11903 #: ../fish/guestfish-actions.pod:2567
11904 msgid "is-busy"
11905 msgstr ""
11906
11907 #. type: verbatim
11908 #: ../fish/guestfish-actions.pod:2569
11909 #, no-wrap
11910 msgid ""
11911 " is-busy\n"
11912 "\n"
11913 msgstr ""
11914
11915 #. type: textblock
11916 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3902
11917 msgid ""
11918 "This returns true iff this handle is busy processing a command (in the "
11919 "C<BUSY> state)."
11920 msgstr ""
11921
11922 #. type: =head2
11923 #: ../fish/guestfish-actions.pod:2576
11924 msgid "is-chardev"
11925 msgstr ""
11926
11927 #. type: verbatim
11928 #: ../fish/guestfish-actions.pod:2578
11929 #, no-wrap
11930 msgid ""
11931 " is-chardev path\n"
11932 "\n"
11933 msgstr ""
11934
11935 #. type: textblock
11936 #: ../fish/guestfish-actions.pod:2580 ../src/guestfs-actions.pod:3917
11937 msgid ""
11938 "This returns C<true> if and only if there is a character device with the "
11939 "given C<path> name."
11940 msgstr ""
11941
11942 #. type: =head2
11943 #: ../fish/guestfish-actions.pod:2585
11944 msgid "is-config"
11945 msgstr ""
11946
11947 #. type: verbatim
11948 #: ../fish/guestfish-actions.pod:2587
11949 #, no-wrap
11950 msgid ""
11951 " is-config\n"
11952 "\n"
11953 msgstr ""
11954
11955 #. type: textblock
11956 #: ../fish/guestfish-actions.pod:2589 ../src/guestfs-actions.pod:3931
11957 msgid ""
11958 "This returns true iff this handle is being configured (in the C<CONFIG> "
11959 "state)."
11960 msgstr ""
11961
11962 #. type: =head2
11963 #: ../fish/guestfish-actions.pod:2594
11964 msgid "is-dir"
11965 msgstr ""
11966
11967 #. type: verbatim
11968 #: ../fish/guestfish-actions.pod:2596
11969 #, no-wrap
11970 msgid ""
11971 " is-dir path\n"
11972 "\n"
11973 msgstr ""
11974
11975 #. type: textblock
11976 #: ../fish/guestfish-actions.pod:2598 ../src/guestfs-actions.pod:3946
11977 msgid ""
11978 "This returns C<true> if and only if there is a directory with the given "
11979 "C<path> name.  Note that it returns false for other objects like files."
11980 msgstr ""
11981
11982 #. type: =head2
11983 #: ../fish/guestfish-actions.pod:2604
11984 msgid "is-fifo"
11985 msgstr ""
11986
11987 #. type: verbatim
11988 #: ../fish/guestfish-actions.pod:2606
11989 #, no-wrap
11990 msgid ""
11991 " is-fifo path\n"
11992 "\n"
11993 msgstr ""
11994
11995 #. type: textblock
11996 #: ../fish/guestfish-actions.pod:2608 ../src/guestfs-actions.pod:3962
11997 msgid ""
11998 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11999 "given C<path> name."
12000 msgstr ""
12001
12002 #. type: =head2
12003 #: ../fish/guestfish-actions.pod:2613
12004 msgid "is-file"
12005 msgstr ""
12006
12007 #. type: verbatim
12008 #: ../fish/guestfish-actions.pod:2615
12009 #, no-wrap
12010 msgid ""
12011 " is-file path\n"
12012 "\n"
12013 msgstr ""
12014
12015 #. type: textblock
12016 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3977
12017 msgid ""
12018 "This returns C<true> if and only if there is a regular file with the given "
12019 "C<path> name.  Note that it returns false for other objects like directories."
12020 msgstr ""
12021
12022 #. type: =head2
12023 #: ../fish/guestfish-actions.pod:2623
12024 msgid "is-launching"
12025 msgstr ""
12026
12027 #. type: verbatim
12028 #: ../fish/guestfish-actions.pod:2625
12029 #, no-wrap
12030 msgid ""
12031 " is-launching\n"
12032 "\n"
12033 msgstr ""
12034
12035 #. type: textblock
12036 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3992
12037 msgid ""
12038 "This returns true iff this handle is launching the subprocess (in the "
12039 "C<LAUNCHING> state)."
12040 msgstr ""
12041
12042 #. type: =head2
12043 #: ../fish/guestfish-actions.pod:2632
12044 msgid "is-lv"
12045 msgstr ""
12046
12047 #. type: verbatim
12048 #: ../fish/guestfish-actions.pod:2634
12049 #, no-wrap
12050 msgid ""
12051 " is-lv device\n"
12052 "\n"
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:4007
12057 msgid ""
12058 "This command tests whether C<device> is a logical volume, and returns true "
12059 "iff this is the case."
12060 msgstr ""
12061
12062 #. type: =head2
12063 #: ../fish/guestfish-actions.pod:2639
12064 msgid "is-ready"
12065 msgstr ""
12066
12067 #. type: verbatim
12068 #: ../fish/guestfish-actions.pod:2641
12069 #, no-wrap
12070 msgid ""
12071 " is-ready\n"
12072 "\n"
12073 msgstr ""
12074
12075 #. type: textblock
12076 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4019
12077 msgid ""
12078 "This returns true iff this handle is ready to accept commands (in the "
12079 "C<READY> state)."
12080 msgstr ""
12081
12082 #. type: =head2
12083 #: ../fish/guestfish-actions.pod:2648
12084 msgid "is-socket"
12085 msgstr ""
12086
12087 #. type: verbatim
12088 #: ../fish/guestfish-actions.pod:2650
12089 #, no-wrap
12090 msgid ""
12091 " is-socket path\n"
12092 "\n"
12093 msgstr ""
12094
12095 #. type: textblock
12096 #: ../fish/guestfish-actions.pod:2652 ../src/guestfs-actions.pod:4034
12097 msgid ""
12098 "This returns C<true> if and only if there is a Unix domain socket with the "
12099 "given C<path> name."
12100 msgstr ""
12101
12102 #. type: =head2
12103 #: ../fish/guestfish-actions.pod:2657
12104 msgid "is-symlink"
12105 msgstr ""
12106
12107 #. type: verbatim
12108 #: ../fish/guestfish-actions.pod:2659
12109 #, no-wrap
12110 msgid ""
12111 " is-symlink path\n"
12112 "\n"
12113 msgstr ""
12114
12115 #. type: textblock
12116 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:4049
12117 msgid ""
12118 "This returns C<true> if and only if there is a symbolic link with the given "
12119 "C<path> name."
12120 msgstr ""
12121
12122 #. type: =head2
12123 #: ../fish/guestfish-actions.pod:2666
12124 msgid "is-zero"
12125 msgstr ""
12126
12127 #. type: verbatim
12128 #: ../fish/guestfish-actions.pod:2668
12129 #, no-wrap
12130 msgid ""
12131 " is-zero path\n"
12132 "\n"
12133 msgstr ""
12134
12135 #. type: textblock
12136 #: ../fish/guestfish-actions.pod:2670 ../src/guestfs-actions.pod:4064
12137 msgid ""
12138 "This returns true iff the file exists and the file is empty or it contains "
12139 "all zero bytes."
12140 msgstr ""
12141
12142 #. type: =head2
12143 #: ../fish/guestfish-actions.pod:2673
12144 msgid "is-zero-device"
12145 msgstr ""
12146
12147 #. type: verbatim
12148 #: ../fish/guestfish-actions.pod:2675
12149 #, no-wrap
12150 msgid ""
12151 " is-zero-device device\n"
12152 "\n"
12153 msgstr ""
12154
12155 #. type: textblock
12156 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:4077
12157 msgid "This returns true iff the device exists and contains all zero bytes."
12158 msgstr ""
12159
12160 #. type: textblock
12161 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:4079
12162 msgid "Note that for large devices this can take a long time to run."
12163 msgstr ""
12164
12165 #. type: =head2
12166 #: ../fish/guestfish-actions.pod:2681
12167 msgid "kill-subprocess"
12168 msgstr ""
12169
12170 #. type: verbatim
12171 #: ../fish/guestfish-actions.pod:2683
12172 #, no-wrap
12173 msgid ""
12174 " kill-subprocess\n"
12175 "\n"
12176 msgstr ""
12177
12178 #. type: textblock
12179 #: ../fish/guestfish-actions.pod:2685 ../src/guestfs-actions.pod:4090
12180 msgid "This kills the qemu subprocess.  You should never need to call this."
12181 msgstr ""
12182
12183 #. type: =head2
12184 #: ../fish/guestfish-actions.pod:2687
12185 msgid "launch"
12186 msgstr ""
12187
12188 #. type: =head2
12189 #: ../fish/guestfish-actions.pod:2689
12190 msgid "run"
12191 msgstr ""
12192
12193 #. type: verbatim
12194 #: ../fish/guestfish-actions.pod:2691
12195 #, no-wrap
12196 msgid ""
12197 " launch\n"
12198 "\n"
12199 msgstr ""
12200
12201 #. type: textblock
12202 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4101
12203 msgid ""
12204 "Internally libguestfs is implemented by running a virtual machine using "
12205 "L<qemu(1)>."
12206 msgstr ""
12207
12208 #. type: textblock
12209 #: ../fish/guestfish-actions.pod:2696 ../src/guestfs-actions.pod:4104
12210 msgid ""
12211 "You should call this after configuring the handle (eg. adding drives) but "
12212 "before performing any actions."
12213 msgstr ""
12214
12215 #. type: =head2
12216 #: ../fish/guestfish-actions.pod:2699
12217 msgid "lchown"
12218 msgstr ""
12219
12220 #. type: verbatim
12221 #: ../fish/guestfish-actions.pod:2701
12222 #, no-wrap
12223 msgid ""
12224 " lchown owner group path\n"
12225 "\n"
12226 msgstr ""
12227
12228 #. type: textblock
12229 #: ../fish/guestfish-actions.pod:2703
12230 msgid ""
12231 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12232 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12233 "target."
12234 msgstr ""
12235
12236 #. type: =head2
12237 #: ../fish/guestfish-actions.pod:2711
12238 msgid "lgetxattr"
12239 msgstr ""
12240
12241 #. type: verbatim
12242 #: ../fish/guestfish-actions.pod:2713
12243 #, no-wrap
12244 msgid ""
12245 " lgetxattr path name\n"
12246 "\n"
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4144
12251 msgid ""
12252 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12253 "is a symlink, then this call returns an extended attribute from the symlink."
12254 msgstr ""
12255
12256 #. type: textblock
12257 #: ../fish/guestfish-actions.pod:2729
12258 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12259 msgstr ""
12260
12261 #. type: =head2
12262 #: ../fish/guestfish-actions.pod:2731
12263 msgid "lgetxattrs"
12264 msgstr ""
12265
12266 #. type: verbatim
12267 #: ../fish/guestfish-actions.pod:2733
12268 #, no-wrap
12269 msgid ""
12270 " lgetxattrs path\n"
12271 "\n"
12272 msgstr ""
12273
12274 #. type: textblock
12275 #: ../fish/guestfish-actions.pod:2735
12276 msgid ""
12277 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12278 "it returns the extended attributes of the link itself."
12279 msgstr ""
12280
12281 #. type: =head2
12282 #: ../fish/guestfish-actions.pod:2739
12283 msgid "list-9p"
12284 msgstr ""
12285
12286 #. type: verbatim
12287 #: ../fish/guestfish-actions.pod:2741
12288 #, no-wrap
12289 msgid ""
12290 " list-9p\n"
12291 "\n"
12292 msgstr ""
12293
12294 #. type: textblock
12295 #: ../fish/guestfish-actions.pod:2743 ../src/guestfs-actions.pod:4187
12296 msgid ""
12297 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12298 "returned."
12299 msgstr ""
12300
12301 #. type: =head2
12302 #: ../fish/guestfish-actions.pod:2746
12303 msgid "list-devices"
12304 msgstr ""
12305
12306 #. type: verbatim
12307 #: ../fish/guestfish-actions.pod:2748
12308 #, no-wrap
12309 msgid ""
12310 " list-devices\n"
12311 "\n"
12312 msgstr ""
12313
12314 #. type: textblock
12315 #: ../fish/guestfish-actions.pod:2750 ../src/guestfs-actions.pod:4201
12316 msgid "List all the block devices."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:2752 ../src/guestfs-actions.pod:4203
12321 msgid "The full block device names are returned, eg. C</dev/sda>."
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../fish/guestfish-actions.pod:2756
12326 msgid "list-dm-devices"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../fish/guestfish-actions.pod:2758
12331 #, no-wrap
12332 msgid ""
12333 " list-dm-devices\n"
12334 "\n"
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4218
12339 msgid "List all device mapper devices."
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../fish/guestfish-actions.pod:2762
12344 msgid ""
12345 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12346 "previous call to L</luks-open>."
12347 msgstr ""
12348
12349 #. type: textblock
12350 #: ../fish/guestfish-actions.pod:2765
12351 msgid ""
12352 "Device mapper devices which correspond to logical volumes are I<not> "
12353 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12354 msgstr ""
12355
12356 #. type: =head2
12357 #: ../fish/guestfish-actions.pod:2769
12358 msgid "list-filesystems"
12359 msgstr ""
12360
12361 #. type: verbatim
12362 #: ../fish/guestfish-actions.pod:2771
12363 #, no-wrap
12364 msgid ""
12365 " list-filesystems\n"
12366 "\n"
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12371 msgid ""
12372 "This inspection command looks for filesystems on partitions, block devices "
12373 "and logical volumes, returning a list of devices containing filesystems and "
12374 "their type."
12375 msgstr ""
12376
12377 #. type: textblock
12378 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12379 msgid ""
12380 "The return value is a hash, where the keys are the devices containing "
12381 "filesystems, and the values are the filesystem types.  For example:"
12382 msgstr ""
12383
12384 #. type: verbatim
12385 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4246
12386 #, no-wrap
12387 msgid ""
12388 " \"/dev/sda1\" => \"ntfs\"\n"
12389 " \"/dev/sda2\" => \"ext2\"\n"
12390 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12391 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12392 "\n"
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../fish/guestfish-actions.pod:2786 ../src/guestfs-actions.pod:4251
12397 msgid ""
12398 "The value can have the special value \"unknown\", meaning the content of the "
12399 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12400 msgstr ""
12401
12402 #. type: textblock
12403 #: ../fish/guestfish-actions.pod:2790
12404 msgid ""
12405 "This command runs other libguestfs commands, which might include L</mount> "
12406 "and L</umount>, and therefore you should use this soon after launch and only "
12407 "when nothing is mounted."
12408 msgstr ""
12409
12410 #. type: textblock
12411 #: ../fish/guestfish-actions.pod:2794
12412 msgid ""
12413 "Not all of the filesystems returned will be mountable.  In particular, swap "
12414 "partitions are returned in the list.  Also this command does not check that "
12415 "each filesystem found is valid and mountable, and some filesystems might be "
12416 "mountable but require special options.  Filesystems may not all belong to a "
12417 "single logical operating system (use L</inspect-os> to look for OSes)."
12418 msgstr ""
12419
12420 #. type: =head2
12421 #: ../fish/guestfish-actions.pod:2802
12422 msgid "list-md-devices"
12423 msgstr ""
12424
12425 #. type: verbatim
12426 #: ../fish/guestfish-actions.pod:2804
12427 #, no-wrap
12428 msgid ""
12429 " list-md-devices\n"
12430 "\n"
12431 msgstr ""
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:2806 ../src/guestfs-actions.pod:4280
12435 msgid "List all Linux md devices."
12436 msgstr ""
12437
12438 #. type: =head2
12439 #: ../fish/guestfish-actions.pod:2808
12440 msgid "list-partitions"
12441 msgstr ""
12442
12443 #. type: verbatim
12444 #: ../fish/guestfish-actions.pod:2810
12445 #, no-wrap
12446 msgid ""
12447 " list-partitions\n"
12448 "\n"
12449 msgstr ""
12450
12451 #. type: textblock
12452 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4293
12453 msgid "List all the partitions detected on all block devices."
12454 msgstr ""
12455
12456 #. type: textblock
12457 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4295
12458 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12459 msgstr ""
12460
12461 #. type: textblock
12462 #: ../fish/guestfish-actions.pod:2816
12463 msgid ""
12464 "This does not return logical volumes.  For that you will need to call L</"
12465 "lvs>."
12466 msgstr ""
12467
12468 #. type: =head2
12469 #: ../fish/guestfish-actions.pod:2821
12470 msgid "ll"
12471 msgstr ""
12472
12473 #. type: verbatim
12474 #: ../fish/guestfish-actions.pod:2823
12475 #, no-wrap
12476 msgid ""
12477 " ll directory\n"
12478 "\n"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4314
12483 msgid ""
12484 "List the files in C<directory> (relative to the root directory, there is no "
12485 "cwd) in the format of 'ls -la'."
12486 msgstr ""
12487
12488 #. type: textblock
12489 #: ../fish/guestfish-actions.pod:2828 ../src/guestfs-actions.pod:4317
12490 msgid ""
12491 "This command is mostly useful for interactive sessions.  It is I<not> "
12492 "intended that you try to parse the output string."
12493 msgstr ""
12494
12495 #. type: =head2
12496 #: ../fish/guestfish-actions.pod:2831
12497 msgid "ln"
12498 msgstr ""
12499
12500 #. type: verbatim
12501 #: ../fish/guestfish-actions.pod:2833
12502 #, no-wrap
12503 msgid ""
12504 " ln target linkname\n"
12505 "\n"
12506 msgstr ""
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4332
12510 msgid "This command creates a hard link using the C<ln> command."
12511 msgstr ""
12512
12513 #. type: =head2
12514 #: ../fish/guestfish-actions.pod:2837
12515 msgid "ln-f"
12516 msgstr ""
12517
12518 #. type: verbatim
12519 #: ../fish/guestfish-actions.pod:2839
12520 #, no-wrap
12521 msgid ""
12522 " ln-f target linkname\n"
12523 "\n"
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../fish/guestfish-actions.pod:2841 ../src/guestfs-actions.pod:4345
12528 msgid ""
12529 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12530 "option removes the link (C<linkname>) if it exists already."
12531 msgstr ""
12532
12533 #. type: =head2
12534 #: ../fish/guestfish-actions.pod:2844
12535 msgid "ln-s"
12536 msgstr ""
12537
12538 #. type: verbatim
12539 #: ../fish/guestfish-actions.pod:2846
12540 #, no-wrap
12541 msgid ""
12542 " ln-s target linkname\n"
12543 "\n"
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4359
12548 msgid "This command creates a symbolic link using the C<ln -s> command."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:2850
12553 msgid "ln-sf"
12554 msgstr ""
12555
12556 #. type: verbatim
12557 #: ../fish/guestfish-actions.pod:2852
12558 #, no-wrap
12559 msgid ""
12560 " ln-sf target linkname\n"
12561 "\n"
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:2854 ../src/guestfs-actions.pod:4372
12566 msgid ""
12567 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12568 "option removes the link (C<linkname>) if it exists already."
12569 msgstr ""
12570
12571 #. type: =head2
12572 #: ../fish/guestfish-actions.pod:2857
12573 msgid "lremovexattr"
12574 msgstr ""
12575
12576 #. type: verbatim
12577 #: ../fish/guestfish-actions.pod:2859
12578 #, no-wrap
12579 msgid ""
12580 " lremovexattr xattr path\n"
12581 "\n"
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../fish/guestfish-actions.pod:2861
12586 msgid ""
12587 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12588 "it removes an extended attribute of the link itself."
12589 msgstr ""
12590
12591 #. type: =head2
12592 #: ../fish/guestfish-actions.pod:2865
12593 msgid "ls"
12594 msgstr ""
12595
12596 #. type: verbatim
12597 #: ../fish/guestfish-actions.pod:2867
12598 #, no-wrap
12599 msgid ""
12600 " ls directory\n"
12601 "\n"
12602 msgstr ""
12603
12604 #. type: textblock
12605 #: ../fish/guestfish-actions.pod:2869 ../src/guestfs-actions.pod:4400
12606 msgid ""
12607 "List the files in C<directory> (relative to the root directory, there is no "
12608 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12609 msgstr ""
12610
12611 #. type: textblock
12612 #: ../fish/guestfish-actions.pod:2873
12613 msgid ""
12614 "This command is mostly useful for interactive sessions.  Programs should "
12615 "probably use L</readdir> instead."
12616 msgstr ""
12617
12618 #. type: =head2
12619 #: ../fish/guestfish-actions.pod:2876
12620 msgid "lsetxattr"
12621 msgstr ""
12622
12623 #. type: verbatim
12624 #: ../fish/guestfish-actions.pod:2878
12625 #, no-wrap
12626 msgid ""
12627 " lsetxattr xattr val vallen path\n"
12628 "\n"
12629 msgstr ""
12630
12631 #. type: textblock
12632 #: ../fish/guestfish-actions.pod:2880
12633 msgid ""
12634 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12635 "sets an extended attribute of the link itself."
12636 msgstr ""
12637
12638 #. type: =head2
12639 #: ../fish/guestfish-actions.pod:2884
12640 msgid "lstat"
12641 msgstr ""
12642
12643 #. type: verbatim
12644 #: ../fish/guestfish-actions.pod:2886
12645 #, no-wrap
12646 msgid ""
12647 " lstat path\n"
12648 "\n"
12649 msgstr ""
12650
12651 #. type: textblock
12652 #: ../fish/guestfish-actions.pod:2888 ../fish/guestfish-actions.pod:4786
12653 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:7366
12654 msgid "Returns file information for the given C<path>."
12655 msgstr ""
12656
12657 #. type: textblock
12658 #: ../fish/guestfish-actions.pod:2890
12659 msgid ""
12660 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12661 "the link is stat-ed, not the file it refers to."
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4442
12666 msgid "This is the same as the C<lstat(2)> system call."
12667 msgstr ""
12668
12669 #. type: =head2
12670 #: ../fish/guestfish-actions.pod:2896
12671 msgid "lstatlist"
12672 msgstr ""
12673
12674 #. type: verbatim
12675 #: ../fish/guestfish-actions.pod:2898
12676 #, no-wrap
12677 msgid ""
12678 " lstatlist path 'names ...'\n"
12679 "\n"
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:2900
12684 msgid ""
12685 "This call allows you to perform the L</lstat> operation on multiple files, "
12686 "where all files are in the directory C<path>.  C<names> is the list of files "
12687 "from this directory."
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../fish/guestfish-actions.pod:2904 ../src/guestfs-actions.pod:4461
12692 msgid ""
12693 "On return you get a list of stat structs, with a one-to-one correspondence "
12694 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12695 "then the C<ino> field of that structure is set to C<-1>."
12696 msgstr ""
12697
12698 #. type: textblock
12699 #: ../fish/guestfish-actions.pod:2909
12700 msgid ""
12701 "This call is intended for programs that want to efficiently list a directory "
12702 "contents without making many round-trips.  See also L</lxattrlist> for a "
12703 "similarly efficient call for getting extended attributes.  Very long "
12704 "directory listings might cause the protocol message size to be exceeded, "
12705 "causing this call to fail.  The caller must split up such requests into "
12706 "smaller groups of names."
12707 msgstr ""
12708
12709 #. type: =head2
12710 #: ../fish/guestfish-actions.pod:2917
12711 msgid "luks-add-key"
12712 msgstr ""
12713
12714 #. type: verbatim
12715 #: ../fish/guestfish-actions.pod:2919
12716 #, no-wrap
12717 msgid ""
12718 " luks-add-key device keyslot\n"
12719 "\n"
12720 msgstr ""
12721
12722 #. type: textblock
12723 #: ../fish/guestfish-actions.pod:2921 ../src/guestfs-actions.pod:4489
12724 msgid ""
12725 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12726 "existing key, and is used to access the device.  C<newkey> is the new key to "
12727 "add.  C<keyslot> is the key slot that will be replaced."
12728 msgstr ""
12729
12730 #. type: textblock
12731 #: ../fish/guestfish-actions.pod:2926
12732 msgid ""
12733 "Note that if C<keyslot> already contains a key, then this command will "
12734 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12735 msgstr ""
12736
12737 #. type: textblock
12738 #: ../fish/guestfish-actions.pod:2930 ../fish/guestfish-actions.pod:2952
12739 #: ../fish/guestfish-actions.pod:2962 ../fish/guestfish-actions.pod:2973
12740 #: ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3009
12741 msgid ""
12742 "This command has one or more key or passphrase parameters.  Guestfish will "
12743 "prompt for these separately."
12744 msgstr ""
12745
12746 #. type: =head2
12747 #: ../fish/guestfish-actions.pod:2933
12748 msgid "luks-close"
12749 msgstr ""
12750
12751 #. type: verbatim
12752 #: ../fish/guestfish-actions.pod:2935
12753 #, no-wrap
12754 msgid ""
12755 " luks-close device\n"
12756 "\n"
12757 msgstr ""
12758
12759 #. type: textblock
12760 #: ../fish/guestfish-actions.pod:2937
12761 msgid ""
12762 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12763 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12764 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12765 "block device."
12766 msgstr ""
12767
12768 #. type: =head2
12769 #: ../fish/guestfish-actions.pod:2943
12770 msgid "luks-format"
12771 msgstr ""
12772
12773 #. type: verbatim
12774 #: ../fish/guestfish-actions.pod:2945
12775 #, no-wrap
12776 msgid ""
12777 " luks-format device keyslot\n"
12778 "\n"
12779 msgstr ""
12780
12781 #. type: textblock
12782 #: ../fish/guestfish-actions.pod:2947 ../src/guestfs-actions.pod:4530
12783 msgid ""
12784 "This command erases existing data on C<device> and formats the device as a "
12785 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12786 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12787 msgstr ""
12788
12789 #. type: =head2
12790 #: ../fish/guestfish-actions.pod:2955
12791 msgid "luks-format-cipher"
12792 msgstr ""
12793
12794 #. type: verbatim
12795 #: ../fish/guestfish-actions.pod:2957
12796 #, no-wrap
12797 msgid ""
12798 " luks-format-cipher device keyslot cipher\n"
12799 "\n"
12800 msgstr ""
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:2959
12804 msgid ""
12805 "This command is the same as L</luks-format> but it also allows you to set "
12806 "the C<cipher> used."
12807 msgstr ""
12808
12809 #. type: =head2
12810 #: ../fish/guestfish-actions.pod:2965
12811 msgid "luks-kill-slot"
12812 msgstr ""
12813
12814 #. type: verbatim
12815 #: ../fish/guestfish-actions.pod:2967
12816 #, no-wrap
12817 msgid ""
12818 " luks-kill-slot device keyslot\n"
12819 "\n"
12820 msgstr ""
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:2969 ../src/guestfs-actions.pod:4571
12824 msgid ""
12825 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12826 "device C<device>.  C<key> must be one of the I<other> keys."
12827 msgstr ""
12828
12829 #. type: =head2
12830 #: ../fish/guestfish-actions.pod:2976
12831 msgid "luks-open"
12832 msgstr ""
12833
12834 #. type: verbatim
12835 #: ../fish/guestfish-actions.pod:2978
12836 #, no-wrap
12837 msgid ""
12838 " luks-open device mapname\n"
12839 "\n"
12840 msgstr ""
12841
12842 #. type: textblock
12843 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4591
12844 msgid ""
12845 "This command opens a block device which has been encrypted according to the "
12846 "Linux Unified Key Setup (LUKS) standard."
12847 msgstr ""
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4594
12851 msgid "C<device> is the encrypted block device or partition."
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4596
12856 msgid ""
12857 "The caller must supply one of the keys associated with the LUKS block "
12858 "device, in the C<key> parameter."
12859 msgstr ""
12860
12861 #. type: textblock
12862 #: ../fish/guestfish-actions.pod:2988 ../src/guestfs-actions.pod:4599
12863 msgid ""
12864 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12865 "writes to this block device are decrypted from and encrypted to the "
12866 "underlying C<device> respectively."
12867 msgstr ""
12868
12869 #. type: textblock
12870 #: ../fish/guestfish-actions.pod:2992
12871 msgid ""
12872 "If this block device contains LVM volume groups, then calling L</vgscan> "
12873 "followed by L</vg-activate-all> will make them visible."
12874 msgstr ""
12875
12876 #. type: textblock
12877 #: ../fish/guestfish-actions.pod:2996
12878 msgid "Use L</list-dm-devices> to list all device mapper devices."
12879 msgstr ""
12880
12881 #. type: =head2
12882 #: ../fish/guestfish-actions.pod:3002
12883 msgid "luks-open-ro"
12884 msgstr ""
12885
12886 #. type: verbatim
12887 #: ../fish/guestfish-actions.pod:3004
12888 #, no-wrap
12889 msgid ""
12890 " luks-open-ro device mapname\n"
12891 "\n"
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3006
12896 msgid ""
12897 "This is the same as L</luks-open> except that a read-only mapping is created."
12898 msgstr ""
12899
12900 #. type: =head2
12901 #: ../fish/guestfish-actions.pod:3012
12902 msgid "lvcreate"
12903 msgstr ""
12904
12905 #. type: verbatim
12906 #: ../fish/guestfish-actions.pod:3014
12907 #, no-wrap
12908 msgid ""
12909 " lvcreate logvol volgroup mbytes\n"
12910 "\n"
12911 msgstr ""
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4645
12915 msgid ""
12916 "This creates an LVM logical volume called C<logvol> on the volume group "
12917 "C<volgroup>, with C<size> megabytes."
12918 msgstr ""
12919
12920 #. type: =head2
12921 #: ../fish/guestfish-actions.pod:3019
12922 msgid "lvm-canonical-lv-name"
12923 msgstr ""
12924
12925 #. type: verbatim
12926 #: ../fish/guestfish-actions.pod:3021
12927 #, no-wrap
12928 msgid ""
12929 " lvm-canonical-lv-name lvname\n"
12930 "\n"
12931 msgstr ""
12932
12933 #. type: textblock
12934 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
12935 msgid ""
12936 "This converts alternative naming schemes for LVs that you might find to the "
12937 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12938 "LV>."
12939 msgstr ""
12940
12941 #. type: textblock
12942 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4662
12943 msgid ""
12944 "This command returns an error if the C<lvname> parameter does not refer to a "
12945 "logical volume."
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3030
12950 msgid "See also L</is-lv>."
12951 msgstr ""
12952
12953 #. type: =head2
12954 #: ../fish/guestfish-actions.pod:3032
12955 msgid "lvm-clear-filter"
12956 msgstr ""
12957
12958 #. type: verbatim
12959 #: ../fish/guestfish-actions.pod:3034
12960 #, no-wrap
12961 msgid ""
12962 " lvm-clear-filter\n"
12963 "\n"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../fish/guestfish-actions.pod:3036
12968 msgid ""
12969 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12970 "block device."
12971 msgstr ""
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:3039 ../fish/guestfish-actions.pod:3067
12975 #: ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4719
12976 msgid ""
12977 "This command also clears the LVM cache and performs a volume group scan."
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:3042
12982 msgid "lvm-remove-all"
12983 msgstr ""
12984
12985 #. type: verbatim
12986 #: ../fish/guestfish-actions.pod:3044
12987 #, no-wrap
12988 msgid ""
12989 " lvm-remove-all\n"
12990 "\n"
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4692
12995 msgid ""
12996 "This command removes all LVM logical volumes, volume groups and physical "
12997 "volumes."
12998 msgstr ""
12999
13000 #. type: =head2
13001 #: ../fish/guestfish-actions.pod:3049
13002 msgid "lvm-set-filter"
13003 msgstr ""
13004
13005 #. type: verbatim
13006 #: ../fish/guestfish-actions.pod:3051
13007 #, no-wrap
13008 msgid ""
13009 " lvm-set-filter 'devices ...'\n"
13010 "\n"
13011 msgstr ""
13012
13013 #. type: textblock
13014 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
13015 msgid ""
13016 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13017 "block devices in the list C<devices>, and will ignore all other attached "
13018 "block devices."
13019 msgstr ""
13020
13021 #. type: textblock
13022 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4709
13023 msgid ""
13024 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13025 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13026 "there are two types of duplication possible: either cloned PVs/VGs which "
13027 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13028 "same name.  In normal operation you cannot create this situation, but you "
13029 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13030 "inside the LVM metadata."
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4722
13035 msgid "You can filter whole block devices or individual partitions."
13036 msgstr ""
13037
13038 #. type: textblock
13039 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4724
13040 msgid ""
13041 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13042 "filesystem), even if you are not filtering out that VG."
13043 msgstr ""
13044
13045 #. type: =head2
13046 #: ../fish/guestfish-actions.pod:3076
13047 msgid "lvremove"
13048 msgstr ""
13049
13050 #. type: verbatim
13051 #: ../fish/guestfish-actions.pod:3078
13052 #, no-wrap
13053 msgid ""
13054 " lvremove device\n"
13055 "\n"
13056 msgstr ""
13057
13058 #. type: textblock
13059 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
13060 msgid ""
13061 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13062 "LV, such as C</dev/VG/LV>."
13063 msgstr ""
13064
13065 #. type: textblock
13066 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4741
13067 msgid ""
13068 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13069 "dev/VG>."
13070 msgstr ""
13071
13072 #. type: =head2
13073 #: ../fish/guestfish-actions.pod:3086
13074 msgid "lvrename"
13075 msgstr ""
13076
13077 #. type: verbatim
13078 #: ../fish/guestfish-actions.pod:3088
13079 #, no-wrap
13080 msgid ""
13081 " lvrename logvol newlogvol\n"
13082 "\n"
13083 msgstr ""
13084
13085 #. type: textblock
13086 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4755
13087 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13088 msgstr ""
13089
13090 #. type: =head2
13091 #: ../fish/guestfish-actions.pod:3092
13092 msgid "lvresize"
13093 msgstr ""
13094
13095 #. type: verbatim
13096 #: ../fish/guestfish-actions.pod:3094
13097 #, no-wrap
13098 msgid ""
13099 " lvresize device mbytes\n"
13100 "\n"
13101 msgstr ""
13102
13103 #. type: textblock
13104 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4768
13105 msgid ""
13106 "This resizes (expands or shrinks) an existing LVM logical volume to "
13107 "C<mbytes>.  When reducing, data in the reduced part is lost."
13108 msgstr ""
13109
13110 #. type: =head2
13111 #: ../fish/guestfish-actions.pod:3100
13112 msgid "lvresize-free"
13113 msgstr ""
13114
13115 #. type: verbatim
13116 #: ../fish/guestfish-actions.pod:3102
13117 #, no-wrap
13118 msgid ""
13119 " lvresize-free lv percent\n"
13120 "\n"
13121 msgstr ""
13122
13123 #. type: textblock
13124 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4783
13125 msgid ""
13126 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13127 "remaining free space in the volume group.  Commonly you would call this with "
13128 "pc = 100 which expands the logical volume as much as possible, using all "
13129 "remaining free space in the volume group."
13130 msgstr ""
13131
13132 #. type: =head2
13133 #: ../fish/guestfish-actions.pod:3110
13134 msgid "lvs"
13135 msgstr ""
13136
13137 #. type: verbatim
13138 #: ../fish/guestfish-actions.pod:3112
13139 #, no-wrap
13140 msgid ""
13141 " lvs\n"
13142 "\n"
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4798
13147 msgid ""
13148 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13149 "(8)> command."
13150 msgstr ""
13151
13152 #. type: textblock
13153 #: ../fish/guestfish-actions.pod:3117 ../src/guestfs-actions.pod:4801
13154 msgid ""
13155 "This returns a list of the logical volume device names (eg. C</dev/"
13156 "VolGroup00/LogVol00>)."
13157 msgstr ""
13158
13159 #. type: textblock
13160 #: ../fish/guestfish-actions.pod:3120
13161 msgid "See also L</lvs-full>, L</list-filesystems>."
13162 msgstr ""
13163
13164 #. type: =head2
13165 #: ../fish/guestfish-actions.pod:3122
13166 msgid "lvs-full"
13167 msgstr ""
13168
13169 #. type: verbatim
13170 #: ../fish/guestfish-actions.pod:3124
13171 #, no-wrap
13172 msgid ""
13173 " lvs-full\n"
13174 "\n"
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3126 ../src/guestfs-actions.pod:4817
13179 msgid ""
13180 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13181 "(8)> command.  The \"full\" version includes all fields."
13182 msgstr ""
13183
13184 #. type: =head2
13185 #: ../fish/guestfish-actions.pod:3129
13186 msgid "lvuuid"
13187 msgstr ""
13188
13189 #. type: verbatim
13190 #: ../fish/guestfish-actions.pod:3131
13191 #, no-wrap
13192 msgid ""
13193 " lvuuid device\n"
13194 "\n"
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4832
13199 msgid "This command returns the UUID of the LVM LV C<device>."
13200 msgstr ""
13201
13202 #. type: =head2
13203 #: ../fish/guestfish-actions.pod:3135
13204 msgid "lxattrlist"
13205 msgstr ""
13206
13207 #. type: verbatim
13208 #: ../fish/guestfish-actions.pod:3137
13209 #, no-wrap
13210 msgid ""
13211 " lxattrlist path 'names ...'\n"
13212 "\n"
13213 msgstr ""
13214
13215 #. type: textblock
13216 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
13217 msgid ""
13218 "This call allows you to get the extended attributes of multiple files, where "
13219 "all files are in the directory C<path>.  C<names> is the list of files from "
13220 "this directory."
13221 msgstr ""
13222
13223 #. type: textblock
13224 #: ../fish/guestfish-actions.pod:3143 ../src/guestfs-actions.pod:4850
13225 msgid ""
13226 "On return you get a flat list of xattr structs which must be interpreted "
13227 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13228 "C<attrval> in this struct is zero-length to indicate there was an error "
13229 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13230 "number (the number of following attributes for this file, which could be C<"
13231 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13232 "for the first named file.  This repeats for the second and subsequent files."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../fish/guestfish-actions.pod:3153
13237 msgid ""
13238 "This call is intended for programs that want to efficiently list a directory "
13239 "contents without making many round-trips.  See also L</lstatlist> for a "
13240 "similarly efficient call for getting standard stats.  Very long directory "
13241 "listings might cause the protocol message size to be exceeded, causing this "
13242 "call to fail.  The caller must split up such requests into smaller groups of "
13243 "names."
13244 msgstr ""
13245
13246 #. type: =head2
13247 #: ../fish/guestfish-actions.pod:3161
13248 msgid "md-create"
13249 msgstr ""
13250
13251 #. type: verbatim
13252 #: ../fish/guestfish-actions.pod:3163
13253 #, no-wrap
13254 msgid ""
13255 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13256 "\n"
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4893
13261 msgid ""
13262 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13263 "C<devices>."
13264 msgstr ""
13265
13266 #. type: =item
13267 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4900
13268 msgid "C<missingbitmap>"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
13273 msgid ""
13274 "A bitmap of missing devices.  If a bit is set it means that a missing device "
13275 "is added to the array.  The least significant bit corresponds to the first "
13276 "device in the array."
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4906
13281 msgid "As examples:"
13282 msgstr ""
13283
13284 #. type: textblock
13285 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4908
13286 msgid ""
13287 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13288 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4911
13293 msgid ""
13294 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13295 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4914
13300 msgid "This defaults to C<0> (no missing devices)."
13301 msgstr ""
13302
13303 #. type: textblock
13304 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4916
13305 msgid ""
13306 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13307 "equal C<nrdevices> + C<spare>."
13308 msgstr ""
13309
13310 #. type: =item
13311 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
13312 msgid "C<nrdevices>"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4921
13317 msgid "The number of active RAID devices."
13318 msgstr ""
13319
13320 #. type: textblock
13321 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4923
13322 msgid ""
13323 "If not set, this defaults to the length of C<devices> plus the number of "
13324 "bits set in C<missingbitmap>."
13325 msgstr ""
13326
13327 #. type: =item
13328 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
13329 msgid "C<spare>"
13330 msgstr ""
13331
13332 #. type: textblock
13333 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
13334 msgid "The number of spare devices."
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
13339 msgid "If not set, this defaults to C<0>."
13340 msgstr ""
13341
13342 #. type: =item
13343 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4932
13344 msgid "C<chunk>"
13345 msgstr ""
13346
13347 #. type: textblock
13348 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
13349 msgid "The chunk size in bytes."
13350 msgstr ""
13351
13352 #. type: =item
13353 #: ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3230
13354 #: ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4984
13355 msgid "C<level>"
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4938
13360 msgid ""
13361 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13362 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13363 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
13364 "added in future."
13365 msgstr ""
13366
13367 #. type: textblock
13368 #: ../fish/guestfish-actions.pod:3215 ../src/guestfs-actions.pod:4943
13369 msgid "If not set, this defaults to C<raid1>."
13370 msgstr ""
13371
13372 #. type: =head2
13373 #: ../fish/guestfish-actions.pod:3221
13374 msgid "md-detail"
13375 msgstr ""
13376
13377 #. type: verbatim
13378 #: ../fish/guestfish-actions.pod:3223
13379 #, no-wrap
13380 msgid ""
13381 " md-detail md\n"
13382 "\n"
13383 msgstr ""
13384
13385 #. type: textblock
13386 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4979
13387 msgid ""
13388 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13389 "are usually present in the returned hash. Other fields may also be present."
13390 msgstr ""
13391
13392 #. type: textblock
13393 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
13394 msgid "The raid level of the MD device."
13395 msgstr ""
13396
13397 #. type: =item
13398 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
13399 msgid "C<devices>"
13400 msgstr ""
13401
13402 #. type: textblock
13403 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
13404 msgid "The number of underlying devices in the MD device."
13405 msgstr ""
13406
13407 #. type: =item
13408 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
13409 msgid "C<metadata>"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
13414 msgid "The metadata version used."
13415 msgstr ""
13416
13417 #. type: =item
13418 #: ../fish/guestfish-actions.pod:3242 ../src/guestfs-actions.pod:4996
13419 msgid "C<uuid>"
13420 msgstr ""
13421
13422 #. type: textblock
13423 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
13424 msgid "The UUID of the MD device."
13425 msgstr ""
13426
13427 #. type: textblock
13428 #: ../fish/guestfish-actions.pod:3248 ../src/guestfs-actions.pod:5002
13429 msgid "The name of the MD device."
13430 msgstr ""
13431
13432 #. type: =head2
13433 #: ../fish/guestfish-actions.pod:3252
13434 msgid "md-stop"
13435 msgstr ""
13436
13437 #. type: verbatim
13438 #: ../fish/guestfish-actions.pod:3254
13439 #, no-wrap
13440 msgid ""
13441 " md-stop md\n"
13442 "\n"
13443 msgstr ""
13444
13445 #. type: textblock
13446 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
13447 msgid ""
13448 "This command deactivates the MD array named C<md>.  The device is stopped, "
13449 "but it is not destroyed or zeroed."
13450 msgstr ""
13451
13452 #. type: =head2
13453 #: ../fish/guestfish-actions.pod:3259
13454 msgid "mkdir"
13455 msgstr ""
13456
13457 #. type: verbatim
13458 #: ../fish/guestfish-actions.pod:3261
13459 #, no-wrap
13460 msgid ""
13461 " mkdir path\n"
13462 "\n"
13463 msgstr ""
13464
13465 #. type: textblock
13466 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5029
13467 msgid "Create a directory named C<path>."
13468 msgstr ""
13469
13470 #. type: =head2
13471 #: ../fish/guestfish-actions.pod:3265
13472 msgid "mkdir-mode"
13473 msgstr ""
13474
13475 #. type: verbatim
13476 #: ../fish/guestfish-actions.pod:3267
13477 #, no-wrap
13478 msgid ""
13479 " mkdir-mode path mode\n"
13480 "\n"
13481 msgstr ""
13482
13483 #. type: textblock
13484 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5042
13485 msgid ""
13486 "This command creates a directory, setting the initial permissions of the "
13487 "directory to C<mode>."
13488 msgstr ""
13489
13490 #. type: textblock
13491 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:5045
13492 msgid ""
13493 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13494 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13495 "other ways."
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:3276
13500 msgid "See also L</mkdir>, L</umask>"
13501 msgstr ""
13502
13503 #. type: =head2
13504 #: ../fish/guestfish-actions.pod:3278
13505 msgid "mkdir-p"
13506 msgstr ""
13507
13508 #. type: verbatim
13509 #: ../fish/guestfish-actions.pod:3280
13510 #, no-wrap
13511 msgid ""
13512 " mkdir-p path\n"
13513 "\n"
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3282 ../src/guestfs-actions.pod:5061
13518 msgid ""
13519 "Create a directory named C<path>, creating any parent directories as "
13520 "necessary.  This is like the C<mkdir -p> shell command."
13521 msgstr ""
13522
13523 #. type: =head2
13524 #: ../fish/guestfish-actions.pod:3285
13525 msgid "mkdtemp"
13526 msgstr ""
13527
13528 #. type: verbatim
13529 #: ../fish/guestfish-actions.pod:3287
13530 #, no-wrap
13531 msgid ""
13532 " mkdtemp template\n"
13533 "\n"
13534 msgstr ""
13535
13536 #. type: textblock
13537 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5074
13538 msgid ""
13539 "This command creates a temporary directory.  The C<template> parameter "
13540 "should be a full pathname for the temporary directory name with the final "
13541 "six characters being \"XXXXXX\"."
13542 msgstr ""
13543
13544 #. type: textblock
13545 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5079
13546 msgid ""
13547 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13548 "being suitable for Windows filesystems."
13549 msgstr ""
13550
13551 #. type: textblock
13552 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:5082
13553 msgid "The name of the temporary directory that was created is returned."
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
13558 msgid "The temporary directory is created with mode 0700 and is owned by root."
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
13563 msgid ""
13564 "The caller is responsible for deleting the temporary directory and its "
13565 "contents after use."
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
13570 msgid "See also: L<mkdtemp(3)>"
13571 msgstr ""
13572
13573 #. type: =head2
13574 #: ../fish/guestfish-actions.pod:3308
13575 msgid "mke2fs-J"
13576 msgstr ""
13577
13578 #. type: verbatim
13579 #: ../fish/guestfish-actions.pod:3310
13580 #, no-wrap
13581 msgid ""
13582 " mke2fs-J fstype blocksize device journal\n"
13583 "\n"
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5107
13588 msgid ""
13589 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13590 "C<journal>.  It is equivalent to the command:"
13591 msgstr ""
13592
13593 #. type: verbatim
13594 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5111
13595 #, no-wrap
13596 msgid ""
13597 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13598 "\n"
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:3318
13603 msgid "See also L</mke2journal>."
13604 msgstr ""
13605
13606 #. type: =head2
13607 #: ../fish/guestfish-actions.pod:3320
13608 msgid "mke2fs-JL"
13609 msgstr ""
13610
13611 #. type: verbatim
13612 #: ../fish/guestfish-actions.pod:3322
13613 #, no-wrap
13614 msgid ""
13615 " mke2fs-JL fstype blocksize device label\n"
13616 "\n"
13617 msgstr ""
13618
13619 #. type: textblock
13620 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5128
13621 msgid ""
13622 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13623 "the journal labeled C<label>."
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:3327
13628 msgid "See also L</mke2journal-L>."
13629 msgstr ""
13630
13631 #. type: =head2
13632 #: ../fish/guestfish-actions.pod:3329
13633 msgid "mke2fs-JU"
13634 msgstr ""
13635
13636 #. type: verbatim
13637 #: ../fish/guestfish-actions.pod:3331
13638 #, no-wrap
13639 msgid ""
13640 " mke2fs-JU fstype blocksize device uuid\n"
13641 "\n"
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../fish/guestfish-actions.pod:3333 ../src/guestfs-actions.pod:5146
13646 msgid ""
13647 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13648 "the journal with UUID C<uuid>."
13649 msgstr ""
13650
13651 #. type: textblock
13652 #: ../fish/guestfish-actions.pod:3336
13653 msgid "See also L</mke2journal-U>."
13654 msgstr ""
13655
13656 #. type: =head2
13657 #: ../fish/guestfish-actions.pod:3338
13658 msgid "mke2journal"
13659 msgstr ""
13660
13661 #. type: verbatim
13662 #: ../fish/guestfish-actions.pod:3340
13663 #, no-wrap
13664 msgid ""
13665 " mke2journal blocksize device\n"
13666 "\n"
13667 msgstr ""
13668
13669 #. type: textblock
13670 #: ../fish/guestfish-actions.pod:3342 ../src/guestfs-actions.pod:5162
13671 msgid ""
13672 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13673 "command:"
13674 msgstr ""
13675
13676 #. type: verbatim
13677 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5165
13678 #, no-wrap
13679 msgid ""
13680 " mke2fs -O journal_dev -b blocksize device\n"
13681 "\n"
13682 msgstr ""
13683
13684 #. type: =head2
13685 #: ../fish/guestfish-actions.pod:3347
13686 msgid "mke2journal-L"
13687 msgstr ""
13688
13689 #. type: verbatim
13690 #: ../fish/guestfish-actions.pod:3349
13691 #, no-wrap
13692 msgid ""
13693 " mke2journal-L blocksize label device\n"
13694 "\n"
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5179
13699 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13700 msgstr ""
13701
13702 #. type: =head2
13703 #: ../fish/guestfish-actions.pod:3353
13704 msgid "mke2journal-U"
13705 msgstr ""
13706
13707 #. type: verbatim
13708 #: ../fish/guestfish-actions.pod:3355
13709 #, no-wrap
13710 msgid ""
13711 " mke2journal-U blocksize uuid device\n"
13712 "\n"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5193
13717 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13718 msgstr ""
13719
13720 #. type: =head2
13721 #: ../fish/guestfish-actions.pod:3359
13722 msgid "mkfifo"
13723 msgstr ""
13724
13725 #. type: verbatim
13726 #: ../fish/guestfish-actions.pod:3361
13727 #, no-wrap
13728 msgid ""
13729 " mkfifo mode path\n"
13730 "\n"
13731 msgstr ""
13732
13733 #. type: textblock
13734 #: ../fish/guestfish-actions.pod:3363
13735 msgid ""
13736 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13737 "is just a convenient wrapper around L</mknod>."
13738 msgstr ""
13739
13740 #. type: =head2
13741 #: ../fish/guestfish-actions.pod:3369
13742 msgid "mkfs"
13743 msgstr ""
13744
13745 #. type: verbatim
13746 #: ../fish/guestfish-actions.pod:3371
13747 #, no-wrap
13748 msgid ""
13749 " mkfs fstype device\n"
13750 "\n"
13751 msgstr ""
13752
13753 #. type: textblock
13754 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5223
13755 msgid ""
13756 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13757 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13758 msgstr ""
13759
13760 #. type: =head2
13761 #: ../fish/guestfish-actions.pod:3377
13762 msgid "mkfs-b"
13763 msgstr ""
13764
13765 #. type: verbatim
13766 #: ../fish/guestfish-actions.pod:3379
13767 #, no-wrap
13768 msgid ""
13769 " mkfs-b fstype blocksize device\n"
13770 "\n"
13771 msgstr ""
13772
13773 #. type: textblock
13774 #: ../fish/guestfish-actions.pod:3381
13775 msgid ""
13776 "This call is similar to L</mkfs>, but it allows you to control the block "
13777 "size of the resulting filesystem.  Supported block sizes depend on the "
13778 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3413
13783 #: ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5289
13784 msgid ""
13785 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13786 "cluster size."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:3389
13791 msgid ""
13792 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13793 "instead."
13794 msgstr ""
13795
13796 #. type: =head2
13797 #: ../fish/guestfish-actions.pod:3396
13798 msgid "mkfs-opts"
13799 msgstr ""
13800
13801 #. type: verbatim
13802 #: ../fish/guestfish-actions.pod:3398
13803 #, no-wrap
13804 msgid ""
13805 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13806 "\n"
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5276
13811 msgid ""
13812 "This function creates a filesystem on C<device>.  The filesystem type is "
13813 "C<fstype>, for example C<ext3>."
13814 msgstr ""
13815
13816 #. type: =item
13817 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5283
13818 msgid "C<blocksize>"
13819 msgstr ""
13820
13821 #. type: textblock
13822 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5285
13823 msgid ""
13824 "The filesystem block size.  Supported block sizes depend on the filesystem "
13825 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13826 "filesystems."
13827 msgstr ""
13828
13829 #. type: textblock
13830 #: ../fish/guestfish-actions.pod:3416 ../src/guestfs-actions.pod:5292
13831 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13832 msgstr ""
13833
13834 #. type: =item
13835 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5294
13836 msgid "C<features>"
13837 msgstr ""
13838
13839 #. type: textblock
13840 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5296
13841 msgid "This passes the I<-O> parameter to the external mkfs program."
13842 msgstr ""
13843
13844 #. type: textblock
13845 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
13846 msgid ""
13847 "For certain filesystem types, this allows extra filesystem features to be "
13848 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13849 msgstr ""
13850
13851 #. type: textblock
13852 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
13853 msgid ""
13854 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13855 "type."
13856 msgstr ""
13857
13858 #. type: =item
13859 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5305
13860 msgid "C<inode>"
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5307
13865 msgid ""
13866 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13867 "sets the inode size (only for ext2/3/4 filesystems at present)."
13868 msgstr ""
13869
13870 #. type: =item
13871 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5310
13872 msgid "C<sectorsize>"
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5312
13877 msgid ""
13878 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13879 "sets sector size for ufs filesystem."
13880 msgstr ""
13881
13882 #. type: =head2
13883 #: ../fish/guestfish-actions.pod:3443
13884 msgid "mkmountpoint"
13885 msgstr ""
13886
13887 #. type: verbatim
13888 #: ../fish/guestfish-actions.pod:3445
13889 #, no-wrap
13890 msgid ""
13891 " mkmountpoint exemptpath\n"
13892 "\n"
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:3447
13897 msgid ""
13898 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13899 "to create extra mountpoints before mounting the first filesystem."
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5355
13904 msgid ""
13905 "These calls are I<only> necessary in some very limited circumstances, mainly "
13906 "the case where you want to mount a mix of unrelated and/or read-only "
13907 "filesystems together."
13908 msgstr ""
13909
13910 #. type: textblock
13911 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5359
13912 msgid ""
13913 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13914 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13915 "inside that.  You can unpack this as follows in guestfish:"
13916 msgstr ""
13917
13918 #. type: verbatim
13919 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5364
13920 #, no-wrap
13921 msgid ""
13922 " add-ro Fedora-11-i686-Live.iso\n"
13923 " run\n"
13924 " mkmountpoint /cd\n"
13925 " mkmountpoint /sqsh\n"
13926 " mkmountpoint /ext3fs\n"
13927 " mount /dev/sda /cd\n"
13928 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13929 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13930 "\n"
13931 msgstr ""
13932
13933 #. type: textblock
13934 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5373
13935 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:3471
13940 msgid ""
13941 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13942 "unexpected errors if you try to mix these calls.  It is safest to manually "
13943 "unmount filesystems and remove mountpoints after use."
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:3475
13948 msgid ""
13949 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13950 "for this to work for manual mountpoints, you must ensure that the innermost "
13951 "mountpoints have the longest pathnames, as in the example code above."
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../fish/guestfish-actions.pod:3480 ../src/guestfs-actions.pod:5384
13956 msgid ""
13957 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13958 msgstr ""
13959
13960 #. type: textblock
13961 #: ../fish/guestfish-actions.pod:3482
13962 msgid ""
13963 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13964 "L</umount-all> to be called when the handle is closed which can also trigger "
13965 "these issues."
13966 msgstr ""
13967
13968 #. type: =head2
13969 #: ../fish/guestfish-actions.pod:3486
13970 msgid "mknod"
13971 msgstr ""
13972
13973 #. type: verbatim
13974 #: ../fish/guestfish-actions.pod:3488
13975 #, no-wrap
13976 msgid ""
13977 " mknod mode devmajor devminor path\n"
13978 "\n"
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5403
13983 msgid ""
13984 "This call creates block or character special devices, or named pipes (FIFOs)."
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../fish/guestfish-actions.pod:3493 ../src/guestfs-actions.pod:5406
13989 msgid ""
13990 "The C<mode> parameter should be the mode, using the standard constants.  "
13991 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13992 "used when creating block and character special devices."
13993 msgstr ""
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:3498
13997 msgid ""
13998 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13999 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14000 "regular file).  These constants are available in the standard Linux header "
14001 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14002 "wrappers around this command which bitwise OR in the appropriate constant "
14003 "for you."
14004 msgstr ""
14005
14006 #. type: =head2
14007 #: ../fish/guestfish-actions.pod:3508
14008 msgid "mknod-b"
14009 msgstr ""
14010
14011 #. type: verbatim
14012 #: ../fish/guestfish-actions.pod:3510
14013 #, no-wrap
14014 msgid ""
14015 " mknod-b mode devmajor devminor path\n"
14016 "\n"
14017 msgstr ""
14018
14019 #. type: textblock
14020 #: ../fish/guestfish-actions.pod:3512
14021 msgid ""
14022 "This call creates a block device node called C<path> with mode C<mode> and "
14023 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14024 "wrapper around L</mknod>."
14025 msgstr ""
14026
14027 #. type: =head2
14028 #: ../fish/guestfish-actions.pod:3518
14029 msgid "mknod-c"
14030 msgstr ""
14031
14032 #. type: verbatim
14033 #: ../fish/guestfish-actions.pod:3520
14034 #, no-wrap
14035 msgid ""
14036 " mknod-c mode devmajor devminor path\n"
14037 "\n"
14038 msgstr ""
14039
14040 #. type: textblock
14041 #: ../fish/guestfish-actions.pod:3522
14042 msgid ""
14043 "This call creates a char device node called C<path> with mode C<mode> and "
14044 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14045 "wrapper around L</mknod>."
14046 msgstr ""
14047
14048 #. type: =head2
14049 #: ../fish/guestfish-actions.pod:3528
14050 msgid "mkswap"
14051 msgstr ""
14052
14053 #. type: verbatim
14054 #: ../fish/guestfish-actions.pod:3530
14055 #, no-wrap
14056 msgid ""
14057 " mkswap device\n"
14058 "\n"
14059 msgstr ""
14060
14061 #. type: textblock
14062 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5469
14063 msgid "Create a swap partition on C<device>."
14064 msgstr ""
14065
14066 #. type: =head2
14067 #: ../fish/guestfish-actions.pod:3534
14068 msgid "mkswap-L"
14069 msgstr ""
14070
14071 #. type: verbatim
14072 #: ../fish/guestfish-actions.pod:3536
14073 #, no-wrap
14074 msgid ""
14075 " mkswap-L label device\n"
14076 "\n"
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5482
14081 msgid "Create a swap partition on C<device> with label C<label>."
14082 msgstr ""
14083
14084 #. type: textblock
14085 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5484
14086 msgid ""
14087 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14088 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14089 "or swap tools."
14090 msgstr ""
14091
14092 #. type: =head2
14093 #: ../fish/guestfish-actions.pod:3544
14094 msgid "mkswap-U"
14095 msgstr ""
14096
14097 #. type: verbatim
14098 #: ../fish/guestfish-actions.pod:3546
14099 #, no-wrap
14100 msgid ""
14101 " mkswap-U uuid device\n"
14102 "\n"
14103 msgstr ""
14104
14105 #. type: textblock
14106 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5499
14107 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14108 msgstr ""
14109
14110 #. type: =head2
14111 #: ../fish/guestfish-actions.pod:3550
14112 msgid "mkswap-file"
14113 msgstr ""
14114
14115 #. type: verbatim
14116 #: ../fish/guestfish-actions.pod:3552
14117 #, no-wrap
14118 msgid ""
14119 " mkswap-file path\n"
14120 "\n"
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
14125 msgid "Create a swap file."
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:3556
14130 msgid ""
14131 "This command just writes a swap file signature to an existing file.  To "
14132 "create the file itself, use something like L</fallocate>."
14133 msgstr ""
14134
14135 #. type: =head2
14136 #: ../fish/guestfish-actions.pod:3559
14137 msgid "modprobe"
14138 msgstr ""
14139
14140 #. type: verbatim
14141 #: ../fish/guestfish-actions.pod:3561
14142 #, no-wrap
14143 msgid ""
14144 " modprobe modulename\n"
14145 "\n"
14146 msgstr ""
14147
14148 #. type: textblock
14149 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5526
14150 msgid "This loads a kernel module in the appliance."
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5528
14155 msgid ""
14156 "The kernel module must have been whitelisted when libguestfs was built (see "
14157 "C<appliance/kmod.whitelist.in> in the source)."
14158 msgstr ""
14159
14160 #. type: =head2
14161 #: ../fish/guestfish-actions.pod:3568
14162 msgid "mount"
14163 msgstr ""
14164
14165 #. type: verbatim
14166 #: ../fish/guestfish-actions.pod:3570
14167 #, no-wrap
14168 msgid ""
14169 " mount device mountpoint\n"
14170 "\n"
14171 msgstr ""
14172
14173 #. type: textblock
14174 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5542
14175 msgid ""
14176 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14177 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14178 "those block devices contain partitions, they will have the usual names (eg. "
14179 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14180 msgstr ""
14181
14182 #. type: textblock
14183 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
14184 msgid ""
14185 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14186 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14187 "mounted on directories which already exist."
14188 msgstr ""
14189
14190 #. type: textblock
14191 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5553
14192 msgid ""
14193 "The mounted filesystem is writable, if we have sufficient permissions on the "
14194 "underlying device."
14195 msgstr ""
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3586
14199 msgid ""
14200 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14201 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14202 "problems for users.  If your program might need to work with older versions "
14203 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14204 "first parameter if you don't want any options)."
14205 msgstr ""
14206
14207 #. type: =head2
14208 #: ../fish/guestfish-actions.pod:3593
14209 msgid "mount-9p"
14210 msgstr ""
14211
14212 #. type: verbatim
14213 #: ../fish/guestfish-actions.pod:3595
14214 #, no-wrap
14215 msgid ""
14216 " mount-9p mounttag mountpoint [options:..]\n"
14217 "\n"
14218 msgstr ""
14219
14220 #. type: textblock
14221 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5582
14222 msgid ""
14223 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14224 "C<mountpoint>."
14225 msgstr ""
14226
14227 #. type: textblock
14228 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5585
14229 msgid ""
14230 "If required, C<trans=virtio> will be automatically added to the options.  "
14231 "Any other options required can be passed in the optional C<options> "
14232 "parameter."
14233 msgstr ""
14234
14235 #. type: =head2
14236 #: ../fish/guestfish-actions.pod:3606
14237 msgid "mount-loop"
14238 msgstr ""
14239
14240 #. type: verbatim
14241 #: ../fish/guestfish-actions.pod:3608
14242 #, no-wrap
14243 msgid ""
14244 " mount-loop file mountpoint\n"
14245 "\n"
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5624
14250 msgid ""
14251 "This command lets you mount C<file> (a filesystem image in a file) on a "
14252 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14253 "mountpoint>."
14254 msgstr ""
14255
14256 #. type: =head2
14257 #: ../fish/guestfish-actions.pod:3614
14258 msgid "mount-options"
14259 msgstr ""
14260
14261 #. type: verbatim
14262 #: ../fish/guestfish-actions.pod:3616
14263 #, no-wrap
14264 msgid ""
14265 " mount-options options device mountpoint\n"
14266 "\n"
14267 msgstr ""
14268
14269 #. type: textblock
14270 #: ../fish/guestfish-actions.pod:3618
14271 msgid ""
14272 "This is the same as the L</mount> command, but it allows you to set the "
14273 "mount options as for the L<mount(8)> I<-o> flag."
14274 msgstr ""
14275
14276 #. type: textblock
14277 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5644
14278 msgid ""
14279 "If the C<options> parameter is an empty string, then no options are passed "
14280 "(all options default to whatever the filesystem uses)."
14281 msgstr ""
14282
14283 #. type: =head2
14284 #: ../fish/guestfish-actions.pod:3626
14285 msgid "mount-ro"
14286 msgstr ""
14287
14288 #. type: verbatim
14289 #: ../fish/guestfish-actions.pod:3628
14290 #, no-wrap
14291 msgid ""
14292 " mount-ro device mountpoint\n"
14293 "\n"
14294 msgstr ""
14295
14296 #. type: textblock
14297 #: ../fish/guestfish-actions.pod:3630
14298 msgid ""
14299 "This is the same as the L</mount> command, but it mounts the filesystem with "
14300 "the read-only (I<-o ro>) flag."
14301 msgstr ""
14302
14303 #. type: =head2
14304 #: ../fish/guestfish-actions.pod:3633
14305 msgid "mount-vfs"
14306 msgstr ""
14307
14308 #. type: verbatim
14309 #: ../fish/guestfish-actions.pod:3635
14310 #, no-wrap
14311 msgid ""
14312 " mount-vfs options vfstype device mountpoint\n"
14313 "\n"
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:3637
14318 msgid ""
14319 "This is the same as the L</mount> command, but it allows you to set both the "
14320 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14321 msgstr ""
14322
14323 #. type: =head2
14324 #: ../fish/guestfish-actions.pod:3641
14325 msgid "mountpoints"
14326 msgstr ""
14327
14328 #. type: verbatim
14329 #: ../fish/guestfish-actions.pod:3643
14330 #, no-wrap
14331 msgid ""
14332 " mountpoints\n"
14333 "\n"
14334 msgstr ""
14335
14336 #. type: textblock
14337 #: ../fish/guestfish-actions.pod:3645
14338 msgid ""
14339 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14340 "This one returns a hash table (map) of device name to directory where the "
14341 "device is mounted."
14342 msgstr ""
14343
14344 #. type: =head2
14345 #: ../fish/guestfish-actions.pod:3649
14346 msgid "mounts"
14347 msgstr ""
14348
14349 #. type: verbatim
14350 #: ../fish/guestfish-actions.pod:3651
14351 #, no-wrap
14352 msgid ""
14353 " mounts\n"
14354 "\n"
14355 msgstr ""
14356
14357 #. type: textblock
14358 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5705
14359 msgid ""
14360 "This returns the list of currently mounted filesystems.  It returns the list "
14361 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14362 msgstr ""
14363
14364 #. type: textblock
14365 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5708
14366 msgid "Some internal mounts are not shown."
14367 msgstr ""
14368
14369 #. type: textblock
14370 #: ../fish/guestfish-actions.pod:3658
14371 msgid "See also: L</mountpoints>"
14372 msgstr ""
14373
14374 #. type: =head2
14375 #: ../fish/guestfish-actions.pod:3660
14376 msgid "mv"
14377 msgstr ""
14378
14379 #. type: verbatim
14380 #: ../fish/guestfish-actions.pod:3662
14381 #, no-wrap
14382 msgid ""
14383 " mv src dest\n"
14384 "\n"
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5725
14389 msgid ""
14390 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14391 "destination filename or destination directory."
14392 msgstr ""
14393
14394 #. type: =head2
14395 #: ../fish/guestfish-actions.pod:3667
14396 msgid "ntfs-3g-probe"
14397 msgstr ""
14398
14399 #. type: verbatim
14400 #: ../fish/guestfish-actions.pod:3669
14401 #, no-wrap
14402 msgid ""
14403 " ntfs-3g-probe true|false device\n"
14404 "\n"
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5739
14409 msgid ""
14410 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14411 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14412 "write, and some cannot be mounted at all)."
14413 msgstr ""
14414
14415 #. type: textblock
14416 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5743
14417 msgid ""
14418 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14419 "can be mounted read-write.  Set it to false if you want to test if the "
14420 "volume can be mounted read-only."
14421 msgstr ""
14422
14423 #. type: textblock
14424 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5747
14425 msgid ""
14426 "The return value is an integer which C<0> if the operation would succeed, or "
14427 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14428 msgstr ""
14429
14430 #. type: =head2
14431 #: ../fish/guestfish-actions.pod:3683
14432 msgid "ntfsresize"
14433 msgstr ""
14434
14435 #. type: verbatim
14436 #: ../fish/guestfish-actions.pod:3685
14437 #, no-wrap
14438 msgid ""
14439 " ntfsresize device\n"
14440 "\n"
14441 msgstr ""
14442
14443 #. type: textblock
14444 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3711
14445 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5800
14446 msgid ""
14447 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14448 "size of the underlying device."
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5771
14453 msgid ""
14454 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14455 "consistency check (for safety).  You have to boot into Windows to perform "
14456 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14457 "resize filesystems which have been marked in this way.  So in effect it is "
14458 "not possible to call ntfsresize multiple times on a single filesystem "
14459 "without booting into Windows between each resize."
14460 msgstr ""
14461
14462 #. type: textblock
14463 #: ../fish/guestfish-actions.pod:3698 ../fish/guestfish-actions.pod:3737
14464 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5826
14465 msgid "See also L<ntfsresize(8)>."
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:3700 ../fish/guestfish-actions.pod:3748
14470 msgid ""
14471 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14472 "call instead."
14473 msgstr ""
14474
14475 #. type: =head2
14476 #: ../fish/guestfish-actions.pod:3707
14477 msgid "ntfsresize-opts"
14478 msgstr ""
14479
14480 #. type: verbatim
14481 #: ../fish/guestfish-actions.pod:3709
14482 #, no-wrap
14483 msgid ""
14484 " ntfsresize-opts device [size:N] [force:true|false]\n"
14485 "\n"
14486 msgstr ""
14487
14488 #. type: textblock
14489 #: ../fish/guestfish-actions.pod:3720 ../src/guestfs-actions.pod:5809
14490 msgid ""
14491 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14492 "resized to fit the container (eg. partition)."
14493 msgstr ""
14494
14495 #. type: =item
14496 #: ../fish/guestfish-actions.pod:3723 ../fish/guestfish-actions.pod:5044
14497 #: ../src/guestfs-actions.pod:5812 ../src/guestfs-actions.pod:7783
14498 msgid "C<force>"
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:3725 ../src/guestfs-actions.pod:5814
14503 msgid ""
14504 "If this option is true, then force the resize of the filesystem even if the "
14505 "filesystem is marked as requiring a consistency check."
14506 msgstr ""
14507
14508 #. type: textblock
14509 #: ../fish/guestfish-actions.pod:3728
14510 msgid ""
14511 "After the resize operation, the filesystem is always marked as requiring a "
14512 "consistency check (for safety).  You have to boot into Windows to perform "
14513 "this check and clear this condition.  If you I<don't> set the C<force> "
14514 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14515 "a single filesystem without booting into Windows between each resize."
14516 msgstr ""
14517
14518 #. type: =head2
14519 #: ../fish/guestfish-actions.pod:3741
14520 msgid "ntfsresize-size"
14521 msgstr ""
14522
14523 #. type: verbatim
14524 #: ../fish/guestfish-actions.pod:3743
14525 #, no-wrap
14526 msgid ""
14527 " ntfsresize-size device size\n"
14528 "\n"
14529 msgstr ""
14530
14531 #. type: textblock
14532 #: ../fish/guestfish-actions.pod:3745
14533 msgid ""
14534 "This command is the same as L</ntfsresize> except that it allows you to "
14535 "specify the new size (in bytes) explicitly."
14536 msgstr ""
14537
14538 #. type: =head2
14539 #: ../fish/guestfish-actions.pod:3755
14540 msgid "part-add"
14541 msgstr ""
14542
14543 #. type: verbatim
14544 #: ../fish/guestfish-actions.pod:3757
14545 #, no-wrap
14546 msgid ""
14547 " part-add device prlogex startsect endsect\n"
14548 "\n"
14549 msgstr ""
14550
14551 #. type: textblock
14552 #: ../fish/guestfish-actions.pod:3759
14553 msgid ""
14554 "This command adds a partition to C<device>.  If there is no partition table "
14555 "on the device, call L</part-init> first."
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5887
14560 msgid ""
14561 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14562 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14563 "C<logical>) and C<e> (or C<extended>) partition types."
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5892
14568 msgid ""
14569 "C<startsect> and C<endsect> are the start and end of the partition in "
14570 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14571 "from the end of the disk (C<-1> is the last sector)."
14572 msgstr ""
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:3771
14576 msgid ""
14577 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14578 "part-disk> to do that."
14579 msgstr ""
14580
14581 #. type: =head2
14582 #: ../fish/guestfish-actions.pod:3774
14583 msgid "part-del"
14584 msgstr ""
14585
14586 #. type: verbatim
14587 #: ../fish/guestfish-actions.pod:3776
14588 #, no-wrap
14589 msgid ""
14590 " part-del device partnum\n"
14591 "\n"
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5910
14596 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5912
14601 msgid ""
14602 "Note that in the case of MBR partitioning, deleting an extended partition "
14603 "also deletes any logical partitions it contains."
14604 msgstr ""
14605
14606 #. type: =head2
14607 #: ../fish/guestfish-actions.pod:3784
14608 msgid "part-disk"
14609 msgstr ""
14610
14611 #. type: verbatim
14612 #: ../fish/guestfish-actions.pod:3786
14613 #, no-wrap
14614 msgid ""
14615 " part-disk device parttype\n"
14616 "\n"
14617 msgstr ""
14618
14619 #. type: textblock
14620 #: ../fish/guestfish-actions.pod:3788
14621 msgid ""
14622 "This command is simply a combination of L</part-init> followed by L</part-"
14623 "add> to create a single primary partition covering the whole disk."
14624 msgstr ""
14625
14626 #. type: textblock
14627 #: ../fish/guestfish-actions.pod:3792
14628 msgid ""
14629 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14630 "possible values are described in L</part-init>."
14631 msgstr ""
14632
14633 #. type: =head2
14634 #: ../fish/guestfish-actions.pod:3795
14635 msgid "part-get-bootable"
14636 msgstr ""
14637
14638 #. type: verbatim
14639 #: ../fish/guestfish-actions.pod:3797
14640 #, no-wrap
14641 msgid ""
14642 " part-get-bootable device partnum\n"
14643 "\n"
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5945
14648 msgid ""
14649 "This command returns true if the partition C<partnum> on C<device> has the "
14650 "bootable flag set."
14651 msgstr ""
14652
14653 #. type: textblock
14654 #: ../fish/guestfish-actions.pod:3802
14655 msgid "See also L</part-set-bootable>."
14656 msgstr ""
14657
14658 #. type: =head2
14659 #: ../fish/guestfish-actions.pod:3804
14660 msgid "part-get-mbr-id"
14661 msgstr ""
14662
14663 #. type: verbatim
14664 #: ../fish/guestfish-actions.pod:3806
14665 #, no-wrap
14666 msgid ""
14667 " part-get-mbr-id device partnum\n"
14668 "\n"
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
14673 msgid ""
14674 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14675 "partition C<partnum>."
14676 msgstr ""
14677
14678 #. type: textblock
14679 #: ../fish/guestfish-actions.pod:3811 ../fish/guestfish-actions.pod:3955
14680 msgid ""
14681 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14682 "undefined results for other partition table types (see L</part-get-"
14683 "parttype>)."
14684 msgstr ""
14685
14686 #. type: =head2
14687 #: ../fish/guestfish-actions.pod:3815
14688 msgid "part-get-parttype"
14689 msgstr ""
14690
14691 #. type: verbatim
14692 #: ../fish/guestfish-actions.pod:3817
14693 #, no-wrap
14694 msgid ""
14695 " part-get-parttype device\n"
14696 "\n"
14697 msgstr ""
14698
14699 #. type: textblock
14700 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5978
14701 msgid ""
14702 "This command examines the partition table on C<device> and returns the "
14703 "partition table type (format) being used."
14704 msgstr ""
14705
14706 #. type: textblock
14707 #: ../fish/guestfish-actions.pod:3822
14708 msgid ""
14709 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14710 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14711 "possible, although unusual.  See L</part-init> for a full list."
14712 msgstr ""
14713
14714 #. type: =head2
14715 #: ../fish/guestfish-actions.pod:3827
14716 msgid "part-init"
14717 msgstr ""
14718
14719 #. type: verbatim
14720 #: ../fish/guestfish-actions.pod:3829
14721 #, no-wrap
14722 msgid ""
14723 " part-init device parttype\n"
14724 "\n"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5998
14729 msgid ""
14730 "This creates an empty partition table on C<device> of one of the partition "
14731 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14732 "(for large disks)."
14733 msgstr ""
14734
14735 #. type: textblock
14736 #: ../fish/guestfish-actions.pod:3835
14737 msgid ""
14738 "Initially there are no partitions.  Following this, you should call L</part-"
14739 "add> for each partition required."
14740 msgstr ""
14741
14742 #. type: textblock
14743 #: ../fish/guestfish-actions.pod:3838 ../src/guestfs-actions.pod:6005
14744 msgid "Possible values for C<parttype> are:"
14745 msgstr ""
14746
14747 #. type: =item
14748 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:6009
14749 msgid "B<efi>"
14750 msgstr ""
14751
14752 #. type: =item
14753 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
14754 msgid "B<gpt>"
14755 msgstr ""
14756
14757 #. type: textblock
14758 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:6013
14759 msgid "Intel EFI / GPT partition table."
14760 msgstr ""
14761
14762 #. type: textblock
14763 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
14764 msgid ""
14765 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14766 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14767 "the C<mbr> format."
14768 msgstr ""
14769
14770 #. type: =item
14771 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
14772 msgid "B<mbr>"
14773 msgstr ""
14774
14775 #. type: =item
14776 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
14777 msgid "B<msdos>"
14778 msgstr ""
14779
14780 #. type: textblock
14781 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6023
14782 msgid ""
14783 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14784 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14785 "TB.  For large disks we recommend using C<gpt>."
14786 msgstr ""
14787
14788 #. type: textblock
14789 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6030
14790 msgid ""
14791 "Other partition table types that may work but are not supported include:"
14792 msgstr ""
14793
14794 #. type: =item
14795 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:6035
14796 msgid "B<aix>"
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6037
14801 msgid "AIX disk labels."
14802 msgstr ""
14803
14804 #. type: =item
14805 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:6039
14806 msgid "B<amiga>"
14807 msgstr ""
14808
14809 #. type: =item
14810 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
14811 msgid "B<rdb>"
14812 msgstr ""
14813
14814 #. type: textblock
14815 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
14816 msgid "Amiga \"Rigid Disk Block\" format."
14817 msgstr ""
14818
14819 #. type: =item
14820 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
14821 msgid "B<bsd>"
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
14826 msgid "BSD disk labels."
14827 msgstr ""
14828
14829 #. type: =item
14830 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
14831 msgid "B<dasd>"
14832 msgstr ""
14833
14834 #. type: textblock
14835 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
14836 msgid "DASD, used on IBM mainframes."
14837 msgstr ""
14838
14839 #. type: =item
14840 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
14841 msgid "B<dvh>"
14842 msgstr ""
14843
14844 #. type: textblock
14845 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
14846 msgid "MIPS/SGI volumes."
14847 msgstr ""
14848
14849 #. type: =item
14850 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
14851 msgid "B<mac>"
14852 msgstr ""
14853
14854 #. type: textblock
14855 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
14856 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14857 msgstr ""
14858
14859 #. type: =item
14860 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
14861 msgid "B<pc98>"
14862 msgstr ""
14863
14864 #. type: textblock
14865 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
14866 msgid "NEC PC-98 format, common in Japan apparently."
14867 msgstr ""
14868
14869 #. type: =item
14870 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
14871 msgid "B<sun>"
14872 msgstr ""
14873
14874 #. type: textblock
14875 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14876 msgid "Sun disk labels."
14877 msgstr ""
14878
14879 #. type: =head2
14880 #: ../fish/guestfish-actions.pod:3904
14881 msgid "part-list"
14882 msgstr ""
14883
14884 #. type: verbatim
14885 #: ../fish/guestfish-actions.pod:3906
14886 #, no-wrap
14887 msgid ""
14888 " part-list device\n"
14889 "\n"
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6081
14894 msgid ""
14895 "This command parses the partition table on C<device> and returns the list of "
14896 "partitions found."
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6084
14901 msgid "The fields in the returned structure are:"
14902 msgstr ""
14903
14904 #. type: =item
14905 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6088
14906 msgid "B<part_num>"
14907 msgstr ""
14908
14909 #. type: textblock
14910 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
14911 msgid "Partition number, counting from 1."
14912 msgstr ""
14913
14914 #. type: =item
14915 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6092
14916 msgid "B<part_start>"
14917 msgstr ""
14918
14919 #. type: textblock
14920 #: ../fish/guestfish-actions.pod:3921
14921 msgid ""
14922 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14923 "the device's sector size, see L</blockdev-getss>."
14924 msgstr ""
14925
14926 #. type: =item
14927 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6097
14928 msgid "B<part_end>"
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6099
14933 msgid "End of the partition in bytes."
14934 msgstr ""
14935
14936 #. type: =item
14937 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6101
14938 msgid "B<part_size>"
14939 msgstr ""
14940
14941 #. type: textblock
14942 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
14943 msgid "Size of the partition in bytes."
14944 msgstr ""
14945
14946 #. type: =head2
14947 #: ../fish/guestfish-actions.pod:3934
14948 msgid "part-set-bootable"
14949 msgstr ""
14950
14951 #. type: verbatim
14952 #: ../fish/guestfish-actions.pod:3936
14953 #, no-wrap
14954 msgid ""
14955 " part-set-bootable device partnum true|false\n"
14956 "\n"
14957 msgstr ""
14958
14959 #. type: textblock
14960 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6121
14961 msgid ""
14962 "This sets the bootable flag on partition numbered C<partnum> on device "
14963 "C<device>.  Note that partitions are numbered from 1."
14964 msgstr ""
14965
14966 #. type: textblock
14967 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6124
14968 msgid ""
14969 "The bootable flag is used by some operating systems (notably Windows) to "
14970 "determine which partition to boot from.  It is by no means universally "
14971 "recognized."
14972 msgstr ""
14973
14974 #. type: =head2
14975 #: ../fish/guestfish-actions.pod:3945
14976 msgid "part-set-mbr-id"
14977 msgstr ""
14978
14979 #. type: verbatim
14980 #: ../fish/guestfish-actions.pod:3947
14981 #, no-wrap
14982 msgid ""
14983 " part-set-mbr-id device partnum idbyte\n"
14984 "\n"
14985 msgstr ""
14986
14987 #. type: textblock
14988 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6140
14989 msgid ""
14990 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14991 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14992 "documentation are in fact hexadecimal numbers, but usually documented "
14993 "without any leading \"0x\" which might be confusing."
14994 msgstr ""
14995
14996 #. type: =head2
14997 #: ../fish/guestfish-actions.pod:3959
14998 msgid "part-set-name"
14999 msgstr ""
15000
15001 #. type: verbatim
15002 #: ../fish/guestfish-actions.pod:3961
15003 #, no-wrap
15004 msgid ""
15005 " part-set-name device partnum name\n"
15006 "\n"
15007 msgstr ""
15008
15009 #. type: textblock
15010 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6162
15011 msgid ""
15012 "This sets the partition name on partition numbered C<partnum> on device "
15013 "C<device>.  Note that partitions are numbered from 1."
15014 msgstr ""
15015
15016 #. type: textblock
15017 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6165
15018 msgid ""
15019 "The partition name can only be set on certain types of partition table.  "
15020 "This works on C<gpt> but not on C<mbr> partitions."
15021 msgstr ""
15022
15023 #. type: =head2
15024 #: ../fish/guestfish-actions.pod:3969
15025 msgid "part-to-dev"
15026 msgstr ""
15027
15028 #. type: verbatim
15029 #: ../fish/guestfish-actions.pod:3971
15030 #, no-wrap
15031 msgid ""
15032 " part-to-dev partition\n"
15033 "\n"
15034 msgstr ""
15035
15036 #. type: textblock
15037 #: ../fish/guestfish-actions.pod:3973 ../src/guestfs-actions.pod:6178
15038 msgid ""
15039 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15040 "partition number, returning the device name (eg. \"/dev/sdb\")."
15041 msgstr ""
15042
15043 #. type: textblock
15044 #: ../fish/guestfish-actions.pod:3977 ../fish/guestfish-actions.pod:3989
15045 msgid ""
15046 "The named partition must exist, for example as a string returned from L</"
15047 "list-partitions>."
15048 msgstr ""
15049
15050 #. type: textblock
15051 #: ../fish/guestfish-actions.pod:3980
15052 msgid "See also L</part-to-partnum>."
15053 msgstr ""
15054
15055 #. type: =head2
15056 #: ../fish/guestfish-actions.pod:3982
15057 msgid "part-to-partnum"
15058 msgstr ""
15059
15060 #. type: verbatim
15061 #: ../fish/guestfish-actions.pod:3984
15062 #, no-wrap
15063 msgid ""
15064 " part-to-partnum partition\n"
15065 "\n"
15066 msgstr ""
15067
15068 #. type: textblock
15069 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6198
15070 msgid ""
15071 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15072 "partition number (eg. C<1>)."
15073 msgstr ""
15074
15075 #. type: textblock
15076 #: ../fish/guestfish-actions.pod:3992
15077 msgid "See also L</part-to-dev>."
15078 msgstr ""
15079
15080 #. type: =head2
15081 #: ../fish/guestfish-actions.pod:3994
15082 msgid "ping-daemon"
15083 msgstr ""
15084
15085 #. type: verbatim
15086 #: ../fish/guestfish-actions.pod:3996
15087 #, no-wrap
15088 msgid ""
15089 " ping-daemon\n"
15090 "\n"
15091 msgstr ""
15092
15093 #. type: textblock
15094 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6215
15095 msgid ""
15096 "This is a test probe into the guestfs daemon running inside the qemu "
15097 "subprocess.  Calling this function checks that the daemon responds to the "
15098 "ping message, without affecting the daemon or attached block device(s) in "
15099 "any other way."
15100 msgstr ""
15101
15102 #. type: =head2
15103 #: ../fish/guestfish-actions.pod:4003
15104 msgid "pread"
15105 msgstr ""
15106
15107 #. type: verbatim
15108 #: ../fish/guestfish-actions.pod:4005
15109 #, no-wrap
15110 msgid ""
15111 " pread path count offset\n"
15112 "\n"
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../fish/guestfish-actions.pod:4007 ../src/guestfs-actions.pod:6233
15117 msgid ""
15118 "This command lets you read part of a file.  It reads C<count> bytes of the "
15119 "file, starting at C<offset>, from file C<path>."
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4025
15124 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
15125 msgid ""
15126 "This may read fewer bytes than requested.  For further details see the "
15127 "L<pread(2)> system call."
15128 msgstr ""
15129
15130 #. type: textblock
15131 #: ../fish/guestfish-actions.pod:4013
15132 msgid "See also L</pwrite>, L</pread-device>."
15133 msgstr ""
15134
15135 #. type: =head2
15136 #: ../fish/guestfish-actions.pod:4018
15137 msgid "pread-device"
15138 msgstr ""
15139
15140 #. type: verbatim
15141 #: ../fish/guestfish-actions.pod:4020
15142 #, no-wrap
15143 msgid ""
15144 " pread-device device count offset\n"
15145 "\n"
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6259
15150 msgid ""
15151 "This command lets you read part of a file.  It reads C<count> bytes of "
15152 "C<device>, starting at C<offset>."
15153 msgstr ""
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4028
15157 msgid "See also L</pread>."
15158 msgstr ""
15159
15160 #. type: =head2
15161 #: ../fish/guestfish-actions.pod:4033
15162 msgid "pvcreate"
15163 msgstr ""
15164
15165 #. type: verbatim
15166 #: ../fish/guestfish-actions.pod:4035
15167 #, no-wrap
15168 msgid ""
15169 " pvcreate device\n"
15170 "\n"
15171 msgstr ""
15172
15173 #. type: textblock
15174 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
15175 msgid ""
15176 "This creates an LVM physical volume on the named C<device>, where C<device> "
15177 "should usually be a partition name such as C</dev/sda1>."
15178 msgstr ""
15179
15180 #. type: =head2
15181 #: ../fish/guestfish-actions.pod:4041
15182 msgid "pvremove"
15183 msgstr ""
15184
15185 #. type: verbatim
15186 #: ../fish/guestfish-actions.pod:4043
15187 #, no-wrap
15188 msgid ""
15189 " pvremove device\n"
15190 "\n"
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
15195 msgid ""
15196 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15197 "it."
15198 msgstr ""
15199
15200 #. type: textblock
15201 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6299
15202 msgid ""
15203 "The implementation uses the C<pvremove> command which refuses to wipe "
15204 "physical volumes that contain any volume groups, so you have to remove those "
15205 "first."
15206 msgstr ""
15207
15208 #. type: =head2
15209 #: ../fish/guestfish-actions.pod:4052
15210 msgid "pvresize"
15211 msgstr ""
15212
15213 #. type: verbatim
15214 #: ../fish/guestfish-actions.pod:4054
15215 #, no-wrap
15216 msgid ""
15217 " pvresize device\n"
15218 "\n"
15219 msgstr ""
15220
15221 #. type: textblock
15222 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
15223 msgid ""
15224 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15225 "the new size of the underlying device."
15226 msgstr ""
15227
15228 #. type: =head2
15229 #: ../fish/guestfish-actions.pod:4059
15230 msgid "pvresize-size"
15231 msgstr ""
15232
15233 #. type: verbatim
15234 #: ../fish/guestfish-actions.pod:4061
15235 #, no-wrap
15236 msgid ""
15237 " pvresize-size device size\n"
15238 "\n"
15239 msgstr ""
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:4063
15243 msgid ""
15244 "This command is the same as L</pvresize> except that it allows you to "
15245 "specify the new size (in bytes) explicitly."
15246 msgstr ""
15247
15248 #. type: =head2
15249 #: ../fish/guestfish-actions.pod:4066
15250 msgid "pvs"
15251 msgstr ""
15252
15253 #. type: verbatim
15254 #: ../fish/guestfish-actions.pod:4068
15255 #, no-wrap
15256 msgid ""
15257 " pvs\n"
15258 "\n"
15259 msgstr ""
15260
15261 #. type: textblock
15262 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6339
15263 msgid ""
15264 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15265 "(8)> command."
15266 msgstr ""
15267
15268 #. type: textblock
15269 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6342
15270 msgid ""
15271 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15272 "sda2>)."
15273 msgstr ""
15274
15275 #. type: textblock
15276 #: ../fish/guestfish-actions.pod:4076
15277 msgid "See also L</pvs-full>."
15278 msgstr ""
15279
15280 #. type: =head2
15281 #: ../fish/guestfish-actions.pod:4078
15282 msgid "pvs-full"
15283 msgstr ""
15284
15285 #. type: verbatim
15286 #: ../fish/guestfish-actions.pod:4080
15287 #, no-wrap
15288 msgid ""
15289 " pvs-full\n"
15290 "\n"
15291 msgstr ""
15292
15293 #. type: textblock
15294 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6358
15295 msgid ""
15296 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15297 "(8)> command.  The \"full\" version includes all fields."
15298 msgstr ""
15299
15300 #. type: =head2
15301 #: ../fish/guestfish-actions.pod:4085
15302 msgid "pvuuid"
15303 msgstr ""
15304
15305 #. type: verbatim
15306 #: ../fish/guestfish-actions.pod:4087
15307 #, no-wrap
15308 msgid ""
15309 " pvuuid device\n"
15310 "\n"
15311 msgstr ""
15312
15313 #. type: textblock
15314 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6373
15315 msgid "This command returns the UUID of the LVM PV C<device>."
15316 msgstr ""
15317
15318 #. type: =head2
15319 #: ../fish/guestfish-actions.pod:4091
15320 msgid "pwrite"
15321 msgstr ""
15322
15323 #. type: verbatim
15324 #: ../fish/guestfish-actions.pod:4093
15325 #, no-wrap
15326 msgid ""
15327 " pwrite path content offset\n"
15328 "\n"
15329 msgstr ""
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6389
15333 msgid ""
15334 "This command writes to part of a file.  It writes the data buffer C<content> "
15335 "to the file C<path> starting at offset C<offset>."
15336 msgstr ""
15337
15338 #. type: textblock
15339 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6392
15340 msgid ""
15341 "This command implements the L<pwrite(2)> system call, and like that system "
15342 "call it may not write the full data requested.  The return value is the "
15343 "number of bytes that were actually written to the file.  This could even be "
15344 "0, although short writes are unlikely for regular files in ordinary "
15345 "circumstances."
15346 msgstr ""
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:4104
15350 msgid "See also L</pread>, L</pwrite-device>."
15351 msgstr ""
15352
15353 #. type: =head2
15354 #: ../fish/guestfish-actions.pod:4109
15355 msgid "pwrite-device"
15356 msgstr ""
15357
15358 #. type: verbatim
15359 #: ../fish/guestfish-actions.pod:4111
15360 #, no-wrap
15361 msgid ""
15362 " pwrite-device device content offset\n"
15363 "\n"
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6416
15368 msgid ""
15369 "This command writes to part of a device.  It writes the data buffer "
15370 "C<content> to C<device> starting at offset C<offset>."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6419
15375 msgid ""
15376 "This command implements the L<pwrite(2)> system call, and like that system "
15377 "call it may not write the full data requested (although short writes to disk "
15378 "devices and partitions are probably impossible with standard Linux kernels)."
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4121
15383 msgid "See also L</pwrite>."
15384 msgstr ""
15385
15386 #. type: =head2
15387 #: ../fish/guestfish-actions.pod:4126
15388 msgid "read-file"
15389 msgstr ""
15390
15391 #. type: verbatim
15392 #: ../fish/guestfish-actions.pod:4128
15393 #, no-wrap
15394 msgid ""
15395 " read-file path\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6440
15401 msgid "This calls returns the contents of the file C<path> as a buffer."
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:4133
15406 msgid ""
15407 "Unlike L</cat>, this function can correctly handle files that contain "
15408 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15409 "is limited in the total size of file that can be handled."
15410 msgstr ""
15411
15412 #. type: =head2
15413 #: ../fish/guestfish-actions.pod:4141
15414 msgid "read-lines"
15415 msgstr ""
15416
15417 #. type: verbatim
15418 #: ../fish/guestfish-actions.pod:4143
15419 #, no-wrap
15420 msgid ""
15421 " read-lines path\n"
15422 "\n"
15423 msgstr ""
15424
15425 #. type: textblock
15426 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6465
15427 msgid ""
15428 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15429 "C<CRLF> character sequences are I<not> returned."
15430 msgstr ""
15431
15432 #. type: textblock
15433 #: ../fish/guestfish-actions.pod:4150
15434 msgid ""
15435 "Note that this function cannot correctly handle binary files (specifically, "
15436 "files containing C<\\0> character which is treated as end of line).  For "
15437 "those you need to use the L</read-file> function which has a more complex "
15438 "interface."
15439 msgstr ""
15440
15441 #. type: =head2
15442 #: ../fish/guestfish-actions.pod:4155
15443 msgid "readdir"
15444 msgstr ""
15445
15446 #. type: verbatim
15447 #: ../fish/guestfish-actions.pod:4157
15448 #, no-wrap
15449 msgid ""
15450 " readdir dir\n"
15451 "\n"
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6485
15456 msgid "This returns the list of directory entries in directory C<dir>."
15457 msgstr ""
15458
15459 #. type: textblock
15460 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6487
15461 msgid ""
15462 "All entries in the directory are returned, including C<.> and C<..>.  The "
15463 "entries are I<not> sorted, but returned in the same order as the underlying "
15464 "filesystem."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
15469 msgid ""
15470 "Also this call returns basic file type information about each file.  The "
15471 "C<ftyp> field will contain one of the following characters:"
15472 msgstr ""
15473
15474 #. type: =item
15475 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
15476 msgid "'b'"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6498
15481 msgid "Block special"
15482 msgstr ""
15483
15484 #. type: =item
15485 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6500
15486 msgid "'c'"
15487 msgstr ""
15488
15489 #. type: textblock
15490 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
15491 msgid "Char special"
15492 msgstr ""
15493
15494 #. type: =item
15495 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
15496 msgid "'d'"
15497 msgstr ""
15498
15499 #. type: textblock
15500 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
15501 msgid "Directory"
15502 msgstr ""
15503
15504 #. type: =item
15505 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
15506 msgid "'f'"
15507 msgstr ""
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
15511 msgid "FIFO (named pipe)"
15512 msgstr ""
15513
15514 #. type: =item
15515 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
15516 msgid "'l'"
15517 msgstr ""
15518
15519 #. type: textblock
15520 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
15521 msgid "Symbolic link"
15522 msgstr ""
15523
15524 #. type: =item
15525 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
15526 msgid "'r'"
15527 msgstr ""
15528
15529 #. type: textblock
15530 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
15531 msgid "Regular file"
15532 msgstr ""
15533
15534 #. type: =item
15535 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
15536 msgid "'s'"
15537 msgstr ""
15538
15539 #. type: textblock
15540 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
15541 msgid "Socket"
15542 msgstr ""
15543
15544 #. type: =item
15545 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
15546 msgid "'u'"
15547 msgstr ""
15548
15549 #. type: textblock
15550 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
15551 msgid "Unknown file type"
15552 msgstr ""
15553
15554 #. type: =item
15555 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
15556 msgid "'?'"
15557 msgstr ""
15558
15559 #. type: textblock
15560 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
15561 msgid ""
15562 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15563 msgstr ""
15564
15565 #. type: textblock
15566 #: ../fish/guestfish-actions.pod:4209
15567 msgid ""
15568 "This function is primarily intended for use by programs.  To get a simple "
15569 "list of names, use L</ls>.  To get a printable directory for human "
15570 "consumption, use L</ll>."
15571 msgstr ""
15572
15573 #. type: =head2
15574 #: ../fish/guestfish-actions.pod:4213
15575 msgid "readlink"
15576 msgstr ""
15577
15578 #. type: verbatim
15579 #: ../fish/guestfish-actions.pod:4215
15580 #, no-wrap
15581 msgid ""
15582 " readlink path\n"
15583 "\n"
15584 msgstr ""
15585
15586 #. type: textblock
15587 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
15588 msgid "This command reads the target of a symbolic link."
15589 msgstr ""
15590
15591 #. type: =head2
15592 #: ../fish/guestfish-actions.pod:4219
15593 msgid "readlinklist"
15594 msgstr ""
15595
15596 #. type: verbatim
15597 #: ../fish/guestfish-actions.pod:4221
15598 #, no-wrap
15599 msgid ""
15600 " readlinklist path 'names ...'\n"
15601 "\n"
15602 msgstr ""
15603
15604 #. type: textblock
15605 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6565
15606 msgid ""
15607 "This call allows you to do a C<readlink> operation on multiple files, where "
15608 "all files are in the directory C<path>.  C<names> is the list of files from "
15609 "this directory."
15610 msgstr ""
15611
15612 #. type: textblock
15613 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6569
15614 msgid ""
15615 "On return you get a list of strings, with a one-to-one correspondence to the "
15616 "C<names> list.  Each string is the value of the symbolic link."
15617 msgstr ""
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6573
15621 msgid ""
15622 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15623 "result string is the empty string C<\"\">.  However the whole operation is "
15624 "completed even if there were C<readlink(2)> errors, and so you can call this "
15625 "function with names where you don't know if they are symbolic links already "
15626 "(albeit slightly less efficient)."
15627 msgstr ""
15628
15629 #. type: textblock
15630 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6580
15631 msgid ""
15632 "This call is intended for programs that want to efficiently list a directory "
15633 "contents without making many round-trips.  Very long directory listings "
15634 "might cause the protocol message size to be exceeded, causing this call to "
15635 "fail.  The caller must split up such requests into smaller groups of names."
15636 msgstr ""
15637
15638 #. type: =head2
15639 #: ../fish/guestfish-actions.pod:4245
15640 msgid "realpath"
15641 msgstr ""
15642
15643 #. type: verbatim
15644 #: ../fish/guestfish-actions.pod:4247
15645 #, no-wrap
15646 msgid ""
15647 " realpath path\n"
15648 "\n"
15649 msgstr ""
15650
15651 #. type: textblock
15652 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6599
15653 msgid ""
15654 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15655 "has no C<.>, C<..> or symbolic link path elements."
15656 msgstr ""
15657
15658 #. type: =head2
15659 #: ../fish/guestfish-actions.pod:4252
15660 msgid "removexattr"
15661 msgstr ""
15662
15663 #. type: verbatim
15664 #: ../fish/guestfish-actions.pod:4254
15665 #, no-wrap
15666 msgid ""
15667 " removexattr xattr path\n"
15668 "\n"
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6614
15673 msgid ""
15674 "This call removes the extended attribute named C<xattr> of the file C<path>."
15675 msgstr ""
15676
15677 #. type: textblock
15678 #: ../fish/guestfish-actions.pod:4259
15679 msgid "See also: L</lremovexattr>, L<attr(5)>."
15680 msgstr ""
15681
15682 #. type: =head2
15683 #: ../fish/guestfish-actions.pod:4261
15684 msgid "resize2fs"
15685 msgstr ""
15686
15687 #. type: verbatim
15688 #: ../fish/guestfish-actions.pod:4263
15689 #, no-wrap
15690 msgid ""
15691 " resize2fs device\n"
15692 "\n"
15693 msgstr ""
15694
15695 #. type: textblock
15696 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6629
15697 msgid ""
15698 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15699 "underlying device."
15700 msgstr ""
15701
15702 #. type: textblock
15703 #: ../fish/guestfish-actions.pod:4268
15704 msgid ""
15705 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15706 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15707 "gives an error about this and sometimes not.  In any case, it is always safe "
15708 "to call L</e2fsck-f> before calling this function."
15709 msgstr ""
15710
15711 #. type: =head2
15712 #: ../fish/guestfish-actions.pod:4274
15713 msgid "resize2fs-M"
15714 msgstr ""
15715
15716 #. type: verbatim
15717 #: ../fish/guestfish-actions.pod:4276
15718 #, no-wrap
15719 msgid ""
15720 " resize2fs-M device\n"
15721 "\n"
15722 msgstr ""
15723
15724 #. type: textblock
15725 #: ../fish/guestfish-actions.pod:4278
15726 msgid ""
15727 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15728 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15729 "command."
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-actions.pod:4282
15734 msgid ""
15735 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15736 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15737 "multiplied together, give the resulting size of the minimal filesystem in "
15738 "bytes."
15739 msgstr ""
15740
15741 #. type: =head2
15742 #: ../fish/guestfish-actions.pod:4287
15743 msgid "resize2fs-size"
15744 msgstr ""
15745
15746 #. type: verbatim
15747 #: ../fish/guestfish-actions.pod:4289
15748 #, no-wrap
15749 msgid ""
15750 " resize2fs-size device size\n"
15751 "\n"
15752 msgstr ""
15753
15754 #. type: textblock
15755 #: ../fish/guestfish-actions.pod:4291
15756 msgid ""
15757 "This command is the same as L</resize2fs> except that it allows you to "
15758 "specify the new size (in bytes) explicitly."
15759 msgstr ""
15760
15761 #. type: =head2
15762 #: ../fish/guestfish-actions.pod:4294
15763 msgid "rm"
15764 msgstr ""
15765
15766 #. type: verbatim
15767 #: ../fish/guestfish-actions.pod:4296
15768 #, no-wrap
15769 msgid ""
15770 " rm path\n"
15771 "\n"
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6681
15776 msgid "Remove the single file C<path>."
15777 msgstr ""
15778
15779 #. type: =head2
15780 #: ../fish/guestfish-actions.pod:4300
15781 msgid "rm-rf"
15782 msgstr ""
15783
15784 #. type: verbatim
15785 #: ../fish/guestfish-actions.pod:4302
15786 #, no-wrap
15787 msgid ""
15788 " rm-rf path\n"
15789 "\n"
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6693
15794 msgid ""
15795 "Remove the file or directory C<path>, recursively removing the contents if "
15796 "its a directory.  This is like the C<rm -rf> shell command."
15797 msgstr ""
15798
15799 #. type: =head2
15800 #: ../fish/guestfish-actions.pod:4308
15801 msgid "rmdir"
15802 msgstr ""
15803
15804 #. type: verbatim
15805 #: ../fish/guestfish-actions.pod:4310
15806 #, no-wrap
15807 msgid ""
15808 " rmdir path\n"
15809 "\n"
15810 msgstr ""
15811
15812 #. type: textblock
15813 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6707
15814 msgid "Remove the single directory C<path>."
15815 msgstr ""
15816
15817 #. type: =head2
15818 #: ../fish/guestfish-actions.pod:4314
15819 msgid "rmmountpoint"
15820 msgstr ""
15821
15822 #. type: verbatim
15823 #: ../fish/guestfish-actions.pod:4316
15824 #, no-wrap
15825 msgid ""
15826 " rmmountpoint exemptpath\n"
15827 "\n"
15828 msgstr ""
15829
15830 #. type: textblock
15831 #: ../fish/guestfish-actions.pod:4318
15832 msgid ""
15833 "This calls removes a mountpoint that was previously created with L</"
15834 "mkmountpoint>.  See L</mkmountpoint> for full details."
15835 msgstr ""
15836
15837 #. type: =head2
15838 #: ../fish/guestfish-actions.pod:4322
15839 msgid "scrub-device"
15840 msgstr ""
15841
15842 #. type: verbatim
15843 #: ../fish/guestfish-actions.pod:4324
15844 #, no-wrap
15845 msgid ""
15846 " scrub-device device\n"
15847 "\n"
15848 msgstr ""
15849
15850 #. type: textblock
15851 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6733
15852 msgid ""
15853 "This command writes patterns over C<device> to make data retrieval more "
15854 "difficult."
15855 msgstr ""
15856
15857 #. type: textblock
15858 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4341
15859 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6736
15860 #: ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6773
15861 msgid ""
15862 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15863 "more details."
15864 msgstr ""
15865
15866 #. type: =head2
15867 #: ../fish/guestfish-actions.pod:4332
15868 msgid "scrub-file"
15869 msgstr ""
15870
15871 #. type: verbatim
15872 #: ../fish/guestfish-actions.pod:4334
15873 #, no-wrap
15874 msgid ""
15875 " scrub-file file\n"
15876 "\n"
15877 msgstr ""
15878
15879 #. type: textblock
15880 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6749
15881 msgid ""
15882 "This command writes patterns over a file to make data retrieval more "
15883 "difficult."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6752
15888 msgid "The file is I<removed> after scrubbing."
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:4344
15893 msgid "scrub-freespace"
15894 msgstr ""
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:4346
15898 #, no-wrap
15899 msgid ""
15900 " scrub-freespace dir\n"
15901 "\n"
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:4348
15906 msgid ""
15907 "This command creates the directory C<dir> and then fills it with files until "
15908 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15909 "deletes them.  The intention is to scrub any free space on the partition "
15910 "containing C<dir>."
15911 msgstr ""
15912
15913 #. type: =head2
15914 #: ../fish/guestfish-actions.pod:4357
15915 msgid "set-append"
15916 msgstr ""
15917
15918 #. type: =head2
15919 #: ../fish/guestfish-actions.pod:4359
15920 msgid "append"
15921 msgstr ""
15922
15923 #. type: verbatim
15924 #: ../fish/guestfish-actions.pod:4361
15925 #, no-wrap
15926 msgid ""
15927 " set-append append\n"
15928 "\n"
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-actions.pod:4363 ../src/guestfs-actions.pod:6786
15933 msgid ""
15934 "This function is used to add additional options to the guest kernel command "
15935 "line."
15936 msgstr ""
15937
15938 #. type: textblock
15939 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6789
15940 msgid ""
15941 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15942 "environment variable."
15943 msgstr ""
15944
15945 #. type: textblock
15946 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
15947 msgid ""
15948 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15949 "(libguestfs always adds a few of its own)."
15950 msgstr ""
15951
15952 #. type: =head2
15953 #: ../fish/guestfish-actions.pod:4372
15954 msgid "set-attach-method"
15955 msgstr ""
15956
15957 #. type: =head2
15958 #: ../fish/guestfish-actions.pod:4374
15959 msgid "attach-method"
15960 msgstr ""
15961
15962 #. type: verbatim
15963 #: ../fish/guestfish-actions.pod:4376
15964 #, no-wrap
15965 msgid ""
15966 " set-attach-method attachmethod\n"
15967 "\n"
15968 msgstr ""
15969
15970 #. type: textblock
15971 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6805
15972 msgid ""
15973 "Set the method that libguestfs uses to connect to the back end guestfsd "
15974 "daemon.  Possible methods are:"
15975 msgstr ""
15976
15977 #. type: =item
15978 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6810
15979 #: ../src/guestfs.pod:2916
15980 msgid "C<appliance>"
15981 msgstr ""
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6812
15985 msgid ""
15986 "Launch an appliance and connect to it.  This is the ordinary method and the "
15987 "default."
15988 msgstr ""
15989
15990 #. type: =item
15991 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6815
15992 msgid "C<unix:I<path>>"
15993 msgstr ""
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6817
15997 msgid "Connect to the Unix domain socket I<path>."
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4392 ../src/guestfs-actions.pod:6819
16002 msgid ""
16003 "This method lets you connect to an existing daemon or (using virtio-serial) "
16004 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16005 "RUNNING DAEMONS>."
16006 msgstr ""
16007
16008 #. type: =head2
16009 #: ../fish/guestfish-actions.pod:4398
16010 msgid "set-autosync"
16011 msgstr ""
16012
16013 #. type: =head2
16014 #: ../fish/guestfish-actions.pod:4400
16015 msgid "autosync"
16016 msgstr ""
16017
16018 #. type: verbatim
16019 #: ../fish/guestfish-actions.pod:4402
16020 #, no-wrap
16021 msgid ""
16022 " set-autosync true|false\n"
16023 "\n"
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6835
16028 msgid ""
16029 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16030 "effort attempt to make filesystems consistent and synchronized when the "
16031 "handle is closed (also if the program exits without closing handles)."
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6840
16036 msgid ""
16037 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16038 "disabled by default)."
16039 msgstr ""
16040
16041 #. type: =head2
16042 #: ../fish/guestfish-actions.pod:4412
16043 msgid "set-direct"
16044 msgstr ""
16045
16046 #. type: =head2
16047 #: ../fish/guestfish-actions.pod:4414
16048 msgid "direct"
16049 msgstr ""
16050
16051 #. type: verbatim
16052 #: ../fish/guestfish-actions.pod:4416
16053 #, no-wrap
16054 msgid ""
16055 " set-direct true|false\n"
16056 "\n"
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6853
16061 msgid ""
16062 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16063 "passed directly through to the appliance once it is launched."
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish-actions.pod:4422
16068 msgid ""
16069 "One consequence of this is that log messages aren't caught by the library "
16070 "and handled by L</set-log-message-callback>, but go straight to stdout."
16071 msgstr ""
16072
16073 #. type: textblock
16074 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6861
16075 msgid "You probably don't want to use this unless you know what you are doing."
16076 msgstr ""
16077
16078 #. type: textblock
16079 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6864
16080 msgid "The default is disabled."
16081 msgstr ""
16082
16083 #. type: =head2
16084 #: ../fish/guestfish-actions.pod:4431
16085 msgid "set-e2label"
16086 msgstr ""
16087
16088 #. type: verbatim
16089 #: ../fish/guestfish-actions.pod:4433
16090 #, no-wrap
16091 msgid ""
16092 " set-e2label device label\n"
16093 "\n"
16094 msgstr ""
16095
16096 #. type: textblock
16097 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6877
16098 msgid ""
16099 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16100 "C<label>.  Filesystem labels are limited to 16 characters."
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-actions.pod:4439
16105 msgid ""
16106 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16107 "label on a filesystem."
16108 msgstr ""
16109
16110 #. type: =head2
16111 #: ../fish/guestfish-actions.pod:4442
16112 msgid "set-e2uuid"
16113 msgstr ""
16114
16115 #. type: verbatim
16116 #: ../fish/guestfish-actions.pod:4444
16117 #, no-wrap
16118 msgid ""
16119 " set-e2uuid device uuid\n"
16120 "\n"
16121 msgstr ""
16122
16123 #. type: textblock
16124 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6895
16125 msgid ""
16126 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16127 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16128 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16129 msgstr ""
16130
16131 #. type: textblock
16132 #: ../fish/guestfish-actions.pod:4451
16133 msgid ""
16134 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16135 "UUID of a filesystem."
16136 msgstr ""
16137
16138 #. type: =head2
16139 #: ../fish/guestfish-actions.pod:4454
16140 msgid "set-memsize"
16141 msgstr ""
16142
16143 #. type: =head2
16144 #: ../fish/guestfish-actions.pod:4456
16145 msgid "memsize"
16146 msgstr ""
16147
16148 #. type: verbatim
16149 #: ../fish/guestfish-actions.pod:4458
16150 #, no-wrap
16151 msgid ""
16152 " set-memsize memsize\n"
16153 "\n"
16154 msgstr ""
16155
16156 #. type: textblock
16157 #: ../fish/guestfish-actions.pod:4460
16158 msgid ""
16159 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16160 "This only has any effect if called before L</launch>."
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../fish/guestfish-actions.pod:4464 ../src/guestfs-actions.pod:6917
16165 msgid ""
16166 "You can also change this by setting the environment variable "
16167 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16168 msgstr ""
16169
16170 #. type: =head2
16171 #: ../fish/guestfish-actions.pod:4471
16172 msgid "set-network"
16173 msgstr ""
16174
16175 #. type: =head2
16176 #: ../fish/guestfish-actions.pod:4473
16177 msgid "network"
16178 msgstr ""
16179
16180 #. type: verbatim
16181 #: ../fish/guestfish-actions.pod:4475
16182 #, no-wrap
16183 msgid ""
16184 " set-network true|false\n"
16185 "\n"
16186 msgstr ""
16187
16188 #. type: textblock
16189 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
16190 msgid ""
16191 "If C<network> is true, then the network is enabled in the libguestfs "
16192 "appliance.  The default is false."
16193 msgstr ""
16194
16195 #. type: textblock
16196 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6937
16197 msgid ""
16198 "This affects whether commands are able to access the network (see L<guestfs"
16199 "(3)/RUNNING COMMANDS>)."
16200 msgstr ""
16201
16202 #. type: textblock
16203 #: ../fish/guestfish-actions.pod:4483
16204 msgid ""
16205 "You must call this before calling L</launch>, otherwise it has no effect."
16206 msgstr ""
16207
16208 #. type: =head2
16209 #: ../fish/guestfish-actions.pod:4486
16210 msgid "set-path"
16211 msgstr ""
16212
16213 #. type: verbatim
16214 #: ../fish/guestfish-actions.pod:4490
16215 #, no-wrap
16216 msgid ""
16217 " set-path searchpath\n"
16218 "\n"
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-actions.pod:4492 ../src/guestfs-actions.pod:6953
16223 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6955
16228 msgid ""
16229 "The default is C<$libdir/guestfs> unless overridden by setting "
16230 "C<LIBGUESTFS_PATH> environment variable."
16231 msgstr ""
16232
16233 #. type: textblock
16234 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6958
16235 msgid "Setting C<path> to C<NULL> restores the default path."
16236 msgstr ""
16237
16238 #. type: =head2
16239 #: ../fish/guestfish-actions.pod:4499
16240 msgid "set-pgroup"
16241 msgstr ""
16242
16243 #. type: =head2
16244 #: ../fish/guestfish-actions.pod:4501
16245 msgid "pgroup"
16246 msgstr ""
16247
16248 #. type: verbatim
16249 #: ../fish/guestfish-actions.pod:4503
16250 #, no-wrap
16251 msgid ""
16252 " set-pgroup true|false\n"
16253 "\n"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6970
16258 msgid ""
16259 "If C<pgroup> is true, child processes are placed into their own process "
16260 "group."
16261 msgstr ""
16262
16263 #. type: textblock
16264 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
16265 msgid ""
16266 "The practical upshot of this is that signals like C<SIGINT> (from users "
16267 "pressing C<^C>) won't be received by the child process."
16268 msgstr ""
16269
16270 #. type: textblock
16271 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16272 msgid ""
16273 "The default for this flag is false, because usually you want C<^C> to kill "
16274 "the subprocess."
16275 msgstr ""
16276
16277 #. type: =head2
16278 #: ../fish/guestfish-actions.pod:4514
16279 msgid "set-qemu"
16280 msgstr ""
16281
16282 #. type: =head2
16283 #: ../fish/guestfish-actions.pod:4516
16284 msgid "qemu"
16285 msgstr ""
16286
16287 #. type: verbatim
16288 #: ../fish/guestfish-actions.pod:4518
16289 #, no-wrap
16290 msgid ""
16291 " set-qemu qemu\n"
16292 "\n"
16293 msgstr ""
16294
16295 #. type: textblock
16296 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6989
16297 msgid "Set the qemu binary that we will use."
16298 msgstr ""
16299
16300 #. type: textblock
16301 #: ../fish/guestfish-actions.pod:4522 ../src/guestfs-actions.pod:6991
16302 msgid ""
16303 "The default is chosen when the library was compiled by the configure script."
16304 msgstr ""
16305
16306 #. type: textblock
16307 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
16308 msgid ""
16309 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16310 "variable."
16311 msgstr ""
16312
16313 #. type: textblock
16314 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16315 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16316 msgstr ""
16317
16318 #. type: textblock
16319 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6999
16320 msgid ""
16321 "Note that you should call this function as early as possible after creating "
16322 "the handle.  This is because some pre-launch operations depend on testing "
16323 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16324 "don't retest features, and so you might see inconsistent results.  Using the "
16325 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16326 "the qemu binary at the same time as the handle is created."
16327 msgstr ""
16328
16329 #. type: =head2
16330 #: ../fish/guestfish-actions.pod:4538
16331 msgid "set-recovery-proc"
16332 msgstr ""
16333
16334 #. type: =head2
16335 #: ../fish/guestfish-actions.pod:4540
16336 msgid "recovery-proc"
16337 msgstr ""
16338
16339 #. type: verbatim
16340 #: ../fish/guestfish-actions.pod:4542
16341 #, no-wrap
16342 msgid ""
16343 " set-recovery-proc true|false\n"
16344 "\n"
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish-actions.pod:4544
16349 msgid ""
16350 "If this is called with the parameter C<false> then L</launch> does not "
16351 "create a recovery process.  The purpose of the recovery process is to stop "
16352 "runaway qemu processes in the case where the main program aborts abruptly."
16353 msgstr ""
16354
16355 #. type: textblock
16356 #: ../fish/guestfish-actions.pod:4549
16357 msgid ""
16358 "This only has any effect if called before L</launch>, and the default is "
16359 "true."
16360 msgstr ""
16361
16362 #. type: textblock
16363 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:7025
16364 msgid ""
16365 "About the only time when you would want to disable this is if the main "
16366 "process will fork itself into the background (\"daemonize\" itself).  In "
16367 "this case the recovery process thinks that the main program has disappeared "
16368 "and so kills qemu, which is not very helpful."
16369 msgstr ""
16370
16371 #. type: =head2
16372 #: ../fish/guestfish-actions.pod:4558
16373 msgid "set-selinux"
16374 msgstr ""
16375
16376 #. type: =head2
16377 #: ../fish/guestfish-actions.pod:4560
16378 msgid "selinux"
16379 msgstr ""
16380
16381 #. type: verbatim
16382 #: ../fish/guestfish-actions.pod:4562
16383 #, no-wrap
16384 msgid ""
16385 " set-selinux true|false\n"
16386 "\n"
16387 msgstr ""
16388
16389 #. type: textblock
16390 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7041
16391 msgid ""
16392 "This sets the selinux flag that is passed to the appliance at boot time.  "
16393 "The default is C<selinux=0> (disabled)."
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:7044
16398 msgid ""
16399 "Note that if SELinux is enabled, it is always in Permissive mode "
16400 "(C<enforcing=0>)."
16401 msgstr ""
16402
16403 #. type: =head2
16404 #: ../fish/guestfish-actions.pod:4573
16405 msgid "set-smp"
16406 msgstr ""
16407
16408 #. type: =head2
16409 #: ../fish/guestfish-actions.pod:4575
16410 msgid "smp"
16411 msgstr ""
16412
16413 #. type: verbatim
16414 #: ../fish/guestfish-actions.pod:4577
16415 #, no-wrap
16416 msgid ""
16417 " set-smp smp\n"
16418 "\n"
16419 msgstr ""
16420
16421 #. type: textblock
16422 #: ../fish/guestfish-actions.pod:4579 ../src/guestfs-actions.pod:7060
16423 msgid ""
16424 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16425 "C<1>.  Increasing this may improve performance, though often it has no "
16426 "effect."
16427 msgstr ""
16428
16429 #. type: textblock
16430 #: ../fish/guestfish-actions.pod:4583
16431 msgid "This function must be called before L</launch>."
16432 msgstr ""
16433
16434 #. type: =head2
16435 #: ../fish/guestfish-actions.pod:4585
16436 msgid "set-trace"
16437 msgstr ""
16438
16439 #. type: =head2
16440 #: ../fish/guestfish-actions.pod:4587
16441 msgid "trace"
16442 msgstr ""
16443
16444 #. type: verbatim
16445 #: ../fish/guestfish-actions.pod:4589
16446 #, no-wrap
16447 msgid ""
16448 " set-trace true|false\n"
16449 "\n"
16450 msgstr ""
16451
16452 #. type: textblock
16453 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:7076
16454 msgid ""
16455 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16456 "return values are traced."
16457 msgstr ""
16458
16459 #. type: textblock
16460 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:7079
16461 msgid ""
16462 "If you want to trace C API calls into libguestfs (and other libraries) then "
16463 "possibly a better way is to use the external ltrace(1) command."
16464 msgstr ""
16465
16466 #. type: textblock
16467 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
16468 msgid ""
16469 "Command traces are disabled unless the environment variable "
16470 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4601
16475 msgid ""
16476 "Trace messages are normally sent to C<stderr>, unless you register a "
16477 "callback to send them somewhere else (see L</set-event-callback>)."
16478 msgstr ""
16479
16480 #. type: =head2
16481 #: ../fish/guestfish-actions.pod:4605
16482 msgid "set-verbose"
16483 msgstr ""
16484
16485 #. type: =head2
16486 #: ../fish/guestfish-actions.pod:4607
16487 msgid "verbose"
16488 msgstr ""
16489
16490 #. type: verbatim
16491 #: ../fish/guestfish-actions.pod:4609
16492 #, no-wrap
16493 msgid ""
16494 " set-verbose true|false\n"
16495 "\n"
16496 msgstr ""
16497
16498 #. type: textblock
16499 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:7100
16500 msgid "If C<verbose> is true, this turns on verbose messages."
16501 msgstr ""
16502
16503 #. type: textblock
16504 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
16505 msgid ""
16506 "Verbose messages are disabled unless the environment variable "
16507 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16508 msgstr ""
16509
16510 #. type: textblock
16511 #: ../fish/guestfish-actions.pod:4616
16512 msgid ""
16513 "Verbose messages are normally sent to C<stderr>, unless you register a "
16514 "callback to send them somewhere else (see L</set-event-callback>)."
16515 msgstr ""
16516
16517 #. type: =head2
16518 #: ../fish/guestfish-actions.pod:4620
16519 msgid "setcon"
16520 msgstr ""
16521
16522 #. type: verbatim
16523 #: ../fish/guestfish-actions.pod:4622
16524 #, no-wrap
16525 msgid ""
16526 " setcon context\n"
16527 "\n"
16528 msgstr ""
16529
16530 #. type: textblock
16531 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7119
16532 msgid ""
16533 "This sets the SELinux security context of the daemon to the string "
16534 "C<context>."
16535 msgstr ""
16536
16537 #. type: textblock
16538 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:7122
16539 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16540 msgstr ""
16541
16542 #. type: =head2
16543 #: ../fish/guestfish-actions.pod:4629
16544 msgid "setxattr"
16545 msgstr ""
16546
16547 #. type: verbatim
16548 #: ../fish/guestfish-actions.pod:4631
16549 #, no-wrap
16550 msgid ""
16551 " setxattr xattr val vallen path\n"
16552 "\n"
16553 msgstr ""
16554
16555 #. type: textblock
16556 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7137
16557 msgid ""
16558 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16559 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish-actions.pod:4637
16564 msgid "See also: L</lsetxattr>, L<attr(5)>."
16565 msgstr ""
16566
16567 #. type: =head2
16568 #: ../fish/guestfish-actions.pod:4639
16569 msgid "sfdisk"
16570 msgstr ""
16571
16572 #. type: verbatim
16573 #: ../fish/guestfish-actions.pod:4641
16574 #, no-wrap
16575 msgid ""
16576 " sfdisk device cyls heads sectors 'lines ...'\n"
16577 "\n"
16578 msgstr ""
16579
16580 #. type: textblock
16581 #: ../fish/guestfish-actions.pod:4643 ../src/guestfs-actions.pod:7164
16582 msgid ""
16583 "This is a direct interface to the L<sfdisk(8)> program for creating "
16584 "partitions on block devices."
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7167
16589 msgid "C<device> should be a block device, for example C</dev/sda>."
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7169
16594 msgid ""
16595 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16596 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16597 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16598 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16599 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16600 "the kernel) cannot work out the right geometry and you will need to tell it."
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish-actions.pod:4656 ../src/guestfs-actions.pod:7177
16605 msgid ""
16606 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16607 "refer to the L<sfdisk(8)> manpage."
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7180
16612 msgid ""
16613 "To create a single partition occupying the whole disk, you would pass "
16614 "C<lines> as a single element list, when the single element being the string "
16615 "C<,> (comma)."
16616 msgstr ""
16617
16618 #. type: textblock
16619 #: ../fish/guestfish-actions.pod:4663
16620 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16621 msgstr ""
16622
16623 #. type: textblock
16624 #: ../fish/guestfish-actions.pod:4666 ../fish/guestfish-actions.pod:4686
16625 #: ../fish/guestfish-actions.pod:4705
16626 msgid ""
16627 "I<This function is deprecated.> In new code, use the L</part_add> call "
16628 "instead."
16629 msgstr ""
16630
16631 #. type: =head2
16632 #: ../fish/guestfish-actions.pod:4673
16633 msgid "sfdiskM"
16634 msgstr ""
16635
16636 #. type: verbatim
16637 #: ../fish/guestfish-actions.pod:4675
16638 #, no-wrap
16639 msgid ""
16640 " sfdiskM device 'lines ...'\n"
16641 "\n"
16642 msgstr ""
16643
16644 #. type: textblock
16645 #: ../fish/guestfish-actions.pod:4677
16646 msgid ""
16647 "This is a simplified interface to the L</sfdisk> command, where partition "
16648 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16649 "you don't need to specify the cyls, heads and sectors parameters which were "
16650 "rarely if ever used anyway."
16651 msgstr ""
16652
16653 #. type: textblock
16654 #: ../fish/guestfish-actions.pod:4683
16655 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16656 msgstr ""
16657
16658 #. type: =head2
16659 #: ../fish/guestfish-actions.pod:4693
16660 msgid "sfdisk-N"
16661 msgstr ""
16662
16663 #. type: verbatim
16664 #: ../fish/guestfish-actions.pod:4695
16665 #, no-wrap
16666 msgid ""
16667 " sfdisk-N device partnum cyls heads sectors line\n"
16668 "\n"
16669 msgstr ""
16670
16671 #. type: textblock
16672 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7236
16673 msgid ""
16674 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16675 "(note: C<n> counts from 1)."
16676 msgstr ""
16677
16678 #. type: textblock
16679 #: ../fish/guestfish-actions.pod:4700
16680 msgid ""
16681 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16682 "cyls/heads/sectors parameters."
16683 msgstr ""
16684
16685 #. type: textblock
16686 #: ../fish/guestfish-actions.pod:4703
16687 msgid "See also: L</part-add>"
16688 msgstr ""
16689
16690 #. type: =head2
16691 #: ../fish/guestfish-actions.pod:4712
16692 msgid "sfdisk-disk-geometry"
16693 msgstr ""
16694
16695 #. type: verbatim
16696 #: ../fish/guestfish-actions.pod:4714
16697 #, no-wrap
16698 msgid ""
16699 " sfdisk-disk-geometry device\n"
16700 "\n"
16701 msgstr ""
16702
16703 #. type: textblock
16704 #: ../fish/guestfish-actions.pod:4716
16705 msgid ""
16706 "This displays the disk geometry of C<device> read from the partition table.  "
16707 "Especially in the case where the underlying block device has been resized, "
16708 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16709 "kernel-geometry>)."
16710 msgstr ""
16711
16712 #. type: textblock
16713 #: ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4730
16714 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7275
16715 msgid "The result is in human-readable format, and not designed to be parsed."
16716 msgstr ""
16717
16718 #. type: =head2
16719 #: ../fish/guestfish-actions.pod:4724
16720 msgid "sfdisk-kernel-geometry"
16721 msgstr ""
16722
16723 #. type: verbatim
16724 #: ../fish/guestfish-actions.pod:4726
16725 #, no-wrap
16726 msgid ""
16727 " sfdisk-kernel-geometry device\n"
16728 "\n"
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7273
16733 msgid "This displays the kernel's idea of the geometry of C<device>."
16734 msgstr ""
16735
16736 #. type: =head2
16737 #: ../fish/guestfish-actions.pod:4733
16738 msgid "sfdisk-l"
16739 msgstr ""
16740
16741 #. type: verbatim
16742 #: ../fish/guestfish-actions.pod:4735
16743 #, no-wrap
16744 msgid ""
16745 " sfdisk-l device\n"
16746 "\n"
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7296
16751 msgid ""
16752 "This displays the partition table on C<device>, in the human-readable output "
16753 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16754 msgstr ""
16755
16756 #. type: textblock
16757 #: ../fish/guestfish-actions.pod:4741
16758 msgid "See also: L</part-list>"
16759 msgstr ""
16760
16761 #. type: textblock
16762 #: ../fish/guestfish-actions.pod:4743
16763 msgid ""
16764 "I<This function is deprecated.> In new code, use the L</part_list> call "
16765 "instead."
16766 msgstr ""
16767
16768 #. type: =head2
16769 #: ../fish/guestfish-actions.pod:4750
16770 msgid "sh"
16771 msgstr ""
16772
16773 #. type: verbatim
16774 #: ../fish/guestfish-actions.pod:4752
16775 #, no-wrap
16776 msgid ""
16777 " sh command\n"
16778 "\n"
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7313
16783 msgid ""
16784 "This call runs a command from the guest filesystem via the guest's C</bin/"
16785 "sh>."
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-actions.pod:4757
16790 msgid "This is like L</command>, but passes the command to:"
16791 msgstr ""
16792
16793 #. type: verbatim
16794 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7318
16795 #, no-wrap
16796 msgid ""
16797 " /bin/sh -c \"command\"\n"
16798 "\n"
16799 msgstr ""
16800
16801 #. type: textblock
16802 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7320
16803 msgid ""
16804 "Depending on the guest's shell, this usually results in wildcards being "
16805 "expanded, shell expressions being interpolated and so on."
16806 msgstr ""
16807
16808 #. type: textblock
16809 #: ../fish/guestfish-actions.pod:4765
16810 msgid "All the provisos about L</command> apply to this call."
16811 msgstr ""
16812
16813 #. type: =head2
16814 #: ../fish/guestfish-actions.pod:4767
16815 msgid "sh-lines"
16816 msgstr ""
16817
16818 #. type: verbatim
16819 #: ../fish/guestfish-actions.pod:4769
16820 #, no-wrap
16821 msgid ""
16822 " sh-lines command\n"
16823 "\n"
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish-actions.pod:4771
16828 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16829 msgstr ""
16830
16831 #. type: textblock
16832 #: ../fish/guestfish-actions.pod:4774
16833 msgid "See also: L</command-lines>"
16834 msgstr ""
16835
16836 #. type: =head2
16837 #: ../fish/guestfish-actions.pod:4776
16838 msgid "sleep"
16839 msgstr ""
16840
16841 #. type: verbatim
16842 #: ../fish/guestfish-actions.pod:4778
16843 #, no-wrap
16844 msgid ""
16845 " sleep secs\n"
16846 "\n"
16847 msgstr ""
16848
16849 #. type: textblock
16850 #: ../fish/guestfish-actions.pod:4780 ../src/guestfs-actions.pod:7354
16851 msgid "Sleep for C<secs> seconds."
16852 msgstr ""
16853
16854 #. type: =head2
16855 #: ../fish/guestfish-actions.pod:4782
16856 msgid "stat"
16857 msgstr ""
16858
16859 #. type: verbatim
16860 #: ../fish/guestfish-actions.pod:4784
16861 #, no-wrap
16862 msgid ""
16863 " stat path\n"
16864 "\n"
16865 msgstr ""
16866
16867 #. type: textblock
16868 #: ../fish/guestfish-actions.pod:4788 ../src/guestfs-actions.pod:7368
16869 msgid "This is the same as the C<stat(2)> system call."
16870 msgstr ""
16871
16872 #. type: =head2
16873 #: ../fish/guestfish-actions.pod:4790
16874 msgid "statvfs"
16875 msgstr ""
16876
16877 #. type: verbatim
16878 #: ../fish/guestfish-actions.pod:4792
16879 #, no-wrap
16880 msgid ""
16881 " statvfs path\n"
16882 "\n"
16883 msgstr ""
16884
16885 #. type: textblock
16886 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7382
16887 msgid ""
16888 "Returns file system statistics for any mounted file system.  C<path> should "
16889 "be a file or directory in the mounted file system (typically it is the mount "
16890 "point itself, but it doesn't need to be)."
16891 msgstr ""
16892
16893 #. type: textblock
16894 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7386
16895 msgid "This is the same as the C<statvfs(2)> system call."
16896 msgstr ""
16897
16898 #. type: =head2
16899 #: ../fish/guestfish-actions.pod:4800
16900 msgid "strings"
16901 msgstr ""
16902
16903 #. type: verbatim
16904 #: ../fish/guestfish-actions.pod:4802
16905 #, no-wrap
16906 msgid ""
16907 " strings path\n"
16908 "\n"
16909 msgstr ""
16910
16911 #. type: textblock
16912 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7400
16913 msgid ""
16914 "This runs the L<strings(1)> command on a file and returns the list of "
16915 "printable strings found."
16916 msgstr ""
16917
16918 #. type: =head2
16919 #: ../fish/guestfish-actions.pod:4810
16920 msgid "strings-e"
16921 msgstr ""
16922
16923 #. type: verbatim
16924 #: ../fish/guestfish-actions.pod:4812
16925 #, no-wrap
16926 msgid ""
16927 " strings-e encoding path\n"
16928 "\n"
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish-actions.pod:4814
16933 msgid ""
16934 "This is like the L</strings> command, but allows you to specify the encoding "
16935 "of strings that are looked for in the source file C<path>."
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7423
16940 msgid "Allowed encodings are:"
16941 msgstr ""
16942
16943 #. type: =item
16944 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7427
16945 msgid "s"
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../fish/guestfish-actions.pod:4824
16950 msgid ""
16951 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16952 "ISO-8859-X (this is what L</strings> uses)."
16953 msgstr ""
16954
16955 #. type: =item
16956 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7432
16957 msgid "S"
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7434
16962 msgid "Single 8-bit-byte characters."
16963 msgstr ""
16964
16965 #. type: =item
16966 #: ../fish/guestfish-actions.pod:4831 ../src/guestfs-actions.pod:7436
16967 msgid "b"
16968 msgstr ""
16969
16970 #. type: textblock
16971 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
16972 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16973 msgstr ""
16974
16975 #. type: =item
16976 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7441
16977 msgid "l (lower case letter L)"
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../fish/guestfish-actions.pod:4838 ../src/guestfs-actions.pod:7443
16982 msgid ""
16983 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16984 "examining binaries in Windows guests."
16985 msgstr ""
16986
16987 #. type: =item
16988 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7446
16989 msgid "B"
16990 msgstr ""
16991
16992 #. type: textblock
16993 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7448
16994 msgid "32-bit big endian such as UCS-4BE."
16995 msgstr ""
16996
16997 #. type: =item
16998 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7450
16999 msgid "L"
17000 msgstr ""
17001
17002 #. type: textblock
17003 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
17004 msgid "32-bit little endian such as UCS-4LE."
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
17009 msgid "The returned strings are transcoded to UTF-8."
17010 msgstr ""
17011
17012 #. type: =head2
17013 #: ../fish/guestfish-actions.pod:4856
17014 msgid "swapoff-device"
17015 msgstr ""
17016
17017 #. type: verbatim
17018 #: ../fish/guestfish-actions.pod:4858
17019 #, no-wrap
17020 msgid ""
17021 " swapoff-device device\n"
17022 "\n"
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish-actions.pod:4860
17027 msgid ""
17028 "This command disables the libguestfs appliance swap device or partition "
17029 "named C<device>.  See L</swapon-device>."
17030 msgstr ""
17031
17032 #. type: =head2
17033 #: ../fish/guestfish-actions.pod:4864
17034 msgid "swapoff-file"
17035 msgstr ""
17036
17037 #. type: verbatim
17038 #: ../fish/guestfish-actions.pod:4866
17039 #, no-wrap
17040 msgid ""
17041 " swapoff-file file\n"
17042 "\n"
17043 msgstr ""
17044
17045 #. type: textblock
17046 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7487
17047 msgid "This command disables the libguestfs appliance swap on file."
17048 msgstr ""
17049
17050 #. type: =head2
17051 #: ../fish/guestfish-actions.pod:4870
17052 msgid "swapoff-label"
17053 msgstr ""
17054
17055 #. type: verbatim
17056 #: ../fish/guestfish-actions.pod:4872
17057 #, no-wrap
17058 msgid ""
17059 " swapoff-label label\n"
17060 "\n"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7499
17065 msgid ""
17066 "This command disables the libguestfs appliance swap on labeled swap "
17067 "partition."
17068 msgstr ""
17069
17070 #. type: =head2
17071 #: ../fish/guestfish-actions.pod:4877
17072 msgid "swapoff-uuid"
17073 msgstr ""
17074
17075 #. type: verbatim
17076 #: ../fish/guestfish-actions.pod:4879
17077 #, no-wrap
17078 msgid ""
17079 " swapoff-uuid uuid\n"
17080 "\n"
17081 msgstr ""
17082
17083 #. type: textblock
17084 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7512
17085 msgid ""
17086 "This command disables the libguestfs appliance swap partition with the given "
17087 "UUID."
17088 msgstr ""
17089
17090 #. type: =head2
17091 #: ../fish/guestfish-actions.pod:4884
17092 msgid "swapon-device"
17093 msgstr ""
17094
17095 #. type: verbatim
17096 #: ../fish/guestfish-actions.pod:4886
17097 #, no-wrap
17098 msgid ""
17099 " swapon-device device\n"
17100 "\n"
17101 msgstr ""
17102
17103 #. type: textblock
17104 #: ../fish/guestfish-actions.pod:4888
17105 msgid ""
17106 "This command enables the libguestfs appliance to use the swap device or "
17107 "partition named C<device>.  The increased memory is made available for all "
17108 "commands, for example those run using L</command> or L</sh>."
17109 msgstr ""
17110
17111 #. type: textblock
17112 #: ../fish/guestfish-actions.pod:4893 ../src/guestfs-actions.pod:7530
17113 msgid ""
17114 "Note that you should not swap to existing guest swap partitions unless you "
17115 "know what you are doing.  They may contain hibernation information, or other "
17116 "information that the guest doesn't want you to trash.  You also risk leaking "
17117 "information about the host to the guest this way.  Instead, attach a new "
17118 "host device to the guest and swap on that."
17119 msgstr ""
17120
17121 #. type: =head2
17122 #: ../fish/guestfish-actions.pod:4900
17123 msgid "swapon-file"
17124 msgstr ""
17125
17126 #. type: verbatim
17127 #: ../fish/guestfish-actions.pod:4902
17128 #, no-wrap
17129 msgid ""
17130 " swapon-file file\n"
17131 "\n"
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../fish/guestfish-actions.pod:4904
17136 msgid ""
17137 "This command enables swap to a file.  See L</swapon-device> for other notes."
17138 msgstr ""
17139
17140 #. type: =head2
17141 #: ../fish/guestfish-actions.pod:4907
17142 msgid "swapon-label"
17143 msgstr ""
17144
17145 #. type: verbatim
17146 #: ../fish/guestfish-actions.pod:4909
17147 #, no-wrap
17148 msgid ""
17149 " swapon-label label\n"
17150 "\n"
17151 msgstr ""
17152
17153 #. type: textblock
17154 #: ../fish/guestfish-actions.pod:4911
17155 msgid ""
17156 "This command enables swap to a labeled swap partition.  See L</swapon-"
17157 "device> for other notes."
17158 msgstr ""
17159
17160 #. type: =head2
17161 #: ../fish/guestfish-actions.pod:4914
17162 msgid "swapon-uuid"
17163 msgstr ""
17164
17165 #. type: verbatim
17166 #: ../fish/guestfish-actions.pod:4916
17167 #, no-wrap
17168 msgid ""
17169 " swapon-uuid uuid\n"
17170 "\n"
17171 msgstr ""
17172
17173 #. type: textblock
17174 #: ../fish/guestfish-actions.pod:4918
17175 msgid ""
17176 "This command enables swap to a swap partition with the given UUID.  See L</"
17177 "swapon-device> for other notes."
17178 msgstr ""
17179
17180 #. type: =head2
17181 #: ../fish/guestfish-actions.pod:4921
17182 msgid "sync"
17183 msgstr ""
17184
17185 #. type: verbatim
17186 #: ../fish/guestfish-actions.pod:4923
17187 #, no-wrap
17188 msgid ""
17189 " sync\n"
17190 "\n"
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../fish/guestfish-actions.pod:4925 ../src/guestfs-actions.pod:7585
17195 msgid ""
17196 "This syncs the disk, so that any writes are flushed through to the "
17197 "underlying disk image."
17198 msgstr ""
17199
17200 #. type: textblock
17201 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7588
17202 msgid ""
17203 "You should always call this if you have modified a disk image, before "
17204 "closing the handle."
17205 msgstr ""
17206
17207 #. type: =head2
17208 #: ../fish/guestfish-actions.pod:4931
17209 msgid "tail"
17210 msgstr ""
17211
17212 #. type: verbatim
17213 #: ../fish/guestfish-actions.pod:4933
17214 #, no-wrap
17215 msgid ""
17216 " tail path\n"
17217 "\n"
17218 msgstr ""
17219
17220 #. type: textblock
17221 #: ../fish/guestfish-actions.pod:4935 ../src/guestfs-actions.pod:7601
17222 msgid ""
17223 "This command returns up to the last 10 lines of a file as a list of strings."
17224 msgstr ""
17225
17226 #. type: =head2
17227 #: ../fish/guestfish-actions.pod:4941
17228 msgid "tail-n"
17229 msgstr ""
17230
17231 #. type: verbatim
17232 #: ../fish/guestfish-actions.pod:4943
17233 #, no-wrap
17234 msgid ""
17235 " tail-n nrlines path\n"
17236 "\n"
17237 msgstr ""
17238
17239 #. type: textblock
17240 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7620
17241 msgid ""
17242 "If the parameter C<nrlines> is a positive number, this returns the last "
17243 "C<nrlines> lines of the file C<path>."
17244 msgstr ""
17245
17246 #. type: textblock
17247 #: ../fish/guestfish-actions.pod:4948 ../src/guestfs-actions.pod:7623
17248 msgid ""
17249 "If the parameter C<nrlines> is a negative number, this returns lines from "
17250 "the file C<path>, starting with the C<-nrlines>th line."
17251 msgstr ""
17252
17253 #. type: =head2
17254 #: ../fish/guestfish-actions.pod:4956
17255 msgid "tar-in"
17256 msgstr ""
17257
17258 #. type: verbatim
17259 #: ../fish/guestfish-actions.pod:4958
17260 #, no-wrap
17261 msgid ""
17262 " tar-in (tarfile|-) directory\n"
17263 "\n"
17264 msgstr ""
17265
17266 #. type: textblock
17267 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7644
17268 msgid ""
17269 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17270 "tar file) into C<directory>."
17271 msgstr ""
17272
17273 #. type: textblock
17274 #: ../fish/guestfish-actions.pod:4963
17275 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17276 msgstr ""
17277
17278 #. type: =head2
17279 #: ../fish/guestfish-actions.pod:4968
17280 msgid "tar-out"
17281 msgstr ""
17282
17283 #. type: verbatim
17284 #: ../fish/guestfish-actions.pod:4970
17285 #, no-wrap
17286 msgid ""
17287 " tar-out directory (tarfile|-)\n"
17288 "\n"
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7661
17293 msgid ""
17294 "This command packs the contents of C<directory> and downloads it to local "
17295 "file C<tarfile>."
17296 msgstr ""
17297
17298 #. type: textblock
17299 #: ../fish/guestfish-actions.pod:4975
17300 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17301 msgstr ""
17302
17303 #. type: =head2
17304 #: ../fish/guestfish-actions.pod:4980
17305 msgid "tgz-in"
17306 msgstr ""
17307
17308 #. type: verbatim
17309 #: ../fish/guestfish-actions.pod:4982
17310 #, no-wrap
17311 msgid ""
17312 " tgz-in (tarball|-) directory\n"
17313 "\n"
17314 msgstr ""
17315
17316 #. type: textblock
17317 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7678
17318 msgid ""
17319 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17320 "tar file) into C<directory>."
17321 msgstr ""
17322
17323 #. type: textblock
17324 #: ../fish/guestfish-actions.pod:4987
17325 msgid "To upload an uncompressed tarball, use L</tar-in>."
17326 msgstr ""
17327
17328 #. type: =head2
17329 #: ../fish/guestfish-actions.pod:4991
17330 msgid "tgz-out"
17331 msgstr ""
17332
17333 #. type: verbatim
17334 #: ../fish/guestfish-actions.pod:4993
17335 #, no-wrap
17336 msgid ""
17337 " tgz-out directory (tarball|-)\n"
17338 "\n"
17339 msgstr ""
17340
17341 #. type: textblock
17342 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7694
17343 msgid ""
17344 "This command packs the contents of C<directory> and downloads it to local "
17345 "file C<tarball>."
17346 msgstr ""
17347
17348 #. type: textblock
17349 #: ../fish/guestfish-actions.pod:4998
17350 msgid "To download an uncompressed tarball, use L</tar-out>."
17351 msgstr ""
17352
17353 #. type: =head2
17354 #: ../fish/guestfish-actions.pod:5002
17355 msgid "touch"
17356 msgstr ""
17357
17358 #. type: verbatim
17359 #: ../fish/guestfish-actions.pod:5004
17360 #, no-wrap
17361 msgid ""
17362 " touch path\n"
17363 "\n"
17364 msgstr ""
17365
17366 #. type: textblock
17367 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
17368 msgid ""
17369 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17370 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17371 "length file."
17372 msgstr ""
17373
17374 #. type: textblock
17375 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7713
17376 msgid ""
17377 "This command only works on regular files, and will fail on other file types "
17378 "such as directories, symbolic links, block special etc."
17379 msgstr ""
17380
17381 #. type: =head2
17382 #: ../fish/guestfish-actions.pod:5013
17383 msgid "truncate"
17384 msgstr ""
17385
17386 #. type: verbatim
17387 #: ../fish/guestfish-actions.pod:5015
17388 #, no-wrap
17389 msgid ""
17390 " truncate path\n"
17391 "\n"
17392 msgstr ""
17393
17394 #. type: textblock
17395 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7726
17396 msgid ""
17397 "This command truncates C<path> to a zero-length file.  The file must exist "
17398 "already."
17399 msgstr ""
17400
17401 #. type: =head2
17402 #: ../fish/guestfish-actions.pod:5020
17403 msgid "truncate-size"
17404 msgstr ""
17405
17406 #. type: verbatim
17407 #: ../fish/guestfish-actions.pod:5022
17408 #, no-wrap
17409 msgid ""
17410 " truncate-size path size\n"
17411 "\n"
17412 msgstr ""
17413
17414 #. type: textblock
17415 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7740
17416 msgid ""
17417 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17418 "already."
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish-actions.pod:5027
17423 msgid ""
17424 "If the current file size is less than C<size> then the file is extended to "
17425 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17426 "blocks are not allocated for the file until you write to it).  To create a "
17427 "non-sparse file of zeroes, use L</fallocate64> instead."
17428 msgstr ""
17429
17430 #. type: =head2
17431 #: ../fish/guestfish-actions.pod:5033
17432 msgid "tune2fs"
17433 msgstr ""
17434
17435 #. type: verbatim
17436 #: ../fish/guestfish-actions.pod:5035
17437 #, no-wrap
17438 msgid ""
17439 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
17440 "\n"
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7776
17445 msgid ""
17446 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
17447 "ext4 filesystem called C<device>."
17448 msgstr ""
17449
17450 #. type: textblock
17451 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7785
17452 msgid ""
17453 "Force tune2fs to complete the operation even in the face of errors.  This is "
17454 "the same as the tune2fs C<-f> option."
17455 msgstr ""
17456
17457 #. type: =item
17458 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7788
17459 msgid "C<maxmountcount>"
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7790
17464 msgid ""
17465 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
17466 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
17467 "same as the tune2fs C<-c> option."
17468 msgstr ""
17469
17470 #. type: =item
17471 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
17472 msgid "C<mountcount>"
17473 msgstr ""
17474
17475 #. type: textblock
17476 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
17477 msgid ""
17478 "Set the number of times the filesystem has been mounted.  This is the same "
17479 "as the tune2fs C<-C> option."
17480 msgstr ""
17481
17482 #. type: =item
17483 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7799
17484 msgid "C<errorbehavior>"
17485 msgstr ""
17486
17487 #. type: textblock
17488 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7801
17489 msgid ""
17490 "Change the behavior of the kernel code when errors are detected.  Possible "
17491 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
17492 "these options don't really make any difference, particularly for write "
17493 "errors."
17494 msgstr ""
17495
17496 #. type: textblock
17497 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7806
17498 msgid "This is the same as the tune2fs C<-e> option."
17499 msgstr ""
17500
17501 #. type: =item
17502 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7808
17503 msgid "C<group>"
17504 msgstr ""
17505
17506 #. type: textblock
17507 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7810
17508 msgid ""
17509 "Set the group which can use reserved filesystem blocks.  This is the same as "
17510 "the tune2fs C<-g> option except that it can only be specified as a number."
17511 msgstr ""
17512
17513 #. type: =item
17514 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
17515 msgid "C<intervalbetweenchecks>"
17516 msgstr ""
17517
17518 #. type: textblock
17519 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
17520 msgid ""
17521 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
17522 "option is passed as C<0> then time-dependent checking is disabled."
17523 msgstr ""
17524
17525 #. type: textblock
17526 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
17527 msgid "This is the same as the tune2fs C<-i> option."
17528 msgstr ""
17529
17530 #. type: =item
17531 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
17532 msgid "C<reservedblockspercentage>"
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7824
17537 msgid ""
17538 "Set the percentage of the filesystem which may only be allocated by "
17539 "privileged processes.  This is the same as the tune2fs C<-m> option."
17540 msgstr ""
17541
17542 #. type: =item
17543 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
17544 msgid "C<lastmounteddirectory>"
17545 msgstr ""
17546
17547 #. type: textblock
17548 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
17549 msgid ""
17550 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
17551 "option."
17552 msgstr ""
17553
17554 #. type: =item
17555 #: ../fish/guestfish-actions.pod:5094 ../src/guestfs-actions.pod:7833
17556 msgid ""
17557 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
17558 "is the same as the tune2fs C<-r> option."
17559 msgstr ""
17560
17561 #. type: =item
17562 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7837
17563 msgid "C<user>"
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
17568 msgid ""
17569 "Set the user who can use the reserved filesystem blocks.  This is the same "
17570 "as the tune2fs C<-u> option except that it can only be specified as a number."
17571 msgstr ""
17572
17573 #. type: textblock
17574 #: ../fish/guestfish-actions.pod:5106
17575 msgid ""
17576 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
17577 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
17578 msgstr ""
17579
17580 #. type: =head2
17581 #: ../fish/guestfish-actions.pod:5112
17582 msgid "tune2fs-l"
17583 msgstr ""
17584
17585 #. type: verbatim
17586 #: ../fish/guestfish-actions.pod:5114
17587 #, no-wrap
17588 msgid ""
17589 " tune2fs-l device\n"
17590 "\n"
17591 msgstr ""
17592
17593 #. type: textblock
17594 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7881
17595 msgid ""
17596 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17597 "C<device>."
17598 msgstr ""
17599
17600 #. type: textblock
17601 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7884
17602 msgid ""
17603 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17604 "for more details.  The list of fields returned isn't clearly defined, and "
17605 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17606 "and the filesystem itself."
17607 msgstr ""
17608
17609 #. type: =head2
17610 #: ../fish/guestfish-actions.pod:5124
17611 msgid "txz-in"
17612 msgstr ""
17613
17614 #. type: verbatim
17615 #: ../fish/guestfish-actions.pod:5126
17616 #, no-wrap
17617 msgid ""
17618 " txz-in (tarball|-) directory\n"
17619 "\n"
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish-actions.pod:5128 ../src/guestfs-actions.pod:7904
17624 msgid ""
17625 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17626 "tar file) into C<directory>."
17627 msgstr ""
17628
17629 #. type: =head2
17630 #: ../fish/guestfish-actions.pod:5133
17631 msgid "txz-out"
17632 msgstr ""
17633
17634 #. type: verbatim
17635 #: ../fish/guestfish-actions.pod:5135
17636 #, no-wrap
17637 msgid ""
17638 " txz-out directory (tarball|-)\n"
17639 "\n"
17640 msgstr ""
17641
17642 #. type: textblock
17643 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:7918
17644 msgid ""
17645 "This command packs the contents of C<directory> and downloads it to local "
17646 "file C<tarball> (as an xz compressed tar archive)."
17647 msgstr ""
17648
17649 #. type: =head2
17650 #: ../fish/guestfish-actions.pod:5142
17651 msgid "umask"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish-actions.pod:5144
17656 #, no-wrap
17657 msgid ""
17658 " umask mask\n"
17659 "\n"
17660 msgstr ""
17661
17662 #. type: textblock
17663 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7931
17664 msgid ""
17665 "This function sets the mask used for creating new files and device nodes to "
17666 "C<mask & 0777>."
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7934
17671 msgid ""
17672 "Typical umask values would be C<022> which creates new files with "
17673 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17674 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17675 msgstr ""
17676
17677 #. type: textblock
17678 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7939
17679 msgid ""
17680 "The default umask is C<022>.  This is important because it means that "
17681 "directories and device nodes will be created with C<0644> or C<0755> mode "
17682 "even if you specify C<0777>."
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../fish/guestfish-actions.pod:5158
17687 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17688 msgstr ""
17689
17690 #. type: textblock
17691 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7946
17692 msgid "This call returns the previous umask."
17693 msgstr ""
17694
17695 #. type: =head2
17696 #: ../fish/guestfish-actions.pod:5163
17697 msgid "umount"
17698 msgstr ""
17699
17700 #. type: =head2
17701 #: ../fish/guestfish-actions.pod:5165
17702 msgid "unmount"
17703 msgstr ""
17704
17705 #. type: verbatim
17706 #: ../fish/guestfish-actions.pod:5167
17707 #, no-wrap
17708 msgid ""
17709 " umount pathordevice\n"
17710 "\n"
17711 msgstr ""
17712
17713 #. type: textblock
17714 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7958
17715 msgid ""
17716 "This unmounts the given filesystem.  The filesystem may be specified either "
17717 "by its mountpoint (path) or the device which contains the filesystem."
17718 msgstr ""
17719
17720 #. type: =head2
17721 #: ../fish/guestfish-actions.pod:5173
17722 msgid "umount-all"
17723 msgstr ""
17724
17725 #. type: =head2
17726 #: ../fish/guestfish-actions.pod:5175
17727 msgid "unmount-all"
17728 msgstr ""
17729
17730 #. type: verbatim
17731 #: ../fish/guestfish-actions.pod:5177
17732 #, no-wrap
17733 msgid ""
17734 " umount-all\n"
17735 "\n"
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7971
17740 msgid "This unmounts all mounted filesystems."
17741 msgstr ""
17742
17743 #. type: textblock
17744 #: ../fish/guestfish-actions.pod:5181 ../src/guestfs-actions.pod:7973
17745 msgid "Some internal mounts are not unmounted by this call."
17746 msgstr ""
17747
17748 #. type: =head2
17749 #: ../fish/guestfish-actions.pod:5183
17750 msgid "upload"
17751 msgstr ""
17752
17753 #. type: verbatim
17754 #: ../fish/guestfish-actions.pod:5185
17755 #, no-wrap
17756 msgid ""
17757 " upload (filename|-) remotefilename\n"
17758 "\n"
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../fish/guestfish-actions.pod:5187 ../fish/guestfish-actions.pod:5200
17763 #: ../src/guestfs-actions.pod:7986 ../src/guestfs-actions.pod:8010
17764 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish-actions.pod:5192
17769 msgid "See also L</download>."
17770 msgstr ""
17771
17772 #. type: =head2
17773 #: ../fish/guestfish-actions.pod:5196
17774 msgid "upload-offset"
17775 msgstr ""
17776
17777 #. type: verbatim
17778 #: ../fish/guestfish-actions.pod:5198
17779 #, no-wrap
17780 msgid ""
17781 " upload-offset (filename|-) remotefilename offset\n"
17782 "\n"
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8013
17787 msgid ""
17788 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17789 "The intention is to overwrite parts of existing files or devices, although "
17790 "if a non-existant file is specified then it is created with a \"hole\" "
17791 "before C<offset>.  The size of the data written is implicit in the size of "
17792 "the source C<filename>."
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish-actions.pod:5210
17797 msgid ""
17798 "Note that there is no limit on the amount of data that can be uploaded with "
17799 "this call, unlike with L</pwrite>, and this call always writes the full "
17800 "amount unless an error occurs."
17801 msgstr ""
17802
17803 #. type: textblock
17804 #: ../fish/guestfish-actions.pod:5215
17805 msgid "See also L</upload>, L</pwrite>."
17806 msgstr ""
17807
17808 #. type: =head2
17809 #: ../fish/guestfish-actions.pod:5219
17810 msgid "utimens"
17811 msgstr ""
17812
17813 #. type: verbatim
17814 #: ../fish/guestfish-actions.pod:5221
17815 #, no-wrap
17816 msgid ""
17817 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17818 "\n"
17819 msgstr ""
17820
17821 #. type: textblock
17822 #: ../fish/guestfish-actions.pod:5223 ../src/guestfs-actions.pod:8046
17823 msgid "This command sets the timestamps of a file with nanosecond precision."
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:8049
17828 msgid ""
17829 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17830 "from the epoch."
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
17835 msgid ""
17836 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17837 "nanoseconds from the epoch."
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
17842 msgid ""
17843 "If the C<*nsecs> field contains the special value C<-1> then the "
17844 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17845 "ignored in this case)."
17846 msgstr ""
17847
17848 #. type: textblock
17849 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8059
17850 msgid ""
17851 "If the C<*nsecs> field contains the special value C<-2> then the "
17852 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17853 "in this case)."
17854 msgstr ""
17855
17856 #. type: =head2
17857 #: ../fish/guestfish-actions.pod:5240
17858 msgid "version"
17859 msgstr ""
17860
17861 #. type: verbatim
17862 #: ../fish/guestfish-actions.pod:5242
17863 #, no-wrap
17864 msgid ""
17865 " version\n"
17866 "\n"
17867 msgstr ""
17868
17869 #. type: textblock
17870 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8072
17871 msgid ""
17872 "Return the libguestfs version number that the program is linked against."
17873 msgstr ""
17874
17875 #. type: textblock
17876 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8075
17877 msgid ""
17878 "Note that because of dynamic linking this is not necessarily the version of "
17879 "libguestfs that you compiled against.  You can compile the program, and then "
17880 "at runtime dynamically link against a completely different C<libguestfs.so> "
17881 "library."
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8080
17886 msgid ""
17887 "This call was added in version C<1.0.58>.  In previous versions of "
17888 "libguestfs there was no way to get the version number.  From C code you can "
17889 "use dynamic linker functions to find out if this symbol exists (if it "
17890 "doesn't, then it's an earlier version)."
17891 msgstr ""
17892
17893 #. type: textblock
17894 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
17895 msgid ""
17896 "The call returns a structure with four elements.  The first three (C<major>, "
17897 "C<minor> and C<release>) are numbers and correspond to the usual version "
17898 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17899 "but may be used for distro-specific information."
17900 msgstr ""
17901
17902 #. type: textblock
17903 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
17904 msgid ""
17905 "To construct the original version string: C<$major.$minor.$release$extra>"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8095
17910 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17911 msgstr ""
17912
17913 #. type: textblock
17914 #: ../fish/guestfish-actions.pod:5269
17915 msgid ""
17916 "I<Note:> Don't use this call to test for availability of features.  In "
17917 "enterprise distributions we backport features from later versions into "
17918 "earlier versions, making this an unreliable way to test for features.  Use "
17919 "L</available> instead."
17920 msgstr ""
17921
17922 #. type: =head2
17923 #: ../fish/guestfish-actions.pod:5275
17924 msgid "vfs-label"
17925 msgstr ""
17926
17927 #. type: verbatim
17928 #: ../fish/guestfish-actions.pod:5277
17929 #, no-wrap
17930 msgid ""
17931 " vfs-label device\n"
17932 "\n"
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8115
17937 msgid "This returns the filesystem label of the filesystem on C<device>."
17938 msgstr ""
17939
17940 #. type: textblock
17941 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8118
17942 msgid "If the filesystem is unlabeled, this returns the empty string."
17943 msgstr ""
17944
17945 #. type: textblock
17946 #: ../fish/guestfish-actions.pod:5284
17947 msgid "To find a filesystem from the label, use L</findfs-label>."
17948 msgstr ""
17949
17950 #. type: =head2
17951 #: ../fish/guestfish-actions.pod:5286
17952 msgid "vfs-type"
17953 msgstr ""
17954
17955 #. type: verbatim
17956 #: ../fish/guestfish-actions.pod:5288
17957 #, no-wrap
17958 msgid ""
17959 " vfs-type device\n"
17960 "\n"
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish-actions.pod:5290 ../src/guestfs-actions.pod:8133
17965 msgid ""
17966 "This command gets the filesystem type corresponding to the filesystem on "
17967 "C<device>."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8136
17972 msgid ""
17973 "For most filesystems, the result is the name of the Linux VFS module which "
17974 "would be used to mount this filesystem if you mounted it without specifying "
17975 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17976 msgstr ""
17977
17978 #. type: =head2
17979 #: ../fish/guestfish-actions.pod:5298
17980 msgid "vfs-uuid"
17981 msgstr ""
17982
17983 #. type: verbatim
17984 #: ../fish/guestfish-actions.pod:5300
17985 #, no-wrap
17986 msgid ""
17987 " vfs-uuid device\n"
17988 "\n"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17993 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17998 msgid "If the filesystem does not have a UUID, this returns the empty string."
17999 msgstr ""
18000
18001 #. type: textblock
18002 #: ../fish/guestfish-actions.pod:5307
18003 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18004 msgstr ""
18005
18006 #. type: =head2
18007 #: ../fish/guestfish-actions.pod:5309
18008 msgid "vg-activate"
18009 msgstr ""
18010
18011 #. type: verbatim
18012 #: ../fish/guestfish-actions.pod:5311
18013 #, no-wrap
18014 msgid ""
18015 " vg-activate true|false 'volgroups ...'\n"
18016 "\n"
18017 msgstr ""
18018
18019 #. type: textblock
18020 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8171
18021 msgid ""
18022 "This command activates or (if C<activate> is false) deactivates all logical "
18023 "volumes in the listed volume groups C<volgroups>."
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish-actions.pod:5316 ../src/guestfs-actions.pod:8174
18028 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18029 msgstr ""
18030
18031 #. type: textblock
18032 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:8176
18033 msgid ""
18034 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18035 "activated or deactivated."
18036 msgstr ""
18037
18038 #. type: =head2
18039 #: ../fish/guestfish-actions.pod:5321
18040 msgid "vg-activate-all"
18041 msgstr ""
18042
18043 #. type: verbatim
18044 #: ../fish/guestfish-actions.pod:5323
18045 #, no-wrap
18046 msgid ""
18047 " vg-activate-all true|false\n"
18048 "\n"
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8189
18053 msgid ""
18054 "This command activates or (if C<activate> is false) deactivates all logical "
18055 "volumes in all volume groups."
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish-actions.pod:5328 ../src/guestfs-actions.pod:8192
18060 msgid "This command is the same as running C<vgchange -a y|n>"
18061 msgstr ""
18062
18063 #. type: =head2
18064 #: ../fish/guestfish-actions.pod:5330
18065 msgid "vgcreate"
18066 msgstr ""
18067
18068 #. type: verbatim
18069 #: ../fish/guestfish-actions.pod:5332
18070 #, no-wrap
18071 msgid ""
18072 " vgcreate volgroup 'physvols ...'\n"
18073 "\n"
18074 msgstr ""
18075
18076 #. type: textblock
18077 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8205
18078 msgid ""
18079 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18080 "of physical volumes C<physvols>."
18081 msgstr ""
18082
18083 #. type: =head2
18084 #: ../fish/guestfish-actions.pod:5337
18085 msgid "vglvuuids"
18086 msgstr ""
18087
18088 #. type: verbatim
18089 #: ../fish/guestfish-actions.pod:5339
18090 #, no-wrap
18091 msgid ""
18092 " vglvuuids vgname\n"
18093 "\n"
18094 msgstr ""
18095
18096 #. type: textblock
18097 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8218
18098 msgid ""
18099 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18100 "volumes created in this volume group."
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish-actions.pod:5344
18105 msgid ""
18106 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18107 "logical volumes and volume groups."
18108 msgstr ""
18109
18110 #. type: textblock
18111 #: ../fish/guestfish-actions.pod:5347
18112 msgid "See also L</vgpvuuids>."
18113 msgstr ""
18114
18115 #. type: =head2
18116 #: ../fish/guestfish-actions.pod:5349
18117 msgid "vgpvuuids"
18118 msgstr ""
18119
18120 #. type: verbatim
18121 #: ../fish/guestfish-actions.pod:5351
18122 #, no-wrap
18123 msgid ""
18124 " vgpvuuids vgname\n"
18125 "\n"
18126 msgstr ""
18127
18128 #. type: textblock
18129 #: ../fish/guestfish-actions.pod:5353 ../src/guestfs-actions.pod:8238
18130 msgid ""
18131 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18132 "volumes that this volume group resides on."
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish-actions.pod:5356
18137 msgid ""
18138 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18139 "physical volumes and volume groups."
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish-actions.pod:5359
18144 msgid "See also L</vglvuuids>."
18145 msgstr ""
18146
18147 #. type: =head2
18148 #: ../fish/guestfish-actions.pod:5361
18149 msgid "vgremove"
18150 msgstr ""
18151
18152 #. type: verbatim
18153 #: ../fish/guestfish-actions.pod:5363
18154 #, no-wrap
18155 msgid ""
18156 " vgremove vgname\n"
18157 "\n"
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8258
18162 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/guestfish-actions.pod:5367 ../src/guestfs-actions.pod:8260
18167 msgid ""
18168 "This also forcibly removes all logical volumes in the volume group (if any)."
18169 msgstr ""
18170
18171 #. type: =head2
18172 #: ../fish/guestfish-actions.pod:5370
18173 msgid "vgrename"
18174 msgstr ""
18175
18176 #. type: verbatim
18177 #: ../fish/guestfish-actions.pod:5372
18178 #, no-wrap
18179 msgid ""
18180 " vgrename volgroup newvolgroup\n"
18181 "\n"
18182 msgstr ""
18183
18184 #. type: textblock
18185 #: ../fish/guestfish-actions.pod:5374 ../src/guestfs-actions.pod:8274
18186 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18187 msgstr ""
18188
18189 #. type: =head2
18190 #: ../fish/guestfish-actions.pod:5376
18191 msgid "vgs"
18192 msgstr ""
18193
18194 #. type: verbatim
18195 #: ../fish/guestfish-actions.pod:5378
18196 #, no-wrap
18197 msgid ""
18198 " vgs\n"
18199 "\n"
18200 msgstr ""
18201
18202 #. type: textblock
18203 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8285
18204 msgid ""
18205 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18206 "> command."
18207 msgstr ""
18208
18209 #. type: textblock
18210 #: ../fish/guestfish-actions.pod:5383 ../src/guestfs-actions.pod:8288
18211 msgid ""
18212 "This returns a list of just the volume group names that were detected (eg. "
18213 "C<VolGroup00>)."
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/guestfish-actions.pod:5386
18218 msgid "See also L</vgs-full>."
18219 msgstr ""
18220
18221 #. type: =head2
18222 #: ../fish/guestfish-actions.pod:5388
18223 msgid "vgs-full"
18224 msgstr ""
18225
18226 #. type: verbatim
18227 #: ../fish/guestfish-actions.pod:5390
18228 #, no-wrap
18229 msgid ""
18230 " vgs-full\n"
18231 "\n"
18232 msgstr ""
18233
18234 #. type: textblock
18235 #: ../fish/guestfish-actions.pod:5392 ../src/guestfs-actions.pod:8304
18236 msgid ""
18237 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18238 "> command.  The \"full\" version includes all fields."
18239 msgstr ""
18240
18241 #. type: =head2
18242 #: ../fish/guestfish-actions.pod:5395
18243 msgid "vgscan"
18244 msgstr ""
18245
18246 #. type: verbatim
18247 #: ../fish/guestfish-actions.pod:5397
18248 #, no-wrap
18249 msgid ""
18250 " vgscan\n"
18251 "\n"
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish-actions.pod:5399 ../src/guestfs-actions.pod:8318
18256 msgid ""
18257 "This rescans all block devices and rebuilds the list of LVM physical "
18258 "volumes, volume groups and logical volumes."
18259 msgstr ""
18260
18261 #. type: =head2
18262 #: ../fish/guestfish-actions.pod:5402
18263 msgid "vguuid"
18264 msgstr ""
18265
18266 #. type: verbatim
18267 #: ../fish/guestfish-actions.pod:5404
18268 #, no-wrap
18269 msgid ""
18270 " vguuid vgname\n"
18271 "\n"
18272 msgstr ""
18273
18274 #. type: textblock
18275 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8331
18276 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18277 msgstr ""
18278
18279 #. type: =head2
18280 #: ../fish/guestfish-actions.pod:5408
18281 msgid "wc-c"
18282 msgstr ""
18283
18284 #. type: verbatim
18285 #: ../fish/guestfish-actions.pod:5410
18286 #, no-wrap
18287 msgid ""
18288 " wc-c path\n"
18289 "\n"
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8371
18294 msgid ""
18295 "This command counts the characters in a file, using the C<wc -c> external "
18296 "command."
18297 msgstr ""
18298
18299 #. type: =head2
18300 #: ../fish/guestfish-actions.pod:5415
18301 msgid "wc-l"
18302 msgstr ""
18303
18304 #. type: verbatim
18305 #: ../fish/guestfish-actions.pod:5417
18306 #, no-wrap
18307 msgid ""
18308 " wc-l path\n"
18309 "\n"
18310 msgstr ""
18311
18312 #. type: textblock
18313 #: ../fish/guestfish-actions.pod:5419 ../src/guestfs-actions.pod:8384
18314 msgid ""
18315 "This command counts the lines in a file, using the C<wc -l> external command."
18316 msgstr ""
18317
18318 #. type: =head2
18319 #: ../fish/guestfish-actions.pod:5422
18320 msgid "wc-w"
18321 msgstr ""
18322
18323 #. type: verbatim
18324 #: ../fish/guestfish-actions.pod:5424
18325 #, no-wrap
18326 msgid ""
18327 " wc-w path\n"
18328 "\n"
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/guestfish-actions.pod:5426 ../src/guestfs-actions.pod:8397
18333 msgid ""
18334 "This command counts the words in a file, using the C<wc -w> external command."
18335 msgstr ""
18336
18337 #. type: =head2
18338 #: ../fish/guestfish-actions.pod:5429
18339 msgid "write"
18340 msgstr ""
18341
18342 #. type: verbatim
18343 #: ../fish/guestfish-actions.pod:5431
18344 #, no-wrap
18345 msgid ""
18346 " write path content\n"
18347 "\n"
18348 msgstr ""
18349
18350 #. type: textblock
18351 #: ../fish/guestfish-actions.pod:5433 ../src/guestfs-actions.pod:8412
18352 msgid ""
18353 "This call creates a file called C<path>.  The content of the file is the "
18354 "string C<content> (which can contain any 8 bit data)."
18355 msgstr ""
18356
18357 #. type: textblock
18358 #: ../fish/guestfish-actions.pod:5436
18359 msgid "See also L</write-append>."
18360 msgstr ""
18361
18362 #. type: =head2
18363 #: ../fish/guestfish-actions.pod:5441
18364 msgid "write-append"
18365 msgstr ""
18366
18367 #. type: verbatim
18368 #: ../fish/guestfish-actions.pod:5443
18369 #, no-wrap
18370 msgid ""
18371 " write-append path content\n"
18372 "\n"
18373 msgstr ""
18374
18375 #. type: textblock
18376 #: ../fish/guestfish-actions.pod:5445 ../src/guestfs-actions.pod:8432
18377 msgid ""
18378 "This call appends C<content> to the end of file C<path>.  If C<path> does "
18379 "not exist, then a new file is created."
18380 msgstr ""
18381
18382 #. type: textblock
18383 #: ../fish/guestfish-actions.pod:5448
18384 msgid "See also L</write>."
18385 msgstr ""
18386
18387 #. type: =head2
18388 #: ../fish/guestfish-actions.pod:5453
18389 msgid "write-file"
18390 msgstr ""
18391
18392 #. type: verbatim
18393 #: ../fish/guestfish-actions.pod:5455
18394 #, no-wrap
18395 msgid ""
18396 " write-file path content size\n"
18397 "\n"
18398 msgstr ""
18399
18400 #. type: textblock
18401 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8459
18402 msgid ""
18403 "This call creates a file called C<path>.  The contents of the file is the "
18404 "string C<content> (which can contain any 8 bit data), with length C<size>."
18405 msgstr ""
18406
18407 #. type: textblock
18408 #: ../fish/guestfish-actions.pod:5461 ../src/guestfs-actions.pod:8463
18409 msgid ""
18410 "As a special case, if C<size> is C<0> then the length is calculated using "
18411 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18412 msgstr ""
18413
18414 #. type: textblock
18415 #: ../fish/guestfish-actions.pod:5465 ../src/guestfs-actions.pod:8467
18416 msgid ""
18417 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18418 "I<not> work, even if the length is specified."
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish-actions.pod:5471
18423 msgid ""
18424 "I<This function is deprecated.> In new code, use the L</write> call instead."
18425 msgstr ""
18426
18427 #. type: =head2
18428 #: ../fish/guestfish-actions.pod:5478
18429 msgid "zegrep"
18430 msgstr ""
18431
18432 #. type: verbatim
18433 #: ../fish/guestfish-actions.pod:5480
18434 #, no-wrap
18435 msgid ""
18436 " zegrep regex path\n"
18437 "\n"
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fish/guestfish-actions.pod:5482 ../src/guestfs-actions.pod:8484
18442 msgid ""
18443 "This calls the external C<zegrep> program and returns the matching lines."
18444 msgstr ""
18445
18446 #. type: =head2
18447 #: ../fish/guestfish-actions.pod:5488
18448 msgid "zegrepi"
18449 msgstr ""
18450
18451 #. type: verbatim
18452 #: ../fish/guestfish-actions.pod:5490
18453 #, no-wrap
18454 msgid ""
18455 " zegrepi regex path\n"
18456 "\n"
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8503
18461 msgid ""
18462 "This calls the external C<zegrep -i> program and returns the matching lines."
18463 msgstr ""
18464
18465 #. type: =head2
18466 #: ../fish/guestfish-actions.pod:5498
18467 msgid "zero"
18468 msgstr ""
18469
18470 #. type: verbatim
18471 #: ../fish/guestfish-actions.pod:5500
18472 #, no-wrap
18473 msgid ""
18474 " zero device\n"
18475 "\n"
18476 msgstr ""
18477
18478 #. type: textblock
18479 #: ../fish/guestfish-actions.pod:5502 ../src/guestfs-actions.pod:8521
18480 msgid "This command writes zeroes over the first few blocks of C<device>."
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish-actions.pod:5504 ../src/guestfs-actions.pod:8523
18485 msgid ""
18486 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18487 "securely wipe the device).  It should be sufficient to remove any partition "
18488 "tables, filesystem superblocks and so on."
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish-actions.pod:5508 ../fish/guestfish-actions.pod:5523
18493 #: ../src/guestfs-actions.pod:8527 ../src/guestfs-actions.pod:8553
18494 msgid ""
18495 "If blocks are already zero, then this command avoids writing zeroes.  This "
18496 "prevents the underlying device from becoming non-sparse or growing "
18497 "unnecessarily."
18498 msgstr ""
18499
18500 #. type: textblock
18501 #: ../fish/guestfish-actions.pod:5512
18502 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18503 msgstr ""
18504
18505 #. type: =head2
18506 #: ../fish/guestfish-actions.pod:5515
18507 msgid "zero-device"
18508 msgstr ""
18509
18510 #. type: verbatim
18511 #: ../fish/guestfish-actions.pod:5517
18512 #, no-wrap
18513 msgid ""
18514 " zero-device device\n"
18515 "\n"
18516 msgstr ""
18517
18518 #. type: textblock
18519 #: ../fish/guestfish-actions.pod:5519
18520 msgid ""
18521 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18522 "which just zeroes the first few blocks of a device."
18523 msgstr ""
18524
18525 #. type: =head2
18526 #: ../fish/guestfish-actions.pod:5527
18527 msgid "zerofree"
18528 msgstr ""
18529
18530 #. type: verbatim
18531 #: ../fish/guestfish-actions.pod:5529
18532 #, no-wrap
18533 msgid ""
18534 " zerofree device\n"
18535 "\n"
18536 msgstr ""
18537
18538 #. type: textblock
18539 #: ../fish/guestfish-actions.pod:5531 ../src/guestfs-actions.pod:8572
18540 msgid ""
18541 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18542 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18543 "possible to compress the filesystem more effectively."
18544 msgstr ""
18545
18546 #. type: textblock
18547 #: ../fish/guestfish-actions.pod:5536 ../src/guestfs-actions.pod:8577
18548 msgid "You should B<not> run this program if the filesystem is mounted."
18549 msgstr ""
18550
18551 #. type: textblock
18552 #: ../fish/guestfish-actions.pod:5539 ../src/guestfs-actions.pod:8580
18553 msgid ""
18554 "It is possible that using this program can damage the filesystem or data on "
18555 "the filesystem."
18556 msgstr ""
18557
18558 #. type: =head2
18559 #: ../fish/guestfish-actions.pod:5542
18560 msgid "zfgrep"
18561 msgstr ""
18562
18563 #. type: verbatim
18564 #: ../fish/guestfish-actions.pod:5544
18565 #, no-wrap
18566 msgid ""
18567 " zfgrep pattern path\n"
18568 "\n"
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../fish/guestfish-actions.pod:5546 ../src/guestfs-actions.pod:8594
18573 msgid ""
18574 "This calls the external C<zfgrep> program and returns the matching lines."
18575 msgstr ""
18576
18577 #. type: =head2
18578 #: ../fish/guestfish-actions.pod:5552
18579 msgid "zfgrepi"
18580 msgstr ""
18581
18582 #. type: verbatim
18583 #: ../fish/guestfish-actions.pod:5554
18584 #, no-wrap
18585 msgid ""
18586 " zfgrepi pattern path\n"
18587 "\n"
18588 msgstr ""
18589
18590 #. type: textblock
18591 #: ../fish/guestfish-actions.pod:5556 ../src/guestfs-actions.pod:8613
18592 msgid ""
18593 "This calls the external C<zfgrep -i> program and returns the matching lines."
18594 msgstr ""
18595
18596 #. type: =head2
18597 #: ../fish/guestfish-actions.pod:5562
18598 msgid "zfile"
18599 msgstr ""
18600
18601 #. type: verbatim
18602 #: ../fish/guestfish-actions.pod:5564
18603 #, no-wrap
18604 msgid ""
18605 " zfile meth path\n"
18606 "\n"
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:8639
18611 msgid ""
18612 "This command runs C<file> after first decompressing C<path> using C<method>."
18613 msgstr ""
18614
18615 #. type: textblock
18616 #: ../fish/guestfish-actions.pod:5569 ../src/guestfs-actions.pod:8642
18617 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../fish/guestfish-actions.pod:5571
18622 msgid ""
18623 "Since 1.0.63, use L</file> instead which can now process compressed files."
18624 msgstr ""
18625
18626 #. type: textblock
18627 #: ../fish/guestfish-actions.pod:5574
18628 msgid ""
18629 "I<This function is deprecated.> In new code, use the L</file> call instead."
18630 msgstr ""
18631
18632 #. type: =head2
18633 #: ../fish/guestfish-actions.pod:5581
18634 msgid "zgrep"
18635 msgstr ""
18636
18637 #. type: verbatim
18638 #: ../fish/guestfish-actions.pod:5583
18639 #, no-wrap
18640 msgid ""
18641 " zgrep regex path\n"
18642 "\n"
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish-actions.pod:5585 ../src/guestfs-actions.pod:8659
18647 msgid ""
18648 "This calls the external C<zgrep> program and returns the matching lines."
18649 msgstr ""
18650
18651 #. type: =head2
18652 #: ../fish/guestfish-actions.pod:5591
18653 msgid "zgrepi"
18654 msgstr ""
18655
18656 #. type: verbatim
18657 #: ../fish/guestfish-actions.pod:5593
18658 #, no-wrap
18659 msgid ""
18660 " zgrepi regex path\n"
18661 "\n"
18662 msgstr ""
18663
18664 #. type: textblock
18665 #: ../fish/guestfish-actions.pod:5595 ../src/guestfs-actions.pod:8678
18666 msgid ""
18667 "This calls the external C<zgrep -i> program and returns the matching lines."
18668 msgstr ""
18669
18670 #. type: =head2
18671 #: ../fish/guestfish-commands.pod:1
18672 msgid "alloc"
18673 msgstr ""
18674
18675 #. type: =head2
18676 #: ../fish/guestfish-commands.pod:3
18677 msgid "allocate"
18678 msgstr ""
18679
18680 #. type: verbatim
18681 #: ../fish/guestfish-commands.pod:5
18682 #, no-wrap
18683 msgid ""
18684 " alloc filename size\n"
18685 "\n"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fish/guestfish-commands.pod:7
18690 msgid ""
18691 "This creates an empty (zeroed) file of the given size, and then adds so it "
18692 "can be further examined."
18693 msgstr ""
18694
18695 #. type: textblock
18696 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18697 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18698 msgstr ""
18699
18700 #. type: textblock
18701 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18702 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18703 msgstr ""
18704
18705 #. type: textblock
18706 #: ../fish/guestfish-commands.pod:14
18707 msgid ""
18708 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18709 "image, see L</PREPARED DISK IMAGES>."
18710 msgstr ""
18711
18712 #. type: =head2
18713 #: ../fish/guestfish-commands.pod:17
18714 msgid "copy-in"
18715 msgstr ""
18716
18717 #. type: verbatim
18718 #: ../fish/guestfish-commands.pod:19
18719 #, no-wrap
18720 msgid ""
18721 " copy-in local [local ...] /remotedir\n"
18722 "\n"
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fish/guestfish-commands.pod:21
18727 msgid ""
18728 "C<copy-in> copies local files or directories recursively into the disk "
18729 "image, placing them in the directory called C</remotedir> (which must "
18730 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18731 "other commands as necessary."
18732 msgstr ""
18733
18734 #. type: textblock
18735 #: ../fish/guestfish-commands.pod:26
18736 msgid ""
18737 "Multiple local files and directories can be specified, but the last "
18738 "parameter must always be a remote directory.  Wildcards cannot be used."
18739 msgstr ""
18740
18741 #. type: =head2
18742 #: ../fish/guestfish-commands.pod:30
18743 msgid "copy-out"
18744 msgstr ""
18745
18746 #. type: verbatim
18747 #: ../fish/guestfish-commands.pod:32
18748 #, no-wrap
18749 msgid ""
18750 " copy-out remote [remote ...] localdir\n"
18751 "\n"
18752 msgstr ""
18753
18754 #. type: textblock
18755 #: ../fish/guestfish-commands.pod:34
18756 msgid ""
18757 "C<copy-out> copies remote files or directories recursively out of the disk "
18758 "image, placing them on the host disk in a local directory called C<localdir> "
18759 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18760 "download>, L</tar-out> and other commands as necessary."
18761 msgstr ""
18762
18763 #. type: textblock
18764 #: ../fish/guestfish-commands.pod:40
18765 msgid ""
18766 "Multiple remote files and directories can be specified, but the last "
18767 "parameter must always be a local directory.  To download to the current "
18768 "directory, use C<.> as in:"
18769 msgstr ""
18770
18771 #. type: verbatim
18772 #: ../fish/guestfish-commands.pod:44
18773 #, no-wrap
18774 msgid ""
18775 " copy-out /home .\n"
18776 "\n"
18777 msgstr ""
18778
18779 #. type: textblock
18780 #: ../fish/guestfish-commands.pod:46
18781 msgid ""
18782 "Wildcards cannot be used in the ordinary command, but you can use them with "
18783 "the help of L</glob> like this:"
18784 msgstr ""
18785
18786 #. type: verbatim
18787 #: ../fish/guestfish-commands.pod:49
18788 #, no-wrap
18789 msgid ""
18790 " glob copy-out /home/* .\n"
18791 "\n"
18792 msgstr ""
18793
18794 #. type: =head2
18795 #: ../fish/guestfish-commands.pod:51
18796 msgid "display"
18797 msgstr ""
18798
18799 #. type: verbatim
18800 #: ../fish/guestfish-commands.pod:53
18801 #, no-wrap
18802 msgid ""
18803 " display filename\n"
18804 "\n"
18805 msgstr ""
18806
18807 #. type: textblock
18808 #: ../fish/guestfish-commands.pod:55
18809 msgid ""
18810 "Use C<display> (a graphical display program) to display an image file.  It "
18811 "downloads the file, and runs C<display> on it."
18812 msgstr ""
18813
18814 #. type: textblock
18815 #: ../fish/guestfish-commands.pod:58
18816 msgid ""
18817 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18818 "environment variable.  For example to use the GNOME display program:"
18819 msgstr ""
18820
18821 #. type: verbatim
18822 #: ../fish/guestfish-commands.pod:61
18823 #, no-wrap
18824 msgid ""
18825 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18826 "\n"
18827 msgstr ""
18828
18829 #. type: textblock
18830 #: ../fish/guestfish-commands.pod:63
18831 msgid "See also L<display(1)>."
18832 msgstr ""
18833
18834 #. type: =head2
18835 #: ../fish/guestfish-commands.pod:65
18836 msgid "echo"
18837 msgstr ""
18838
18839 #. type: verbatim
18840 #: ../fish/guestfish-commands.pod:67
18841 #, no-wrap
18842 msgid ""
18843 " echo [params ...]\n"
18844 "\n"
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish-commands.pod:69
18849 msgid "This echos the parameters to the terminal."
18850 msgstr ""
18851
18852 #. type: =head2
18853 #: ../fish/guestfish-commands.pod:71
18854 msgid "edit"
18855 msgstr ""
18856
18857 #. type: =head2
18858 #: ../fish/guestfish-commands.pod:73
18859 msgid "vi"
18860 msgstr ""
18861
18862 #. type: =head2
18863 #: ../fish/guestfish-commands.pod:75
18864 msgid "emacs"
18865 msgstr ""
18866
18867 #. type: verbatim
18868 #: ../fish/guestfish-commands.pod:77
18869 #, no-wrap
18870 msgid ""
18871 " edit filename\n"
18872 "\n"
18873 msgstr ""
18874
18875 #. type: textblock
18876 #: ../fish/guestfish-commands.pod:79
18877 msgid ""
18878 "This is used to edit a file.  It downloads the file, edits it locally using "
18879 "your editor, then uploads the result."
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish-commands.pod:82
18884 msgid ""
18885 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18886 "or C<emacs> you will get those corresponding editors."
18887 msgstr ""
18888
18889 #. type: =head2
18890 #: ../fish/guestfish-commands.pod:86
18891 msgid "glob"
18892 msgstr ""
18893
18894 #. type: verbatim
18895 #: ../fish/guestfish-commands.pod:88
18896 #, no-wrap
18897 msgid ""
18898 " glob command args...\n"
18899 "\n"
18900 msgstr ""
18901
18902 #. type: textblock
18903 #: ../fish/guestfish-commands.pod:90
18904 msgid ""
18905 "Expand wildcards in any paths in the args list, and run C<command> "
18906 "repeatedly on each matching path."
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fish/guestfish-commands.pod:93
18911 msgid "See L</WILDCARDS AND GLOBBING>."
18912 msgstr ""
18913
18914 #. type: =head2
18915 #: ../fish/guestfish-commands.pod:95
18916 msgid "hexedit"
18917 msgstr ""
18918
18919 #. type: verbatim
18920 #: ../fish/guestfish-commands.pod:97
18921 #, no-wrap
18922 msgid ""
18923 " hexedit <filename|device>\n"
18924 " hexedit <filename|device> <max>\n"
18925 " hexedit <filename|device> <start> <max>\n"
18926 "\n"
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../fish/guestfish-commands.pod:101
18931 msgid ""
18932 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18933 "device."
18934 msgstr ""
18935
18936 #. type: textblock
18937 #: ../fish/guestfish-commands.pod:104
18938 msgid ""
18939 "This command works by downloading potentially the whole file or device, "
18940 "editing it locally, then uploading it.  If the file or device is large, you "
18941 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18942 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18943 "usual modifiers allowed such as C<1M> (1 megabyte)."
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish-commands.pod:111
18948 msgid "For example to edit the first few sectors of a disk you might do:"
18949 msgstr ""
18950
18951 #. type: verbatim
18952 #: ../fish/guestfish-commands.pod:114
18953 #, no-wrap
18954 msgid ""
18955 " hexedit /dev/sda 1M\n"
18956 "\n"
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../fish/guestfish-commands.pod:116
18961 msgid ""
18962 "which would allow you to edit anywhere within the first megabyte of the disk."
18963 msgstr ""
18964
18965 #. type: textblock
18966 #: ../fish/guestfish-commands.pod:119
18967 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18968 msgstr ""
18969
18970 #. type: verbatim
18971 #: ../fish/guestfish-commands.pod:121
18972 #, no-wrap
18973 msgid ""
18974 " hexedit /dev/sda1 0x400 0x400\n"
18975 "\n"
18976 msgstr ""
18977
18978 #. type: textblock
18979 #: ../fish/guestfish-commands.pod:123
18980 msgid "(assuming the superblock is in the standard location)."
18981 msgstr ""
18982
18983 #. type: textblock
18984 #: ../fish/guestfish-commands.pod:125
18985 msgid ""
18986 "This command requires the external L<hexedit(1)> program.  You can specify "
18987 "another program to use by setting the C<HEXEDITOR> environment variable."
18988 msgstr ""
18989
18990 #. type: textblock
18991 #: ../fish/guestfish-commands.pod:129
18992 msgid "See also L</hexdump>."
18993 msgstr ""
18994
18995 #. type: =head2
18996 #: ../fish/guestfish-commands.pod:131
18997 msgid "lcd"
18998 msgstr ""
18999
19000 #. type: verbatim
19001 #: ../fish/guestfish-commands.pod:133
19002 #, no-wrap
19003 msgid ""
19004 " lcd directory\n"
19005 "\n"
19006 msgstr ""
19007
19008 #. type: textblock
19009 #: ../fish/guestfish-commands.pod:135
19010 msgid ""
19011 "Change the local directory, ie. the current directory of guestfish itself."
19012 msgstr ""
19013
19014 #. type: textblock
19015 #: ../fish/guestfish-commands.pod:138
19016 msgid "Note that C<!cd> won't do what you might expect."
19017 msgstr ""
19018
19019 #. type: =head2
19020 #: ../fish/guestfish-commands.pod:140
19021 msgid "man"
19022 msgstr ""
19023
19024 #. type: =head2
19025 #: ../fish/guestfish-commands.pod:142
19026 msgid "manual"
19027 msgstr ""
19028
19029 #. type: verbatim
19030 #: ../fish/guestfish-commands.pod:144
19031 #, no-wrap
19032 msgid ""
19033 "  man\n"
19034 "\n"
19035 msgstr ""
19036
19037 #. type: textblock
19038 #: ../fish/guestfish-commands.pod:146
19039 msgid "Opens the manual page for guestfish."
19040 msgstr ""
19041
19042 #. type: =head2
19043 #: ../fish/guestfish-commands.pod:148
19044 msgid "more"
19045 msgstr ""
19046
19047 #. type: =head2
19048 #: ../fish/guestfish-commands.pod:150
19049 msgid "less"
19050 msgstr ""
19051
19052 #. type: verbatim
19053 #: ../fish/guestfish-commands.pod:152
19054 #, no-wrap
19055 msgid ""
19056 " more filename\n"
19057 "\n"
19058 msgstr ""
19059
19060 #. type: verbatim
19061 #: ../fish/guestfish-commands.pod:154
19062 #, no-wrap
19063 msgid ""
19064 " less filename\n"
19065 "\n"
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish-commands.pod:156
19070 msgid "This is used to view a file."
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../fish/guestfish-commands.pod:158
19075 msgid ""
19076 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19077 "C<less> you will get the C<less> command specifically."
19078 msgstr ""
19079
19080 #. type: =head2
19081 #: ../fish/guestfish-commands.pod:161
19082 msgid "reopen"
19083 msgstr ""
19084
19085 #. type: verbatim
19086 #: ../fish/guestfish-commands.pod:163
19087 #, no-wrap
19088 msgid ""
19089 "  reopen\n"
19090 "\n"
19091 msgstr ""
19092
19093 #. type: textblock
19094 #: ../fish/guestfish-commands.pod:165
19095 msgid ""
19096 "Close and reopen the libguestfs handle.  It is not necessary to use this "
19097 "normally, because the handle is closed properly when guestfish exits.  "
19098 "However this is occasionally useful for testing."
19099 msgstr ""
19100
19101 #. type: =head2
19102 #: ../fish/guestfish-commands.pod:169
19103 msgid "setenv"
19104 msgstr ""
19105
19106 #. type: verbatim
19107 #: ../fish/guestfish-commands.pod:171
19108 #, no-wrap
19109 msgid ""
19110 "  setenv VAR value\n"
19111 "\n"
19112 msgstr ""
19113
19114 #. type: textblock
19115 #: ../fish/guestfish-commands.pod:173
19116 msgid "Set the environment variable C<VAR> to the string C<value>."
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish-commands.pod:175
19121 msgid ""
19122 "To print the value of an environment variable use a shell command such as:"
19123 msgstr ""
19124
19125 #. type: verbatim
19126 #: ../fish/guestfish-commands.pod:178
19127 #, no-wrap
19128 msgid ""
19129 " !echo $VAR\n"
19130 "\n"
19131 msgstr ""
19132
19133 #. type: =head2
19134 #: ../fish/guestfish-commands.pod:180
19135 msgid "sparse"
19136 msgstr ""
19137
19138 #. type: verbatim
19139 #: ../fish/guestfish-commands.pod:182
19140 #, no-wrap
19141 msgid ""
19142 " sparse filename size\n"
19143 "\n"
19144 msgstr ""
19145
19146 #. type: textblock
19147 #: ../fish/guestfish-commands.pod:184
19148 msgid ""
19149 "This creates an empty sparse file of the given size, and then adds so it can "
19150 "be further examined."
19151 msgstr ""
19152
19153 #. type: textblock
19154 #: ../fish/guestfish-commands.pod:187
19155 msgid ""
19156 "In all respects it works the same as the L</alloc> command, except that the "
19157 "image file is allocated sparsely, which means that disk blocks are not "
19158 "assigned to the file until they are needed.  Sparse disk files only use "
19159 "space when written to, but they are slower and there is a danger you could "
19160 "run out of real disk space during a write operation."
19161 msgstr ""
19162
19163 #. type: =head2
19164 #: ../fish/guestfish-commands.pod:197
19165 msgid "supported"
19166 msgstr ""
19167
19168 #. type: verbatim
19169 #: ../fish/guestfish-commands.pod:199
19170 #, no-wrap
19171 msgid ""
19172 " supported\n"
19173 "\n"
19174 msgstr ""
19175
19176 #. type: textblock
19177 #: ../fish/guestfish-commands.pod:201
19178 msgid ""
19179 "This command returns a list of the optional groups known to the daemon, and "
19180 "indicates which ones are supported by this build of the libguestfs appliance."
19181 msgstr ""
19182
19183 #. type: textblock
19184 #: ../fish/guestfish-commands.pod:205
19185 msgid "See also L<guestfs(3)/AVAILABILITY>."
19186 msgstr ""
19187
19188 #. type: =head2
19189 #: ../fish/guestfish-commands.pod:207
19190 msgid "time"
19191 msgstr ""
19192
19193 #. type: verbatim
19194 #: ../fish/guestfish-commands.pod:209
19195 #, no-wrap
19196 msgid ""
19197 " time command args...\n"
19198 "\n"
19199 msgstr ""
19200
19201 #. type: textblock
19202 #: ../fish/guestfish-commands.pod:211
19203 msgid ""
19204 "Run the command as usual, but print the elapsed time afterwards.  This can "
19205 "be useful for benchmarking operations."
19206 msgstr ""
19207
19208 #. type: =head2
19209 #: ../fish/guestfish-commands.pod:214
19210 msgid "unsetenv"
19211 msgstr ""
19212
19213 #. type: verbatim
19214 #: ../fish/guestfish-commands.pod:216
19215 #, no-wrap
19216 msgid ""
19217 "  unsetenv VAR\n"
19218 "\n"
19219 msgstr ""
19220
19221 #. type: textblock
19222 #: ../fish/guestfish-commands.pod:218
19223 msgid "Remove C<VAR> from the environment."
19224 msgstr ""
19225
19226 #. type: textblock
19227 #: ../fish/guestfish.pod:5
19228 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19229 msgstr ""
19230
19231 #. type: verbatim
19232 #: ../fish/guestfish.pod:9
19233 #, no-wrap
19234 msgid ""
19235 " guestfish [--options] [commands]\n"
19236 "\n"
19237 msgstr ""
19238
19239 #. type: verbatim
19240 #: ../fish/guestfish.pod:11
19241 #, no-wrap
19242 msgid ""
19243 " guestfish\n"
19244 "\n"
19245 msgstr ""
19246
19247 #. type: verbatim
19248 #: ../fish/guestfish.pod:13
19249 #, no-wrap
19250 msgid ""
19251 " guestfish [--ro|--rw] -a disk.img\n"
19252 "\n"
19253 msgstr ""
19254
19255 #. type: verbatim
19256 #: ../fish/guestfish.pod:15
19257 #, no-wrap
19258 msgid ""
19259 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19260 "\n"
19261 msgstr ""
19262
19263 #. type: verbatim
19264 #: ../fish/guestfish.pod:17
19265 #, no-wrap
19266 msgid ""
19267 " guestfish -d libvirt-domain\n"
19268 "\n"
19269 msgstr ""
19270
19271 #. type: verbatim
19272 #: ../fish/guestfish.pod:19
19273 #, no-wrap
19274 msgid ""
19275 " guestfish [--ro|--rw] -a disk.img -i\n"
19276 "\n"
19277 msgstr ""
19278
19279 #. type: verbatim
19280 #: ../fish/guestfish.pod:21
19281 #, no-wrap
19282 msgid ""
19283 " guestfish -d libvirt-domain -i\n"
19284 "\n"
19285 msgstr ""
19286
19287 #. type: textblock
19288 #: ../fish/guestfish.pod:25
19289 msgid ""
19290 "Using guestfish in read/write mode on live virtual machines can be "
19291 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19292 "option to use guestfish safely if the disk image or virtual machine might be "
19293 "live."
19294 msgstr ""
19295
19296 #. type: textblock
19297 #: ../fish/guestfish.pod:32
19298 msgid ""
19299 "Guestfish is a shell and command-line tool for examining and modifying "
19300 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19301 "functionality of the guestfs API, see L<guestfs(3)>."
19302 msgstr ""
19303
19304 #. type: textblock
19305 #: ../fish/guestfish.pod:36
19306 msgid ""
19307 "Guestfish gives you structured access to the libguestfs API, from shell "
19308 "scripts or the command line or interactively.  If you want to rescue a "
19309 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19310 "command."
19311 msgstr ""
19312
19313 #. type: =head2
19314 #: ../fish/guestfish.pod:43
19315 msgid "As an interactive shell"
19316 msgstr ""
19317
19318 #. type: verbatim
19319 #: ../fish/guestfish.pod:45
19320 #, no-wrap
19321 msgid ""
19322 " $ guestfish\n"
19323 " \n"
19324 msgstr ""
19325
19326 #. type: verbatim
19327 #: ../fish/guestfish.pod:47
19328 #, no-wrap
19329 msgid ""
19330 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19331 " editing virtual machine filesystems.\n"
19332 " \n"
19333 msgstr ""
19334
19335 #. type: verbatim
19336 #: ../fish/guestfish.pod:50
19337 #, no-wrap
19338 msgid ""
19339 " Type: 'help' for a list of commands\n"
19340 "       'man' to read the manual\n"
19341 "       'quit' to quit the shell\n"
19342 " \n"
19343 msgstr ""
19344
19345 #. type: verbatim
19346 #: ../fish/guestfish.pod:54
19347 #, no-wrap
19348 msgid ""
19349 " ><fs> add-ro disk.img\n"
19350 " ><fs> run\n"
19351 " ><fs> list-filesystems\n"
19352 " /dev/sda1: ext4\n"
19353 " /dev/vg_guest/lv_root: ext4\n"
19354 " /dev/vg_guest/lv_swap: swap\n"
19355 " ><fs> mount /dev/vg_guest/lv_root /\n"
19356 " ><fs> cat /etc/fstab\n"
19357 " # /etc/fstab\n"
19358 " # Created by anaconda\n"
19359 " [...]\n"
19360 " ><fs> exit\n"
19361 "\n"
19362 msgstr ""
19363
19364 #. type: =head2
19365 #: ../fish/guestfish.pod:67
19366 msgid "From shell scripts"
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:69
19371 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19372 msgstr ""
19373
19374 #. type: verbatim
19375 #: ../fish/guestfish.pod:71
19376 #, no-wrap
19377 msgid ""
19378 " guestfish <<_EOF_\n"
19379 " add disk.img\n"
19380 " run\n"
19381 " mount /dev/vg_guest/lv_root /\n"
19382 " write /etc/motd \"Welcome, new users\"\n"
19383 " _EOF_\n"
19384 "\n"
19385 msgstr ""
19386
19387 #. type: textblock
19388 #: ../fish/guestfish.pod:78
19389 msgid "List the LVM logical volumes in a disk image:"
19390 msgstr ""
19391
19392 #. type: verbatim
19393 #: ../fish/guestfish.pod:80
19394 #, no-wrap
19395 msgid ""
19396 " guestfish -a disk.img --ro <<_EOF_\n"
19397 " run\n"
19398 " lvs\n"
19399 " _EOF_\n"
19400 "\n"
19401 msgstr ""
19402
19403 #. type: textblock
19404 #: ../fish/guestfish.pod:85
19405 msgid "List all the filesystems in a disk image:"
19406 msgstr ""
19407
19408 #. type: verbatim
19409 #: ../fish/guestfish.pod:87
19410 #, no-wrap
19411 msgid ""
19412 " guestfish -a disk.img --ro <<_EOF_\n"
19413 " run\n"
19414 " list-filesystems\n"
19415 " _EOF_\n"
19416 "\n"
19417 msgstr ""
19418
19419 #. type: =head2
19420 #: ../fish/guestfish.pod:92
19421 msgid "On one command line"
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19426 msgid "Update C</etc/resolv.conf> in a guest:"
19427 msgstr ""
19428
19429 #. type: verbatim
19430 #: ../fish/guestfish.pod:96
19431 #, no-wrap
19432 msgid ""
19433 " guestfish \\\n"
19434 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19435 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19436 "\n"
19437 msgstr ""
19438
19439 #. type: textblock
19440 #: ../fish/guestfish.pod:100
19441 msgid "Edit C</boot/grub/grub.conf> interactively:"
19442 msgstr ""
19443
19444 #. type: verbatim
19445 #: ../fish/guestfish.pod:102
19446 #, no-wrap
19447 msgid ""
19448 " guestfish --rw --add disk.img \\\n"
19449 "   --mount /dev/vg_guest/lv_root \\\n"
19450 "   --mount /dev/sda1:/boot \\\n"
19451 "   edit /boot/grub/grub.conf\n"
19452 "\n"
19453 msgstr ""
19454
19455 #. type: =head2
19456 #: ../fish/guestfish.pod:107
19457 msgid "Mount disks automatically"
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:109
19462 msgid ""
19463 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19464 msgstr ""
19465
19466 #. type: verbatim
19467 #: ../fish/guestfish.pod:112
19468 #, no-wrap
19469 msgid ""
19470 " guestfish --ro -a disk.img -i cat /etc/group\n"
19471 "\n"
19472 msgstr ""
19473
19474 #. type: verbatim
19475 #: ../fish/guestfish.pod:114
19476 #, no-wrap
19477 msgid ""
19478 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19479 "\n"
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/guestfish.pod:116
19484 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19485 msgstr ""
19486
19487 #. type: verbatim
19488 #: ../fish/guestfish.pod:118
19489 #, no-wrap
19490 msgid ""
19491 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19492 "\n"
19493 msgstr ""
19494
19495 #. type: =head2
19496 #: ../fish/guestfish.pod:120
19497 msgid "As a script interpreter"
19498 msgstr ""
19499
19500 #. type: textblock
19501 #: ../fish/guestfish.pod:122
19502 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19503 msgstr ""
19504
19505 #. type: verbatim
19506 #: ../fish/guestfish.pod:124
19507 #, no-wrap
19508 msgid ""
19509 " #!/usr/bin/guestfish -f\n"
19510 " sparse test1.img 100M\n"
19511 " run\n"
19512 " part-disk /dev/sda mbr\n"
19513 " mkfs ext2 /dev/sda1\n"
19514 "\n"
19515 msgstr ""
19516
19517 #. type: =head2
19518 #: ../fish/guestfish.pod:130
19519 msgid "Start with a prepared disk"
19520 msgstr ""
19521
19522 #. type: textblock
19523 #: ../fish/guestfish.pod:132
19524 msgid ""
19525 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19526 "single ext2-formatted partition:"
19527 msgstr ""
19528
19529 #. type: verbatim
19530 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19531 #, no-wrap
19532 msgid ""
19533 " guestfish -N fs\n"
19534 "\n"
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:137
19539 msgid "To list what is available do:"
19540 msgstr ""
19541
19542 #. type: verbatim
19543 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19544 #, no-wrap
19545 msgid ""
19546 " guestfish -N help | less\n"
19547 "\n"
19548 msgstr ""
19549
19550 #. type: =head2
19551 #: ../fish/guestfish.pod:141
19552 msgid "Remote control"
19553 msgstr ""
19554
19555 #. type: verbatim
19556 #: ../fish/guestfish.pod:143
19557 #, no-wrap
19558 msgid ""
19559 " eval \"`guestfish --listen`\"\n"
19560 " guestfish --remote add-ro disk.img\n"
19561 " guestfish --remote run\n"
19562 " guestfish --remote lvs\n"
19563 "\n"
19564 msgstr ""
19565
19566 #. type: textblock
19567 #: ../fish/guestfish.pod:154
19568 msgid "Displays general help on options."
19569 msgstr ""
19570
19571 #. type: =item
19572 #: ../fish/guestfish.pod:158
19573 msgid "B<--cmd-help>"
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../fish/guestfish.pod:160
19578 msgid "Lists all available guestfish commands."
19579 msgstr ""
19580
19581 #. type: =item
19582 #: ../fish/guestfish.pod:162
19583 msgid "B<-h cmd>"
19584 msgstr ""
19585
19586 #. type: =item
19587 #: ../fish/guestfish.pod:164
19588 msgid "B<--cmd-help cmd>"
19589 msgstr ""
19590
19591 #. type: textblock
19592 #: ../fish/guestfish.pod:166
19593 msgid "Displays detailed help on a single command C<cmd>."
19594 msgstr ""
19595
19596 #. type: =item
19597 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19598 msgid "B<-a image>"
19599 msgstr ""
19600
19601 #. type: =item
19602 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19603 msgid "B<--add image>"
19604 msgstr ""
19605
19606 #. type: textblock
19607 #: ../fish/guestfish.pod:172
19608 msgid "Add a block device or virtual machine image to the shell."
19609 msgstr ""
19610
19611 #. type: textblock
19612 #: ../fish/guestfish.pod:177
19613 msgid ""
19614 "Using this flag is mostly equivalent to using the C<add> command, with "
19615 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19616 "the I<--format=...> flag was given."
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19621 msgid ""
19622 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19623 "URI to use.  The default is to use the default libvirt connection."
19624 msgstr ""
19625
19626 #. type: =item
19627 #: ../fish/guestfish.pod:189
19628 msgid "B<--csh>"
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fish/guestfish.pod:191
19633 msgid ""
19634 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19635 "section L</REMOTE CONTROL AND CSH> below."
19636 msgstr ""
19637
19638 #. type: =item
19639 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19640 msgid "B<-d libvirt-domain>"
19641 msgstr ""
19642
19643 #. type: =item
19644 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19645 msgid "B<--domain libvirt-domain>"
19646 msgstr ""
19647
19648 #. type: textblock
19649 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19650 msgid ""
19651 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19652 "used, then any libvirt domain can be used.  However in write mode, only "
19653 "libvirt domains which are shut down can be named here."
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19658 msgid "Domain UUIDs can be used instead of names."
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/guestfish.pod:204
19663 msgid ""
19664 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19665 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19666 "if the I<--format:...> flag was given."
19667 msgstr ""
19668
19669 #. type: =item
19670 #: ../fish/guestfish.pod:208
19671 msgid "B<-D>"
19672 msgstr ""
19673
19674 #. type: =item
19675 #: ../fish/guestfish.pod:210
19676 msgid "B<--no-dest-paths>"
19677 msgstr ""
19678
19679 #. type: textblock
19680 #: ../fish/guestfish.pod:212
19681 msgid ""
19682 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19683 "to hit the tab key to complete paths on the guest filesystem, but this "
19684 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19685 "allow this feature to be disabled."
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19690 msgid ""
19691 "When prompting for keys and passphrases, guestfish normally turns echoing "
19692 "off so you cannot see what you are typing.  If you are not worried about "
19693 "Tempest attacks and there is no one else in the room you can specify this "
19694 "flag to see what you are typing."
19695 msgstr ""
19696
19697 #. type: =item
19698 #: ../fish/guestfish.pod:224
19699 msgid "B<-f file>"
19700 msgstr ""
19701
19702 #. type: =item
19703 #: ../fish/guestfish.pod:226
19704 msgid "B<--file file>"
19705 msgstr ""
19706
19707 #. type: textblock
19708 #: ../fish/guestfish.pod:228
19709 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19710 msgstr ""
19711
19712 #. type: verbatim
19713 #: ../fish/guestfish.pod:231
19714 #, no-wrap
19715 msgid ""
19716 " #!/usr/bin/guestfish -f\n"
19717 "\n"
19718 msgstr ""
19719
19720 #. type: verbatim
19721 #: ../fish/guestfish.pod:244
19722 #, no-wrap
19723 msgid ""
19724 " guestfish --format=raw -a disk.img\n"
19725 "\n"
19726 msgstr ""
19727
19728 #. type: verbatim
19729 #: ../fish/guestfish.pod:248
19730 #, no-wrap
19731 msgid ""
19732 " guestfish --format=raw -a disk.img --format -a another.img\n"
19733 "\n"
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:253
19738 msgid ""
19739 "If you have untrusted raw-format guest disk images, you should use this "
19740 "option to specify the disk format.  This avoids a possible security problem "
19741 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19742 msgstr ""
19743
19744 #. type: =item
19745 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19746 msgid "B<--inspector>"
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19751 msgid ""
19752 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19753 "system and mount filesystems as they would be mounted on the real virtual "
19754 "machine."
19755 msgstr ""
19756
19757 #. type: textblock
19758 #: ../fish/guestfish.pod:266
19759 msgid "Typical usage is either:"
19760 msgstr ""
19761
19762 #. type: verbatim
19763 #: ../fish/guestfish.pod:268
19764 #, no-wrap
19765 msgid ""
19766 " guestfish -d myguest -i\n"
19767 "\n"
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../fish/guestfish.pod:270
19772 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19773 msgstr ""
19774
19775 #. type: verbatim
19776 #: ../fish/guestfish.pod:272
19777 #, no-wrap
19778 msgid ""
19779 " guestfish --ro -d myguest -i\n"
19780 "\n"
19781 msgstr ""
19782
19783 #. type: textblock
19784 #: ../fish/guestfish.pod:274
19785 msgid "(for active domains, readonly), or specify the block device directly:"
19786 msgstr ""
19787
19788 #. type: verbatim
19789 #: ../fish/guestfish.pod:276
19790 #, no-wrap
19791 msgid ""
19792 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:278
19798 msgid ""
19799 "Note that the command line syntax changed slightly over older versions of "
19800 "guestfish.  You can still use the old syntax:"
19801 msgstr ""
19802
19803 #. type: verbatim
19804 #: ../fish/guestfish.pod:281
19805 #, no-wrap
19806 msgid ""
19807 " guestfish [--ro] -i disk.img\n"
19808 "\n"
19809 msgstr ""
19810
19811 #. type: verbatim
19812 #: ../fish/guestfish.pod:283
19813 #, no-wrap
19814 msgid ""
19815 " guestfish [--ro] -i libvirt-domain\n"
19816 "\n"
19817 msgstr ""
19818
19819 #. type: textblock
19820 #: ../fish/guestfish.pod:285
19821 msgid ""
19822 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19823 "then using other commands to mount the filesystems that were found."
19824 msgstr ""
19825
19826 #. type: =item
19827 #: ../fish/guestfish.pod:294
19828 msgid "B<--listen>"
19829 msgstr ""
19830
19831 #. type: textblock
19832 #: ../fish/guestfish.pod:296
19833 msgid ""
19834 "Fork into the background and listen for remote commands.  See section L</"
19835 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19836 msgstr ""
19837
19838 #. type: =item
19839 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19840 msgid "B<--live>"
19841 msgstr ""
19842
19843 #. type: textblock
19844 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19845 msgid ""
19846 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19847 "ATTACHING TO RUNNING DAEMONS>)."
19848 msgstr ""
19849
19850 #. type: =item
19851 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19852 msgid "B<-m dev[:mountpoint[:options]]>"
19853 msgstr ""
19854
19855 #. type: =item
19856 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19857 msgid "B<--mount dev[:mountpoint[:options]]>"
19858 msgstr ""
19859
19860 #. type: textblock
19861 #: ../fish/guestfish.pod:308
19862 msgid "Mount the named partition or logical volume on the given mountpoint."
19863 msgstr ""
19864
19865 #. type: textblock
19866 #: ../fish/guestfish.pod:310
19867 msgid "If the mountpoint is omitted, it defaults to C</>."
19868 msgstr ""
19869
19870 #. type: textblock
19871 #: ../fish/guestfish.pod:312
19872 msgid "You have to mount something on C</> before most commands will work."
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../fish/guestfish.pod:314
19877 msgid ""
19878 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19879 "launched."
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:317
19884 msgid ""
19885 "If you don't know what filesystems a disk image contains, you can either run "
19886 "guestfish without this option, then list the partitions, filesystems and LVs "
19887 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19888 "commands), or you can use the L<virt-filesystems(1)> program."
19889 msgstr ""
19890
19891 #. type: textblock
19892 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19893 msgid ""
19894 "The third (and rarely used) part of the mount parameter is the list of mount "
19895 "options used to mount the underlying filesystem.  If this is not given, then "
19896 "the mount options are either the empty string or C<ro> (the latter if the "
19897 "I<--ro> flag is used).  By specifying the mount options, you override this "
19898 "default choice.  Probably the only time you would use this is to enable ACLs "
19899 "and/or extended attributes if the filesystem can support them:"
19900 msgstr ""
19901
19902 #. type: verbatim
19903 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19904 #, no-wrap
19905 msgid ""
19906 " -m /dev/sda1:/:acl,user_xattr\n"
19907 "\n"
19908 msgstr ""
19909
19910 #. type: textblock
19911 #: ../fish/guestfish.pod:333
19912 msgid "Using this flag is equivalent to using the C<mount-options> command."
19913 msgstr ""
19914
19915 #. type: =item
19916 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19917 #: ../resize/virt-resize.pod:441
19918 msgid "B<-n>"
19919 msgstr ""
19920
19921 #. type: =item
19922 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19923 msgid "B<--no-sync>"
19924 msgstr ""
19925
19926 #. type: textblock
19927 #: ../fish/guestfish.pod:339
19928 msgid ""
19929 "Disable autosync.  This is enabled by default.  See the discussion of "
19930 "autosync in the L<guestfs(3)> manpage."
19931 msgstr ""
19932
19933 #. type: =item
19934 #: ../fish/guestfish.pod:342
19935 msgid "B<-N type>"
19936 msgstr ""
19937
19938 #. type: =item
19939 #: ../fish/guestfish.pod:344
19940 msgid "B<--new type>"
19941 msgstr ""
19942
19943 #. type: =item
19944 #: ../fish/guestfish.pod:346
19945 msgid "B<-N help>"
19946 msgstr ""
19947
19948 #. type: textblock
19949 #: ../fish/guestfish.pod:348
19950 msgid ""
19951 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19952 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19953 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19954 "IMAGES> below."
19955 msgstr ""
19956
19957 #. type: =item
19958 #: ../fish/guestfish.pod:353
19959 msgid "B<--progress-bars>"
19960 msgstr ""
19961
19962 #. type: textblock
19963 #: ../fish/guestfish.pod:355
19964 msgid "Enable progress bars, even when guestfish is used non-interactively."
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fish/guestfish.pod:357
19969 msgid ""
19970 "Progress bars are enabled by default when guestfish is used as an "
19971 "interactive shell."
19972 msgstr ""
19973
19974 #. type: =item
19975 #: ../fish/guestfish.pod:360
19976 msgid "B<--no-progress-bars>"
19977 msgstr ""
19978
19979 #. type: textblock
19980 #: ../fish/guestfish.pod:362
19981 msgid "Disable progress bars."
19982 msgstr ""
19983
19984 #. type: =item
19985 #: ../fish/guestfish.pod:364
19986 msgid "B<--remote[=pid]>"
19987 msgstr ""
19988
19989 #. type: textblock
19990 #: ../fish/guestfish.pod:366
19991 msgid ""
19992 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19993 "CONTROL GUESTFISH OVER A SOCKET> below."
19994 msgstr ""
19995
19996 #. type: =item
19997 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19998 #: ../rescue/virt-rescue.pod:189
19999 msgid "B<-r>"
20000 msgstr ""
20001
20002 #. type: =item
20003 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20004 #: ../rescue/virt-rescue.pod:191
20005 msgid "B<--ro>"
20006 msgstr ""
20007
20008 #. type: textblock
20009 #: ../fish/guestfish.pod:373
20010 msgid ""
20011 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20012 "mounts are done read-only."
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20017 msgid ""
20018 "The option must always be used if the disk image or virtual machine might be "
20019 "running, and is generally recommended in cases where you don't need write "
20020 "access to the disk."
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../fish/guestfish.pod:380
20025 msgid ""
20026 "Note that prepared disk images created with I<-N> are not affected by this "
20027 "option.  Also commands like C<add> are not affected - you have to specify "
20028 "the C<readonly:true> option explicitly if you need it."
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../fish/guestfish.pod:384
20033 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20034 msgstr ""
20035
20036 #. type: =item
20037 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20038 #: ../rescue/virt-rescue.pod:201
20039 msgid "B<--selinux>"
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../fish/guestfish.pod:388
20044 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20045 msgstr ""
20046
20047 #. type: textblock
20048 #: ../fish/guestfish.pod:394
20049 msgid ""
20050 "Enable very verbose messages.  This is particularly useful if you find a bug."
20051 msgstr ""
20052
20053 #. type: textblock
20054 #: ../fish/guestfish.pod:401
20055 msgid "Display the guestfish / libguestfs version number and exit."
20056 msgstr ""
20057
20058 #. type: =item
20059 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20060 #: ../rescue/virt-rescue.pod:231
20061 msgid "B<-w>"
20062 msgstr ""
20063
20064 #. type: =item
20065 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20066 #: ../rescue/virt-rescue.pod:233
20067 msgid "B<--rw>"
20068 msgstr ""
20069
20070 #. type: textblock
20071 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20072 msgid ""
20073 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20074 "mounts are done read-write."
20075 msgstr ""
20076
20077 #. type: textblock
20078 #: ../fish/guestfish.pod:410
20079 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20080 msgstr ""
20081
20082 #. type: textblock
20083 #: ../fish/guestfish.pod:414
20084 msgid "Echo each command before executing it."
20085 msgstr ""
20086
20087 #. type: =head1
20088 #: ../fish/guestfish.pod:418
20089 msgid "COMMANDS ON COMMAND LINE"
20090 msgstr ""
20091
20092 #. type: textblock
20093 #: ../fish/guestfish.pod:420
20094 msgid ""
20095 "Any additional (non-option) arguments are treated as commands to execute."
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:423
20100 msgid ""
20101 "Commands to execute should be separated by a colon (C<:>), where the colon "
20102 "is a separate parameter.  Thus:"
20103 msgstr ""
20104
20105 #. type: verbatim
20106 #: ../fish/guestfish.pod:426
20107 #, no-wrap
20108 msgid ""
20109 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20110 "\n"
20111 msgstr ""
20112
20113 #. type: textblock
20114 #: ../fish/guestfish.pod:428
20115 msgid ""
20116 "If there are no additional arguments, then we enter a shell, either an "
20117 "interactive shell with a prompt (if the input is a terminal) or a non-"
20118 "interactive shell."
20119 msgstr ""
20120
20121 #. type: textblock
20122 #: ../fish/guestfish.pod:432
20123 msgid ""
20124 "In either command line mode or non-interactive shell, the first command that "
20125 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20126 "prompt) if a command fails, you can continue to enter commands."
20127 msgstr ""
20128
20129 #. type: =head1
20130 #: ../fish/guestfish.pod:437
20131 msgid "USING launch (OR run)"
20132 msgstr ""
20133
20134 #. type: textblock
20135 #: ../fish/guestfish.pod:439
20136 msgid ""
20137 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20138 "then launch it, then mount any disks you need, and finally issue actions/"
20139 "commands.  So the general order of the day is:"
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fish/guestfish.pod:447
20144 msgid "add or -a/--add"
20145 msgstr ""
20146
20147 #. type: textblock
20148 #: ../fish/guestfish.pod:451
20149 msgid "launch (aka run)"
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../fish/guestfish.pod:455
20154 msgid "mount or -m/--mount"
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:459
20159 msgid "any other commands"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:463
20164 msgid ""
20165 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20166 "guest before mounting or performing any other commands."
20167 msgstr ""
20168
20169 #. type: textblock
20170 #: ../fish/guestfish.pod:466
20171 msgid ""
20172 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20173 "I<--new> options were given then C<run> is done automatically, simply "
20174 "because guestfish can't perform the action you asked for without doing this."
20175 msgstr ""
20176
20177 #. type: =head1
20178 #: ../fish/guestfish.pod:471
20179 msgid "OPENING DISKS FOR READ AND WRITE"
20180 msgstr ""
20181
20182 #. type: textblock
20183 #: ../fish/guestfish.pod:473
20184 msgid ""
20185 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20186 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20187 "I<-i> and I<-m> open disk images read-only or for writing."
20188 msgstr ""
20189
20190 #. type: textblock
20191 #: ../fish/guestfish.pod:478
20192 msgid ""
20193 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20194 "opening disk images supplied on the command line for write.  To open a disk "
20195 "image read-only you have to do I<-a image --ro>."
20196 msgstr ""
20197
20198 #. type: textblock
20199 #: ../fish/guestfish.pod:482
20200 msgid ""
20201 "This matters: If you accidentally open a live VM disk image writable then "
20202 "you will cause irreversible disk corruption."
20203 msgstr ""
20204
20205 #. type: textblock
20206 #: ../fish/guestfish.pod:485
20207 msgid ""
20208 "In a future libguestfs we intend to change the default the other way.  Disk "
20209 "images will be opened read-only.  You will have to either specify "
20210 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20211 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20212 "access for disk images specified by those other command line options."
20213 msgstr ""
20214
20215 #. type: textblock
20216 #: ../fish/guestfish.pod:492
20217 msgid ""
20218 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20219 "which does nothing (it is already the default).  However it is highly "
20220 "recommended that you use this option to indicate that you need write access, "
20221 "and prepare your scripts for the day when this option will be required for "
20222 "write access."
20223 msgstr ""
20224
20225 #. type: textblock
20226 #: ../fish/guestfish.pod:498
20227 msgid ""
20228 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20229 "other libguestfs program apart from guestfish and guestmount."
20230 msgstr ""
20231
20232 #. type: =head1
20233 #: ../fish/guestfish.pod:501
20234 msgid "QUOTING"
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:503
20239 msgid ""
20240 "You can quote ordinary parameters using either single or double quotes.  For "
20241 "example:"
20242 msgstr ""
20243
20244 #. type: verbatim
20245 #: ../fish/guestfish.pod:506
20246 #, no-wrap
20247 msgid ""
20248 " add \"file with a space.img\"\n"
20249 "\n"
20250 msgstr ""
20251
20252 #. type: verbatim
20253 #: ../fish/guestfish.pod:508
20254 #, no-wrap
20255 msgid ""
20256 " rm '/file name'\n"
20257 "\n"
20258 msgstr ""
20259
20260 #. type: verbatim
20261 #: ../fish/guestfish.pod:510
20262 #, no-wrap
20263 msgid ""
20264 " rm '/\"'\n"
20265 "\n"
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/guestfish.pod:512
20270 msgid ""
20271 "A few commands require a list of strings to be passed.  For these, use a "
20272 "whitespace-separated list, enclosed in quotes.  Strings containing "
20273 "whitespace to be passed through must be enclosed in single quotes.  A "
20274 "literal single quote must be escaped with a backslash."
20275 msgstr ""
20276
20277 #. type: verbatim
20278 #: ../fish/guestfish.pod:517
20279 #, no-wrap
20280 msgid ""
20281 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20282 " command \"/bin/echo 'foo      bar'\"\n"
20283 " command \"/bin/echo \\'foo\\'\"\n"
20284 "\n"
20285 msgstr ""
20286
20287 #. type: =head2
20288 #: ../fish/guestfish.pod:521
20289 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20290 msgstr ""
20291
20292 #. type: textblock
20293 #: ../fish/guestfish.pod:523
20294 msgid ""
20295 "In double-quoted arguments (only) use backslash to insert special characters:"
20296 msgstr ""
20297
20298 #. type: =item
20299 #: ../fish/guestfish.pod:528
20300 msgid "C<\\a>"
20301 msgstr ""
20302
20303 #. type: textblock
20304 #: ../fish/guestfish.pod:530
20305 msgid "Alert (bell) character."
20306 msgstr ""
20307
20308 #. type: =item
20309 #: ../fish/guestfish.pod:532
20310 msgid "C<\\b>"
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fish/guestfish.pod:534
20315 msgid "Backspace character."
20316 msgstr ""
20317
20318 #. type: =item
20319 #: ../fish/guestfish.pod:536
20320 msgid "C<\\f>"
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../fish/guestfish.pod:538
20325 msgid "Form feed character."
20326 msgstr ""
20327
20328 #. type: =item
20329 #: ../fish/guestfish.pod:540
20330 msgid "C<\\n>"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/guestfish.pod:542
20335 msgid "Newline character."
20336 msgstr ""
20337
20338 #. type: =item
20339 #: ../fish/guestfish.pod:544
20340 msgid "C<\\r>"
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fish/guestfish.pod:546
20345 msgid "Carriage return character."
20346 msgstr ""
20347
20348 #. type: =item
20349 #: ../fish/guestfish.pod:548
20350 msgid "C<\\t>"
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../fish/guestfish.pod:550
20355 msgid "Horizontal tab character."
20356 msgstr ""
20357
20358 #. type: =item
20359 #: ../fish/guestfish.pod:552
20360 msgid "C<\\v>"
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/guestfish.pod:554
20365 msgid "Vertical tab character."
20366 msgstr ""
20367
20368 #. type: =item
20369 #: ../fish/guestfish.pod:556
20370 msgid "C<\\\">"
20371 msgstr ""
20372
20373 #. type: textblock
20374 #: ../fish/guestfish.pod:558
20375 msgid "A literal double quote character."
20376 msgstr ""
20377
20378 #. type: =item
20379 #: ../fish/guestfish.pod:560
20380 msgid "C<\\ooo>"
20381 msgstr ""
20382
20383 #. type: textblock
20384 #: ../fish/guestfish.pod:562
20385 msgid ""
20386 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20387 "(unlike C)."
20388 msgstr ""
20389
20390 #. type: =item
20391 #: ../fish/guestfish.pod:565
20392 msgid "C<\\xhh>"
20393 msgstr ""
20394
20395 #. type: textblock
20396 #: ../fish/guestfish.pod:567
20397 msgid ""
20398 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20399 msgstr ""
20400
20401 #. type: textblock
20402 #: ../fish/guestfish.pod:570
20403 msgid ""
20404 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20405 "strings."
20406 msgstr ""
20407
20408 #. type: =item
20409 #: ../fish/guestfish.pod:573
20410 msgid "C<\\\\>"
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../fish/guestfish.pod:575
20415 msgid "A literal backslash character."
20416 msgstr ""
20417
20418 #. type: =head1
20419 #: ../fish/guestfish.pod:579
20420 msgid "OPTIONAL ARGUMENTS"
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../fish/guestfish.pod:581
20425 msgid ""
20426 "Some commands take optional arguments.  These arguments appear in this "
20427 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20428 msgstr ""
20429
20430 #. type: verbatim
20431 #: ../fish/guestfish.pod:585
20432 #, no-wrap
20433 msgid ""
20434 " add-drive-opts filename\n"
20435 "\n"
20436 msgstr ""
20437
20438 #. type: verbatim
20439 #: ../fish/guestfish.pod:587
20440 #, no-wrap
20441 msgid ""
20442 " add-drive-opts filename readonly:true\n"
20443 "\n"
20444 msgstr ""
20445
20446 #. type: verbatim
20447 #: ../fish/guestfish.pod:589
20448 #, no-wrap
20449 msgid ""
20450 " add-drive-opts filename format:qcow2 readonly:false\n"
20451 "\n"
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../fish/guestfish.pod:591
20456 msgid ""
20457 "Each optional argument can appear at most once.  All optional arguments must "
20458 "appear after the required ones."
20459 msgstr ""
20460
20461 #. type: =head1
20462 #: ../fish/guestfish.pod:594
20463 msgid "NUMBERS"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../fish/guestfish.pod:596
20468 msgid ""
20469 "This section applies to all commands which can take integers as parameters."
20470 msgstr ""
20471
20472 #. type: =head2
20473 #: ../fish/guestfish.pod:599
20474 msgid "SIZE SUFFIX"
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../fish/guestfish.pod:601
20479 msgid ""
20480 "When the command takes a parameter measured in bytes, you can use one of the "
20481 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20482 msgstr ""
20483
20484 #. type: =item
20485 #: ../fish/guestfish.pod:607
20486 msgid "B<k> or B<K> or B<KiB>"
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../fish/guestfish.pod:609
20491 msgid "The size in kilobytes (multiplied by 1024)."
20492 msgstr ""
20493
20494 #. type: =item
20495 #: ../fish/guestfish.pod:611
20496 msgid "B<KB>"
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../fish/guestfish.pod:613
20501 msgid "The size in SI 1000 byte units."
20502 msgstr ""
20503
20504 #. type: =item
20505 #: ../fish/guestfish.pod:615
20506 msgid "B<M> or B<MiB>"
20507 msgstr ""
20508
20509 #. type: textblock
20510 #: ../fish/guestfish.pod:617
20511 msgid "The size in megabytes (multiplied by 1048576)."
20512 msgstr ""
20513
20514 #. type: =item
20515 #: ../fish/guestfish.pod:619
20516 msgid "B<MB>"
20517 msgstr ""
20518
20519 #. type: textblock
20520 #: ../fish/guestfish.pod:621
20521 msgid "The size in SI 1000000 byte units."
20522 msgstr ""
20523
20524 #. type: =item
20525 #: ../fish/guestfish.pod:623
20526 msgid "B<G> or B<GiB>"
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../fish/guestfish.pod:625
20531 msgid "The size in gigabytes (multiplied by 2**30)."
20532 msgstr ""
20533
20534 #. type: =item
20535 #: ../fish/guestfish.pod:627
20536 msgid "B<GB>"
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/guestfish.pod:629
20541 msgid "The size in SI 10**9 byte units."
20542 msgstr ""
20543
20544 #. type: =item
20545 #: ../fish/guestfish.pod:631
20546 msgid "B<T> or B<TiB>"
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../fish/guestfish.pod:633
20551 msgid "The size in terabytes (multiplied by 2**40)."
20552 msgstr ""
20553
20554 #. type: =item
20555 #: ../fish/guestfish.pod:635
20556 msgid "B<TB>"
20557 msgstr ""
20558
20559 #. type: textblock
20560 #: ../fish/guestfish.pod:637
20561 msgid "The size in SI 10**12 byte units."
20562 msgstr ""
20563
20564 #. type: =item
20565 #: ../fish/guestfish.pod:639
20566 msgid "B<P> or B<PiB>"
20567 msgstr ""
20568
20569 #. type: textblock
20570 #: ../fish/guestfish.pod:641
20571 msgid "The size in petabytes (multiplied by 2**50)."
20572 msgstr ""
20573
20574 #. type: =item
20575 #: ../fish/guestfish.pod:643
20576 msgid "B<PB>"
20577 msgstr ""
20578
20579 #. type: textblock
20580 #: ../fish/guestfish.pod:645
20581 msgid "The size in SI 10**15 byte units."
20582 msgstr ""
20583
20584 #. type: =item
20585 #: ../fish/guestfish.pod:647
20586 msgid "B<E> or B<EiB>"
20587 msgstr ""
20588
20589 #. type: textblock
20590 #: ../fish/guestfish.pod:649
20591 msgid "The size in exabytes (multiplied by 2**60)."
20592 msgstr ""
20593
20594 #. type: =item
20595 #: ../fish/guestfish.pod:651
20596 msgid "B<EB>"
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../fish/guestfish.pod:653
20601 msgid "The size in SI 10**18 byte units."
20602 msgstr ""
20603
20604 #. type: =item
20605 #: ../fish/guestfish.pod:655
20606 msgid "B<Z> or B<ZiB>"
20607 msgstr ""
20608
20609 #. type: textblock
20610 #: ../fish/guestfish.pod:657
20611 msgid "The size in zettabytes (multiplied by 2**70)."
20612 msgstr ""
20613
20614 #. type: =item
20615 #: ../fish/guestfish.pod:659
20616 msgid "B<ZB>"
20617 msgstr ""
20618
20619 #. type: textblock
20620 #: ../fish/guestfish.pod:661
20621 msgid "The size in SI 10**21 byte units."
20622 msgstr ""
20623
20624 #. type: =item
20625 #: ../fish/guestfish.pod:663
20626 msgid "B<Y> or B<YiB>"
20627 msgstr ""
20628
20629 #. type: textblock
20630 #: ../fish/guestfish.pod:665
20631 msgid "The size in yottabytes (multiplied by 2**80)."
20632 msgstr ""
20633
20634 #. type: =item
20635 #: ../fish/guestfish.pod:667
20636 msgid "B<YB>"
20637 msgstr ""
20638
20639 #. type: textblock
20640 #: ../fish/guestfish.pod:669
20641 msgid "The size in SI 10**24 byte units."
20642 msgstr ""
20643
20644 #. type: verbatim
20645 #: ../fish/guestfish.pod:675
20646 #, no-wrap
20647 msgid ""
20648 " truncate-size /file 1G\n"
20649 "\n"
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fish/guestfish.pod:677
20654 msgid "would truncate the file to 1 gigabyte."
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../fish/guestfish.pod:679
20659 msgid ""
20660 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20661 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20662 "suffix will probably not do what you expect."
20663 msgstr ""
20664
20665 #. type: =head2
20666 #: ../fish/guestfish.pod:683
20667 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../fish/guestfish.pod:685
20672 msgid ""
20673 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20674 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20675 msgstr ""
20676
20677 #. type: verbatim
20678 #: ../fish/guestfish.pod:688
20679 #, no-wrap
20680 msgid ""
20681 " 1234      decimal number 1234\n"
20682 " 02322     octal number, equivalent to decimal 1234\n"
20683 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20684 "\n"
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../fish/guestfish.pod:692
20689 msgid ""
20690 "When using the C<chmod> command, you almost always want to specify an octal "
20691 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20692 "L<chmod(1)> program):"
20693 msgstr ""
20694
20695 #. type: verbatim
20696 #: ../fish/guestfish.pod:696
20697 #, no-wrap
20698 msgid ""
20699 " chmod 0777 /public  # OK\n"
20700 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20701 "\n"
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:699
20706 msgid ""
20707 "Commands that return numbers usually print them in decimal, but some "
20708 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20709 "octal, preceeded by C<0>)."
20710 msgstr ""
20711
20712 #. type: =head1
20713 #: ../fish/guestfish.pod:703
20714 msgid "WILDCARDS AND GLOBBING"
20715 msgstr ""
20716
20717 #. type: textblock
20718 #: ../fish/guestfish.pod:705
20719 msgid ""
20720 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20721 "(globbing) by default.  So for example the following will not do what you "
20722 "expect:"
20723 msgstr ""
20724
20725 #. type: verbatim
20726 #: ../fish/guestfish.pod:709
20727 #, no-wrap
20728 msgid ""
20729 " rm-rf /home/*\n"
20730 "\n"
20731 msgstr ""
20732
20733 #. type: textblock
20734 #: ../fish/guestfish.pod:711
20735 msgid ""
20736 "Assuming you don't have a directory called literally C</home/*> then the "
20737 "above command will return an error."
20738 msgstr ""
20739
20740 #. type: textblock
20741 #: ../fish/guestfish.pod:714
20742 msgid "To perform wildcard expansion, use the C<glob> command."
20743 msgstr ""
20744
20745 #. type: verbatim
20746 #: ../fish/guestfish.pod:716
20747 #, no-wrap
20748 msgid ""
20749 " glob rm-rf /home/*\n"
20750 "\n"
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../fish/guestfish.pod:718
20755 msgid ""
20756 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20757 "many times), equivalent to:"
20758 msgstr ""
20759
20760 #. type: verbatim
20761 #: ../fish/guestfish.pod:721
20762 #, no-wrap
20763 msgid ""
20764 " rm-rf /home/jim\n"
20765 " rm-rf /home/joe\n"
20766 " rm-rf /home/mary\n"
20767 "\n"
20768 msgstr ""
20769
20770 #. type: textblock
20771 #: ../fish/guestfish.pod:725
20772 msgid "C<glob> only works on simple guest paths and not on device names."
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../fish/guestfish.pod:727
20777 msgid ""
20778 "If you have several parameters, each containing a wildcard, then glob will "
20779 "perform a Cartesian product."
20780 msgstr ""
20781
20782 #. type: =head1
20783 #: ../fish/guestfish.pod:730
20784 msgid "COMMENTS"
20785 msgstr ""
20786
20787 #. type: textblock
20788 #: ../fish/guestfish.pod:732
20789 msgid ""
20790 "Any line which starts with a I<#> character is treated as a comment and "
20791 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20792 "a command.  For example:"
20793 msgstr ""
20794
20795 #. type: verbatim
20796 #: ../fish/guestfish.pod:736
20797 #, no-wrap
20798 msgid ""
20799 " # this is a comment\n"
20800 "         # this is a comment\n"
20801 " foo # NOT a comment\n"
20802 "\n"
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/guestfish.pod:740
20807 msgid "Blank lines are also ignored."
20808 msgstr ""
20809
20810 #. type: =head1
20811 #: ../fish/guestfish.pod:742
20812 msgid "RUNNING COMMANDS LOCALLY"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../fish/guestfish.pod:744
20817 msgid ""
20818 "Any line which starts with a I<!> character is treated as a command sent to "
20819 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20820 msgstr ""
20821
20822 #. type: verbatim
20823 #: ../fish/guestfish.pod:748
20824 #, no-wrap
20825 msgid ""
20826 " !mkdir local\n"
20827 " tgz-out /remote local/remote-data.tar.gz\n"
20828 "\n"
20829 msgstr ""
20830
20831 #. type: textblock
20832 #: ../fish/guestfish.pod:751
20833 msgid ""
20834 "will create a directory C<local> on the host, and then export the contents "
20835 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20836 "(See C<tgz-out>)."
20837 msgstr ""
20838
20839 #. type: textblock
20840 #: ../fish/guestfish.pod:755
20841 msgid ""
20842 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20843 "effect, due to the way that subprocesses work in Unix."
20844 msgstr ""
20845
20846 #. type: =head2
20847 #: ../fish/guestfish.pod:758
20848 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../fish/guestfish.pod:760
20853 msgid ""
20854 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20855 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20856 "and executed as guestfish commands."
20857 msgstr ""
20858
20859 #. type: textblock
20860 #: ../fish/guestfish.pod:764
20861 msgid ""
20862 "Thus you can use shell script to construct arbitrary guestfish commands "
20863 "which are then parsed by guestfish."
20864 msgstr ""
20865
20866 #. type: textblock
20867 #: ../fish/guestfish.pod:767
20868 msgid ""
20869 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20870 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20871 "if we use a shell script to create the guestfish commands for us:"
20872 msgstr ""
20873
20874 #. type: verbatim
20875 #: ../fish/guestfish.pod:772
20876 #, no-wrap
20877 msgid ""
20878 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20879 "\n"
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../fish/guestfish.pod:774
20884 msgid "or with names like C</foo.001>:"
20885 msgstr ""
20886
20887 #. type: verbatim
20888 #: ../fish/guestfish.pod:776
20889 #, no-wrap
20890 msgid ""
20891 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20892 "\n"
20893 msgstr ""
20894
20895 #. type: textblock
20896 #: ../fish/guestfish.pod:778
20897 msgid ""
20898 "When using guestfish interactively it can be helpful to just run the shell "
20899 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20900 "ordinary I<!> local command), see what guestfish commands it would run, and "
20901 "when you are happy with those prepend the C<E<lt>> character to run the "
20902 "guestfish commands for real."
20903 msgstr ""
20904
20905 #. type: =head1
20906 #: ../fish/guestfish.pod:784
20907 msgid "PIPES"
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../fish/guestfish.pod:786
20912 msgid ""
20913 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20914 "command (a guestfish command) to the second command (any host command).  For "
20915 "example:"
20916 msgstr ""
20917
20918 #. type: verbatim
20919 #: ../fish/guestfish.pod:790
20920 #, no-wrap
20921 msgid ""
20922 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20923 "\n"
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../fish/guestfish.pod:792
20928 msgid ""
20929 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20930 "program).  The above command would list all accounts in the guest filesystem "
20931 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20932 msgstr ""
20933
20934 #. type: verbatim
20935 #: ../fish/guestfish.pod:797
20936 #, no-wrap
20937 msgid ""
20938 " hexdump /bin/ls | head\n"
20939 " list-devices | tail -1\n"
20940 " tgz-out / - | tar ztf -\n"
20941 "\n"
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../fish/guestfish.pod:801
20946 msgid ""
20947 "The space before the pipe symbol is required, any space after the pipe "
20948 "symbol is optional.  Everything after the pipe symbol is just passed "
20949 "straight to the host shell, so it can contain redirections, globs and "
20950 "anything else that makes sense on the host side."
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../fish/guestfish.pod:806
20955 msgid ""
20956 "To use a literal argument which begins with a pipe symbol, you have to quote "
20957 "it, eg:"
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../fish/guestfish.pod:809
20962 #, no-wrap
20963 msgid ""
20964 " echo \"|\"\n"
20965 "\n"
20966 msgstr ""
20967
20968 #. type: =head1
20969 #: ../fish/guestfish.pod:811
20970 msgid "HOME DIRECTORIES"
20971 msgstr ""
20972
20973 #. type: textblock
20974 #: ../fish/guestfish.pod:813
20975 msgid ""
20976 "If a parameter starts with the character C<~> then the tilde may be expanded "
20977 "as a home directory path (either C<~> for the current user's home directory, "
20978 "or C<~user> for another user)."
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../fish/guestfish.pod:817
20983 msgid ""
20984 "Note that home directory expansion happens for users known I<on the host>, "
20985 "not in the guest filesystem."
20986 msgstr ""
20987
20988 #. type: textblock
20989 #: ../fish/guestfish.pod:820
20990 msgid ""
20991 "To use a literal argument which begins with a tilde, you have to quote it, "
20992 "eg:"
20993 msgstr ""
20994
20995 #. type: verbatim
20996 #: ../fish/guestfish.pod:823
20997 #, no-wrap
20998 msgid ""
20999 " echo \"~\"\n"
21000 "\n"
21001 msgstr ""
21002
21003 #. type: =head2
21004 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21005 msgid "ENCRYPTED DISKS"
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../fish/guestfish.pod:827
21010 msgid ""
21011 "Libguestfs has some support for Linux guests encrypted according to the "
21012 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21013 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21014 "LUKS is supported."
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../fish/guestfish.pod:832
21019 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21020 msgstr ""
21021
21022 #. type: verbatim
21023 #: ../fish/guestfish.pod:834
21024 #, no-wrap
21025 msgid ""
21026 " ><fs> vfs-type /dev/sda2\n"
21027 " crypto_LUKS\n"
21028 "\n"
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../fish/guestfish.pod:837
21033 msgid ""
21034 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21035 "device called C</dev/mapper/luksdev>."
21036 msgstr ""
21037
21038 #. type: verbatim
21039 #: ../fish/guestfish.pod:840
21040 #, no-wrap
21041 msgid ""
21042 " ><fs> luks-open /dev/sda2 luksdev\n"
21043 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21044 "\n"
21045 msgstr ""
21046
21047 #. type: textblock
21048 #: ../fish/guestfish.pod:843
21049 msgid ""
21050 "Finally you have to tell LVM to scan for volume groups on the newly created "
21051 "mapper device:"
21052 msgstr ""
21053
21054 #. type: verbatim
21055 #: ../fish/guestfish.pod:846
21056 #, no-wrap
21057 msgid ""
21058 " vgscan\n"
21059 " vg-activate-all true\n"
21060 "\n"
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../fish/guestfish.pod:849
21065 msgid "The logical volume(s) can now be mounted in the usual way."
21066 msgstr ""
21067
21068 #. type: textblock
21069 #: ../fish/guestfish.pod:851
21070 msgid ""
21071 "Before closing a LUKS device you must unmount any logical volumes on it and "
21072 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21073 "one.  Then you can close the mapper device:"
21074 msgstr ""
21075
21076 #. type: verbatim
21077 #: ../fish/guestfish.pod:855
21078 #, no-wrap
21079 msgid ""
21080 " vg-activate false /dev/VG\n"
21081 " luks-close /dev/mapper/luksdev\n"
21082 "\n"
21083 msgstr ""
21084
21085 #. type: textblock
21086 #: ../fish/guestfish.pod:860
21087 msgid ""
21088 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21089 "letters and paths (with some limitations).  The following commands are "
21090 "equivalent:"
21091 msgstr ""
21092
21093 #. type: verbatim
21094 #: ../fish/guestfish.pod:864
21095 #, no-wrap
21096 msgid ""
21097 " file /WINDOWS/system32/config/system.LOG\n"
21098 "\n"
21099 msgstr ""
21100
21101 #. type: verbatim
21102 #: ../fish/guestfish.pod:866
21103 #, no-wrap
21104 msgid ""
21105 " file win:\\windows\\system32\\config\\system.log\n"
21106 "\n"
21107 msgstr ""
21108
21109 #. type: verbatim
21110 #: ../fish/guestfish.pod:868
21111 #, no-wrap
21112 msgid ""
21113 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21114 "\n"
21115 msgstr ""
21116
21117 #. type: textblock
21118 #: ../fish/guestfish.pod:870
21119 msgid ""
21120 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21121 "where the drive is mounted, prepending that to the path, changing all "
21122 "backslash characters to forward slash, then resolving the result using L</"
21123 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21124 "the parameter might be rewritten like this:"
21125 msgstr ""
21126
21127 #. type: verbatim
21128 #: ../fish/guestfish.pod:876
21129 #, no-wrap
21130 msgid ""
21131 " win:e:\\foo\\bar => /e/FOO/bar\n"
21132 "\n"
21133 msgstr ""
21134
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:878
21137 msgid "This only works in argument positions that expect a path."
21138 msgstr ""
21139
21140 #. type: =head1
21141 #: ../fish/guestfish.pod:880
21142 msgid "UPLOADING AND DOWNLOADING FILES"
21143 msgstr ""
21144
21145 #. type: textblock
21146 #: ../fish/guestfish.pod:882
21147 msgid ""
21148 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21149 "others which upload from or download to a local file, you can use the "
21150 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21151 msgstr ""
21152
21153 #. type: verbatim
21154 #: ../fish/guestfish.pod:886
21155 #, no-wrap
21156 msgid ""
21157 " upload - /foo\n"
21158 "\n"
21159 msgstr ""
21160
21161 #. type: textblock
21162 #: ../fish/guestfish.pod:888
21163 msgid ""
21164 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21165 msgstr ""
21166
21167 #. type: verbatim
21168 #: ../fish/guestfish.pod:891
21169 #, no-wrap
21170 msgid ""
21171 " tar-out /etc - | tar tf -\n"
21172 "\n"
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../fish/guestfish.pod:893
21177 msgid ""
21178 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21179 "command (see L</PIPES>)."
21180 msgstr ""
21181
21182 #. type: textblock
21183 #: ../fish/guestfish.pod:896
21184 msgid ""
21185 "When using C<-> to read from stdin, the input is read up to the end of "
21186 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21187 "some arbitrary end marker:"
21188 msgstr ""
21189
21190 #. type: verbatim
21191 #: ../fish/guestfish.pod:900
21192 #, no-wrap
21193 msgid ""
21194 " upload -<<END /foo\n"
21195 " input line 1\n"
21196 " input line 2\n"
21197 " input line 3\n"
21198 " END\n"
21199 "\n"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../fish/guestfish.pod:906
21204 msgid ""
21205 "Any string of characters can be used instead of C<END>.  The end marker must "
21206 "appear on a line of its own, without any preceeding or following characters "
21207 "(not even spaces)."
21208 msgstr ""
21209
21210 #. type: textblock
21211 #: ../fish/guestfish.pod:910
21212 msgid ""
21213 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21214 "upload local files (so-called \"FileIn\" parameters in the generator)."
21215 msgstr ""
21216
21217 #. type: =head1
21218 #: ../fish/guestfish.pod:913
21219 msgid "EXIT ON ERROR BEHAVIOUR"
21220 msgstr ""
21221
21222 #. type: textblock
21223 #: ../fish/guestfish.pod:915
21224 msgid ""
21225 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21226 "taking commands from a human over a tty), and will exit on the first error "
21227 "in non-interactive mode (scripts, commands given on the command line)."
21228 msgstr ""
21229
21230 #. type: textblock
21231 #: ../fish/guestfish.pod:920
21232 msgid ""
21233 "If you prefix a command with a I<-> character, then that command will not "
21234 "cause guestfish to exit, even if that (one) command returns an error."
21235 msgstr ""
21236
21237 #. type: =head1
21238 #: ../fish/guestfish.pod:924
21239 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21240 msgstr ""
21241
21242 #. type: textblock
21243 #: ../fish/guestfish.pod:926
21244 msgid ""
21245 "Guestfish can be remote-controlled over a socket.  This is useful "
21246 "particularly in shell scripts where you want to make several different "
21247 "changes to a filesystem, but you don't want the overhead of starting up a "
21248 "guestfish process each time."
21249 msgstr ""
21250
21251 #. type: textblock
21252 #: ../fish/guestfish.pod:931
21253 msgid "Start a guestfish server process using:"
21254 msgstr ""
21255
21256 #. type: verbatim
21257 #: ../fish/guestfish.pod:933
21258 #, no-wrap
21259 msgid ""
21260 " eval \"`guestfish --listen`\"\n"
21261 "\n"
21262 msgstr ""
21263
21264 #. type: textblock
21265 #: ../fish/guestfish.pod:935
21266 msgid "and then send it commands by doing:"
21267 msgstr ""
21268
21269 #. type: verbatim
21270 #: ../fish/guestfish.pod:937
21271 #, no-wrap
21272 msgid ""
21273 " guestfish --remote cmd [...]\n"
21274 "\n"
21275 msgstr ""
21276
21277 #. type: textblock
21278 #: ../fish/guestfish.pod:939
21279 msgid "To cause the server to exit, send it the exit command:"
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fish/guestfish.pod:943
21284 msgid ""
21285 "Note that the server will normally exit if there is an error in a command.  "
21286 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21287 "BEHAVIOUR>."
21288 msgstr ""
21289
21290 #. type: =head2
21291 #: ../fish/guestfish.pod:947
21292 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../fish/guestfish.pod:949
21297 msgid ""
21298 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21299 "is how the I<--remote> option knows where to send the commands.  You can "
21300 "have several guestfish listener processes running using:"
21301 msgstr ""
21302
21303 #. type: verbatim
21304 #: ../fish/guestfish.pod:953
21305 #, no-wrap
21306 msgid ""
21307 " eval \"`guestfish --listen`\"\n"
21308 " pid1=$GUESTFISH_PID\n"
21309 " eval \"`guestfish --listen`\"\n"
21310 " pid2=$GUESTFISH_PID\n"
21311 " ...\n"
21312 " guestfish --remote=$pid1 cmd\n"
21313 " guestfish --remote=$pid2 cmd\n"
21314 "\n"
21315 msgstr ""
21316
21317 #. type: =head2
21318 #: ../fish/guestfish.pod:961
21319 msgid "REMOTE CONTROL AND CSH"
21320 msgstr ""
21321
21322 #. type: textblock
21323 #: ../fish/guestfish.pod:963
21324 msgid ""
21325 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21326 "option:"
21327 msgstr ""
21328
21329 #. type: verbatim
21330 #: ../fish/guestfish.pod:966
21331 #, no-wrap
21332 msgid ""
21333 " eval \"`guestfish --listen --csh`\"\n"
21334 "\n"
21335 msgstr ""
21336
21337 #. type: =head2
21338 #: ../fish/guestfish.pod:968
21339 msgid "REMOTE CONTROL DETAILS"
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../fish/guestfish.pod:970
21344 msgid ""
21345 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21346 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21347 "and C<$PID> is the process ID of the server."
21348 msgstr ""
21349
21350 #. type: textblock
21351 #: ../fish/guestfish.pod:974
21352 msgid "Guestfish client and server versions must match exactly."
21353 msgstr ""
21354
21355 #. type: =head2
21356 #: ../fish/guestfish.pod:976
21357 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21358 msgstr ""
21359
21360 #. type: textblock
21361 #: ../fish/guestfish.pod:978
21362 msgid ""
21363 "From Bash, you can use the following code which creates a guestfish "
21364 "instance, correctly quotes the command line, handles failure to start, and "
21365 "cleans up guestfish when the script exits:"
21366 msgstr ""
21367
21368 #. type: verbatim
21369 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21370 #, no-wrap
21371 msgid ""
21372 " #!/bin/bash -\n"
21373 " \n"
21374 msgstr ""
21375
21376 #. type: verbatim
21377 #: ../fish/guestfish.pod:986
21378 #, no-wrap
21379 msgid ""
21380 " guestfish[0]=\"guestfish\"\n"
21381 " guestfish[1]=\"--listen\"\n"
21382 " guestfish[2]=\"--ro\"\n"
21383 " guestfish[3]=\"-a\"\n"
21384 " guestfish[4]=\"disk.img\"\n"
21385 " \n"
21386 msgstr ""
21387
21388 #. type: verbatim
21389 #: ../fish/guestfish.pod:992
21390 #, no-wrap
21391 msgid ""
21392 " GUESTFISH_PID=\n"
21393 " eval $(\"${guestfish[@]}\")\n"
21394 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21395 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21396 "     exit 1\n"
21397 " fi\n"
21398 " \n"
21399 msgstr ""
21400
21401 #. type: verbatim
21402 #: ../fish/guestfish.pod:999
21403 #, no-wrap
21404 msgid ""
21405 " cleanup_guestfish ()\n"
21406 " {\n"
21407 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21408 " }\n"
21409 " trap cleanup_guestfish EXIT ERR\n"
21410 " \n"
21411 msgstr ""
21412
21413 #. type: verbatim
21414 #: ../fish/guestfish.pod:1005
21415 #, no-wrap
21416 msgid ""
21417 " guestfish --remote -- run\n"
21418 " \n"
21419 msgstr ""
21420
21421 #. type: verbatim
21422 #: ../fish/guestfish.pod:1007
21423 #, no-wrap
21424 msgid ""
21425 " # ...\n"
21426 "\n"
21427 msgstr ""
21428
21429 #. type: =head2
21430 #: ../fish/guestfish.pod:1009
21431 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21432 msgstr ""
21433
21434 #. type: textblock
21435 #: ../fish/guestfish.pod:1011
21436 msgid ""
21437 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21438 "context hangs, ie. don't do (note the backquotes):"
21439 msgstr ""
21440
21441 #. type: verbatim
21442 #: ../fish/guestfish.pod:1014
21443 #, no-wrap
21444 msgid ""
21445 " a=`guestfish --remote run`\n"
21446 "\n"
21447 msgstr ""
21448
21449 #. type: textblock
21450 #: ../fish/guestfish.pod:1016
21451 msgid ""
21452 "Since the C<run> command produces no output on stdout, this is not useful "
21453 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21454 "cgi?id=592910>."
21455 msgstr ""
21456
21457 #. type: =head1
21458 #: ../fish/guestfish.pod:1020
21459 msgid "PREPARED DISK IMAGES"
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../fish/guestfish.pod:1022
21464 msgid ""
21465 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21466 "preformatted disk images that guestfish can make for you to save typing.  "
21467 "This is particularly useful for testing purposes.  This option is used "
21468 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21469 "can be mixed with I<-a>)."
21470 msgstr ""
21471
21472 #. type: textblock
21473 #: ../fish/guestfish.pod:1028
21474 msgid ""
21475 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21476 "the second and so on.  Existing files in the current directory are "
21477 "I<overwritten>."
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../fish/guestfish.pod:1032
21482 msgid ""
21483 "The type briefly describes how the disk should be sized, partitioned, how "
21484 "filesystem(s) should be created, and how content should be added.  "
21485 "Optionally the type can be followed by extra parameters, separated by C<:> "
21486 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21487 "allocated disk, containing a single partition, with the partition formatted "
21488 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21489 "disk instead."
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../fish/guestfish.pod:1040
21494 msgid "To list the available types and any extra parameters they take, run:"
21495 msgstr ""
21496
21497 #. type: textblock
21498 #: ../fish/guestfish.pod:1044
21499 msgid ""
21500 "Note that the prepared filesystem is not mounted.  You would usually have to "
21501 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../fish/guestfish.pod:1048
21506 msgid ""
21507 "If any I<-N> or I<--new> options are given, the guest is automatically "
21508 "launched."
21509 msgstr ""
21510
21511 #. type: textblock
21512 #: ../fish/guestfish.pod:1053
21513 msgid "Create a 100MB disk with an ext4-formatted partition:"
21514 msgstr ""
21515
21516 #. type: verbatim
21517 #: ../fish/guestfish.pod:1055
21518 #, no-wrap
21519 msgid ""
21520 " guestfish -N fs:ext4\n"
21521 "\n"
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../fish/guestfish.pod:1057
21526 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21527 msgstr ""
21528
21529 #. type: verbatim
21530 #: ../fish/guestfish.pod:1059
21531 #, no-wrap
21532 msgid ""
21533 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21534 "\n"
21535 msgstr ""
21536
21537 #. type: textblock
21538 #: ../fish/guestfish.pod:1061
21539 msgid "Create a blank 200MB disk:"
21540 msgstr ""
21541
21542 #. type: verbatim
21543 #: ../fish/guestfish.pod:1063
21544 #, no-wrap
21545 msgid ""
21546 " guestfish -N disk:200M\n"
21547 "\n"
21548 msgstr ""
21549
21550 #. type: =head1
21551 #: ../fish/guestfish.pod:1065
21552 msgid "PROGRESS BARS"
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../fish/guestfish.pod:1067
21557 msgid ""
21558 "Some (not all) long-running commands send progress notification messages as "
21559 "they are running.  Guestfish turns these messages into progress bars."
21560 msgstr ""
21561
21562 #. type: textblock
21563 #: ../fish/guestfish.pod:1071
21564 msgid ""
21565 "When a command that supports progress bars takes longer than two seconds to "
21566 "run, and if progress bars are enabled, then you will see one appearing below "
21567 "the command:"
21568 msgstr ""
21569
21570 #. type: verbatim
21571 #: ../fish/guestfish.pod:1075
21572 #, no-wrap
21573 msgid ""
21574 " ><fs> copy-size /large-file /another-file 2048M\n"
21575 " / 10% [#####-----------------------------------------] 00:30\n"
21576 "\n"
21577 msgstr ""
21578
21579 #. type: textblock
21580 #: ../fish/guestfish.pod:1078
21581 msgid ""
21582 "The spinner on the left hand side moves round once for every progress "
21583 "notification received from the backend.  This is a (reasonably) golden "
21584 "assurance that the command is \"doing something\" even if the progress bar "
21585 "is not moving, because the command is able to send the progress "
21586 "notifications.  When the bar reaches 100% and the command finishes, the "
21587 "spinner disappears."
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fish/guestfish.pod:1085
21592 msgid ""
21593 "Progress bars are enabled by default when guestfish is used interactively.  "
21594 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21595 "and you can disable them completely using I<--no-progress-bars>."
21596 msgstr ""
21597
21598 #. type: =head1
21599 #: ../fish/guestfish.pod:1090
21600 msgid "GUESTFISH COMMANDS"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../fish/guestfish.pod:1092
21605 msgid ""
21606 "The commands in this section are guestfish convenience commands, in other "
21607 "words, they are not part of the L<guestfs(3)> API."
21608 msgstr ""
21609
21610 #. type: =head2
21611 #: ../fish/guestfish.pod:1095
21612 msgid "help"
21613 msgstr ""
21614
21615 #. type: verbatim
21616 #: ../fish/guestfish.pod:1097
21617 #, no-wrap
21618 msgid ""
21619 " help\n"
21620 " help cmd\n"
21621 "\n"
21622 msgstr ""
21623
21624 #. type: textblock
21625 #: ../fish/guestfish.pod:1100
21626 msgid "Without any parameter, this provides general help."
21627 msgstr ""
21628
21629 #. type: textblock
21630 #: ../fish/guestfish.pod:1102
21631 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21632 msgstr ""
21633
21634 #. type: =head2
21635 #: ../fish/guestfish.pod:1104
21636 msgid "quit | exit"
21637 msgstr ""
21638
21639 #. type: textblock
21640 #: ../fish/guestfish.pod:1106
21641 msgid "This exits guestfish.  You can also use C<^D> key."
21642 msgstr ""
21643
21644 #. type: textblock
21645 #: ../fish/guestfish.pod:1108
21646 msgid "@FISH_COMMANDS@"
21647 msgstr ""
21648
21649 #. type: =head1
21650 #: ../fish/guestfish.pod:1110
21651 msgid "COMMANDS"
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21656 msgid "@ACTIONS@"
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../fish/guestfish.pod:1116
21661 msgid ""
21662 "guestfish returns 0 if the commands completed without error, or 1 if there "
21663 "was an error."
21664 msgstr ""
21665
21666 #. type: =item
21667 #: ../fish/guestfish.pod:1123
21668 msgid "EDITOR"
21669 msgstr ""
21670
21671 #. type: textblock
21672 #: ../fish/guestfish.pod:1125
21673 msgid ""
21674 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21675 "C<vi>."
21676 msgstr ""
21677
21678 #. type: =item
21679 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
21680 msgid "FEBOOTSTRAP_KERNEL"
21681 msgstr ""
21682
21683 #. type: =item
21684 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
21685 msgid "FEBOOTSTRAP_MODULES"
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
21690 msgid ""
21691 "These two environment variables allow the kernel that libguestfs uses in the "
21692 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21693 "most recent host kernel is chosen.  For more information about kernel "
21694 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21695 "available in febootstrap E<ge> 3.8."
21696 msgstr ""
21697
21698 #. type: =item
21699 #: ../fish/guestfish.pod:1138
21700 msgid "GUESTFISH_DISPLAY_IMAGE"
21701 msgstr ""
21702
21703 #. type: textblock
21704 #: ../fish/guestfish.pod:1140
21705 msgid ""
21706 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21707 "If not set, it uses L<display(1)>."
21708 msgstr ""
21709
21710 #. type: =item
21711 #: ../fish/guestfish.pod:1143
21712 msgid "GUESTFISH_PID"
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../fish/guestfish.pod:1145
21717 msgid ""
21718 "Used with the I<--remote> option to specify the remote guestfish process to "
21719 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21720 msgstr ""
21721
21722 #. type: =item
21723 #: ../fish/guestfish.pod:1149
21724 msgid "HEXEDITOR"
21725 msgstr ""
21726
21727 #. type: textblock
21728 #: ../fish/guestfish.pod:1151
21729 msgid ""
21730 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21731 "not specified, the external L<hexedit(1)> program is used."
21732 msgstr ""
21733
21734 #. type: =item
21735 #: ../fish/guestfish.pod:1155
21736 msgid "HOME"
21737 msgstr ""
21738
21739 #. type: textblock
21740 #: ../fish/guestfish.pod:1157
21741 msgid ""
21742 "If compiled with GNU readline support, various files in the home directory "
21743 "can be used.  See L</FILES>."
21744 msgstr ""
21745
21746 #. type: =item
21747 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
21748 msgid "LIBGUESTFS_APPEND"
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
21753 msgid "Pass additional options to the guest kernel."
21754 msgstr ""
21755
21756 #. type: =item
21757 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
21758 msgid "LIBGUESTFS_DEBUG"
21759 msgstr ""
21760
21761 #. type: textblock
21762 #: ../fish/guestfish.pod:1166
21763 msgid ""
21764 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21765 "effect as using the B<-v> option."
21766 msgstr ""
21767
21768 #. type: =item
21769 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
21770 msgid "LIBGUESTFS_MEMSIZE"
21771 msgstr ""
21772
21773 #. type: textblock
21774 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
21775 msgid ""
21776 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21777 msgstr ""
21778
21779 #. type: verbatim
21780 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
21781 #, no-wrap
21782 msgid ""
21783 " LIBGUESTFS_MEMSIZE=700\n"
21784 "\n"
21785 msgstr ""
21786
21787 #. type: =item
21788 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
21789 msgid "LIBGUESTFS_PATH"
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../fish/guestfish.pod:1178
21794 msgid ""
21795 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21796 "the discussion of paths in L<guestfs(3)>."
21797 msgstr ""
21798
21799 #. type: =item
21800 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
21801 msgid "LIBGUESTFS_QEMU"
21802 msgstr ""
21803
21804 #. type: textblock
21805 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
21806 msgid ""
21807 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21808 "which was found at compile time by the configure script is used."
21809 msgstr ""
21810
21811 #. type: =item
21812 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
21813 msgid "LIBGUESTFS_TRACE"
21814 msgstr ""
21815
21816 #. type: textblock
21817 #: ../fish/guestfish.pod:1189
21818 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21819 msgstr ""
21820
21821 #. type: =item
21822 #: ../fish/guestfish.pod:1191
21823 msgid "PAGER"
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../fish/guestfish.pod:1193
21828 msgid ""
21829 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21830 "C<more>."
21831 msgstr ""
21832
21833 #. type: =item
21834 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260
21835 #: ../src/guestfs.pod:3262
21836 msgid "TMPDIR"
21837 msgstr ""
21838
21839 #. type: textblock
21840 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
21841 msgid ""
21842 "Location of temporary directory, defaults to C</tmp> except for the cached "
21843 "supermin appliance which defaults to C</var/tmp>."
21844 msgstr ""
21845
21846 #. type: textblock
21847 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
21848 msgid ""
21849 "If libguestfs was compiled to use the supermin appliance then the real "
21850 "appliance is cached in this directory, shared between all handles belonging "
21851 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21852 "use in case C</var/tmp> is not large enough."
21853 msgstr ""
21854
21855 #. type: =head1
21856 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21857 #: ../rescue/virt-rescue.pod:310
21858 msgid "FILES"
21859 msgstr ""
21860
21861 #. type: =item
21862 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21863 #: ../rescue/virt-rescue.pod:314
21864 msgid "$HOME/.libguestfs-tools.rc"
21865 msgstr ""
21866
21867 #. type: =item
21868 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21869 #: ../rescue/virt-rescue.pod:316
21870 msgid "/etc/libguestfs-tools.conf"
21871 msgstr ""
21872
21873 #. type: textblock
21874 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21875 #: ../rescue/virt-rescue.pod:318
21876 msgid ""
21877 "This configuration file controls the default read-only or read-write mode "
21878 "(I<--ro> or I<--rw>)."
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../fish/guestfish.pod:1220
21883 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21884 msgstr ""
21885
21886 #. type: =item
21887 #: ../fish/guestfish.pod:1222
21888 msgid "$HOME/.guestfish"
21889 msgstr ""
21890
21891 #. type: textblock
21892 #: ../fish/guestfish.pod:1224
21893 msgid ""
21894 "If compiled with GNU readline support, then the command history is saved in "
21895 "this file."
21896 msgstr ""
21897
21898 #. type: =item
21899 #: ../fish/guestfish.pod:1227
21900 msgid "$HOME/.inputrc"
21901 msgstr ""
21902
21903 #. type: =item
21904 #: ../fish/guestfish.pod:1229
21905 msgid "/etc/inputrc"
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../fish/guestfish.pod:1231
21910 msgid ""
21911 "If compiled with GNU readline support, then these files can be used to "
21912 "configure readline.  For further information, please see L<readline(3)/"
21913 "INITIALIZATION FILE>."
21914 msgstr ""
21915
21916 #. type: textblock
21917 #: ../fish/guestfish.pod:1235
21918 msgid "To write rules which only apply to guestfish, use:"
21919 msgstr ""
21920
21921 #. type: verbatim
21922 #: ../fish/guestfish.pod:1237
21923 #, no-wrap
21924 msgid ""
21925 " $if guestfish\n"
21926 " ...\n"
21927 " $endif\n"
21928 "\n"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../fish/guestfish.pod:1241
21933 msgid ""
21934 "Variables that you can set in inputrc that change the behaviour of guestfish "
21935 "in useful ways include:"
21936 msgstr ""
21937
21938 #. type: =item
21939 #: ../fish/guestfish.pod:1246
21940 msgid "completion-ignore-case (default: on)"
21941 msgstr ""
21942
21943 #. type: textblock
21944 #: ../fish/guestfish.pod:1248
21945 msgid ""
21946 "By default, guestfish will ignore case when tab-completing paths on the "
21947 "disk.  Use:"
21948 msgstr ""
21949
21950 #. type: verbatim
21951 #: ../fish/guestfish.pod:1251
21952 #, no-wrap
21953 msgid ""
21954 " set completion-ignore-case off\n"
21955 "\n"
21956 msgstr ""
21957
21958 #. type: textblock
21959 #: ../fish/guestfish.pod:1253
21960 msgid "to make guestfish case sensitive."
21961 msgstr ""
21962
21963 #. type: =item
21964 #: ../fish/guestfish.pod:1257
21965 msgid "test1.img"
21966 msgstr ""
21967
21968 #. type: =item
21969 #: ../fish/guestfish.pod:1259
21970 msgid "test2.img (etc)"
21971 msgstr ""
21972
21973 #. type: textblock
21974 #: ../fish/guestfish.pod:1261
21975 msgid ""
21976 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21977 "will be created in the file C<test1.img> in the current directory.  The "
21978 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21979 "the same name will be overwritten."
21980 msgstr ""
21981
21982 #. type: textblock
21983 #: ../fish/guestfish.pod:1270
21984 msgid ""
21985 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21986 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21987 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21988 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21989 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21990 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21991 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
21996 #: ../test-tool/libguestfs-test-tool.pod:112
21997 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../fish/virt-copy-in.pod:5
22002 msgid ""
22003 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22004 msgstr ""
22005
22006 #. type: verbatim
22007 #: ../fish/virt-copy-in.pod:9
22008 #, no-wrap
22009 msgid ""
22010 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22011 "\n"
22012 msgstr ""
22013
22014 #. type: verbatim
22015 #: ../fish/virt-copy-in.pod:11
22016 #, no-wrap
22017 msgid ""
22018 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22019 "\n"
22020 msgstr ""
22021
22022 #. type: textblock
22023 #: ../fish/virt-copy-in.pod:15
22024 msgid ""
22025 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22026 "causing disk corruption.  The virtual machine must be shut down before you "
22027 "use this command."
22028 msgstr ""
22029
22030 #. type: textblock
22031 #: ../fish/virt-copy-in.pod:21
22032 msgid ""
22033 "C<virt-copy-in> copies files and directories from the local disk into a "
22034 "virtual machine disk image or named libvirt domain."
22035 msgstr ""
22036
22037 #. type: textblock
22038 #: ../fish/virt-copy-in.pod:24
22039 msgid ""
22040 "You can give one of more filenames and directories on the command line.  "
22041 "Directories are copied in recursively.  The final parameter must be the "
22042 "destination directory in the disk image which must be an absolute path "
22043 "starting with a C</> character."
22044 msgstr ""
22045
22046 #. type: verbatim
22047 #: ../fish/virt-copy-in.pod:33
22048 #, no-wrap
22049 msgid ""
22050 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22051 "\n"
22052 msgstr ""
22053
22054 #. type: textblock
22055 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22056 msgid "Upload a home directory to a guest:"
22057 msgstr ""
22058
22059 #. type: verbatim
22060 #: ../fish/virt-copy-in.pod:37
22061 #, no-wrap
22062 msgid ""
22063 " virt-copy-in -d MyGuest skel /home\n"
22064 "\n"
22065 msgstr ""
22066
22067 #. type: =head1
22068 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22069 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22070 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22071 msgstr ""
22072
22073 #. type: textblock
22074 #: ../fish/virt-copy-in.pod:41
22075 msgid ""
22076 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22077 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
22078 "are probably better off using guestfish directly."
22079 msgstr ""
22080
22081 #. type: textblock
22082 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22083 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22084 msgid ""
22085 "Since the shell script just passes options straight to guestfish, read "
22086 "L<guestfish(1)> to see the full list of options."
22087 msgstr ""
22088
22089 #. type: textblock
22090 #: ../fish/virt-copy-in.pod:52
22091 msgid ""
22092 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22093 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22094 msgstr ""
22095
22096 #. type: textblock
22097 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22098 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22099 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../fish/virt-copy-out.pod:5
22104 msgid ""
22105 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22106 "image."
22107 msgstr ""
22108
22109 #. type: verbatim
22110 #: ../fish/virt-copy-out.pod:9
22111 #, no-wrap
22112 msgid ""
22113 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22114 "\n"
22115 msgstr ""
22116
22117 #. type: verbatim
22118 #: ../fish/virt-copy-out.pod:11
22119 #, no-wrap
22120 msgid ""
22121 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22122 "\n"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../fish/virt-copy-out.pod:15
22127 msgid ""
22128 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22129 "image or named libvirt domain."
22130 msgstr ""
22131
22132 #. type: textblock
22133 #: ../fish/virt-copy-out.pod:18
22134 msgid ""
22135 "You can give one of more filenames and directories on the command line.  "
22136 "Directories are copied out recursively."
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../fish/virt-copy-out.pod:23
22141 msgid "Download the home directories from a virtual machine:"
22142 msgstr ""
22143
22144 #. type: verbatim
22145 #: ../fish/virt-copy-out.pod:25
22146 #, no-wrap
22147 msgid ""
22148 " mkdir homes\n"
22149 " virt-copy-out -d MyGuest /home homes\n"
22150 "\n"
22151 msgstr ""
22152
22153 #. type: textblock
22154 #: ../fish/virt-copy-out.pod:30
22155 msgid ""
22156 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22157 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22158 "are probably better off using guestfish directly."
22159 msgstr ""
22160
22161 #. type: textblock
22162 #: ../fish/virt-copy-out.pod:41
22163 msgid ""
22164 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22165 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../fish/virt-tar-in.pod:5
22170 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22171 msgstr ""
22172
22173 #. type: verbatim
22174 #: ../fish/virt-tar-in.pod:9
22175 #, no-wrap
22176 msgid ""
22177 " virt-tar-in -a disk.img data.tar /destination\n"
22178 "\n"
22179 msgstr ""
22180
22181 #. type: verbatim
22182 #: ../fish/virt-tar-in.pod:11
22183 #, no-wrap
22184 msgid ""
22185 " virt-tar-in -d domain data.tar /destination\n"
22186 "\n"
22187 msgstr ""
22188
22189 #. type: verbatim
22190 #: ../fish/virt-tar-in.pod:13
22191 #, no-wrap
22192 msgid ""
22193 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22194 "\n"
22195 msgstr ""
22196
22197 #. type: textblock
22198 #: ../fish/virt-tar-in.pod:17
22199 msgid ""
22200 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22201 "causing disk corruption.  The virtual machine must be shut down before you "
22202 "use this command."
22203 msgstr ""
22204
22205 #. type: textblock
22206 #: ../fish/virt-tar-in.pod:23
22207 msgid ""
22208 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22209 "image or named libvirt domain."
22210 msgstr ""
22211
22212 #. type: textblock
22213 #: ../fish/virt-tar-in.pod:26
22214 msgid ""
22215 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22216 "standard input.  The second parameter is the absolute target directory to "
22217 "unpack into."
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../fish/virt-tar-in.pod:34
22222 #, no-wrap
22223 msgid ""
22224 " virt-tar-in -d MyGuest homes.tar /home\n"
22225 "\n"
22226 msgstr ""
22227
22228 #. type: textblock
22229 #: ../fish/virt-tar-in.pod:38
22230 msgid ""
22231 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22232 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22233 "probably better off using guestfish directly."
22234 msgstr ""
22235
22236 #. type: textblock
22237 #: ../fish/virt-tar-in.pod:49
22238 msgid ""
22239 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22240 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22241 "org/>."
22242 msgstr ""
22243
22244 #. type: textblock
22245 #: ../fish/virt-tar-out.pod:5
22246 msgid ""
22247 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22248 msgstr ""
22249
22250 #. type: verbatim
22251 #: ../fish/virt-tar-out.pod:9
22252 #, no-wrap
22253 msgid ""
22254 " virt-tar-out -a disk.img /dir files.tar\n"
22255 "\n"
22256 msgstr ""
22257
22258 #. type: verbatim
22259 #: ../fish/virt-tar-out.pod:11
22260 #, no-wrap
22261 msgid ""
22262 " virt-tar-out -d domain /dir files.tar\n"
22263 "\n"
22264 msgstr ""
22265
22266 #. type: verbatim
22267 #: ../fish/virt-tar-out.pod:13
22268 #, no-wrap
22269 msgid ""
22270 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22271 "\n"
22272 msgstr ""
22273
22274 #. type: textblock
22275 #: ../fish/virt-tar-out.pod:17
22276 msgid ""
22277 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22278 msgstr ""
22279
22280 #. type: textblock
22281 #: ../fish/virt-tar-out.pod:20
22282 msgid ""
22283 "The first parameter is the absolute path of the virtual machine directory.  "
22284 "The second parameter is the tar file to write.  Use C<-> to write to "
22285 "standard output."
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../fish/virt-tar-out.pod:26
22290 msgid "Download the home directories from a guest:"
22291 msgstr ""
22292
22293 #. type: verbatim
22294 #: ../fish/virt-tar-out.pod:28
22295 #, no-wrap
22296 msgid ""
22297 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22298 "\n"
22299 msgstr ""
22300
22301 #. type: textblock
22302 #: ../fish/virt-tar-out.pod:32
22303 msgid ""
22304 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22305 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22306 "are probably better off using guestfish directly."
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../fish/virt-tar-out.pod:43
22311 msgid ""
22312 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22313 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../fuse/guestmount.pod:5
22318 msgid ""
22319 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22320 msgstr ""
22321
22322 #. type: verbatim
22323 #: ../fuse/guestmount.pod:9
22324 #, no-wrap
22325 msgid ""
22326 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22327 "\n"
22328 msgstr ""
22329
22330 #. type: verbatim
22331 #: ../fuse/guestmount.pod:11
22332 #, no-wrap
22333 msgid ""
22334 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22335 "\n"
22336 msgstr ""
22337
22338 #. type: verbatim
22339 #: ../fuse/guestmount.pod:13
22340 #, no-wrap
22341 msgid ""
22342 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22343 "\n"
22344 msgstr ""
22345
22346 #. type: textblock
22347 #: ../fuse/guestmount.pod:17
22348 msgid ""
22349 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22350 "machines.  If you do this, you risk disk corruption in the VM."
22351 msgstr ""
22352
22353 #. type: textblock
22354 #: ../fuse/guestmount.pod:22
22355 msgid ""
22356 "The guestmount program can be used to mount virtual machine filesystems and "
22357 "other disk images on the host.  It uses libguestfs for access to the guest "
22358 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22359 "a mountable device."
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../fuse/guestmount.pod:27
22364 msgid ""
22365 "Along with other options, you have to give at least one device (I<-a> "
22366 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22367 "option) or use the I<-i> inspection option or the I<--live> option.  How "
22368 "this works is better explained in the L<guestfish(1)> manual page, or by "
22369 "looking at the examples below."
22370 msgstr ""
22371
22372 #. type: textblock
22373 #: ../fuse/guestmount.pod:33
22374 msgid ""
22375 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22376 "by you, and the filesystem will not be visible to any other users unless you "
22377 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22378 "the filesystem, use the C<fusermount -u> command."
22379 msgstr ""
22380
22381 #. type: textblock
22382 #: ../fuse/guestmount.pod:41
22383 msgid ""
22384 "For a typical Windows guest which has its main filesystem on the first "
22385 "partition:"
22386 msgstr ""
22387
22388 #. type: verbatim
22389 #: ../fuse/guestmount.pod:44
22390 #, no-wrap
22391 msgid ""
22392 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22393 "\n"
22394 msgstr ""
22395
22396 #. type: textblock
22397 #: ../fuse/guestmount.pod:46
22398 msgid ""
22399 "For a typical Linux guest which has a /boot filesystem on the first "
22400 "partition, and the root filesystem on a logical volume:"
22401 msgstr ""
22402
22403 #. type: verbatim
22404 #: ../fuse/guestmount.pod:49
22405 #, no-wrap
22406 msgid ""
22407 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22408 "\n"
22409 msgstr ""
22410
22411 #. type: textblock
22412 #: ../fuse/guestmount.pod:51
22413 msgid "To get libguestfs to detect guest mountpoints for you:"
22414 msgstr ""
22415
22416 #. type: verbatim
22417 #: ../fuse/guestmount.pod:53
22418 #, no-wrap
22419 msgid ""
22420 " guestmount -a guest.img -i --ro /mnt\n"
22421 "\n"
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../fuse/guestmount.pod:55
22426 msgid "For a libvirt guest called \"Guest\" you could do:"
22427 msgstr ""
22428
22429 #. type: verbatim
22430 #: ../fuse/guestmount.pod:57
22431 #, no-wrap
22432 msgid ""
22433 " guestmount -d Guest -i --ro /mnt\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: textblock
22438 #: ../fuse/guestmount.pod:59
22439 msgid ""
22440 "If you don't know what filesystems are contained in a guest or disk image, "
22441 "use L<virt-filesystems(1)> first:"
22442 msgstr ""
22443
22444 #. type: verbatim
22445 #: ../fuse/guestmount.pod:62
22446 #, no-wrap
22447 msgid ""
22448 " virt-filesystems MyGuest\n"
22449 "\n"
22450 msgstr ""
22451
22452 #. type: textblock
22453 #: ../fuse/guestmount.pod:64
22454 msgid ""
22455 "If you want to trace the libguestfs calls but without excessive debugging "
22456 "information, we recommend:"
22457 msgstr ""
22458
22459 #. type: verbatim
22460 #: ../fuse/guestmount.pod:67
22461 #, no-wrap
22462 msgid ""
22463 " guestmount [...] --trace /mnt\n"
22464 "\n"
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../fuse/guestmount.pod:69
22469 msgid "If you want to debug the program, we recommend:"
22470 msgstr ""
22471
22472 #. type: verbatim
22473 #: ../fuse/guestmount.pod:71
22474 #, no-wrap
22475 msgid ""
22476 " guestmount [...] --trace --verbose /mnt\n"
22477 "\n"
22478 msgstr ""
22479
22480 #. type: =head1
22481 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
22482 #: ../resize/virt-resize.pod:627
22483 msgid "NOTES"
22484 msgstr ""
22485
22486 #. type: =head2
22487 #: ../fuse/guestmount.pod:75
22488 msgid "Other users cannot see the filesystem by default"
22489 msgstr ""
22490
22491 #. type: textblock
22492 #: ../fuse/guestmount.pod:77
22493 msgid ""
22494 "If you mount a filesystem as one user (eg. root), then other users will not "
22495 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22496 "option when mounting:"
22497 msgstr ""
22498
22499 #. type: verbatim
22500 #: ../fuse/guestmount.pod:81
22501 #, no-wrap
22502 msgid ""
22503 " sudo guestmount [...] -o allow_other /mnt\n"
22504 "\n"
22505 msgstr ""
22506
22507 #. type: =head2
22508 #: ../fuse/guestmount.pod:83
22509 msgid "Enabling FUSE"
22510 msgstr ""
22511
22512 #. type: textblock
22513 #: ../fuse/guestmount.pod:85
22514 msgid ""
22515 "On some distros, you may need to add yourself to a special group (eg. "
22516 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22517 "Debian and derivatives."
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../fuse/guestmount.pod:89
22522 msgid ""
22523 "On other distros, no special group is required.  It is not necessary on "
22524 "Fedora or Red Hat Enterprise Linux."
22525 msgstr ""
22526
22527 #. type: textblock
22528 #: ../fuse/guestmount.pod:100
22529 msgid "Add a block device or virtual machine image."
22530 msgstr ""
22531
22532 #. type: =item
22533 #: ../fuse/guestmount.pod:123
22534 msgid "B<--dir-cache-timeout N>"
22535 msgstr ""
22536
22537 #. type: textblock
22538 #: ../fuse/guestmount.pod:125
22539 msgid ""
22540 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22541 "seconds.  The readdir cache [actually, there are several semi-independent "
22542 "caches] is populated after a readdir(2) call with the stat and extended "
22543 "attributes of the files in the directory, in anticipation that they will be "
22544 "requested soon after."
22545 msgstr ""
22546
22547 #. type: textblock
22548 #: ../fuse/guestmount.pod:131
22549 msgid ""
22550 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22551 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22552 "requests, only cache existing ones."
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../fuse/guestmount.pod:151
22557 msgid ""
22558 "If you have untrusted raw-format guest disk images, you should use this "
22559 "option to specify the disk format.  This avoids a possible security problem "
22560 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22561 "guestfs_add_drive_opts>."
22562 msgstr ""
22563
22564 #. type: =item
22565 #: ../fuse/guestmount.pod:156
22566 msgid "B<--fuse-help>"
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../fuse/guestmount.pod:158
22571 msgid "Display help on special FUSE options (see I<-o> below)."
22572 msgstr ""
22573
22574 #. type: textblock
22575 #: ../fuse/guestmount.pod:162
22576 msgid "Display brief help and exit."
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../fuse/guestmount.pod:186
22581 msgid ""
22582 "Mount the named partition or logical volume on the given mountpoint B<in the "
22583 "guest> (this has nothing to do with mountpoints in the host)."
22584 msgstr ""
22585
22586 #. type: textblock
22587 #: ../fuse/guestmount.pod:189
22588 msgid ""
22589 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22590 "something on C</>."
22591 msgstr ""
22592
22593 #. type: textblock
22594 #: ../fuse/guestmount.pod:206
22595 msgid ""
22596 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22597 "unmounted.  If you specify this option, then we don't attempt to sync the "
22598 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22599 msgstr ""
22600
22601 #. type: =item
22602 #: ../fuse/guestmount.pod:211
22603 msgid "B<-o option>"
22604 msgstr ""
22605
22606 #. type: =item
22607 #: ../fuse/guestmount.pod:213
22608 msgid "B<--option option>"
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../fuse/guestmount.pod:215
22613 msgid "Pass extra options to FUSE."
22614 msgstr ""
22615
22616 #. type: textblock
22617 #: ../fuse/guestmount.pod:217
22618 msgid ""
22619 "To get a list of all the extra options supported by FUSE, use the command "
22620 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22621 "of them are a good idea."
22622 msgstr ""
22623
22624 #. type: verbatim
22625 #: ../fuse/guestmount.pod:221
22626 #, no-wrap
22627 msgid ""
22628 " guestmount --fuse-help\n"
22629 "\n"
22630 msgstr ""
22631
22632 #. type: textblock
22633 #: ../fuse/guestmount.pod:223
22634 msgid "Some potentially useful FUSE options:"
22635 msgstr ""
22636
22637 #. type: =item
22638 #: ../fuse/guestmount.pod:227
22639 msgid "B<-o allow_other>"
22640 msgstr ""
22641
22642 #. type: textblock
22643 #: ../fuse/guestmount.pod:229
22644 msgid "Allow other users to see the filesystem."
22645 msgstr ""
22646
22647 #. type: =item
22648 #: ../fuse/guestmount.pod:231
22649 msgid "B<-o attr_timeout=N>"
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../fuse/guestmount.pod:233
22654 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22655 msgstr ""
22656
22657 #. type: =item
22658 #: ../fuse/guestmount.pod:235
22659 msgid "B<-o kernel_cache>"
22660 msgstr ""
22661
22662 #. type: textblock
22663 #: ../fuse/guestmount.pod:237
22664 msgid ""
22665 "Allow the kernel to cache files (reduces the number of reads that have to go "
22666 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22667 "afford the extra memory usage."
22668 msgstr ""
22669
22670 #. type: =item
22671 #: ../fuse/guestmount.pod:241
22672 msgid "B<-o uid=N> B<-o gid=N>"
22673 msgstr ""
22674
22675 #. type: textblock
22676 #: ../fuse/guestmount.pod:243
22677 msgid ""
22678 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22679 "the chosen values."
22680 msgstr ""
22681
22682 #. type: textblock
22683 #: ../fuse/guestmount.pod:252
22684 msgid ""
22685 "Add devices and mount everything read-only.  Also disallow writes and make "
22686 "the disk appear read-only to FUSE."
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../fuse/guestmount.pod:255
22691 msgid ""
22692 "This is highly recommended if you are not going to edit the guest disk.  If "
22693 "the guest is running and this option is I<not> supplied, then there is a "
22694 "strong risk of disk corruption in the guest.  We try to prevent this from "
22695 "happening, but it is not always possible."
22696 msgstr ""
22697
22698 #. type: textblock
22699 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22700 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22701 msgstr ""
22702
22703 #. type: textblock
22704 #: ../fuse/guestmount.pod:264
22705 msgid "Enable SELinux support for the guest."
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../fuse/guestmount.pod:270
22710 msgid "Enable verbose messages from underlying libguestfs."
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../fuse/guestmount.pod:276
22715 msgid "Display the program version and exit."
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22720 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22721 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22722 msgstr ""
22723
22724 #. type: =item
22725 #: ../fuse/guestmount.pod:289
22726 msgid "B<--trace>"
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../fuse/guestmount.pod:291
22731 msgid "Trace libguestfs calls and entry into each FUSE function."
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../fuse/guestmount.pod:293
22736 msgid "This also stops the daemon from forking into the background."
22737 msgstr ""
22738
22739 #. type: textblock
22740 #: ../fuse/guestmount.pod:319
22741 msgid ""
22742 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22743 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22744 "net/>."
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../fuse/guestmount.pod:334
22749 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22750 msgstr ""
22751
22752 #. type: textblock
22753 #: ../inspector/virt-inspector.pod:5
22754 msgid ""
22755 "virt-inspector - Display operating system version and other information "
22756 "about a virtual machine"
22757 msgstr ""
22758
22759 #. type: verbatim
22760 #: ../inspector/virt-inspector.pod:9
22761 #, no-wrap
22762 msgid ""
22763 " virt-inspector [--options] -d domname\n"
22764 "\n"
22765 msgstr ""
22766
22767 #. type: verbatim
22768 #: ../inspector/virt-inspector.pod:11
22769 #, no-wrap
22770 msgid ""
22771 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22772 "\n"
22773 msgstr ""
22774
22775 #. type: verbatim
22776 #: ../inspector/virt-inspector.pod:15
22777 #, no-wrap
22778 msgid ""
22779 " virt-inspector domname\n"
22780 "\n"
22781 msgstr ""
22782
22783 #. type: verbatim
22784 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22785 #, no-wrap
22786 msgid ""
22787 " virt-inspector disk.img [disk.img ...]\n"
22788 "\n"
22789 msgstr ""
22790
22791 #. type: textblock
22792 #: ../inspector/virt-inspector.pod:21
22793 msgid ""
22794 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22795 "determine the version of the operating system and other information about "
22796 "the virtual machine."
22797 msgstr ""
22798
22799 #. type: textblock
22800 #: ../inspector/virt-inspector.pod:25
22801 msgid "Virt-inspector produces XML output for feeding into other programs."
22802 msgstr ""
22803
22804 #. type: textblock
22805 #: ../inspector/virt-inspector.pod:27
22806 msgid ""
22807 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22808 "the libvirt domain (see: C<virsh list --all>)."
22809 msgstr ""
22810
22811 #. type: textblock
22812 #: ../inspector/virt-inspector.pod:30
22813 msgid ""
22814 "You can also run virt-inspector directly on disk images from a single "
22815 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22816 "has several block devices, in which case you should list several I<-a> "
22817 "options one after another, with the first corresponding to the guest's C</"
22818 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22819 msgstr ""
22820
22821 #. type: textblock
22822 #: ../inspector/virt-inspector.pod:37
22823 msgid ""
22824 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22825 "keys and similar."
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../inspector/virt-inspector.pod:40
22830 msgid ""
22831 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22832 "inspect several virtual machines, you have to run virt-inspector several "
22833 "times (for example, from a shell script for-loop)."
22834 msgstr ""
22835
22836 #. type: textblock
22837 #: ../inspector/virt-inspector.pod:45
22838 msgid ""
22839 "Because virt-inspector needs direct access to guest images, it won't "
22840 "normally work over remote libvirt connections."
22841 msgstr ""
22842
22843 #. type: textblock
22844 #: ../inspector/virt-inspector.pod:48
22845 msgid ""
22846 "All of the information available from virt-inspector is also available "
22847 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22848 "The same information can also be fetched using guestfish or via libguestfs "
22849 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22850 "WITH OTHER PROGRAMMING LANGUAGES>)."
22851 msgstr ""
22852
22853 #. type: textblock
22854 #: ../inspector/virt-inspector.pod:81
22855 msgid ""
22856 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22857 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22858 "at all."
22859 msgstr ""
22860
22861 #. type: textblock
22862 #: ../inspector/virt-inspector.pod:94
22863 msgid ""
22864 "When prompting for keys and passphrases, virt-inspector normally turns "
22865 "echoing off so you cannot see what you are typing.  If you are not worried "
22866 "about Tempest attacks and there is no one else in the room you can specify "
22867 "this flag to see what you are typing."
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22872 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22873 #: ../tools/virt-win-reg.pl:144
22874 msgid ""
22875 "Specify the format of disk images given on the command line.  If this is "
22876 "omitted then the format is autodetected from the content of the disk image."
22877 msgstr ""
22878
22879 #. type: textblock
22880 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22881 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22882 #: ../tools/virt-win-reg.pl:148
22883 msgid ""
22884 "If disk images are requested from libvirt, then this program asks libvirt "
22885 "for this information.  In this case, the value of the format parameter is "
22886 "ignored."
22887 msgstr ""
22888
22889 #. type: textblock
22890 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
22891 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
22892 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22893 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22894 msgid ""
22895 "If working with untrusted raw-format guest disk images, you should ensure "
22896 "the format is always specified."
22897 msgstr ""
22898
22899 #. type: =item
22900 #: ../inspector/virt-inspector.pod:135
22901 msgid "B<--xpath> query"
22902 msgstr ""
22903
22904 #. type: textblock
22905 #: ../inspector/virt-inspector.pod:137
22906 msgid ""
22907 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22908 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22909 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../inspector/virt-inspector.pod:146
22914 msgid "Previous versions of virt-inspector allowed you to write either:"
22915 msgstr ""
22916
22917 #. type: verbatim
22918 #: ../inspector/virt-inspector.pod:152
22919 #, no-wrap
22920 msgid ""
22921 " virt-inspector guestname\n"
22922 "\n"
22923 msgstr ""
22924
22925 #. type: =head1
22926 #: ../inspector/virt-inspector.pod:160
22927 msgid "XML FORMAT"
22928 msgstr ""
22929
22930 #. type: textblock
22931 #: ../inspector/virt-inspector.pod:162
22932 msgid ""
22933 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22934 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22935 "just an overview."
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../inspector/virt-inspector.pod:166
22940 msgid ""
22941 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22942 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22943 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22944 "which is vanishingly rare in real world VMs."
22945 msgstr ""
22946
22947 #. type: =head2
22948 #: ../inspector/virt-inspector.pod:171
22949 msgid "E<lt>operatingsystemE<gt>"
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../inspector/virt-inspector.pod:173
22954 msgid ""
22955 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22956 "describe the operating system, its architecture, the descriptive \"product "
22957 "name\" string, the type of OS and so on, as in this example:"
22958 msgstr ""
22959
22960 #. type: verbatim
22961 #: ../inspector/virt-inspector.pod:177
22962 #, no-wrap
22963 msgid ""
22964 " <operatingsystems>\n"
22965 "   <operatingsystem>\n"
22966 "     <root>/dev/sda2</root>\n"
22967 "     <name>windows</name>\n"
22968 "     <arch>i386</arch>\n"
22969 "     <distro>windows</distro>\n"
22970 "     <product_name>Windows 7 Enterprise</product_name>\n"
22971 "     <product_variant>Client</product_variant>\n"
22972 "     <major_version>6</major_version>\n"
22973 "     <minor_version>1</minor_version>\n"
22974 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22975 "     <format>installed</format>\n"
22976 "\n"
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../inspector/virt-inspector.pod:190
22981 msgid ""
22982 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22983 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22984 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22985 "architecture.  The other fields are fairly self-explanatory, but because "
22986 "these fields are taken directly from the libguestfs inspection API you can "
22987 "find precise information from L<guestfs(3)/INSPECTION>."
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../inspector/virt-inspector.pod:198
22992 msgid ""
22993 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22994 "of view of libguestfs (block devices may have completely different names "
22995 "inside the VM itself)."
22996 msgstr ""
22997
22998 #. type: =head2
22999 #: ../inspector/virt-inspector.pod:202
23000 msgid "E<lt>mountpointsE<gt>"
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../inspector/virt-inspector.pod:204
23005 msgid ""
23006 "Un*x-like guests typically have multiple filesystems which are mounted at "
23007 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23008 "element which looks like this:"
23009 msgstr ""
23010
23011 #. type: verbatim
23012 #: ../inspector/virt-inspector.pod:208
23013 #, no-wrap
23014 msgid ""
23015 " <operatingsystems>\n"
23016 "   <operatingsystem>\n"
23017 "     ...\n"
23018 "     <mountpoints>\n"
23019 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23020 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23021 "     </mountpoints>\n"
23022 "\n"
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../inspector/virt-inspector.pod:216
23027 msgid ""
23028 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23029 "and may have completely different names inside the guest.  Only mountable "
23030 "filesystems appear in this list, not things like swap devices."
23031 msgstr ""
23032
23033 #. type: =head2
23034 #: ../inspector/virt-inspector.pod:221
23035 msgid "E<lt>filesystemsE<gt>"
23036 msgstr ""
23037
23038 #. type: textblock
23039 #: ../inspector/virt-inspector.pod:223
23040 msgid ""
23041 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23042 "filesystems belonging to the guest, including swap and empty partitions.  "
23043 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23044 "this OS or shared with this OS and other OSes)."
23045 msgstr ""
23046
23047 #. type: textblock
23048 #: ../inspector/virt-inspector.pod:229
23049 msgid "You might see something like this:"
23050 msgstr ""
23051
23052 #. type: verbatim
23053 #: ../inspector/virt-inspector.pod:231
23054 #, no-wrap
23055 msgid ""
23056 " <operatingsystems>\n"
23057 "   <operatingsystem>\n"
23058 "     ...\n"
23059 "     <filesystems>\n"
23060 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23061 "         <type>ext4</type>\n"
23062 "         <label>Fedora-13-x86_64</label>\n"
23063 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23064 "       </filesystem>\n"
23065 "\n"
23066 msgstr ""
23067
23068 #. type: textblock
23069 #: ../inspector/virt-inspector.pod:241
23070 msgid ""
23071 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23072 "the label, and the UUID."
23073 msgstr ""
23074
23075 #. type: =head2
23076 #: ../inspector/virt-inspector.pod:244
23077 msgid "E<lt>applicationsE<gt>"
23078 msgstr ""
23079
23080 #. type: textblock
23081 #: ../inspector/virt-inspector.pod:246
23082 msgid ""
23083 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23084 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23085 "machine."
23086 msgstr ""
23087
23088 #. type: textblock
23089 #: ../inspector/virt-inspector.pod:250
23090 msgid ""
23091 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
23092 "Typical values would be C<rpm> and C<deb>."
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../inspector/virt-inspector.pod:253
23097 msgid ""
23098 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
23099 "Typical values include C<yum>, C<up2date> and C<apt>"
23100 msgstr ""
23101
23102 #. type: textblock
23103 #: ../inspector/virt-inspector.pod:256
23104 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23105 msgstr ""
23106
23107 #. type: verbatim
23108 #: ../inspector/virt-inspector.pod:259
23109 #, no-wrap
23110 msgid ""
23111 " <operatingsystems>\n"
23112 "   <operatingsystem>\n"
23113 "     ...\n"
23114 "     <applications>\n"
23115 "       <application>\n"
23116 "         <name>coreutils</name>\n"
23117 "         <version>8.5</version>\n"
23118 "         <release>1</release>\n"
23119 "       </application>\n"
23120 "\n"
23121 msgstr ""
23122
23123 #. type: textblock
23124 #: ../inspector/virt-inspector.pod:269
23125 msgid ""
23126 "The version and release fields may not be available for some types guests.  "
23127 "Other fields are possible, see L<guestfs(3)/"
23128 "guestfs_inspect_list_applications>."
23129 msgstr ""
23130
23131 #. type: =head2
23132 #: ../inspector/virt-inspector.pod:273
23133 msgid "E<lt>drive_mappingsE<gt>"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../inspector/virt-inspector.pod:275
23138 msgid ""
23139 "For operating systems like Windows which use drive letters, virt-inspector "
23140 "is able to find out how drive letters map to filesystems."
23141 msgstr ""
23142
23143 #. type: verbatim
23144 #: ../inspector/virt-inspector.pod:279
23145 #, no-wrap
23146 msgid ""
23147 " <operatingsystems>\n"
23148 "   <operatingsystem>\n"
23149 "     ...\n"
23150 "     <drive_mappings>\n"
23151 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23152 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23153 "     </drive_mappings>\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../inspector/virt-inspector.pod:287
23159 msgid ""
23160 "In the example above, drive C maps to the filesystem on the second partition "
23161 "on the first disk, and drive E maps to the filesystem on the first partition "
23162 "on the second disk."
23163 msgstr ""
23164
23165 #. type: textblock
23166 #: ../inspector/virt-inspector.pod:291
23167 msgid ""
23168 "Note that this only covers permanent local filesystem mappings, not things "
23169 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23170 "here."
23171 msgstr ""
23172
23173 #. type: =head2
23174 #: ../inspector/virt-inspector.pod:295
23175 msgid "E<lt>iconE<gt>"
23176 msgstr ""
23177
23178 #. type: textblock
23179 #: ../inspector/virt-inspector.pod:297
23180 msgid ""
23181 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23182 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23183 "very large and high quality."
23184 msgstr ""
23185
23186 #. type: verbatim
23187 #: ../inspector/virt-inspector.pod:301
23188 #, no-wrap
23189 msgid ""
23190 " <operatingsystems>\n"
23191 "   <operatingsystem>\n"
23192 "     ...\n"
23193 "     <icon>\n"
23194 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23195 "       [... many lines of base64 data ...]\n"
23196 "     </icon>\n"
23197 "\n"
23198 msgstr ""
23199
23200 #. type: textblock
23201 #: ../inspector/virt-inspector.pod:309
23202 msgid ""
23203 "To display the icon, you have to extract it and convert the base64 data back "
23204 "to a binary file.  Use an XPath query or simply an editor to extract the "
23205 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23206 "to a PNG file:"
23207 msgstr ""
23208
23209 #. type: verbatim
23210 #: ../inspector/virt-inspector.pod:314
23211 #, no-wrap
23212 msgid ""
23213 " base64 -i -d < icon.data > icon.png\n"
23214 "\n"
23215 msgstr ""
23216
23217 #. type: =head2
23218 #: ../inspector/virt-inspector.pod:316
23219 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23220 msgstr ""
23221
23222 #. type: textblock
23223 #: ../inspector/virt-inspector.pod:318
23224 msgid ""
23225 "Virt-inspector can detect some operating system installers on install disks, "
23226 "live CDs, bootable USB keys and more."
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../inspector/virt-inspector.pod:321
23231 msgid ""
23232 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23233 "fields may be present to indicate a live CD, network installer, or one part "
23234 "of a multipart CD.  For example:"
23235 msgstr ""
23236
23237 #. type: verbatim
23238 #: ../inspector/virt-inspector.pod:325
23239 #, no-wrap
23240 msgid ""
23241 " <operatingsystems>\n"
23242 "   <operatingsystem>\n"
23243 "     <root>/dev/sda</root>\n"
23244 "     <name>linux</name>\n"
23245 "     <arch>i386</arch>\n"
23246 "     <distro>ubuntu</distro>\n"
23247 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23248 "     <major_version>10</major_version>\n"
23249 "     <minor_version>10</minor_version>\n"
23250 "     <format>installer</format>\n"
23251 "     <live/>\n"
23252 "\n"
23253 msgstr ""
23254
23255 #. type: =head1
23256 #: ../inspector/virt-inspector.pod:337
23257 msgid "XPATH QUERIES"
23258 msgstr ""
23259
23260 #. type: textblock
23261 #: ../inspector/virt-inspector.pod:339
23262 msgid ""
23263 "Virt-inspector includes built in support for running XPath queries.  The "
23264 "reason for including XPath support directly in virt-inspector is simply that "
23265 "there are no good and widely available command line programs that can do "
23266 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
23267 "available on Red Hat Enterprise Linux."
23268 msgstr ""
23269
23270 #. type: textblock
23271 #: ../inspector/virt-inspector.pod:346
23272 msgid ""
23273 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
23274 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23275 "result on stdout.  All other inspection features are disabled in this mode."
23276 msgstr ""
23277
23278 #. type: verbatim
23279 #: ../inspector/virt-inspector.pod:353
23280 #, no-wrap
23281 msgid ""
23282 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23283 " <filesystems>\n"
23284 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23285 "        <type>ext4</type>\n"
23286 " [...]\n"
23287 "\n"
23288 msgstr ""
23289
23290 #. type: verbatim
23291 #: ../inspector/virt-inspector.pod:359
23292 #, no-wrap
23293 msgid ""
23294 " $ virt-inspector -d Guest | \\\n"
23295 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23296 " ext4\n"
23297 "\n"
23298 msgstr ""
23299
23300 #. type: verbatim
23301 #: ../inspector/virt-inspector.pod:363
23302 #, no-wrap
23303 msgid ""
23304 " $ virt-inspector -d Guest | \\\n"
23305 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23306 " [displays the guest icon, if there is one]\n"
23307 "\n"
23308 msgstr ""
23309
23310 #. type: =head1
23311 #: ../inspector/virt-inspector.pod:374
23312 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../inspector/virt-inspector.pod:376
23317 msgid ""
23318 "Early versions of libguestfs shipped with a different virt-inspector program "
23319 "written in Perl (the current version is written in C).  The XML output of "
23320 "the Perl virt-inspector was different and it could also output in other "
23321 "formats like text."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../inspector/virt-inspector.pod:381
23326 msgid ""
23327 "The old virt-inspector is no longer supported or shipped with libguestfs."
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../inspector/virt-inspector.pod:384
23332 msgid ""
23333 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23334 "versions of virt-inspector with different names:"
23335 msgstr ""
23336
23337 #. type: verbatim
23338 #: ../inspector/virt-inspector.pod:387
23339 #, no-wrap
23340 msgid ""
23341 " virt-inspector     Old Perl version.\n"
23342 " virt-inspector2    New C version.\n"
23343 "\n"
23344 msgstr ""
23345
23346 #. type: textblock
23347 #: ../inspector/virt-inspector.pod:397
23348 msgid ""
23349 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23350 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../inspector/virt-inspector.pod:414
23355 msgid "Matthew Booth L<mbooth@redhat.com>"
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../java/examples/guestfs-java.pod:5
23360 msgid "guestfs-java - How to use libguestfs from Java"
23361 msgstr ""
23362
23363 #. type: verbatim
23364 #: ../java/examples/guestfs-java.pod:9
23365 #, no-wrap
23366 msgid ""
23367 " import com.redhat.et.libguestfs.*;\n"
23368 " \n"
23369 msgstr ""
23370
23371 #. type: verbatim
23372 #: ../java/examples/guestfs-java.pod:11
23373 #, no-wrap
23374 msgid ""
23375 " GuestFS g = new GuestFS ();\n"
23376 " g.add_drive_opts (\"disk.img\", null);\n"
23377 " g.launch ();\n"
23378 "\n"
23379 msgstr ""
23380
23381 #. type: textblock
23382 #: ../java/examples/guestfs-java.pod:17
23383 msgid ""
23384 "This manual page documents how to call libguestfs from the Java programming "
23385 "language.  This page just documents the differences from the C API and gives "
23386 "some examples.  If you are not familiar with using libguestfs, you also need "
23387 "to read L<guestfs(3)>."
23388 msgstr ""
23389
23390 #. type: =head2
23391 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23392 msgid "CLOSING THE HANDLE"
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../java/examples/guestfs-java.pod:24
23397 msgid ""
23398 "The handle is closed when it is reaped by the garbage collector.  Because "
23399 "libguestfs handles include a lot of state, it is also possible to close (and "
23400 "hence free) them explicitly by calling the C<close> method."
23401 msgstr ""
23402
23403 #. type: =head2
23404 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23405 #: ../python/examples/guestfs-python.pod:21
23406 #: ../ruby/examples/guestfs-ruby.pod:22
23407 msgid "EXCEPTIONS"
23408 msgstr ""
23409
23410 #. type: textblock
23411 #: ../java/examples/guestfs-java.pod:31
23412 msgid ""
23413 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23414 "exception.  This has a single parameter which is the error message (a "
23415 "C<String>)."
23416 msgstr ""
23417
23418 #. type: textblock
23419 #: ../java/examples/guestfs-java.pod:35
23420 msgid "Calling any method on a closed handle raises the same exception."
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../java/examples/guestfs-java.pod:47
23425 msgid ""
23426 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23427 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23428 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23429 msgstr ""
23430
23431 #. type: textblock
23432 #: ../ocaml/examples/guestfs-ocaml.pod:5
23433 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../ocaml/examples/guestfs-ocaml.pod:9
23438 msgid "Module style:"
23439 msgstr ""
23440
23441 #. type: verbatim
23442 #: ../ocaml/examples/guestfs-ocaml.pod:11
23443 #, no-wrap
23444 msgid ""
23445 " let g = Guestfs.create () in\n"
23446 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23447 " Guestfs.launch g;\n"
23448 "\n"
23449 msgstr ""
23450
23451 #. type: textblock
23452 #: ../ocaml/examples/guestfs-ocaml.pod:15
23453 msgid "Object-oriented style:"
23454 msgstr ""
23455
23456 #. type: verbatim
23457 #: ../ocaml/examples/guestfs-ocaml.pod:17
23458 #, no-wrap
23459 msgid ""
23460 " let g = new Guestfs.guestfs () in\n"
23461 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23462 " g#launch ();\n"
23463 "\n"
23464 msgstr ""
23465
23466 #. type: verbatim
23467 #: ../ocaml/examples/guestfs-ocaml.pod:21
23468 #, no-wrap
23469 msgid ""
23470 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23471 "or:\n"
23472 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23473 "\n"
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../ocaml/examples/guestfs-ocaml.pod:27
23478 msgid ""
23479 "This manual page documents how to call libguestfs from the OCaml programming "
23480 "language.  This page just documents the differences from the C API and gives "
23481 "some examples.  If you are not familiar with using libguestfs, you also need "
23482 "to read L<guestfs(3)>."
23483 msgstr ""
23484
23485 #. type: =head2
23486 #: ../ocaml/examples/guestfs-ocaml.pod:32
23487 msgid "PROGRAMMING STYLES"
23488 msgstr ""
23489
23490 #. type: textblock
23491 #: ../ocaml/examples/guestfs-ocaml.pod:34
23492 msgid ""
23493 "There are two different programming styles supported by the OCaml bindings.  "
23494 "You can use a module style, with each C function mapped to an OCaml function:"
23495 msgstr ""
23496
23497 #. type: verbatim
23498 #: ../ocaml/examples/guestfs-ocaml.pod:38
23499 #, no-wrap
23500 msgid ""
23501 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23502 "\n"
23503 msgstr ""
23504
23505 #. type: textblock
23506 #: ../ocaml/examples/guestfs-ocaml.pod:40
23507 msgid "becomes:"
23508 msgstr ""
23509
23510 #. type: verbatim
23511 #: ../ocaml/examples/guestfs-ocaml.pod:42
23512 #, no-wrap
23513 msgid ""
23514 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23515 "\n"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../ocaml/examples/guestfs-ocaml.pod:44
23520 msgid ""
23521 "Alternately you can use an object-oriented style, calling methods on the "
23522 "class C<Guestfs.guestfs>:"
23523 msgstr ""
23524
23525 #. type: verbatim
23526 #: ../ocaml/examples/guestfs-ocaml.pod:47
23527 #, no-wrap
23528 msgid ""
23529 " method set_verbose : bool -> unit\n"
23530 "\n"
23531 msgstr ""
23532
23533 #. type: textblock
23534 #: ../ocaml/examples/guestfs-ocaml.pod:49
23535 msgid ""
23536 "The object-oriented style is usually briefer, and the minor performance "
23537 "penalty isn't noticable in the general overhead of performing libguestfs "
23538 "functions."
23539 msgstr ""
23540
23541 #. type: textblock
23542 #: ../ocaml/examples/guestfs-ocaml.pod:55
23543 msgid ""
23544 "The handle is closed when it is reaped by the garbage collector.  Because "
23545 "libguestfs handles include a lot of state, it is also possible to close (and "
23546 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23547 "method."
23548 msgstr ""
23549
23550 #. type: textblock
23551 #: ../ocaml/examples/guestfs-ocaml.pod:62
23552 msgid ""
23553 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23554 "exception.  This has a single parameter which is the error message (a "
23555 "string)."
23556 msgstr ""
23557
23558 #. type: textblock
23559 #: ../ocaml/examples/guestfs-ocaml.pod:66
23560 msgid ""
23561 "Calling any function/method on a closed handle raises C<Guestfs."
23562 "Handle_closed>.  The single parameter is the name of the function that you "
23563 "called."
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../ocaml/examples/guestfs-ocaml.pod:80
23568 msgid ""
23569 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23570 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23571 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../perl/examples/guestfs-perl.pod:5
23576 msgid "guestfs-perl - How to use libguestfs from Perl"
23577 msgstr ""
23578
23579 #. type: verbatim
23580 #: ../perl/examples/guestfs-perl.pod:9
23581 #, no-wrap
23582 msgid ""
23583 " use Sys::Guestfs;\n"
23584 " \n"
23585 msgstr ""
23586
23587 #. type: verbatim
23588 #: ../perl/examples/guestfs-perl.pod:11
23589 #, no-wrap
23590 msgid ""
23591 " my $h = Sys::Guestfs->new ();\n"
23592 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23593 " $h->launch ();\n"
23594 " $h->mount_options ('', '/dev/sda1', '/');\n"
23595 " $h->touch ('/hello');\n"
23596 " $h->sync ();\n"
23597 "\n"
23598 msgstr ""
23599
23600 #. type: textblock
23601 #: ../perl/examples/guestfs-perl.pod:20
23602 msgid ""
23603 "This manual page documents how to call libguestfs from the Perl programming "
23604 "language.  This page just documents the differences from the C API and gives "
23605 "some examples.  If you are not familiar with using libguestfs, you also need "
23606 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23607 msgstr ""
23608
23609 #. type: =head2
23610 #: ../perl/examples/guestfs-perl.pod:26
23611 msgid "ERRORS"
23612 msgstr ""
23613
23614 #. type: textblock
23615 #: ../perl/examples/guestfs-perl.pod:28
23616 msgid ""
23617 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23618 ">)."
23619 msgstr ""
23620
23621 #. type: textblock
23622 #: ../perl/examples/guestfs-perl.pod:41
23623 msgid ""
23624 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23625 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23626 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../python/examples/guestfs-python.pod:5
23631 msgid "guestfs-python - How to use libguestfs from Python"
23632 msgstr ""
23633
23634 #. type: verbatim
23635 #: ../python/examples/guestfs-python.pod:9
23636 #, no-wrap
23637 msgid ""
23638 " import guestfs\n"
23639 " g = guestfs.GuestFS ()\n"
23640 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23641 " g.launch\n"
23642 "\n"
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../python/examples/guestfs-python.pod:16
23647 msgid ""
23648 "This manual page documents how to call libguestfs from the Python "
23649 "programming language.  This page just documents the differences from the C "
23650 "API and gives some examples.  If you are not familiar with using libguestfs, "
23651 "you also need to read L<guestfs(3)>."
23652 msgstr ""
23653
23654 #. type: textblock
23655 #: ../python/examples/guestfs-python.pod:23
23656 msgid ""
23657 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23658 "single string argument which is the error message."
23659 msgstr ""
23660
23661 #. type: =head2
23662 #: ../python/examples/guestfs-python.pod:26
23663 msgid "MORE DOCUMENTATION"
23664 msgstr ""
23665
23666 #. type: textblock
23667 #: ../python/examples/guestfs-python.pod:28
23668 msgid "Type:"
23669 msgstr ""
23670
23671 #. type: verbatim
23672 #: ../python/examples/guestfs-python.pod:30
23673 #, no-wrap
23674 msgid ""
23675 " $ python\n"
23676 " >>> import guestfs\n"
23677 " >>> help (guestfs)\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: textblock
23682 #: ../python/examples/guestfs-python.pod:44
23683 msgid ""
23684 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23685 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23686 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23687 msgstr ""
23688
23689 #. type: textblock
23690 #: ../rescue/virt-rescue.pod:5
23691 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23692 msgstr ""
23693
23694 #. type: verbatim
23695 #: ../rescue/virt-rescue.pod:9
23696 #, no-wrap
23697 msgid ""
23698 " virt-rescue [--options] -d domname\n"
23699 "\n"
23700 msgstr ""
23701
23702 #. type: verbatim
23703 #: ../rescue/virt-rescue.pod:11
23704 #, no-wrap
23705 msgid ""
23706 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23707 "\n"
23708 msgstr ""
23709
23710 #. type: verbatim
23711 #: ../rescue/virt-rescue.pod:13
23712 #, no-wrap
23713 msgid ""
23714 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23715 "\n"
23716 msgstr ""
23717
23718 #. type: verbatim
23719 #: ../rescue/virt-rescue.pod:17
23720 #, no-wrap
23721 msgid ""
23722 " virt-rescue [--options] domname\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: verbatim
23727 #: ../rescue/virt-rescue.pod:19
23728 #, no-wrap
23729 msgid ""
23730 " virt-rescue [--options] disk.img [disk.img ...]\n"
23731 "\n"
23732 msgstr ""
23733
23734 #. type: textblock
23735 #: ../rescue/virt-rescue.pod:23
23736 msgid ""
23737 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23738 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23739 "you from doing this, but doesn't catch all cases."
23740 msgstr ""
23741
23742 #. type: textblock
23743 #: ../rescue/virt-rescue.pod:27
23744 msgid ""
23745 "However if you use the I<--ro> (read only) option, then you can attach a "
23746 "shell to a live virtual machine.  The results might be strange or "
23747 "inconsistent at times but you won't get disk corruption."
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../rescue/virt-rescue.pod:33
23752 msgid ""
23753 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23754 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23755 "recovery tools which you can use to examine or rescue a virtual machine or "
23756 "disk image."
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../rescue/virt-rescue.pod:38
23761 msgid ""
23762 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23763 "on disk image(s):"
23764 msgstr ""
23765
23766 #. type: verbatim
23767 #: ../rescue/virt-rescue.pod:41
23768 #, no-wrap
23769 msgid ""
23770 " virt-rescue -d GuestName\n"
23771 "\n"
23772 msgstr ""
23773
23774 #. type: verbatim
23775 #: ../rescue/virt-rescue.pod:43
23776 #, no-wrap
23777 msgid ""
23778 " virt-rescue --ro -a /path/to/disk.img\n"
23779 "\n"
23780 msgstr ""
23781
23782 #. type: verbatim
23783 #: ../rescue/virt-rescue.pod:45
23784 #, no-wrap
23785 msgid ""
23786 " virt-rescue -a /dev/sdc\n"
23787 "\n"
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../rescue/virt-rescue.pod:47
23792 msgid "For live VMs you I<must> use the --ro option."
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../rescue/virt-rescue.pod:49
23797 msgid ""
23798 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23799 "in an interactive bash shell where you can use many ordinary Linux "
23800 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23801 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23802 "is an empty directory called C</sysroot> where you can mount filesystems."
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../rescue/virt-rescue.pod:56
23807 msgid ""
23808 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23809 "suggest> option (in another terminal):"
23810 msgstr ""
23811
23812 #. type: verbatim
23813 #: ../rescue/virt-rescue.pod:59
23814 #, no-wrap
23815 msgid ""
23816 " $ virt-rescue --suggest -d Fedora15\n"
23817 " Inspecting the virtual machine or disk image ...\n"
23818 " \n"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../rescue/virt-rescue.pod:62
23823 #, no-wrap
23824 msgid ""
23825 " This disk contains one or more operating systems.  You can use these\n"
23826 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23827 " filesystems.\n"
23828 " \n"
23829 msgstr ""
23830
23831 #. type: verbatim
23832 #: ../rescue/virt-rescue.pod:66
23833 #, no-wrap
23834 msgid ""
23835 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23836 " # type: linux, distro: fedora, version: 15.0\n"
23837 " # Fedora release 15 (Lovelock)\n"
23838 " \n"
23839 msgstr ""
23840
23841 #. type: verbatim
23842 #: ../rescue/virt-rescue.pod:70
23843 #, no-wrap
23844 msgid ""
23845 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23846 " mount /dev/vda1 /sysroot/boot\n"
23847 " mount --bind /dev /sysroot/dev\n"
23848 " mount --bind /dev/pts /sysroot/dev/pts\n"
23849 " mount --bind /proc /sysroot/proc\n"
23850 " mount --bind /sys /sysroot/sys\n"
23851 "\n"
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../rescue/virt-rescue.pod:77
23856 msgid ""
23857 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23858 "(with L<parted(8)>) and mount them by hand:"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../rescue/virt-rescue.pod:80
23863 #, no-wrap
23864 msgid ""
23865 " ><rescue> lvs\n"
23866 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23867 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23868 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23869 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23870 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23871 " ><rescue> ls /sysroot\n"
23872 "\n"
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../rescue/virt-rescue.pod:88
23877 msgid ""
23878 "Another command to list available filesystems is L<virt-filesystems(1)>."
23879 msgstr ""
23880
23881 #. type: textblock
23882 #: ../rescue/virt-rescue.pod:91
23883 msgid ""
23884 "To run commands in a Linux guest (for example, grub), you should chroot into "
23885 "the /sysroot directory first:"
23886 msgstr ""
23887
23888 #. type: verbatim
23889 #: ../rescue/virt-rescue.pod:94
23890 #, no-wrap
23891 msgid ""
23892 " ><rescue> chroot /sysroot\n"
23893 "\n"
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../rescue/virt-rescue.pod:98
23898 msgid ""
23899 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23900 "virtual machine.  For example you can use it on a blank file if you want to "
23901 "partition that file (although we would recommend using L<guestfish(1)> "
23902 "instead as it is more suitable for this purpose).  You can even use virt-"
23903 "rescue on things like SD cards."
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../rescue/virt-rescue.pod:104
23908 msgid ""
23909 "Virt-rescue does not require root.  You only need to run it as root if you "
23910 "need root to open the disk image."
23911 msgstr ""
23912
23913 #. type: textblock
23914 #: ../rescue/virt-rescue.pod:107
23915 msgid ""
23916 "This tool is just designed for quick interactive hacking on a virtual "
23917 "machine.  For more structured access to a virtual machine disk image, you "
23918 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23919 "make scripted changes to guests, use L<guestfish(1)>."
23920 msgstr ""
23921
23922 #. type: =item
23923 #: ../rescue/virt-rescue.pod:131
23924 msgid "B<--append kernelopts>"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../rescue/virt-rescue.pod:133
23929 msgid "Pass additional options to the rescue kernel."
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../rescue/virt-rescue.pod:163
23934 #, no-wrap
23935 msgid ""
23936 " virt-rescue --format=raw -a disk.img\n"
23937 "\n"
23938 msgstr ""
23939
23940 #. type: verbatim
23941 #: ../rescue/virt-rescue.pod:167
23942 #, no-wrap
23943 msgid ""
23944 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23945 "\n"
23946 msgstr ""
23947
23948 #. type: =item
23949 #: ../rescue/virt-rescue.pod:176
23950 msgid "B<-m MB>"
23951 msgstr ""
23952
23953 #. type: =item
23954 #: ../rescue/virt-rescue.pod:178
23955 msgid "B<--memsize MB>"
23956 msgstr ""
23957
23958 #. type: textblock
23959 #: ../rescue/virt-rescue.pod:180
23960 msgid ""
23961 "Change the amount of memory allocated to the rescue system.  The default is "
23962 "set by libguestfs and is small but adequate for running system tools.  The "
23963 "occasional program might need more memory.  The parameter is specified in "
23964 "megabytes."
23965 msgstr ""
23966
23967 #. type: =item
23968 #: ../rescue/virt-rescue.pod:185
23969 msgid "B<--network>"
23970 msgstr ""
23971
23972 #. type: textblock
23973 #: ../rescue/virt-rescue.pod:187
23974 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../rescue/virt-rescue.pod:193
23979 msgid "Open the image read-only."
23980 msgstr ""
23981
23982 #. type: textblock
23983 #: ../rescue/virt-rescue.pod:203
23984 msgid ""
23985 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23986 "SELINUX> before using this option."
23987 msgstr ""
23988
23989 #. type: =item
23990 #: ../rescue/virt-rescue.pod:206
23991 msgid "B<--smp> N"
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../rescue/virt-rescue.pod:208
23996 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23997 msgstr ""
23998
23999 #. type: =item
24000 #: ../rescue/virt-rescue.pod:210
24001 msgid "B<--suggest>"
24002 msgstr ""
24003
24004 #. type: textblock
24005 #: ../rescue/virt-rescue.pod:212
24006 msgid ""
24007 "Inspect the disk image and suggest what mount commands should be used to "
24008 "mount the disks.  You should use the I<--suggest> option in a second "
24009 "terminal, then paste the commands into another virt-rescue."
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../rescue/virt-rescue.pod:216
24014 msgid ""
24015 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24016 "another virt-rescue is running."
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../rescue/virt-rescue.pod:235
24021 msgid ""
24022 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24023 "are done read-write."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../rescue/virt-rescue.pod:248
24028 msgid "Previous versions of virt-rescue allowed you to write either:"
24029 msgstr ""
24030
24031 #. type: verbatim
24032 #: ../rescue/virt-rescue.pod:250
24033 #, no-wrap
24034 msgid ""
24035 " virt-rescue disk.img [disk.img ...]\n"
24036 "\n"
24037 msgstr ""
24038
24039 #. type: verbatim
24040 #: ../rescue/virt-rescue.pod:254
24041 #, no-wrap
24042 msgid ""
24043 " virt-rescue guestname\n"
24044 "\n"
24045 msgstr ""
24046
24047 #. type: =head1
24048 #: ../rescue/virt-rescue.pod:262
24049 msgid "NETWORK"
24050 msgstr ""
24051
24052 #. type: textblock
24053 #: ../rescue/virt-rescue.pod:264
24054 msgid ""
24055 "Adding the I<--network> option enables QEMU user networking in the rescue "
24056 "appliance.  There are some differences between user networking and ordinary "
24057 "networking:"
24058 msgstr ""
24059
24060 #. type: =item
24061 #: ../rescue/virt-rescue.pod:270
24062 msgid "ping does not work"
24063 msgstr ""
24064
24065 #. type: textblock
24066 #: ../rescue/virt-rescue.pod:272
24067 msgid ""
24068 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24069 "send the ping packets, and because virt-rescue must be able to run as non-"
24070 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
24071 "The ping command will appear to resolve addresses but will not be able to "
24072 "send or receive any packets.  This does not mean that the network is not "
24073 "working."
24074 msgstr ""
24075
24076 #. type: =item
24077 #: ../rescue/virt-rescue.pod:279
24078 msgid "cannot receive connections"
24079 msgstr ""
24080
24081 #. type: textblock
24082 #: ../rescue/virt-rescue.pod:281
24083 msgid "QEMU user networking cannot receive incoming connections."
24084 msgstr ""
24085
24086 #. type: =item
24087 #: ../rescue/virt-rescue.pod:283
24088 msgid "making TCP connections"
24089 msgstr ""
24090
24091 #. type: textblock
24092 #: ../rescue/virt-rescue.pod:285
24093 msgid ""
24094 "The virt-rescue appliance needs to be small and so does not include many "
24095 "network tools.  In particular there is no L<telnet(1)> command.  You can "
24096 "make TCP connections from the shell using the magical C</dev/tcp/"
24097 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24098 msgstr ""
24099
24100 #. type: verbatim
24101 #: ../rescue/virt-rescue.pod:290
24102 #, no-wrap
24103 msgid ""
24104 " exec 3<>/dev/tcp/redhat.com/80\n"
24105 " echo \"GET /\" >&3\n"
24106 " cat <&3\n"
24107 "\n"
24108 msgstr ""
24109
24110 #. type: textblock
24111 #: ../rescue/virt-rescue.pod:294
24112 msgid "See L<bash(1)> for more details."
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../rescue/virt-rescue.pod:300
24117 msgid ""
24118 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24119 "ENVIRONMENT VARIABLES> for the complete list."
24120 msgstr ""
24121
24122 #. type: textblock
24123 #: ../rescue/virt-rescue.pod:327
24124 msgid ""
24125 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24126 "filesystems(1)>, L<http://libguestfs.org/>."
24127 msgstr ""
24128
24129 #. type: textblock
24130 #: ../resize/virt-resize.pod:5
24131 msgid "virt-resize - Resize a virtual machine disk"
24132 msgstr ""
24133
24134 #. type: verbatim
24135 #: ../resize/virt-resize.pod:9
24136 #, no-wrap
24137 msgid ""
24138 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24139 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24140 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24141 "\n"
24142 msgstr ""
24143
24144 #. type: textblock
24145 #: ../resize/virt-resize.pod:15
24146 msgid ""
24147 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24148 "larger or smaller overall, and resizing or deleting any partitions contained "
24149 "within."
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../resize/virt-resize.pod:19
24154 msgid ""
24155 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24156 "not> be used on live virtual machines - for consistent results, shut the "
24157 "virtual machine down before resizing it."
24158 msgstr ""
24159
24160 #. type: textblock
24161 #: ../resize/virt-resize.pod:23
24162 msgid ""
24163 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24164 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24165 msgstr ""
24166
24167 #. type: =item
24168 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
24169 #: ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484
24170 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24171 msgid "1."
24172 msgstr ""
24173
24174 #. type: textblock
24175 #: ../resize/virt-resize.pod:33
24176 msgid ""
24177 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24178 "fill the extra 5GB of space."
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../resize/virt-resize.pod:36
24183 #, no-wrap
24184 msgid ""
24185 " virt-filesystems --long -h --all -a olddisk\n"
24186 " \n"
24187 msgstr ""
24188
24189 #. type: verbatim
24190 #: ../resize/virt-resize.pod:38
24191 #, no-wrap
24192 msgid ""
24193 " truncate -r olddisk newdisk\n"
24194 " truncate -s +5G newdisk\n"
24195 " \n"
24196 msgstr ""
24197
24198 #. type: verbatim
24199 #: ../resize/virt-resize.pod:41
24200 #, no-wrap
24201 msgid ""
24202 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24203 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24204 "\n"
24205 msgstr ""
24206
24207 #. type: =item
24208 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
24209 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490
24210 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24211 msgid "2."
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../resize/virt-resize.pod:46
24216 msgid ""
24217 "As above, but make the /boot partition 200MB bigger, while giving the "
24218 "remaining space to /dev/sda2:"
24219 msgstr ""
24220
24221 #. type: verbatim
24222 #: ../resize/virt-resize.pod:49
24223 #, no-wrap
24224 msgid ""
24225 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24226 "   olddisk newdisk\n"
24227 "\n"
24228 msgstr ""
24229
24230 #. type: =item
24231 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
24232 #: ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501
24233 #: ../src/guestfs.pod:1451
24234 msgid "3."
24235 msgstr ""
24236
24237 #. type: textblock
24238 #: ../resize/virt-resize.pod:54
24239 msgid ""
24240 "As in the first example, but expand a logical volume as the final step.  "
24241 "This is what you would typically use for Linux guests that use LVM:"
24242 msgstr ""
24243
24244 #. type: verbatim
24245 #: ../resize/virt-resize.pod:58
24246 #, no-wrap
24247 msgid ""
24248 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24249 "   olddisk newdisk\n"
24250 "\n"
24251 msgstr ""
24252
24253 #. type: =item
24254 #: ../resize/virt-resize.pod:61
24255 msgid "4."
24256 msgstr ""
24257
24258 #. type: textblock
24259 #: ../resize/virt-resize.pod:63
24260 msgid ""
24261 "As in the first example, but the output format will be qcow2 instead of a "
24262 "raw disk:"
24263 msgstr ""
24264
24265 #. type: verbatim
24266 #: ../resize/virt-resize.pod:66
24267 #, no-wrap
24268 msgid ""
24269 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24270 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24271 "\n"
24272 msgstr ""
24273
24274 #. type: =head1
24275 #: ../resize/virt-resize.pod:71
24276 msgid "DETAILED USAGE"
24277 msgstr ""
24278
24279 #. type: =head2
24280 #: ../resize/virt-resize.pod:73
24281 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24282 msgstr ""
24283
24284 #. type: =item
24285 #: ../resize/virt-resize.pod:77
24286 msgid "1. Shut down the virtual machine"
24287 msgstr ""
24288
24289 #. type: =item
24290 #: ../resize/virt-resize.pod:79
24291 msgid "2. Locate input disk image"
24292 msgstr ""
24293
24294 #. type: textblock
24295 #: ../resize/virt-resize.pod:81
24296 msgid ""
24297 "Locate the input disk image (ie. the file or device on the host containing "
24298 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24299 "dumpxml> like this to find the disk image name:"
24300 msgstr ""
24301
24302 #. type: verbatim
24303 #: ../resize/virt-resize.pod:85
24304 #, no-wrap
24305 msgid ""
24306 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24307 " Found 1 nodes:\n"
24308 " -- NODE --\n"
24309 " <source dev=\"/dev/vg/lv_guest\" />\n"
24310 "\n"
24311 msgstr ""
24312
24313 #. type: =item
24314 #: ../resize/virt-resize.pod:90
24315 msgid "3. Look at current sizing"
24316 msgstr ""
24317
24318 #. type: textblock
24319 #: ../resize/virt-resize.pod:92
24320 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24321 msgstr ""
24322
24323 #. type: verbatim
24324 #: ../resize/virt-resize.pod:95
24325 #, no-wrap
24326 msgid ""
24327 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24328 " Name       Type       Size  Parent\n"
24329 " /dev/sda1  partition  101M  /dev/sda\n"
24330 " /dev/sda2  partition  7.9G  /dev/sda\n"
24331 " /dev/sda   device     8.0G  -\n"
24332 "\n"
24333 msgstr ""
24334
24335 #. type: textblock
24336 #: ../resize/virt-resize.pod:101
24337 msgid ""
24338 "(This example is a virtual machine with an 8 GB disk which we would like to "
24339 "expand up to 10 GB)."
24340 msgstr ""
24341
24342 #. type: =item
24343 #: ../resize/virt-resize.pod:104
24344 msgid "4. Create output disk"
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../resize/virt-resize.pod:106
24349 msgid ""
24350 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24351 "to store the resized output disk."
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../resize/virt-resize.pod:109
24356 msgid ""
24357 "To store the resized disk image in a file, create a file of a suitable size:"
24358 msgstr ""
24359
24360 #. type: verbatim
24361 #: ../resize/virt-resize.pod:112
24362 #, no-wrap
24363 msgid ""
24364 " # rm -f outdisk\n"
24365 " # truncate -s 10G outdisk\n"
24366 "\n"
24367 msgstr ""
24368
24369 #. type: textblock
24370 #: ../resize/virt-resize.pod:115
24371 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24372 msgstr ""
24373
24374 #. type: verbatim
24375 #: ../resize/virt-resize.pod:117
24376 #, no-wrap
24377 msgid ""
24378 " # lvcreate -L 10G -n lv_name vg_name\n"
24379 "\n"
24380 msgstr ""
24381
24382 #. type: textblock
24383 #: ../resize/virt-resize.pod:119
24384 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24385 msgstr ""
24386
24387 #. type: verbatim
24388 #: ../resize/virt-resize.pod:121
24389 #, no-wrap
24390 msgid ""
24391 " # virsh pool-list\n"
24392 " # virsh vol-create-as poolname newvol 10G\n"
24393 "\n"
24394 msgstr ""
24395
24396 #. type: =item
24397 #: ../resize/virt-resize.pod:124
24398 msgid "5. Resize"
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../resize/virt-resize.pod:126
24403 msgid ""
24404 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24405 "file) and the output disk.  The output disk is the one created in the "
24406 "previous step."
24407 msgstr ""
24408
24409 #. type: verbatim
24410 #: ../resize/virt-resize.pod:130
24411 #, no-wrap
24412 msgid ""
24413 " # virt-resize indisk outdisk\n"
24414 "\n"
24415 msgstr ""
24416
24417 #. type: textblock
24418 #: ../resize/virt-resize.pod:132
24419 msgid ""
24420 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24421 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24422 "larger, then an extra, empty partition is created at the end of the disk "
24423 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24424 "error."
24425 msgstr ""
24426
24427 #. type: textblock
24428 #: ../resize/virt-resize.pod:138
24429 msgid ""
24430 "More realistically you'd want to expand existing partitions in the disk "
24431 "image by passing extra options (for the full list see the L</OPTIONS> "
24432 "section below)."
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../resize/virt-resize.pod:142
24437 msgid ""
24438 "L</--expand> is the most useful option.  It expands the named partition "
24439 "within the disk to fill any extra space:"
24440 msgstr ""
24441
24442 #. type: verbatim
24443 #: ../resize/virt-resize.pod:145
24444 #, no-wrap
24445 msgid ""
24446 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24447 "\n"
24448 msgstr ""
24449
24450 #. type: textblock
24451 #: ../resize/virt-resize.pod:147
24452 msgid ""
24453 "(In this case, an extra partition is I<not> created at the end of the disk, "
24454 "because there will be no unused space)."
24455 msgstr ""
24456
24457 #. type: textblock
24458 #: ../resize/virt-resize.pod:150
24459 msgid ""
24460 "L</--resize> is the other commonly used option.  The following would "
24461 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24462 "rest of the available space:"
24463 msgstr ""
24464
24465 #. type: verbatim
24466 #: ../resize/virt-resize.pod:154
24467 #, no-wrap
24468 msgid ""
24469 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24470 "     indisk outdisk\n"
24471 "\n"
24472 msgstr ""
24473
24474 #. type: textblock
24475 #: ../resize/virt-resize.pod:157
24476 msgid ""
24477 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24478 "if virt-resize knows how, it will resize the contents, the equivalent of "
24479 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24480 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24481 "filesystems, so you would have to online resize them after booting the guest."
24482 msgstr ""
24483
24484 #. type: textblock
24485 #: ../resize/virt-resize.pod:164
24486 msgid "Other options are covered below."
24487 msgstr ""
24488
24489 #. type: =item
24490 #: ../resize/virt-resize.pod:166
24491 msgid "6. Test"
24492 msgstr ""
24493
24494 #. type: textblock
24495 #: ../resize/virt-resize.pod:168
24496 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24497 msgstr ""
24498
24499 #. type: textblock
24500 #: ../resize/virt-resize.pod:170
24501 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24502 msgstr ""
24503
24504 #. type: verbatim
24505 #: ../resize/virt-resize.pod:172
24506 #, no-wrap
24507 msgid ""
24508 " # virsh edit guestname\n"
24509 "\n"
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../resize/virt-resize.pod:174
24514 msgid ""
24515 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24516 "html#elementsDisks>"
24517 msgstr ""
24518
24519 #. type: textblock
24520 #: ../resize/virt-resize.pod:177
24521 msgid "Then start up the domain with the new, resized disk:"
24522 msgstr ""
24523
24524 #. type: verbatim
24525 #: ../resize/virt-resize.pod:179
24526 #, no-wrap
24527 msgid ""
24528 " # virsh start guestname\n"
24529 "\n"
24530 msgstr ""
24531
24532 #. type: textblock
24533 #: ../resize/virt-resize.pod:181
24534 msgid ""
24535 "and check that it still works.  See also the L</NOTES> section below for "
24536 "additional information."
24537 msgstr ""
24538
24539 #. type: =item
24540 #: ../resize/virt-resize.pod:184
24541 msgid "7. Resize LVs etc inside the guest"
24542 msgstr ""
24543
24544 #. type: textblock
24545 #: ../resize/virt-resize.pod:186
24546 msgid "(This can also be done offline using L<guestfish(1)>)"
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../resize/virt-resize.pod:188
24551 msgid ""
24552 "Once the guest has booted you should see the new space available, at least "
24553 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24554 "may need to resize LVs inside PVs, and also resize filesystem types that "
24555 "virt-resize does not know how to expand."
24556 msgstr ""
24557
24558 #. type: =head2
24559 #: ../resize/virt-resize.pod:195
24560 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24561 msgstr ""
24562
24563 #. type: textblock
24564 #: ../resize/virt-resize.pod:197
24565 msgid ""
24566 "Shrinking is somewhat more complex than expanding, and only an overview is "
24567 "given here."
24568 msgstr ""
24569
24570 #. type: textblock
24571 #: ../resize/virt-resize.pod:200
24572 msgid ""
24573 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24574 "filesystems).  The user has to shrink content before passing the disk image "
24575 "to virt-resize, and virt-resize will check that the content has been shrunk "
24576 "properly."
24577 msgstr ""
24578
24579 #. type: textblock
24580 #: ../resize/virt-resize.pod:205
24581 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../resize/virt-resize.pod:207
24586 msgid ""
24587 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24588 "steps 3 and 4 above to allocate a new disk image."
24589 msgstr ""
24590
24591 #. type: textblock
24592 #: ../resize/virt-resize.pod:210
24593 msgid ""
24594 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24595 msgstr ""
24596
24597 #. type: =head2
24598 #: ../resize/virt-resize.pod:213
24599 msgid "IGNORING OR DELETING PARTITIONS"
24600 msgstr ""
24601
24602 #. type: textblock
24603 #: ../resize/virt-resize.pod:215
24604 msgid ""
24605 "virt-resize also gives a convenient way to ignore or delete partitions when "
24606 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24607 "up the copy where you don't care about the existing contents of a "
24608 "partition.  Deleting a partition removes it completely, but note that it "
24609 "also renumbers any partitions after the one which is deleted, which can "
24610 "leave some guests unbootable."
24611 msgstr ""
24612
24613 #. type: =head2
24614 #: ../resize/virt-resize.pod:222
24615 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24616 msgstr ""
24617
24618 #. type: textblock
24619 #: ../resize/virt-resize.pod:224
24620 msgid ""
24621 "If the input disk is in qcow2 format, then you may prefer that the output is "
24622 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24623 "the fly.  The output format is simply determined by the format of the empty "
24624 "output container that you provide.  Thus to create qcow2 output, use:"
24625 msgstr ""
24626
24627 #. type: verbatim
24628 #: ../resize/virt-resize.pod:230
24629 #, no-wrap
24630 msgid ""
24631 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24632 "\n"
24633 msgstr ""
24634
24635 #. type: textblock
24636 #: ../resize/virt-resize.pod:232
24637 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24638 msgstr ""
24639
24640 #. type: textblock
24641 #: ../resize/virt-resize.pod:234
24642 msgid "Similarly, to get non-sparse raw output use:"
24643 msgstr ""
24644
24645 #. type: verbatim
24646 #: ../resize/virt-resize.pod:236
24647 #, no-wrap
24648 msgid ""
24649 " fallocate -l size outdisk\n"
24650 "\n"
24651 msgstr ""
24652
24653 #. type: textblock
24654 #: ../resize/virt-resize.pod:238
24655 msgid ""
24656 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24657 "dev/zero of=outdisk bs=1M count=..>)"
24658 msgstr ""
24659
24660 #. type: =head2
24661 #: ../resize/virt-resize.pod:241
24662 msgid "LOGICAL PARTITIONS"
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../resize/virt-resize.pod:243
24667 msgid ""
24668 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24669 "tables) cannot be resized."
24670 msgstr ""
24671
24672 #. type: textblock
24673 #: ../resize/virt-resize.pod:246
24674 msgid ""
24675 "To understand what is going on, firstly one of the four partitions C</dev/"
24676 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24677 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24678 "type."
24679 msgstr ""
24680
24681 #. type: textblock
24682 #: ../resize/virt-resize.pod:251
24683 msgid "Logical partitions live inside the extended partition."
24684 msgstr ""
24685
24686 #. type: textblock
24687 #: ../resize/virt-resize.pod:253
24688 msgid ""
24689 "The extended partition can be expanded, but not shrunk (unless you force it, "
24690 "which is not advisable).  When the extended partition is copied across, all "
24691 "the logical partitions contained inside are copied over implicitly.  Virt-"
24692 "resize does not look inside the extended partition, so it copies the logical "
24693 "partitions blindly."
24694 msgstr ""
24695
24696 #. type: textblock
24697 #: ../resize/virt-resize.pod:259
24698 msgid ""
24699 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24700 "line.  Doing so will give an error."
24701 msgstr ""
24702
24703 #. type: textblock
24704 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24705 msgid "Display help."
24706 msgstr ""
24707
24708 #. type: =item
24709 #: ../resize/virt-resize.pod:270
24710 msgid "B<--align-first auto>"
24711 msgstr ""
24712
24713 #. type: =item
24714 #: ../resize/virt-resize.pod:272
24715 msgid "B<--align-first never>"
24716 msgstr ""
24717
24718 #. type: =item
24719 #: ../resize/virt-resize.pod:274
24720 msgid "B<--align-first always>"
24721 msgstr ""
24722
24723 #. type: textblock
24724 #: ../resize/virt-resize.pod:276
24725 msgid ""
24726 "Align the first partition for improved performance (see also the I<--"
24727 "alignment> option)."
24728 msgstr ""
24729
24730 #. type: textblock
24731 #: ../resize/virt-resize.pod:279
24732 msgid ""
24733 "The default is I<--align-first auto> which only aligns the first partition "
24734 "if it is safe to do so.  That is, only when we know how to fix the "
24735 "bootloader automatically, and at the moment that can only be done for "
24736 "Windows guests."
24737 msgstr ""
24738
24739 #. type: textblock
24740 #: ../resize/virt-resize.pod:284
24741 msgid ""
24742 "I<--align-first never> means we never move the first partition.  This is the "
24743 "safest option.  Try this if the guest does not boot after resizing."
24744 msgstr ""
24745
24746 #. type: textblock
24747 #: ../resize/virt-resize.pod:288
24748 msgid ""
24749 "I<--align-first always> means we always align the first partition (if it "
24750 "needs to be aligned).  For some guests this will break the bootloader, "
24751 "making the guest unbootable."
24752 msgstr ""
24753
24754 #. type: =item
24755 #: ../resize/virt-resize.pod:292
24756 msgid "B<--alignment N>"
24757 msgstr ""
24758
24759 #. type: textblock
24760 #: ../resize/virt-resize.pod:294
24761 msgid ""
24762 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24763 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24764 msgstr ""
24765
24766 #. type: textblock
24767 #: ../resize/virt-resize.pod:298
24768 msgid ""
24769 "Assuming 512 byte sector size inside the guest, here are some suitable "
24770 "values for this:"
24771 msgstr ""
24772
24773 #. type: =item
24774 #: ../resize/virt-resize.pod:303
24775 msgid "I<--alignment 1> (512 bytes)"
24776 msgstr ""
24777
24778 #. type: textblock
24779 #: ../resize/virt-resize.pod:305
24780 msgid ""
24781 "The partitions would be packed together as closely as possible, but would be "
24782 "completely unaligned.  In some cases this can cause very poor performance.  "
24783 "See L<virt-alignment-scan(1)> for further details."
24784 msgstr ""
24785
24786 #. type: =item
24787 #: ../resize/virt-resize.pod:309
24788 msgid "I<--alignment 8> (4K)"
24789 msgstr ""
24790
24791 #. type: textblock
24792 #: ../resize/virt-resize.pod:311
24793 msgid ""
24794 "This would be the minimum acceptable alignment for reasonable performance on "
24795 "modern hosts."
24796 msgstr ""
24797
24798 #. type: =item
24799 #: ../resize/virt-resize.pod:314
24800 msgid "I<--alignment 128> (64K)"
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../resize/virt-resize.pod:316
24805 msgid ""
24806 "This alignment provides good performance when the host is using high end "
24807 "network storage."
24808 msgstr ""
24809
24810 #. type: =item
24811 #: ../resize/virt-resize.pod:319
24812 msgid "I<--alignment 2048> (1M)"
24813 msgstr ""
24814
24815 #. type: textblock
24816 #: ../resize/virt-resize.pod:321
24817 msgid ""
24818 "This is the standard alignment used by all newly installed guests since "
24819 "around 2008."
24820 msgstr ""
24821
24822 #. type: =item
24823 #: ../resize/virt-resize.pod:326
24824 msgid "B<-d>"
24825 msgstr ""
24826
24827 #. type: =item
24828 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24829 #: ../tools/virt-win-reg.pl:120
24830 msgid "B<--debug>"
24831 msgstr ""
24832
24833 #. type: textblock
24834 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24835 msgid "Enable debugging messages."
24836 msgstr ""
24837
24838 #. type: =item
24839 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
24840 msgid "B<--debug-gc>"
24841 msgstr ""
24842
24843 #. type: textblock
24844 #: ../resize/virt-resize.pod:334
24845 msgid ""
24846 "Debug garbage collection and memory allocation.  This is only useful when "
24847 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
24848 msgstr ""
24849
24850 #. type: =item
24851 #: ../resize/virt-resize.pod:338
24852 msgid "B<--delete part>"
24853 msgstr ""
24854
24855 #. type: textblock
24856 #: ../resize/virt-resize.pod:340
24857 msgid ""
24858 "Delete the named partition.  It would be more accurate to describe this as "
24859 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24860 "the original disk image is left intact."
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../resize/virt-resize.pod:344
24865 msgid ""
24866 "Note that when you delete a partition, then anything contained in the "
24867 "partition is also deleted.  Furthermore, this causes any partitions that "
24868 "come after to be I<renumbered>, which can easily make your guest unbootable."
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
24873 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
24874 msgid "You can give this option multiple times."
24875 msgstr ""
24876
24877 #. type: =item
24878 #: ../resize/virt-resize.pod:351
24879 msgid "B<--expand part>"
24880 msgstr ""
24881
24882 #. type: textblock
24883 #: ../resize/virt-resize.pod:353
24884 msgid ""
24885 "Expand the named partition so it uses up all extra space (space left over "
24886 "after any other resize changes that you request have been done)."
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../resize/virt-resize.pod:356
24891 msgid ""
24892 "If virt-resize knows how, it will expand the direct content of the "
24893 "partition.  For example, if the partition is an LVM PV, it will expand the "
24894 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24895 "content it doesn't know about alone."
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../resize/virt-resize.pod:361
24900 msgid "Currently virt-resize can resize:"
24901 msgstr ""
24902
24903 #. type: textblock
24904 #: ../resize/virt-resize.pod:367
24905 msgid "ext2, ext3 and ext4 filesystems."
24906 msgstr ""
24907
24908 #. type: textblock
24909 #: ../resize/virt-resize.pod:371
24910 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24911 msgstr ""
24912
24913 #. type: textblock
24914 #: ../resize/virt-resize.pod:373
24915 msgid ""
24916 "The filesystem must have been shut down consistently last time it was used.  "
24917 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24918 "consistency check, so at the first boot after resizing Windows will check "
24919 "the disk."
24920 msgstr ""
24921
24922 #. type: textblock
24923 #: ../resize/virt-resize.pod:380
24924 msgid ""
24925 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24926 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24927 "resize LVs as desired after boot."
24928 msgstr ""
24929
24930 #. type: textblock
24931 #: ../resize/virt-resize.pod:386
24932 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24933 msgstr ""
24934
24935 #. type: textblock
24936 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
24937 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24938 msgstr ""
24939
24940 #. type: =item
24941 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
24942 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24943 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24944 msgid "B<--format> raw"
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
24949 msgid ""
24950 "Specify the format of the input disk image.  If this flag is not given then "
24951 "it is auto-detected from the image itself."
24952 msgstr ""
24953
24954 #. type: textblock
24955 #: ../resize/virt-resize.pod:400
24956 msgid ""
24957 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24958 "AND NON-SPARSE RAW FORMATS>."
24959 msgstr ""
24960
24961 #. type: =item
24962 #: ../resize/virt-resize.pod:403
24963 msgid "B<--ignore part>"
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../resize/virt-resize.pod:405
24968 msgid ""
24969 "Ignore the named partition.  Effectively this means the partition is "
24970 "allocated on the destination disk, but the content is not copied across from "
24971 "the source disk.  The content of the partition will be blank (all zero "
24972 "bytes)."
24973 msgstr ""
24974
24975 #. type: =item
24976 #: ../resize/virt-resize.pod:412
24977 msgid "B<--LV-expand logvol>"
24978 msgstr ""
24979
24980 #. type: textblock
24981 #: ../resize/virt-resize.pod:414
24982 msgid ""
24983 "This takes the logical volume and, as a final step, expands it to fill all "
24984 "the space available in its volume group.  A typical usage, assuming a Linux "
24985 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24986 "lv_root> would be:"
24987 msgstr ""
24988
24989 #. type: verbatim
24990 #: ../resize/virt-resize.pod:419
24991 #, no-wrap
24992 msgid ""
24993 " virt-resize indisk outdisk \\\n"
24994 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24995 "\n"
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../resize/virt-resize.pod:422
25000 msgid ""
25001 "This would first expand the partition (and PV), and then expand the root "
25002 "device to fill the extra space in the PV."
25003 msgstr ""
25004
25005 #. type: textblock
25006 #: ../resize/virt-resize.pod:425
25007 msgid ""
25008 "The contents of the LV are also resized if virt-resize knows how to do "
25009 "that.  You can stop virt-resize from trying to expand the content by using "
25010 "the option I<--no-expand-content>."
25011 msgstr ""
25012
25013 #. type: textblock
25014 #: ../resize/virt-resize.pod:429
25015 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25016 msgstr ""
25017
25018 #. type: textblock
25019 #: ../resize/virt-resize.pod:431
25020 msgid ""
25021 "You can give this option multiple times, I<but> it doesn't make sense to do "
25022 "this unless the logical volumes you specify are all in different volume "
25023 "groups."
25024 msgstr ""
25025
25026 #. type: =item
25027 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25028 msgid "B<--machine-readable>"
25029 msgstr ""
25030
25031 #. type: textblock
25032 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
25033 msgid ""
25034 "This option is used to make the output more machine friendly when being "
25035 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25036 msgstr ""
25037
25038 #. type: =item
25039 #: ../resize/virt-resize.pod:443
25040 msgid "B<--dryrun>"
25041 msgstr ""
25042
25043 #. type: textblock
25044 #: ../resize/virt-resize.pod:445
25045 msgid "Print a summary of what would be done, but don't do anything."
25046 msgstr ""
25047
25048 #. type: =item
25049 #: ../resize/virt-resize.pod:447
25050 msgid "B<--no-copy-boot-loader>"
25051 msgstr ""
25052
25053 #. type: textblock
25054 #: ../resize/virt-resize.pod:449
25055 msgid ""
25056 "By default, virt-resize copies over some sectors at the start of the disk "
25057 "(up to the beginning of the first partition).  Commonly these sectors "
25058 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25059 "in order for the guest to boot correctly."
25060 msgstr ""
25061
25062 #. type: textblock
25063 #: ../resize/virt-resize.pod:454
25064 msgid ""
25065 "If you specify this flag, then this initial copy is not done.  You may need "
25066 "to reinstall the boot loader in this case."
25067 msgstr ""
25068
25069 #. type: =item
25070 #: ../resize/virt-resize.pod:457
25071 msgid "B<--no-extra-partition>"
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../resize/virt-resize.pod:459
25076 msgid ""
25077 "By default, virt-resize creates an extra partition if there is any extra, "
25078 "unused space after all resizing has happened.  Use this option to prevent "
25079 "the extra partition from being created.  If you do this then the extra space "
25080 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25081 "tool in the guest."
25082 msgstr ""
25083
25084 #. type: textblock
25085 #: ../resize/virt-resize.pod:465
25086 msgid ""
25087 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25088 "will be created."
25089 msgstr ""
25090
25091 #. type: =item
25092 #: ../resize/virt-resize.pod:468
25093 msgid "B<--no-expand-content>"
25094 msgstr ""
25095
25096 #. type: textblock
25097 #: ../resize/virt-resize.pod:470
25098 msgid ""
25099 "By default, virt-resize will try to expand the direct contents of "
25100 "partitions, if it knows how (see I<--expand> option above)."
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../resize/virt-resize.pod:473
25105 msgid ""
25106 "If you give the I<--no-expand-content> option then virt-resize will not "
25107 "attempt this."
25108 msgstr ""
25109
25110 #. type: =item
25111 #: ../resize/virt-resize.pod:476
25112 msgid "B<--ntfsresize-force>"
25113 msgstr ""
25114
25115 #. type: textblock
25116 #: ../resize/virt-resize.pod:478
25117 msgid ""
25118 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25119 "the NTFS disk is marked as needing a consistency check.  You have to use "
25120 "this option if you want to resize a Windows guest multiple times without "
25121 "booting into Windows between each resize."
25122 msgstr ""
25123
25124 #. type: =item
25125 #: ../resize/virt-resize.pod:484
25126 msgid "B<--output-format> raw"
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../resize/virt-resize.pod:486
25131 msgid ""
25132 "Specify the format of the output disk image.  If this flag is not given then "
25133 "it is auto-detected from the image itself."
25134 msgstr ""
25135
25136 #. type: textblock
25137 #: ../resize/virt-resize.pod:492
25138 msgid ""
25139 "Note that this option I<does not create> the output format.  This option "
25140 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25141 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25142 "SPARSE RAW FORMATS>."
25143 msgstr ""
25144
25145 #. type: textblock
25146 #: ../resize/virt-resize.pod:501
25147 msgid "Don't print the summary."
25148 msgstr ""
25149
25150 #. type: =item
25151 #: ../resize/virt-resize.pod:503
25152 msgid "B<--resize part=size>"
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../resize/virt-resize.pod:505
25157 msgid ""
25158 "Resize the named partition (expanding or shrinking it) so that it has the "
25159 "given size."
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../resize/virt-resize.pod:508
25164 msgid ""
25165 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25166 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25167 "size; or as a relative number or percentage.  For example:"
25168 msgstr ""
25169
25170 #. type: verbatim
25171 #: ../resize/virt-resize.pod:514
25172 #, no-wrap
25173 msgid ""
25174 " --resize /dev/sda2=10G\n"
25175 "\n"
25176 msgstr ""
25177
25178 #. type: verbatim
25179 #: ../resize/virt-resize.pod:516
25180 #, no-wrap
25181 msgid ""
25182 " --resize /dev/sda4=90%\n"
25183 "\n"
25184 msgstr ""
25185
25186 #. type: verbatim
25187 #: ../resize/virt-resize.pod:518
25188 #, no-wrap
25189 msgid ""
25190 " --resize /dev/sda2=+1G\n"
25191 "\n"
25192 msgstr ""
25193
25194 #. type: verbatim
25195 #: ../resize/virt-resize.pod:520
25196 #, no-wrap
25197 msgid ""
25198 " --resize /dev/sda2=-200M\n"
25199 "\n"
25200 msgstr ""
25201
25202 #. type: verbatim
25203 #: ../resize/virt-resize.pod:522
25204 #, no-wrap
25205 msgid ""
25206 " --resize /dev/sda1=+128K\n"
25207 "\n"
25208 msgstr ""
25209
25210 #. type: verbatim
25211 #: ../resize/virt-resize.pod:524
25212 #, no-wrap
25213 msgid ""
25214 " --resize /dev/sda1=+10%\n"
25215 "\n"
25216 msgstr ""
25217
25218 #. type: verbatim
25219 #: ../resize/virt-resize.pod:526
25220 #, no-wrap
25221 msgid ""
25222 " --resize /dev/sda1=-10%\n"
25223 "\n"
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../resize/virt-resize.pod:528
25228 msgid ""
25229 "You can increase the size of any partition.  Virt-resize will expand the "
25230 "direct content of the partition if it knows how (see I<--expand> below)."
25231 msgstr ""
25232
25233 #. type: textblock
25234 #: ../resize/virt-resize.pod:532
25235 msgid ""
25236 "You can only I<decrease> the size of partitions that contain filesystems or "
25237 "PVs which have already been shrunk.  Virt-resize will check this has been "
25238 "done before proceeding, or else will print an error (see also I<--resize-"
25239 "force>)."
25240 msgstr ""
25241
25242 #. type: =item
25243 #: ../resize/virt-resize.pod:539
25244 msgid "B<--resize-force part=size>"
25245 msgstr ""
25246
25247 #. type: textblock
25248 #: ../resize/virt-resize.pod:541
25249 msgid ""
25250 "This is the same as I<--resize> except that it will let you decrease the "
25251 "size of any partition.  Generally this means you will lose any data which "
25252 "was at the end of the partition you shrink, but you may not care about that "
25253 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25254 "as a swap partition)."
25255 msgstr ""
25256
25257 #. type: textblock
25258 #: ../resize/virt-resize.pod:547
25259 msgid "See also the I<--ignore> option."
25260 msgstr ""
25261
25262 #. type: =item
25263 #: ../resize/virt-resize.pod:549
25264 msgid "B<--shrink part>"
25265 msgstr ""
25266
25267 #. type: textblock
25268 #: ../resize/virt-resize.pod:551
25269 msgid ""
25270 "Shrink the named partition until the overall disk image fits in the "
25271 "destination.  The named partition B<must> contain a filesystem or PV which "
25272 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25273 "online tools).  Virt-resize will check this and give an error if it has not "
25274 "been done."
25275 msgstr ""
25276
25277 #. type: textblock
25278 #: ../resize/virt-resize.pod:557
25279 msgid ""
25280 "The amount by which the overall disk must be shrunk (after carrying out all "
25281 "other operations requested by the user) is called the \"deficit\".  For "
25282 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25283 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25284 "would give an error unless the user specified a partition to shrink and that "
25285 "partition had more than a gigabyte of free space."
25286 msgstr ""
25287
25288 #. type: =head1
25289 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
25290 msgid "MACHINE READABLE OUTPUT"
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../resize/virt-resize.pod:577
25295 msgid ""
25296 "The I<--machine-readable> option can be used to make the output more machine "
25297 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25298 "etc."
25299 msgstr ""
25300
25301 #. type: textblock
25302 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
25303 msgid "There are two ways to use this option."
25304 msgstr ""
25305
25306 #. type: textblock
25307 #: ../resize/virt-resize.pod:583
25308 msgid ""
25309 "Firstly use the option on its own to query the capabilities of the virt-"
25310 "resize binary.  Typical output looks like this:"
25311 msgstr ""
25312
25313 #. type: verbatim
25314 #: ../resize/virt-resize.pod:586
25315 #, no-wrap
25316 msgid ""
25317 " $ virt-resize --machine-readable\n"
25318 " virt-resize\n"
25319 " ntfsresize-force\n"
25320 " 32bitok\n"
25321 " ntfs\n"
25322 " btrfs\n"
25323 "\n"
25324 msgstr ""
25325
25326 #. type: textblock
25327 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
25328 msgid ""
25329 "A list of features is printed, one per line, and the program exits with "
25330 "status 0."
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
25335 msgid ""
25336 "Secondly use the option in conjunction with other options to make the "
25337 "regular program output more machine friendly."
25338 msgstr ""
25339
25340 #. type: textblock
25341 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
25342 msgid "At the moment this means:"
25343 msgstr ""
25344
25345 #. type: textblock
25346 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
25347 msgid ""
25348 "Progress bar messages can be parsed from stdout by looking for this regular "
25349 "expression:"
25350 msgstr ""
25351
25352 #. type: verbatim
25353 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
25354 #, no-wrap
25355 msgid ""
25356 " ^[0-9]+/[0-9]+$\n"
25357 "\n"
25358 msgstr ""
25359
25360 #. type: textblock
25361 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
25362 msgid ""
25363 "The calling program should treat messages sent to stdout (except for "
25364 "progress bar messages) as status messages.  They can be logged and/or "
25365 "displayed to the user."
25366 msgstr ""
25367
25368 #. type: textblock
25369 #: ../resize/virt-resize.pod:618
25370 msgid ""
25371 "The calling program should treat messages sent to stderr as error messages.  "
25372 "In addition, virt-resize exits with a non-zero status code if there was a "
25373 "fatal error."
25374 msgstr ""
25375
25376 #. type: textblock
25377 #: ../resize/virt-resize.pod:624
25378 msgid ""
25379 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25380 "readable> option and will return an error."
25381 msgstr ""
25382
25383 #. type: =head2
25384 #: ../resize/virt-resize.pod:629
25385 msgid "\"Partition 1 does not end on cylinder boundary.\""
25386 msgstr ""
25387
25388 #. type: textblock
25389 #: ../resize/virt-resize.pod:631
25390 msgid ""
25391 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25392 "alignment> parameter).  Usually this means the partitions will not be "
25393 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25394 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25395 "drives.  Alignment of partitions to cylinders is not required by any modern "
25396 "operating system."
25397 msgstr ""
25398
25399 #. type: =head2
25400 #: ../resize/virt-resize.pod:638
25401 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25402 msgstr ""
25403
25404 #. type: textblock
25405 #: ../resize/virt-resize.pod:640
25406 msgid ""
25407 "In Windows Vista and later versions, Microsoft switched to using a separate "
25408 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25409 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25410 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25411 "the second partition (ie. C: drive)  should work."
25412 msgstr ""
25413
25414 #. type: textblock
25415 #: ../resize/virt-resize.pod:647
25416 msgid ""
25417 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25418 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25419 "it find errors) is nothing to worry about."
25420 msgstr ""
25421
25422 #. type: =head2
25423 #: ../resize/virt-resize.pod:651
25424 msgid "GUEST BOOT STUCK AT \"GRUB\""
25425 msgstr ""
25426
25427 #. type: textblock
25428 #: ../resize/virt-resize.pod:653
25429 msgid ""
25430 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25431 "printing C<GRUB> on the console, try reinstalling grub."
25432 msgstr ""
25433
25434 #. type: verbatim
25435 #: ../resize/virt-resize.pod:656
25436 #, no-wrap
25437 msgid ""
25438 " guestfish -i -a newdisk\n"
25439 " ><fs> cat /boot/grub/device.map\n"
25440 " # check the contents of this file are sensible or\n"
25441 " # edit the file if necessary\n"
25442 " ><fs> grub-install / /dev/vda\n"
25443 " ><fs> exit\n"
25444 "\n"
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../resize/virt-resize.pod:663
25449 msgid ""
25450 "For more flexible guest reconfiguration, including if you need to specify "
25451 "other parameters to grub-install, use L<virt-rescue(1)>."
25452 msgstr ""
25453
25454 #. type: =head1
25455 #: ../resize/virt-resize.pod:666
25456 msgid "ALTERNATIVE TOOLS"
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../resize/virt-resize.pod:668
25461 msgid ""
25462 "There are several proprietary tools for resizing partitions.  We won't "
25463 "mention any here."
25464 msgstr ""
25465
25466 #. type: textblock
25467 #: ../resize/virt-resize.pod:671
25468 msgid ""
25469 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25470 "operations on disk images.  They can resize and move partitions, but I don't "
25471 "think they can do anything with the contents, and they certainly don't "
25472 "understand LVM."
25473 msgstr ""
25474
25475 #. type: textblock
25476 #: ../resize/virt-resize.pod:676
25477 msgid ""
25478 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25479 "but at a much lower level.  You will probably end up hand-calculating sector "
25480 "offsets, which is something that virt-resize was designed to avoid.  If you "
25481 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25482 "I<--debug> flag."
25483 msgstr ""
25484
25485 #. type: textblock
25486 #: ../resize/virt-resize.pod:696
25487 msgid ""
25488 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25489 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25490 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25491 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25492 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../ruby/examples/guestfs-ruby.pod:5
25497 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25498 msgstr ""
25499
25500 #. type: verbatim
25501 #: ../ruby/examples/guestfs-ruby.pod:9
25502 #, no-wrap
25503 msgid ""
25504 " require 'guestfs'\n"
25505 " g = Guestfs::Guestfs.new()\n"
25506 " g.add_drive_opts(\"disk.img\",\n"
25507 "                  :readonly => 1, :format => \"raw\")\n"
25508 " g.launch()\n"
25509 "\n"
25510 msgstr ""
25511
25512 #. type: textblock
25513 #: ../ruby/examples/guestfs-ruby.pod:17
25514 msgid ""
25515 "This manual page documents how to call libguestfs from the Ruby programming "
25516 "language.  This page just documents the differences from the C API and gives "
25517 "some examples.  If you are not familiar with using libguestfs, you also need "
25518 "to read L<guestfs(3)>."
25519 msgstr ""
25520
25521 #. type: textblock
25522 #: ../ruby/examples/guestfs-ruby.pod:24
25523 msgid ""
25524 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25525 "This has a single parameter which is the error message (a string)."
25526 msgstr ""
25527
25528 #. type: textblock
25529 #: ../ruby/examples/guestfs-ruby.pod:38
25530 msgid ""
25531 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25532 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25533 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25534 msgstr ""
25535
25536 #. type: textblock
25537 #: ../sparsify/virt-sparsify.pod:5
25538 msgid "virt-sparsify - Make a virtual machine disk sparse"
25539 msgstr ""
25540
25541 #. type: verbatim
25542 #: ../sparsify/virt-sparsify.pod:9
25543 #, no-wrap
25544 msgid ""
25545 " virt-sparsify [--options] indisk outdisk\n"
25546 "\n"
25547 msgstr ""
25548
25549 #. type: textblock
25550 #: ../sparsify/virt-sparsify.pod:13
25551 msgid ""
25552 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25553 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25554 "the disk image can be converted back to free space on the host."
25555 msgstr ""
25556
25557 #. type: textblock
25558 #: ../sparsify/virt-sparsify.pod:18
25559 msgid ""
25560 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25561 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25562 msgstr ""
25563
25564 #. type: textblock
25565 #: ../sparsify/virt-sparsify.pod:21
25566 msgid ""
25567 "Virt-sparsify can also convert between some disk formats, for example "
25568 "converting a raw disk image to a thin-provisioned qcow2 image."
25569 msgstr ""
25570
25571 #. type: textblock
25572 #: ../sparsify/virt-sparsify.pod:24
25573 msgid ""
25574 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25575 "machines.  If a virtual machine has more than one attached disk, you must "
25576 "sparsify each one separately."
25577 msgstr ""
25578
25579 #. type: =head2
25580 #: ../sparsify/virt-sparsify.pod:28
25581 msgid "IMPORTANT LIMITATIONS"
25582 msgstr ""
25583
25584 #. type: textblock
25585 #: ../sparsify/virt-sparsify.pod:34
25586 msgid ""
25587 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25588 "image to a destination image, leaving the source unchanged.  I<Check that "
25589 "the sparsification was successful before deleting the source image>."
25590 msgstr ""
25591
25592 #. type: textblock
25593 #: ../sparsify/virt-sparsify.pod:41
25594 msgid "The virtual machine I<must be shut down> before using this tool."
25595 msgstr ""
25596
25597 #. type: textblock
25598 #: ../sparsify/virt-sparsify.pod:45
25599 msgid ""
25600 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25601 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25602 "usually much less space is required."
25603 msgstr ""
25604
25605 #. type: textblock
25606 #: ../sparsify/virt-sparsify.pod:51
25607 msgid ""
25608 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25609 msgstr ""
25610
25611 #. type: textblock
25612 #: ../sparsify/virt-sparsify.pod:56
25613 msgid "Virt-sparsify cannot handle encrypted disks."
25614 msgstr ""
25615
25616 #. type: textblock
25617 #: ../sparsify/virt-sparsify.pod:60
25618 msgid ""
25619 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25620 "this space is often used for critical items like bootloaders so it's not "
25621 "really unused."
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../sparsify/virt-sparsify.pod:66
25626 msgid ""
25627 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25628 "to do this unless we can be sure there is no hibernation data, so at the "
25629 "moment swap partitions are ignored."
25630 msgstr ""
25631
25632 #. type: textblock
25633 #: ../sparsify/virt-sparsify.pod:72
25634 msgid ""
25635 "You may also want to read the manual pages for the associated tools L<virt-"
25636 "filesystems(1)> and L<virt-df(1)> before starting."
25637 msgstr ""
25638
25639 #. type: textblock
25640 #: ../sparsify/virt-sparsify.pod:77
25641 msgid "Typical usage is:"
25642 msgstr ""
25643
25644 #. type: verbatim
25645 #: ../sparsify/virt-sparsify.pod:79
25646 #, no-wrap
25647 msgid ""
25648 " virt-sparsify indisk outdisk\n"
25649 "\n"
25650 msgstr ""
25651
25652 #. type: textblock
25653 #: ../sparsify/virt-sparsify.pod:81
25654 msgid ""
25655 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25656 "is created, or overwritten if it already exists.  The format of the input "
25657 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../sparsify/virt-sparsify.pod:86
25662 msgid "To convert between formats, use the I<--convert> option:"
25663 msgstr ""
25664
25665 #. type: verbatim
25666 #: ../sparsify/virt-sparsify.pod:88
25667 #, no-wrap
25668 msgid ""
25669 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25670 "\n"
25671 msgstr ""
25672
25673 #. type: textblock
25674 #: ../sparsify/virt-sparsify.pod:90
25675 msgid ""
25676 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25677 "can find within the source disk image.  You can get it to ignore (don't zero "
25678 "free space on) certain filesystems by doing:"
25679 msgstr ""
25680
25681 #. type: verbatim
25682 #: ../sparsify/virt-sparsify.pod:94
25683 #, no-wrap
25684 msgid ""
25685 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25686 "\n"
25687 msgstr ""
25688
25689 #. type: textblock
25690 #: ../sparsify/virt-sparsify.pod:96
25691 msgid ""
25692 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25693 msgstr ""
25694
25695 #. type: =item
25696 #: ../sparsify/virt-sparsify.pod:107
25697 msgid "B<--compress>"
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../sparsify/virt-sparsify.pod:109
25702 msgid ""
25703 "Compress the output file.  This I<only> works if the output format is "
25704 "C<qcow2>."
25705 msgstr ""
25706
25707 #. type: =item
25708 #: ../sparsify/virt-sparsify.pod:112
25709 msgid "B<--convert> raw"
25710 msgstr ""
25711
25712 #. type: =item
25713 #: ../sparsify/virt-sparsify.pod:114
25714 msgid "B<--convert> qcow2"
25715 msgstr ""
25716
25717 #. type: =item
25718 #: ../sparsify/virt-sparsify.pod:116
25719 msgid "B<--convert> [other formats]"
25720 msgstr ""
25721
25722 #. type: textblock
25723 #: ../sparsify/virt-sparsify.pod:118
25724 msgid ""
25725 "Use C<output-format> as the format for the destination image.  If this is "
25726 "not specified, then the input format is used."
25727 msgstr ""
25728
25729 #. type: textblock
25730 #: ../sparsify/virt-sparsify.pod:121
25731 msgid ""
25732 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
25733 msgstr ""
25734
25735 #. type: textblock
25736 #: ../sparsify/virt-sparsify.pod:123
25737 msgid ""
25738 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25739 "C<vmdk>, but support for other formats is reliant on qemu."
25740 msgstr ""
25741
25742 #. type: textblock
25743 #: ../sparsify/virt-sparsify.pod:126
25744 msgid ""
25745 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25746 "sparsify doesn't need to try to guess the input format."
25747 msgstr ""
25748
25749 #. type: textblock
25750 #: ../sparsify/virt-sparsify.pod:129
25751 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
25752 msgstr ""
25753
25754 #. type: textblock
25755 #: ../sparsify/virt-sparsify.pod:133
25756 msgid ""
25757 "Debug garbage collection and memory allocation.  This is only useful when "
25758 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
25759 msgstr ""
25760
25761 #. type: =item
25762 #: ../sparsify/virt-sparsify.pod:139
25763 msgid "B<--format> qcow2"
25764 msgstr ""
25765
25766 #. type: =item
25767 #: ../sparsify/virt-sparsify.pod:147
25768 msgid "B<--ignore> filesystem"
25769 msgstr ""
25770
25771 #. type: =item
25772 #: ../sparsify/virt-sparsify.pod:149
25773 msgid "B<--ignore> volgroup"
25774 msgstr ""
25775
25776 #. type: textblock
25777 #: ../sparsify/virt-sparsify.pod:151
25778 msgid ""
25779 "Ignore the named filesystem.  Free space on the filesystem will not be "
25780 "zeroed, but existing blocks of zeroes will still be sparsified."
25781 msgstr ""
25782
25783 #. type: textblock
25784 #: ../sparsify/virt-sparsify.pod:154
25785 msgid ""
25786 "In the second form, this ignores the named volume group.  Use the volume "
25787 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25788 msgstr ""
25789
25790 #. type: =item
25791 #: ../sparsify/virt-sparsify.pod:165
25792 msgid "B<-o> option[,option,...]"
25793 msgstr ""
25794
25795 #. type: textblock
25796 #: ../sparsify/virt-sparsify.pod:167
25797 msgid ""
25798 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
25799 "format.  Options available depend on the output format (see I<--convert>) "
25800 "and the installed version of the qemu-img program."
25801 msgstr ""
25802
25803 #. type: textblock
25804 #: ../sparsify/virt-sparsify.pod:171
25805 msgid ""
25806 "You should use I<-o> at most once.  To pass multiple options, separate them "
25807 "with commas, eg:"
25808 msgstr ""
25809
25810 #. type: verbatim
25811 #: ../sparsify/virt-sparsify.pod:174
25812 #, no-wrap
25813 msgid ""
25814 " virt-sparsify --convert qcow2 \\\n"
25815 "   -o cluster_size=512,preallocation=metadata ...\n"
25816 "\n"
25817 msgstr ""
25818
25819 #. type: textblock
25820 #: ../sparsify/virt-sparsify.pod:181
25821 msgid "This disables progress bars and other unnecessary output."
25822 msgstr ""
25823
25824 #. type: textblock
25825 #: ../sparsify/virt-sparsify.pod:203
25826 msgid ""
25827 "The I<--machine-readable> option can be used to make the output more machine "
25828 "friendly, which is useful when calling virt-sparsify from other programs, "
25829 "GUIs etc."
25830 msgstr ""
25831
25832 #. type: textblock
25833 #: ../sparsify/virt-sparsify.pod:209
25834 msgid ""
25835 "Firstly use the option on its own to query the capabilities of the virt-"
25836 "sparsify binary.  Typical output looks like this:"
25837 msgstr ""
25838
25839 #. type: verbatim
25840 #: ../sparsify/virt-sparsify.pod:212
25841 #, no-wrap
25842 msgid ""
25843 " $ virt-sparsify --machine-readable\n"
25844 " virt-sparsify\n"
25845 " ntfs\n"
25846 " btrfs\n"
25847 "\n"
25848 msgstr ""
25849
25850 #. type: textblock
25851 #: ../sparsify/virt-sparsify.pod:242
25852 msgid ""
25853 "The calling program should treat messages sent to stderr as error messages.  "
25854 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25855 "fatal error."
25856 msgstr ""
25857
25858 #. type: textblock
25859 #: ../sparsify/virt-sparsify.pod:248
25860 msgid ""
25861 "All versions of virt-sparsify have supported the I<--machine-readable> "
25862 "option."
25863 msgstr ""
25864
25865 #. type: textblock
25866 #: ../sparsify/virt-sparsify.pod:262
25867 msgid ""
25868 "Location of the temporary directory used for the potentially large temporary "
25869 "overlay file."
25870 msgstr ""
25871
25872 #. type: textblock
25873 #: ../sparsify/virt-sparsify.pod:265
25874 msgid ""
25875 "You should ensure there is enough free space in the worst case for a full "
25876 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25877 "to another directory that has enough space."
25878 msgstr ""
25879
25880 #. type: textblock
25881 #: ../sparsify/virt-sparsify.pod:269
25882 msgid "This defaults to C</tmp>."
25883 msgstr ""
25884
25885 #. type: textblock
25886 #: ../sparsify/virt-sparsify.pod:273
25887 msgid ""
25888 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25889 msgstr ""
25890
25891 #. type: textblock
25892 #: ../sparsify/virt-sparsify.pod:277
25893 msgid ""
25894 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25895 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25896 "(1)>, L<http://libguestfs.org/>."
25897 msgstr ""
25898
25899 #. type: =head2
25900 #: ../src/guestfs-actions.pod:1
25901 msgid "guestfs_add_cdrom"
25902 msgstr ""
25903
25904 #. type: verbatim
25905 #: ../src/guestfs-actions.pod:3
25906 #, no-wrap
25907 msgid ""
25908 " int\n"
25909 " guestfs_add_cdrom (guestfs_h *g,\n"
25910 "                    const char *filename);\n"
25911 "\n"
25912 msgstr ""
25913
25914 #. type: textblock
25915 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25916 #: ../src/guestfs-actions.pod:323
25917 msgid ""
25918 "I<This function is deprecated.> In new code, use the L</"
25919 "guestfs_add_drive_opts> call instead."
25920 msgstr ""
25921
25922 #. type: textblock
25923 #: ../src/guestfs-actions.pod:24
25924 msgid ""
25925 "This call checks for the existence of C<filename>.  This stops you from "
25926 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25927 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25928 "instead."
25929 msgstr ""
25930
25931 #. type: textblock
25932 #: ../src/guestfs-actions.pod:31
25933 msgid ""
25934 "If you just want to add an ISO file (often you use this as an efficient way "
25935 "to transfer large files into the guest), then you should probably use "
25936 "C<guestfs_add_drive_ro> instead."
25937 msgstr ""
25938
25939 #. type: textblock
25940 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25941 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25942 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25943 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25944 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25945 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25946 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25947 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25948 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25949 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25950 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25951 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25952 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25953 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25954 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25955 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25956 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25957 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25958 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25959 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25960 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25961 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25962 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25963 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25964 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25965 #: ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4107
25966 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4334
25967 #: ../src/guestfs-actions.pod:4348 ../src/guestfs-actions.pod:4361
25968 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4390
25969 #: ../src/guestfs-actions.pod:4426 ../src/guestfs-actions.pod:4498
25970 #: ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4535
25971 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
25972 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629
25973 #: ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4683
25974 #: ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4728
25975 #: ../src/guestfs-actions.pod:4744 ../src/guestfs-actions.pod:4757
25976 #: ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789
25977 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:5021
25978 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5051
25979 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5115
25980 #: ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5151
25981 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5181
25982 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212
25983 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5254
25984 #: ../src/guestfs-actions.pod:5317 ../src/guestfs-actions.pod:5390
25985 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
25986 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5471
25987 #: ../src/guestfs-actions.pod:5488 ../src/guestfs-actions.pod:5501
25988 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5531
25989 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5589
25990 #: ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5648
25991 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5679
25992 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5781
25993 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5871
25994 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5916
25995 #: ../src/guestfs-actions.pod:5934 ../src/guestfs-actions.pod:6071
25996 #: ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6150
25997 #: ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6220
25998 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6303
25999 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6330
26000 #: ../src/guestfs-actions.pod:6619 ../src/guestfs-actions.pod:6638
26001 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6671
26002 #: ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6697
26003 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:6723
26004 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757
26005 #: ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795
26006 #: ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6843
26007 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6884
26008 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6924
26009 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6960
26010 #: ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:7007
26011 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7050
26012 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7090
26013 #: ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7124
26014 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7187
26015 #: ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7244
26016 #: ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7477
26017 #: ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7502
26018 #: ../src/guestfs-actions.pod:7515 ../src/guestfs-actions.pod:7537
26019 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
26020 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7591
26021 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7667
26022 #: ../src/guestfs-actions.pod:7683 ../src/guestfs-actions.pod:7699
26023 #: ../src/guestfs-actions.pod:7716 ../src/guestfs-actions.pod:7729
26024 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7849
26025 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7921
26026 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:7975
26027 #: ../src/guestfs-actions.pod:7993 ../src/guestfs-actions.pod:8027
26028 #: ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8179
26029 #: ../src/guestfs-actions.pod:8194 ../src/guestfs-actions.pod:8208
26030 #: ../src/guestfs-actions.pod:8263 ../src/guestfs-actions.pod:8276
26031 #: ../src/guestfs-actions.pod:8321 ../src/guestfs-actions.pod:8361
26032 #: ../src/guestfs-actions.pod:8417 ../src/guestfs-actions.pod:8437
26033 #: ../src/guestfs-actions.pod:8470 ../src/guestfs-actions.pod:8534
26034 #: ../src/guestfs-actions.pod:8557 ../src/guestfs-actions.pod:8583
26035 msgid "This function returns 0 on success or -1 on error."
26036 msgstr ""
26037
26038 #. type: textblock
26039 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26040 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26041 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26042 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4114
26043 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:6845
26044 #: ../src/guestfs-actions.pod:6962 ../src/guestfs-actions.pod:7111
26045 #: ../src/guestfs-actions.pod:7593 ../src/guestfs-actions.pod:7718
26046 #: ../src/guestfs-actions.pod:8363
26047 msgid "(Added in 0.3)"
26048 msgstr ""
26049
26050 #. type: =head2
26051 #: ../src/guestfs-actions.pod:41
26052 msgid "guestfs_add_domain"
26053 msgstr ""
26054
26055 #. type: verbatim
26056 #: ../src/guestfs-actions.pod:43
26057 #, no-wrap
26058 msgid ""
26059 " int\n"
26060 " guestfs_add_domain (guestfs_h *g,\n"
26061 "                     const char *dom,\n"
26062 "                     ...);\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26068 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26069 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26070 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26071 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26072 #: ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:5266
26073 #: ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5792
26074 #: ../src/guestfs-actions.pod:7760
26075 msgid ""
26076 "You may supply a list of optional arguments to this call.  Use zero or more "
26077 "of the following pairs of parameters, and terminate the list with C<-1> on "
26078 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26079 msgstr ""
26080
26081 #. type: verbatim
26082 #: ../src/guestfs-actions.pod:53
26083 #, no-wrap
26084 msgid ""
26085 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26086 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26087 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26088 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26089 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26090 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26091 "\n"
26092 msgstr ""
26093
26094 #. type: textblock
26095 #: ../src/guestfs-actions.pod:60
26096 msgid ""
26097 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26098 "It works by connecting to libvirt, requesting the domain and domain XML from "
26099 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26100 "one."
26101 msgstr ""
26102
26103 #. type: textblock
26104 #: ../src/guestfs-actions.pod:141
26105 msgid ""
26106 "The other optional parameters are passed directly through to "
26107 "C<guestfs_add_drive_opts>."
26108 msgstr ""
26109
26110 #. type: textblock
26111 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26112 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26113 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26114 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26115 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26116 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26117 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26118 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26119 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26120 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5968
26121 #: ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6400
26122 #: ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:7948
26123 #: ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8387
26124 #: ../src/guestfs-actions.pod:8400
26125 msgid "On error this function returns -1."
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../src/guestfs-actions.pod:146
26130 msgid "(Added in 1.7.4)"
26131 msgstr ""
26132
26133 #. type: =head2
26134 #: ../src/guestfs-actions.pod:148
26135 msgid "guestfs_add_domain_va"
26136 msgstr ""
26137
26138 #. type: verbatim
26139 #: ../src/guestfs-actions.pod:150
26140 #, no-wrap
26141 msgid ""
26142 " int\n"
26143 " guestfs_add_domain_va (guestfs_h *g,\n"
26144 "                        const char *dom,\n"
26145 "                        va_list args);\n"
26146 "\n"
26147 msgstr ""
26148
26149 #. type: textblock
26150 #: ../src/guestfs-actions.pod:155
26151 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26152 msgstr ""
26153
26154 #. type: textblock
26155 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26156 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26157 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26158 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26159 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26160 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26161 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26162 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26163 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26164 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26165 #: ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4971
26166 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5343
26167 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5615
26168 #: ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5852
26169 #: ../src/guestfs-actions.pod:7862 ../src/guestfs-actions.pod:7873
26170 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26171 msgstr ""
26172
26173 #. type: =head2
26174 #: ../src/guestfs-actions.pod:159
26175 msgid "guestfs_add_domain_argv"
26176 msgstr ""
26177
26178 #. type: verbatim
26179 #: ../src/guestfs-actions.pod:161
26180 #, no-wrap
26181 msgid ""
26182 " int\n"
26183 " guestfs_add_domain_argv (guestfs_h *g,\n"
26184 "                          const char *dom,\n"
26185 "                          const struct guestfs_add_domain_argv *optargs);\n"
26186 "\n"
26187 msgstr ""
26188
26189 #. type: textblock
26190 #: ../src/guestfs-actions.pod:166
26191 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26192 msgstr ""
26193
26194 #. type: =head2
26195 #: ../src/guestfs-actions.pod:170
26196 msgid "guestfs_add_drive"
26197 msgstr ""
26198
26199 #. type: verbatim
26200 #: ../src/guestfs-actions.pod:172
26201 #, no-wrap
26202 msgid ""
26203 " int\n"
26204 " guestfs_add_drive (guestfs_h *g,\n"
26205 "                    const char *filename);\n"
26206 "\n"
26207 msgstr ""
26208
26209 #. type: textblock
26210 #: ../src/guestfs-actions.pod:176
26211 msgid ""
26212 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26213 "optional parameters, so the disk is added writable, with the format being "
26214 "detected automatically."
26215 msgstr ""
26216
26217 #. type: textblock
26218 #: ../src/guestfs-actions.pod:180
26219 msgid ""
26220 "Automatic detection of the format opens you up to a potential security hole "
26221 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26222 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26223 "you should think about replacing calls to this function with calls to "
26224 "C<guestfs_add_drive_opts>, and specifying the format."
26225 msgstr ""
26226
26227 #. type: =head2
26228 #: ../src/guestfs-actions.pod:191
26229 msgid "guestfs_add_drive_opts"
26230 msgstr ""
26231
26232 #. type: verbatim
26233 #: ../src/guestfs-actions.pod:193
26234 #, no-wrap
26235 msgid ""
26236 " int\n"
26237 " guestfs_add_drive_opts (guestfs_h *g,\n"
26238 "                         const char *filename,\n"
26239 "                         ...);\n"
26240 "\n"
26241 msgstr ""
26242
26243 #. type: verbatim
26244 #: ../src/guestfs-actions.pod:203
26245 #, no-wrap
26246 msgid ""
26247 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26248 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26249 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26250 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26251 "\n"
26252 msgstr ""
26253
26254 #. type: textblock
26255 #: ../src/guestfs-actions.pod:233
26256 msgid ""
26257 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26258 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26259 "Possible formats include C<raw> and C<qcow2>."
26260 msgstr ""
26261
26262 #. type: textblock
26263 #: ../src/guestfs-actions.pod:244
26264 msgid ""
26265 "This rarely-used option lets you emulate the behaviour of the deprecated "
26266 "C<guestfs_add_drive_with_if> call (q.v.)"
26267 msgstr ""
26268
26269 #. type: textblock
26270 #: ../src/guestfs-actions.pod:256
26271 msgid "(Added in 1.5.23)"
26272 msgstr ""
26273
26274 #. type: =head2
26275 #: ../src/guestfs-actions.pod:258
26276 msgid "guestfs_add_drive_opts_va"
26277 msgstr ""
26278
26279 #. type: verbatim
26280 #: ../src/guestfs-actions.pod:260
26281 #, no-wrap
26282 msgid ""
26283 " int\n"
26284 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26285 "                            const char *filename,\n"
26286 "                            va_list args);\n"
26287 "\n"
26288 msgstr ""
26289
26290 #. type: textblock
26291 #: ../src/guestfs-actions.pod:265
26292 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26293 msgstr ""
26294
26295 #. type: =head2
26296 #: ../src/guestfs-actions.pod:269
26297 msgid "guestfs_add_drive_opts_argv"
26298 msgstr ""
26299
26300 #. type: verbatim
26301 #: ../src/guestfs-actions.pod:271
26302 #, no-wrap
26303 msgid ""
26304 " int\n"
26305 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26306 "                              const char *filename,\n"
26307 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26308 "\n"
26309 msgstr ""
26310
26311 #. type: textblock
26312 #: ../src/guestfs-actions.pod:276
26313 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26314 msgstr ""
26315
26316 #. type: =head2
26317 #: ../src/guestfs-actions.pod:280
26318 msgid "guestfs_add_drive_ro"
26319 msgstr ""
26320
26321 #. type: verbatim
26322 #: ../src/guestfs-actions.pod:282
26323 #, no-wrap
26324 msgid ""
26325 " int\n"
26326 " guestfs_add_drive_ro (guestfs_h *g,\n"
26327 "                       const char *filename);\n"
26328 "\n"
26329 msgstr ""
26330
26331 #. type: textblock
26332 #: ../src/guestfs-actions.pod:286
26333 msgid ""
26334 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26335 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26336 "disk is added read-only, with the format being detected automatically."
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../src/guestfs-actions.pod:293
26341 msgid "(Added in 1.0.38)"
26342 msgstr ""
26343
26344 #. type: =head2
26345 #: ../src/guestfs-actions.pod:295
26346 msgid "guestfs_add_drive_ro_with_if"
26347 msgstr ""
26348
26349 #. type: verbatim
26350 #: ../src/guestfs-actions.pod:297
26351 #, no-wrap
26352 msgid ""
26353 " int\n"
26354 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26355 "                               const char *filename,\n"
26356 "                               const char *iface);\n"
26357 "\n"
26358 msgstr ""
26359
26360 #. type: textblock
26361 #: ../src/guestfs-actions.pod:309
26362 msgid ""
26363 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26364 "QEMU interface emulation to use at run time."
26365 msgstr ""
26366
26367 #. type: textblock
26368 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26369 #: ../src/guestfs-actions.pod:2881
26370 msgid "(Added in 1.0.84)"
26371 msgstr ""
26372
26373 #. type: =head2
26374 #: ../src/guestfs-actions.pod:316
26375 msgid "guestfs_add_drive_with_if"
26376 msgstr ""
26377
26378 #. type: verbatim
26379 #: ../src/guestfs-actions.pod:318
26380 #, no-wrap
26381 msgid ""
26382 " int\n"
26383 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26384 "                            const char *filename,\n"
26385 "                            const char *iface);\n"
26386 "\n"
26387 msgstr ""
26388
26389 #. type: textblock
26390 #: ../src/guestfs-actions.pod:330
26391 msgid ""
26392 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26393 "QEMU interface emulation to use at run time."
26394 msgstr ""
26395
26396 #. type: =head2
26397 #: ../src/guestfs-actions.pod:337
26398 msgid "guestfs_aug_clear"
26399 msgstr ""
26400
26401 #. type: verbatim
26402 #: ../src/guestfs-actions.pod:339
26403 #, no-wrap
26404 msgid ""
26405 " int\n"
26406 " guestfs_aug_clear (guestfs_h *g,\n"
26407 "                    const char *augpath);\n"
26408 "\n"
26409 msgstr ""
26410
26411 #. type: textblock
26412 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26413 msgid "(Added in 1.3.4)"
26414 msgstr ""
26415
26416 #. type: =head2
26417 #: ../src/guestfs-actions.pod:350
26418 msgid "guestfs_aug_close"
26419 msgstr ""
26420
26421 #. type: verbatim
26422 #: ../src/guestfs-actions.pod:352
26423 #, no-wrap
26424 msgid ""
26425 " int\n"
26426 " guestfs_aug_close (guestfs_h *g);\n"
26427 "\n"
26428 msgstr ""
26429
26430 #. type: textblock
26431 #: ../src/guestfs-actions.pod:355
26432 msgid ""
26433 "Close the current Augeas handle and free up any resources used by it.  After "
26434 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26435 "any other Augeas functions."
26436 msgstr ""
26437
26438 #. type: textblock
26439 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26440 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26441 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26442 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26443 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26444 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26445 #: ../src/guestfs-actions.pod:6477
26446 msgid "(Added in 0.7)"
26447 msgstr ""
26448
26449 #. type: =head2
26450 #: ../src/guestfs-actions.pod:364
26451 msgid "guestfs_aug_defnode"
26452 msgstr ""
26453
26454 #. type: verbatim
26455 #: ../src/guestfs-actions.pod:366
26456 #, no-wrap
26457 msgid ""
26458 " struct guestfs_int_bool *\n"
26459 " guestfs_aug_defnode (guestfs_h *g,\n"
26460 "                      const char *name,\n"
26461 "                      const char *expr,\n"
26462 "                      const char *val);\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: textblock
26467 #: ../src/guestfs-actions.pod:375
26468 msgid ""
26469 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26470 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26471 "containing that single node."
26472 msgstr ""
26473
26474 #. type: textblock
26475 #: ../src/guestfs-actions.pod:383
26476 msgid ""
26477 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26478 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26479 msgstr ""
26480
26481 #. type: =head2
26482 #: ../src/guestfs-actions.pod:389
26483 msgid "guestfs_aug_defvar"
26484 msgstr ""
26485
26486 #. type: verbatim
26487 #: ../src/guestfs-actions.pod:391
26488 #, no-wrap
26489 msgid ""
26490 " int\n"
26491 " guestfs_aug_defvar (guestfs_h *g,\n"
26492 "                     const char *name,\n"
26493 "                     const char *expr);\n"
26494 "\n"
26495 msgstr ""
26496
26497 #. type: =head2
26498 #: ../src/guestfs-actions.pod:407
26499 msgid "guestfs_aug_get"
26500 msgstr ""
26501
26502 #. type: verbatim
26503 #: ../src/guestfs-actions.pod:409
26504 #, no-wrap
26505 msgid ""
26506 " char *\n"
26507 " guestfs_aug_get (guestfs_h *g,\n"
26508 "                  const char *augpath);\n"
26509 "\n"
26510 msgstr ""
26511
26512 #. type: textblock
26513 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26514 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26515 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26516 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26517 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26518 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26519 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26520 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26521 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26522 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26523 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26524 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26525 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26526 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3640
26527 #: ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3680
26528 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4667
26529 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:5093
26530 #: ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6187
26531 #: ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6553
26532 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:7262
26533 #: ../src/guestfs-actions.pod:7278 ../src/guestfs-actions.pod:7302
26534 #: ../src/guestfs-actions.pod:7326 ../src/guestfs-actions.pod:8122
26535 #: ../src/guestfs-actions.pod:8141 ../src/guestfs-actions.pod:8159
26536 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8647
26537 msgid ""
26538 "This function returns a string, or NULL on error.  I<The caller must free "
26539 "the returned string after use>."
26540 msgstr ""
26541
26542 #. type: =head2
26543 #: ../src/guestfs-actions.pod:421
26544 msgid "guestfs_aug_init"
26545 msgstr ""
26546
26547 #. type: verbatim
26548 #: ../src/guestfs-actions.pod:423
26549 #, no-wrap
26550 msgid ""
26551 " int\n"
26552 " guestfs_aug_init (guestfs_h *g,\n"
26553 "                   const char *root,\n"
26554 "                   int flags);\n"
26555 "\n"
26556 msgstr ""
26557
26558 #. type: textblock
26559 #: ../src/guestfs-actions.pod:432
26560 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26561 msgstr ""
26562
26563 #. type: textblock
26564 #: ../src/guestfs-actions.pod:457
26565 msgid ""
26566 "This option is only useful when debugging Augeas lenses.  Use of this option "
26567 "may require additional memory for the libguestfs appliance.  You may need to "
26568 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26569 "C<guestfs_set_memsize>."
26570 msgstr ""
26571
26572 #. type: textblock
26573 #: ../src/guestfs-actions.pod:472
26574 msgid "Do not load the tree in C<guestfs_aug_init>."
26575 msgstr ""
26576
26577 #. type: textblock
26578 #: ../src/guestfs-actions.pod:476
26579 msgid "To close the handle, you can call C<guestfs_aug_close>."
26580 msgstr ""
26581
26582 #. type: =head2
26583 #: ../src/guestfs-actions.pod:484
26584 msgid "guestfs_aug_insert"
26585 msgstr ""
26586
26587 #. type: verbatim
26588 #: ../src/guestfs-actions.pod:486
26589 #, no-wrap
26590 msgid ""
26591 " int\n"
26592 " guestfs_aug_insert (guestfs_h *g,\n"
26593 "                     const char *augpath,\n"
26594 "                     const char *label,\n"
26595 "                     int before);\n"
26596 "\n"
26597 msgstr ""
26598
26599 #. type: =head2
26600 #: ../src/guestfs-actions.pod:504
26601 msgid "guestfs_aug_load"
26602 msgstr ""
26603
26604 #. type: verbatim
26605 #: ../src/guestfs-actions.pod:506
26606 #, no-wrap
26607 msgid ""
26608 " int\n"
26609 " guestfs_aug_load (guestfs_h *g);\n"
26610 "\n"
26611 msgstr ""
26612
26613 #. type: =head2
26614 #: ../src/guestfs-actions.pod:518
26615 msgid "guestfs_aug_ls"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../src/guestfs-actions.pod:520
26620 #, no-wrap
26621 msgid ""
26622 " char **\n"
26623 " guestfs_aug_ls (guestfs_h *g,\n"
26624 "                 const char *augpath);\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: textblock
26629 #: ../src/guestfs-actions.pod:524
26630 msgid ""
26631 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26632 "sorting the resulting nodes into alphabetical order."
26633 msgstr ""
26634
26635 #. type: textblock
26636 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26637 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26638 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26639 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26640 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26641 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26642 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26643 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26644 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26645 #: ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4190
26646 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4227
26647 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4302
26648 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806
26649 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6347
26650 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6587
26651 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7403
26652 #: ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7604
26653 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:8226
26654 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8293
26655 #: ../src/guestfs-actions.pod:8487 ../src/guestfs-actions.pod:8506
26656 #: ../src/guestfs-actions.pod:8597 ../src/guestfs-actions.pod:8616
26657 #: ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8681
26658 msgid ""
26659 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26660 ">), or NULL if there was an error.  I<The caller must free the strings and "
26661 "the array after use>."
26662 msgstr ""
26663
26664 #. type: textblock
26665 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26666 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26667 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:3985
26668 #: ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4697
26669 #: ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5066
26670 #: ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5716
26671 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6685
26672 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6711
26673 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7964
26674 #: ../src/guestfs-actions.pod:7977 ../src/guestfs-actions.pod:8210
26675 #: ../src/guestfs-actions.pod:8475
26676 msgid "(Added in 0.8)"
26677 msgstr ""
26678
26679 #. type: =head2
26680 #: ../src/guestfs-actions.pod:533
26681 msgid "guestfs_aug_match"
26682 msgstr ""
26683
26684 #. type: verbatim
26685 #: ../src/guestfs-actions.pod:535
26686 #, no-wrap
26687 msgid ""
26688 " char **\n"
26689 " guestfs_aug_match (guestfs_h *g,\n"
26690 "                    const char *augpath);\n"
26691 "\n"
26692 msgstr ""
26693
26694 #. type: =head2
26695 #: ../src/guestfs-actions.pod:549
26696 msgid "guestfs_aug_mv"
26697 msgstr ""
26698
26699 #. type: verbatim
26700 #: ../src/guestfs-actions.pod:551
26701 #, no-wrap
26702 msgid ""
26703 " int\n"
26704 " guestfs_aug_mv (guestfs_h *g,\n"
26705 "                 const char *src,\n"
26706 "                 const char *dest);\n"
26707 "\n"
26708 msgstr ""
26709
26710 #. type: =head2
26711 #: ../src/guestfs-actions.pod:563
26712 msgid "guestfs_aug_rm"
26713 msgstr ""
26714
26715 #. type: verbatim
26716 #: ../src/guestfs-actions.pod:565
26717 #, no-wrap
26718 msgid ""
26719 " int\n"
26720 " guestfs_aug_rm (guestfs_h *g,\n"
26721 "                 const char *augpath);\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: =head2
26726 #: ../src/guestfs-actions.pod:577
26727 msgid "guestfs_aug_save"
26728 msgstr ""
26729
26730 #. type: verbatim
26731 #: ../src/guestfs-actions.pod:579
26732 #, no-wrap
26733 msgid ""
26734 " int\n"
26735 " guestfs_aug_save (guestfs_h *g);\n"
26736 "\n"
26737 msgstr ""
26738
26739 #. type: textblock
26740 #: ../src/guestfs-actions.pod:584
26741 msgid ""
26742 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26743 "are saved."
26744 msgstr ""
26745
26746 #. type: =head2
26747 #: ../src/guestfs-actions.pod:591
26748 msgid "guestfs_aug_set"
26749 msgstr ""
26750
26751 #. type: verbatim
26752 #: ../src/guestfs-actions.pod:593
26753 #, no-wrap
26754 msgid ""
26755 " int\n"
26756 " guestfs_aug_set (guestfs_h *g,\n"
26757 "                  const char *augpath,\n"
26758 "                  const char *val);\n"
26759 "\n"
26760 msgstr ""
26761
26762 #. type: textblock
26763 #: ../src/guestfs-actions.pod:600
26764 msgid ""
26765 "In the Augeas API, it is possible to clear a node by setting the value to "
26766 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26767 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26768 msgstr ""
26769
26770 #. type: =head2
26771 #: ../src/guestfs-actions.pod:609
26772 msgid "guestfs_available"
26773 msgstr ""
26774
26775 #. type: verbatim
26776 #: ../src/guestfs-actions.pod:611
26777 #, no-wrap
26778 msgid ""
26779 " int\n"
26780 " guestfs_available (guestfs_h *g,\n"
26781 "                    char *const *groups);\n"
26782 "\n"
26783 msgstr ""
26784
26785 #. type: textblock
26786 #: ../src/guestfs-actions.pod:619
26787 msgid ""
26788 "The libguestfs groups, and the functions that those groups correspond to, "
26789 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26790 "runtime by calling C<guestfs_available_all_groups>."
26791 msgstr ""
26792
26793 #. type: textblock
26794 #: ../src/guestfs-actions.pod:643
26795 msgid "You must call C<guestfs_launch> before calling this function."
26796 msgstr ""
26797
26798 #. type: textblock
26799 #: ../src/guestfs-actions.pod:665
26800 msgid ""
26801 "This call was added in version C<1.0.80>.  In previous versions of "
26802 "libguestfs all you could do would be to speculatively execute a command to "
26803 "find out if the daemon implemented it.  See also C<guestfs_version>."
26804 msgstr ""
26805
26806 #. type: textblock
26807 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26808 msgid "(Added in 1.0.80)"
26809 msgstr ""
26810
26811 #. type: =head2
26812 #: ../src/guestfs-actions.pod:676
26813 msgid "guestfs_available_all_groups"
26814 msgstr ""
26815
26816 #. type: verbatim
26817 #: ../src/guestfs-actions.pod:678
26818 #, no-wrap
26819 msgid ""
26820 " char **\n"
26821 " guestfs_available_all_groups (guestfs_h *g);\n"
26822 "\n"
26823 msgstr ""
26824
26825 #. type: textblock
26826 #: ../src/guestfs-actions.pod:681
26827 msgid ""
26828 "This command returns a list of all optional groups that this daemon knows "
26829 "about.  Note this returns both supported and unsupported groups.  To find "
26830 "out which ones the daemon can actually support you have to call "
26831 "C<guestfs_available> on each member of the returned list."
26832 msgstr ""
26833
26834 #. type: textblock
26835 #: ../src/guestfs-actions.pod:687
26836 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26837 msgstr ""
26838
26839 #. type: textblock
26840 #: ../src/guestfs-actions.pod:693
26841 msgid "(Added in 1.3.15)"
26842 msgstr ""
26843
26844 #. type: =head2
26845 #: ../src/guestfs-actions.pod:695
26846 msgid "guestfs_base64_in"
26847 msgstr ""
26848
26849 #. type: verbatim
26850 #: ../src/guestfs-actions.pod:697
26851 #, no-wrap
26852 msgid ""
26853 " int\n"
26854 " guestfs_base64_in (guestfs_h *g,\n"
26855 "                    const char *base64file,\n"
26856 "                    const char *filename);\n"
26857 "\n"
26858 msgstr ""
26859
26860 #. type: textblock
26861 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26862 msgid "(Added in 1.3.5)"
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:709
26867 msgid "guestfs_base64_out"
26868 msgstr ""
26869
26870 #. type: verbatim
26871 #: ../src/guestfs-actions.pod:711
26872 #, no-wrap
26873 msgid ""
26874 " int\n"
26875 " guestfs_base64_out (guestfs_h *g,\n"
26876 "                     const char *filename,\n"
26877 "                     const char *base64file);\n"
26878 "\n"
26879 msgstr ""
26880
26881 #. type: =head2
26882 #: ../src/guestfs-actions.pod:723
26883 msgid "guestfs_blockdev_flushbufs"
26884 msgstr ""
26885
26886 #. type: verbatim
26887 #: ../src/guestfs-actions.pod:725
26888 #, no-wrap
26889 msgid ""
26890 " int\n"
26891 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26892 "                             const char *device);\n"
26893 "\n"
26894 msgstr ""
26895
26896 #. type: textblock
26897 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26898 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26899 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26900 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26901 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26902 msgid "(Added in 0.9.3)"
26903 msgstr ""
26904
26905 #. type: =head2
26906 #: ../src/guestfs-actions.pod:738
26907 msgid "guestfs_blockdev_getbsz"
26908 msgstr ""
26909
26910 #. type: verbatim
26911 #: ../src/guestfs-actions.pod:740
26912 #, no-wrap
26913 msgid ""
26914 " int\n"
26915 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26916 "                          const char *device);\n"
26917 "\n"
26918 msgstr ""
26919
26920 #. type: =head2
26921 #: ../src/guestfs-actions.pod:755
26922 msgid "guestfs_blockdev_getro"
26923 msgstr ""
26924
26925 #. type: verbatim
26926 #: ../src/guestfs-actions.pod:757
26927 #, no-wrap
26928 msgid ""
26929 " int\n"
26930 " guestfs_blockdev_getro (guestfs_h *g,\n"
26931 "                         const char *device);\n"
26932 "\n"
26933 msgstr ""
26934
26935 #. type: textblock
26936 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26937 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26938 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26939 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26940 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26941 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3697
26942 #: ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3731
26943 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3907
26944 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3936
26945 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3967
26946 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:3997
26947 #: ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024
26948 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4054
26949 #: ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4081
26950 #: ../src/guestfs-actions.pod:5950
26951 msgid "This function returns a C truth value on success or -1 on error."
26952 msgstr ""
26953
26954 #. type: =head2
26955 #: ../src/guestfs-actions.pod:770
26956 msgid "guestfs_blockdev_getsize64"
26957 msgstr ""
26958
26959 #. type: verbatim
26960 #: ../src/guestfs-actions.pod:772
26961 #, no-wrap
26962 msgid ""
26963 " int64_t\n"
26964 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26965 "                             const char *device);\n"
26966 "\n"
26967 msgstr ""
26968
26969 #. type: textblock
26970 #: ../src/guestfs-actions.pod:778
26971 msgid "See also C<guestfs_blockdev_getsz>."
26972 msgstr ""
26973
26974 #. type: =head2
26975 #: ../src/guestfs-actions.pod:786
26976 msgid "guestfs_blockdev_getss"
26977 msgstr ""
26978
26979 #. type: verbatim
26980 #: ../src/guestfs-actions.pod:788
26981 #, no-wrap
26982 msgid ""
26983 " int\n"
26984 " guestfs_blockdev_getss (guestfs_h *g,\n"
26985 "                         const char *device);\n"
26986 "\n"
26987 msgstr ""
26988
26989 #. type: textblock
26990 #: ../src/guestfs-actions.pod:795
26991 msgid ""
26992 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26993 "that)."
26994 msgstr ""
26995
26996 #. type: =head2
26997 #: ../src/guestfs-actions.pod:804
26998 msgid "guestfs_blockdev_getsz"
26999 msgstr ""
27000
27001 #. type: verbatim
27002 #: ../src/guestfs-actions.pod:806
27003 #, no-wrap
27004 msgid ""
27005 " int64_t\n"
27006 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27007 "                         const char *device);\n"
27008 "\n"
27009 msgstr ""
27010
27011 #. type: textblock
27012 #: ../src/guestfs-actions.pod:813
27013 msgid ""
27014 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27015 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27016 msgstr ""
27017
27018 #. type: =head2
27019 #: ../src/guestfs-actions.pod:823
27020 msgid "guestfs_blockdev_rereadpt"
27021 msgstr ""
27022
27023 #. type: verbatim
27024 #: ../src/guestfs-actions.pod:825
27025 #, no-wrap
27026 msgid ""
27027 " int\n"
27028 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27029 "                            const char *device);\n"
27030 "\n"
27031 msgstr ""
27032
27033 #. type: =head2
27034 #: ../src/guestfs-actions.pod:837
27035 msgid "guestfs_blockdev_setbsz"
27036 msgstr ""
27037
27038 #. type: verbatim
27039 #: ../src/guestfs-actions.pod:839
27040 #, no-wrap
27041 msgid ""
27042 " int\n"
27043 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27044 "                          const char *device,\n"
27045 "                          int blocksize);\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: =head2
27050 #: ../src/guestfs-actions.pod:855
27051 msgid "guestfs_blockdev_setro"
27052 msgstr ""
27053
27054 #. type: verbatim
27055 #: ../src/guestfs-actions.pod:857
27056 #, no-wrap
27057 msgid ""
27058 " int\n"
27059 " guestfs_blockdev_setro (guestfs_h *g,\n"
27060 "                         const char *device);\n"
27061 "\n"
27062 msgstr ""
27063
27064 #. type: =head2
27065 #: ../src/guestfs-actions.pod:869
27066 msgid "guestfs_blockdev_setrw"
27067 msgstr ""
27068
27069 #. type: verbatim
27070 #: ../src/guestfs-actions.pod:871
27071 #, no-wrap
27072 msgid ""
27073 " int\n"
27074 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27075 "                         const char *device);\n"
27076 "\n"
27077 msgstr ""
27078
27079 #. type: =head2
27080 #: ../src/guestfs-actions.pod:883
27081 msgid "guestfs_btrfs_filesystem_resize"
27082 msgstr ""
27083
27084 #. type: verbatim
27085 #: ../src/guestfs-actions.pod:885
27086 #, no-wrap
27087 msgid ""
27088 " int\n"
27089 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27090 "                                  const char *mountpoint,\n"
27091 "                                  ...);\n"
27092 "\n"
27093 msgstr ""
27094
27095 #. type: verbatim
27096 #: ../src/guestfs-actions.pod:895
27097 #, no-wrap
27098 msgid ""
27099 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27100 "\n"
27101 msgstr ""
27102
27103 #. type: textblock
27104 #: ../src/guestfs-actions.pod:918
27105 msgid "(Added in 1.11.17)"
27106 msgstr ""
27107
27108 #. type: =head2
27109 #: ../src/guestfs-actions.pod:920
27110 msgid "guestfs_btrfs_filesystem_resize_va"
27111 msgstr ""
27112
27113 #. type: verbatim
27114 #: ../src/guestfs-actions.pod:922
27115 #, no-wrap
27116 msgid ""
27117 " int\n"
27118 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27119 "                                     const char *mountpoint,\n"
27120 "                                     va_list args);\n"
27121 "\n"
27122 msgstr ""
27123
27124 #. type: textblock
27125 #: ../src/guestfs-actions.pod:927
27126 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27127 msgstr ""
27128
27129 #. type: =head2
27130 #: ../src/guestfs-actions.pod:931
27131 msgid "guestfs_btrfs_filesystem_resize_argv"
27132 msgstr ""
27133
27134 #. type: verbatim
27135 #: ../src/guestfs-actions.pod:933
27136 #, no-wrap
27137 msgid ""
27138 " int\n"
27139 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27140 "                                       const char *mountpoint,\n"
27141 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
27142 "\n"
27143 msgstr ""
27144
27145 #. type: textblock
27146 #: ../src/guestfs-actions.pod:938
27147 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
27148 msgstr ""
27149
27150 #. type: =head2
27151 #: ../src/guestfs-actions.pod:942
27152 msgid "guestfs_case_sensitive_path"
27153 msgstr ""
27154
27155 #. type: verbatim
27156 #: ../src/guestfs-actions.pod:944
27157 #, no-wrap
27158 msgid ""
27159 " char *\n"
27160 " guestfs_case_sensitive_path (guestfs_h *g,\n"
27161 "                              const char *path);\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../src/guestfs-actions.pod:970
27167 msgid ""
27168 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
27169 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
27170 "how the directories were originally created under Windows)."
27171 msgstr ""
27172
27173 #. type: textblock
27174 #: ../src/guestfs-actions.pod:978
27175 msgid "See also C<guestfs_realpath>."
27176 msgstr ""
27177
27178 #. type: textblock
27179 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8144
27180 msgid "(Added in 1.0.75)"
27181 msgstr ""
27182
27183 #. type: =head2
27184 #: ../src/guestfs-actions.pod:985
27185 msgid "guestfs_cat"
27186 msgstr ""
27187
27188 #. type: verbatim
27189 #: ../src/guestfs-actions.pod:987
27190 #, no-wrap
27191 msgid ""
27192 " char *\n"
27193 " guestfs_cat (guestfs_h *g,\n"
27194 "              const char *path);\n"
27195 "\n"
27196 msgstr ""
27197
27198 #. type: textblock
27199 #: ../src/guestfs-actions.pod:993
27200 msgid ""
27201 "Note that this function cannot correctly handle binary files (specifically, "
27202 "files containing C<\\0> character which is treated as end of string).  For "
27203 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27204 "functions which have a more complex interface."
27205 msgstr ""
27206
27207 #. type: textblock
27208 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4211
27209 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4323
27210 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4810
27211 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:6351
27212 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:8297
27213 #: ../src/guestfs-actions.pod:8311
27214 msgid "(Added in 0.4)"
27215 msgstr ""
27216
27217 #. type: =head2
27218 #: ../src/guestfs-actions.pod:1006
27219 msgid "guestfs_checksum"
27220 msgstr ""
27221
27222 #. type: verbatim
27223 #: ../src/guestfs-actions.pod:1008
27224 #, no-wrap
27225 msgid ""
27226 " char *\n"
27227 " guestfs_checksum (guestfs_h *g,\n"
27228 "                   const char *csumtype,\n"
27229 "                   const char *path);\n"
27230 "\n"
27231 msgstr ""
27232
27233 #. type: textblock
27234 #: ../src/guestfs-actions.pod:1054
27235 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27236 msgstr ""
27237
27238 #. type: textblock
27239 #: ../src/guestfs-actions.pod:1056
27240 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27241 msgstr ""
27242
27243 #. type: textblock
27244 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27245 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3909
27246 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3999
27247 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:8000
27248 msgid "(Added in 1.0.2)"
27249 msgstr ""
27250
27251 #. type: =head2
27252 #: ../src/guestfs-actions.pod:1063
27253 msgid "guestfs_checksum_device"
27254 msgstr ""
27255
27256 #. type: verbatim
27257 #: ../src/guestfs-actions.pod:1065
27258 #, no-wrap
27259 msgid ""
27260 " char *\n"
27261 " guestfs_checksum_device (guestfs_h *g,\n"
27262 "                          const char *csumtype,\n"
27263 "                          const char *device);\n"
27264 "\n"
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../src/guestfs-actions.pod:1070
27269 msgid ""
27270 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27271 "device named C<device>.  For the types of checksums supported see the "
27272 "C<guestfs_checksum> command."
27273 msgstr ""
27274
27275 #. type: textblock
27276 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5783
27277 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5952
27278 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152
27279 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7923
27280 #: ../src/guestfs-actions.pod:8323
27281 msgid "(Added in 1.3.2)"
27282 msgstr ""
27283
27284 #. type: =head2
27285 #: ../src/guestfs-actions.pod:1079
27286 msgid "guestfs_checksums_out"
27287 msgstr ""
27288
27289 #. type: verbatim
27290 #: ../src/guestfs-actions.pod:1081
27291 #, no-wrap
27292 msgid ""
27293 " int\n"
27294 " guestfs_checksums_out (guestfs_h *g,\n"
27295 "                        const char *csumtype,\n"
27296 "                        const char *directory,\n"
27297 "                        const char *sumsfile);\n"
27298 "\n"
27299 msgstr ""
27300
27301 #. type: textblock
27302 #: ../src/guestfs-actions.pod:1101
27303 msgid "(Added in 1.3.7)"
27304 msgstr ""
27305
27306 #. type: =head2
27307 #: ../src/guestfs-actions.pod:1103
27308 msgid "guestfs_chmod"
27309 msgstr ""
27310
27311 #. type: verbatim
27312 #: ../src/guestfs-actions.pod:1105
27313 #, no-wrap
27314 msgid ""
27315 " int\n"
27316 " guestfs_chmod (guestfs_h *g,\n"
27317 "                int mode,\n"
27318 "                const char *path);\n"
27319 "\n"
27320 msgstr ""
27321
27322 #. type: =head2
27323 #: ../src/guestfs-actions.pod:1123
27324 msgid "guestfs_chown"
27325 msgstr ""
27326
27327 #. type: verbatim
27328 #: ../src/guestfs-actions.pod:1125
27329 #, no-wrap
27330 msgid ""
27331 " int\n"
27332 " guestfs_chown (guestfs_h *g,\n"
27333 "                int owner,\n"
27334 "                int group,\n"
27335 "                const char *path);\n"
27336 "\n"
27337 msgstr ""
27338
27339 #. type: =head2
27340 #: ../src/guestfs-actions.pod:1141
27341 msgid "guestfs_command"
27342 msgstr ""
27343
27344 #. type: verbatim
27345 #: ../src/guestfs-actions.pod:1143
27346 #, no-wrap
27347 msgid ""
27348 " char *\n"
27349 " guestfs_command (guestfs_h *g,\n"
27350 "                  char *const *arguments);\n"
27351 "\n"
27352 msgstr ""
27353
27354 #. type: textblock
27355 #: ../src/guestfs-actions.pod:1152
27356 msgid ""
27357 "The single parameter is an argv-style list of arguments.  The first element "
27358 "is the name of the program to run.  Subsequent elements are parameters.  The "
27359 "list must be non-empty (ie. must contain a program name).  Note that the "
27360 "command runs directly, and is I<not> invoked via the shell (see "
27361 "C<guestfs_sh>)."
27362 msgstr ""
27363
27364 #. type: textblock
27365 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27366 #: ../src/guestfs-actions.pod:2027
27367 msgid "(Added in 0.9.1)"
27368 msgstr ""
27369
27370 #. type: =head2
27371 #: ../src/guestfs-actions.pod:1185
27372 msgid "guestfs_command_lines"
27373 msgstr ""
27374
27375 #. type: verbatim
27376 #: ../src/guestfs-actions.pod:1187
27377 #, no-wrap
27378 msgid ""
27379 " char **\n"
27380 " guestfs_command_lines (guestfs_h *g,\n"
27381 "                        char *const *arguments);\n"
27382 "\n"
27383 msgstr ""
27384
27385 #. type: textblock
27386 #: ../src/guestfs-actions.pod:1191
27387 msgid ""
27388 "This is the same as C<guestfs_command>, but splits the result into a list of "
27389 "lines."
27390 msgstr ""
27391
27392 #. type: textblock
27393 #: ../src/guestfs-actions.pod:1194
27394 msgid "See also: C<guestfs_sh_lines>"
27395 msgstr ""
27396
27397 #. type: =head2
27398 #: ../src/guestfs-actions.pod:1205
27399 msgid "guestfs_compress_device_out"
27400 msgstr ""
27401
27402 #. type: verbatim
27403 #: ../src/guestfs-actions.pod:1207
27404 #, no-wrap
27405 msgid ""
27406 " int\n"
27407 " guestfs_compress_device_out (guestfs_h *g,\n"
27408 "                              const char *ctype,\n"
27409 "                              const char *device,\n"
27410 "                              const char *zdevice,\n"
27411 "                              ...);\n"
27412 "\n"
27413 msgstr ""
27414
27415 #. type: verbatim
27416 #: ../src/guestfs-actions.pod:1219
27417 #, no-wrap
27418 msgid ""
27419 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27420 "\n"
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:1224
27425 msgid ""
27426 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27427 "C<guestfs_compress_out>."
27428 msgstr ""
27429
27430 #. type: textblock
27431 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27432 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7068
27433 msgid "(Added in 1.13.15)"
27434 msgstr ""
27435
27436 #. type: =head2
27437 #: ../src/guestfs-actions.pod:1231
27438 msgid "guestfs_compress_device_out_va"
27439 msgstr ""
27440
27441 #. type: verbatim
27442 #: ../src/guestfs-actions.pod:1233
27443 #, no-wrap
27444 msgid ""
27445 " int\n"
27446 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27447 "                                 const char *ctype,\n"
27448 "                                 const char *device,\n"
27449 "                                 const char *zdevice,\n"
27450 "                                 va_list args);\n"
27451 "\n"
27452 msgstr ""
27453
27454 #. type: textblock
27455 #: ../src/guestfs-actions.pod:1240
27456 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27457 msgstr ""
27458
27459 #. type: =head2
27460 #: ../src/guestfs-actions.pod:1244
27461 msgid "guestfs_compress_device_out_argv"
27462 msgstr ""
27463
27464 #. type: verbatim
27465 #: ../src/guestfs-actions.pod:1246
27466 #, no-wrap
27467 msgid ""
27468 " int\n"
27469 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27470 "                                   const char *ctype,\n"
27471 "                                   const char *device,\n"
27472 "                                   const char *zdevice,\n"
27473 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27474 "\n"
27475 msgstr ""
27476
27477 #. type: textblock
27478 #: ../src/guestfs-actions.pod:1253
27479 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27480 msgstr ""
27481
27482 #. type: =head2
27483 #: ../src/guestfs-actions.pod:1257
27484 msgid "guestfs_compress_out"
27485 msgstr ""
27486
27487 #. type: verbatim
27488 #: ../src/guestfs-actions.pod:1259
27489 #, no-wrap
27490 msgid ""
27491 " int\n"
27492 " guestfs_compress_out (guestfs_h *g,\n"
27493 "                       const char *ctype,\n"
27494 "                       const char *file,\n"
27495 "                       const char *zfile,\n"
27496 "                       ...);\n"
27497 "\n"
27498 msgstr ""
27499
27500 #. type: verbatim
27501 #: ../src/guestfs-actions.pod:1271
27502 #, no-wrap
27503 msgid ""
27504 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27505 "\n"
27506 msgstr ""
27507
27508 #. type: =head2
27509 #: ../src/guestfs-actions.pod:1290
27510 msgid "guestfs_compress_out_va"
27511 msgstr ""
27512
27513 #. type: verbatim
27514 #: ../src/guestfs-actions.pod:1292
27515 #, no-wrap
27516 msgid ""
27517 " int\n"
27518 " guestfs_compress_out_va (guestfs_h *g,\n"
27519 "                          const char *ctype,\n"
27520 "                          const char *file,\n"
27521 "                          const char *zfile,\n"
27522 "                          va_list args);\n"
27523 "\n"
27524 msgstr ""
27525
27526 #. type: textblock
27527 #: ../src/guestfs-actions.pod:1299
27528 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27529 msgstr ""
27530
27531 #. type: =head2
27532 #: ../src/guestfs-actions.pod:1303
27533 msgid "guestfs_compress_out_argv"
27534 msgstr ""
27535
27536 #. type: verbatim
27537 #: ../src/guestfs-actions.pod:1305
27538 #, no-wrap
27539 msgid ""
27540 " int\n"
27541 " guestfs_compress_out_argv (guestfs_h *g,\n"
27542 "                            const char *ctype,\n"
27543 "                            const char *file,\n"
27544 "                            const char *zfile,\n"
27545 "                            const struct guestfs_compress_out_argv *optargs);\n"
27546 "\n"
27547 msgstr ""
27548
27549 #. type: textblock
27550 #: ../src/guestfs-actions.pod:1312
27551 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27552 msgstr ""
27553
27554 #. type: =head2
27555 #: ../src/guestfs-actions.pod:1316
27556 msgid "guestfs_config"
27557 msgstr ""
27558
27559 #. type: verbatim
27560 #: ../src/guestfs-actions.pod:1318
27561 #, no-wrap
27562 msgid ""
27563 " int\n"
27564 " guestfs_config (guestfs_h *g,\n"
27565 "                 const char *qemuparam,\n"
27566 "                 const char *qemuvalue);\n"
27567 "\n"
27568 msgstr ""
27569
27570 #. type: =head2
27571 #: ../src/guestfs-actions.pod:1336
27572 msgid "guestfs_copy_device_to_device"
27573 msgstr ""
27574
27575 #. type: verbatim
27576 #: ../src/guestfs-actions.pod:1338
27577 #, no-wrap
27578 msgid ""
27579 " int\n"
27580 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27581 "                                const char *src,\n"
27582 "                                const char *dest,\n"
27583 "                                ...);\n"
27584 "\n"
27585 msgstr ""
27586
27587 #. type: verbatim
27588 #: ../src/guestfs-actions.pod:1349
27589 #, no-wrap
27590 msgid ""
27591 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27592 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27593 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27594 "\n"
27595 msgstr ""
27596
27597 #. type: textblock
27598 #: ../src/guestfs-actions.pod:1353
27599 msgid ""
27600 "The four calls C<guestfs_copy_device_to_device>, "
27601 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27602 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27603 "destination (device|file)."
27604 msgstr ""
27605
27606 #. type: textblock
27607 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27608 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27609 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27610 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27611 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27612 #: ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:7995
27613 #: ../src/guestfs-actions.pod:8029 ../src/guestfs-actions.pod:8536
27614 #: ../src/guestfs-actions.pod:8559
27615 msgid ""
27616 "This long-running command can generate progress notification messages so "
27617 "that the caller can display a progress bar or indicator.  To receive these "
27618 "messages, the caller must register a progress event callback.  See L<guestfs"
27619 "(3)/GUESTFS_EVENT_PROGRESS>."
27620 msgstr ""
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27624 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27625 #: ../src/guestfs-actions.pod:6208
27626 msgid "(Added in 1.13.25)"
27627 msgstr ""
27628
27629 #. type: =head2
27630 #: ../src/guestfs-actions.pod:1381
27631 msgid "guestfs_copy_device_to_device_va"
27632 msgstr ""
27633
27634 #. type: verbatim
27635 #: ../src/guestfs-actions.pod:1383
27636 #, no-wrap
27637 msgid ""
27638 " int\n"
27639 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27640 "                                   const char *src,\n"
27641 "                                   const char *dest,\n"
27642 "                                   va_list args);\n"
27643 "\n"
27644 msgstr ""
27645
27646 #. type: textblock
27647 #: ../src/guestfs-actions.pod:1389
27648 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27649 msgstr ""
27650
27651 #. type: =head2
27652 #: ../src/guestfs-actions.pod:1393
27653 msgid "guestfs_copy_device_to_device_argv"
27654 msgstr ""
27655
27656 #. type: verbatim
27657 #: ../src/guestfs-actions.pod:1395
27658 #, no-wrap
27659 msgid ""
27660 " int\n"
27661 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27662 "                                     const char *src,\n"
27663 "                                     const char *dest,\n"
27664 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27665 "\n"
27666 msgstr ""
27667
27668 #. type: textblock
27669 #: ../src/guestfs-actions.pod:1401
27670 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27671 msgstr ""
27672
27673 #. type: =head2
27674 #: ../src/guestfs-actions.pod:1405
27675 msgid "guestfs_copy_device_to_file"
27676 msgstr ""
27677
27678 #. type: verbatim
27679 #: ../src/guestfs-actions.pod:1407
27680 #, no-wrap
27681 msgid ""
27682 " int\n"
27683 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27684 "                              const char *src,\n"
27685 "                              const char *dest,\n"
27686 "                              ...);\n"
27687 "\n"
27688 msgstr ""
27689
27690 #. type: verbatim
27691 #: ../src/guestfs-actions.pod:1418
27692 #, no-wrap
27693 msgid ""
27694 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27695 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27696 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27697 "\n"
27698 msgstr ""
27699
27700 #. type: textblock
27701 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27702 #: ../src/guestfs-actions.pod:1528
27703 msgid ""
27704 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27705 msgstr ""
27706
27707 #. type: =head2
27708 #: ../src/guestfs-actions.pod:1434
27709 msgid "guestfs_copy_device_to_file_va"
27710 msgstr ""
27711
27712 #. type: verbatim
27713 #: ../src/guestfs-actions.pod:1436
27714 #, no-wrap
27715 msgid ""
27716 " int\n"
27717 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27718 "                                 const char *src,\n"
27719 "                                 const char *dest,\n"
27720 "                                 va_list args);\n"
27721 "\n"
27722 msgstr ""
27723
27724 #. type: textblock
27725 #: ../src/guestfs-actions.pod:1442
27726 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27727 msgstr ""
27728
27729 #. type: =head2
27730 #: ../src/guestfs-actions.pod:1446
27731 msgid "guestfs_copy_device_to_file_argv"
27732 msgstr ""
27733
27734 #. type: verbatim
27735 #: ../src/guestfs-actions.pod:1448
27736 #, no-wrap
27737 msgid ""
27738 " int\n"
27739 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27740 "                                   const char *src,\n"
27741 "                                   const char *dest,\n"
27742 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27743 "\n"
27744 msgstr ""
27745
27746 #. type: textblock
27747 #: ../src/guestfs-actions.pod:1454
27748 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27749 msgstr ""
27750
27751 #. type: =head2
27752 #: ../src/guestfs-actions.pod:1458
27753 msgid "guestfs_copy_file_to_device"
27754 msgstr ""
27755
27756 #. type: verbatim
27757 #: ../src/guestfs-actions.pod:1460
27758 #, no-wrap
27759 msgid ""
27760 " int\n"
27761 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27762 "                              const char *src,\n"
27763 "                              const char *dest,\n"
27764 "                              ...);\n"
27765 "\n"
27766 msgstr ""
27767
27768 #. type: verbatim
27769 #: ../src/guestfs-actions.pod:1471
27770 #, no-wrap
27771 msgid ""
27772 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27773 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27774 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27775 "\n"
27776 msgstr ""
27777
27778 #. type: =head2
27779 #: ../src/guestfs-actions.pod:1487
27780 msgid "guestfs_copy_file_to_device_va"
27781 msgstr ""
27782
27783 #. type: verbatim
27784 #: ../src/guestfs-actions.pod:1489
27785 #, no-wrap
27786 msgid ""
27787 " int\n"
27788 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27789 "                                 const char *src,\n"
27790 "                                 const char *dest,\n"
27791 "                                 va_list args);\n"
27792 "\n"
27793 msgstr ""
27794
27795 #. type: textblock
27796 #: ../src/guestfs-actions.pod:1495
27797 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27798 msgstr ""
27799
27800 #. type: =head2
27801 #: ../src/guestfs-actions.pod:1499
27802 msgid "guestfs_copy_file_to_device_argv"
27803 msgstr ""
27804
27805 #. type: verbatim
27806 #: ../src/guestfs-actions.pod:1501
27807 #, no-wrap
27808 msgid ""
27809 " int\n"
27810 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27811 "                                   const char *src,\n"
27812 "                                   const char *dest,\n"
27813 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27814 "\n"
27815 msgstr ""
27816
27817 #. type: textblock
27818 #: ../src/guestfs-actions.pod:1507
27819 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27820 msgstr ""
27821
27822 #. type: =head2
27823 #: ../src/guestfs-actions.pod:1511
27824 msgid "guestfs_copy_file_to_file"
27825 msgstr ""
27826
27827 #. type: verbatim
27828 #: ../src/guestfs-actions.pod:1513
27829 #, no-wrap
27830 msgid ""
27831 " int\n"
27832 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27833 "                            const char *src,\n"
27834 "                            const char *dest,\n"
27835 "                            ...);\n"
27836 "\n"
27837 msgstr ""
27838
27839 #. type: verbatim
27840 #: ../src/guestfs-actions.pod:1524
27841 #, no-wrap
27842 msgid ""
27843 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27844 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27845 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27846 "\n"
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../src/guestfs-actions.pod:1531
27851 msgid ""
27852 "This is B<not> the function you want for copying files.  This is for copying "
27853 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27854 "C<guestfs_mv> for general file copying and moving functions."
27855 msgstr ""
27856
27857 #. type: =head2
27858 #: ../src/guestfs-actions.pod:1545
27859 msgid "guestfs_copy_file_to_file_va"
27860 msgstr ""
27861
27862 #. type: verbatim
27863 #: ../src/guestfs-actions.pod:1547
27864 #, no-wrap
27865 msgid ""
27866 " int\n"
27867 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27868 "                               const char *src,\n"
27869 "                               const char *dest,\n"
27870 "                               va_list args);\n"
27871 "\n"
27872 msgstr ""
27873
27874 #. type: textblock
27875 #: ../src/guestfs-actions.pod:1553
27876 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27877 msgstr ""
27878
27879 #. type: =head2
27880 #: ../src/guestfs-actions.pod:1557
27881 msgid "guestfs_copy_file_to_file_argv"
27882 msgstr ""
27883
27884 #. type: verbatim
27885 #: ../src/guestfs-actions.pod:1559
27886 #, no-wrap
27887 msgid ""
27888 " int\n"
27889 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27890 "                                 const char *src,\n"
27891 "                                 const char *dest,\n"
27892 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27893 "\n"
27894 msgstr ""
27895
27896 #. type: textblock
27897 #: ../src/guestfs-actions.pod:1565
27898 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27899 msgstr ""
27900
27901 #. type: =head2
27902 #: ../src/guestfs-actions.pod:1569
27903 msgid "guestfs_copy_size"
27904 msgstr ""
27905
27906 #. type: verbatim
27907 #: ../src/guestfs-actions.pod:1571
27908 #, no-wrap
27909 msgid ""
27910 " int\n"
27911 " guestfs_copy_size (guestfs_h *g,\n"
27912 "                    const char *src,\n"
27913 "                    const char *dest,\n"
27914 "                    int64_t size);\n"
27915 "\n"
27916 msgstr ""
27917
27918 #. type: textblock
27919 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27920 msgid ""
27921 "I<This function is deprecated.> In new code, use the L</"
27922 "guestfs_copy_device_to_device> call instead."
27923 msgstr ""
27924
27925 #. type: textblock
27926 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4837
27927 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:8230
27928 #: ../src/guestfs-actions.pod:8250 ../src/guestfs-actions.pod:8336
27929 msgid "(Added in 1.0.87)"
27930 msgstr ""
27931
27932 #. type: =head2
27933 #: ../src/guestfs-actions.pod:1599
27934 msgid "guestfs_cp"
27935 msgstr ""
27936
27937 #. type: verbatim
27938 #: ../src/guestfs-actions.pod:1601
27939 #, no-wrap
27940 msgid ""
27941 " int\n"
27942 " guestfs_cp (guestfs_h *g,\n"
27943 "             const char *src,\n"
27944 "             const char *dest);\n"
27945 "\n"
27946 msgstr ""
27947
27948 #. type: textblock
27949 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27950 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27951 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5730
27952 #: ../src/guestfs-actions.pod:6222
27953 msgid "(Added in 1.0.18)"
27954 msgstr ""
27955
27956 #. type: =head2
27957 #: ../src/guestfs-actions.pod:1613
27958 msgid "guestfs_cp_a"
27959 msgstr ""
27960
27961 #. type: verbatim
27962 #: ../src/guestfs-actions.pod:1615
27963 #, no-wrap
27964 msgid ""
27965 " int\n"
27966 " guestfs_cp_a (guestfs_h *g,\n"
27967 "               const char *src,\n"
27968 "               const char *dest);\n"
27969 "\n"
27970 msgstr ""
27971
27972 #. type: =head2
27973 #: ../src/guestfs-actions.pod:1627
27974 msgid "guestfs_dd"
27975 msgstr ""
27976
27977 #. type: verbatim
27978 #: ../src/guestfs-actions.pod:1629
27979 #, no-wrap
27980 msgid ""
27981 " int\n"
27982 " guestfs_dd (guestfs_h *g,\n"
27983 "             const char *src,\n"
27984 "             const char *dest);\n"
27985 "\n"
27986 msgstr ""
27987
27988 #. type: textblock
27989 #: ../src/guestfs-actions.pod:1646
27990 msgid ""
27991 "If the destination is a device, it must be as large or larger than the "
27992 "source file or device, otherwise the copy will fail.  This command cannot do "
27993 "partial copies (see C<guestfs_copy_device_to_device>)."
27994 msgstr ""
27995
27996 #. type: =head2
27997 #: ../src/guestfs-actions.pod:1655
27998 msgid "guestfs_df"
27999 msgstr ""
28000
28001 #. type: verbatim
28002 #: ../src/guestfs-actions.pod:1657
28003 #, no-wrap
28004 msgid ""
28005 " char *\n"
28006 " guestfs_df (guestfs_h *g);\n"
28007 "\n"
28008 msgstr ""
28009
28010 #. type: textblock
28011 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28012 msgid ""
28013 "This command is mostly useful for interactive sessions.  It is I<not> "
28014 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28015 "from programs."
28016 msgstr ""
28017
28018 #. type: textblock
28019 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28020 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28021 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28022 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5630
28023 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:7635
28024 #: ../src/guestfs-actions.pod:8376 ../src/guestfs-actions.pod:8389
28025 #: ../src/guestfs-actions.pod:8402
28026 msgid "(Added in 1.0.54)"
28027 msgstr ""
28028
28029 #. type: =head2
28030 #: ../src/guestfs-actions.pod:1671
28031 msgid "guestfs_df_h"
28032 msgstr ""
28033
28034 #. type: verbatim
28035 #: ../src/guestfs-actions.pod:1673
28036 #, no-wrap
28037 msgid ""
28038 " char *\n"
28039 " guestfs_df_h (guestfs_h *g);\n"
28040 "\n"
28041 msgstr ""
28042
28043 #. type: =head2
28044 #: ../src/guestfs-actions.pod:1688
28045 msgid "guestfs_dmesg"
28046 msgstr ""
28047
28048 #. type: verbatim
28049 #: ../src/guestfs-actions.pod:1690
28050 #, no-wrap
28051 msgid ""
28052 " char *\n"
28053 " guestfs_dmesg (guestfs_h *g);\n"
28054 "\n"
28055 msgstr ""
28056
28057 #. type: textblock
28058 #: ../src/guestfs-actions.pod:1697
28059 msgid ""
28060 "Another way to get the same information is to enable verbose messages with "
28061 "C<guestfs_set_verbose> or by setting the environment variable "
28062 "C<LIBGUESTFS_DEBUG=1> before running the program."
28063 msgstr ""
28064
28065 #. type: =head2
28066 #: ../src/guestfs-actions.pod:1707
28067 msgid "guestfs_download"
28068 msgstr ""
28069
28070 #. type: verbatim
28071 #: ../src/guestfs-actions.pod:1709
28072 #, no-wrap
28073 msgid ""
28074 " int\n"
28075 " guestfs_download (guestfs_h *g,\n"
28076 "                   const char *remotefilename,\n"
28077 "                   const char *filename);\n"
28078 "\n"
28079 msgstr ""
28080
28081 #. type: textblock
28082 #: ../src/guestfs-actions.pod:1719
28083 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28084 msgstr ""
28085
28086 #. type: =head2
28087 #: ../src/guestfs-actions.pod:1730
28088 msgid "guestfs_download_offset"
28089 msgstr ""
28090
28091 #. type: verbatim
28092 #: ../src/guestfs-actions.pod:1732
28093 #, no-wrap
28094 msgid ""
28095 " int\n"
28096 " guestfs_download_offset (guestfs_h *g,\n"
28097 "                          const char *remotefilename,\n"
28098 "                          const char *filename,\n"
28099 "                          int64_t offset,\n"
28100 "                          int64_t size);\n"
28101 "\n"
28102 msgstr ""
28103
28104 #. type: textblock
28105 #: ../src/guestfs-actions.pod:1745
28106 msgid ""
28107 "Note that there is no limit on the amount of data that can be downloaded "
28108 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28109 "full amount unless an error occurs."
28110 msgstr ""
28111
28112 #. type: textblock
28113 #: ../src/guestfs-actions.pod:1750
28114 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28115 msgstr ""
28116
28117 #. type: textblock
28118 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8034
28119 msgid "(Added in 1.5.17)"
28120 msgstr ""
28121
28122 #. type: =head2
28123 #: ../src/guestfs-actions.pod:1761
28124 msgid "guestfs_drop_caches"
28125 msgstr ""
28126
28127 #. type: verbatim
28128 #: ../src/guestfs-actions.pod:1763
28129 #, no-wrap
28130 msgid ""
28131 " int\n"
28132 " guestfs_drop_caches (guestfs_h *g,\n"
28133 "                      int whattodrop);\n"
28134 "\n"
28135 msgstr ""
28136
28137 #. type: =head2
28138 #: ../src/guestfs-actions.pod:1781
28139 msgid "guestfs_du"
28140 msgstr ""
28141
28142 #. type: verbatim
28143 #: ../src/guestfs-actions.pod:1783
28144 #, no-wrap
28145 msgid ""
28146 " int64_t\n"
28147 " guestfs_du (guestfs_h *g,\n"
28148 "             const char *path);\n"
28149 "\n"
28150 msgstr ""
28151
28152 #. type: =head2
28153 #: ../src/guestfs-actions.pod:1806
28154 msgid "guestfs_e2fsck_f"
28155 msgstr ""
28156
28157 #. type: verbatim
28158 #: ../src/guestfs-actions.pod:1808
28159 #, no-wrap
28160 msgid ""
28161 " int\n"
28162 " guestfs_e2fsck_f (guestfs_h *g,\n"
28163 "                   const char *device);\n"
28164 "\n"
28165 msgstr ""
28166
28167 #. type: textblock
28168 #: ../src/guestfs-actions.pod:1816
28169 msgid ""
28170 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
28171 "Normally you should use C<guestfs_fsck>."
28172 msgstr ""
28173
28174 #. type: textblock
28175 #: ../src/guestfs-actions.pod:1821
28176 msgid "(Added in 1.0.29)"
28177 msgstr ""
28178
28179 #. type: =head2
28180 #: ../src/guestfs-actions.pod:1823
28181 msgid "guestfs_echo_daemon"
28182 msgstr ""
28183
28184 #. type: verbatim
28185 #: ../src/guestfs-actions.pod:1825
28186 #, no-wrap
28187 msgid ""
28188 " char *\n"
28189 " guestfs_echo_daemon (guestfs_h *g,\n"
28190 "                      char *const *words);\n"
28191 "\n"
28192 msgstr ""
28193
28194 #. type: textblock
28195 #: ../src/guestfs-actions.pod:1834
28196 msgid "See also C<guestfs_ping_daemon>."
28197 msgstr ""
28198
28199 #. type: textblock
28200 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28201 #: ../src/guestfs-actions.pod:7092
28202 msgid "(Added in 1.0.69)"
28203 msgstr ""
28204
28205 #. type: =head2
28206 #: ../src/guestfs-actions.pod:1841
28207 msgid "guestfs_egrep"
28208 msgstr ""
28209
28210 #. type: verbatim
28211 #: ../src/guestfs-actions.pod:1843
28212 #, no-wrap
28213 msgid ""
28214 " char **\n"
28215 " guestfs_egrep (guestfs_h *g,\n"
28216 "                const char *regex,\n"
28217 "                const char *path);\n"
28218 "\n"
28219 msgstr ""
28220
28221 #. type: textblock
28222 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28223 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28224 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28225 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28226 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28227 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28228 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4336
28229 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4363
28230 #: ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5518
28231 #: ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6605
28232 #: ../src/guestfs-actions.pod:7479 ../src/guestfs-actions.pod:7491
28233 #: ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7517
28234 #: ../src/guestfs-actions.pod:7539 ../src/guestfs-actions.pod:7552
28235 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7578
28236 #: ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8513
28237 #: ../src/guestfs-actions.pod:8604 ../src/guestfs-actions.pod:8623
28238 #: ../src/guestfs-actions.pod:8669 ../src/guestfs-actions.pod:8688
28239 msgid "(Added in 1.0.66)"
28240 msgstr ""
28241
28242 #. type: =head2
28243 #: ../src/guestfs-actions.pod:1860
28244 msgid "guestfs_egrepi"
28245 msgstr ""
28246
28247 #. type: verbatim
28248 #: ../src/guestfs-actions.pod:1862
28249 #, no-wrap
28250 msgid ""
28251 " char **\n"
28252 " guestfs_egrepi (guestfs_h *g,\n"
28253 "                 const char *regex,\n"
28254 "                 const char *path);\n"
28255 "\n"
28256 msgstr ""
28257
28258 #. type: =head2
28259 #: ../src/guestfs-actions.pod:1879
28260 msgid "guestfs_equal"
28261 msgstr ""
28262
28263 #. type: verbatim
28264 #: ../src/guestfs-actions.pod:1881
28265 #, no-wrap
28266 msgid ""
28267 " int\n"
28268 " guestfs_equal (guestfs_h *g,\n"
28269 "                const char *file1,\n"
28270 "                const char *file2);\n"
28271 "\n"
28272 msgstr ""
28273
28274 #. type: =head2
28275 #: ../src/guestfs-actions.pod:1895
28276 msgid "guestfs_exists"
28277 msgstr ""
28278
28279 #. type: verbatim
28280 #: ../src/guestfs-actions.pod:1897
28281 #, no-wrap
28282 msgid ""
28283 " int\n"
28284 " guestfs_exists (guestfs_h *g,\n"
28285 "                 const char *path);\n"
28286 "\n"
28287 msgstr ""
28288
28289 #. type: textblock
28290 #: ../src/guestfs-actions.pod:1904
28291 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28292 msgstr ""
28293
28294 #. type: =head2
28295 #: ../src/guestfs-actions.pod:1910
28296 msgid "guestfs_fallocate"
28297 msgstr ""
28298
28299 #. type: verbatim
28300 #: ../src/guestfs-actions.pod:1912
28301 #, no-wrap
28302 msgid ""
28303 " int\n"
28304 " guestfs_fallocate (guestfs_h *g,\n"
28305 "                    const char *path,\n"
28306 "                    int len);\n"
28307 "\n"
28308 msgstr ""
28309
28310 #. type: textblock
28311 #: ../src/guestfs-actions.pod:1917
28312 msgid ""
28313 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28314 "call instead."
28315 msgstr ""
28316
28317 #. type: =head2
28318 #: ../src/guestfs-actions.pod:1936
28319 msgid "guestfs_fallocate64"
28320 msgstr ""
28321
28322 #. type: verbatim
28323 #: ../src/guestfs-actions.pod:1938
28324 #, no-wrap
28325 msgid ""
28326 " int\n"
28327 " guestfs_fallocate64 (guestfs_h *g,\n"
28328 "                      const char *path,\n"
28329 "                      int64_t len);\n"
28330 "\n"
28331 msgstr ""
28332
28333 #. type: textblock
28334 #: ../src/guestfs-actions.pod:1947
28335 msgid ""
28336 "Note that this call allocates disk blocks for the file.  To create a sparse "
28337 "file use C<guestfs_truncate_size> instead."
28338 msgstr ""
28339
28340 #. type: textblock
28341 #: ../src/guestfs-actions.pod:1950
28342 msgid ""
28343 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28344 "oversight it only allowed 30 bit lengths to be specified, effectively "
28345 "limiting the maximum size of files created through that call to 1GB."
28346 msgstr ""
28347
28348 #. type: textblock
28349 #: ../src/guestfs-actions.pod:1961
28350 msgid "(Added in 1.3.17)"
28351 msgstr ""
28352
28353 #. type: =head2
28354 #: ../src/guestfs-actions.pod:1963
28355 msgid "guestfs_fgrep"
28356 msgstr ""
28357
28358 #. type: verbatim
28359 #: ../src/guestfs-actions.pod:1965
28360 #, no-wrap
28361 msgid ""
28362 " char **\n"
28363 " guestfs_fgrep (guestfs_h *g,\n"
28364 "                const char *pattern,\n"
28365 "                const char *path);\n"
28366 "\n"
28367 msgstr ""
28368
28369 #. type: =head2
28370 #: ../src/guestfs-actions.pod:1982
28371 msgid "guestfs_fgrepi"
28372 msgstr ""
28373
28374 #. type: verbatim
28375 #: ../src/guestfs-actions.pod:1984
28376 #, no-wrap
28377 msgid ""
28378 " char **\n"
28379 " guestfs_fgrepi (guestfs_h *g,\n"
28380 "                 const char *pattern,\n"
28381 "                 const char *path);\n"
28382 "\n"
28383 msgstr ""
28384
28385 #. type: =head2
28386 #: ../src/guestfs-actions.pod:2001
28387 msgid "guestfs_file"
28388 msgstr ""
28389
28390 #. type: verbatim
28391 #: ../src/guestfs-actions.pod:2003
28392 #, no-wrap
28393 msgid ""
28394 " char *\n"
28395 " guestfs_file (guestfs_h *g,\n"
28396 "               const char *path);\n"
28397 "\n"
28398 msgstr ""
28399
28400 #. type: textblock
28401 #: ../src/guestfs-actions.pod:2021
28402 msgid ""
28403 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28404 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28405 msgstr ""
28406
28407 #. type: =head2
28408 #: ../src/guestfs-actions.pod:2029
28409 msgid "guestfs_file_architecture"
28410 msgstr ""
28411
28412 #. type: verbatim
28413 #: ../src/guestfs-actions.pod:2031
28414 #, no-wrap
28415 msgid ""
28416 " char *\n"
28417 " guestfs_file_architecture (guestfs_h *g,\n"
28418 "                            const char *filename);\n"
28419 "\n"
28420 msgstr ""
28421
28422 #. type: textblock
28423 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28424 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28425 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28426 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28427 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28428 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3880
28429 #: ../src/guestfs-actions.pod:4012
28430 msgid "(Added in 1.5.3)"
28431 msgstr ""
28432
28433 #. type: =head2
28434 #: ../src/guestfs-actions.pod:2141
28435 msgid "guestfs_filesize"
28436 msgstr ""
28437
28438 #. type: verbatim
28439 #: ../src/guestfs-actions.pod:2143
28440 #, no-wrap
28441 msgid ""
28442 " int64_t\n"
28443 " guestfs_filesize (guestfs_h *g,\n"
28444 "                   const char *file);\n"
28445 "\n"
28446 msgstr ""
28447
28448 #. type: textblock
28449 #: ../src/guestfs-actions.pod:2149
28450 msgid ""
28451 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28452 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28453 "devices, use C<guestfs_blockdev_getsize64>."
28454 msgstr ""
28455
28456 #. type: textblock
28457 #: ../src/guestfs-actions.pod:2155
28458 msgid "(Added in 1.0.82)"
28459 msgstr ""
28460
28461 #. type: =head2
28462 #: ../src/guestfs-actions.pod:2157
28463 msgid "guestfs_fill"
28464 msgstr ""
28465
28466 #. type: verbatim
28467 #: ../src/guestfs-actions.pod:2159
28468 #, no-wrap
28469 msgid ""
28470 " int\n"
28471 " guestfs_fill (guestfs_h *g,\n"
28472 "               int c,\n"
28473 "               int len,\n"
28474 "               const char *path);\n"
28475 "\n"
28476 msgstr ""
28477
28478 #. type: textblock
28479 #: ../src/guestfs-actions.pod:2169
28480 msgid ""
28481 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28482 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28483 "bytes use C<guestfs_fill_pattern>."
28484 msgstr ""
28485
28486 #. type: textblock
28487 #: ../src/guestfs-actions.pod:2181
28488 msgid "(Added in 1.0.79)"
28489 msgstr ""
28490
28491 #. type: =head2
28492 #: ../src/guestfs-actions.pod:2183
28493 msgid "guestfs_fill_pattern"
28494 msgstr ""
28495
28496 #. type: verbatim
28497 #: ../src/guestfs-actions.pod:2185
28498 #, no-wrap
28499 msgid ""
28500 " int\n"
28501 " guestfs_fill_pattern (guestfs_h *g,\n"
28502 "                       const char *pattern,\n"
28503 "                       int len,\n"
28504 "                       const char *path);\n"
28505 "\n"
28506 msgstr ""
28507
28508 #. type: textblock
28509 #: ../src/guestfs-actions.pod:2191
28510 msgid ""
28511 "This function is like C<guestfs_fill> except that it creates a new file of "
28512 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28513 "pattern is truncated if necessary to ensure the length of the file is "
28514 "exactly C<len> bytes."
28515 msgstr ""
28516
28517 #. type: textblock
28518 #: ../src/guestfs-actions.pod:2203
28519 msgid "(Added in 1.3.12)"
28520 msgstr ""
28521
28522 #. type: =head2
28523 #: ../src/guestfs-actions.pod:2205
28524 msgid "guestfs_find"
28525 msgstr ""
28526
28527 #. type: verbatim
28528 #: ../src/guestfs-actions.pod:2207
28529 #, no-wrap
28530 msgid ""
28531 " char **\n"
28532 " guestfs_find (guestfs_h *g,\n"
28533 "               const char *directory);\n"
28534 "\n"
28535 msgstr ""
28536
28537 #. type: textblock
28538 #: ../src/guestfs-actions.pod:2223
28539 msgid ""
28540 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28541 msgstr ""
28542
28543 #. type: textblock
28544 #: ../src/guestfs-actions.pod:2236
28545 msgid "See also C<guestfs_find0>."
28546 msgstr ""
28547
28548 #. type: textblock
28549 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4774
28550 #: ../src/guestfs-actions.pod:6640
28551 msgid "(Added in 1.0.27)"
28552 msgstr ""
28553
28554 #. type: =head2
28555 #: ../src/guestfs-actions.pod:2247
28556 msgid "guestfs_find0"
28557 msgstr ""
28558
28559 #. type: verbatim
28560 #: ../src/guestfs-actions.pod:2249
28561 #, no-wrap
28562 msgid ""
28563 " int\n"
28564 " guestfs_find0 (guestfs_h *g,\n"
28565 "                const char *directory,\n"
28566 "                const char *files);\n"
28567 "\n"
28568 msgstr ""
28569
28570 #. type: textblock
28571 #: ../src/guestfs-actions.pod:2258
28572 msgid ""
28573 "This command works the same way as C<guestfs_find> with the following "
28574 "exceptions:"
28575 msgstr ""
28576
28577 #. type: textblock
28578 #: ../src/guestfs-actions.pod:2285
28579 msgid "(Added in 1.0.74)"
28580 msgstr ""
28581
28582 #. type: =head2
28583 #: ../src/guestfs-actions.pod:2287
28584 msgid "guestfs_findfs_label"
28585 msgstr ""
28586
28587 #. type: verbatim
28588 #: ../src/guestfs-actions.pod:2289
28589 #, no-wrap
28590 msgid ""
28591 " char *\n"
28592 " guestfs_findfs_label (guestfs_h *g,\n"
28593 "                       const char *label);\n"
28594 "\n"
28595 msgstr ""
28596
28597 #. type: textblock
28598 #: ../src/guestfs-actions.pod:2297
28599 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28600 msgstr ""
28601
28602 #. type: =head2
28603 #: ../src/guestfs-actions.pod:2304
28604 msgid "guestfs_findfs_uuid"
28605 msgstr ""
28606
28607 #. type: verbatim
28608 #: ../src/guestfs-actions.pod:2306
28609 #, no-wrap
28610 msgid ""
28611 " char *\n"
28612 " guestfs_findfs_uuid (guestfs_h *g,\n"
28613 "                      const char *uuid);\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: textblock
28618 #: ../src/guestfs-actions.pod:2314
28619 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28620 msgstr ""
28621
28622 #. type: =head2
28623 #: ../src/guestfs-actions.pod:2321
28624 msgid "guestfs_fsck"
28625 msgstr ""
28626
28627 #. type: verbatim
28628 #: ../src/guestfs-actions.pod:2323
28629 #, no-wrap
28630 msgid ""
28631 " int\n"
28632 " guestfs_fsck (guestfs_h *g,\n"
28633 "               const char *fstype,\n"
28634 "               const char *device);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: textblock
28639 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8541
28640 msgid "(Added in 1.0.16)"
28641 msgstr ""
28642
28643 #. type: =head2
28644 #: ../src/guestfs-actions.pod:2360
28645 msgid "guestfs_get_append"
28646 msgstr ""
28647
28648 #. type: verbatim
28649 #: ../src/guestfs-actions.pod:2362
28650 #, no-wrap
28651 msgid ""
28652 " const char *\n"
28653 " guestfs_get_append (guestfs_h *g);\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: textblock
28658 #: ../src/guestfs-actions.pod:2370
28659 msgid ""
28660 "This function returns a string which may be NULL.  There is no way to return "
28661 "an error from this function.  The string is owned by the guest handle and "
28662 "must I<not> be freed."
28663 msgstr ""
28664
28665 #. type: textblock
28666 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6318
28667 #: ../src/guestfs-actions.pod:6797 ../src/guestfs-actions.pod:7246
28668 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281
28669 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:8181
28670 #: ../src/guestfs-actions.pod:8196 ../src/guestfs-actions.pod:8585
28671 msgid "(Added in 1.0.26)"
28672 msgstr ""
28673
28674 #. type: =head2
28675 #: ../src/guestfs-actions.pod:2376
28676 msgid "guestfs_get_attach_method"
28677 msgstr ""
28678
28679 #. type: verbatim
28680 #: ../src/guestfs-actions.pod:2378
28681 #, no-wrap
28682 msgid ""
28683 " char *\n"
28684 " guestfs_get_attach_method (guestfs_h *g);\n"
28685 "\n"
28686 msgstr ""
28687
28688 #. type: textblock
28689 #: ../src/guestfs-actions.pod:2381
28690 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28691 msgstr ""
28692
28693 #. type: textblock
28694 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6827
28695 msgid "(Added in 1.9.8)"
28696 msgstr ""
28697
28698 #. type: =head2
28699 #: ../src/guestfs-actions.pod:2388
28700 msgid "guestfs_get_autosync"
28701 msgstr ""
28702
28703 #. type: verbatim
28704 #: ../src/guestfs-actions.pod:2390
28705 #, no-wrap
28706 msgid ""
28707 " int\n"
28708 " guestfs_get_autosync (guestfs_h *g);\n"
28709 "\n"
28710 msgstr ""
28711
28712 #. type: =head2
28713 #: ../src/guestfs-actions.pod:2399
28714 msgid "guestfs_get_direct"
28715 msgstr ""
28716
28717 #. type: verbatim
28718 #: ../src/guestfs-actions.pod:2401
28719 #, no-wrap
28720 msgid ""
28721 " int\n"
28722 " guestfs_get_direct (guestfs_h *g);\n"
28723 "\n"
28724 msgstr ""
28725
28726 #. type: textblock
28727 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6868
28728 msgid "(Added in 1.0.72)"
28729 msgstr ""
28730
28731 #. type: =head2
28732 #: ../src/guestfs-actions.pod:2410
28733 msgid "guestfs_get_e2label"
28734 msgstr ""
28735
28736 #. type: verbatim
28737 #: ../src/guestfs-actions.pod:2412
28738 #, no-wrap
28739 msgid ""
28740 " char *\n"
28741 " guestfs_get_e2label (guestfs_h *g,\n"
28742 "                      const char *device);\n"
28743 "\n"
28744 msgstr ""
28745
28746 #. type: textblock
28747 #: ../src/guestfs-actions.pod:2416
28748 msgid ""
28749 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28750 "call instead."
28751 msgstr ""
28752
28753 #. type: textblock
28754 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28755 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6905
28756 msgid "(Added in 1.0.15)"
28757 msgstr ""
28758
28759 #. type: =head2
28760 #: ../src/guestfs-actions.pod:2431
28761 msgid "guestfs_get_e2uuid"
28762 msgstr ""
28763
28764 #. type: verbatim
28765 #: ../src/guestfs-actions.pod:2433
28766 #, no-wrap
28767 msgid ""
28768 " char *\n"
28769 " guestfs_get_e2uuid (guestfs_h *g,\n"
28770 "                     const char *device);\n"
28771 "\n"
28772 msgstr ""
28773
28774 #. type: textblock
28775 #: ../src/guestfs-actions.pod:2437
28776 msgid ""
28777 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28778 "call instead."
28779 msgstr ""
28780
28781 #. type: =head2
28782 #: ../src/guestfs-actions.pod:2452
28783 msgid "guestfs_get_memsize"
28784 msgstr ""
28785
28786 #. type: verbatim
28787 #: ../src/guestfs-actions.pod:2454
28788 #, no-wrap
28789 msgid ""
28790 " int\n"
28791 " guestfs_get_memsize (guestfs_h *g);\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: textblock
28796 #: ../src/guestfs-actions.pod:2460
28797 msgid ""
28798 "If C<guestfs_set_memsize> was not called on this handle, and if "
28799 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28800 "value for memsize."
28801 msgstr ""
28802
28803 #. type: textblock
28804 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5214
28805 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
28806 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5473
28807 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5503
28808 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6926
28809 #: ../src/guestfs-actions.pod:7216 ../src/guestfs-actions.pod:7950
28810 msgid "(Added in 1.0.55)"
28811 msgstr ""
28812
28813 #. type: =head2
28814 #: ../src/guestfs-actions.pod:2471
28815 msgid "guestfs_get_network"
28816 msgstr ""
28817
28818 #. type: verbatim
28819 #: ../src/guestfs-actions.pod:2473
28820 #, no-wrap
28821 msgid ""
28822 " int\n"
28823 " guestfs_get_network (guestfs_h *g);\n"
28824 "\n"
28825 msgstr ""
28826
28827 #. type: textblock
28828 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6945
28829 msgid "(Added in 1.5.4)"
28830 msgstr ""
28831
28832 #. type: =head2
28833 #: ../src/guestfs-actions.pod:2482
28834 msgid "guestfs_get_path"
28835 msgstr ""
28836
28837 #. type: verbatim
28838 #: ../src/guestfs-actions.pod:2484
28839 #, no-wrap
28840 msgid ""
28841 " const char *\n"
28842 " guestfs_get_path (guestfs_h *g);\n"
28843 "\n"
28844 msgstr ""
28845
28846 #. type: textblock
28847 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28848 msgid ""
28849 "This function returns a string, or NULL on error.  The string is owned by "
28850 "the guest handle and must I<not> be freed."
28851 msgstr ""
28852
28853 #. type: =head2
28854 #: ../src/guestfs-actions.pod:2497
28855 msgid "guestfs_get_pgroup"
28856 msgstr ""
28857
28858 #. type: verbatim
28859 #: ../src/guestfs-actions.pod:2499
28860 #, no-wrap
28861 msgid ""
28862 " int\n"
28863 " guestfs_get_pgroup (guestfs_h *g);\n"
28864 "\n"
28865 msgstr ""
28866
28867 #. type: textblock
28868 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6981
28869 #: ../src/guestfs-actions.pod:8442
28870 msgid "(Added in 1.11.18)"
28871 msgstr ""
28872
28873 #. type: =head2
28874 #: ../src/guestfs-actions.pod:2508
28875 msgid "guestfs_get_pid"
28876 msgstr ""
28877
28878 #. type: verbatim
28879 #: ../src/guestfs-actions.pod:2510
28880 #, no-wrap
28881 msgid ""
28882 " int\n"
28883 " guestfs_get_pid (guestfs_h *g);\n"
28884 "\n"
28885 msgstr ""
28886
28887 #. type: textblock
28888 #: ../src/guestfs-actions.pod:2520
28889 msgid "(Added in 1.0.56)"
28890 msgstr ""
28891
28892 #. type: =head2
28893 #: ../src/guestfs-actions.pod:2522
28894 msgid "guestfs_get_qemu"
28895 msgstr ""
28896
28897 #. type: verbatim
28898 #: ../src/guestfs-actions.pod:2524
28899 #, no-wrap
28900 msgid ""
28901 " const char *\n"
28902 " guestfs_get_qemu (guestfs_h *g);\n"
28903 "\n"
28904 msgstr ""
28905
28906 #. type: textblock
28907 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7009
28908 msgid "(Added in 1.0.6)"
28909 msgstr ""
28910
28911 #. type: =head2
28912 #: ../src/guestfs-actions.pod:2537
28913 msgid "guestfs_get_recovery_proc"
28914 msgstr ""
28915
28916 #. type: verbatim
28917 #: ../src/guestfs-actions.pod:2539
28918 #, no-wrap
28919 msgid ""
28920 " int\n"
28921 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28922 "\n"
28923 msgstr ""
28924
28925 #. type: textblock
28926 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4134
28927 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4872
28928 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:6248
28929 #: ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:7033
28930 #: ../src/guestfs-actions.pod:7731 ../src/guestfs-actions.pod:7751
28931 #: ../src/guestfs-actions.pod:8065
28932 msgid "(Added in 1.0.77)"
28933 msgstr ""
28934
28935 #. type: =head2
28936 #: ../src/guestfs-actions.pod:2548
28937 msgid "guestfs_get_selinux"
28938 msgstr ""
28939
28940 #. type: verbatim
28941 #: ../src/guestfs-actions.pod:2550
28942 #, no-wrap
28943 msgid ""
28944 " int\n"
28945 " guestfs_get_selinux (guestfs_h *g);\n"
28946 "\n"
28947 msgstr ""
28948
28949 #. type: textblock
28950 #: ../src/guestfs-actions.pod:2553
28951 msgid ""
28952 "This returns the current setting of the selinux flag which is passed to the "
28953 "appliance at boot time.  See C<guestfs_set_selinux>."
28954 msgstr ""
28955
28956 #. type: textblock
28957 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28958 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7126
28959 msgid "(Added in 1.0.67)"
28960 msgstr ""
28961
28962 #. type: =head2
28963 #: ../src/guestfs-actions.pod:2563
28964 msgid "guestfs_get_smp"
28965 msgstr ""
28966
28967 #. type: verbatim
28968 #: ../src/guestfs-actions.pod:2565
28969 #, no-wrap
28970 msgid ""
28971 " int\n"
28972 " guestfs_get_smp (guestfs_h *g);\n"
28973 "\n"
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:2574
28978 msgid "guestfs_get_state"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:2576
28983 #, no-wrap
28984 msgid ""
28985 " int\n"
28986 " guestfs_get_state (guestfs_h *g);\n"
28987 "\n"
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:2588
28992 msgid "guestfs_get_trace"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:2590
28997 #, no-wrap
28998 msgid ""
28999 " int\n"
29000 " guestfs_get_trace (guestfs_h *g);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: =head2
29005 #: ../src/guestfs-actions.pod:2599
29006 msgid "guestfs_get_umask"
29007 msgstr ""
29008
29009 #. type: verbatim
29010 #: ../src/guestfs-actions.pod:2601
29011 #, no-wrap
29012 msgid ""
29013 " int\n"
29014 " guestfs_get_umask (guestfs_h *g);\n"
29015 "\n"
29016 msgstr ""
29017
29018 #. type: textblock
29019 #: ../src/guestfs-actions.pod:2604
29020 msgid ""
29021 "Return the current umask.  By default the umask is C<022> unless it has been "
29022 "set by calling C<guestfs_umask>."
29023 msgstr ""
29024
29025 #. type: =head2
29026 #: ../src/guestfs-actions.pod:2611
29027 msgid "guestfs_get_verbose"
29028 msgstr ""
29029
29030 #. type: verbatim
29031 #: ../src/guestfs-actions.pod:2613
29032 #, no-wrap
29033 msgid ""
29034 " int\n"
29035 " guestfs_get_verbose (guestfs_h *g);\n"
29036 "\n"
29037 msgstr ""
29038
29039 #. type: =head2
29040 #: ../src/guestfs-actions.pod:2622
29041 msgid "guestfs_getcon"
29042 msgstr ""
29043
29044 #. type: verbatim
29045 #: ../src/guestfs-actions.pod:2624
29046 #, no-wrap
29047 msgid ""
29048 " char *\n"
29049 " guestfs_getcon (guestfs_h *g);\n"
29050 "\n"
29051 msgstr ""
29052
29053 #. type: textblock
29054 #: ../src/guestfs-actions.pod:2629
29055 msgid ""
29056 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29057 msgstr ""
29058
29059 #. type: =head2
29060 #: ../src/guestfs-actions.pod:2637
29061 msgid "guestfs_getxattr"
29062 msgstr ""
29063
29064 #. type: verbatim
29065 #: ../src/guestfs-actions.pod:2639
29066 #, no-wrap
29067 msgid ""
29068 " char *\n"
29069 " guestfs_getxattr (guestfs_h *g,\n"
29070 "                   const char *path,\n"
29071 "                   const char *name,\n"
29072 "                   size_t *size_r);\n"
29073 "\n"
29074 msgstr ""
29075
29076 #. type: textblock
29077 #: ../src/guestfs-actions.pod:2645
29078 msgid ""
29079 "Get a single extended attribute from file C<path> named C<name>.  This call "
29080 "follows symlinks.  If you want to lookup an extended attribute for the "
29081 "symlink itself, use C<guestfs_lgetxattr>."
29082 msgstr ""
29083
29084 #. type: textblock
29085 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4148
29086 msgid ""
29087 "Normally it is better to get all extended attributes from a file in one go "
29088 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29089 "implementations are buggy and do not provide a way to list out attributes.  "
29090 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29091 "extended attributes you want in advance and call this function."
29092 msgstr ""
29093
29094 #. type: textblock
29095 #: ../src/guestfs-actions.pod:2659
29096 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29097 msgstr ""
29098
29099 #. type: textblock
29100 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29101 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4160
29102 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6267
29103 #: ../src/guestfs-actions.pod:6448
29104 msgid ""
29105 "This function returns a buffer, or NULL on error.  The size of the returned "
29106 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29107 "after use>."
29108 msgstr ""
29109
29110 #. type: textblock
29111 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4164
29112 msgid "(Added in 1.7.24)"
29113 msgstr ""
29114
29115 #. type: =head2
29116 #: ../src/guestfs-actions.pod:2667
29117 msgid "guestfs_getxattrs"
29118 msgstr ""
29119
29120 #. type: verbatim
29121 #: ../src/guestfs-actions.pod:2669
29122 #, no-wrap
29123 msgid ""
29124 " struct guestfs_xattr_list *\n"
29125 " guestfs_getxattrs (guestfs_h *g,\n"
29126 "                    const char *path);\n"
29127 "\n"
29128 msgstr ""
29129
29130 #. type: textblock
29131 #: ../src/guestfs-actions.pod:2679
29132 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
29133 msgstr ""
29134
29135 #. type: textblock
29136 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4176
29137 #: ../src/guestfs-actions.pod:4868
29138 msgid ""
29139 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
29140 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
29141 msgstr ""
29142
29143 #. type: textblock
29144 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4180
29145 #: ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4428
29146 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:7145
29147 #: ../src/guestfs-actions.pod:8650
29148 msgid "(Added in 1.0.59)"
29149 msgstr ""
29150
29151 #. type: =head2
29152 #: ../src/guestfs-actions.pod:2687
29153 msgid "guestfs_glob_expand"
29154 msgstr ""
29155
29156 #. type: verbatim
29157 #: ../src/guestfs-actions.pod:2689
29158 #, no-wrap
29159 msgid ""
29160 " char **\n"
29161 " guestfs_glob_expand (guestfs_h *g,\n"
29162 "                      const char *pattern);\n"
29163 "\n"
29164 msgstr ""
29165
29166 #. type: textblock
29167 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7329
29168 #: ../src/guestfs-actions.pod:7346
29169 msgid "(Added in 1.0.50)"
29170 msgstr ""
29171
29172 #. type: =head2
29173 #: ../src/guestfs-actions.pod:2710
29174 msgid "guestfs_grep"
29175 msgstr ""
29176
29177 #. type: verbatim
29178 #: ../src/guestfs-actions.pod:2712
29179 #, no-wrap
29180 msgid ""
29181 " char **\n"
29182 " guestfs_grep (guestfs_h *g,\n"
29183 "               const char *regex,\n"
29184 "               const char *path);\n"
29185 "\n"
29186 msgstr ""
29187
29188 #. type: =head2
29189 #: ../src/guestfs-actions.pod:2729
29190 msgid "guestfs_grepi"
29191 msgstr ""
29192
29193 #. type: verbatim
29194 #: ../src/guestfs-actions.pod:2731
29195 #, no-wrap
29196 msgid ""
29197 " char **\n"
29198 " guestfs_grepi (guestfs_h *g,\n"
29199 "                const char *regex,\n"
29200 "                const char *path);\n"
29201 "\n"
29202 msgstr ""
29203
29204 #. type: =head2
29205 #: ../src/guestfs-actions.pod:2748
29206 msgid "guestfs_grub_install"
29207 msgstr ""
29208
29209 #. type: verbatim
29210 #: ../src/guestfs-actions.pod:2750
29211 #, no-wrap
29212 msgid ""
29213 " int\n"
29214 " guestfs_grub_install (guestfs_h *g,\n"
29215 "                       const char *root,\n"
29216 "                       const char *device);\n"
29217 "\n"
29218 msgstr ""
29219
29220 #. type: textblock
29221 #: ../src/guestfs-actions.pod:2793
29222 msgid "(Added in 1.0.17)"
29223 msgstr ""
29224
29225 #. type: =head2
29226 #: ../src/guestfs-actions.pod:2795
29227 msgid "guestfs_head"
29228 msgstr ""
29229
29230 #. type: verbatim
29231 #: ../src/guestfs-actions.pod:2797
29232 #, no-wrap
29233 msgid ""
29234 " char **\n"
29235 " guestfs_head (guestfs_h *g,\n"
29236 "               const char *path);\n"
29237 "\n"
29238 msgstr ""
29239
29240 #. type: =head2
29241 #: ../src/guestfs-actions.pod:2813
29242 msgid "guestfs_head_n"
29243 msgstr ""
29244
29245 #. type: verbatim
29246 #: ../src/guestfs-actions.pod:2815
29247 #, no-wrap
29248 msgid ""
29249 " char **\n"
29250 " guestfs_head_n (guestfs_h *g,\n"
29251 "                 int nrlines,\n"
29252 "                 const char *path);\n"
29253 "\n"
29254 msgstr ""
29255
29256 #. type: =head2
29257 #: ../src/guestfs-actions.pod:2837
29258 msgid "guestfs_hexdump"
29259 msgstr ""
29260
29261 #. type: verbatim
29262 #: ../src/guestfs-actions.pod:2839
29263 #, no-wrap
29264 msgid ""
29265 " char *\n"
29266 " guestfs_hexdump (guestfs_h *g,\n"
29267 "                  const char *path);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: textblock
29272 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7410
29273 #: ../src/guestfs-actions.pod:7465
29274 msgid "(Added in 1.0.22)"
29275 msgstr ""
29276
29277 #. type: =head2
29278 #: ../src/guestfs-actions.pod:2854
29279 msgid "guestfs_initrd_cat"
29280 msgstr ""
29281
29282 #. type: verbatim
29283 #: ../src/guestfs-actions.pod:2856
29284 #, no-wrap
29285 msgid ""
29286 " char *\n"
29287 " guestfs_initrd_cat (guestfs_h *g,\n"
29288 "                     const char *initrdpath,\n"
29289 "                     const char *filename,\n"
29290 "                     size_t *size_r);\n"
29291 "\n"
29292 msgstr ""
29293
29294 #. type: textblock
29295 #: ../src/guestfs-actions.pod:2872
29296 msgid "See also C<guestfs_initrd_list>."
29297 msgstr ""
29298
29299 #. type: =head2
29300 #: ../src/guestfs-actions.pod:2883
29301 msgid "guestfs_initrd_list"
29302 msgstr ""
29303
29304 #. type: verbatim
29305 #: ../src/guestfs-actions.pod:2885
29306 #, no-wrap
29307 msgid ""
29308 " char **\n"
29309 " guestfs_initrd_list (guestfs_h *g,\n"
29310 "                      const char *path);\n"
29311 "\n"
29312 msgstr ""
29313
29314 #. type: =head2
29315 #: ../src/guestfs-actions.pod:2905
29316 msgid "guestfs_inotify_add_watch"
29317 msgstr ""
29318
29319 #. type: verbatim
29320 #: ../src/guestfs-actions.pod:2907
29321 #, no-wrap
29322 msgid ""
29323 " int64_t\n"
29324 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29325 "                            const char *path,\n"
29326 "                            int mask);\n"
29327 "\n"
29328 msgstr ""
29329
29330 #. type: =head2
29331 #: ../src/guestfs-actions.pod:2926
29332 msgid "guestfs_inotify_close"
29333 msgstr ""
29334
29335 #. type: verbatim
29336 #: ../src/guestfs-actions.pod:2928
29337 #, no-wrap
29338 msgid ""
29339 " int\n"
29340 " guestfs_inotify_close (guestfs_h *g);\n"
29341 "\n"
29342 msgstr ""
29343
29344 #. type: =head2
29345 #: ../src/guestfs-actions.pod:2939
29346 msgid "guestfs_inotify_files"
29347 msgstr ""
29348
29349 #. type: verbatim
29350 #: ../src/guestfs-actions.pod:2941
29351 #, no-wrap
29352 msgid ""
29353 " char **\n"
29354 " guestfs_inotify_files (guestfs_h *g);\n"
29355 "\n"
29356 msgstr ""
29357
29358 #. type: textblock
29359 #: ../src/guestfs-actions.pod:2944
29360 msgid ""
29361 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29362 "returns a list of pathnames of objects that were touched.  The returned "
29363 "pathnames are sorted and deduplicated."
29364 msgstr ""
29365
29366 #. type: =head2
29367 #: ../src/guestfs-actions.pod:2954
29368 msgid "guestfs_inotify_init"
29369 msgstr ""
29370
29371 #. type: verbatim
29372 #: ../src/guestfs-actions.pod:2956
29373 #, no-wrap
29374 msgid ""
29375 " int\n"
29376 " guestfs_inotify_init (guestfs_h *g,\n"
29377 "                       int maxevents);\n"
29378 "\n"
29379 msgstr ""
29380
29381 #. type: textblock
29382 #: ../src/guestfs-actions.pod:2964
29383 msgid ""
29384 "C<maxevents> is the maximum number of events which will be queued up between "
29385 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29386 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29387 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29388 "throws away events, but records the fact that it threw them away by setting "
29389 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29390 "C<guestfs_inotify_read>)."
29391 msgstr ""
29392
29393 #. type: textblock
29394 #: ../src/guestfs-actions.pod:2974
29395 msgid ""
29396 "Before any events are generated, you have to add some watches to the "
29397 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29398 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29399 msgstr ""
29400
29401 #. type: textblock
29402 #: ../src/guestfs-actions.pod:2980
29403 msgid ""
29404 "Queued up events should be read periodically by calling "
29405 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29406 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29407 "often enough then you risk the internal queue overflowing."
29408 msgstr ""
29409
29410 #. type: textblock
29411 #: ../src/guestfs-actions.pod:2987
29412 msgid ""
29413 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29414 "This also removes any watches automatically."
29415 msgstr ""
29416
29417 #. type: =head2
29418 #: ../src/guestfs-actions.pod:3000
29419 msgid "guestfs_inotify_read"
29420 msgstr ""
29421
29422 #. type: verbatim
29423 #: ../src/guestfs-actions.pod:3002
29424 #, no-wrap
29425 msgid ""
29426 " struct guestfs_inotify_event_list *\n"
29427 " guestfs_inotify_read (guestfs_h *g);\n"
29428 "\n"
29429 msgstr ""
29430
29431 #. type: textblock
29432 #: ../src/guestfs-actions.pod:3016
29433 msgid ""
29434 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29435 "there was an error.  I<The caller must call "
29436 "C<guestfs_free_inotify_event_list> after use>."
29437 msgstr ""
29438
29439 #. type: =head2
29440 #: ../src/guestfs-actions.pod:3022
29441 msgid "guestfs_inotify_rm_watch"
29442 msgstr ""
29443
29444 #. type: verbatim
29445 #: ../src/guestfs-actions.pod:3024
29446 #, no-wrap
29447 msgid ""
29448 " int\n"
29449 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29450 "                           int wd);\n"
29451 "\n"
29452 msgstr ""
29453
29454 #. type: textblock
29455 #: ../src/guestfs-actions.pod:3028
29456 msgid ""
29457 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29458 msgstr ""
29459
29460 #. type: =head2
29461 #: ../src/guestfs-actions.pod:3035
29462 msgid "guestfs_inspect_get_arch"
29463 msgstr ""
29464
29465 #. type: verbatim
29466 #: ../src/guestfs-actions.pod:3037
29467 #, no-wrap
29468 msgid ""
29469 " char *\n"
29470 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29471 "                           const char *root);\n"
29472 "\n"
29473 msgstr ""
29474
29475 #. type: textblock
29476 #: ../src/guestfs-actions.pod:3041
29477 msgid ""
29478 "This returns the architecture of the inspected operating system.  The "
29479 "possible return values are listed under C<guestfs_file_architecture>."
29480 msgstr ""
29481
29482 #. type: =head2
29483 #: ../src/guestfs-actions.pod:3055
29484 msgid "guestfs_inspect_get_distro"
29485 msgstr ""
29486
29487 #. type: verbatim
29488 #: ../src/guestfs-actions.pod:3057
29489 #, no-wrap
29490 msgid ""
29491 " char *\n"
29492 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29493 "                             const char *root);\n"
29494 "\n"
29495 msgstr ""
29496
29497 #. type: =head2
29498 #: ../src/guestfs-actions.pod:3157
29499 msgid "guestfs_inspect_get_drive_mappings"
29500 msgstr ""
29501
29502 #. type: verbatim
29503 #: ../src/guestfs-actions.pod:3159
29504 #, no-wrap
29505 msgid ""
29506 " char **\n"
29507 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29508 "                                     const char *root);\n"
29509 "\n"
29510 msgstr ""
29511
29512 #. type: textblock
29513 #: ../src/guestfs-actions.pod:3188
29514 msgid ""
29515 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29516 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29517 msgstr ""
29518
29519 #. type: textblock
29520 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29521 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:5006
29522 #: ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:7889
29523 msgid ""
29524 "This function returns a NULL-terminated array of strings, or NULL if there "
29525 "was an error.  The array of strings will always have length C<2n+1>, where "
29526 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29527 "caller must free the strings and the array after use>."
29528 msgstr ""
29529
29530 #. type: textblock
29531 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3663
29532 msgid "(Added in 1.9.17)"
29533 msgstr ""
29534
29535 #. type: =head2
29536 #: ../src/guestfs-actions.pod:3200
29537 msgid "guestfs_inspect_get_filesystems"
29538 msgstr ""
29539
29540 #. type: verbatim
29541 #: ../src/guestfs-actions.pod:3202
29542 #, no-wrap
29543 msgid ""
29544 " char **\n"
29545 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29546 "                                  const char *root);\n"
29547 "\n"
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../src/guestfs-actions.pod:3214
29552 msgid ""
29553 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29554 "C<guestfs_inspect_get_mountpoints>."
29555 msgstr ""
29556
29557 #. type: =head2
29558 #: ../src/guestfs-actions.pod:3223
29559 msgid "guestfs_inspect_get_format"
29560 msgstr ""
29561
29562 #. type: verbatim
29563 #: ../src/guestfs-actions.pod:3225
29564 #, no-wrap
29565 msgid ""
29566 " char *\n"
29567 " guestfs_inspect_get_format (guestfs_h *g,\n"
29568 "                             const char *root);\n"
29569 "\n"
29570 msgstr ""
29571
29572 #. type: textblock
29573 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3699
29574 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3733
29575 #: ../src/guestfs-actions.pod:6659
29576 msgid "(Added in 1.9.4)"
29577 msgstr ""
29578
29579 #. type: =head2
29580 #: ../src/guestfs-actions.pod:3261
29581 msgid "guestfs_inspect_get_hostname"
29582 msgstr ""
29583
29584 #. type: verbatim
29585 #: ../src/guestfs-actions.pod:3263
29586 #, no-wrap
29587 msgid ""
29588 " char *\n"
29589 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29590 "                               const char *root);\n"
29591 "\n"
29592 msgstr ""
29593
29594 #. type: textblock
29595 #: ../src/guestfs-actions.pod:3278
29596 msgid "(Added in 1.7.9)"
29597 msgstr ""
29598
29599 #. type: =head2
29600 #: ../src/guestfs-actions.pod:3280
29601 msgid "guestfs_inspect_get_icon"
29602 msgstr ""
29603
29604 #. type: verbatim
29605 #: ../src/guestfs-actions.pod:3282
29606 #, no-wrap
29607 msgid ""
29608 " char *\n"
29609 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29610 "                           const char *root,\n"
29611 "                           size_t *size_r,\n"
29612 "                           ...);\n"
29613 "\n"
29614 msgstr ""
29615
29616 #. type: verbatim
29617 #: ../src/guestfs-actions.pod:3293
29618 #, no-wrap
29619 msgid ""
29620 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29621 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29622 "\n"
29623 msgstr ""
29624
29625 #. type: textblock
29626 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4194
29627 #: ../src/guestfs-actions.pod:5591
29628 msgid "(Added in 1.11.12)"
29629 msgstr ""
29630
29631 #. type: =head2
29632 #: ../src/guestfs-actions.pod:3362
29633 msgid "guestfs_inspect_get_icon_va"
29634 msgstr ""
29635
29636 #. type: verbatim
29637 #: ../src/guestfs-actions.pod:3364
29638 #, no-wrap
29639 msgid ""
29640 " char *\n"
29641 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29642 "                              const char *root,\n"
29643 "                              size_t *size_r,\n"
29644 "                              va_list args);\n"
29645 "\n"
29646 msgstr ""
29647
29648 #. type: textblock
29649 #: ../src/guestfs-actions.pod:3370
29650 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29651 msgstr ""
29652
29653 #. type: =head2
29654 #: ../src/guestfs-actions.pod:3374
29655 msgid "guestfs_inspect_get_icon_argv"
29656 msgstr ""
29657
29658 #. type: verbatim
29659 #: ../src/guestfs-actions.pod:3376
29660 #, no-wrap
29661 msgid ""
29662 " char *\n"
29663 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29664 "                                const char *root,\n"
29665 "                                size_t *size_r,\n"
29666 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29667 "\n"
29668 msgstr ""
29669
29670 #. type: textblock
29671 #: ../src/guestfs-actions.pod:3382
29672 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29673 msgstr ""
29674
29675 #. type: =head2
29676 #: ../src/guestfs-actions.pod:3386
29677 msgid "guestfs_inspect_get_major_version"
29678 msgstr ""
29679
29680 #. type: verbatim
29681 #: ../src/guestfs-actions.pod:3388
29682 #, no-wrap
29683 msgid ""
29684 " int\n"
29685 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29686 "                                    const char *root);\n"
29687 "\n"
29688 msgstr ""
29689
29690 #. type: =head2
29691 #: ../src/guestfs-actions.pod:3410
29692 msgid "guestfs_inspect_get_minor_version"
29693 msgstr ""
29694
29695 #. type: verbatim
29696 #: ../src/guestfs-actions.pod:3412
29697 #, no-wrap
29698 msgid ""
29699 " int\n"
29700 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29701 "                                    const char *root);\n"
29702 "\n"
29703 msgstr ""
29704
29705 #. type: textblock
29706 #: ../src/guestfs-actions.pod:3421
29707 msgid ""
29708 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29709 "C<guestfs_inspect_get_major_version>."
29710 msgstr ""
29711
29712 #. type: =head2
29713 #: ../src/guestfs-actions.pod:3428
29714 msgid "guestfs_inspect_get_mountpoints"
29715 msgstr ""
29716
29717 #. type: verbatim
29718 #: ../src/guestfs-actions.pod:3430
29719 #, no-wrap
29720 msgid ""
29721 " char **\n"
29722 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29723 "                                  const char *root);\n"
29724 "\n"
29725 msgstr ""
29726
29727 #. type: textblock
29728 #: ../src/guestfs-actions.pod:3451
29729 msgid ""
29730 "For operating systems like Windows which still use drive letters, this call "
29731 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29732 "information about the mapping of drive letters to partitions, see "
29733 "C<guestfs_inspect_get_drive_mappings>."
29734 msgstr ""
29735
29736 #. type: textblock
29737 #: ../src/guestfs-actions.pod:3457
29738 msgid ""
29739 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29740 "C<guestfs_inspect_get_filesystems>."
29741 msgstr ""
29742
29743 #. type: =head2
29744 #: ../src/guestfs-actions.pod:3468
29745 msgid "guestfs_inspect_get_package_format"
29746 msgstr ""
29747
29748 #. type: verbatim
29749 #: ../src/guestfs-actions.pod:3470
29750 #, no-wrap
29751 msgid ""
29752 " char *\n"
29753 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29754 "                                     const char *root);\n"
29755 "\n"
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../src/guestfs-actions.pod:3474
29760 msgid ""
29761 "This function and C<guestfs_inspect_get_package_management> return the "
29762 "package format and package management tool used by the inspected operating "
29763 "system.  For example for Fedora these functions would return C<rpm> (package "
29764 "format) and C<yum> (package management)."
29765 msgstr ""
29766
29767 #. type: textblock
29768 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29769 msgid "(Added in 1.7.5)"
29770 msgstr ""
29771
29772 #. type: =head2
29773 #: ../src/guestfs-actions.pod:3495
29774 msgid "guestfs_inspect_get_package_management"
29775 msgstr ""
29776
29777 #. type: verbatim
29778 #: ../src/guestfs-actions.pod:3497
29779 #, no-wrap
29780 msgid ""
29781 " char *\n"
29782 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29783 "                                         const char *root);\n"
29784 "\n"
29785 msgstr ""
29786
29787 #. type: textblock
29788 #: ../src/guestfs-actions.pod:3501
29789 msgid ""
29790 "C<guestfs_inspect_get_package_format> and this function return the package "
29791 "format and package management tool used by the inspected operating system.  "
29792 "For example for Fedora these functions would return C<rpm> (package format) "
29793 "and C<yum> (package management)."
29794 msgstr ""
29795
29796 #. type: =head2
29797 #: ../src/guestfs-actions.pod:3523
29798 msgid "guestfs_inspect_get_product_name"
29799 msgstr ""
29800
29801 #. type: verbatim
29802 #: ../src/guestfs-actions.pod:3525
29803 #, no-wrap
29804 msgid ""
29805 " char *\n"
29806 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29807 "                                   const char *root);\n"
29808 "\n"
29809 msgstr ""
29810
29811 #. type: =head2
29812 #: ../src/guestfs-actions.pod:3544
29813 msgid "guestfs_inspect_get_product_variant"
29814 msgstr ""
29815
29816 #. type: verbatim
29817 #: ../src/guestfs-actions.pod:3546
29818 #, no-wrap
29819 msgid ""
29820 " char *\n"
29821 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29822 "                                      const char *root);\n"
29823 "\n"
29824 msgstr ""
29825
29826 #. type: textblock
29827 #: ../src/guestfs-actions.pod:3569
29828 msgid ""
29829 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29830 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29831 msgstr ""
29832
29833 #. type: textblock
29834 #: ../src/guestfs-actions.pod:3576
29835 msgid "(Added in 1.9.13)"
29836 msgstr ""
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:3578
29840 msgid "guestfs_inspect_get_roots"
29841 msgstr ""
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:3580
29845 #, no-wrap
29846 msgid ""
29847 " char **\n"
29848 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29849 "\n"
29850 msgstr ""
29851
29852 #. type: textblock
29853 #: ../src/guestfs-actions.pod:3583
29854 msgid ""
29855 "This function is a convenient way to get the list of root devices, as "
29856 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29857 "the whole inspection process."
29858 msgstr ""
29859
29860 #. type: textblock
29861 #: ../src/guestfs-actions.pod:3587
29862 msgid ""
29863 "This returns an empty list if either no root devices were found or the "
29864 "caller has not called C<guestfs_inspect_os>."
29865 msgstr ""
29866
29867 #. type: textblock
29868 #: ../src/guestfs-actions.pod:3596
29869 msgid "(Added in 1.7.3)"
29870 msgstr ""
29871
29872 #. type: =head2
29873 #: ../src/guestfs-actions.pod:3598
29874 msgid "guestfs_inspect_get_type"
29875 msgstr ""
29876
29877 #. type: verbatim
29878 #: ../src/guestfs-actions.pod:3600
29879 #, no-wrap
29880 msgid ""
29881 " char *\n"
29882 " guestfs_inspect_get_type (guestfs_h *g,\n"
29883 "                           const char *root);\n"
29884 "\n"
29885 msgstr ""
29886
29887 #. type: =head2
29888 #: ../src/guestfs-actions.pod:3645
29889 msgid "guestfs_inspect_get_windows_current_control_set"
29890 msgstr ""
29891
29892 #. type: verbatim
29893 #: ../src/guestfs-actions.pod:3647
29894 #, no-wrap
29895 msgid ""
29896 " char *\n"
29897 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29898 "                                                  const char *root);\n"
29899 "\n"
29900 msgstr ""
29901
29902 #. type: =head2
29903 #: ../src/guestfs-actions.pod:3665
29904 msgid "guestfs_inspect_get_windows_systemroot"
29905 msgstr ""
29906
29907 #. type: verbatim
29908 #: ../src/guestfs-actions.pod:3667
29909 #, no-wrap
29910 msgid ""
29911 " char *\n"
29912 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29913 "                                         const char *root);\n"
29914 "\n"
29915 msgstr ""
29916
29917 #. type: textblock
29918 #: ../src/guestfs-actions.pod:3683
29919 msgid "(Added in 1.5.25)"
29920 msgstr ""
29921
29922 #. type: =head2
29923 #: ../src/guestfs-actions.pod:3685
29924 msgid "guestfs_inspect_is_live"
29925 msgstr ""
29926
29927 #. type: verbatim
29928 #: ../src/guestfs-actions.pod:3687
29929 #, no-wrap
29930 msgid ""
29931 " int\n"
29932 " guestfs_inspect_is_live (guestfs_h *g,\n"
29933 "                          const char *root);\n"
29934 "\n"
29935 msgstr ""
29936
29937 #. type: textblock
29938 #: ../src/guestfs-actions.pod:3691
29939 msgid ""
29940 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29941 "disk), then this returns true if a live image was detected on the disk."
29942 msgstr ""
29943
29944 #. type: =head2
29945 #: ../src/guestfs-actions.pod:3701
29946 msgid "guestfs_inspect_is_multipart"
29947 msgstr ""
29948
29949 #. type: verbatim
29950 #: ../src/guestfs-actions.pod:3703
29951 #, no-wrap
29952 msgid ""
29953 " int\n"
29954 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29955 "                               const char *root);\n"
29956 "\n"
29957 msgstr ""
29958
29959 #. type: textblock
29960 #: ../src/guestfs-actions.pod:3707
29961 msgid ""
29962 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29963 "disk), then this returns true if the disk is part of a set."
29964 msgstr ""
29965
29966 #. type: =head2
29967 #: ../src/guestfs-actions.pod:3717
29968 msgid "guestfs_inspect_is_netinst"
29969 msgstr ""
29970
29971 #. type: verbatim
29972 #: ../src/guestfs-actions.pod:3719
29973 #, no-wrap
29974 msgid ""
29975 " int\n"
29976 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29977 "                             const char *root);\n"
29978 "\n"
29979 msgstr ""
29980
29981 #. type: textblock
29982 #: ../src/guestfs-actions.pod:3723
29983 msgid ""
29984 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29985 "disk), then this returns true if the disk is a network installer, ie. not a "
29986 "self-contained install CD but one which is likely to require network access "
29987 "to complete the install."
29988 msgstr ""
29989
29990 #. type: =head2
29991 #: ../src/guestfs-actions.pod:3735
29992 msgid "guestfs_inspect_list_applications"
29993 msgstr ""
29994
29995 #. type: verbatim
29996 #: ../src/guestfs-actions.pod:3737
29997 #, no-wrap
29998 msgid ""
29999 " struct guestfs_application_list *\n"
30000 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30001 "                                    const char *root);\n"
30002 "\n"
30003 msgstr ""
30004
30005 #. type: textblock
30006 #: ../src/guestfs-actions.pod:3743
30007 msgid ""
30008 "I<Note:> This call works differently from other parts of the inspection "
30009 "API.  You have to call C<guestfs_inspect_os>, then "
30010 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30011 "this.  Listing applications is a significantly more difficult operation "
30012 "which requires access to the full filesystem.  Also note that unlike the "
30013 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30014 "the libguestfs handle, this call actually reads parts of the mounted "
30015 "filesystems during the call."
30016 msgstr ""
30017
30018 #. type: textblock
30019 #: ../src/guestfs-actions.pod:3833
30020 msgid ""
30021 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30022 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30023 "after use>."
30024 msgstr ""
30025
30026 #. type: textblock
30027 #: ../src/guestfs-actions.pod:3837
30028 msgid "(Added in 1.7.8)"
30029 msgstr ""
30030
30031 #. type: =head2
30032 #: ../src/guestfs-actions.pod:3839
30033 msgid "guestfs_inspect_os"
30034 msgstr ""
30035
30036 #. type: verbatim
30037 #: ../src/guestfs-actions.pod:3841
30038 #, no-wrap
30039 msgid ""
30040 " char **\n"
30041 " guestfs_inspect_os (guestfs_h *g);\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: textblock
30046 #: ../src/guestfs-actions.pod:3857
30047 msgid ""
30048 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30049 "functions in order to query further information about each operating system, "
30050 "such as the name and version."
30051 msgstr ""
30052
30053 #. type: textblock
30054 #: ../src/guestfs-actions.pod:3862
30055 msgid ""
30056 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30057 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30058 "the contents.  This should be called with no disks currently mounted.  The "
30059 "function may also use Augeas, so any existing Augeas handle will be closed."
30060 msgstr ""
30061
30062 #. type: textblock
30063 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4205
30064 #: ../src/guestfs-actions.pod:4300
30065 msgid "See also C<guestfs_list_filesystems>."
30066 msgstr ""
30067
30068 #. type: =head2
30069 #: ../src/guestfs-actions.pod:3882
30070 msgid "guestfs_is_blockdev"
30071 msgstr ""
30072
30073 #. type: verbatim
30074 #: ../src/guestfs-actions.pod:3884
30075 #, no-wrap
30076 msgid ""
30077 " int\n"
30078 " guestfs_is_blockdev (guestfs_h *g,\n"
30079 "                      const char *path);\n"
30080 "\n"
30081 msgstr ""
30082
30083 #. type: textblock
30084 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30085 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3965
30086 #: ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4037
30087 #: ../src/guestfs-actions.pod:4052
30088 msgid "See also C<guestfs_stat>."
30089 msgstr ""
30090
30091 #. type: textblock
30092 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3924
30093 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
30094 #: ../src/guestfs-actions.pod:4056
30095 msgid "(Added in 1.5.10)"
30096 msgstr ""
30097
30098 #. type: =head2
30099 #: ../src/guestfs-actions.pod:3897
30100 msgid "guestfs_is_busy"
30101 msgstr ""
30102
30103 #. type: verbatim
30104 #: ../src/guestfs-actions.pod:3899
30105 #, no-wrap
30106 msgid ""
30107 " int\n"
30108 " guestfs_is_busy (guestfs_h *g);\n"
30109 "\n"
30110 msgstr ""
30111
30112 #. type: =head2
30113 #: ../src/guestfs-actions.pod:3911
30114 msgid "guestfs_is_chardev"
30115 msgstr ""
30116
30117 #. type: verbatim
30118 #: ../src/guestfs-actions.pod:3913
30119 #, no-wrap
30120 msgid ""
30121 " int\n"
30122 " guestfs_is_chardev (guestfs_h *g,\n"
30123 "                     const char *path);\n"
30124 "\n"
30125 msgstr ""
30126
30127 #. type: =head2
30128 #: ../src/guestfs-actions.pod:3926
30129 msgid "guestfs_is_config"
30130 msgstr ""
30131
30132 #. type: verbatim
30133 #: ../src/guestfs-actions.pod:3928
30134 #, no-wrap
30135 msgid ""
30136 " int\n"
30137 " guestfs_is_config (guestfs_h *g);\n"
30138 "\n"
30139 msgstr ""
30140
30141 #. type: =head2
30142 #: ../src/guestfs-actions.pod:3940
30143 msgid "guestfs_is_dir"
30144 msgstr ""
30145
30146 #. type: verbatim
30147 #: ../src/guestfs-actions.pod:3942
30148 #, no-wrap
30149 msgid ""
30150 " int\n"
30151 " guestfs_is_dir (guestfs_h *g,\n"
30152 "                 const char *path);\n"
30153 "\n"
30154 msgstr ""
30155
30156 #. type: =head2
30157 #: ../src/guestfs-actions.pod:3956
30158 msgid "guestfs_is_fifo"
30159 msgstr ""
30160
30161 #. type: verbatim
30162 #: ../src/guestfs-actions.pod:3958
30163 #, no-wrap
30164 msgid ""
30165 " int\n"
30166 " guestfs_is_fifo (guestfs_h *g,\n"
30167 "                  const char *path);\n"
30168 "\n"
30169 msgstr ""
30170
30171 #. type: =head2
30172 #: ../src/guestfs-actions.pod:3971
30173 msgid "guestfs_is_file"
30174 msgstr ""
30175
30176 #. type: verbatim
30177 #: ../src/guestfs-actions.pod:3973
30178 #, no-wrap
30179 msgid ""
30180 " int\n"
30181 " guestfs_is_file (guestfs_h *g,\n"
30182 "                  const char *path);\n"
30183 "\n"
30184 msgstr ""
30185
30186 #. type: =head2
30187 #: ../src/guestfs-actions.pod:3987
30188 msgid "guestfs_is_launching"
30189 msgstr ""
30190
30191 #. type: verbatim
30192 #: ../src/guestfs-actions.pod:3989
30193 #, no-wrap
30194 msgid ""
30195 " int\n"
30196 " guestfs_is_launching (guestfs_h *g);\n"
30197 "\n"
30198 msgstr ""
30199
30200 #. type: =head2
30201 #: ../src/guestfs-actions.pod:4001
30202 msgid "guestfs_is_lv"
30203 msgstr ""
30204
30205 #. type: verbatim
30206 #: ../src/guestfs-actions.pod:4003
30207 #, no-wrap
30208 msgid ""
30209 " int\n"
30210 " guestfs_is_lv (guestfs_h *g,\n"
30211 "                const char *device);\n"
30212 "\n"
30213 msgstr ""
30214
30215 #. type: =head2
30216 #: ../src/guestfs-actions.pod:4014
30217 msgid "guestfs_is_ready"
30218 msgstr ""
30219
30220 #. type: verbatim
30221 #: ../src/guestfs-actions.pod:4016
30222 #, no-wrap
30223 msgid ""
30224 " int\n"
30225 " guestfs_is_ready (guestfs_h *g);\n"
30226 "\n"
30227 msgstr ""
30228
30229 #. type: =head2
30230 #: ../src/guestfs-actions.pod:4028
30231 msgid "guestfs_is_socket"
30232 msgstr ""
30233
30234 #. type: verbatim
30235 #: ../src/guestfs-actions.pod:4030
30236 #, no-wrap
30237 msgid ""
30238 " int\n"
30239 " guestfs_is_socket (guestfs_h *g,\n"
30240 "                    const char *path);\n"
30241 "\n"
30242 msgstr ""
30243
30244 #. type: =head2
30245 #: ../src/guestfs-actions.pod:4043
30246 msgid "guestfs_is_symlink"
30247 msgstr ""
30248
30249 #. type: verbatim
30250 #: ../src/guestfs-actions.pod:4045
30251 #, no-wrap
30252 msgid ""
30253 " int\n"
30254 " guestfs_is_symlink (guestfs_h *g,\n"
30255 "                     const char *path);\n"
30256 "\n"
30257 msgstr ""
30258
30259 #. type: =head2
30260 #: ../src/guestfs-actions.pod:4058
30261 msgid "guestfs_is_zero"
30262 msgstr ""
30263
30264 #. type: verbatim
30265 #: ../src/guestfs-actions.pod:4060
30266 #, no-wrap
30267 msgid ""
30268 " int\n"
30269 " guestfs_is_zero (guestfs_h *g,\n"
30270 "                  const char *path);\n"
30271 "\n"
30272 msgstr ""
30273
30274 #. type: textblock
30275 #: ../src/guestfs-actions.pod:4069 ../src/guestfs-actions.pod:4083
30276 msgid "(Added in 1.11.8)"
30277 msgstr ""
30278
30279 #. type: =head2
30280 #: ../src/guestfs-actions.pod:4071
30281 msgid "guestfs_is_zero_device"
30282 msgstr ""
30283
30284 #. type: verbatim
30285 #: ../src/guestfs-actions.pod:4073
30286 #, no-wrap
30287 msgid ""
30288 " int\n"
30289 " guestfs_is_zero_device (guestfs_h *g,\n"
30290 "                         const char *device);\n"
30291 "\n"
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../src/guestfs-actions.pod:4085
30296 msgid "guestfs_kill_subprocess"
30297 msgstr ""
30298
30299 #. type: verbatim
30300 #: ../src/guestfs-actions.pod:4087
30301 #, no-wrap
30302 msgid ""
30303 " int\n"
30304 " guestfs_kill_subprocess (guestfs_h *g);\n"
30305 "\n"
30306 msgstr ""
30307
30308 #. type: =head2
30309 #: ../src/guestfs-actions.pod:4096
30310 msgid "guestfs_launch"
30311 msgstr ""
30312
30313 #. type: verbatim
30314 #: ../src/guestfs-actions.pod:4098
30315 #, no-wrap
30316 msgid ""
30317 " int\n"
30318 " guestfs_launch (guestfs_h *g);\n"
30319 "\n"
30320 msgstr ""
30321
30322 #. type: =head2
30323 #: ../src/guestfs-actions.pod:4116
30324 msgid "guestfs_lchown"
30325 msgstr ""
30326
30327 #. type: verbatim
30328 #: ../src/guestfs-actions.pod:4118
30329 #, no-wrap
30330 msgid ""
30331 " int\n"
30332 " guestfs_lchown (guestfs_h *g,\n"
30333 "                 int owner,\n"
30334 "                 int group,\n"
30335 "                 const char *path);\n"
30336 "\n"
30337 msgstr ""
30338
30339 #. type: textblock
30340 #: ../src/guestfs-actions.pod:4124
30341 msgid ""
30342 "Change the file owner to C<owner> and group to C<group>.  This is like "
30343 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30344 "changed, not the target."
30345 msgstr ""
30346
30347 #. type: =head2
30348 #: ../src/guestfs-actions.pod:4136
30349 msgid "guestfs_lgetxattr"
30350 msgstr ""
30351
30352 #. type: verbatim
30353 #: ../src/guestfs-actions.pod:4138
30354 #, no-wrap
30355 msgid ""
30356 " char *\n"
30357 " guestfs_lgetxattr (guestfs_h *g,\n"
30358 "                    const char *path,\n"
30359 "                    const char *name,\n"
30360 "                    size_t *size_r);\n"
30361 "\n"
30362 msgstr ""
30363
30364 #. type: textblock
30365 #: ../src/guestfs-actions.pod:4158
30366 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30367 msgstr ""
30368
30369 #. type: =head2
30370 #: ../src/guestfs-actions.pod:4166
30371 msgid "guestfs_lgetxattrs"
30372 msgstr ""
30373
30374 #. type: verbatim
30375 #: ../src/guestfs-actions.pod:4168
30376 #, no-wrap
30377 msgid ""
30378 " struct guestfs_xattr_list *\n"
30379 " guestfs_lgetxattrs (guestfs_h *g,\n"
30380 "                     const char *path);\n"
30381 "\n"
30382 msgstr ""
30383
30384 #. type: textblock
30385 #: ../src/guestfs-actions.pod:4172
30386 msgid ""
30387 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30388 "then it returns the extended attributes of the link itself."
30389 msgstr ""
30390
30391 #. type: =head2
30392 #: ../src/guestfs-actions.pod:4182
30393 msgid "guestfs_list_9p"
30394 msgstr ""
30395
30396 #. type: verbatim
30397 #: ../src/guestfs-actions.pod:4184
30398 #, no-wrap
30399 msgid ""
30400 " char **\n"
30401 " guestfs_list_9p (guestfs_h *g);\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: =head2
30406 #: ../src/guestfs-actions.pod:4196
30407 msgid "guestfs_list_devices"
30408 msgstr ""
30409
30410 #. type: verbatim
30411 #: ../src/guestfs-actions.pod:4198
30412 #, no-wrap
30413 msgid ""
30414 " char **\n"
30415 " guestfs_list_devices (guestfs_h *g);\n"
30416 "\n"
30417 msgstr ""
30418
30419 #. type: =head2
30420 #: ../src/guestfs-actions.pod:4213
30421 msgid "guestfs_list_dm_devices"
30422 msgstr ""
30423
30424 #. type: verbatim
30425 #: ../src/guestfs-actions.pod:4215
30426 #, no-wrap
30427 msgid ""
30428 " char **\n"
30429 " guestfs_list_dm_devices (guestfs_h *g);\n"
30430 "\n"
30431 msgstr ""
30432
30433 #. type: textblock
30434 #: ../src/guestfs-actions.pod:4220
30435 msgid ""
30436 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30437 "previous call to C<guestfs_luks_open>."
30438 msgstr ""
30439
30440 #. type: textblock
30441 #: ../src/guestfs-actions.pod:4223
30442 msgid ""
30443 "Device mapper devices which correspond to logical volumes are I<not> "
30444 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30445 "volumes."
30446 msgstr ""
30447
30448 #. type: textblock
30449 #: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:5830
30450 msgid "(Added in 1.11.15)"
30451 msgstr ""
30452
30453 #. type: =head2
30454 #: ../src/guestfs-actions.pod:4233
30455 msgid "guestfs_list_filesystems"
30456 msgstr ""
30457
30458 #. type: verbatim
30459 #: ../src/guestfs-actions.pod:4235
30460 #, no-wrap
30461 msgid ""
30462 " char **\n"
30463 " guestfs_list_filesystems (guestfs_h *g);\n"
30464 "\n"
30465 msgstr ""
30466
30467 #. type: textblock
30468 #: ../src/guestfs-actions.pod:4255
30469 msgid ""
30470 "This command runs other libguestfs commands, which might include "
30471 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30472 "soon after launch and only when nothing is mounted."
30473 msgstr ""
30474
30475 #. type: textblock
30476 #: ../src/guestfs-actions.pod:4259
30477 msgid ""
30478 "Not all of the filesystems returned will be mountable.  In particular, swap "
30479 "partitions are returned in the list.  Also this command does not check that "
30480 "each filesystem found is valid and mountable, and some filesystems might be "
30481 "mountable but require special options.  Filesystems may not all belong to a "
30482 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30483 msgstr ""
30484
30485 #. type: textblock
30486 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:6190
30487 msgid "(Added in 1.5.15)"
30488 msgstr ""
30489
30490 #. type: =head2
30491 #: ../src/guestfs-actions.pod:4275
30492 msgid "guestfs_list_md_devices"
30493 msgstr ""
30494
30495 #. type: verbatim
30496 #: ../src/guestfs-actions.pod:4277
30497 #, no-wrap
30498 msgid ""
30499 " char **\n"
30500 " guestfs_list_md_devices (guestfs_h *g);\n"
30501 "\n"
30502 msgstr ""
30503
30504 #. type: textblock
30505 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:7851
30506 msgid "(Added in 1.15.4)"
30507 msgstr ""
30508
30509 #. type: =head2
30510 #: ../src/guestfs-actions.pod:4288
30511 msgid "guestfs_list_partitions"
30512 msgstr ""
30513
30514 #. type: verbatim
30515 #: ../src/guestfs-actions.pod:4290
30516 #, no-wrap
30517 msgid ""
30518 " char **\n"
30519 " guestfs_list_partitions (guestfs_h *g);\n"
30520 "\n"
30521 msgstr ""
30522
30523 #. type: textblock
30524 #: ../src/guestfs-actions.pod:4297
30525 msgid ""
30526 "This does not return logical volumes.  For that you will need to call "
30527 "C<guestfs_lvs>."
30528 msgstr ""
30529
30530 #. type: =head2
30531 #: ../src/guestfs-actions.pod:4308
30532 msgid "guestfs_ll"
30533 msgstr ""
30534
30535 #. type: verbatim
30536 #: ../src/guestfs-actions.pod:4310
30537 #, no-wrap
30538 msgid ""
30539 " char *\n"
30540 " guestfs_ll (guestfs_h *g,\n"
30541 "             const char *directory);\n"
30542 "\n"
30543 msgstr ""
30544
30545 #. type: =head2
30546 #: ../src/guestfs-actions.pod:4325
30547 msgid "guestfs_ln"
30548 msgstr ""
30549
30550 #. type: verbatim
30551 #: ../src/guestfs-actions.pod:4327
30552 #, no-wrap
30553 msgid ""
30554 " int\n"
30555 " guestfs_ln (guestfs_h *g,\n"
30556 "             const char *target,\n"
30557 "             const char *linkname);\n"
30558 "\n"
30559 msgstr ""
30560
30561 #. type: =head2
30562 #: ../src/guestfs-actions.pod:4338
30563 msgid "guestfs_ln_f"
30564 msgstr ""
30565
30566 #. type: verbatim
30567 #: ../src/guestfs-actions.pod:4340
30568 #, no-wrap
30569 msgid ""
30570 " int\n"
30571 " guestfs_ln_f (guestfs_h *g,\n"
30572 "               const char *target,\n"
30573 "               const char *linkname);\n"
30574 "\n"
30575 msgstr ""
30576
30577 #. type: =head2
30578 #: ../src/guestfs-actions.pod:4352
30579 msgid "guestfs_ln_s"
30580 msgstr ""
30581
30582 #. type: verbatim
30583 #: ../src/guestfs-actions.pod:4354
30584 #, no-wrap
30585 msgid ""
30586 " int\n"
30587 " guestfs_ln_s (guestfs_h *g,\n"
30588 "               const char *target,\n"
30589 "               const char *linkname);\n"
30590 "\n"
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-actions.pod:4365
30595 msgid "guestfs_ln_sf"
30596 msgstr ""
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-actions.pod:4367
30600 #, no-wrap
30601 msgid ""
30602 " int\n"
30603 " guestfs_ln_sf (guestfs_h *g,\n"
30604 "                const char *target,\n"
30605 "                const char *linkname);\n"
30606 "\n"
30607 msgstr ""
30608
30609 #. type: =head2
30610 #: ../src/guestfs-actions.pod:4379
30611 msgid "guestfs_lremovexattr"
30612 msgstr ""
30613
30614 #. type: verbatim
30615 #: ../src/guestfs-actions.pod:4381
30616 #, no-wrap
30617 msgid ""
30618 " int\n"
30619 " guestfs_lremovexattr (guestfs_h *g,\n"
30620 "                       const char *xattr,\n"
30621 "                       const char *path);\n"
30622 "\n"
30623 msgstr ""
30624
30625 #. type: textblock
30626 #: ../src/guestfs-actions.pod:4386
30627 msgid ""
30628 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30629 "link, then it removes an extended attribute of the link itself."
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:4394
30634 msgid "guestfs_ls"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:4396
30639 #, no-wrap
30640 msgid ""
30641 " char **\n"
30642 " guestfs_ls (guestfs_h *g,\n"
30643 "             const char *directory);\n"
30644 "\n"
30645 msgstr ""
30646
30647 #. type: textblock
30648 #: ../src/guestfs-actions.pod:4404
30649 msgid ""
30650 "This command is mostly useful for interactive sessions.  Programs should "
30651 "probably use C<guestfs_readdir> instead."
30652 msgstr ""
30653
30654 #. type: =head2
30655 #: ../src/guestfs-actions.pod:4413
30656 msgid "guestfs_lsetxattr"
30657 msgstr ""
30658
30659 #. type: verbatim
30660 #: ../src/guestfs-actions.pod:4415
30661 #, no-wrap
30662 msgid ""
30663 " int\n"
30664 " guestfs_lsetxattr (guestfs_h *g,\n"
30665 "                    const char *xattr,\n"
30666 "                    const char *val,\n"
30667 "                    int vallen,\n"
30668 "                    const char *path);\n"
30669 "\n"
30670 msgstr ""
30671
30672 #. type: textblock
30673 #: ../src/guestfs-actions.pod:4422
30674 msgid ""
30675 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30676 "then it sets an extended attribute of the link itself."
30677 msgstr ""
30678
30679 #. type: =head2
30680 #: ../src/guestfs-actions.pod:4430
30681 msgid "guestfs_lstat"
30682 msgstr ""
30683
30684 #. type: verbatim
30685 #: ../src/guestfs-actions.pod:4432
30686 #, no-wrap
30687 msgid ""
30688 " struct guestfs_stat *\n"
30689 " guestfs_lstat (guestfs_h *g,\n"
30690 "                const char *path);\n"
30691 "\n"
30692 msgstr ""
30693
30694 #. type: textblock
30695 #: ../src/guestfs-actions.pod:4438
30696 msgid ""
30697 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30698 "link, then the link is stat-ed, not the file it refers to."
30699 msgstr ""
30700
30701 #. type: textblock
30702 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7370
30703 msgid ""
30704 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30705 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30706 msgstr ""
30707
30708 #. type: textblock
30709 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:7374
30710 #: ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7895
30711 msgid "(Added in 0.9.2)"
30712 msgstr ""
30713
30714 #. type: =head2
30715 #: ../src/guestfs-actions.pod:4450
30716 msgid "guestfs_lstatlist"
30717 msgstr ""
30718
30719 #. type: verbatim
30720 #: ../src/guestfs-actions.pod:4452
30721 #, no-wrap
30722 msgid ""
30723 " struct guestfs_stat_list *\n"
30724 " guestfs_lstatlist (guestfs_h *g,\n"
30725 "                    const char *path,\n"
30726 "                    char *const *names);\n"
30727 "\n"
30728 msgstr ""
30729
30730 #. type: textblock
30731 #: ../src/guestfs-actions.pod:4457
30732 msgid ""
30733 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30734 "files, where all files are in the directory C<path>.  C<names> is the list "
30735 "of files from this directory."
30736 msgstr ""
30737
30738 #. type: textblock
30739 #: ../src/guestfs-actions.pod:4466
30740 msgid ""
30741 "This call is intended for programs that want to efficiently list a directory "
30742 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30743 "for a similarly efficient call for getting extended attributes.  Very long "
30744 "directory listings might cause the protocol message size to be exceeded, "
30745 "causing this call to fail.  The caller must split up such requests into "
30746 "smaller groups of names."
30747 msgstr ""
30748
30749 #. type: textblock
30750 #: ../src/guestfs-actions.pod:4474
30751 msgid ""
30752 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30753 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30754 msgstr ""
30755
30756 #. type: =head2
30757 #: ../src/guestfs-actions.pod:4480
30758 msgid "guestfs_luks_add_key"
30759 msgstr ""
30760
30761 #. type: verbatim
30762 #: ../src/guestfs-actions.pod:4482
30763 #, no-wrap
30764 msgid ""
30765 " int\n"
30766 " guestfs_luks_add_key (guestfs_h *g,\n"
30767 "                       const char *device,\n"
30768 "                       const char *key,\n"
30769 "                       const char *newkey,\n"
30770 "                       int keyslot);\n"
30771 "\n"
30772 msgstr ""
30773
30774 #. type: textblock
30775 #: ../src/guestfs-actions.pod:4494
30776 msgid ""
30777 "Note that if C<keyslot> already contains a key, then this command will "
30778 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30779 msgstr ""
30780
30781 #. type: textblock
30782 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537
30783 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577
30784 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631
30785 msgid ""
30786 "This function takes a key or passphrase parameter which could contain "
30787 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30788 "information."
30789 msgstr ""
30790
30791 #. type: textblock
30792 #: ../src/guestfs-actions.pod:4504 ../src/guestfs-actions.pod:4541
30793 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4581
30794 msgid "(Added in 1.5.2)"
30795 msgstr ""
30796
30797 #. type: =head2
30798 #: ../src/guestfs-actions.pod:4506
30799 msgid "guestfs_luks_close"
30800 msgstr ""
30801
30802 #. type: verbatim
30803 #: ../src/guestfs-actions.pod:4508
30804 #, no-wrap
30805 msgid ""
30806 " int\n"
30807 " guestfs_luks_close (guestfs_h *g,\n"
30808 "                     const char *device);\n"
30809 "\n"
30810 msgstr ""
30811
30812 #. type: textblock
30813 #: ../src/guestfs-actions.pod:4512
30814 msgid ""
30815 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30816 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30817 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30818 "underlying block device."
30819 msgstr ""
30820
30821 #. type: textblock
30822 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4616
30823 #: ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4685
30824 #: ../src/guestfs-actions.pod:4730
30825 msgid "(Added in 1.5.1)"
30826 msgstr ""
30827
30828 #. type: =head2
30829 #: ../src/guestfs-actions.pod:4522
30830 msgid "guestfs_luks_format"
30831 msgstr ""
30832
30833 #. type: verbatim
30834 #: ../src/guestfs-actions.pod:4524
30835 #, no-wrap
30836 msgid ""
30837 " int\n"
30838 " guestfs_luks_format (guestfs_h *g,\n"
30839 "                      const char *device,\n"
30840 "                      const char *key,\n"
30841 "                      int keyslot);\n"
30842 "\n"
30843 msgstr ""
30844
30845 #. type: =head2
30846 #: ../src/guestfs-actions.pod:4543
30847 msgid "guestfs_luks_format_cipher"
30848 msgstr ""
30849
30850 #. type: verbatim
30851 #: ../src/guestfs-actions.pod:4545
30852 #, no-wrap
30853 msgid ""
30854 " int\n"
30855 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30856 "                             const char *device,\n"
30857 "                             const char *key,\n"
30858 "                             int keyslot,\n"
30859 "                             const char *cipher);\n"
30860 "\n"
30861 msgstr ""
30862
30863 #. type: textblock
30864 #: ../src/guestfs-actions.pod:4552
30865 msgid ""
30866 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30867 "set the C<cipher> used."
30868 msgstr ""
30869
30870 #. type: =head2
30871 #: ../src/guestfs-actions.pod:4563
30872 msgid "guestfs_luks_kill_slot"
30873 msgstr ""
30874
30875 #. type: verbatim
30876 #: ../src/guestfs-actions.pod:4565
30877 #, no-wrap
30878 msgid ""
30879 " int\n"
30880 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30881 "                         const char *device,\n"
30882 "                         const char *key,\n"
30883 "                         int keyslot);\n"
30884 "\n"
30885 msgstr ""
30886
30887 #. type: =head2
30888 #: ../src/guestfs-actions.pod:4583
30889 msgid "guestfs_luks_open"
30890 msgstr ""
30891
30892 #. type: verbatim
30893 #: ../src/guestfs-actions.pod:4585
30894 #, no-wrap
30895 msgid ""
30896 " int\n"
30897 " guestfs_luks_open (guestfs_h *g,\n"
30898 "                    const char *device,\n"
30899 "                    const char *key,\n"
30900 "                    const char *mapname);\n"
30901 "\n"
30902 msgstr ""
30903
30904 #. type: textblock
30905 #: ../src/guestfs-actions.pod:4603
30906 msgid ""
30907 "If this block device contains LVM volume groups, then calling "
30908 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30909 "visible."
30910 msgstr ""
30911
30912 #. type: textblock
30913 #: ../src/guestfs-actions.pod:4607
30914 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30915 msgstr ""
30916
30917 #. type: =head2
30918 #: ../src/guestfs-actions.pod:4618
30919 msgid "guestfs_luks_open_ro"
30920 msgstr ""
30921
30922 #. type: verbatim
30923 #: ../src/guestfs-actions.pod:4620
30924 #, no-wrap
30925 msgid ""
30926 " int\n"
30927 " guestfs_luks_open_ro (guestfs_h *g,\n"
30928 "                       const char *device,\n"
30929 "                       const char *key,\n"
30930 "                       const char *mapname);\n"
30931 "\n"
30932 msgstr ""
30933
30934 #. type: textblock
30935 #: ../src/guestfs-actions.pod:4626
30936 msgid ""
30937 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30938 "created."
30939 msgstr ""
30940
30941 #. type: =head2
30942 #: ../src/guestfs-actions.pod:4637
30943 msgid "guestfs_lvcreate"
30944 msgstr ""
30945
30946 #. type: verbatim
30947 #: ../src/guestfs-actions.pod:4639
30948 #, no-wrap
30949 msgid ""
30950 " int\n"
30951 " guestfs_lvcreate (guestfs_h *g,\n"
30952 "                   const char *logvol,\n"
30953 "                   const char *volgroup,\n"
30954 "                   int mbytes);\n"
30955 "\n"
30956 msgstr ""
30957
30958 #. type: =head2
30959 #: ../src/guestfs-actions.pod:4652
30960 msgid "guestfs_lvm_canonical_lv_name"
30961 msgstr ""
30962
30963 #. type: verbatim
30964 #: ../src/guestfs-actions.pod:4654
30965 #, no-wrap
30966 msgid ""
30967 " char *\n"
30968 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30969 "                                const char *lvname);\n"
30970 "\n"
30971 msgstr ""
30972
30973 #. type: textblock
30974 #: ../src/guestfs-actions.pod:4665
30975 msgid "See also C<guestfs_is_lv>."
30976 msgstr ""
30977
30978 #. type: textblock
30979 #: ../src/guestfs-actions.pod:4670
30980 msgid "(Added in 1.5.24)"
30981 msgstr ""
30982
30983 #. type: =head2
30984 #: ../src/guestfs-actions.pod:4672
30985 msgid "guestfs_lvm_clear_filter"
30986 msgstr ""
30987
30988 #. type: verbatim
30989 #: ../src/guestfs-actions.pod:4674
30990 #, no-wrap
30991 msgid ""
30992 " int\n"
30993 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30994 "\n"
30995 msgstr ""
30996
30997 #. type: textblock
30998 #: ../src/guestfs-actions.pod:4677
30999 msgid ""
31000 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
31001 "see every block device."
31002 msgstr ""
31003
31004 #. type: =head2
31005 #: ../src/guestfs-actions.pod:4687
31006 msgid "guestfs_lvm_remove_all"
31007 msgstr ""
31008
31009 #. type: verbatim
31010 #: ../src/guestfs-actions.pod:4689
31011 #, no-wrap
31012 msgid ""
31013 " int\n"
31014 " guestfs_lvm_remove_all (guestfs_h *g);\n"
31015 "\n"
31016 msgstr ""
31017
31018 #. type: =head2
31019 #: ../src/guestfs-actions.pod:4699
31020 msgid "guestfs_lvm_set_filter"
31021 msgstr ""
31022
31023 #. type: verbatim
31024 #: ../src/guestfs-actions.pod:4701
31025 #, no-wrap
31026 msgid ""
31027 " int\n"
31028 " guestfs_lvm_set_filter (guestfs_h *g,\n"
31029 "                         char *const *devices);\n"
31030 "\n"
31031 msgstr ""
31032
31033 #. type: =head2
31034 #: ../src/guestfs-actions.pod:4732
31035 msgid "guestfs_lvremove"
31036 msgstr ""
31037
31038 #. type: verbatim
31039 #: ../src/guestfs-actions.pod:4734
31040 #, no-wrap
31041 msgid ""
31042 " int\n"
31043 " guestfs_lvremove (guestfs_h *g,\n"
31044 "                   const char *device);\n"
31045 "\n"
31046 msgstr ""
31047
31048 #. type: textblock
31049 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:6305
31050 #: ../src/guestfs-actions.pod:8265
31051 msgid "(Added in 1.0.13)"
31052 msgstr ""
31053
31054 #. type: =head2
31055 #: ../src/guestfs-actions.pod:4748
31056 msgid "guestfs_lvrename"
31057 msgstr ""
31058
31059 #. type: verbatim
31060 #: ../src/guestfs-actions.pod:4750
31061 #, no-wrap
31062 msgid ""
31063 " int\n"
31064 " guestfs_lvrename (guestfs_h *g,\n"
31065 "                   const char *logvol,\n"
31066 "                   const char *newlogvol);\n"
31067 "\n"
31068 msgstr ""
31069
31070 #. type: textblock
31071 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:8278
31072 msgid "(Added in 1.0.83)"
31073 msgstr ""
31074
31075 #. type: =head2
31076 #: ../src/guestfs-actions.pod:4761
31077 msgid "guestfs_lvresize"
31078 msgstr ""
31079
31080 #. type: verbatim
31081 #: ../src/guestfs-actions.pod:4763
31082 #, no-wrap
31083 msgid ""
31084 " int\n"
31085 " guestfs_lvresize (guestfs_h *g,\n"
31086 "                   const char *device,\n"
31087 "                   int mbytes);\n"
31088 "\n"
31089 msgstr ""
31090
31091 #. type: =head2
31092 #: ../src/guestfs-actions.pod:4776
31093 msgid "guestfs_lvresize_free"
31094 msgstr ""
31095
31096 #. type: verbatim
31097 #: ../src/guestfs-actions.pod:4778
31098 #, no-wrap
31099 msgid ""
31100 " int\n"
31101 " guestfs_lvresize_free (guestfs_h *g,\n"
31102 "                        const char *lv,\n"
31103 "                        int percent);\n"
31104 "\n"
31105 msgstr ""
31106
31107 #. type: textblock
31108 #: ../src/guestfs-actions.pod:4791
31109 msgid "(Added in 1.3.3)"
31110 msgstr ""
31111
31112 #. type: =head2
31113 #: ../src/guestfs-actions.pod:4793
31114 msgid "guestfs_lvs"
31115 msgstr ""
31116
31117 #. type: verbatim
31118 #: ../src/guestfs-actions.pod:4795
31119 #, no-wrap
31120 msgid ""
31121 " char **\n"
31122 " guestfs_lvs (guestfs_h *g);\n"
31123 "\n"
31124 msgstr ""
31125
31126 #. type: textblock
31127 #: ../src/guestfs-actions.pod:4804
31128 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
31129 msgstr ""
31130
31131 #. type: =head2
31132 #: ../src/guestfs-actions.pod:4812
31133 msgid "guestfs_lvs_full"
31134 msgstr ""
31135
31136 #. type: verbatim
31137 #: ../src/guestfs-actions.pod:4814
31138 #, no-wrap
31139 msgid ""
31140 " struct guestfs_lvm_lv_list *\n"
31141 " guestfs_lvs_full (guestfs_h *g);\n"
31142 "\n"
31143 msgstr ""
31144
31145 #. type: textblock
31146 #: ../src/guestfs-actions.pod:4820
31147 msgid ""
31148 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
31149 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
31150 msgstr ""
31151
31152 #. type: =head2
31153 #: ../src/guestfs-actions.pod:4826
31154 msgid "guestfs_lvuuid"
31155 msgstr ""
31156
31157 #. type: verbatim
31158 #: ../src/guestfs-actions.pod:4828
31159 #, no-wrap
31160 msgid ""
31161 " char *\n"
31162 " guestfs_lvuuid (guestfs_h *g,\n"
31163 "                 const char *device);\n"
31164 "\n"
31165 msgstr ""
31166
31167 #. type: =head2
31168 #: ../src/guestfs-actions.pod:4839
31169 msgid "guestfs_lxattrlist"
31170 msgstr ""
31171
31172 #. type: verbatim
31173 #: ../src/guestfs-actions.pod:4841
31174 #, no-wrap
31175 msgid ""
31176 " struct guestfs_xattr_list *\n"
31177 " guestfs_lxattrlist (guestfs_h *g,\n"
31178 "                     const char *path,\n"
31179 "                     char *const *names);\n"
31180 "\n"
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs-actions.pod:4860
31185 msgid ""
31186 "This call is intended for programs that want to efficiently list a directory "
31187 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31188 "a similarly efficient call for getting standard stats.  Very long directory "
31189 "listings might cause the protocol message size to be exceeded, causing this "
31190 "call to fail.  The caller must split up such requests into smaller groups of "
31191 "names."
31192 msgstr ""
31193
31194 #. type: =head2
31195 #: ../src/guestfs-actions.pod:4874
31196 msgid "guestfs_md_create"
31197 msgstr ""
31198
31199 #. type: verbatim
31200 #: ../src/guestfs-actions.pod:4876
31201 #, no-wrap
31202 msgid ""
31203 " int\n"
31204 " guestfs_md_create (guestfs_h *g,\n"
31205 "                    const char *name,\n"
31206 "                    char *const *devices,\n"
31207 "                    ...);\n"
31208 "\n"
31209 msgstr ""
31210
31211 #. type: verbatim
31212 #: ../src/guestfs-actions.pod:4887
31213 #, no-wrap
31214 msgid ""
31215 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
31216 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
31217 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
31218 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
31219 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
31220 "\n"
31221 msgstr ""
31222
31223 #. type: =head2
31224 #: ../src/guestfs-actions.pod:4949
31225 msgid "guestfs_md_create_va"
31226 msgstr ""
31227
31228 #. type: verbatim
31229 #: ../src/guestfs-actions.pod:4951
31230 #, no-wrap
31231 msgid ""
31232 " int\n"
31233 " guestfs_md_create_va (guestfs_h *g,\n"
31234 "                       const char *name,\n"
31235 "                       char *const *devices,\n"
31236 "                       va_list args);\n"
31237 "\n"
31238 msgstr ""
31239
31240 #. type: textblock
31241 #: ../src/guestfs-actions.pod:4957
31242 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
31243 msgstr ""
31244
31245 #. type: =head2
31246 #: ../src/guestfs-actions.pod:4961
31247 msgid "guestfs_md_create_argv"
31248 msgstr ""
31249
31250 #. type: verbatim
31251 #: ../src/guestfs-actions.pod:4963
31252 #, no-wrap
31253 msgid ""
31254 " int\n"
31255 " guestfs_md_create_argv (guestfs_h *g,\n"
31256 "                         const char *name,\n"
31257 "                         char *const *devices,\n"
31258 "                         const struct guestfs_md_create_argv *optargs);\n"
31259 "\n"
31260 msgstr ""
31261
31262 #. type: textblock
31263 #: ../src/guestfs-actions.pod:4969
31264 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
31265 msgstr ""
31266
31267 #. type: =head2
31268 #: ../src/guestfs-actions.pod:4973
31269 msgid "guestfs_md_detail"
31270 msgstr ""
31271
31272 #. type: verbatim
31273 #: ../src/guestfs-actions.pod:4975
31274 #, no-wrap
31275 msgid ""
31276 " char **\n"
31277 " guestfs_md_detail (guestfs_h *g,\n"
31278 "                    const char *md);\n"
31279 "\n"
31280 msgstr ""
31281
31282 #. type: =head2
31283 #: ../src/guestfs-actions.pod:5012
31284 msgid "guestfs_md_stop"
31285 msgstr ""
31286
31287 #. type: verbatim
31288 #: ../src/guestfs-actions.pod:5014
31289 #, no-wrap
31290 msgid ""
31291 " int\n"
31292 " guestfs_md_stop (guestfs_h *g,\n"
31293 "                  const char *md);\n"
31294 "\n"
31295 msgstr ""
31296
31297 #. type: =head2
31298 #: ../src/guestfs-actions.pod:5023
31299 msgid "guestfs_mkdir"
31300 msgstr ""
31301
31302 #. type: verbatim
31303 #: ../src/guestfs-actions.pod:5025
31304 #, no-wrap
31305 msgid ""
31306 " int\n"
31307 " guestfs_mkdir (guestfs_h *g,\n"
31308 "                const char *path);\n"
31309 "\n"
31310 msgstr ""
31311
31312 #. type: =head2
31313 #: ../src/guestfs-actions.pod:5035
31314 msgid "guestfs_mkdir_mode"
31315 msgstr ""
31316
31317 #. type: verbatim
31318 #: ../src/guestfs-actions.pod:5037
31319 #, no-wrap
31320 msgid ""
31321 " int\n"
31322 " guestfs_mkdir_mode (guestfs_h *g,\n"
31323 "                     const char *path,\n"
31324 "                     int mode);\n"
31325 "\n"
31326 msgstr ""
31327
31328 #. type: textblock
31329 #: ../src/guestfs-actions.pod:5049
31330 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31331 msgstr ""
31332
31333 #. type: =head2
31334 #: ../src/guestfs-actions.pod:5055
31335 msgid "guestfs_mkdir_p"
31336 msgstr ""
31337
31338 #. type: verbatim
31339 #: ../src/guestfs-actions.pod:5057
31340 #, no-wrap
31341 msgid ""
31342 " int\n"
31343 " guestfs_mkdir_p (guestfs_h *g,\n"
31344 "                  const char *path);\n"
31345 "\n"
31346 msgstr ""
31347
31348 #. type: =head2
31349 #: ../src/guestfs-actions.pod:5068
31350 msgid "guestfs_mkdtemp"
31351 msgstr ""
31352
31353 #. type: verbatim
31354 #: ../src/guestfs-actions.pod:5070
31355 #, no-wrap
31356 msgid ""
31357 " char *\n"
31358 " guestfs_mkdtemp (guestfs_h *g,\n"
31359 "                  const char *template);\n"
31360 "\n"
31361 msgstr ""
31362
31363 #. type: =head2
31364 #: ../src/guestfs-actions.pod:5098
31365 msgid "guestfs_mke2fs_J"
31366 msgstr ""
31367
31368 #. type: verbatim
31369 #: ../src/guestfs-actions.pod:5100
31370 #, no-wrap
31371 msgid ""
31372 " int\n"
31373 " guestfs_mke2fs_J (guestfs_h *g,\n"
31374 "                   const char *fstype,\n"
31375 "                   int blocksize,\n"
31376 "                   const char *device,\n"
31377 "                   const char *journal);\n"
31378 "\n"
31379 msgstr ""
31380
31381 #. type: textblock
31382 #: ../src/guestfs-actions.pod:5113
31383 msgid "See also C<guestfs_mke2journal>."
31384 msgstr ""
31385
31386 #. type: textblock
31387 #: ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5135
31388 #: ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5169
31389 #: ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197
31390 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5533
31391 msgid "(Added in 1.0.68)"
31392 msgstr ""
31393
31394 #. type: =head2
31395 #: ../src/guestfs-actions.pod:5119
31396 msgid "guestfs_mke2fs_JL"
31397 msgstr ""
31398
31399 #. type: verbatim
31400 #: ../src/guestfs-actions.pod:5121
31401 #, no-wrap
31402 msgid ""
31403 " int\n"
31404 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31405 "                    const char *fstype,\n"
31406 "                    int blocksize,\n"
31407 "                    const char *device,\n"
31408 "                    const char *label);\n"
31409 "\n"
31410 msgstr ""
31411
31412 #. type: textblock
31413 #: ../src/guestfs-actions.pod:5131
31414 msgid "See also C<guestfs_mke2journal_L>."
31415 msgstr ""
31416
31417 #. type: =head2
31418 #: ../src/guestfs-actions.pod:5137
31419 msgid "guestfs_mke2fs_JU"
31420 msgstr ""
31421
31422 #. type: verbatim
31423 #: ../src/guestfs-actions.pod:5139
31424 #, no-wrap
31425 msgid ""
31426 " int\n"
31427 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31428 "                    const char *fstype,\n"
31429 "                    int blocksize,\n"
31430 "                    const char *device,\n"
31431 "                    const char *uuid);\n"
31432 "\n"
31433 msgstr ""
31434
31435 #. type: textblock
31436 #: ../src/guestfs-actions.pod:5149
31437 msgid "See also C<guestfs_mke2journal_U>."
31438 msgstr ""
31439
31440 #. type: =head2
31441 #: ../src/guestfs-actions.pod:5155
31442 msgid "guestfs_mke2journal"
31443 msgstr ""
31444
31445 #. type: verbatim
31446 #: ../src/guestfs-actions.pod:5157
31447 #, no-wrap
31448 msgid ""
31449 " int\n"
31450 " guestfs_mke2journal (guestfs_h *g,\n"
31451 "                      int blocksize,\n"
31452 "                      const char *device);\n"
31453 "\n"
31454 msgstr ""
31455
31456 #. type: =head2
31457 #: ../src/guestfs-actions.pod:5171
31458 msgid "guestfs_mke2journal_L"
31459 msgstr ""
31460
31461 #. type: verbatim
31462 #: ../src/guestfs-actions.pod:5173
31463 #, no-wrap
31464 msgid ""
31465 " int\n"
31466 " guestfs_mke2journal_L (guestfs_h *g,\n"
31467 "                        int blocksize,\n"
31468 "                        const char *label,\n"
31469 "                        const char *device);\n"
31470 "\n"
31471 msgstr ""
31472
31473 #. type: =head2
31474 #: ../src/guestfs-actions.pod:5185
31475 msgid "guestfs_mke2journal_U"
31476 msgstr ""
31477
31478 #. type: verbatim
31479 #: ../src/guestfs-actions.pod:5187
31480 #, no-wrap
31481 msgid ""
31482 " int\n"
31483 " guestfs_mke2journal_U (guestfs_h *g,\n"
31484 "                        int blocksize,\n"
31485 "                        const char *uuid,\n"
31486 "                        const char *device);\n"
31487 "\n"
31488 msgstr ""
31489
31490 #. type: =head2
31491 #: ../src/guestfs-actions.pod:5199
31492 msgid "guestfs_mkfifo"
31493 msgstr ""
31494
31495 #. type: verbatim
31496 #: ../src/guestfs-actions.pod:5201
31497 #, no-wrap
31498 msgid ""
31499 " int\n"
31500 " guestfs_mkfifo (guestfs_h *g,\n"
31501 "                 int mode,\n"
31502 "                 const char *path);\n"
31503 "\n"
31504 msgstr ""
31505
31506 #. type: textblock
31507 #: ../src/guestfs-actions.pod:5206
31508 msgid ""
31509 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31510 "is just a convenient wrapper around C<guestfs_mknod>."
31511 msgstr ""
31512
31513 #. type: =head2
31514 #: ../src/guestfs-actions.pod:5216
31515 msgid "guestfs_mkfs"
31516 msgstr ""
31517
31518 #. type: verbatim
31519 #: ../src/guestfs-actions.pod:5218
31520 #, no-wrap
31521 msgid ""
31522 " int\n"
31523 " guestfs_mkfs (guestfs_h *g,\n"
31524 "               const char *fstype,\n"
31525 "               const char *device);\n"
31526 "\n"
31527 msgstr ""
31528
31529 #. type: =head2
31530 #: ../src/guestfs-actions.pod:5231
31531 msgid "guestfs_mkfs_b"
31532 msgstr ""
31533
31534 #. type: verbatim
31535 #: ../src/guestfs-actions.pod:5233
31536 #, no-wrap
31537 msgid ""
31538 " int\n"
31539 " guestfs_mkfs_b (guestfs_h *g,\n"
31540 "                 const char *fstype,\n"
31541 "                 int blocksize,\n"
31542 "                 const char *device);\n"
31543 "\n"
31544 msgstr ""
31545
31546 #. type: textblock
31547 #: ../src/guestfs-actions.pod:5239
31548 msgid ""
31549 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31550 "call instead."
31551 msgstr ""
31552
31553 #. type: textblock
31554 #: ../src/guestfs-actions.pod:5246
31555 msgid ""
31556 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31557 "block size of the resulting filesystem.  Supported block sizes depend on the "
31558 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31559 msgstr ""
31560
31561 #. type: =head2
31562 #: ../src/guestfs-actions.pod:5258
31563 msgid "guestfs_mkfs_opts"
31564 msgstr ""
31565
31566 #. type: verbatim
31567 #: ../src/guestfs-actions.pod:5260
31568 #, no-wrap
31569 msgid ""
31570 " int\n"
31571 " guestfs_mkfs_opts (guestfs_h *g,\n"
31572 "                    const char *fstype,\n"
31573 "                    const char *device,\n"
31574 "                    ...);\n"
31575 "\n"
31576 msgstr ""
31577
31578 #. type: verbatim
31579 #: ../src/guestfs-actions.pod:5271
31580 #, no-wrap
31581 msgid ""
31582 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31583 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31584 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31585 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31586 "\n"
31587 msgstr ""
31588
31589 #. type: textblock
31590 #: ../src/guestfs-actions.pod:5319
31591 msgid "(Added in 1.7.19)"
31592 msgstr ""
31593
31594 #. type: =head2
31595 #: ../src/guestfs-actions.pod:5321
31596 msgid "guestfs_mkfs_opts_va"
31597 msgstr ""
31598
31599 #. type: verbatim
31600 #: ../src/guestfs-actions.pod:5323
31601 #, no-wrap
31602 msgid ""
31603 " int\n"
31604 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31605 "                       const char *fstype,\n"
31606 "                       const char *device,\n"
31607 "                       va_list args);\n"
31608 "\n"
31609 msgstr ""
31610
31611 #. type: textblock
31612 #: ../src/guestfs-actions.pod:5329
31613 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31614 msgstr ""
31615
31616 #. type: =head2
31617 #: ../src/guestfs-actions.pod:5333
31618 msgid "guestfs_mkfs_opts_argv"
31619 msgstr ""
31620
31621 #. type: verbatim
31622 #: ../src/guestfs-actions.pod:5335
31623 #, no-wrap
31624 msgid ""
31625 " int\n"
31626 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31627 "                         const char *fstype,\n"
31628 "                         const char *device,\n"
31629 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31630 "\n"
31631 msgstr ""
31632
31633 #. type: textblock
31634 #: ../src/guestfs-actions.pod:5341
31635 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31636 msgstr ""
31637
31638 #. type: =head2
31639 #: ../src/guestfs-actions.pod:5345
31640 msgid "guestfs_mkmountpoint"
31641 msgstr ""
31642
31643 #. type: verbatim
31644 #: ../src/guestfs-actions.pod:5347
31645 #, no-wrap
31646 msgid ""
31647 " int\n"
31648 " guestfs_mkmountpoint (guestfs_h *g,\n"
31649 "                       const char *exemptpath);\n"
31650 "\n"
31651 msgstr ""
31652
31653 #. type: textblock
31654 #: ../src/guestfs-actions.pod:5351
31655 msgid ""
31656 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31657 "that can be used to create extra mountpoints before mounting the first "
31658 "filesystem."
31659 msgstr ""
31660
31661 #. type: textblock
31662 #: ../src/guestfs-actions.pod:5375
31663 msgid ""
31664 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31665 "may get unexpected errors if you try to mix these calls.  It is safest to "
31666 "manually unmount filesystems and remove mountpoints after use."
31667 msgstr ""
31668
31669 #. type: textblock
31670 #: ../src/guestfs-actions.pod:5379
31671 msgid ""
31672 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31673 "first, so for this to work for manual mountpoints, you must ensure that the "
31674 "innermost mountpoints have the longest pathnames, as in the example code "
31675 "above."
31676 msgstr ""
31677
31678 #. type: textblock
31679 #: ../src/guestfs-actions.pod:5386
31680 msgid ""
31681 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31682 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31683 "can also trigger these issues."
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5698
31688 #: ../src/guestfs-actions.pod:6725
31689 msgid "(Added in 1.0.62)"
31690 msgstr ""
31691
31692 #. type: =head2
31693 #: ../src/guestfs-actions.pod:5394
31694 msgid "guestfs_mknod"
31695 msgstr ""
31696
31697 #. type: verbatim
31698 #: ../src/guestfs-actions.pod:5396
31699 #, no-wrap
31700 msgid ""
31701 " int\n"
31702 " guestfs_mknod (guestfs_h *g,\n"
31703 "                int mode,\n"
31704 "                int devmajor,\n"
31705 "                int devminor,\n"
31706 "                const char *path);\n"
31707 "\n"
31708 msgstr ""
31709
31710 #. type: textblock
31711 #: ../src/guestfs-actions.pod:5411
31712 msgid ""
31713 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31714 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31715 "regular file).  These constants are available in the standard Linux header "
31716 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31717 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31718 "the appropriate constant for you."
31719 msgstr ""
31720
31721 #. type: =head2
31722 #: ../src/guestfs-actions.pod:5425
31723 msgid "guestfs_mknod_b"
31724 msgstr ""
31725
31726 #. type: verbatim
31727 #: ../src/guestfs-actions.pod:5427
31728 #, no-wrap
31729 msgid ""
31730 " int\n"
31731 " guestfs_mknod_b (guestfs_h *g,\n"
31732 "                  int mode,\n"
31733 "                  int devmajor,\n"
31734 "                  int devminor,\n"
31735 "                  const char *path);\n"
31736 "\n"
31737 msgstr ""
31738
31739 #. type: textblock
31740 #: ../src/guestfs-actions.pod:5434
31741 msgid ""
31742 "This call creates a block device node called C<path> with mode C<mode> and "
31743 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31744 "wrapper around C<guestfs_mknod>."
31745 msgstr ""
31746
31747 #. type: =head2
31748 #: ../src/guestfs-actions.pod:5444
31749 msgid "guestfs_mknod_c"
31750 msgstr ""
31751
31752 #. type: verbatim
31753 #: ../src/guestfs-actions.pod:5446
31754 #, no-wrap
31755 msgid ""
31756 " int\n"
31757 " guestfs_mknod_c (guestfs_h *g,\n"
31758 "                  int mode,\n"
31759 "                  int devmajor,\n"
31760 "                  int devminor,\n"
31761 "                  const char *path);\n"
31762 "\n"
31763 msgstr ""
31764
31765 #. type: textblock
31766 #: ../src/guestfs-actions.pod:5453
31767 msgid ""
31768 "This call creates a char device node called C<path> with mode C<mode> and "
31769 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31770 "wrapper around C<guestfs_mknod>."
31771 msgstr ""
31772
31773 #. type: =head2
31774 #: ../src/guestfs-actions.pod:5463
31775 msgid "guestfs_mkswap"
31776 msgstr ""
31777
31778 #. type: verbatim
31779 #: ../src/guestfs-actions.pod:5465
31780 #, no-wrap
31781 msgid ""
31782 " int\n"
31783 " guestfs_mkswap (guestfs_h *g,\n"
31784 "                 const char *device);\n"
31785 "\n"
31786 msgstr ""
31787
31788 #. type: =head2
31789 #: ../src/guestfs-actions.pod:5475
31790 msgid "guestfs_mkswap_L"
31791 msgstr ""
31792
31793 #. type: verbatim
31794 #: ../src/guestfs-actions.pod:5477
31795 #, no-wrap
31796 msgid ""
31797 " int\n"
31798 " guestfs_mkswap_L (guestfs_h *g,\n"
31799 "                   const char *label,\n"
31800 "                   const char *device);\n"
31801 "\n"
31802 msgstr ""
31803
31804 #. type: =head2
31805 #: ../src/guestfs-actions.pod:5492
31806 msgid "guestfs_mkswap_U"
31807 msgstr ""
31808
31809 #. type: verbatim
31810 #: ../src/guestfs-actions.pod:5494
31811 #, no-wrap
31812 msgid ""
31813 " int\n"
31814 " guestfs_mkswap_U (guestfs_h *g,\n"
31815 "                   const char *uuid,\n"
31816 "                   const char *device);\n"
31817 "\n"
31818 msgstr ""
31819
31820 #. type: =head2
31821 #: ../src/guestfs-actions.pod:5505
31822 msgid "guestfs_mkswap_file"
31823 msgstr ""
31824
31825 #. type: verbatim
31826 #: ../src/guestfs-actions.pod:5507
31827 #, no-wrap
31828 msgid ""
31829 " int\n"
31830 " guestfs_mkswap_file (guestfs_h *g,\n"
31831 "                      const char *path);\n"
31832 "\n"
31833 msgstr ""
31834
31835 #. type: textblock
31836 #: ../src/guestfs-actions.pod:5513
31837 msgid ""
31838 "This command just writes a swap file signature to an existing file.  To "
31839 "create the file itself, use something like C<guestfs_fallocate>."
31840 msgstr ""
31841
31842 #. type: =head2
31843 #: ../src/guestfs-actions.pod:5520
31844 msgid "guestfs_modprobe"
31845 msgstr ""
31846
31847 #. type: verbatim
31848 #: ../src/guestfs-actions.pod:5522
31849 #, no-wrap
31850 msgid ""
31851 " int\n"
31852 " guestfs_modprobe (guestfs_h *g,\n"
31853 "                   const char *modulename);\n"
31854 "\n"
31855 msgstr ""
31856
31857 #. type: =head2
31858 #: ../src/guestfs-actions.pod:5535
31859 msgid "guestfs_mount"
31860 msgstr ""
31861
31862 #. type: verbatim
31863 #: ../src/guestfs-actions.pod:5537
31864 #, no-wrap
31865 msgid ""
31866 " int\n"
31867 " guestfs_mount (guestfs_h *g,\n"
31868 "                const char *device,\n"
31869 "                const char *mountpoint);\n"
31870 "\n"
31871 msgstr ""
31872
31873 #. type: textblock
31874 #: ../src/guestfs-actions.pod:5556
31875 msgid ""
31876 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31877 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31878 "problems for users.  If your program might need to work with older versions "
31879 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31880 "for the first parameter if you don't want any options)."
31881 msgstr ""
31882
31883 #. type: =head2
31884 #: ../src/guestfs-actions.pod:5567
31885 msgid "guestfs_mount_9p"
31886 msgstr ""
31887
31888 #. type: verbatim
31889 #: ../src/guestfs-actions.pod:5569
31890 #, no-wrap
31891 msgid ""
31892 " int\n"
31893 " guestfs_mount_9p (guestfs_h *g,\n"
31894 "                   const char *mounttag,\n"
31895 "                   const char *mountpoint,\n"
31896 "                   ...);\n"
31897 "\n"
31898 msgstr ""
31899
31900 #. type: verbatim
31901 #: ../src/guestfs-actions.pod:5580
31902 #, no-wrap
31903 msgid ""
31904 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31905 "\n"
31906 msgstr ""
31907
31908 #. type: =head2
31909 #: ../src/guestfs-actions.pod:5593
31910 msgid "guestfs_mount_9p_va"
31911 msgstr ""
31912
31913 #. type: verbatim
31914 #: ../src/guestfs-actions.pod:5595
31915 #, no-wrap
31916 msgid ""
31917 " int\n"
31918 " guestfs_mount_9p_va (guestfs_h *g,\n"
31919 "                      const char *mounttag,\n"
31920 "                      const char *mountpoint,\n"
31921 "                      va_list args);\n"
31922 "\n"
31923 msgstr ""
31924
31925 #. type: textblock
31926 #: ../src/guestfs-actions.pod:5601
31927 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31928 msgstr ""
31929
31930 #. type: =head2
31931 #: ../src/guestfs-actions.pod:5605
31932 msgid "guestfs_mount_9p_argv"
31933 msgstr ""
31934
31935 #. type: verbatim
31936 #: ../src/guestfs-actions.pod:5607
31937 #, no-wrap
31938 msgid ""
31939 " int\n"
31940 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31941 "                        const char *mounttag,\n"
31942 "                        const char *mountpoint,\n"
31943 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31944 "\n"
31945 msgstr ""
31946
31947 #. type: textblock
31948 #: ../src/guestfs-actions.pod:5613
31949 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31950 msgstr ""
31951
31952 #. type: =head2
31953 #: ../src/guestfs-actions.pod:5617
31954 msgid "guestfs_mount_loop"
31955 msgstr ""
31956
31957 #. type: verbatim
31958 #: ../src/guestfs-actions.pod:5619
31959 #, no-wrap
31960 msgid ""
31961 " int\n"
31962 " guestfs_mount_loop (guestfs_h *g,\n"
31963 "                     const char *file,\n"
31964 "                     const char *mountpoint);\n"
31965 "\n"
31966 msgstr ""
31967
31968 #. type: =head2
31969 #: ../src/guestfs-actions.pod:5632
31970 msgid "guestfs_mount_options"
31971 msgstr ""
31972
31973 #. type: verbatim
31974 #: ../src/guestfs-actions.pod:5634
31975 #, no-wrap
31976 msgid ""
31977 " int\n"
31978 " guestfs_mount_options (guestfs_h *g,\n"
31979 "                        const char *options,\n"
31980 "                        const char *device,\n"
31981 "                        const char *mountpoint);\n"
31982 "\n"
31983 msgstr ""
31984
31985 #. type: textblock
31986 #: ../src/guestfs-actions.pod:5640
31987 msgid ""
31988 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31989 "the mount options as for the L<mount(8)> I<-o> flag."
31990 msgstr ""
31991
31992 #. type: textblock
31993 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5664
31994 #: ../src/guestfs-actions.pod:5681
31995 msgid "(Added in 1.0.10)"
31996 msgstr ""
31997
31998 #. type: =head2
31999 #: ../src/guestfs-actions.pod:5652
32000 msgid "guestfs_mount_ro"
32001 msgstr ""
32002
32003 #. type: verbatim
32004 #: ../src/guestfs-actions.pod:5654
32005 #, no-wrap
32006 msgid ""
32007 " int\n"
32008 " guestfs_mount_ro (guestfs_h *g,\n"
32009 "                   const char *device,\n"
32010 "                   const char *mountpoint);\n"
32011 "\n"
32012 msgstr ""
32013
32014 #. type: textblock
32015 #: ../src/guestfs-actions.pod:5659
32016 msgid ""
32017 "This is the same as the C<guestfs_mount> command, but it mounts the "
32018 "filesystem with the read-only (I<-o ro>) flag."
32019 msgstr ""
32020
32021 #. type: =head2
32022 #: ../src/guestfs-actions.pod:5666
32023 msgid "guestfs_mount_vfs"
32024 msgstr ""
32025
32026 #. type: verbatim
32027 #: ../src/guestfs-actions.pod:5668
32028 #, no-wrap
32029 msgid ""
32030 " int\n"
32031 " guestfs_mount_vfs (guestfs_h *g,\n"
32032 "                    const char *options,\n"
32033 "                    const char *vfstype,\n"
32034 "                    const char *device,\n"
32035 "                    const char *mountpoint);\n"
32036 "\n"
32037 msgstr ""
32038
32039 #. type: textblock
32040 #: ../src/guestfs-actions.pod:5675
32041 msgid ""
32042 "This is the same as the C<guestfs_mount> command, but it allows you to set "
32043 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
32044 "t> flags."
32045 msgstr ""
32046
32047 #. type: =head2
32048 #: ../src/guestfs-actions.pod:5683
32049 msgid "guestfs_mountpoints"
32050 msgstr ""
32051
32052 #. type: verbatim
32053 #: ../src/guestfs-actions.pod:5685
32054 #, no-wrap
32055 msgid ""
32056 " char **\n"
32057 " guestfs_mountpoints (guestfs_h *g);\n"
32058 "\n"
32059 msgstr ""
32060
32061 #. type: textblock
32062 #: ../src/guestfs-actions.pod:5688
32063 msgid ""
32064 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
32065 "devices.  This one returns a hash table (map) of device name to directory "
32066 "where the device is mounted."
32067 msgstr ""
32068
32069 #. type: =head2
32070 #: ../src/guestfs-actions.pod:5700
32071 msgid "guestfs_mounts"
32072 msgstr ""
32073
32074 #. type: verbatim
32075 #: ../src/guestfs-actions.pod:5702
32076 #, no-wrap
32077 msgid ""
32078 " char **\n"
32079 " guestfs_mounts (guestfs_h *g);\n"
32080 "\n"
32081 msgstr ""
32082
32083 #. type: textblock
32084 #: ../src/guestfs-actions.pod:5710
32085 msgid "See also: C<guestfs_mountpoints>"
32086 msgstr ""
32087
32088 #. type: =head2
32089 #: ../src/guestfs-actions.pod:5718
32090 msgid "guestfs_mv"
32091 msgstr ""
32092
32093 #. type: verbatim
32094 #: ../src/guestfs-actions.pod:5720
32095 #, no-wrap
32096 msgid ""
32097 " int\n"
32098 " guestfs_mv (guestfs_h *g,\n"
32099 "             const char *src,\n"
32100 "             const char *dest);\n"
32101 "\n"
32102 msgstr ""
32103
32104 #. type: =head2
32105 #: ../src/guestfs-actions.pod:5732
32106 msgid "guestfs_ntfs_3g_probe"
32107 msgstr ""
32108
32109 #. type: verbatim
32110 #: ../src/guestfs-actions.pod:5734
32111 #, no-wrap
32112 msgid ""
32113 " int\n"
32114 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
32115 "                        int rw,\n"
32116 "                        const char *device);\n"
32117 "\n"
32118 msgstr ""
32119
32120 #. type: textblock
32121 #: ../src/guestfs-actions.pod:5753
32122 msgid "(Added in 1.0.43)"
32123 msgstr ""
32124
32125 #. type: =head2
32126 #: ../src/guestfs-actions.pod:5755
32127 msgid "guestfs_ntfsresize"
32128 msgstr ""
32129
32130 #. type: verbatim
32131 #: ../src/guestfs-actions.pod:5757
32132 #, no-wrap
32133 msgid ""
32134 " int\n"
32135 " guestfs_ntfsresize (guestfs_h *g,\n"
32136 "                     const char *device);\n"
32137 "\n"
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5861
32142 msgid ""
32143 "I<This function is deprecated.> In new code, use the L</"
32144 "guestfs_ntfsresize_opts> call instead."
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs-actions.pod:5785
32149 msgid "guestfs_ntfsresize_opts"
32150 msgstr ""
32151
32152 #. type: verbatim
32153 #: ../src/guestfs-actions.pod:5787
32154 #, no-wrap
32155 msgid ""
32156 " int\n"
32157 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
32158 "                          const char *device,\n"
32159 "                          ...);\n"
32160 "\n"
32161 msgstr ""
32162
32163 #. type: verbatim
32164 #: ../src/guestfs-actions.pod:5797
32165 #, no-wrap
32166 msgid ""
32167 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
32168 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
32169 "\n"
32170 msgstr ""
32171
32172 #. type: textblock
32173 #: ../src/guestfs-actions.pod:5817
32174 msgid ""
32175 "After the resize operation, the filesystem is always marked as requiring a "
32176 "consistency check (for safety).  You have to boot into Windows to perform "
32177 "this check and clear this condition.  If you I<don't> set the C<force> "
32178 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
32179 "times on a single filesystem without booting into Windows between each "
32180 "resize."
32181 msgstr ""
32182
32183 #. type: =head2
32184 #: ../src/guestfs-actions.pod:5832
32185 msgid "guestfs_ntfsresize_opts_va"
32186 msgstr ""
32187
32188 #. type: verbatim
32189 #: ../src/guestfs-actions.pod:5834
32190 #, no-wrap
32191 msgid ""
32192 " int\n"
32193 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32194 "                             const char *device,\n"
32195 "                             va_list args);\n"
32196 "\n"
32197 msgstr ""
32198
32199 #. type: textblock
32200 #: ../src/guestfs-actions.pod:5839
32201 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32202 msgstr ""
32203
32204 #. type: =head2
32205 #: ../src/guestfs-actions.pod:5843
32206 msgid "guestfs_ntfsresize_opts_argv"
32207 msgstr ""
32208
32209 #. type: verbatim
32210 #: ../src/guestfs-actions.pod:5845
32211 #, no-wrap
32212 msgid ""
32213 " int\n"
32214 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32215 "                               const char *device,\n"
32216 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32217 "\n"
32218 msgstr ""
32219
32220 #. type: textblock
32221 #: ../src/guestfs-actions.pod:5850
32222 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32223 msgstr ""
32224
32225 #. type: =head2
32226 #: ../src/guestfs-actions.pod:5854
32227 msgid "guestfs_ntfsresize_size"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-actions.pod:5856
32232 #, no-wrap
32233 msgid ""
32234 " int\n"
32235 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32236 "                          const char *device,\n"
32237 "                          int64_t size);\n"
32238 "\n"
32239 msgstr ""
32240
32241 #. type: textblock
32242 #: ../src/guestfs-actions.pod:5868
32243 msgid ""
32244 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32245 "to specify the new size (in bytes) explicitly."
32246 msgstr ""
32247
32248 #. type: textblock
32249 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:6332
32250 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6673
32251 #: ../src/guestfs-actions.pod:8422
32252 msgid "(Added in 1.3.14)"
32253 msgstr ""
32254
32255 #. type: =head2
32256 #: ../src/guestfs-actions.pod:5875
32257 msgid "guestfs_part_add"
32258 msgstr ""
32259
32260 #. type: verbatim
32261 #: ../src/guestfs-actions.pod:5877
32262 #, no-wrap
32263 msgid ""
32264 " int\n"
32265 " guestfs_part_add (guestfs_h *g,\n"
32266 "                   const char *device,\n"
32267 "                   const char *prlogex,\n"
32268 "                   int64_t startsect,\n"
32269 "                   int64_t endsect);\n"
32270 "\n"
32271 msgstr ""
32272
32273 #. type: textblock
32274 #: ../src/guestfs-actions.pod:5884
32275 msgid ""
32276 "This command adds a partition to C<device>.  If there is no partition table "
32277 "on the device, call C<guestfs_part_init> first."
32278 msgstr ""
32279
32280 #. type: textblock
32281 #: ../src/guestfs-actions.pod:5896
32282 msgid ""
32283 "Creating a partition which covers the whole disk is not so easy.  Use "
32284 "C<guestfs_part_disk> to do that."
32285 msgstr ""
32286
32287 #. type: textblock
32288 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5936
32289 #: ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6073
32290 #: ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6130
32291 #: ../src/guestfs-actions.pod:6170
32292 msgid "(Added in 1.0.78)"
32293 msgstr ""
32294
32295 #. type: =head2
32296 #: ../src/guestfs-actions.pod:5903
32297 msgid "guestfs_part_del"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-actions.pod:5905
32302 #, no-wrap
32303 msgid ""
32304 " int\n"
32305 " guestfs_part_del (guestfs_h *g,\n"
32306 "                   const char *device,\n"
32307 "                   int partnum);\n"
32308 "\n"
32309 msgstr ""
32310
32311 #. type: =head2
32312 #: ../src/guestfs-actions.pod:5920
32313 msgid "guestfs_part_disk"
32314 msgstr ""
32315
32316 #. type: verbatim
32317 #: ../src/guestfs-actions.pod:5922
32318 #, no-wrap
32319 msgid ""
32320 " int\n"
32321 " guestfs_part_disk (guestfs_h *g,\n"
32322 "                    const char *device,\n"
32323 "                    const char *parttype);\n"
32324 "\n"
32325 msgstr ""
32326
32327 #. type: textblock
32328 #: ../src/guestfs-actions.pod:5927
32329 msgid ""
32330 "This command is simply a combination of C<guestfs_part_init> followed by "
32331 "C<guestfs_part_add> to create a single primary partition covering the whole "
32332 "disk."
32333 msgstr ""
32334
32335 #. type: textblock
32336 #: ../src/guestfs-actions.pod:5931
32337 msgid ""
32338 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32339 "possible values are described in C<guestfs_part_init>."
32340 msgstr ""
32341
32342 #. type: =head2
32343 #: ../src/guestfs-actions.pod:5938
32344 msgid "guestfs_part_get_bootable"
32345 msgstr ""
32346
32347 #. type: verbatim
32348 #: ../src/guestfs-actions.pod:5940
32349 #, no-wrap
32350 msgid ""
32351 " int\n"
32352 " guestfs_part_get_bootable (guestfs_h *g,\n"
32353 "                            const char *device,\n"
32354 "                            int partnum);\n"
32355 "\n"
32356 msgstr ""
32357
32358 #. type: textblock
32359 #: ../src/guestfs-actions.pod:5948
32360 msgid "See also C<guestfs_part_set_bootable>."
32361 msgstr ""
32362
32363 #. type: =head2
32364 #: ../src/guestfs-actions.pod:5954
32365 msgid "guestfs_part_get_mbr_id"
32366 msgstr ""
32367
32368 #. type: verbatim
32369 #: ../src/guestfs-actions.pod:5956
32370 #, no-wrap
32371 msgid ""
32372 " int\n"
32373 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32374 "                          const char *device,\n"
32375 "                          int partnum);\n"
32376 "\n"
32377 msgstr ""
32378
32379 #. type: textblock
32380 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6146
32381 msgid ""
32382 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32383 "undefined results for other partition table types (see "
32384 "C<guestfs_part_get_parttype>)."
32385 msgstr ""
32386
32387 #. type: =head2
32388 #: ../src/guestfs-actions.pod:5972
32389 msgid "guestfs_part_get_parttype"
32390 msgstr ""
32391
32392 #. type: verbatim
32393 #: ../src/guestfs-actions.pod:5974
32394 #, no-wrap
32395 msgid ""
32396 " char *\n"
32397 " guestfs_part_get_parttype (guestfs_h *g,\n"
32398 "                            const char *device);\n"
32399 "\n"
32400 msgstr ""
32401
32402 #. type: textblock
32403 #: ../src/guestfs-actions.pod:5981
32404 msgid ""
32405 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32406 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32407 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32408 msgstr ""
32409
32410 #. type: =head2
32411 #: ../src/guestfs-actions.pod:5991
32412 msgid "guestfs_part_init"
32413 msgstr ""
32414
32415 #. type: verbatim
32416 #: ../src/guestfs-actions.pod:5993
32417 #, no-wrap
32418 msgid ""
32419 " int\n"
32420 " guestfs_part_init (guestfs_h *g,\n"
32421 "                    const char *device,\n"
32422 "                    const char *parttype);\n"
32423 "\n"
32424 msgstr ""
32425
32426 #. type: textblock
32427 #: ../src/guestfs-actions.pod:6002
32428 msgid ""
32429 "Initially there are no partitions.  Following this, you should call "
32430 "C<guestfs_part_add> for each partition required."
32431 msgstr ""
32432
32433 #. type: =head2
32434 #: ../src/guestfs-actions.pod:6075
32435 msgid "guestfs_part_list"
32436 msgstr ""
32437
32438 #. type: verbatim
32439 #: ../src/guestfs-actions.pod:6077
32440 #, no-wrap
32441 msgid ""
32442 " struct guestfs_partition_list *\n"
32443 " guestfs_part_list (guestfs_h *g,\n"
32444 "                    const char *device);\n"
32445 "\n"
32446 msgstr ""
32447
32448 #. type: textblock
32449 #: ../src/guestfs-actions.pod:6094
32450 msgid ""
32451 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32452 "the device's sector size, see C<guestfs_blockdev_getss>."
32453 msgstr ""
32454
32455 #. type: textblock
32456 #: ../src/guestfs-actions.pod:6107
32457 msgid ""
32458 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32459 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32460 "use>."
32461 msgstr ""
32462
32463 #. type: =head2
32464 #: ../src/guestfs-actions.pod:6113
32465 msgid "guestfs_part_set_bootable"
32466 msgstr ""
32467
32468 #. type: verbatim
32469 #: ../src/guestfs-actions.pod:6115
32470 #, no-wrap
32471 msgid ""
32472 " int\n"
32473 " guestfs_part_set_bootable (guestfs_h *g,\n"
32474 "                            const char *device,\n"
32475 "                            int partnum,\n"
32476 "                            int bootable);\n"
32477 "\n"
32478 msgstr ""
32479
32480 #. type: =head2
32481 #: ../src/guestfs-actions.pod:6132
32482 msgid "guestfs_part_set_mbr_id"
32483 msgstr ""
32484
32485 #. type: verbatim
32486 #: ../src/guestfs-actions.pod:6134
32487 #, no-wrap
32488 msgid ""
32489 " int\n"
32490 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32491 "                          const char *device,\n"
32492 "                          int partnum,\n"
32493 "                          int idbyte);\n"
32494 "\n"
32495 msgstr ""
32496
32497 #. type: =head2
32498 #: ../src/guestfs-actions.pod:6154
32499 msgid "guestfs_part_set_name"
32500 msgstr ""
32501
32502 #. type: verbatim
32503 #: ../src/guestfs-actions.pod:6156
32504 #, no-wrap
32505 msgid ""
32506 " int\n"
32507 " guestfs_part_set_name (guestfs_h *g,\n"
32508 "                        const char *device,\n"
32509 "                        int partnum,\n"
32510 "                        const char *name);\n"
32511 "\n"
32512 msgstr ""
32513
32514 #. type: =head2
32515 #: ../src/guestfs-actions.pod:6172
32516 msgid "guestfs_part_to_dev"
32517 msgstr ""
32518
32519 #. type: verbatim
32520 #: ../src/guestfs-actions.pod:6174
32521 #, no-wrap
32522 msgid ""
32523 " char *\n"
32524 " guestfs_part_to_dev (guestfs_h *g,\n"
32525 "                      const char *partition);\n"
32526 "\n"
32527 msgstr ""
32528
32529 #. type: textblock
32530 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6201
32531 msgid ""
32532 "The named partition must exist, for example as a string returned from "
32533 "C<guestfs_list_partitions>."
32534 msgstr ""
32535
32536 #. type: textblock
32537 #: ../src/guestfs-actions.pod:6185
32538 msgid "See also C<guestfs_part_to_partnum>."
32539 msgstr ""
32540
32541 #. type: =head2
32542 #: ../src/guestfs-actions.pod:6192
32543 msgid "guestfs_part_to_partnum"
32544 msgstr ""
32545
32546 #. type: verbatim
32547 #: ../src/guestfs-actions.pod:6194
32548 #, no-wrap
32549 msgid ""
32550 " int\n"
32551 " guestfs_part_to_partnum (guestfs_h *g,\n"
32552 "                          const char *partition);\n"
32553 "\n"
32554 msgstr ""
32555
32556 #. type: textblock
32557 #: ../src/guestfs-actions.pod:6204
32558 msgid "See also C<guestfs_part_to_dev>."
32559 msgstr ""
32560
32561 #. type: =head2
32562 #: ../src/guestfs-actions.pod:6210
32563 msgid "guestfs_ping_daemon"
32564 msgstr ""
32565
32566 #. type: verbatim
32567 #: ../src/guestfs-actions.pod:6212
32568 #, no-wrap
32569 msgid ""
32570 " int\n"
32571 " guestfs_ping_daemon (guestfs_h *g);\n"
32572 "\n"
32573 msgstr ""
32574
32575 #. type: =head2
32576 #: ../src/guestfs-actions.pod:6224
32577 msgid "guestfs_pread"
32578 msgstr ""
32579
32580 #. type: verbatim
32581 #: ../src/guestfs-actions.pod:6226
32582 #, no-wrap
32583 msgid ""
32584 " char *\n"
32585 " guestfs_pread (guestfs_h *g,\n"
32586 "                const char *path,\n"
32587 "                int count,\n"
32588 "                int64_t offset,\n"
32589 "                size_t *size_r);\n"
32590 "\n"
32591 msgstr ""
32592
32593 #. type: textblock
32594 #: ../src/guestfs-actions.pod:6239
32595 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32596 msgstr ""
32597
32598 #. type: =head2
32599 #: ../src/guestfs-actions.pod:6250
32600 msgid "guestfs_pread_device"
32601 msgstr ""
32602
32603 #. type: verbatim
32604 #: ../src/guestfs-actions.pod:6252
32605 #, no-wrap
32606 msgid ""
32607 " char *\n"
32608 " guestfs_pread_device (guestfs_h *g,\n"
32609 "                       const char *device,\n"
32610 "                       int count,\n"
32611 "                       int64_t offset,\n"
32612 "                       size_t *size_r);\n"
32613 "\n"
32614 msgstr ""
32615
32616 #. type: textblock
32617 #: ../src/guestfs-actions.pod:6265
32618 msgid "See also C<guestfs_pread>."
32619 msgstr ""
32620
32621 #. type: textblock
32622 #: ../src/guestfs-actions.pod:6274
32623 msgid "(Added in 1.5.21)"
32624 msgstr ""
32625
32626 #. type: =head2
32627 #: ../src/guestfs-actions.pod:6276
32628 msgid "guestfs_pvcreate"
32629 msgstr ""
32630
32631 #. type: verbatim
32632 #: ../src/guestfs-actions.pod:6278
32633 #, no-wrap
32634 msgid ""
32635 " int\n"
32636 " guestfs_pvcreate (guestfs_h *g,\n"
32637 "                   const char *device);\n"
32638 "\n"
32639 msgstr ""
32640
32641 #. type: =head2
32642 #: ../src/guestfs-actions.pod:6290
32643 msgid "guestfs_pvremove"
32644 msgstr ""
32645
32646 #. type: verbatim
32647 #: ../src/guestfs-actions.pod:6292
32648 #, no-wrap
32649 msgid ""
32650 " int\n"
32651 " guestfs_pvremove (guestfs_h *g,\n"
32652 "                   const char *device);\n"
32653 "\n"
32654 msgstr ""
32655
32656 #. type: =head2
32657 #: ../src/guestfs-actions.pod:6307
32658 msgid "guestfs_pvresize"
32659 msgstr ""
32660
32661 #. type: verbatim
32662 #: ../src/guestfs-actions.pod:6309
32663 #, no-wrap
32664 msgid ""
32665 " int\n"
32666 " guestfs_pvresize (guestfs_h *g,\n"
32667 "                   const char *device);\n"
32668 "\n"
32669 msgstr ""
32670
32671 #. type: =head2
32672 #: ../src/guestfs-actions.pod:6320
32673 msgid "guestfs_pvresize_size"
32674 msgstr ""
32675
32676 #. type: verbatim
32677 #: ../src/guestfs-actions.pod:6322
32678 #, no-wrap
32679 msgid ""
32680 " int\n"
32681 " guestfs_pvresize_size (guestfs_h *g,\n"
32682 "                        const char *device,\n"
32683 "                        int64_t size);\n"
32684 "\n"
32685 msgstr ""
32686
32687 #. type: textblock
32688 #: ../src/guestfs-actions.pod:6327
32689 msgid ""
32690 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32691 "specify the new size (in bytes) explicitly."
32692 msgstr ""
32693
32694 #. type: =head2
32695 #: ../src/guestfs-actions.pod:6334
32696 msgid "guestfs_pvs"
32697 msgstr ""
32698
32699 #. type: verbatim
32700 #: ../src/guestfs-actions.pod:6336
32701 #, no-wrap
32702 msgid ""
32703 " char **\n"
32704 " guestfs_pvs (guestfs_h *g);\n"
32705 "\n"
32706 msgstr ""
32707
32708 #. type: textblock
32709 #: ../src/guestfs-actions.pod:6345
32710 msgid "See also C<guestfs_pvs_full>."
32711 msgstr ""
32712
32713 #. type: =head2
32714 #: ../src/guestfs-actions.pod:6353
32715 msgid "guestfs_pvs_full"
32716 msgstr ""
32717
32718 #. type: verbatim
32719 #: ../src/guestfs-actions.pod:6355
32720 #, no-wrap
32721 msgid ""
32722 " struct guestfs_lvm_pv_list *\n"
32723 " guestfs_pvs_full (guestfs_h *g);\n"
32724 "\n"
32725 msgstr ""
32726
32727 #. type: textblock
32728 #: ../src/guestfs-actions.pod:6361
32729 msgid ""
32730 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32731 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32732 msgstr ""
32733
32734 #. type: =head2
32735 #: ../src/guestfs-actions.pod:6367
32736 msgid "guestfs_pvuuid"
32737 msgstr ""
32738
32739 #. type: verbatim
32740 #: ../src/guestfs-actions.pod:6369
32741 #, no-wrap
32742 msgid ""
32743 " char *\n"
32744 " guestfs_pvuuid (guestfs_h *g,\n"
32745 "                 const char *device);\n"
32746 "\n"
32747 msgstr ""
32748
32749 #. type: =head2
32750 #: ../src/guestfs-actions.pod:6380
32751 msgid "guestfs_pwrite"
32752 msgstr ""
32753
32754 #. type: verbatim
32755 #: ../src/guestfs-actions.pod:6382
32756 #, no-wrap
32757 msgid ""
32758 " int\n"
32759 " guestfs_pwrite (guestfs_h *g,\n"
32760 "                 const char *path,\n"
32761 "                 const char *content,\n"
32762 "                 size_t content_size,\n"
32763 "                 int64_t offset);\n"
32764 "\n"
32765 msgstr ""
32766
32767 #. type: textblock
32768 #: ../src/guestfs-actions.pod:6398
32769 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32770 msgstr ""
32771
32772 #. type: =head2
32773 #: ../src/guestfs-actions.pod:6407
32774 msgid "guestfs_pwrite_device"
32775 msgstr ""
32776
32777 #. type: verbatim
32778 #: ../src/guestfs-actions.pod:6409
32779 #, no-wrap
32780 msgid ""
32781 " int\n"
32782 " guestfs_pwrite_device (guestfs_h *g,\n"
32783 "                        const char *device,\n"
32784 "                        const char *content,\n"
32785 "                        size_t content_size,\n"
32786 "                        int64_t offset);\n"
32787 "\n"
32788 msgstr ""
32789
32790 #. type: textblock
32791 #: ../src/guestfs-actions.pod:6424
32792 msgid "See also C<guestfs_pwrite>."
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../src/guestfs-actions.pod:6431
32797 msgid "(Added in 1.5.20)"
32798 msgstr ""
32799
32800 #. type: =head2
32801 #: ../src/guestfs-actions.pod:6433
32802 msgid "guestfs_read_file"
32803 msgstr ""
32804
32805 #. type: verbatim
32806 #: ../src/guestfs-actions.pod:6435
32807 #, no-wrap
32808 msgid ""
32809 " char *\n"
32810 " guestfs_read_file (guestfs_h *g,\n"
32811 "                    const char *path,\n"
32812 "                    size_t *size_r);\n"
32813 "\n"
32814 msgstr ""
32815
32816 #. type: textblock
32817 #: ../src/guestfs-actions.pod:6443
32818 msgid ""
32819 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32820 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32821 "function is limited in the total size of file that can be handled."
32822 msgstr ""
32823
32824 #. type: textblock
32825 #: ../src/guestfs-actions.pod:6455
32826 msgid "(Added in 1.0.63)"
32827 msgstr ""
32828
32829 #. type: =head2
32830 #: ../src/guestfs-actions.pod:6457
32831 msgid "guestfs_read_lines"
32832 msgstr ""
32833
32834 #. type: verbatim
32835 #: ../src/guestfs-actions.pod:6459
32836 #, no-wrap
32837 msgid ""
32838 " char **\n"
32839 " guestfs_read_lines (guestfs_h *g,\n"
32840 "                     const char *path);\n"
32841 "\n"
32842 msgstr ""
32843
32844 #. type: textblock
32845 #: ../src/guestfs-actions.pod:6468
32846 msgid ""
32847 "Note that this function cannot correctly handle binary files (specifically, "
32848 "files containing C<\\0> character which is treated as end of line).  For "
32849 "those you need to use the C<guestfs_read_file> function which has a more "
32850 "complex interface."
32851 msgstr ""
32852
32853 #. type: =head2
32854 #: ../src/guestfs-actions.pod:6479
32855 msgid "guestfs_readdir"
32856 msgstr ""
32857
32858 #. type: verbatim
32859 #: ../src/guestfs-actions.pod:6481
32860 #, no-wrap
32861 msgid ""
32862 " struct guestfs_dirent_list *\n"
32863 " guestfs_readdir (guestfs_h *g,\n"
32864 "                  const char *dir);\n"
32865 "\n"
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs-actions.pod:6535
32870 msgid ""
32871 "This function is primarily intended for use by programs.  To get a simple "
32872 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32873 "consumption, use C<guestfs_ll>."
32874 msgstr ""
32875
32876 #. type: textblock
32877 #: ../src/guestfs-actions.pod:6539
32878 msgid ""
32879 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32880 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32881 msgstr ""
32882
32883 #. type: =head2
32884 #: ../src/guestfs-actions.pod:6545
32885 msgid "guestfs_readlink"
32886 msgstr ""
32887
32888 #. type: verbatim
32889 #: ../src/guestfs-actions.pod:6547
32890 #, no-wrap
32891 msgid ""
32892 " char *\n"
32893 " guestfs_readlink (guestfs_h *g,\n"
32894 "                   const char *path);\n"
32895 "\n"
32896 msgstr ""
32897
32898 #. type: =head2
32899 #: ../src/guestfs-actions.pod:6558
32900 msgid "guestfs_readlinklist"
32901 msgstr ""
32902
32903 #. type: verbatim
32904 #: ../src/guestfs-actions.pod:6560
32905 #, no-wrap
32906 msgid ""
32907 " char **\n"
32908 " guestfs_readlinklist (guestfs_h *g,\n"
32909 "                       const char *path,\n"
32910 "                       char *const *names);\n"
32911 "\n"
32912 msgstr ""
32913
32914 #. type: =head2
32915 #: ../src/guestfs-actions.pod:6593
32916 msgid "guestfs_realpath"
32917 msgstr ""
32918
32919 #. type: verbatim
32920 #: ../src/guestfs-actions.pod:6595
32921 #, no-wrap
32922 msgid ""
32923 " char *\n"
32924 " guestfs_realpath (guestfs_h *g,\n"
32925 "                   const char *path);\n"
32926 "\n"
32927 msgstr ""
32928
32929 #. type: =head2
32930 #: ../src/guestfs-actions.pod:6607
32931 msgid "guestfs_removexattr"
32932 msgstr ""
32933
32934 #. type: verbatim
32935 #: ../src/guestfs-actions.pod:6609
32936 #, no-wrap
32937 msgid ""
32938 " int\n"
32939 " guestfs_removexattr (guestfs_h *g,\n"
32940 "                      const char *xattr,\n"
32941 "                      const char *path);\n"
32942 "\n"
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs-actions.pod:6617
32947 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32948 msgstr ""
32949
32950 #. type: =head2
32951 #: ../src/guestfs-actions.pod:6623
32952 msgid "guestfs_resize2fs"
32953 msgstr ""
32954
32955 #. type: verbatim
32956 #: ../src/guestfs-actions.pod:6625
32957 #, no-wrap
32958 msgid ""
32959 " int\n"
32960 " guestfs_resize2fs (guestfs_h *g,\n"
32961 "                    const char *device);\n"
32962 "\n"
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs-actions.pod:6632
32967 msgid ""
32968 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32969 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32970 "sometimes gives an error about this and sometimes not.  In any case, it is "
32971 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32972 msgstr ""
32973
32974 #. type: =head2
32975 #: ../src/guestfs-actions.pod:6642
32976 msgid "guestfs_resize2fs_M"
32977 msgstr ""
32978
32979 #. type: verbatim
32980 #: ../src/guestfs-actions.pod:6644
32981 #, no-wrap
32982 msgid ""
32983 " int\n"
32984 " guestfs_resize2fs_M (guestfs_h *g,\n"
32985 "                      const char *device);\n"
32986 "\n"
32987 msgstr ""
32988
32989 #. type: textblock
32990 #: ../src/guestfs-actions.pod:6648
32991 msgid ""
32992 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32993 "resized to its minimum size.  This works like the I<-M> option to the "
32994 "C<resize2fs> command."
32995 msgstr ""
32996
32997 #. type: textblock
32998 #: ../src/guestfs-actions.pod:6652
32999 msgid ""
33000 "To get the resulting size of the filesystem you should call "
33001 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
33002 "These two numbers, multiplied together, give the resulting size of the "
33003 "minimal filesystem in bytes."
33004 msgstr ""
33005
33006 #. type: =head2
33007 #: ../src/guestfs-actions.pod:6661
33008 msgid "guestfs_resize2fs_size"
33009 msgstr ""
33010
33011 #. type: verbatim
33012 #: ../src/guestfs-actions.pod:6663
33013 #, no-wrap
33014 msgid ""
33015 " int\n"
33016 " guestfs_resize2fs_size (guestfs_h *g,\n"
33017 "                         const char *device,\n"
33018 "                         int64_t size);\n"
33019 "\n"
33020 msgstr ""
33021
33022 #. type: textblock
33023 #: ../src/guestfs-actions.pod:6668
33024 msgid ""
33025 "This command is the same as C<guestfs_resize2fs> except that it allows you "
33026 "to specify the new size (in bytes) explicitly."
33027 msgstr ""
33028
33029 #. type: =head2
33030 #: ../src/guestfs-actions.pod:6675
33031 msgid "guestfs_rm"
33032 msgstr ""
33033
33034 #. type: verbatim
33035 #: ../src/guestfs-actions.pod:6677
33036 #, no-wrap
33037 msgid ""
33038 " int\n"
33039 " guestfs_rm (guestfs_h *g,\n"
33040 "             const char *path);\n"
33041 "\n"
33042 msgstr ""
33043
33044 #. type: =head2
33045 #: ../src/guestfs-actions.pod:6687
33046 msgid "guestfs_rm_rf"
33047 msgstr ""
33048
33049 #. type: verbatim
33050 #: ../src/guestfs-actions.pod:6689
33051 #, no-wrap
33052 msgid ""
33053 " int\n"
33054 " guestfs_rm_rf (guestfs_h *g,\n"
33055 "                const char *path);\n"
33056 "\n"
33057 msgstr ""
33058
33059 #. type: =head2
33060 #: ../src/guestfs-actions.pod:6701
33061 msgid "guestfs_rmdir"
33062 msgstr ""
33063
33064 #. type: verbatim
33065 #: ../src/guestfs-actions.pod:6703
33066 #, no-wrap
33067 msgid ""
33068 " int\n"
33069 " guestfs_rmdir (guestfs_h *g,\n"
33070 "                const char *path);\n"
33071 "\n"
33072 msgstr ""
33073
33074 #. type: =head2
33075 #: ../src/guestfs-actions.pod:6713
33076 msgid "guestfs_rmmountpoint"
33077 msgstr ""
33078
33079 #. type: verbatim
33080 #: ../src/guestfs-actions.pod:6715
33081 #, no-wrap
33082 msgid ""
33083 " int\n"
33084 " guestfs_rmmountpoint (guestfs_h *g,\n"
33085 "                       const char *exemptpath);\n"
33086 "\n"
33087 msgstr ""
33088
33089 #. type: textblock
33090 #: ../src/guestfs-actions.pod:6719
33091 msgid ""
33092 "This calls removes a mountpoint that was previously created with "
33093 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
33094 msgstr ""
33095
33096 #. type: =head2
33097 #: ../src/guestfs-actions.pod:6727
33098 msgid "guestfs_scrub_device"
33099 msgstr ""
33100
33101 #. type: verbatim
33102 #: ../src/guestfs-actions.pod:6729
33103 #, no-wrap
33104 msgid ""
33105 " int\n"
33106 " guestfs_scrub_device (guestfs_h *g,\n"
33107 "                       const char *device);\n"
33108 "\n"
33109 msgstr ""
33110
33111 #. type: textblock
33112 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6759
33113 #: ../src/guestfs-actions.pod:6778
33114 msgid "(Added in 1.0.52)"
33115 msgstr ""
33116
33117 #. type: =head2
33118 #: ../src/guestfs-actions.pod:6743
33119 msgid "guestfs_scrub_file"
33120 msgstr ""
33121
33122 #. type: verbatim
33123 #: ../src/guestfs-actions.pod:6745
33124 #, no-wrap
33125 msgid ""
33126 " int\n"
33127 " guestfs_scrub_file (guestfs_h *g,\n"
33128 "                     const char *file);\n"
33129 "\n"
33130 msgstr ""
33131
33132 #. type: =head2
33133 #: ../src/guestfs-actions.pod:6761
33134 msgid "guestfs_scrub_freespace"
33135 msgstr ""
33136
33137 #. type: verbatim
33138 #: ../src/guestfs-actions.pod:6763
33139 #, no-wrap
33140 msgid ""
33141 " int\n"
33142 " guestfs_scrub_freespace (guestfs_h *g,\n"
33143 "                          const char *dir);\n"
33144 "\n"
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs-actions.pod:6767
33149 msgid ""
33150 "This command creates the directory C<dir> and then fills it with files until "
33151 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
33152 "and deletes them.  The intention is to scrub any free space on the partition "
33153 "containing C<dir>."
33154 msgstr ""
33155
33156 #. type: =head2
33157 #: ../src/guestfs-actions.pod:6780
33158 msgid "guestfs_set_append"
33159 msgstr ""
33160
33161 #. type: verbatim
33162 #: ../src/guestfs-actions.pod:6782
33163 #, no-wrap
33164 msgid ""
33165 " int\n"
33166 " guestfs_set_append (guestfs_h *g,\n"
33167 "                     const char *append);\n"
33168 "\n"
33169 msgstr ""
33170
33171 #. type: =head2
33172 #: ../src/guestfs-actions.pod:6799
33173 msgid "guestfs_set_attach_method"
33174 msgstr ""
33175
33176 #. type: verbatim
33177 #: ../src/guestfs-actions.pod:6801
33178 #, no-wrap
33179 msgid ""
33180 " int\n"
33181 " guestfs_set_attach_method (guestfs_h *g,\n"
33182 "                            const char *attachmethod);\n"
33183 "\n"
33184 msgstr ""
33185
33186 #. type: =head2
33187 #: ../src/guestfs-actions.pod:6829
33188 msgid "guestfs_set_autosync"
33189 msgstr ""
33190
33191 #. type: verbatim
33192 #: ../src/guestfs-actions.pod:6831
33193 #, no-wrap
33194 msgid ""
33195 " int\n"
33196 " guestfs_set_autosync (guestfs_h *g,\n"
33197 "                       int autosync);\n"
33198 "\n"
33199 msgstr ""
33200
33201 #. type: =head2
33202 #: ../src/guestfs-actions.pod:6847
33203 msgid "guestfs_set_direct"
33204 msgstr ""
33205
33206 #. type: verbatim
33207 #: ../src/guestfs-actions.pod:6849
33208 #, no-wrap
33209 msgid ""
33210 " int\n"
33211 " guestfs_set_direct (guestfs_h *g,\n"
33212 "                     int direct);\n"
33213 "\n"
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs-actions.pod:6857
33218 msgid ""
33219 "One consequence of this is that log messages aren't caught by the library "
33220 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33221 "stdout."
33222 msgstr ""
33223
33224 #. type: =head2
33225 #: ../src/guestfs-actions.pod:6870
33226 msgid "guestfs_set_e2label"
33227 msgstr ""
33228
33229 #. type: verbatim
33230 #: ../src/guestfs-actions.pod:6872
33231 #, no-wrap
33232 msgid ""
33233 " int\n"
33234 " guestfs_set_e2label (guestfs_h *g,\n"
33235 "                      const char *device,\n"
33236 "                      const char *label);\n"
33237 "\n"
33238 msgstr ""
33239
33240 #. type: textblock
33241 #: ../src/guestfs-actions.pod:6881
33242 msgid ""
33243 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33244 "the existing label on a filesystem."
33245 msgstr ""
33246
33247 #. type: =head2
33248 #: ../src/guestfs-actions.pod:6888
33249 msgid "guestfs_set_e2uuid"
33250 msgstr ""
33251
33252 #. type: verbatim
33253 #: ../src/guestfs-actions.pod:6890
33254 #, no-wrap
33255 msgid ""
33256 " int\n"
33257 " guestfs_set_e2uuid (guestfs_h *g,\n"
33258 "                     const char *device,\n"
33259 "                     const char *uuid);\n"
33260 "\n"
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs-actions.pod:6900
33265 msgid ""
33266 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33267 "the existing UUID of a filesystem."
33268 msgstr ""
33269
33270 #. type: =head2
33271 #: ../src/guestfs-actions.pod:6907
33272 msgid "guestfs_set_memsize"
33273 msgstr ""
33274
33275 #. type: verbatim
33276 #: ../src/guestfs-actions.pod:6909
33277 #, no-wrap
33278 msgid ""
33279 " int\n"
33280 " guestfs_set_memsize (guestfs_h *g,\n"
33281 "                      int memsize);\n"
33282 "\n"
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs-actions.pod:6913
33287 msgid ""
33288 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33289 "This only has any effect if called before C<guestfs_launch>."
33290 msgstr ""
33291
33292 #. type: =head2
33293 #: ../src/guestfs-actions.pod:6928
33294 msgid "guestfs_set_network"
33295 msgstr ""
33296
33297 #. type: verbatim
33298 #: ../src/guestfs-actions.pod:6930
33299 #, no-wrap
33300 msgid ""
33301 " int\n"
33302 " guestfs_set_network (guestfs_h *g,\n"
33303 "                      int network);\n"
33304 "\n"
33305 msgstr ""
33306
33307 #. type: textblock
33308 #: ../src/guestfs-actions.pod:6940
33309 msgid ""
33310 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33311 "effect."
33312 msgstr ""
33313
33314 #. type: =head2
33315 #: ../src/guestfs-actions.pod:6947
33316 msgid "guestfs_set_path"
33317 msgstr ""
33318
33319 #. type: verbatim
33320 #: ../src/guestfs-actions.pod:6949
33321 #, no-wrap
33322 msgid ""
33323 " int\n"
33324 " guestfs_set_path (guestfs_h *g,\n"
33325 "                   const char *searchpath);\n"
33326 "\n"
33327 msgstr ""
33328
33329 #. type: =head2
33330 #: ../src/guestfs-actions.pod:6964
33331 msgid "guestfs_set_pgroup"
33332 msgstr ""
33333
33334 #. type: verbatim
33335 #: ../src/guestfs-actions.pod:6966
33336 #, no-wrap
33337 msgid ""
33338 " int\n"
33339 " guestfs_set_pgroup (guestfs_h *g,\n"
33340 "                     int pgroup);\n"
33341 "\n"
33342 msgstr ""
33343
33344 #. type: =head2
33345 #: ../src/guestfs-actions.pod:6983
33346 msgid "guestfs_set_qemu"
33347 msgstr ""
33348
33349 #. type: verbatim
33350 #: ../src/guestfs-actions.pod:6985
33351 #, no-wrap
33352 msgid ""
33353 " int\n"
33354 " guestfs_set_qemu (guestfs_h *g,\n"
33355 "                   const char *qemu);\n"
33356 "\n"
33357 msgstr ""
33358
33359 #. type: =head2
33360 #: ../src/guestfs-actions.pod:7011
33361 msgid "guestfs_set_recovery_proc"
33362 msgstr ""
33363
33364 #. type: verbatim
33365 #: ../src/guestfs-actions.pod:7013
33366 #, no-wrap
33367 msgid ""
33368 " int\n"
33369 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33370 "                            int recoveryproc);\n"
33371 "\n"
33372 msgstr ""
33373
33374 #. type: textblock
33375 #: ../src/guestfs-actions.pod:7017
33376 msgid ""
33377 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33378 "not create a recovery process.  The purpose of the recovery process is to "
33379 "stop runaway qemu processes in the case where the main program aborts "
33380 "abruptly."
33381 msgstr ""
33382
33383 #. type: textblock
33384 #: ../src/guestfs-actions.pod:7022
33385 msgid ""
33386 "This only has any effect if called before C<guestfs_launch>, and the default "
33387 "is true."
33388 msgstr ""
33389
33390 #. type: =head2
33391 #: ../src/guestfs-actions.pod:7035
33392 msgid "guestfs_set_selinux"
33393 msgstr ""
33394
33395 #. type: verbatim
33396 #: ../src/guestfs-actions.pod:7037
33397 #, no-wrap
33398 msgid ""
33399 " int\n"
33400 " guestfs_set_selinux (guestfs_h *g,\n"
33401 "                      int selinux);\n"
33402 "\n"
33403 msgstr ""
33404
33405 #. type: =head2
33406 #: ../src/guestfs-actions.pod:7054
33407 msgid "guestfs_set_smp"
33408 msgstr ""
33409
33410 #. type: verbatim
33411 #: ../src/guestfs-actions.pod:7056
33412 #, no-wrap
33413 msgid ""
33414 " int\n"
33415 " guestfs_set_smp (guestfs_h *g,\n"
33416 "                  int smp);\n"
33417 "\n"
33418 msgstr ""
33419
33420 #. type: textblock
33421 #: ../src/guestfs-actions.pod:7064
33422 msgid "This function must be called before C<guestfs_launch>."
33423 msgstr ""
33424
33425 #. type: =head2
33426 #: ../src/guestfs-actions.pod:7070
33427 msgid "guestfs_set_trace"
33428 msgstr ""
33429
33430 #. type: verbatim
33431 #: ../src/guestfs-actions.pod:7072
33432 #, no-wrap
33433 msgid ""
33434 " int\n"
33435 " guestfs_set_trace (guestfs_h *g,\n"
33436 "                    int trace);\n"
33437 "\n"
33438 msgstr ""
33439
33440 #. type: textblock
33441 #: ../src/guestfs-actions.pod:7086
33442 msgid ""
33443 "Trace messages are normally sent to C<stderr>, unless you register a "
33444 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33445 msgstr ""
33446
33447 #. type: =head2
33448 #: ../src/guestfs-actions.pod:7094
33449 msgid "guestfs_set_verbose"
33450 msgstr ""
33451
33452 #. type: verbatim
33453 #: ../src/guestfs-actions.pod:7096
33454 #, no-wrap
33455 msgid ""
33456 " int\n"
33457 " guestfs_set_verbose (guestfs_h *g,\n"
33458 "                      int verbose);\n"
33459 "\n"
33460 msgstr ""
33461
33462 #. type: textblock
33463 #: ../src/guestfs-actions.pod:7105
33464 msgid ""
33465 "Verbose messages are normally sent to C<stderr>, unless you register a "
33466 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33467 msgstr ""
33468
33469 #. type: =head2
33470 #: ../src/guestfs-actions.pod:7113
33471 msgid "guestfs_setcon"
33472 msgstr ""
33473
33474 #. type: verbatim
33475 #: ../src/guestfs-actions.pod:7115
33476 #, no-wrap
33477 msgid ""
33478 " int\n"
33479 " guestfs_setcon (guestfs_h *g,\n"
33480 "                 const char *context);\n"
33481 "\n"
33482 msgstr ""
33483
33484 #. type: =head2
33485 #: ../src/guestfs-actions.pod:7128
33486 msgid "guestfs_setxattr"
33487 msgstr ""
33488
33489 #. type: verbatim
33490 #: ../src/guestfs-actions.pod:7130
33491 #, no-wrap
33492 msgid ""
33493 " int\n"
33494 " guestfs_setxattr (guestfs_h *g,\n"
33495 "                   const char *xattr,\n"
33496 "                   const char *val,\n"
33497 "                   int vallen,\n"
33498 "                   const char *path);\n"
33499 "\n"
33500 msgstr ""
33501
33502 #. type: textblock
33503 #: ../src/guestfs-actions.pod:7141
33504 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33505 msgstr ""
33506
33507 #. type: =head2
33508 #: ../src/guestfs-actions.pod:7147
33509 msgid "guestfs_sfdisk"
33510 msgstr ""
33511
33512 #. type: verbatim
33513 #: ../src/guestfs-actions.pod:7149
33514 #, no-wrap
33515 msgid ""
33516 " int\n"
33517 " guestfs_sfdisk (guestfs_h *g,\n"
33518 "                 const char *device,\n"
33519 "                 int cyls,\n"
33520 "                 int heads,\n"
33521 "                 int sectors,\n"
33522 "                 char *const *lines);\n"
33523 "\n"
33524 msgstr ""
33525
33526 #. type: textblock
33527 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7198
33528 #: ../src/guestfs-actions.pod:7229
33529 msgid ""
33530 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33531 "call instead."
33532 msgstr ""
33533
33534 #. type: textblock
33535 #: ../src/guestfs-actions.pod:7184
33536 msgid ""
33537 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33538 msgstr ""
33539
33540 #. type: =head2
33541 #: ../src/guestfs-actions.pod:7191
33542 msgid "guestfs_sfdiskM"
33543 msgstr ""
33544
33545 #. type: verbatim
33546 #: ../src/guestfs-actions.pod:7193
33547 #, no-wrap
33548 msgid ""
33549 " int\n"
33550 " guestfs_sfdiskM (guestfs_h *g,\n"
33551 "                  const char *device,\n"
33552 "                  char *const *lines);\n"
33553 "\n"
33554 msgstr ""
33555
33556 #. type: textblock
33557 #: ../src/guestfs-actions.pod:7205
33558 msgid ""
33559 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33560 "partition sizes are specified in megabytes only (rounded to the nearest "
33561 "cylinder) and you don't need to specify the cyls, heads and sectors "
33562 "parameters which were rarely if ever used anyway."
33563 msgstr ""
33564
33565 #. type: textblock
33566 #: ../src/guestfs-actions.pod:7211
33567 msgid ""
33568 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33569 "C<guestfs_part_disk>"
33570 msgstr ""
33571
33572 #. type: =head2
33573 #: ../src/guestfs-actions.pod:7218
33574 msgid "guestfs_sfdisk_N"
33575 msgstr ""
33576
33577 #. type: verbatim
33578 #: ../src/guestfs-actions.pod:7220
33579 #, no-wrap
33580 msgid ""
33581 " int\n"
33582 " guestfs_sfdisk_N (guestfs_h *g,\n"
33583 "                   const char *device,\n"
33584 "                   int partnum,\n"
33585 "                   int cyls,\n"
33586 "                   int heads,\n"
33587 "                   int sectors,\n"
33588 "                   const char *line);\n"
33589 "\n"
33590 msgstr ""
33591
33592 #. type: textblock
33593 #: ../src/guestfs-actions.pod:7239
33594 msgid ""
33595 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33596 "for the cyls/heads/sectors parameters."
33597 msgstr ""
33598
33599 #. type: textblock
33600 #: ../src/guestfs-actions.pod:7242
33601 msgid "See also: C<guestfs_part_add>"
33602 msgstr ""
33603
33604 #. type: =head2
33605 #: ../src/guestfs-actions.pod:7248
33606 msgid "guestfs_sfdisk_disk_geometry"
33607 msgstr ""
33608
33609 #. type: verbatim
33610 #: ../src/guestfs-actions.pod:7250
33611 #, no-wrap
33612 msgid ""
33613 " char *\n"
33614 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33615 "                               const char *device);\n"
33616 "\n"
33617 msgstr ""
33618
33619 #. type: textblock
33620 #: ../src/guestfs-actions.pod:7254
33621 msgid ""
33622 "This displays the disk geometry of C<device> read from the partition table.  "
33623 "Especially in the case where the underlying block device has been resized, "
33624 "this can be different from the kernel's idea of the geometry (see "
33625 "C<guestfs_sfdisk_kernel_geometry>)."
33626 msgstr ""
33627
33628 #. type: =head2
33629 #: ../src/guestfs-actions.pod:7267
33630 msgid "guestfs_sfdisk_kernel_geometry"
33631 msgstr ""
33632
33633 #. type: verbatim
33634 #: ../src/guestfs-actions.pod:7269
33635 #, no-wrap
33636 msgid ""
33637 " char *\n"
33638 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33639 "                                 const char *device);\n"
33640 "\n"
33641 msgstr ""
33642
33643 #. type: =head2
33644 #: ../src/guestfs-actions.pod:7283
33645 msgid "guestfs_sfdisk_l"
33646 msgstr ""
33647
33648 #. type: verbatim
33649 #: ../src/guestfs-actions.pod:7285
33650 #, no-wrap
33651 msgid ""
33652 " char *\n"
33653 " guestfs_sfdisk_l (guestfs_h *g,\n"
33654 "                   const char *device);\n"
33655 "\n"
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs-actions.pod:7289
33660 msgid ""
33661 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33662 "call instead."
33663 msgstr ""
33664
33665 #. type: textblock
33666 #: ../src/guestfs-actions.pod:7300
33667 msgid "See also: C<guestfs_part_list>"
33668 msgstr ""
33669
33670 #. type: =head2
33671 #: ../src/guestfs-actions.pod:7307
33672 msgid "guestfs_sh"
33673 msgstr ""
33674
33675 #. type: verbatim
33676 #: ../src/guestfs-actions.pod:7309
33677 #, no-wrap
33678 msgid ""
33679 " char *\n"
33680 " guestfs_sh (guestfs_h *g,\n"
33681 "             const char *command);\n"
33682 "\n"
33683 msgstr ""
33684
33685 #. type: textblock
33686 #: ../src/guestfs-actions.pod:7316
33687 msgid "This is like C<guestfs_command>, but passes the command to:"
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs-actions.pod:7324
33692 msgid "All the provisos about C<guestfs_command> apply to this call."
33693 msgstr ""
33694
33695 #. type: =head2
33696 #: ../src/guestfs-actions.pod:7331
33697 msgid "guestfs_sh_lines"
33698 msgstr ""
33699
33700 #. type: verbatim
33701 #: ../src/guestfs-actions.pod:7333
33702 #, no-wrap
33703 msgid ""
33704 " char **\n"
33705 " guestfs_sh_lines (guestfs_h *g,\n"
33706 "                   const char *command);\n"
33707 "\n"
33708 msgstr ""
33709
33710 #. type: textblock
33711 #: ../src/guestfs-actions.pod:7337
33712 msgid ""
33713 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33714 "lines."
33715 msgstr ""
33716
33717 #. type: textblock
33718 #: ../src/guestfs-actions.pod:7340
33719 msgid "See also: C<guestfs_command_lines>"
33720 msgstr ""
33721
33722 #. type: =head2
33723 #: ../src/guestfs-actions.pod:7348
33724 msgid "guestfs_sleep"
33725 msgstr ""
33726
33727 #. type: verbatim
33728 #: ../src/guestfs-actions.pod:7350
33729 #, no-wrap
33730 msgid ""
33731 " int\n"
33732 " guestfs_sleep (guestfs_h *g,\n"
33733 "                int secs);\n"
33734 "\n"
33735 msgstr ""
33736
33737 #. type: textblock
33738 #: ../src/guestfs-actions.pod:7358
33739 msgid "(Added in 1.0.41)"
33740 msgstr ""
33741
33742 #. type: =head2
33743 #: ../src/guestfs-actions.pod:7360 ../src/guestfs-structs.pod:109
33744 msgid "guestfs_stat"
33745 msgstr ""
33746
33747 #. type: verbatim
33748 #: ../src/guestfs-actions.pod:7362
33749 #, no-wrap
33750 msgid ""
33751 " struct guestfs_stat *\n"
33752 " guestfs_stat (guestfs_h *g,\n"
33753 "               const char *path);\n"
33754 "\n"
33755 msgstr ""
33756
33757 #. type: =head2
33758 #: ../src/guestfs-actions.pod:7376 ../src/guestfs-structs.pod:135
33759 msgid "guestfs_statvfs"
33760 msgstr ""
33761
33762 #. type: verbatim
33763 #: ../src/guestfs-actions.pod:7378
33764 #, no-wrap
33765 msgid ""
33766 " struct guestfs_statvfs *\n"
33767 " guestfs_statvfs (guestfs_h *g,\n"
33768 "                  const char *path);\n"
33769 "\n"
33770 msgstr ""
33771
33772 #. type: textblock
33773 #: ../src/guestfs-actions.pod:7388
33774 msgid ""
33775 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33776 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33777 msgstr ""
33778
33779 #. type: =head2
33780 #: ../src/guestfs-actions.pod:7394
33781 msgid "guestfs_strings"
33782 msgstr ""
33783
33784 #. type: verbatim
33785 #: ../src/guestfs-actions.pod:7396
33786 #, no-wrap
33787 msgid ""
33788 " char **\n"
33789 " guestfs_strings (guestfs_h *g,\n"
33790 "                  const char *path);\n"
33791 "\n"
33792 msgstr ""
33793
33794 #. type: =head2
33795 #: ../src/guestfs-actions.pod:7412
33796 msgid "guestfs_strings_e"
33797 msgstr ""
33798
33799 #. type: verbatim
33800 #: ../src/guestfs-actions.pod:7414
33801 #, no-wrap
33802 msgid ""
33803 " char **\n"
33804 " guestfs_strings_e (guestfs_h *g,\n"
33805 "                    const char *encoding,\n"
33806 "                    const char *path);\n"
33807 "\n"
33808 msgstr ""
33809
33810 #. type: textblock
33811 #: ../src/guestfs-actions.pod:7419
33812 msgid ""
33813 "This is like the C<guestfs_strings> command, but allows you to specify the "
33814 "encoding of strings that are looked for in the source file C<path>."
33815 msgstr ""
33816
33817 #. type: textblock
33818 #: ../src/guestfs-actions.pod:7429
33819 msgid ""
33820 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33821 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33822 msgstr ""
33823
33824 #. type: =head2
33825 #: ../src/guestfs-actions.pod:7467
33826 msgid "guestfs_swapoff_device"
33827 msgstr ""
33828
33829 #. type: verbatim
33830 #: ../src/guestfs-actions.pod:7469
33831 #, no-wrap
33832 msgid ""
33833 " int\n"
33834 " guestfs_swapoff_device (guestfs_h *g,\n"
33835 "                         const char *device);\n"
33836 "\n"
33837 msgstr ""
33838
33839 #. type: textblock
33840 #: ../src/guestfs-actions.pod:7473
33841 msgid ""
33842 "This command disables the libguestfs appliance swap device or partition "
33843 "named C<device>.  See C<guestfs_swapon_device>."
33844 msgstr ""
33845
33846 #. type: =head2
33847 #: ../src/guestfs-actions.pod:7481
33848 msgid "guestfs_swapoff_file"
33849 msgstr ""
33850
33851 #. type: verbatim
33852 #: ../src/guestfs-actions.pod:7483
33853 #, no-wrap
33854 msgid ""
33855 " int\n"
33856 " guestfs_swapoff_file (guestfs_h *g,\n"
33857 "                       const char *file);\n"
33858 "\n"
33859 msgstr ""
33860
33861 #. type: =head2
33862 #: ../src/guestfs-actions.pod:7493
33863 msgid "guestfs_swapoff_label"
33864 msgstr ""
33865
33866 #. type: verbatim
33867 #: ../src/guestfs-actions.pod:7495
33868 #, no-wrap
33869 msgid ""
33870 " int\n"
33871 " guestfs_swapoff_label (guestfs_h *g,\n"
33872 "                        const char *label);\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: =head2
33877 #: ../src/guestfs-actions.pod:7506
33878 msgid "guestfs_swapoff_uuid"
33879 msgstr ""
33880
33881 #. type: verbatim
33882 #: ../src/guestfs-actions.pod:7508
33883 #, no-wrap
33884 msgid ""
33885 " int\n"
33886 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33887 "                       const char *uuid);\n"
33888 "\n"
33889 msgstr ""
33890
33891 #. type: =head2
33892 #: ../src/guestfs-actions.pod:7519
33893 msgid "guestfs_swapon_device"
33894 msgstr ""
33895
33896 #. type: verbatim
33897 #: ../src/guestfs-actions.pod:7521
33898 #, no-wrap
33899 msgid ""
33900 " int\n"
33901 " guestfs_swapon_device (guestfs_h *g,\n"
33902 "                        const char *device);\n"
33903 "\n"
33904 msgstr ""
33905
33906 #. type: textblock
33907 #: ../src/guestfs-actions.pod:7525
33908 msgid ""
33909 "This command enables the libguestfs appliance to use the swap device or "
33910 "partition named C<device>.  The increased memory is made available for all "
33911 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33912 msgstr ""
33913
33914 #. type: =head2
33915 #: ../src/guestfs-actions.pod:7541
33916 msgid "guestfs_swapon_file"
33917 msgstr ""
33918
33919 #. type: verbatim
33920 #: ../src/guestfs-actions.pod:7543
33921 #, no-wrap
33922 msgid ""
33923 " int\n"
33924 " guestfs_swapon_file (guestfs_h *g,\n"
33925 "                      const char *file);\n"
33926 "\n"
33927 msgstr ""
33928
33929 #. type: textblock
33930 #: ../src/guestfs-actions.pod:7547
33931 msgid ""
33932 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33933 "notes."
33934 msgstr ""
33935
33936 #. type: =head2
33937 #: ../src/guestfs-actions.pod:7554
33938 msgid "guestfs_swapon_label"
33939 msgstr ""
33940
33941 #. type: verbatim
33942 #: ../src/guestfs-actions.pod:7556
33943 #, no-wrap
33944 msgid ""
33945 " int\n"
33946 " guestfs_swapon_label (guestfs_h *g,\n"
33947 "                       const char *label);\n"
33948 "\n"
33949 msgstr ""
33950
33951 #. type: textblock
33952 #: ../src/guestfs-actions.pod:7560
33953 msgid ""
33954 "This command enables swap to a labeled swap partition.  See "
33955 "C<guestfs_swapon_device> for other notes."
33956 msgstr ""
33957
33958 #. type: =head2
33959 #: ../src/guestfs-actions.pod:7567
33960 msgid "guestfs_swapon_uuid"
33961 msgstr ""
33962
33963 #. type: verbatim
33964 #: ../src/guestfs-actions.pod:7569
33965 #, no-wrap
33966 msgid ""
33967 " int\n"
33968 " guestfs_swapon_uuid (guestfs_h *g,\n"
33969 "                      const char *uuid);\n"
33970 "\n"
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs-actions.pod:7573
33975 msgid ""
33976 "This command enables swap to a swap partition with the given UUID.  See "
33977 "C<guestfs_swapon_device> for other notes."
33978 msgstr ""
33979
33980 #. type: =head2
33981 #: ../src/guestfs-actions.pod:7580
33982 msgid "guestfs_sync"
33983 msgstr ""
33984
33985 #. type: verbatim
33986 #: ../src/guestfs-actions.pod:7582
33987 #, no-wrap
33988 msgid ""
33989 " int\n"
33990 " guestfs_sync (guestfs_h *g);\n"
33991 "\n"
33992 msgstr ""
33993
33994 #. type: =head2
33995 #: ../src/guestfs-actions.pod:7595
33996 msgid "guestfs_tail"
33997 msgstr ""
33998
33999 #. type: verbatim
34000 #: ../src/guestfs-actions.pod:7597
34001 #, no-wrap
34002 msgid ""
34003 " char **\n"
34004 " guestfs_tail (guestfs_h *g,\n"
34005 "               const char *path);\n"
34006 "\n"
34007 msgstr ""
34008
34009 #. type: =head2
34010 #: ../src/guestfs-actions.pod:7613
34011 msgid "guestfs_tail_n"
34012 msgstr ""
34013
34014 #. type: verbatim
34015 #: ../src/guestfs-actions.pod:7615
34016 #, no-wrap
34017 msgid ""
34018 " char **\n"
34019 " guestfs_tail_n (guestfs_h *g,\n"
34020 "                 int nrlines,\n"
34021 "                 const char *path);\n"
34022 "\n"
34023 msgstr ""
34024
34025 #. type: =head2
34026 #: ../src/guestfs-actions.pod:7637
34027 msgid "guestfs_tar_in"
34028 msgstr ""
34029
34030 #. type: verbatim
34031 #: ../src/guestfs-actions.pod:7639
34032 #, no-wrap
34033 msgid ""
34034 " int\n"
34035 " guestfs_tar_in (guestfs_h *g,\n"
34036 "                 const char *tarfile,\n"
34037 "                 const char *directory);\n"
34038 "\n"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs-actions.pod:7647
34043 msgid ""
34044 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
34045 msgstr ""
34046
34047 #. type: textblock
34048 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7669
34049 #: ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7701
34050 msgid "(Added in 1.0.3)"
34051 msgstr ""
34052
34053 #. type: =head2
34054 #: ../src/guestfs-actions.pod:7654
34055 msgid "guestfs_tar_out"
34056 msgstr ""
34057
34058 #. type: verbatim
34059 #: ../src/guestfs-actions.pod:7656
34060 #, no-wrap
34061 msgid ""
34062 " int\n"
34063 " guestfs_tar_out (guestfs_h *g,\n"
34064 "                  const char *directory,\n"
34065 "                  const char *tarfile);\n"
34066 "\n"
34067 msgstr ""
34068
34069 #. type: textblock
34070 #: ../src/guestfs-actions.pod:7664
34071 msgid ""
34072 "To download a compressed tarball, use C<guestfs_tgz_out> or "
34073 "C<guestfs_txz_out>."
34074 msgstr ""
34075
34076 #. type: =head2
34077 #: ../src/guestfs-actions.pod:7671
34078 msgid "guestfs_tgz_in"
34079 msgstr ""
34080
34081 #. type: verbatim
34082 #: ../src/guestfs-actions.pod:7673
34083 #, no-wrap
34084 msgid ""
34085 " int\n"
34086 " guestfs_tgz_in (guestfs_h *g,\n"
34087 "                 const char *tarball,\n"
34088 "                 const char *directory);\n"
34089 "\n"
34090 msgstr ""
34091
34092 #. type: textblock
34093 #: ../src/guestfs-actions.pod:7681
34094 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
34095 msgstr ""
34096
34097 #. type: =head2
34098 #: ../src/guestfs-actions.pod:7687
34099 msgid "guestfs_tgz_out"
34100 msgstr ""
34101
34102 #. type: verbatim
34103 #: ../src/guestfs-actions.pod:7689
34104 #, no-wrap
34105 msgid ""
34106 " int\n"
34107 " guestfs_tgz_out (guestfs_h *g,\n"
34108 "                  const char *directory,\n"
34109 "                  const char *tarball);\n"
34110 "\n"
34111 msgstr ""
34112
34113 #. type: textblock
34114 #: ../src/guestfs-actions.pod:7697
34115 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
34116 msgstr ""
34117
34118 #. type: =head2
34119 #: ../src/guestfs-actions.pod:7703
34120 msgid "guestfs_touch"
34121 msgstr ""
34122
34123 #. type: verbatim
34124 #: ../src/guestfs-actions.pod:7705
34125 #, no-wrap
34126 msgid ""
34127 " int\n"
34128 " guestfs_touch (guestfs_h *g,\n"
34129 "                const char *path);\n"
34130 "\n"
34131 msgstr ""
34132
34133 #. type: =head2
34134 #: ../src/guestfs-actions.pod:7720
34135 msgid "guestfs_truncate"
34136 msgstr ""
34137
34138 #. type: verbatim
34139 #: ../src/guestfs-actions.pod:7722
34140 #, no-wrap
34141 msgid ""
34142 " int\n"
34143 " guestfs_truncate (guestfs_h *g,\n"
34144 "                   const char *path);\n"
34145 "\n"
34146 msgstr ""
34147
34148 #. type: =head2
34149 #: ../src/guestfs-actions.pod:7733
34150 msgid "guestfs_truncate_size"
34151 msgstr ""
34152
34153 #. type: verbatim
34154 #: ../src/guestfs-actions.pod:7735
34155 #, no-wrap
34156 msgid ""
34157 " int\n"
34158 " guestfs_truncate_size (guestfs_h *g,\n"
34159 "                        const char *path,\n"
34160 "                        int64_t size);\n"
34161 "\n"
34162 msgstr ""
34163
34164 #. type: textblock
34165 #: ../src/guestfs-actions.pod:7743
34166 msgid ""
34167 "If the current file size is less than C<size> then the file is extended to "
34168 "the required size with zero bytes.  This creates a sparse file (ie. disk "
34169 "blocks are not allocated for the file until you write to it).  To create a "
34170 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
34171 msgstr ""
34172
34173 #. type: =head2
34174 #: ../src/guestfs-actions.pod:7753
34175 msgid "guestfs_tune2fs"
34176 msgstr ""
34177
34178 #. type: verbatim
34179 #: ../src/guestfs-actions.pod:7755
34180 #, no-wrap
34181 msgid ""
34182 " int\n"
34183 " guestfs_tune2fs (guestfs_h *g,\n"
34184 "                  const char *device,\n"
34185 "                  ...);\n"
34186 "\n"
34187 msgstr ""
34188
34189 #. type: verbatim
34190 #: ../src/guestfs-actions.pod:7765
34191 #, no-wrap
34192 msgid ""
34193 " GUESTFS_TUNE2FS_FORCE, int force,\n"
34194 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
34195 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
34196 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
34197 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
34198 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
34199 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
34200 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
34201 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
34202 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
34203 "\n"
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../src/guestfs-actions.pod:7845
34208 msgid ""
34209 "To get the current values of filesystem parameters, see "
34210 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
34211 "L<tune2fs(8)> man page."
34212 msgstr ""
34213
34214 #. type: =head2
34215 #: ../src/guestfs-actions.pod:7853
34216 msgid "guestfs_tune2fs_va"
34217 msgstr ""
34218
34219 #. type: verbatim
34220 #: ../src/guestfs-actions.pod:7855
34221 #, no-wrap
34222 msgid ""
34223 " int\n"
34224 " guestfs_tune2fs_va (guestfs_h *g,\n"
34225 "                     const char *device,\n"
34226 "                     va_list args);\n"
34227 "\n"
34228 msgstr ""
34229
34230 #. type: textblock
34231 #: ../src/guestfs-actions.pod:7860
34232 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
34233 msgstr ""
34234
34235 #. type: =head2
34236 #: ../src/guestfs-actions.pod:7864
34237 msgid "guestfs_tune2fs_argv"
34238 msgstr ""
34239
34240 #. type: verbatim
34241 #: ../src/guestfs-actions.pod:7866
34242 #, no-wrap
34243 msgid ""
34244 " int\n"
34245 " guestfs_tune2fs_argv (guestfs_h *g,\n"
34246 "                       const char *device,\n"
34247 "                       const struct guestfs_tune2fs_argv *optargs);\n"
34248 "\n"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs-actions.pod:7871
34253 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
34254 msgstr ""
34255
34256 #. type: =head2
34257 #: ../src/guestfs-actions.pod:7875
34258 msgid "guestfs_tune2fs_l"
34259 msgstr ""
34260
34261 #. type: verbatim
34262 #: ../src/guestfs-actions.pod:7877
34263 #, no-wrap
34264 msgid ""
34265 " char **\n"
34266 " guestfs_tune2fs_l (guestfs_h *g,\n"
34267 "                    const char *device);\n"
34268 "\n"
34269 msgstr ""
34270
34271 #. type: =head2
34272 #: ../src/guestfs-actions.pod:7897
34273 msgid "guestfs_txz_in"
34274 msgstr ""
34275
34276 #. type: verbatim
34277 #: ../src/guestfs-actions.pod:7899
34278 #, no-wrap
34279 msgid ""
34280 " int\n"
34281 " guestfs_txz_in (guestfs_h *g,\n"
34282 "                 const char *tarball,\n"
34283 "                 const char *directory);\n"
34284 "\n"
34285 msgstr ""
34286
34287 #. type: =head2
34288 #: ../src/guestfs-actions.pod:7911
34289 msgid "guestfs_txz_out"
34290 msgstr ""
34291
34292 #. type: verbatim
34293 #: ../src/guestfs-actions.pod:7913
34294 #, no-wrap
34295 msgid ""
34296 " int\n"
34297 " guestfs_txz_out (guestfs_h *g,\n"
34298 "                  const char *directory,\n"
34299 "                  const char *tarball);\n"
34300 "\n"
34301 msgstr ""
34302
34303 #. type: =head2
34304 #: ../src/guestfs-actions.pod:7925
34305 msgid "guestfs_umask"
34306 msgstr ""
34307
34308 #. type: verbatim
34309 #: ../src/guestfs-actions.pod:7927
34310 #, no-wrap
34311 msgid ""
34312 " int\n"
34313 " guestfs_umask (guestfs_h *g,\n"
34314 "                int mask);\n"
34315 "\n"
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs-actions.pod:7943
34320 msgid ""
34321 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34322 "C<guestfs_mkdir>."
34323 msgstr ""
34324
34325 #. type: =head2
34326 #: ../src/guestfs-actions.pod:7952
34327 msgid "guestfs_umount"
34328 msgstr ""
34329
34330 #. type: verbatim
34331 #: ../src/guestfs-actions.pod:7954
34332 #, no-wrap
34333 msgid ""
34334 " int\n"
34335 " guestfs_umount (guestfs_h *g,\n"
34336 "                 const char *pathordevice);\n"
34337 "\n"
34338 msgstr ""
34339
34340 #. type: =head2
34341 #: ../src/guestfs-actions.pod:7966
34342 msgid "guestfs_umount_all"
34343 msgstr ""
34344
34345 #. type: verbatim
34346 #: ../src/guestfs-actions.pod:7968
34347 #, no-wrap
34348 msgid ""
34349 " int\n"
34350 " guestfs_umount_all (guestfs_h *g);\n"
34351 "\n"
34352 msgstr ""
34353
34354 #. type: =head2
34355 #: ../src/guestfs-actions.pod:7979
34356 msgid "guestfs_upload"
34357 msgstr ""
34358
34359 #. type: verbatim
34360 #: ../src/guestfs-actions.pod:7981
34361 #, no-wrap
34362 msgid ""
34363 " int\n"
34364 " guestfs_upload (guestfs_h *g,\n"
34365 "                 const char *filename,\n"
34366 "                 const char *remotefilename);\n"
34367 "\n"
34368 msgstr ""
34369
34370 #. type: textblock
34371 #: ../src/guestfs-actions.pod:7991
34372 msgid "See also C<guestfs_download>."
34373 msgstr ""
34374
34375 #. type: =head2
34376 #: ../src/guestfs-actions.pod:8002
34377 msgid "guestfs_upload_offset"
34378 msgstr ""
34379
34380 #. type: verbatim
34381 #: ../src/guestfs-actions.pod:8004
34382 #, no-wrap
34383 msgid ""
34384 " int\n"
34385 " guestfs_upload_offset (guestfs_h *g,\n"
34386 "                        const char *filename,\n"
34387 "                        const char *remotefilename,\n"
34388 "                        int64_t offset);\n"
34389 "\n"
34390 msgstr ""
34391
34392 #. type: textblock
34393 #: ../src/guestfs-actions.pod:8020
34394 msgid ""
34395 "Note that there is no limit on the amount of data that can be uploaded with "
34396 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34397 "full amount unless an error occurs."
34398 msgstr ""
34399
34400 #. type: textblock
34401 #: ../src/guestfs-actions.pod:8025
34402 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34403 msgstr ""
34404
34405 #. type: =head2
34406 #: ../src/guestfs-actions.pod:8036
34407 msgid "guestfs_utimens"
34408 msgstr ""
34409
34410 #. type: verbatim
34411 #: ../src/guestfs-actions.pod:8038
34412 #, no-wrap
34413 msgid ""
34414 " int\n"
34415 " guestfs_utimens (guestfs_h *g,\n"
34416 "                  const char *path,\n"
34417 "                  int64_t atsecs,\n"
34418 "                  int64_t atnsecs,\n"
34419 "                  int64_t mtsecs,\n"
34420 "                  int64_t mtnsecs);\n"
34421 "\n"
34422 msgstr ""
34423
34424 #. type: =head2
34425 #: ../src/guestfs-actions.pod:8067 ../src/guestfs-structs.pod:175
34426 msgid "guestfs_version"
34427 msgstr ""
34428
34429 #. type: verbatim
34430 #: ../src/guestfs-actions.pod:8069
34431 #, no-wrap
34432 msgid ""
34433 " struct guestfs_version *\n"
34434 " guestfs_version (guestfs_h *g);\n"
34435 "\n"
34436 msgstr ""
34437
34438 #. type: textblock
34439 #: ../src/guestfs-actions.pod:8097
34440 msgid ""
34441 "I<Note:> Don't use this call to test for availability of features.  In "
34442 "enterprise distributions we backport features from later versions into "
34443 "earlier versions, making this an unreliable way to test for features.  Use "
34444 "C<guestfs_available> instead."
34445 msgstr ""
34446
34447 #. type: textblock
34448 #: ../src/guestfs-actions.pod:8103
34449 msgid ""
34450 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34451 "error.  I<The caller must call C<guestfs_free_version> after use>."
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs-actions.pod:8107
34456 msgid "(Added in 1.0.58)"
34457 msgstr ""
34458
34459 #. type: =head2
34460 #: ../src/guestfs-actions.pod:8109
34461 msgid "guestfs_vfs_label"
34462 msgstr ""
34463
34464 #. type: verbatim
34465 #: ../src/guestfs-actions.pod:8111
34466 #, no-wrap
34467 msgid ""
34468 " char *\n"
34469 " guestfs_vfs_label (guestfs_h *g,\n"
34470 "                    const char *device);\n"
34471 "\n"
34472 msgstr ""
34473
34474 #. type: textblock
34475 #: ../src/guestfs-actions.pod:8120
34476 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs-actions.pod:8125 ../src/guestfs-actions.pod:8162
34481 msgid "(Added in 1.3.18)"
34482 msgstr ""
34483
34484 #. type: =head2
34485 #: ../src/guestfs-actions.pod:8127
34486 msgid "guestfs_vfs_type"
34487 msgstr ""
34488
34489 #. type: verbatim
34490 #: ../src/guestfs-actions.pod:8129
34491 #, no-wrap
34492 msgid ""
34493 " char *\n"
34494 " guestfs_vfs_type (guestfs_h *g,\n"
34495 "                   const char *device);\n"
34496 "\n"
34497 msgstr ""
34498
34499 #. type: =head2
34500 #: ../src/guestfs-actions.pod:8146
34501 msgid "guestfs_vfs_uuid"
34502 msgstr ""
34503
34504 #. type: verbatim
34505 #: ../src/guestfs-actions.pod:8148
34506 #, no-wrap
34507 msgid ""
34508 " char *\n"
34509 " guestfs_vfs_uuid (guestfs_h *g,\n"
34510 "                   const char *device);\n"
34511 "\n"
34512 msgstr ""
34513
34514 #. type: textblock
34515 #: ../src/guestfs-actions.pod:8157
34516 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34517 msgstr ""
34518
34519 #. type: =head2
34520 #: ../src/guestfs-actions.pod:8164
34521 msgid "guestfs_vg_activate"
34522 msgstr ""
34523
34524 #. type: verbatim
34525 #: ../src/guestfs-actions.pod:8166
34526 #, no-wrap
34527 msgid ""
34528 " int\n"
34529 " guestfs_vg_activate (guestfs_h *g,\n"
34530 "                      int activate,\n"
34531 "                      char *const *volgroups);\n"
34532 "\n"
34533 msgstr ""
34534
34535 #. type: =head2
34536 #: ../src/guestfs-actions.pod:8183
34537 msgid "guestfs_vg_activate_all"
34538 msgstr ""
34539
34540 #. type: verbatim
34541 #: ../src/guestfs-actions.pod:8185
34542 #, no-wrap
34543 msgid ""
34544 " int\n"
34545 " guestfs_vg_activate_all (guestfs_h *g,\n"
34546 "                          int activate);\n"
34547 "\n"
34548 msgstr ""
34549
34550 #. type: =head2
34551 #: ../src/guestfs-actions.pod:8198
34552 msgid "guestfs_vgcreate"
34553 msgstr ""
34554
34555 #. type: verbatim
34556 #: ../src/guestfs-actions.pod:8200
34557 #, no-wrap
34558 msgid ""
34559 " int\n"
34560 " guestfs_vgcreate (guestfs_h *g,\n"
34561 "                   const char *volgroup,\n"
34562 "                   char *const *physvols);\n"
34563 "\n"
34564 msgstr ""
34565
34566 #. type: =head2
34567 #: ../src/guestfs-actions.pod:8212
34568 msgid "guestfs_vglvuuids"
34569 msgstr ""
34570
34571 #. type: verbatim
34572 #: ../src/guestfs-actions.pod:8214
34573 #, no-wrap
34574 msgid ""
34575 " char **\n"
34576 " guestfs_vglvuuids (guestfs_h *g,\n"
34577 "                    const char *vgname);\n"
34578 "\n"
34579 msgstr ""
34580
34581 #. type: textblock
34582 #: ../src/guestfs-actions.pod:8221
34583 msgid ""
34584 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34585 "associate logical volumes and volume groups."
34586 msgstr ""
34587
34588 #. type: textblock
34589 #: ../src/guestfs-actions.pod:8224
34590 msgid "See also C<guestfs_vgpvuuids>."
34591 msgstr ""
34592
34593 #. type: =head2
34594 #: ../src/guestfs-actions.pod:8232
34595 msgid "guestfs_vgpvuuids"
34596 msgstr ""
34597
34598 #. type: verbatim
34599 #: ../src/guestfs-actions.pod:8234
34600 #, no-wrap
34601 msgid ""
34602 " char **\n"
34603 " guestfs_vgpvuuids (guestfs_h *g,\n"
34604 "                    const char *vgname);\n"
34605 "\n"
34606 msgstr ""
34607
34608 #. type: textblock
34609 #: ../src/guestfs-actions.pod:8241
34610 msgid ""
34611 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34612 "associate physical volumes and volume groups."
34613 msgstr ""
34614
34615 #. type: textblock
34616 #: ../src/guestfs-actions.pod:8244
34617 msgid "See also C<guestfs_vglvuuids>."
34618 msgstr ""
34619
34620 #. type: =head2
34621 #: ../src/guestfs-actions.pod:8252
34622 msgid "guestfs_vgremove"
34623 msgstr ""
34624
34625 #. type: verbatim
34626 #: ../src/guestfs-actions.pod:8254
34627 #, no-wrap
34628 msgid ""
34629 " int\n"
34630 " guestfs_vgremove (guestfs_h *g,\n"
34631 "                   const char *vgname);\n"
34632 "\n"
34633 msgstr ""
34634
34635 #. type: =head2
34636 #: ../src/guestfs-actions.pod:8267
34637 msgid "guestfs_vgrename"
34638 msgstr ""
34639
34640 #. type: verbatim
34641 #: ../src/guestfs-actions.pod:8269
34642 #, no-wrap
34643 msgid ""
34644 " int\n"
34645 " guestfs_vgrename (guestfs_h *g,\n"
34646 "                   const char *volgroup,\n"
34647 "                   const char *newvolgroup);\n"
34648 "\n"
34649 msgstr ""
34650
34651 #. type: =head2
34652 #: ../src/guestfs-actions.pod:8280
34653 msgid "guestfs_vgs"
34654 msgstr ""
34655
34656 #. type: verbatim
34657 #: ../src/guestfs-actions.pod:8282
34658 #, no-wrap
34659 msgid ""
34660 " char **\n"
34661 " guestfs_vgs (guestfs_h *g);\n"
34662 "\n"
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs-actions.pod:8291
34667 msgid "See also C<guestfs_vgs_full>."
34668 msgstr ""
34669
34670 #. type: =head2
34671 #: ../src/guestfs-actions.pod:8299
34672 msgid "guestfs_vgs_full"
34673 msgstr ""
34674
34675 #. type: verbatim
34676 #: ../src/guestfs-actions.pod:8301
34677 #, no-wrap
34678 msgid ""
34679 " struct guestfs_lvm_vg_list *\n"
34680 " guestfs_vgs_full (guestfs_h *g);\n"
34681 "\n"
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs-actions.pod:8307
34686 msgid ""
34687 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34688 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34689 msgstr ""
34690
34691 #. type: =head2
34692 #: ../src/guestfs-actions.pod:8313
34693 msgid "guestfs_vgscan"
34694 msgstr ""
34695
34696 #. type: verbatim
34697 #: ../src/guestfs-actions.pod:8315
34698 #, no-wrap
34699 msgid ""
34700 " int\n"
34701 " guestfs_vgscan (guestfs_h *g);\n"
34702 "\n"
34703 msgstr ""
34704
34705 #. type: =head2
34706 #: ../src/guestfs-actions.pod:8325
34707 msgid "guestfs_vguuid"
34708 msgstr ""
34709
34710 #. type: verbatim
34711 #: ../src/guestfs-actions.pod:8327
34712 #, no-wrap
34713 msgid ""
34714 " char *\n"
34715 " guestfs_vguuid (guestfs_h *g,\n"
34716 "                 const char *vgname);\n"
34717 "\n"
34718 msgstr ""
34719
34720 #. type: =head2
34721 #: ../src/guestfs-actions.pod:8338
34722 msgid "guestfs_wait_ready"
34723 msgstr ""
34724
34725 #. type: verbatim
34726 #: ../src/guestfs-actions.pod:8340
34727 #, no-wrap
34728 msgid ""
34729 " int\n"
34730 " guestfs_wait_ready (guestfs_h *g);\n"
34731 "\n"
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs-actions.pod:8343
34736 msgid ""
34737 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34738 "instead."
34739 msgstr ""
34740
34741 #. type: textblock
34742 #: ../src/guestfs-actions.pod:8350
34743 msgid "This function is a no op."
34744 msgstr ""
34745
34746 #. type: textblock
34747 #: ../src/guestfs-actions.pod:8352
34748 msgid ""
34749 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34750 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34751 "is no longer necessary because C<guestfs_launch> now does the waiting."
34752 msgstr ""
34753
34754 #. type: textblock
34755 #: ../src/guestfs-actions.pod:8357
34756 msgid ""
34757 "If you see any calls to this function in code then you can just remove them, "
34758 "unless you want to retain compatibility with older versions of the API."
34759 msgstr ""
34760
34761 #. type: =head2
34762 #: ../src/guestfs-actions.pod:8365
34763 msgid "guestfs_wc_c"
34764 msgstr ""
34765
34766 #. type: verbatim
34767 #: ../src/guestfs-actions.pod:8367
34768 #, no-wrap
34769 msgid ""
34770 " int\n"
34771 " guestfs_wc_c (guestfs_h *g,\n"
34772 "               const char *path);\n"
34773 "\n"
34774 msgstr ""
34775
34776 #. type: =head2
34777 #: ../src/guestfs-actions.pod:8378
34778 msgid "guestfs_wc_l"
34779 msgstr ""
34780
34781 #. type: verbatim
34782 #: ../src/guestfs-actions.pod:8380
34783 #, no-wrap
34784 msgid ""
34785 " int\n"
34786 " guestfs_wc_l (guestfs_h *g,\n"
34787 "               const char *path);\n"
34788 "\n"
34789 msgstr ""
34790
34791 #. type: =head2
34792 #: ../src/guestfs-actions.pod:8391
34793 msgid "guestfs_wc_w"
34794 msgstr ""
34795
34796 #. type: verbatim
34797 #: ../src/guestfs-actions.pod:8393
34798 #, no-wrap
34799 msgid ""
34800 " int\n"
34801 " guestfs_wc_w (guestfs_h *g,\n"
34802 "               const char *path);\n"
34803 "\n"
34804 msgstr ""
34805
34806 #. type: =head2
34807 #: ../src/guestfs-actions.pod:8404
34808 msgid "guestfs_write"
34809 msgstr ""
34810
34811 #. type: verbatim
34812 #: ../src/guestfs-actions.pod:8406
34813 #, no-wrap
34814 msgid ""
34815 " int\n"
34816 " guestfs_write (guestfs_h *g,\n"
34817 "                const char *path,\n"
34818 "                const char *content,\n"
34819 "                size_t content_size);\n"
34820 "\n"
34821 msgstr ""
34822
34823 #. type: textblock
34824 #: ../src/guestfs-actions.pod:8415
34825 msgid "See also C<guestfs_write_append>."
34826 msgstr ""
34827
34828 #. type: =head2
34829 #: ../src/guestfs-actions.pod:8424
34830 msgid "guestfs_write_append"
34831 msgstr ""
34832
34833 #. type: verbatim
34834 #: ../src/guestfs-actions.pod:8426
34835 #, no-wrap
34836 msgid ""
34837 " int\n"
34838 " guestfs_write_append (guestfs_h *g,\n"
34839 "                       const char *path,\n"
34840 "                       const char *content,\n"
34841 "                       size_t content_size);\n"
34842 "\n"
34843 msgstr ""
34844
34845 #. type: textblock
34846 #: ../src/guestfs-actions.pod:8435
34847 msgid "See also C<guestfs_write>."
34848 msgstr ""
34849
34850 #. type: =head2
34851 #: ../src/guestfs-actions.pod:8444
34852 msgid "guestfs_write_file"
34853 msgstr ""
34854
34855 #. type: verbatim
34856 #: ../src/guestfs-actions.pod:8446
34857 #, no-wrap
34858 msgid ""
34859 " int\n"
34860 " guestfs_write_file (guestfs_h *g,\n"
34861 "                     const char *path,\n"
34862 "                     const char *content,\n"
34863 "                     int size);\n"
34864 "\n"
34865 msgstr ""
34866
34867 #. type: textblock
34868 #: ../src/guestfs-actions.pod:8452
34869 msgid ""
34870 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34871 "instead."
34872 msgstr ""
34873
34874 #. type: =head2
34875 #: ../src/guestfs-actions.pod:8477
34876 msgid "guestfs_zegrep"
34877 msgstr ""
34878
34879 #. type: verbatim
34880 #: ../src/guestfs-actions.pod:8479
34881 #, no-wrap
34882 msgid ""
34883 " char **\n"
34884 " guestfs_zegrep (guestfs_h *g,\n"
34885 "                 const char *regex,\n"
34886 "                 const char *path);\n"
34887 "\n"
34888 msgstr ""
34889
34890 #. type: =head2
34891 #: ../src/guestfs-actions.pod:8496
34892 msgid "guestfs_zegrepi"
34893 msgstr ""
34894
34895 #. type: verbatim
34896 #: ../src/guestfs-actions.pod:8498
34897 #, no-wrap
34898 msgid ""
34899 " char **\n"
34900 " guestfs_zegrepi (guestfs_h *g,\n"
34901 "                  const char *regex,\n"
34902 "                  const char *path);\n"
34903 "\n"
34904 msgstr ""
34905
34906 #. type: =head2
34907 #: ../src/guestfs-actions.pod:8515
34908 msgid "guestfs_zero"
34909 msgstr ""
34910
34911 #. type: verbatim
34912 #: ../src/guestfs-actions.pod:8517
34913 #, no-wrap
34914 msgid ""
34915 " int\n"
34916 " guestfs_zero (guestfs_h *g,\n"
34917 "               const char *device);\n"
34918 "\n"
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs-actions.pod:8531
34923 msgid ""
34924 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34925 "C<guestfs_is_zero_device>"
34926 msgstr ""
34927
34928 #. type: =head2
34929 #: ../src/guestfs-actions.pod:8543
34930 msgid "guestfs_zero_device"
34931 msgstr ""
34932
34933 #. type: verbatim
34934 #: ../src/guestfs-actions.pod:8545
34935 #, no-wrap
34936 msgid ""
34937 " int\n"
34938 " guestfs_zero_device (guestfs_h *g,\n"
34939 "                      const char *device);\n"
34940 "\n"
34941 msgstr ""
34942
34943 #. type: textblock
34944 #: ../src/guestfs-actions.pod:8549
34945 msgid ""
34946 "This command writes zeroes over the entire C<device>.  Compare with "
34947 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34948 msgstr ""
34949
34950 #. type: textblock
34951 #: ../src/guestfs-actions.pod:8564
34952 msgid "(Added in 1.3.1)"
34953 msgstr ""
34954
34955 #. type: =head2
34956 #: ../src/guestfs-actions.pod:8566
34957 msgid "guestfs_zerofree"
34958 msgstr ""
34959
34960 #. type: verbatim
34961 #: ../src/guestfs-actions.pod:8568
34962 #, no-wrap
34963 msgid ""
34964 " int\n"
34965 " guestfs_zerofree (guestfs_h *g,\n"
34966 "                   const char *device);\n"
34967 "\n"
34968 msgstr ""
34969
34970 #. type: =head2
34971 #: ../src/guestfs-actions.pod:8587
34972 msgid "guestfs_zfgrep"
34973 msgstr ""
34974
34975 #. type: verbatim
34976 #: ../src/guestfs-actions.pod:8589
34977 #, no-wrap
34978 msgid ""
34979 " char **\n"
34980 " guestfs_zfgrep (guestfs_h *g,\n"
34981 "                 const char *pattern,\n"
34982 "                 const char *path);\n"
34983 "\n"
34984 msgstr ""
34985
34986 #. type: =head2
34987 #: ../src/guestfs-actions.pod:8606
34988 msgid "guestfs_zfgrepi"
34989 msgstr ""
34990
34991 #. type: verbatim
34992 #: ../src/guestfs-actions.pod:8608
34993 #, no-wrap
34994 msgid ""
34995 " char **\n"
34996 " guestfs_zfgrepi (guestfs_h *g,\n"
34997 "                  const char *pattern,\n"
34998 "                  const char *path);\n"
34999 "\n"
35000 msgstr ""
35001
35002 #. type: =head2
35003 #: ../src/guestfs-actions.pod:8625
35004 msgid "guestfs_zfile"
35005 msgstr ""
35006
35007 #. type: verbatim
35008 #: ../src/guestfs-actions.pod:8627
35009 #, no-wrap
35010 msgid ""
35011 " char *\n"
35012 " guestfs_zfile (guestfs_h *g,\n"
35013 "                const char *meth,\n"
35014 "                const char *path);\n"
35015 "\n"
35016 msgstr ""
35017
35018 #. type: textblock
35019 #: ../src/guestfs-actions.pod:8632
35020 msgid ""
35021 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
35022 "instead."
35023 msgstr ""
35024
35025 #. type: textblock
35026 #: ../src/guestfs-actions.pod:8644
35027 msgid ""
35028 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
35029 "files."
35030 msgstr ""
35031
35032 #. type: =head2
35033 #: ../src/guestfs-actions.pod:8652
35034 msgid "guestfs_zgrep"
35035 msgstr ""
35036
35037 #. type: verbatim
35038 #: ../src/guestfs-actions.pod:8654
35039 #, no-wrap
35040 msgid ""
35041 " char **\n"
35042 " guestfs_zgrep (guestfs_h *g,\n"
35043 "                const char *regex,\n"
35044 "                const char *path);\n"
35045 "\n"
35046 msgstr ""
35047
35048 #. type: =head2
35049 #: ../src/guestfs-actions.pod:8671
35050 msgid "guestfs_zgrepi"
35051 msgstr ""
35052
35053 #. type: verbatim
35054 #: ../src/guestfs-actions.pod:8673
35055 #, no-wrap
35056 msgid ""
35057 " char **\n"
35058 " guestfs_zgrepi (guestfs_h *g,\n"
35059 "                 const char *regex,\n"
35060 "                 const char *path);\n"
35061 "\n"
35062 msgstr ""
35063
35064 #. type: =item
35065 #: ../src/guestfs-availability.pod:3
35066 msgid "B<augeas>"
35067 msgstr ""
35068
35069 #. type: textblock
35070 #: ../src/guestfs-availability.pod:5
35071 msgid ""
35072 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
35073 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
35074 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
35075 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
35076 "L</guestfs_aug_save> L</guestfs_aug_set>"
35077 msgstr ""
35078
35079 #. type: =item
35080 #: ../src/guestfs-availability.pod:21
35081 msgid "B<btrfs>"
35082 msgstr ""
35083
35084 #. type: textblock
35085 #: ../src/guestfs-availability.pod:23
35086 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
35087 msgstr ""
35088
35089 #. type: =item
35090 #: ../src/guestfs-availability.pod:26
35091 msgid "B<grub>"
35092 msgstr ""
35093
35094 #. type: textblock
35095 #: ../src/guestfs-availability.pod:28
35096 msgid "The following functions: L</guestfs_grub_install>"
35097 msgstr ""
35098
35099 #. type: =item
35100 #: ../src/guestfs-availability.pod:31
35101 msgid "B<inotify>"
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs-availability.pod:33
35106 msgid ""
35107 "The following functions: L</guestfs_inotify_add_watch> L</"
35108 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
35109 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
35110 msgstr ""
35111
35112 #. type: =item
35113 #: ../src/guestfs-availability.pod:41
35114 msgid "B<linuxfsuuid>"
35115 msgstr ""
35116
35117 #. type: textblock
35118 #: ../src/guestfs-availability.pod:43
35119 msgid ""
35120 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
35121 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
35122 msgstr ""
35123
35124 #. type: =item
35125 #: ../src/guestfs-availability.pod:50
35126 msgid "B<linuxmodules>"
35127 msgstr ""
35128
35129 #. type: textblock
35130 #: ../src/guestfs-availability.pod:52
35131 msgid "The following functions: L</guestfs_modprobe>"
35132 msgstr ""
35133
35134 #. type: =item
35135 #: ../src/guestfs-availability.pod:55
35136 msgid "B<linuxxattrs>"
35137 msgstr ""
35138
35139 #. type: textblock
35140 #: ../src/guestfs-availability.pod:57
35141 msgid ""
35142 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
35143 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
35144 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
35145 "guestfs_setxattr>"
35146 msgstr ""
35147
35148 #. type: =item
35149 #: ../src/guestfs-availability.pod:68
35150 msgid "B<luks>"
35151 msgstr ""
35152
35153 #. type: textblock
35154 #: ../src/guestfs-availability.pod:70
35155 msgid ""
35156 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
35157 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
35158 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
35159 msgstr ""
35160
35161 #. type: =item
35162 #: ../src/guestfs-availability.pod:79
35163 msgid "B<lvm2>"
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs-availability.pod:81
35168 msgid ""
35169 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
35170 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
35171 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
35172 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
35173 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
35174 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
35175 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
35176 msgstr ""
35177
35178 #. type: =item
35179 #: ../src/guestfs-availability.pod:104
35180 msgid "B<mdadm>"
35181 msgstr ""
35182
35183 #. type: textblock
35184 #: ../src/guestfs-availability.pod:106
35185 msgid ""
35186 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
35187 "guestfs_md_stop>"
35188 msgstr ""
35189
35190 #. type: =item
35191 #: ../src/guestfs-availability.pod:111
35192 msgid "B<mknod>"
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs-availability.pod:113
35197 msgid ""
35198 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35199 "guestfs_mknod_b> L</guestfs_mknod_c>"
35200 msgstr ""
35201
35202 #. type: =item
35203 #: ../src/guestfs-availability.pod:119
35204 msgid "B<ntfs3g>"
35205 msgstr ""
35206
35207 #. type: textblock
35208 #: ../src/guestfs-availability.pod:121
35209 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35210 msgstr ""
35211
35212 #. type: =item
35213 #: ../src/guestfs-availability.pod:124
35214 msgid "B<ntfsprogs>"
35215 msgstr ""
35216
35217 #. type: textblock
35218 #: ../src/guestfs-availability.pod:126
35219 msgid ""
35220 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35221 "L</guestfs_ntfsresize_size>"
35222 msgstr ""
35223
35224 #. type: =item
35225 #: ../src/guestfs-availability.pod:131
35226 msgid "B<realpath>"
35227 msgstr ""
35228
35229 #. type: textblock
35230 #: ../src/guestfs-availability.pod:133
35231 msgid "The following functions: L</guestfs_realpath>"
35232 msgstr ""
35233
35234 #. type: =item
35235 #: ../src/guestfs-availability.pod:136
35236 msgid "B<scrub>"
35237 msgstr ""
35238
35239 #. type: textblock
35240 #: ../src/guestfs-availability.pod:138
35241 msgid ""
35242 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35243 "guestfs_scrub_freespace>"
35244 msgstr ""
35245
35246 #. type: =item
35247 #: ../src/guestfs-availability.pod:143
35248 msgid "B<selinux>"
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs-availability.pod:145
35253 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35254 msgstr ""
35255
35256 #. type: =item
35257 #: ../src/guestfs-availability.pod:149
35258 msgid "B<xz>"
35259 msgstr ""
35260
35261 #. type: textblock
35262 #: ../src/guestfs-availability.pod:151
35263 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35264 msgstr ""
35265
35266 #. type: =item
35267 #: ../src/guestfs-availability.pod:155
35268 msgid "B<zerofree>"
35269 msgstr ""
35270
35271 #. type: textblock
35272 #: ../src/guestfs-availability.pod:157
35273 msgid "The following functions: L</guestfs_zerofree>"
35274 msgstr ""
35275
35276 #. type: =head2
35277 #: ../src/guestfs-structs.pod:1
35278 msgid "guestfs_int_bool"
35279 msgstr ""
35280
35281 #. type: verbatim
35282 #: ../src/guestfs-structs.pod:3
35283 #, no-wrap
35284 msgid ""
35285 " struct guestfs_int_bool {\n"
35286 "   int32_t i;\n"
35287 "   int32_t b;\n"
35288 " };\n"
35289 " \n"
35290 msgstr ""
35291
35292 #. type: verbatim
35293 #: ../src/guestfs-structs.pod:8
35294 #, no-wrap
35295 msgid ""
35296 " struct guestfs_int_bool_list {\n"
35297 "   uint32_t len; /* Number of elements in list. */\n"
35298 "   struct guestfs_int_bool *val; /* Elements. */\n"
35299 " };\n"
35300 " \n"
35301 msgstr ""
35302
35303 #. type: verbatim
35304 #: ../src/guestfs-structs.pod:13
35305 #, no-wrap
35306 msgid ""
35307 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35308 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35309 "\n"
35310 msgstr ""
35311
35312 #. type: =head2
35313 #: ../src/guestfs-structs.pod:16
35314 msgid "guestfs_lvm_pv"
35315 msgstr ""
35316
35317 #. type: verbatim
35318 #: ../src/guestfs-structs.pod:18
35319 #, no-wrap
35320 msgid ""
35321 " struct guestfs_lvm_pv {\n"
35322 "   char *pv_name;\n"
35323 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35324 "   char pv_uuid[32];\n"
35325 "   char *pv_fmt;\n"
35326 "   uint64_t pv_size;\n"
35327 "   uint64_t dev_size;\n"
35328 "   uint64_t pv_free;\n"
35329 "   uint64_t pv_used;\n"
35330 "   char *pv_attr;\n"
35331 "   int64_t pv_pe_count;\n"
35332 "   int64_t pv_pe_alloc_count;\n"
35333 "   char *pv_tags;\n"
35334 "   uint64_t pe_start;\n"
35335 "   int64_t pv_mda_count;\n"
35336 "   uint64_t pv_mda_free;\n"
35337 " };\n"
35338 " \n"
35339 msgstr ""
35340
35341 #. type: verbatim
35342 #: ../src/guestfs-structs.pod:36
35343 #, no-wrap
35344 msgid ""
35345 " struct guestfs_lvm_pv_list {\n"
35346 "   uint32_t len; /* Number of elements in list. */\n"
35347 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35348 " };\n"
35349 " \n"
35350 msgstr ""
35351
35352 #. type: verbatim
35353 #: ../src/guestfs-structs.pod:41
35354 #, no-wrap
35355 msgid ""
35356 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35357 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35358 "\n"
35359 msgstr ""
35360
35361 #. type: =head2
35362 #: ../src/guestfs-structs.pod:44
35363 msgid "guestfs_lvm_vg"
35364 msgstr ""
35365
35366 #. type: verbatim
35367 #: ../src/guestfs-structs.pod:46
35368 #, no-wrap
35369 msgid ""
35370 " struct guestfs_lvm_vg {\n"
35371 "   char *vg_name;\n"
35372 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35373 "   char vg_uuid[32];\n"
35374 "   char *vg_fmt;\n"
35375 "   char *vg_attr;\n"
35376 "   uint64_t vg_size;\n"
35377 "   uint64_t vg_free;\n"
35378 "   char *vg_sysid;\n"
35379 "   uint64_t vg_extent_size;\n"
35380 "   int64_t vg_extent_count;\n"
35381 "   int64_t vg_free_count;\n"
35382 "   int64_t max_lv;\n"
35383 "   int64_t max_pv;\n"
35384 "   int64_t pv_count;\n"
35385 "   int64_t lv_count;\n"
35386 "   int64_t snap_count;\n"
35387 "   int64_t vg_seqno;\n"
35388 "   char *vg_tags;\n"
35389 "   int64_t vg_mda_count;\n"
35390 "   uint64_t vg_mda_free;\n"
35391 " };\n"
35392 " \n"
35393 msgstr ""
35394
35395 #. type: verbatim
35396 #: ../src/guestfs-structs.pod:69
35397 #, no-wrap
35398 msgid ""
35399 " struct guestfs_lvm_vg_list {\n"
35400 "   uint32_t len; /* Number of elements in list. */\n"
35401 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35402 " };\n"
35403 " \n"
35404 msgstr ""
35405
35406 #. type: verbatim
35407 #: ../src/guestfs-structs.pod:74
35408 #, no-wrap
35409 msgid ""
35410 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35411 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35412 "\n"
35413 msgstr ""
35414
35415 #. type: =head2
35416 #: ../src/guestfs-structs.pod:77
35417 msgid "guestfs_lvm_lv"
35418 msgstr ""
35419
35420 #. type: verbatim
35421 #: ../src/guestfs-structs.pod:79
35422 #, no-wrap
35423 msgid ""
35424 " struct guestfs_lvm_lv {\n"
35425 "   char *lv_name;\n"
35426 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35427 "   char lv_uuid[32];\n"
35428 "   char *lv_attr;\n"
35429 "   int64_t lv_major;\n"
35430 "   int64_t lv_minor;\n"
35431 "   int64_t lv_kernel_major;\n"
35432 "   int64_t lv_kernel_minor;\n"
35433 "   uint64_t lv_size;\n"
35434 "   int64_t seg_count;\n"
35435 "   char *origin;\n"
35436 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35437 "   float snap_percent;\n"
35438 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35439 "   float copy_percent;\n"
35440 "   char *move_pv;\n"
35441 "   char *lv_tags;\n"
35442 "   char *mirror_log;\n"
35443 "   char *modules;\n"
35444 " };\n"
35445 " \n"
35446 msgstr ""
35447
35448 #. type: verbatim
35449 #: ../src/guestfs-structs.pod:101
35450 #, no-wrap
35451 msgid ""
35452 " struct guestfs_lvm_lv_list {\n"
35453 "   uint32_t len; /* Number of elements in list. */\n"
35454 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35455 " };\n"
35456 " \n"
35457 msgstr ""
35458
35459 #. type: verbatim
35460 #: ../src/guestfs-structs.pod:106
35461 #, no-wrap
35462 msgid ""
35463 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35464 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35465 "\n"
35466 msgstr ""
35467
35468 #. type: verbatim
35469 #: ../src/guestfs-structs.pod:111
35470 #, no-wrap
35471 msgid ""
35472 " struct guestfs_stat {\n"
35473 "   int64_t dev;\n"
35474 "   int64_t ino;\n"
35475 "   int64_t mode;\n"
35476 "   int64_t nlink;\n"
35477 "   int64_t uid;\n"
35478 "   int64_t gid;\n"
35479 "   int64_t rdev;\n"
35480 "   int64_t size;\n"
35481 "   int64_t blksize;\n"
35482 "   int64_t blocks;\n"
35483 "   int64_t atime;\n"
35484 "   int64_t mtime;\n"
35485 "   int64_t ctime;\n"
35486 " };\n"
35487 " \n"
35488 msgstr ""
35489
35490 #. type: verbatim
35491 #: ../src/guestfs-structs.pod:127
35492 #, no-wrap
35493 msgid ""
35494 " struct guestfs_stat_list {\n"
35495 "   uint32_t len; /* Number of elements in list. */\n"
35496 "   struct guestfs_stat *val; /* Elements. */\n"
35497 " };\n"
35498 " \n"
35499 msgstr ""
35500
35501 #. type: verbatim
35502 #: ../src/guestfs-structs.pod:132
35503 #, no-wrap
35504 msgid ""
35505 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35506 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35507 "\n"
35508 msgstr ""
35509
35510 #. type: verbatim
35511 #: ../src/guestfs-structs.pod:137
35512 #, no-wrap
35513 msgid ""
35514 " struct guestfs_statvfs {\n"
35515 "   int64_t bsize;\n"
35516 "   int64_t frsize;\n"
35517 "   int64_t blocks;\n"
35518 "   int64_t bfree;\n"
35519 "   int64_t bavail;\n"
35520 "   int64_t files;\n"
35521 "   int64_t ffree;\n"
35522 "   int64_t favail;\n"
35523 "   int64_t fsid;\n"
35524 "   int64_t flag;\n"
35525 "   int64_t namemax;\n"
35526 " };\n"
35527 " \n"
35528 msgstr ""
35529
35530 #. type: verbatim
35531 #: ../src/guestfs-structs.pod:151
35532 #, no-wrap
35533 msgid ""
35534 " struct guestfs_statvfs_list {\n"
35535 "   uint32_t len; /* Number of elements in list. */\n"
35536 "   struct guestfs_statvfs *val; /* Elements. */\n"
35537 " };\n"
35538 " \n"
35539 msgstr ""
35540
35541 #. type: verbatim
35542 #: ../src/guestfs-structs.pod:156
35543 #, no-wrap
35544 msgid ""
35545 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35546 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35547 "\n"
35548 msgstr ""
35549
35550 #. type: =head2
35551 #: ../src/guestfs-structs.pod:159
35552 msgid "guestfs_dirent"
35553 msgstr ""
35554
35555 #. type: verbatim
35556 #: ../src/guestfs-structs.pod:161
35557 #, no-wrap
35558 msgid ""
35559 " struct guestfs_dirent {\n"
35560 "   int64_t ino;\n"
35561 "   char ftyp;\n"
35562 "   char *name;\n"
35563 " };\n"
35564 " \n"
35565 msgstr ""
35566
35567 #. type: verbatim
35568 #: ../src/guestfs-structs.pod:167
35569 #, no-wrap
35570 msgid ""
35571 " struct guestfs_dirent_list {\n"
35572 "   uint32_t len; /* Number of elements in list. */\n"
35573 "   struct guestfs_dirent *val; /* Elements. */\n"
35574 " };\n"
35575 " \n"
35576 msgstr ""
35577
35578 #. type: verbatim
35579 #: ../src/guestfs-structs.pod:172
35580 #, no-wrap
35581 msgid ""
35582 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35583 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35584 "\n"
35585 msgstr ""
35586
35587 #. type: verbatim
35588 #: ../src/guestfs-structs.pod:177
35589 #, no-wrap
35590 msgid ""
35591 " struct guestfs_version {\n"
35592 "   int64_t major;\n"
35593 "   int64_t minor;\n"
35594 "   int64_t release;\n"
35595 "   char *extra;\n"
35596 " };\n"
35597 " \n"
35598 msgstr ""
35599
35600 #. type: verbatim
35601 #: ../src/guestfs-structs.pod:184
35602 #, no-wrap
35603 msgid ""
35604 " struct guestfs_version_list {\n"
35605 "   uint32_t len; /* Number of elements in list. */\n"
35606 "   struct guestfs_version *val; /* Elements. */\n"
35607 " };\n"
35608 " \n"
35609 msgstr ""
35610
35611 #. type: verbatim
35612 #: ../src/guestfs-structs.pod:189
35613 #, no-wrap
35614 msgid ""
35615 " void guestfs_free_version (struct guestfs_free_version *);\n"
35616 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35617 "\n"
35618 msgstr ""
35619
35620 #. type: =head2
35621 #: ../src/guestfs-structs.pod:192
35622 msgid "guestfs_xattr"
35623 msgstr ""
35624
35625 #. type: verbatim
35626 #: ../src/guestfs-structs.pod:194
35627 #, no-wrap
35628 msgid ""
35629 " struct guestfs_xattr {\n"
35630 "   char *attrname;\n"
35631 "   /* The next two fields describe a byte array. */\n"
35632 "   uint32_t attrval_len;\n"
35633 "   char *attrval;\n"
35634 " };\n"
35635 " \n"
35636 msgstr ""
35637
35638 #. type: verbatim
35639 #: ../src/guestfs-structs.pod:201
35640 #, no-wrap
35641 msgid ""
35642 " struct guestfs_xattr_list {\n"
35643 "   uint32_t len; /* Number of elements in list. */\n"
35644 "   struct guestfs_xattr *val; /* Elements. */\n"
35645 " };\n"
35646 " \n"
35647 msgstr ""
35648
35649 #. type: verbatim
35650 #: ../src/guestfs-structs.pod:206
35651 #, no-wrap
35652 msgid ""
35653 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35654 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35655 "\n"
35656 msgstr ""
35657
35658 #. type: =head2
35659 #: ../src/guestfs-structs.pod:209
35660 msgid "guestfs_inotify_event"
35661 msgstr ""
35662
35663 #. type: verbatim
35664 #: ../src/guestfs-structs.pod:211
35665 #, no-wrap
35666 msgid ""
35667 " struct guestfs_inotify_event {\n"
35668 "   int64_t in_wd;\n"
35669 "   uint32_t in_mask;\n"
35670 "   uint32_t in_cookie;\n"
35671 "   char *in_name;\n"
35672 " };\n"
35673 " \n"
35674 msgstr ""
35675
35676 #. type: verbatim
35677 #: ../src/guestfs-structs.pod:218
35678 #, no-wrap
35679 msgid ""
35680 " struct guestfs_inotify_event_list {\n"
35681 "   uint32_t len; /* Number of elements in list. */\n"
35682 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35683 " };\n"
35684 " \n"
35685 msgstr ""
35686
35687 #. type: verbatim
35688 #: ../src/guestfs-structs.pod:223
35689 #, no-wrap
35690 msgid ""
35691 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35692 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35693 "\n"
35694 msgstr ""
35695
35696 #. type: =head2
35697 #: ../src/guestfs-structs.pod:226
35698 msgid "guestfs_partition"
35699 msgstr ""
35700
35701 #. type: verbatim
35702 #: ../src/guestfs-structs.pod:228
35703 #, no-wrap
35704 msgid ""
35705 " struct guestfs_partition {\n"
35706 "   int32_t part_num;\n"
35707 "   uint64_t part_start;\n"
35708 "   uint64_t part_end;\n"
35709 "   uint64_t part_size;\n"
35710 " };\n"
35711 " \n"
35712 msgstr ""
35713
35714 #. type: verbatim
35715 #: ../src/guestfs-structs.pod:235
35716 #, no-wrap
35717 msgid ""
35718 " struct guestfs_partition_list {\n"
35719 "   uint32_t len; /* Number of elements in list. */\n"
35720 "   struct guestfs_partition *val; /* Elements. */\n"
35721 " };\n"
35722 " \n"
35723 msgstr ""
35724
35725 #. type: verbatim
35726 #: ../src/guestfs-structs.pod:240
35727 #, no-wrap
35728 msgid ""
35729 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35730 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35731 "\n"
35732 msgstr ""
35733
35734 #. type: =head2
35735 #: ../src/guestfs-structs.pod:243
35736 msgid "guestfs_application"
35737 msgstr ""
35738
35739 #. type: verbatim
35740 #: ../src/guestfs-structs.pod:245
35741 #, no-wrap
35742 msgid ""
35743 " struct guestfs_application {\n"
35744 "   char *app_name;\n"
35745 "   char *app_display_name;\n"
35746 "   int32_t app_epoch;\n"
35747 "   char *app_version;\n"
35748 "   char *app_release;\n"
35749 "   char *app_install_path;\n"
35750 "   char *app_trans_path;\n"
35751 "   char *app_publisher;\n"
35752 "   char *app_url;\n"
35753 "   char *app_source_package;\n"
35754 "   char *app_summary;\n"
35755 "   char *app_description;\n"
35756 " };\n"
35757 " \n"
35758 msgstr ""
35759
35760 #. type: verbatim
35761 #: ../src/guestfs-structs.pod:260
35762 #, no-wrap
35763 msgid ""
35764 " struct guestfs_application_list {\n"
35765 "   uint32_t len; /* Number of elements in list. */\n"
35766 "   struct guestfs_application *val; /* Elements. */\n"
35767 " };\n"
35768 " \n"
35769 msgstr ""
35770
35771 #. type: verbatim
35772 #: ../src/guestfs-structs.pod:265
35773 #, no-wrap
35774 msgid ""
35775 " void guestfs_free_application (struct guestfs_free_application *);\n"
35776 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35777 "\n"
35778 msgstr ""
35779
35780 #. type: textblock
35781 #: ../src/guestfs.pod:5
35782 msgid "guestfs - Library for accessing and modifying virtual machine images"
35783 msgstr ""
35784
35785 #. type: verbatim
35786 #: ../src/guestfs.pod:11
35787 #, no-wrap
35788 msgid ""
35789 " guestfs_h *g = guestfs_create ();\n"
35790 " guestfs_add_drive (g, \"guest.img\");\n"
35791 " guestfs_launch (g);\n"
35792 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35793 " guestfs_touch (g, \"/hello\");\n"
35794 " guestfs_umount (g, \"/\");\n"
35795 " guestfs_close (g);\n"
35796 "\n"
35797 msgstr ""
35798 " guestfs_h *g = guestfs_create ();\n"
35799 " guestfs_add_drive (g, \"guest.img\");\n"
35800 " guestfs_launch (g);\n"
35801 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35802 " guestfs_touch (g, \"/hello\");\n"
35803 " guestfs_umount (g, \"/\");\n"
35804 " guestfs_close (g);\n"
35805 "\n"
35806
35807 #. type: textblock
35808 #: ../src/guestfs.pod:25
35809 msgid ""
35810 "Libguestfs is a library for accessing and modifying guest disk images.  "
35811 "Amongst the things this is good for: making batch configuration changes to "
35812 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35813 "between virtualization systems (see also: virt-p2v), performing partial "
35814 "backups, performing partial guest clones, cloning guests and changing "
35815 "registry/UUID/hostname info, and much else besides."
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:33
35820 msgid ""
35821 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35822 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35823 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35824 "qcow2, vmdk."
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:38
35829 msgid ""
35830 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35831 "what filesystem is in each LV, etc.).  It can also run commands in the "
35832 "context of the guest.  Also you can access filesystems over FUSE."
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:43
35837 msgid ""
35838 "Libguestfs is a library that can be linked with C and C++ management "
35839 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35840 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35841 "command line."
35842 msgstr ""
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:48
35846 msgid ""
35847 "You don't need to be root to use libguestfs, although obviously you do need "
35848 "enough permissions to access the disk images."
35849 msgstr ""
35850
35851 #. type: textblock
35852 #: ../src/guestfs.pod:51
35853 msgid ""
35854 "Libguestfs is a large API because it can do many things.  For a gentle "
35855 "introduction, please read the L</API OVERVIEW> section next."
35856 msgstr ""
35857
35858 #. type: textblock
35859 #: ../src/guestfs.pod:54
35860 msgid ""
35861 "There are also some example programs in the L<guestfs-examples(3)> manual "
35862 "page."
35863 msgstr ""
35864
35865 #. type: =head1
35866 #: ../src/guestfs.pod:57
35867 msgid "API OVERVIEW"
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:59
35872 msgid ""
35873 "This section provides a gentler overview of the libguestfs API.  We also try "
35874 "to group API calls together, where that may not be obvious from reading "
35875 "about the individual calls in the main section of this manual."
35876 msgstr ""
35877
35878 #. type: =head2
35879 #: ../src/guestfs.pod:64
35880 msgid "HANDLES"
35881 msgstr ""
35882
35883 #. type: textblock
35884 #: ../src/guestfs.pod:66
35885 msgid ""
35886 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35887 "must add at least one disk image to the handle, followed by launching the "
35888 "handle, then performing whatever operations you want, and finally closing "
35889 "the handle.  By convention we use the single letter C<g> for the name of the "
35890 "handle variable, although of course you can use any name you want."
35891 msgstr ""
35892
35893 #. type: textblock
35894 #: ../src/guestfs.pod:73
35895 msgid "The general structure of all libguestfs-using programs looks like this:"
35896 msgstr ""
35897
35898 #. type: verbatim
35899 #: ../src/guestfs.pod:76
35900 #, no-wrap
35901 msgid ""
35902 " guestfs_h *g = guestfs_create ();\n"
35903 " \n"
35904 msgstr ""
35905
35906 #. type: verbatim
35907 #: ../src/guestfs.pod:78
35908 #, no-wrap
35909 msgid ""
35910 " /* Call guestfs_add_drive additional times if there are\n"
35911 "  * multiple disk images.\n"
35912 "  */\n"
35913 " guestfs_add_drive (g, \"guest.img\");\n"
35914 " \n"
35915 msgstr ""
35916
35917 #. type: verbatim
35918 #: ../src/guestfs.pod:83
35919 #, no-wrap
35920 msgid ""
35921 " /* Most manipulation calls won't work until you've launched\n"
35922 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35923 "  * and _before_ other commands.\n"
35924 "  */\n"
35925 " guestfs_launch (g);\n"
35926 " \n"
35927 msgstr ""
35928
35929 #. type: verbatim
35930 #: ../src/guestfs.pod:89
35931 #, no-wrap
35932 msgid ""
35933 " /* Now you can examine what partitions, LVs etc are available.\n"
35934 "  */\n"
35935 " char **partitions = guestfs_list_partitions (g);\n"
35936 " char **logvols = guestfs_lvs (g);\n"
35937 " \n"
35938 msgstr ""
35939
35940 #. type: verbatim
35941 #: ../src/guestfs.pod:94
35942 #, no-wrap
35943 msgid ""
35944 " /* To access a filesystem in the image, you must mount it.\n"
35945 "  */\n"
35946 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35947 " \n"
35948 msgstr ""
35949
35950 #. type: verbatim
35951 #: ../src/guestfs.pod:98
35952 #, no-wrap
35953 msgid ""
35954 " /* Now you can perform filesystem actions on the guest\n"
35955 "  * disk image.\n"
35956 "  */\n"
35957 " guestfs_touch (g, \"/hello\");\n"
35958 " \n"
35959 msgstr ""
35960
35961 #. type: verbatim
35962 #: ../src/guestfs.pod:103
35963 #, no-wrap
35964 msgid ""
35965 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35966 "  * it is done automatically when you close the handle.  See\n"
35967 "  * discussion of autosync in this page.\n"
35968 "  */\n"
35969 " guestfs_sync (g);\n"
35970 " \n"
35971 msgstr ""
35972
35973 #. type: verbatim
35974 #: ../src/guestfs.pod:109
35975 #, no-wrap
35976 msgid ""
35977 " /* Close the handle 'g'. */\n"
35978 " guestfs_close (g);\n"
35979 "\n"
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:112
35984 msgid ""
35985 "The code above doesn't include any error checking.  In real code you should "
35986 "check return values carefully for errors.  In general all functions that "
35987 "return integers return C<-1> on error, and all functions that return "
35988 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35989 "how to handle errors, and consult the documentation for each function call "
35990 "below to see precisely how they return error indications.  See L<guestfs-"
35991 "examples(3)> for fully worked examples."
35992 msgstr ""
35993
35994 #. type: =head2
35995 #: ../src/guestfs.pod:121
35996 msgid "DISK IMAGES"
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../src/guestfs.pod:123
36001 msgid ""
36002 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
36003 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
36004 "actual block device, or simply an empty file of zeroes that you have created "
36005 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
36006 "of these."
36007 msgstr ""
36008
36009 #. type: textblock
36010 #: ../src/guestfs.pod:129
36011 msgid ""
36012 "The call you should use in modern code for adding drives is L</"
36013 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
36014 "specifying that the format is raw, do:"
36015 msgstr ""
36016
36017 #. type: verbatim
36018 #: ../src/guestfs.pod:133
36019 #, no-wrap
36020 msgid ""
36021 " guestfs_add_drive_opts (g, filename,\n"
36022 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36023 "                         -1);\n"
36024 "\n"
36025 msgstr ""
36026
36027 #. type: textblock
36028 #: ../src/guestfs.pod:137
36029 msgid "You can add a disk read-only using:"
36030 msgstr ""
36031
36032 #. type: verbatim
36033 #: ../src/guestfs.pod:139
36034 #, no-wrap
36035 msgid ""
36036 " guestfs_add_drive_opts (g, filename,\n"
36037 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
36038 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36039 "                         -1);\n"
36040 "\n"
36041 msgstr ""
36042
36043 #. type: textblock
36044 #: ../src/guestfs.pod:144
36045 msgid ""
36046 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
36047 "libguestfs won't modify the file."
36048 msgstr ""
36049
36050 #. type: textblock
36051 #: ../src/guestfs.pod:147
36052 msgid ""
36053 "Be extremely cautious if the disk image is in use, eg. if it is being used "
36054 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
36055 "corruption, but adding it read-only is safe."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:151
36060 msgid ""
36061 "You must add at least one disk image, and you may add multiple disk images.  "
36062 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
36063 "first one you added), C</dev/sdb> (for the second one you added), etc."
36064 msgstr ""
36065
36066 #. type: textblock
36067 #: ../src/guestfs.pod:156
36068 msgid ""
36069 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
36070 "can call L</guestfs_list_devices> to get a list of the device names, in the "
36071 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
36072 msgstr ""
36073
36074 #. type: =head2
36075 #: ../src/guestfs.pod:161
36076 msgid "MOUNTING"
36077 msgstr ""
36078
36079 #. type: textblock
36080 #: ../src/guestfs.pod:163
36081 msgid ""
36082 "Before you can read or write files, create directories and so on in a disk "
36083 "image that contains filesystems, you have to mount those filesystems using "
36084 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
36085 "a disk image contains (for example) one partition with a filesystem on that "
36086 "partition, then you can mount it directly:"
36087 msgstr ""
36088
36089 #. type: verbatim
36090 #: ../src/guestfs.pod:170
36091 #, no-wrap
36092 msgid ""
36093 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
36094 "\n"
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs.pod:172
36099 msgid ""
36100 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
36101 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
36102 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
36103 "that these are libguestfs virtual devices, and are nothing to do with host "
36104 "devices."
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../src/guestfs.pod:178
36109 msgid ""
36110 "If you are given a disk image and you don't know what it contains then you "
36111 "have to find out.  Libguestfs can do that too: use L</"
36112 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
36113 "LVs, and either try mounting each to see what is mountable, or else examine "
36114 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
36115 "filesystems, use L</guestfs_list_filesystems>."
36116 msgstr ""
36117
36118 #. type: textblock
36119 #: ../src/guestfs.pod:186
36120 msgid ""
36121 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
36122 "L</INSPECTION> below).  But you might find it easier to look at higher level "
36123 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
36124 msgstr ""
36125
36126 #. type: textblock
36127 #: ../src/guestfs.pod:191
36128 msgid ""
36129 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
36130 "several other variations of the C<guestfs_mount_*> call."
36131 msgstr ""
36132
36133 #. type: =head2
36134 #: ../src/guestfs.pod:194
36135 msgid "FILESYSTEM ACCESS AND MODIFICATION"
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../src/guestfs.pod:196
36140 msgid ""
36141 "The majority of the libguestfs API consists of fairly low-level calls for "
36142 "accessing and modifying the files, directories, symlinks etc on mounted "
36143 "filesystems.  There are over a hundred such calls which you can find listed "
36144 "in detail below in this man page, and we don't even pretend to cover them "
36145 "all in this overview."
36146 msgstr ""
36147
36148 #. type: textblock
36149 #: ../src/guestfs.pod:202
36150 msgid ""
36151 "Specify filenames as full paths, starting with C<\"/\"> and including the "
36152 "mount point."
36153 msgstr ""
36154
36155 #. type: textblock
36156 #: ../src/guestfs.pod:205
36157 msgid ""
36158 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
36159 "the file called C<\"etc/passwd\"> then you could do:"
36160 msgstr ""
36161
36162 #. type: verbatim
36163 #: ../src/guestfs.pod:208
36164 #, no-wrap
36165 msgid ""
36166 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
36167 "\n"
36168 msgstr ""
36169
36170 #. type: textblock
36171 #: ../src/guestfs.pod:210
36172 msgid ""
36173 "This would return C<data> as a newly allocated buffer containing the full "
36174 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
36175 "or C<NULL> if there was an error."
36176 msgstr ""
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:214
36180 msgid ""
36181 "As another example, to create a top-level directory on that filesystem "
36182 "called C<\"var\"> you would do:"
36183 msgstr ""
36184
36185 #. type: verbatim
36186 #: ../src/guestfs.pod:217
36187 #, no-wrap
36188 msgid ""
36189 " guestfs_mkdir (g, \"/var\");\n"
36190 "\n"
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:219
36195 msgid "To create a symlink you could do:"
36196 msgstr ""
36197
36198 #. type: verbatim
36199 #: ../src/guestfs.pod:221
36200 #, no-wrap
36201 msgid ""
36202 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36203 "               \"/etc/rc3.d/S30portmap\");\n"
36204 "\n"
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:224
36209 msgid ""
36210 "Libguestfs will reject attempts to use relative paths and there is no "
36211 "concept of a current working directory."
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:227
36216 msgid ""
36217 "Libguestfs can return errors in many situations: for example if the "
36218 "filesystem isn't writable, or if a file or directory that you requested "
36219 "doesn't exist.  If you are using the C API (documented here)  you have to "
36220 "check for those error conditions after each call.  (Other language bindings "
36221 "turn these errors into exceptions)."
36222 msgstr ""
36223
36224 #. type: textblock
36225 #: ../src/guestfs.pod:233
36226 msgid ""
36227 "File writes are affected by the per-handle umask, set by calling L</"
36228 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36229 msgstr ""
36230
36231 #. type: =head2
36232 #: ../src/guestfs.pod:236
36233 msgid "PARTITIONING"
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:238
36238 msgid ""
36239 "Libguestfs contains API calls to read, create and modify partition tables on "
36240 "disk images."
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:241
36245 msgid ""
36246 "In the common case where you want to create a single partition covering the "
36247 "whole disk, you should use the L</guestfs_part_disk> call:"
36248 msgstr ""
36249
36250 #. type: verbatim
36251 #: ../src/guestfs.pod:245
36252 #, no-wrap
36253 msgid ""
36254 " const char *parttype = \"mbr\";\n"
36255 " if (disk_is_larger_than_2TB)\n"
36256 "   parttype = \"gpt\";\n"
36257 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36258 "\n"
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../src/guestfs.pod:250
36263 msgid ""
36264 "Obviously this effectively wipes anything that was on that disk image before."
36265 msgstr ""
36266
36267 #. type: =head2
36268 #: ../src/guestfs.pod:253
36269 msgid "LVM2"
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../src/guestfs.pod:255
36274 msgid ""
36275 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36276 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36277 "you familiarize yourself with the concepts of physical volumes, volume "
36278 "groups and logical volumes."
36279 msgstr ""
36280
36281 #. type: textblock
36282 #: ../src/guestfs.pod:260
36283 msgid ""
36284 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36285 "tldp.org/HOWTO/LVM-HOWTO/>."
36286 msgstr ""
36287
36288 #. type: =head2
36289 #: ../src/guestfs.pod:263
36290 msgid "DOWNLOADING"
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:265
36295 msgid ""
36296 "Use L</guestfs_cat> to download small, text only files.  This call is "
36297 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36298 "NUL (C<\\0>) characters.  However the API is very simple to use."
36299 msgstr ""
36300
36301 #. type: textblock
36302 #: ../src/guestfs.pod:269
36303 msgid ""
36304 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36305 "bit data, since it returns a (pointer, size) pair.  However it is still "
36306 "limited to \"small\" files, less than 2 MB."
36307 msgstr ""
36308
36309 #. type: textblock
36310 #: ../src/guestfs.pod:273
36311 msgid ""
36312 "L</guestfs_download> can be used to download any file, with no limits on "
36313 "content or size (even files larger than 4 GB)."
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:276
36318 msgid ""
36319 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36320 msgstr ""
36321
36322 #. type: =head2
36323 #: ../src/guestfs.pod:279
36324 msgid "UPLOADING"
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:281
36329 msgid ""
36330 "It's often the case that you want to write a file or files to the disk image."
36331 msgstr ""
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:284
36335 msgid ""
36336 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36337 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36338 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36339 "of other functions for creating test files, for example L</guestfs_fill> and "
36340 "L</guestfs_fill_pattern>."
36341 msgstr ""
36342
36343 #. type: textblock
36344 #: ../src/guestfs.pod:290
36345 msgid ""
36346 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36347 "file content or size (even files larger than 4 GB)."
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../src/guestfs.pod:293
36352 msgid ""
36353 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36354 msgstr ""
36355
36356 #. type: textblock
36357 #: ../src/guestfs.pod:295
36358 msgid ""
36359 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36360 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36361 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36362 "in a predictable way (eg. adding it last after all other drives) then you "
36363 "can get the device name from L</guestfs_list_devices> and mount it directly "
36364 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36365 "portable between kernel versions, and they don't support labels or UUIDs.  "
36366 "If you want to pre-build an image or you need to mount it using a label or "
36367 "UUID, use an ISO image instead."
36368 msgstr ""
36369
36370 #. type: =head2
36371 #: ../src/guestfs.pod:306
36372 msgid "COPYING"
36373 msgstr ""
36374
36375 #. type: textblock
36376 #: ../src/guestfs.pod:308
36377 msgid ""
36378 "There are various different commands for copying between files and devices "
36379 "and in and out of the guest filesystem.  These are summarised in the table "
36380 "below."
36381 msgstr ""
36382
36383 #. type: =item
36384 #: ../src/guestfs.pod:314
36385 msgid "B<file> to B<file>"
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:316
36390 msgid ""
36391 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36392 "directories recursively."
36393 msgstr ""
36394
36395 #. type: textblock
36396 #: ../src/guestfs.pod:319
36397 msgid ""
36398 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36399 msgstr ""
36400
36401 #. type: =item
36402 #: ../src/guestfs.pod:322
36403 msgid "B<file> to B<device>"
36404 msgstr ""
36405
36406 #. type: =item
36407 #: ../src/guestfs.pod:324
36408 msgid "B<device> to B<file>"
36409 msgstr ""
36410
36411 #. type: =item
36412 #: ../src/guestfs.pod:326
36413 msgid "B<device> to B<device>"
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../src/guestfs.pod:328
36418 msgid ""
36419 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36420 "guestfs_copy_device_to_device>."
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../src/guestfs.pod:331
36425 msgid "Example: duplicate the contents of an LV:"
36426 msgstr ""
36427
36428 #. type: verbatim
36429 #: ../src/guestfs.pod:333
36430 #, no-wrap
36431 msgid ""
36432 " guestfs_copy_device_to_device (g,\n"
36433 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36434 "         /* -1 marks the end of the list of optional parameters */\n"
36435 "         -1);\n"
36436 "\n"
36437 msgstr ""
36438
36439 #. type: textblock
36440 #: ../src/guestfs.pod:338
36441 msgid ""
36442 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36443 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36444 "optional C<size> parameter:"
36445 msgstr ""
36446
36447 #. type: verbatim
36448 #: ../src/guestfs.pod:342
36449 #, no-wrap
36450 msgid ""
36451 " guestfs_copy_device_to_device (g,\n"
36452 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36453 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36454 "         -1);\n"
36455 "\n"
36456 msgstr ""
36457
36458 #. type: =item
36459 #: ../src/guestfs.pod:347
36460 msgid "B<file on the host> to B<file or device>"
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:349
36465 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36466 msgstr ""
36467
36468 #. type: =item
36469 #: ../src/guestfs.pod:351
36470 msgid "B<file or device> to B<file on the host>"
36471 msgstr ""
36472
36473 #. type: textblock
36474 #: ../src/guestfs.pod:353
36475 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36476 msgstr ""
36477
36478 #. type: =head2
36479 #: ../src/guestfs.pod:357
36480 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:359
36485 msgid ""
36486 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36487 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36488 "appears you can only upload and download to files.  However many Un*x-like "
36489 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36490 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36491 "and arbitrary file descriptor N."
36492 msgstr ""
36493
36494 #. type: textblock
36495 #: ../src/guestfs.pod:367
36496 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36497 msgstr ""
36498
36499 #. type: verbatim
36500 #: ../src/guestfs.pod:370
36501 #, no-wrap
36502 msgid ""
36503 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36504 "\n"
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:372
36509 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36510 msgstr ""
36511
36512 #. type: verbatim
36513 #: ../src/guestfs.pod:374
36514 #, no-wrap
36515 msgid ""
36516 " char devfd[64];\n"
36517 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36518 " guestfs_tar_out (g, \"/\", devfd);\n"
36519 "\n"
36520 msgstr ""
36521
36522 #. type: =head2
36523 #: ../src/guestfs.pod:378
36524 msgid "LISTING FILES"
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../src/guestfs.pod:380
36529 msgid ""
36530 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36531 "L<guestfish(1)>-equivalent command C<ll>)."
36532 msgstr ""
36533
36534 #. type: textblock
36535 #: ../src/guestfs.pod:383
36536 msgid ""
36537 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36538 "programs, as a flat list of strings."
36539 msgstr ""
36540
36541 #. type: textblock
36542 #: ../src/guestfs.pod:386
36543 msgid ""
36544 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36545 "directory, plus additional information about each one.  It is more "
36546 "equivalent to using the L<readdir(3)> call on a local filesystem."
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../src/guestfs.pod:390
36551 msgid ""
36552 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36553 msgstr ""
36554
36555 #. type: =head2
36556 #: ../src/guestfs.pod:393
36557 msgid "RUNNING COMMANDS"
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:395
36562 msgid ""
36563 "Although libguestfs is primarily an API for manipulating files inside guest "
36564 "images, we also provide some limited facilities for running commands inside "
36565 "guests."
36566 msgstr ""
36567
36568 #. type: textblock
36569 #: ../src/guestfs.pod:399
36570 msgid "There are many limitations to this:"
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:405
36575 msgid ""
36576 "The kernel version that the command runs under will be different from what "
36577 "it expects."
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:410
36582 msgid ""
36583 "If the command needs to communicate with daemons, then most likely they "
36584 "won't be running."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../src/guestfs.pod:415
36589 msgid "The command will be running in limited memory."
36590 msgstr ""
36591
36592 #. type: textblock
36593 #: ../src/guestfs.pod:419
36594 msgid ""
36595 "The network may not be available unless you enable it (see L</"
36596 "guestfs_set_network>)."
36597 msgstr ""
36598
36599 #. type: textblock
36600 #: ../src/guestfs.pod:424
36601 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:428
36606 msgid ""
36607 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36608 msgstr ""
36609
36610 #. type: textblock
36611 #: ../src/guestfs.pod:433
36612 msgid ""
36613 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36614 "See L</SELINUX> in this manpage."
36615 msgstr ""
36616
36617 #. type: textblock
36618 #: ../src/guestfs.pod:438
36619 msgid ""
36620 "I<Security:> It is not safe to run commands from untrusted, possibly "
36621 "malicious guests.  These commands may attempt to exploit your program by "
36622 "sending unexpected output.  They could also try to exploit the Linux kernel "
36623 "or qemu provided by the libguestfs appliance.  They could use the network "
36624 "provided by the libguestfs appliance to bypass ordinary network partitions "
36625 "and firewalls.  They could use the elevated privileges or different SELinux "
36626 "context of your program to their advantage."
36627 msgstr ""
36628
36629 #. type: textblock
36630 #: ../src/guestfs.pod:447
36631 msgid ""
36632 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36633 "(a script which runs when the guest next boots normally), and to have this "
36634 "script run the commands you want in the normal context of the running guest, "
36635 "network security and so on.  For information about other security issues, "
36636 "see L</SECURITY>."
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs.pod:455
36641 msgid ""
36642 "The two main API calls to run commands are L</guestfs_command> and L</"
36643 "guestfs_sh> (there are also variations)."
36644 msgstr ""
36645
36646 #. type: textblock
36647 #: ../src/guestfs.pod:458
36648 msgid ""
36649 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36650 "shell globs, redirections, etc will work."
36651 msgstr ""
36652
36653 #. type: =head2
36654 #: ../src/guestfs.pod:461
36655 msgid "CONFIGURATION FILES"
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:463
36660 msgid ""
36661 "To read and write configuration files in Linux guest filesystems, we "
36662 "strongly recommend using Augeas.  For example, Augeas understands how to "
36663 "read and write, say, a Linux shadow password file or X.org configuration "
36664 "file, and so avoids you having to write that code."
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:468
36669 msgid ""
36670 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36671 "document Augeas itself here because there is excellent documentation on the "
36672 "L<http://augeas.net/> website."
36673 msgstr ""
36674
36675 #. type: textblock
36676 #: ../src/guestfs.pod:472
36677 msgid ""
36678 "If you don't want to use Augeas (you fool!) then try calling L</"
36679 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36680 "over."
36681 msgstr ""
36682
36683 #. type: =head2
36684 #: ../src/guestfs.pod:476
36685 msgid "SELINUX"
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:478
36690 msgid ""
36691 "We support SELinux guests.  To ensure that labeling happens correctly in "
36692 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:486
36697 msgid "Before launching, do:"
36698 msgstr ""
36699
36700 #. type: verbatim
36701 #: ../src/guestfs.pod:488
36702 #, no-wrap
36703 msgid ""
36704 " guestfs_set_selinux (g, 1);\n"
36705 "\n"
36706 msgstr ""
36707
36708 #. type: textblock
36709 #: ../src/guestfs.pod:492
36710 msgid ""
36711 "After mounting the guest's filesystem(s), load the policy.  This is best "
36712 "done by running the L<load_policy(8)> command in the guest itself:"
36713 msgstr ""
36714
36715 #. type: verbatim
36716 #: ../src/guestfs.pod:496
36717 #, no-wrap
36718 msgid ""
36719 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36720 "\n"
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:498
36725 msgid ""
36726 "(Older versions of C<load_policy> require you to specify the name of the "
36727 "policy file)."
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:503
36732 msgid ""
36733 "Optionally, set the security context for the API.  The correct security "
36734 "context to use can only be known by inspecting the guest.  As an example:"
36735 msgstr ""
36736
36737 #. type: verbatim
36738 #: ../src/guestfs.pod:507
36739 #, no-wrap
36740 msgid ""
36741 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36742 "\n"
36743 msgstr ""
36744
36745 #. type: textblock
36746 #: ../src/guestfs.pod:511
36747 msgid "This will work for running commands and editing existing files."
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../src/guestfs.pod:513
36752 msgid ""
36753 "When new files are created, you may need to label them explicitly, for "
36754 "example by running the external command C<restorecon pathname>."
36755 msgstr ""
36756
36757 #. type: =head2
36758 #: ../src/guestfs.pod:517
36759 msgid "UMASK"
36760 msgstr ""
36761
36762 #. type: textblock
36763 #: ../src/guestfs.pod:519
36764 msgid ""
36765 "Certain calls are affected by the current file mode creation mask (the "
36766 "\"umask\").  In particular ones which create files or directories, such as "
36767 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36768 "either the default mode that the file is created with or modifies the mode "
36769 "that you supply."
36770 msgstr ""
36771
36772 #. type: textblock
36773 #: ../src/guestfs.pod:525
36774 msgid ""
36775 "The default umask is C<022>, so files are created with modes such as C<0644> "
36776 "and directories with C<0755>."
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../src/guestfs.pod:528
36781 msgid ""
36782 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36783 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36784 "guestfs_chmod> after creating each file or directory."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:532
36789 msgid "For more information about umask, see L<umask(2)>."
36790 msgstr ""
36791
36792 #. type: textblock
36793 #: ../src/guestfs.pod:536
36794 msgid ""
36795 "Libguestfs allows you to access Linux guests which have been encrypted using "
36796 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36797 "standard.  This includes nearly all whole disk encryption systems used by "
36798 "modern Linux guests."
36799 msgstr ""
36800
36801 #. type: textblock
36802 #: ../src/guestfs.pod:542
36803 msgid ""
36804 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36805 "returns the string C<crypto_LUKS>)."
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:545
36810 msgid ""
36811 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36812 "will require the passphrase!"
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../src/guestfs.pod:548
36817 msgid ""
36818 "Opening a LUKS device creates a new device mapper device called C</dev/"
36819 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36820 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36821 "from and encrypted to the underlying block device respectively."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:554
36826 msgid ""
36827 "LVM volume groups on the device can be made visible by calling L</"
36828 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36829 "(s) can now be mounted in the usual way."
36830 msgstr ""
36831
36832 #. type: textblock
36833 #: ../src/guestfs.pod:558
36834 msgid ""
36835 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36836 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36837 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36838 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36839 "underlying encrypted block device)."
36840 msgstr ""
36841
36842 #. type: =head2
36843 #: ../src/guestfs.pod:565
36844 msgid "INSPECTION"
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../src/guestfs.pod:567
36849 msgid ""
36850 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36851 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36852 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36853 "version 1.5.3 the most frequently used part of this library has been "
36854 "rewritten in C and moved into the core code)."
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:574
36859 msgid ""
36860 "Add all disks belonging to the unknown virtual machine and call L</"
36861 "guestfs_launch> in the usual way."
36862 msgstr ""
36863
36864 #. type: textblock
36865 #: ../src/guestfs.pod:577
36866 msgid ""
36867 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36868 "and certain heuristics, and returns a list of operating systems that were "
36869 "found.  An empty list means none were found.  A single element is the root "
36870 "filesystem of the operating system.  For dual- or multi-boot guests, "
36871 "multiple roots can be returned, each one corresponding to a separate "
36872 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36873 "world of virtualization, but since this scenario can happen, we have built "
36874 "libguestfs to deal with it.)"
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../src/guestfs.pod:586
36879 msgid ""
36880 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36881 "to get additional details about that operating system.  For example, call L</"
36882 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36883 "Windows and Linux-based operating systems respectively."
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../src/guestfs.pod:592
36888 msgid ""
36889 "Un*x-like and Linux-based operating systems usually consist of several "
36890 "filesystems which are mounted at boot time (for example, a separate boot "
36891 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36892 "filesystems correspond to mount points.  Call "
36893 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36894 "hash table like this example:"
36895 msgstr ""
36896
36897 #. type: verbatim
36898 #: ../src/guestfs.pod:599
36899 #, no-wrap
36900 msgid ""
36901 " /boot => /dev/sda1\n"
36902 " /     => /dev/vg_guest/lv_root\n"
36903 " /usr  => /dev/vg_guest/lv_usr\n"
36904 "\n"
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:603
36909 msgid ""
36910 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36911 "filesystems as suggested."
36912 msgstr ""
36913
36914 #. type: textblock
36915 #: ../src/guestfs.pod:606
36916 msgid ""
36917 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36918 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36919 msgstr ""
36920
36921 #. type: textblock
36922 #: ../src/guestfs.pod:610
36923 msgid ""
36924 "Inspection currently only works for some common operating systems.  "
36925 "Contributors are welcome to send patches for other operating systems that we "
36926 "currently cannot detect."
36927 msgstr ""
36928
36929 #. type: textblock
36930 #: ../src/guestfs.pod:614
36931 msgid ""
36932 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36933 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36934 "encrypted devices."
36935 msgstr ""
36936
36937 #. type: textblock
36938 #: ../src/guestfs.pod:618
36939 msgid ""
36940 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36941 "inspection and caches the results in the guest handle.  Subsequent calls to "
36942 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36943 "read the disks.  If you change the content of the guest disks, you can redo "
36944 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36945 "guestfs_inspect_list_applications> works a little differently from the other "
36946 "calls and does read the disks.  See documentation for that function for "
36947 "details)."
36948 msgstr ""
36949
36950 #. type: =head3
36951 #: ../src/guestfs.pod:627
36952 msgid "INSPECTING INSTALL DISKS"
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:629
36957 msgid ""
36958 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36959 "CDs and more."
36960 msgstr ""
36961
36962 #. type: textblock
36963 #: ../src/guestfs.pod:632
36964 msgid ""
36965 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36966 "system, which currently can be C<installed> (a regular operating system) or "
36967 "C<installer> (some sort of install disk)."
36968 msgstr ""
36969
36970 #. type: textblock
36971 #: ../src/guestfs.pod:636
36972 msgid ""
36973 "Further information is available about the operating system that can be "
36974 "installed using the regular inspection APIs like L</"
36975 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36976 msgstr ""
36977
36978 #. type: textblock
36979 #: ../src/guestfs.pod:641
36980 msgid ""
36981 "Some additional information specific to installer disks is also available "
36982 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36983 "guestfs_inspect_is_multipart> calls."
36984 msgstr ""
36985
36986 #. type: =head2
36987 #: ../src/guestfs.pod:646
36988 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:648
36993 msgid ""
36994 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36995 "ntfs-3g.org/> driver."
36996 msgstr ""
36997
36998 #. type: =head3
36999 #: ../src/guestfs.pod:651
37000 msgid "DRIVE LETTERS AND PATHS"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:653
37005 msgid ""
37006 "DOS and Windows still use drive letters, and the filesystems are always "
37007 "treated as case insensitive by Windows itself, and therefore you might find "
37008 "a Windows configuration file referring to a path like C<c:\\windows"
37009 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
37010 "might be referred to as C</WINDOWS/System32>."
37011 msgstr ""
37012
37013 #. type: textblock
37014 #: ../src/guestfs.pod:659
37015 msgid ""
37016 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
37017 "L</guestfs_inspect_get_drive_mappings>)"
37018 msgstr ""
37019
37020 #. type: textblock
37021 #: ../src/guestfs.pod:662
37022 msgid ""
37023 "Dealing with separator characters (backslash vs forward slash) is outside "
37024 "the scope of libguestfs, but usually a simple character replacement will "
37025 "work."
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../src/guestfs.pod:666
37030 msgid ""
37031 "To resolve the case insensitivity of paths, call L</"
37032 "guestfs_case_sensitive_path>."
37033 msgstr ""
37034
37035 #. type: =head3
37036 #: ../src/guestfs.pod:669
37037 msgid "ACCESSING THE WINDOWS REGISTRY"
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../src/guestfs.pod:671
37042 msgid ""
37043 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
37044 "files, through the library C<hivex> which is part of the libguestfs project "
37045 "although ships as a separate tarball.  You have to locate and download the "
37046 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
37047 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
37048 "reg(1)> for more help on this issue."
37049 msgstr ""
37050
37051 #. type: =head3
37052 #: ../src/guestfs.pod:679
37053 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
37054 msgstr ""
37055
37056 #. type: textblock
37057 #: ../src/guestfs.pod:681
37058 msgid ""
37059 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
37060 "provide something which looks like a Linux symlink.  The way it tries to do "
37061 "the rewriting is described here:"
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../src/guestfs.pod:685
37066 msgid ""
37067 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
37068 "symbolic-links/>"
37069 msgstr ""
37070
37071 #. type: textblock
37072 #: ../src/guestfs.pod:687
37073 msgid ""
37074 "The essential problem is that ntfs-3g simply does not have enough "
37075 "information to do a correct job.  NTFS links can contain drive letters and "
37076 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
37077 "It is almost certainly the case that libguestfs callers should ignore what "
37078 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
37079 msgstr ""
37080
37081 #. type: textblock
37082 #: ../src/guestfs.pod:694
37083 msgid ""
37084 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
37085 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
37086 "attribute, and read the raw reparse data from that (you can find the format "
37087 "documented in various places around the web)."
37088 msgstr ""
37089
37090 #. type: =head3
37091 #: ../src/guestfs.pod:699
37092 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
37093 msgstr ""
37094
37095 #. type: textblock
37096 #: ../src/guestfs.pod:701
37097 msgid ""
37098 "There are other useful extended attributes that can be read from ntfs-3g "
37099 "filesystems (using L</guestfs_getxattr>).  See:"
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../src/guestfs.pod:704
37104 msgid ""
37105 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
37106 msgstr ""
37107
37108 #. type: =head2
37109 #: ../src/guestfs.pod:706
37110 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
37111 msgstr ""
37112
37113 #. type: textblock
37114 #: ../src/guestfs.pod:708
37115 msgid ""
37116 "Although we don't want to discourage you from using the C API, we will "
37117 "mention here that the same API is also available in other languages."
37118 msgstr ""
37119
37120 #. type: textblock
37121 #: ../src/guestfs.pod:711
37122 msgid ""
37123 "The API is broadly identical in all supported languages.  This means that "
37124 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
37125 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
37126 "OCaml.  In other words, a straightforward, predictable isomorphism between "
37127 "each language."
37128 msgstr ""
37129
37130 #. type: textblock
37131 #: ../src/guestfs.pod:717
37132 msgid ""
37133 "Error messages are automatically transformed into exceptions if the language "
37134 "supports it."
37135 msgstr ""
37136
37137 #. type: textblock
37138 #: ../src/guestfs.pod:720
37139 msgid ""
37140 "We don't try to \"object orientify\" parts of the API in OO languages, "
37141 "although contributors are welcome to write higher level APIs above what we "
37142 "provide in their favourite languages if they wish."
37143 msgstr ""
37144
37145 #. type: =item
37146 #: ../src/guestfs.pod:726
37147 msgid "B<C++>"
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:728
37152 msgid ""
37153 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
37154 "identical to the C API.  C++ classes and exceptions are not used."
37155 msgstr ""
37156
37157 #. type: =item
37158 #: ../src/guestfs.pod:732
37159 msgid "B<C#>"
37160 msgstr ""
37161
37162 #. type: textblock
37163 #: ../src/guestfs.pod:734
37164 msgid ""
37165 "The C# bindings are highly experimental.  Please read the warnings at the "
37166 "top of C<csharp/Libguestfs.cs>."
37167 msgstr ""
37168
37169 #. type: =item
37170 #: ../src/guestfs.pod:737
37171 msgid "B<Erlang>"
37172 msgstr ""
37173
37174 #. type: textblock
37175 #: ../src/guestfs.pod:739
37176 msgid "See L<guestfs-erlang(3)>."
37177 msgstr ""
37178
37179 #. type: =item
37180 #: ../src/guestfs.pod:741
37181 msgid "B<Haskell>"
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:743
37186 msgid ""
37187 "This is the only language binding that is working but incomplete.  Only "
37188 "calls which return simple integers have been bound in Haskell, and we are "
37189 "looking for help to complete this binding."
37190 msgstr ""
37191
37192 #. type: =item
37193 #: ../src/guestfs.pod:747
37194 msgid "B<Java>"
37195 msgstr ""
37196
37197 #. type: textblock
37198 #: ../src/guestfs.pod:749
37199 msgid ""
37200 "Full documentation is contained in the Javadoc which is distributed with "
37201 "libguestfs.  For examples, see L<guestfs-java(3)>."
37202 msgstr ""
37203
37204 #. type: =item
37205 #: ../src/guestfs.pod:752
37206 msgid "B<OCaml>"
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:754
37211 msgid "See L<guestfs-ocaml(3)>."
37212 msgstr ""
37213
37214 #. type: =item
37215 #: ../src/guestfs.pod:756
37216 msgid "B<Perl>"
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:758
37221 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37222 msgstr ""
37223
37224 #. type: =item
37225 #: ../src/guestfs.pod:760
37226 msgid "B<PHP>"
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../src/guestfs.pod:762
37231 msgid ""
37232 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37233 "the php-libguestfs package for your distribution."
37234 msgstr ""
37235
37236 #. type: textblock
37237 #: ../src/guestfs.pod:765
37238 msgid "The PHP binding only works correctly on 64 bit machines."
37239 msgstr ""
37240
37241 #. type: =item
37242 #: ../src/guestfs.pod:767
37243 msgid "B<Python>"
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:769
37248 msgid "See L<guestfs-python(3)>."
37249 msgstr ""
37250
37251 #. type: =item
37252 #: ../src/guestfs.pod:771
37253 msgid "B<Ruby>"
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../src/guestfs.pod:773
37258 msgid "See L<guestfs-ruby(3)>."
37259 msgstr ""
37260
37261 #. type: =item
37262 #: ../src/guestfs.pod:775
37263 msgid "B<shell scripts>"
37264 msgstr ""
37265
37266 #. type: textblock
37267 #: ../src/guestfs.pod:777
37268 msgid "See L<guestfish(1)>."
37269 msgstr ""
37270
37271 #. type: =head2
37272 #: ../src/guestfs.pod:781
37273 msgid "LIBGUESTFS GOTCHAS"
37274 msgstr ""
37275
37276 #. type: textblock
37277 #: ../src/guestfs.pod:783
37278 msgid ""
37279 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37280 "system [...] that works in the way it is documented but is counterintuitive "
37281 "and almost invites mistakes.\""
37282 msgstr ""
37283
37284 #. type: textblock
37285 #: ../src/guestfs.pod:787
37286 msgid ""
37287 "Since we developed libguestfs and the associated tools, there are several "
37288 "things we would have designed differently, but are now stuck with for "
37289 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37290 "release, you can expect these to change.  Beware of them."
37291 msgstr ""
37292
37293 #. type: =item
37294 #: ../src/guestfs.pod:795
37295 msgid "Autosync / forgetting to sync."
37296 msgstr ""
37297
37298 #. type: textblock
37299 #: ../src/guestfs.pod:797
37300 msgid ""
37301 "I<Update:> Autosync is enabled by default for all API users starting from "
37302 "libguestfs 1.5.24.  This section only applies to older versions."
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../src/guestfs.pod:800
37307 msgid ""
37308 "When modifying a filesystem from C or another language, you B<must> unmount "
37309 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37310 "libguestfs handle.  You can also call:"
37311 msgstr ""
37312
37313 #. type: verbatim
37314 #: ../src/guestfs.pod:804
37315 #, no-wrap
37316 msgid ""
37317 " guestfs_set_autosync (g, 1);\n"
37318 "\n"
37319 msgstr ""
37320
37321 #. type: textblock
37322 #: ../src/guestfs.pod:806
37323 msgid ""
37324 "to have the unmount/sync done automatically for you when the handle 'g' is "
37325 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37326 msgstr ""
37327
37328 #. type: textblock
37329 #: ../src/guestfs.pod:810
37330 msgid ""
37331 "If you forget to do this, then it is entirely possible that your changes "
37332 "won't be written out, or will be partially written, or (very rarely) that "
37333 "you'll get disk corruption."
37334 msgstr ""
37335
37336 #. type: textblock
37337 #: ../src/guestfs.pod:814
37338 msgid ""
37339 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37340 "guestfish scripts that forget to sync will work just fine, which can make "
37341 "this very puzzling if you are trying to debug a problem."
37342 msgstr ""
37343
37344 #. type: =item
37345 #: ../src/guestfs.pod:818
37346 msgid "Mount option C<-o sync> should not be the default."
37347 msgstr ""
37348
37349 #. type: textblock
37350 #: ../src/guestfs.pod:820
37351 msgid ""
37352 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37353 "libguestfs 1.13.16.  This section only applies to older versions."
37354 msgstr ""
37355
37356 #. type: textblock
37357 #: ../src/guestfs.pod:823
37358 msgid ""
37359 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37360 "However C<-o sync> does not add any reliability benefit, but does have a "
37361 "very large performance impact."
37362 msgstr ""
37363
37364 #. type: textblock
37365 #: ../src/guestfs.pod:827
37366 msgid ""
37367 "The work around is to use L</guestfs_mount_options> and set the mount "
37368 "options that you actually want to use."
37369 msgstr ""
37370
37371 #. type: =item
37372 #: ../src/guestfs.pod:830
37373 msgid "Read-only should be the default."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:832
37378 msgid ""
37379 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37380 "specify I<--rw> if you want to make changes to the image."
37381 msgstr ""
37382
37383 #. type: textblock
37384 #: ../src/guestfs.pod:835
37385 msgid "This would reduce the potential to corrupt live VM images."
37386 msgstr ""
37387
37388 #. type: textblock
37389 #: ../src/guestfs.pod:837
37390 msgid ""
37391 "Note that many filesystems change the disk when you just mount and unmount, "
37392 "even if you didn't perform any writes.  You need to use L</"
37393 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37394 msgstr ""
37395
37396 #. type: =item
37397 #: ../src/guestfs.pod:841
37398 msgid "guestfish command line is hard to use."
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../src/guestfs.pod:843
37403 msgid ""
37404 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37405 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37406 "exist, so it fails.  In earlier versions of guestfish the error message was "
37407 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37408 "we should have used C<guestfish -c command> to run commands."
37409 msgstr ""
37410
37411 #. type: =item
37412 #: ../src/guestfs.pod:850
37413 msgid "guestfish megabyte modifiers don't work right on all commands"
37414 msgstr ""
37415
37416 #. type: textblock
37417 #: ../src/guestfs.pod:852
37418 msgid ""
37419 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37420 "other modifiers).  What guestfish actually does is to multiply the number "
37421 "part by the modifier part and pass the result to the C API.  However this "
37422 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37423 "expecting some other unit (eg. megabytes)."
37424 msgstr ""
37425
37426 #. type: textblock
37427 #: ../src/guestfs.pod:859
37428 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37429 msgstr ""
37430
37431 #. type: verbatim
37432 #: ../src/guestfs.pod:861
37433 #, no-wrap
37434 msgid ""
37435 " lvcreate LV VG 100M\n"
37436 "\n"
37437 msgstr ""
37438
37439 #. type: textblock
37440 #: ../src/guestfs.pod:863
37441 msgid ""
37442 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37443 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37444 "megabytes * megabytes) logical volume.  The error message you get from this "
37445 "is also a little obscure."
37446 msgstr ""
37447
37448 #. type: textblock
37449 #: ../src/guestfs.pod:868
37450 msgid ""
37451 "This could be fixed in the generator by specially marking parameters and "
37452 "return values which take bytes or other units."
37453 msgstr ""
37454
37455 #. type: =item
37456 #: ../src/guestfs.pod:871
37457 msgid "Ambiguity between devices and paths"
37458 msgstr ""
37459
37460 #. type: textblock
37461 #: ../src/guestfs.pod:873
37462 msgid ""
37463 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37464 "sdb2>) and a similar pathname.  A file might just happen to be called "
37465 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:878
37470 msgid ""
37471 "In the current API we usually resolve this ambiguity by having two separate "
37472 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37473 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37474 "detecting if the path supplied begins with C</dev/>."
37475 msgstr ""
37476
37477 #. type: textblock
37478 #: ../src/guestfs.pod:884
37479 msgid ""
37480 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37481 "make paths/devices into structured names.  One way to do this would be to "
37482 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37483 "aspect of grub.  Another way would be to use a structured type, equivalent "
37484 "to this OCaml type:"
37485 msgstr ""
37486
37487 #. type: verbatim
37488 #: ../src/guestfs.pod:890
37489 #, no-wrap
37490 msgid ""
37491 " type path = Path of string | Device of int | Partition of int * int\n"
37492 "\n"
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../src/guestfs.pod:892
37497 msgid "which would allow you to pass arguments like:"
37498 msgstr ""
37499
37500 #. type: verbatim
37501 #: ../src/guestfs.pod:894
37502 #, no-wrap
37503 msgid ""
37504 " Path \"/foo/bar\"\n"
37505 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37506 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37507 " Path \"/dev/sdb2\"    (* not a device *)\n"
37508 "\n"
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../src/guestfs.pod:899
37513 msgid ""
37514 "As you can see there are still problems to resolve even with this "
37515 "representation.  Also consider how it might work in guestfish."
37516 msgstr ""
37517
37518 #. type: =head2
37519 #: ../src/guestfs.pod:904
37520 msgid "KEYS AND PASSPHRASES"
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:906
37525 msgid ""
37526 "Certain libguestfs calls take a parameter that contains sensitive key "
37527 "material, passed in as a C string."
37528 msgstr ""
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:909
37532 msgid ""
37533 "In the future we would hope to change the libguestfs implementation so that "
37534 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37535 "swap.  However this is I<not> done at the moment, because of the complexity "
37536 "of such an implementation."
37537 msgstr ""
37538
37539 #. type: textblock
37540 #: ../src/guestfs.pod:914
37541 msgid ""
37542 "Therefore you should be aware that any key parameter you pass to libguestfs "
37543 "might end up being written out to the swap partition.  If this is a concern, "
37544 "scrub the swap partition or don't use libguestfs on encrypted devices."
37545 msgstr ""
37546
37547 #. type: =head2
37548 #: ../src/guestfs.pod:919
37549 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37550 msgstr ""
37551
37552 #. type: textblock
37553 #: ../src/guestfs.pod:921
37554 msgid ""
37555 "All high-level libguestfs actions are synchronous.  If you want to use "
37556 "libguestfs asynchronously then you must create a thread."
37557 msgstr ""
37558
37559 #. type: textblock
37560 #: ../src/guestfs.pod:924
37561 msgid ""
37562 "Only use the handle from a single thread.  Either use the handle exclusively "
37563 "from one thread, or provide your own mutex so that two threads cannot issue "
37564 "calls on the same handle at the same time."
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:928
37569 msgid ""
37570 "See the graphical program guestfs-browser for one possible architecture for "
37571 "multithreaded programs using libvirt and libguestfs."
37572 msgstr ""
37573
37574 #. type: =head2
37575 #: ../src/guestfs.pod:931
37576 msgid "PATH"
37577 msgstr ""
37578
37579 #. type: textblock
37580 #: ../src/guestfs.pod:933
37581 msgid ""
37582 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37583 "internal path."
37584 msgstr ""
37585
37586 #. type: textblock
37587 #: ../src/guestfs.pod:936
37588 msgid ""
37589 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37590 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37591 msgstr ""
37592
37593 #. type: textblock
37594 #: ../src/guestfs.pod:939
37595 msgid ""
37596 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37597 "to change the directories that libguestfs will search in.  The value is a "
37598 "colon-separated list of paths.  The current directory is I<not> searched "
37599 "unless the path contains an empty element or C<.>.  For example "
37600 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37601 "then C</usr/lib/guestfs>."
37602 msgstr ""
37603
37604 #. type: =head2
37605 #: ../src/guestfs.pod:946
37606 msgid "QEMU WRAPPERS"
37607 msgstr ""
37608
37609 #. type: textblock
37610 #: ../src/guestfs.pod:948
37611 msgid ""
37612 "If you want to compile your own qemu, run qemu from a non-standard location, "
37613 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37614 "around qemu."
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../src/guestfs.pod:952
37619 msgid ""
37620 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37621 "last command in the shell script (so that qemu replaces the shell and "
37622 "becomes the direct child of the libguestfs-using program).  If you don't do "
37623 "this, then the qemu process won't be cleaned up correctly."
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:957
37628 msgid ""
37629 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37630 "source:"
37631 msgstr ""
37632
37633 #. type: verbatim
37634 #: ../src/guestfs.pod:960
37635 #, no-wrap
37636 msgid ""
37637 " #!/bin/sh -\n"
37638 " qemudir=/home/rjones/d/qemu\n"
37639 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37640 "\n"
37641 msgstr ""
37642
37643 #. type: textblock
37644 #: ../src/guestfs.pod:964
37645 msgid ""
37646 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37647 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37648 "example:"
37649 msgstr ""
37650
37651 #. type: verbatim
37652 #: ../src/guestfs.pod:968
37653 #, no-wrap
37654 msgid ""
37655 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37656 "\n"
37657 msgstr ""
37658
37659 #. type: textblock
37660 #: ../src/guestfs.pod:970
37661 msgid ""
37662 "Note that libguestfs also calls qemu with the -help and -version options in "
37663 "order to determine features."
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:973
37668 msgid ""
37669 "Wrappers can also be used to edit the options passed to qemu.  In the "
37670 "following example, the C<-machine ...> option (C<-machine> and the following "
37671 "argument) are removed from the command line and replaced with C<-machine pc,"
37672 "accel=tcg>.  The while loop iterates over the options until it finds the "
37673 "right one to remove, putting the remaining options into the C<args> array."
37674 msgstr ""
37675
37676 #. type: verbatim
37677 #: ../src/guestfs.pod:982
37678 #, no-wrap
37679 msgid ""
37680 " i=0\n"
37681 " while [ $# -gt 0 ]; do\n"
37682 "     case \"$1\" in\n"
37683 "     -machine)\n"
37684 "         shift 2;;\n"
37685 "     *)\n"
37686 "         args[i]=\"$1\"\n"
37687 "         (( i++ ))\n"
37688 "         shift ;;\n"
37689 "     esac\n"
37690 " done\n"
37691 " \n"
37692 msgstr ""
37693
37694 #. type: verbatim
37695 #: ../src/guestfs.pod:994
37696 #, no-wrap
37697 msgid ""
37698 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37699 "\n"
37700 msgstr ""
37701
37702 #. type: =head2
37703 #: ../src/guestfs.pod:996
37704 msgid "ATTACHING TO RUNNING DAEMONS"
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:998
37709 msgid ""
37710 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37711 "babies.  Use with caution."
37712 msgstr ""
37713
37714 #. type: textblock
37715 #: ../src/guestfs.pod:1001
37716 msgid ""
37717 "I<Note (2):> This section explains how to attach to a running daemon from a "
37718 "low level perspective.  For most users, simply using virt tools such as "
37719 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37720 msgstr ""
37721
37722 #. type: =head3
37723 #: ../src/guestfs.pod:1005
37724 msgid "Using guestfs_set_attach_method"
37725 msgstr ""
37726
37727 #. type: textblock
37728 #: ../src/guestfs.pod:1007
37729 msgid ""
37730 "By calling L</guestfs_set_attach_method> you can change how the library "
37731 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37732 "ARCHITECTURE> for some background)."
37733 msgstr ""
37734
37735 #. type: textblock
37736 #: ../src/guestfs.pod:1011
37737 msgid ""
37738 "The normal attach method is C<appliance>, where a small appliance is created "
37739 "containing the daemon, and then the library connects to this."
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:1014
37744 msgid ""
37745 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37746 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37747 "daemon over the Unix domain socket."
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:1018
37752 msgid ""
37753 "The normal use for this is to connect to a running virtual machine that "
37754 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37755 "files inside the live virtual machine."
37756 msgstr ""
37757
37758 #. type: =head3
37759 #: ../src/guestfs.pod:1022
37760 msgid "Using guestfs_add_domain with live flag"
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:1024
37765 msgid ""
37766 "L</guestfs_add_domain> provides some help for getting the correct attach "
37767 "method.  If you pass the C<live> option to this function, then (if the "
37768 "virtual machine is running) it will examine the libvirt XML looking for a "
37769 "virtio-serial channel to connect to:"
37770 msgstr ""
37771
37772 #. type: verbatim
37773 #: ../src/guestfs.pod:1030
37774 #, no-wrap
37775 msgid ""
37776 " <domain>\n"
37777 "   ...\n"
37778 "   <devices>\n"
37779 "     ...\n"
37780 "     <channel type='unix'>\n"
37781 "       <source mode='bind' path='/path/to/socket'/>\n"
37782 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37783 "     </channel>\n"
37784 "     ...\n"
37785 "   </devices>\n"
37786 " </domain>\n"
37787 "\n"
37788 msgstr ""
37789
37790 #. type: textblock
37791 #: ../src/guestfs.pod:1042
37792 msgid ""
37793 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37794 "method to C<unix:/path/to/socket>."
37795 msgstr ""
37796
37797 #. type: textblock
37798 #: ../src/guestfs.pod:1045
37799 msgid ""
37800 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37801 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37802 "to attach to and modify live virtual machines."
37803 msgstr ""
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:1049
37807 msgid ""
37808 "The virtual machine needs to have been set up beforehand so that it has the "
37809 "virtio-serial channel and so that guestfsd is running inside it."
37810 msgstr ""
37811
37812 #. type: =head2
37813 #: ../src/guestfs.pod:1053
37814 msgid "ABI GUARANTEE"
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:1055
37819 msgid ""
37820 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37821 "actions as outlined in this section.  Although we will deprecate some "
37822 "actions, for example if they get replaced by newer calls, we will keep the "
37823 "old actions forever.  This allows you the developer to program in confidence "
37824 "against the libguestfs API."
37825 msgstr ""
37826
37827 #. type: =head2
37828 #: ../src/guestfs.pod:1061
37829 msgid "BLOCK DEVICE NAMING"
37830 msgstr ""
37831
37832 #. type: textblock
37833 #: ../src/guestfs.pod:1063
37834 msgid ""
37835 "In the kernel there is now quite a profusion of schemata for naming block "
37836 "devices (in this context, by I<block device> I mean a physical or virtual "
37837 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37838 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37839 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37840 "for the old IDE driver (particularly for SATA devices) those devices also "
37841 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37842 "paravirtualized drivers.  This has created several different naming systems, "
37843 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:1075
37848 msgid ""
37849 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37850 "Linux kernel to access block devices.  We can run a variety of appliances "
37851 "based on a variety of Linux kernels."
37852 msgstr ""
37853
37854 #. type: textblock
37855 #: ../src/guestfs.pod:1079
37856 msgid ""
37857 "This causes a problem for libguestfs because many API calls use device or "
37858 "partition names.  Working scripts and the recipe (example) scripts that we "
37859 "make available over the internet could fail if the naming scheme changes."
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:1084
37864 msgid ""
37865 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37866 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37867 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37868 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37869 msgstr ""
37870
37871 #. type: textblock
37872 #: ../src/guestfs.pod:1090
37873 msgid ""
37874 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37875 "L</guestfs_list_partitions> and similar calls return the true names of the "
37876 "devices and partitions as known to the appliance."
37877 msgstr ""
37878
37879 #. type: =head3
37880 #: ../src/guestfs.pod:1095
37881 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37882 msgstr ""
37883
37884 #. type: textblock
37885 #: ../src/guestfs.pod:1097
37886 msgid ""
37887 "Usually this translation is transparent.  However in some (very rare)  cases "
37888 "you may need to know the exact algorithm.  Such cases include where you use "
37889 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37890 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:1103
37895 msgid ""
37896 "The algorithm is applied only to I<parameters> which are known to be either "
37897 "device or partition names.  Return values from functions such as L</"
37898 "guestfs_list_devices> are never changed."
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../src/guestfs.pod:1111
37903 msgid "Is the string a parameter which is a device or partition name?"
37904 msgstr ""
37905
37906 #. type: textblock
37907 #: ../src/guestfs.pod:1115
37908 msgid "Does the string begin with C</dev/sd>?"
37909 msgstr ""
37910
37911 #. type: textblock
37912 #: ../src/guestfs.pod:1119
37913 msgid ""
37914 "Does the named device exist? If so, we use that device.  However if I<not> "
37915 "then we continue with this algorithm."
37916 msgstr ""
37917
37918 #. type: textblock
37919 #: ../src/guestfs.pod:1124
37920 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../src/guestfs.pod:1126
37925 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37926 msgstr ""
37927
37928 #. type: textblock
37929 #: ../src/guestfs.pod:1128
37930 msgid "If that named device exists, use it.  If not, continue."
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../src/guestfs.pod:1132
37935 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37936 msgstr ""
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:1134
37940 msgid "If that named device exists, use it.  If not, return an error."
37941 msgstr ""
37942
37943 #. type: =head3
37944 #: ../src/guestfs.pod:1138
37945 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../src/guestfs.pod:1140
37950 msgid ""
37951 "Although the standard naming scheme and automatic translation is useful for "
37952 "simple programs and guestfish scripts, for larger programs it is best not to "
37953 "rely on this mechanism."
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../src/guestfs.pod:1144
37958 msgid ""
37959 "Where possible for maximum future portability programs using libguestfs "
37960 "should use these future-proof techniques:"
37961 msgstr ""
37962
37963 #. type: textblock
37964 #: ../src/guestfs.pod:1151
37965 msgid ""
37966 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37967 "device names, and then use those names directly."
37968 msgstr ""
37969
37970 #. type: textblock
37971 #: ../src/guestfs.pod:1154
37972 msgid ""
37973 "Since those device names exist by definition, they will never be translated."
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../src/guestfs.pod:1159
37978 msgid ""
37979 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37980 "filesystem labels."
37981 msgstr ""
37982
37983 #. type: textblock
37984 #: ../src/guestfs.pod:1166
37985 msgid ""
37986 "This section discusses security implications of using libguestfs, "
37987 "particularly with untrusted or malicious guests or disk images."
37988 msgstr ""
37989
37990 #. type: =head2
37991 #: ../src/guestfs.pod:1169
37992 msgid "GENERAL SECURITY CONSIDERATIONS"
37993 msgstr ""
37994
37995 #. type: textblock
37996 #: ../src/guestfs.pod:1171
37997 msgid ""
37998 "Be careful with any files or data that you download from a guest (by "
37999 "\"download\" we mean not just the L</guestfs_download> command but any "
38000 "command that reads files, filenames, directories or anything else from a "
38001 "disk image).  An attacker could manipulate the data to fool your program "
38002 "into doing the wrong thing.  Consider cases such as:"
38003 msgstr ""
38004
38005 #. type: textblock
38006 #: ../src/guestfs.pod:1181
38007 msgid "the data (file etc) not being present"
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:1185
38012 msgid "being present but empty"
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:1189
38017 msgid "being much larger than normal"
38018 msgstr ""
38019
38020 #. type: textblock
38021 #: ../src/guestfs.pod:1193
38022 msgid "containing arbitrary 8 bit data"
38023 msgstr ""
38024
38025 #. type: textblock
38026 #: ../src/guestfs.pod:1197
38027 msgid "being in an unexpected character encoding"
38028 msgstr ""
38029
38030 #. type: textblock
38031 #: ../src/guestfs.pod:1201
38032 msgid "containing homoglyphs."
38033 msgstr ""
38034
38035 #. type: =head2
38036 #: ../src/guestfs.pod:1205
38037 msgid "SECURITY OF MOUNTING FILESYSTEMS"
38038 msgstr ""
38039
38040 #. type: textblock
38041 #: ../src/guestfs.pod:1207
38042 msgid ""
38043 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
38044 "(VFS) module can sometimes be escalated into exploits by deliberately "
38045 "creating a malicious, malformed filesystem.  These exploits are very severe "
38046 "for two reasons.  Firstly there are very many filesystem drivers in the "
38047 "kernel, and many of them are infrequently used and not much developer "
38048 "attention has been paid to the code.  Linux userspace helps potential "
38049 "crackers by detecting the filesystem type and automatically choosing the "
38050 "right VFS driver, even if that filesystem type is obscure or unexpected for "
38051 "the administrator.  Secondly, a kernel-level exploit is like a local root "
38052 "exploit (worse in some ways), giving immediate and total access to the "
38053 "system right down to the hardware level."
38054 msgstr ""
38055
38056 #. type: textblock
38057 #: ../src/guestfs.pod:1220
38058 msgid ""
38059 "That explains why you should never mount a filesystem from an untrusted "
38060 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
38061 "inside a qemu virtual machine, usually running as a non-root user.  The "
38062 "attacker would need to write a filesystem which first exploited the kernel, "
38063 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
38064 "the libguestfs protocol, and finally to be as serious as the host kernel "
38065 "exploit it would need to escalate its privileges to root.  This multi-step "
38066 "escalation, performed by a static piece of data, is thought to be extremely "
38067 "hard to do, although we never say 'never' about security issues."
38068 msgstr ""
38069
38070 #. type: textblock
38071 #: ../src/guestfs.pod:1231
38072 msgid ""
38073 "In any case callers can reduce the attack surface by forcing the filesystem "
38074 "type when mounting (use L</guestfs_mount_vfs>)."
38075 msgstr ""
38076
38077 #. type: =head2
38078 #: ../src/guestfs.pod:1234
38079 msgid "PROTOCOL SECURITY"
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:1236
38084 msgid ""
38085 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
38086 "defined upper message size.  However a program that uses libguestfs must "
38087 "also take care - for example you can write a program that downloads a binary "
38088 "from a disk image and executes it locally, and no amount of protocol "
38089 "security will save you from the consequences."
38090 msgstr ""
38091
38092 #. type: =head2
38093 #: ../src/guestfs.pod:1242
38094 msgid "INSPECTION SECURITY"
38095 msgstr ""
38096
38097 #. type: textblock
38098 #: ../src/guestfs.pod:1244
38099 msgid ""
38100 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
38101 "directly from the guest, and these could contain any 8 bit data.  Callers "
38102 "should be careful to escape these before printing them to a structured file "
38103 "(for example, use HTML escaping if creating a web page)."
38104 msgstr ""
38105
38106 #. type: textblock
38107 #: ../src/guestfs.pod:1250
38108 msgid ""
38109 "Guest configuration may be altered in unusual ways by the administrator of "
38110 "the virtual machine, and may not reflect reality (particularly for untrusted "
38111 "or actively malicious guests).  For example we parse the hostname from "
38112 "configuration files like C</etc/sysconfig/network> that we find in the "
38113 "guest, but the guest administrator can easily manipulate these files to "
38114 "provide the wrong hostname."
38115 msgstr ""
38116
38117 #. type: textblock
38118 #: ../src/guestfs.pod:1258
38119 msgid ""
38120 "The inspection API parses guest configuration using two external libraries: "
38121 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
38122 "designed to be robust in the face of malicious data, although denial of "
38123 "service attacks are still possible, for example with oversized configuration "
38124 "files."
38125 msgstr ""
38126
38127 #. type: =head2
38128 #: ../src/guestfs.pod:1264
38129 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:1266
38134 msgid ""
38135 "Be very cautious about running commands from the guest.  By running a "
38136 "command in the guest, you are giving CPU time to a binary that you do not "
38137 "control, under the same user account as the library, albeit wrapped in qemu "
38138 "virtualization.  More information and alternatives can be found in the "
38139 "section L</RUNNING COMMANDS>."
38140 msgstr ""
38141
38142 #. type: =head2
38143 #: ../src/guestfs.pod:1272
38144 msgid "CVE-2010-3851"
38145 msgstr ""
38146
38147 #. type: textblock
38148 #: ../src/guestfs.pod:1274
38149 msgid "https://bugzilla.redhat.com/642934"
38150 msgstr ""
38151
38152 #. type: textblock
38153 #: ../src/guestfs.pod:1276
38154 msgid ""
38155 "This security bug concerns the automatic disk format detection that qemu "
38156 "does on disk images."
38157 msgstr ""
38158
38159 #. type: textblock
38160 #: ../src/guestfs.pod:1279
38161 msgid ""
38162 "A raw disk image is just the raw bytes, there is no header.  Other disk "
38163 "images like qcow2 contain a special header.  Qemu deals with this by looking "
38164 "for one of the known headers, and if none is found then assuming the disk "
38165 "image must be raw."
38166 msgstr ""
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:1284
38170 msgid ""
38171 "This allows a guest which has been given a raw disk image to write some "
38172 "other header.  At next boot (or when the disk image is accessed by "
38173 "libguestfs) qemu would do autodetection and think the disk image format was, "
38174 "say, qcow2 based on the header written by the guest."
38175 msgstr ""
38176
38177 #. type: textblock
38178 #: ../src/guestfs.pod:1289
38179 msgid ""
38180 "This in itself would not be a problem, but qcow2 offers many features, one "
38181 "of which is to allow a disk image to refer to another image (called the "
38182 "\"backing disk\").  It does this by placing the path to the backing disk "
38183 "into the qcow2 header.  This path is not validated and could point to any "
38184 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
38185 "\"holes\" in the qcow2 disk image, which of course is completely under the "
38186 "control of the attacker."
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:1297
38191 msgid ""
38192 "In libguestfs this is rather hard to exploit except under two circumstances:"
38193 msgstr ""
38194
38195 #. type: textblock
38196 #: ../src/guestfs.pod:1304
38197 msgid "You have enabled the network or have opened the disk in write mode."
38198 msgstr ""
38199
38200 #. type: textblock
38201 #: ../src/guestfs.pod:1308
38202 msgid ""
38203 "You are also running untrusted code from the guest (see L</RUNNING "
38204 "COMMANDS>)."
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../src/guestfs.pod:1313
38209 msgid ""
38210 "The way to avoid this is to specify the expected disk format when adding "
38211 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38212 "should always do this if the disk is raw format, and it's a good idea for "
38213 "other cases too."
38214 msgstr ""
38215
38216 #. type: textblock
38217 #: ../src/guestfs.pod:1318
38218 msgid ""
38219 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38220 "format is fetched from libvirt and passed through."
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../src/guestfs.pod:1321
38225 msgid ""
38226 "For libguestfs tools, use the I<--format> command line parameter as "
38227 "appropriate."
38228 msgstr ""
38229
38230 #. type: =head1
38231 #: ../src/guestfs.pod:1324
38232 msgid "CONNECTION MANAGEMENT"
38233 msgstr ""
38234
38235 #. type: =head2
38236 #: ../src/guestfs.pod:1326
38237 msgid "guestfs_h *"
38238 msgstr ""
38239
38240 #. type: textblock
38241 #: ../src/guestfs.pod:1328
38242 msgid ""
38243 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38244 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38245 "handle and release all resources used."
38246 msgstr ""
38247
38248 #. type: textblock
38249 #: ../src/guestfs.pod:1332
38250 msgid ""
38251 "For information on using multiple handles and threads, see the section L</"
38252 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38253 msgstr ""
38254
38255 #. type: =head2
38256 #: ../src/guestfs.pod:1335
38257 msgid "guestfs_create"
38258 msgstr ""
38259
38260 #. type: verbatim
38261 #: ../src/guestfs.pod:1337
38262 #, no-wrap
38263 msgid ""
38264 " guestfs_h *guestfs_create (void);\n"
38265 "\n"
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../src/guestfs.pod:1339
38270 msgid "Create a connection handle."
38271 msgstr ""
38272
38273 #. type: textblock
38274 #: ../src/guestfs.pod:1341
38275 msgid ""
38276 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38277 "NULL."
38278 msgstr ""
38279
38280 #. type: textblock
38281 #: ../src/guestfs.pod:1344
38282 msgid ""
38283 "You have to \"configure\" the handle after creating it.  This includes "
38284 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38285 "handle at least once."
38286 msgstr ""
38287
38288 #. type: textblock
38289 #: ../src/guestfs.pod:1348
38290 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38291 msgstr ""
38292
38293 #. type: textblock
38294 #: ../src/guestfs.pod:1350
38295 msgid ""
38296 "You may also want to configure error handling for the handle.  See the L</"
38297 "ERROR HANDLING> section below."
38298 msgstr ""
38299
38300 #. type: =head2
38301 #: ../src/guestfs.pod:1353
38302 msgid "guestfs_close"
38303 msgstr ""
38304
38305 #. type: verbatim
38306 #: ../src/guestfs.pod:1355
38307 #, no-wrap
38308 msgid ""
38309 " void guestfs_close (guestfs_h *g);\n"
38310 "\n"
38311 msgstr ""
38312
38313 #. type: textblock
38314 #: ../src/guestfs.pod:1357
38315 msgid "This closes the connection handle and frees up all resources used."
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:1359
38320 msgid ""
38321 "If autosync was set on the handle and the handle was launched, then this "
38322 "implicitly calls various functions to unmount filesystems and sync the "
38323 "disk.  See L</guestfs_set_autosync> for more details."
38324 msgstr ""
38325
38326 #. type: textblock
38327 #: ../src/guestfs.pod:1363
38328 msgid "If a close callback was set on the handle, then it is called."
38329 msgstr ""
38330
38331 #. type: =head1
38332 #: ../src/guestfs.pod:1365
38333 msgid "ERROR HANDLING"
38334 msgstr ""
38335
38336 #. type: textblock
38337 #: ../src/guestfs.pod:1367
38338 msgid ""
38339 "API functions can return errors.  For example, almost all functions that "
38340 "return C<int> will return C<-1> to indicate an error."
38341 msgstr ""
38342
38343 #. type: textblock
38344 #: ../src/guestfs.pod:1370
38345 msgid ""
38346 "Additional information is available for errors: an error message string and "
38347 "optionally an error number (errno) if the thing that failed was a system "
38348 "call."
38349 msgstr ""
38350
38351 #. type: textblock
38352 #: ../src/guestfs.pod:1374
38353 msgid ""
38354 "You can get at the additional information about the last error on the handle "
38355 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38356 "up an error handler with L</guestfs_set_error_handler>."
38357 msgstr ""
38358
38359 #. type: textblock
38360 #: ../src/guestfs.pod:1379
38361 msgid ""
38362 "When the handle is created, a default error handler is installed which "
38363 "prints the error message string to C<stderr>.  For small short-running "
38364 "command line programs it is sufficient to do:"
38365 msgstr ""
38366
38367 #. type: verbatim
38368 #: ../src/guestfs.pod:1383
38369 #, no-wrap
38370 msgid ""
38371 " if (guestfs_launch (g) == -1)\n"
38372 "   exit (EXIT_FAILURE);\n"
38373 "\n"
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../src/guestfs.pod:1386
38378 msgid ""
38379 "since the default error handler will ensure that an error message has been "
38380 "printed to C<stderr> before the program exits."
38381 msgstr ""
38382
38383 #. type: textblock
38384 #: ../src/guestfs.pod:1389
38385 msgid ""
38386 "For other programs the caller will almost certainly want to install an "
38387 "alternate error handler or do error handling in-line like this:"
38388 msgstr ""
38389
38390 #. type: verbatim
38391 #: ../src/guestfs.pod:1392
38392 #, no-wrap
38393 msgid ""
38394 " /* This disables the default behaviour of printing errors\n"
38395 "    on stderr. */\n"
38396 " guestfs_set_error_handler (g, NULL, NULL);\n"
38397 " \n"
38398 msgstr ""
38399
38400 #. type: verbatim
38401 #: ../src/guestfs.pod:1396
38402 #, no-wrap
38403 msgid ""
38404 " if (guestfs_launch (g) == -1) {\n"
38405 "   /* Examine the error message and print it etc. */\n"
38406 "   char *msg = guestfs_last_error (g);\n"
38407 "   int errnum = guestfs_last_errno (g);\n"
38408 "   fprintf (stderr, \"%s\", msg);\n"
38409 "   if (errnum != 0)\n"
38410 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38411 "   fprintf (stderr, \"\\n\");\n"
38412 "   /* ... */\n"
38413 " }\n"
38414 "\n"
38415 msgstr ""
38416
38417 #. type: textblock
38418 #: ../src/guestfs.pod:1407
38419 msgid ""
38420 "Out of memory errors are handled differently.  The default action is to call "
38421 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38422 "guestfs_set_out_of_memory_handler>."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../src/guestfs.pod:1411
38427 msgid ""
38428 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38429 "because there is no handle if this happens there is no way to get additional "
38430 "error information.  However L</guestfs_create> is supposed to be a "
38431 "lightweight operation which can only fail because of insufficient memory (it "
38432 "returns NULL in this case)."
38433 msgstr ""
38434
38435 #. type: =head2
38436 #: ../src/guestfs.pod:1417
38437 msgid "guestfs_last_error"
38438 msgstr ""
38439
38440 #. type: verbatim
38441 #: ../src/guestfs.pod:1419
38442 #, no-wrap
38443 msgid ""
38444 " const char *guestfs_last_error (guestfs_h *g);\n"
38445 "\n"
38446 msgstr ""
38447
38448 #. type: textblock
38449 #: ../src/guestfs.pod:1421
38450 msgid ""
38451 "This returns the last error message that happened on C<g>.  If there has not "
38452 "been an error since the handle was created, then this returns C<NULL>."
38453 msgstr ""
38454
38455 #. type: textblock
38456 #: ../src/guestfs.pod:1425
38457 msgid ""
38458 "The lifetime of the returned string is until the next error occurs, or L</"
38459 "guestfs_close> is called."
38460 msgstr ""
38461
38462 #. type: =head2
38463 #: ../src/guestfs.pod:1428
38464 msgid "guestfs_last_errno"
38465 msgstr ""
38466
38467 #. type: verbatim
38468 #: ../src/guestfs.pod:1430
38469 #, no-wrap
38470 msgid ""
38471 " int guestfs_last_errno (guestfs_h *g);\n"
38472 "\n"
38473 msgstr ""
38474
38475 #. type: textblock
38476 #: ../src/guestfs.pod:1432
38477 msgid "This returns the last error number (errno) that happened on C<g>."
38478 msgstr ""
38479
38480 #. type: textblock
38481 #: ../src/guestfs.pod:1434
38482 msgid "If successful, an errno integer not equal to zero is returned."
38483 msgstr ""
38484
38485 #. type: textblock
38486 #: ../src/guestfs.pod:1436
38487 msgid ""
38488 "If no error, this returns 0.  This call can return 0 in three situations:"
38489 msgstr ""
38490
38491 #. type: textblock
38492 #: ../src/guestfs.pod:1443
38493 msgid "There has not been any error on the handle."
38494 msgstr ""
38495
38496 #. type: textblock
38497 #: ../src/guestfs.pod:1447
38498 msgid ""
38499 "There has been an error but the errno was meaningless.  This corresponds to "
38500 "the case where the error did not come from a failed system call, but for "
38501 "some other reason."
38502 msgstr ""
38503
38504 #. type: textblock
38505 #: ../src/guestfs.pod:1453
38506 msgid ""
38507 "There was an error from a failed system call, but for some reason the errno "
38508 "was not captured and returned.  This usually indicates a bug in libguestfs."
38509 msgstr ""
38510
38511 #. type: textblock
38512 #: ../src/guestfs.pod:1459
38513 msgid ""
38514 "Libguestfs tries to convert the errno from inside the applicance into a "
38515 "corresponding errno for the caller (not entirely trivial: the appliance "
38516 "might be running a completely different operating system from the library "
38517 "and error numbers are not standardized across Un*xen).  If this could not be "
38518 "done, then the error is translated to C<EINVAL>.  In practice this should "
38519 "only happen in very rare circumstances."
38520 msgstr ""
38521
38522 #. type: =head2
38523 #: ../src/guestfs.pod:1467
38524 msgid "guestfs_set_error_handler"
38525 msgstr ""
38526
38527 #. type: verbatim
38528 #: ../src/guestfs.pod:1469
38529 #, no-wrap
38530 msgid ""
38531 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38532 "                                           void *opaque,\n"
38533 "                                           const char *msg);\n"
38534 " void guestfs_set_error_handler (guestfs_h *g,\n"
38535 "                                 guestfs_error_handler_cb cb,\n"
38536 "                                 void *opaque);\n"
38537 "\n"
38538 msgstr ""
38539
38540 #. type: textblock
38541 #: ../src/guestfs.pod:1476
38542 msgid ""
38543 "The callback C<cb> will be called if there is an error.  The parameters "
38544 "passed to the callback are an opaque data pointer and the error message "
38545 "string."
38546 msgstr ""
38547
38548 #. type: textblock
38549 #: ../src/guestfs.pod:1480
38550 msgid ""
38551 "C<errno> is not passed to the callback.  To get that the callback must call "
38552 "L</guestfs_last_errno>."
38553 msgstr ""
38554
38555 #. type: textblock
38556 #: ../src/guestfs.pod:1483
38557 msgid ""
38558 "Note that the message string C<msg> is freed as soon as the callback "
38559 "function returns, so if you want to stash it somewhere you must make your "
38560 "own copy."
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../src/guestfs.pod:1487
38565 msgid "The default handler prints messages on C<stderr>."
38566 msgstr ""
38567
38568 #. type: textblock
38569 #: ../src/guestfs.pod:1489
38570 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38571 msgstr ""
38572
38573 #. type: =head2
38574 #: ../src/guestfs.pod:1491
38575 msgid "guestfs_get_error_handler"
38576 msgstr ""
38577
38578 #. type: verbatim
38579 #: ../src/guestfs.pod:1493
38580 #, no-wrap
38581 msgid ""
38582 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38583 "                                                     void **opaque_rtn);\n"
38584 "\n"
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../src/guestfs.pod:1496
38589 msgid "Returns the current error handler callback."
38590 msgstr ""
38591
38592 #. type: =head2
38593 #: ../src/guestfs.pod:1498
38594 msgid "guestfs_set_out_of_memory_handler"
38595 msgstr ""
38596
38597 #. type: verbatim
38598 #: ../src/guestfs.pod:1500
38599 #, no-wrap
38600 msgid ""
38601 " typedef void (*guestfs_abort_cb) (void);\n"
38602 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38603 "                                         guestfs_abort_cb);\n"
38604 "\n"
38605 msgstr ""
38606
38607 #. type: textblock
38608 #: ../src/guestfs.pod:1504
38609 msgid ""
38610 "The callback C<cb> will be called if there is an out of memory situation.  "
38611 "I<Note this callback must not return>."
38612 msgstr ""
38613
38614 #. type: textblock
38615 #: ../src/guestfs.pod:1507
38616 msgid "The default is to call L<abort(3)>."
38617 msgstr ""
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:1509
38621 msgid ""
38622 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38623 msgstr ""
38624
38625 #. type: =head2
38626 #: ../src/guestfs.pod:1512
38627 msgid "guestfs_get_out_of_memory_handler"
38628 msgstr ""
38629
38630 #. type: verbatim
38631 #: ../src/guestfs.pod:1514
38632 #, no-wrap
38633 msgid ""
38634 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38635 "\n"
38636 msgstr ""
38637
38638 #. type: textblock
38639 #: ../src/guestfs.pod:1516
38640 msgid "This returns the current out of memory handler."
38641 msgstr ""
38642
38643 #. type: =head1
38644 #: ../src/guestfs.pod:1518
38645 msgid "API CALLS"
38646 msgstr ""
38647
38648 #. type: =head1
38649 #: ../src/guestfs.pod:1522
38650 msgid "STRUCTURES"
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:1524
38655 msgid "@STRUCTS@"
38656 msgstr ""
38657
38658 #. type: =head1
38659 #: ../src/guestfs.pod:1526
38660 msgid "AVAILABILITY"
38661 msgstr ""
38662
38663 #. type: =head2
38664 #: ../src/guestfs.pod:1528
38665 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38666 msgstr ""
38667
38668 #. type: textblock
38669 #: ../src/guestfs.pod:1530
38670 msgid ""
38671 "Using L</guestfs_available> you can test availability of the following "
38672 "groups of functions.  This test queries the appliance to see if the "
38673 "appliance you are currently using supports the functionality."
38674 msgstr ""
38675
38676 #. type: textblock
38677 #: ../src/guestfs.pod:1535
38678 msgid "@AVAILABILITY@"
38679 msgstr ""
38680
38681 #. type: =head2
38682 #: ../src/guestfs.pod:1537
38683 msgid "GUESTFISH supported COMMAND"
38684 msgstr ""
38685
38686 #. type: textblock
38687 #: ../src/guestfs.pod:1539
38688 msgid ""
38689 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38690 "prints out the available groups and whether they are supported by this build "
38691 "of libguestfs.  Note however that you have to do C<run> first."
38692 msgstr ""
38693
38694 #. type: =head2
38695 #: ../src/guestfs.pod:1544
38696 msgid "SINGLE CALLS AT COMPILE TIME"
38697 msgstr ""
38698
38699 #. type: textblock
38700 #: ../src/guestfs.pod:1546
38701 msgid ""
38702 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38703 "function, such as:"
38704 msgstr ""
38705
38706 #. type: verbatim
38707 #: ../src/guestfs.pod:1549
38708 #, no-wrap
38709 msgid ""
38710 " #define LIBGUESTFS_HAVE_DD 1\n"
38711 "\n"
38712 msgstr ""
38713
38714 #. type: textblock
38715 #: ../src/guestfs.pod:1551
38716 msgid "if L</guestfs_dd> is available."
38717 msgstr ""
38718
38719 #. type: textblock
38720 #: ../src/guestfs.pod:1553
38721 msgid ""
38722 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38723 "function is available at compile time, we recommended using build tools such "
38724 "as autoconf or cmake.  For example in autotools you could use:"
38725 msgstr ""
38726
38727 #. type: verbatim
38728 #: ../src/guestfs.pod:1558
38729 #, no-wrap
38730 msgid ""
38731 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38732 " AC_CHECK_FUNCS([guestfs_dd])\n"
38733 "\n"
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:1561
38738 msgid ""
38739 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38740 "in your program."
38741 msgstr ""
38742
38743 #. type: =head2
38744 #: ../src/guestfs.pod:1564
38745 msgid "SINGLE CALLS AT RUN TIME"
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../src/guestfs.pod:1566
38750 msgid ""
38751 "Testing at compile time doesn't guarantee that a function really exists in "
38752 "the library.  The reason is that you might be dynamically linked against a "
38753 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38754 "This situation unfortunately results in a segmentation fault, which is a "
38755 "shortcoming of the C dynamic linking system itself."
38756 msgstr ""
38757
38758 #. type: textblock
38759 #: ../src/guestfs.pod:1573
38760 msgid ""
38761 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38762 "in this example program (note that you still need the compile time check as "
38763 "well):"
38764 msgstr ""
38765
38766 #. type: verbatim
38767 #: ../src/guestfs.pod:1577
38768 #, no-wrap
38769 msgid ""
38770 " #include <stdio.h>\n"
38771 " #include <stdlib.h>\n"
38772 " #include <unistd.h>\n"
38773 " #include <dlfcn.h>\n"
38774 " #include <guestfs.h>\n"
38775 " \n"
38776 msgstr ""
38777
38778 #. type: verbatim
38779 #: ../src/guestfs.pod:1583
38780 #, no-wrap
38781 msgid ""
38782 " main ()\n"
38783 " {\n"
38784 " #ifdef LIBGUESTFS_HAVE_DD\n"
38785 "   void *dl;\n"
38786 "   int has_function;\n"
38787 " \n"
38788 msgstr ""
38789
38790 #. type: verbatim
38791 #: ../src/guestfs.pod:1589
38792 #, no-wrap
38793 msgid ""
38794 "   /* Test if the function guestfs_dd is really available. */\n"
38795 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38796 "   if (!dl) {\n"
38797 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38798 "     exit (EXIT_FAILURE);\n"
38799 "   }\n"
38800 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38801 "   dlclose (dl);\n"
38802 " \n"
38803 msgstr ""
38804
38805 #. type: verbatim
38806 #: ../src/guestfs.pod:1598
38807 #, no-wrap
38808 msgid ""
38809 "   if (!has_function)\n"
38810 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38811 "   else {\n"
38812 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38813 "     /* Now it's safe to call\n"
38814 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38815 "     */\n"
38816 "   }\n"
38817 " #else\n"
38818 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38819 " #endif\n"
38820 "  }\n"
38821 "\n"
38822 msgstr ""
38823
38824 #. type: textblock
38825 #: ../src/guestfs.pod:1611
38826 msgid ""
38827 "You may think the above is an awful lot of hassle, and it is.  There are "
38828 "other ways outside of the C linking system to ensure that this kind of "
38829 "incompatibility never arises, such as using package versioning:"
38830 msgstr ""
38831
38832 #. type: verbatim
38833 #: ../src/guestfs.pod:1616
38834 #, no-wrap
38835 msgid ""
38836 " Requires: libguestfs >= 1.0.80\n"
38837 "\n"
38838 msgstr ""
38839
38840 #. type: =head1
38841 #: ../src/guestfs.pod:1618
38842 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38843 msgstr ""
38844
38845 #. type: textblock
38846 #: ../src/guestfs.pod:1620
38847 msgid ""
38848 "A recent feature of the API is the introduction of calls which take optional "
38849 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38850 "takes variable arguments (ie. C<...>), as in this example:"
38851 msgstr ""
38852
38853 #. type: verbatim
38854 #: ../src/guestfs.pod:1625
38855 #, no-wrap
38856 msgid ""
38857 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38858 "\n"
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../src/guestfs.pod:1627
38863 msgid ""
38864 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38865 "call with no optional arguments specified:"
38866 msgstr ""
38867
38868 #. type: verbatim
38869 #: ../src/guestfs.pod:1630
38870 #, no-wrap
38871 msgid ""
38872 " guestfs_add_drive_opts (g, filename, -1);\n"
38873 "\n"
38874 msgstr ""
38875
38876 #. type: textblock
38877 #: ../src/guestfs.pod:1632
38878 msgid "With a single optional argument:"
38879 msgstr ""
38880
38881 #. type: verbatim
38882 #: ../src/guestfs.pod:1634
38883 #, no-wrap
38884 msgid ""
38885 " guestfs_add_drive_opts (g, filename,\n"
38886 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38887 "                         -1);\n"
38888 "\n"
38889 msgstr ""
38890
38891 #. type: textblock
38892 #: ../src/guestfs.pod:1638
38893 msgid "With two:"
38894 msgstr ""
38895
38896 #. type: verbatim
38897 #: ../src/guestfs.pod:1640
38898 #, no-wrap
38899 msgid ""
38900 " guestfs_add_drive_opts (g, filename,\n"
38901 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38902 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38903 "                         -1);\n"
38904 "\n"
38905 msgstr ""
38906
38907 #. type: textblock
38908 #: ../src/guestfs.pod:1645
38909 msgid ""
38910 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38911 "happen!"
38912 msgstr ""
38913
38914 #. type: =head2
38915 #: ../src/guestfs.pod:1648
38916 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38917 msgstr ""
38918
38919 #. type: textblock
38920 #: ../src/guestfs.pod:1650
38921 msgid ""
38922 "The second variant has the same name with the suffix C<_va>, which works the "
38923 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38924 "example function, this is declared:"
38925 msgstr ""
38926
38927 #. type: verbatim
38928 #: ../src/guestfs.pod:1654
38929 #, no-wrap
38930 msgid ""
38931 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38932 "                                va_list args);\n"
38933 "\n"
38934 msgstr ""
38935
38936 #. type: =head2
38937 #: ../src/guestfs.pod:1657
38938 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38939 msgstr ""
38940
38941 #. type: textblock
38942 #: ../src/guestfs.pod:1659
38943 msgid ""
38944 "The third variant is useful where you need to construct these calls.  You "
38945 "pass in a structure where you fill in the optional fields.  The structure "
38946 "has a bitmask as the first element which you must set to indicate which "
38947 "fields you have filled in.  For our example function the structure and call "
38948 "are declared:"
38949 msgstr ""
38950
38951 #. type: verbatim
38952 #: ../src/guestfs.pod:1665
38953 #, no-wrap
38954 msgid ""
38955 " struct guestfs_add_drive_opts_argv {\n"
38956 "   uint64_t bitmask;\n"
38957 "   int readonly;\n"
38958 "   const char *format;\n"
38959 "   /* ... */\n"
38960 " };\n"
38961 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38962 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38963 "\n"
38964 msgstr ""
38965
38966 #. type: textblock
38967 #: ../src/guestfs.pod:1674
38968 msgid "You could call it like this:"
38969 msgstr ""
38970
38971 #. type: verbatim
38972 #: ../src/guestfs.pod:1676
38973 #, no-wrap
38974 msgid ""
38975 " struct guestfs_add_drive_opts_argv optargs = {\n"
38976 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38977 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38978 "   .readonly = 1,\n"
38979 "   .format = \"qcow2\"\n"
38980 " };\n"
38981 " \n"
38982 msgstr ""
38983
38984 #. type: verbatim
38985 #: ../src/guestfs.pod:1683
38986 #, no-wrap
38987 msgid ""
38988 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38989 "\n"
38990 msgstr ""
38991
38992 #. type: textblock
38993 #: ../src/guestfs.pod:1691
38994 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38995 msgstr ""
38996
38997 #. type: textblock
38998 #: ../src/guestfs.pod:1696
38999 msgid "You do not need to fill in all fields of the structure."
39000 msgstr ""
39001
39002 #. type: textblock
39003 #: ../src/guestfs.pod:1700
39004 msgid ""
39005 "There must be a one-to-one correspondence between fields of the structure "
39006 "that are filled in, and bits set in the bitmask."
39007 msgstr ""
39008
39009 #. type: =head2
39010 #: ../src/guestfs.pod:1705
39011 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
39012 msgstr ""
39013
39014 #. type: textblock
39015 #: ../src/guestfs.pod:1707
39016 msgid ""
39017 "In other languages, optional arguments are expressed in the way that is "
39018 "natural for that language.  We refer you to the language-specific "
39019 "documentation for more details on that."
39020 msgstr ""
39021
39022 #. type: textblock
39023 #: ../src/guestfs.pod:1711
39024 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
39025 msgstr ""
39026
39027 #. type: =head2
39028 #: ../src/guestfs.pod:1713
39029 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
39030 msgstr ""
39031
39032 #. type: textblock
39033 #: ../src/guestfs.pod:1715
39034 msgid ""
39035 "B<Note:> This section documents the generic event mechanism introduced in "
39036 "libguestfs 1.10, which you should use in new code if possible.  The old "
39037 "functions C<guestfs_set_log_message_callback>, "
39038 "C<guestfs_set_subprocess_quit_callback>, "
39039 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
39040 "C<guestfs_set_progress_callback> are no longer documented in this manual "
39041 "page.  Because of the ABI guarantee, the old functions continue to work."
39042 msgstr ""
39043
39044 #. type: textblock
39045 #: ../src/guestfs.pod:1724
39046 msgid ""
39047 "Handles generate events when certain things happen, such as log messages "
39048 "being generated, progress messages during long-running operations, or the "
39049 "handle being closed.  The API calls described below let you register a "
39050 "callback to be called when events happen.  You can register multiple "
39051 "callbacks (for the same, different or overlapping sets of events), and "
39052 "individually remove callbacks.  If callbacks are not removed, then they "
39053 "remain in force until the handle is closed."
39054 msgstr ""
39055
39056 #. type: textblock
39057 #: ../src/guestfs.pod:1732
39058 msgid ""
39059 "In the current implementation, events are only generated synchronously: that "
39060 "means that events (and hence callbacks) can only happen while you are in the "
39061 "middle of making another libguestfs call.  The callback is called in the "
39062 "same thread."
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../src/guestfs.pod:1737
39067 msgid ""
39068 "Events may contain a payload, usually nothing (void), an array of 64 bit "
39069 "unsigned integers, or a message buffer.  Payloads are discussed later on."
39070 msgstr ""
39071
39072 #. type: =head3
39073 #: ../src/guestfs.pod:1741
39074 msgid "CLASSES OF EVENTS"
39075 msgstr ""
39076
39077 #. type: =item
39078 #: ../src/guestfs.pod:1745
39079 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
39080 msgstr ""
39081
39082 #. type: textblock
39083 #: ../src/guestfs.pod:1748
39084 msgid ""
39085 "The callback function will be called while the handle is being closed "
39086 "(synchronously from L</guestfs_close>)."
39087 msgstr ""
39088
39089 #. type: textblock
39090 #: ../src/guestfs.pod:1751
39091 msgid ""
39092 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
39093 "handles that are open when the program exits.  This means that this callback "
39094 "might be called indirectly from L<exit(3)>, which can cause unexpected "
39095 "problems in higher-level languages (eg. if your HLL interpreter has already "
39096 "been cleaned up by the time this is called, and if your callback then jumps "
39097 "into some HLL function)."
39098 msgstr ""
39099
39100 #. type: textblock
39101 #: ../src/guestfs.pod:1758
39102 msgid ""
39103 "If no callback is registered: the handle is closed without any callback "
39104 "being invoked."
39105 msgstr ""
39106
39107 #. type: =item
39108 #: ../src/guestfs.pod:1761
39109 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
39110 msgstr ""
39111
39112 #. type: textblock
39113 #: ../src/guestfs.pod:1764
39114 msgid ""
39115 "The callback function will be called when the child process quits, either "
39116 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
39117 "corresponds to a transition from any state to the CONFIG state)."
39118 msgstr ""
39119
39120 #. type: textblock
39121 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
39122 msgid "If no callback is registered: the event is ignored."
39123 msgstr ""
39124
39125 #. type: =item
39126 #: ../src/guestfs.pod:1770
39127 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
39128 msgstr ""
39129
39130 #. type: textblock
39131 #: ../src/guestfs.pod:1773
39132 msgid ""
39133 "The callback function will be called when the child process becomes ready "
39134 "first time after it has been launched.  (This corresponds to a transition "
39135 "from LAUNCHING to the READY state)."
39136 msgstr ""
39137
39138 #. type: =item
39139 #: ../src/guestfs.pod:1779
39140 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
39141 msgstr ""
39142
39143 #. type: textblock
39144 #: ../src/guestfs.pod:1782
39145 msgid ""
39146 "Some long-running operations can generate progress messages.  If this "
39147 "callback is registered, then it will be called each time a progress message "
39148 "is generated (usually two seconds after the operation started, and three "
39149 "times per second thereafter until it completes, although the frequency may "
39150 "change in future versions)."
39151 msgstr ""
39152
39153 #. type: textblock
39154 #: ../src/guestfs.pod:1788
39155 msgid ""
39156 "The callback receives in the payload four unsigned 64 bit numbers which are "
39157 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39158 msgstr ""
39159
39160 #. type: textblock
39161 #: ../src/guestfs.pod:1791
39162 msgid ""
39163 "The units of C<total> are not defined, although for some operations C<total> "
39164 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39165 "or megabytes), and C<position> may be the portion which has been transferred."
39166 msgstr ""
39167
39168 #. type: textblock
39169 #: ../src/guestfs.pod:1796
39170 msgid "The only defined and stable parts of the API are:"
39171 msgstr ""
39172
39173 #. type: textblock
39174 #: ../src/guestfs.pod:1802
39175 msgid ""
39176 "The callback can display to the user some type of progress bar or indicator "
39177 "which shows the ratio of C<position>:C<total>."
39178 msgstr ""
39179
39180 #. type: textblock
39181 #: ../src/guestfs.pod:1807
39182 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39183 msgstr ""
39184
39185 #. type: textblock
39186 #: ../src/guestfs.pod:1811
39187 msgid ""
39188 "If any progress notification is sent during a call, then a final progress "
39189 "notification is always sent when C<position> = C<total> (I<unless> the call "
39190 "fails with an error)."
39191 msgstr ""
39192
39193 #. type: textblock
39194 #: ../src/guestfs.pod:1815
39195 msgid ""
39196 "This is to simplify caller code, so callers can easily set the progress "
39197 "indicator to \"100%\" at the end of the operation, without requiring special "
39198 "code to detect this case."
39199 msgstr ""
39200
39201 #. type: textblock
39202 #: ../src/guestfs.pod:1821
39203 msgid ""
39204 "For some calls we are unable to estimate the progress of the call, but we "
39205 "can still generate progress messages to indicate activity.  This is known as "
39206 "\"pulse mode\", and is directly supported by certain progress bar "
39207 "implementations (eg. GtkProgressBar)."
39208 msgstr ""
39209
39210 #. type: textblock
39211 #: ../src/guestfs.pod:1826
39212 msgid ""
39213 "For these calls, zero or more progress messages are generated with "
39214 "C<position = 0> and C<total = 1>, followed by a final message with "
39215 "C<position = total = 1>."
39216 msgstr ""
39217
39218 #. type: textblock
39219 #: ../src/guestfs.pod:1830
39220 msgid ""
39221 "As noted above, if the call fails with an error then the final message may "
39222 "not be generated."
39223 msgstr ""
39224
39225 #. type: textblock
39226 #: ../src/guestfs.pod:1835
39227 msgid ""
39228 "The callback also receives the procedure number (C<proc_nr>) and serial "
39229 "number (C<serial>) of the call.  These are only useful for debugging "
39230 "protocol issues, and the callback can normally ignore them.  The callback "
39231 "may want to print these numbers in error messages or debugging messages."
39232 msgstr ""
39233
39234 #. type: textblock
39235 #: ../src/guestfs.pod:1841
39236 msgid "If no callback is registered: progress messages are discarded."
39237 msgstr ""
39238
39239 #. type: =item
39240 #: ../src/guestfs.pod:1843
39241 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39242 msgstr ""
39243
39244 #. type: textblock
39245 #: ../src/guestfs.pod:1846
39246 msgid ""
39247 "The callback function is called whenever a log message is generated by qemu, "
39248 "the appliance kernel, guestfsd (daemon), or utility programs."
39249 msgstr ""
39250
39251 #. type: textblock
39252 #: ../src/guestfs.pod:1849
39253 msgid ""
39254 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39255 "guestfs_launch>) then additional debug messages are generated."
39256 msgstr ""
39257
39258 #. type: textblock
39259 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39260 msgid ""
39261 "If no callback is registered: the messages are discarded unless the verbose "
39262 "flag is set in which case they are sent to stderr.  You can override the "
39263 "printing of verbose messages to stderr by setting up a callback."
39264 msgstr ""
39265
39266 #. type: =item
39267 #: ../src/guestfs.pod:1857
39268 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39269 msgstr ""
39270
39271 #. type: textblock
39272 #: ../src/guestfs.pod:1860
39273 msgid ""
39274 "The callback function is called whenever a log message is generated by the "
39275 "library part of libguestfs."
39276 msgstr ""
39277
39278 #. type: textblock
39279 #: ../src/guestfs.pod:1863
39280 msgid ""
39281 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39282 "messages are generated."
39283 msgstr ""
39284
39285 #. type: =item
39286 #: ../src/guestfs.pod:1871
39287 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39288 msgstr ""
39289
39290 #. type: textblock
39291 #: ../src/guestfs.pod:1874
39292 msgid ""
39293 "The callback function is called whenever a trace message is generated.  This "
39294 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../src/guestfs.pod:1877
39299 msgid ""
39300 "If no callback is registered: the messages are sent to stderr.  You can "
39301 "override the printing of trace messages to stderr by setting up a callback."
39302 msgstr ""
39303
39304 #. type: =item
39305 #: ../src/guestfs.pod:1881
39306 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39307 msgstr ""
39308
39309 #. type: textblock
39310 #: ../src/guestfs.pod:1884
39311 msgid ""
39312 "The callback function is called whenever a libguestfs function is entered."
39313 msgstr ""
39314
39315 #. type: textblock
39316 #: ../src/guestfs.pod:1887
39317 msgid ""
39318 "The payload is a string which contains the name of the function that we are "
39319 "entering (not including C<guestfs_> prefix)."
39320 msgstr ""
39321
39322 #. type: textblock
39323 #: ../src/guestfs.pod:1890
39324 msgid ""
39325 "Note that libguestfs functions can call themselves, so you may see many "
39326 "events from a single call.  A few libguestfs functions do not generate this "
39327 "event."
39328 msgstr ""
39329
39330 #. type: =head3
39331 #: ../src/guestfs.pod:1898
39332 msgid "guestfs_set_event_callback"
39333 msgstr ""
39334
39335 #. type: verbatim
39336 #: ../src/guestfs.pod:1900
39337 #, no-wrap
39338 msgid ""
39339 " int guestfs_set_event_callback (guestfs_h *g,\n"
39340 "                                 guestfs_event_callback cb,\n"
39341 "                                 uint64_t event_bitmask,\n"
39342 "                                 int flags,\n"
39343 "                                 void *opaque);\n"
39344 "\n"
39345 msgstr ""
39346
39347 #. type: textblock
39348 #: ../src/guestfs.pod:1906
39349 msgid ""
39350 "This function registers a callback (C<cb>) for all event classes in the "
39351 "C<event_bitmask>."
39352 msgstr ""
39353
39354 #. type: textblock
39355 #: ../src/guestfs.pod:1909
39356 msgid ""
39357 "For example, to register for all log message events, you could call this "
39358 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39359 "To register a single callback for all possible classes of events, use "
39360 "C<GUESTFS_EVENT_ALL>."
39361 msgstr ""
39362
39363 #. type: textblock
39364 #: ../src/guestfs.pod:1915
39365 msgid "C<flags> should always be passed as 0."
39366 msgstr ""
39367
39368 #. type: textblock
39369 #: ../src/guestfs.pod:1917
39370 msgid ""
39371 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39372 "it for any purpose."
39373 msgstr ""
39374
39375 #. type: textblock
39376 #: ../src/guestfs.pod:1920
39377 msgid ""
39378 "The return value is the event handle (an integer) which you can use to "
39379 "delete the callback (see below)."
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:1923
39384 msgid ""
39385 "If there is an error, this function returns C<-1>, and sets the error in the "
39386 "handle in the usual way (see L</guestfs_last_error> etc.)"
39387 msgstr ""
39388
39389 #. type: textblock
39390 #: ../src/guestfs.pod:1926
39391 msgid ""
39392 "Callbacks remain in effect until they are deleted, or until the handle is "
39393 "closed."
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:1929
39398 msgid ""
39399 "In the case where multiple callbacks are registered for a particular event "
39400 "class, all of the callbacks are called.  The order in which multiple "
39401 "callbacks are called is not defined."
39402 msgstr ""
39403
39404 #. type: =head3
39405 #: ../src/guestfs.pod:1933
39406 msgid "guestfs_delete_event_callback"
39407 msgstr ""
39408
39409 #. type: verbatim
39410 #: ../src/guestfs.pod:1935
39411 #, no-wrap
39412 msgid ""
39413 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39414 "\n"
39415 msgstr ""
39416
39417 #. type: textblock
39418 #: ../src/guestfs.pod:1937
39419 msgid ""
39420 "Delete a callback that was previously registered.  C<event_handle> should be "
39421 "the integer that was returned by a previous call to "
39422 "C<guestfs_set_event_callback> on the same handle."
39423 msgstr ""
39424
39425 #. type: =head3
39426 #: ../src/guestfs.pod:1941
39427 msgid "guestfs_event_callback"
39428 msgstr ""
39429
39430 #. type: verbatim
39431 #: ../src/guestfs.pod:1943
39432 #, no-wrap
39433 msgid ""
39434 " typedef void (*guestfs_event_callback) (\n"
39435 "                  guestfs_h *g,\n"
39436 "                  void *opaque,\n"
39437 "                  uint64_t event,\n"
39438 "                  int event_handle,\n"
39439 "                  int flags,\n"
39440 "                  const char *buf, size_t buf_len,\n"
39441 "                  const uint64_t *array, size_t array_len);\n"
39442 "\n"
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../src/guestfs.pod:1952
39447 msgid ""
39448 "This is the type of the event callback function that you have to provide."
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../src/guestfs.pod:1955
39453 msgid ""
39454 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39455 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39456 "handle, and C<flags> which in the current API you should ignore."
39457 msgstr ""
39458
39459 #. type: textblock
39460 #: ../src/guestfs.pod:1959
39461 msgid ""
39462 "The remaining parameters contain the event payload (if any).  Each event may "
39463 "contain a payload, which usually relates to the event class, but for future "
39464 "proofing your code should be written to handle any payload for any event "
39465 "class."
39466 msgstr ""
39467
39468 #. type: textblock
39469 #: ../src/guestfs.pod:1964
39470 msgid ""
39471 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39472 "there is no message buffer).  Note that this message buffer can contain "
39473 "arbitrary 8 bit data, including NUL bytes."
39474 msgstr ""
39475
39476 #. type: textblock
39477 #: ../src/guestfs.pod:1968
39478 msgid ""
39479 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39480 "moment this is only used for progress messages."
39481 msgstr ""
39482
39483 #. type: =head3
39484 #: ../src/guestfs.pod:1971
39485 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39486 msgstr ""
39487
39488 #. type: textblock
39489 #: ../src/guestfs.pod:1973
39490 msgid ""
39491 "One motivation for the generic event API was to allow GUI programs to "
39492 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39493 "unconditionally to C<stderr>."
39494 msgstr ""
39495
39496 #. type: textblock
39497 #: ../src/guestfs.pod:1977
39498 msgid ""
39499 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39500 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39501 "messages are not events; you must capture error messages separately)."
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:1982
39506 msgid ""
39507 "Programs have to set up a callback to capture the classes of events of "
39508 "interest:"
39509 msgstr ""
39510
39511 #. type: verbatim
39512 #: ../src/guestfs.pod:1985
39513 #, no-wrap
39514 msgid ""
39515 " int eh =\n"
39516 "   guestfs_set_event_callback\n"
39517 "     (g, message_callback,\n"
39518 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39519 "      GUESTFS_EVENT_TRACE,\n"
39520 "      0, NULL) == -1)\n"
39521 " if (eh == -1) {\n"
39522 "   // handle error in the usual way\n"
39523 " }\n"
39524 "\n"
39525 msgstr ""
39526
39527 #. type: textblock
39528 #: ../src/guestfs.pod:1995
39529 msgid ""
39530 "The callback can then direct messages to the appropriate place.  In this "
39531 "example, messages are directed to syslog:"
39532 msgstr ""
39533
39534 #. type: verbatim
39535 #: ../src/guestfs.pod:1998
39536 #, no-wrap
39537 msgid ""
39538 " static void\n"
39539 " message_callback (\n"
39540 "         guestfs_h *g,\n"
39541 "         void *opaque,\n"
39542 "         uint64_t event,\n"
39543 "         int event_handle,\n"
39544 "         int flags,\n"
39545 "         const char *buf, size_t buf_len,\n"
39546 "         const uint64_t *array, size_t array_len)\n"
39547 " {\n"
39548 "   const int priority = LOG_USER|LOG_INFO;\n"
39549 "   if (buf_len > 0)\n"
39550 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39551 " }\n"
39552 "\n"
39553 msgstr ""
39554
39555 #. type: =head1
39556 #: ../src/guestfs.pod:2013
39557 msgid "CANCELLING LONG TRANSFERS"
39558 msgstr ""
39559
39560 #. type: textblock
39561 #: ../src/guestfs.pod:2015
39562 msgid ""
39563 "Some operations can be cancelled by the caller while they are in progress.  "
39564 "Currently only operations that involve uploading or downloading data can be "
39565 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39566 "parameters in the generator)."
39567 msgstr ""
39568
39569 #. type: =head2
39570 #: ../src/guestfs.pod:2020
39571 msgid "guestfs_user_cancel"
39572 msgstr ""
39573
39574 #. type: verbatim
39575 #: ../src/guestfs.pod:2022
39576 #, no-wrap
39577 msgid ""
39578 " void guestfs_user_cancel (guestfs_h *g);\n"
39579 "\n"
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../src/guestfs.pod:2024
39584 msgid ""
39585 "C<guestfs_user_cancel> cancels the current upload or download operation."
39586 msgstr ""
39587
39588 #. type: textblock
39589 #: ../src/guestfs.pod:2027
39590 msgid ""
39591 "Unlike most other libguestfs calls, this function is signal safe and thread "
39592 "safe.  You can call it from a signal handler or from another thread, without "
39593 "needing to do any locking."
39594 msgstr ""
39595
39596 #. type: textblock
39597 #: ../src/guestfs.pod:2031
39598 msgid ""
39599 "The transfer that was in progress (if there is one) will stop shortly "
39600 "afterwards, and will return an error.  The errno (see L</"
39601 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39602 "out if the operation was cancelled or failed because of another error."
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../src/guestfs.pod:2037
39607 msgid ""
39608 "No cleanup is performed: for example, if a file was being uploaded then "
39609 "after cancellation there may be a partially uploaded file.  It is the "
39610 "caller's responsibility to clean up if necessary."
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../src/guestfs.pod:2041
39615 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../src/guestfs.pod:2043
39620 msgid ""
39621 "In an interactive text-based program, you might call it from a C<SIGINT> "
39622 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39623 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39624 "receive the C<^C> signal)."
39625 msgstr ""
39626
39627 #. type: textblock
39628 #: ../src/guestfs.pod:2048
39629 msgid ""
39630 "In a graphical program, when the main thread is displaying a progress bar "
39631 "with a cancel button, wire up the cancel button to call this function."
39632 msgstr ""
39633
39634 #. type: =head1
39635 #: ../src/guestfs.pod:2052
39636 msgid "PRIVATE DATA AREA"
39637 msgstr ""
39638
39639 #. type: textblock
39640 #: ../src/guestfs.pod:2054
39641 msgid ""
39642 "You can attach named pieces of private data to the libguestfs handle, fetch "
39643 "them by name, and walk over them, for the lifetime of the handle.  This is "
39644 "called the private data area and is only available from the C API."
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:2059
39649 msgid "To attach a named piece of data, use the following call:"
39650 msgstr ""
39651
39652 #. type: verbatim
39653 #: ../src/guestfs.pod:2061
39654 #, no-wrap
39655 msgid ""
39656 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39657 "\n"
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../src/guestfs.pod:2063
39662 msgid ""
39663 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39664 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39665 "overwritten."
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../src/guestfs.pod:2067
39670 msgid ""
39671 "You can use any C<key> you want, but your key should I<not> start with an "
39672 "underscore character.  Keys beginning with an underscore character are "
39673 "reserved for internal libguestfs purposes (eg. for implementing language "
39674 "bindings).  It is recommended that you prefix the key with some unique "
39675 "string to avoid collisions with other users."
39676 msgstr ""
39677
39678 #. type: textblock
39679 #: ../src/guestfs.pod:2073
39680 msgid "To retrieve the pointer, use:"
39681 msgstr ""
39682
39683 #. type: verbatim
39684 #: ../src/guestfs.pod:2075
39685 #, no-wrap
39686 msgid ""
39687 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39688 "\n"
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:2077
39693 msgid ""
39694 "This function returns C<NULL> if either no data is found associated with "
39695 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39696 "C<NULL>."
39697 msgstr ""
39698
39699 #. type: textblock
39700 #: ../src/guestfs.pod:2081
39701 msgid ""
39702 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39703 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39704 "all.  In particular, libguestfs does I<not> try to free the data when the "
39705 "handle is closed.  If the data must be freed, then the caller must either "
39706 "free it before calling L</guestfs_close> or must set up a close callback to "
39707 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39708 msgstr ""
39709
39710 #. type: textblock
39711 #: ../src/guestfs.pod:2088
39712 msgid "To walk over all entries, use these two functions:"
39713 msgstr ""
39714
39715 #. type: verbatim
39716 #: ../src/guestfs.pod:2090
39717 #, no-wrap
39718 msgid ""
39719 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39720 "\n"
39721 msgstr ""
39722
39723 #. type: verbatim
39724 #: ../src/guestfs.pod:2092
39725 #, no-wrap
39726 msgid ""
39727 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39728 "\n"
39729 msgstr ""
39730
39731 #. type: textblock
39732 #: ../src/guestfs.pod:2094
39733 msgid ""
39734 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39735 "not have any particular meaning -- keys are not returned in any defined "
39736 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39737 "corresponding data pointer is returned from the function.  C<NULL> is "
39738 "returned if there are no keys stored in the handle."
39739 msgstr ""
39740
39741 #. type: textblock
39742 #: ../src/guestfs.pod:2100
39743 msgid ""
39744 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39745 "value of this function is also C<NULL> is there are no further entries to "
39746 "return."
39747 msgstr ""
39748
39749 #. type: textblock
39750 #: ../src/guestfs.pod:2104
39751 msgid "Notes about walking over entries:"
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../src/guestfs.pod:2110
39756 msgid ""
39757 "You must not call C<guestfs_set_private> while walking over the entries."
39758 msgstr ""
39759
39760 #. type: textblock
39761 #: ../src/guestfs.pod:2115
39762 msgid ""
39763 "The handle maintains an internal iterator which is reset when you call "
39764 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39765 "call C<guestfs_set_private>."
39766 msgstr ""
39767
39768 #. type: textblock
39769 #: ../src/guestfs.pod:2121
39770 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39771 msgstr ""
39772
39773 #. type: verbatim
39774 #: ../src/guestfs.pod:2123
39775 #, no-wrap
39776 msgid ""
39777 " guestfs_set_private (g, key, NULL);\n"
39778 "\n"
39779 msgstr ""
39780
39781 #. type: textblock
39782 #: ../src/guestfs.pod:2125
39783 msgid "then that C<key> is not returned when walking."
39784 msgstr ""
39785
39786 #. type: textblock
39787 #: ../src/guestfs.pod:2129
39788 msgid ""
39789 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39790 "C<guestfs_next_private> or C<guestfs_set_private>."
39791 msgstr ""
39792
39793 #. type: textblock
39794 #: ../src/guestfs.pod:2135
39795 msgid ""
39796 "The following example code shows how to print all keys and data pointers "
39797 "that are associated with the handle C<g>:"
39798 msgstr ""
39799
39800 #. type: verbatim
39801 #: ../src/guestfs.pod:2138
39802 #, no-wrap
39803 msgid ""
39804 " const char *key;\n"
39805 " void *data = guestfs_first_private (g, &key);\n"
39806 " while (data != NULL)\n"
39807 "   {\n"
39808 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39809 "     data = guestfs_next_private (g, &key);\n"
39810 "   }\n"
39811 "\n"
39812 msgstr ""
39813
39814 #. type: textblock
39815 #: ../src/guestfs.pod:2146
39816 msgid ""
39817 "More commonly you are only interested in keys that begin with an application-"
39818 "specific prefix C<foo_>.  Modify the loop like so:"
39819 msgstr ""
39820
39821 #. type: verbatim
39822 #: ../src/guestfs.pod:2149
39823 #, no-wrap
39824 msgid ""
39825 " const char *key;\n"
39826 " void *data = guestfs_first_private (g, &key);\n"
39827 " while (data != NULL)\n"
39828 "   {\n"
39829 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39830 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39831 "     data = guestfs_next_private (g, &key);\n"
39832 "   }\n"
39833 "\n"
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../src/guestfs.pod:2158
39838 msgid ""
39839 "If you need to modify keys while walking, then you have to jump back to the "
39840 "beginning of the loop.  For example, to delete all keys prefixed with "
39841 "C<foo_>:"
39842 msgstr ""
39843
39844 #. type: verbatim
39845 #: ../src/guestfs.pod:2162
39846 #, no-wrap
39847 msgid ""
39848 "  const char *key;\n"
39849 "  void *data;\n"
39850 " again:\n"
39851 "  data = guestfs_first_private (g, &key);\n"
39852 "  while (data != NULL)\n"
39853 "    {\n"
39854 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39855 "        {\n"
39856 "          guestfs_set_private (g, key, NULL);\n"
39857 "          /* note that 'key' pointer is now invalid, and so is\n"
39858 "             the internal iterator */\n"
39859 "          goto again;\n"
39860 "        }\n"
39861 "      data = guestfs_next_private (g, &key);\n"
39862 "    }\n"
39863 "\n"
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:2178
39868 msgid ""
39869 "Note that the above loop is guaranteed to terminate because the keys are "
39870 "being deleted, but other manipulations of keys within the loop might not "
39871 "terminate unless you also maintain an indication of which keys have been "
39872 "visited."
39873 msgstr ""
39874
39875 #. type: =head1
39876 #: ../src/guestfs.pod:2183
39877 msgid "SYSTEMTAP"
39878 msgstr ""
39879
39880 #. type: textblock
39881 #: ../src/guestfs.pod:2185
39882 msgid ""
39883 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39884 "true of any library, not just libguestfs.  However libguestfs also contains "
39885 "static markers to help in probing internal operations."
39886 msgstr ""
39887
39888 #. type: textblock
39889 #: ../src/guestfs.pod:2189
39890 msgid "You can list all the static markers by doing:"
39891 msgstr ""
39892
39893 #. type: verbatim
39894 #: ../src/guestfs.pod:2191
39895 #, no-wrap
39896 msgid ""
39897 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39898 "              .provider(\"guestfs\").mark(\"*\")'\n"
39899 "\n"
39900 msgstr ""
39901
39902 #. type: textblock
39903 #: ../src/guestfs.pod:2194
39904 msgid ""
39905 "B<Note:> These static markers are I<not> part of the stable API and may "
39906 "change in future versions."
39907 msgstr ""
39908
39909 #. type: =head2
39910 #: ../src/guestfs.pod:2197
39911 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39912 msgstr ""
39913
39914 #. type: textblock
39915 #: ../src/guestfs.pod:2199
39916 msgid ""
39917 "This script contains examples of displaying both the static markers and some "
39918 "ordinary C entry points:"
39919 msgstr ""
39920
39921 #. type: verbatim
39922 #: ../src/guestfs.pod:2202
39923 #, no-wrap
39924 msgid ""
39925 " global last;\n"
39926 " \n"
39927 msgstr ""
39928
39929 #. type: verbatim
39930 #: ../src/guestfs.pod:2204
39931 #, no-wrap
39932 msgid ""
39933 " function display_time () {\n"
39934 "       now = gettimeofday_us ();\n"
39935 "       delta = 0;\n"
39936 "       if (last > 0)\n"
39937 "             delta = now - last;\n"
39938 "       last = now;\n"
39939 " \n"
39940 msgstr ""
39941
39942 #. type: verbatim
39943 #: ../src/guestfs.pod:2211
39944 #, no-wrap
39945 msgid ""
39946 "       printf (\"%d (+%d):\", now, delta);\n"
39947 " }\n"
39948 " \n"
39949 msgstr ""
39950
39951 #. type: verbatim
39952 #: ../src/guestfs.pod:2214
39953 #, no-wrap
39954 msgid ""
39955 " probe begin {\n"
39956 "       last = 0;\n"
39957 "       printf (\"ready\\n\");\n"
39958 " }\n"
39959 " \n"
39960 msgstr ""
39961
39962 #. type: verbatim
39963 #: ../src/guestfs.pod:2219
39964 #, no-wrap
39965 msgid ""
39966 " /* Display all calls to static markers. */\n"
39967 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39968 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39969 "       display_time();\n"
39970 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39971 " }\n"
39972 " \n"
39973 msgstr ""
39974
39975 #. type: verbatim
39976 #: ../src/guestfs.pod:2226
39977 #, no-wrap
39978 msgid ""
39979 " /* Display all calls to guestfs_mkfs* functions. */\n"
39980 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39981 "           .function(\"guestfs_mkfs*\") ? {\n"
39982 "       display_time();\n"
39983 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39984 " }\n"
39985 "\n"
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../src/guestfs.pod:2233
39990 msgid ""
39991 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39992 "program.  Note that you either have to be root, or you have to add yourself "
39993 "to several special stap groups.  Consult the systemtap documentation for "
39994 "more information."
39995 msgstr ""
39996
39997 #. type: verbatim
39998 #: ../src/guestfs.pod:2238
39999 #, no-wrap
40000 msgid ""
40001 " # stap /tmp/test.stap\n"
40002 " ready\n"
40003 "\n"
40004 msgstr ""
40005
40006 #. type: textblock
40007 #: ../src/guestfs.pod:2241
40008 msgid "In another terminal, run a guestfish command such as this:"
40009 msgstr ""
40010
40011 #. type: textblock
40012 #: ../src/guestfs.pod:2245
40013 msgid "In the first terminal, stap trace output similar to this is shown:"
40014 msgstr ""
40015
40016 #. type: verbatim
40017 #: ../src/guestfs.pod:2247
40018 #, no-wrap
40019 msgid ""
40020 " 1318248056692655 (+0):\tlaunch_start\n"
40021 " 1318248056692850 (+195):       launch_build_appliance_start\n"
40022 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
40023 " 1318248056838059 (+19774):     launch_run_qemu\n"
40024 " 1318248061071167 (+4233108):   launch_end\n"
40025 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
40026 "\n"
40027 msgstr ""
40028
40029 #. type: =end
40030 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
40031 msgid "html"
40032 msgstr ""
40033
40034 #. type: textblock
40035 #: ../src/guestfs.pod:2256
40036 msgid ""
40037 "<!-- old anchor for the next section --> <a name="
40038 "\"state_machine_and_low_level_event_api\"/>"
40039 msgstr ""
40040
40041 #. type: =head1
40042 #: ../src/guestfs.pod:2261
40043 msgid "ARCHITECTURE"
40044 msgstr ""
40045
40046 #. type: textblock
40047 #: ../src/guestfs.pod:2263
40048 msgid ""
40049 "Internally, libguestfs is implemented by running an appliance (a special "
40050 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
40051 "process of the main program."
40052 msgstr ""
40053
40054 #. type: verbatim
40055 #: ../src/guestfs.pod:2267
40056 #, no-wrap
40057 msgid ""
40058 "  ___________________\n"
40059 " /                   \\\n"
40060 " | main program      |\n"
40061 " |                   |\n"
40062 " |                   |           child process / appliance\n"
40063 " |                   |           __________________________\n"
40064 " |                   |          / qemu                     \\\n"
40065 " +-------------------+   RPC    |      +-----------------+ |\n"
40066 " | libguestfs     <--------------------> guestfsd        | |\n"
40067 " |                   |          |      +-----------------+ |\n"
40068 " \\___________________/          |      | Linux kernel    | |\n"
40069 "                                |      +--^--------------+ |\n"
40070 "                                \\_________|________________/\n"
40071 "                                          |\n"
40072 "                                   _______v______\n"
40073 "                                  /              \\\n"
40074 "                                  | Device or    |\n"
40075 "                                  | disk image   |\n"
40076 "                                  \\______________/\n"
40077 "\n"
40078 msgstr ""
40079
40080 #. type: textblock
40081 #: ../src/guestfs.pod:2287
40082 msgid ""
40083 "The library, linked to the main program, creates the child process and hence "
40084 "the appliance in the L</guestfs_launch> function."
40085 msgstr ""
40086
40087 #. type: textblock
40088 #: ../src/guestfs.pod:2290
40089 msgid ""
40090 "Inside the appliance is a Linux kernel and a complete stack of userspace "
40091 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
40092 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
40093 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
40094 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
40095 "attached to the qemu process which translates device access by the "
40096 "appliance's Linux kernel into accesses to the image."
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:2299
40101 msgid ""
40102 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
40103 "Although the disk image you are attached to might also be used by some "
40104 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
40105 "care if both libguestfs's qemu process and your virtual machine are trying "
40106 "to update the disk image at the same time, since these usually results in "
40107 "massive disk corruption)."
40108 msgstr ""
40109
40110 #. type: =head1
40111 #: ../src/guestfs.pod:2306
40112 msgid "STATE MACHINE"
40113 msgstr ""
40114
40115 #. type: textblock
40116 #: ../src/guestfs.pod:2308
40117 msgid "libguestfs uses a state machine to model the child process:"
40118 msgstr ""
40119
40120 #. type: verbatim
40121 #: ../src/guestfs.pod:2310
40122 #, no-wrap
40123 msgid ""
40124 "                         |\n"
40125 "                    guestfs_create\n"
40126 "                         |\n"
40127 "                         |\n"
40128 "                     ____V_____\n"
40129 "                    /          \\\n"
40130 "                    |  CONFIG  |\n"
40131 "                    \\__________/\n"
40132 "                     ^ ^   ^  \\\n"
40133 "                    /  |    \\  \\ guestfs_launch\n"
40134 "                   /   |    _\\__V______\n"
40135 "                  /    |   /           \\\n"
40136 "                 /     |   | LAUNCHING |\n"
40137 "                /      |   \\___________/\n"
40138 "               /       |       /\n"
40139 "              /        |  guestfs_launch\n"
40140 "             /         |     /\n"
40141 "    ______  /        __|____V\n"
40142 "   /      \\ ------> /        \\\n"
40143 "   | BUSY |         | READY  |\n"
40144 "   \\______/ <------ \\________/\n"
40145 "\n"
40146 msgstr ""
40147
40148 #. type: textblock
40149 #: ../src/guestfs.pod:2332
40150 msgid ""
40151 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40152 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40153 "(3) alternating between READY and BUSY as commands are issued to, and "
40154 "carried out by, the child process."
40155 msgstr ""
40156
40157 #. type: textblock
40158 #: ../src/guestfs.pod:2337
40159 msgid ""
40160 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40161 "asynchronously at any time (eg. due to some internal error), and that causes "
40162 "the state to transition back to CONFIG."
40163 msgstr ""
40164
40165 #. type: textblock
40166 #: ../src/guestfs.pod:2341
40167 msgid ""
40168 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40169 "issued when in the CONFIG state."
40170 msgstr ""
40171
40172 #. type: textblock
40173 #: ../src/guestfs.pod:2344
40174 msgid ""
40175 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40176 "L</guestfs_launch> blocks until the child process is READY to accept "
40177 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40178 "moves the state from CONFIG to LAUNCHING while it is running."
40179 msgstr ""
40180
40181 #. type: textblock
40182 #: ../src/guestfs.pod:2350
40183 msgid ""
40184 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40185 "state.  These API calls block waiting for the command to be carried out (ie. "
40186 "the state to transition to BUSY and then back to READY).  There are no non-"
40187 "blocking versions, and no way to issue more than one command per handle at "
40188 "the same time."
40189 msgstr ""
40190
40191 #. type: textblock
40192 #: ../src/guestfs.pod:2356
40193 msgid ""
40194 "Finally, the child process sends asynchronous messages back to the main "
40195 "program, such as kernel log messages.  You can register a callback to "
40196 "receive these messages."
40197 msgstr ""
40198
40199 #. type: =head1
40200 #: ../src/guestfs.pod:2360
40201 msgid "INTERNALS"
40202 msgstr ""
40203
40204 #. type: =head2
40205 #: ../src/guestfs.pod:2362
40206 msgid "APPLIANCE BOOT PROCESS"
40207 msgstr ""
40208
40209 #. type: textblock
40210 #: ../src/guestfs.pod:2364
40211 msgid ""
40212 "This process has evolved and continues to evolve.  The description here "
40213 "corresponds only to the current version of libguestfs and is provided for "
40214 "information only."
40215 msgstr ""
40216
40217 #. type: textblock
40218 #: ../src/guestfs.pod:2368
40219 msgid ""
40220 "In order to follow the stages involved below, enable libguestfs debugging "
40221 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40222 msgstr ""
40223
40224 #. type: =item
40225 #: ../src/guestfs.pod:2373
40226 msgid "Create the appliance"
40227 msgstr ""
40228
40229 #. type: textblock
40230 #: ../src/guestfs.pod:2375
40231 msgid ""
40232 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40233 "initrd and the appliance."
40234 msgstr ""
40235
40236 #. type: textblock
40237 #: ../src/guestfs.pod:2378
40238 msgid ""
40239 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40240 "directory if C<TMPDIR> is set)."
40241 msgstr ""
40242
40243 #. type: textblock
40244 #: ../src/guestfs.pod:2381
40245 msgid ""
40246 "For a complete description of how the appliance is created and cached, read "
40247 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40248 msgstr ""
40249
40250 #. type: =item
40251 #: ../src/guestfs.pod:2385
40252 msgid "Start qemu and boot the kernel"
40253 msgstr ""
40254
40255 #. type: textblock
40256 #: ../src/guestfs.pod:2387
40257 msgid "qemu is invoked to boot the kernel."
40258 msgstr ""
40259
40260 #. type: =item
40261 #: ../src/guestfs.pod:2389
40262 msgid "Run the initrd"
40263 msgstr ""
40264
40265 #. type: textblock
40266 #: ../src/guestfs.pod:2391
40267 msgid ""
40268 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40269 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40270 "order that the appliance itself can be mounted and started."
40271 msgstr ""
40272
40273 #. type: textblock
40274 #: ../src/guestfs.pod:2395
40275 msgid ""
40276 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40277 "initrd>."
40278 msgstr ""
40279
40280 #. type: textblock
40281 #: ../src/guestfs.pod:2398
40282 msgid ""
40283 "When the initrd has started you will see messages showing that kernel "
40284 "modules are being loaded, similar to this:"
40285 msgstr ""
40286
40287 #. type: verbatim
40288 #: ../src/guestfs.pod:2401
40289 #, no-wrap
40290 msgid ""
40291 " febootstrap: ext2 mini initrd starting up\n"
40292 " febootstrap: mounting /sys\n"
40293 " febootstrap: internal insmod libcrc32c.ko\n"
40294 " febootstrap: internal insmod crc32c-intel.ko\n"
40295 "\n"
40296 msgstr ""
40297
40298 #. type: =item
40299 #: ../src/guestfs.pod:2406
40300 msgid "Find and mount the appliance device"
40301 msgstr ""
40302
40303 #. type: textblock
40304 #: ../src/guestfs.pod:2408
40305 msgid ""
40306 "The appliance is a sparse file containing an ext2 filesystem which contains "
40307 "a familiar (although reduced in size) Linux operating system.  It would "
40308 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40309 msgstr ""
40310
40311 #. type: textblock
40312 #: ../src/guestfs.pod:2412
40313 msgid ""
40314 "The regular disks being inspected by libguestfs are the first devices "
40315 "exposed by qemu (eg. as C</dev/vda>)."
40316 msgstr ""
40317
40318 #. type: textblock
40319 #: ../src/guestfs.pod:2415
40320 msgid ""
40321 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40322 "there was only one regular disk)."
40323 msgstr ""
40324
40325 #. type: textblock
40326 #: ../src/guestfs.pod:2418
40327 msgid ""
40328 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40329 "and switch root into the appliance, and run C</init> from the appliance."
40330 msgstr ""
40331
40332 #. type: textblock
40333 #: ../src/guestfs.pod:2422
40334 msgid "If this works successfully you will see messages such as:"
40335 msgstr ""
40336
40337 #. type: verbatim
40338 #: ../src/guestfs.pod:2424
40339 #, no-wrap
40340 msgid ""
40341 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40342 " febootstrap: creating /dev/root as block special 252:16\n"
40343 " febootstrap: mounting new root on /root\n"
40344 " febootstrap: chroot\n"
40345 " Starting /init script ...\n"
40346 "\n"
40347 msgstr ""
40348
40349 #. type: textblock
40350 #: ../src/guestfs.pod:2430
40351 msgid ""
40352 "Note that C<Starting /init script ...> indicates that the appliance's init "
40353 "script is now running."
40354 msgstr ""
40355
40356 #. type: =item
40357 #: ../src/guestfs.pod:2433
40358 msgid "Initialize the appliance"
40359 msgstr ""
40360
40361 #. type: textblock
40362 #: ../src/guestfs.pod:2435
40363 msgid ""
40364 "The appliance itself now initializes itself.  This involves starting certain "
40365 "processes like C<udev>, possibly printing some debug information, and "
40366 "finally running the daemon (C<guestfsd>)."
40367 msgstr ""
40368
40369 #. type: =item
40370 #: ../src/guestfs.pod:2439
40371 msgid "The daemon"
40372 msgstr ""
40373
40374 #. type: textblock
40375 #: ../src/guestfs.pod:2441
40376 msgid ""
40377 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40378 "should see:"
40379 msgstr ""
40380
40381 #. type: verbatim
40382 #: ../src/guestfs.pod:2444
40383 #, no-wrap
40384 msgid ""
40385 " verbose daemon enabled\n"
40386 "\n"
40387 msgstr ""
40388
40389 #. type: textblock
40390 #: ../src/guestfs.pod:2446
40391 msgid ""
40392 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40393 "connected on the other end to the library."
40394 msgstr ""
40395
40396 #. type: textblock
40397 #: ../src/guestfs.pod:2449
40398 msgid ""
40399 "The daemon connects to this port (and hence to the library) and sends a four "
40400 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40401 "protocol (see below)."
40402 msgstr ""
40403
40404 #. type: =head2
40405 #: ../src/guestfs.pod:2455
40406 msgid "COMMUNICATION PROTOCOL"
40407 msgstr ""
40408
40409 #. type: textblock
40410 #: ../src/guestfs.pod:2457
40411 msgid ""
40412 "Don't rely on using this protocol directly.  This section documents how it "
40413 "currently works, but it may change at any time."
40414 msgstr ""
40415
40416 #. type: textblock
40417 #: ../src/guestfs.pod:2460
40418 msgid ""
40419 "The protocol used to talk between the library and the daemon running inside "
40420 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40421 "1014, RFC 1832, RFC 4506)."
40422 msgstr ""
40423
40424 #. type: textblock
40425 #: ../src/guestfs.pod:2464
40426 msgid ""
40427 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40428 "this file is automatically generated)."
40429 msgstr ""
40430
40431 #. type: textblock
40432 #: ../src/guestfs.pod:2467
40433 msgid ""
40434 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40435 "and C<FileOut> parameters, which are handled with very simple request/reply "
40436 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40437 "parameters, which use the same request and reply messages, but they may also "
40438 "be followed by files sent using a chunked encoding."
40439 msgstr ""
40440
40441 #. type: =head3
40442 #: ../src/guestfs.pod:2474
40443 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40444 msgstr ""
40445
40446 #. type: textblock
40447 #: ../src/guestfs.pod:2476
40448 msgid "For ordinary functions, the request message is:"
40449 msgstr ""
40450
40451 #. type: verbatim
40452 #: ../src/guestfs.pod:2478
40453 #, no-wrap
40454 msgid ""
40455 " total length (header + arguments,\n"
40456 "      but not including the length word itself)\n"
40457 " struct guestfs_message_header (encoded as XDR)\n"
40458 " struct guestfs_<foo>_args (encoded as XDR)\n"
40459 "\n"
40460 msgstr ""
40461
40462 #. type: textblock
40463 #: ../src/guestfs.pod:2483
40464 msgid ""
40465 "The total length field allows the daemon to allocate a fixed size buffer "
40466 "into which it slurps the rest of the message.  As a result, the total length "
40467 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40468 "effective size of any request is limited to somewhere under this size."
40469 msgstr ""
40470
40471 #. type: textblock
40472 #: ../src/guestfs.pod:2489
40473 msgid ""
40474 "Note also that many functions don't take any arguments, in which case the "
40475 "C<guestfs_I<foo>_args> is completely omitted."
40476 msgstr ""
40477
40478 #. type: textblock
40479 #: ../src/guestfs.pod:2492
40480 msgid ""
40481 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40482 "receiver knows what type of args structure to expect, or none at all."
40483 msgstr ""
40484
40485 #. type: textblock
40486 #: ../src/guestfs.pod:2496
40487 msgid ""
40488 "For functions that take optional arguments, the optional arguments are "
40489 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40490 "arguments.  A bitmask in the header indicates which optional arguments are "
40491 "meaningful.  The bitmask is also checked to see if it contains bits set "
40492 "which the daemon does not know about (eg. if more optional arguments were "
40493 "added in a later version of the library), and this causes the call to be "
40494 "rejected."
40495 msgstr ""
40496
40497 #. type: textblock
40498 #: ../src/guestfs.pod:2504
40499 msgid "The reply message for ordinary functions is:"
40500 msgstr ""
40501
40502 #. type: verbatim
40503 #: ../src/guestfs.pod:2506
40504 #, no-wrap
40505 msgid ""
40506 " total length (header + ret,\n"
40507 "      but not including the length word itself)\n"
40508 " struct guestfs_message_header (encoded as XDR)\n"
40509 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40510 "\n"
40511 msgstr ""
40512
40513 #. type: textblock
40514 #: ../src/guestfs.pod:2511
40515 msgid ""
40516 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40517 "functions that return no formal return values."
40518 msgstr ""
40519
40520 #. type: textblock
40521 #: ../src/guestfs.pod:2514
40522 msgid ""
40523 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40524 msgstr ""
40525
40526 #. type: textblock
40527 #: ../src/guestfs.pod:2517
40528 msgid ""
40529 "In the case of an error, a flag is set in the header, and the reply message "
40530 "is slightly changed:"
40531 msgstr ""
40532
40533 #. type: verbatim
40534 #: ../src/guestfs.pod:2520
40535 #, no-wrap
40536 msgid ""
40537 " total length (header + error,\n"
40538 "      but not including the length word itself)\n"
40539 " struct guestfs_message_header (encoded as XDR)\n"
40540 " struct guestfs_message_error (encoded as XDR)\n"
40541 "\n"
40542 msgstr ""
40543
40544 #. type: textblock
40545 #: ../src/guestfs.pod:2525
40546 msgid ""
40547 "The C<guestfs_message_error> structure contains the error message as a "
40548 "string."
40549 msgstr ""
40550
40551 #. type: =head3
40552 #: ../src/guestfs.pod:2528
40553 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40554 msgstr ""
40555
40556 #. type: textblock
40557 #: ../src/guestfs.pod:2530
40558 msgid ""
40559 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40560 "The normal request message is sent (see above).  However this is followed by "
40561 "a sequence of file chunks."
40562 msgstr ""
40563
40564 #. type: verbatim
40565 #: ../src/guestfs.pod:2534
40566 #, no-wrap
40567 msgid ""
40568 " total length (header + arguments,\n"
40569 "      but not including the length word itself,\n"
40570 "      and not including the chunks)\n"
40571 " struct guestfs_message_header (encoded as XDR)\n"
40572 " struct guestfs_<foo>_args (encoded as XDR)\n"
40573 " sequence of chunks for FileIn param #0\n"
40574 " sequence of chunks for FileIn param #1 etc.\n"
40575 "\n"
40576 msgstr ""
40577
40578 #. type: textblock
40579 #: ../src/guestfs.pod:2542
40580 msgid "The \"sequence of chunks\" is:"
40581 msgstr ""
40582
40583 #. type: verbatim
40584 #: ../src/guestfs.pod:2544
40585 #, no-wrap
40586 msgid ""
40587 " length of chunk (not including length word itself)\n"
40588 " struct guestfs_chunk (encoded as XDR)\n"
40589 " length of chunk\n"
40590 " struct guestfs_chunk (encoded as XDR)\n"
40591 "   ...\n"
40592 " length of chunk\n"
40593 " struct guestfs_chunk (with data.data_len == 0)\n"
40594 "\n"
40595 msgstr ""
40596
40597 #. type: textblock
40598 #: ../src/guestfs.pod:2552
40599 msgid ""
40600 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40601 "is set in the final chunk to indicate either successful completion or early "
40602 "cancellation."
40603 msgstr ""
40604
40605 #. type: textblock
40606 #: ../src/guestfs.pod:2556
40607 msgid ""
40608 "At time of writing there are no functions that have more than one FileIn "
40609 "parameter.  However this is (theoretically) supported, by sending the "
40610 "sequence of chunks for each FileIn parameter one after another (from left to "
40611 "right)."
40612 msgstr ""
40613
40614 #. type: textblock
40615 #: ../src/guestfs.pod:2561
40616 msgid ""
40617 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40618 "transfer.  The library does this by sending a chunk with a special flag set "
40619 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40620 "RPC, does I<not> send any reply, and goes back to reading the next request."
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../src/guestfs.pod:2567
40625 msgid ""
40626 "The daemon may also cancel.  It does this by writing a special word "
40627 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40628 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40629 "cancel chunk).  The special word is chosen so that even if cancellation "
40630 "happens right at the end of the transfer (after the library has finished "
40631 "writing and has started listening for the reply), the \"spurious\" cancel "
40632 "flag will not be confused with the reply message."
40633 msgstr ""
40634
40635 #. type: textblock
40636 #: ../src/guestfs.pod:2576
40637 msgid ""
40638 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40639 "limit), and also files where the size is not known in advance (eg. from "
40640 "pipes or sockets).  However the chunks are rather small "
40641 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40642 "to keep much in memory."
40643 msgstr ""
40644
40645 #. type: =head3
40646 #: ../src/guestfs.pod:2582
40647 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40648 msgstr ""
40649
40650 #. type: textblock
40651 #: ../src/guestfs.pod:2584
40652 msgid ""
40653 "The protocol for FileOut parameters is exactly the same as for FileIn "
40654 "parameters, but with the roles of daemon and library reversed."
40655 msgstr ""
40656
40657 #. type: verbatim
40658 #: ../src/guestfs.pod:2587
40659 #, no-wrap
40660 msgid ""
40661 " total length (header + ret,\n"
40662 "      but not including the length word itself,\n"
40663 "      and not including the chunks)\n"
40664 " struct guestfs_message_header (encoded as XDR)\n"
40665 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40666 " sequence of chunks for FileOut param #0\n"
40667 " sequence of chunks for FileOut param #1 etc.\n"
40668 "\n"
40669 msgstr ""
40670
40671 #. type: =head3
40672 #: ../src/guestfs.pod:2595
40673 msgid "INITIAL MESSAGE"
40674 msgstr ""
40675
40676 #. type: textblock
40677 #: ../src/guestfs.pod:2597
40678 msgid ""
40679 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40680 "which indicates that the guest and daemon is alive.  This is what L</"
40681 "guestfs_launch> waits for."
40682 msgstr ""
40683
40684 #. type: =head3
40685 #: ../src/guestfs.pod:2601
40686 msgid "PROGRESS NOTIFICATION MESSAGES"
40687 msgstr ""
40688
40689 #. type: textblock
40690 #: ../src/guestfs.pod:2603
40691 msgid ""
40692 "The daemon may send progress notification messages at any time.  These are "
40693 "distinguished by the normal length word being replaced by "
40694 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40695 msgstr ""
40696
40697 #. type: textblock
40698 #: ../src/guestfs.pod:2607
40699 msgid ""
40700 "The library turns them into progress callbacks (see L</"
40701 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40702 "if not."
40703 msgstr ""
40704
40705 #. type: textblock
40706 #: ../src/guestfs.pod:2611
40707 msgid ""
40708 "The daemon self-limits the frequency of progress messages it sends (see "
40709 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40710 "messages."
40711 msgstr ""
40712
40713 #. type: =head1
40714 #: ../src/guestfs.pod:2615
40715 msgid "LIBGUESTFS VERSION NUMBERS"
40716 msgstr ""
40717
40718 #. type: textblock
40719 #: ../src/guestfs.pod:2617
40720 msgid ""
40721 "Since April 2010, libguestfs has started to make separate development and "
40722 "stable releases, along with corresponding branches in our git repository.  "
40723 "These separate releases can be identified by version number:"
40724 msgstr ""
40725
40726 #. type: verbatim
40727 #: ../src/guestfs.pod:2622
40728 #, no-wrap
40729 msgid ""
40730 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40731 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40732 "       |\n"
40733 "       v\n"
40734 " 1  .  3  .  5\n"
40735 " ^           ^\n"
40736 " |           |\n"
40737 " |           `-------- sub-version\n"
40738 " |\n"
40739 " `------ always '1' because we don't change the ABI\n"
40740 "\n"
40741 msgstr ""
40742
40743 #. type: textblock
40744 #: ../src/guestfs.pod:2633
40745 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40746 msgstr ""
40747
40748 #. type: textblock
40749 #: ../src/guestfs.pod:2635
40750 msgid ""
40751 "As time passes we cherry pick fixes from the development branch and backport "
40752 "those into the stable branch, the effect being that the stable branch should "
40753 "get more stable and less buggy over time.  So the stable releases are ideal "
40754 "for people who don't need new features but would just like the software to "
40755 "work."
40756 msgstr ""
40757
40758 #. type: textblock
40759 #: ../src/guestfs.pod:2641
40760 msgid "Our criteria for backporting changes are:"
40761 msgstr ""
40762
40763 #. type: textblock
40764 #: ../src/guestfs.pod:2647
40765 msgid ""
40766 "Documentation changes which don't affect any code are backported unless the "
40767 "documentation refers to a future feature which is not in stable."
40768 msgstr ""
40769
40770 #. type: textblock
40771 #: ../src/guestfs.pod:2653
40772 msgid ""
40773 "Bug fixes which are not controversial, fix obvious problems, and have been "
40774 "well tested are backported."
40775 msgstr ""
40776
40777 #. type: textblock
40778 #: ../src/guestfs.pod:2658
40779 msgid ""
40780 "Simple rearrangements of code which shouldn't affect how it works get "
40781 "backported.  This is so that the code in the two branches doesn't get too "
40782 "far out of step, allowing us to backport future fixes more easily."
40783 msgstr ""
40784
40785 #. type: textblock
40786 #: ../src/guestfs.pod:2664
40787 msgid ""
40788 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40789 "exceptional case: the new feature is required in order to implement an "
40790 "important bug fix."
40791 msgstr ""
40792
40793 #. type: textblock
40794 #: ../src/guestfs.pod:2670
40795 msgid ""
40796 "A new stable branch starts when we think the new features in development are "
40797 "substantial and compelling enough over the current stable branch to warrant "
40798 "it.  When that happens we create new stable and development versions 1.N.0 "
40799 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40800 "stable at this point, but by backporting fixes from development, that branch "
40801 "will stabilize over time."
40802 msgstr ""
40803
40804 #. type: =head1
40805 #: ../src/guestfs.pod:2678
40806 msgid "EXTENDING LIBGUESTFS"
40807 msgstr ""
40808
40809 #. type: =head2
40810 #: ../src/guestfs.pod:2680
40811 msgid "ADDING A NEW API ACTION"
40812 msgstr ""
40813
40814 #. type: textblock
40815 #: ../src/guestfs.pod:2682
40816 msgid ""
40817 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40818 "documentation) are generated, and this makes it easy to extend the "
40819 "libguestfs API."
40820 msgstr ""
40821
40822 #. type: textblock
40823 #: ../src/guestfs.pod:2686
40824 msgid "To add a new API action there are two changes:"
40825 msgstr ""
40826
40827 #. type: textblock
40828 #: ../src/guestfs.pod:2692
40829 msgid ""
40830 "You need to add a description of the call (name, parameters, return type, "
40831 "tests, documentation) to C<generator/generator_actions.ml>."
40832 msgstr ""
40833
40834 #. type: textblock
40835 #: ../src/guestfs.pod:2695
40836 msgid ""
40837 "There are two sorts of API action, depending on whether the call goes "
40838 "through to the daemon in the appliance, or is serviced entirely by the "
40839 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40840 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40841 "an example of the latter, since a trace flag is maintained in the handle and "
40842 "all tracing is done on the library side."
40843 msgstr ""
40844
40845 #. type: textblock
40846 #: ../src/guestfs.pod:2703
40847 msgid ""
40848 "Most new actions are of the first type, and get added to the "
40849 "C<daemon_functions> list.  Each function has a unique procedure number used "
40850 "in the RPC protocol which is assigned to that action when we publish "
40851 "libguestfs and cannot be reused.  Take the latest procedure number and "
40852 "increment it."
40853 msgstr ""
40854
40855 #. type: textblock
40856 #: ../src/guestfs.pod:2709
40857 msgid ""
40858 "For library-only actions of the second type, add to the "
40859 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40860 "library and do not travel over the RPC mechanism to the daemon, these "
40861 "functions do not need a procedure number, and so the procedure number is set "
40862 "to C<-1>."
40863 msgstr ""
40864
40865 #. type: textblock
40866 #: ../src/guestfs.pod:2717
40867 msgid "Implement the action (in C):"
40868 msgstr ""
40869
40870 #. type: textblock
40871 #: ../src/guestfs.pod:2719
40872 msgid ""
40873 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40874 "C<daemon/> directory."
40875 msgstr ""
40876
40877 #. type: textblock
40878 #: ../src/guestfs.pod:2722
40879 msgid ""
40880 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40881 "(note: double underscore) in the C<src/> directory."
40882 msgstr ""
40883
40884 #. type: textblock
40885 #: ../src/guestfs.pod:2725
40886 msgid "In either case, use another function as an example of what to do."
40887 msgstr ""
40888
40889 #. type: textblock
40890 #: ../src/guestfs.pod:2729
40891 msgid "After making these changes, use C<make> to compile."
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../src/guestfs.pod:2731
40896 msgid ""
40897 "Note that you don't need to implement the RPC, language bindings, manual "
40898 "pages or anything else.  It's all automatically generated from the OCaml "
40899 "description."
40900 msgstr ""
40901
40902 #. type: =head2
40903 #: ../src/guestfs.pod:2735
40904 msgid "ADDING TESTS FOR AN API ACTION"
40905 msgstr ""
40906
40907 #. type: textblock
40908 #: ../src/guestfs.pod:2737
40909 msgid ""
40910 "You can supply zero or as many tests as you want per API call.  The tests "
40911 "can either be added as part of the API description (C<generator/"
40912 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40913 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40914 "slower, so if possible use the first method."
40915 msgstr ""
40916
40917 #. type: textblock
40918 #: ../src/guestfs.pod:2743
40919 msgid ""
40920 "The following describes the test environment used when you add an API test "
40921 "in C<generator_actions.ml>."
40922 msgstr ""
40923
40924 #. type: textblock
40925 #: ../src/guestfs.pod:2746
40926 msgid "The test environment has 4 block devices:"
40927 msgstr ""
40928
40929 #. type: =item
40930 #: ../src/guestfs.pod:2750
40931 msgid "C</dev/sda> 500MB"
40932 msgstr ""
40933
40934 #. type: textblock
40935 #: ../src/guestfs.pod:2752
40936 msgid "General block device for testing."
40937 msgstr ""
40938
40939 #. type: =item
40940 #: ../src/guestfs.pod:2754
40941 msgid "C</dev/sdb> 50MB"
40942 msgstr ""
40943
40944 #. type: textblock
40945 #: ../src/guestfs.pod:2756
40946 msgid ""
40947 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40948 "operations."
40949 msgstr ""
40950
40951 #. type: =item
40952 #: ../src/guestfs.pod:2759
40953 msgid "C</dev/sdc> 10MB"
40954 msgstr ""
40955
40956 #. type: textblock
40957 #: ../src/guestfs.pod:2761
40958 msgid "Used in a few tests where two block devices are needed."
40959 msgstr ""
40960
40961 #. type: =item
40962 #: ../src/guestfs.pod:2763
40963 msgid "C</dev/sdd>"
40964 msgstr ""
40965
40966 #. type: textblock
40967 #: ../src/guestfs.pod:2765
40968 msgid "ISO with fixed content (see C<images/test.iso>)."
40969 msgstr ""
40970
40971 #. type: textblock
40972 #: ../src/guestfs.pod:2769
40973 msgid ""
40974 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40975 "appliance and block devices are reused between tests.  So don't try testing "
40976 "L</guestfs_kill_subprocess> :-x"
40977 msgstr ""
40978
40979 #. type: textblock
40980 #: ../src/guestfs.pod:2773
40981 msgid ""
40982 "Each test starts with an initial scenario, selected using one of the "
40983 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40984 "initialize the disks mentioned above in a particular way as documented in "
40985 "C<generator_types.ml>.  You should not assume anything about the previous "
40986 "contents of other disks that are not initialized."
40987 msgstr ""
40988
40989 #. type: textblock
40990 #: ../src/guestfs.pod:2779
40991 msgid ""
40992 "You can add a prerequisite clause to any individual test.  This is a run-"
40993 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40994 "testing a command which might not work on all variations of libguestfs "
40995 "builds.  A test that has prerequisite of C<Always> means to run "
40996 "unconditionally."
40997 msgstr ""
40998
40999 #. type: textblock
41000 #: ../src/guestfs.pod:2785
41001 msgid ""
41002 "In addition, packagers can skip individual tests by setting environment "
41003 "variables before running C<make check>."
41004 msgstr ""
41005
41006 #. type: verbatim
41007 #: ../src/guestfs.pod:2788
41008 #, no-wrap
41009 msgid ""
41010 " SKIP_TEST_<CMD>_<NUM>=1\n"
41011 "\n"
41012 msgstr ""
41013
41014 #. type: textblock
41015 #: ../src/guestfs.pod:2790
41016 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
41017 msgstr ""
41018
41019 #. type: verbatim
41020 #: ../src/guestfs.pod:2794
41021 #, no-wrap
41022 msgid ""
41023 " SKIP_TEST_<CMD>=1\n"
41024 "\n"
41025 msgstr ""
41026
41027 #. type: textblock
41028 #: ../src/guestfs.pod:2796
41029 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
41030 msgstr ""
41031
41032 #. type: textblock
41033 #: ../src/guestfs.pod:2798
41034 msgid "Packagers can run only certain tests by setting for example:"
41035 msgstr ""
41036
41037 #. type: verbatim
41038 #: ../src/guestfs.pod:2800
41039 #, no-wrap
41040 msgid ""
41041 " TEST_ONLY=\"vfs_type zerofree\"\n"
41042 "\n"
41043 msgstr ""
41044
41045 #. type: textblock
41046 #: ../src/guestfs.pod:2802
41047 msgid ""
41048 "See C<capitests/tests.c> for more details of how these environment variables "
41049 "work."
41050 msgstr ""
41051
41052 #. type: =head2
41053 #: ../src/guestfs.pod:2805
41054 msgid "DEBUGGING NEW API ACTIONS"
41055 msgstr ""
41056
41057 #. type: textblock
41058 #: ../src/guestfs.pod:2807
41059 msgid "Test new actions work before submitting them."
41060 msgstr ""
41061
41062 #. type: textblock
41063 #: ../src/guestfs.pod:2809
41064 msgid "You can use guestfish to try out new commands."
41065 msgstr ""
41066
41067 #. type: textblock
41068 #: ../src/guestfs.pod:2811
41069 msgid ""
41070 "Debugging the daemon is a problem because it runs inside a minimal "
41071 "environment.  However you can fprintf messages in the daemon to stderr, and "
41072 "they will show up if you use C<guestfish -v>."
41073 msgstr ""
41074
41075 #. type: =head2
41076 #: ../src/guestfs.pod:2815
41077 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
41078 msgstr ""
41079
41080 #. type: textblock
41081 #: ../src/guestfs.pod:2817
41082 msgid ""
41083 "Our C source code generally adheres to some basic code-formatting "
41084 "conventions.  The existing code base is not totally consistent on this "
41085 "front, but we do prefer that contributed code be formatted similarly.  In "
41086 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
41087 "indentation level, and other than that, follow the K&R style."
41088 msgstr ""
41089
41090 #. type: textblock
41091 #: ../src/guestfs.pod:2823
41092 msgid ""
41093 "If you use Emacs, add the following to one of one of your start-up files (e."
41094 "g., ~/.emacs), to help ensure that you get indentation right:"
41095 msgstr ""
41096
41097 #. type: verbatim
41098 #: ../src/guestfs.pod:2826
41099 #, no-wrap
41100 msgid ""
41101 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
41102 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
41103 " (add-hook 'find-file-hook\n"
41104 "     '(lambda () (if (and buffer-file-name\n"
41105 "                          (string-match \"/libguestfs\\\\>\"\n"
41106 "                              (buffer-file-name))\n"
41107 "                          (not (string-equal mode-name \"Change Log\"))\n"
41108 "                          (not (string-equal mode-name \"Makefile\")))\n"
41109 "                     (setq indent-tabs-mode nil))))\n"
41110 " \n"
41111 msgstr ""
41112
41113 #. type: verbatim
41114 #: ../src/guestfs.pod:2836
41115 #, no-wrap
41116 msgid ""
41117 " ;;; When editing C sources in libguestfs, use this style.\n"
41118 " (defun libguestfs-c-mode ()\n"
41119 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
41120 "   (interactive)\n"
41121 "   (c-set-style \"K&R\")\n"
41122 "   (setq c-indent-level 2)\n"
41123 "   (setq c-basic-offset 2))\n"
41124 " (add-hook 'c-mode-hook\n"
41125 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
41126 "                               (buffer-file-name))\n"
41127 "                           (libguestfs-c-mode))))\n"
41128 "\n"
41129 msgstr ""
41130
41131 #. type: textblock
41132 #: ../src/guestfs.pod:2848
41133 msgid "Enable warnings when compiling (and fix any problems this finds):"
41134 msgstr ""
41135
41136 #. type: verbatim
41137 #: ../src/guestfs.pod:2851
41138 #, no-wrap
41139 msgid ""
41140 " ./configure --enable-gcc-warnings\n"
41141 "\n"
41142 msgstr ""
41143
41144 #. type: textblock
41145 #: ../src/guestfs.pod:2853
41146 msgid "Useful targets are:"
41147 msgstr ""
41148
41149 #. type: verbatim
41150 #: ../src/guestfs.pod:2855
41151 #, no-wrap
41152 msgid ""
41153 " make syntax-check  # checks the syntax of the C code\n"
41154 " make check         # runs the test suite\n"
41155 "\n"
41156 msgstr ""
41157
41158 #. type: =head2
41159 #: ../src/guestfs.pod:2858
41160 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41161 msgstr ""
41162
41163 #. type: textblock
41164 #: ../src/guestfs.pod:2860
41165 msgid ""
41166 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41167 "which are used to do shell quoting."
41168 msgstr ""
41169
41170 #. type: =item
41171 #: ../src/guestfs.pod:2865
41172 msgid "%Q"
41173 msgstr ""
41174
41175 #. type: textblock
41176 #: ../src/guestfs.pod:2867
41177 msgid ""
41178 "Simple shell quoted string.  Any spaces or other shell characters are "
41179 "escaped for you."
41180 msgstr ""
41181
41182 #. type: =item
41183 #: ../src/guestfs.pod:2870
41184 msgid "%R"
41185 msgstr ""
41186
41187 #. type: textblock
41188 #: ../src/guestfs.pod:2872
41189 msgid ""
41190 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41191 "the sysroot."
41192 msgstr ""
41193
41194 #. type: verbatim
41195 #: ../src/guestfs.pod:2879
41196 #, no-wrap
41197 msgid ""
41198 " asprintf (&cmd, \"cat %R\", path);\n"
41199 "\n"
41200 msgstr ""
41201
41202 #. type: textblock
41203 #: ../src/guestfs.pod:2881
41204 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41205 msgstr ""
41206
41207 #. type: textblock
41208 #: ../src/guestfs.pod:2883
41209 msgid ""
41210 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41211 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41212 "they are not passed via the shell (instead, straight to exec).  You probably "
41213 "want to use the C<sysroot_path()> function however."
41214 msgstr ""
41215
41216 #. type: =head2
41217 #: ../src/guestfs.pod:2889
41218 msgid "SUBMITTING YOUR NEW API ACTIONS"
41219 msgstr ""
41220
41221 #. type: textblock
41222 #: ../src/guestfs.pod:2891
41223 msgid ""
41224 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41225 "libguestfs> and CC to L<rjones@redhat.com>."
41226 msgstr ""
41227
41228 #. type: =head2
41229 #: ../src/guestfs.pod:2895
41230 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41231 msgstr ""
41232
41233 #. type: textblock
41234 #: ../src/guestfs.pod:2897
41235 msgid "We support i18n (gettext anyhow) in the library."
41236 msgstr ""
41237
41238 #. type: textblock
41239 #: ../src/guestfs.pod:2899
41240 msgid ""
41241 "However many messages come from the daemon, and we don't translate those at "
41242 "the moment.  One reason is that the appliance generally has all locale files "
41243 "removed from it, because they take up a lot of space.  So we'd have to readd "
41244 "some of those, as well as copying our PO files into the appliance."
41245 msgstr ""
41246
41247 #. type: textblock
41248 #: ../src/guestfs.pod:2905
41249 msgid ""
41250 "Debugging messages are never translated, since they are intended for the "
41251 "programmers."
41252 msgstr ""
41253
41254 #. type: =head2
41255 #: ../src/guestfs.pod:2908
41256 msgid "SOURCE CODE SUBDIRECTORIES"
41257 msgstr ""
41258
41259 #. type: =item
41260 #: ../src/guestfs.pod:2912
41261 msgid "C<align>"
41262 msgstr ""
41263
41264 #. type: textblock
41265 #: ../src/guestfs.pod:2914
41266 msgid "L<virt-alignment-scan(1)> command and documentation."
41267 msgstr ""
41268
41269 #. type: textblock
41270 #: ../src/guestfs.pod:2918
41271 msgid "The libguestfs appliance, build scripts and so on."
41272 msgstr ""
41273
41274 #. type: =item
41275 #: ../src/guestfs.pod:2920
41276 msgid "C<capitests>"
41277 msgstr ""
41278
41279 #. type: textblock
41280 #: ../src/guestfs.pod:2922
41281 msgid "Automated tests of the C API."
41282 msgstr ""
41283
41284 #. type: =item
41285 #: ../src/guestfs.pod:2924
41286 msgid "C<cat>"
41287 msgstr ""
41288
41289 #. type: textblock
41290 #: ../src/guestfs.pod:2926
41291 msgid ""
41292 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41293 "documentation."
41294 msgstr ""
41295
41296 #. type: =item
41297 #: ../src/guestfs.pod:2929
41298 msgid "C<caution>"
41299 msgstr ""
41300
41301 #. type: textblock
41302 #: ../src/guestfs.pod:2931
41303 msgid ""
41304 "Safety and liveness tests of components that libguestfs depends upon (not of "
41305 "libguestfs itself).  Mainly this is for qemu and the kernel."
41306 msgstr ""
41307
41308 #. type: =item
41309 #: ../src/guestfs.pod:2934
41310 msgid "C<clone>"
41311 msgstr ""
41312
41313 #. type: textblock
41314 #: ../src/guestfs.pod:2936
41315 msgid ""
41316 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41317 "command and documentation."
41318 msgstr ""
41319
41320 #. type: =item
41321 #: ../src/guestfs.pod:2939
41322 msgid "C<contrib>"
41323 msgstr ""
41324
41325 #. type: textblock
41326 #: ../src/guestfs.pod:2941
41327 msgid "Outside contributions, experimental parts."
41328 msgstr ""
41329
41330 #. type: =item
41331 #: ../src/guestfs.pod:2943
41332 msgid "C<daemon>"
41333 msgstr ""
41334
41335 #. type: textblock
41336 #: ../src/guestfs.pod:2945
41337 msgid ""
41338 "The daemon that runs inside the libguestfs appliance and carries out actions."
41339 msgstr ""
41340
41341 #. type: =item
41342 #: ../src/guestfs.pod:2948
41343 msgid "C<df>"
41344 msgstr ""
41345
41346 #. type: textblock
41347 #: ../src/guestfs.pod:2950
41348 msgid "L<virt-df(1)> command and documentation."
41349 msgstr ""
41350
41351 #. type: =item
41352 #: ../src/guestfs.pod:2952
41353 msgid "C<edit>"
41354 msgstr ""
41355
41356 #. type: textblock
41357 #: ../src/guestfs.pod:2954
41358 msgid "L<virt-edit(1)> command and documentation."
41359 msgstr ""
41360
41361 #. type: =item
41362 #: ../src/guestfs.pod:2956
41363 msgid "C<examples>"
41364 msgstr ""
41365
41366 #. type: textblock
41367 #: ../src/guestfs.pod:2958
41368 msgid "C API example code."
41369 msgstr ""
41370
41371 #. type: =item
41372 #: ../src/guestfs.pod:2960
41373 msgid "C<extratests>"
41374 msgstr ""
41375
41376 #. type: textblock
41377 #: ../src/guestfs.pod:2962
41378 msgid ""
41379 "Extra tests.  These are not run by default because they require special "
41380 "tools or configuration."
41381 msgstr ""
41382
41383 #. type: =item
41384 #: ../src/guestfs.pod:2965
41385 msgid "C<fish>"
41386 msgstr ""
41387
41388 #. type: textblock
41389 #: ../src/guestfs.pod:2967
41390 msgid ""
41391 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41392 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41393 "L<virt-tar-out(1)>."
41394 msgstr ""
41395
41396 #. type: =item
41397 #: ../src/guestfs.pod:2971
41398 msgid "C<fuse>"
41399 msgstr ""
41400
41401 #. type: textblock
41402 #: ../src/guestfs.pod:2973
41403 msgid ""
41404 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41405 msgstr ""
41406
41407 #. type: =item
41408 #: ../src/guestfs.pod:2975
41409 msgid "C<generator>"
41410 msgstr ""
41411
41412 #. type: textblock
41413 #: ../src/guestfs.pod:2977
41414 msgid ""
41415 "The crucially important generator, used to automatically generate large "
41416 "amounts of boilerplate C code for things like RPC and bindings."
41417 msgstr ""
41418
41419 #. type: =item
41420 #: ../src/guestfs.pod:2980
41421 msgid "C<images>"
41422 msgstr ""
41423
41424 #. type: textblock
41425 #: ../src/guestfs.pod:2982
41426 msgid "Files used by the test suite."
41427 msgstr ""
41428
41429 #. type: textblock
41430 #: ../src/guestfs.pod:2984
41431 msgid "Some \"phony\" guest images which we test against."
41432 msgstr ""
41433
41434 #. type: =item
41435 #: ../src/guestfs.pod:2986
41436 msgid "C<inspector>"
41437 msgstr ""
41438
41439 #. type: textblock
41440 #: ../src/guestfs.pod:2988
41441 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41442 msgstr ""
41443
41444 #. type: =item
41445 #: ../src/guestfs.pod:2990
41446 msgid "C<logo>"
41447 msgstr ""
41448
41449 #. type: textblock
41450 #: ../src/guestfs.pod:2992
41451 msgid "Logo used on the website.  The fish is called Arthur by the way."
41452 msgstr ""
41453
41454 #. type: =item
41455 #: ../src/guestfs.pod:2994
41456 msgid "C<m4>"
41457 msgstr ""
41458
41459 #. type: textblock
41460 #: ../src/guestfs.pod:2996
41461 msgid "M4 macros used by autoconf."
41462 msgstr ""
41463
41464 #. type: =item
41465 #: ../src/guestfs.pod:2998
41466 msgid "C<po>"
41467 msgstr ""
41468
41469 #. type: textblock
41470 #: ../src/guestfs.pod:3000
41471 msgid "Translations of simple gettext strings."
41472 msgstr ""
41473
41474 #. type: =item
41475 #: ../src/guestfs.pod:3002
41476 msgid "C<po-docs>"
41477 msgstr ""
41478
41479 #. type: textblock
41480 #: ../src/guestfs.pod:3004
41481 msgid ""
41482 "The build infrastructure and PO files for translations of manpages and POD "
41483 "files.  Eventually this will be combined with the C<po> directory, but that "
41484 "is rather complicated."
41485 msgstr ""
41486
41487 #. type: =item
41488 #: ../src/guestfs.pod:3008
41489 msgid "C<regressions>"
41490 msgstr ""
41491
41492 #. type: textblock
41493 #: ../src/guestfs.pod:3010
41494 msgid "Regression tests."
41495 msgstr ""
41496
41497 #. type: =item
41498 #: ../src/guestfs.pod:3012
41499 msgid "C<rescue>"
41500 msgstr ""
41501
41502 #. type: textblock
41503 #: ../src/guestfs.pod:3014
41504 msgid "L<virt-rescue(1)> command and documentation."
41505 msgstr ""
41506
41507 #. type: =item
41508 #: ../src/guestfs.pod:3016
41509 msgid "C<resize>"
41510 msgstr ""
41511
41512 #. type: textblock
41513 #: ../src/guestfs.pod:3018
41514 msgid "L<virt-resize(1)> command and documentation."
41515 msgstr ""
41516
41517 #. type: =item
41518 #: ../src/guestfs.pod:3020
41519 msgid "C<sparsify>"
41520 msgstr ""
41521
41522 #. type: textblock
41523 #: ../src/guestfs.pod:3022
41524 msgid "L<virt-sparsify(1)> command and documentation."
41525 msgstr ""
41526
41527 #. type: =item
41528 #: ../src/guestfs.pod:3024
41529 msgid "C<src>"
41530 msgstr ""
41531
41532 #. type: textblock
41533 #: ../src/guestfs.pod:3026
41534 msgid "Source code to the C library."
41535 msgstr ""
41536
41537 #. type: =item
41538 #: ../src/guestfs.pod:3028
41539 msgid "C<tools>"
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../src/guestfs.pod:3030
41544 msgid ""
41545 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41546 msgstr ""
41547
41548 #. type: =item
41549 #: ../src/guestfs.pod:3032
41550 msgid "C<test-tool>"
41551 msgstr ""
41552
41553 #. type: textblock
41554 #: ../src/guestfs.pod:3034
41555 msgid ""
41556 "Test tool for end users to test if their qemu/kernel combination will work "
41557 "with libguestfs."
41558 msgstr ""
41559
41560 #. type: =item
41561 #: ../src/guestfs.pod:3037
41562 msgid "C<csharp>"
41563 msgstr ""
41564
41565 #. type: =item
41566 #: ../src/guestfs.pod:3039
41567 msgid "C<erlang>"
41568 msgstr ""
41569
41570 #. type: =item
41571 #: ../src/guestfs.pod:3041
41572 msgid "C<haskell>"
41573 msgstr ""
41574
41575 #. type: =item
41576 #: ../src/guestfs.pod:3043
41577 msgid "C<java>"
41578 msgstr ""
41579
41580 #. type: =item
41581 #: ../src/guestfs.pod:3045
41582 msgid "C<ocaml>"
41583 msgstr ""
41584
41585 #. type: =item
41586 #: ../src/guestfs.pod:3047
41587 msgid "C<php>"
41588 msgstr ""
41589
41590 #. type: =item
41591 #: ../src/guestfs.pod:3049
41592 msgid "C<perl>"
41593 msgstr ""
41594
41595 #. type: =item
41596 #: ../src/guestfs.pod:3051
41597 msgid "C<python>"
41598 msgstr ""
41599
41600 #. type: =item
41601 #: ../src/guestfs.pod:3053
41602 msgid "C<ruby>"
41603 msgstr ""
41604
41605 #. type: textblock
41606 #: ../src/guestfs.pod:3055
41607 msgid "Language bindings."
41608 msgstr ""
41609
41610 #. type: =head2
41611 #: ../src/guestfs.pod:3059
41612 msgid "MAKING A STABLE RELEASE"
41613 msgstr ""
41614
41615 #. type: textblock
41616 #: ../src/guestfs.pod:3061
41617 msgid ""
41618 "When we make a stable release, there are several steps documented here.  See "
41619 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41620 "branch policy."
41621 msgstr ""
41622
41623 #. type: textblock
41624 #: ../src/guestfs.pod:3069
41625 msgid ""
41626 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../src/guestfs.pod:3074
41631 msgid "Finalize RELEASE-NOTES."
41632 msgstr ""
41633
41634 #. type: textblock
41635 #: ../src/guestfs.pod:3078
41636 msgid "Update ROADMAP."
41637 msgstr ""
41638
41639 #. type: textblock
41640 #: ../src/guestfs.pod:3082
41641 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41642 msgstr ""
41643
41644 #. type: textblock
41645 #: ../src/guestfs.pod:3086
41646 msgid "Push and pull from Transifex."
41647 msgstr ""
41648
41649 #. type: verbatim
41650 #: ../src/guestfs.pod:3090
41651 #, no-wrap
41652 msgid ""
41653 " tx push -s\n"
41654 "\n"
41655 msgstr ""
41656
41657 #. type: textblock
41658 #: ../src/guestfs.pod:3092
41659 msgid "to push the latest POT files to Transifex.  Then run:"
41660 msgstr ""
41661
41662 #. type: verbatim
41663 #: ../src/guestfs.pod:3094
41664 #, no-wrap
41665 msgid ""
41666 " ./tx-pull.sh\n"
41667 "\n"
41668 msgstr ""
41669
41670 #. type: textblock
41671 #: ../src/guestfs.pod:3096
41672 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41673 msgstr ""
41674
41675 #. type: textblock
41676 #: ../src/guestfs.pod:3100
41677 msgid ""
41678 "Create new stable and development directories under L<http://libguestfs.org/"
41679 "download>."
41680 msgstr ""
41681
41682 #. type: textblock
41683 #: ../src/guestfs.pod:3105
41684 msgid "Create the branch in git:"
41685 msgstr ""
41686
41687 #. type: verbatim
41688 #: ../src/guestfs.pod:3107
41689 #, no-wrap
41690 msgid ""
41691 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41692 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41693 " git branch stable-1.XX\n"
41694 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41695 "\n"
41696 msgstr ""
41697
41698 #. type: =head1
41699 #: ../src/guestfs.pod:3114
41700 msgid "LIMITS"
41701 msgstr ""
41702
41703 #. type: =head2
41704 #: ../src/guestfs.pod:3116
41705 msgid "PROTOCOL LIMITS"
41706 msgstr ""
41707
41708 #. type: textblock
41709 #: ../src/guestfs.pod:3118
41710 msgid ""
41711 "Internally libguestfs uses a message-based protocol to pass API calls and "
41712 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41713 "plenty more detail about this).  The maximum message size used by the "
41714 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41715 "aware of this limit.  The API calls which may be affected are individually "
41716 "documented, with a link back to this section of the documentation."
41717 msgstr ""
41718
41719 #. type: textblock
41720 #: ../src/guestfs.pod:3126
41721 msgid ""
41722 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41723 "a simple string.  Because this string is at some point internally encoded as "
41724 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41725 "the requested file is larger than this then you will get an error."
41726 msgstr ""
41727
41728 #. type: textblock
41729 #: ../src/guestfs.pod:3132
41730 msgid ""
41731 "In order to transfer large files into and out of the guest filesystem, you "
41732 "need to use particular calls that support this.  The sections L</UPLOADING> "
41733 "and L</DOWNLOADING> document how to do this."
41734 msgstr ""
41735
41736 #. type: textblock
41737 #: ../src/guestfs.pod:3136
41738 msgid ""
41739 "You might also consider mounting the disk image using our FUSE filesystem "
41740 "support (L<guestmount(1)>)."
41741 msgstr ""
41742
41743 #. type: =head2
41744 #: ../src/guestfs.pod:3139
41745 msgid "MAXIMUM NUMBER OF DISKS"
41746 msgstr ""
41747
41748 #. type: textblock
41749 #: ../src/guestfs.pod:3141
41750 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41751 msgstr ""
41752
41753 #. type: textblock
41754 #: ../src/guestfs.pod:3144
41755 msgid ""
41756 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41757 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41758 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41759 "purposes."
41760 msgstr ""
41761
41762 #. type: textblock
41763 #: ../src/guestfs.pod:3149
41764 msgid ""
41765 "We are working to substantially raise this limit in future versions but it "
41766 "requires complex changes to qemu."
41767 msgstr ""
41768
41769 #. type: textblock
41770 #: ../src/guestfs.pod:3152
41771 msgid ""
41772 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41773 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41774 "requires changes to qemu."
41775 msgstr ""
41776
41777 #. type: =head2
41778 #: ../src/guestfs.pod:3156
41779 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41780 msgstr ""
41781
41782 #. type: textblock
41783 #: ../src/guestfs.pod:3158
41784 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41785 msgstr ""
41786
41787 #. type: textblock
41788 #: ../src/guestfs.pod:3160
41789 msgid ""
41790 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41791 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41792 msgstr ""
41793
41794 #. type: textblock
41795 #: ../src/guestfs.pod:3163
41796 msgid ""
41797 "If you attach a disk with more than 15 partitions, the extra partitions are "
41798 "ignored by libguestfs."
41799 msgstr ""
41800
41801 #. type: =head2
41802 #: ../src/guestfs.pod:3166
41803 msgid "MAXIMUM SIZE OF A DISK"
41804 msgstr ""
41805
41806 #. type: textblock
41807 #: ../src/guestfs.pod:3168
41808 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41809 msgstr ""
41810
41811 #. type: textblock
41812 #: ../src/guestfs.pod:3170
41813 msgid ""
41814 "We have tested block devices up to 1 exabyte (2**60 or "
41815 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41816 "filesystem."
41817 msgstr ""
41818
41819 #. type: textblock
41820 #: ../src/guestfs.pod:3174
41821 msgid ""
41822 "Although libguestfs probably does not impose any limit, the underlying host "
41823 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41824 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41825 "TB).  If you store disk images as host logical volumes then you are limited "
41826 "by the maximum size of an LV."
41827 msgstr ""
41828
41829 #. type: textblock
41830 #: ../src/guestfs.pod:3180
41831 msgid ""
41832 "For the hugest disk image files, we recommend using XFS on the host for "
41833 "storage."
41834 msgstr ""
41835
41836 #. type: =head2
41837 #: ../src/guestfs.pod:3183
41838 msgid "MAXIMUM SIZE OF A PARTITION"
41839 msgstr ""
41840
41841 #. type: textblock
41842 #: ../src/guestfs.pod:3185
41843 msgid ""
41844 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41845 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41846 "address a partition located beyond 2 TB on the disk."
41847 msgstr ""
41848
41849 #. type: textblock
41850 #: ../src/guestfs.pod:3189
41851 msgid ""
41852 "It is recommended that you use GPT partitions on disks which are larger than "
41853 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41854 "which are theoretically larger than the largest disk we could support."
41855 msgstr ""
41856
41857 #. type: =head2
41858 #: ../src/guestfs.pod:3194
41859 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41860 msgstr ""
41861
41862 #. type: textblock
41863 #: ../src/guestfs.pod:3196
41864 msgid ""
41865 "This depends on the filesystem type.  libguestfs itself does not impose any "
41866 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41867 "what these limits are."
41868 msgstr ""
41869
41870 #. type: =head2
41871 #: ../src/guestfs.pod:3200
41872 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41873 msgstr ""
41874
41875 #. type: textblock
41876 #: ../src/guestfs.pod:3202
41877 msgid ""
41878 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41879 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41880 "uploads and downloads."
41881 msgstr ""
41882
41883 #. type: =head2
41884 #: ../src/guestfs.pod:3206
41885 msgid "INSPECTION LIMITS"
41886 msgstr ""
41887
41888 #. type: textblock
41889 #: ../src/guestfs.pod:3208
41890 msgid ""
41891 "The inspection code has several arbitrary limits on things like the size of "
41892 "Windows Registry hive it will read, and the length of product name.  These "
41893 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41894 "memory and disk space on the host, and should not be reached in practice.  "
41895 "See the source code for more information."
41896 msgstr ""
41897
41898 #. type: textblock
41899 #: ../src/guestfs.pod:3234
41900 msgid ""
41901 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41902 "effect as calling C<guestfs_set_verbose (g, 1)>."
41903 msgstr ""
41904
41905 #. type: textblock
41906 #: ../src/guestfs.pod:3246
41907 msgid ""
41908 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41909 "the discussion of paths in section L</PATH> above."
41910 msgstr ""
41911
41912 #. type: textblock
41913 #: ../src/guestfs.pod:3255
41914 msgid "See also L</QEMU WRAPPERS> above."
41915 msgstr ""
41916
41917 #. type: textblock
41918 #: ../src/guestfs.pod:3259
41919 msgid ""
41920 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41921 "effect as calling C<guestfs_set_trace (g, 1)>."
41922 msgstr ""
41923
41924 #. type: textblock
41925 #: ../src/guestfs.pod:3277
41926 msgid ""
41927 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41928 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41929 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41930 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41931 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41932 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41933 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41934 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
41935 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
41936 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
41937 msgstr ""
41938
41939 #. type: textblock
41940 #: ../src/guestfs.pod:3314
41941 msgid ""
41942 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41943 "(8)>, L<disktype(1)>."
41944 msgstr ""
41945
41946 #. type: =head1
41947 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
41948 #: ../tools/virt-win-reg.pl:772
41949 msgid "BUGS"
41950 msgstr ""
41951
41952 #. type: textblock
41953 #: ../src/guestfs.pod:3323
41954 msgid "To get a list of bugs against libguestfs use this link:"
41955 msgstr ""
41956
41957 #. type: textblock
41958 #: ../src/guestfs.pod:3325
41959 msgid ""
41960 "L<https://bugzilla.redhat.com/buglist.cgi?"
41961 "component=libguestfs&product=Virtualization+Tools>"
41962 msgstr ""
41963
41964 #. type: textblock
41965 #: ../src/guestfs.pod:3327
41966 msgid "To report a new bug against libguestfs use this link:"
41967 msgstr ""
41968
41969 #. type: textblock
41970 #: ../src/guestfs.pod:3329
41971 msgid ""
41972 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41973 "component=libguestfs&product=Virtualization+Tools>"
41974 msgstr ""
41975
41976 #. type: textblock
41977 #: ../src/guestfs.pod:3331
41978 msgid "When reporting a bug, please check:"
41979 msgstr ""
41980
41981 #. type: textblock
41982 #: ../src/guestfs.pod:3337
41983 msgid "That the bug hasn't been reported already."
41984 msgstr ""
41985
41986 #. type: textblock
41987 #: ../src/guestfs.pod:3341
41988 msgid "That you are testing a recent version."
41989 msgstr ""
41990
41991 #. type: textblock
41992 #: ../src/guestfs.pod:3345
41993 msgid "Describe the bug accurately, and give a way to reproduce it."
41994 msgstr ""
41995
41996 #. type: textblock
41997 #: ../src/guestfs.pod:3349
41998 msgid ""
41999 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
42000 "bug report."
42001 msgstr ""
42002
42003 #. type: textblock
42004 #: ../test-tool/libguestfs-test-tool.pod:5
42005 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
42006 msgstr ""
42007
42008 #. type: verbatim
42009 #: ../test-tool/libguestfs-test-tool.pod:9
42010 #, no-wrap
42011 msgid ""
42012 " libguestfs-test-tool [--options]\n"
42013 "\n"
42014 msgstr ""
42015
42016 #. type: textblock
42017 #: ../test-tool/libguestfs-test-tool.pod:13
42018 msgid ""
42019 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
42020 "to check basic libguestfs functionality is working.  This is needed because "
42021 "libguestfs occasionally breaks for reasons beyond our control: usually "
42022 "because of changes in the underlying qemu or kernel packages, or the host "
42023 "environment."
42024 msgstr ""
42025
42026 #. type: textblock
42027 #: ../test-tool/libguestfs-test-tool.pod:19
42028 msgid "If you suspect a problem in libguestfs, then just run:"
42029 msgstr ""
42030
42031 #. type: verbatim
42032 #: ../test-tool/libguestfs-test-tool.pod:21
42033 #, no-wrap
42034 msgid ""
42035 " libguestfs-test-tool\n"
42036 "\n"
42037 msgstr ""
42038
42039 #. type: textblock
42040 #: ../test-tool/libguestfs-test-tool.pod:23
42041 msgid "It will print lots of diagnostic messages."
42042 msgstr ""
42043
42044 #. type: textblock
42045 #: ../test-tool/libguestfs-test-tool.pod:25
42046 msgid "If it runs to completion successfully, you will see this near the end:"
42047 msgstr ""
42048
42049 #. type: verbatim
42050 #: ../test-tool/libguestfs-test-tool.pod:27
42051 #, no-wrap
42052 msgid ""
42053 " ===== TEST FINISHED OK =====\n"
42054 "\n"
42055 msgstr ""
42056
42057 #. type: textblock
42058 #: ../test-tool/libguestfs-test-tool.pod:29
42059 msgid "and the test tool will exit with code 0."
42060 msgstr ""
42061
42062 #. type: textblock
42063 #: ../test-tool/libguestfs-test-tool.pod:31
42064 msgid ""
42065 "If it fails (and/or exits with non-zero error code), please paste the "
42066 "I<complete, unedited> output of the test tool into a bug report.  More "
42067 "information about reporting bugs can be found on the L<http://libguestfs.org/"
42068 "> website."
42069 msgstr ""
42070
42071 #. type: textblock
42072 #: ../test-tool/libguestfs-test-tool.pod:42
42073 msgid "Display short usage information and exit."
42074 msgstr ""
42075
42076 #. type: =item
42077 #: ../test-tool/libguestfs-test-tool.pod:44
42078 msgid "B<--qemu qemu_binary>"
42079 msgstr ""
42080
42081 #. type: textblock
42082 #: ../test-tool/libguestfs-test-tool.pod:46
42083 msgid ""
42084 "If you have downloaded another qemu binary, point this option at the full "
42085 "path of the binary to try it."
42086 msgstr ""
42087
42088 #. type: =item
42089 #: ../test-tool/libguestfs-test-tool.pod:49
42090 msgid "B<--qemudir qemu_source_dir>"
42091 msgstr ""
42092
42093 #. type: textblock
42094 #: ../test-tool/libguestfs-test-tool.pod:51
42095 msgid ""
42096 "If you have compiled qemu from source, point this option at the source "
42097 "directory to try it."
42098 msgstr ""
42099
42100 #. type: =item
42101 #: ../test-tool/libguestfs-test-tool.pod:54
42102 msgid "B<-t N>"
42103 msgstr ""
42104
42105 #. type: =item
42106 #: ../test-tool/libguestfs-test-tool.pod:56
42107 msgid "B<--timeout N>"
42108 msgstr ""
42109
42110 #. type: textblock
42111 #: ../test-tool/libguestfs-test-tool.pod:58
42112 msgid ""
42113 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
42114 "minutes) which does not usually need to be adjusted."
42115 msgstr ""
42116
42117 #. type: =head1
42118 #: ../test-tool/libguestfs-test-tool.pod:63
42119 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
42120 msgstr ""
42121
42122 #. type: textblock
42123 #: ../test-tool/libguestfs-test-tool.pod:65
42124 msgid ""
42125 "If you have compiled another version of qemu from source and would like to "
42126 "try that, then you can use the I<--qemudir> option to point to the qemu "
42127 "source directory."
42128 msgstr ""
42129
42130 #. type: textblock
42131 #: ../test-tool/libguestfs-test-tool.pod:69
42132 msgid ""
42133 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42134 "option to point to the binary."
42135 msgstr ""
42136
42137 #. type: textblock
42138 #: ../test-tool/libguestfs-test-tool.pod:72
42139 msgid ""
42140 "Note when using these options, you can ignore the business of qemu wrapper "
42141 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42142 "wrapper script for you if one is needed."
42143 msgstr ""
42144
42145 #. type: =head1
42146 #: ../test-tool/libguestfs-test-tool.pod:76
42147 msgid "TRYING OUT A DIFFERENT KERNEL"
42148 msgstr ""
42149
42150 #. type: textblock
42151 #: ../test-tool/libguestfs-test-tool.pod:78
42152 msgid ""
42153 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42154 "libguestfs tries.  You do this by setting the environment variables "
42155 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42156 msgstr ""
42157
42158 #. type: textblock
42159 #: ../test-tool/libguestfs-test-tool.pod:82
42160 msgid ""
42161 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42162 "information."
42163 msgstr ""
42164
42165 #. type: =head1
42166 #: ../test-tool/libguestfs-test-tool.pod:85
42167 msgid "SELF-DIAGNOSIS"
42168 msgstr ""
42169
42170 #. type: textblock
42171 #: ../test-tool/libguestfs-test-tool.pod:87
42172 msgid ""
42173 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42174 "produced by libguestfs-test-tool and/or possible errors."
42175 msgstr ""
42176
42177 #. type: textblock
42178 #: ../test-tool/libguestfs-test-tool.pod:92
42179 msgid ""
42180 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42181 "I<1> if there was an error."
42182 msgstr ""
42183
42184 #. type: textblock
42185 #: ../test-tool/libguestfs-test-tool.pod:97
42186 msgid ""
42187 "For the full list of environment variables which may affect libguestfs, "
42188 "please see the L<guestfs(3)> manual page."
42189 msgstr ""
42190
42191 #. type: textblock
42192 #: ../test-tool/libguestfs-test-tool.pod:102
42193 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42194 msgstr ""
42195
42196 #. type: textblock
42197 #: ../tools/virt-list-filesystems.pl:32
42198 msgid ""
42199 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42200 msgstr ""
42201
42202 #. type: verbatim
42203 #: ../tools/virt-list-filesystems.pl:36
42204 #, no-wrap
42205 msgid ""
42206 " virt-list-filesystems [--options] domname\n"
42207 "\n"
42208 msgstr ""
42209
42210 #. type: verbatim
42211 #: ../tools/virt-list-filesystems.pl:38
42212 #, no-wrap
42213 msgid ""
42214 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42215 "\n"
42216 msgstr ""
42217
42218 #. type: textblock
42219 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42220 msgid ""
42221 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42222 "replacement."
42223 msgstr ""
42224
42225 #. type: textblock
42226 #: ../tools/virt-list-filesystems.pl:45
42227 msgid ""
42228 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42229 "are contained in a virtual machine or disk image."
42230 msgstr ""
42231
42232 #. type: textblock
42233 #: ../tools/virt-list-filesystems.pl:49
42234 msgid ""
42235 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42236 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42237 "> tool."
42238 msgstr ""
42239
42240 #. type: textblock
42241 #: ../tools/virt-list-filesystems.pl:112
42242 msgid ""
42243 "With this option, C<virt-list-filesystems> displays the type of each "
42244 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42245 msgstr ""
42246
42247 #. type: =item
42248 #: ../tools/virt-list-filesystems.pl:119
42249 msgid "B<-a>"
42250 msgstr ""
42251
42252 #. type: textblock
42253 #: ../tools/virt-list-filesystems.pl:123
42254 msgid ""
42255 "Normally we only show mountable filesystems.  If this option is given then "
42256 "swap devices are shown too."
42257 msgstr ""
42258
42259 #. type: textblock
42260 #: ../tools/virt-list-filesystems.pl:197
42261 msgid ""
42262 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42263 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42264 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42265 msgstr ""
42266
42267 #. type: textblock
42268 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42269 msgid "Copyright (C) 2009 Red Hat Inc."
42270 msgstr ""
42271
42272 #. type: textblock
42273 #: ../tools/virt-list-partitions.pl:32
42274 msgid ""
42275 "virt-list-partitions - List partitions in a virtual machine or disk image"
42276 msgstr ""
42277
42278 #. type: verbatim
42279 #: ../tools/virt-list-partitions.pl:36
42280 #, no-wrap
42281 msgid ""
42282 " virt-list-partitions [--options] domname\n"
42283 "\n"
42284 msgstr ""
42285
42286 #. type: verbatim
42287 #: ../tools/virt-list-partitions.pl:38
42288 #, no-wrap
42289 msgid ""
42290 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42291 "\n"
42292 msgstr ""
42293
42294 #. type: textblock
42295 #: ../tools/virt-list-partitions.pl:45
42296 msgid ""
42297 "C<virt-list-partitions> is a command line tool to list the partitions that "
42298 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42299 "first step to using L<virt-resize(1)>."
42300 msgstr ""
42301
42302 #. type: textblock
42303 #: ../tools/virt-list-partitions.pl:50
42304 msgid ""
42305 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42306 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42307 "> tool."
42308 msgstr ""
42309
42310 #. type: textblock
42311 #: ../tools/virt-list-partitions.pl:113
42312 msgid "Show sizes in human-readable form (eg. \"1G\")."
42313 msgstr ""
42314
42315 #. type: textblock
42316 #: ../tools/virt-list-partitions.pl:123
42317 msgid ""
42318 "With this option, C<virt-list-partitions> displays the type and size of each "
42319 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42320 msgstr ""
42321
42322 #. type: =item
42323 #: ../tools/virt-list-partitions.pl:130
42324 msgid "B<-t>"
42325 msgstr ""
42326
42327 #. type: =item
42328 #: ../tools/virt-list-partitions.pl:132
42329 msgid "B<--total>"
42330 msgstr ""
42331
42332 #. type: textblock
42333 #: ../tools/virt-list-partitions.pl:134
42334 msgid ""
42335 "Display the total size of each block device (as a separate row or rows)."
42336 msgstr ""
42337
42338 #. type: textblock
42339 #: ../tools/virt-list-partitions.pl:267
42340 msgid ""
42341 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42342 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42343 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42344 msgstr ""
42345
42346 #. type: textblock
42347 #: ../tools/virt-list-partitions.pl:283
42348 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42349 msgstr ""
42350
42351 #. type: textblock
42352 #: ../tools/virt-make-fs.pl:37
42353 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42354 msgstr ""
42355
42356 #. type: verbatim
42357 #: ../tools/virt-make-fs.pl:41
42358 #, no-wrap
42359 msgid ""
42360 " virt-make-fs [--options] input.tar output.img\n"
42361 "\n"
42362 msgstr ""
42363
42364 #. type: verbatim
42365 #: ../tools/virt-make-fs.pl:43
42366 #, no-wrap
42367 msgid ""
42368 " virt-make-fs [--options] input.tar.gz output.img\n"
42369 "\n"
42370 msgstr ""
42371
42372 #. type: verbatim
42373 #: ../tools/virt-make-fs.pl:45
42374 #, no-wrap
42375 msgid ""
42376 " virt-make-fs [--options] directory output.img\n"
42377 "\n"
42378 msgstr ""
42379
42380 #. type: textblock
42381 #: ../tools/virt-make-fs.pl:49
42382 msgid ""
42383 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42384 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42385 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42386 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42387 "you want to attach these filesystems to existing virtual machines (eg. to "
42388 "import large amounts of read-only data to a VM)."
42389 msgstr ""
42390
42391 #. type: textblock
42392 #: ../tools/virt-make-fs.pl:57
42393 msgid "Basic usage is:"
42394 msgstr ""
42395
42396 #. type: verbatim
42397 #: ../tools/virt-make-fs.pl:59
42398 #, no-wrap
42399 msgid ""
42400 " virt-make-fs input output.img\n"
42401 "\n"
42402 msgstr ""
42403
42404 #. type: textblock
42405 #: ../tools/virt-make-fs.pl:61
42406 msgid ""
42407 "where C<input> is either a directory containing files that you want to add, "
42408 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42409 "C<output.img> is a disk image.  The input type is detected automatically.  "
42410 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42411 "extra flags (see L</OPTIONS> below)."
42412 msgstr ""
42413
42414 #. type: =head2
42415 #: ../tools/virt-make-fs.pl:67
42416 msgid "FILESYSTEM TYPE"
42417 msgstr ""
42418
42419 #. type: textblock
42420 #: ../tools/virt-make-fs.pl:69
42421 msgid ""
42422 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42423 "libguestfs supports can be used (but I<not> read-only formats like "
42424 "ISO9660).  Here are some of the more common choices:"
42425 msgstr ""
42426
42427 #. type: =item
42428 #: ../tools/virt-make-fs.pl:75
42429 msgid "I<ext3>"
42430 msgstr ""
42431
42432 #. type: textblock
42433 #: ../tools/virt-make-fs.pl:77
42434 msgid ""
42435 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42436 "you are not going to use the filesystem in a way that requires the journal, "
42437 "then this is just wasted overhead."
42438 msgstr ""
42439
42440 #. type: =item
42441 #: ../tools/virt-make-fs.pl:81
42442 msgid "I<ntfs> or I<vfat>"
42443 msgstr ""
42444
42445 #. type: textblock
42446 #: ../tools/virt-make-fs.pl:83
42447 msgid "Useful if exporting data to a Windows guest."
42448 msgstr ""
42449
42450 #. type: textblock
42451 #: ../tools/virt-make-fs.pl:85
42452 msgid ""
42453 "I<Note for vfat>: The tar archive or local directory must only contain files "
42454 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42455 "program running within libguestfs is unable to change the ownership of non-"
42456 "root files, since vfat itself does not support this."
42457 msgstr ""
42458
42459 #. type: =item
42460 #: ../tools/virt-make-fs.pl:90
42461 msgid "I<minix>"
42462 msgstr ""
42463
42464 #. type: textblock
42465 #: ../tools/virt-make-fs.pl:92
42466 msgid ""
42467 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42468 "total filesystem size."
42469 msgstr ""
42470
42471 #. type: =head3
42472 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42473 #: ../tools/virt-make-fs.pl:149
42474 msgid "EXAMPLE"
42475 msgstr ""
42476
42477 #. type: verbatim
42478 #: ../tools/virt-make-fs.pl:99
42479 #, no-wrap
42480 msgid ""
42481 " virt-make-fs --type=minix input minixfs.img\n"
42482 "\n"
42483 msgstr ""
42484
42485 #. type: =head2
42486 #: ../tools/virt-make-fs.pl:101
42487 msgid "TO PARTITION OR NOT TO PARTITION"
42488 msgstr ""
42489
42490 #. type: textblock
42491 #: ../tools/virt-make-fs.pl:103
42492 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42493 msgstr ""
42494
42495 #. type: textblock
42496 #: ../tools/virt-make-fs.pl:105
42497 msgid ""
42498 "Adding a partition can make the disk image more compatible with certain "
42499 "virtualized operating systems which don't expect to see a filesystem "
42500 "directly located on a block device (Linux doesn't care and will happily "
42501 "handle both types)."
42502 msgstr ""
42503
42504 #. type: textblock
42505 #: ../tools/virt-make-fs.pl:110
42506 msgid ""
42507 "On the other hand, if you have a partition table then the output image is no "
42508 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42509 "directly on a partitioned disk image.  (However libguestfs tools such as "
42510 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42511 msgstr ""
42512
42513 #. type: textblock
42514 #: ../tools/virt-make-fs.pl:118
42515 msgid "Add an MBR partition:"
42516 msgstr ""
42517
42518 #. type: verbatim
42519 #: ../tools/virt-make-fs.pl:120
42520 #, no-wrap
42521 msgid ""
42522 " virt-make-fs --partition -- input disk.img\n"
42523 "\n"
42524 msgstr ""
42525
42526 #. type: textblock
42527 #: ../tools/virt-make-fs.pl:122
42528 msgid ""
42529 "If the output disk image could be terabyte-sized or larger, it's better to "
42530 "use an EFI/GPT-compatible partition table:"
42531 msgstr ""
42532
42533 #. type: verbatim
42534 #: ../tools/virt-make-fs.pl:125
42535 #, no-wrap
42536 msgid ""
42537 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42538 "\n"
42539 msgstr ""
42540
42541 #. type: =head2
42542 #: ../tools/virt-make-fs.pl:127
42543 msgid "EXTRA SPACE"
42544 msgstr ""
42545
42546 #. type: textblock
42547 #: ../tools/virt-make-fs.pl:129
42548 msgid ""
42549 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42550 "the files that it contains, but might have extra space.  Depending on how "
42551 "you are going to use the output, you might think this extra space is wasted "
42552 "and want to minimize it, or you might want to leave space so that more files "
42553 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42554 "but you can use the I<--size> flag to leave space in the filesystem if you "
42555 "want it."
42556 msgstr ""
42557
42558 #. type: textblock
42559 #: ../tools/virt-make-fs.pl:137
42560 msgid ""
42561 "An alternative way to leave extra space but not make the output image any "
42562 "bigger is to use an alternative disk image format (instead of the default "
42563 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42564 "image format (check your hypervisor supports this before using it).  This "
42565 "allows you to choose a large I<--size> but the extra space won't actually be "
42566 "allocated in the image until you try to store something in it."
42567 msgstr ""
42568
42569 #. type: textblock
42570 #: ../tools/virt-make-fs.pl:145
42571 msgid ""
42572 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42573 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42574 "to build another image from scratch."
42575 msgstr ""
42576
42577 #. type: verbatim
42578 #: ../tools/virt-make-fs.pl:151
42579 #, no-wrap
42580 msgid ""
42581 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42582 "\n"
42583 msgstr ""
42584
42585 #. type: textblock
42586 #: ../tools/virt-make-fs.pl:179
42587 msgid "Enable debugging information."
42588 msgstr ""
42589
42590 #. type: =item
42591 #: ../tools/virt-make-fs.pl:185
42592 msgid "B<--size=E<lt>NE<gt>>"
42593 msgstr ""
42594
42595 #. type: =item
42596 #: ../tools/virt-make-fs.pl:187
42597 msgid "B<--size=+E<lt>NE<gt>>"
42598 msgstr ""
42599
42600 #. type: =item
42601 #: ../tools/virt-make-fs.pl:189
42602 msgid "B<-s E<lt>NE<gt>>"
42603 msgstr ""
42604
42605 #. type: =item
42606 #: ../tools/virt-make-fs.pl:191
42607 msgid "B<-s +E<lt>NE<gt>>"
42608 msgstr ""
42609
42610 #. type: textblock
42611 #: ../tools/virt-make-fs.pl:193
42612 msgid ""
42613 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42614 msgstr ""
42615
42616 #. type: textblock
42617 #: ../tools/virt-make-fs.pl:196
42618 msgid ""
42619 "If this option is I<not> given, then the output image will be just large "
42620 "enough to contain all the files, with not much wasted space."
42621 msgstr ""
42622
42623 #. type: textblock
42624 #: ../tools/virt-make-fs.pl:199
42625 msgid ""
42626 "To choose a fixed size output disk, specify an absolute number followed by b/"
42627 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42628 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42629 "files, else you will get an error."
42630 msgstr ""
42631
42632 #. type: textblock
42633 #: ../tools/virt-make-fs.pl:204
42634 msgid ""
42635 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42636 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42637 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42638 "the input files, and (approximately) an extra 200 MB free space."
42639 msgstr ""
42640
42641 #. type: textblock
42642 #: ../tools/virt-make-fs.pl:210
42643 msgid ""
42644 "Note that virt-make-fs estimates free space, and therefore will not produce "
42645 "filesystems containing precisely the free space requested.  (It is much more "
42646 "expensive and time-consuming to produce a filesystem which has precisely the "
42647 "desired free space)."
42648 msgstr ""
42649
42650 #. type: =item
42651 #: ../tools/virt-make-fs.pl:219
42652 msgid "B<--format=E<lt>fmtE<gt>>"
42653 msgstr ""
42654
42655 #. type: =item
42656 #: ../tools/virt-make-fs.pl:221
42657 msgid "B<-F E<lt>fmtE<gt>>"
42658 msgstr ""
42659
42660 #. type: textblock
42661 #: ../tools/virt-make-fs.pl:223
42662 msgid "Choose the output disk image format."
42663 msgstr ""
42664
42665 #. type: textblock
42666 #: ../tools/virt-make-fs.pl:225
42667 msgid "The default is C<raw> (raw sparse disk image)."
42668 msgstr ""
42669
42670 #. type: textblock
42671 #: ../tools/virt-make-fs.pl:227
42672 msgid ""
42673 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42674 "that would really make sense here is C<qcow2>."
42675 msgstr ""
42676
42677 #. type: =item
42678 #: ../tools/virt-make-fs.pl:234
42679 msgid "B<--type=E<lt>fsE<gt>>"
42680 msgstr ""
42681
42682 #. type: =item
42683 #: ../tools/virt-make-fs.pl:236
42684 msgid "B<-t E<lt>fsE<gt>>"
42685 msgstr ""
42686
42687 #. type: textblock
42688 #: ../tools/virt-make-fs.pl:238
42689 msgid "Choose the output filesystem type."
42690 msgstr ""
42691
42692 #. type: textblock
42693 #: ../tools/virt-make-fs.pl:240
42694 msgid "The default is C<ext2>."
42695 msgstr ""
42696
42697 #. type: textblock
42698 #: ../tools/virt-make-fs.pl:242
42699 msgid ""
42700 "Any filesystem which is supported read-write by libguestfs can be used here."
42701 msgstr ""
42702
42703 #. type: =item
42704 #: ../tools/virt-make-fs.pl:249
42705 msgid "B<--partition>"
42706 msgstr ""
42707
42708 #. type: =item
42709 #: ../tools/virt-make-fs.pl:251
42710 msgid "B<--partition=E<lt>parttypeE<gt>>"
42711 msgstr ""
42712
42713 #. type: textblock
42714 #: ../tools/virt-make-fs.pl:253
42715 msgid ""
42716 "If specified, this flag adds an MBR partition table to the output disk image."
42717 msgstr ""
42718
42719 #. type: textblock
42720 #: ../tools/virt-make-fs.pl:256
42721 msgid ""
42722 "You can change the partition table type, eg. I<--partition=gpt> for large "
42723 "disks."
42724 msgstr ""
42725
42726 #. type: textblock
42727 #: ../tools/virt-make-fs.pl:259
42728 msgid ""
42729 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42730 "might consider the next parameter to be the partition type.  For example:"
42731 msgstr ""
42732
42733 #. type: verbatim
42734 #: ../tools/virt-make-fs.pl:263
42735 #, no-wrap
42736 msgid ""
42737 " virt-make-fs --partition input.tar output.img\n"
42738 "\n"
42739 msgstr ""
42740
42741 #. type: textblock
42742 #: ../tools/virt-make-fs.pl:265
42743 msgid ""
42744 "would cause virt-make-fs to think you wanted to use a partition type of "
42745 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42746 "dash) between options and the input and output arguments:"
42747 msgstr ""
42748
42749 #. type: verbatim
42750 #: ../tools/virt-make-fs.pl:269
42751 #, no-wrap
42752 msgid ""
42753 " virt-make-fs --partition -- input.tar output.img\n"
42754 "\n"
42755 msgstr ""
42756
42757 #. type: textblock
42758 #: ../tools/virt-make-fs.pl:271
42759 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42760 msgstr ""
42761
42762 #. type: textblock
42763 #: ../tools/virt-make-fs.pl:559
42764 msgid ""
42765 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42766 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42767 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42768 msgstr ""
42769
42770 #. type: textblock
42771 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42772 msgid ""
42773 "When reporting bugs, please enable debugging and capture the I<complete> "
42774 "output:"
42775 msgstr ""
42776
42777 #. type: verbatim
42778 #: ../tools/virt-make-fs.pl:576
42779 #, no-wrap
42780 msgid ""
42781 " export LIBGUESTFS_DEBUG=1\n"
42782 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42783 "\n"
42784 msgstr ""
42785
42786 #. type: textblock
42787 #: ../tools/virt-make-fs.pl:579
42788 msgid ""
42789 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42790 "redhat.com/>"
42791 msgstr ""
42792
42793 #. type: textblock
42794 #: ../tools/virt-tar.pl:33
42795 msgid "virt-tar - Extract or upload files to a virtual machine"
42796 msgstr ""
42797
42798 #. type: verbatim
42799 #: ../tools/virt-tar.pl:37
42800 #, no-wrap
42801 msgid ""
42802 " virt-tar [--options] -x domname directory tarball\n"
42803 "\n"
42804 msgstr ""
42805
42806 #. type: verbatim
42807 #: ../tools/virt-tar.pl:39
42808 #, no-wrap
42809 msgid ""
42810 " virt-tar [--options] -u domname tarball directory\n"
42811 "\n"
42812 msgstr ""
42813
42814 #. type: verbatim
42815 #: ../tools/virt-tar.pl:41
42816 #, no-wrap
42817 msgid ""
42818 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42819 "\n"
42820 msgstr ""
42821
42822 #. type: verbatim
42823 #: ../tools/virt-tar.pl:43
42824 #, no-wrap
42825 msgid ""
42826 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42827 "\n"
42828 msgstr ""
42829
42830 #. type: =head2
42831 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42832 msgid "NOTE"
42833 msgstr ""
42834
42835 #. type: textblock
42836 #: ../tools/virt-tar.pl:47
42837 msgid ""
42838 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42839 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42840 msgstr ""
42841
42842 #. type: textblock
42843 #: ../tools/virt-tar.pl:52
42844 msgid "Download C</home> from the VM into a local tarball:"
42845 msgstr ""
42846
42847 #. type: verbatim
42848 #: ../tools/virt-tar.pl:54
42849 #, no-wrap
42850 msgid ""
42851 " virt-tar -x domname /home home.tar\n"
42852 "\n"
42853 msgstr ""
42854
42855 #. type: verbatim
42856 #: ../tools/virt-tar.pl:56
42857 #, no-wrap
42858 msgid ""
42859 " virt-tar -zx domname /home home.tar.gz\n"
42860 "\n"
42861 msgstr ""
42862
42863 #. type: textblock
42864 #: ../tools/virt-tar.pl:58
42865 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42866 msgstr ""
42867
42868 #. type: verbatim
42869 #: ../tools/virt-tar.pl:60
42870 #, no-wrap
42871 msgid ""
42872 " virt-tar -u domname uploadstuff.tar /tmp\n"
42873 "\n"
42874 msgstr ""
42875
42876 #. type: verbatim
42877 #: ../tools/virt-tar.pl:62
42878 #, no-wrap
42879 msgid ""
42880 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42881 "\n"
42882 msgstr ""
42883
42884 #. type: textblock
42885 #: ../tools/virt-tar.pl:66
42886 msgid ""
42887 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42888 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42889 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42890 msgstr ""
42891
42892 #. type: textblock
42893 #: ../tools/virt-tar.pl:71
42894 msgid ""
42895 "You can use I<-x> (extract) on live virtual machines, but you might get "
42896 "inconsistent results or errors if there is filesystem activity inside the "
42897 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42898 "work, but the only way to guarantee consistent results is if the virtual "
42899 "machine is shut down."
42900 msgstr ""
42901
42902 #. type: textblock
42903 #: ../tools/virt-tar.pl:79
42904 msgid ""
42905 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42906 "parts of a guest filesystem.  There are many possibilities: making backups, "
42907 "uploading data files, snooping on guest activity, fixing or customizing "
42908 "guests, etc."
42909 msgstr ""
42910
42911 #. type: textblock
42912 #: ../tools/virt-tar.pl:84
42913 msgid ""
42914 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42915 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42916 "should look at the L<guestfish(1)> tool."
42917 msgstr ""
42918
42919 #. type: textblock
42920 #: ../tools/virt-tar.pl:88
42921 msgid ""
42922 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42923 "its contents (recursively) from the virtual machine into a local tarball.  "
42924 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42925 "virtual machine.  You cannot use these two options together."
42926 msgstr ""
42927
42928 #. type: textblock
42929 #: ../tools/virt-tar.pl:94
42930 msgid ""
42931 "In addition, you may need to use the I<-z> (gZip) option to enable "
42932 "compression.  When uploading, you have to specify I<-z> if the upload file "
42933 "is compressed because virt-tar won't detect this on its own."
42934 msgstr ""
42935
42936 #. type: textblock
42937 #: ../tools/virt-tar.pl:98
42938 msgid ""
42939 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42940 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42941 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42942 "the L<libguestfs(3)> API)."
42943 msgstr ""
42944
42945 #. type: =item
42946 #: ../tools/virt-tar.pl:160
42947 msgid "B<--extract>"
42948 msgstr ""
42949
42950 #. type: =item
42951 #: ../tools/virt-tar.pl:162
42952 msgid "B<--download>"
42953 msgstr ""
42954
42955 #. type: =item
42956 #: ../tools/virt-tar.pl:164
42957 msgid "B<-u>"
42958 msgstr ""
42959
42960 #. type: =item
42961 #: ../tools/virt-tar.pl:166
42962 msgid "B<--upload>"
42963 msgstr ""
42964
42965 #. type: textblock
42966 #: ../tools/virt-tar.pl:168
42967 msgid ""
42968 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42969 "local tarball."
42970 msgstr ""
42971
42972 #. type: textblock
42973 #: ../tools/virt-tar.pl:171
42974 msgid ""
42975 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42976 "Please read the L</WARNING> section above before using this option."
42977 msgstr ""
42978
42979 #. type: textblock
42980 #: ../tools/virt-tar.pl:175
42981 msgid "You must specify exactly one of these options."
42982 msgstr ""
42983
42984 #. type: =item
42985 #: ../tools/virt-tar.pl:181
42986 msgid "B<-z>"
42987 msgstr ""
42988
42989 #. type: =item
42990 #: ../tools/virt-tar.pl:183
42991 msgid "B<--gzip>"
42992 msgstr ""
42993
42994 #. type: textblock
42995 #: ../tools/virt-tar.pl:185
42996 msgid "Specify that the input or output tarball is gzip-compressed."
42997 msgstr ""
42998
42999 #. type: textblock
43000 #: ../tools/virt-tar.pl:298
43001 msgid ""
43002 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
43003 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
43004 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
43005 "org/>."
43006 msgstr ""
43007
43008 #. type: textblock
43009 #: ../tools/virt-win-reg.pl:37
43010 msgid ""
43011 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
43012 msgstr ""
43013
43014 #. type: verbatim
43015 #: ../tools/virt-win-reg.pl:41
43016 #, no-wrap
43017 msgid ""
43018 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
43019 "\n"
43020 msgstr ""
43021
43022 #. type: verbatim
43023 #: ../tools/virt-win-reg.pl:43
43024 #, no-wrap
43025 msgid ""
43026 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
43027 "\n"
43028 msgstr ""
43029
43030 #. type: verbatim
43031 #: ../tools/virt-win-reg.pl:45
43032 #, no-wrap
43033 msgid ""
43034 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
43035 "\n"
43036 msgstr ""
43037
43038 #. type: verbatim
43039 #: ../tools/virt-win-reg.pl:47
43040 #, no-wrap
43041 msgid ""
43042 " virt-win-reg --merge domname [input.reg ...]\n"
43043 "\n"
43044 msgstr ""
43045
43046 #. type: verbatim
43047 #: ../tools/virt-win-reg.pl:49
43048 #, no-wrap
43049 msgid ""
43050 " virt-win-reg [--options] disk.img ... # instead of domname\n"
43051 "\n"
43052 msgstr ""
43053
43054 #. type: textblock
43055 #: ../tools/virt-win-reg.pl:53
43056 msgid ""
43057 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
43058 "virtual machines.  If you do this, you I<will> get irreversible disk "
43059 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
43060 "but doesn't catch all cases."
43061 msgstr ""
43062
43063 #. type: textblock
43064 #: ../tools/virt-win-reg.pl:58
43065 msgid ""
43066 "Modifying the Windows Registry is an inherently risky operation.  The format "
43067 "is deliberately obscure and undocumented, and Registry changes can leave the "
43068 "system unbootable.  Therefore when using the I<--merge> option, make sure "
43069 "you have a reliable backup first."
43070 msgstr ""
43071
43072 #. type: textblock
43073 #: ../tools/virt-win-reg.pl:65
43074 msgid ""
43075 "This program can export and merge Windows Registry entries from a Windows "
43076 "guest."
43077 msgstr ""
43078
43079 #. type: textblock
43080 #: ../tools/virt-win-reg.pl:68
43081 msgid ""
43082 "The first parameter is the libvirt guest name or the raw disk image of a "
43083 "Windows guest."
43084 msgstr ""
43085
43086 #. type: textblock
43087 #: ../tools/virt-win-reg.pl:71
43088 msgid ""
43089 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
43090 "exported (recursively).  For example:"
43091 msgstr ""
43092
43093 #. type: verbatim
43094 #: ../tools/virt-win-reg.pl:74
43095 #, no-wrap
43096 msgid ""
43097 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43098 "\n"
43099 msgstr ""
43100
43101 #. type: textblock
43102 #: ../tools/virt-win-reg.pl:76
43103 msgid ""
43104 "You can also display single values from within registry keys, for example:"
43105 msgstr ""
43106
43107 #. type: verbatim
43108 #: ../tools/virt-win-reg.pl:79
43109 #, no-wrap
43110 msgid ""
43111 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43112 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43113 " Windows 7 Enterprise\n"
43114 "\n"
43115 msgstr ""
43116
43117 #. type: textblock
43118 #: ../tools/virt-win-reg.pl:83
43119 msgid ""
43120 "With I<--merge>, you can merge a textual regedit file into the Windows "
43121 "Registry:"
43122 msgstr ""
43123
43124 #. type: verbatim
43125 #: ../tools/virt-win-reg.pl:86
43126 #, no-wrap
43127 msgid ""
43128 " $ virt-win-reg --merge Windows7 changes.reg\n"
43129 "\n"
43130 msgstr ""
43131
43132 #. type: textblock
43133 #: ../tools/virt-win-reg.pl:90
43134 msgid ""
43135 "This program is only meant for simple access to the registry.  If you want "
43136 "to do complicated things with the registry, we suggest you download the "
43137 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43138 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43139 "L<hivexregedit(1)>."
43140 msgstr ""
43141
43142 #. type: =item
43143 #: ../tools/virt-win-reg.pl:159
43144 msgid "B<--merge>"
43145 msgstr ""
43146
43147 #. type: textblock
43148 #: ../tools/virt-win-reg.pl:161
43149 msgid ""
43150 "In merge mode, this merges a textual regedit file into the Windows Registry "
43151 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43152 "displays or exports Registry entries instead."
43153 msgstr ""
43154
43155 #. type: textblock
43156 #: ../tools/virt-win-reg.pl:165
43157 msgid ""
43158 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43159 "result in disk corruption.  However exporting (without this flag)  is always "
43160 "safe."
43161 msgstr ""
43162
43163 #. type: =item
43164 #: ../tools/virt-win-reg.pl:173
43165 msgid "B<--encoding> UTF-16LE|ASCII"
43166 msgstr ""
43167
43168 #. type: textblock
43169 #: ../tools/virt-win-reg.pl:175
43170 msgid ""
43171 "When merging (only), you may need to specify the encoding for strings to be "
43172 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43173 "(3)/ENCODING STRINGS>."
43174 msgstr ""
43175
43176 #. type: textblock
43177 #: ../tools/virt-win-reg.pl:179
43178 msgid ""
43179 "The default is to use UTF-16LE, which should work with recent versions of "
43180 "Windows."
43181 msgstr ""
43182
43183 #. type: =item
43184 #: ../tools/virt-win-reg.pl:186
43185 msgid "B<--unsafe-printable-strings>"
43186 msgstr ""
43187
43188 #. type: textblock
43189 #: ../tools/virt-win-reg.pl:188
43190 msgid ""
43191 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43192 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43193 "present."
43194 msgstr ""
43195
43196 #. type: textblock
43197 #: ../tools/virt-win-reg.pl:192
43198 msgid ""
43199 "This is unsafe and does not preserve the fidelity of strings in the original "
43200 "Registry for various reasons:"
43201 msgstr ""
43202
43203 #. type: textblock
43204 #: ../tools/virt-win-reg.pl:199
43205 msgid ""
43206 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43207 "other encodings will be corrupted by this transformation."
43208 msgstr ""
43209
43210 #. type: textblock
43211 #: ../tools/virt-win-reg.pl:204
43212 msgid ""
43213 "Assumes that everything which has type 1 or 2 is really a string and that "
43214 "everything else is not a string, but the type field in real Registries is "
43215 "not reliable."
43216 msgstr ""
43217
43218 #. type: textblock
43219 #: ../tools/virt-win-reg.pl:210
43220 msgid ""
43221 "Loses information about whether a zero codepoint followed the string in the "
43222 "Registry or not."
43223 msgstr ""
43224
43225 #. type: textblock
43226 #: ../tools/virt-win-reg.pl:215
43227 msgid ""
43228 "This all happens because the Registry itself contains no information about "
43229 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43230 msgstr ""
43231
43232 #. type: textblock
43233 #: ../tools/virt-win-reg.pl:219
43234 msgid ""
43235 "You should only use this option for quick hacking and debugging of the "
43236 "Registry contents, and I<never> use it if the output is going to be passed "
43237 "into another program or stored in another Registry."
43238 msgstr ""
43239
43240 #. type: =head1
43241 #: ../tools/virt-win-reg.pl:556
43242 msgid "SUPPORTED SYSTEMS"
43243 msgstr ""
43244
43245 #. type: textblock
43246 #: ../tools/virt-win-reg.pl:558
43247 msgid ""
43248 "The program currently supports Windows NT-derived guests starting with "
43249 "Windows XP through to at least Windows 7."
43250 msgstr ""
43251
43252 #. type: textblock
43253 #: ../tools/virt-win-reg.pl:561
43254 msgid "The following Registry keys are supported:"
43255 msgstr ""
43256
43257 #. type: =item
43258 #: ../tools/virt-win-reg.pl:565
43259 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43260 msgstr ""
43261
43262 #. type: =item
43263 #: ../tools/virt-win-reg.pl:567
43264 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43265 msgstr ""
43266
43267 #. type: =item
43268 #: ../tools/virt-win-reg.pl:569
43269 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43270 msgstr ""
43271
43272 #. type: =item
43273 #: ../tools/virt-win-reg.pl:571
43274 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43275 msgstr ""
43276
43277 #. type: =item
43278 #: ../tools/virt-win-reg.pl:573
43279 msgid "C<HKEY_USERS\\.DEFAULT>"
43280 msgstr ""
43281
43282 #. type: =item
43283 #: ../tools/virt-win-reg.pl:575
43284 msgid "C<HKEY_USERS\\I<SID>>"
43285 msgstr ""
43286
43287 #. type: textblock
43288 #: ../tools/virt-win-reg.pl:577
43289 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43290 msgstr ""
43291
43292 #. type: =item
43293 #: ../tools/virt-win-reg.pl:579
43294 msgid "C<HKEY_USERS\\I<username>>"
43295 msgstr ""
43296
43297 #. type: textblock
43298 #: ../tools/virt-win-reg.pl:581
43299 msgid ""
43300 "where I<username> is a local user name (this is a libguestfs extension)."
43301 msgstr ""
43302
43303 #. type: textblock
43304 #: ../tools/virt-win-reg.pl:585
43305 msgid ""
43306 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43307 "C<HKEY_USERS>."
43308 msgstr ""
43309
43310 #. type: textblock
43311 #: ../tools/virt-win-reg.pl:588
43312 msgid ""
43313 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43314 "supported (there is no \"current user\")."
43315 msgstr ""
43316
43317 #. type: =head1
43318 #: ../tools/virt-win-reg.pl:591
43319 msgid "ENCODING"
43320 msgstr ""
43321
43322 #. type: textblock
43323 #: ../tools/virt-win-reg.pl:593
43324 msgid ""
43325 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43326 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43327 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43328 "Windows-style line endings, you may need to reencode the whole file before "
43329 "or after processing."
43330 msgstr ""
43331
43332 #. type: textblock
43333 #: ../tools/virt-win-reg.pl:599
43334 msgid ""
43335 "To reencode a file from Windows format to Linux (before processing it with "
43336 "the I<--merge> option), you would do something like this:"
43337 msgstr ""
43338
43339 #. type: verbatim
43340 #: ../tools/virt-win-reg.pl:602
43341 #, no-wrap
43342 msgid ""
43343 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43344 "\n"
43345 msgstr ""
43346
43347 #. type: textblock
43348 #: ../tools/virt-win-reg.pl:604
43349 msgid ""
43350 "To go in the opposite direction, after exporting and before sending the file "
43351 "to a Windows user, do something like this:"
43352 msgstr ""
43353
43354 #. type: verbatim
43355 #: ../tools/virt-win-reg.pl:607
43356 #, no-wrap
43357 msgid ""
43358 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43359 "\n"
43360 msgstr ""
43361
43362 #. type: textblock
43363 #: ../tools/virt-win-reg.pl:609
43364 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43365 msgstr ""
43366
43367 #. type: textblock
43368 #: ../tools/virt-win-reg.pl:611
43369 msgid ""
43370 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43371 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43372 "style (CRLF) line endings, like this:"
43373 msgstr ""
43374
43375 #. type: verbatim
43376 #: ../tools/virt-win-reg.pl:615
43377 #, no-wrap
43378 msgid ""
43379 " $ file software.reg\n"
43380 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43381 " with CRLF line terminators\n"
43382 "\n"
43383 msgstr ""
43384
43385 #. type: textblock
43386 #: ../tools/virt-win-reg.pl:619
43387 msgid "This file would need conversion before you could I<--merge> it."
43388 msgstr ""
43389
43390 #. type: =head1
43391 #: ../tools/virt-win-reg.pl:621
43392 msgid "CurrentControlSet etc."
43393 msgstr ""
43394
43395 #. type: textblock
43396 #: ../tools/virt-win-reg.pl:623
43397 msgid ""
43398 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43399 "Registry at the level of the hive file, and therefore you cannot modify "
43400 "these."
43401 msgstr ""
43402
43403 #. type: textblock
43404 #: ../tools/virt-win-reg.pl:627
43405 msgid ""
43406 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43407 "circumstances it might refer to another control set.  The way to find out is "
43408 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43409 msgstr ""
43410
43411 #. type: verbatim
43412 #: ../tools/virt-win-reg.pl:631
43413 #, no-wrap
43414 msgid ""
43415 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43416 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43417 " \"Current\"=dword:00000001\n"
43418 " \"Default\"=dword:00000001\n"
43419 " \"Failed\"=dword:00000000\n"
43420 " \"LastKnownGood\"=dword:00000002\n"
43421 "\n"
43422 msgstr ""
43423
43424 #. type: textblock
43425 #: ../tools/virt-win-reg.pl:638
43426 msgid "\"Current\" is the one which Windows will choose when it boots."
43427 msgstr ""
43428
43429 #. type: textblock
43430 #: ../tools/virt-win-reg.pl:640
43431 msgid ""
43432 "Similarly, other C<Current...> keys in the path may need to be replaced."
43433 msgstr ""
43434
43435 #. type: =head1
43436 #: ../tools/virt-win-reg.pl:643
43437 msgid "DELETING REGISTRY KEYS AND VALUES"
43438 msgstr ""
43439
43440 #. type: textblock
43441 #: ../tools/virt-win-reg.pl:645
43442 msgid "To delete a whole registry key, use the syntax:"
43443 msgstr ""
43444
43445 #. type: verbatim
43446 #: ../tools/virt-win-reg.pl:647
43447 #, no-wrap
43448 msgid ""
43449 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43450 "\n"
43451 msgstr ""
43452
43453 #. type: textblock
43454 #: ../tools/virt-win-reg.pl:649
43455 msgid "To delete a single value within a key, use the syntax:"
43456 msgstr ""
43457
43458 #. type: verbatim
43459 #: ../tools/virt-win-reg.pl:651
43460 #, no-wrap
43461 msgid ""
43462 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43463 " \"Value\"=-\n"
43464 "\n"
43465 msgstr ""
43466
43467 #. type: =head1
43468 #: ../tools/virt-win-reg.pl:654
43469 msgid "WINDOWS TIPS"
43470 msgstr ""
43471
43472 #. type: textblock
43473 #: ../tools/virt-win-reg.pl:656
43474 msgid ""
43475 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43476 "be shut off, else you will get disk corruption."
43477 msgstr ""
43478
43479 #. type: =head2
43480 #: ../tools/virt-win-reg.pl:659
43481 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43482 msgstr ""
43483
43484 #. type: textblock
43485 #: ../tools/virt-win-reg.pl:661
43486 msgid ""
43487 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43488 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43489 "is uploaded into C<C:\\>:"
43490 msgstr ""
43491
43492 #. type: verbatim
43493 #: ../tools/virt-win-reg.pl:665
43494 #, no-wrap
43495 msgid ""
43496 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43497 "\n"
43498 msgstr ""
43499
43500 #. type: textblock
43501 #: ../tools/virt-win-reg.pl:667
43502 msgid "Prepare a regedit file containing the registry change:"
43503 msgstr ""
43504
43505 #. type: verbatim
43506 #: ../tools/virt-win-reg.pl:669
43507 #, no-wrap
43508 msgid ""
43509 " cat > test.reg <<'EOF'\n"
43510 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43511 " \"Test\"=\"c:\\\\test.bat\"\n"
43512 " EOF\n"
43513 "\n"
43514 msgstr ""
43515
43516 #. type: textblock
43517 #: ../tools/virt-win-reg.pl:674
43518 msgid ""
43519 "In this example we use the key C<RunOnce> which means that the script will "
43520 "run precisely once when the first user logs in.  If you want it to run every "
43521 "time a user logs in, replace C<RunOnce> with C<Run>."
43522 msgstr ""
43523
43524 #. type: textblock
43525 #: ../tools/virt-win-reg.pl:678
43526 msgid "Now update the registry:"
43527 msgstr ""
43528
43529 #. type: verbatim
43530 #: ../tools/virt-win-reg.pl:680
43531 #, no-wrap
43532 msgid ""
43533 " virt-win-reg --merge WindowsGuest test.reg\n"
43534 "\n"
43535 msgstr ""
43536
43537 #. type: =head2
43538 #: ../tools/virt-win-reg.pl:682
43539 msgid "INSTALLING A SERVICE"
43540 msgstr ""
43541
43542 #. type: textblock
43543 #: ../tools/virt-win-reg.pl:684
43544 msgid ""
43545 "This section assumes you are familiar with Windows services, and you either "
43546 "have a program which handles the Windows Service Control Protocol directly "
43547 "or you want to run any program using a service wrapper like SrvAny or the "
43548 "free RHSrvAny."
43549 msgstr ""
43550
43551 #. type: textblock
43552 #: ../tools/virt-win-reg.pl:689
43553 msgid ""
43554 "First upload the program and optionally the service wrapper.  In this case "
43555 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43556 msgstr ""
43557
43558 #. type: verbatim
43559 #: ../tools/virt-win-reg.pl:693
43560 #, no-wrap
43561 msgid ""
43562 " guestfish -i -d WindowsGuest <<EOF\n"
43563 "   upload rhsrvany.exe /rhsrvany.exe\n"
43564 "   upload test.exe /test.exe\n"
43565 " EOF\n"
43566 "\n"
43567 msgstr ""
43568
43569 #. type: textblock
43570 #: ../tools/virt-win-reg.pl:698
43571 msgid ""
43572 "Prepare a regedit file containing the registry changes.  In this example, "
43573 "the first registry change is needed for the service itself or the service "
43574 "wrapper (if used).  The second registry change is only needed because I am "
43575 "using the RHSrvAny service wrapper."
43576 msgstr ""
43577
43578 #. type: verbatim
43579 #: ../tools/virt-win-reg.pl:703
43580 #, no-wrap
43581 msgid ""
43582 " cat > service.reg <<'EOF'\n"
43583 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43584 " \"Type\"=dword:00000010\n"
43585 " \"Start\"=dword:00000002\n"
43586 " \"ErrorControl\"=dword:00000001\n"
43587 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43588 " \"DisplayName\"=\"RHSrvAny\"\n"
43589 " \"ObjectName\"=\"NetworkService\"\n"
43590 " \n"
43591 msgstr ""
43592
43593 #. type: verbatim
43594 #: ../tools/virt-win-reg.pl:712
43595 #, no-wrap
43596 msgid ""
43597 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43598 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43599 " \"PWD\"=\"c:\\\\Temp\"\n"
43600 " EOF\n"
43601 "\n"
43602 msgstr ""
43603
43604 #. type: textblock
43605 #: ../tools/virt-win-reg.pl:723
43606 msgid ""
43607 "For use of C<ControlSet001> see the section above in this manual page.  You "
43608 "may need to adjust this according to the control set that is in use by the "
43609 "guest."
43610 msgstr ""
43611
43612 #. type: textblock
43613 #: ../tools/virt-win-reg.pl:729
43614 msgid ""
43615 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43616 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43617 "privileged account."
43618 msgstr ""
43619
43620 #. type: textblock
43621 #: ../tools/virt-win-reg.pl:735
43622 msgid ""
43623 "For the meaning of the magic numbers, see this Microsoft KB article: "
43624 "L<http://support.microsoft.com/kb/103000>."
43625 msgstr ""
43626
43627 #. type: textblock
43628 #: ../tools/virt-win-reg.pl:740
43629 msgid "Update the registry:"
43630 msgstr ""
43631
43632 #. type: verbatim
43633 #: ../tools/virt-win-reg.pl:742
43634 #, no-wrap
43635 msgid ""
43636 " virt-win-reg --merge WindowsGuest service.reg\n"
43637 "\n"
43638 msgstr ""
43639
43640 #. type: textblock
43641 #: ../tools/virt-win-reg.pl:746
43642 msgid ""
43643 "Be careful when passing parameters containing C<\\> (backslash) in the "
43644 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43645 "(but not both) to protect them from the shell."
43646 msgstr ""
43647
43648 #. type: textblock
43649 #: ../tools/virt-win-reg.pl:750
43650 msgid "Paths and value names are case-insensitive."
43651 msgstr ""
43652
43653 #. type: textblock
43654 #: ../tools/virt-win-reg.pl:759
43655 msgid ""
43656 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43657 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43658 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43659 msgstr ""
43660
43661 #. type: verbatim
43662 #: ../tools/virt-win-reg.pl:777
43663 #, no-wrap
43664 msgid ""
43665 " export LIBGUESTFS_DEBUG=1\n"
43666 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43667 "\n"
43668 msgstr ""
43669
43670 #. type: textblock
43671 #: ../tools/virt-win-reg.pl:780
43672 msgid ""
43673 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43674 "redhat.com/>"
43675 msgstr ""