Version 1.15.5.
[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-21 13:23+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:491
492 #: ../sparsify/virt-sparsify.pod:153
493 msgid "B<-q>"
494 msgstr ""
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
498 #: ../sparsify/virt-sparsify.pod:155
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:159
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:161
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:163
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:561
545 #: ../sparsify/virt-sparsify.pod:165
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:563
556 #: ../sparsify/virt-sparsify.pod:167 ../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:565
568 #: ../sparsify/virt-sparsify.pod:169 ../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:171
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:173
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:215
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:676
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:217
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:678
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:222
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:683 ../sparsify/virt-sparsify.pod:227
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 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
925 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
926 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
927 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
928 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
929 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
930 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
931 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
932 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
933 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
934 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
935 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
936 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
937 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
938 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
939 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
940 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
941 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408
942 #: ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359
943 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
944 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
945 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
946 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
947 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
948 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
949 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
950 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
951 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
952 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
953 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
954 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
955 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
956 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
957 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
958 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
959 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
960 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
961 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
962 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
963 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
964 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
965 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
966 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
967 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
968 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
969 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
970 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
971 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
972 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
973 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
974 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
975 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
976 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
977 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
978 #: ../src/guestfs.pod:3330 ../src/guestfs.pod:3334 ../src/guestfs.pod:3338
979 #: ../src/guestfs.pod:3342 ../tools/virt-win-reg.pl:197
980 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
981 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
982 #: ../tools/virt-win-reg.pl:733
983 msgid "*"
984 msgstr ""
985
986 #. type: textblock
987 #: ../align/virt-alignment-scan.pod:326
988 msgid "0"
989 msgstr ""
990
991 #. type: textblock
992 #: ../align/virt-alignment-scan.pod:328
993 msgid ""
994 "successful exit, all partitions are aligned E<ge> 64K for best performance"
995 msgstr ""
996
997 #. type: textblock
998 #: ../align/virt-alignment-scan.pod:332
999 msgid "1"
1000 msgstr ""
1001
1002 #. type: textblock
1003 #: ../align/virt-alignment-scan.pod:334
1004 msgid "an error scanning the disk image or guest"
1005 msgstr ""
1006
1007 #. type: textblock
1008 #: ../align/virt-alignment-scan.pod:338
1009 msgid "2"
1010 msgstr ""
1011
1012 #. type: textblock
1013 #: ../align/virt-alignment-scan.pod:340
1014 msgid ""
1015 "successful exit, some partitions have alignment E<lt> 64K which can result "
1016 "in poor performance on high end network storage"
1017 msgstr ""
1018
1019 #. type: textblock
1020 #: ../align/virt-alignment-scan.pod:345
1021 msgid "3"
1022 msgstr ""
1023
1024 #. type: textblock
1025 #: ../align/virt-alignment-scan.pod:347
1026 msgid ""
1027 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1028 "poor performance on most hypervisors"
1029 msgstr ""
1030
1031 #. type: =head1
1032 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1033 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1034 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1035 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1036 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1037 #: ../examples/guestfs-testing.pod:269 ../fish/guestfish.pod:1268
1038 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1039 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1040 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1041 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1042 #: ../perl/examples/guestfs-perl.pod:39
1043 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1044 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1045 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1046 #: ../test-tool/libguestfs-test-tool.pod:100
1047 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1048 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1049 #: ../tools/virt-win-reg.pl:757
1050 msgid "SEE ALSO"
1051 msgstr ""
1052
1053 #. type: textblock
1054 #: ../align/virt-alignment-scan.pod:354
1055 msgid ""
1056 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1057 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1058 msgstr ""
1059
1060 #. type: =head1
1061 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1062 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1063 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1064 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1065 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1066 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1067 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1068 #: ../tools/virt-win-reg.pl:783
1069 msgid "AUTHOR"
1070 msgstr ""
1071
1072 #. type: textblock
1073 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1074 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1075 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1076 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1077 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:713
1078 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1079 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1080 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1081 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1082 msgstr ""
1083
1084 #. type: =head1
1085 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1086 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1087 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1088 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1089 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1090 #: ../examples/guestfs-testing.pod:280 ../fish/guestfish.pod:1300
1091 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1092 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1093 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1094 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1095 #: ../perl/examples/guestfs-perl.pod:56
1096 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1097 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1098 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3353
1099 #: ../test-tool/libguestfs-test-tool.pod:110
1100 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1101 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1102 #: ../tools/virt-win-reg.pl:787
1103 msgid "COPYRIGHT"
1104 msgstr ""
1105
1106 #. type: textblock
1107 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1108 #: ../sparsify/virt-sparsify.pod:270
1109 msgid "Copyright (C) 2011 Red Hat Inc."
1110 msgstr ""
1111
1112 #. type: textblock
1113 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1114 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1115 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1116 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1117 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1118 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1119 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1120 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:719
1121 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1122 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1123 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1124 #: ../tools/virt-win-reg.pl:791
1125 msgid ""
1126 "This program is free software; you can redistribute it and/or modify it "
1127 "under the terms of the GNU General Public License as published by the Free "
1128 "Software Foundation; either version 2 of the License, or (at your option) "
1129 "any later version."
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1134 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1135 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1136 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1137 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1138 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1139 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1140 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:724
1141 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1142 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1143 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1144 #: ../tools/virt-win-reg.pl:796
1145 msgid ""
1146 "This program is distributed in the hope that it will be useful, but WITHOUT "
1147 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1148 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1149 "more details."
1150 msgstr ""
1151
1152 #. type: textblock
1153 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1154 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1155 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1156 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1157 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1158 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1159 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1160 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:729
1161 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1162 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1163 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1164 #: ../tools/virt-win-reg.pl:801
1165 msgid ""
1166 "You should have received a copy of the GNU General Public License along with "
1167 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1168 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1169 msgstr ""
1170
1171 #. type: textblock
1172 #: ../cat/virt-cat.pod:5
1173 msgid "virt-cat - Display files in a virtual machine"
1174 msgstr ""
1175
1176 #. type: verbatim
1177 #: ../cat/virt-cat.pod:9
1178 #, no-wrap
1179 msgid ""
1180 " virt-cat [--options] -d domname file [file ...]\n"
1181 "\n"
1182 msgstr ""
1183
1184 #. type: verbatim
1185 #: ../cat/virt-cat.pod:11
1186 #, no-wrap
1187 msgid ""
1188 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1189 "\n"
1190 msgstr ""
1191
1192 #. type: textblock
1193 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1194 #: ../inspector/virt-inspector.pod:13
1195 msgid "Old-style:"
1196 msgstr ""
1197
1198 #. type: verbatim
1199 #: ../cat/virt-cat.pod:15
1200 #, no-wrap
1201 msgid ""
1202 " virt-cat domname file\n"
1203 "\n"
1204 msgstr ""
1205
1206 #. type: verbatim
1207 #: ../cat/virt-cat.pod:17
1208 #, no-wrap
1209 msgid ""
1210 " virt-cat disk.img file\n"
1211 "\n"
1212 msgstr ""
1213
1214 #. type: textblock
1215 #: ../cat/virt-cat.pod:21
1216 msgid ""
1217 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1218 "C<file> exists in the named virtual machine (or disk image)."
1219 msgstr ""
1220
1221 #. type: textblock
1222 #: ../cat/virt-cat.pod:24
1223 msgid ""
1224 "Multiple filenames can be given, in which case they are concatenated "
1225 "together.  Each filename must be a full path, starting at the root directory "
1226 "(starting with '/')."
1227 msgstr ""
1228
1229 #. type: textblock
1230 #: ../cat/virt-cat.pod:28
1231 msgid ""
1232 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1233 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1234 "(see L</USING GUESTFISH> below)."
1235 msgstr ""
1236
1237 #. type: =head1
1238 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1239 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1240 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1241 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1242 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1243 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1244 #: ../tools/virt-tar.pl:50
1245 msgid "EXAMPLES"
1246 msgstr ""
1247
1248 #. type: textblock
1249 #: ../cat/virt-cat.pod:34
1250 msgid ""
1251 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1252 msgstr ""
1253
1254 #. type: verbatim
1255 #: ../cat/virt-cat.pod:37
1256 #, no-wrap
1257 msgid ""
1258 " virt-cat -d mydomain /etc/fstab\n"
1259 "\n"
1260 msgstr ""
1261
1262 #. type: textblock
1263 #: ../cat/virt-cat.pod:39
1264 msgid "List syslog messages from a VM disk image file:"
1265 msgstr ""
1266
1267 #. type: verbatim
1268 #: ../cat/virt-cat.pod:41
1269 #, no-wrap
1270 msgid ""
1271 " virt-cat -a disk.img /var/log/messages | tail\n"
1272 "\n"
1273 msgstr ""
1274
1275 #. type: textblock
1276 #: ../cat/virt-cat.pod:43
1277 msgid "Find out what DHCP IP address a VM acquired:"
1278 msgstr ""
1279
1280 #. type: verbatim
1281 #: ../cat/virt-cat.pod:45
1282 #, no-wrap
1283 msgid ""
1284 " virt-cat -d mydomain /var/log/messages | \\\n"
1285 "   grep 'dhclient: bound to' | tail\n"
1286 "\n"
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-cat.pod:48
1291 msgid "Find out what packages were recently installed:"
1292 msgstr ""
1293
1294 #. type: verbatim
1295 #: ../cat/virt-cat.pod:50
1296 #, no-wrap
1297 msgid ""
1298 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1299 "\n"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../cat/virt-cat.pod:52
1304 msgid "Find out who is logged on inside a virtual machine:"
1305 msgstr ""
1306
1307 #. type: verbatim
1308 #: ../cat/virt-cat.pod:54
1309 #, no-wrap
1310 msgid ""
1311 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1312 " who /tmp/utmp\n"
1313 "\n"
1314 msgstr ""
1315
1316 #. type: textblock
1317 #: ../cat/virt-cat.pod:57
1318 msgid "or who was logged on:"
1319 msgstr ""
1320
1321 #. type: verbatim
1322 #: ../cat/virt-cat.pod:59
1323 #, no-wrap
1324 msgid ""
1325 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1326 " last -f /tmp/wtmp\n"
1327 "\n"
1328 msgstr ""
1329
1330 #. type: textblock
1331 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1332 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1333 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1334 msgid ""
1335 "Add I<file> which should be a disk image from a virtual machine.  If the "
1336 "virtual machine has multiple block devices, you must supply all of them with "
1337 "separate I<-a> options."
1338 msgstr ""
1339
1340 #. type: =item
1341 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1342 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1343 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1344 msgid "B<--echo-keys>"
1345 msgstr ""
1346
1347 #. type: textblock
1348 #: ../cat/virt-cat.pod:100
1349 msgid ""
1350 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1351 "so you cannot see what you are typing.  If you are not worried about Tempest "
1352 "attacks and there is no one else in the room you can specify this flag to "
1353 "see what you are typing."
1354 msgstr ""
1355
1356 #. type: verbatim
1357 #: ../cat/virt-cat.pod:116
1358 #, no-wrap
1359 msgid ""
1360 " virt-cat --format=raw -a disk.img file\n"
1361 "\n"
1362 msgstr ""
1363
1364 #. type: verbatim
1365 #: ../cat/virt-cat.pod:120
1366 #, no-wrap
1367 msgid ""
1368 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1369 "\n"
1370 msgstr ""
1371
1372 #. type: =item
1373 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1374 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1375 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1376 msgid "B<--keys-from-stdin>"
1377 msgstr ""
1378
1379 #. type: textblock
1380 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1381 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1382 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1383 msgid ""
1384 "Read key or passphrase parameters from stdin.  The default is to try to read "
1385 "passphrases from the user by opening C</dev/tty>."
1386 msgstr ""
1387
1388 #. type: =head1
1389 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1390 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1391 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1392 msgstr ""
1393
1394 #. type: textblock
1395 #: ../cat/virt-cat.pod:154
1396 msgid "Previous versions of virt-cat allowed you to write either:"
1397 msgstr ""
1398
1399 #. type: verbatim
1400 #: ../cat/virt-cat.pod:156
1401 #, no-wrap
1402 msgid ""
1403 " virt-cat disk.img [disk.img ...] file\n"
1404 "\n"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1409 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1410 msgid "or"
1411 msgstr ""
1412
1413 #. type: verbatim
1414 #: ../cat/virt-cat.pod:160
1415 #, no-wrap
1416 msgid ""
1417 " virt-cat guestname file\n"
1418 "\n"
1419 msgstr ""
1420
1421 #. type: textblock
1422 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1423 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1424 msgid ""
1425 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1426 "the confusing case where a disk image might have the same name as a guest."
1427 msgstr ""
1428
1429 #. type: textblock
1430 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1431 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1432 msgid "For compatibility the old style is still supported."
1433 msgstr ""
1434
1435 #. type: =head1
1436 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1437 msgid "WINDOWS PATHS"
1438 msgstr ""
1439
1440 #. type: textblock
1441 #: ../cat/virt-cat.pod:170
1442 msgid ""
1443 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1444 "paths (eg. C<E:\\foo\\bar.txt>)."
1445 msgstr ""
1446
1447 #. type: textblock
1448 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1449 msgid "If and only if the guest is running Windows then:"
1450 msgstr ""
1451
1452 #. type: textblock
1453 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1454 msgid ""
1455 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1456 "to the correct filesystem."
1457 msgstr ""
1458
1459 #. type: textblock
1460 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1461 msgid ""
1462 "Any backslash (C<\\>) characters in the path are replaced with forward "
1463 "slashes so that libguestfs can process it."
1464 msgstr ""
1465
1466 #. type: textblock
1467 #: ../cat/virt-cat.pod:189
1468 msgid ""
1469 "The path is resolved case insensitively to locate the file that should be "
1470 "displayed."
1471 msgstr ""
1472
1473 #. type: textblock
1474 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1475 msgid "There are some known shortcomings:"
1476 msgstr ""
1477
1478 #. type: textblock
1479 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1480 msgid "Some NTFS symbolic links may not be followed correctly."
1481 msgstr ""
1482
1483 #. type: textblock
1484 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1485 msgid "NTFS junction points that cross filesystems are not followed."
1486 msgstr ""
1487
1488 #. type: =head1
1489 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1490 msgid "USING GUESTFISH"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-cat.pod:210
1495 msgid ""
1496 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1497 "C<virt-cat> doesn't work."
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-cat.pod:213
1502 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1503 msgstr ""
1504
1505 #. type: verbatim
1506 #: ../cat/virt-cat.pod:215
1507 #, no-wrap
1508 msgid ""
1509 " guestfish --ro -i -d domname download file -\n"
1510 "\n"
1511 msgstr ""
1512
1513 #. type: textblock
1514 #: ../cat/virt-cat.pod:217
1515 msgid ""
1516 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1517 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1518 msgstr ""
1519
1520 #. type: textblock
1521 #: ../cat/virt-cat.pod:221
1522 msgid ""
1523 "The command above uses libguestfs's guest inspection feature and so does not "
1524 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1525 "disk images that don't contain guests.  To display a file from a disk image "
1526 "directly, use:"
1527 msgstr ""
1528
1529 #. type: verbatim
1530 #: ../cat/virt-cat.pod:226
1531 #, no-wrap
1532 msgid ""
1533 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1534 "\n"
1535 msgstr ""
1536
1537 #. type: textblock
1538 #: ../cat/virt-cat.pod:228
1539 msgid ""
1540 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1541 "the disk image, and C<file> is the full path to the file."
1542 msgstr ""
1543
1544 #. type: textblock
1545 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1546 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1547 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1548 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1549 msgid ""
1550 "This program returns 0 if successful, or non-zero if there was an error."
1551 msgstr ""
1552
1553 #. type: textblock
1554 #: ../cat/virt-cat.pod:245
1555 msgid ""
1556 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1557 "tar-out(1)>, L<http://libguestfs.org/>."
1558 msgstr ""
1559
1560 #. type: textblock
1561 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1562 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1563 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1564 msgstr ""
1565
1566 #. type: textblock
1567 #: ../cat/virt-filesystems.pod:5
1568 msgid ""
1569 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1570 "virtual machine or disk image"
1571 msgstr ""
1572
1573 #. type: verbatim
1574 #: ../cat/virt-filesystems.pod:9
1575 #, no-wrap
1576 msgid ""
1577 " virt-filesystems [--options] -d domname\n"
1578 "\n"
1579 msgstr ""
1580
1581 #. type: verbatim
1582 #: ../cat/virt-filesystems.pod:11
1583 #, no-wrap
1584 msgid ""
1585 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1586 "\n"
1587 msgstr ""
1588
1589 #. type: textblock
1590 #: ../cat/virt-filesystems.pod:15
1591 msgid ""
1592 "This tool allows you to discover filesystems, partitions, logical volumes, "
1593 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1594 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1595 msgstr ""
1596
1597 #. type: textblock
1598 #: ../cat/virt-filesystems.pod:20
1599 msgid ""
1600 "One use for this tool is from shell scripts to iterate over all filesystems "
1601 "from a disk image:"
1602 msgstr ""
1603
1604 #. type: verbatim
1605 #: ../cat/virt-filesystems.pod:23
1606 #, no-wrap
1607 msgid ""
1608 " for fs in $(virt-filesystems -a disk.img); do\n"
1609 "   # ...\n"
1610 " done\n"
1611 "\n"
1612 msgstr ""
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:27
1616 msgid ""
1617 "Another use is to list partitions before using another tool to modify those "
1618 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1619 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-filesystems.pod:32
1624 msgid ""
1625 "Various command line options control what this program displays.  You need "
1626 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1627 "guest respectively.  If you just specify that then the program shows "
1628 "filesystems found, one per line, like this:"
1629 msgstr ""
1630
1631 #. type: verbatim
1632 #: ../cat/virt-filesystems.pod:37
1633 #, no-wrap
1634 msgid ""
1635 " $ virt-filesystems -a disk.img\n"
1636 " /dev/sda1\n"
1637 " /dev/vg_guest/lv_root\n"
1638 "\n"
1639 msgstr ""
1640
1641 #. type: textblock
1642 #: ../cat/virt-filesystems.pod:41
1643 msgid ""
1644 "If you add I<-l> or I<--long> then the output includes extra information:"
1645 msgstr ""
1646
1647 #. type: verbatim
1648 #: ../cat/virt-filesystems.pod:44
1649 #, no-wrap
1650 msgid ""
1651 " $ virt-filesystems -a disk.img -l\n"
1652 " Name                   Type         VFS   Label  Size\n"
1653 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1654 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1655 "\n"
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../cat/virt-filesystems.pod:49
1660 msgid ""
1661 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1662 "shown as well:"
1663 msgstr ""
1664
1665 #. type: verbatim
1666 #: ../cat/virt-filesystems.pod:52
1667 #, no-wrap
1668 msgid ""
1669 " $ virt-filesystems -a disk.img --extra\n"
1670 " /dev/sda1\n"
1671 " /dev/vg_guest/lv_root\n"
1672 " /dev/vg_guest/lv_swap\n"
1673 " /dev/vg_guest/lv_data\n"
1674 "\n"
1675 msgstr ""
1676
1677 #. type: textblock
1678 #: ../cat/virt-filesystems.pod:58
1679 msgid ""
1680 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1681 msgstr ""
1682
1683 #. type: verbatim
1684 #: ../cat/virt-filesystems.pod:60
1685 #, no-wrap
1686 msgid ""
1687 " $ virt-filesystems -a disk.img --partitions\n"
1688 " /dev/sda1\n"
1689 " /dev/sda2\n"
1690 "\n"
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../cat/virt-filesystems.pod:64
1695 msgid ""
1696 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1697 "volumes>, I<--block-devices> to list those items."
1698 msgstr ""
1699
1700 #. type: textblock
1701 #: ../cat/virt-filesystems.pod:67
1702 msgid ""
1703 "You can use these options in combination as well (if you want a combination "
1704 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1705 "items fall into several categories (eg. C</dev/sda1> might be both a "
1706 "partition and a filesystem).  These items are listed several times.  To get "
1707 "a list which includes absolutely everything that virt-filesystems knows "
1708 "about, use the I<--all> option."
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:74
1713 msgid ""
1714 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1715 "uuid> option to display device and filesystem UUIDs in the long output."
1716 msgstr ""
1717
1718 #. type: textblock
1719 #: ../cat/virt-filesystems.pod:78
1720 msgid ""
1721 "I<--all --long --uuid> is a useful combination to display all possible "
1722 "information about everything."
1723 msgstr ""
1724
1725 #. type: verbatim
1726 #: ../cat/virt-filesystems.pod:81
1727 #, no-wrap
1728 msgid ""
1729 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1730 " Name      Type       VFS  Label           Size Parent   UUID\n"
1731 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1732 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1733 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1734 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1735 " /dev/sda  device     -    -               20G  -        -\n"
1736 "\n"
1737 msgstr ""
1738
1739 #. type: textblock
1740 #: ../cat/virt-filesystems.pod:89
1741 msgid ""
1742 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1743 msgstr ""
1744
1745 #. type: =item
1746 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1747 msgid "B<--all>"
1748 msgstr ""
1749
1750 #. type: textblock
1751 #: ../cat/virt-filesystems.pod:112
1752 msgid ""
1753 "Display everything.  This is currently the same as specifying these options: "
1754 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1755 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1756 "added to this list in future)."
1757 msgstr ""
1758
1759 #. type: textblock
1760 #: ../cat/virt-filesystems.pod:117
1761 msgid "See also I<--long>."
1762 msgstr ""
1763
1764 #. type: =item
1765 #: ../cat/virt-filesystems.pod:119
1766 msgid "B<--blkdevs>"
1767 msgstr ""
1768
1769 #. type: =item
1770 #: ../cat/virt-filesystems.pod:121
1771 msgid "B<--block-devices>"
1772 msgstr ""
1773
1774 #. type: textblock
1775 #: ../cat/virt-filesystems.pod:123
1776 msgid "Display block devices."
1777 msgstr ""
1778
1779 #. type: =item
1780 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1781 msgid "B<--csv>"
1782 msgstr ""
1783
1784 #. type: textblock
1785 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1786 msgid ""
1787 "Write out the results in CSV format (comma-separated values).  This format "
1788 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1789 "ABOUT CSV FORMAT> below."
1790 msgstr ""
1791
1792 #. type: textblock
1793 #: ../cat/virt-filesystems.pod:150
1794 msgid ""
1795 "When prompting for keys and passphrases, virt-filesystems normally turns "
1796 "echoing off so you cannot see what you are typing.  If you are not worried "
1797 "about Tempest attacks and there is no one else in the room you can specify "
1798 "this flag to see what you are typing."
1799 msgstr ""
1800
1801 #. type: =item
1802 #: ../cat/virt-filesystems.pod:155
1803 msgid "B<--extra>"
1804 msgstr ""
1805
1806 #. type: textblock
1807 #: ../cat/virt-filesystems.pod:157
1808 msgid ""
1809 "This causes filesystems that are not ordinary, mountable filesystems to be "
1810 "displayed.  This category includes swapspace, and filesystems that are empty "
1811 "or contain unknown data."
1812 msgstr ""
1813
1814 #. type: textblock
1815 #: ../cat/virt-filesystems.pod:161
1816 msgid "This option implies I<--filesystems>."
1817 msgstr ""
1818
1819 #. type: =item
1820 #: ../cat/virt-filesystems.pod:163
1821 msgid "B<--filesystems>"
1822 msgstr ""
1823
1824 #. type: textblock
1825 #: ../cat/virt-filesystems.pod:165
1826 msgid ""
1827 "Display mountable filesystems.  If no display option was selected then this "
1828 "option is implied."
1829 msgstr ""
1830
1831 #. type: textblock
1832 #: ../cat/virt-filesystems.pod:168
1833 msgid "With I<--extra>, non-mountable filesystems are shown too."
1834 msgstr ""
1835
1836 #. type: verbatim
1837 #: ../cat/virt-filesystems.pod:181
1838 #, no-wrap
1839 msgid ""
1840 " virt-filesystems --format=raw -a disk.img\n"
1841 "\n"
1842 msgstr ""
1843
1844 #. type: verbatim
1845 #: ../cat/virt-filesystems.pod:185
1846 #, no-wrap
1847 msgid ""
1848 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1849 "\n"
1850 msgstr ""
1851
1852 #. type: =item
1853 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1854 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1855 #: ../tools/virt-list-partitions.pl:109
1856 msgid "B<-h>"
1857 msgstr ""
1858
1859 #. type: =item
1860 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1861 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1862 msgid "B<--human-readable>"
1863 msgstr ""
1864
1865 #. type: textblock
1866 #: ../cat/virt-filesystems.pod:198
1867 msgid "In I<--long> mode, display sizes in human-readable format."
1868 msgstr ""
1869
1870 #. type: =item
1871 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1872 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1873 msgid "B<-l>"
1874 msgstr ""
1875
1876 #. type: =item
1877 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1878 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1879 msgid "B<--long>"
1880 msgstr ""
1881
1882 #. type: textblock
1883 #: ../cat/virt-filesystems.pod:209
1884 msgid "Display extra columns of data (\"long format\")."
1885 msgstr ""
1886
1887 #. type: textblock
1888 #: ../cat/virt-filesystems.pod:211
1889 msgid "A title row is added unless you also specify I<--no-title>."
1890 msgstr ""
1891
1892 #. type: textblock
1893 #: ../cat/virt-filesystems.pod:213
1894 msgid ""
1895 "The extra columns displayed depend on what output you select, and the "
1896 "ordering of columns may change in future versions.  Use the title row, I<--"
1897 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1898 "programs."
1899 msgstr ""
1900
1901 #. type: textblock
1902 #: ../cat/virt-filesystems.pod:218
1903 msgid ""
1904 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1905 "default is to show raw numbers of I<bytes>."
1906 msgstr ""
1907
1908 #. type: textblock
1909 #: ../cat/virt-filesystems.pod:221
1910 msgid "Use I<--uuid> to display UUIDs too."
1911 msgstr ""
1912
1913 #. type: =item
1914 #: ../cat/virt-filesystems.pod:223
1915 msgid "B<--lvs>"
1916 msgstr ""
1917
1918 #. type: =item
1919 #: ../cat/virt-filesystems.pod:225
1920 msgid "B<--logvols>"
1921 msgstr ""
1922
1923 #. type: =item
1924 #: ../cat/virt-filesystems.pod:227
1925 msgid "B<--logical-volumes>"
1926 msgstr ""
1927
1928 #. type: textblock
1929 #: ../cat/virt-filesystems.pod:229
1930 msgid ""
1931 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1932 "of whether the LVs contain filesystems."
1933 msgstr ""
1934
1935 #. type: =item
1936 #: ../cat/virt-filesystems.pod:232
1937 msgid "B<--no-title>"
1938 msgstr ""
1939
1940 #. type: textblock
1941 #: ../cat/virt-filesystems.pod:234
1942 msgid "In I<--long> mode, don't add a title row."
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-filesystems.pod:236
1947 msgid ""
1948 "Note that the order of the columns is not fixed, and may change in future "
1949 "versions of virt-filesystems, so using this option may give you unexpected "
1950 "surprises."
1951 msgstr ""
1952
1953 #. type: =item
1954 #: ../cat/virt-filesystems.pod:240
1955 msgid "B<--parts>"
1956 msgstr ""
1957
1958 #. type: =item
1959 #: ../cat/virt-filesystems.pod:242
1960 msgid "B<--partitions>"
1961 msgstr ""
1962
1963 #. type: textblock
1964 #: ../cat/virt-filesystems.pod:244
1965 msgid ""
1966 "Display partitions.  In this mode, these are displayed irrespective of "
1967 "whether the partitions contain filesystems."
1968 msgstr ""
1969
1970 #. type: =item
1971 #: ../cat/virt-filesystems.pod:247
1972 msgid "B<--pvs>"
1973 msgstr ""
1974
1975 #. type: =item
1976 #: ../cat/virt-filesystems.pod:249
1977 msgid "B<--physvols>"
1978 msgstr ""
1979
1980 #. type: =item
1981 #: ../cat/virt-filesystems.pod:251
1982 msgid "B<--physical-volumes>"
1983 msgstr ""
1984
1985 #. type: textblock
1986 #: ../cat/virt-filesystems.pod:253
1987 msgid "Display LVM physical volumes."
1988 msgstr ""
1989
1990 #. type: =item
1991 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1992 msgid "B<--uuid>"
1993 msgstr ""
1994
1995 #. type: =item
1996 #: ../cat/virt-filesystems.pod:257
1997 msgid "B<--uuids>"
1998 msgstr ""
1999
2000 #. type: textblock
2001 #: ../cat/virt-filesystems.pod:259
2002 msgid "In I<--long> mode, display UUIDs as well."
2003 msgstr ""
2004
2005 #. type: =item
2006 #: ../cat/virt-filesystems.pod:273
2007 msgid "B<--vgs>"
2008 msgstr ""
2009
2010 #. type: =item
2011 #: ../cat/virt-filesystems.pod:275
2012 msgid "B<--volgroups>"
2013 msgstr ""
2014
2015 #. type: =item
2016 #: ../cat/virt-filesystems.pod:277
2017 msgid "B<--volume-groups>"
2018 msgstr ""
2019
2020 #. type: textblock
2021 #: ../cat/virt-filesystems.pod:279
2022 msgid "Display LVM volume groups."
2023 msgstr ""
2024
2025 #. type: =head1
2026 #: ../cat/virt-filesystems.pod:287
2027 msgid "COLUMNS"
2028 msgstr ""
2029
2030 #. type: textblock
2031 #: ../cat/virt-filesystems.pod:289
2032 msgid ""
2033 "Note that columns in the output are subject to reordering and change in "
2034 "future versions of this tool."
2035 msgstr ""
2036
2037 #. type: =item
2038 #: ../cat/virt-filesystems.pod:294
2039 msgid "B<Name>"
2040 msgstr ""
2041
2042 #. type: textblock
2043 #: ../cat/virt-filesystems.pod:296
2044 msgid "The filesystem, partition, block device or LVM name."
2045 msgstr ""
2046
2047 #. type: textblock
2048 #: ../cat/virt-filesystems.pod:298
2049 msgid ""
2050 "For device and partition names these are displayed as canonical libguestfs "
2051 "names, so that for example C</dev/sda2> is the second partition on the first "
2052 "device."
2053 msgstr ""
2054
2055 #. type: textblock
2056 #: ../cat/virt-filesystems.pod:302
2057 msgid ""
2058 "If the I<--long> option is B<not> specified, then only the name column is "
2059 "shown in the output."
2060 msgstr ""
2061
2062 #. type: =item
2063 #: ../cat/virt-filesystems.pod:305
2064 msgid "B<Type>"
2065 msgstr ""
2066
2067 #. type: textblock
2068 #: ../cat/virt-filesystems.pod:307
2069 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2070 msgstr ""
2071
2072 #. type: =item
2073 #: ../cat/virt-filesystems.pod:309
2074 msgid "B<VFS>"
2075 msgstr ""
2076
2077 #. type: textblock
2078 #: ../cat/virt-filesystems.pod:311
2079 msgid ""
2080 "If there is a filesystem, then this column displays the filesystem type if "
2081 "one could be detected, eg. C<ext4>."
2082 msgstr ""
2083
2084 #. type: =item
2085 #: ../cat/virt-filesystems.pod:314
2086 msgid "B<Label>"
2087 msgstr ""
2088
2089 #. type: textblock
2090 #: ../cat/virt-filesystems.pod:316
2091 msgid ""
2092 "If the object has a label (used for identifying and mounting filesystems) "
2093 "then this column contains the label."
2094 msgstr ""
2095
2096 #. type: =item
2097 #: ../cat/virt-filesystems.pod:319
2098 msgid "B<MBR>"
2099 msgstr ""
2100
2101 #. type: textblock
2102 #: ../cat/virt-filesystems.pod:321
2103 msgid ""
2104 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2105 "comprehensive list of partition types can be found here: L<http://www.win."
2106 "tue.nl/~aeb/partitions/partition_types-1.html>"
2107 msgstr ""
2108
2109 #. type: textblock
2110 #: ../cat/virt-filesystems.pod:325
2111 msgid "This is only applicable for DOS (MBR) partitions."
2112 msgstr ""
2113
2114 #. type: =item
2115 #: ../cat/virt-filesystems.pod:327
2116 msgid "B<Size>"
2117 msgstr ""
2118
2119 #. type: textblock
2120 #: ../cat/virt-filesystems.pod:329
2121 msgid ""
2122 "The size of the object in bytes.  If the I<--human> option is used then the "
2123 "size is displayed in a human-readable form."
2124 msgstr ""
2125
2126 #. type: =item
2127 #: ../cat/virt-filesystems.pod:332
2128 msgid "B<Parent>"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../cat/virt-filesystems.pod:334
2133 msgid ""
2134 "The parent column records the parent relationship between objects.  For "
2135 "example, if the object is a partition, then this column contains the name of "
2136 "the containing device.  If the object is a logical volume, then this column "
2137 "is the name of the volume group."
2138 msgstr ""
2139
2140 #. type: =item
2141 #: ../cat/virt-filesystems.pod:339
2142 msgid "B<UUID>"
2143 msgstr ""
2144
2145 #. type: textblock
2146 #: ../cat/virt-filesystems.pod:341
2147 msgid ""
2148 "If the object has a UUID (used for identifying and mounting filesystems and "
2149 "block devices) then this column contains the UUID as a string."
2150 msgstr ""
2151
2152 #. type: textblock
2153 #: ../cat/virt-filesystems.pod:345
2154 msgid "The UUID is only displayed if the I<--uuid> option is given."
2155 msgstr ""
2156
2157 #. type: =head1
2158 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2159 #: ../df/virt-df.pod:191
2160 msgid "NOTE ABOUT CSV FORMAT"
2161 msgstr ""
2162
2163 #. type: textblock
2164 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2165 #: ../df/virt-df.pod:193
2166 msgid ""
2167 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2168 "should be easy to parse, but it is definitely not easy to parse."
2169 msgstr ""
2170
2171 #. type: textblock
2172 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2173 #: ../df/virt-df.pod:196
2174 msgid ""
2175 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2176 "reliably.  This example has two columns:"
2177 msgstr ""
2178
2179 #. type: verbatim
2180 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2181 #: ../df/virt-df.pod:199
2182 #, no-wrap
2183 msgid ""
2184 " \"foo,bar\",baz\n"
2185 "\n"
2186 msgstr ""
2187
2188 #. type: textblock
2189 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2190 #: ../df/virt-df.pod:201
2191 msgid ""
2192 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2193 "reliably.  This example has one row:"
2194 msgstr ""
2195
2196 #. type: verbatim
2197 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2198 #: ../df/virt-df.pod:204
2199 #, no-wrap
2200 msgid ""
2201 " \"foo\n"
2202 " bar\",baz\n"
2203 "\n"
2204 msgstr ""
2205
2206 #. type: textblock
2207 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2208 #: ../df/virt-df.pod:207
2209 msgid ""
2210 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2211 "packaged in major Linux distributions)."
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2216 #: ../df/virt-df.pod:210
2217 msgid ""
2218 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2219 "or Python's built-in csv library)."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2224 #: ../df/virt-df.pod:213
2225 msgid "Most spreadsheets and databases can import CSV directly."
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../cat/virt-filesystems.pod:387
2230 msgid ""
2231 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2232 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2233 "libguestfs.org/>."
2234 msgstr ""
2235
2236 #. type: textblock
2237 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2238 msgid "Copyright (C) 2010 Red Hat Inc."
2239 msgstr ""
2240
2241 #. type: textblock
2242 #: ../cat/virt-ls.pod:5
2243 msgid "virt-ls - List files in a virtual machine"
2244 msgstr ""
2245
2246 #. type: verbatim
2247 #: ../cat/virt-ls.pod:9
2248 #, no-wrap
2249 msgid ""
2250 " virt-ls [--options] -d domname directory [directory ...]\n"
2251 "\n"
2252 msgstr ""
2253
2254 #. type: verbatim
2255 #: ../cat/virt-ls.pod:11
2256 #, no-wrap
2257 msgid ""
2258 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2259 "\n"
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2264 msgid "Old style:"
2265 msgstr ""
2266
2267 #. type: verbatim
2268 #: ../cat/virt-ls.pod:15
2269 #, no-wrap
2270 msgid ""
2271 " virt-ls [--options] domname directory\n"
2272 "\n"
2273 msgstr ""
2274
2275 #. type: verbatim
2276 #: ../cat/virt-ls.pod:17
2277 #, no-wrap
2278 msgid ""
2279 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2280 "\n"
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:21
2285 msgid ""
2286 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2287 "more from a virtual machine or disk image."
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../cat/virt-ls.pod:24
2292 msgid ""
2293 "Multiple directory names can be given, in which case the output from each is "
2294 "concatenated."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:27
2299 msgid ""
2300 "To list directories from a libvirt guest use the I<-d> option to specify the "
2301 "name of the guest.  For a disk image, use the I<-a> option."
2302 msgstr ""
2303
2304 #. type: textblock
2305 #: ../cat/virt-ls.pod:31
2306 msgid ""
2307 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2308 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2309 "(3)> API."
2310 msgstr ""
2311
2312 #. type: textblock
2313 #: ../cat/virt-ls.pod:37
2314 msgid "Get a list of all files and directories in a virtual machine:"
2315 msgstr ""
2316
2317 #. type: verbatim
2318 #: ../cat/virt-ls.pod:39
2319 #, no-wrap
2320 msgid ""
2321 " virt-ls -R -d guest /\n"
2322 "\n"
2323 msgstr ""
2324
2325 #. type: textblock
2326 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:160
2327 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2328 msgstr ""
2329
2330 #. type: verbatim
2331 #: ../cat/virt-ls.pod:43
2332 #, no-wrap
2333 msgid ""
2334 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2335 "\n"
2336 msgstr ""
2337
2338 #. type: textblock
2339 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:164
2340 msgid "List all public-writable directories in a Linux virtual machine:"
2341 msgstr ""
2342
2343 #. type: verbatim
2344 #: ../cat/virt-ls.pod:47
2345 #, no-wrap
2346 msgid ""
2347 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2348 "\n"
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:168
2353 msgid "List all Unix domain sockets in a Linux virtual machine:"
2354 msgstr ""
2355
2356 #. type: verbatim
2357 #: ../cat/virt-ls.pod:51
2358 #, no-wrap
2359 msgid ""
2360 " virt-ls -lR -d guest / | grep '^s'\n"
2361 "\n"
2362 msgstr ""
2363
2364 #. type: textblock
2365 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:172
2366 msgid "List all regular files with filenames ending in '.png':"
2367 msgstr ""
2368
2369 #. type: verbatim
2370 #: ../cat/virt-ls.pod:55
2371 #, no-wrap
2372 msgid ""
2373 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2374 "\n"
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:57
2379 msgid "To display files larger than 10MB in home directories:"
2380 msgstr ""
2381
2382 #. type: verbatim
2383 #: ../cat/virt-ls.pod:59
2384 #, no-wrap
2385 msgid ""
2386 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2387 "\n"
2388 msgstr ""
2389
2390 #. type: textblock
2391 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:180
2392 msgid "Find everything modified in the last 7 days:"
2393 msgstr ""
2394
2395 #. type: verbatim
2396 #: ../cat/virt-ls.pod:63
2397 #, no-wrap
2398 msgid ""
2399 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2400 "\n"
2401 msgstr ""
2402
2403 #. type: textblock
2404 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:184
2405 msgid "Find regular files modified in the last 24 hours:"
2406 msgstr ""
2407
2408 #. type: verbatim
2409 #: ../cat/virt-ls.pod:67
2410 #, no-wrap
2411 msgid ""
2412 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2413 "\n"
2414 msgstr ""
2415
2416 #. type: =head2
2417 #: ../cat/virt-ls.pod:69
2418 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2419 msgstr ""
2420
2421 #. type: textblock
2422 #: ../cat/virt-ls.pod:71
2423 msgid ""
2424 "Find the differences between files in a guest and an earlier snapshot of the "
2425 "same guest."
2426 msgstr ""
2427
2428 #. type: verbatim
2429 #: ../cat/virt-ls.pod:74
2430 #, no-wrap
2431 msgid ""
2432 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2433 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2434 " diff -u old new | less\n"
2435 "\n"
2436 msgstr ""
2437
2438 #. type: textblock
2439 #: ../cat/virt-ls.pod:78
2440 msgid ""
2441 "The commands above won't find files where the content has changed but the "
2442 "metadata (eg. file size and modification date) is the same.  To do that, you "
2443 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2444 "checksum> can be quite slow since it has to read and compute a checksum of "
2445 "every regular file in the virtual machine."
2446 msgstr ""
2447
2448 #. type: =head1
2449 #: ../cat/virt-ls.pod:84
2450 msgid "OUTPUT MODES"
2451 msgstr ""
2452
2453 #. type: textblock
2454 #: ../cat/virt-ls.pod:86
2455 msgid ""
2456 "C<virt-ls> has four output modes, controlled by different combinations of "
2457 "the I<-l> and I<-R> options."
2458 msgstr ""
2459
2460 #. type: =head2
2461 #: ../cat/virt-ls.pod:89
2462 msgid "SIMPLE LISTING"
2463 msgstr ""
2464
2465 #. type: textblock
2466 #: ../cat/virt-ls.pod:91
2467 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2468 msgstr ""
2469
2470 #. type: verbatim
2471 #: ../cat/virt-ls.pod:93
2472 #, no-wrap
2473 msgid ""
2474 " $ virt-ls -d guest /\n"
2475 " bin\n"
2476 " boot\n"
2477 " [etc.]\n"
2478 "\n"
2479 msgstr ""
2480
2481 #. type: =head2
2482 #: ../cat/virt-ls.pod:98
2483 msgid "LONG LISTING"
2484 msgstr ""
2485
2486 #. type: textblock
2487 #: ../cat/virt-ls.pod:100
2488 msgid ""
2489 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2490 "(more specifically, like the C<guestfs_ll> function)."
2491 msgstr ""
2492
2493 #. type: verbatim
2494 #: ../cat/virt-ls.pod:103
2495 #, no-wrap
2496 msgid ""
2497 " $ virt-ls -l -d guest /\n"
2498 " total 204\n"
2499 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2500 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2501 " [etc.]\n"
2502 "\n"
2503 msgstr ""
2504
2505 #. type: textblock
2506 #: ../cat/virt-ls.pod:109
2507 msgid ""
2508 "Note that while this is useful for displaying a directory, do not try "
2509 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2510 "instead."
2511 msgstr ""
2512
2513 #. type: =head2
2514 #: ../cat/virt-ls.pod:113
2515 msgid "RECURSIVE LISTING"
2516 msgstr ""
2517
2518 #. type: textblock
2519 #: ../cat/virt-ls.pod:115
2520 msgid ""
2521 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2522 "and directories recursively:"
2523 msgstr ""
2524
2525 #. type: verbatim
2526 #: ../cat/virt-ls.pod:118
2527 #, no-wrap
2528 msgid ""
2529 " $ virt-ls -R -d guest /tmp\n"
2530 " foo\n"
2531 " foo/bar\n"
2532 " [etc.]\n"
2533 "\n"
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:123
2538 msgid ""
2539 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2540 "converts C<\\0> characters to C<\\n>."
2541 msgstr ""
2542
2543 #. type: =head2
2544 #: ../cat/virt-ls.pod:126
2545 msgid "RECURSIVE LONG LISTING"
2546 msgstr ""
2547
2548 #. type: textblock
2549 #: ../cat/virt-ls.pod:128
2550 msgid ""
2551 "Using I<-lR> options together changes the output to display directories "
2552 "recursively, with file stats, and optionally other features such as "
2553 "checksums and extended attributes."
2554 msgstr ""
2555
2556 #. type: textblock
2557 #: ../cat/virt-ls.pod:132
2558 msgid ""
2559 "Most of the interesting features of C<virt-ls> are only available when using "
2560 "I<-lR> mode."
2561 msgstr ""
2562
2563 #. type: textblock
2564 #: ../cat/virt-ls.pod:135
2565 msgid ""
2566 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2567 "you cannot use the output in another program (because filenames can contain "
2568 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2569 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2570 "on you by creating filenames with embedded newline characters.  To B<safely> "
2571 "parse the output in another program, use the I<--csv> (Comma-Separated "
2572 "Values) option."
2573 msgstr ""
2574
2575 #. type: textblock
2576 #: ../cat/virt-ls.pod:143
2577 msgid ""
2578 "Note that this output format is completely unrelated to the C<ls -lR> "
2579 "command."
2580 msgstr ""
2581
2582 #. type: verbatim
2583 #: ../cat/virt-ls.pod:146
2584 #, no-wrap
2585 msgid ""
2586 " $ virt-ls -lR -d guest /bin\n"
2587 " d 0555       4096 /bin\n"
2588 " - 0755        123 /bin/alsaunmute\n"
2589 " - 0755      28328 /bin/arch\n"
2590 " l 0777          4 /bin/awk -> gawk\n"
2591 " - 0755      27216 /bin/basename\n"
2592 " - 0755     943360 /bin/bash\n"
2593 " [etc.]\n"
2594 "\n"
2595 msgstr ""
2596
2597 #. type: textblock
2598 #: ../cat/virt-ls.pod:155
2599 msgid "These basic fields are always shown:"
2600 msgstr ""
2601
2602 #. type: =item
2603 #: ../cat/virt-ls.pod:159
2604 msgid "type"
2605 msgstr ""
2606
2607 #. type: textblock
2608 #: ../cat/virt-ls.pod:161
2609 msgid ""
2610 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2611 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2612 "link), C<s> (socket) or C<u> (unknown)."
2613 msgstr ""
2614
2615 #. type: =item
2616 #: ../cat/virt-ls.pod:171
2617 msgid "permissions"
2618 msgstr ""
2619
2620 #. type: textblock
2621 #: ../cat/virt-ls.pod:173
2622 msgid "The Unix permissions, displayed as a 4 digit octal number."
2623 msgstr ""
2624
2625 #. type: =item
2626 #: ../cat/virt-ls.pod:175
2627 msgid "size"
2628 msgstr ""
2629
2630 #. type: textblock
2631 #: ../cat/virt-ls.pod:177
2632 msgid ""
2633 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2634 "readable> option is given, in which case this is shown as a human-readable "
2635 "number."
2636 msgstr ""
2637
2638 #. type: =head2
2639 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4477
2640 msgid "path"
2641 msgstr ""
2642
2643 #. type: textblock
2644 #: ../cat/virt-ls.pod:183
2645 msgid "The full path of the file or directory."
2646 msgstr ""
2647
2648 #. type: =item
2649 #: ../cat/virt-ls.pod:185
2650 msgid "link"
2651 msgstr ""
2652
2653 #. type: textblock
2654 #: ../cat/virt-ls.pod:187
2655 msgid "For symbolic links only, the link target."
2656 msgstr ""
2657
2658 #. type: textblock
2659 #: ../cat/virt-ls.pod:191
2660 msgid ""
2661 "In I<-lR> mode, additional command line options enable the display of more "
2662 "fields."
2663 msgstr ""
2664
2665 #. type: textblock
2666 #: ../cat/virt-ls.pod:194
2667 msgid ""
2668 "With the I<--uids> flag, these additional fields are displayed before the "
2669 "path:"
2670 msgstr ""
2671
2672 #. type: =item
2673 #: ../cat/virt-ls.pod:199
2674 msgid "uid"
2675 msgstr ""
2676
2677 #. type: =item
2678 #: ../cat/virt-ls.pod:201
2679 msgid "gid"
2680 msgstr ""
2681
2682 #. type: textblock
2683 #: ../cat/virt-ls.pod:203
2684 msgid ""
2685 "The UID and GID of the owner of the file (displayed numerically).  Note "
2686 "these only make sense in the context of a Unix-like guest."
2687 msgstr ""
2688
2689 #. type: textblock
2690 #: ../cat/virt-ls.pod:208
2691 msgid "With the I<--times> flag, these additional fields are displayed:"
2692 msgstr ""
2693
2694 #. type: =item
2695 #: ../cat/virt-ls.pod:212
2696 msgid "atime"
2697 msgstr ""
2698
2699 #. type: textblock
2700 #: ../cat/virt-ls.pod:214
2701 msgid "The time of last access."
2702 msgstr ""
2703
2704 #. type: =item
2705 #: ../cat/virt-ls.pod:216
2706 msgid "mtime"
2707 msgstr ""
2708
2709 #. type: textblock
2710 #: ../cat/virt-ls.pod:218
2711 msgid "The time of last modification."
2712 msgstr ""
2713
2714 #. type: =item
2715 #: ../cat/virt-ls.pod:220
2716 msgid "ctime"
2717 msgstr ""
2718
2719 #. type: textblock
2720 #: ../cat/virt-ls.pod:222
2721 msgid "The time of last status change."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../cat/virt-ls.pod:226
2726 msgid ""
2727 "The time fields are displayed as string dates and times, unless one of the "
2728 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2729 msgstr ""
2730
2731 #. type: textblock
2732 #: ../cat/virt-ls.pod:229
2733 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2734 msgstr ""
2735
2736 #. type: =item
2737 #: ../cat/virt-ls.pod:233
2738 msgid "device"
2739 msgstr ""
2740
2741 #. type: textblock
2742 #: ../cat/virt-ls.pod:235
2743 msgid ""
2744 "The device containing the file (displayed as major:minor).  This may not "
2745 "match devices as known to the guest."
2746 msgstr ""
2747
2748 #. type: =item
2749 #: ../cat/virt-ls.pod:238
2750 msgid "inode"
2751 msgstr ""
2752
2753 #. type: textblock
2754 #: ../cat/virt-ls.pod:240
2755 msgid "The inode number."
2756 msgstr ""
2757
2758 #. type: =item
2759 #: ../cat/virt-ls.pod:242
2760 msgid "nlink"
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../cat/virt-ls.pod:244
2765 msgid "The number of hard links."
2766 msgstr ""
2767
2768 #. type: =item
2769 #: ../cat/virt-ls.pod:246
2770 msgid "rdev"
2771 msgstr ""
2772
2773 #. type: textblock
2774 #: ../cat/virt-ls.pod:248
2775 msgid ""
2776 "For block and char special files, the device (displayed as major:minor)."
2777 msgstr ""
2778
2779 #. type: =item
2780 #: ../cat/virt-ls.pod:251
2781 msgid "blocks"
2782 msgstr ""
2783
2784 #. type: textblock
2785 #: ../cat/virt-ls.pod:253
2786 msgid "The number of 512 byte blocks allocated to the file."
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../cat/virt-ls.pod:257
2791 msgid ""
2792 "With the I<--checksum> flag, the checksum of the file contents is shown "
2793 "(only for regular files).  Computing file checksums can take a considerable "
2794 "amount of time."
2795 msgstr ""
2796
2797 #. type: =item
2798 #: ../cat/virt-ls.pod:280
2799 msgid "B<--checksum>"
2800 msgstr ""
2801
2802 #. type: =item
2803 #: ../cat/virt-ls.pod:282
2804 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2805 msgstr ""
2806
2807 #. type: textblock
2808 #: ../cat/virt-ls.pod:284
2809 msgid ""
2810 "Display checksum over file contents for regular files.  With no argument, "
2811 "this defaults to using I<md5>.  Using an argument, you can select the "
2812 "checksum type to use."
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2817 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2818 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2819 msgid ""
2820 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2821 "LISTING> above."
2822 msgstr ""
2823
2824 #. type: textblock
2825 #: ../cat/virt-ls.pod:316
2826 msgid ""
2827 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2828 "so you cannot see what you are typing.  If you are not worried about Tempest "
2829 "attacks and there is no one else in the room you can specify this flag to "
2830 "see what you are typing."
2831 msgstr ""
2832
2833 #. type: =item
2834 #: ../cat/virt-ls.pod:321
2835 msgid "B<--extra-stats>"
2836 msgstr ""
2837
2838 #. type: textblock
2839 #: ../cat/virt-ls.pod:323
2840 msgid "Display extra stats."
2841 msgstr ""
2842
2843 #. type: verbatim
2844 #: ../cat/virt-ls.pod:339
2845 #, no-wrap
2846 msgid ""
2847 " virt-ls --format=raw -a disk.img /dir\n"
2848 "\n"
2849 msgstr ""
2850
2851 #. type: verbatim
2852 #: ../cat/virt-ls.pod:343
2853 #, no-wrap
2854 msgid ""
2855 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2856 "\n"
2857 msgstr ""
2858
2859 #. type: textblock
2860 #: ../cat/virt-ls.pod:356
2861 msgid "Display file sizes in human-readable format."
2862 msgstr ""
2863
2864 #. type: =item
2865 #: ../cat/virt-ls.pod:370
2866 msgid "B<-R>"
2867 msgstr ""
2868
2869 #. type: =item
2870 #: ../cat/virt-ls.pod:372
2871 msgid "B<--recursive>"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../cat/virt-ls.pod:374
2876 msgid ""
2877 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2878 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2879 "LISTING>."
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../cat/virt-ls.pod:378
2884 msgid ""
2885 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2886 "LONG LISTING>."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../cat/virt-ls.pod:381
2891 msgid ""
2892 "C<virt-ls -R> produces a recursive list of files starting at the named "
2893 "directory.  See L</RECURSIVE LISTING>."
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../cat/virt-ls.pod:384
2898 msgid ""
2899 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2900 "parsed.  See L</RECURSIVE LONG LISTING>."
2901 msgstr ""
2902
2903 #. type: =item
2904 #: ../cat/virt-ls.pod:387
2905 msgid "B<--times>"
2906 msgstr ""
2907
2908 #. type: textblock
2909 #: ../cat/virt-ls.pod:389
2910 msgid "Display time fields."
2911 msgstr ""
2912
2913 #. type: =item
2914 #: ../cat/virt-ls.pod:394
2915 msgid "B<--time-days>"
2916 msgstr ""
2917
2918 #. type: textblock
2919 #: ../cat/virt-ls.pod:396
2920 msgid "Display time fields as days before now (negative if in the future)."
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../cat/virt-ls.pod:398
2925 msgid ""
2926 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2927 "of the file is between 0 and 86399 seconds."
2928 msgstr ""
2929
2930 #. type: =item
2931 #: ../cat/virt-ls.pod:404
2932 msgid "B<--time-relative>"
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../cat/virt-ls.pod:406
2937 msgid "Display time fields as seconds before now (negative if in the future)."
2938 msgstr ""
2939
2940 #. type: =item
2941 #: ../cat/virt-ls.pod:411
2942 msgid "B<--time-t>"
2943 msgstr ""
2944
2945 #. type: textblock
2946 #: ../cat/virt-ls.pod:413
2947 msgid "Display time fields as seconds since the Unix epoch."
2948 msgstr ""
2949
2950 #. type: =item
2951 #: ../cat/virt-ls.pod:418
2952 msgid "B<--uids>"
2953 msgstr ""
2954
2955 #. type: textblock
2956 #: ../cat/virt-ls.pod:420
2957 msgid "Display UID and GID fields."
2958 msgstr ""
2959
2960 #. type: textblock
2961 #: ../cat/virt-ls.pod:445
2962 msgid "Previous versions of virt-ls allowed you to write either:"
2963 msgstr ""
2964
2965 #. type: verbatim
2966 #: ../cat/virt-ls.pod:447
2967 #, no-wrap
2968 msgid ""
2969 " virt-ls disk.img [disk.img ...] /dir\n"
2970 "\n"
2971 msgstr ""
2972
2973 #. type: verbatim
2974 #: ../cat/virt-ls.pod:451
2975 #, no-wrap
2976 msgid ""
2977 " virt-ls guestname /dir\n"
2978 "\n"
2979 msgstr ""
2980
2981 #. type: textblock
2982 #: ../cat/virt-ls.pod:497
2983 msgid ""
2984 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2985 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2986 "L<http://libguestfs.org/>."
2987 msgstr ""
2988
2989 #. type: textblock
2990 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2991 #: ../rescue/virt-rescue.pod:340
2992 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../clone/virt-sysprep.pod:5
2997 msgid ""
2998 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2999 msgstr ""
3000
3001 #. type: verbatim
3002 #: ../clone/virt-sysprep.pod:9
3003 #, no-wrap
3004 msgid ""
3005 " virt-sysprep [--options] -d domname\n"
3006 "\n"
3007 msgstr ""
3008
3009 #. type: verbatim
3010 #: ../clone/virt-sysprep.pod:11
3011 #, no-wrap
3012 msgid ""
3013 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3014 "\n"
3015 msgstr ""
3016
3017 #. type: textblock
3018 #: ../clone/virt-sysprep.pod:15
3019 msgid ""
3020 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3021 "can be made from it.  Steps in this process include removing SSH host keys, "
3022 "removing persistent network MAC configuration, and removing user accounts.  "
3023 "Each step can be enabled or disabled as required."
3024 msgstr ""
3025
3026 #. type: textblock
3027 #: ../clone/virt-sysprep.pod:21
3028 msgid ""
3029 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3030 "customization by the system administrator."
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../clone/virt-sysprep.pod:24
3035 msgid ""
3036 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3037 "be shut down.  If you want to preserve the existing contents of the guest, "
3038 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:29
3043 msgid ""
3044 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3045 "recommend that you don't.  The time you might want to run it as root is when "
3046 "you need root in order to access the disk image, but even in this case it "
3047 "would be better to change the permissions on the disk image to be writable "
3048 "as the non-root user running virt-sysprep."
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:35
3053 msgid ""
3054 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3055 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3056 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3057 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3058 "Windows sysprepping in a future version, and we already have code to do it."
3059 msgstr ""
3060
3061 #. type: =item
3062 #: ../clone/virt-sysprep.pod:76
3063 msgid "B<--enable=...>"
3064 msgstr ""
3065
3066 #. type: textblock
3067 #: ../clone/virt-sysprep.pod:78
3068 msgid ""
3069 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3070 "operations, for example:"
3071 msgstr ""
3072
3073 #. type: verbatim
3074 #: ../clone/virt-sysprep.pod:81
3075 #, no-wrap
3076 msgid ""
3077 " --enable=ssh-hostkeys,udev-persistent-net\n"
3078 "\n"
3079 msgstr ""
3080
3081 #. type: textblock
3082 #: ../clone/virt-sysprep.pod:83
3083 msgid ""
3084 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3085 msgstr ""
3086
3087 #. type: textblock
3088 #: ../clone/virt-sysprep.pod:85
3089 msgid ""
3090 "If the I<--enable> option is not given, then we default to trying all "
3091 "possible sysprep operations.  But some sysprep operations are skipped for "
3092 "some guest types."
3093 msgstr ""
3094
3095 #. type: textblock
3096 #: ../clone/virt-sysprep.pod:89
3097 msgid ""
3098 "Use I<--list-operations> to list operations supported by a particular "
3099 "version of virt-sysprep."
3100 msgstr ""
3101
3102 #. type: textblock
3103 #: ../clone/virt-sysprep.pod:92
3104 msgid ""
3105 "See L</OPERATIONS> below for a list and an explanation of each operation."
3106 msgstr ""
3107
3108 #. type: verbatim
3109 #: ../clone/virt-sysprep.pod:106
3110 #, no-wrap
3111 msgid ""
3112 " virt-sysprep --format=raw -a disk.img\n"
3113 "\n"
3114 msgstr ""
3115
3116 #. type: verbatim
3117 #: ../clone/virt-sysprep.pod:110
3118 #, no-wrap
3119 msgid ""
3120 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3121 "\n"
3122 msgstr ""
3123
3124 #. type: =item
3125 #: ../clone/virt-sysprep.pod:119
3126 msgid "B<--hostname> newhostname"
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../clone/virt-sysprep.pod:121
3131 msgid ""
3132 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3133 "defaults to C<localhost.localdomain>."
3134 msgstr ""
3135
3136 #. type: =item
3137 #: ../clone/virt-sysprep.pod:124
3138 msgid "B<--list-operations>"
3139 msgstr ""
3140
3141 #. type: textblock
3142 #: ../clone/virt-sysprep.pod:126
3143 msgid "List the operations supported by the virt-sysprep program."
3144 msgstr ""
3145
3146 #. type: =item
3147 #: ../clone/virt-sysprep.pod:128
3148 msgid "B<--selinux-relabel>"
3149 msgstr ""
3150
3151 #. type: =item
3152 #: ../clone/virt-sysprep.pod:130
3153 msgid "B<--no-selinux-relabel>"
3154 msgstr ""
3155
3156 #. type: textblock
3157 #: ../clone/virt-sysprep.pod:132
3158 msgid ""
3159 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3160 "I<--no-selinux-relabel> disables relabelling."
3161 msgstr ""
3162
3163 #. type: textblock
3164 #: ../clone/virt-sysprep.pod:135
3165 msgid ""
3166 "The default is to try to detect if SELinux relabelling is required.  See L</"
3167 "SELINUX RELABELLING> below for more details."
3168 msgstr ""
3169
3170 #. type: =head1
3171 #: ../clone/virt-sysprep.pod:156
3172 msgid "OPERATIONS"
3173 msgstr ""
3174
3175 #. type: textblock
3176 #: ../clone/virt-sysprep.pod:158
3177 msgid ""
3178 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3179 "enabled>, although some are skipped depending on the type of guest."
3180 msgstr ""
3181
3182 #. type: textblock
3183 #: ../clone/virt-sysprep.pod:162
3184 msgid ""
3185 "Operations can be individually enabled using the I<--enable> option.  Use a "
3186 "comma-separated list, for example:"
3187 msgstr ""
3188
3189 #. type: verbatim
3190 #: ../clone/virt-sysprep.pod:165
3191 #, no-wrap
3192 msgid ""
3193 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3194 "\n"
3195 msgstr ""
3196
3197 #. type: textblock
3198 #: ../clone/virt-sysprep.pod:167
3199 msgid ""
3200 "To list the operations supported by the current version of virt-sysprep, use "
3201 "I<--list-operations>."
3202 msgstr ""
3203
3204 #. type: textblock
3205 #: ../clone/virt-sysprep.pod:170
3206 msgid ""
3207 "Future versions of virt-sysprep may add more operations.  If you are using "
3208 "virt-sysprep and want predictable behaviour, specify only the operations "
3209 "that you want to have enabled."
3210 msgstr ""
3211
3212 #. type: =head2
3213 #: ../clone/virt-sysprep.pod:174
3214 msgid "cron-spool"
3215 msgstr ""
3216
3217 #. type: textblock
3218 #: ../clone/virt-sysprep.pod:176
3219 msgid "Remove user at-jobs and cron-jobs."
3220 msgstr ""
3221
3222 #. type: =head2
3223 #: ../clone/virt-sysprep.pod:178
3224 msgid "dhcp-client-state"
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../clone/virt-sysprep.pod:180
3229 msgid "Remove DHCP client leases."
3230 msgstr ""
3231
3232 #. type: =head2
3233 #: ../clone/virt-sysprep.pod:182
3234 msgid "dhcp-server-state"
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../clone/virt-sysprep.pod:184
3239 msgid "Remove DHCP server leases."
3240 msgstr ""
3241
3242 #. type: =head2
3243 #: ../clone/virt-sysprep.pod:186
3244 msgid "hostname"
3245 msgstr ""
3246
3247 #. type: textblock
3248 #: ../clone/virt-sysprep.pod:188
3249 msgid ""
3250 "Changes the hostname of the guest to the value given in the I<--hostname> "
3251 "parameter."
3252 msgstr ""
3253
3254 #. type: textblock
3255 #: ../clone/virt-sysprep.pod:191
3256 msgid ""
3257 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3258 "C<localhost.localdomain>."
3259 msgstr ""
3260
3261 #. type: =head2
3262 #: ../clone/virt-sysprep.pod:194
3263 msgid "logfiles"
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../clone/virt-sysprep.pod:196
3268 msgid "Remove many log files."
3269 msgstr ""
3270
3271 #. type: =head2
3272 #: ../clone/virt-sysprep.pod:198
3273 msgid "mail-spool"
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:200
3278 msgid "Remove email from the local mail spool directory."
3279 msgstr ""
3280
3281 #. type: =head2
3282 #: ../clone/virt-sysprep.pod:202
3283 msgid "net-hwaddr"
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../clone/virt-sysprep.pod:204
3288 msgid ""
3289 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3290 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3291 msgstr ""
3292
3293 #. type: =head2
3294 #: ../clone/virt-sysprep.pod:207
3295 msgid "random-seed"
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../clone/virt-sysprep.pod:209
3300 msgid ""
3301 "Write some random bytes from the host into the random seed file of the guest."
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../clone/virt-sysprep.pod:212
3306 msgid "See L</RANDOM SEED> below."
3307 msgstr ""
3308
3309 #. type: =head2
3310 #: ../clone/virt-sysprep.pod:214
3311 msgid "rhn-systemid"
3312 msgstr ""
3313
3314 #. type: textblock
3315 #: ../clone/virt-sysprep.pod:216
3316 msgid "Remove the RHN system ID."
3317 msgstr ""
3318
3319 #. type: =head2
3320 #: ../clone/virt-sysprep.pod:218
3321 msgid "smolt-uuid"
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:220
3326 msgid "Remove the Smolt hardware UUID."
3327 msgstr ""
3328
3329 #. type: =head2
3330 #: ../clone/virt-sysprep.pod:222
3331 msgid "ssh-hostkeys"
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../clone/virt-sysprep.pod:224
3336 msgid "Remove the SSH host keys in the guest."
3337 msgstr ""
3338
3339 #. type: textblock
3340 #: ../clone/virt-sysprep.pod:226
3341 msgid ""
3342 "The SSH host keys are regenerated (differently) next time the guest is "
3343 "booted."
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../clone/virt-sysprep.pod:229
3348 msgid ""
3349 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3350 "stark warning about the host key changing:"
3351 msgstr ""
3352
3353 #. type: verbatim
3354 #: ../clone/virt-sysprep.pod:232
3355 #, no-wrap
3356 msgid ""
3357 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3358 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3359 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3360 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3361 "\n"
3362 msgstr ""
3363
3364 #. type: =head2
3365 #: ../clone/virt-sysprep.pod:237
3366 msgid "udev-persistent-net"
3367 msgstr ""
3368
3369 #. type: textblock
3370 #: ../clone/virt-sysprep.pod:239
3371 msgid ""
3372 "Remove udev persistent net rules which map the guest's existing MAC address "
3373 "to a fixed ethernet device (eg. eth0)."
3374 msgstr ""
3375
3376 #. type: textblock
3377 #: ../clone/virt-sysprep.pod:242
3378 msgid ""
3379 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3380 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3381 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3382 "Erasing the udev persistent net rules avoids this."
3383 msgstr ""
3384
3385 #. type: =head2
3386 #: ../clone/virt-sysprep.pod:247
3387 msgid "utmp"
3388 msgstr ""
3389
3390 #. type: textblock
3391 #: ../clone/virt-sysprep.pod:249
3392 msgid "Remove the utmp file."
3393 msgstr ""
3394
3395 #. type: textblock
3396 #: ../clone/virt-sysprep.pod:251
3397 msgid ""
3398 "This records who is currently logged in on a machine.  In modern Linux "
3399 "distros it is stored in a ramdisk and hence not part of the virtual "
3400 "machine's disk, but it was stored on disk in older distros."
3401 msgstr ""
3402
3403 #. type: =head2
3404 #: ../clone/virt-sysprep.pod:255
3405 msgid "yum-uuid"
3406 msgstr ""
3407
3408 #. type: textblock
3409 #: ../clone/virt-sysprep.pod:257
3410 msgid "Remove the yum UUID."
3411 msgstr ""
3412
3413 #. type: textblock
3414 #: ../clone/virt-sysprep.pod:259
3415 msgid ""
3416 "Yum creates a fresh UUID the next time it runs when it notices that the "
3417 "original UUID has been erased."
3418 msgstr ""
3419
3420 #. type: =head1
3421 #: ../clone/virt-sysprep.pod:262
3422 msgid "COPYING AND CLONING"
3423 msgstr ""
3424
3425 #. type: textblock
3426 #: ../clone/virt-sysprep.pod:264
3427 msgid ""
3428 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3429 "prepare a template from which guests can be cloned.  There are many "
3430 "different ways to achieve this using the virt tools, and this section is "
3431 "just an introduction."
3432 msgstr ""
3433
3434 #. type: textblock
3435 #: ../clone/virt-sysprep.pod:269
3436 msgid "A virtual machine (when switched off) consists of two parts:"
3437 msgstr ""
3438
3439 #. type: =item
3440 #: ../clone/virt-sysprep.pod:273
3441 msgid "I<configuration>"
3442 msgstr ""
3443
3444 #. type: textblock
3445 #: ../clone/virt-sysprep.pod:275
3446 msgid ""
3447 "The configuration or description of the guest.  eg. The libvirt XML (see "
3448 "C<virsh dumpxml>), the running configuration of the guest, or another "
3449 "external format like OVF."
3450 msgstr ""
3451
3452 #. type: textblock
3453 #: ../clone/virt-sysprep.pod:279
3454 msgid "Some configuration items that might need to be changed:"
3455 msgstr ""
3456
3457 #. type: textblock
3458 #: ../clone/virt-sysprep.pod:285
3459 msgid "name"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3464 msgid "UUID"
3465 msgstr ""
3466
3467 #. type: textblock
3468 #: ../clone/virt-sysprep.pod:293
3469 msgid "path to block device(s)"
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../clone/virt-sysprep.pod:297
3474 msgid "network card MAC address"
3475 msgstr ""
3476
3477 #. type: =item
3478 #: ../clone/virt-sysprep.pod:301
3479 msgid "I<block device(s)>"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../clone/virt-sysprep.pod:303
3484 msgid ""
3485 "One or more hard disk images, themselves containing files, directories, "
3486 "applications, kernels, configuration, etc."
3487 msgstr ""
3488
3489 #. type: textblock
3490 #: ../clone/virt-sysprep.pod:306
3491 msgid "Some things inside the block devices that might need to be changed:"
3492 msgstr ""
3493
3494 #. type: textblock
3495 #: ../clone/virt-sysprep.pod:312
3496 msgid "hostname and other net configuration"
3497 msgstr ""
3498
3499 #. type: textblock
3500 #: ../clone/virt-sysprep.pod:320
3501 msgid "SSH host keys"
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../clone/virt-sysprep.pod:324
3506 msgid "Windows unique security ID (SID)"
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../clone/virt-sysprep.pod:328
3511 msgid "Puppet registration"
3512 msgstr ""
3513
3514 #. type: =head2
3515 #: ../clone/virt-sysprep.pod:334
3516 msgid "COPYING THE BLOCK DEVICE"
3517 msgstr ""
3518
3519 #. type: textblock
3520 #: ../clone/virt-sysprep.pod:336
3521 msgid ""
3522 "Starting with an original guest, you probably wish to copy the guest block "
3523 "device and its configuration to make a template.  Then once you are happy "
3524 "with the template, you will want to make many clones from it."
3525 msgstr ""
3526
3527 #. type: verbatim
3528 #: ../clone/virt-sysprep.pod:341
3529 #, no-wrap
3530 msgid ""
3531 "                        virt-sysprep\n"
3532 "                             |\n"
3533 "                             v\n"
3534 " original guest --------> template ---------->\n"
3535 "                                      \\------> cloned\n"
3536 "                                       \\-----> guests\n"
3537 "                                        \\---->\n"
3538 "\n"
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../clone/virt-sysprep.pod:349
3543 msgid ""
3544 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3545 "L<dd(1)>."
3546 msgstr ""
3547
3548 #. type: verbatim
3549 #: ../clone/virt-sysprep.pod:352
3550 #, no-wrap
3551 msgid ""
3552 "                   dd                 dd\n"
3553 " original guest --------> template ---------->\n"
3554 "                                      \\------> cloned\n"
3555 "                                       \\-----> guests\n"
3556 "                                        \\---->\n"
3557 "\n"
3558 msgstr ""
3559
3560 #. type: textblock
3561 #: ../clone/virt-sysprep.pod:358
3562 msgid "There are some smarter (and faster) ways too:"
3563 msgstr ""
3564
3565 #. type: verbatim
3566 #: ../clone/virt-sysprep.pod:364
3567 #, no-wrap
3568 msgid ""
3569 "                          snapshot\n"
3570 "                template ---------->\n"
3571 "                            \\------> cloned\n"
3572 "                             \\-----> guests\n"
3573 "                              \\---->\n"
3574 "\n"
3575 msgstr ""
3576
3577 #. type: textblock
3578 #: ../clone/virt-sysprep.pod:370
3579 msgid ""
3580 "Use the block device as a backing file and create a snapshot on top for each "
3581 "guest.  The advantage is that you don't need to copy the block device (very "
3582 "fast) and only changes are stored (less storage required)."
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../clone/virt-sysprep.pod:375
3587 msgid ""
3588 "Note that writing to the backing file once you have created guests on top of "
3589 "it is not possible: you will corrupt the guests."
3590 msgstr ""
3591
3592 #. type: textblock
3593 #: ../clone/virt-sysprep.pod:378
3594 msgid ""
3595 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3596 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3597 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3598 "also create cheap snapshots from files or LUNs."
3599 msgstr ""
3600
3601 #. type: textblock
3602 #: ../clone/virt-sysprep.pod:386
3603 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3604 msgstr ""
3605
3606 #. type: textblock
3607 #: ../clone/virt-sysprep.pod:390
3608 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3609 msgstr ""
3610
3611 #. type: =head2
3612 #: ../clone/virt-sysprep.pod:394
3613 msgid "VIRT-CLONE"
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../clone/virt-sysprep.pod:396
3618 msgid ""
3619 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3620 "and/or modify the external libvirt configuration of a guest.  It will reset "
3621 "the name, UUID and MAC address of the guest in the libvirt XML."
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../clone/virt-sysprep.pod:401
3626 msgid ""
3627 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3628 "image.  This was the original motivation to write virt-sysprep."
3629 msgstr ""
3630
3631 #. type: =head2
3632 #: ../clone/virt-sysprep.pod:404
3633 msgid "SPARSIFY"
3634 msgstr ""
3635
3636 #. type: verbatim
3637 #: ../clone/virt-sysprep.pod:406
3638 #, no-wrap
3639 msgid ""
3640 "              virt-sparsify\n"
3641 " original guest --------> template\n"
3642 "\n"
3643 msgstr ""
3644
3645 #. type: textblock
3646 #: ../clone/virt-sysprep.pod:409
3647 msgid ""
3648 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3649 "it easier to compress and/or faster to copy."
3650 msgstr ""
3651
3652 #. type: textblock
3653 #: ../clone/virt-sysprep.pod:412
3654 msgid ""
3655 "Notice that since virt-sparsify also copies the image, you can use it to "
3656 "make the initial copy (instead of C<dd>)."
3657 msgstr ""
3658
3659 #. type: =head2
3660 #: ../clone/virt-sysprep.pod:415
3661 msgid "RESIZE"
3662 msgstr ""
3663
3664 #. type: verbatim
3665 #: ../clone/virt-sysprep.pod:417
3666 #, no-wrap
3667 msgid ""
3668 "                         virt-resize\n"
3669 "                template ---------->\n"
3670 "                            \\------> cloned\n"
3671 "                             \\-----> guests\n"
3672 "                              \\---->\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../clone/virt-sysprep.pod:423
3678 msgid ""
3679 "If you want to give people cloned guests, but let them pick the size of the "
3680 "guest themselves (eg. depending on how much they are prepared to pay for "
3681 "disk space), then instead of copying the template, you can run L<virt-resize"
3682 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3683 "guests from a template."
3684 msgstr ""
3685
3686 #. type: =head1
3687 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3688 msgid "SECURITY"
3689 msgstr ""
3690
3691 #. type: textblock
3692 #: ../clone/virt-sysprep.pod:431
3693 msgid ""
3694 "Although virt-sysprep removes some sensitive information from the guest, it "
3695 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3696 "above, and the implementation of the operations in the shell script.  You "
3697 "should also examine the guest afterwards."
3698 msgstr ""
3699
3700 #. type: textblock
3701 #: ../clone/virt-sysprep.pod:436
3702 msgid ""
3703 "Sensitive files are simply removed.  The data they contained may still exist "
3704 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3705 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3706 "(1)> command to get rid of deleted content in directory entries and inodes."
3707 msgstr ""
3708
3709 #. type: =head2
3710 #: ../clone/virt-sysprep.pod:442
3711 msgid "RANDOM SEED"
3712 msgstr ""
3713
3714 #. type: textblock
3715 #: ../clone/virt-sysprep.pod:444
3716 msgid "I<(This section applies to Linux guests only)>"
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../clone/virt-sysprep.pod:446
3721 msgid ""
3722 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3723 "from the host into the guest's random seed file."
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../clone/virt-sysprep.pod:449
3728 msgid ""
3729 "If this is just done once and the guest is cloned from the same template, "
3730 "then each guest will start with the same entropy, and things like SSH host "
3731 "keys and TCP sequence numbers may be predictable."
3732 msgstr ""
3733
3734 #. type: textblock
3735 #: ../clone/virt-sysprep.pod:453
3736 msgid ""
3737 "Therefore you should arrange to add more randomness I<after> cloning from a "
3738 "template too, which can be done by just enabling the C<random-seed> "
3739 "operation:"
3740 msgstr ""
3741
3742 #. type: verbatim
3743 #: ../clone/virt-sysprep.pod:457
3744 #, no-wrap
3745 msgid ""
3746 " cp template.img newguest.img\n"
3747 " virt-sysprep --enable=random-seed -a newguest.img\n"
3748 "\n"
3749 msgstr ""
3750
3751 #. type: =head2
3752 #: ../clone/virt-sysprep.pod:460
3753 msgid "SELINUX RELABELLING"
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../clone/virt-sysprep.pod:462
3758 msgid "I<(This section applies to Linux guests using SELinux only)>"
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../clone/virt-sysprep.pod:464
3763 msgid ""
3764 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3765 "autorelabel> so that these will be correctly labelled by SELinux the next "
3766 "time the guest is booted.  This process interrupts boot and can take some "
3767 "time."
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../clone/virt-sysprep.pod:469
3772 msgid ""
3773 "You can force relabelling for all guests by supplying the I<--selinux-"
3774 "relabel> option."
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../clone/virt-sysprep.pod:472
3779 msgid ""
3780 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3781 "relabel> option."
3782 msgstr ""
3783
3784 #. type: textblock
3785 #: ../clone/virt-sysprep.pod:484
3786 msgid "This program returns 0 on success, or 1 if there was an error."
3787 msgstr ""
3788
3789 #. type: textblock
3790 #: ../clone/virt-sysprep.pod:488
3791 msgid ""
3792 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3793 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3794 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3795 msgstr ""
3796
3797 #. type: textblock
3798 #: ../df/virt-df.pod:5
3799 msgid "virt-df - Display free space on virtual filesystems"
3800 msgstr ""
3801
3802 #. type: verbatim
3803 #: ../df/virt-df.pod:9
3804 #, no-wrap
3805 msgid ""
3806 " virt-df [--options]\n"
3807 "\n"
3808 msgstr ""
3809
3810 #. type: verbatim
3811 #: ../df/virt-df.pod:11
3812 #, no-wrap
3813 msgid ""
3814 " virt-df [--options] -d domname\n"
3815 "\n"
3816 msgstr ""
3817
3818 #. type: verbatim
3819 #: ../df/virt-df.pod:13
3820 #, no-wrap
3821 msgid ""
3822 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3823 "\n"
3824 msgstr ""
3825
3826 #. type: verbatim
3827 #: ../df/virt-df.pod:17
3828 #, no-wrap
3829 msgid ""
3830 " virt-df [--options] domname\n"
3831 "\n"
3832 msgstr ""
3833
3834 #. type: verbatim
3835 #: ../df/virt-df.pod:19
3836 #, no-wrap
3837 msgid ""
3838 " virt-df [--options] disk.img [disk.img ...]\n"
3839 "\n"
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../df/virt-df.pod:23
3844 msgid ""
3845 "C<virt-df> is a command line tool to display free space on virtual machine "
3846 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3847 "allocated to a virtual machine, but can look inside disk images to see how "
3848 "much space is really being used."
3849 msgstr ""
3850
3851 #. type: textblock
3852 #: ../df/virt-df.pod:28
3853 msgid ""
3854 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3855 "to get a list of all active and inactive guests, and performs a C<df>-type "
3856 "operation on each one in turn, printing out the results."
3857 msgstr ""
3858
3859 #. type: textblock
3860 #: ../df/virt-df.pod:32
3861 msgid ""
3862 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3863 "type operation on either the single named libvirt domain, or on the disk "
3864 "image(s) listed on the command line (which must all belong to a single VM).  "
3865 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3866 "guest>.  If you want to run on multiple guests, then you have to invoke "
3867 "C<virt-df> multiple times."
3868 msgstr ""
3869
3870 #. type: textblock
3871 #: ../df/virt-df.pod:39
3872 msgid ""
3873 "Use the I<--csv> option to get a format which can be easily parsed by other "
3874 "programs.  Other options are similar to the standard L<df(1)> command."
3875 msgstr ""
3876
3877 #. type: textblock
3878 #: ../df/virt-df.pod:45
3879 msgid ""
3880 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3881 "output human-readable:"
3882 msgstr ""
3883
3884 #. type: verbatim
3885 #: ../df/virt-df.pod:48
3886 #, no-wrap
3887 msgid ""
3888 " # virt-df -d F14x64 -h\n"
3889 " Filesystem                       Size     Used  Available  Use%\n"
3890 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3891 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3892 "\n"
3893 msgstr ""
3894
3895 #. type: textblock
3896 #: ../df/virt-df.pod:53
3897 msgid "Show disk usage for a disk image file called C<test.img>:"
3898 msgstr ""
3899
3900 #. type: verbatim
3901 #: ../df/virt-df.pod:55
3902 #, no-wrap
3903 msgid ""
3904 " $ virt-df -a test1.img\n"
3905 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3906 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3907 "\n"
3908 msgstr ""
3909
3910 #. type: verbatim
3911 #: ../df/virt-df.pod:112
3912 #, no-wrap
3913 msgid ""
3914 " virt-df --format=raw -a disk.img\n"
3915 "\n"
3916 msgstr ""
3917
3918 #. type: verbatim
3919 #: ../df/virt-df.pod:116
3920 #, no-wrap
3921 msgid ""
3922 " virt-df --format=raw -a disk.img --format -a another.img\n"
3923 "\n"
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../df/virt-df.pod:129
3928 msgid "Print sizes in human-readable format."
3929 msgstr ""
3930
3931 #. type: textblock
3932 #: ../df/virt-df.pod:131
3933 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3934 msgstr ""
3935
3936 #. type: =item
3937 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3938 msgid "B<-i>"
3939 msgstr ""
3940
3941 #. type: =item
3942 #: ../df/virt-df.pod:135
3943 msgid "B<--inodes>"
3944 msgstr ""
3945
3946 #. type: textblock
3947 #: ../df/virt-df.pod:137
3948 msgid "Print inodes instead of blocks."
3949 msgstr ""
3950
3951 #. type: =item
3952 #: ../df/virt-df.pod:139
3953 msgid "B<--one-per-guest>"
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../df/virt-df.pod:141
3958 msgid ""
3959 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3960 "disks from several guests to a single libguestfs appliance."
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../df/virt-df.pod:144
3965 msgid "You might use this option in the following circumstances:"
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../df/virt-df.pod:150
3970 msgid ""
3971 "If you think an untrusted guest might actively try to exploit the libguestfs "
3972 "appliance kernel, then this prevents one guest from interfering with the "
3973 "stats printed for another guest."
3974 msgstr ""
3975
3976 #. type: textblock
3977 #: ../df/virt-df.pod:156
3978 msgid ""
3979 "If the kernel has a bug which stops it from accessing a filesystem in one "
3980 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3981 "and report stats for further guests."
3982 msgstr ""
3983
3984 #. type: textblock
3985 #: ../df/virt-df.pod:165
3986 msgid ""
3987 "Print UUIDs instead of names.  This is useful for following a guest even "
3988 "when the guest is migrated or renamed, or when two guests happen to have the "
3989 "same name."
3990 msgstr ""
3991
3992 #. type: textblock
3993 #: ../df/virt-df.pod:169
3994 msgid ""
3995 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3996 "images, we still print the disk image name even when this option is "
3997 "specified."
3998 msgstr ""
3999
4000 #. type: textblock
4001 #: ../df/virt-df.pod:229
4002 msgid ""
4003 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4004 "libguestfs.org/>."
4005 msgstr ""
4006
4007 #. type: textblock
4008 #: ../edit/virt-edit.pod:5
4009 msgid "virt-edit - Edit a file in a virtual machine"
4010 msgstr ""
4011
4012 #. type: verbatim
4013 #: ../edit/virt-edit.pod:9
4014 #, no-wrap
4015 msgid ""
4016 " virt-edit [--options] -d domname file [file ...]\n"
4017 "\n"
4018 msgstr ""
4019
4020 #. type: verbatim
4021 #: ../edit/virt-edit.pod:11
4022 #, no-wrap
4023 msgid ""
4024 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4025 "\n"
4026 msgstr ""
4027
4028 #. type: verbatim
4029 #: ../edit/virt-edit.pod:13
4030 #, no-wrap
4031 msgid ""
4032 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4033 "\n"
4034 msgstr ""
4035
4036 #. type: verbatim
4037 #: ../edit/virt-edit.pod:17
4038 #, no-wrap
4039 msgid ""
4040 " virt-edit domname file\n"
4041 "\n"
4042 msgstr ""
4043
4044 #. type: verbatim
4045 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4046 #, no-wrap
4047 msgid ""
4048 " virt-edit disk.img [disk.img ...] file\n"
4049 "\n"
4050 msgstr ""
4051
4052 #. type: =head1
4053 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4054 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4055 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4056 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4057 msgid "WARNING"
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../edit/virt-edit.pod:23
4062 msgid ""
4063 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4064 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4065 "doing this, but doesn't catch all cases."
4066 msgstr ""
4067
4068 #. type: textblock
4069 #: ../edit/virt-edit.pod:29
4070 msgid ""
4071 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4072 "exists in the named virtual machine (or disk image)."
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../edit/virt-edit.pod:32
4077 msgid ""
4078 "Multiple filenames can be given, in which case they are each edited in "
4079 "turn.  Each filename must be a full path, starting at the root directory "
4080 "(starting with '/')."
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../edit/virt-edit.pod:36
4085 msgid "If you want to just view a file, use L<virt-cat(1)>."
4086 msgstr ""
4087
4088 #. type: textblock
4089 #: ../edit/virt-edit.pod:38
4090 msgid ""
4091 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4092 "USING GUESTFISH> below)."
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../edit/virt-edit.pod:41
4097 msgid ""
4098 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4099 "that and much more."
4100 msgstr ""
4101
4102 #. type: textblock
4103 #: ../edit/virt-edit.pod:46
4104 msgid "Edit the named files interactively:"
4105 msgstr ""
4106
4107 #. type: verbatim
4108 #: ../edit/virt-edit.pod:48
4109 #, no-wrap
4110 msgid ""
4111 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4112 "\n"
4113 msgstr ""
4114
4115 #. type: verbatim
4116 #: ../edit/virt-edit.pod:50
4117 #, no-wrap
4118 msgid ""
4119 " virt-edit -d mydomain /etc/passwd\n"
4120 "\n"
4121 msgstr ""
4122
4123 #. type: textblock
4124 #: ../edit/virt-edit.pod:52
4125 msgid "For Windows guests, some Windows paths are understood:"
4126 msgstr ""
4127
4128 #. type: verbatim
4129 #: ../edit/virt-edit.pod:54
4130 #, no-wrap
4131 msgid ""
4132 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4133 "\n"
4134 msgstr ""
4135
4136 #. type: textblock
4137 #: ../edit/virt-edit.pod:56
4138 msgid ""
4139 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4140 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4141 msgstr ""
4142
4143 #. type: verbatim
4144 #: ../edit/virt-edit.pod:60
4145 #, no-wrap
4146 msgid ""
4147 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4148 "\n"
4149 msgstr ""
4150
4151 #. type: =item
4152 #: ../edit/virt-edit.pod:81
4153 msgid "B<-b> extension"
4154 msgstr ""
4155
4156 #. type: =item
4157 #: ../edit/virt-edit.pod:83
4158 msgid "B<--backup> extension"
4159 msgstr ""
4160
4161 #. type: textblock
4162 #: ../edit/virt-edit.pod:85
4163 msgid ""
4164 "Create a backup of the original file I<in the guest disk image>.  The backup "
4165 "has the original filename with C<extension> added."
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../edit/virt-edit.pod:88
4170 msgid ""
4171 "Usually the first character of C<extension> would be a dot C<.> so you would "
4172 "write:"
4173 msgstr ""
4174
4175 #. type: verbatim
4176 #: ../edit/virt-edit.pod:91
4177 #, no-wrap
4178 msgid ""
4179 " virt-edit -b .orig [etc]\n"
4180 "\n"
4181 msgstr ""
4182
4183 #. type: textblock
4184 #: ../edit/virt-edit.pod:93
4185 msgid "By default, no backup file is made."
4186 msgstr ""
4187
4188 #. type: =item
4189 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4190 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4191 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4192 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4193 msgid "B<-c URI>"
4194 msgstr ""
4195
4196 #. type: =item
4197 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4198 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4199 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4200 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4201 msgid "B<--connect URI>"
4202 msgstr ""
4203
4204 #. type: textblock
4205 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4206 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4207 #: ../tools/virt-win-reg.pl:135
4208 msgid ""
4209 "If you specify guest block devices directly, then libvirt is not used at all."
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../edit/virt-edit.pod:114
4214 msgid ""
4215 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4216 "off so you cannot see what you are typing.  If you are not worried about "
4217 "Tempest attacks and there is no one else in the room you can specify this "
4218 "flag to see what you are typing."
4219 msgstr ""
4220
4221 #. type: =item
4222 #: ../edit/virt-edit.pod:119
4223 msgid "B<-e> EXPR"
4224 msgstr ""
4225
4226 #. type: =item
4227 #: ../edit/virt-edit.pod:121
4228 msgid "B<--expr> EXPR"
4229 msgstr ""
4230
4231 #. type: textblock
4232 #: ../edit/virt-edit.pod:123
4233 msgid ""
4234 "Instead of launching the external editor, non-interactively apply the Perl "
4235 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4236 "EDITING> below."
4237 msgstr ""
4238
4239 #. type: textblock
4240 #: ../edit/virt-edit.pod:127
4241 msgid ""
4242 "Be careful to properly quote the expression to prevent it from being altered "
4243 "by the shell."
4244 msgstr ""
4245
4246 #. type: textblock
4247 #: ../edit/virt-edit.pod:130
4248 msgid "Note that this option is only available when Perl 5 is installed."
4249 msgstr ""
4250
4251 #. type: =item
4252 #: ../edit/virt-edit.pod:132
4253 msgid "B<--format> raw|qcow2|..."
4254 msgstr ""
4255
4256 #. type: verbatim
4257 #: ../edit/virt-edit.pod:143
4258 #, no-wrap
4259 msgid ""
4260 " virt-edit --format=raw -a disk.img file\n"
4261 "\n"
4262 msgstr ""
4263
4264 #. type: verbatim
4265 #: ../edit/virt-edit.pod:147
4266 #, no-wrap
4267 msgid ""
4268 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4269 "\n"
4270 msgstr ""
4271
4272 #. type: textblock
4273 #: ../edit/virt-edit.pod:181
4274 msgid "Previous versions of virt-edit allowed you to write either:"
4275 msgstr ""
4276
4277 #. type: verbatim
4278 #: ../edit/virt-edit.pod:187
4279 #, no-wrap
4280 msgid ""
4281 " virt-edit guestname file\n"
4282 "\n"
4283 msgstr ""
4284
4285 #. type: =head1
4286 #: ../edit/virt-edit.pod:195
4287 msgid "NON-INTERACTIVE EDITING"
4288 msgstr ""
4289
4290 #. type: textblock
4291 #: ../edit/virt-edit.pod:197
4292 msgid ""
4293 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4294 "administrator can interactively edit the file."
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../edit/virt-edit.pod:200
4299 msgid ""
4300 "There are two ways also to use C<virt-edit> from scripts in order to make "
4301 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4302 "like this, it's less error-prone to write scripts directly using the "
4303 "libguestfs API and Augeas for configuration file editing.)"
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../edit/virt-edit.pod:206
4308 msgid ""
4309 "The first method is to temporarily set C<$EDITOR> to any script or program "
4310 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4311 "update C<tmpfile> in place however it likes."
4312 msgstr ""
4313
4314 #. type: textblock
4315 #: ../edit/virt-edit.pod:210
4316 msgid ""
4317 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4318 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4319 "instances of C<foo> with C<bar> in a file:"
4320 msgstr ""
4321
4322 #. type: verbatim
4323 #: ../edit/virt-edit.pod:214
4324 #, no-wrap
4325 msgid ""
4326 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4327 "\n"
4328 msgstr ""
4329
4330 #. type: textblock
4331 #: ../edit/virt-edit.pod:216
4332 msgid ""
4333 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4334 "For example to delete root's password you could do:"
4335 msgstr ""
4336
4337 #. type: verbatim
4338 #: ../edit/virt-edit.pod:219
4339 #, no-wrap
4340 msgid ""
4341 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4342 "\n"
4343 msgstr ""
4344
4345 #. type: textblock
4346 #: ../edit/virt-edit.pod:221
4347 msgid ""
4348 "What really happens is that the snippet is evaluated as a Perl expression "
4349 "for each line of the file.  The line, including the final C<\\n>, is passed "
4350 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../edit/virt-edit.pod:226
4355 msgid ""
4356 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4357 "C<apache> user account from the password file you can do:"
4358 msgstr ""
4359
4360 #. type: verbatim
4361 #: ../edit/virt-edit.pod:229
4362 #, no-wrap
4363 msgid ""
4364 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4365 "\n"
4366 msgstr ""
4367
4368 #. type: textblock
4369 #: ../edit/virt-edit.pod:231
4370 msgid ""
4371 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4372 "the end of the file is rather difficult this way since there is no concept "
4373 "of \"last line of the file\" - your expression just doesn't get called "
4374 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4375 "want to do this."
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../edit/virt-edit.pod:237
4380 msgid ""
4381 "The variable C<$lineno> contains the current line number.  As is "
4382 "traditional, the first line in the file is number C<1>."
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../edit/virt-edit.pod:240
4387 msgid ""
4388 "The return value from the expression is ignored, but the expression may call "
4389 "C<die> in order to abort the whole program, leaving the original file "
4390 "untouched."
4391 msgstr ""
4392
4393 #. type: textblock
4394 #: ../edit/virt-edit.pod:244
4395 msgid ""
4396 "Remember when matching the end of a line that C<$_> may contain the final C<"
4397 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4398 "newline then neither of these.  Thus to match or substitute some text at the "
4399 "end of a line, use this regular expression:"
4400 msgstr ""
4401
4402 #. type: verbatim
4403 #: ../edit/virt-edit.pod:249
4404 #, no-wrap
4405 msgid ""
4406 " /some text(\\r?\\n)?$/\n"
4407 "\n"
4408 msgstr ""
4409
4410 #. type: textblock
4411 #: ../edit/virt-edit.pod:251
4412 msgid ""
4413 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4414 "$_> itself (since that would remove all newlines from the file):"
4415 msgstr ""
4416
4417 #. type: verbatim
4418 #: ../edit/virt-edit.pod:255
4419 #, no-wrap
4420 msgid ""
4421 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4422 "\n"
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../edit/virt-edit.pod:259
4427 msgid ""
4428 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4429 "paths (eg. C<E:\\foo\\bar.txt>)."
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../edit/virt-edit.pod:278
4434 msgid ""
4435 "The path is resolved case insensitively to locate the file that should be "
4436 "edited."
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../edit/virt-edit.pod:299
4441 msgid ""
4442 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4443 "C<virt-edit> doesn't work."
4444 msgstr ""
4445
4446 #. type: textblock
4447 #: ../edit/virt-edit.pod:302
4448 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4449 msgstr ""
4450
4451 #. type: verbatim
4452 #: ../edit/virt-edit.pod:304
4453 #, no-wrap
4454 msgid ""
4455 " guestfish --rw -i -d domname edit /file\n"
4456 "\n"
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../edit/virt-edit.pod:306
4461 msgid ""
4462 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4463 "path to the file."
4464 msgstr ""
4465
4466 #. type: textblock
4467 #: ../edit/virt-edit.pod:309
4468 msgid ""
4469 "The command above uses libguestfs's guest inspection feature and so does not "
4470 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4471 "disk images that don't contain guests.  To edit a file on a disk image "
4472 "directly, use:"
4473 msgstr ""
4474
4475 #. type: verbatim
4476 #: ../edit/virt-edit.pod:314
4477 #, no-wrap
4478 msgid ""
4479 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4480 "\n"
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../edit/virt-edit.pod:316
4485 msgid ""
4486 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4487 "the disk image to edit, and C</file> is the full path to the file."
4488 msgstr ""
4489
4490 #. type: textblock
4491 #: ../edit/virt-edit.pod:320
4492 msgid ""
4493 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4494 "C<write> or C<upload> instead:"
4495 msgstr ""
4496
4497 #. type: verbatim
4498 #: ../edit/virt-edit.pod:323
4499 #, no-wrap
4500 msgid ""
4501 " guestfish --rw -i -d domname touch /newfile\n"
4502 "\n"
4503 msgstr ""
4504
4505 #. type: verbatim
4506 #: ../edit/virt-edit.pod:325
4507 #, no-wrap
4508 msgid ""
4509 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4510 "\n"
4511 msgstr ""
4512
4513 #. type: verbatim
4514 #: ../edit/virt-edit.pod:327
4515 #, no-wrap
4516 msgid ""
4517 " guestfish --rw -i -d domname upload localfile /newfile\n"
4518 "\n"
4519 msgstr ""
4520
4521 #. type: =head1
4522 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4523 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:232
4524 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4525 msgid "ENVIRONMENT VARIABLES"
4526 msgstr ""
4527
4528 #. type: =item
4529 #: ../edit/virt-edit.pod:333
4530 msgid "C<EDITOR>"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../edit/virt-edit.pod:335
4535 msgid ""
4536 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4537 "\"emacs -nw\">"
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../edit/virt-edit.pod:338
4542 msgid "If not set, C<vi> is used."
4543 msgstr ""
4544
4545 #. type: textblock
4546 #: ../edit/virt-edit.pod:356
4547 msgid ""
4548 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4549 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4550 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4551 msgstr ""
4552
4553 #. type: textblock
4554 #: ../erlang/examples/guestfs-erlang.pod:5
4555 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4556 msgstr ""
4557
4558 #. type: verbatim
4559 #: ../erlang/examples/guestfs-erlang.pod:9
4560 #, no-wrap
4561 msgid ""
4562 " {ok, G} = guestfs:create(),\n"
4563 " ok = guestfs:add_drive_opts(G, Disk,\n"
4564 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4565 " ok = guestfs:launch(G),\n"
4566 " [Device] = guestfs:list_devices(G),\n"
4567 " ok = guestfs:close(G).\n"
4568 "\n"
4569 msgstr ""
4570
4571 #. type: textblock
4572 #: ../erlang/examples/guestfs-erlang.pod:18
4573 msgid ""
4574 "This manual page documents how to call libguestfs from the Erlang "
4575 "programming language.  This page just documents the differences from the C "
4576 "API and gives some examples.  If you are not familiar with using libguestfs, "
4577 "you also need to read L<guestfs(3)>."
4578 msgstr ""
4579
4580 #. type: =head2
4581 #: ../erlang/examples/guestfs-erlang.pod:23
4582 msgid "OPENING AND CLOSING THE HANDLE"
4583 msgstr ""
4584
4585 #. type: textblock
4586 #: ../erlang/examples/guestfs-erlang.pod:25
4587 msgid ""
4588 "The Erlang bindings are implemented using an external program called C<erl-"
4589 "guestfs>.  This program must be on the current PATH, or else you should "
4590 "specify the full path to the program:"
4591 msgstr ""
4592
4593 #. type: verbatim
4594 #: ../erlang/examples/guestfs-erlang.pod:29
4595 #, no-wrap
4596 msgid ""
4597 " {ok, G} = guestfs:create().\n"
4598 "\n"
4599 msgstr ""
4600
4601 #. type: verbatim
4602 #: ../erlang/examples/guestfs-erlang.pod:31
4603 #, no-wrap
4604 msgid ""
4605 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4606 "\n"
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../erlang/examples/guestfs-erlang.pod:33
4611 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4612 msgstr ""
4613
4614 #. type: textblock
4615 #: ../erlang/examples/guestfs-erlang.pod:36
4616 msgid "To close the handle:"
4617 msgstr ""
4618
4619 #. type: verbatim
4620 #: ../erlang/examples/guestfs-erlang.pod:38
4621 #, no-wrap
4622 msgid ""
4623 " ok = guestfs:close(G).\n"
4624 "\n"
4625 msgstr ""
4626
4627 #. type: =head2
4628 #: ../erlang/examples/guestfs-erlang.pod:40
4629 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../erlang/examples/guestfs-erlang.pod:42
4634 msgid ""
4635 "For functions that take optional arguments, the first arguments are the non-"
4636 "optional ones.  The last argument is a list of tuples supplying the "
4637 "remaining optional arguments."
4638 msgstr ""
4639
4640 #. type: verbatim
4641 #: ../erlang/examples/guestfs-erlang.pod:46
4642 #, no-wrap
4643 msgid ""
4644 " ok = guestfs:add_drive_opts(G, Disk,\n"
4645 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4646 "\n"
4647 msgstr ""
4648
4649 #. type: textblock
4650 #: ../erlang/examples/guestfs-erlang.pod:49
4651 msgid "If the last argument would be an empty list, you can also omit it:"
4652 msgstr ""
4653
4654 #. type: verbatim
4655 #: ../erlang/examples/guestfs-erlang.pod:51
4656 #, no-wrap
4657 msgid ""
4658 " ok = guestfs:add_drive_opts(G, Disk).\n"
4659 "\n"
4660 msgstr ""
4661
4662 #. type: =head2
4663 #: ../erlang/examples/guestfs-erlang.pod:53
4664 msgid "RETURN VALUES AND ERRORS"
4665 msgstr ""
4666
4667 #. type: textblock
4668 #: ../erlang/examples/guestfs-erlang.pod:55
4669 msgid ""
4670 "On success, most functions return a C<Result> term (which could be a list, "
4671 "string, tuple etc.).  If there is nothing for the function to return, then "
4672 "the atom C<ok> is returned."
4673 msgstr ""
4674
4675 #. type: textblock
4676 #: ../erlang/examples/guestfs-erlang.pod:59
4677 msgid "On error, you would see one of the following tuples:"
4678 msgstr ""
4679
4680 #. type: =item
4681 #: ../erlang/examples/guestfs-erlang.pod:63
4682 msgid "C<{error, Msg, Errno}>"
4683 msgstr ""
4684
4685 #. type: textblock
4686 #: ../erlang/examples/guestfs-erlang.pod:65
4687 msgid "This indicates an ordinary error from the function."
4688 msgstr ""
4689
4690 #. type: textblock
4691 #: ../erlang/examples/guestfs-erlang.pod:67
4692 msgid ""
4693 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4694 "(integer)."
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../erlang/examples/guestfs-erlang.pod:70
4699 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4700 msgstr ""
4701
4702 #. type: =item
4703 #: ../erlang/examples/guestfs-erlang.pod:72
4704 msgid "C<{unknown, Function}>"
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../erlang/examples/guestfs-erlang.pod:74
4709 msgid ""
4710 "This indicates that the function you called is not known.  Generally this "
4711 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4712 "which you should not do."
4713 msgstr ""
4714
4715 #. type: textblock
4716 #: ../erlang/examples/guestfs-erlang.pod:78
4717 msgid "C<Function> is the name of the unknown function."
4718 msgstr ""
4719
4720 #. type: =item
4721 #: ../erlang/examples/guestfs-erlang.pod:80
4722 msgid "C<{unknownarg, Arg}>"
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../erlang/examples/guestfs-erlang.pod:82
4727 msgid ""
4728 "This indicates that you called a function with optional arguments, with an "
4729 "unknown argument name."
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../erlang/examples/guestfs-erlang.pod:85
4734 msgid "C<Arg> is the name of the unknown argument."
4735 msgstr ""
4736
4737 #. type: =head1
4738 #: ../erlang/examples/guestfs-erlang.pod:89
4739 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4740 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4741 #: ../python/examples/guestfs-python.pod:34
4742 #: ../ruby/examples/guestfs-ruby.pod:28
4743 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4744 msgstr ""
4745
4746 #. type: textblock
4747 #: ../erlang/examples/guestfs-erlang.pod:91
4748 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4749 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4750 #: ../python/examples/guestfs-python.pod:36
4751 #: ../ruby/examples/guestfs-ruby.pod:30
4752 msgid "@EXAMPLE1@"
4753 msgstr ""
4754
4755 #. type: =head1
4756 #: ../erlang/examples/guestfs-erlang.pod:93
4757 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4758 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4759 #: ../python/examples/guestfs-python.pod:38
4760 #: ../ruby/examples/guestfs-ruby.pod:32
4761 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4762 msgstr ""
4763
4764 #. type: textblock
4765 #: ../erlang/examples/guestfs-erlang.pod:95
4766 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4767 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4768 #: ../python/examples/guestfs-python.pod:40
4769 #: ../ruby/examples/guestfs-ruby.pod:34
4770 msgid "@EXAMPLE2@"
4771 msgstr ""
4772
4773 #. type: textblock
4774 #: ../erlang/examples/guestfs-erlang.pod:99
4775 msgid ""
4776 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4777 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4778 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4779 msgstr ""
4780
4781 #. type: =head1
4782 #: ../erlang/examples/guestfs-erlang.pod:110
4783 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4784 #: ../examples/guestfs-testing.pod:276 ../fish/guestfish.pod:1296
4785 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4786 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4787 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4788 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4789 #: ../perl/examples/guestfs-perl.pod:52
4790 #: ../python/examples/guestfs-python.pod:54
4791 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3349
4792 #: ../test-tool/libguestfs-test-tool.pod:106
4793 msgid "AUTHORS"
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../erlang/examples/guestfs-erlang.pod:112
4798 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4799 #: ../examples/guestfs-testing.pod:278 ../fish/guestfish.pod:1298
4800 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4801 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4802 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4803 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4804 #: ../python/examples/guestfs-python.pod:56
4805 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3351
4806 #: ../test-tool/libguestfs-test-tool.pod:108
4807 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4808 msgstr ""
4809
4810 #. type: textblock
4811 #: ../erlang/examples/guestfs-erlang.pod:116
4812 #: ../examples/guestfs-testing.pod:282 ../java/examples/guestfs-java.pod:64
4813 #: ../perl/examples/guestfs-perl.pod:58
4814 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4815 msgstr ""
4816
4817 #. type: textblock
4818 #: ../erlang/examples/guestfs-erlang.pod:118
4819 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4820 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4821 #: ../perl/examples/guestfs-perl.pod:60
4822 #: ../python/examples/guestfs-python.pod:62
4823 #: ../ruby/examples/guestfs-ruby.pod:56
4824 msgid ""
4825 "The examples in this manual page may be freely copied, modified and "
4826 "distributed without any restrictions."
4827 msgstr ""
4828
4829 #. type: textblock
4830 #: ../erlang/examples/guestfs-erlang.pod:121
4831 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4832 #: ../examples/guestfs-testing.pod:284 ../java/examples/guestfs-java.pod:69
4833 #: ../ocaml/examples/guestfs-ocaml.pod:102
4834 #: ../perl/examples/guestfs-perl.pod:63
4835 #: ../python/examples/guestfs-python.pod:65
4836 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3358
4837 msgid ""
4838 "This library is free software; you can redistribute it and/or modify it "
4839 "under the terms of the GNU Lesser General Public License as published by the "
4840 "Free Software Foundation; either version 2 of the License, or (at your "
4841 "option) any later version."
4842 msgstr ""
4843
4844 #. type: textblock
4845 #: ../erlang/examples/guestfs-erlang.pod:126
4846 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4847 #: ../examples/guestfs-testing.pod:289 ../java/examples/guestfs-java.pod:74
4848 #: ../ocaml/examples/guestfs-ocaml.pod:107
4849 #: ../perl/examples/guestfs-perl.pod:68
4850 #: ../python/examples/guestfs-python.pod:70
4851 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3363
4852 msgid ""
4853 "This library is distributed in the hope that it will be useful, but WITHOUT "
4854 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4855 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4856 "for more details."
4857 msgstr ""
4858
4859 #. type: textblock
4860 #: ../erlang/examples/guestfs-erlang.pod:131
4861 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4862 #: ../examples/guestfs-testing.pod:294 ../java/examples/guestfs-java.pod:79
4863 #: ../ocaml/examples/guestfs-ocaml.pod:112
4864 #: ../perl/examples/guestfs-perl.pod:73
4865 #: ../python/examples/guestfs-python.pod:75
4866 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3368
4867 msgid ""
4868 "You should have received a copy of the GNU Lesser General Public License "
4869 "along with this library; if not, write to the Free Software Foundation, "
4870 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4871 msgstr ""
4872
4873 #. type: textblock
4874 #: ../examples/guestfs-examples.pod:5
4875 msgid "guestfs-examples - Examples of using libguestfs from C"
4876 msgstr ""
4877
4878 #. type: verbatim
4879 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4880 #, no-wrap
4881 msgid ""
4882 " #include <guestfs.h>\n"
4883 " \n"
4884 msgstr "#include <guestfs.h>\n"
4885
4886 #. type: verbatim
4887 #: ../examples/guestfs-examples.pod:11
4888 #, no-wrap
4889 msgid ""
4890 " guestfs_h *g = guestfs_create ();\n"
4891 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4892 " guestfs_launch (g);\n"
4893 "\n"
4894 msgstr ""
4895
4896 #. type: verbatim
4897 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4898 #, no-wrap
4899 msgid ""
4900 " cc prog.c -o prog -lguestfs\n"
4901 "or:\n"
4902 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4903 "\n"
4904 msgstr ""
4905 " cc prog.c -o prog -lguestfs\n"
4906 "or:\n"
4907 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4908 "\n"
4909
4910 #. type: textblock
4911 #: ../examples/guestfs-examples.pod:21
4912 msgid ""
4913 "This manual page contains examples of calling libguestfs from the C "
4914 "programming language.  If you are not familiar with using libguestfs, you "
4915 "also need to read L<guestfs(3)>."
4916 msgstr ""
4917
4918 #. type: textblock
4919 #: ../examples/guestfs-examples.pod:35
4920 msgid ""
4921 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4922 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4923 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4928 #: ../python/examples/guestfs-python.pod:60
4929 #: ../ruby/examples/guestfs-ruby.pod:54
4930 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4931 msgstr ""
4932
4933 #. type: =end
4934 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4935 msgid "comment"
4936 msgstr ""
4937
4938 #. type: textblock
4939 #: ../examples/guestfs-recipes.pod:5
4940 msgid ""
4941 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4942 "here.  The only way which works for both sorts of output is to just write "
4943 "the URL directly.  Do NOT use L<...> for URLs."
4944 msgstr ""
4945
4946 #. type: textblock
4947 #: ../examples/guestfs-recipes.pod:9
4948 msgid ""
4949 "We break with tradition here and don't use ALL CAPS for the section "
4950 "headings, as this makes them much easier to read."
4951 msgstr ""
4952
4953 #. type: textblock
4954 #: ../examples/guestfs-recipes.pod:16
4955 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4956 msgstr ""
4957
4958 #. type: textblock
4959 #: ../examples/guestfs-recipes.pod:20
4960 msgid ""
4961 "This page contains recipes for and links to things you can do using "
4962 "libguestfs, L<guestfish(1)> and the virt tools."
4963 msgstr ""
4964
4965 #. type: =head1
4966 #: ../examples/guestfs-recipes.pod:23
4967 msgid "Audit a virtual machine for setuid files"
4968 msgstr ""
4969
4970 #. type: textblock
4971 #: ../examples/guestfs-recipes.pod:25
4972 msgid ""
4973 "The link below contains a small program which can be used to audit a Linux "
4974 "virtual machine to see what setuid and setgid files it contains."
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../examples/guestfs-recipes.pod:28
4979 msgid ""
4980 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4981 "files/#content"
4982 msgstr ""
4983
4984 #. type: =head1
4985 #: ../examples/guestfs-recipes.pod:30
4986 msgid "Change the background image in a Windows XP VM"
4987 msgstr ""
4988
4989 #. type: textblock
4990 #: ../examples/guestfs-recipes.pod:32
4991 msgid ""
4992 "The links below explain how to use L<guestfish(1)> to change the background "
4993 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4994 "be substantially different for each version of Windows."
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../examples/guestfs-recipes.pod:37
4999 msgid ""
5000 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5001 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5002 msgstr ""
5003
5004 #. type: =head1
5005 #: ../examples/guestfs-recipes.pod:40
5006 msgid "Cloning a virtual machine (Linux)"
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../examples/guestfs-recipes.pod:42
5011 msgid ""
5012 "The guestfish technique described in the link below works well for most "
5013 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5014 "slightly."
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../examples/guestfs-recipes.pod:46
5019 msgid ""
5020 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5021 "vm/#content"
5022 msgstr ""
5023
5024 #. type: textblock
5025 #: ../examples/guestfs-recipes.pod:48
5026 msgid ""
5027 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5028 "discussion."
5029 msgstr ""
5030
5031 #. type: textblock
5032 #: ../examples/guestfs-recipes.pod:51
5033 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5034 msgstr ""
5035
5036 #. type: =head1
5037 #: ../examples/guestfs-recipes.pod:53
5038 msgid "Cloning a virtual machine (Windows)"
5039 msgstr ""
5040
5041 #. type: textblock
5042 #: ../examples/guestfs-recipes.pod:55
5043 msgid ""
5044 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5045 "straightforward.  Currently there is code in the Aeolus Oz project which "
5046 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5047 "we may add sysprepping ability."
5048 msgstr ""
5049
5050 #. type: textblock
5051 #: ../examples/guestfs-recipes.pod:60
5052 msgid ""
5053 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5054 "list/2011-May/msg00019.html"
5055 msgstr ""
5056
5057 #. type: =head1
5058 #: ../examples/guestfs-recipes.pod:63
5059 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5060 msgstr ""
5061
5062 #. type: textblock
5063 #: ../examples/guestfs-recipes.pod:65
5064 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5065 msgstr ""
5066
5067 #. type: verbatim
5068 #: ../examples/guestfs-recipes.pod:67
5069 #, no-wrap
5070 msgid ""
5071 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5072 "\n"
5073 msgstr ""
5074
5075 #. type: textblock
5076 #: ../examples/guestfs-recipes.pod:69
5077 msgid "To export just a subdirectory, eg. C</files>, do:"
5078 msgstr ""
5079
5080 #. type: verbatim
5081 #: ../examples/guestfs-recipes.pod:71
5082 #, no-wrap
5083 msgid ""
5084 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5085 "\n"
5086 msgstr ""
5087
5088 #. type: =head1
5089 #: ../examples/guestfs-recipes.pod:73
5090 msgid "Create empty disk images"
5091 msgstr ""
5092
5093 #. type: textblock
5094 #: ../examples/guestfs-recipes.pod:75
5095 msgid ""
5096 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5097 "The useful guide below explains the options available."
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../examples/guestfs-recipes.pod:78
5102 msgid ""
5103 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5104 "#content"
5105 msgstr ""
5106
5107 #. type: =head1
5108 #: ../examples/guestfs-recipes.pod:80
5109 msgid "Dump raw filesystem content from inside a disk image or VM"
5110 msgstr ""
5111
5112 #. type: textblock
5113 #: ../examples/guestfs-recipes.pod:82
5114 msgid ""
5115 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5116 "filesystem content from any filesystem in a disk image or a VM (even one "
5117 "which is encrypted or buried inside an LV):"
5118 msgstr ""
5119
5120 #. type: verbatim
5121 #: ../examples/guestfs-recipes.pod:86
5122 #, no-wrap
5123 msgid ""
5124 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5125 "\n"
5126 msgstr ""
5127
5128 #. type: verbatim
5129 #: ../examples/guestfs-recipes.pod:88
5130 #, no-wrap
5131 msgid ""
5132 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5133 "\n"
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../examples/guestfs-recipes.pod:90
5138 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5139 msgstr ""
5140
5141 #. type: =head1
5142 #: ../examples/guestfs-recipes.pod:92
5143 msgid "Edit grub configuration in a VM"
5144 msgstr ""
5145
5146 #. type: textblock
5147 #: ../examples/guestfs-recipes.pod:94
5148 msgid "You can use this to:"
5149 msgstr ""
5150
5151 #. type: textblock
5152 #: ../examples/guestfs-recipes.pod:100
5153 msgid "Fix a virtual machine that does not boot."
5154 msgstr ""
5155
5156 #. type: textblock
5157 #: ../examples/guestfs-recipes.pod:104
5158 msgid "Change which kernel is used to boot the VM."
5159 msgstr ""
5160
5161 #. type: textblock
5162 #: ../examples/guestfs-recipes.pod:108
5163 msgid "Change kernel command line options."
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../examples/guestfs-recipes.pod:112
5168 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5169 msgstr ""
5170
5171 #. type: verbatim
5172 #: ../examples/guestfs-recipes.pod:114
5173 #, no-wrap
5174 msgid ""
5175 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5176 "\n"
5177 msgstr ""
5178
5179 #. type: textblock
5180 #: ../examples/guestfs-recipes.pod:116
5181 msgid ""
5182 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5183 "this:"
5184 msgstr ""
5185
5186 #. type: verbatim
5187 #: ../examples/guestfs-recipes.pod:119
5188 #, no-wrap
5189 msgid ""
5190 " virt-rescue -d BrokenGuest\n"
5191 "\n"
5192 msgstr ""
5193
5194 #. type: =head1
5195 #: ../examples/guestfs-recipes.pod:121
5196 msgid "Export any directory from a VM"
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:123
5201 msgid ""
5202 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5203 msgstr ""
5204
5205 #. type: verbatim
5206 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5207 #, no-wrap
5208 msgid ""
5209 " virt-copy-out -d Guest /home .\n"
5210 "\n"
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5215 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5216 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5217 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5218 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5219 #: ../tools/virt-win-reg.pl:717
5220 msgid "Notes:"
5221 msgstr ""
5222
5223 #. type: textblock
5224 #: ../examples/guestfs-recipes.pod:134
5225 msgid ""
5226 "The final dot of the command is not a printing error.  It means we want to "
5227 "copy out to the current directory."
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../examples/guestfs-recipes.pod:139
5232 msgid "This creates a directory called C<home> under the current directory."
5233 msgstr ""
5234
5235 #. type: textblock
5236 #: ../examples/guestfs-recipes.pod:143
5237 msgid ""
5238 "If the guest is a Windows guest then you can use drive letters and "
5239 "backslashes, but you must prefix the path with C<win:> and quote it to "
5240 "protect it from the shell, like this:"
5241 msgstr ""
5242
5243 #. type: verbatim
5244 #: ../examples/guestfs-recipes.pod:147
5245 #, no-wrap
5246 msgid ""
5247 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5248 "\n"
5249 msgstr ""
5250
5251 #. type: textblock
5252 #: ../examples/guestfs-recipes.pod:149
5253 msgid "To get the output as a compressed tarball, do:"
5254 msgstr ""
5255
5256 #. type: verbatim
5257 #: ../examples/guestfs-recipes.pod:151
5258 #, no-wrap
5259 msgid ""
5260 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5261 "\n"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../examples/guestfs-recipes.pod:153
5266 msgid ""
5267 "Although it sounds tempting, this is usually not a reliable way to get a "
5268 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5269 "org/FAQ.html#backup"
5270 msgstr ""
5271
5272 #. type: =head1
5273 #: ../examples/guestfs-recipes.pod:157
5274 msgid "Find out which user is using the most space"
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../examples/guestfs-recipes.pod:159
5279 msgid ""
5280 "This simple script examines a Linux guest to find out which user is using "
5281 "the most space in their home directory:"
5282 msgstr ""
5283
5284 #. type: verbatim
5285 #: ../examples/guestfs-recipes.pod:162
5286 #, no-wrap
5287 msgid ""
5288 " #!/bin/sh -\n"
5289 " \n"
5290 msgstr ""
5291
5292 #. type: verbatim
5293 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5294 #, no-wrap
5295 msgid ""
5296 " set -e\n"
5297 " \n"
5298 msgstr ""
5299
5300 #. type: verbatim
5301 #: ../examples/guestfs-recipes.pod:166
5302 #, no-wrap
5303 msgid ""
5304 " vm=\"$1\"\n"
5305 " dir=/home\n"
5306 " \n"
5307 msgstr ""
5308
5309 #. type: verbatim
5310 #: ../examples/guestfs-recipes.pod:169
5311 #, no-wrap
5312 msgid ""
5313 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5314 " \n"
5315 msgstr ""
5316
5317 #. type: verbatim
5318 #: ../examples/guestfs-recipes.pod:171
5319 #, no-wrap
5320 msgid ""
5321 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5322 "     echo -n \"$dir/$d\"\n"
5323 "     echo -ne '\\t'\n"
5324 "     guestfish --remote du \"$dir/$d\";\n"
5325 " done | sort -nr -k 2\n"
5326 " \n"
5327 msgstr ""
5328
5329 #. type: verbatim
5330 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5331 #, no-wrap
5332 msgid ""
5333 " guestfish --remote exit\n"
5334 "\n"
5335 msgstr ""
5336
5337 #. type: =head1
5338 #: ../examples/guestfs-recipes.pod:179
5339 msgid "Get DHCP address from a VM"
5340 msgstr ""
5341
5342 #. type: textblock
5343 #: ../examples/guestfs-recipes.pod:181
5344 msgid ""
5345 "The link below explains the many different possible techniques for getting "
5346 "the last assigned DHCP address of a virtual machine."
5347 msgstr ""
5348
5349 #. type: textblock
5350 #: ../examples/guestfs-recipes.pod:184
5351 msgid ""
5352 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5353 "a-virtual-machine-disk-image/#content"
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../examples/guestfs-recipes.pod:186
5358 msgid ""
5359 "In the libguestfs source examples directory you will find the latest version "
5360 "of the C<virt-dhcp-address.c> program."
5361 msgstr ""
5362
5363 #. type: =head1
5364 #: ../examples/guestfs-recipes.pod:189
5365 msgid "Get the operating system product name string"
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../examples/guestfs-recipes.pod:191
5370 msgid "Save the following script into a file called C<product-name.sh>:"
5371 msgstr ""
5372
5373 #. type: verbatim
5374 #: ../examples/guestfs-recipes.pod:193
5375 #, no-wrap
5376 msgid ""
5377 " #!/bin/sh -\n"
5378 " set -e\n"
5379 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5380 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5381 " guestfish --remote inspect-get-product-name \"$root\"\n"
5382 " guestfish --remote exit\n"
5383 "\n"
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../examples/guestfs-recipes.pod:200
5388 msgid "Make the script executable and run it on a named guest:"
5389 msgstr ""
5390
5391 #. type: verbatim
5392 #: ../examples/guestfs-recipes.pod:202
5393 #, no-wrap
5394 msgid ""
5395 " # product-name.sh RHEL60x64\n"
5396 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5397 "\n"
5398 msgstr ""
5399
5400 #. type: textblock
5401 #: ../examples/guestfs-recipes.pod:205
5402 msgid ""
5403 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5404 "C<xpath> command line tool or from your favourite programming language:"
5405 msgstr ""
5406
5407 #. type: verbatim
5408 #: ../examples/guestfs-recipes.pod:209
5409 #, no-wrap
5410 msgid ""
5411 " # virt-inspector RHEL60x64 > xml\n"
5412 " # xpath '//product_name' < xml\n"
5413 " Found 1 nodes:\n"
5414 " -- NODE --\n"
5415 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5416 "\n"
5417 msgstr ""
5418
5419 #. type: =head1
5420 #: ../examples/guestfs-recipes.pod:215
5421 msgid "Get the default boot kernel for a Linux VM"
5422 msgstr ""
5423
5424 #. type: textblock
5425 #: ../examples/guestfs-recipes.pod:217
5426 msgid ""
5427 "The link below contains a program to print the default boot kernel for a "
5428 "Linux VM."
5429 msgstr ""
5430
5431 #. type: textblock
5432 #: ../examples/guestfs-recipes.pod:220
5433 msgid ""
5434 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5435 "kernel-for-a-vm/#content"
5436 msgstr ""
5437
5438 #. type: textblock
5439 #: ../examples/guestfs-recipes.pod:222
5440 msgid ""
5441 "It uses Augeas, and the technique is generally applicable for many different "
5442 "tasks, such as:"
5443 msgstr ""
5444
5445 #. type: textblock
5446 #: ../examples/guestfs-recipes.pod:229
5447 msgid "listing the user accounts in the guest"
5448 msgstr ""
5449
5450 #. type: textblock
5451 #: ../examples/guestfs-recipes.pod:233
5452 msgid "what repositories is it configured to use"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../examples/guestfs-recipes.pod:237
5457 msgid "what NTP servers does it connect to"
5458 msgstr ""
5459
5460 #. type: textblock
5461 #: ../examples/guestfs-recipes.pod:241
5462 msgid "what were the boot messages last time it booted"
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../examples/guestfs-recipes.pod:245
5467 msgid "listing who was logged in recently"
5468 msgstr ""
5469
5470 #. type: textblock
5471 #: ../examples/guestfs-recipes.pod:249
5472 msgid "http://augeas.net/"
5473 msgstr ""
5474
5475 #. type: =head1
5476 #: ../examples/guestfs-recipes.pod:251
5477 msgid "Install RPMs in a guest"
5478 msgstr ""
5479
5480 #. type: textblock
5481 #: ../examples/guestfs-recipes.pod:253
5482 msgid ""
5483 "The link below contains a method to install RPMs in a guest.  In fact the "
5484 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5485 "installs them next time the guest is booted.  You could use this technique "
5486 "to install vital security updates in an offline guest."
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../examples/guestfs-recipes.pod:259
5491 msgid ""
5492 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5493 msgstr ""
5494
5495 #. type: =head1
5496 #: ../examples/guestfs-recipes.pod:261
5497 msgid "List applications installed in a VM"
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../examples/guestfs-recipes.pod:263
5502 msgid "Save the following to a file C<list-apps.sh>:"
5503 msgstr ""
5504
5505 #. type: verbatim
5506 #: ../examples/guestfs-recipes.pod:265
5507 #, no-wrap
5508 msgid ""
5509 " #!/bin/sh -\n"
5510 " set -e\n"
5511 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5512 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5513 " guestfish --remote inspect-list-applications \"$root\"\n"
5514 " guestfish --remote exit\n"
5515 "\n"
5516 msgstr ""
5517
5518 #. type: textblock
5519 #: ../examples/guestfs-recipes.pod:272
5520 msgid ""
5521 "Make the file executable and then you can run it on any named virtual "
5522 "machine:"
5523 msgstr ""
5524
5525 #. type: verbatim
5526 #: ../examples/guestfs-recipes.pod:275
5527 #, no-wrap
5528 msgid ""
5529 " # list-apps.sh WinGuest\n"
5530 " [0] = {\n"
5531 "   app_name: Mozilla Firefox (3.6.12)\n"
5532 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5533 "   app_epoch: 0\n"
5534 "   app_version: 3.6.12 (en-GB)\n"
5535 "   app_release:\n"
5536 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5537 "   app_trans_path:\n"
5538 "   app_publisher: Mozilla\n"
5539 "   app_url: http://www.mozilla.com/en-GB/\n"
5540 "   app_source_package:\n"
5541 "   app_summary:\n"
5542 "   app_description: Mozilla Firefox\n"
5543 " }\n"
5544 " [1] = {\n"
5545 "   app_name: VLC media player\n"
5546 "   app_display_name: VLC media player 1.1.5\n"
5547 "   app_epoch: 0\n"
5548 "   app_version: 1.1.5\n"
5549 "   app_release:\n"
5550 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5551 "   app_trans_path:\n"
5552 "   app_publisher: VideoLAN\n"
5553 "   app_url: http://www.videolan.org/\n"
5554 "   app_source_package:\n"
5555 "   app_summary:\n"
5556 "   app_description:\n"
5557 " }\n"
5558 "\n"
5559 msgstr ""
5560
5561 #. type: textblock
5562 #: ../examples/guestfs-recipes.pod:305
5563 msgid ""
5564 "If you want to run the script on disk images (instead of libvirt virtual "
5565 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5566 ">."
5567 msgstr ""
5568
5569 #. type: =head1
5570 #: ../examples/guestfs-recipes.pod:309
5571 msgid "List files and directories in a VM"
5572 msgstr ""
5573
5574 #. type: textblock
5575 #: ../examples/guestfs-recipes.pod:311
5576 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5577 msgstr ""
5578
5579 #. type: verbatim
5580 #: ../examples/guestfs-recipes.pod:313
5581 #, no-wrap
5582 msgid ""
5583 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5584 "\n"
5585 msgstr ""
5586
5587 #. type: =head1
5588 #: ../examples/guestfs-recipes.pod:315
5589 msgid "List services in a Windows VM"
5590 msgstr ""
5591
5592 #. type: textblock
5593 #: ../examples/guestfs-recipes.pod:317
5594 msgid ""
5595 "The link below contains a script that can be used to list out the services "
5596 "from a Windows VM, and whether those services run at boot time or are loaded "
5597 "on demand."
5598 msgstr ""
5599
5600 #. type: textblock
5601 #: ../examples/guestfs-recipes.pod:321
5602 msgid ""
5603 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5604 "#content"
5605 msgstr ""
5606
5607 #. type: =head1
5608 #: ../examples/guestfs-recipes.pod:323
5609 msgid "Make a disk image sparse"
5610 msgstr ""
5611
5612 #. type: textblock
5613 #: ../examples/guestfs-recipes.pod:325
5614 msgid ""
5615 "The link below contains some guides for making a disk image sparse (or "
5616 "reintroducing sparseness)."
5617 msgstr ""
5618
5619 #. type: textblock
5620 #: ../examples/guestfs-recipes.pod:328
5621 msgid ""
5622 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5623 msgstr ""
5624
5625 #. type: =head1
5626 #: ../examples/guestfs-recipes.pod:330
5627 msgid "Monitor disk usage over time"
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../examples/guestfs-recipes.pod:332
5632 msgid ""
5633 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5634 "The link below contains a guide."
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../examples/guestfs-recipes.pod:335
5639 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5640 msgstr ""
5641
5642 #. type: =head1
5643 #: ../examples/guestfs-recipes.pod:337
5644 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../examples/guestfs-recipes.pod:339
5649 msgid ""
5650 "L<guestfish(1)> plus the tools described in the link below can be used to "
5651 "read out the Windows Event Log from any virtual machine running Windows "
5652 "Vista or a later version."
5653 msgstr ""
5654
5655 #. type: textblock
5656 #: ../examples/guestfs-recipes.pod:343
5657 msgid ""
5658 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5659 "guestfish/#content"
5660 msgstr ""
5661
5662 #. type: =head1
5663 #: ../examples/guestfs-recipes.pod:345
5664 msgid "Remove root password (Linux)"
5665 msgstr ""
5666
5667 #. type: textblock
5668 #: ../examples/guestfs-recipes.pod:347
5669 msgid ""
5670 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5671 "files.  One use is to remove the root password from a Linux guest:"
5672 msgstr ""
5673
5674 #. type: verbatim
5675 #: ../examples/guestfs-recipes.pod:350
5676 #, no-wrap
5677 msgid ""
5678 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5679 "\n"
5680 msgstr ""
5681
5682 #. type: =head1
5683 #: ../examples/guestfs-recipes.pod:352
5684 msgid "Remove Administrator password (Windows)"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../examples/guestfs-recipes.pod:354
5689 msgid ""
5690 "The link below contains one technique for removing the Administrator "
5691 "password from a Windows VM, or to be more precise, it gives you a command "
5692 "prompt the next time you log in which you can use to bypass any security:"
5693 msgstr ""
5694
5695 #. type: textblock
5696 #: ../examples/guestfs-recipes.pod:359
5697 msgid ""
5698 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5699 "administrator-password-with-guestfish/"
5700 msgstr ""
5701
5702 #. type: =head1
5703 #: ../examples/guestfs-recipes.pod:361
5704 msgid "Unpack a live CD"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../examples/guestfs-recipes.pod:363
5709 msgid ""
5710 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5711 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5712 "layers, as outlined in the guide below."
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../examples/guestfs-recipes.pod:367
5717 msgid ""
5718 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5719 "cd/#content"
5720 msgstr ""
5721
5722 #. type: =head1
5723 #: ../examples/guestfs-recipes.pod:369
5724 msgid "Uploading and downloading files"
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../examples/guestfs-recipes.pod:371
5729 msgid ""
5730 "The link below contains general tips on uploading (copying in)  and "
5731 "downloading (copying out) files from VMs."
5732 msgstr ""
5733
5734 #. type: textblock
5735 #: ../examples/guestfs-recipes.pod:374
5736 msgid ""
5737 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5738 msgstr ""
5739
5740 #. type: =head1
5741 #: ../examples/guestfs-recipes.pod:376
5742 msgid "Use libguestfs tools on VMware ESX guests"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../examples/guestfs-recipes.pod:378
5747 msgid ""
5748 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5749 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5750 msgstr ""
5751
5752 #. type: textblock
5753 #: ../examples/guestfs-recipes.pod:382
5754 msgid ""
5755 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5756 "guests/#content"
5757 msgstr ""
5758
5759 #. type: textblock
5760 #: ../examples/guestfs-recipes.pod:386
5761 msgid ""
5762 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5763 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5764 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../examples/guestfs-recipes.pod:403
5769 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../examples/guestfs-testing.pod:5
5774 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5775 msgstr ""
5776
5777 #. type: textblock
5778 #: ../examples/guestfs-testing.pod:9
5779 msgid ""
5780 "This page has manual tests you can try on libguestfs.  Everyone has a "
5781 "slightly different combination of platform, hardware and guests, so this "
5782 "testing is very valuable.  Thanks for helping out!"
5783 msgstr ""
5784
5785 #. type: textblock
5786 #: ../examples/guestfs-testing.pod:13
5787 msgid "These tests require libguestfs E<ge> 1.14."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../examples/guestfs-testing.pod:15
5792 msgid ""
5793 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5794 "careful.  The others are safe and won't modify anything."
5795 msgstr ""
5796
5797 #. type: textblock
5798 #: ../examples/guestfs-testing.pod:18
5799 msgid "You can report bugs you find through this link:"
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../examples/guestfs-testing.pod:20
5804 msgid ""
5805 "https://bugzilla.redhat.com/enter_bug.cgi?"
5806 "component=libguestfs&product=Virtualization+Tools"
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../examples/guestfs-testing.pod:22
5811 msgid ""
5812 "or post on the mailing list (registration is B<not> required, but if you're "
5813 "not registered then you'll have to wait for a moderator to manually approve "
5814 "your message):"
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../examples/guestfs-testing.pod:26
5819 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
5820 msgstr ""
5821
5822 #. type: =head1
5823 #: ../examples/guestfs-testing.pod:28
5824 msgid "TESTS"
5825 msgstr ""
5826
5827 #. type: =head2
5828 #: ../examples/guestfs-testing.pod:30
5829 msgid "Check KVM acceleration is being used."
5830 msgstr ""
5831
5832 #. type: textblock
5833 #: ../examples/guestfs-testing.pod:32
5834 msgid ""
5835 "If your host has hardware virt acceleration, then with a hot cache "
5836 "libguestfs should be able to start up in a few seconds.  Run the following "
5837 "command a few times:"
5838 msgstr ""
5839
5840 #. type: verbatim
5841 #: ../examples/guestfs-testing.pod:36
5842 #, no-wrap
5843 msgid ""
5844 " time guestfish -a /dev/null run\n"
5845 "\n"
5846 msgstr ""
5847
5848 #. type: textblock
5849 #: ../examples/guestfs-testing.pod:38
5850 msgid ""
5851 "After a few runs, the time should settle down to a few seconds (under 5 "
5852 "seconds on fast 64 bit hardware)."
5853 msgstr ""
5854
5855 #. type: textblock
5856 #: ../examples/guestfs-testing.pod:41
5857 msgid "How to check for hardware virt:"
5858 msgstr ""
5859
5860 #. type: textblock
5861 #: ../examples/guestfs-testing.pod:43
5862 msgid "http://virt-tools.org/learning/check-hardware-virt/"
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../examples/guestfs-testing.pod:45
5867 msgid ""
5868 "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
5869 msgstr ""
5870
5871 #. type: =head2
5872 #: ../examples/guestfs-testing.pod:48
5873 msgid "Run virt-alignment-scan on all your guests."
5874 msgstr ""
5875
5876 #. type: textblock
5877 #: ../examples/guestfs-testing.pod:50
5878 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
5879 msgstr ""
5880
5881 #. type: verbatim
5882 #: ../examples/guestfs-testing.pod:52
5883 #, no-wrap
5884 msgid ""
5885 " virt-alignment-scan -a /path/to/disk.img\n"
5886 "\n"
5887 msgstr ""
5888
5889 #. type: textblock
5890 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:139
5891 #: ../examples/guestfs-testing.pod:152 ../examples/guestfs-testing.pod:212
5892 #: ../src/guestfs.pod:2792
5893 msgid "or:"
5894 msgstr ""
5895
5896 #. type: verbatim
5897 #: ../examples/guestfs-testing.pod:56
5898 #, no-wrap
5899 msgid ""
5900 " virt-alignment-scan -d Guest\n"
5901 "\n"
5902 msgstr ""
5903
5904 #. type: textblock
5905 #: ../examples/guestfs-testing.pod:58
5906 msgid "Does the alignment report match how the guest partitions are aligned?"
5907 msgstr ""
5908
5909 #. type: =head2
5910 #: ../examples/guestfs-testing.pod:60
5911 msgid "Run virt-cat on some files in guests."
5912 msgstr ""
5913
5914 #. type: textblock
5915 #: ../examples/guestfs-testing.pod:62
5916 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
5917 msgstr ""
5918
5919 #. type: verbatim
5920 #: ../examples/guestfs-testing.pod:64
5921 #, no-wrap
5922 msgid ""
5923 " virt-cat LinuxGuest /etc/passwd\n"
5924 "\n"
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-testing.pod:66
5929 msgid "A recent feature is support for Windows paths, for example:"
5930 msgstr ""
5931
5932 #. type: verbatim
5933 #: ../examples/guestfs-testing.pod:68
5934 #, no-wrap
5935 msgid ""
5936 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
5937 "\n"
5938 msgstr ""
5939
5940 #. type: textblock
5941 #: ../examples/guestfs-testing.pod:70
5942 msgid ""
5943 "An even better test is if you have a Windows guest with multiple drives.  Do "
5944 "C<D:>, C<E:> etc paths work correctly?"
5945 msgstr ""
5946
5947 #. type: =head2
5948 #: ../examples/guestfs-testing.pod:73
5949 msgid "B<*> Copy some files into a B<shut off> guest."
5950 msgstr ""
5951
5952 #. type: textblock
5953 #: ../examples/guestfs-testing.pod:75
5954 msgid ""
5955 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
5956 "or disk image."
5957 msgstr ""
5958
5959 #. type: verbatim
5960 #: ../examples/guestfs-testing.pod:78
5961 #, no-wrap
5962 msgid ""
5963 " virt-copy-in -d Guest /etc /tmp\n"
5964 "\n"
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../examples/guestfs-testing.pod:80
5969 msgid ""
5970 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
5971 "(recursively).  If you boot the guest, can you see all of the copied files "
5972 "and directories?"
5973 msgstr ""
5974
5975 #. type: textblock
5976 #: ../examples/guestfs-testing.pod:84
5977 msgid "Shut the guest down and try copying multiple files and directories:"
5978 msgstr ""
5979
5980 #. type: verbatim
5981 #: ../examples/guestfs-testing.pod:86
5982 #, no-wrap
5983 msgid ""
5984 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
5985 "\n"
5986 msgstr ""
5987
5988 #. type: =head2
5989 #: ../examples/guestfs-testing.pod:88
5990 msgid "Copy some files out of a guest."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../examples/guestfs-testing.pod:90
5995 msgid ""
5996 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
5997 "guest or disk image."
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../examples/guestfs-testing.pod:95
6002 msgid "Note the final space and period in the command is not a typo."
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../examples/guestfs-testing.pod:97
6007 msgid "This should copy C</home> from the guest into the current directory."
6008 msgstr ""
6009
6010 #. type: =head2
6011 #: ../examples/guestfs-testing.pod:99
6012 msgid "Run virt-df."
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../examples/guestfs-testing.pod:101
6017 msgid "L<virt-df(1)> lists disk space.  Run:"
6018 msgstr ""
6019
6020 #. type: verbatim
6021 #: ../examples/guestfs-testing.pod:103
6022 #, no-wrap
6023 msgid ""
6024 " virt-df\n"
6025 "\n"
6026 msgstr ""
6027
6028 #. type: textblock
6029 #: ../examples/guestfs-testing.pod:105
6030 msgid "Do the results match what's reported inside the guests?"
6031 msgstr ""
6032
6033 #. type: =head2
6034 #: ../examples/guestfs-testing.pod:107
6035 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6036 msgstr ""
6037
6038 #. type: textblock
6039 #: ../examples/guestfs-testing.pod:109 ../src/guestfs.pod:3083
6040 msgid "Run:"
6041 msgstr ""
6042
6043 #. type: verbatim
6044 #: ../examples/guestfs-testing.pod:111
6045 #, no-wrap
6046 msgid ""
6047 " virt-df --csv > /tmp/report.csv\n"
6048 "\n"
6049 msgstr ""
6050
6051 #. type: textblock
6052 #: ../examples/guestfs-testing.pod:113
6053 msgid ""
6054 "Now try to load this into your favorite spreadsheet or database.  Are the "
6055 "results reproduced faithfully in the spreadsheet/database?"
6056 msgstr ""
6057
6058 #. type: textblock
6059 #: ../examples/guestfs-testing.pod:116
6060 msgid ""
6061 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6062 "doc/refman/5.1/en/load-data.html"
6063 msgstr ""
6064
6065 #. type: =head2
6066 #: ../examples/guestfs-testing.pod:119
6067 msgid "B<*> Edit a file in a B<shut off> guest."
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../examples/guestfs-testing.pod:121
6072 msgid ""
6073 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
6074 "Fedora guest:"
6075 msgstr ""
6076
6077 #. type: verbatim
6078 #: ../examples/guestfs-testing.pod:124
6079 #, no-wrap
6080 msgid ""
6081 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6082 "\n"
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../examples/guestfs-testing.pod:126
6087 msgid "On other Linux guests try editing other files such as:"
6088 msgstr ""
6089
6090 #. type: verbatim
6091 #: ../examples/guestfs-testing.pod:128
6092 #, no-wrap
6093 msgid ""
6094 " virt-edit LinuxGuest /etc/motd\n"
6095 "\n"
6096 msgstr ""
6097
6098 #. type: textblock
6099 #: ../examples/guestfs-testing.pod:130
6100 msgid "Are the changes seen inside the guest when it is booted?"
6101 msgstr ""
6102
6103 #. type: =head2
6104 #: ../examples/guestfs-testing.pod:132
6105 msgid "Display the filesystems / partitions / LVs in a guest."
6106 msgstr ""
6107
6108 #. type: textblock
6109 #: ../examples/guestfs-testing.pod:134
6110 msgid ""
6111 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
6112 "this command on any disk image or guest:"
6113 msgstr ""
6114
6115 #. type: verbatim
6116 #: ../examples/guestfs-testing.pod:137
6117 #, no-wrap
6118 msgid ""
6119 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6120 "\n"
6121 msgstr ""
6122
6123 #. type: verbatim
6124 #: ../examples/guestfs-testing.pod:141
6125 #, no-wrap
6126 msgid ""
6127 " virt-filesystems -d Guest --all --long -h\n"
6128 "\n"
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../examples/guestfs-testing.pod:143
6133 msgid "Do the results match what is seen in the guest?"
6134 msgstr ""
6135
6136 #. type: =head2
6137 #: ../examples/guestfs-testing.pod:145
6138 msgid "Run virt-inspector on all your guests."
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../examples/guestfs-testing.pod:147
6143 msgid ""
6144 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6145 "images:"
6146 msgstr ""
6147
6148 #. type: verbatim
6149 #: ../examples/guestfs-testing.pod:150
6150 #, no-wrap
6151 msgid ""
6152 " virt-inspector -a /path/to/disk.img | less\n"
6153 "\n"
6154 msgstr ""
6155
6156 #. type: verbatim
6157 #: ../examples/guestfs-testing.pod:154
6158 #, no-wrap
6159 msgid ""
6160 " virt-inspector -d Guest | less\n"
6161 "\n"
6162 msgstr ""
6163
6164 #. type: textblock
6165 #: ../examples/guestfs-testing.pod:156
6166 msgid "Do the results match what is actually in the guest?"
6167 msgstr ""
6168
6169 #. type: =head2
6170 #: ../examples/guestfs-testing.pod:158
6171 msgid "Try the auditing features of virt-ls on all your guests."
6172 msgstr ""
6173
6174 #. type: verbatim
6175 #: ../examples/guestfs-testing.pod:162
6176 #, no-wrap
6177 msgid ""
6178 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6179 "\n"
6180 msgstr ""
6181
6182 #. type: verbatim
6183 #: ../examples/guestfs-testing.pod:166
6184 #, no-wrap
6185 msgid ""
6186 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6187 "\n"
6188 msgstr ""
6189
6190 #. type: verbatim
6191 #: ../examples/guestfs-testing.pod:170
6192 #, no-wrap
6193 msgid ""
6194 " virt-ls -lR -d Guest / | grep '^s'\n"
6195 "\n"
6196 msgstr ""
6197
6198 #. type: verbatim
6199 #: ../examples/guestfs-testing.pod:174
6200 #, no-wrap
6201 msgid ""
6202 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6203 "\n"
6204 msgstr ""
6205
6206 #. type: textblock
6207 #: ../examples/guestfs-testing.pod:176
6208 msgid "Display files larger than 10MB in home directories:"
6209 msgstr ""
6210
6211 #. type: verbatim
6212 #: ../examples/guestfs-testing.pod:178
6213 #, no-wrap
6214 msgid ""
6215 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6216 "\n"
6217 msgstr ""
6218
6219 #. type: verbatim
6220 #: ../examples/guestfs-testing.pod:182
6221 #, no-wrap
6222 msgid ""
6223 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6224 "\n"
6225 msgstr ""
6226
6227 #. type: verbatim
6228 #: ../examples/guestfs-testing.pod:186
6229 #, no-wrap
6230 msgid ""
6231 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6232 "\n"
6233 msgstr ""
6234
6235 #. type: textblock
6236 #: ../examples/guestfs-testing.pod:188
6237 msgid "Do the results match what is in the guest?"
6238 msgstr ""
6239
6240 #. type: =head2
6241 #: ../examples/guestfs-testing.pod:190
6242 msgid "Create a disk image from a tarball."
6243 msgstr ""
6244
6245 #. type: textblock
6246 #: ../examples/guestfs-testing.pod:192
6247 msgid ""
6248 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6249 "happen to have:"
6250 msgstr ""
6251
6252 #. type: verbatim
6253 #: ../examples/guestfs-testing.pod:195
6254 #, no-wrap
6255 msgid ""
6256 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6257 "\n"
6258 msgstr ""
6259
6260 #. type: textblock
6261 #: ../examples/guestfs-testing.pod:197
6262 msgid ""
6263 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
6264 "see the files.  This test is particularly useful if you try it with a "
6265 "Windows guest."
6266 msgstr ""
6267
6268 #. type: textblock
6269 #: ../examples/guestfs-testing.pod:201
6270 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6271 msgstr ""
6272
6273 #. type: textblock
6274 #: ../examples/guestfs-testing.pod:203
6275 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6276 msgstr ""
6277
6278 #. type: =head2
6279 #: ../examples/guestfs-testing.pod:205
6280 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6281 msgstr ""
6282
6283 #. type: textblock
6284 #: ../examples/guestfs-testing.pod:207
6285 msgid ""
6286 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6287 "disk image:"
6288 msgstr ""
6289
6290 #. type: verbatim
6291 #: ../examples/guestfs-testing.pod:210
6292 #, no-wrap
6293 msgid ""
6294 " virt-rescue -a /path/to/disk.img\n"
6295 "\n"
6296 msgstr ""
6297
6298 #. type: verbatim
6299 #: ../examples/guestfs-testing.pod:214
6300 #, no-wrap
6301 msgid ""
6302 " virt-rescue -d Guest\n"
6303 "\n"
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../examples/guestfs-testing.pod:216
6308 msgid "Can you use ordinary shell commands to examine the guest?"
6309 msgstr ""
6310
6311 #. type: =head2
6312 #: ../examples/guestfs-testing.pod:218
6313 msgid "B<*> Resize your guests."
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../examples/guestfs-testing.pod:220
6318 msgid ""
6319 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
6320 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6321 msgstr ""
6322
6323 #. type: verbatim
6324 #: ../examples/guestfs-testing.pod:224
6325 #, no-wrap
6326 msgid ""
6327 " truncate -s 30G newdisk.img\n"
6328 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6329 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6330 " qemu-kvm -m 1024 -hda newdisk.img\n"
6331 "\n"
6332 msgstr ""
6333
6334 #. type: textblock
6335 #: ../examples/guestfs-testing.pod:229
6336 msgid "Does the guest still boot? Try expanding other partitions."
6337 msgstr ""
6338
6339 #. type: =head2
6340 #: ../examples/guestfs-testing.pod:231
6341 msgid "B<*> Sparsify a guest disk."
6342 msgstr ""
6343
6344 #. type: textblock
6345 #: ../examples/guestfs-testing.pod:233
6346 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6347 msgstr ""
6348
6349 #. type: verbatim
6350 #: ../examples/guestfs-testing.pod:235
6351 #, no-wrap
6352 msgid ""
6353 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6354 "\n"
6355 msgstr ""
6356
6357 #. type: textblock
6358 #: ../examples/guestfs-testing.pod:237
6359 msgid ""
6360 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6361 "image smaller (use C<du> to check)?"
6362 msgstr ""
6363
6364 #. type: =head2
6365 #: ../examples/guestfs-testing.pod:240
6366 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../examples/guestfs-testing.pod:242
6371 msgid ""
6372 "Note that this really will mess up an existing guest, so it's better to "
6373 "clone the guest before trying this."
6374 msgstr ""
6375
6376 #. type: verbatim
6377 #: ../examples/guestfs-testing.pod:245
6378 #, no-wrap
6379 msgid ""
6380 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6381 "\n"
6382 msgstr ""
6383
6384 #. type: textblock
6385 #: ../examples/guestfs-testing.pod:247
6386 msgid ""
6387 "Was the sysprep successful? After booting, what changes were made and were "
6388 "they successful?"
6389 msgstr ""
6390
6391 #. type: =head2
6392 #: ../examples/guestfs-testing.pod:250
6393 msgid "Dump the Windows Registry from your Windows guests."
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../examples/guestfs-testing.pod:252
6398 msgid ""
6399 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6400 "guests that you have."
6401 msgstr ""
6402
6403 #. type: verbatim
6404 #: ../examples/guestfs-testing.pod:255
6405 #, no-wrap
6406 msgid ""
6407 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6408 "   less\n"
6409 "\n"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../examples/guestfs-testing.pod:258
6414 #, no-wrap
6415 msgid ""
6416 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6417 "   less\n"
6418 "\n"
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../examples/guestfs-testing.pod:261
6423 msgid "Does the output match running C<regedit> inside the guest?"
6424 msgstr ""
6425
6426 #. type: textblock
6427 #: ../examples/guestfs-testing.pod:263
6428 msgid ""
6429 "A recent feature is the ability to dump user registries, so try this, "
6430 "replacing I<username> with the name of a local user in the guest:"
6431 msgstr ""
6432
6433 #. type: verbatim
6434 #: ../examples/guestfs-testing.pod:266
6435 #, no-wrap
6436 msgid ""
6437 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6438 "   less\n"
6439 "\n"
6440 msgstr ""
6441
6442 #. type: textblock
6443 #: ../examples/guestfs-testing.pod:271
6444 msgid ""
6445 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6446 "org/>."
6447 msgstr ""
6448
6449 #. type: =head2
6450 #: ../fish/guestfish-actions.pod:1
6451 msgid "add-cdrom"
6452 msgstr ""
6453
6454 #. type: verbatim
6455 #: ../fish/guestfish-actions.pod:3
6456 #, no-wrap
6457 msgid ""
6458 " add-cdrom filename\n"
6459 "\n"
6460 msgstr ""
6461
6462 #. type: textblock
6463 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6464 msgid "This function adds a virtual CD-ROM disk image to the guest."
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6469 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6470 msgstr ""
6471
6472 #. type: textblock
6473 #: ../fish/guestfish-actions.pod:15
6474 msgid ""
6475 "This call checks for the existence of C<filename>.  This stops you from "
6476 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6477 "and C<http:> URLs.  To specify those, use the general L</config> call "
6478 "instead."
6479 msgstr ""
6480
6481 #. type: textblock
6482 #: ../fish/guestfish-actions.pod:22
6483 msgid ""
6484 "If you just want to add an ISO file (often you use this as an efficient way "
6485 "to transfer large files into the guest), then you should probably use L</add-"
6486 "drive-ro> instead."
6487 msgstr ""
6488
6489 #. type: textblock
6490 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6491 #: ../fish/guestfish-actions.pod:228
6492 msgid ""
6493 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6494 "instead."
6495 msgstr ""
6496
6497 #. type: textblock
6498 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6499 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
6500 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
6501 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
6502 #: ../fish/guestfish-actions.pod:3381 ../fish/guestfish-actions.pod:3692
6503 #: ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:4658
6504 #: ../fish/guestfish-actions.pod:4678 ../fish/guestfish-actions.pod:4697
6505 #: ../fish/guestfish-actions.pod:4735 ../fish/guestfish-actions.pod:5463
6506 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:10
6507 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6508 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
6509 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
6510 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5225
6511 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5847
6512 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7184
6513 #: ../src/guestfs-actions.pod:7215 ../src/guestfs-actions.pod:7275
6514 #: ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8436
6515 #: ../src/guestfs-actions.pod:8616
6516 msgid ""
6517 "Deprecated functions will not be removed from the API, but the fact that "
6518 "they are deprecated indicates that there are problems with correct use of "
6519 "these functions."
6520 msgstr ""
6521
6522 #. type: =head2
6523 #: ../fish/guestfish-actions.pod:35
6524 msgid "add-domain"
6525 msgstr ""
6526
6527 #. type: =head2
6528 #: ../fish/guestfish-actions.pod:37
6529 msgid "domain"
6530 msgstr ""
6531
6532 #. type: verbatim
6533 #: ../fish/guestfish-actions.pod:39
6534 #, no-wrap
6535 msgid ""
6536 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6537 "\n"
6538 msgstr ""
6539
6540 #. type: textblock
6541 #: ../fish/guestfish-actions.pod:41
6542 msgid ""
6543 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6544 "It works by connecting to libvirt, requesting the domain and domain XML from "
6545 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6546 msgstr ""
6547
6548 #. type: textblock
6549 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6550 msgid ""
6551 "The number of disks added is returned.  This operation is atomic: if an "
6552 "error is returned, then no disks are added."
6553 msgstr ""
6554
6555 #. type: textblock
6556 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6557 msgid ""
6558 "This function does some minimal checks to make sure the libvirt domain is "
6559 "not running (unless C<readonly> is true).  In a future version we will try "
6560 "to acquire the libvirt lock on each disk."
6561 msgstr ""
6562
6563 #. type: textblock
6564 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6565 msgid ""
6566 "Disks must be accessible locally.  This often means that adding disks from a "
6567 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6568 "unless those disks are accessible via the same device path locally too."
6569 msgstr ""
6570
6571 #. type: textblock
6572 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6573 msgid ""
6574 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6575 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6576 "libvirt URI (or one set through an environment variable, see the libvirt "
6577 "documentation for full details)."
6578 msgstr ""
6579
6580 #. type: textblock
6581 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6582 msgid ""
6583 "The optional C<live> flag controls whether this call will try to connect to "
6584 "a running virtual machine C<guestfsd> process if it sees a suitable "
6585 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6586 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6587 "DAEMONS> for more information."
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6592 msgid ""
6593 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6594 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6595 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6596 "as usual."
6597 msgstr ""
6598
6599 #. type: textblock
6600 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6601 msgid ""
6602 "The optional C<readonlydisk> parameter controls what we do for disks which "
6603 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6604 msgstr ""
6605
6606 #. type: =item
6607 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6608 msgid "readonlydisk = \"error\""
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6613 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6614 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6615 msgid "If C<readonly> is false:"
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6620 msgid ""
6621 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6622 "E<gt> flag is found."
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6627 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6628 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6629 msgid "If C<readonly> is true:"
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6634 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6635 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6636 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6637 msgstr ""
6638
6639 #. type: =item
6640 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6641 msgid "readonlydisk = \"read\""
6642 msgstr ""
6643
6644 #. type: textblock
6645 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6646 msgid ""
6647 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6648 "are added read/write."
6649 msgstr ""
6650
6651 #. type: =item
6652 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6653 msgid "readonlydisk = \"write\" (default)"
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6658 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6659 msgstr ""
6660
6661 #. type: =item
6662 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6663 msgid "readonlydisk = \"ignore\""
6664 msgstr ""
6665
6666 #. type: textblock
6667 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6668 msgid "If C<readonly> is true or false:"
6669 msgstr ""
6670
6671 #. type: textblock
6672 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6673 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:122
6678 msgid ""
6679 "The other optional parameters are passed directly through to L</add-drive-"
6680 "opts>."
6681 msgstr ""
6682
6683 #. type: textblock
6684 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6685 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6686 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6687 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6688 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6689 #: ../fish/guestfish-actions.pod:3215 ../fish/guestfish-actions.pod:3430
6690 #: ../fish/guestfish-actions.pod:3593 ../fish/guestfish-actions.pod:3728
6691 #: ../fish/guestfish-actions.pod:5099
6692 msgid ""
6693 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6694 msgstr ""
6695
6696 #. type: =head2
6697 #: ../fish/guestfish-actions.pod:127
6698 msgid "add-drive"
6699 msgstr ""
6700
6701 #. type: verbatim
6702 #: ../fish/guestfish-actions.pod:129
6703 #, no-wrap
6704 msgid ""
6705 " add-drive filename\n"
6706 "\n"
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:131
6711 msgid ""
6712 "This function is the equivalent of calling L</add-drive-opts> with no "
6713 "optional parameters, so the disk is added writable, with the format being "
6714 "detected automatically."
6715 msgstr ""
6716
6717 #. type: textblock
6718 #: ../fish/guestfish-actions.pod:135
6719 msgid ""
6720 "Automatic detection of the format opens you up to a potential security hole "
6721 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6722 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6723 "you should think about replacing calls to this function with calls to L</add-"
6724 "drive-opts>, and specifying the format."
6725 msgstr ""
6726
6727 #. type: =head2
6728 #: ../fish/guestfish-actions.pod:142
6729 msgid "add-drive-opts"
6730 msgstr ""
6731
6732 #. type: =head2
6733 #: ../fish/guestfish-actions.pod:144
6734 msgid "add"
6735 msgstr ""
6736
6737 #. type: verbatim
6738 #: ../fish/guestfish-actions.pod:146
6739 #, no-wrap
6740 msgid ""
6741 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6742 "\n"
6743 msgstr ""
6744
6745 #. type: textblock
6746 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6747 msgid ""
6748 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6749 "The first time you call this function, the disk appears as C</dev/sda>, the "
6750 "second time as C</dev/sdb>, and so on."
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6755 msgid ""
6756 "You don't necessarily need to be root when using libguestfs.  However you "
6757 "obviously do need sufficient permissions to access the filename for whatever "
6758 "operations you want to perform (ie. read access if you just want to read the "
6759 "image or write access if you want to modify the image)."
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6764 msgid "This call checks that C<filename> exists."
6765 msgstr ""
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3392
6769 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5262
6770 msgid "The optional arguments are:"
6771 msgstr ""
6772
6773 #. type: =item
6774 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6775 msgid "C<readonly>"
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6780 msgid ""
6781 "If true then the image is treated as read-only.  Writes are still allowed, "
6782 "but they are stored in a temporary snapshot overlay which is discarded at "
6783 "the end.  The disk that you add is not modified."
6784 msgstr ""
6785
6786 #. type: =item
6787 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6788 msgid "C<format>"
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../fish/guestfish-actions.pod:173
6793 msgid ""
6794 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6795 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6796 "include C<raw> and C<qcow2>."
6797 msgstr ""
6798
6799 #. type: textblock
6800 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6801 msgid ""
6802 "Automatic detection of the format opens you up to a potential security hole "
6803 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6804 "RHBZ#642934.  Specifying the format closes this security hole."
6805 msgstr ""
6806
6807 #. type: =item
6808 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6809 msgid "C<iface>"
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:184
6814 msgid ""
6815 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6816 "add-drive-with-if> call (q.v.)"
6817 msgstr ""
6818
6819 #. type: =item
6820 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3242
6821 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4994
6822 msgid "C<name>"
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6827 msgid ""
6828 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6829 "a hint to the guest inspection process if it is available."
6830 msgstr ""
6831
6832 #. type: =head2
6833 #: ../fish/guestfish-actions.pod:196
6834 msgid "add-drive-ro"
6835 msgstr ""
6836
6837 #. type: =head2
6838 #: ../fish/guestfish-actions.pod:198
6839 msgid "add-ro"
6840 msgstr ""
6841
6842 #. type: verbatim
6843 #: ../fish/guestfish-actions.pod:200
6844 #, no-wrap
6845 msgid ""
6846 " add-drive-ro filename\n"
6847 "\n"
6848 msgstr ""
6849
6850 #. type: textblock
6851 #: ../fish/guestfish-actions.pod:202
6852 msgid ""
6853 "This function is the equivalent of calling L</add-drive-opts> with the "
6854 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6855 "is added read-only, with the format being detected automatically."
6856 msgstr ""
6857
6858 #. type: =head2
6859 #: ../fish/guestfish-actions.pod:207
6860 msgid "add-drive-ro-with-if"
6861 msgstr ""
6862
6863 #. type: verbatim
6864 #: ../fish/guestfish-actions.pod:209
6865 #, no-wrap
6866 msgid ""
6867 " add-drive-ro-with-if filename iface\n"
6868 "\n"
6869 msgstr ""
6870
6871 #. type: textblock
6872 #: ../fish/guestfish-actions.pod:211
6873 msgid ""
6874 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6875 "interface emulation to use at run time."
6876 msgstr ""
6877
6878 #. type: =head2
6879 #: ../fish/guestfish-actions.pod:221
6880 msgid "add-drive-with-if"
6881 msgstr ""
6882
6883 #. type: verbatim
6884 #: ../fish/guestfish-actions.pod:223
6885 #, no-wrap
6886 msgid ""
6887 " add-drive-with-if filename iface\n"
6888 "\n"
6889 msgstr ""
6890
6891 #. type: textblock
6892 #: ../fish/guestfish-actions.pod:225
6893 msgid ""
6894 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6895 "interface emulation to use at run time."
6896 msgstr ""
6897
6898 #. type: =head2
6899 #: ../fish/guestfish-actions.pod:235
6900 msgid "aug-clear"
6901 msgstr ""
6902
6903 #. type: verbatim
6904 #: ../fish/guestfish-actions.pod:237
6905 #, no-wrap
6906 msgid ""
6907 " aug-clear augpath\n"
6908 "\n"
6909 msgstr ""
6910
6911 #. type: textblock
6912 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6913 msgid ""
6914 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6915 "L<augtool(1)> C<clear> command."
6916 msgstr ""
6917
6918 #. type: =head2
6919 #: ../fish/guestfish-actions.pod:242
6920 msgid "aug-close"
6921 msgstr ""
6922
6923 #. type: verbatim
6924 #: ../fish/guestfish-actions.pod:244
6925 #, no-wrap
6926 msgid ""
6927 " aug-close\n"
6928 "\n"
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:246
6933 msgid ""
6934 "Close the current Augeas handle and free up any resources used by it.  After "
6935 "calling this, you have to call L</aug-init> again before you can use any "
6936 "other Augeas functions."
6937 msgstr ""
6938
6939 #. type: =head2
6940 #: ../fish/guestfish-actions.pod:251
6941 msgid "aug-defnode"
6942 msgstr ""
6943
6944 #. type: verbatim
6945 #: ../fish/guestfish-actions.pod:253
6946 #, no-wrap
6947 msgid ""
6948 " aug-defnode name expr val\n"
6949 "\n"
6950 msgstr ""
6951
6952 #. type: textblock
6953 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6954 msgid ""
6955 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6956 msgstr ""
6957
6958 #. type: textblock
6959 #: ../fish/guestfish-actions.pod:258
6960 msgid ""
6961 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6962 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6963 "containing that single node."
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6968 msgid ""
6969 "On success this returns a pair containing the number of nodes in the "
6970 "nodeset, and a boolean flag if a node was created."
6971 msgstr ""
6972
6973 #. type: =head2
6974 #: ../fish/guestfish-actions.pod:266
6975 msgid "aug-defvar"
6976 msgstr ""
6977
6978 #. type: verbatim
6979 #: ../fish/guestfish-actions.pod:268
6980 #, no-wrap
6981 msgid ""
6982 " aug-defvar name expr\n"
6983 "\n"
6984 msgstr ""
6985
6986 #. type: textblock
6987 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6988 msgid ""
6989 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6990 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6991 msgstr ""
6992
6993 #. type: textblock
6994 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6995 msgid ""
6996 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6997 "evaluates to something which is not a nodeset."
6998 msgstr ""
6999
7000 #. type: =head2
7001 #: ../fish/guestfish-actions.pod:277
7002 msgid "aug-get"
7003 msgstr ""
7004
7005 #. type: verbatim
7006 #: ../fish/guestfish-actions.pod:279
7007 #, no-wrap
7008 msgid ""
7009 " aug-get augpath\n"
7010 "\n"
7011 msgstr ""
7012
7013 #. type: textblock
7014 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7015 msgid ""
7016 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7017 "node, the C<value> is returned."
7018 msgstr ""
7019
7020 #. type: =head2
7021 #: ../fish/guestfish-actions.pod:284
7022 msgid "aug-init"
7023 msgstr ""
7024
7025 #. type: verbatim
7026 #: ../fish/guestfish-actions.pod:286
7027 #, no-wrap
7028 msgid ""
7029 " aug-init root flags\n"
7030 "\n"
7031 msgstr ""
7032
7033 #. type: textblock
7034 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7035 msgid ""
7036 "Create a new Augeas handle for editing configuration files.  If there was "
7037 "any previous Augeas handle associated with this guestfs session, then it is "
7038 "closed."
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:292
7043 msgid "You must call this before using any other L</aug-*> commands."
7044 msgstr ""
7045
7046 #. type: textblock
7047 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7048 msgid ""
7049 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7050 msgstr ""
7051
7052 #. type: textblock
7053 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7054 msgid ""
7055 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7056 "logical I<or> of the following integers:"
7057 msgstr ""
7058
7059 #. type: =item
7060 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7061 msgid "C<AUG_SAVE_BACKUP> = 1"
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7066 msgid "Keep the original file with a C<.augsave> extension."
7067 msgstr ""
7068
7069 #. type: =item
7070 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7071 msgid "C<AUG_SAVE_NEWFILE> = 2"
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7076 msgid ""
7077 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7078 "original.  Overrides C<AUG_SAVE_BACKUP>."
7079 msgstr ""
7080
7081 #. type: =item
7082 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7083 msgid "C<AUG_TYPE_CHECK> = 4"
7084 msgstr ""
7085
7086 #. type: textblock
7087 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7088 msgid "Typecheck lenses."
7089 msgstr ""
7090
7091 #. type: textblock
7092 #: ../fish/guestfish-actions.pod:317
7093 msgid ""
7094 "This option is only useful when debugging Augeas lenses.  Use of this option "
7095 "may require additional memory for the libguestfs appliance.  You may need to "
7096 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7097 msgstr ""
7098
7099 #. type: =item
7100 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7101 msgid "C<AUG_NO_STDINC> = 8"
7102 msgstr ""
7103
7104 #. type: textblock
7105 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7106 msgid "Do not use standard load path for modules."
7107 msgstr ""
7108
7109 #. type: =item
7110 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7111 msgid "C<AUG_SAVE_NOOP> = 16"
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7116 msgid "Make save a no-op, just record what would have been changed."
7117 msgstr ""
7118
7119 #. type: =item
7120 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7121 msgid "C<AUG_NO_LOAD> = 32"
7122 msgstr ""
7123
7124 #. type: textblock
7125 #: ../fish/guestfish-actions.pod:332
7126 msgid "Do not load the tree in L</aug-init>."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:336
7131 msgid "To close the handle, you can call L</aug-close>."
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7136 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7137 msgstr ""
7138
7139 #. type: =head2
7140 #: ../fish/guestfish-actions.pod:340
7141 msgid "aug-insert"
7142 msgstr ""
7143
7144 #. type: verbatim
7145 #: ../fish/guestfish-actions.pod:342
7146 #, no-wrap
7147 msgid ""
7148 " aug-insert augpath label true|false\n"
7149 "\n"
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7154 msgid ""
7155 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7156 "or after C<path> (depending on the boolean flag C<before>)."
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7161 msgid ""
7162 "C<path> must match exactly one existing node in the tree, and C<label> must "
7163 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7164 msgstr ""
7165
7166 #. type: =head2
7167 #: ../fish/guestfish-actions.pod:352
7168 msgid "aug-load"
7169 msgstr ""
7170
7171 #. type: verbatim
7172 #: ../fish/guestfish-actions.pod:354
7173 #, no-wrap
7174 msgid ""
7175 " aug-load\n"
7176 "\n"
7177 msgstr ""
7178
7179 #. type: textblock
7180 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7181 msgid "Load files into the tree."
7182 msgstr ""
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7186 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7187 msgstr ""
7188
7189 #. type: =head2
7190 #: ../fish/guestfish-actions.pod:361
7191 msgid "aug-ls"
7192 msgstr ""
7193
7194 #. type: verbatim
7195 #: ../fish/guestfish-actions.pod:363
7196 #, no-wrap
7197 msgid ""
7198 " aug-ls augpath\n"
7199 "\n"
7200 msgstr ""
7201
7202 #. type: textblock
7203 #: ../fish/guestfish-actions.pod:365
7204 msgid ""
7205 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7206 "resulting nodes into alphabetical order."
7207 msgstr ""
7208
7209 #. type: =head2
7210 #: ../fish/guestfish-actions.pod:368
7211 msgid "aug-match"
7212 msgstr ""
7213
7214 #. type: verbatim
7215 #: ../fish/guestfish-actions.pod:370
7216 #, no-wrap
7217 msgid ""
7218 " aug-match augpath\n"
7219 "\n"
7220 msgstr ""
7221
7222 #. type: textblock
7223 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7224 msgid ""
7225 "Returns a list of paths which match the path expression C<path>.  The "
7226 "returned paths are sufficiently qualified so that they match exactly one "
7227 "node in the current tree."
7228 msgstr ""
7229
7230 #. type: =head2
7231 #: ../fish/guestfish-actions.pod:376
7232 msgid "aug-mv"
7233 msgstr ""
7234
7235 #. type: verbatim
7236 #: ../fish/guestfish-actions.pod:378
7237 #, no-wrap
7238 msgid ""
7239 " aug-mv src dest\n"
7240 "\n"
7241 msgstr ""
7242
7243 #. type: textblock
7244 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7245 msgid ""
7246 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7247 "C<dest> is overwritten if it exists."
7248 msgstr ""
7249
7250 #. type: =head2
7251 #: ../fish/guestfish-actions.pod:383
7252 msgid "aug-rm"
7253 msgstr ""
7254
7255 #. type: verbatim
7256 #: ../fish/guestfish-actions.pod:385
7257 #, no-wrap
7258 msgid ""
7259 " aug-rm augpath\n"
7260 "\n"
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7265 msgid "Remove C<path> and all of its children."
7266 msgstr ""
7267
7268 #. type: textblock
7269 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7270 msgid "On success this returns the number of entries which were removed."
7271 msgstr ""
7272
7273 #. type: =head2
7274 #: ../fish/guestfish-actions.pod:391
7275 msgid "aug-save"
7276 msgstr ""
7277
7278 #. type: verbatim
7279 #: ../fish/guestfish-actions.pod:393
7280 #, no-wrap
7281 msgid ""
7282 " aug-save\n"
7283 "\n"
7284 msgstr ""
7285
7286 #. type: textblock
7287 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7288 msgid "This writes all pending changes to disk."
7289 msgstr ""
7290
7291 #. type: textblock
7292 #: ../fish/guestfish-actions.pod:397
7293 msgid ""
7294 "The flags which were passed to L</aug-init> affect exactly how files are "
7295 "saved."
7296 msgstr ""
7297
7298 #. type: =head2
7299 #: ../fish/guestfish-actions.pod:400
7300 msgid "aug-set"
7301 msgstr ""
7302
7303 #. type: verbatim
7304 #: ../fish/guestfish-actions.pod:402
7305 #, no-wrap
7306 msgid ""
7307 " aug-set augpath val\n"
7308 "\n"
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7313 msgid "Set the value associated with C<path> to C<val>."
7314 msgstr ""
7315
7316 #. type: textblock
7317 #: ../fish/guestfish-actions.pod:406
7318 msgid ""
7319 "In the Augeas API, it is possible to clear a node by setting the value to "
7320 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7321 "this call.  Instead you must use the L</aug-clear> call."
7322 msgstr ""
7323
7324 #. type: =head2
7325 #: ../fish/guestfish-actions.pod:411
7326 msgid "available"
7327 msgstr ""
7328
7329 #. type: verbatim
7330 #: ../fish/guestfish-actions.pod:413
7331 #, no-wrap
7332 msgid ""
7333 " available 'groups ...'\n"
7334 "\n"
7335 msgstr ""
7336
7337 #. type: textblock
7338 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7339 msgid ""
7340 "This command is used to check the availability of some groups of "
7341 "functionality in the appliance, which not all builds of the libguestfs "
7342 "appliance will be able to provide."
7343 msgstr ""
7344
7345 #. type: textblock
7346 #: ../fish/guestfish-actions.pod:419
7347 msgid ""
7348 "The libguestfs groups, and the functions that those groups correspond to, "
7349 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7350 "runtime by calling L</available-all-groups>."
7351 msgstr ""
7352
7353 #. type: textblock
7354 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7355 msgid ""
7356 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7357 "\"]> would check for the availability of the Linux inotify functions and "
7358 "Augeas (configuration file editing) functions."
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7363 msgid "The command returns no error if I<all> requested groups are available."
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7368 msgid ""
7369 "It fails with an error if one or more of the requested groups is unavailable "
7370 "in the appliance."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7375 msgid ""
7376 "If an unknown group name is included in the list of groups then an error is "
7377 "always returned."
7378 msgstr ""
7379
7380 #. type: textblock
7381 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7382 msgid "I<Notes:>"
7383 msgstr ""
7384
7385 #. type: textblock
7386 #: ../fish/guestfish-actions.pod:443
7387 msgid "You must call L</launch> before calling this function."
7388 msgstr ""
7389
7390 #. type: textblock
7391 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7392 msgid ""
7393 "The reason is because we don't know what groups are supported by the "
7394 "appliance/daemon until it is running and can be queried."
7395 msgstr ""
7396
7397 #. type: textblock
7398 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7399 msgid ""
7400 "If a group of functions is available, this does not necessarily mean that "
7401 "they will work.  You still have to check for errors when calling individual "
7402 "API functions even if they are available."
7403 msgstr ""
7404
7405 #. type: textblock
7406 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7407 msgid ""
7408 "It is usually the job of distro packagers to build complete functionality "
7409 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7410 "with all requirements satisfied, will support everything."
7411 msgstr ""
7412
7413 #. type: textblock
7414 #: ../fish/guestfish-actions.pod:465
7415 msgid ""
7416 "This call was added in version C<1.0.80>.  In previous versions of "
7417 "libguestfs all you could do would be to speculatively execute a command to "
7418 "find out if the daemon implemented it.  See also L</version>."
7419 msgstr ""
7420
7421 #. type: =head2
7422 #: ../fish/guestfish-actions.pod:472
7423 msgid "available-all-groups"
7424 msgstr ""
7425
7426 #. type: verbatim
7427 #: ../fish/guestfish-actions.pod:474
7428 #, no-wrap
7429 msgid ""
7430 " available-all-groups\n"
7431 "\n"
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:476
7436 msgid ""
7437 "This command returns a list of all optional groups that this daemon knows "
7438 "about.  Note this returns both supported and unsupported groups.  To find "
7439 "out which ones the daemon can actually support you have to call L</"
7440 "available> on each member of the returned list."
7441 msgstr ""
7442
7443 #. type: textblock
7444 #: ../fish/guestfish-actions.pod:482
7445 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7446 msgstr ""
7447
7448 #. type: =head2
7449 #: ../fish/guestfish-actions.pod:484
7450 msgid "base64-in"
7451 msgstr ""
7452
7453 #. type: verbatim
7454 #: ../fish/guestfish-actions.pod:486
7455 #, no-wrap
7456 msgid ""
7457 " base64-in (base64file|-) filename\n"
7458 "\n"
7459 msgstr ""
7460
7461 #. type: textblock
7462 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7463 msgid ""
7464 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7465 msgstr ""
7466
7467 #. type: textblock
7468 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7469 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
7470 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7471 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7472 #: ../fish/guestfish-actions.pod:4955 ../fish/guestfish-actions.pod:4967
7473 #: ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4989
7474 #: ../fish/guestfish-actions.pod:5120 ../fish/guestfish-actions.pod:5129
7475 #: ../fish/guestfish-actions.pod:5183 ../fish/guestfish-actions.pod:5206
7476 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7477 msgstr ""
7478
7479 #. type: =head2
7480 #: ../fish/guestfish-actions.pod:493
7481 msgid "base64-out"
7482 msgstr ""
7483
7484 #. type: verbatim
7485 #: ../fish/guestfish-actions.pod:495
7486 #, no-wrap
7487 msgid ""
7488 " base64-out filename (base64file|-)\n"
7489 "\n"
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7494 msgid ""
7495 "This command downloads the contents of C<filename>, writing it out to local "
7496 "file C<base64file> encoded as base64."
7497 msgstr ""
7498
7499 #. type: =head2
7500 #: ../fish/guestfish-actions.pod:502
7501 msgid "blockdev-flushbufs"
7502 msgstr ""
7503
7504 #. type: verbatim
7505 #: ../fish/guestfish-actions.pod:504
7506 #, no-wrap
7507 msgid ""
7508 " blockdev-flushbufs device\n"
7509 "\n"
7510 msgstr ""
7511
7512 #. type: textblock
7513 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7514 msgid ""
7515 "This tells the kernel to flush internal buffers associated with C<device>."
7516 msgstr ""
7517
7518 #. type: textblock
7519 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7520 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7521 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7522 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7523 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7524 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7525 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7526 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7527 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7528 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7529 msgid "This uses the L<blockdev(8)> command."
7530 msgstr ""
7531
7532 #. type: =head2
7533 #: ../fish/guestfish-actions.pod:511
7534 msgid "blockdev-getbsz"
7535 msgstr ""
7536
7537 #. type: verbatim
7538 #: ../fish/guestfish-actions.pod:513
7539 #, no-wrap
7540 msgid ""
7541 " blockdev-getbsz device\n"
7542 "\n"
7543 msgstr ""
7544
7545 #. type: textblock
7546 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7547 msgid "This returns the block size of a device."
7548 msgstr ""
7549
7550 #. type: textblock
7551 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7552 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7553 msgid ""
7554 "(Note this is different from both I<size in blocks> and I<filesystem block "
7555 "size>)."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../fish/guestfish-actions.pod:522
7560 msgid "blockdev-getro"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../fish/guestfish-actions.pod:524
7565 #, no-wrap
7566 msgid ""
7567 " blockdev-getro device\n"
7568 "\n"
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7573 msgid ""
7574 "Returns a boolean indicating if the block device is read-only (true if read-"
7575 "only, false if not)."
7576 msgstr ""
7577
7578 #. type: =head2
7579 #: ../fish/guestfish-actions.pod:531
7580 msgid "blockdev-getsize64"
7581 msgstr ""
7582
7583 #. type: verbatim
7584 #: ../fish/guestfish-actions.pod:533
7585 #, no-wrap
7586 msgid ""
7587 " blockdev-getsize64 device\n"
7588 "\n"
7589 msgstr ""
7590
7591 #. type: textblock
7592 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7593 msgid "This returns the size of the device in bytes."
7594 msgstr ""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:537
7598 msgid "See also L</blockdev-getsz>."
7599 msgstr ""
7600
7601 #. type: =head2
7602 #: ../fish/guestfish-actions.pod:541
7603 msgid "blockdev-getss"
7604 msgstr ""
7605
7606 #. type: verbatim
7607 #: ../fish/guestfish-actions.pod:543
7608 #, no-wrap
7609 msgid ""
7610 " blockdev-getss device\n"
7611 "\n"
7612 msgstr ""
7613
7614 #. type: textblock
7615 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7616 msgid ""
7617 "This returns the size of sectors on a block device.  Usually 512, but can be "
7618 "larger for modern devices."
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:548
7623 msgid ""
7624 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7625 msgstr ""
7626
7627 #. type: =head2
7628 #: ../fish/guestfish-actions.pod:553
7629 msgid "blockdev-getsz"
7630 msgstr ""
7631
7632 #. type: verbatim
7633 #: ../fish/guestfish-actions.pod:555
7634 #, no-wrap
7635 msgid ""
7636 " blockdev-getsz device\n"
7637 "\n"
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7642 msgid ""
7643 "This returns the size of the device in units of 512-byte sectors (even if "
7644 "the sectorsize isn't 512 bytes ... weird)."
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:560
7649 msgid ""
7650 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7651 "blockdev-getsize64> for the more useful I<size in bytes>."
7652 msgstr ""
7653
7654 #. type: =head2
7655 #: ../fish/guestfish-actions.pod:566
7656 msgid "blockdev-rereadpt"
7657 msgstr ""
7658
7659 #. type: verbatim
7660 #: ../fish/guestfish-actions.pod:568
7661 #, no-wrap
7662 msgid ""
7663 " blockdev-rereadpt device\n"
7664 "\n"
7665 msgstr ""
7666
7667 #. type: textblock
7668 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7669 msgid "Reread the partition table on C<device>."
7670 msgstr ""
7671
7672 #. type: =head2
7673 #: ../fish/guestfish-actions.pod:574
7674 msgid "blockdev-setbsz"
7675 msgstr ""
7676
7677 #. type: verbatim
7678 #: ../fish/guestfish-actions.pod:576
7679 #, no-wrap
7680 msgid ""
7681 " blockdev-setbsz device blocksize\n"
7682 "\n"
7683 msgstr ""
7684
7685 #. type: textblock
7686 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7687 msgid "This sets the block size of a device."
7688 msgstr ""
7689
7690 #. type: =head2
7691 #: ../fish/guestfish-actions.pod:585
7692 msgid "blockdev-setro"
7693 msgstr ""
7694
7695 #. type: verbatim
7696 #: ../fish/guestfish-actions.pod:587
7697 #, no-wrap
7698 msgid ""
7699 " blockdev-setro device\n"
7700 "\n"
7701 msgstr ""
7702
7703 #. type: textblock
7704 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7705 msgid "Sets the block device named C<device> to read-only."
7706 msgstr ""
7707
7708 #. type: =head2
7709 #: ../fish/guestfish-actions.pod:593
7710 msgid "blockdev-setrw"
7711 msgstr ""
7712
7713 #. type: verbatim
7714 #: ../fish/guestfish-actions.pod:595
7715 #, no-wrap
7716 msgid ""
7717 " blockdev-setrw device\n"
7718 "\n"
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7723 msgid "Sets the block device named C<device> to read-write."
7724 msgstr ""
7725
7726 #. type: =head2
7727 #: ../fish/guestfish-actions.pod:601
7728 msgid "btrfs-filesystem-resize"
7729 msgstr ""
7730
7731 #. type: verbatim
7732 #: ../fish/guestfish-actions.pod:603
7733 #, no-wrap
7734 msgid ""
7735 " btrfs-filesystem-resize mountpoint [size:N]\n"
7736 "\n"
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7741 msgid "This command resizes a btrfs filesystem."
7742 msgstr ""
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7746 msgid ""
7747 "Note that unlike other resize calls, the filesystem has to be mounted and "
7748 "the parameter is the mountpoint not the device (this is a requirement of "
7749 "btrfs itself)."
7750 msgstr ""
7751
7752 #. type: textblock
7753 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3164
7754 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:5029
7755 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4890
7756 #: ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:7762
7757 msgid "The optional parameters are:"
7758 msgstr ""
7759
7760 #. type: =item
7761 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3707
7762 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5790
7763 msgid "C<size>"
7764 msgstr ""
7765
7766 #. type: textblock
7767 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7768 msgid ""
7769 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7770 "resized to the maximum size."
7771 msgstr ""
7772
7773 #. type: textblock
7774 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7775 msgid "See also L<btrfs(8)>."
7776 msgstr ""
7777
7778 #. type: =head2
7779 #: ../fish/guestfish-actions.pod:626
7780 msgid "case-sensitive-path"
7781 msgstr ""
7782
7783 #. type: verbatim
7784 #: ../fish/guestfish-actions.pod:628
7785 #, no-wrap
7786 msgid ""
7787 " case-sensitive-path path\n"
7788 "\n"
7789 msgstr ""
7790
7791 #. type: textblock
7792 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7793 msgid ""
7794 "This can be used to resolve case insensitive paths on a filesystem which is "
7795 "case sensitive.  The use case is to resolve paths which you have read from "
7796 "Windows configuration files or the Windows Registry, to the true path."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7801 msgid ""
7802 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7803 "(and probably others), which is that although the underlying filesystem is "
7804 "case-insensitive, the driver exports the filesystem to Linux as case-"
7805 "sensitive."
7806 msgstr ""
7807
7808 #. type: textblock
7809 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7810 msgid ""
7811 "One consequence of this is that special directories such as C<c:\\windows> "
7812 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7813 "precise details of how they were created.  In Windows itself this would not "
7814 "be a problem."
7815 msgstr ""
7816
7817 #. type: textblock
7818 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7819 msgid ""
7820 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7821 "#posixfilenames1>"
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7826 msgid ""
7827 "This function resolves the true case of each element in the path and returns "
7828 "the case-sensitive path."
7829 msgstr ""
7830
7831 #. type: textblock
7832 #: ../fish/guestfish-actions.pod:652
7833 msgid ""
7834 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7835 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7836 "the directories were originally created under Windows)."
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7841 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7842 msgstr ""
7843
7844 #. type: textblock
7845 #: ../fish/guestfish-actions.pod:660
7846 msgid "See also L</realpath>."
7847 msgstr ""
7848
7849 #. type: =head2
7850 #: ../fish/guestfish-actions.pod:662
7851 msgid "cat"
7852 msgstr ""
7853
7854 #. type: verbatim
7855 #: ../fish/guestfish-actions.pod:664
7856 #, no-wrap
7857 msgid ""
7858 " cat path\n"
7859 "\n"
7860 msgstr ""
7861
7862 #. type: textblock
7863 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4134
7864 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6446
7865 msgid "Return the contents of the file named C<path>."
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:668
7870 msgid ""
7871 "Note that this function cannot correctly handle binary files (specifically, "
7872 "files containing C<\\0> character which is treated as end of string).  For "
7873 "those you need to use the L</read-file> or L</download> functions which have "
7874 "a more complex interface."
7875 msgstr ""
7876
7877 #. type: textblock
7878 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7879 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7880 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7881 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7882 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7883 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7884 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7885 #: ../fish/guestfish-actions.pod:4004 ../fish/guestfish-actions.pod:4019
7886 #: ../fish/guestfish-actions.pod:4095 ../fish/guestfish-actions.pod:4112
7887 #: ../fish/guestfish-actions.pod:4127 ../fish/guestfish-actions.pod:4796
7888 #: ../fish/guestfish-actions.pod:4842 ../fish/guestfish-actions.pod:4927
7889 #: ../fish/guestfish-actions.pod:4942 ../fish/guestfish-actions.pod:5427
7890 #: ../fish/guestfish-actions.pod:5439 ../fish/guestfish-actions.pod:5457
7891 #: ../fish/guestfish-actions.pod:5474 ../fish/guestfish-actions.pod:5484
7892 #: ../fish/guestfish-actions.pod:5538 ../fish/guestfish-actions.pod:5548
7893 #: ../fish/guestfish-actions.pod:5577 ../fish/guestfish-actions.pod:5587
7894 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7895 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7896 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7897 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7898 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7899 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7900 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7901 #: ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6254
7902 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6411
7903 #: ../src/guestfs-actions.pod:6435 ../src/guestfs-actions.pod:7390
7904 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7591
7905 #: ../src/guestfs-actions.pod:7615 ../src/guestfs-actions.pod:8400
7906 #: ../src/guestfs-actions.pod:8420 ../src/guestfs-actions.pod:8453
7907 #: ../src/guestfs-actions.pod:8472 ../src/guestfs-actions.pod:8491
7908 #: ../src/guestfs-actions.pod:8582 ../src/guestfs-actions.pod:8601
7909 #: ../src/guestfs-actions.pod:8647 ../src/guestfs-actions.pod:8666
7910 msgid ""
7911 "Because of the message protocol, there is a transfer limit of somewhere "
7912 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7913 msgstr ""
7914
7915 #. type: =head2
7916 #: ../fish/guestfish-actions.pod:676
7917 msgid "checksum"
7918 msgstr ""
7919
7920 #. type: verbatim
7921 #: ../fish/guestfish-actions.pod:678
7922 #, no-wrap
7923 msgid ""
7924 " checksum csumtype path\n"
7925 "\n"
7926 msgstr ""
7927
7928 #. type: textblock
7929 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7930 msgid ""
7931 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7932 msgstr ""
7933
7934 #. type: textblock
7935 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7936 msgid ""
7937 "The type of checksum to compute is given by the C<csumtype> parameter which "
7938 "must have one of the following values:"
7939 msgstr ""
7940
7941 #. type: =item
7942 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7943 msgid "C<crc>"
7944 msgstr ""
7945
7946 #. type: textblock
7947 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7948 msgid ""
7949 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7950 "C<cksum> command."
7951 msgstr ""
7952
7953 #. type: =item
7954 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7955 msgid "C<md5>"
7956 msgstr ""
7957
7958 #. type: textblock
7959 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7960 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7961 msgstr ""
7962
7963 #. type: =item
7964 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7965 msgid "C<sha1>"
7966 msgstr ""
7967
7968 #. type: textblock
7969 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7970 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7971 msgstr ""
7972
7973 #. type: =item
7974 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7975 msgid "C<sha224>"
7976 msgstr ""
7977
7978 #. type: textblock
7979 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7980 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7981 msgstr ""
7982
7983 #. type: =item
7984 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7985 msgid "C<sha256>"
7986 msgstr ""
7987
7988 #. type: textblock
7989 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7990 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7991 msgstr ""
7992
7993 #. type: =item
7994 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7995 msgid "C<sha384>"
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8000 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8001 msgstr ""
8002
8003 #. type: =item
8004 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8005 msgid "C<sha512>"
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8010 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8015 msgid "The checksum is returned as a printable string."
8016 msgstr ""
8017
8018 #. type: textblock
8019 #: ../fish/guestfish-actions.pod:721
8020 msgid "To get the checksum for a device, use L</checksum-device>."
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:723
8025 msgid "To get the checksums for many files, use L</checksums-out>."
8026 msgstr ""
8027
8028 #. type: =head2
8029 #: ../fish/guestfish-actions.pod:725
8030 msgid "checksum-device"
8031 msgstr ""
8032
8033 #. type: verbatim
8034 #: ../fish/guestfish-actions.pod:727
8035 #, no-wrap
8036 msgid ""
8037 " checksum-device csumtype device\n"
8038 "\n"
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:729
8043 msgid ""
8044 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8045 "device named C<device>.  For the types of checksums supported see the L</"
8046 "checksum> command."
8047 msgstr ""
8048
8049 #. type: =head2
8050 #: ../fish/guestfish-actions.pod:733
8051 msgid "checksums-out"
8052 msgstr ""
8053
8054 #. type: verbatim
8055 #: ../fish/guestfish-actions.pod:735
8056 #, no-wrap
8057 msgid ""
8058 " checksums-out csumtype directory (sumsfile|-)\n"
8059 "\n"
8060 msgstr ""
8061
8062 #. type: textblock
8063 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8064 msgid ""
8065 "This command computes the checksums of all regular files in C<directory> and "
8066 "then emits a list of those checksums to the local output file C<sumsfile>."
8067 msgstr ""
8068
8069 #. type: textblock
8070 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8071 msgid ""
8072 "This can be used for verifying the integrity of a virtual machine.  However "
8073 "to be properly secure you should pay attention to the output of the checksum "
8074 "command (it uses the ones from GNU coreutils).  In particular when the "
8075 "filename is not printable, coreutils uses a special backslash syntax.  For "
8076 "more information, see the GNU coreutils info file."
8077 msgstr ""
8078
8079 #. type: =head2
8080 #: ../fish/guestfish-actions.pod:751
8081 msgid "chmod"
8082 msgstr ""
8083
8084 #. type: verbatim
8085 #: ../fish/guestfish-actions.pod:753
8086 #, no-wrap
8087 msgid ""
8088 " chmod mode path\n"
8089 "\n"
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8094 msgid ""
8095 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8096 "supported."
8097 msgstr ""
8098
8099 #. type: textblock
8100 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8101 msgid ""
8102 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8103 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8104 "C<700>."
8105 msgstr ""
8106
8107 #. type: textblock
8108 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3356
8109 #: ../fish/guestfish-actions.pod:3495 ../fish/guestfish-actions.pod:3505
8110 #: ../fish/guestfish-actions.pod:3515 ../src/guestfs-actions.pod:1117
8111 #: ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5402
8112 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
8113 msgid "The mode actually set is affected by the umask."
8114 msgstr ""
8115
8116 #. type: =head2
8117 #: ../fish/guestfish-actions.pod:764
8118 msgid "chown"
8119 msgstr ""
8120
8121 #. type: verbatim
8122 #: ../fish/guestfish-actions.pod:766
8123 #, no-wrap
8124 msgid ""
8125 " chown owner group path\n"
8126 "\n"
8127 msgstr ""
8128
8129 #. type: textblock
8130 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8131 msgid "Change the file owner to C<owner> and group to C<group>."
8132 msgstr ""
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
8136 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
8137 msgid ""
8138 "Only numeric uid and gid are supported.  If you want to use names, you will "
8139 "need to locate and parse the password file yourself (Augeas support makes "
8140 "this relatively easy)."
8141 msgstr ""
8142
8143 #. type: =head2
8144 #: ../fish/guestfish-actions.pod:774
8145 msgid "command"
8146 msgstr ""
8147
8148 #. type: verbatim
8149 #: ../fish/guestfish-actions.pod:776
8150 #, no-wrap
8151 msgid ""
8152 " command 'arguments ...'\n"
8153 "\n"
8154 msgstr ""
8155
8156 #. type: textblock
8157 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8158 msgid ""
8159 "This call runs a command from the guest filesystem.  The filesystem must be "
8160 "mounted, and must contain a compatible operating system (ie. something "
8161 "Linux, with the same or compatible processor architecture)."
8162 msgstr ""
8163
8164 #. type: textblock
8165 #: ../fish/guestfish-actions.pod:783
8166 msgid ""
8167 "The single parameter is an argv-style list of arguments.  The first element "
8168 "is the name of the program to run.  Subsequent elements are parameters.  The "
8169 "list must be non-empty (ie. must contain a program name).  Note that the "
8170 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8175 msgid "The return value is anything printed to I<stdout> by the command."
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8180 msgid ""
8181 "If the command returns a non-zero exit status, then this function returns an "
8182 "error message.  The error message string is the content of I<stderr> from "
8183 "the command."
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8188 msgid ""
8189 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8190 "bin>.  If you require a program from another location, you should provide "
8191 "the full path in the first parameter."
8192 msgstr ""
8193
8194 #. type: textblock
8195 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8196 msgid ""
8197 "Shared libraries and data files required by the program must be available on "
8198 "filesystems which are mounted in the correct places.  It is the caller's "
8199 "responsibility to ensure all filesystems that are needed are mounted at the "
8200 "right locations."
8201 msgstr ""
8202
8203 #. type: =head2
8204 #: ../fish/guestfish-actions.pod:811
8205 msgid "command-lines"
8206 msgstr ""
8207
8208 #. type: verbatim
8209 #: ../fish/guestfish-actions.pod:813
8210 #, no-wrap
8211 msgid ""
8212 " command-lines 'arguments ...'\n"
8213 "\n"
8214 msgstr ""
8215
8216 #. type: textblock
8217 #: ../fish/guestfish-actions.pod:815
8218 msgid ""
8219 "This is the same as L</command>, but splits the result into a list of lines."
8220 msgstr ""
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:818
8224 msgid "See also: L</sh-lines>"
8225 msgstr ""
8226
8227 #. type: =head2
8228 #: ../fish/guestfish-actions.pod:823
8229 msgid "compress-device-out"
8230 msgstr ""
8231
8232 #. type: verbatim
8233 #: ../fish/guestfish-actions.pod:825
8234 #, no-wrap
8235 msgid ""
8236 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8237 "\n"
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8242 msgid ""
8243 "This command compresses C<device> and writes it out to the local file "
8244 "C<zdevice>."
8245 msgstr ""
8246
8247 #. type: textblock
8248 #: ../fish/guestfish-actions.pod:830
8249 msgid ""
8250 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8251 "compress-out>."
8252 msgstr ""
8253
8254 #. type: =head2
8255 #: ../fish/guestfish-actions.pod:837
8256 msgid "compress-out"
8257 msgstr ""
8258
8259 #. type: verbatim
8260 #: ../fish/guestfish-actions.pod:839
8261 #, no-wrap
8262 msgid ""
8263 " compress-out ctype file (zfile|-) [level:N]\n"
8264 "\n"
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8269 msgid ""
8270 "This command compresses C<file> and writes it out to the local file C<zfile>."
8271 msgstr ""
8272
8273 #. type: textblock
8274 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8275 msgid ""
8276 "The compression program used is controlled by the C<ctype> parameter.  "
8277 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8278 "Some compression types may not be supported by particular builds of "
8279 "libguestfs, in which case you will get an error containing the substring "
8280 "\"not supported\"."
8281 msgstr ""
8282
8283 #. type: textblock
8284 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8285 msgid ""
8286 "The optional C<level> parameter controls compression level.  The meaning and "
8287 "default for this parameter depends on the compression program being used."
8288 msgstr ""
8289
8290 #. type: =head2
8291 #: ../fish/guestfish-actions.pod:858
8292 msgid "config"
8293 msgstr ""
8294
8295 #. type: verbatim
8296 #: ../fish/guestfish-actions.pod:860
8297 #, no-wrap
8298 msgid ""
8299 " config qemuparam qemuvalue\n"
8300 "\n"
8301 msgstr ""
8302
8303 #. type: textblock
8304 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8305 msgid ""
8306 "This can be used to add arbitrary qemu command line parameters of the form "
8307 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8308 "setting some parameters which would interfere with parameters that we use."
8309 msgstr ""
8310
8311 #. type: textblock
8312 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8313 msgid "The first character of C<param> string must be a C<-> (dash)."
8314 msgstr ""
8315
8316 #. type: textblock
8317 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8318 msgid "C<value> can be NULL."
8319 msgstr ""
8320
8321 #. type: =head2
8322 #: ../fish/guestfish-actions.pod:871
8323 msgid "copy-device-to-device"
8324 msgstr ""
8325
8326 #. type: verbatim
8327 #: ../fish/guestfish-actions.pod:873
8328 #, no-wrap
8329 msgid ""
8330 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8331 "\n"
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:875
8336 msgid ""
8337 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8338 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8339 "(device|file) to a destination (device|file)."
8340 msgstr ""
8341
8342 #. type: textblock
8343 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8344 msgid ""
8345 "Partial copies can be made since you can specify optionally the source "
8346 "offset, destination offset and size to copy.  These values are all specified "
8347 "in bytes.  If not given, the offsets both default to zero, and the size "
8348 "defaults to copying as much as possible until we hit the end of the source."
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8353 msgid ""
8354 "The source and destination may be the same object.  However overlapping "
8355 "regions may not be copied correctly."
8356 msgstr ""
8357
8358 #. type: textblock
8359 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8360 msgid ""
8361 "If the destination is a file, it is created if required.  If the destination "
8362 "file is not large enough, it is extended."
8363 msgstr ""
8364
8365 #. type: =head2
8366 #: ../fish/guestfish-actions.pod:896
8367 msgid "copy-device-to-file"
8368 msgstr ""
8369
8370 #. type: verbatim
8371 #: ../fish/guestfish-actions.pod:898
8372 #, no-wrap
8373 msgid ""
8374 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8375 "\n"
8376 msgstr ""
8377
8378 #. type: textblock
8379 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8380 #: ../fish/guestfish-actions.pod:918
8381 msgid "See L</copy-device-to-device> for a general overview of this call."
8382 msgstr ""
8383
8384 #. type: =head2
8385 #: ../fish/guestfish-actions.pod:905
8386 msgid "copy-file-to-device"
8387 msgstr ""
8388
8389 #. type: verbatim
8390 #: ../fish/guestfish-actions.pod:907
8391 #, no-wrap
8392 msgid ""
8393 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8394 "\n"
8395 msgstr ""
8396
8397 #. type: =head2
8398 #: ../fish/guestfish-actions.pod:914
8399 msgid "copy-file-to-file"
8400 msgstr ""
8401
8402 #. type: verbatim
8403 #: ../fish/guestfish-actions.pod:916
8404 #, no-wrap
8405 msgid ""
8406 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8407 "\n"
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../fish/guestfish-actions.pod:921
8412 msgid ""
8413 "This is B<not> the function you want for copying files.  This is for copying "
8414 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8415 "file copying and moving functions."
8416 msgstr ""
8417
8418 #. type: =head2
8419 #: ../fish/guestfish-actions.pod:928
8420 msgid "copy-size"
8421 msgstr ""
8422
8423 #. type: verbatim
8424 #: ../fish/guestfish-actions.pod:930
8425 #, no-wrap
8426 msgid ""
8427 " copy-size src dest size\n"
8428 "\n"
8429 msgstr ""
8430
8431 #. type: textblock
8432 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8433 msgid ""
8434 "This command copies exactly C<size> bytes from one source device or file "
8435 "C<src> to another destination device or file C<dest>."
8436 msgstr ""
8437
8438 #. type: textblock
8439 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8440 msgid ""
8441 "Note this will fail if the source is too short or if the destination is not "
8442 "large enough."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8447 msgid ""
8448 "I<This function is deprecated.> In new code, use the L</"
8449 "copy_device_to_device> call instead."
8450 msgstr ""
8451
8452 #. type: =head2
8453 #: ../fish/guestfish-actions.pod:945
8454 msgid "cp"
8455 msgstr ""
8456
8457 #. type: verbatim
8458 #: ../fish/guestfish-actions.pod:947
8459 #, no-wrap
8460 msgid ""
8461 " cp src dest\n"
8462 "\n"
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8467 msgid ""
8468 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8469 "destination filename or destination directory."
8470 msgstr ""
8471
8472 #. type: =head2
8473 #: ../fish/guestfish-actions.pod:952
8474 msgid "cp-a"
8475 msgstr ""
8476
8477 #. type: verbatim
8478 #: ../fish/guestfish-actions.pod:954
8479 #, no-wrap
8480 msgid ""
8481 " cp-a src dest\n"
8482 "\n"
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8487 msgid ""
8488 "This copies a file or directory from C<src> to C<dest> recursively using the "
8489 "C<cp -a> command."
8490 msgstr ""
8491
8492 #. type: =head2
8493 #: ../fish/guestfish-actions.pod:959
8494 msgid "dd"
8495 msgstr ""
8496
8497 #. type: verbatim
8498 #: ../fish/guestfish-actions.pod:961
8499 #, no-wrap
8500 msgid ""
8501 " dd src dest\n"
8502 "\n"
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8507 msgid ""
8508 "This command copies from one source device or file C<src> to another "
8509 "destination device or file C<dest>.  Normally you would use this to copy to "
8510 "or from a device or partition, for example to duplicate a filesystem."
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:968
8515 msgid ""
8516 "If the destination is a device, it must be as large or larger than the "
8517 "source file or device, otherwise the copy will fail.  This command cannot do "
8518 "partial copies (see L</copy-device-to-device>)."
8519 msgstr ""
8520
8521 #. type: =head2
8522 #: ../fish/guestfish-actions.pod:980
8523 msgid "df"
8524 msgstr ""
8525
8526 #. type: verbatim
8527 #: ../fish/guestfish-actions.pod:982
8528 #, no-wrap
8529 msgid ""
8530 " df\n"
8531 "\n"
8532 msgstr ""
8533
8534 #. type: textblock
8535 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8536 msgid "This command runs the C<df> command to report disk space used."
8537 msgstr ""
8538
8539 #. type: textblock
8540 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8541 msgid ""
8542 "This command is mostly useful for interactive sessions.  It is I<not> "
8543 "intended that you try to parse the output string.  Use L</statvfs> from "
8544 "programs."
8545 msgstr ""
8546
8547 #. type: =head2
8548 #: ../fish/guestfish-actions.pod:990
8549 msgid "df-h"
8550 msgstr ""
8551
8552 #. type: verbatim
8553 #: ../fish/guestfish-actions.pod:992
8554 #, no-wrap
8555 msgid ""
8556 " df-h\n"
8557 "\n"
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8562 msgid ""
8563 "This command runs the C<df -h> command to report disk space used in human-"
8564 "readable format."
8565 msgstr ""
8566
8567 #. type: =head2
8568 #: ../fish/guestfish-actions.pod:1001
8569 msgid "dmesg"
8570 msgstr ""
8571
8572 #. type: verbatim
8573 #: ../fish/guestfish-actions.pod:1003
8574 #, no-wrap
8575 msgid ""
8576 " dmesg\n"
8577 "\n"
8578 msgstr ""
8579
8580 #. type: textblock
8581 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8582 msgid ""
8583 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8584 "This is sometimes useful for extended debugging of problems."
8585 msgstr ""
8586
8587 #. type: textblock
8588 #: ../fish/guestfish-actions.pod:1009
8589 msgid ""
8590 "Another way to get the same information is to enable verbose messages with "
8591 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8592 "before running the program."
8593 msgstr ""
8594
8595 #. type: =head2
8596 #: ../fish/guestfish-actions.pod:1014
8597 msgid "download"
8598 msgstr ""
8599
8600 #. type: verbatim
8601 #: ../fish/guestfish-actions.pod:1016
8602 #, no-wrap
8603 msgid ""
8604 " download remotefilename (filename|-)\n"
8605 "\n"
8606 msgstr ""
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8610 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8611 msgid ""
8612 "Download file C<remotefilename> and save it as C<filename> on the local "
8613 "machine."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5179
8618 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7970
8619 msgid "C<filename> can also be a named pipe."
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../fish/guestfish-actions.pod:1023
8624 msgid "See also L</upload>, L</cat>."
8625 msgstr ""
8626
8627 #. type: =head2
8628 #: ../fish/guestfish-actions.pod:1027
8629 msgid "download-offset"
8630 msgstr ""
8631
8632 #. type: verbatim
8633 #: ../fish/guestfish-actions.pod:1029
8634 #, no-wrap
8635 msgid ""
8636 " download-offset remotefilename (filename|-) offset size\n"
8637 "\n"
8638 msgstr ""
8639
8640 #. type: textblock
8641 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8642 msgid ""
8643 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8644 "region must be within the file or device)."
8645 msgstr ""
8646
8647 #. type: textblock
8648 #: ../fish/guestfish-actions.pod:1037
8649 msgid ""
8650 "Note that there is no limit on the amount of data that can be downloaded "
8651 "with this call, unlike with L</pread>, and this call always reads the full "
8652 "amount unless an error occurs."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:1042
8657 msgid "See also L</download>, L</pread>."
8658 msgstr ""
8659
8660 #. type: =head2
8661 #: ../fish/guestfish-actions.pod:1046
8662 msgid "drop-caches"
8663 msgstr ""
8664
8665 #. type: verbatim
8666 #: ../fish/guestfish-actions.pod:1048
8667 #, no-wrap
8668 msgid ""
8669 " drop-caches whattodrop\n"
8670 "\n"
8671 msgstr ""
8672
8673 #. type: textblock
8674 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8675 msgid ""
8676 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8677 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8678 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8679 msgstr ""
8680
8681 #. type: textblock
8682 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8683 msgid "Setting C<whattodrop> to 3 should drop everything."
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8688 msgid ""
8689 "This automatically calls L<sync(2)> before the operation, so that the "
8690 "maximum guest memory is freed."
8691 msgstr ""
8692
8693 #. type: =head2
8694 #: ../fish/guestfish-actions.pod:1060
8695 msgid "du"
8696 msgstr ""
8697
8698 #. type: verbatim
8699 #: ../fish/guestfish-actions.pod:1062
8700 #, no-wrap
8701 msgid ""
8702 " du path\n"
8703 "\n"
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8708 msgid ""
8709 "This command runs the C<du -s> command to estimate file space usage for "
8710 "C<path>."
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8715 msgid ""
8716 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8717 "estimate includes the contents of the directory and all subdirectories "
8718 "(recursively)."
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8723 msgid ""
8724 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8725 msgstr ""
8726
8727 #. type: =head2
8728 #: ../fish/guestfish-actions.pod:1074
8729 msgid "e2fsck-f"
8730 msgstr ""
8731
8732 #. type: verbatim
8733 #: ../fish/guestfish-actions.pod:1076
8734 #, no-wrap
8735 msgid ""
8736 " e2fsck-f device\n"
8737 "\n"
8738 msgstr ""
8739
8740 #. type: textblock
8741 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8742 msgid ""
8743 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8744 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8745 "clean (I<-f>)."
8746 msgstr ""
8747
8748 #. type: textblock
8749 #: ../fish/guestfish-actions.pod:1082
8750 msgid ""
8751 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8752 "should use L</fsck>."
8753 msgstr ""
8754
8755 #. type: =head2
8756 #: ../fish/guestfish-actions.pod:1085
8757 msgid "echo-daemon"
8758 msgstr ""
8759
8760 #. type: verbatim
8761 #: ../fish/guestfish-actions.pod:1087
8762 #, no-wrap
8763 msgid ""
8764 " echo-daemon 'words ...'\n"
8765 "\n"
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8770 msgid ""
8771 "This command concatenates the list of C<words> passed with single spaces "
8772 "between them and returns the resulting string."
8773 msgstr ""
8774
8775 #. type: textblock
8776 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8777 msgid "You can use this command to test the connection through to the daemon."
8778 msgstr ""
8779
8780 #. type: textblock
8781 #: ../fish/guestfish-actions.pod:1094
8782 msgid "See also L</ping-daemon>."
8783 msgstr ""
8784
8785 #. type: =head2
8786 #: ../fish/guestfish-actions.pod:1096
8787 msgid "egrep"
8788 msgstr ""
8789
8790 #. type: verbatim
8791 #: ../fish/guestfish-actions.pod:1098
8792 #, no-wrap
8793 msgid ""
8794 " egrep regex path\n"
8795 "\n"
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8800 msgid ""
8801 "This calls the external C<egrep> program and returns the matching lines."
8802 msgstr ""
8803
8804 #. type: =head2
8805 #: ../fish/guestfish-actions.pod:1106
8806 msgid "egrepi"
8807 msgstr ""
8808
8809 #. type: verbatim
8810 #: ../fish/guestfish-actions.pod:1108
8811 #, no-wrap
8812 msgid ""
8813 " egrepi regex path\n"
8814 "\n"
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8819 msgid ""
8820 "This calls the external C<egrep -i> program and returns the matching lines."
8821 msgstr ""
8822
8823 #. type: =head2
8824 #: ../fish/guestfish-actions.pod:1116
8825 msgid "equal"
8826 msgstr ""
8827
8828 #. type: verbatim
8829 #: ../fish/guestfish-actions.pod:1118
8830 #, no-wrap
8831 msgid ""
8832 " equal file1 file2\n"
8833 "\n"
8834 msgstr ""
8835
8836 #. type: textblock
8837 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8838 msgid ""
8839 "This compares the two files C<file1> and C<file2> and returns true if their "
8840 "content is exactly equal, or false otherwise."
8841 msgstr ""
8842
8843 #. type: textblock
8844 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8845 msgid "The external L<cmp(1)> program is used for the comparison."
8846 msgstr ""
8847
8848 #. type: =head2
8849 #: ../fish/guestfish-actions.pod:1125
8850 msgid "exists"
8851 msgstr ""
8852
8853 #. type: verbatim
8854 #: ../fish/guestfish-actions.pod:1127
8855 #, no-wrap
8856 msgid ""
8857 " exists path\n"
8858 "\n"
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8863 msgid ""
8864 "This returns C<true> if and only if there is a file, directory (or anything) "
8865 "with the given C<path> name."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1132
8870 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8871 msgstr ""
8872
8873 #. type: =head2
8874 #: ../fish/guestfish-actions.pod:1134
8875 msgid "fallocate"
8876 msgstr ""
8877
8878 #. type: verbatim
8879 #: ../fish/guestfish-actions.pod:1136
8880 #, no-wrap
8881 msgid ""
8882 " fallocate path len\n"
8883 "\n"
8884 msgstr ""
8885
8886 #. type: textblock
8887 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8888 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8889 msgid ""
8890 "This command preallocates a file (containing zero bytes) named C<path> of "
8891 "size C<len> bytes.  If the file exists already, it is overwritten."
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8896 msgid ""
8897 "Do not confuse this with the guestfish-specific C<alloc> command which "
8898 "allocates a file in the host and attaches it as a device."
8899 msgstr ""
8900
8901 #. type: textblock
8902 #: ../fish/guestfish-actions.pod:1146
8903 msgid ""
8904 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8905 "instead."
8906 msgstr ""
8907
8908 #. type: =head2
8909 #: ../fish/guestfish-actions.pod:1153
8910 msgid "fallocate64"
8911 msgstr ""
8912
8913 #. type: verbatim
8914 #: ../fish/guestfish-actions.pod:1155
8915 #, no-wrap
8916 msgid ""
8917 " fallocate64 path len\n"
8918 "\n"
8919 msgstr ""
8920
8921 #. type: textblock
8922 #: ../fish/guestfish-actions.pod:1161
8923 msgid ""
8924 "Note that this call allocates disk blocks for the file.  To create a sparse "
8925 "file use L</truncate-size> instead."
8926 msgstr ""
8927
8928 #. type: textblock
8929 #: ../fish/guestfish-actions.pod:1164
8930 msgid ""
8931 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8932 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8933 "maximum size of files created through that call to 1GB."
8934 msgstr ""
8935
8936 #. type: textblock
8937 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8938 msgid ""
8939 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8940 "commands which create a file in the host and attach it as a device."
8941 msgstr ""
8942
8943 #. type: =head2
8944 #: ../fish/guestfish-actions.pod:1173
8945 msgid "fgrep"
8946 msgstr ""
8947
8948 #. type: verbatim
8949 #: ../fish/guestfish-actions.pod:1175
8950 #, no-wrap
8951 msgid ""
8952 " fgrep pattern path\n"
8953 "\n"
8954 msgstr ""
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8958 msgid ""
8959 "This calls the external C<fgrep> program and returns the matching lines."
8960 msgstr ""
8961
8962 #. type: =head2
8963 #: ../fish/guestfish-actions.pod:1183
8964 msgid "fgrepi"
8965 msgstr ""
8966
8967 #. type: verbatim
8968 #: ../fish/guestfish-actions.pod:1185
8969 #, no-wrap
8970 msgid ""
8971 " fgrepi pattern path\n"
8972 "\n"
8973 msgstr ""
8974
8975 #. type: textblock
8976 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8977 msgid ""
8978 "This calls the external C<fgrep -i> program and returns the matching lines."
8979 msgstr ""
8980
8981 #. type: =head2
8982 #: ../fish/guestfish-actions.pod:1193
8983 msgid "file"
8984 msgstr ""
8985
8986 #. type: verbatim
8987 #: ../fish/guestfish-actions.pod:1195
8988 #, no-wrap
8989 msgid ""
8990 " file path\n"
8991 "\n"
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8996 msgid ""
8997 "This call uses the standard L<file(1)> command to determine the type or "
8998 "contents of the file."
8999 msgstr ""
9000
9001 #. type: textblock
9002 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9003 msgid ""
9004 "This call will also transparently look inside various types of compressed "
9005 "file."
9006 msgstr ""
9007
9008 #. type: textblock
9009 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9010 msgid ""
9011 "The exact command which runs is C<file -zb path>.  Note in particular that "
9012 "the filename is not prepended to the output (the I<-b> option)."
9013 msgstr ""
9014
9015 #. type: textblock
9016 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9017 msgid ""
9018 "The output depends on the output of the underlying L<file(1)> command and it "
9019 "can change in future in ways beyond our control.  In other words, the output "
9020 "is not guaranteed by the ABI."
9021 msgstr ""
9022
9023 #. type: textblock
9024 #: ../fish/guestfish-actions.pod:1211
9025 msgid ""
9026 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9027 "(etc), L</is-zero>."
9028 msgstr ""
9029
9030 #. type: =head2
9031 #: ../fish/guestfish-actions.pod:1214
9032 msgid "file-architecture"
9033 msgstr ""
9034
9035 #. type: verbatim
9036 #: ../fish/guestfish-actions.pod:1216
9037 #, no-wrap
9038 msgid ""
9039 " file-architecture filename\n"
9040 "\n"
9041 msgstr ""
9042
9043 #. type: textblock
9044 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9045 msgid ""
9046 "This detects the architecture of the binary C<filename>, and returns it if "
9047 "known."
9048 msgstr ""
9049
9050 #. type: textblock
9051 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9052 msgid "Currently defined architectures are:"
9053 msgstr ""
9054
9055 #. type: =item
9056 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9057 msgid "\"i386\""
9058 msgstr ""
9059
9060 #. type: textblock
9061 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9062 msgid ""
9063 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9064 "irrespective of the precise processor requirements of the binary."
9065 msgstr ""
9066
9067 #. type: =item
9068 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9069 msgid "\"x86_64\""
9070 msgstr ""
9071
9072 #. type: textblock
9073 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9074 msgid "64 bit x86-64."
9075 msgstr ""
9076
9077 #. type: =item
9078 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9079 msgid "\"sparc\""
9080 msgstr ""
9081
9082 #. type: textblock
9083 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9084 msgid "32 bit SPARC."
9085 msgstr ""
9086
9087 #. type: =item
9088 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9089 msgid "\"sparc64\""
9090 msgstr ""
9091
9092 #. type: textblock
9093 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9094 msgid "64 bit SPARC V9 and above."
9095 msgstr ""
9096
9097 #. type: =item
9098 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9099 msgid "\"ia64\""
9100 msgstr ""
9101
9102 #. type: textblock
9103 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9104 msgid "Intel Itanium."
9105 msgstr ""
9106
9107 #. type: =item
9108 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9109 msgid "\"ppc\""
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9114 msgid "32 bit Power PC."
9115 msgstr ""
9116
9117 #. type: =item
9118 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9119 msgid "\"ppc64\""
9120 msgstr ""
9121
9122 #. type: textblock
9123 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9124 msgid "64 bit Power PC."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9129 msgid "Libguestfs may return other architecture strings in future."
9130 msgstr ""
9131
9132 #. type: textblock
9133 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9134 msgid "The function works on at least the following types of files:"
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9139 msgid "many types of Un*x and Linux binary"
9140 msgstr ""
9141
9142 #. type: textblock
9143 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9144 msgid "many types of Un*x and Linux shared library"
9145 msgstr ""
9146
9147 #. type: textblock
9148 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9149 msgid "Windows Win32 and Win64 binaries"
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9154 msgid "Windows Win32 and Win64 DLLs"
9155 msgstr ""
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9159 msgid "Win32 binaries and DLLs return C<i386>."
9160 msgstr ""
9161
9162 #. type: textblock
9163 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9164 msgid "Win64 binaries and DLLs return C<x86_64>."
9165 msgstr ""
9166
9167 #. type: textblock
9168 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9169 msgid "Linux kernel modules"
9170 msgstr ""
9171
9172 #. type: textblock
9173 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9174 msgid "Linux new-style initrd images"
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9179 msgid "some non-x86 Linux vmlinuz kernels"
9180 msgstr ""
9181
9182 #. type: textblock
9183 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9184 msgid "What it can't do currently:"
9185 msgstr ""
9186
9187 #. type: textblock
9188 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9189 msgid "static libraries (libfoo.a)"
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9194 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9199 msgid "x86 Linux vmlinuz kernels"
9200 msgstr ""
9201
9202 #. type: textblock
9203 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9204 msgid ""
9205 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9206 "compressed code, and are horribly hard to unpack.  If you want to find the "
9207 "architecture of a kernel, use the architecture of the associated initrd or "
9208 "kernel module(s) instead."
9209 msgstr ""
9210
9211 #. type: =head2
9212 #: ../fish/guestfish-actions.pod:1319
9213 msgid "filesize"
9214 msgstr ""
9215
9216 #. type: verbatim
9217 #: ../fish/guestfish-actions.pod:1321
9218 #, no-wrap
9219 msgid ""
9220 " filesize file\n"
9221 "\n"
9222 msgstr ""
9223
9224 #. type: textblock
9225 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9226 msgid "This command returns the size of C<file> in bytes."
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:1325
9231 msgid ""
9232 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9233 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9234 msgstr ""
9235
9236 #. type: =head2
9237 #: ../fish/guestfish-actions.pod:1329
9238 msgid "fill"
9239 msgstr ""
9240
9241 #. type: verbatim
9242 #: ../fish/guestfish-actions.pod:1331
9243 #, no-wrap
9244 msgid ""
9245 " fill c len path\n"
9246 "\n"
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9251 msgid ""
9252 "This command creates a new file called C<path>.  The initial content of the "
9253 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9254 "[0..255]>."
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:1337
9259 msgid ""
9260 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9261 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9262 "L</fill-pattern>."
9263 msgstr ""
9264
9265 #. type: =head2
9266 #: ../fish/guestfish-actions.pod:1342
9267 msgid "fill-pattern"
9268 msgstr ""
9269
9270 #. type: verbatim
9271 #: ../fish/guestfish-actions.pod:1344
9272 #, no-wrap
9273 msgid ""
9274 " fill-pattern pattern len path\n"
9275 "\n"
9276 msgstr ""
9277
9278 #. type: textblock
9279 #: ../fish/guestfish-actions.pod:1346
9280 msgid ""
9281 "This function is like L</fill> except that it creates a new file of length "
9282 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9283 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9284 "bytes."
9285 msgstr ""
9286
9287 #. type: =head2
9288 #: ../fish/guestfish-actions.pod:1351
9289 msgid "find"
9290 msgstr ""
9291
9292 #. type: verbatim
9293 #: ../fish/guestfish-actions.pod:1353
9294 #, no-wrap
9295 msgid ""
9296 " find directory\n"
9297 "\n"
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9302 msgid ""
9303 "This command lists out all files and directories, recursively, starting at "
9304 "C<directory>.  It is essentially equivalent to running the shell command "
9305 "C<find directory -print> but some post-processing happens on the output, "
9306 "described below."
9307 msgstr ""
9308
9309 #. type: textblock
9310 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9311 msgid ""
9312 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9313 "structure was:"
9314 msgstr ""
9315
9316 #. type: verbatim
9317 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9318 #, no-wrap
9319 msgid ""
9320 " /tmp/a\n"
9321 " /tmp/b\n"
9322 " /tmp/c/d\n"
9323 "\n"
9324 msgstr ""
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:1367
9328 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9329 msgstr ""
9330
9331 #. type: verbatim
9332 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9333 #, no-wrap
9334 msgid ""
9335 " a\n"
9336 " b\n"
9337 " c\n"
9338 " c/d\n"
9339 "\n"
9340 msgstr ""
9341
9342 #. type: textblock
9343 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9344 msgid "If C<directory> is not a directory, then this command returns an error."
9345 msgstr ""
9346
9347 #. type: textblock
9348 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9349 msgid "The returned list is sorted."
9350 msgstr ""
9351
9352 #. type: textblock
9353 #: ../fish/guestfish-actions.pod:1380
9354 msgid "See also L</find0>."
9355 msgstr ""
9356
9357 #. type: =head2
9358 #: ../fish/guestfish-actions.pod:1385
9359 msgid "find0"
9360 msgstr ""
9361
9362 #. type: verbatim
9363 #: ../fish/guestfish-actions.pod:1387
9364 #, no-wrap
9365 msgid ""
9366 " find0 directory (files|-)\n"
9367 "\n"
9368 msgstr ""
9369
9370 #. type: textblock
9371 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9372 msgid ""
9373 "This command lists out all files and directories, recursively, starting at "
9374 "C<directory>, placing the resulting list in the external file called "
9375 "C<files>."
9376 msgstr ""
9377
9378 #. type: textblock
9379 #: ../fish/guestfish-actions.pod:1393
9380 msgid ""
9381 "This command works the same way as L</find> with the following exceptions:"
9382 msgstr ""
9383
9384 #. type: textblock
9385 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9386 msgid "The resulting list is written to an external file."
9387 msgstr ""
9388
9389 #. type: textblock
9390 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9391 msgid ""
9392 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9393 "L<find(1)> option I<-print0>."
9394 msgstr ""
9395
9396 #. type: textblock
9397 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9398 msgid "This command is not limited in the number of names that it can return."
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9403 msgid "The result list is not sorted."
9404 msgstr ""
9405
9406 #. type: =head2
9407 #: ../fish/guestfish-actions.pod:1420
9408 msgid "findfs-label"
9409 msgstr ""
9410
9411 #. type: verbatim
9412 #: ../fish/guestfish-actions.pod:1422
9413 #, no-wrap
9414 msgid ""
9415 " findfs-label label\n"
9416 "\n"
9417 msgstr ""
9418
9419 #. type: textblock
9420 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9421 msgid ""
9422 "This command searches the filesystems and returns the one which has the "
9423 "given label.  An error is returned if no such filesystem can be found."
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../fish/guestfish-actions.pod:1428
9428 msgid "To find the label of a filesystem, use L</vfs-label>."
9429 msgstr ""
9430
9431 #. type: =head2
9432 #: ../fish/guestfish-actions.pod:1430
9433 msgid "findfs-uuid"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:1432
9438 #, no-wrap
9439 msgid ""
9440 " findfs-uuid uuid\n"
9441 "\n"
9442 msgstr ""
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9446 msgid ""
9447 "This command searches the filesystems and returns the one which has the "
9448 "given UUID.  An error is returned if no such filesystem can be found."
9449 msgstr ""
9450
9451 #. type: textblock
9452 #: ../fish/guestfish-actions.pod:1438
9453 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9454 msgstr ""
9455
9456 #. type: =head2
9457 #: ../fish/guestfish-actions.pod:1440
9458 msgid "fsck"
9459 msgstr ""
9460
9461 #. type: verbatim
9462 #: ../fish/guestfish-actions.pod:1442
9463 #, no-wrap
9464 msgid ""
9465 " fsck fstype device\n"
9466 "\n"
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9471 msgid ""
9472 "This runs the filesystem checker (fsck) on C<device> which should have "
9473 "filesystem type C<fstype>."
9474 msgstr ""
9475
9476 #. type: textblock
9477 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9478 msgid ""
9479 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9480 "codes from C<fsck>."
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9485 msgid "Multiple status codes can be summed together."
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9490 msgid ""
9491 "A non-zero return code can mean \"success\", for example if errors have been "
9492 "corrected on the filesystem."
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9497 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9498 msgstr ""
9499
9500 #. type: textblock
9501 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9502 msgid ""
9503 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9504 msgstr ""
9505
9506 #. type: =head2
9507 #: ../fish/guestfish-actions.pod:1472
9508 msgid "get-append"
9509 msgstr ""
9510
9511 #. type: verbatim
9512 #: ../fish/guestfish-actions.pod:1474
9513 #, no-wrap
9514 msgid ""
9515 " get-append\n"
9516 "\n"
9517 msgstr ""
9518
9519 #. type: textblock
9520 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9521 msgid ""
9522 "Return the additional kernel options which are added to the guest kernel "
9523 "command line."
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9528 msgid "If C<NULL> then no options are added."
9529 msgstr ""
9530
9531 #. type: =head2
9532 #: ../fish/guestfish-actions.pod:1481
9533 msgid "get-attach-method"
9534 msgstr ""
9535
9536 #. type: verbatim
9537 #: ../fish/guestfish-actions.pod:1483
9538 #, no-wrap
9539 msgid ""
9540 " get-attach-method\n"
9541 "\n"
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:1485
9546 msgid "Return the current attach method.  See L</set-attach-method>."
9547 msgstr ""
9548
9549 #. type: =head2
9550 #: ../fish/guestfish-actions.pod:1487
9551 msgid "get-autosync"
9552 msgstr ""
9553
9554 #. type: verbatim
9555 #: ../fish/guestfish-actions.pod:1489
9556 #, no-wrap
9557 msgid ""
9558 " get-autosync\n"
9559 "\n"
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9564 msgid "Get the autosync flag."
9565 msgstr ""
9566
9567 #. type: =head2
9568 #: ../fish/guestfish-actions.pod:1493
9569 msgid "get-direct"
9570 msgstr ""
9571
9572 #. type: verbatim
9573 #: ../fish/guestfish-actions.pod:1495
9574 #, no-wrap
9575 msgid ""
9576 " get-direct\n"
9577 "\n"
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9582 msgid "Return the direct appliance mode flag."
9583 msgstr ""
9584
9585 #. type: =head2
9586 #: ../fish/guestfish-actions.pod:1499
9587 msgid "get-e2label"
9588 msgstr ""
9589
9590 #. type: verbatim
9591 #: ../fish/guestfish-actions.pod:1501
9592 #, no-wrap
9593 msgid ""
9594 " get-e2label device\n"
9595 "\n"
9596 msgstr ""
9597
9598 #. type: textblock
9599 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9600 msgid ""
9601 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:1506
9606 msgid ""
9607 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9608 "instead."
9609 msgstr ""
9610
9611 #. type: =head2
9612 #: ../fish/guestfish-actions.pod:1513
9613 msgid "get-e2uuid"
9614 msgstr ""
9615
9616 #. type: verbatim
9617 #: ../fish/guestfish-actions.pod:1515
9618 #, no-wrap
9619 msgid ""
9620 " get-e2uuid device\n"
9621 "\n"
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9626 msgid ""
9627 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:1520
9632 msgid ""
9633 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9634 "instead."
9635 msgstr ""
9636
9637 #. type: =head2
9638 #: ../fish/guestfish-actions.pod:1527
9639 msgid "get-memsize"
9640 msgstr ""
9641
9642 #. type: verbatim
9643 #: ../fish/guestfish-actions.pod:1529
9644 #, no-wrap
9645 msgid ""
9646 " get-memsize\n"
9647 "\n"
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9652 msgid ""
9653 "This gets the memory size in megabytes allocated to the qemu subprocess."
9654 msgstr ""
9655
9656 #. type: textblock
9657 #: ../fish/guestfish-actions.pod:1534
9658 msgid ""
9659 "If L</set-memsize> was not called on this handle, and if "
9660 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9661 "value for memsize."
9662 msgstr ""
9663
9664 #. type: textblock
9665 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9666 #: ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4559
9667 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9668 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:7030
9669 msgid ""
9670 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9671 msgstr ""
9672
9673 #. type: =head2
9674 #: ../fish/guestfish-actions.pod:1541
9675 msgid "get-network"
9676 msgstr ""
9677
9678 #. type: verbatim
9679 #: ../fish/guestfish-actions.pod:1543
9680 #, no-wrap
9681 msgid ""
9682 " get-network\n"
9683 "\n"
9684 msgstr ""
9685
9686 #. type: textblock
9687 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9688 msgid "This returns the enable network flag."
9689 msgstr ""
9690
9691 #. type: =head2
9692 #: ../fish/guestfish-actions.pod:1547
9693 msgid "get-path"
9694 msgstr ""
9695
9696 #. type: verbatim
9697 #: ../fish/guestfish-actions.pod:1549
9698 #, no-wrap
9699 msgid ""
9700 " get-path\n"
9701 "\n"
9702 msgstr ""
9703
9704 #. type: textblock
9705 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9706 msgid "Return the current search path."
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9711 msgid ""
9712 "This is always non-NULL.  If it wasn't set already, then this will return "
9713 "the default path."
9714 msgstr ""
9715
9716 #. type: =head2
9717 #: ../fish/guestfish-actions.pod:1556
9718 msgid "get-pgroup"
9719 msgstr ""
9720
9721 #. type: verbatim
9722 #: ../fish/guestfish-actions.pod:1558
9723 #, no-wrap
9724 msgid ""
9725 " get-pgroup\n"
9726 "\n"
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9731 msgid "This returns the process group flag."
9732 msgstr ""
9733
9734 #. type: =head2
9735 #: ../fish/guestfish-actions.pod:1562
9736 msgid "get-pid"
9737 msgstr ""
9738
9739 #. type: =head2
9740 #: ../fish/guestfish-actions.pod:1564
9741 msgid "pid"
9742 msgstr ""
9743
9744 #. type: verbatim
9745 #: ../fish/guestfish-actions.pod:1566
9746 #, no-wrap
9747 msgid ""
9748 " get-pid\n"
9749 "\n"
9750 msgstr ""
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9754 msgid ""
9755 "Return the process ID of the qemu subprocess.  If there is no qemu "
9756 "subprocess, then this will return an error."
9757 msgstr ""
9758
9759 #. type: textblock
9760 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9761 msgid "This is an internal call used for debugging and testing."
9762 msgstr ""
9763
9764 #. type: =head2
9765 #: ../fish/guestfish-actions.pod:1573
9766 msgid "get-qemu"
9767 msgstr ""
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:1575
9771 #, no-wrap
9772 msgid ""
9773 " get-qemu\n"
9774 "\n"
9775 msgstr ""
9776
9777 #. type: textblock
9778 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9779 msgid "Return the current qemu binary."
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9784 msgid ""
9785 "This is always non-NULL.  If it wasn't set already, then this will return "
9786 "the default qemu binary name."
9787 msgstr ""
9788
9789 #. type: =head2
9790 #: ../fish/guestfish-actions.pod:1582
9791 msgid "get-recovery-proc"
9792 msgstr ""
9793
9794 #. type: verbatim
9795 #: ../fish/guestfish-actions.pod:1584
9796 #, no-wrap
9797 msgid ""
9798 " get-recovery-proc\n"
9799 "\n"
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9804 msgid "Return the recovery process enabled flag."
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../fish/guestfish-actions.pod:1588
9809 msgid "get-selinux"
9810 msgstr ""
9811
9812 #. type: verbatim
9813 #: ../fish/guestfish-actions.pod:1590
9814 #, no-wrap
9815 msgid ""
9816 " get-selinux\n"
9817 "\n"
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:1592
9822 msgid ""
9823 "This returns the current setting of the selinux flag which is passed to the "
9824 "appliance at boot time.  See L</set-selinux>."
9825 msgstr ""
9826
9827 #. type: =head2
9828 #: ../fish/guestfish-actions.pod:1598
9829 msgid "get-smp"
9830 msgstr ""
9831
9832 #. type: verbatim
9833 #: ../fish/guestfish-actions.pod:1600
9834 #, no-wrap
9835 msgid ""
9836 " get-smp\n"
9837 "\n"
9838 msgstr ""
9839
9840 #. type: textblock
9841 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9842 msgid "This returns the number of virtual CPUs assigned to the appliance."
9843 msgstr ""
9844
9845 #. type: =head2
9846 #: ../fish/guestfish-actions.pod:1604
9847 msgid "get-state"
9848 msgstr ""
9849
9850 #. type: verbatim
9851 #: ../fish/guestfish-actions.pod:1606
9852 #, no-wrap
9853 msgid ""
9854 " get-state\n"
9855 "\n"
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9860 msgid ""
9861 "This returns the current state as an opaque integer.  This is only useful "
9862 "for printing debug and internal error messages."
9863 msgstr ""
9864
9865 #. type: textblock
9866 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9867 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9868 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9869 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9870 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9871 msgid "For more information on states, see L<guestfs(3)>."
9872 msgstr ""
9873
9874 #. type: =head2
9875 #: ../fish/guestfish-actions.pod:1613
9876 msgid "get-trace"
9877 msgstr ""
9878
9879 #. type: verbatim
9880 #: ../fish/guestfish-actions.pod:1615
9881 #, no-wrap
9882 msgid ""
9883 " get-trace\n"
9884 "\n"
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9889 msgid "Return the command trace flag."
9890 msgstr ""
9891
9892 #. type: =head2
9893 #: ../fish/guestfish-actions.pod:1619
9894 msgid "get-umask"
9895 msgstr ""
9896
9897 #. type: verbatim
9898 #: ../fish/guestfish-actions.pod:1621
9899 #, no-wrap
9900 msgid ""
9901 " get-umask\n"
9902 "\n"
9903 msgstr ""
9904
9905 #. type: textblock
9906 #: ../fish/guestfish-actions.pod:1623
9907 msgid ""
9908 "Return the current umask.  By default the umask is C<022> unless it has been "
9909 "set by calling L</umask>."
9910 msgstr ""
9911
9912 #. type: =head2
9913 #: ../fish/guestfish-actions.pod:1626
9914 msgid "get-verbose"
9915 msgstr ""
9916
9917 #. type: verbatim
9918 #: ../fish/guestfish-actions.pod:1628
9919 #, no-wrap
9920 msgid ""
9921 " get-verbose\n"
9922 "\n"
9923 msgstr ""
9924
9925 #. type: textblock
9926 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9927 msgid "This returns the verbose messages flag."
9928 msgstr ""
9929
9930 #. type: =head2
9931 #: ../fish/guestfish-actions.pod:1632
9932 msgid "getcon"
9933 msgstr ""
9934
9935 #. type: verbatim
9936 #: ../fish/guestfish-actions.pod:1634
9937 #, no-wrap
9938 msgid ""
9939 " getcon\n"
9940 "\n"
9941 msgstr ""
9942
9943 #. type: textblock
9944 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9945 msgid "This gets the SELinux security context of the daemon."
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../fish/guestfish-actions.pod:1638
9950 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9951 msgstr ""
9952
9953 #. type: =head2
9954 #: ../fish/guestfish-actions.pod:1641
9955 msgid "getxattr"
9956 msgstr ""
9957
9958 #. type: verbatim
9959 #: ../fish/guestfish-actions.pod:1643
9960 #, no-wrap
9961 msgid ""
9962 " getxattr path name\n"
9963 "\n"
9964 msgstr ""
9965
9966 #. type: textblock
9967 #: ../fish/guestfish-actions.pod:1645
9968 msgid ""
9969 "Get a single extended attribute from file C<path> named C<name>.  This call "
9970 "follows symlinks.  If you want to lookup an extended attribute for the "
9971 "symlink itself, use L</lgetxattr>."
9972 msgstr ""
9973
9974 #. type: textblock
9975 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9976 msgid ""
9977 "Normally it is better to get all extended attributes from a file in one go "
9978 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9979 "buggy and do not provide a way to list out attributes.  For these "
9980 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9981 "attributes you want in advance and call this function."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9986 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9987 msgid ""
9988 "Extended attribute values are blobs of binary data.  If there is no extended "
9989 "attribute named C<name>, this returns an error."
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:1659
9994 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9995 msgstr ""
9996
9997 #. type: =head2
9998 #: ../fish/guestfish-actions.pod:1661
9999 msgid "getxattrs"
10000 msgstr ""
10001
10002 #. type: verbatim
10003 #: ../fish/guestfish-actions.pod:1663
10004 #, no-wrap
10005 msgid ""
10006 " getxattrs path\n"
10007 "\n"
10008 msgstr ""
10009
10010 #. type: textblock
10011 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10012 msgid ""
10013 "This call lists the extended attributes of the file or directory C<path>."
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10018 msgid ""
10019 "At the system call level, this is a combination of the L<listxattr(2)> and "
10020 "L<getxattr(2)> calls."
10021 msgstr ""
10022
10023 #. type: textblock
10024 #: ../fish/guestfish-actions.pod:1671
10025 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10026 msgstr ""
10027
10028 #. type: =head2
10029 #: ../fish/guestfish-actions.pod:1673
10030 msgid "glob-expand"
10031 msgstr ""
10032
10033 #. type: verbatim
10034 #: ../fish/guestfish-actions.pod:1675
10035 #, no-wrap
10036 msgid ""
10037 " glob-expand pattern\n"
10038 "\n"
10039 msgstr ""
10040
10041 #. type: textblock
10042 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10043 msgid ""
10044 "This command searches for all the pathnames matching C<pattern> according to "
10045 "the wildcard expansion rules used by the shell."
10046 msgstr ""
10047
10048 #. type: textblock
10049 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10050 msgid ""
10051 "If no paths match, then this returns an empty list (note: not an error)."
10052 msgstr ""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10056 msgid ""
10057 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10058 "GLOB_BRACE>.  See that manual page for more details."
10059 msgstr ""
10060
10061 #. type: =head2
10062 #: ../fish/guestfish-actions.pod:1688
10063 msgid "grep"
10064 msgstr ""
10065
10066 #. type: verbatim
10067 #: ../fish/guestfish-actions.pod:1690
10068 #, no-wrap
10069 msgid ""
10070 " grep regex path\n"
10071 "\n"
10072 msgstr ""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10076 msgid "This calls the external C<grep> program and returns the matching lines."
10077 msgstr ""
10078
10079 #. type: =head2
10080 #: ../fish/guestfish-actions.pod:1698
10081 msgid "grepi"
10082 msgstr ""
10083
10084 #. type: verbatim
10085 #: ../fish/guestfish-actions.pod:1700
10086 #, no-wrap
10087 msgid ""
10088 " grepi regex path\n"
10089 "\n"
10090 msgstr ""
10091
10092 #. type: textblock
10093 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10094 msgid ""
10095 "This calls the external C<grep -i> program and returns the matching lines."
10096 msgstr ""
10097
10098 #. type: =head2
10099 #: ../fish/guestfish-actions.pod:1708
10100 msgid "grub-install"
10101 msgstr ""
10102
10103 #. type: verbatim
10104 #: ../fish/guestfish-actions.pod:1710
10105 #, no-wrap
10106 msgid ""
10107 " grub-install root device\n"
10108 "\n"
10109 msgstr ""
10110
10111 #. type: textblock
10112 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10113 msgid ""
10114 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10115 "with the root directory being C<root>."
10116 msgstr ""
10117
10118 #. type: textblock
10119 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10120 msgid ""
10121 "There is currently no way in the API to install grub2, which is used by most "
10122 "modern Linux guests.  It is possible to run the grub2 command from the "
10123 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10124 msgstr ""
10125
10126 #. type: textblock
10127 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10128 msgid ""
10129 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10130 "compatible with itself, so this only works in rather narrow circumstances.  "
10131 "Careful testing with each guest version is advisable."
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10136 msgid ""
10137 "If grub-install reports the error \"No suitable drive was found in the "
10138 "generated device map.\" it may be that you need to create a C</boot/grub/"
10139 "device.map> file first that contains the mapping between grub device names "
10140 "and Linux device names.  It is usually sufficient to create a file "
10141 "containing:"
10142 msgstr ""
10143
10144 #. type: verbatim
10145 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10146 #, no-wrap
10147 msgid ""
10148 " (hd0) /dev/vda\n"
10149 "\n"
10150 msgstr ""
10151
10152 #. type: textblock
10153 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10154 msgid "replacing C</dev/vda> with the name of the installation device."
10155 msgstr ""
10156
10157 #. type: =head2
10158 #: ../fish/guestfish-actions.pod:1748
10159 msgid "head"
10160 msgstr ""
10161
10162 #. type: verbatim
10163 #: ../fish/guestfish-actions.pod:1750
10164 #, no-wrap
10165 msgid ""
10166 " head path\n"
10167 "\n"
10168 msgstr ""
10169
10170 #. type: textblock
10171 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10172 msgid ""
10173 "This command returns up to the first 10 lines of a file as a list of strings."
10174 msgstr ""
10175
10176 #. type: =head2
10177 #: ../fish/guestfish-actions.pod:1758
10178 msgid "head-n"
10179 msgstr ""
10180
10181 #. type: verbatim
10182 #: ../fish/guestfish-actions.pod:1760
10183 #, no-wrap
10184 msgid ""
10185 " head-n nrlines path\n"
10186 "\n"
10187 msgstr ""
10188
10189 #. type: textblock
10190 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10191 msgid ""
10192 "If the parameter C<nrlines> is a positive number, this returns the first "
10193 "C<nrlines> lines of the file C<path>."
10194 msgstr ""
10195
10196 #. type: textblock
10197 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10198 msgid ""
10199 "If the parameter C<nrlines> is a negative number, this returns lines from "
10200 "the file C<path>, excluding the last C<nrlines> lines."
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4940
10205 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7609
10206 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10207 msgstr ""
10208
10209 #. type: =head2
10210 #: ../fish/guestfish-actions.pod:1773
10211 msgid "hexdump"
10212 msgstr ""
10213
10214 #. type: verbatim
10215 #: ../fish/guestfish-actions.pod:1775
10216 #, no-wrap
10217 msgid ""
10218 " hexdump path\n"
10219 "\n"
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10224 msgid ""
10225 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10226 "readable, canonical hex dump of the file."
10227 msgstr ""
10228
10229 #. type: =head2
10230 #: ../fish/guestfish-actions.pod:1783
10231 msgid "initrd-cat"
10232 msgstr ""
10233
10234 #. type: verbatim
10235 #: ../fish/guestfish-actions.pod:1785
10236 #, no-wrap
10237 msgid ""
10238 " initrd-cat initrdpath filename\n"
10239 "\n"
10240 msgstr ""
10241
10242 #. type: textblock
10243 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10244 msgid ""
10245 "This command unpacks the file C<filename> from the initrd file called "
10246 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10247 "character."
10248 msgstr ""
10249
10250 #. type: textblock
10251 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10252 msgid ""
10253 "For example, in guestfish you could use the following command to examine the "
10254 "boot script (usually called C</init>)  contained in a Linux initrd or "
10255 "initramfs image:"
10256 msgstr ""
10257
10258 #. type: verbatim
10259 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10260 #, no-wrap
10261 msgid ""
10262 " initrd-cat /boot/initrd-<version>.img init\n"
10263 "\n"
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../fish/guestfish-actions.pod:1797
10268 msgid "See also L</initrd-list>."
10269 msgstr ""
10270
10271 #. type: =head2
10272 #: ../fish/guestfish-actions.pod:1802
10273 msgid "initrd-list"
10274 msgstr ""
10275
10276 #. type: verbatim
10277 #: ../fish/guestfish-actions.pod:1804
10278 #, no-wrap
10279 msgid ""
10280 " initrd-list path\n"
10281 "\n"
10282 msgstr ""
10283
10284 #. type: textblock
10285 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10286 msgid "This command lists out files contained in an initrd."
10287 msgstr ""
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10291 msgid ""
10292 "The files are listed without any initial C</> character.  The files are "
10293 "listed in the order they appear (not necessarily alphabetical).  Directory "
10294 "names are listed as separate items."
10295 msgstr ""
10296
10297 #. type: textblock
10298 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10299 msgid ""
10300 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10301 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10302 "files)."
10303 msgstr ""
10304
10305 #. type: =head2
10306 #: ../fish/guestfish-actions.pod:1816
10307 msgid "inotify-add-watch"
10308 msgstr ""
10309
10310 #. type: verbatim
10311 #: ../fish/guestfish-actions.pod:1818
10312 #, no-wrap
10313 msgid ""
10314 " inotify-add-watch path mask\n"
10315 "\n"
10316 msgstr ""
10317
10318 #. type: textblock
10319 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10320 msgid "Watch C<path> for the events listed in C<mask>."
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10325 msgid ""
10326 "Note that if C<path> is a directory then events within that directory are "
10327 "watched, but this does I<not> happen recursively (in subdirectories)."
10328 msgstr ""
10329
10330 #. type: textblock
10331 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10332 msgid ""
10333 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10334 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10335 msgstr ""
10336
10337 #. type: =head2
10338 #: ../fish/guestfish-actions.pod:1830
10339 msgid "inotify-close"
10340 msgstr ""
10341
10342 #. type: verbatim
10343 #: ../fish/guestfish-actions.pod:1832
10344 #, no-wrap
10345 msgid ""
10346 " inotify-close\n"
10347 "\n"
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10352 msgid ""
10353 "This closes the inotify handle which was previously opened by inotify_init.  "
10354 "It removes all watches, throws away any pending events, and deallocates all "
10355 "resources."
10356 msgstr ""
10357
10358 #. type: =head2
10359 #: ../fish/guestfish-actions.pod:1838
10360 msgid "inotify-files"
10361 msgstr ""
10362
10363 #. type: verbatim
10364 #: ../fish/guestfish-actions.pod:1840
10365 #, no-wrap
10366 msgid ""
10367 " inotify-files\n"
10368 "\n"
10369 msgstr ""
10370
10371 #. type: textblock
10372 #: ../fish/guestfish-actions.pod:1842
10373 msgid ""
10374 "This function is a helpful wrapper around L</inotify-read> which just "
10375 "returns a list of pathnames of objects that were touched.  The returned "
10376 "pathnames are sorted and deduplicated."
10377 msgstr ""
10378
10379 #. type: =head2
10380 #: ../fish/guestfish-actions.pod:1846
10381 msgid "inotify-init"
10382 msgstr ""
10383
10384 #. type: verbatim
10385 #: ../fish/guestfish-actions.pod:1848
10386 #, no-wrap
10387 msgid ""
10388 " inotify-init maxevents\n"
10389 "\n"
10390 msgstr ""
10391
10392 #. type: textblock
10393 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10394 msgid ""
10395 "This command creates a new inotify handle.  The inotify subsystem can be "
10396 "used to notify events which happen to objects in the guest filesystem."
10397 msgstr ""
10398
10399 #. type: textblock
10400 #: ../fish/guestfish-actions.pod:1854
10401 msgid ""
10402 "C<maxevents> is the maximum number of events which will be queued up between "
10403 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10404 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10405 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10406 "but records the fact that it threw them away by setting a flag "
10407 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10408 msgstr ""
10409
10410 #. type: textblock
10411 #: ../fish/guestfish-actions.pod:1864
10412 msgid ""
10413 "Before any events are generated, you have to add some watches to the "
10414 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10415 "L</inotify-watch-all>."
10416 msgstr ""
10417
10418 #. type: textblock
10419 #: ../fish/guestfish-actions.pod:1870
10420 msgid ""
10421 "Queued up events should be read periodically by calling L</inotify-read> (or "
10422 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10423 "If you don't read the events out often enough then you risk the internal "
10424 "queue overflowing."
10425 msgstr ""
10426
10427 #. type: textblock
10428 #: ../fish/guestfish-actions.pod:1877
10429 msgid ""
10430 "The handle should be closed after use by calling L</inotify-close>.  This "
10431 "also removes any watches automatically."
10432 msgstr ""
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10436 msgid ""
10437 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10438 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10439 "that there is one global inotify handle per libguestfs instance."
10440 msgstr ""
10441
10442 #. type: =head2
10443 #: ../fish/guestfish-actions.pod:1886
10444 msgid "inotify-read"
10445 msgstr ""
10446
10447 #. type: verbatim
10448 #: ../fish/guestfish-actions.pod:1888
10449 #, no-wrap
10450 msgid ""
10451 " inotify-read\n"
10452 "\n"
10453 msgstr ""
10454
10455 #. type: textblock
10456 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10457 msgid ""
10458 "Return the complete queue of events that have happened since the previous "
10459 "read call."
10460 msgstr ""
10461
10462 #. type: textblock
10463 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10464 msgid "If no events have happened, this returns an empty list."
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10469 msgid ""
10470 "I<Note>: In order to make sure that all events have been read, you must call "
10471 "this function repeatedly until it returns an empty list.  The reason is that "
10472 "the call will read events up to the maximum appliance-to-host message size "
10473 "and leave remaining events in the queue."
10474 msgstr ""
10475
10476 #. type: =head2
10477 #: ../fish/guestfish-actions.pod:1901
10478 msgid "inotify-rm-watch"
10479 msgstr ""
10480
10481 #. type: verbatim
10482 #: ../fish/guestfish-actions.pod:1903
10483 #, no-wrap
10484 msgid ""
10485 " inotify-rm-watch wd\n"
10486 "\n"
10487 msgstr ""
10488
10489 #. type: textblock
10490 #: ../fish/guestfish-actions.pod:1905
10491 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10492 msgstr ""
10493
10494 #. type: =head2
10495 #: ../fish/guestfish-actions.pod:1908
10496 msgid "inspect-get-arch"
10497 msgstr ""
10498
10499 #. type: verbatim
10500 #: ../fish/guestfish-actions.pod:1910
10501 #, no-wrap
10502 msgid ""
10503 " inspect-get-arch root\n"
10504 "\n"
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../fish/guestfish-actions.pod:1912
10509 msgid ""
10510 "This returns the architecture of the inspected operating system.  The "
10511 "possible return values are listed under L</file-architecture>."
10512 msgstr ""
10513
10514 #. type: textblock
10515 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10516 msgid ""
10517 "If the architecture could not be determined, then the string C<unknown> is "
10518 "returned."
10519 msgstr ""
10520
10521 #. type: textblock
10522 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10523 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10524 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10525 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10526 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10527 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10528 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10529 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10530 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10531 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10532 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10533 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10534 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10535 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10536 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10537 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10538 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10539 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10540 msgstr ""
10541
10542 #. type: =head2
10543 #: ../fish/guestfish-actions.pod:1921
10544 msgid "inspect-get-distro"
10545 msgstr ""
10546
10547 #. type: verbatim
10548 #: ../fish/guestfish-actions.pod:1923
10549 #, no-wrap
10550 msgid ""
10551 " inspect-get-distro root\n"
10552 "\n"
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10557 msgid ""
10558 "This returns the distro (distribution) of the inspected operating system."
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10563 msgid "Currently defined distros are:"
10564 msgstr ""
10565
10566 #. type: =item
10567 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10568 msgid "\"archlinux\""
10569 msgstr ""
10570
10571 #. type: textblock
10572 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10573 msgid "Arch Linux."
10574 msgstr ""
10575
10576 #. type: =item
10577 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10578 msgid "\"centos\""
10579 msgstr ""
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10583 msgid "CentOS."
10584 msgstr ""
10585
10586 #. type: =item
10587 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10588 msgid "\"debian\""
10589 msgstr ""
10590
10591 #. type: textblock
10592 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10593 msgid "Debian."
10594 msgstr ""
10595
10596 #. type: =item
10597 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10598 msgid "\"fedora\""
10599 msgstr ""
10600
10601 #. type: textblock
10602 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10603 msgid "Fedora."
10604 msgstr ""
10605
10606 #. type: =item
10607 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10608 msgid "\"gentoo\""
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10613 msgid "Gentoo."
10614 msgstr ""
10615
10616 #. type: =item
10617 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10618 msgid "\"linuxmint\""
10619 msgstr ""
10620
10621 #. type: textblock
10622 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10623 msgid "Linux Mint."
10624 msgstr ""
10625
10626 #. type: =item
10627 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10628 msgid "\"mageia\""
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10633 msgid "Mageia."
10634 msgstr ""
10635
10636 #. type: =item
10637 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10638 msgid "\"mandriva\""
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10643 msgid "Mandriva."
10644 msgstr ""
10645
10646 #. type: =item
10647 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10648 msgid "\"meego\""
10649 msgstr ""
10650
10651 #. type: textblock
10652 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10653 msgid "MeeGo."
10654 msgstr ""
10655
10656 #. type: =item
10657 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10658 msgid "\"opensuse\""
10659 msgstr ""
10660
10661 #. type: textblock
10662 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10663 msgid "OpenSUSE."
10664 msgstr ""
10665
10666 #. type: =item
10667 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10668 msgid "\"pardus\""
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10673 msgid "Pardus."
10674 msgstr ""
10675
10676 #. type: =item
10677 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10678 msgid "\"redhat-based\""
10679 msgstr ""
10680
10681 #. type: textblock
10682 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10683 msgid "Some Red Hat-derived distro."
10684 msgstr ""
10685
10686 #. type: =item
10687 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10688 msgid "\"rhel\""
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10693 msgid "Red Hat Enterprise Linux."
10694 msgstr ""
10695
10696 #. type: =item
10697 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10698 msgid "\"scientificlinux\""
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10703 msgid "Scientific Linux."
10704 msgstr ""
10705
10706 #. type: =item
10707 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10708 msgid "\"slackware\""
10709 msgstr ""
10710
10711 #. type: textblock
10712 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10713 msgid "Slackware."
10714 msgstr ""
10715
10716 #. type: =item
10717 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10718 msgid "\"ttylinux\""
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10723 msgid "ttylinux."
10724 msgstr ""
10725
10726 #. type: =item
10727 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10728 msgid "\"ubuntu\""
10729 msgstr ""
10730
10731 #. type: textblock
10732 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10733 msgid "Ubuntu."
10734 msgstr ""
10735
10736 #. type: =item
10737 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10738 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10739 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10740 msgid "\"unknown\""
10741 msgstr ""
10742
10743 #. type: textblock
10744 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10745 msgid "The distro could not be determined."
10746 msgstr ""
10747
10748 #. type: =item
10749 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10750 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10751 msgid "\"windows\""
10752 msgstr ""
10753
10754 #. type: textblock
10755 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10756 msgid ""
10757 "Windows does not have distributions.  This string is returned if the OS type "
10758 "is Windows."
10759 msgstr ""
10760
10761 #. type: textblock
10762 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10763 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10764 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10765 msgid ""
10766 "Future versions of libguestfs may return other strings here.  The caller "
10767 "should be prepared to handle any string."
10768 msgstr ""
10769
10770 #. type: =head2
10771 #: ../fish/guestfish-actions.pod:2016
10772 msgid "inspect-get-drive-mappings"
10773 msgstr ""
10774
10775 #. type: verbatim
10776 #: ../fish/guestfish-actions.pod:2018
10777 #, no-wrap
10778 msgid ""
10779 " inspect-get-drive-mappings root\n"
10780 "\n"
10781 msgstr ""
10782
10783 #. type: textblock
10784 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10785 msgid ""
10786 "This call is useful for Windows which uses a primitive system of assigning "
10787 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10788 "Windows Registry to find out how disks/partitions are mapped to drive "
10789 "letters, and returns a hash table as in the example below:"
10790 msgstr ""
10791
10792 #. type: verbatim
10793 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10794 #, no-wrap
10795 msgid ""
10796 " C      =>     /dev/vda2\n"
10797 " E      =>     /dev/vdb1\n"
10798 " F      =>     /dev/vdc1\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10804 msgid ""
10805 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10806 "and just contains the drive letter, without the customary colon separator "
10807 "character."
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10812 msgid ""
10813 "In future we may support other operating systems that also used drive "
10814 "letters, but the keys for those might not be case insensitive and might be "
10815 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10816 "C<h1> etc."
10817 msgstr ""
10818
10819 #. type: textblock
10820 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10821 msgid ""
10822 "For Windows guests, currently only hard drive mappings are returned.  "
10823 "Removable disks (eg. DVD-ROMs) are ignored."
10824 msgstr ""
10825
10826 #. type: textblock
10827 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10828 msgid ""
10829 "For guests that do not use drive mappings, or if the drive mappings could "
10830 "not be determined, this returns an empty hash table."
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2045
10835 msgid ""
10836 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10837 "get-mountpoints>, L</inspect-get-filesystems>."
10838 msgstr ""
10839
10840 #. type: =head2
10841 #: ../fish/guestfish-actions.pod:2049
10842 msgid "inspect-get-filesystems"
10843 msgstr ""
10844
10845 #. type: verbatim
10846 #: ../fish/guestfish-actions.pod:2051
10847 #, no-wrap
10848 msgid ""
10849 " inspect-get-filesystems root\n"
10850 "\n"
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10855 msgid ""
10856 "This returns a list of all the filesystems that we think are associated with "
10857 "this operating system.  This includes the root filesystem, other ordinary "
10858 "filesystems, and non-mounted devices like swap partitions."
10859 msgstr ""
10860
10861 #. type: textblock
10862 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10863 msgid ""
10864 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10865 "to be shared between operating systems."
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:2061
10870 msgid ""
10871 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10872 "get-mountpoints>."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:2064
10877 msgid "inspect-get-format"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:2066
10882 #, no-wrap
10883 msgid ""
10884 " inspect-get-format root\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10890 msgid ""
10891 "This returns the format of the inspected operating system.  You can use it "
10892 "to detect install images, live CDs and similar."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10897 msgid "Currently defined formats are:"
10898 msgstr ""
10899
10900 #. type: =item
10901 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10902 msgid "\"installed\""
10903 msgstr ""
10904
10905 #. type: textblock
10906 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10907 msgid "This is an installed operating system."
10908 msgstr ""
10909
10910 #. type: =item
10911 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10912 msgid "\"installer\""
10913 msgstr ""
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10917 msgid ""
10918 "The disk image being inspected is not an installed operating system, but a "
10919 "I<bootable> install disk, live CD, or similar."
10920 msgstr ""
10921
10922 #. type: textblock
10923 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10924 msgid "The format of this disk image is not known."
10925 msgstr ""
10926
10927 #. type: =head2
10928 #: ../fish/guestfish-actions.pod:2095
10929 msgid "inspect-get-hostname"
10930 msgstr ""
10931
10932 #. type: verbatim
10933 #: ../fish/guestfish-actions.pod:2097
10934 #, no-wrap
10935 msgid ""
10936 " inspect-get-hostname root\n"
10937 "\n"
10938 msgstr ""
10939
10940 #. type: textblock
10941 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10942 msgid ""
10943 "This function returns the hostname of the operating system as found by "
10944 "inspection of the guest's configuration files."
10945 msgstr ""
10946
10947 #. type: textblock
10948 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10949 msgid ""
10950 "If the hostname could not be determined, then the string C<unknown> is "
10951 "returned."
10952 msgstr ""
10953
10954 #. type: =head2
10955 #: ../fish/guestfish-actions.pod:2107
10956 msgid "inspect-get-icon"
10957 msgstr ""
10958
10959 #. type: verbatim
10960 #: ../fish/guestfish-actions.pod:2109
10961 #, no-wrap
10962 msgid ""
10963 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10964 "\n"
10965 msgstr ""
10966
10967 #. type: textblock
10968 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10969 msgid ""
10970 "This function returns an icon corresponding to the inspected operating "
10971 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10972 "to PNG if necessary)."
10973 msgstr ""
10974
10975 #. type: textblock
10976 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10977 msgid ""
10978 "If it was not possible to get an icon this function returns a zero-length "
10979 "(non-NULL) buffer.  I<Callers must check for this case>."
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10984 msgid ""
10985 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10986 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10987 "this file will be returned.  You can disable favicons by passing the "
10988 "optional C<favicon> boolean as false (default is true)."
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10993 msgid ""
10994 "If finding the favicon fails, then we look in other places in the guest for "
10995 "a suitable icon."
10996 msgstr ""
10997
10998 #. type: textblock
10999 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11000 msgid ""
11001 "If the optional C<highquality> boolean is true then only high quality icons "
11002 "are returned, which means only icons of high resolution with an alpha "
11003 "channel.  The default (false) is to return any icon we can, even if it is of "
11004 "substandard quality."
11005 msgstr ""
11006
11007 #. type: textblock
11008 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11009 msgid ""
11010 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11011 "before you call this, since it needs to read information from the guest "
11012 "filesystem during the call."
11013 msgstr ""
11014
11015 #. type: textblock
11016 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11017 msgid ""
11018 "B<Security:> The icon data comes from the untrusted guest, and should be "
11019 "treated with caution.  PNG files have been known to contain exploits.  "
11020 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11021 "trying to process or display the icon."
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11026 msgid ""
11027 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11028 "tries to return the largest, highest quality icon available.  The "
11029 "application must scale the icon to the required size."
11030 msgstr ""
11031
11032 #. type: textblock
11033 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11034 msgid ""
11035 "Extracting icons from Windows guests requires the external C<wrestool> "
11036 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11037 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11038 "installed separately."
11039 msgstr ""
11040
11041 #. type: textblock
11042 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11043 msgid ""
11044 "Operating system icons are usually trademarks.  Seek legal advice before "
11045 "using trademarks in applications."
11046 msgstr ""
11047
11048 #. type: =head2
11049 #: ../fish/guestfish-actions.pod:2173
11050 msgid "inspect-get-major-version"
11051 msgstr ""
11052
11053 #. type: verbatim
11054 #: ../fish/guestfish-actions.pod:2175
11055 #, no-wrap
11056 msgid ""
11057 " inspect-get-major-version root\n"
11058 "\n"
11059 msgstr ""
11060
11061 #. type: textblock
11062 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11063 msgid ""
11064 "This returns the major version number of the inspected operating system."
11065 msgstr ""
11066
11067 #. type: textblock
11068 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11069 msgid ""
11070 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11071 "popular public names used by the operating system.  Notably the operating "
11072 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11073 "1).  You can find out the real versions corresponding to releases of Windows "
11074 "by consulting Wikipedia or MSDN."
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11079 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11080 msgid "If the version could not be determined, then C<0> is returned."
11081 msgstr ""
11082
11083 #. type: =head2
11084 #: ../fish/guestfish-actions.pod:2191
11085 msgid "inspect-get-minor-version"
11086 msgstr ""
11087
11088 #. type: verbatim
11089 #: ../fish/guestfish-actions.pod:2193
11090 #, no-wrap
11091 msgid ""
11092 " inspect-get-minor-version root\n"
11093 "\n"
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11098 msgid ""
11099 "This returns the minor version number of the inspected operating system."
11100 msgstr ""
11101
11102 #. type: textblock
11103 #: ../fish/guestfish-actions.pod:2200
11104 msgid ""
11105 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11106 "get-major-version>."
11107 msgstr ""
11108
11109 #. type: =head2
11110 #: ../fish/guestfish-actions.pod:2203
11111 msgid "inspect-get-mountpoints"
11112 msgstr ""
11113
11114 #. type: verbatim
11115 #: ../fish/guestfish-actions.pod:2205
11116 #, no-wrap
11117 msgid ""
11118 " inspect-get-mountpoints root\n"
11119 "\n"
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11124 msgid ""
11125 "This returns a hash of where we think the filesystems associated with this "
11126 "operating system should be mounted.  Callers should note that this is at "
11127 "best an educated guess made by reading configuration files such as C</etc/"
11128 "fstab>.  I<In particular note> that this may return filesystems which are "
11129 "non-existent or not mountable and callers should be prepared to handle or "
11130 "ignore failures if they try to mount them."
11131 msgstr ""
11132
11133 #. type: textblock
11134 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11135 msgid ""
11136 "Each element in the returned hashtable has a key which is the path of the "
11137 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11138 "mounted there (eg. C</dev/sda1>)."
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11143 msgid ""
11144 "Non-mounted devices such as swap devices are I<not> returned in this list."
11145 msgstr ""
11146
11147 #. type: textblock
11148 #: ../fish/guestfish-actions.pod:2224
11149 msgid ""
11150 "For operating systems like Windows which still use drive letters, this call "
11151 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11152 "information about the mapping of drive letters to partitions, see L</inspect-"
11153 "get-drive-mappings>."
11154 msgstr ""
11155
11156 #. type: textblock
11157 #: ../fish/guestfish-actions.pod:2230
11158 msgid ""
11159 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11160 "get-filesystems>."
11161 msgstr ""
11162
11163 #. type: =head2
11164 #: ../fish/guestfish-actions.pod:2233
11165 msgid "inspect-get-package-format"
11166 msgstr ""
11167
11168 #. type: verbatim
11169 #: ../fish/guestfish-actions.pod:2235
11170 #, no-wrap
11171 msgid ""
11172 " inspect-get-package-format root\n"
11173 "\n"
11174 msgstr ""
11175
11176 #. type: textblock
11177 #: ../fish/guestfish-actions.pod:2237
11178 msgid ""
11179 "This function and L</inspect-get-package-management> return the package "
11180 "format and package management tool used by the inspected operating system.  "
11181 "For example for Fedora these functions would return C<rpm> (package format) "
11182 "and C<yum> (package management)."
11183 msgstr ""
11184
11185 #. type: textblock
11186 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11187 msgid ""
11188 "This returns the string C<unknown> if we could not determine the package "
11189 "format I<or> if the operating system does not have a real packaging system "
11190 "(eg. Windows)."
11191 msgstr ""
11192
11193 #. type: textblock
11194 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11195 msgid ""
11196 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11197 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11198 msgstr ""
11199
11200 #. type: =head2
11201 #: ../fish/guestfish-actions.pod:2253
11202 msgid "inspect-get-package-management"
11203 msgstr ""
11204
11205 #. type: verbatim
11206 #: ../fish/guestfish-actions.pod:2255
11207 #, no-wrap
11208 msgid ""
11209 " inspect-get-package-management root\n"
11210 "\n"
11211 msgstr ""
11212
11213 #. type: textblock
11214 #: ../fish/guestfish-actions.pod:2257
11215 msgid ""
11216 "L</inspect-get-package-format> and this function return the package format "
11217 "and package management tool used by the inspected operating system.  For "
11218 "example for Fedora these functions would return C<rpm> (package format) and "
11219 "C<yum> (package management)."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11224 msgid ""
11225 "This returns the string C<unknown> if we could not determine the package "
11226 "management tool I<or> if the operating system does not have a real packaging "
11227 "system (eg. Windows)."
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11232 msgid ""
11233 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11234 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11235 "versions of libguestfs may return other strings."
11236 msgstr ""
11237
11238 #. type: =head2
11239 #: ../fish/guestfish-actions.pod:2274
11240 msgid "inspect-get-product-name"
11241 msgstr ""
11242
11243 #. type: verbatim
11244 #: ../fish/guestfish-actions.pod:2276
11245 #, no-wrap
11246 msgid ""
11247 " inspect-get-product-name root\n"
11248 "\n"
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11253 msgid ""
11254 "This returns the product name of the inspected operating system.  The "
11255 "product name is generally some freeform string which can be displayed to the "
11256 "user, but should not be parsed by programs."
11257 msgstr ""
11258
11259 #. type: textblock
11260 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11261 msgid ""
11262 "If the product name could not be determined, then the string C<unknown> is "
11263 "returned."
11264 msgstr ""
11265
11266 #. type: =head2
11267 #: ../fish/guestfish-actions.pod:2288
11268 msgid "inspect-get-product-variant"
11269 msgstr ""
11270
11271 #. type: verbatim
11272 #: ../fish/guestfish-actions.pod:2290
11273 #, no-wrap
11274 msgid ""
11275 " inspect-get-product-variant root\n"
11276 "\n"
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11281 msgid "This returns the product variant of the inspected operating system."
11282 msgstr ""
11283
11284 #. type: textblock
11285 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11286 msgid ""
11287 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11288 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11289 "is usually a string such as C<Client> or C<Server> (other values are "
11290 "possible).  This can be used to distinguish consumer and enterprise versions "
11291 "of Windows that have the same version number (for example, Windows 7 and "
11292 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11293 "the latter is C<Server>)."
11294 msgstr ""
11295
11296 #. type: textblock
11297 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11298 msgid ""
11299 "For enterprise Linux guests, in future we intend this to return the product "
11300 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11301 "implemented at present."
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11306 msgid ""
11307 "If the product variant could not be determined, then the string C<unknown> "
11308 "is returned."
11309 msgstr ""
11310
11311 #. type: textblock
11312 #: ../fish/guestfish-actions.pod:2311
11313 msgid ""
11314 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11315 "get-product-name>, L</inspect-get-major-version>."
11316 msgstr ""
11317
11318 #. type: =head2
11319 #: ../fish/guestfish-actions.pod:2315
11320 msgid "inspect-get-roots"
11321 msgstr ""
11322
11323 #. type: verbatim
11324 #: ../fish/guestfish-actions.pod:2317
11325 #, no-wrap
11326 msgid ""
11327 " inspect-get-roots\n"
11328 "\n"
11329 msgstr ""
11330
11331 #. type: textblock
11332 #: ../fish/guestfish-actions.pod:2319
11333 msgid ""
11334 "This function is a convenient way to get the list of root devices, as "
11335 "returned from a previous call to L</inspect-os>, but without redoing the "
11336 "whole inspection process."
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:2323
11341 msgid ""
11342 "This returns an empty list if either no root devices were found or the "
11343 "caller has not called L</inspect-os>."
11344 msgstr ""
11345
11346 #. type: =head2
11347 #: ../fish/guestfish-actions.pod:2328
11348 msgid "inspect-get-type"
11349 msgstr ""
11350
11351 #. type: verbatim
11352 #: ../fish/guestfish-actions.pod:2330
11353 #, no-wrap
11354 msgid ""
11355 " inspect-get-type root\n"
11356 "\n"
11357 msgstr ""
11358
11359 #. type: textblock
11360 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11361 msgid ""
11362 "This returns the type of the inspected operating system.  Currently defined "
11363 "types are:"
11364 msgstr ""
11365
11366 #. type: =item
11367 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11368 msgid "\"linux\""
11369 msgstr ""
11370
11371 #. type: textblock
11372 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11373 msgid "Any Linux-based operating system."
11374 msgstr ""
11375
11376 #. type: textblock
11377 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11378 msgid "Any Microsoft Windows operating system."
11379 msgstr ""
11380
11381 #. type: =item
11382 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11383 msgid "\"freebsd\""
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11388 msgid "FreeBSD."
11389 msgstr ""
11390
11391 #. type: =item
11392 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11393 msgid "\"netbsd\""
11394 msgstr ""
11395
11396 #. type: textblock
11397 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11398 msgid "NetBSD."
11399 msgstr ""
11400
11401 #. type: textblock
11402 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11403 msgid "The operating system type could not be determined."
11404 msgstr ""
11405
11406 #. type: =head2
11407 #: ../fish/guestfish-actions.pod:2364
11408 msgid "inspect-get-windows-current-control-set"
11409 msgstr ""
11410
11411 #. type: verbatim
11412 #: ../fish/guestfish-actions.pod:2366
11413 #, no-wrap
11414 msgid ""
11415 " inspect-get-windows-current-control-set root\n"
11416 "\n"
11417 msgstr ""
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
11421 msgid ""
11422 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11423 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11424 msgstr ""
11425
11426 #. type: textblock
11427 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
11428 msgid ""
11429 "This call assumes that the guest is Windows and that the Registry could be "
11430 "examined by inspection.  If this is not the case then an error is returned."
11431 msgstr ""
11432
11433 #. type: =head2
11434 #: ../fish/guestfish-actions.pod:2377
11435 msgid "inspect-get-windows-systemroot"
11436 msgstr ""
11437
11438 #. type: verbatim
11439 #: ../fish/guestfish-actions.pod:2379
11440 #, no-wrap
11441 msgid ""
11442 " inspect-get-windows-systemroot root\n"
11443 "\n"
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11448 msgid ""
11449 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11450 "is a directory path such as C</WINDOWS>."
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11455 msgid ""
11456 "This call assumes that the guest is Windows and that the systemroot could be "
11457 "determined by inspection.  If this is not the case then an error is returned."
11458 msgstr ""
11459
11460 #. type: =head2
11461 #: ../fish/guestfish-actions.pod:2390
11462 msgid "inspect-is-live"
11463 msgstr ""
11464
11465 #. type: verbatim
11466 #: ../fish/guestfish-actions.pod:2392
11467 #, no-wrap
11468 msgid ""
11469 " inspect-is-live root\n"
11470 "\n"
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:2394
11475 msgid ""
11476 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11477 "then this returns true if a live image was detected on the disk."
11478 msgstr ""
11479
11480 #. type: =head2
11481 #: ../fish/guestfish-actions.pod:2400
11482 msgid "inspect-is-multipart"
11483 msgstr ""
11484
11485 #. type: verbatim
11486 #: ../fish/guestfish-actions.pod:2402
11487 #, no-wrap
11488 msgid ""
11489 " inspect-is-multipart root\n"
11490 "\n"
11491 msgstr ""
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:2404
11495 msgid ""
11496 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11497 "then this returns true if the disk is part of a set."
11498 msgstr ""
11499
11500 #. type: =head2
11501 #: ../fish/guestfish-actions.pod:2410
11502 msgid "inspect-is-netinst"
11503 msgstr ""
11504
11505 #. type: verbatim
11506 #: ../fish/guestfish-actions.pod:2412
11507 #, no-wrap
11508 msgid ""
11509 " inspect-is-netinst root\n"
11510 "\n"
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:2414
11515 msgid ""
11516 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11517 "then this returns true if the disk is a network installer, ie. not a self-"
11518 "contained install CD but one which is likely to require network access to "
11519 "complete the install."
11520 msgstr ""
11521
11522 #. type: =head2
11523 #: ../fish/guestfish-actions.pod:2422
11524 msgid "inspect-list-applications"
11525 msgstr ""
11526
11527 #. type: verbatim
11528 #: ../fish/guestfish-actions.pod:2424
11529 #, no-wrap
11530 msgid ""
11531 " inspect-list-applications root\n"
11532 "\n"
11533 msgstr ""
11534
11535 #. type: textblock
11536 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11537 msgid "Return the list of applications installed in the operating system."
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:2428
11542 msgid ""
11543 "I<Note:> This call works differently from other parts of the inspection "
11544 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11545 "then mount up the disks, before calling this.  Listing applications is a "
11546 "significantly more difficult operation which requires access to the full "
11547 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11548 "are just returning data cached in the libguestfs handle, this call actually "
11549 "reads parts of the mounted filesystems during the call."
11550 msgstr ""
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11554 msgid ""
11555 "This returns an empty list if the inspection code was not able to determine "
11556 "the list of applications."
11557 msgstr ""
11558
11559 #. type: textblock
11560 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11561 msgid "The application structure contains the following fields:"
11562 msgstr ""
11563
11564 #. type: =item
11565 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11566 msgid "C<app_name>"
11567 msgstr ""
11568
11569 #. type: textblock
11570 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
11571 msgid ""
11572 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11573 "guests, this is the package name."
11574 msgstr ""
11575
11576 #. type: =item
11577 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
11578 msgid "C<app_display_name>"
11579 msgstr ""
11580
11581 #. type: textblock
11582 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
11583 msgid ""
11584 "The display name of the application, sometimes localized to the install "
11585 "language of the guest operating system."
11586 msgstr ""
11587
11588 #. type: textblock
11589 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11590 msgid ""
11591 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11592 "to display something can use C<app_name> instead."
11593 msgstr ""
11594
11595 #. type: =item
11596 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11597 msgid "C<app_epoch>"
11598 msgstr ""
11599
11600 #. type: textblock
11601 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11602 msgid ""
11603 "For package managers which use epochs, this contains the epoch of the "
11604 "package (an integer).  If unavailable, this is returned as C<0>."
11605 msgstr ""
11606
11607 #. type: =item
11608 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11609 msgid "C<app_version>"
11610 msgstr ""
11611
11612 #. type: textblock
11613 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11614 msgid ""
11615 "The version string of the application or package.  If unavailable this is "
11616 "returned as an empty string C<\"\">."
11617 msgstr ""
11618
11619 #. type: =item
11620 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11621 msgid "C<app_release>"
11622 msgstr ""
11623
11624 #. type: textblock
11625 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11626 msgid ""
11627 "The release string of the application or package, for package managers that "
11628 "use this.  If unavailable this is returned as an empty string C<\"\">."
11629 msgstr ""
11630
11631 #. type: =item
11632 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11633 msgid "C<app_install_path>"
11634 msgstr ""
11635
11636 #. type: textblock
11637 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11638 msgid ""
11639 "The installation path of the application (on operating systems such as "
11640 "Windows which use installation paths).  This path is in the format used by "
11641 "the guest operating system, it is not a libguestfs path."
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11646 msgid "If unavailable this is returned as an empty string C<\"\">."
11647 msgstr ""
11648
11649 #. type: =item
11650 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11651 msgid "C<app_trans_path>"
11652 msgstr ""
11653
11654 #. type: textblock
11655 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11656 msgid ""
11657 "The install path translated into a libguestfs path.  If unavailable this is "
11658 "returned as an empty string C<\"\">."
11659 msgstr ""
11660
11661 #. type: =item
11662 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11663 msgid "C<app_publisher>"
11664 msgstr ""
11665
11666 #. type: textblock
11667 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11668 msgid ""
11669 "The name of the publisher of the application, for package managers that use "
11670 "this.  If unavailable this is returned as an empty string C<\"\">."
11671 msgstr ""
11672
11673 #. type: =item
11674 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11675 msgid "C<app_url>"
11676 msgstr ""
11677
11678 #. type: textblock
11679 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11680 msgid ""
11681 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11682 "returned as an empty string C<\"\">."
11683 msgstr ""
11684
11685 #. type: =item
11686 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11687 msgid "C<app_source_package>"
11688 msgstr ""
11689
11690 #. type: textblock
11691 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11692 msgid ""
11693 "For packaging systems which support this, the name of the source package.  "
11694 "If unavailable this is returned as an empty string C<\"\">."
11695 msgstr ""
11696
11697 #. type: =item
11698 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11699 msgid "C<app_summary>"
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11704 msgid ""
11705 "A short (usually one line) description of the application or package.  If "
11706 "unavailable this is returned as an empty string C<\"\">."
11707 msgstr ""
11708
11709 #. type: =item
11710 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11711 msgid "C<app_description>"
11712 msgstr ""
11713
11714 #. type: textblock
11715 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11716 msgid ""
11717 "A longer description of the application or package.  If unavailable this is "
11718 "returned as an empty string C<\"\">."
11719 msgstr ""
11720
11721 #. type: =head2
11722 #: ../fish/guestfish-actions.pod:2518
11723 msgid "inspect-os"
11724 msgstr ""
11725
11726 #. type: verbatim
11727 #: ../fish/guestfish-actions.pod:2520
11728 #, no-wrap
11729 msgid ""
11730 " inspect-os\n"
11731 "\n"
11732 msgstr ""
11733
11734 #. type: textblock
11735 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11736 msgid ""
11737 "This function uses other libguestfs functions and certain heuristics to "
11738 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11739 "for operating systems."
11740 msgstr ""
11741
11742 #. type: textblock
11743 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11744 msgid "The list returned is empty if no operating systems were found."
11745 msgstr ""
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11749 msgid ""
11750 "If one operating system was found, then this returns a list with a single "
11751 "element, which is the name of the root filesystem of this operating system.  "
11752 "It is also possible for this function to return a list containing more than "
11753 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11754 "element being the root filesystem of one of the operating systems."
11755 msgstr ""
11756
11757 #. type: textblock
11758 #: ../fish/guestfish-actions.pod:2535
11759 msgid ""
11760 "You can pass the root string(s) returned to other L</inspect-get-*> "
11761 "functions in order to query further information about each operating system, "
11762 "such as the name and version."
11763 msgstr ""
11764
11765 #. type: textblock
11766 #: ../fish/guestfish-actions.pod:2540
11767 msgid ""
11768 "This function uses other libguestfs features such as L</mount-ro> and L</"
11769 "umount-all> in order to mount and unmount filesystems and look at the "
11770 "contents.  This should be called with no disks currently mounted.  The "
11771 "function may also use Augeas, so any existing Augeas handle will be closed."
11772 msgstr ""
11773
11774 #. type: textblock
11775 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11776 msgid ""
11777 "This function cannot decrypt encrypted disks.  The caller must do that first "
11778 "(supplying the necessary keys) if the disk is encrypted."
11779 msgstr ""
11780
11781 #. type: textblock
11782 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11783 #: ../fish/guestfish-actions.pod:2815
11784 msgid "See also L</list-filesystems>."
11785 msgstr ""
11786
11787 #. type: =head2
11788 #: ../fish/guestfish-actions.pod:2554
11789 msgid "is-blockdev"
11790 msgstr ""
11791
11792 #. type: verbatim
11793 #: ../fish/guestfish-actions.pod:2556
11794 #, no-wrap
11795 msgid ""
11796 " is-blockdev path\n"
11797 "\n"
11798 msgstr ""
11799
11800 #. type: textblock
11801 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11802 msgid ""
11803 "This returns C<true> if and only if there is a block device with the given "
11804 "C<path> name."
11805 msgstr ""
11806
11807 #. type: textblock
11808 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11809 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11810 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11811 #: ../fish/guestfish-actions.pod:2660
11812 msgid "See also L</stat>."
11813 msgstr ""
11814
11815 #. type: =head2
11816 #: ../fish/guestfish-actions.pod:2563
11817 msgid "is-busy"
11818 msgstr ""
11819
11820 #. type: verbatim
11821 #: ../fish/guestfish-actions.pod:2565
11822 #, no-wrap
11823 msgid ""
11824 " is-busy\n"
11825 "\n"
11826 msgstr ""
11827
11828 #. type: textblock
11829 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11830 msgid ""
11831 "This returns true iff this handle is busy processing a command (in the "
11832 "C<BUSY> state)."
11833 msgstr ""
11834
11835 #. type: =head2
11836 #: ../fish/guestfish-actions.pod:2572
11837 msgid "is-chardev"
11838 msgstr ""
11839
11840 #. type: verbatim
11841 #: ../fish/guestfish-actions.pod:2574
11842 #, no-wrap
11843 msgid ""
11844 " is-chardev path\n"
11845 "\n"
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11850 msgid ""
11851 "This returns C<true> if and only if there is a character device with the "
11852 "given C<path> name."
11853 msgstr ""
11854
11855 #. type: =head2
11856 #: ../fish/guestfish-actions.pod:2581
11857 msgid "is-config"
11858 msgstr ""
11859
11860 #. type: verbatim
11861 #: ../fish/guestfish-actions.pod:2583
11862 #, no-wrap
11863 msgid ""
11864 " is-config\n"
11865 "\n"
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11870 msgid ""
11871 "This returns true iff this handle is being configured (in the C<CONFIG> "
11872 "state)."
11873 msgstr ""
11874
11875 #. type: =head2
11876 #: ../fish/guestfish-actions.pod:2590
11877 msgid "is-dir"
11878 msgstr ""
11879
11880 #. type: verbatim
11881 #: ../fish/guestfish-actions.pod:2592
11882 #, no-wrap
11883 msgid ""
11884 " is-dir path\n"
11885 "\n"
11886 msgstr ""
11887
11888 #. type: textblock
11889 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11890 msgid ""
11891 "This returns C<true> if and only if there is a directory with the given "
11892 "C<path> name.  Note that it returns false for other objects like files."
11893 msgstr ""
11894
11895 #. type: =head2
11896 #: ../fish/guestfish-actions.pod:2600
11897 msgid "is-fifo"
11898 msgstr ""
11899
11900 #. type: verbatim
11901 #: ../fish/guestfish-actions.pod:2602
11902 #, no-wrap
11903 msgid ""
11904 " is-fifo path\n"
11905 "\n"
11906 msgstr ""
11907
11908 #. type: textblock
11909 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11910 msgid ""
11911 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11912 "given C<path> name."
11913 msgstr ""
11914
11915 #. type: =head2
11916 #: ../fish/guestfish-actions.pod:2609
11917 msgid "is-file"
11918 msgstr ""
11919
11920 #. type: verbatim
11921 #: ../fish/guestfish-actions.pod:2611
11922 #, no-wrap
11923 msgid ""
11924 " is-file path\n"
11925 "\n"
11926 msgstr ""
11927
11928 #. type: textblock
11929 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11930 msgid ""
11931 "This returns C<true> if and only if there is a regular file with the given "
11932 "C<path> name.  Note that it returns false for other objects like directories."
11933 msgstr ""
11934
11935 #. type: =head2
11936 #: ../fish/guestfish-actions.pod:2619
11937 msgid "is-launching"
11938 msgstr ""
11939
11940 #. type: verbatim
11941 #: ../fish/guestfish-actions.pod:2621
11942 #, no-wrap
11943 msgid ""
11944 " is-launching\n"
11945 "\n"
11946 msgstr ""
11947
11948 #. type: textblock
11949 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11950 msgid ""
11951 "This returns true iff this handle is launching the subprocess (in the "
11952 "C<LAUNCHING> state)."
11953 msgstr ""
11954
11955 #. type: =head2
11956 #: ../fish/guestfish-actions.pod:2628
11957 msgid "is-lv"
11958 msgstr ""
11959
11960 #. type: verbatim
11961 #: ../fish/guestfish-actions.pod:2630
11962 #, no-wrap
11963 msgid ""
11964 " is-lv device\n"
11965 "\n"
11966 msgstr ""
11967
11968 #. type: textblock
11969 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11970 msgid ""
11971 "This command tests whether C<device> is a logical volume, and returns true "
11972 "iff this is the case."
11973 msgstr ""
11974
11975 #. type: =head2
11976 #: ../fish/guestfish-actions.pod:2635
11977 msgid "is-ready"
11978 msgstr ""
11979
11980 #. type: verbatim
11981 #: ../fish/guestfish-actions.pod:2637
11982 #, no-wrap
11983 msgid ""
11984 " is-ready\n"
11985 "\n"
11986 msgstr ""
11987
11988 #. type: textblock
11989 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11990 msgid ""
11991 "This returns true iff this handle is ready to accept commands (in the "
11992 "C<READY> state)."
11993 msgstr ""
11994
11995 #. type: =head2
11996 #: ../fish/guestfish-actions.pod:2644
11997 msgid "is-socket"
11998 msgstr ""
11999
12000 #. type: verbatim
12001 #: ../fish/guestfish-actions.pod:2646
12002 #, no-wrap
12003 msgid ""
12004 " is-socket path\n"
12005 "\n"
12006 msgstr ""
12007
12008 #. type: textblock
12009 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
12010 msgid ""
12011 "This returns C<true> if and only if there is a Unix domain socket with the "
12012 "given C<path> name."
12013 msgstr ""
12014
12015 #. type: =head2
12016 #: ../fish/guestfish-actions.pod:2653
12017 msgid "is-symlink"
12018 msgstr ""
12019
12020 #. type: verbatim
12021 #: ../fish/guestfish-actions.pod:2655
12022 #, no-wrap
12023 msgid ""
12024 " is-symlink path\n"
12025 "\n"
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
12030 msgid ""
12031 "This returns C<true> if and only if there is a symbolic link with the given "
12032 "C<path> name."
12033 msgstr ""
12034
12035 #. type: =head2
12036 #: ../fish/guestfish-actions.pod:2662
12037 msgid "is-zero"
12038 msgstr ""
12039
12040 #. type: verbatim
12041 #: ../fish/guestfish-actions.pod:2664
12042 #, no-wrap
12043 msgid ""
12044 " is-zero path\n"
12045 "\n"
12046 msgstr ""
12047
12048 #. type: textblock
12049 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
12050 msgid ""
12051 "This returns true iff the file exists and the file is empty or it contains "
12052 "all zero bytes."
12053 msgstr ""
12054
12055 #. type: =head2
12056 #: ../fish/guestfish-actions.pod:2669
12057 msgid "is-zero-device"
12058 msgstr ""
12059
12060 #. type: verbatim
12061 #: ../fish/guestfish-actions.pod:2671
12062 #, no-wrap
12063 msgid ""
12064 " is-zero-device device\n"
12065 "\n"
12066 msgstr ""
12067
12068 #. type: textblock
12069 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
12070 msgid "This returns true iff the device exists and contains all zero bytes."
12071 msgstr ""
12072
12073 #. type: textblock
12074 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
12075 msgid "Note that for large devices this can take a long time to run."
12076 msgstr ""
12077
12078 #. type: =head2
12079 #: ../fish/guestfish-actions.pod:2677
12080 msgid "kill-subprocess"
12081 msgstr ""
12082
12083 #. type: verbatim
12084 #: ../fish/guestfish-actions.pod:2679
12085 #, no-wrap
12086 msgid ""
12087 " kill-subprocess\n"
12088 "\n"
12089 msgstr ""
12090
12091 #. type: textblock
12092 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
12093 msgid "This kills the qemu subprocess.  You should never need to call this."
12094 msgstr ""
12095
12096 #. type: =head2
12097 #: ../fish/guestfish-actions.pod:2683
12098 msgid "launch"
12099 msgstr ""
12100
12101 #. type: =head2
12102 #: ../fish/guestfish-actions.pod:2685
12103 msgid "run"
12104 msgstr ""
12105
12106 #. type: verbatim
12107 #: ../fish/guestfish-actions.pod:2687
12108 #, no-wrap
12109 msgid ""
12110 " launch\n"
12111 "\n"
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
12116 msgid ""
12117 "Internally libguestfs is implemented by running a virtual machine using "
12118 "L<qemu(1)>."
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
12123 msgid ""
12124 "You should call this after configuring the handle (eg. adding drives) but "
12125 "before performing any actions."
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../fish/guestfish-actions.pod:2695
12130 msgid "lchown"
12131 msgstr ""
12132
12133 #. type: verbatim
12134 #: ../fish/guestfish-actions.pod:2697
12135 #, no-wrap
12136 msgid ""
12137 " lchown owner group path\n"
12138 "\n"
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../fish/guestfish-actions.pod:2699
12143 msgid ""
12144 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12145 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12146 "target."
12147 msgstr ""
12148
12149 #. type: =head2
12150 #: ../fish/guestfish-actions.pod:2707
12151 msgid "lgetxattr"
12152 msgstr ""
12153
12154 #. type: verbatim
12155 #: ../fish/guestfish-actions.pod:2709
12156 #, no-wrap
12157 msgid ""
12158 " lgetxattr path name\n"
12159 "\n"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
12164 msgid ""
12165 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12166 "is a symlink, then this call returns an extended attribute from the symlink."
12167 msgstr ""
12168
12169 #. type: textblock
12170 #: ../fish/guestfish-actions.pod:2725
12171 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12172 msgstr ""
12173
12174 #. type: =head2
12175 #: ../fish/guestfish-actions.pod:2727
12176 msgid "lgetxattrs"
12177 msgstr ""
12178
12179 #. type: verbatim
12180 #: ../fish/guestfish-actions.pod:2729
12181 #, no-wrap
12182 msgid ""
12183 " lgetxattrs path\n"
12184 "\n"
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../fish/guestfish-actions.pod:2731
12189 msgid ""
12190 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12191 "it returns the extended attributes of the link itself."
12192 msgstr ""
12193
12194 #. type: =head2
12195 #: ../fish/guestfish-actions.pod:2735
12196 msgid "list-9p"
12197 msgstr ""
12198
12199 #. type: verbatim
12200 #: ../fish/guestfish-actions.pod:2737
12201 #, no-wrap
12202 msgid ""
12203 " list-9p\n"
12204 "\n"
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
12209 msgid ""
12210 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12211 "returned."
12212 msgstr ""
12213
12214 #. type: =head2
12215 #: ../fish/guestfish-actions.pod:2742
12216 msgid "list-devices"
12217 msgstr ""
12218
12219 #. type: verbatim
12220 #: ../fish/guestfish-actions.pod:2744
12221 #, no-wrap
12222 msgid ""
12223 " list-devices\n"
12224 "\n"
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
12229 msgid "List all the block devices."
12230 msgstr ""
12231
12232 #. type: textblock
12233 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
12234 msgid "The full block device names are returned, eg. C</dev/sda>."
12235 msgstr ""
12236
12237 #. type: =head2
12238 #: ../fish/guestfish-actions.pod:2752
12239 msgid "list-dm-devices"
12240 msgstr ""
12241
12242 #. type: verbatim
12243 #: ../fish/guestfish-actions.pod:2754
12244 #, no-wrap
12245 msgid ""
12246 " list-dm-devices\n"
12247 "\n"
12248 msgstr ""
12249
12250 #. type: textblock
12251 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
12252 msgid "List all device mapper devices."
12253 msgstr ""
12254
12255 #. type: textblock
12256 #: ../fish/guestfish-actions.pod:2758
12257 msgid ""
12258 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12259 "previous call to L</luks-open>."
12260 msgstr ""
12261
12262 #. type: textblock
12263 #: ../fish/guestfish-actions.pod:2761
12264 msgid ""
12265 "Device mapper devices which correspond to logical volumes are I<not> "
12266 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12267 msgstr ""
12268
12269 #. type: =head2
12270 #: ../fish/guestfish-actions.pod:2765
12271 msgid "list-filesystems"
12272 msgstr ""
12273
12274 #. type: verbatim
12275 #: ../fish/guestfish-actions.pod:2767
12276 #, no-wrap
12277 msgid ""
12278 " list-filesystems\n"
12279 "\n"
12280 msgstr ""
12281
12282 #. type: textblock
12283 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
12284 msgid ""
12285 "This inspection command looks for filesystems on partitions, block devices "
12286 "and logical volumes, returning a list of devices containing filesystems and "
12287 "their type."
12288 msgstr ""
12289
12290 #. type: textblock
12291 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12292 msgid ""
12293 "The return value is a hash, where the keys are the devices containing "
12294 "filesystems, and the values are the filesystem types.  For example:"
12295 msgstr ""
12296
12297 #. type: verbatim
12298 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12299 #, no-wrap
12300 msgid ""
12301 " \"/dev/sda1\" => \"ntfs\"\n"
12302 " \"/dev/sda2\" => \"ext2\"\n"
12303 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12304 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12305 "\n"
12306 msgstr ""
12307
12308 #. type: textblock
12309 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
12310 msgid ""
12311 "The value can have the special value \"unknown\", meaning the content of the "
12312 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12313 msgstr ""
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:2786
12317 msgid ""
12318 "This command runs other libguestfs commands, which might include L</mount> "
12319 "and L</umount>, and therefore you should use this soon after launch and only "
12320 "when nothing is mounted."
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:2790
12325 msgid ""
12326 "Not all of the filesystems returned will be mountable.  In particular, swap "
12327 "partitions are returned in the list.  Also this command does not check that "
12328 "each filesystem found is valid and mountable, and some filesystems might be "
12329 "mountable but require special options.  Filesystems may not all belong to a "
12330 "single logical operating system (use L</inspect-os> to look for OSes)."
12331 msgstr ""
12332
12333 #. type: =head2
12334 #: ../fish/guestfish-actions.pod:2798
12335 msgid "list-md-devices"
12336 msgstr ""
12337
12338 #. type: verbatim
12339 #: ../fish/guestfish-actions.pod:2800
12340 #, no-wrap
12341 msgid ""
12342 " list-md-devices\n"
12343 "\n"
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
12348 msgid "List all Linux md devices."
12349 msgstr ""
12350
12351 #. type: =head2
12352 #: ../fish/guestfish-actions.pod:2804
12353 msgid "list-partitions"
12354 msgstr ""
12355
12356 #. type: verbatim
12357 #: ../fish/guestfish-actions.pod:2806
12358 #, no-wrap
12359 msgid ""
12360 " list-partitions\n"
12361 "\n"
12362 msgstr ""
12363
12364 #. type: textblock
12365 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4287
12366 msgid "List all the partitions detected on all block devices."
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4289
12371 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12372 msgstr ""
12373
12374 #. type: textblock
12375 #: ../fish/guestfish-actions.pod:2812
12376 msgid ""
12377 "This does not return logical volumes.  For that you will need to call L</"
12378 "lvs>."
12379 msgstr ""
12380
12381 #. type: =head2
12382 #: ../fish/guestfish-actions.pod:2817
12383 msgid "ll"
12384 msgstr ""
12385
12386 #. type: verbatim
12387 #: ../fish/guestfish-actions.pod:2819
12388 #, no-wrap
12389 msgid ""
12390 " ll directory\n"
12391 "\n"
12392 msgstr ""
12393
12394 #. type: textblock
12395 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4308
12396 msgid ""
12397 "List the files in C<directory> (relative to the root directory, there is no "
12398 "cwd) in the format of 'ls -la'."
12399 msgstr ""
12400
12401 #. type: textblock
12402 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4311
12403 msgid ""
12404 "This command is mostly useful for interactive sessions.  It is I<not> "
12405 "intended that you try to parse the output string."
12406 msgstr ""
12407
12408 #. type: =head2
12409 #: ../fish/guestfish-actions.pod:2827
12410 msgid "ln"
12411 msgstr ""
12412
12413 #. type: verbatim
12414 #: ../fish/guestfish-actions.pod:2829
12415 #, no-wrap
12416 msgid ""
12417 " ln target linkname\n"
12418 "\n"
12419 msgstr ""
12420
12421 #. type: textblock
12422 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4326
12423 msgid "This command creates a hard link using the C<ln> command."
12424 msgstr ""
12425
12426 #. type: =head2
12427 #: ../fish/guestfish-actions.pod:2833
12428 msgid "ln-f"
12429 msgstr ""
12430
12431 #. type: verbatim
12432 #: ../fish/guestfish-actions.pod:2835
12433 #, no-wrap
12434 msgid ""
12435 " ln-f target linkname\n"
12436 "\n"
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4339
12441 msgid ""
12442 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12443 "option removes the link (C<linkname>) if it exists already."
12444 msgstr ""
12445
12446 #. type: =head2
12447 #: ../fish/guestfish-actions.pod:2840
12448 msgid "ln-s"
12449 msgstr ""
12450
12451 #. type: verbatim
12452 #: ../fish/guestfish-actions.pod:2842
12453 #, no-wrap
12454 msgid ""
12455 " ln-s target linkname\n"
12456 "\n"
12457 msgstr ""
12458
12459 #. type: textblock
12460 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4353
12461 msgid "This command creates a symbolic link using the C<ln -s> command."
12462 msgstr ""
12463
12464 #. type: =head2
12465 #: ../fish/guestfish-actions.pod:2846
12466 msgid "ln-sf"
12467 msgstr ""
12468
12469 #. type: verbatim
12470 #: ../fish/guestfish-actions.pod:2848
12471 #, no-wrap
12472 msgid ""
12473 " ln-sf target linkname\n"
12474 "\n"
12475 msgstr ""
12476
12477 #. type: textblock
12478 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4366
12479 msgid ""
12480 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12481 "option removes the link (C<linkname>) if it exists already."
12482 msgstr ""
12483
12484 #. type: =head2
12485 #: ../fish/guestfish-actions.pod:2853
12486 msgid "lremovexattr"
12487 msgstr ""
12488
12489 #. type: verbatim
12490 #: ../fish/guestfish-actions.pod:2855
12491 #, no-wrap
12492 msgid ""
12493 " lremovexattr xattr path\n"
12494 "\n"
12495 msgstr ""
12496
12497 #. type: textblock
12498 #: ../fish/guestfish-actions.pod:2857
12499 msgid ""
12500 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12501 "it removes an extended attribute of the link itself."
12502 msgstr ""
12503
12504 #. type: =head2
12505 #: ../fish/guestfish-actions.pod:2861
12506 msgid "ls"
12507 msgstr ""
12508
12509 #. type: verbatim
12510 #: ../fish/guestfish-actions.pod:2863
12511 #, no-wrap
12512 msgid ""
12513 " ls directory\n"
12514 "\n"
12515 msgstr ""
12516
12517 #. type: textblock
12518 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4394
12519 msgid ""
12520 "List the files in C<directory> (relative to the root directory, there is no "
12521 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12522 msgstr ""
12523
12524 #. type: textblock
12525 #: ../fish/guestfish-actions.pod:2869
12526 msgid ""
12527 "This command is mostly useful for interactive sessions.  Programs should "
12528 "probably use L</readdir> instead."
12529 msgstr ""
12530
12531 #. type: =head2
12532 #: ../fish/guestfish-actions.pod:2872
12533 msgid "lsetxattr"
12534 msgstr ""
12535
12536 #. type: verbatim
12537 #: ../fish/guestfish-actions.pod:2874
12538 #, no-wrap
12539 msgid ""
12540 " lsetxattr xattr val vallen path\n"
12541 "\n"
12542 msgstr ""
12543
12544 #. type: textblock
12545 #: ../fish/guestfish-actions.pod:2876
12546 msgid ""
12547 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12548 "sets an extended attribute of the link itself."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:2880
12553 msgid "lstat"
12554 msgstr ""
12555
12556 #. type: verbatim
12557 #: ../fish/guestfish-actions.pod:2882
12558 #, no-wrap
12559 msgid ""
12560 " lstat path\n"
12561 "\n"
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4775
12566 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:7349
12567 msgid "Returns file information for the given C<path>."
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../fish/guestfish-actions.pod:2886
12572 msgid ""
12573 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12574 "the link is stat-ed, not the file it refers to."
12575 msgstr ""
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4436
12579 msgid "This is the same as the C<lstat(2)> system call."
12580 msgstr ""
12581
12582 #. type: =head2
12583 #: ../fish/guestfish-actions.pod:2892
12584 msgid "lstatlist"
12585 msgstr ""
12586
12587 #. type: verbatim
12588 #: ../fish/guestfish-actions.pod:2894
12589 #, no-wrap
12590 msgid ""
12591 " lstatlist path 'names ...'\n"
12592 "\n"
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:2896
12597 msgid ""
12598 "This call allows you to perform the L</lstat> operation on multiple files, "
12599 "where all files are in the directory C<path>.  C<names> is the list of files "
12600 "from this directory."
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4455
12605 msgid ""
12606 "On return you get a list of stat structs, with a one-to-one correspondence "
12607 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12608 "then the C<ino> field of that structure is set to C<-1>."
12609 msgstr ""
12610
12611 #. type: textblock
12612 #: ../fish/guestfish-actions.pod:2905
12613 msgid ""
12614 "This call is intended for programs that want to efficiently list a directory "
12615 "contents without making many round-trips.  See also L</lxattrlist> for a "
12616 "similarly efficient call for getting extended attributes.  Very long "
12617 "directory listings might cause the protocol message size to be exceeded, "
12618 "causing this call to fail.  The caller must split up such requests into "
12619 "smaller groups of names."
12620 msgstr ""
12621
12622 #. type: =head2
12623 #: ../fish/guestfish-actions.pod:2913
12624 msgid "luks-add-key"
12625 msgstr ""
12626
12627 #. type: verbatim
12628 #: ../fish/guestfish-actions.pod:2915
12629 #, no-wrap
12630 msgid ""
12631 " luks-add-key device keyslot\n"
12632 "\n"
12633 msgstr ""
12634
12635 #. type: textblock
12636 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4483
12637 msgid ""
12638 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12639 "existing key, and is used to access the device.  C<newkey> is the new key to "
12640 "add.  C<keyslot> is the key slot that will be replaced."
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:2922
12645 msgid ""
12646 "Note that if C<keyslot> already contains a key, then this command will "
12647 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12648 msgstr ""
12649
12650 #. type: textblock
12651 #: ../fish/guestfish-actions.pod:2926 ../fish/guestfish-actions.pod:2948
12652 #: ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:2969
12653 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12654 msgid ""
12655 "This command has one or more key or passphrase parameters.  Guestfish will "
12656 "prompt for these separately."
12657 msgstr ""
12658
12659 #. type: =head2
12660 #: ../fish/guestfish-actions.pod:2929
12661 msgid "luks-close"
12662 msgstr ""
12663
12664 #. type: verbatim
12665 #: ../fish/guestfish-actions.pod:2931
12666 #, no-wrap
12667 msgid ""
12668 " luks-close device\n"
12669 "\n"
12670 msgstr ""
12671
12672 #. type: textblock
12673 #: ../fish/guestfish-actions.pod:2933
12674 msgid ""
12675 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12676 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12677 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12678 "block device."
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:2939
12683 msgid "luks-format"
12684 msgstr ""
12685
12686 #. type: verbatim
12687 #: ../fish/guestfish-actions.pod:2941
12688 #, no-wrap
12689 msgid ""
12690 " luks-format device keyslot\n"
12691 "\n"
12692 msgstr ""
12693
12694 #. type: textblock
12695 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4524
12696 msgid ""
12697 "This command erases existing data on C<device> and formats the device as a "
12698 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12699 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12700 msgstr ""
12701
12702 #. type: =head2
12703 #: ../fish/guestfish-actions.pod:2951
12704 msgid "luks-format-cipher"
12705 msgstr ""
12706
12707 #. type: verbatim
12708 #: ../fish/guestfish-actions.pod:2953
12709 #, no-wrap
12710 msgid ""
12711 " luks-format-cipher device keyslot cipher\n"
12712 "\n"
12713 msgstr ""
12714
12715 #. type: textblock
12716 #: ../fish/guestfish-actions.pod:2955
12717 msgid ""
12718 "This command is the same as L</luks-format> but it also allows you to set "
12719 "the C<cipher> used."
12720 msgstr ""
12721
12722 #. type: =head2
12723 #: ../fish/guestfish-actions.pod:2961
12724 msgid "luks-kill-slot"
12725 msgstr ""
12726
12727 #. type: verbatim
12728 #: ../fish/guestfish-actions.pod:2963
12729 #, no-wrap
12730 msgid ""
12731 " luks-kill-slot device keyslot\n"
12732 "\n"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4565
12737 msgid ""
12738 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12739 "device C<device>.  C<key> must be one of the I<other> keys."
12740 msgstr ""
12741
12742 #. type: =head2
12743 #: ../fish/guestfish-actions.pod:2972
12744 msgid "luks-open"
12745 msgstr ""
12746
12747 #. type: verbatim
12748 #: ../fish/guestfish-actions.pod:2974
12749 #, no-wrap
12750 msgid ""
12751 " luks-open device mapname\n"
12752 "\n"
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4585
12757 msgid ""
12758 "This command opens a block device which has been encrypted according to the "
12759 "Linux Unified Key Setup (LUKS) standard."
12760 msgstr ""
12761
12762 #. type: textblock
12763 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4588
12764 msgid "C<device> is the encrypted block device or partition."
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4590
12769 msgid ""
12770 "The caller must supply one of the keys associated with the LUKS block "
12771 "device, in the C<key> parameter."
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4593
12776 msgid ""
12777 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12778 "writes to this block device are decrypted from and encrypted to the "
12779 "underlying C<device> respectively."
12780 msgstr ""
12781
12782 #. type: textblock
12783 #: ../fish/guestfish-actions.pod:2988
12784 msgid ""
12785 "If this block device contains LVM volume groups, then calling L</vgscan> "
12786 "followed by L</vg-activate-all> will make them visible."
12787 msgstr ""
12788
12789 #. type: textblock
12790 #: ../fish/guestfish-actions.pod:2992
12791 msgid "Use L</list-dm-devices> to list all device mapper devices."
12792 msgstr ""
12793
12794 #. type: =head2
12795 #: ../fish/guestfish-actions.pod:2998
12796 msgid "luks-open-ro"
12797 msgstr ""
12798
12799 #. type: verbatim
12800 #: ../fish/guestfish-actions.pod:3000
12801 #, no-wrap
12802 msgid ""
12803 " luks-open-ro device mapname\n"
12804 "\n"
12805 msgstr ""
12806
12807 #. type: textblock
12808 #: ../fish/guestfish-actions.pod:3002
12809 msgid ""
12810 "This is the same as L</luks-open> except that a read-only mapping is created."
12811 msgstr ""
12812
12813 #. type: =head2
12814 #: ../fish/guestfish-actions.pod:3008
12815 msgid "lvcreate"
12816 msgstr ""
12817
12818 #. type: verbatim
12819 #: ../fish/guestfish-actions.pod:3010
12820 #, no-wrap
12821 msgid ""
12822 " lvcreate logvol volgroup mbytes\n"
12823 "\n"
12824 msgstr ""
12825
12826 #. type: textblock
12827 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4639
12828 msgid ""
12829 "This creates an LVM logical volume called C<logvol> on the volume group "
12830 "C<volgroup>, with C<size> megabytes."
12831 msgstr ""
12832
12833 #. type: =head2
12834 #: ../fish/guestfish-actions.pod:3015
12835 msgid "lvm-canonical-lv-name"
12836 msgstr ""
12837
12838 #. type: verbatim
12839 #: ../fish/guestfish-actions.pod:3017
12840 #, no-wrap
12841 msgid ""
12842 " lvm-canonical-lv-name lvname\n"
12843 "\n"
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4652
12848 msgid ""
12849 "This converts alternative naming schemes for LVs that you might find to the "
12850 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12851 "LV>."
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4656
12856 msgid ""
12857 "This command returns an error if the C<lvname> parameter does not refer to a "
12858 "logical volume."
12859 msgstr ""
12860
12861 #. type: textblock
12862 #: ../fish/guestfish-actions.pod:3026
12863 msgid "See also L</is-lv>."
12864 msgstr ""
12865
12866 #. type: =head2
12867 #: ../fish/guestfish-actions.pod:3028
12868 msgid "lvm-clear-filter"
12869 msgstr ""
12870
12871 #. type: verbatim
12872 #: ../fish/guestfish-actions.pod:3030
12873 #, no-wrap
12874 msgid ""
12875 " lvm-clear-filter\n"
12876 "\n"
12877 msgstr ""
12878
12879 #. type: textblock
12880 #: ../fish/guestfish-actions.pod:3032
12881 msgid ""
12882 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12883 "block device."
12884 msgstr ""
12885
12886 #. type: textblock
12887 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063
12888 #: ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4713
12889 msgid ""
12890 "This command also clears the LVM cache and performs a volume group scan."
12891 msgstr ""
12892
12893 #. type: =head2
12894 #: ../fish/guestfish-actions.pod:3038
12895 msgid "lvm-remove-all"
12896 msgstr ""
12897
12898 #. type: verbatim
12899 #: ../fish/guestfish-actions.pod:3040
12900 #, no-wrap
12901 msgid ""
12902 " lvm-remove-all\n"
12903 "\n"
12904 msgstr ""
12905
12906 #. type: textblock
12907 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4686
12908 msgid ""
12909 "This command removes all LVM logical volumes, volume groups and physical "
12910 "volumes."
12911 msgstr ""
12912
12913 #. type: =head2
12914 #: ../fish/guestfish-actions.pod:3045
12915 msgid "lvm-set-filter"
12916 msgstr ""
12917
12918 #. type: verbatim
12919 #: ../fish/guestfish-actions.pod:3047
12920 #, no-wrap
12921 msgid ""
12922 " lvm-set-filter 'devices ...'\n"
12923 "\n"
12924 msgstr ""
12925
12926 #. type: textblock
12927 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4699
12928 msgid ""
12929 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12930 "block devices in the list C<devices>, and will ignore all other attached "
12931 "block devices."
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4703
12936 msgid ""
12937 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12938 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12939 "there are two types of duplication possible: either cloned PVs/VGs which "
12940 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12941 "same name.  In normal operation you cannot create this situation, but you "
12942 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12943 "inside the LVM metadata."
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4716
12948 msgid "You can filter whole block devices or individual partitions."
12949 msgstr ""
12950
12951 #. type: textblock
12952 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4718
12953 msgid ""
12954 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12955 "filesystem), even if you are not filtering out that VG."
12956 msgstr ""
12957
12958 #. type: =head2
12959 #: ../fish/guestfish-actions.pod:3072
12960 msgid "lvremove"
12961 msgstr ""
12962
12963 #. type: verbatim
12964 #: ../fish/guestfish-actions.pod:3074
12965 #, no-wrap
12966 msgid ""
12967 " lvremove device\n"
12968 "\n"
12969 msgstr ""
12970
12971 #. type: textblock
12972 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4732
12973 msgid ""
12974 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12975 "LV, such as C</dev/VG/LV>."
12976 msgstr ""
12977
12978 #. type: textblock
12979 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4735
12980 msgid ""
12981 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12982 "dev/VG>."
12983 msgstr ""
12984
12985 #. type: =head2
12986 #: ../fish/guestfish-actions.pod:3082
12987 msgid "lvrename"
12988 msgstr ""
12989
12990 #. type: verbatim
12991 #: ../fish/guestfish-actions.pod:3084
12992 #, no-wrap
12993 msgid ""
12994 " lvrename logvol newlogvol\n"
12995 "\n"
12996 msgstr ""
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4749
13000 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13001 msgstr ""
13002
13003 #. type: =head2
13004 #: ../fish/guestfish-actions.pod:3088
13005 msgid "lvresize"
13006 msgstr ""
13007
13008 #. type: verbatim
13009 #: ../fish/guestfish-actions.pod:3090
13010 #, no-wrap
13011 msgid ""
13012 " lvresize device mbytes\n"
13013 "\n"
13014 msgstr ""
13015
13016 #. type: textblock
13017 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4762
13018 msgid ""
13019 "This resizes (expands or shrinks) an existing LVM logical volume to "
13020 "C<mbytes>.  When reducing, data in the reduced part is lost."
13021 msgstr ""
13022
13023 #. type: =head2
13024 #: ../fish/guestfish-actions.pod:3096
13025 msgid "lvresize-free"
13026 msgstr ""
13027
13028 #. type: verbatim
13029 #: ../fish/guestfish-actions.pod:3098
13030 #, no-wrap
13031 msgid ""
13032 " lvresize-free lv percent\n"
13033 "\n"
13034 msgstr ""
13035
13036 #. type: textblock
13037 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4777
13038 msgid ""
13039 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13040 "remaining free space in the volume group.  Commonly you would call this with "
13041 "pc = 100 which expands the logical volume as much as possible, using all "
13042 "remaining free space in the volume group."
13043 msgstr ""
13044
13045 #. type: =head2
13046 #: ../fish/guestfish-actions.pod:3106
13047 msgid "lvs"
13048 msgstr ""
13049
13050 #. type: verbatim
13051 #: ../fish/guestfish-actions.pod:3108
13052 #, no-wrap
13053 msgid ""
13054 " lvs\n"
13055 "\n"
13056 msgstr ""
13057
13058 #. type: textblock
13059 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4792
13060 msgid ""
13061 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13062 "(8)> command."
13063 msgstr ""
13064
13065 #. type: textblock
13066 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4795
13067 msgid ""
13068 "This returns a list of the logical volume device names (eg. C</dev/"
13069 "VolGroup00/LogVol00>)."
13070 msgstr ""
13071
13072 #. type: textblock
13073 #: ../fish/guestfish-actions.pod:3116
13074 msgid "See also L</lvs-full>, L</list-filesystems>."
13075 msgstr ""
13076
13077 #. type: =head2
13078 #: ../fish/guestfish-actions.pod:3118
13079 msgid "lvs-full"
13080 msgstr ""
13081
13082 #. type: verbatim
13083 #: ../fish/guestfish-actions.pod:3120
13084 #, no-wrap
13085 msgid ""
13086 " lvs-full\n"
13087 "\n"
13088 msgstr ""
13089
13090 #. type: textblock
13091 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4811
13092 msgid ""
13093 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13094 "(8)> command.  The \"full\" version includes all fields."
13095 msgstr ""
13096
13097 #. type: =head2
13098 #: ../fish/guestfish-actions.pod:3125
13099 msgid "lvuuid"
13100 msgstr ""
13101
13102 #. type: verbatim
13103 #: ../fish/guestfish-actions.pod:3127
13104 #, no-wrap
13105 msgid ""
13106 " lvuuid device\n"
13107 "\n"
13108 msgstr ""
13109
13110 #. type: textblock
13111 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4826
13112 msgid "This command returns the UUID of the LVM LV C<device>."
13113 msgstr ""
13114
13115 #. type: =head2
13116 #: ../fish/guestfish-actions.pod:3131
13117 msgid "lxattrlist"
13118 msgstr ""
13119
13120 #. type: verbatim
13121 #: ../fish/guestfish-actions.pod:3133
13122 #, no-wrap
13123 msgid ""
13124 " lxattrlist path 'names ...'\n"
13125 "\n"
13126 msgstr ""
13127
13128 #. type: textblock
13129 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4840
13130 msgid ""
13131 "This call allows you to get the extended attributes of multiple files, where "
13132 "all files are in the directory C<path>.  C<names> is the list of files from "
13133 "this directory."
13134 msgstr ""
13135
13136 #. type: textblock
13137 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4844
13138 msgid ""
13139 "On return you get a flat list of xattr structs which must be interpreted "
13140 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13141 "C<attrval> in this struct is zero-length to indicate there was an error "
13142 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13143 "number (the number of following attributes for this file, which could be C<"
13144 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13145 "for the first named file.  This repeats for the second and subsequent files."
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:3149
13150 msgid ""
13151 "This call is intended for programs that want to efficiently list a directory "
13152 "contents without making many round-trips.  See also L</lstatlist> for a "
13153 "similarly efficient call for getting standard stats.  Very long directory "
13154 "listings might cause the protocol message size to be exceeded, causing this "
13155 "call to fail.  The caller must split up such requests into smaller groups of "
13156 "names."
13157 msgstr ""
13158
13159 #. type: =head2
13160 #: ../fish/guestfish-actions.pod:3157
13161 msgid "mdadm-create"
13162 msgstr ""
13163
13164 #. type: verbatim
13165 #: ../fish/guestfish-actions.pod:3159
13166 #, no-wrap
13167 msgid ""
13168 " mdadm-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13169 "\n"
13170 msgstr ""
13171
13172 #. type: textblock
13173 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4887
13174 msgid ""
13175 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13176 "C<devices>."
13177 msgstr ""
13178
13179 #. type: =item
13180 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4894
13181 msgid "C<missingbitmap>"
13182 msgstr ""
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4896
13186 msgid ""
13187 "A bitmap of missing devices.  If a bit is set it means that a missing device "
13188 "is added to the array.  The least significant bit corresponds to the first "
13189 "device in the array."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4900
13194 msgid "As examples:"
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4902
13199 msgid ""
13200 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13201 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4905
13206 msgid ""
13207 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13208 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13209 msgstr ""
13210
13211 #. type: textblock
13212 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4908
13213 msgid "This defaults to C<0> (no missing devices)."
13214 msgstr ""
13215
13216 #. type: textblock
13217 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4910
13218 msgid ""
13219 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13220 "equal C<nrdevices> + C<spare>."
13221 msgstr ""
13222
13223 #. type: =item
13224 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4913
13225 msgid "C<nrdevices>"
13226 msgstr ""
13227
13228 #. type: textblock
13229 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4915
13230 msgid "The number of active RAID devices."
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4917
13235 msgid ""
13236 "If not set, this defaults to the length of C<devices> plus the number of "
13237 "bits set in C<missingbitmap>."
13238 msgstr ""
13239
13240 #. type: =item
13241 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4920
13242 msgid "C<spare>"
13243 msgstr ""
13244
13245 #. type: textblock
13246 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4922
13247 msgid "The number of spare devices."
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4924
13252 msgid "If not set, this defaults to C<0>."
13253 msgstr ""
13254
13255 #. type: =item
13256 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4926
13257 msgid "C<chunk>"
13258 msgstr ""
13259
13260 #. type: textblock
13261 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4928
13262 msgid "The chunk size in bytes."
13263 msgstr ""
13264
13265 #. type: =item
13266 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226
13267 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:4978
13268 msgid "C<level>"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4932
13273 msgid ""
13274 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13275 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13276 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
13277 "added in future."
13278 msgstr ""
13279
13280 #. type: textblock
13281 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4937
13282 msgid "If not set, this defaults to C<raid1>."
13283 msgstr ""
13284
13285 #. type: =head2
13286 #: ../fish/guestfish-actions.pod:3217
13287 msgid "mdadm-detail"
13288 msgstr ""
13289
13290 #. type: verbatim
13291 #: ../fish/guestfish-actions.pod:3219
13292 #, no-wrap
13293 msgid ""
13294 " mdadm-detail md\n"
13295 "\n"
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4973
13300 msgid ""
13301 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13302 "are usually present in the returned hash. Other fields may also be present."
13303 msgstr ""
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4980
13307 msgid "The raid level of the MD device."
13308 msgstr ""
13309
13310 #. type: =item
13311 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4982
13312 msgid "C<devices>"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4984
13317 msgid "The number of underlying devices in the MD device."
13318 msgstr ""
13319
13320 #. type: =item
13321 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4986
13322 msgid "C<metadata>"
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4988
13327 msgid "The metadata version used."
13328 msgstr ""
13329
13330 #. type: =item
13331 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4990
13332 msgid "C<uuid>"
13333 msgstr ""
13334
13335 #. type: textblock
13336 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4992
13337 msgid "The UUID of the MD device."
13338 msgstr ""
13339
13340 #. type: textblock
13341 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4996
13342 msgid "The name of the MD device."
13343 msgstr ""
13344
13345 #. type: =head2
13346 #: ../fish/guestfish-actions.pod:3248
13347 msgid "mkdir"
13348 msgstr ""
13349
13350 #. type: verbatim
13351 #: ../fish/guestfish-actions.pod:3250
13352 #, no-wrap
13353 msgid ""
13354 " mkdir path\n"
13355 "\n"
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5012
13360 msgid "Create a directory named C<path>."
13361 msgstr ""
13362
13363 #. type: =head2
13364 #: ../fish/guestfish-actions.pod:3254
13365 msgid "mkdir-mode"
13366 msgstr ""
13367
13368 #. type: verbatim
13369 #: ../fish/guestfish-actions.pod:3256
13370 #, no-wrap
13371 msgid ""
13372 " mkdir-mode path mode\n"
13373 "\n"
13374 msgstr ""
13375
13376 #. type: textblock
13377 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5025
13378 msgid ""
13379 "This command creates a directory, setting the initial permissions of the "
13380 "directory to C<mode>."
13381 msgstr ""
13382
13383 #. type: textblock
13384 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5028
13385 msgid ""
13386 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13387 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13388 "other ways."
13389 msgstr ""
13390
13391 #. type: textblock
13392 #: ../fish/guestfish-actions.pod:3265
13393 msgid "See also L</mkdir>, L</umask>"
13394 msgstr ""
13395
13396 #. type: =head2
13397 #: ../fish/guestfish-actions.pod:3267
13398 msgid "mkdir-p"
13399 msgstr ""
13400
13401 #. type: verbatim
13402 #: ../fish/guestfish-actions.pod:3269
13403 #, no-wrap
13404 msgid ""
13405 " mkdir-p path\n"
13406 "\n"
13407 msgstr ""
13408
13409 #. type: textblock
13410 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5044
13411 msgid ""
13412 "Create a directory named C<path>, creating any parent directories as "
13413 "necessary.  This is like the C<mkdir -p> shell command."
13414 msgstr ""
13415
13416 #. type: =head2
13417 #: ../fish/guestfish-actions.pod:3274
13418 msgid "mkdtemp"
13419 msgstr ""
13420
13421 #. type: verbatim
13422 #: ../fish/guestfish-actions.pod:3276
13423 #, no-wrap
13424 msgid ""
13425 " mkdtemp template\n"
13426 "\n"
13427 msgstr ""
13428
13429 #. type: textblock
13430 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5057
13431 msgid ""
13432 "This command creates a temporary directory.  The C<template> parameter "
13433 "should be a full pathname for the temporary directory name with the final "
13434 "six characters being \"XXXXXX\"."
13435 msgstr ""
13436
13437 #. type: textblock
13438 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:5062
13439 msgid ""
13440 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13441 "being suitable for Windows filesystems."
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5065
13446 msgid "The name of the temporary directory that was created is returned."
13447 msgstr ""
13448
13449 #. type: textblock
13450 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5068
13451 msgid "The temporary directory is created with mode 0700 and is owned by root."
13452 msgstr ""
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5071
13456 msgid ""
13457 "The caller is responsible for deleting the temporary directory and its "
13458 "contents after use."
13459 msgstr ""
13460
13461 #. type: textblock
13462 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5074
13463 msgid "See also: L<mkdtemp(3)>"
13464 msgstr ""
13465
13466 #. type: =head2
13467 #: ../fish/guestfish-actions.pod:3297
13468 msgid "mke2fs-J"
13469 msgstr ""
13470
13471 #. type: verbatim
13472 #: ../fish/guestfish-actions.pod:3299
13473 #, no-wrap
13474 msgid ""
13475 " mke2fs-J fstype blocksize device journal\n"
13476 "\n"
13477 msgstr ""
13478
13479 #. type: textblock
13480 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5090
13481 msgid ""
13482 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13483 "C<journal>.  It is equivalent to the command:"
13484 msgstr ""
13485
13486 #. type: verbatim
13487 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5094
13488 #, no-wrap
13489 msgid ""
13490 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13491 "\n"
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../fish/guestfish-actions.pod:3307
13496 msgid "See also L</mke2journal>."
13497 msgstr ""
13498
13499 #. type: =head2
13500 #: ../fish/guestfish-actions.pod:3309
13501 msgid "mke2fs-JL"
13502 msgstr ""
13503
13504 #. type: verbatim
13505 #: ../fish/guestfish-actions.pod:3311
13506 #, no-wrap
13507 msgid ""
13508 " mke2fs-JL fstype blocksize device label\n"
13509 "\n"
13510 msgstr ""
13511
13512 #. type: textblock
13513 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5111
13514 msgid ""
13515 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13516 "the journal labeled C<label>."
13517 msgstr ""
13518
13519 #. type: textblock
13520 #: ../fish/guestfish-actions.pod:3316
13521 msgid "See also L</mke2journal-L>."
13522 msgstr ""
13523
13524 #. type: =head2
13525 #: ../fish/guestfish-actions.pod:3318
13526 msgid "mke2fs-JU"
13527 msgstr ""
13528
13529 #. type: verbatim
13530 #: ../fish/guestfish-actions.pod:3320
13531 #, no-wrap
13532 msgid ""
13533 " mke2fs-JU fstype blocksize device uuid\n"
13534 "\n"
13535 msgstr ""
13536
13537 #. type: textblock
13538 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5129
13539 msgid ""
13540 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13541 "the journal with UUID C<uuid>."
13542 msgstr ""
13543
13544 #. type: textblock
13545 #: ../fish/guestfish-actions.pod:3325
13546 msgid "See also L</mke2journal-U>."
13547 msgstr ""
13548
13549 #. type: =head2
13550 #: ../fish/guestfish-actions.pod:3327
13551 msgid "mke2journal"
13552 msgstr ""
13553
13554 #. type: verbatim
13555 #: ../fish/guestfish-actions.pod:3329
13556 #, no-wrap
13557 msgid ""
13558 " mke2journal blocksize device\n"
13559 "\n"
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5145
13564 msgid ""
13565 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13566 "command:"
13567 msgstr ""
13568
13569 #. type: verbatim
13570 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5148
13571 #, no-wrap
13572 msgid ""
13573 " mke2fs -O journal_dev -b blocksize device\n"
13574 "\n"
13575 msgstr ""
13576
13577 #. type: =head2
13578 #: ../fish/guestfish-actions.pod:3336
13579 msgid "mke2journal-L"
13580 msgstr ""
13581
13582 #. type: verbatim
13583 #: ../fish/guestfish-actions.pod:3338
13584 #, no-wrap
13585 msgid ""
13586 " mke2journal-L blocksize label device\n"
13587 "\n"
13588 msgstr ""
13589
13590 #. type: textblock
13591 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5162
13592 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13593 msgstr ""
13594
13595 #. type: =head2
13596 #: ../fish/guestfish-actions.pod:3342
13597 msgid "mke2journal-U"
13598 msgstr ""
13599
13600 #. type: verbatim
13601 #: ../fish/guestfish-actions.pod:3344
13602 #, no-wrap
13603 msgid ""
13604 " mke2journal-U blocksize uuid device\n"
13605 "\n"
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5176
13610 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13611 msgstr ""
13612
13613 #. type: =head2
13614 #: ../fish/guestfish-actions.pod:3348
13615 msgid "mkfifo"
13616 msgstr ""
13617
13618 #. type: verbatim
13619 #: ../fish/guestfish-actions.pod:3350
13620 #, no-wrap
13621 msgid ""
13622 " mkfifo mode path\n"
13623 "\n"
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:3352
13628 msgid ""
13629 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13630 "is just a convenient wrapper around L</mknod>."
13631 msgstr ""
13632
13633 #. type: =head2
13634 #: ../fish/guestfish-actions.pod:3358
13635 msgid "mkfs"
13636 msgstr ""
13637
13638 #. type: verbatim
13639 #: ../fish/guestfish-actions.pod:3360
13640 #, no-wrap
13641 msgid ""
13642 " mkfs fstype device\n"
13643 "\n"
13644 msgstr ""
13645
13646 #. type: textblock
13647 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5206
13648 msgid ""
13649 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13650 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13651 msgstr ""
13652
13653 #. type: =head2
13654 #: ../fish/guestfish-actions.pod:3366
13655 msgid "mkfs-b"
13656 msgstr ""
13657
13658 #. type: verbatim
13659 #: ../fish/guestfish-actions.pod:3368
13660 #, no-wrap
13661 msgid ""
13662 " mkfs-b fstype blocksize device\n"
13663 "\n"
13664 msgstr ""
13665
13666 #. type: textblock
13667 #: ../fish/guestfish-actions.pod:3370
13668 msgid ""
13669 "This call is similar to L</mkfs>, but it allows you to control the block "
13670 "size of the resulting filesystem.  Supported block sizes depend on the "
13671 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:3375 ../fish/guestfish-actions.pod:3402
13676 #: ../src/guestfs-actions.pod:5234 ../src/guestfs-actions.pod:5272
13677 msgid ""
13678 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13679 "cluster size."
13680 msgstr ""
13681
13682 #. type: textblock
13683 #: ../fish/guestfish-actions.pod:3378
13684 msgid ""
13685 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13686 "instead."
13687 msgstr ""
13688
13689 #. type: =head2
13690 #: ../fish/guestfish-actions.pod:3385
13691 msgid "mkfs-opts"
13692 msgstr ""
13693
13694 #. type: verbatim
13695 #: ../fish/guestfish-actions.pod:3387
13696 #, no-wrap
13697 msgid ""
13698 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13699 "\n"
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:3389 ../src/guestfs-actions.pod:5259
13704 msgid ""
13705 "This function creates a filesystem on C<device>.  The filesystem type is "
13706 "C<fstype>, for example C<ext3>."
13707 msgstr ""
13708
13709 #. type: =item
13710 #: ../fish/guestfish-actions.pod:3396 ../src/guestfs-actions.pod:5266
13711 msgid "C<blocksize>"
13712 msgstr ""
13713
13714 #. type: textblock
13715 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5268
13716 msgid ""
13717 "The filesystem block size.  Supported block sizes depend on the filesystem "
13718 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13719 "filesystems."
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5275
13724 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13725 msgstr ""
13726
13727 #. type: =item
13728 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5277
13729 msgid "C<features>"
13730 msgstr ""
13731
13732 #. type: textblock
13733 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5279
13734 msgid "This passes the I<-O> parameter to the external mkfs program."
13735 msgstr ""
13736
13737 #. type: textblock
13738 #: ../fish/guestfish-actions.pod:3411 ../src/guestfs-actions.pod:5281
13739 msgid ""
13740 "For certain filesystem types, this allows extra filesystem features to be "
13741 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13742 msgstr ""
13743
13744 #. type: textblock
13745 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5285
13746 msgid ""
13747 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13748 "type."
13749 msgstr ""
13750
13751 #. type: =item
13752 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5288
13753 msgid "C<inode>"
13754 msgstr ""
13755
13756 #. type: textblock
13757 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5290
13758 msgid ""
13759 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13760 "sets the inode size (only for ext2/3/4 filesystems at present)."
13761 msgstr ""
13762
13763 #. type: =item
13764 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5293
13765 msgid "C<sectorsize>"
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:3425 ../src/guestfs-actions.pod:5295
13770 msgid ""
13771 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13772 "sets sector size for ufs filesystem."
13773 msgstr ""
13774
13775 #. type: =head2
13776 #: ../fish/guestfish-actions.pod:3432
13777 msgid "mkmountpoint"
13778 msgstr ""
13779
13780 #. type: verbatim
13781 #: ../fish/guestfish-actions.pod:3434
13782 #, no-wrap
13783 msgid ""
13784 " mkmountpoint exemptpath\n"
13785 "\n"
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:3436
13790 msgid ""
13791 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13792 "to create extra mountpoints before mounting the first filesystem."
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5338
13797 msgid ""
13798 "These calls are I<only> necessary in some very limited circumstances, mainly "
13799 "the case where you want to mount a mix of unrelated and/or read-only "
13800 "filesystems together."
13801 msgstr ""
13802
13803 #. type: textblock
13804 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5342
13805 msgid ""
13806 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13807 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13808 "inside that.  You can unpack this as follows in guestfish:"
13809 msgstr ""
13810
13811 #. type: verbatim
13812 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5347
13813 #, no-wrap
13814 msgid ""
13815 " add-ro Fedora-11-i686-Live.iso\n"
13816 " run\n"
13817 " mkmountpoint /cd\n"
13818 " mkmountpoint /sqsh\n"
13819 " mkmountpoint /ext3fs\n"
13820 " mount /dev/sda /cd\n"
13821 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13822 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13823 "\n"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5356
13828 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../fish/guestfish-actions.pod:3460
13833 msgid ""
13834 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13835 "unexpected errors if you try to mix these calls.  It is safest to manually "
13836 "unmount filesystems and remove mountpoints after use."
13837 msgstr ""
13838
13839 #. type: textblock
13840 #: ../fish/guestfish-actions.pod:3464
13841 msgid ""
13842 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13843 "for this to work for manual mountpoints, you must ensure that the innermost "
13844 "mountpoints have the longest pathnames, as in the example code above."
13845 msgstr ""
13846
13847 #. type: textblock
13848 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5367
13849 msgid ""
13850 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:3471
13855 msgid ""
13856 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13857 "L</umount-all> to be called when the handle is closed which can also trigger "
13858 "these issues."
13859 msgstr ""
13860
13861 #. type: =head2
13862 #: ../fish/guestfish-actions.pod:3475
13863 msgid "mknod"
13864 msgstr ""
13865
13866 #. type: verbatim
13867 #: ../fish/guestfish-actions.pod:3477
13868 #, no-wrap
13869 msgid ""
13870 " mknod mode devmajor devminor path\n"
13871 "\n"
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5386
13876 msgid ""
13877 "This call creates block or character special devices, or named pipes (FIFOs)."
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:3482 ../src/guestfs-actions.pod:5389
13882 msgid ""
13883 "The C<mode> parameter should be the mode, using the standard constants.  "
13884 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13885 "used when creating block and character special devices."
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:3487
13890 msgid ""
13891 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13892 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13893 "regular file).  These constants are available in the standard Linux header "
13894 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13895 "wrappers around this command which bitwise OR in the appropriate constant "
13896 "for you."
13897 msgstr ""
13898
13899 #. type: =head2
13900 #: ../fish/guestfish-actions.pod:3497
13901 msgid "mknod-b"
13902 msgstr ""
13903
13904 #. type: verbatim
13905 #: ../fish/guestfish-actions.pod:3499
13906 #, no-wrap
13907 msgid ""
13908 " mknod-b mode devmajor devminor path\n"
13909 "\n"
13910 msgstr ""
13911
13912 #. type: textblock
13913 #: ../fish/guestfish-actions.pod:3501
13914 msgid ""
13915 "This call creates a block device node called C<path> with mode C<mode> and "
13916 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13917 "wrapper around L</mknod>."
13918 msgstr ""
13919
13920 #. type: =head2
13921 #: ../fish/guestfish-actions.pod:3507
13922 msgid "mknod-c"
13923 msgstr ""
13924
13925 #. type: verbatim
13926 #: ../fish/guestfish-actions.pod:3509
13927 #, no-wrap
13928 msgid ""
13929 " mknod-c mode devmajor devminor path\n"
13930 "\n"
13931 msgstr ""
13932
13933 #. type: textblock
13934 #: ../fish/guestfish-actions.pod:3511
13935 msgid ""
13936 "This call creates a char device node called C<path> with mode C<mode> and "
13937 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13938 "wrapper around L</mknod>."
13939 msgstr ""
13940
13941 #. type: =head2
13942 #: ../fish/guestfish-actions.pod:3517
13943 msgid "mkswap"
13944 msgstr ""
13945
13946 #. type: verbatim
13947 #: ../fish/guestfish-actions.pod:3519
13948 #, no-wrap
13949 msgid ""
13950 " mkswap device\n"
13951 "\n"
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../fish/guestfish-actions.pod:3521 ../src/guestfs-actions.pod:5452
13956 msgid "Create a swap partition on C<device>."
13957 msgstr ""
13958
13959 #. type: =head2
13960 #: ../fish/guestfish-actions.pod:3523
13961 msgid "mkswap-L"
13962 msgstr ""
13963
13964 #. type: verbatim
13965 #: ../fish/guestfish-actions.pod:3525
13966 #, no-wrap
13967 msgid ""
13968 " mkswap-L label device\n"
13969 "\n"
13970 msgstr ""
13971
13972 #. type: textblock
13973 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5465
13974 msgid "Create a swap partition on C<device> with label C<label>."
13975 msgstr ""
13976
13977 #. type: textblock
13978 #: ../fish/guestfish-actions.pod:3529 ../src/guestfs-actions.pod:5467
13979 msgid ""
13980 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13981 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13982 "or swap tools."
13983 msgstr ""
13984
13985 #. type: =head2
13986 #: ../fish/guestfish-actions.pod:3533
13987 msgid "mkswap-U"
13988 msgstr ""
13989
13990 #. type: verbatim
13991 #: ../fish/guestfish-actions.pod:3535
13992 #, no-wrap
13993 msgid ""
13994 " mkswap-U uuid device\n"
13995 "\n"
13996 msgstr ""
13997
13998 #. type: textblock
13999 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5482
14000 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14001 msgstr ""
14002
14003 #. type: =head2
14004 #: ../fish/guestfish-actions.pod:3539
14005 msgid "mkswap-file"
14006 msgstr ""
14007
14008 #. type: verbatim
14009 #: ../fish/guestfish-actions.pod:3541
14010 #, no-wrap
14011 msgid ""
14012 " mkswap-file path\n"
14013 "\n"
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5494
14018 msgid "Create a swap file."
14019 msgstr ""
14020
14021 #. type: textblock
14022 #: ../fish/guestfish-actions.pod:3545
14023 msgid ""
14024 "This command just writes a swap file signature to an existing file.  To "
14025 "create the file itself, use something like L</fallocate>."
14026 msgstr ""
14027
14028 #. type: =head2
14029 #: ../fish/guestfish-actions.pod:3548
14030 msgid "modprobe"
14031 msgstr ""
14032
14033 #. type: verbatim
14034 #: ../fish/guestfish-actions.pod:3550
14035 #, no-wrap
14036 msgid ""
14037 " modprobe modulename\n"
14038 "\n"
14039 msgstr ""
14040
14041 #. type: textblock
14042 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5509
14043 msgid "This loads a kernel module in the appliance."
14044 msgstr ""
14045
14046 #. type: textblock
14047 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
14048 msgid ""
14049 "The kernel module must have been whitelisted when libguestfs was built (see "
14050 "C<appliance/kmod.whitelist.in> in the source)."
14051 msgstr ""
14052
14053 #. type: =head2
14054 #: ../fish/guestfish-actions.pod:3557
14055 msgid "mount"
14056 msgstr ""
14057
14058 #. type: verbatim
14059 #: ../fish/guestfish-actions.pod:3559
14060 #, no-wrap
14061 msgid ""
14062 " mount device mountpoint\n"
14063 "\n"
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5525
14068 msgid ""
14069 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14070 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14071 "those block devices contain partitions, they will have the usual names (eg. "
14072 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14073 msgstr ""
14074
14075 #. type: textblock
14076 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5531
14077 msgid ""
14078 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14079 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14080 "mounted on directories which already exist."
14081 msgstr ""
14082
14083 #. type: textblock
14084 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5536
14085 msgid ""
14086 "The mounted filesystem is writable, if we have sufficient permissions on the "
14087 "underlying device."
14088 msgstr ""
14089
14090 #. type: textblock
14091 #: ../fish/guestfish-actions.pod:3575
14092 msgid ""
14093 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14094 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14095 "problems for users.  If your program might need to work with older versions "
14096 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14097 "first parameter if you don't want any options)."
14098 msgstr ""
14099
14100 #. type: =head2
14101 #: ../fish/guestfish-actions.pod:3582
14102 msgid "mount-9p"
14103 msgstr ""
14104
14105 #. type: verbatim
14106 #: ../fish/guestfish-actions.pod:3584
14107 #, no-wrap
14108 msgid ""
14109 " mount-9p mounttag mountpoint [options:..]\n"
14110 "\n"
14111 msgstr ""
14112
14113 #. type: textblock
14114 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5565
14115 msgid ""
14116 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14117 "C<mountpoint>."
14118 msgstr ""
14119
14120 #. type: textblock
14121 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5568
14122 msgid ""
14123 "If required, C<trans=virtio> will be automatically added to the options.  "
14124 "Any other options required can be passed in the optional C<options> "
14125 "parameter."
14126 msgstr ""
14127
14128 #. type: =head2
14129 #: ../fish/guestfish-actions.pod:3595
14130 msgid "mount-loop"
14131 msgstr ""
14132
14133 #. type: verbatim
14134 #: ../fish/guestfish-actions.pod:3597
14135 #, no-wrap
14136 msgid ""
14137 " mount-loop file mountpoint\n"
14138 "\n"
14139 msgstr ""
14140
14141 #. type: textblock
14142 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5607
14143 msgid ""
14144 "This command lets you mount C<file> (a filesystem image in a file) on a "
14145 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14146 "mountpoint>."
14147 msgstr ""
14148
14149 #. type: =head2
14150 #: ../fish/guestfish-actions.pod:3603
14151 msgid "mount-options"
14152 msgstr ""
14153
14154 #. type: verbatim
14155 #: ../fish/guestfish-actions.pod:3605
14156 #, no-wrap
14157 msgid ""
14158 " mount-options options device mountpoint\n"
14159 "\n"
14160 msgstr ""
14161
14162 #. type: textblock
14163 #: ../fish/guestfish-actions.pod:3607
14164 msgid ""
14165 "This is the same as the L</mount> command, but it allows you to set the "
14166 "mount options as for the L<mount(8)> I<-o> flag."
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5627
14171 msgid ""
14172 "If the C<options> parameter is an empty string, then no options are passed "
14173 "(all options default to whatever the filesystem uses)."
14174 msgstr ""
14175
14176 #. type: =head2
14177 #: ../fish/guestfish-actions.pod:3615
14178 msgid "mount-ro"
14179 msgstr ""
14180
14181 #. type: verbatim
14182 #: ../fish/guestfish-actions.pod:3617
14183 #, no-wrap
14184 msgid ""
14185 " mount-ro device mountpoint\n"
14186 "\n"
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:3619
14191 msgid ""
14192 "This is the same as the L</mount> command, but it mounts the filesystem with "
14193 "the read-only (I<-o ro>) flag."
14194 msgstr ""
14195
14196 #. type: =head2
14197 #: ../fish/guestfish-actions.pod:3622
14198 msgid "mount-vfs"
14199 msgstr ""
14200
14201 #. type: verbatim
14202 #: ../fish/guestfish-actions.pod:3624
14203 #, no-wrap
14204 msgid ""
14205 " mount-vfs options vfstype device mountpoint\n"
14206 "\n"
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../fish/guestfish-actions.pod:3626
14211 msgid ""
14212 "This is the same as the L</mount> command, but it allows you to set both the "
14213 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14214 msgstr ""
14215
14216 #. type: =head2
14217 #: ../fish/guestfish-actions.pod:3630
14218 msgid "mountpoints"
14219 msgstr ""
14220
14221 #. type: verbatim
14222 #: ../fish/guestfish-actions.pod:3632
14223 #, no-wrap
14224 msgid ""
14225 " mountpoints\n"
14226 "\n"
14227 msgstr ""
14228
14229 #. type: textblock
14230 #: ../fish/guestfish-actions.pod:3634
14231 msgid ""
14232 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14233 "This one returns a hash table (map) of device name to directory where the "
14234 "device is mounted."
14235 msgstr ""
14236
14237 #. type: =head2
14238 #: ../fish/guestfish-actions.pod:3638
14239 msgid "mounts"
14240 msgstr ""
14241
14242 #. type: verbatim
14243 #: ../fish/guestfish-actions.pod:3640
14244 #, no-wrap
14245 msgid ""
14246 " mounts\n"
14247 "\n"
14248 msgstr ""
14249
14250 #. type: textblock
14251 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5688
14252 msgid ""
14253 "This returns the list of currently mounted filesystems.  It returns the list "
14254 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14255 msgstr ""
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5691
14259 msgid "Some internal mounts are not shown."
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:3647
14264 msgid "See also: L</mountpoints>"
14265 msgstr ""
14266
14267 #. type: =head2
14268 #: ../fish/guestfish-actions.pod:3649
14269 msgid "mv"
14270 msgstr ""
14271
14272 #. type: verbatim
14273 #: ../fish/guestfish-actions.pod:3651
14274 #, no-wrap
14275 msgid ""
14276 " mv src dest\n"
14277 "\n"
14278 msgstr ""
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5708
14282 msgid ""
14283 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14284 "destination filename or destination directory."
14285 msgstr ""
14286
14287 #. type: =head2
14288 #: ../fish/guestfish-actions.pod:3656
14289 msgid "ntfs-3g-probe"
14290 msgstr ""
14291
14292 #. type: verbatim
14293 #: ../fish/guestfish-actions.pod:3658
14294 #, no-wrap
14295 msgid ""
14296 " ntfs-3g-probe true|false device\n"
14297 "\n"
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5722
14302 msgid ""
14303 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14304 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14305 "write, and some cannot be mounted at all)."
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5726
14310 msgid ""
14311 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14312 "can be mounted read-write.  Set it to false if you want to test if the "
14313 "volume can be mounted read-only."
14314 msgstr ""
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5730
14318 msgid ""
14319 "The return value is an integer which C<0> if the operation would succeed, or "
14320 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14321 msgstr ""
14322
14323 #. type: =head2
14324 #: ../fish/guestfish-actions.pod:3672
14325 msgid "ntfsresize"
14326 msgstr ""
14327
14328 #. type: verbatim
14329 #: ../fish/guestfish-actions.pod:3674
14330 #, no-wrap
14331 msgid ""
14332 " ntfsresize device\n"
14333 "\n"
14334 msgstr ""
14335
14336 #. type: textblock
14337 #: ../fish/guestfish-actions.pod:3676 ../fish/guestfish-actions.pod:3700
14338 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5783
14339 msgid ""
14340 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14341 "size of the underlying device."
14342 msgstr ""
14343
14344 #. type: textblock
14345 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5754
14346 msgid ""
14347 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14348 "consistency check (for safety).  You have to boot into Windows to perform "
14349 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14350 "resize filesystems which have been marked in this way.  So in effect it is "
14351 "not possible to call ntfsresize multiple times on a single filesystem "
14352 "without booting into Windows between each resize."
14353 msgstr ""
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3726
14357 #: ../src/guestfs-actions.pod:5762 ../src/guestfs-actions.pod:5809
14358 msgid "See also L<ntfsresize(8)>."
14359 msgstr ""
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:3689 ../fish/guestfish-actions.pod:3737
14363 msgid ""
14364 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14365 "call instead."
14366 msgstr ""
14367
14368 #. type: =head2
14369 #: ../fish/guestfish-actions.pod:3696
14370 msgid "ntfsresize-opts"
14371 msgstr ""
14372
14373 #. type: verbatim
14374 #: ../fish/guestfish-actions.pod:3698
14375 #, no-wrap
14376 msgid ""
14377 " ntfsresize-opts device [size:N] [force:true|false]\n"
14378 "\n"
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5792
14383 msgid ""
14384 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14385 "resized to fit the container (eg. partition)."
14386 msgstr ""
14387
14388 #. type: =item
14389 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:5033
14390 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7766
14391 msgid "C<force>"
14392 msgstr ""
14393
14394 #. type: textblock
14395 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5797
14396 msgid ""
14397 "If this option is true, then force the resize of the filesystem even if the "
14398 "filesystem is marked as requiring a consistency check."
14399 msgstr ""
14400
14401 #. type: textblock
14402 #: ../fish/guestfish-actions.pod:3717
14403 msgid ""
14404 "After the resize operation, the filesystem is always marked as requiring a "
14405 "consistency check (for safety).  You have to boot into Windows to perform "
14406 "this check and clear this condition.  If you I<don't> set the C<force> "
14407 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
14408 "a single filesystem without booting into Windows between each resize."
14409 msgstr ""
14410
14411 #. type: =head2
14412 #: ../fish/guestfish-actions.pod:3730
14413 msgid "ntfsresize-size"
14414 msgstr ""
14415
14416 #. type: verbatim
14417 #: ../fish/guestfish-actions.pod:3732
14418 #, no-wrap
14419 msgid ""
14420 " ntfsresize-size device size\n"
14421 "\n"
14422 msgstr ""
14423
14424 #. type: textblock
14425 #: ../fish/guestfish-actions.pod:3734
14426 msgid ""
14427 "This command is the same as L</ntfsresize> except that it allows you to "
14428 "specify the new size (in bytes) explicitly."
14429 msgstr ""
14430
14431 #. type: =head2
14432 #: ../fish/guestfish-actions.pod:3744
14433 msgid "part-add"
14434 msgstr ""
14435
14436 #. type: verbatim
14437 #: ../fish/guestfish-actions.pod:3746
14438 #, no-wrap
14439 msgid ""
14440 " part-add device prlogex startsect endsect\n"
14441 "\n"
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:3748
14446 msgid ""
14447 "This command adds a partition to C<device>.  If there is no partition table "
14448 "on the device, call L</part-init> first."
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5870
14453 msgid ""
14454 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14455 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14456 "C<logical>) and C<e> (or C<extended>) partition types."
14457 msgstr ""
14458
14459 #. type: textblock
14460 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5875
14461 msgid ""
14462 "C<startsect> and C<endsect> are the start and end of the partition in "
14463 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14464 "from the end of the disk (C<-1> is the last sector)."
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:3760
14469 msgid ""
14470 "Creating a partition which covers the whole disk is not so easy.  Use L</"
14471 "part-disk> to do that."
14472 msgstr ""
14473
14474 #. type: =head2
14475 #: ../fish/guestfish-actions.pod:3763
14476 msgid "part-del"
14477 msgstr ""
14478
14479 #. type: verbatim
14480 #: ../fish/guestfish-actions.pod:3765
14481 #, no-wrap
14482 msgid ""
14483 " part-del device partnum\n"
14484 "\n"
14485 msgstr ""
14486
14487 #. type: textblock
14488 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5893
14489 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14490 msgstr ""
14491
14492 #. type: textblock
14493 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5895
14494 msgid ""
14495 "Note that in the case of MBR partitioning, deleting an extended partition "
14496 "also deletes any logical partitions it contains."
14497 msgstr ""
14498
14499 #. type: =head2
14500 #: ../fish/guestfish-actions.pod:3773
14501 msgid "part-disk"
14502 msgstr ""
14503
14504 #. type: verbatim
14505 #: ../fish/guestfish-actions.pod:3775
14506 #, no-wrap
14507 msgid ""
14508 " part-disk device parttype\n"
14509 "\n"
14510 msgstr ""
14511
14512 #. type: textblock
14513 #: ../fish/guestfish-actions.pod:3777
14514 msgid ""
14515 "This command is simply a combination of L</part-init> followed by L</part-"
14516 "add> to create a single primary partition covering the whole disk."
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:3781
14521 msgid ""
14522 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14523 "possible values are described in L</part-init>."
14524 msgstr ""
14525
14526 #. type: =head2
14527 #: ../fish/guestfish-actions.pod:3784
14528 msgid "part-get-bootable"
14529 msgstr ""
14530
14531 #. type: verbatim
14532 #: ../fish/guestfish-actions.pod:3786
14533 #, no-wrap
14534 msgid ""
14535 " part-get-bootable device partnum\n"
14536 "\n"
14537 msgstr ""
14538
14539 #. type: textblock
14540 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5928
14541 msgid ""
14542 "This command returns true if the partition C<partnum> on C<device> has the "
14543 "bootable flag set."
14544 msgstr ""
14545
14546 #. type: textblock
14547 #: ../fish/guestfish-actions.pod:3791
14548 msgid "See also L</part-set-bootable>."
14549 msgstr ""
14550
14551 #. type: =head2
14552 #: ../fish/guestfish-actions.pod:3793
14553 msgid "part-get-mbr-id"
14554 msgstr ""
14555
14556 #. type: verbatim
14557 #: ../fish/guestfish-actions.pod:3795
14558 #, no-wrap
14559 msgid ""
14560 " part-get-mbr-id device partnum\n"
14561 "\n"
14562 msgstr ""
14563
14564 #. type: textblock
14565 #: ../fish/guestfish-actions.pod:3797 ../src/guestfs-actions.pod:5944
14566 msgid ""
14567 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14568 "partition C<partnum>."
14569 msgstr ""
14570
14571 #. type: textblock
14572 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3944
14573 msgid ""
14574 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14575 "undefined results for other partition table types (see L</part-get-"
14576 "parttype>)."
14577 msgstr ""
14578
14579 #. type: =head2
14580 #: ../fish/guestfish-actions.pod:3804
14581 msgid "part-get-parttype"
14582 msgstr ""
14583
14584 #. type: verbatim
14585 #: ../fish/guestfish-actions.pod:3806
14586 #, no-wrap
14587 msgid ""
14588 " part-get-parttype device\n"
14589 "\n"
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
14594 msgid ""
14595 "This command examines the partition table on C<device> and returns the "
14596 "partition table type (format) being used."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:3811
14601 msgid ""
14602 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14603 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14604 "possible, although unusual.  See L</part-init> for a full list."
14605 msgstr ""
14606
14607 #. type: =head2
14608 #: ../fish/guestfish-actions.pod:3816
14609 msgid "part-init"
14610 msgstr ""
14611
14612 #. type: verbatim
14613 #: ../fish/guestfish-actions.pod:3818
14614 #, no-wrap
14615 msgid ""
14616 " part-init device parttype\n"
14617 "\n"
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5981
14622 msgid ""
14623 "This creates an empty partition table on C<device> of one of the partition "
14624 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14625 "(for large disks)."
14626 msgstr ""
14627
14628 #. type: textblock
14629 #: ../fish/guestfish-actions.pod:3824
14630 msgid ""
14631 "Initially there are no partitions.  Following this, you should call L</part-"
14632 "add> for each partition required."
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5988
14637 msgid "Possible values for C<parttype> are:"
14638 msgstr ""
14639
14640 #. type: =item
14641 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5992
14642 msgid "B<efi>"
14643 msgstr ""
14644
14645 #. type: =item
14646 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5994
14647 msgid "B<gpt>"
14648 msgstr ""
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5996
14652 msgid "Intel EFI / GPT partition table."
14653 msgstr ""
14654
14655 #. type: textblock
14656 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5998
14657 msgid ""
14658 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14659 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14660 "the C<mbr> format."
14661 msgstr ""
14662
14663 #. type: =item
14664 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:6002
14665 msgid "B<mbr>"
14666 msgstr ""
14667
14668 #. type: =item
14669 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:6004
14670 msgid "B<msdos>"
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:6006
14675 msgid ""
14676 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14677 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14678 "TB.  For large disks we recommend using C<gpt>."
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6013
14683 msgid ""
14684 "Other partition table types that may work but are not supported include:"
14685 msgstr ""
14686
14687 #. type: =item
14688 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:6018
14689 msgid "B<aix>"
14690 msgstr ""
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:6020
14694 msgid "AIX disk labels."
14695 msgstr ""
14696
14697 #. type: =item
14698 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:6022
14699 msgid "B<amiga>"
14700 msgstr ""
14701
14702 #. type: =item
14703 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6024
14704 msgid "B<rdb>"
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6026
14709 msgid "Amiga \"Rigid Disk Block\" format."
14710 msgstr ""
14711
14712 #. type: =item
14713 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6028
14714 msgid "B<bsd>"
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6030
14719 msgid "BSD disk labels."
14720 msgstr ""
14721
14722 #. type: =item
14723 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:6032
14724 msgid "B<dasd>"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:6034
14729 msgid "DASD, used on IBM mainframes."
14730 msgstr ""
14731
14732 #. type: =item
14733 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:6036
14734 msgid "B<dvh>"
14735 msgstr ""
14736
14737 #. type: textblock
14738 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6038
14739 msgid "MIPS/SGI volumes."
14740 msgstr ""
14741
14742 #. type: =item
14743 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:6040
14744 msgid "B<mac>"
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:6042
14749 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14750 msgstr ""
14751
14752 #. type: =item
14753 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:6044
14754 msgid "B<pc98>"
14755 msgstr ""
14756
14757 #. type: textblock
14758 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:6046
14759 msgid "NEC PC-98 format, common in Japan apparently."
14760 msgstr ""
14761
14762 #. type: =item
14763 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:6048
14764 msgid "B<sun>"
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:6050
14769 msgid "Sun disk labels."
14770 msgstr ""
14771
14772 #. type: =head2
14773 #: ../fish/guestfish-actions.pod:3893
14774 msgid "part-list"
14775 msgstr ""
14776
14777 #. type: verbatim
14778 #: ../fish/guestfish-actions.pod:3895
14779 #, no-wrap
14780 msgid ""
14781 " part-list device\n"
14782 "\n"
14783 msgstr ""
14784
14785 #. type: textblock
14786 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:6064
14787 msgid ""
14788 "This command parses the partition table on C<device> and returns the list of "
14789 "partitions found."
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
14794 msgid "The fields in the returned structure are:"
14795 msgstr ""
14796
14797 #. type: =item
14798 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
14799 msgid "B<part_num>"
14800 msgstr ""
14801
14802 #. type: textblock
14803 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
14804 msgid "Partition number, counting from 1."
14805 msgstr ""
14806
14807 #. type: =item
14808 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6075
14809 msgid "B<part_start>"
14810 msgstr ""
14811
14812 #. type: textblock
14813 #: ../fish/guestfish-actions.pod:3910
14814 msgid ""
14815 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14816 "the device's sector size, see L</blockdev-getss>."
14817 msgstr ""
14818
14819 #. type: =item
14820 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:6080
14821 msgid "B<part_end>"
14822 msgstr ""
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6082
14826 msgid "End of the partition in bytes."
14827 msgstr ""
14828
14829 #. type: =item
14830 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6084
14831 msgid "B<part_size>"
14832 msgstr ""
14833
14834 #. type: textblock
14835 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6086
14836 msgid "Size of the partition in bytes."
14837 msgstr ""
14838
14839 #. type: =head2
14840 #: ../fish/guestfish-actions.pod:3923
14841 msgid "part-set-bootable"
14842 msgstr ""
14843
14844 #. type: verbatim
14845 #: ../fish/guestfish-actions.pod:3925
14846 #, no-wrap
14847 msgid ""
14848 " part-set-bootable device partnum true|false\n"
14849 "\n"
14850 msgstr ""
14851
14852 #. type: textblock
14853 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:6104
14854 msgid ""
14855 "This sets the bootable flag on partition numbered C<partnum> on device "
14856 "C<device>.  Note that partitions are numbered from 1."
14857 msgstr ""
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6107
14861 msgid ""
14862 "The bootable flag is used by some operating systems (notably Windows) to "
14863 "determine which partition to boot from.  It is by no means universally "
14864 "recognized."
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../fish/guestfish-actions.pod:3934
14869 msgid "part-set-mbr-id"
14870 msgstr ""
14871
14872 #. type: verbatim
14873 #: ../fish/guestfish-actions.pod:3936
14874 #, no-wrap
14875 msgid ""
14876 " part-set-mbr-id device partnum idbyte\n"
14877 "\n"
14878 msgstr ""
14879
14880 #. type: textblock
14881 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6123
14882 msgid ""
14883 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14884 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14885 "documentation are in fact hexadecimal numbers, but usually documented "
14886 "without any leading \"0x\" which might be confusing."
14887 msgstr ""
14888
14889 #. type: =head2
14890 #: ../fish/guestfish-actions.pod:3948
14891 msgid "part-set-name"
14892 msgstr ""
14893
14894 #. type: verbatim
14895 #: ../fish/guestfish-actions.pod:3950
14896 #, no-wrap
14897 msgid ""
14898 " part-set-name device partnum name\n"
14899 "\n"
14900 msgstr ""
14901
14902 #. type: textblock
14903 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6145
14904 msgid ""
14905 "This sets the partition name on partition numbered C<partnum> on device "
14906 "C<device>.  Note that partitions are numbered from 1."
14907 msgstr ""
14908
14909 #. type: textblock
14910 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6148
14911 msgid ""
14912 "The partition name can only be set on certain types of partition table.  "
14913 "This works on C<gpt> but not on C<mbr> partitions."
14914 msgstr ""
14915
14916 #. type: =head2
14917 #: ../fish/guestfish-actions.pod:3958
14918 msgid "part-to-dev"
14919 msgstr ""
14920
14921 #. type: verbatim
14922 #: ../fish/guestfish-actions.pod:3960
14923 #, no-wrap
14924 msgid ""
14925 " part-to-dev partition\n"
14926 "\n"
14927 msgstr ""
14928
14929 #. type: textblock
14930 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6161
14931 msgid ""
14932 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14933 "partition number, returning the device name (eg. \"/dev/sdb\")."
14934 msgstr ""
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:3966 ../fish/guestfish-actions.pod:3978
14938 msgid ""
14939 "The named partition must exist, for example as a string returned from L</"
14940 "list-partitions>."
14941 msgstr ""
14942
14943 #. type: textblock
14944 #: ../fish/guestfish-actions.pod:3969
14945 msgid "See also L</part-to-partnum>."
14946 msgstr ""
14947
14948 #. type: =head2
14949 #: ../fish/guestfish-actions.pod:3971
14950 msgid "part-to-partnum"
14951 msgstr ""
14952
14953 #. type: verbatim
14954 #: ../fish/guestfish-actions.pod:3973
14955 #, no-wrap
14956 msgid ""
14957 " part-to-partnum partition\n"
14958 "\n"
14959 msgstr ""
14960
14961 #. type: textblock
14962 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6181
14963 msgid ""
14964 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14965 "partition number (eg. C<1>)."
14966 msgstr ""
14967
14968 #. type: textblock
14969 #: ../fish/guestfish-actions.pod:3981
14970 msgid "See also L</part-to-dev>."
14971 msgstr ""
14972
14973 #. type: =head2
14974 #: ../fish/guestfish-actions.pod:3983
14975 msgid "ping-daemon"
14976 msgstr ""
14977
14978 #. type: verbatim
14979 #: ../fish/guestfish-actions.pod:3985
14980 #, no-wrap
14981 msgid ""
14982 " ping-daemon\n"
14983 "\n"
14984 msgstr ""
14985
14986 #. type: textblock
14987 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6198
14988 msgid ""
14989 "This is a test probe into the guestfs daemon running inside the qemu "
14990 "subprocess.  Calling this function checks that the daemon responds to the "
14991 "ping message, without affecting the daemon or attached block device(s) in "
14992 "any other way."
14993 msgstr ""
14994
14995 #. type: =head2
14996 #: ../fish/guestfish-actions.pod:3992
14997 msgid "pread"
14998 msgstr ""
14999
15000 #. type: verbatim
15001 #: ../fish/guestfish-actions.pod:3994
15002 #, no-wrap
15003 msgid ""
15004 " pread path count offset\n"
15005 "\n"
15006 msgstr ""
15007
15008 #. type: textblock
15009 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6216
15010 msgid ""
15011 "This command lets you read part of a file.  It reads C<count> bytes of the "
15012 "file, starting at C<offset>, from file C<path>."
15013 msgstr ""
15014
15015 #. type: textblock
15016 #: ../fish/guestfish-actions.pod:3999 ../fish/guestfish-actions.pod:4014
15017 #: ../src/guestfs-actions.pod:6219 ../src/guestfs-actions.pod:6245
15018 msgid ""
15019 "This may read fewer bytes than requested.  For further details see the "
15020 "L<pread(2)> system call."
15021 msgstr ""
15022
15023 #. type: textblock
15024 #: ../fish/guestfish-actions.pod:4002
15025 msgid "See also L</pwrite>, L</pread-device>."
15026 msgstr ""
15027
15028 #. type: =head2
15029 #: ../fish/guestfish-actions.pod:4007
15030 msgid "pread-device"
15031 msgstr ""
15032
15033 #. type: verbatim
15034 #: ../fish/guestfish-actions.pod:4009
15035 #, no-wrap
15036 msgid ""
15037 " pread-device device count offset\n"
15038 "\n"
15039 msgstr ""
15040
15041 #. type: textblock
15042 #: ../fish/guestfish-actions.pod:4011 ../src/guestfs-actions.pod:6242
15043 msgid ""
15044 "This command lets you read part of a file.  It reads C<count> bytes of "
15045 "C<device>, starting at C<offset>."
15046 msgstr ""
15047
15048 #. type: textblock
15049 #: ../fish/guestfish-actions.pod:4017
15050 msgid "See also L</pread>."
15051 msgstr ""
15052
15053 #. type: =head2
15054 #: ../fish/guestfish-actions.pod:4022
15055 msgid "pvcreate"
15056 msgstr ""
15057
15058 #. type: verbatim
15059 #: ../fish/guestfish-actions.pod:4024
15060 #, no-wrap
15061 msgid ""
15062 " pvcreate device\n"
15063 "\n"
15064 msgstr ""
15065
15066 #. type: textblock
15067 #: ../fish/guestfish-actions.pod:4026 ../src/guestfs-actions.pod:6265
15068 msgid ""
15069 "This creates an LVM physical volume on the named C<device>, where C<device> "
15070 "should usually be a partition name such as C</dev/sda1>."
15071 msgstr ""
15072
15073 #. type: =head2
15074 #: ../fish/guestfish-actions.pod:4030
15075 msgid "pvremove"
15076 msgstr ""
15077
15078 #. type: verbatim
15079 #: ../fish/guestfish-actions.pod:4032
15080 #, no-wrap
15081 msgid ""
15082 " pvremove device\n"
15083 "\n"
15084 msgstr ""
15085
15086 #. type: textblock
15087 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6279
15088 msgid ""
15089 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15090 "it."
15091 msgstr ""
15092
15093 #. type: textblock
15094 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
15095 msgid ""
15096 "The implementation uses the C<pvremove> command which refuses to wipe "
15097 "physical volumes that contain any volume groups, so you have to remove those "
15098 "first."
15099 msgstr ""
15100
15101 #. type: =head2
15102 #: ../fish/guestfish-actions.pod:4041
15103 msgid "pvresize"
15104 msgstr ""
15105
15106 #. type: verbatim
15107 #: ../fish/guestfish-actions.pod:4043
15108 #, no-wrap
15109 msgid ""
15110 " pvresize device\n"
15111 "\n"
15112 msgstr ""
15113
15114 #. type: textblock
15115 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
15116 msgid ""
15117 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15118 "the new size of the underlying device."
15119 msgstr ""
15120
15121 #. type: =head2
15122 #: ../fish/guestfish-actions.pod:4048
15123 msgid "pvresize-size"
15124 msgstr ""
15125
15126 #. type: verbatim
15127 #: ../fish/guestfish-actions.pod:4050
15128 #, no-wrap
15129 msgid ""
15130 " pvresize-size device size\n"
15131 "\n"
15132 msgstr ""
15133
15134 #. type: textblock
15135 #: ../fish/guestfish-actions.pod:4052
15136 msgid ""
15137 "This command is the same as L</pvresize> except that it allows you to "
15138 "specify the new size (in bytes) explicitly."
15139 msgstr ""
15140
15141 #. type: =head2
15142 #: ../fish/guestfish-actions.pod:4055
15143 msgid "pvs"
15144 msgstr ""
15145
15146 #. type: verbatim
15147 #: ../fish/guestfish-actions.pod:4057
15148 #, no-wrap
15149 msgid ""
15150 " pvs\n"
15151 "\n"
15152 msgstr ""
15153
15154 #. type: textblock
15155 #: ../fish/guestfish-actions.pod:4059 ../src/guestfs-actions.pod:6322
15156 msgid ""
15157 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15158 "(8)> command."
15159 msgstr ""
15160
15161 #. type: textblock
15162 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6325
15163 msgid ""
15164 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15165 "sda2>)."
15166 msgstr ""
15167
15168 #. type: textblock
15169 #: ../fish/guestfish-actions.pod:4065
15170 msgid "See also L</pvs-full>."
15171 msgstr ""
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:4067
15175 msgid "pvs-full"
15176 msgstr ""
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:4069
15180 #, no-wrap
15181 msgid ""
15182 " pvs-full\n"
15183 "\n"
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../fish/guestfish-actions.pod:4071 ../src/guestfs-actions.pod:6341
15188 msgid ""
15189 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15190 "(8)> command.  The \"full\" version includes all fields."
15191 msgstr ""
15192
15193 #. type: =head2
15194 #: ../fish/guestfish-actions.pod:4074
15195 msgid "pvuuid"
15196 msgstr ""
15197
15198 #. type: verbatim
15199 #: ../fish/guestfish-actions.pod:4076
15200 #, no-wrap
15201 msgid ""
15202 " pvuuid device\n"
15203 "\n"
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6356
15208 msgid "This command returns the UUID of the LVM PV C<device>."
15209 msgstr ""
15210
15211 #. type: =head2
15212 #: ../fish/guestfish-actions.pod:4080
15213 msgid "pwrite"
15214 msgstr ""
15215
15216 #. type: verbatim
15217 #: ../fish/guestfish-actions.pod:4082
15218 #, no-wrap
15219 msgid ""
15220 " pwrite path content offset\n"
15221 "\n"
15222 msgstr ""
15223
15224 #. type: textblock
15225 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6372
15226 msgid ""
15227 "This command writes to part of a file.  It writes the data buffer C<content> "
15228 "to the file C<path> starting at offset C<offset>."
15229 msgstr ""
15230
15231 #. type: textblock
15232 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6375
15233 msgid ""
15234 "This command implements the L<pwrite(2)> system call, and like that system "
15235 "call it may not write the full data requested.  The return value is the "
15236 "number of bytes that were actually written to the file.  This could even be "
15237 "0, although short writes are unlikely for regular files in ordinary "
15238 "circumstances."
15239 msgstr ""
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:4093
15243 msgid "See also L</pread>, L</pwrite-device>."
15244 msgstr ""
15245
15246 #. type: =head2
15247 #: ../fish/guestfish-actions.pod:4098
15248 msgid "pwrite-device"
15249 msgstr ""
15250
15251 #. type: verbatim
15252 #: ../fish/guestfish-actions.pod:4100
15253 #, no-wrap
15254 msgid ""
15255 " pwrite-device device content offset\n"
15256 "\n"
15257 msgstr ""
15258
15259 #. type: textblock
15260 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6399
15261 msgid ""
15262 "This command writes to part of a device.  It writes the data buffer "
15263 "C<content> to C<device> starting at offset C<offset>."
15264 msgstr ""
15265
15266 #. type: textblock
15267 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6402
15268 msgid ""
15269 "This command implements the L<pwrite(2)> system call, and like that system "
15270 "call it may not write the full data requested (although short writes to disk "
15271 "devices and partitions are probably impossible with standard Linux kernels)."
15272 msgstr ""
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:4110
15276 msgid "See also L</pwrite>."
15277 msgstr ""
15278
15279 #. type: =head2
15280 #: ../fish/guestfish-actions.pod:4115
15281 msgid "read-file"
15282 msgstr ""
15283
15284 #. type: verbatim
15285 #: ../fish/guestfish-actions.pod:4117
15286 #, no-wrap
15287 msgid ""
15288 " read-file path\n"
15289 "\n"
15290 msgstr ""
15291
15292 #. type: textblock
15293 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6423
15294 msgid "This calls returns the contents of the file C<path> as a buffer."
15295 msgstr ""
15296
15297 #. type: textblock
15298 #: ../fish/guestfish-actions.pod:4122
15299 msgid ""
15300 "Unlike L</cat>, this function can correctly handle files that contain "
15301 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15302 "is limited in the total size of file that can be handled."
15303 msgstr ""
15304
15305 #. type: =head2
15306 #: ../fish/guestfish-actions.pod:4130
15307 msgid "read-lines"
15308 msgstr ""
15309
15310 #. type: verbatim
15311 #: ../fish/guestfish-actions.pod:4132
15312 #, no-wrap
15313 msgid ""
15314 " read-lines path\n"
15315 "\n"
15316 msgstr ""
15317
15318 #. type: textblock
15319 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6448
15320 msgid ""
15321 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15322 "C<CRLF> character sequences are I<not> returned."
15323 msgstr ""
15324
15325 #. type: textblock
15326 #: ../fish/guestfish-actions.pod:4139
15327 msgid ""
15328 "Note that this function cannot correctly handle binary files (specifically, "
15329 "files containing C<\\0> character which is treated as end of line).  For "
15330 "those you need to use the L</read-file> function which has a more complex "
15331 "interface."
15332 msgstr ""
15333
15334 #. type: =head2
15335 #: ../fish/guestfish-actions.pod:4144
15336 msgid "readdir"
15337 msgstr ""
15338
15339 #. type: verbatim
15340 #: ../fish/guestfish-actions.pod:4146
15341 #, no-wrap
15342 msgid ""
15343 " readdir dir\n"
15344 "\n"
15345 msgstr ""
15346
15347 #. type: textblock
15348 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6468
15349 msgid "This returns the list of directory entries in directory C<dir>."
15350 msgstr ""
15351
15352 #. type: textblock
15353 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6470
15354 msgid ""
15355 "All entries in the directory are returned, including C<.> and C<..>.  The "
15356 "entries are I<not> sorted, but returned in the same order as the underlying "
15357 "filesystem."
15358 msgstr ""
15359
15360 #. type: textblock
15361 #: ../fish/guestfish-actions.pod:4154 ../src/guestfs-actions.pod:6474
15362 msgid ""
15363 "Also this call returns basic file type information about each file.  The "
15364 "C<ftyp> field will contain one of the following characters:"
15365 msgstr ""
15366
15367 #. type: =item
15368 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6479
15369 msgid "'b'"
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6481
15374 msgid "Block special"
15375 msgstr ""
15376
15377 #. type: =item
15378 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6483
15379 msgid "'c'"
15380 msgstr ""
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6485
15384 msgid "Char special"
15385 msgstr ""
15386
15387 #. type: =item
15388 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6487
15389 msgid "'d'"
15390 msgstr ""
15391
15392 #. type: textblock
15393 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6489
15394 msgid "Directory"
15395 msgstr ""
15396
15397 #. type: =item
15398 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6491
15399 msgid "'f'"
15400 msgstr ""
15401
15402 #. type: textblock
15403 #: ../fish/guestfish-actions.pod:4173 ../src/guestfs-actions.pod:6493
15404 msgid "FIFO (named pipe)"
15405 msgstr ""
15406
15407 #. type: =item
15408 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6495
15409 msgid "'l'"
15410 msgstr ""
15411
15412 #. type: textblock
15413 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6497
15414 msgid "Symbolic link"
15415 msgstr ""
15416
15417 #. type: =item
15418 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6499
15419 msgid "'r'"
15420 msgstr ""
15421
15422 #. type: textblock
15423 #: ../fish/guestfish-actions.pod:4181 ../src/guestfs-actions.pod:6501
15424 msgid "Regular file"
15425 msgstr ""
15426
15427 #. type: =item
15428 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6503
15429 msgid "'s'"
15430 msgstr ""
15431
15432 #. type: textblock
15433 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6505
15434 msgid "Socket"
15435 msgstr ""
15436
15437 #. type: =item
15438 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6507
15439 msgid "'u'"
15440 msgstr ""
15441
15442 #. type: textblock
15443 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6509
15444 msgid "Unknown file type"
15445 msgstr ""
15446
15447 #. type: =item
15448 #: ../fish/guestfish-actions.pod:4191 ../src/guestfs-actions.pod:6511
15449 msgid "'?'"
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6513
15454 msgid ""
15455 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15456 msgstr ""
15457
15458 #. type: textblock
15459 #: ../fish/guestfish-actions.pod:4198
15460 msgid ""
15461 "This function is primarily intended for use by programs.  To get a simple "
15462 "list of names, use L</ls>.  To get a printable directory for human "
15463 "consumption, use L</ll>."
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-actions.pod:4202
15468 msgid "readlink"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../fish/guestfish-actions.pod:4204
15473 #, no-wrap
15474 msgid ""
15475 " readlink path\n"
15476 "\n"
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6534
15481 msgid "This command reads the target of a symbolic link."
15482 msgstr ""
15483
15484 #. type: =head2
15485 #: ../fish/guestfish-actions.pod:4208
15486 msgid "readlinklist"
15487 msgstr ""
15488
15489 #. type: verbatim
15490 #: ../fish/guestfish-actions.pod:4210
15491 #, no-wrap
15492 msgid ""
15493 " readlinklist path 'names ...'\n"
15494 "\n"
15495 msgstr ""
15496
15497 #. type: textblock
15498 #: ../fish/guestfish-actions.pod:4212 ../src/guestfs-actions.pod:6548
15499 msgid ""
15500 "This call allows you to do a C<readlink> operation on multiple files, where "
15501 "all files are in the directory C<path>.  C<names> is the list of files from "
15502 "this directory."
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6552
15507 msgid ""
15508 "On return you get a list of strings, with a one-to-one correspondence to the "
15509 "C<names> list.  Each string is the value of the symbolic link."
15510 msgstr ""
15511
15512 #. type: textblock
15513 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6556
15514 msgid ""
15515 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15516 "result string is the empty string C<\"\">.  However the whole operation is "
15517 "completed even if there were C<readlink(2)> errors, and so you can call this "
15518 "function with names where you don't know if they are symbolic links already "
15519 "(albeit slightly less efficient)."
15520 msgstr ""
15521
15522 #. type: textblock
15523 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6563
15524 msgid ""
15525 "This call is intended for programs that want to efficiently list a directory "
15526 "contents without making many round-trips.  Very long directory listings "
15527 "might cause the protocol message size to be exceeded, causing this call to "
15528 "fail.  The caller must split up such requests into smaller groups of names."
15529 msgstr ""
15530
15531 #. type: =head2
15532 #: ../fish/guestfish-actions.pod:4234
15533 msgid "realpath"
15534 msgstr ""
15535
15536 #. type: verbatim
15537 #: ../fish/guestfish-actions.pod:4236
15538 #, no-wrap
15539 msgid ""
15540 " realpath path\n"
15541 "\n"
15542 msgstr ""
15543
15544 #. type: textblock
15545 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6582
15546 msgid ""
15547 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15548 "has no C<.>, C<..> or symbolic link path elements."
15549 msgstr ""
15550
15551 #. type: =head2
15552 #: ../fish/guestfish-actions.pod:4241
15553 msgid "removexattr"
15554 msgstr ""
15555
15556 #. type: verbatim
15557 #: ../fish/guestfish-actions.pod:4243
15558 #, no-wrap
15559 msgid ""
15560 " removexattr xattr path\n"
15561 "\n"
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:4245 ../src/guestfs-actions.pod:6597
15566 msgid ""
15567 "This call removes the extended attribute named C<xattr> of the file C<path>."
15568 msgstr ""
15569
15570 #. type: textblock
15571 #: ../fish/guestfish-actions.pod:4248
15572 msgid "See also: L</lremovexattr>, L<attr(5)>."
15573 msgstr ""
15574
15575 #. type: =head2
15576 #: ../fish/guestfish-actions.pod:4250
15577 msgid "resize2fs"
15578 msgstr ""
15579
15580 #. type: verbatim
15581 #: ../fish/guestfish-actions.pod:4252
15582 #, no-wrap
15583 msgid ""
15584 " resize2fs device\n"
15585 "\n"
15586 msgstr ""
15587
15588 #. type: textblock
15589 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6612
15590 msgid ""
15591 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15592 "underlying device."
15593 msgstr ""
15594
15595 #. type: textblock
15596 #: ../fish/guestfish-actions.pod:4257
15597 msgid ""
15598 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15599 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15600 "gives an error about this and sometimes not.  In any case, it is always safe "
15601 "to call L</e2fsck-f> before calling this function."
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4263
15606 msgid "resize2fs-M"
15607 msgstr ""
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-actions.pod:4265
15611 #, no-wrap
15612 msgid ""
15613 " resize2fs-M device\n"
15614 "\n"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4267
15619 msgid ""
15620 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15621 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15622 "command."
15623 msgstr ""
15624
15625 #. type: textblock
15626 #: ../fish/guestfish-actions.pod:4271
15627 msgid ""
15628 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15629 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15630 "multiplied together, give the resulting size of the minimal filesystem in "
15631 "bytes."
15632 msgstr ""
15633
15634 #. type: =head2
15635 #: ../fish/guestfish-actions.pod:4276
15636 msgid "resize2fs-size"
15637 msgstr ""
15638
15639 #. type: verbatim
15640 #: ../fish/guestfish-actions.pod:4278
15641 #, no-wrap
15642 msgid ""
15643 " resize2fs-size device size\n"
15644 "\n"
15645 msgstr ""
15646
15647 #. type: textblock
15648 #: ../fish/guestfish-actions.pod:4280
15649 msgid ""
15650 "This command is the same as L</resize2fs> except that it allows you to "
15651 "specify the new size (in bytes) explicitly."
15652 msgstr ""
15653
15654 #. type: =head2
15655 #: ../fish/guestfish-actions.pod:4283
15656 msgid "rm"
15657 msgstr ""
15658
15659 #. type: verbatim
15660 #: ../fish/guestfish-actions.pod:4285
15661 #, no-wrap
15662 msgid ""
15663 " rm path\n"
15664 "\n"
15665 msgstr ""
15666
15667 #. type: textblock
15668 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6664
15669 msgid "Remove the single file C<path>."
15670 msgstr ""
15671
15672 #. type: =head2
15673 #: ../fish/guestfish-actions.pod:4289
15674 msgid "rm-rf"
15675 msgstr ""
15676
15677 #. type: verbatim
15678 #: ../fish/guestfish-actions.pod:4291
15679 #, no-wrap
15680 msgid ""
15681 " rm-rf path\n"
15682 "\n"
15683 msgstr ""
15684
15685 #. type: textblock
15686 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6676
15687 msgid ""
15688 "Remove the file or directory C<path>, recursively removing the contents if "
15689 "its a directory.  This is like the C<rm -rf> shell command."
15690 msgstr ""
15691
15692 #. type: =head2
15693 #: ../fish/guestfish-actions.pod:4297
15694 msgid "rmdir"
15695 msgstr ""
15696
15697 #. type: verbatim
15698 #: ../fish/guestfish-actions.pod:4299
15699 #, no-wrap
15700 msgid ""
15701 " rmdir path\n"
15702 "\n"
15703 msgstr ""
15704
15705 #. type: textblock
15706 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6690
15707 msgid "Remove the single directory C<path>."
15708 msgstr ""
15709
15710 #. type: =head2
15711 #: ../fish/guestfish-actions.pod:4303
15712 msgid "rmmountpoint"
15713 msgstr ""
15714
15715 #. type: verbatim
15716 #: ../fish/guestfish-actions.pod:4305
15717 #, no-wrap
15718 msgid ""
15719 " rmmountpoint exemptpath\n"
15720 "\n"
15721 msgstr ""
15722
15723 #. type: textblock
15724 #: ../fish/guestfish-actions.pod:4307
15725 msgid ""
15726 "This calls removes a mountpoint that was previously created with L</"
15727 "mkmountpoint>.  See L</mkmountpoint> for full details."
15728 msgstr ""
15729
15730 #. type: =head2
15731 #: ../fish/guestfish-actions.pod:4311
15732 msgid "scrub-device"
15733 msgstr ""
15734
15735 #. type: verbatim
15736 #: ../fish/guestfish-actions.pod:4313
15737 #, no-wrap
15738 msgid ""
15739 " scrub-device device\n"
15740 "\n"
15741 msgstr ""
15742
15743 #. type: textblock
15744 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6716
15745 msgid ""
15746 "This command writes patterns over C<device> to make data retrieval more "
15747 "difficult."
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4318 ../fish/guestfish-actions.pod:4330
15752 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6719
15753 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6756
15754 msgid ""
15755 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15756 "more details."
15757 msgstr ""
15758
15759 #. type: =head2
15760 #: ../fish/guestfish-actions.pod:4321
15761 msgid "scrub-file"
15762 msgstr ""
15763
15764 #. type: verbatim
15765 #: ../fish/guestfish-actions.pod:4323
15766 #, no-wrap
15767 msgid ""
15768 " scrub-file file\n"
15769 "\n"
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6732
15774 msgid ""
15775 "This command writes patterns over a file to make data retrieval more "
15776 "difficult."
15777 msgstr ""
15778
15779 #. type: textblock
15780 #: ../fish/guestfish-actions.pod:4328 ../src/guestfs-actions.pod:6735
15781 msgid "The file is I<removed> after scrubbing."
15782 msgstr ""
15783
15784 #. type: =head2
15785 #: ../fish/guestfish-actions.pod:4333
15786 msgid "scrub-freespace"
15787 msgstr ""
15788
15789 #. type: verbatim
15790 #: ../fish/guestfish-actions.pod:4335
15791 #, no-wrap
15792 msgid ""
15793 " scrub-freespace dir\n"
15794 "\n"
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-actions.pod:4337
15799 msgid ""
15800 "This command creates the directory C<dir> and then fills it with files until "
15801 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15802 "deletes them.  The intention is to scrub any free space on the partition "
15803 "containing C<dir>."
15804 msgstr ""
15805
15806 #. type: =head2
15807 #: ../fish/guestfish-actions.pod:4346
15808 msgid "set-append"
15809 msgstr ""
15810
15811 #. type: =head2
15812 #: ../fish/guestfish-actions.pod:4348
15813 msgid "append"
15814 msgstr ""
15815
15816 #. type: verbatim
15817 #: ../fish/guestfish-actions.pod:4350
15818 #, no-wrap
15819 msgid ""
15820 " set-append append\n"
15821 "\n"
15822 msgstr ""
15823
15824 #. type: textblock
15825 #: ../fish/guestfish-actions.pod:4352 ../src/guestfs-actions.pod:6769
15826 msgid ""
15827 "This function is used to add additional options to the guest kernel command "
15828 "line."
15829 msgstr ""
15830
15831 #. type: textblock
15832 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6772
15833 msgid ""
15834 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15835 "environment variable."
15836 msgstr ""
15837
15838 #. type: textblock
15839 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6775
15840 msgid ""
15841 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15842 "(libguestfs always adds a few of its own)."
15843 msgstr ""
15844
15845 #. type: =head2
15846 #: ../fish/guestfish-actions.pod:4361
15847 msgid "set-attach-method"
15848 msgstr ""
15849
15850 #. type: =head2
15851 #: ../fish/guestfish-actions.pod:4363
15852 msgid "attach-method"
15853 msgstr ""
15854
15855 #. type: verbatim
15856 #: ../fish/guestfish-actions.pod:4365
15857 #, no-wrap
15858 msgid ""
15859 " set-attach-method attachmethod\n"
15860 "\n"
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../fish/guestfish-actions.pod:4367 ../src/guestfs-actions.pod:6788
15865 msgid ""
15866 "Set the method that libguestfs uses to connect to the back end guestfsd "
15867 "daemon.  Possible methods are:"
15868 msgstr ""
15869
15870 #. type: =item
15871 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6793
15872 #: ../src/guestfs.pod:2916
15873 msgid "C<appliance>"
15874 msgstr ""
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-actions.pod:4374 ../src/guestfs-actions.pod:6795
15878 msgid ""
15879 "Launch an appliance and connect to it.  This is the ordinary method and the "
15880 "default."
15881 msgstr ""
15882
15883 #. type: =item
15884 #: ../fish/guestfish-actions.pod:4377 ../src/guestfs-actions.pod:6798
15885 msgid "C<unix:I<path>>"
15886 msgstr ""
15887
15888 #. type: textblock
15889 #: ../fish/guestfish-actions.pod:4379 ../src/guestfs-actions.pod:6800
15890 msgid "Connect to the Unix domain socket I<path>."
15891 msgstr ""
15892
15893 #. type: textblock
15894 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6802
15895 msgid ""
15896 "This method lets you connect to an existing daemon or (using virtio-serial) "
15897 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15898 "RUNNING DAEMONS>."
15899 msgstr ""
15900
15901 #. type: =head2
15902 #: ../fish/guestfish-actions.pod:4387
15903 msgid "set-autosync"
15904 msgstr ""
15905
15906 #. type: =head2
15907 #: ../fish/guestfish-actions.pod:4389
15908 msgid "autosync"
15909 msgstr ""
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish-actions.pod:4391
15913 #, no-wrap
15914 msgid ""
15915 " set-autosync true|false\n"
15916 "\n"
15917 msgstr ""
15918
15919 #. type: textblock
15920 #: ../fish/guestfish-actions.pod:4393 ../src/guestfs-actions.pod:6818
15921 msgid ""
15922 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15923 "effort attempt to make filesystems consistent and synchronized when the "
15924 "handle is closed (also if the program exits without closing handles)."
15925 msgstr ""
15926
15927 #. type: textblock
15928 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6823
15929 msgid ""
15930 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15931 "disabled by default)."
15932 msgstr ""
15933
15934 #. type: =head2
15935 #: ../fish/guestfish-actions.pod:4401
15936 msgid "set-direct"
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../fish/guestfish-actions.pod:4403
15941 msgid "direct"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../fish/guestfish-actions.pod:4405
15946 #, no-wrap
15947 msgid ""
15948 " set-direct true|false\n"
15949 "\n"
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:4407 ../src/guestfs-actions.pod:6836
15954 msgid ""
15955 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15956 "passed directly through to the appliance once it is launched."
15957 msgstr ""
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:4411
15961 msgid ""
15962 "One consequence of this is that log messages aren't caught by the library "
15963 "and handled by L</set-log-message-callback>, but go straight to stdout."
15964 msgstr ""
15965
15966 #. type: textblock
15967 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6844
15968 msgid "You probably don't want to use this unless you know what you are doing."
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6847
15973 msgid "The default is disabled."
15974 msgstr ""
15975
15976 #. type: =head2
15977 #: ../fish/guestfish-actions.pod:4420
15978 msgid "set-e2label"
15979 msgstr ""
15980
15981 #. type: verbatim
15982 #: ../fish/guestfish-actions.pod:4422
15983 #, no-wrap
15984 msgid ""
15985 " set-e2label device label\n"
15986 "\n"
15987 msgstr ""
15988
15989 #. type: textblock
15990 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6860
15991 msgid ""
15992 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15993 "C<label>.  Filesystem labels are limited to 16 characters."
15994 msgstr ""
15995
15996 #. type: textblock
15997 #: ../fish/guestfish-actions.pod:4428
15998 msgid ""
15999 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16000 "label on a filesystem."
16001 msgstr ""
16002
16003 #. type: =head2
16004 #: ../fish/guestfish-actions.pod:4431
16005 msgid "set-e2uuid"
16006 msgstr ""
16007
16008 #. type: verbatim
16009 #: ../fish/guestfish-actions.pod:4433
16010 #, no-wrap
16011 msgid ""
16012 " set-e2uuid device uuid\n"
16013 "\n"
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6878
16018 msgid ""
16019 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16020 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16021 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16022 msgstr ""
16023
16024 #. type: textblock
16025 #: ../fish/guestfish-actions.pod:4440
16026 msgid ""
16027 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16028 "UUID of a filesystem."
16029 msgstr ""
16030
16031 #. type: =head2
16032 #: ../fish/guestfish-actions.pod:4443
16033 msgid "set-memsize"
16034 msgstr ""
16035
16036 #. type: =head2
16037 #: ../fish/guestfish-actions.pod:4445
16038 msgid "memsize"
16039 msgstr ""
16040
16041 #. type: verbatim
16042 #: ../fish/guestfish-actions.pod:4447
16043 #, no-wrap
16044 msgid ""
16045 " set-memsize memsize\n"
16046 "\n"
16047 msgstr ""
16048
16049 #. type: textblock
16050 #: ../fish/guestfish-actions.pod:4449
16051 msgid ""
16052 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16053 "This only has any effect if called before L</launch>."
16054 msgstr ""
16055
16056 #. type: textblock
16057 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6900
16058 msgid ""
16059 "You can also change this by setting the environment variable "
16060 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16061 msgstr ""
16062
16063 #. type: =head2
16064 #: ../fish/guestfish-actions.pod:4460
16065 msgid "set-network"
16066 msgstr ""
16067
16068 #. type: =head2
16069 #: ../fish/guestfish-actions.pod:4462
16070 msgid "network"
16071 msgstr ""
16072
16073 #. type: verbatim
16074 #: ../fish/guestfish-actions.pod:4464
16075 #, no-wrap
16076 msgid ""
16077 " set-network true|false\n"
16078 "\n"
16079 msgstr ""
16080
16081 #. type: textblock
16082 #: ../fish/guestfish-actions.pod:4466 ../src/guestfs-actions.pod:6917
16083 msgid ""
16084 "If C<network> is true, then the network is enabled in the libguestfs "
16085 "appliance.  The default is false."
16086 msgstr ""
16087
16088 #. type: textblock
16089 #: ../fish/guestfish-actions.pod:4469 ../src/guestfs-actions.pod:6920
16090 msgid ""
16091 "This affects whether commands are able to access the network (see L<guestfs"
16092 "(3)/RUNNING COMMANDS>)."
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:4472
16097 msgid ""
16098 "You must call this before calling L</launch>, otherwise it has no effect."
16099 msgstr ""
16100
16101 #. type: =head2
16102 #: ../fish/guestfish-actions.pod:4475
16103 msgid "set-path"
16104 msgstr ""
16105
16106 #. type: verbatim
16107 #: ../fish/guestfish-actions.pod:4479
16108 #, no-wrap
16109 msgid ""
16110 " set-path searchpath\n"
16111 "\n"
16112 msgstr ""
16113
16114 #. type: textblock
16115 #: ../fish/guestfish-actions.pod:4481 ../src/guestfs-actions.pod:6936
16116 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16117 msgstr ""
16118
16119 #. type: textblock
16120 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6938
16121 msgid ""
16122 "The default is C<$libdir/guestfs> unless overridden by setting "
16123 "C<LIBGUESTFS_PATH> environment variable."
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6941
16128 msgid "Setting C<path> to C<NULL> restores the default path."
16129 msgstr ""
16130
16131 #. type: =head2
16132 #: ../fish/guestfish-actions.pod:4488
16133 msgid "set-pgroup"
16134 msgstr ""
16135
16136 #. type: =head2
16137 #: ../fish/guestfish-actions.pod:4490
16138 msgid "pgroup"
16139 msgstr ""
16140
16141 #. type: verbatim
16142 #: ../fish/guestfish-actions.pod:4492
16143 #, no-wrap
16144 msgid ""
16145 " set-pgroup true|false\n"
16146 "\n"
16147 msgstr ""
16148
16149 #. type: textblock
16150 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6953
16151 msgid ""
16152 "If C<pgroup> is true, child processes are placed into their own process "
16153 "group."
16154 msgstr ""
16155
16156 #. type: textblock
16157 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6956
16158 msgid ""
16159 "The practical upshot of this is that signals like C<SIGINT> (from users "
16160 "pressing C<^C>) won't be received by the child process."
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6959
16165 msgid ""
16166 "The default for this flag is false, because usually you want C<^C> to kill "
16167 "the subprocess."
16168 msgstr ""
16169
16170 #. type: =head2
16171 #: ../fish/guestfish-actions.pod:4503
16172 msgid "set-qemu"
16173 msgstr ""
16174
16175 #. type: =head2
16176 #: ../fish/guestfish-actions.pod:4505
16177 msgid "qemu"
16178 msgstr ""
16179
16180 #. type: verbatim
16181 #: ../fish/guestfish-actions.pod:4507
16182 #, no-wrap
16183 msgid ""
16184 " set-qemu qemu\n"
16185 "\n"
16186 msgstr ""
16187
16188 #. type: textblock
16189 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6972
16190 msgid "Set the qemu binary that we will use."
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6974
16195 msgid ""
16196 "The default is chosen when the library was compiled by the configure script."
16197 msgstr ""
16198
16199 #. type: textblock
16200 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6977
16201 msgid ""
16202 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16203 "variable."
16204 msgstr ""
16205
16206 #. type: textblock
16207 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6980
16208 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16209 msgstr ""
16210
16211 #. type: textblock
16212 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6982
16213 msgid ""
16214 "Note that you should call this function as early as possible after creating "
16215 "the handle.  This is because some pre-launch operations depend on testing "
16216 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16217 "don't retest features, and so you might see inconsistent results.  Using the "
16218 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16219 "the qemu binary at the same time as the handle is created."
16220 msgstr ""
16221
16222 #. type: =head2
16223 #: ../fish/guestfish-actions.pod:4527
16224 msgid "set-recovery-proc"
16225 msgstr ""
16226
16227 #. type: =head2
16228 #: ../fish/guestfish-actions.pod:4529
16229 msgid "recovery-proc"
16230 msgstr ""
16231
16232 #. type: verbatim
16233 #: ../fish/guestfish-actions.pod:4531
16234 #, no-wrap
16235 msgid ""
16236 " set-recovery-proc true|false\n"
16237 "\n"
16238 msgstr ""
16239
16240 #. type: textblock
16241 #: ../fish/guestfish-actions.pod:4533
16242 msgid ""
16243 "If this is called with the parameter C<false> then L</launch> does not "
16244 "create a recovery process.  The purpose of the recovery process is to stop "
16245 "runaway qemu processes in the case where the main program aborts abruptly."
16246 msgstr ""
16247
16248 #. type: textblock
16249 #: ../fish/guestfish-actions.pod:4538
16250 msgid ""
16251 "This only has any effect if called before L</launch>, and the default is "
16252 "true."
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:7008
16257 msgid ""
16258 "About the only time when you would want to disable this is if the main "
16259 "process will fork itself into the background (\"daemonize\" itself).  In "
16260 "this case the recovery process thinks that the main program has disappeared "
16261 "and so kills qemu, which is not very helpful."
16262 msgstr ""
16263
16264 #. type: =head2
16265 #: ../fish/guestfish-actions.pod:4547
16266 msgid "set-selinux"
16267 msgstr ""
16268
16269 #. type: =head2
16270 #: ../fish/guestfish-actions.pod:4549
16271 msgid "selinux"
16272 msgstr ""
16273
16274 #. type: verbatim
16275 #: ../fish/guestfish-actions.pod:4551
16276 #, no-wrap
16277 msgid ""
16278 " set-selinux true|false\n"
16279 "\n"
16280 msgstr ""
16281
16282 #. type: textblock
16283 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7024
16284 msgid ""
16285 "This sets the selinux flag that is passed to the appliance at boot time.  "
16286 "The default is C<selinux=0> (disabled)."
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:7027
16291 msgid ""
16292 "Note that if SELinux is enabled, it is always in Permissive mode "
16293 "(C<enforcing=0>)."
16294 msgstr ""
16295
16296 #. type: =head2
16297 #: ../fish/guestfish-actions.pod:4562
16298 msgid "set-smp"
16299 msgstr ""
16300
16301 #. type: =head2
16302 #: ../fish/guestfish-actions.pod:4564
16303 msgid "smp"
16304 msgstr ""
16305
16306 #. type: verbatim
16307 #: ../fish/guestfish-actions.pod:4566
16308 #, no-wrap
16309 msgid ""
16310 " set-smp smp\n"
16311 "\n"
16312 msgstr ""
16313
16314 #. type: textblock
16315 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:7043
16316 msgid ""
16317 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16318 "C<1>.  Increasing this may improve performance, though often it has no "
16319 "effect."
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-actions.pod:4572
16324 msgid "This function must be called before L</launch>."
16325 msgstr ""
16326
16327 #. type: =head2
16328 #: ../fish/guestfish-actions.pod:4574
16329 msgid "set-trace"
16330 msgstr ""
16331
16332 #. type: =head2
16333 #: ../fish/guestfish-actions.pod:4576
16334 msgid "trace"
16335 msgstr ""
16336
16337 #. type: verbatim
16338 #: ../fish/guestfish-actions.pod:4578
16339 #, no-wrap
16340 msgid ""
16341 " set-trace true|false\n"
16342 "\n"
16343 msgstr ""
16344
16345 #. type: textblock
16346 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:7059
16347 msgid ""
16348 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16349 "return values are traced."
16350 msgstr ""
16351
16352 #. type: textblock
16353 #: ../fish/guestfish-actions.pod:4583 ../src/guestfs-actions.pod:7062
16354 msgid ""
16355 "If you want to trace C API calls into libguestfs (and other libraries) then "
16356 "possibly a better way is to use the external ltrace(1) command."
16357 msgstr ""
16358
16359 #. type: textblock
16360 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:7066
16361 msgid ""
16362 "Command traces are disabled unless the environment variable "
16363 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16364 msgstr ""
16365
16366 #. type: textblock
16367 #: ../fish/guestfish-actions.pod:4590
16368 msgid ""
16369 "Trace messages are normally sent to C<stderr>, unless you register a "
16370 "callback to send them somewhere else (see L</set-event-callback>)."
16371 msgstr ""
16372
16373 #. type: =head2
16374 #: ../fish/guestfish-actions.pod:4594
16375 msgid "set-verbose"
16376 msgstr ""
16377
16378 #. type: =head2
16379 #: ../fish/guestfish-actions.pod:4596
16380 msgid "verbose"
16381 msgstr ""
16382
16383 #. type: verbatim
16384 #: ../fish/guestfish-actions.pod:4598
16385 #, no-wrap
16386 msgid ""
16387 " set-verbose true|false\n"
16388 "\n"
16389 msgstr ""
16390
16391 #. type: textblock
16392 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7083
16393 msgid "If C<verbose> is true, this turns on verbose messages."
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:7085
16398 msgid ""
16399 "Verbose messages are disabled unless the environment variable "
16400 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16401 msgstr ""
16402
16403 #. type: textblock
16404 #: ../fish/guestfish-actions.pod:4605
16405 msgid ""
16406 "Verbose messages are normally sent to C<stderr>, unless you register a "
16407 "callback to send them somewhere else (see L</set-event-callback>)."
16408 msgstr ""
16409
16410 #. type: =head2
16411 #: ../fish/guestfish-actions.pod:4609
16412 msgid "setcon"
16413 msgstr ""
16414
16415 #. type: verbatim
16416 #: ../fish/guestfish-actions.pod:4611
16417 #, no-wrap
16418 msgid ""
16419 " setcon context\n"
16420 "\n"
16421 msgstr ""
16422
16423 #. type: textblock
16424 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
16425 msgid ""
16426 "This sets the SELinux security context of the daemon to the string "
16427 "C<context>."
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:7105
16432 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16433 msgstr ""
16434
16435 #. type: =head2
16436 #: ../fish/guestfish-actions.pod:4618
16437 msgid "setxattr"
16438 msgstr ""
16439
16440 #. type: verbatim
16441 #: ../fish/guestfish-actions.pod:4620
16442 #, no-wrap
16443 msgid ""
16444 " setxattr xattr val vallen path\n"
16445 "\n"
16446 msgstr ""
16447
16448 #. type: textblock
16449 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:7120
16450 msgid ""
16451 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16452 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16453 msgstr ""
16454
16455 #. type: textblock
16456 #: ../fish/guestfish-actions.pod:4626
16457 msgid "See also: L</lsetxattr>, L<attr(5)>."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:4628
16462 msgid "sfdisk"
16463 msgstr ""
16464
16465 #. type: verbatim
16466 #: ../fish/guestfish-actions.pod:4630
16467 #, no-wrap
16468 msgid ""
16469 " sfdisk device cyls heads sectors 'lines ...'\n"
16470 "\n"
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:7147
16475 msgid ""
16476 "This is a direct interface to the L<sfdisk(8)> program for creating "
16477 "partitions on block devices."
16478 msgstr ""
16479
16480 #. type: textblock
16481 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:7150
16482 msgid "C<device> should be a block device, for example C</dev/sda>."
16483 msgstr ""
16484
16485 #. type: textblock
16486 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:7152
16487 msgid ""
16488 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16489 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16490 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16491 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16492 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16493 "the kernel) cannot work out the right geometry and you will need to tell it."
16494 msgstr ""
16495
16496 #. type: textblock
16497 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:7160
16498 msgid ""
16499 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16500 "refer to the L<sfdisk(8)> manpage."
16501 msgstr ""
16502
16503 #. type: textblock
16504 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7163
16505 msgid ""
16506 "To create a single partition occupying the whole disk, you would pass "
16507 "C<lines> as a single element list, when the single element being the string "
16508 "C<,> (comma)."
16509 msgstr ""
16510
16511 #. type: textblock
16512 #: ../fish/guestfish-actions.pod:4652
16513 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16514 msgstr ""
16515
16516 #. type: textblock
16517 #: ../fish/guestfish-actions.pod:4655 ../fish/guestfish-actions.pod:4675
16518 #: ../fish/guestfish-actions.pod:4694
16519 msgid ""
16520 "I<This function is deprecated.> In new code, use the L</part_add> call "
16521 "instead."
16522 msgstr ""
16523
16524 #. type: =head2
16525 #: ../fish/guestfish-actions.pod:4662
16526 msgid "sfdiskM"
16527 msgstr ""
16528
16529 #. type: verbatim
16530 #: ../fish/guestfish-actions.pod:4664
16531 #, no-wrap
16532 msgid ""
16533 " sfdiskM device 'lines ...'\n"
16534 "\n"
16535 msgstr ""
16536
16537 #. type: textblock
16538 #: ../fish/guestfish-actions.pod:4666
16539 msgid ""
16540 "This is a simplified interface to the L</sfdisk> command, where partition "
16541 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16542 "you don't need to specify the cyls, heads and sectors parameters which were "
16543 "rarely if ever used anyway."
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish-actions.pod:4672
16548 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16549 msgstr ""
16550
16551 #. type: =head2
16552 #: ../fish/guestfish-actions.pod:4682
16553 msgid "sfdisk-N"
16554 msgstr ""
16555
16556 #. type: verbatim
16557 #: ../fish/guestfish-actions.pod:4684
16558 #, no-wrap
16559 msgid ""
16560 " sfdisk-N device partnum cyls heads sectors line\n"
16561 "\n"
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7219
16566 msgid ""
16567 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16568 "(note: C<n> counts from 1)."
16569 msgstr ""
16570
16571 #. type: textblock
16572 #: ../fish/guestfish-actions.pod:4689
16573 msgid ""
16574 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16575 "cyls/heads/sectors parameters."
16576 msgstr ""
16577
16578 #. type: textblock
16579 #: ../fish/guestfish-actions.pod:4692
16580 msgid "See also: L</part-add>"
16581 msgstr ""
16582
16583 #. type: =head2
16584 #: ../fish/guestfish-actions.pod:4701
16585 msgid "sfdisk-disk-geometry"
16586 msgstr ""
16587
16588 #. type: verbatim
16589 #: ../fish/guestfish-actions.pod:4703
16590 #, no-wrap
16591 msgid ""
16592 " sfdisk-disk-geometry device\n"
16593 "\n"
16594 msgstr ""
16595
16596 #. type: textblock
16597 #: ../fish/guestfish-actions.pod:4705
16598 msgid ""
16599 "This displays the disk geometry of C<device> read from the partition table.  "
16600 "Especially in the case where the underlying block device has been resized, "
16601 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16602 "kernel-geometry>)."
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4719
16607 #: ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7258
16608 msgid "The result is in human-readable format, and not designed to be parsed."
16609 msgstr ""
16610
16611 #. type: =head2
16612 #: ../fish/guestfish-actions.pod:4713
16613 msgid "sfdisk-kernel-geometry"
16614 msgstr ""
16615
16616 #. type: verbatim
16617 #: ../fish/guestfish-actions.pod:4715
16618 #, no-wrap
16619 msgid ""
16620 " sfdisk-kernel-geometry device\n"
16621 "\n"
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7256
16626 msgid "This displays the kernel's idea of the geometry of C<device>."
16627 msgstr ""
16628
16629 #. type: =head2
16630 #: ../fish/guestfish-actions.pod:4722
16631 msgid "sfdisk-l"
16632 msgstr ""
16633
16634 #. type: verbatim
16635 #: ../fish/guestfish-actions.pod:4724
16636 #, no-wrap
16637 msgid ""
16638 " sfdisk-l device\n"
16639 "\n"
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7279
16644 msgid ""
16645 "This displays the partition table on C<device>, in the human-readable output "
16646 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16647 msgstr ""
16648
16649 #. type: textblock
16650 #: ../fish/guestfish-actions.pod:4730
16651 msgid "See also: L</part-list>"
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:4732
16656 msgid ""
16657 "I<This function is deprecated.> In new code, use the L</part_list> call "
16658 "instead."
16659 msgstr ""
16660
16661 #. type: =head2
16662 #: ../fish/guestfish-actions.pod:4739
16663 msgid "sh"
16664 msgstr ""
16665
16666 #. type: verbatim
16667 #: ../fish/guestfish-actions.pod:4741
16668 #, no-wrap
16669 msgid ""
16670 " sh command\n"
16671 "\n"
16672 msgstr ""
16673
16674 #. type: textblock
16675 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7296
16676 msgid ""
16677 "This call runs a command from the guest filesystem via the guest's C</bin/"
16678 "sh>."
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish-actions.pod:4746
16683 msgid "This is like L</command>, but passes the command to:"
16684 msgstr ""
16685
16686 #. type: verbatim
16687 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7301
16688 #, no-wrap
16689 msgid ""
16690 " /bin/sh -c \"command\"\n"
16691 "\n"
16692 msgstr ""
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7303
16696 msgid ""
16697 "Depending on the guest's shell, this usually results in wildcards being "
16698 "expanded, shell expressions being interpolated and so on."
16699 msgstr ""
16700
16701 #. type: textblock
16702 #: ../fish/guestfish-actions.pod:4754
16703 msgid "All the provisos about L</command> apply to this call."
16704 msgstr ""
16705
16706 #. type: =head2
16707 #: ../fish/guestfish-actions.pod:4756
16708 msgid "sh-lines"
16709 msgstr ""
16710
16711 #. type: verbatim
16712 #: ../fish/guestfish-actions.pod:4758
16713 #, no-wrap
16714 msgid ""
16715 " sh-lines command\n"
16716 "\n"
16717 msgstr ""
16718
16719 #. type: textblock
16720 #: ../fish/guestfish-actions.pod:4760
16721 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16722 msgstr ""
16723
16724 #. type: textblock
16725 #: ../fish/guestfish-actions.pod:4763
16726 msgid "See also: L</command-lines>"
16727 msgstr ""
16728
16729 #. type: =head2
16730 #: ../fish/guestfish-actions.pod:4765
16731 msgid "sleep"
16732 msgstr ""
16733
16734 #. type: verbatim
16735 #: ../fish/guestfish-actions.pod:4767
16736 #, no-wrap
16737 msgid ""
16738 " sleep secs\n"
16739 "\n"
16740 msgstr ""
16741
16742 #. type: textblock
16743 #: ../fish/guestfish-actions.pod:4769 ../src/guestfs-actions.pod:7337
16744 msgid "Sleep for C<secs> seconds."
16745 msgstr ""
16746
16747 #. type: =head2
16748 #: ../fish/guestfish-actions.pod:4771
16749 msgid "stat"
16750 msgstr ""
16751
16752 #. type: verbatim
16753 #: ../fish/guestfish-actions.pod:4773
16754 #, no-wrap
16755 msgid ""
16756 " stat path\n"
16757 "\n"
16758 msgstr ""
16759
16760 #. type: textblock
16761 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7351
16762 msgid "This is the same as the C<stat(2)> system call."
16763 msgstr ""
16764
16765 #. type: =head2
16766 #: ../fish/guestfish-actions.pod:4779
16767 msgid "statvfs"
16768 msgstr ""
16769
16770 #. type: verbatim
16771 #: ../fish/guestfish-actions.pod:4781
16772 #, no-wrap
16773 msgid ""
16774 " statvfs path\n"
16775 "\n"
16776 msgstr ""
16777
16778 #. type: textblock
16779 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7365
16780 msgid ""
16781 "Returns file system statistics for any mounted file system.  C<path> should "
16782 "be a file or directory in the mounted file system (typically it is the mount "
16783 "point itself, but it doesn't need to be)."
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7369
16788 msgid "This is the same as the C<statvfs(2)> system call."
16789 msgstr ""
16790
16791 #. type: =head2
16792 #: ../fish/guestfish-actions.pod:4789
16793 msgid "strings"
16794 msgstr ""
16795
16796 #. type: verbatim
16797 #: ../fish/guestfish-actions.pod:4791
16798 #, no-wrap
16799 msgid ""
16800 " strings path\n"
16801 "\n"
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7383
16806 msgid ""
16807 "This runs the L<strings(1)> command on a file and returns the list of "
16808 "printable strings found."
16809 msgstr ""
16810
16811 #. type: =head2
16812 #: ../fish/guestfish-actions.pod:4799
16813 msgid "strings-e"
16814 msgstr ""
16815
16816 #. type: verbatim
16817 #: ../fish/guestfish-actions.pod:4801
16818 #, no-wrap
16819 msgid ""
16820 " strings-e encoding path\n"
16821 "\n"
16822 msgstr ""
16823
16824 #. type: textblock
16825 #: ../fish/guestfish-actions.pod:4803
16826 msgid ""
16827 "This is like the L</strings> command, but allows you to specify the encoding "
16828 "of strings that are looked for in the source file C<path>."
16829 msgstr ""
16830
16831 #. type: textblock
16832 #: ../fish/guestfish-actions.pod:4807 ../src/guestfs-actions.pod:7406
16833 msgid "Allowed encodings are:"
16834 msgstr ""
16835
16836 #. type: =item
16837 #: ../fish/guestfish-actions.pod:4811 ../src/guestfs-actions.pod:7410
16838 msgid "s"
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish-actions.pod:4813
16843 msgid ""
16844 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16845 "ISO-8859-X (this is what L</strings> uses)."
16846 msgstr ""
16847
16848 #. type: =item
16849 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7415
16850 msgid "S"
16851 msgstr ""
16852
16853 #. type: textblock
16854 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7417
16855 msgid "Single 8-bit-byte characters."
16856 msgstr ""
16857
16858 #. type: =item
16859 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7419
16860 msgid "b"
16861 msgstr ""
16862
16863 #. type: textblock
16864 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7421
16865 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16866 msgstr ""
16867
16868 #. type: =item
16869 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7424
16870 msgid "l (lower case letter L)"
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7426
16875 msgid ""
16876 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16877 "examining binaries in Windows guests."
16878 msgstr ""
16879
16880 #. type: =item
16881 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7429
16882 msgid "B"
16883 msgstr ""
16884
16885 #. type: textblock
16886 #: ../fish/guestfish-actions.pod:4832 ../src/guestfs-actions.pod:7431
16887 msgid "32-bit big endian such as UCS-4BE."
16888 msgstr ""
16889
16890 #. type: =item
16891 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7433
16892 msgid "L"
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7435
16897 msgid "32-bit little endian such as UCS-4LE."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7439
16902 msgid "The returned strings are transcoded to UTF-8."
16903 msgstr ""
16904
16905 #. type: =head2
16906 #: ../fish/guestfish-actions.pod:4845
16907 msgid "swapoff-device"
16908 msgstr ""
16909
16910 #. type: verbatim
16911 #: ../fish/guestfish-actions.pod:4847
16912 #, no-wrap
16913 msgid ""
16914 " swapoff-device device\n"
16915 "\n"
16916 msgstr ""
16917
16918 #. type: textblock
16919 #: ../fish/guestfish-actions.pod:4849
16920 msgid ""
16921 "This command disables the libguestfs appliance swap device or partition "
16922 "named C<device>.  See L</swapon-device>."
16923 msgstr ""
16924
16925 #. type: =head2
16926 #: ../fish/guestfish-actions.pod:4853
16927 msgid "swapoff-file"
16928 msgstr ""
16929
16930 #. type: verbatim
16931 #: ../fish/guestfish-actions.pod:4855
16932 #, no-wrap
16933 msgid ""
16934 " swapoff-file file\n"
16935 "\n"
16936 msgstr ""
16937
16938 #. type: textblock
16939 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7470
16940 msgid "This command disables the libguestfs appliance swap on file."
16941 msgstr ""
16942
16943 #. type: =head2
16944 #: ../fish/guestfish-actions.pod:4859
16945 msgid "swapoff-label"
16946 msgstr ""
16947
16948 #. type: verbatim
16949 #: ../fish/guestfish-actions.pod:4861
16950 #, no-wrap
16951 msgid ""
16952 " swapoff-label label\n"
16953 "\n"
16954 msgstr ""
16955
16956 #. type: textblock
16957 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7482
16958 msgid ""
16959 "This command disables the libguestfs appliance swap on labeled swap "
16960 "partition."
16961 msgstr ""
16962
16963 #. type: =head2
16964 #: ../fish/guestfish-actions.pod:4866
16965 msgid "swapoff-uuid"
16966 msgstr ""
16967
16968 #. type: verbatim
16969 #: ../fish/guestfish-actions.pod:4868
16970 #, no-wrap
16971 msgid ""
16972 " swapoff-uuid uuid\n"
16973 "\n"
16974 msgstr ""
16975
16976 #. type: textblock
16977 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7495
16978 msgid ""
16979 "This command disables the libguestfs appliance swap partition with the given "
16980 "UUID."
16981 msgstr ""
16982
16983 #. type: =head2
16984 #: ../fish/guestfish-actions.pod:4873
16985 msgid "swapon-device"
16986 msgstr ""
16987
16988 #. type: verbatim
16989 #: ../fish/guestfish-actions.pod:4875
16990 #, no-wrap
16991 msgid ""
16992 " swapon-device device\n"
16993 "\n"
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../fish/guestfish-actions.pod:4877
16998 msgid ""
16999 "This command enables the libguestfs appliance to use the swap device or "
17000 "partition named C<device>.  The increased memory is made available for all "
17001 "commands, for example those run using L</command> or L</sh>."
17002 msgstr ""
17003
17004 #. type: textblock
17005 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7513
17006 msgid ""
17007 "Note that you should not swap to existing guest swap partitions unless you "
17008 "know what you are doing.  They may contain hibernation information, or other "
17009 "information that the guest doesn't want you to trash.  You also risk leaking "
17010 "information about the host to the guest this way.  Instead, attach a new "
17011 "host device to the guest and swap on that."
17012 msgstr ""
17013
17014 #. type: =head2
17015 #: ../fish/guestfish-actions.pod:4889
17016 msgid "swapon-file"
17017 msgstr ""
17018
17019 #. type: verbatim
17020 #: ../fish/guestfish-actions.pod:4891
17021 #, no-wrap
17022 msgid ""
17023 " swapon-file file\n"
17024 "\n"
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish-actions.pod:4893
17029 msgid ""
17030 "This command enables swap to a file.  See L</swapon-device> for other notes."
17031 msgstr ""
17032
17033 #. type: =head2
17034 #: ../fish/guestfish-actions.pod:4896
17035 msgid "swapon-label"
17036 msgstr ""
17037
17038 #. type: verbatim
17039 #: ../fish/guestfish-actions.pod:4898
17040 #, no-wrap
17041 msgid ""
17042 " swapon-label label\n"
17043 "\n"
17044 msgstr ""
17045
17046 #. type: textblock
17047 #: ../fish/guestfish-actions.pod:4900
17048 msgid ""
17049 "This command enables swap to a labeled swap partition.  See L</swapon-"
17050 "device> for other notes."
17051 msgstr ""
17052
17053 #. type: =head2
17054 #: ../fish/guestfish-actions.pod:4903
17055 msgid "swapon-uuid"
17056 msgstr ""
17057
17058 #. type: verbatim
17059 #: ../fish/guestfish-actions.pod:4905
17060 #, no-wrap
17061 msgid ""
17062 " swapon-uuid uuid\n"
17063 "\n"
17064 msgstr ""
17065
17066 #. type: textblock
17067 #: ../fish/guestfish-actions.pod:4907
17068 msgid ""
17069 "This command enables swap to a swap partition with the given UUID.  See L</"
17070 "swapon-device> for other notes."
17071 msgstr ""
17072
17073 #. type: =head2
17074 #: ../fish/guestfish-actions.pod:4910
17075 msgid "sync"
17076 msgstr ""
17077
17078 #. type: verbatim
17079 #: ../fish/guestfish-actions.pod:4912
17080 #, no-wrap
17081 msgid ""
17082 " sync\n"
17083 "\n"
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish-actions.pod:4914 ../src/guestfs-actions.pod:7568
17088 msgid ""
17089 "This syncs the disk, so that any writes are flushed through to the "
17090 "underlying disk image."
17091 msgstr ""
17092
17093 #. type: textblock
17094 #: ../fish/guestfish-actions.pod:4917 ../src/guestfs-actions.pod:7571
17095 msgid ""
17096 "You should always call this if you have modified a disk image, before "
17097 "closing the handle."
17098 msgstr ""
17099
17100 #. type: =head2
17101 #: ../fish/guestfish-actions.pod:4920
17102 msgid "tail"
17103 msgstr ""
17104
17105 #. type: verbatim
17106 #: ../fish/guestfish-actions.pod:4922
17107 #, no-wrap
17108 msgid ""
17109 " tail path\n"
17110 "\n"
17111 msgstr ""
17112
17113 #. type: textblock
17114 #: ../fish/guestfish-actions.pod:4924 ../src/guestfs-actions.pod:7584
17115 msgid ""
17116 "This command returns up to the last 10 lines of a file as a list of strings."
17117 msgstr ""
17118
17119 #. type: =head2
17120 #: ../fish/guestfish-actions.pod:4930
17121 msgid "tail-n"
17122 msgstr ""
17123
17124 #. type: verbatim
17125 #: ../fish/guestfish-actions.pod:4932
17126 #, no-wrap
17127 msgid ""
17128 " tail-n nrlines path\n"
17129 "\n"
17130 msgstr ""
17131
17132 #. type: textblock
17133 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7603
17134 msgid ""
17135 "If the parameter C<nrlines> is a positive number, this returns the last "
17136 "C<nrlines> lines of the file C<path>."
17137 msgstr ""
17138
17139 #. type: textblock
17140 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7606
17141 msgid ""
17142 "If the parameter C<nrlines> is a negative number, this returns lines from "
17143 "the file C<path>, starting with the C<-nrlines>th line."
17144 msgstr ""
17145
17146 #. type: =head2
17147 #: ../fish/guestfish-actions.pod:4945
17148 msgid "tar-in"
17149 msgstr ""
17150
17151 #. type: verbatim
17152 #: ../fish/guestfish-actions.pod:4947
17153 #, no-wrap
17154 msgid ""
17155 " tar-in (tarfile|-) directory\n"
17156 "\n"
17157 msgstr ""
17158
17159 #. type: textblock
17160 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7627
17161 msgid ""
17162 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17163 "tar file) into C<directory>."
17164 msgstr ""
17165
17166 #. type: textblock
17167 #: ../fish/guestfish-actions.pod:4952
17168 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17169 msgstr ""
17170
17171 #. type: =head2
17172 #: ../fish/guestfish-actions.pod:4957
17173 msgid "tar-out"
17174 msgstr ""
17175
17176 #. type: verbatim
17177 #: ../fish/guestfish-actions.pod:4959
17178 #, no-wrap
17179 msgid ""
17180 " tar-out directory (tarfile|-)\n"
17181 "\n"
17182 msgstr ""
17183
17184 #. type: textblock
17185 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7644
17186 msgid ""
17187 "This command packs the contents of C<directory> and downloads it to local "
17188 "file C<tarfile>."
17189 msgstr ""
17190
17191 #. type: textblock
17192 #: ../fish/guestfish-actions.pod:4964
17193 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17194 msgstr ""
17195
17196 #. type: =head2
17197 #: ../fish/guestfish-actions.pod:4969
17198 msgid "tgz-in"
17199 msgstr ""
17200
17201 #. type: verbatim
17202 #: ../fish/guestfish-actions.pod:4971
17203 #, no-wrap
17204 msgid ""
17205 " tgz-in (tarball|-) directory\n"
17206 "\n"
17207 msgstr ""
17208
17209 #. type: textblock
17210 #: ../fish/guestfish-actions.pod:4973 ../src/guestfs-actions.pod:7661
17211 msgid ""
17212 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17213 "tar file) into C<directory>."
17214 msgstr ""
17215
17216 #. type: textblock
17217 #: ../fish/guestfish-actions.pod:4976
17218 msgid "To upload an uncompressed tarball, use L</tar-in>."
17219 msgstr ""
17220
17221 #. type: =head2
17222 #: ../fish/guestfish-actions.pod:4980
17223 msgid "tgz-out"
17224 msgstr ""
17225
17226 #. type: verbatim
17227 #: ../fish/guestfish-actions.pod:4982
17228 #, no-wrap
17229 msgid ""
17230 " tgz-out directory (tarball|-)\n"
17231 "\n"
17232 msgstr ""
17233
17234 #. type: textblock
17235 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7677
17236 msgid ""
17237 "This command packs the contents of C<directory> and downloads it to local "
17238 "file C<tarball>."
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish-actions.pod:4987
17243 msgid "To download an uncompressed tarball, use L</tar-out>."
17244 msgstr ""
17245
17246 #. type: =head2
17247 #: ../fish/guestfish-actions.pod:4991
17248 msgid "touch"
17249 msgstr ""
17250
17251 #. type: verbatim
17252 #: ../fish/guestfish-actions.pod:4993
17253 #, no-wrap
17254 msgid ""
17255 " touch path\n"
17256 "\n"
17257 msgstr ""
17258
17259 #. type: textblock
17260 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7692
17261 msgid ""
17262 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17263 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17264 "length file."
17265 msgstr ""
17266
17267 #. type: textblock
17268 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7696
17269 msgid ""
17270 "This command only works on regular files, and will fail on other file types "
17271 "such as directories, symbolic links, block special etc."
17272 msgstr ""
17273
17274 #. type: =head2
17275 #: ../fish/guestfish-actions.pod:5002
17276 msgid "truncate"
17277 msgstr ""
17278
17279 #. type: verbatim
17280 #: ../fish/guestfish-actions.pod:5004
17281 #, no-wrap
17282 msgid ""
17283 " truncate path\n"
17284 "\n"
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
17289 msgid ""
17290 "This command truncates C<path> to a zero-length file.  The file must exist "
17291 "already."
17292 msgstr ""
17293
17294 #. type: =head2
17295 #: ../fish/guestfish-actions.pod:5009
17296 msgid "truncate-size"
17297 msgstr ""
17298
17299 #. type: verbatim
17300 #: ../fish/guestfish-actions.pod:5011
17301 #, no-wrap
17302 msgid ""
17303 " truncate-size path size\n"
17304 "\n"
17305 msgstr ""
17306
17307 #. type: textblock
17308 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7723
17309 msgid ""
17310 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17311 "already."
17312 msgstr ""
17313
17314 #. type: textblock
17315 #: ../fish/guestfish-actions.pod:5016
17316 msgid ""
17317 "If the current file size is less than C<size> then the file is extended to "
17318 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17319 "blocks are not allocated for the file until you write to it).  To create a "
17320 "non-sparse file of zeroes, use L</fallocate64> instead."
17321 msgstr ""
17322
17323 #. type: =head2
17324 #: ../fish/guestfish-actions.pod:5022
17325 msgid "tune2fs"
17326 msgstr ""
17327
17328 #. type: verbatim
17329 #: ../fish/guestfish-actions.pod:5024
17330 #, no-wrap
17331 msgid ""
17332 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
17333 "\n"
17334 msgstr ""
17335
17336 #. type: textblock
17337 #: ../fish/guestfish-actions.pod:5026 ../src/guestfs-actions.pod:7759
17338 msgid ""
17339 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
17340 "ext4 filesystem called C<device>."
17341 msgstr ""
17342
17343 #. type: textblock
17344 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7768
17345 msgid ""
17346 "Force tune2fs to complete the operation even in the face of errors.  This is "
17347 "the same as the tune2fs C<-f> option."
17348 msgstr ""
17349
17350 #. type: =item
17351 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7771
17352 msgid "C<maxmountcount>"
17353 msgstr ""
17354
17355 #. type: textblock
17356 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7773
17357 msgid ""
17358 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
17359 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
17360 "same as the tune2fs C<-c> option."
17361 msgstr ""
17362
17363 #. type: =item
17364 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7777
17365 msgid "C<mountcount>"
17366 msgstr ""
17367
17368 #. type: textblock
17369 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7779
17370 msgid ""
17371 "Set the number of times the filesystem has been mounted.  This is the same "
17372 "as the tune2fs C<-C> option."
17373 msgstr ""
17374
17375 #. type: =item
17376 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7782
17377 msgid "C<errorbehavior>"
17378 msgstr ""
17379
17380 #. type: textblock
17381 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7784
17382 msgid ""
17383 "Change the behavior of the kernel code when errors are detected.  Possible "
17384 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
17385 "these options don't really make any difference, particularly for write "
17386 "errors."
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7789
17391 msgid "This is the same as the tune2fs C<-e> option."
17392 msgstr ""
17393
17394 #. type: =item
17395 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7791
17396 msgid "C<group>"
17397 msgstr ""
17398
17399 #. type: textblock
17400 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7793
17401 msgid ""
17402 "Set the group which can use reserved filesystem blocks.  This is the same as "
17403 "the tune2fs C<-g> option except that it can only be specified as a number."
17404 msgstr ""
17405
17406 #. type: =item
17407 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7797
17408 msgid "C<intervalbetweenchecks>"
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7799
17413 msgid ""
17414 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
17415 "option is passed as C<0> then time-dependent checking is disabled."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7803
17420 msgid "This is the same as the tune2fs C<-i> option."
17421 msgstr ""
17422
17423 #. type: =item
17424 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7805
17425 msgid "C<reservedblockspercentage>"
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7807
17430 msgid ""
17431 "Set the percentage of the filesystem which may only be allocated by "
17432 "privileged processes.  This is the same as the tune2fs C<-m> option."
17433 msgstr ""
17434
17435 #. type: =item
17436 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7811
17437 msgid "C<lastmounteddirectory>"
17438 msgstr ""
17439
17440 #. type: textblock
17441 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7813
17442 msgid ""
17443 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
17444 "option."
17445 msgstr ""
17446
17447 #. type: =item
17448 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7816
17449 msgid ""
17450 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
17451 "is the same as the tune2fs C<-r> option."
17452 msgstr ""
17453
17454 #. type: =item
17455 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7820
17456 msgid "C<user>"
17457 msgstr ""
17458
17459 #. type: textblock
17460 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7822
17461 msgid ""
17462 "Set the user who can use the reserved filesystem blocks.  This is the same "
17463 "as the tune2fs C<-u> option except that it can only be specified as a number."
17464 msgstr ""
17465
17466 #. type: textblock
17467 #: ../fish/guestfish-actions.pod:5095
17468 msgid ""
17469 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
17470 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
17471 msgstr ""
17472
17473 #. type: =head2
17474 #: ../fish/guestfish-actions.pod:5101
17475 msgid "tune2fs-l"
17476 msgstr ""
17477
17478 #. type: verbatim
17479 #: ../fish/guestfish-actions.pod:5103
17480 #, no-wrap
17481 msgid ""
17482 " tune2fs-l device\n"
17483 "\n"
17484 msgstr ""
17485
17486 #. type: textblock
17487 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7862
17488 msgid ""
17489 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17490 "C<device>."
17491 msgstr ""
17492
17493 #. type: textblock
17494 #: ../fish/guestfish-actions.pod:5108 ../src/guestfs-actions.pod:7865
17495 msgid ""
17496 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17497 "for more details.  The list of fields returned isn't clearly defined, and "
17498 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17499 "and the filesystem itself."
17500 msgstr ""
17501
17502 #. type: =head2
17503 #: ../fish/guestfish-actions.pod:5113
17504 msgid "txz-in"
17505 msgstr ""
17506
17507 #. type: verbatim
17508 #: ../fish/guestfish-actions.pod:5115
17509 #, no-wrap
17510 msgid ""
17511 " txz-in (tarball|-) directory\n"
17512 "\n"
17513 msgstr ""
17514
17515 #. type: textblock
17516 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7885
17517 msgid ""
17518 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17519 "tar file) into C<directory>."
17520 msgstr ""
17521
17522 #. type: =head2
17523 #: ../fish/guestfish-actions.pod:5122
17524 msgid "txz-out"
17525 msgstr ""
17526
17527 #. type: verbatim
17528 #: ../fish/guestfish-actions.pod:5124
17529 #, no-wrap
17530 msgid ""
17531 " txz-out directory (tarball|-)\n"
17532 "\n"
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7899
17537 msgid ""
17538 "This command packs the contents of C<directory> and downloads it to local "
17539 "file C<tarball> (as an xz compressed tar archive)."
17540 msgstr ""
17541
17542 #. type: =head2
17543 #: ../fish/guestfish-actions.pod:5131
17544 msgid "umask"
17545 msgstr ""
17546
17547 #. type: verbatim
17548 #: ../fish/guestfish-actions.pod:5133
17549 #, no-wrap
17550 msgid ""
17551 " umask mask\n"
17552 "\n"
17553 msgstr ""
17554
17555 #. type: textblock
17556 #: ../fish/guestfish-actions.pod:5135 ../src/guestfs-actions.pod:7912
17557 msgid ""
17558 "This function sets the mask used for creating new files and device nodes to "
17559 "C<mask & 0777>."
17560 msgstr ""
17561
17562 #. type: textblock
17563 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7915
17564 msgid ""
17565 "Typical umask values would be C<022> which creates new files with "
17566 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17567 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17568 msgstr ""
17569
17570 #. type: textblock
17571 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7920
17572 msgid ""
17573 "The default umask is C<022>.  This is important because it means that "
17574 "directories and device nodes will be created with C<0644> or C<0755> mode "
17575 "even if you specify C<0777>."
17576 msgstr ""
17577
17578 #. type: textblock
17579 #: ../fish/guestfish-actions.pod:5147
17580 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17581 msgstr ""
17582
17583 #. type: textblock
17584 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7927
17585 msgid "This call returns the previous umask."
17586 msgstr ""
17587
17588 #. type: =head2
17589 #: ../fish/guestfish-actions.pod:5152
17590 msgid "umount"
17591 msgstr ""
17592
17593 #. type: =head2
17594 #: ../fish/guestfish-actions.pod:5154
17595 msgid "unmount"
17596 msgstr ""
17597
17598 #. type: verbatim
17599 #: ../fish/guestfish-actions.pod:5156
17600 #, no-wrap
17601 msgid ""
17602 " umount pathordevice\n"
17603 "\n"
17604 msgstr ""
17605
17606 #. type: textblock
17607 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
17608 msgid ""
17609 "This unmounts the given filesystem.  The filesystem may be specified either "
17610 "by its mountpoint (path) or the device which contains the filesystem."
17611 msgstr ""
17612
17613 #. type: =head2
17614 #: ../fish/guestfish-actions.pod:5162
17615 msgid "umount-all"
17616 msgstr ""
17617
17618 #. type: =head2
17619 #: ../fish/guestfish-actions.pod:5164
17620 msgid "unmount-all"
17621 msgstr ""
17622
17623 #. type: verbatim
17624 #: ../fish/guestfish-actions.pod:5166
17625 #, no-wrap
17626 msgid ""
17627 " umount-all\n"
17628 "\n"
17629 msgstr ""
17630
17631 #. type: textblock
17632 #: ../fish/guestfish-actions.pod:5168 ../src/guestfs-actions.pod:7952
17633 msgid "This unmounts all mounted filesystems."
17634 msgstr ""
17635
17636 #. type: textblock
17637 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7954
17638 msgid "Some internal mounts are not unmounted by this call."
17639 msgstr ""
17640
17641 #. type: =head2
17642 #: ../fish/guestfish-actions.pod:5172
17643 msgid "upload"
17644 msgstr ""
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish-actions.pod:5174
17648 #, no-wrap
17649 msgid ""
17650 " upload (filename|-) remotefilename\n"
17651 "\n"
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish-actions.pod:5176 ../fish/guestfish-actions.pod:5189
17656 #: ../src/guestfs-actions.pod:7967 ../src/guestfs-actions.pod:7991
17657 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17658 msgstr ""
17659
17660 #. type: textblock
17661 #: ../fish/guestfish-actions.pod:5181
17662 msgid "See also L</download>."
17663 msgstr ""
17664
17665 #. type: =head2
17666 #: ../fish/guestfish-actions.pod:5185
17667 msgid "upload-offset"
17668 msgstr ""
17669
17670 #. type: verbatim
17671 #: ../fish/guestfish-actions.pod:5187
17672 #, no-wrap
17673 msgid ""
17674 " upload-offset (filename|-) remotefilename offset\n"
17675 "\n"
17676 msgstr ""
17677
17678 #. type: textblock
17679 #: ../fish/guestfish-actions.pod:5192 ../src/guestfs-actions.pod:7994
17680 msgid ""
17681 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17682 "The intention is to overwrite parts of existing files or devices, although "
17683 "if a non-existant file is specified then it is created with a \"hole\" "
17684 "before C<offset>.  The size of the data written is implicit in the size of "
17685 "the source C<filename>."
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish-actions.pod:5199
17690 msgid ""
17691 "Note that there is no limit on the amount of data that can be uploaded with "
17692 "this call, unlike with L</pwrite>, and this call always writes the full "
17693 "amount unless an error occurs."
17694 msgstr ""
17695
17696 #. type: textblock
17697 #: ../fish/guestfish-actions.pod:5204
17698 msgid "See also L</upload>, L</pwrite>."
17699 msgstr ""
17700
17701 #. type: =head2
17702 #: ../fish/guestfish-actions.pod:5208
17703 msgid "utimens"
17704 msgstr ""
17705
17706 #. type: verbatim
17707 #: ../fish/guestfish-actions.pod:5210
17708 #, no-wrap
17709 msgid ""
17710 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17711 "\n"
17712 msgstr ""
17713
17714 #. type: textblock
17715 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8027
17716 msgid "This command sets the timestamps of a file with nanosecond precision."
17717 msgstr ""
17718
17719 #. type: textblock
17720 #: ../fish/guestfish-actions.pod:5215 ../src/guestfs-actions.pod:8030
17721 msgid ""
17722 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17723 "from the epoch."
17724 msgstr ""
17725
17726 #. type: textblock
17727 #: ../fish/guestfish-actions.pod:5218 ../src/guestfs-actions.pod:8033
17728 msgid ""
17729 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17730 "nanoseconds from the epoch."
17731 msgstr ""
17732
17733 #. type: textblock
17734 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:8036
17735 msgid ""
17736 "If the C<*nsecs> field contains the special value C<-1> then the "
17737 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17738 "ignored in this case)."
17739 msgstr ""
17740
17741 #. type: textblock
17742 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8040
17743 msgid ""
17744 "If the C<*nsecs> field contains the special value C<-2> then the "
17745 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17746 "in this case)."
17747 msgstr ""
17748
17749 #. type: =head2
17750 #: ../fish/guestfish-actions.pod:5229
17751 msgid "version"
17752 msgstr ""
17753
17754 #. type: verbatim
17755 #: ../fish/guestfish-actions.pod:5231
17756 #, no-wrap
17757 msgid ""
17758 " version\n"
17759 "\n"
17760 msgstr ""
17761
17762 #. type: textblock
17763 #: ../fish/guestfish-actions.pod:5233 ../src/guestfs-actions.pod:8053
17764 msgid ""
17765 "Return the libguestfs version number that the program is linked against."
17766 msgstr ""
17767
17768 #. type: textblock
17769 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8056
17770 msgid ""
17771 "Note that because of dynamic linking this is not necessarily the version of "
17772 "libguestfs that you compiled against.  You can compile the program, and then "
17773 "at runtime dynamically link against a completely different C<libguestfs.so> "
17774 "library."
17775 msgstr ""
17776
17777 #. type: textblock
17778 #: ../fish/guestfish-actions.pod:5241 ../src/guestfs-actions.pod:8061
17779 msgid ""
17780 "This call was added in version C<1.0.58>.  In previous versions of "
17781 "libguestfs there was no way to get the version number.  From C code you can "
17782 "use dynamic linker functions to find out if this symbol exists (if it "
17783 "doesn't, then it's an earlier version)."
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8067
17788 msgid ""
17789 "The call returns a structure with four elements.  The first three (C<major>, "
17790 "C<minor> and C<release>) are numbers and correspond to the usual version "
17791 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17792 "but may be used for distro-specific information."
17793 msgstr ""
17794
17795 #. type: textblock
17796 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8073
17797 msgid ""
17798 "To construct the original version string: C<$major.$minor.$release$extra>"
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8076
17803 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17804 msgstr ""
17805
17806 #. type: textblock
17807 #: ../fish/guestfish-actions.pod:5258
17808 msgid ""
17809 "I<Note:> Don't use this call to test for availability of features.  In "
17810 "enterprise distributions we backport features from later versions into "
17811 "earlier versions, making this an unreliable way to test for features.  Use "
17812 "L</available> instead."
17813 msgstr ""
17814
17815 #. type: =head2
17816 #: ../fish/guestfish-actions.pod:5264
17817 msgid "vfs-label"
17818 msgstr ""
17819
17820 #. type: verbatim
17821 #: ../fish/guestfish-actions.pod:5266
17822 #, no-wrap
17823 msgid ""
17824 " vfs-label device\n"
17825 "\n"
17826 msgstr ""
17827
17828 #. type: textblock
17829 #: ../fish/guestfish-actions.pod:5268 ../src/guestfs-actions.pod:8096
17830 msgid "This returns the filesystem label of the filesystem on C<device>."
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish-actions.pod:5271 ../src/guestfs-actions.pod:8099
17835 msgid "If the filesystem is unlabeled, this returns the empty string."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish-actions.pod:5273
17840 msgid "To find a filesystem from the label, use L</findfs-label>."
17841 msgstr ""
17842
17843 #. type: =head2
17844 #: ../fish/guestfish-actions.pod:5275
17845 msgid "vfs-type"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../fish/guestfish-actions.pod:5277
17850 #, no-wrap
17851 msgid ""
17852 " vfs-type device\n"
17853 "\n"
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8114
17858 msgid ""
17859 "This command gets the filesystem type corresponding to the filesystem on "
17860 "C<device>."
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8117
17865 msgid ""
17866 "For most filesystems, the result is the name of the Linux VFS module which "
17867 "would be used to mount this filesystem if you mounted it without specifying "
17868 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17869 msgstr ""
17870
17871 #. type: =head2
17872 #: ../fish/guestfish-actions.pod:5287
17873 msgid "vfs-uuid"
17874 msgstr ""
17875
17876 #. type: verbatim
17877 #: ../fish/guestfish-actions.pod:5289
17878 #, no-wrap
17879 msgid ""
17880 " vfs-uuid device\n"
17881 "\n"
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../fish/guestfish-actions.pod:5291 ../src/guestfs-actions.pod:8133
17886 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17887 msgstr ""
17888
17889 #. type: textblock
17890 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8136
17891 msgid "If the filesystem does not have a UUID, this returns the empty string."
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish-actions.pod:5296
17896 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17897 msgstr ""
17898
17899 #. type: =head2
17900 #: ../fish/guestfish-actions.pod:5298
17901 msgid "vg-activate"
17902 msgstr ""
17903
17904 #. type: verbatim
17905 #: ../fish/guestfish-actions.pod:5300
17906 #, no-wrap
17907 msgid ""
17908 " vg-activate true|false 'volgroups ...'\n"
17909 "\n"
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
17914 msgid ""
17915 "This command activates or (if C<activate> is false) deactivates all logical "
17916 "volumes in the listed volume groups C<volgroups>."
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
17921 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17922 msgstr ""
17923
17924 #. type: textblock
17925 #: ../fish/guestfish-actions.pod:5307 ../src/guestfs-actions.pod:8157
17926 msgid ""
17927 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17928 "activated or deactivated."
17929 msgstr ""
17930
17931 #. type: =head2
17932 #: ../fish/guestfish-actions.pod:5310
17933 msgid "vg-activate-all"
17934 msgstr ""
17935
17936 #. type: verbatim
17937 #: ../fish/guestfish-actions.pod:5312
17938 #, no-wrap
17939 msgid ""
17940 " vg-activate-all true|false\n"
17941 "\n"
17942 msgstr ""
17943
17944 #. type: textblock
17945 #: ../fish/guestfish-actions.pod:5314 ../src/guestfs-actions.pod:8170
17946 msgid ""
17947 "This command activates or (if C<activate> is false) deactivates all logical "
17948 "volumes in all volume groups."
17949 msgstr ""
17950
17951 #. type: textblock
17952 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8173
17953 msgid "This command is the same as running C<vgchange -a y|n>"
17954 msgstr ""
17955
17956 #. type: =head2
17957 #: ../fish/guestfish-actions.pod:5319
17958 msgid "vgcreate"
17959 msgstr ""
17960
17961 #. type: verbatim
17962 #: ../fish/guestfish-actions.pod:5321
17963 #, no-wrap
17964 msgid ""
17965 " vgcreate volgroup 'physvols ...'\n"
17966 "\n"
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish-actions.pod:5323 ../src/guestfs-actions.pod:8186
17971 msgid ""
17972 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17973 "of physical volumes C<physvols>."
17974 msgstr ""
17975
17976 #. type: =head2
17977 #: ../fish/guestfish-actions.pod:5326
17978 msgid "vglvuuids"
17979 msgstr ""
17980
17981 #. type: verbatim
17982 #: ../fish/guestfish-actions.pod:5328
17983 #, no-wrap
17984 msgid ""
17985 " vglvuuids vgname\n"
17986 "\n"
17987 msgstr ""
17988
17989 #. type: textblock
17990 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8199
17991 msgid ""
17992 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17993 "volumes created in this volume group."
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish-actions.pod:5333
17998 msgid ""
17999 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18000 "logical volumes and volume groups."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish-actions.pod:5336
18005 msgid "See also L</vgpvuuids>."
18006 msgstr ""
18007
18008 #. type: =head2
18009 #: ../fish/guestfish-actions.pod:5338
18010 msgid "vgpvuuids"
18011 msgstr ""
18012
18013 #. type: verbatim
18014 #: ../fish/guestfish-actions.pod:5340
18015 #, no-wrap
18016 msgid ""
18017 " vgpvuuids vgname\n"
18018 "\n"
18019 msgstr ""
18020
18021 #. type: textblock
18022 #: ../fish/guestfish-actions.pod:5342 ../src/guestfs-actions.pod:8219
18023 msgid ""
18024 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18025 "volumes that this volume group resides on."
18026 msgstr ""
18027
18028 #. type: textblock
18029 #: ../fish/guestfish-actions.pod:5345
18030 msgid ""
18031 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18032 "physical volumes and volume groups."
18033 msgstr ""
18034
18035 #. type: textblock
18036 #: ../fish/guestfish-actions.pod:5348
18037 msgid "See also L</vglvuuids>."
18038 msgstr ""
18039
18040 #. type: =head2
18041 #: ../fish/guestfish-actions.pod:5350
18042 msgid "vgremove"
18043 msgstr ""
18044
18045 #. type: verbatim
18046 #: ../fish/guestfish-actions.pod:5352
18047 #, no-wrap
18048 msgid ""
18049 " vgremove vgname\n"
18050 "\n"
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../fish/guestfish-actions.pod:5354 ../src/guestfs-actions.pod:8239
18055 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish-actions.pod:5356 ../src/guestfs-actions.pod:8241
18060 msgid ""
18061 "This also forcibly removes all logical volumes in the volume group (if any)."
18062 msgstr ""
18063
18064 #. type: =head2
18065 #: ../fish/guestfish-actions.pod:5359
18066 msgid "vgrename"
18067 msgstr ""
18068
18069 #. type: verbatim
18070 #: ../fish/guestfish-actions.pod:5361
18071 #, no-wrap
18072 msgid ""
18073 " vgrename volgroup newvolgroup\n"
18074 "\n"
18075 msgstr ""
18076
18077 #. type: textblock
18078 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8255
18079 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18080 msgstr ""
18081
18082 #. type: =head2
18083 #: ../fish/guestfish-actions.pod:5365
18084 msgid "vgs"
18085 msgstr ""
18086
18087 #. type: verbatim
18088 #: ../fish/guestfish-actions.pod:5367
18089 #, no-wrap
18090 msgid ""
18091 " vgs\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: textblock
18096 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8266
18097 msgid ""
18098 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18099 "> command."
18100 msgstr ""
18101
18102 #. type: textblock
18103 #: ../fish/guestfish-actions.pod:5372 ../src/guestfs-actions.pod:8269
18104 msgid ""
18105 "This returns a list of just the volume group names that were detected (eg. "
18106 "C<VolGroup00>)."
18107 msgstr ""
18108
18109 #. type: textblock
18110 #: ../fish/guestfish-actions.pod:5375
18111 msgid "See also L</vgs-full>."
18112 msgstr ""
18113
18114 #. type: =head2
18115 #: ../fish/guestfish-actions.pod:5377
18116 msgid "vgs-full"
18117 msgstr ""
18118
18119 #. type: verbatim
18120 #: ../fish/guestfish-actions.pod:5379
18121 #, no-wrap
18122 msgid ""
18123 " vgs-full\n"
18124 "\n"
18125 msgstr ""
18126
18127 #. type: textblock
18128 #: ../fish/guestfish-actions.pod:5381 ../src/guestfs-actions.pod:8285
18129 msgid ""
18130 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18131 "> command.  The \"full\" version includes all fields."
18132 msgstr ""
18133
18134 #. type: =head2
18135 #: ../fish/guestfish-actions.pod:5384
18136 msgid "vgscan"
18137 msgstr ""
18138
18139 #. type: verbatim
18140 #: ../fish/guestfish-actions.pod:5386
18141 #, no-wrap
18142 msgid ""
18143 " vgscan\n"
18144 "\n"
18145 msgstr ""
18146
18147 #. type: textblock
18148 #: ../fish/guestfish-actions.pod:5388 ../src/guestfs-actions.pod:8299
18149 msgid ""
18150 "This rescans all block devices and rebuilds the list of LVM physical "
18151 "volumes, volume groups and logical volumes."
18152 msgstr ""
18153
18154 #. type: =head2
18155 #: ../fish/guestfish-actions.pod:5391
18156 msgid "vguuid"
18157 msgstr ""
18158
18159 #. type: verbatim
18160 #: ../fish/guestfish-actions.pod:5393
18161 #, no-wrap
18162 msgid ""
18163 " vguuid vgname\n"
18164 "\n"
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../fish/guestfish-actions.pod:5395 ../src/guestfs-actions.pod:8312
18169 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18170 msgstr ""
18171
18172 #. type: =head2
18173 #: ../fish/guestfish-actions.pod:5397
18174 msgid "wc-c"
18175 msgstr ""
18176
18177 #. type: verbatim
18178 #: ../fish/guestfish-actions.pod:5399
18179 #, no-wrap
18180 msgid ""
18181 " wc-c path\n"
18182 "\n"
18183 msgstr ""
18184
18185 #. type: textblock
18186 #: ../fish/guestfish-actions.pod:5401 ../src/guestfs-actions.pod:8352
18187 msgid ""
18188 "This command counts the characters in a file, using the C<wc -c> external "
18189 "command."
18190 msgstr ""
18191
18192 #. type: =head2
18193 #: ../fish/guestfish-actions.pod:5404
18194 msgid "wc-l"
18195 msgstr ""
18196
18197 #. type: verbatim
18198 #: ../fish/guestfish-actions.pod:5406
18199 #, no-wrap
18200 msgid ""
18201 " wc-l path\n"
18202 "\n"
18203 msgstr ""
18204
18205 #. type: textblock
18206 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8365
18207 msgid ""
18208 "This command counts the lines in a file, using the C<wc -l> external command."
18209 msgstr ""
18210
18211 #. type: =head2
18212 #: ../fish/guestfish-actions.pod:5411
18213 msgid "wc-w"
18214 msgstr ""
18215
18216 #. type: verbatim
18217 #: ../fish/guestfish-actions.pod:5413
18218 #, no-wrap
18219 msgid ""
18220 " wc-w path\n"
18221 "\n"
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../fish/guestfish-actions.pod:5415 ../src/guestfs-actions.pod:8378
18226 msgid ""
18227 "This command counts the words in a file, using the C<wc -w> external command."
18228 msgstr ""
18229
18230 #. type: =head2
18231 #: ../fish/guestfish-actions.pod:5418
18232 msgid "write"
18233 msgstr ""
18234
18235 #. type: verbatim
18236 #: ../fish/guestfish-actions.pod:5420
18237 #, no-wrap
18238 msgid ""
18239 " write path content\n"
18240 "\n"
18241 msgstr ""
18242
18243 #. type: textblock
18244 #: ../fish/guestfish-actions.pod:5422 ../src/guestfs-actions.pod:8393
18245 msgid ""
18246 "This call creates a file called C<path>.  The content of the file is the "
18247 "string C<content> (which can contain any 8 bit data)."
18248 msgstr ""
18249
18250 #. type: textblock
18251 #: ../fish/guestfish-actions.pod:5425
18252 msgid "See also L</write-append>."
18253 msgstr ""
18254
18255 #. type: =head2
18256 #: ../fish/guestfish-actions.pod:5430
18257 msgid "write-append"
18258 msgstr ""
18259
18260 #. type: verbatim
18261 #: ../fish/guestfish-actions.pod:5432
18262 #, no-wrap
18263 msgid ""
18264 " write-append path content\n"
18265 "\n"
18266 msgstr ""
18267
18268 #. type: textblock
18269 #: ../fish/guestfish-actions.pod:5434 ../src/guestfs-actions.pod:8413
18270 msgid ""
18271 "This call appends C<content> to the end of file C<path>.  If C<path> does "
18272 "not exist, then a new file is created."
18273 msgstr ""
18274
18275 #. type: textblock
18276 #: ../fish/guestfish-actions.pod:5437
18277 msgid "See also L</write>."
18278 msgstr ""
18279
18280 #. type: =head2
18281 #: ../fish/guestfish-actions.pod:5442
18282 msgid "write-file"
18283 msgstr ""
18284
18285 #. type: verbatim
18286 #: ../fish/guestfish-actions.pod:5444
18287 #, no-wrap
18288 msgid ""
18289 " write-file path content size\n"
18290 "\n"
18291 msgstr ""
18292
18293 #. type: textblock
18294 #: ../fish/guestfish-actions.pod:5446 ../src/guestfs-actions.pod:8440
18295 msgid ""
18296 "This call creates a file called C<path>.  The contents of the file is the "
18297 "string C<content> (which can contain any 8 bit data), with length C<size>."
18298 msgstr ""
18299
18300 #. type: textblock
18301 #: ../fish/guestfish-actions.pod:5450 ../src/guestfs-actions.pod:8444
18302 msgid ""
18303 "As a special case, if C<size> is C<0> then the length is calculated using "
18304 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18305 msgstr ""
18306
18307 #. type: textblock
18308 #: ../fish/guestfish-actions.pod:5454 ../src/guestfs-actions.pod:8448
18309 msgid ""
18310 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18311 "I<not> work, even if the length is specified."
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish-actions.pod:5460
18316 msgid ""
18317 "I<This function is deprecated.> In new code, use the L</write> call instead."
18318 msgstr ""
18319
18320 #. type: =head2
18321 #: ../fish/guestfish-actions.pod:5467
18322 msgid "zegrep"
18323 msgstr ""
18324
18325 #. type: verbatim
18326 #: ../fish/guestfish-actions.pod:5469
18327 #, no-wrap
18328 msgid ""
18329 " zegrep regex path\n"
18330 "\n"
18331 msgstr ""
18332
18333 #. type: textblock
18334 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8465
18335 msgid ""
18336 "This calls the external C<zegrep> program and returns the matching lines."
18337 msgstr ""
18338
18339 #. type: =head2
18340 #: ../fish/guestfish-actions.pod:5477
18341 msgid "zegrepi"
18342 msgstr ""
18343
18344 #. type: verbatim
18345 #: ../fish/guestfish-actions.pod:5479
18346 #, no-wrap
18347 msgid ""
18348 " zegrepi regex path\n"
18349 "\n"
18350 msgstr ""
18351
18352 #. type: textblock
18353 #: ../fish/guestfish-actions.pod:5481 ../src/guestfs-actions.pod:8484
18354 msgid ""
18355 "This calls the external C<zegrep -i> program and returns the matching lines."
18356 msgstr ""
18357
18358 #. type: =head2
18359 #: ../fish/guestfish-actions.pod:5487
18360 msgid "zero"
18361 msgstr ""
18362
18363 #. type: verbatim
18364 #: ../fish/guestfish-actions.pod:5489
18365 #, no-wrap
18366 msgid ""
18367 " zero device\n"
18368 "\n"
18369 msgstr ""
18370
18371 #. type: textblock
18372 #: ../fish/guestfish-actions.pod:5491 ../src/guestfs-actions.pod:8502
18373 msgid "This command writes zeroes over the first few blocks of C<device>."
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish-actions.pod:5493 ../src/guestfs-actions.pod:8504
18378 msgid ""
18379 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18380 "securely wipe the device).  It should be sufficient to remove any partition "
18381 "tables, filesystem superblocks and so on."
18382 msgstr ""
18383
18384 #. type: textblock
18385 #: ../fish/guestfish-actions.pod:5497 ../fish/guestfish-actions.pod:5512
18386 #: ../src/guestfs-actions.pod:8508 ../src/guestfs-actions.pod:8534
18387 msgid ""
18388 "If blocks are already zero, then this command avoids writing zeroes.  This "
18389 "prevents the underlying device from becoming non-sparse or growing "
18390 "unnecessarily."
18391 msgstr ""
18392
18393 #. type: textblock
18394 #: ../fish/guestfish-actions.pod:5501
18395 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
18396 msgstr ""
18397
18398 #. type: =head2
18399 #: ../fish/guestfish-actions.pod:5504
18400 msgid "zero-device"
18401 msgstr ""
18402
18403 #. type: verbatim
18404 #: ../fish/guestfish-actions.pod:5506
18405 #, no-wrap
18406 msgid ""
18407 " zero-device device\n"
18408 "\n"
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish-actions.pod:5508
18413 msgid ""
18414 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
18415 "which just zeroes the first few blocks of a device."
18416 msgstr ""
18417
18418 #. type: =head2
18419 #: ../fish/guestfish-actions.pod:5516
18420 msgid "zerofree"
18421 msgstr ""
18422
18423 #. type: verbatim
18424 #: ../fish/guestfish-actions.pod:5518
18425 #, no-wrap
18426 msgid ""
18427 " zerofree device\n"
18428 "\n"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/guestfish-actions.pod:5520 ../src/guestfs-actions.pod:8553
18433 msgid ""
18434 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18435 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18436 "possible to compress the filesystem more effectively."
18437 msgstr ""
18438
18439 #. type: textblock
18440 #: ../fish/guestfish-actions.pod:5525 ../src/guestfs-actions.pod:8558
18441 msgid "You should B<not> run this program if the filesystem is mounted."
18442 msgstr ""
18443
18444 #. type: textblock
18445 #: ../fish/guestfish-actions.pod:5528 ../src/guestfs-actions.pod:8561
18446 msgid ""
18447 "It is possible that using this program can damage the filesystem or data on "
18448 "the filesystem."
18449 msgstr ""
18450
18451 #. type: =head2
18452 #: ../fish/guestfish-actions.pod:5531
18453 msgid "zfgrep"
18454 msgstr ""
18455
18456 #. type: verbatim
18457 #: ../fish/guestfish-actions.pod:5533
18458 #, no-wrap
18459 msgid ""
18460 " zfgrep pattern path\n"
18461 "\n"
18462 msgstr ""
18463
18464 #. type: textblock
18465 #: ../fish/guestfish-actions.pod:5535 ../src/guestfs-actions.pod:8575
18466 msgid ""
18467 "This calls the external C<zfgrep> program and returns the matching lines."
18468 msgstr ""
18469
18470 #. type: =head2
18471 #: ../fish/guestfish-actions.pod:5541
18472 msgid "zfgrepi"
18473 msgstr ""
18474
18475 #. type: verbatim
18476 #: ../fish/guestfish-actions.pod:5543
18477 #, no-wrap
18478 msgid ""
18479 " zfgrepi pattern path\n"
18480 "\n"
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8594
18485 msgid ""
18486 "This calls the external C<zfgrep -i> program and returns the matching lines."
18487 msgstr ""
18488
18489 #. type: =head2
18490 #: ../fish/guestfish-actions.pod:5551
18491 msgid "zfile"
18492 msgstr ""
18493
18494 #. type: verbatim
18495 #: ../fish/guestfish-actions.pod:5553
18496 #, no-wrap
18497 msgid ""
18498 " zfile meth path\n"
18499 "\n"
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../fish/guestfish-actions.pod:5555 ../src/guestfs-actions.pod:8620
18504 msgid ""
18505 "This command runs C<file> after first decompressing C<path> using C<method>."
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish-actions.pod:5558 ../src/guestfs-actions.pod:8623
18510 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18511 msgstr ""
18512
18513 #. type: textblock
18514 #: ../fish/guestfish-actions.pod:5560
18515 msgid ""
18516 "Since 1.0.63, use L</file> instead which can now process compressed files."
18517 msgstr ""
18518
18519 #. type: textblock
18520 #: ../fish/guestfish-actions.pod:5563
18521 msgid ""
18522 "I<This function is deprecated.> In new code, use the L</file> call instead."
18523 msgstr ""
18524
18525 #. type: =head2
18526 #: ../fish/guestfish-actions.pod:5570
18527 msgid "zgrep"
18528 msgstr ""
18529
18530 #. type: verbatim
18531 #: ../fish/guestfish-actions.pod:5572
18532 #, no-wrap
18533 msgid ""
18534 " zgrep regex path\n"
18535 "\n"
18536 msgstr ""
18537
18538 #. type: textblock
18539 #: ../fish/guestfish-actions.pod:5574 ../src/guestfs-actions.pod:8640
18540 msgid ""
18541 "This calls the external C<zgrep> program and returns the matching lines."
18542 msgstr ""
18543
18544 #. type: =head2
18545 #: ../fish/guestfish-actions.pod:5580
18546 msgid "zgrepi"
18547 msgstr ""
18548
18549 #. type: verbatim
18550 #: ../fish/guestfish-actions.pod:5582
18551 #, no-wrap
18552 msgid ""
18553 " zgrepi regex path\n"
18554 "\n"
18555 msgstr ""
18556
18557 #. type: textblock
18558 #: ../fish/guestfish-actions.pod:5584 ../src/guestfs-actions.pod:8659
18559 msgid ""
18560 "This calls the external C<zgrep -i> program and returns the matching lines."
18561 msgstr ""
18562
18563 #. type: =head2
18564 #: ../fish/guestfish-commands.pod:1
18565 msgid "alloc"
18566 msgstr ""
18567
18568 #. type: =head2
18569 #: ../fish/guestfish-commands.pod:3
18570 msgid "allocate"
18571 msgstr ""
18572
18573 #. type: verbatim
18574 #: ../fish/guestfish-commands.pod:5
18575 #, no-wrap
18576 msgid ""
18577 " alloc filename size\n"
18578 "\n"
18579 msgstr ""
18580
18581 #. type: textblock
18582 #: ../fish/guestfish-commands.pod:7
18583 msgid ""
18584 "This creates an empty (zeroed) file of the given size, and then adds so it "
18585 "can be further examined."
18586 msgstr ""
18587
18588 #. type: textblock
18589 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18590 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18591 msgstr ""
18592
18593 #. type: textblock
18594 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18595 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18596 msgstr ""
18597
18598 #. type: textblock
18599 #: ../fish/guestfish-commands.pod:14
18600 msgid ""
18601 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18602 "image, see L</PREPARED DISK IMAGES>."
18603 msgstr ""
18604
18605 #. type: =head2
18606 #: ../fish/guestfish-commands.pod:17
18607 msgid "copy-in"
18608 msgstr ""
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish-commands.pod:19
18612 #, no-wrap
18613 msgid ""
18614 " copy-in local [local ...] /remotedir\n"
18615 "\n"
18616 msgstr ""
18617
18618 #. type: textblock
18619 #: ../fish/guestfish-commands.pod:21
18620 msgid ""
18621 "C<copy-in> copies local files or directories recursively into the disk "
18622 "image, placing them in the directory called C</remotedir> (which must "
18623 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18624 "other commands as necessary."
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fish/guestfish-commands.pod:26
18629 msgid ""
18630 "Multiple local files and directories can be specified, but the last "
18631 "parameter must always be a remote directory.  Wildcards cannot be used."
18632 msgstr ""
18633
18634 #. type: =head2
18635 #: ../fish/guestfish-commands.pod:30
18636 msgid "copy-out"
18637 msgstr ""
18638
18639 #. type: verbatim
18640 #: ../fish/guestfish-commands.pod:32
18641 #, no-wrap
18642 msgid ""
18643 " copy-out remote [remote ...] localdir\n"
18644 "\n"
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish-commands.pod:34
18649 msgid ""
18650 "C<copy-out> copies remote files or directories recursively out of the disk "
18651 "image, placing them on the host disk in a local directory called C<localdir> "
18652 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18653 "download>, L</tar-out> and other commands as necessary."
18654 msgstr ""
18655
18656 #. type: textblock
18657 #: ../fish/guestfish-commands.pod:40
18658 msgid ""
18659 "Multiple remote files and directories can be specified, but the last "
18660 "parameter must always be a local directory.  To download to the current "
18661 "directory, use C<.> as in:"
18662 msgstr ""
18663
18664 #. type: verbatim
18665 #: ../fish/guestfish-commands.pod:44
18666 #, no-wrap
18667 msgid ""
18668 " copy-out /home .\n"
18669 "\n"
18670 msgstr ""
18671
18672 #. type: textblock
18673 #: ../fish/guestfish-commands.pod:46
18674 msgid ""
18675 "Wildcards cannot be used in the ordinary command, but you can use them with "
18676 "the help of L</glob> like this:"
18677 msgstr ""
18678
18679 #. type: verbatim
18680 #: ../fish/guestfish-commands.pod:49
18681 #, no-wrap
18682 msgid ""
18683 " glob copy-out /home/* .\n"
18684 "\n"
18685 msgstr ""
18686
18687 #. type: =head2
18688 #: ../fish/guestfish-commands.pod:51
18689 msgid "display"
18690 msgstr ""
18691
18692 #. type: verbatim
18693 #: ../fish/guestfish-commands.pod:53
18694 #, no-wrap
18695 msgid ""
18696 " display filename\n"
18697 "\n"
18698 msgstr ""
18699
18700 #. type: textblock
18701 #: ../fish/guestfish-commands.pod:55
18702 msgid ""
18703 "Use C<display> (a graphical display program) to display an image file.  It "
18704 "downloads the file, and runs C<display> on it."
18705 msgstr ""
18706
18707 #. type: textblock
18708 #: ../fish/guestfish-commands.pod:58
18709 msgid ""
18710 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18711 "environment variable.  For example to use the GNOME display program:"
18712 msgstr ""
18713
18714 #. type: verbatim
18715 #: ../fish/guestfish-commands.pod:61
18716 #, no-wrap
18717 msgid ""
18718 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18719 "\n"
18720 msgstr ""
18721
18722 #. type: textblock
18723 #: ../fish/guestfish-commands.pod:63
18724 msgid "See also L<display(1)>."
18725 msgstr ""
18726
18727 #. type: =head2
18728 #: ../fish/guestfish-commands.pod:65
18729 msgid "echo"
18730 msgstr ""
18731
18732 #. type: verbatim
18733 #: ../fish/guestfish-commands.pod:67
18734 #, no-wrap
18735 msgid ""
18736 " echo [params ...]\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish-commands.pod:69
18742 msgid "This echos the parameters to the terminal."
18743 msgstr ""
18744
18745 #. type: =head2
18746 #: ../fish/guestfish-commands.pod:71
18747 msgid "edit"
18748 msgstr ""
18749
18750 #. type: =head2
18751 #: ../fish/guestfish-commands.pod:73
18752 msgid "vi"
18753 msgstr ""
18754
18755 #. type: =head2
18756 #: ../fish/guestfish-commands.pod:75
18757 msgid "emacs"
18758 msgstr ""
18759
18760 #. type: verbatim
18761 #: ../fish/guestfish-commands.pod:77
18762 #, no-wrap
18763 msgid ""
18764 " edit filename\n"
18765 "\n"
18766 msgstr ""
18767
18768 #. type: textblock
18769 #: ../fish/guestfish-commands.pod:79
18770 msgid ""
18771 "This is used to edit a file.  It downloads the file, edits it locally using "
18772 "your editor, then uploads the result."
18773 msgstr ""
18774
18775 #. type: textblock
18776 #: ../fish/guestfish-commands.pod:82
18777 msgid ""
18778 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18779 "or C<emacs> you will get those corresponding editors."
18780 msgstr ""
18781
18782 #. type: =head2
18783 #: ../fish/guestfish-commands.pod:86
18784 msgid "glob"
18785 msgstr ""
18786
18787 #. type: verbatim
18788 #: ../fish/guestfish-commands.pod:88
18789 #, no-wrap
18790 msgid ""
18791 " glob command args...\n"
18792 "\n"
18793 msgstr ""
18794
18795 #. type: textblock
18796 #: ../fish/guestfish-commands.pod:90
18797 msgid ""
18798 "Expand wildcards in any paths in the args list, and run C<command> "
18799 "repeatedly on each matching path."
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/guestfish-commands.pod:93
18804 msgid "See L</WILDCARDS AND GLOBBING>."
18805 msgstr ""
18806
18807 #. type: =head2
18808 #: ../fish/guestfish-commands.pod:95
18809 msgid "hexedit"
18810 msgstr ""
18811
18812 #. type: verbatim
18813 #: ../fish/guestfish-commands.pod:97
18814 #, no-wrap
18815 msgid ""
18816 " hexedit <filename|device>\n"
18817 " hexedit <filename|device> <max>\n"
18818 " hexedit <filename|device> <start> <max>\n"
18819 "\n"
18820 msgstr ""
18821
18822 #. type: textblock
18823 #: ../fish/guestfish-commands.pod:101
18824 msgid ""
18825 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18826 "device."
18827 msgstr ""
18828
18829 #. type: textblock
18830 #: ../fish/guestfish-commands.pod:104
18831 msgid ""
18832 "This command works by downloading potentially the whole file or device, "
18833 "editing it locally, then uploading it.  If the file or device is large, you "
18834 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18835 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18836 "usual modifiers allowed such as C<1M> (1 megabyte)."
18837 msgstr ""
18838
18839 #. type: textblock
18840 #: ../fish/guestfish-commands.pod:111
18841 msgid "For example to edit the first few sectors of a disk you might do:"
18842 msgstr ""
18843
18844 #. type: verbatim
18845 #: ../fish/guestfish-commands.pod:114
18846 #, no-wrap
18847 msgid ""
18848 " hexedit /dev/sda 1M\n"
18849 "\n"
18850 msgstr ""
18851
18852 #. type: textblock
18853 #: ../fish/guestfish-commands.pod:116
18854 msgid ""
18855 "which would allow you to edit anywhere within the first megabyte of the disk."
18856 msgstr ""
18857
18858 #. type: textblock
18859 #: ../fish/guestfish-commands.pod:119
18860 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18861 msgstr ""
18862
18863 #. type: verbatim
18864 #: ../fish/guestfish-commands.pod:121
18865 #, no-wrap
18866 msgid ""
18867 " hexedit /dev/sda1 0x400 0x400\n"
18868 "\n"
18869 msgstr ""
18870
18871 #. type: textblock
18872 #: ../fish/guestfish-commands.pod:123
18873 msgid "(assuming the superblock is in the standard location)."
18874 msgstr ""
18875
18876 #. type: textblock
18877 #: ../fish/guestfish-commands.pod:125
18878 msgid ""
18879 "This command requires the external L<hexedit(1)> program.  You can specify "
18880 "another program to use by setting the C<HEXEDITOR> environment variable."
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/guestfish-commands.pod:129
18885 msgid "See also L</hexdump>."
18886 msgstr ""
18887
18888 #. type: =head2
18889 #: ../fish/guestfish-commands.pod:131
18890 msgid "lcd"
18891 msgstr ""
18892
18893 #. type: verbatim
18894 #: ../fish/guestfish-commands.pod:133
18895 #, no-wrap
18896 msgid ""
18897 " lcd directory\n"
18898 "\n"
18899 msgstr ""
18900
18901 #. type: textblock
18902 #: ../fish/guestfish-commands.pod:135
18903 msgid ""
18904 "Change the local directory, ie. the current directory of guestfish itself."
18905 msgstr ""
18906
18907 #. type: textblock
18908 #: ../fish/guestfish-commands.pod:138
18909 msgid "Note that C<!cd> won't do what you might expect."
18910 msgstr ""
18911
18912 #. type: =head2
18913 #: ../fish/guestfish-commands.pod:140
18914 msgid "man"
18915 msgstr ""
18916
18917 #. type: =head2
18918 #: ../fish/guestfish-commands.pod:142
18919 msgid "manual"
18920 msgstr ""
18921
18922 #. type: verbatim
18923 #: ../fish/guestfish-commands.pod:144
18924 #, no-wrap
18925 msgid ""
18926 "  man\n"
18927 "\n"
18928 msgstr ""
18929
18930 #. type: textblock
18931 #: ../fish/guestfish-commands.pod:146
18932 msgid "Opens the manual page for guestfish."
18933 msgstr ""
18934
18935 #. type: =head2
18936 #: ../fish/guestfish-commands.pod:148
18937 msgid "more"
18938 msgstr ""
18939
18940 #. type: =head2
18941 #: ../fish/guestfish-commands.pod:150
18942 msgid "less"
18943 msgstr ""
18944
18945 #. type: verbatim
18946 #: ../fish/guestfish-commands.pod:152
18947 #, no-wrap
18948 msgid ""
18949 " more filename\n"
18950 "\n"
18951 msgstr ""
18952
18953 #. type: verbatim
18954 #: ../fish/guestfish-commands.pod:154
18955 #, no-wrap
18956 msgid ""
18957 " less filename\n"
18958 "\n"
18959 msgstr ""
18960
18961 #. type: textblock
18962 #: ../fish/guestfish-commands.pod:156
18963 msgid "This is used to view a file."
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../fish/guestfish-commands.pod:158
18968 msgid ""
18969 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18970 "C<less> you will get the C<less> command specifically."
18971 msgstr ""
18972
18973 #. type: =head2
18974 #: ../fish/guestfish-commands.pod:161
18975 msgid "reopen"
18976 msgstr ""
18977
18978 #. type: verbatim
18979 #: ../fish/guestfish-commands.pod:163
18980 #, no-wrap
18981 msgid ""
18982 "  reopen\n"
18983 "\n"
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish-commands.pod:165
18988 msgid ""
18989 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18990 "normally, because the handle is closed properly when guestfish exits.  "
18991 "However this is occasionally useful for testing."
18992 msgstr ""
18993
18994 #. type: =head2
18995 #: ../fish/guestfish-commands.pod:169
18996 msgid "setenv"
18997 msgstr ""
18998
18999 #. type: verbatim
19000 #: ../fish/guestfish-commands.pod:171
19001 #, no-wrap
19002 msgid ""
19003 "  setenv VAR value\n"
19004 "\n"
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fish/guestfish-commands.pod:173
19009 msgid "Set the environment variable C<VAR> to the string C<value>."
19010 msgstr ""
19011
19012 #. type: textblock
19013 #: ../fish/guestfish-commands.pod:175
19014 msgid ""
19015 "To print the value of an environment variable use a shell command such as:"
19016 msgstr ""
19017
19018 #. type: verbatim
19019 #: ../fish/guestfish-commands.pod:178
19020 #, no-wrap
19021 msgid ""
19022 " !echo $VAR\n"
19023 "\n"
19024 msgstr ""
19025
19026 #. type: =head2
19027 #: ../fish/guestfish-commands.pod:180
19028 msgid "sparse"
19029 msgstr ""
19030
19031 #. type: verbatim
19032 #: ../fish/guestfish-commands.pod:182
19033 #, no-wrap
19034 msgid ""
19035 " sparse filename size\n"
19036 "\n"
19037 msgstr ""
19038
19039 #. type: textblock
19040 #: ../fish/guestfish-commands.pod:184
19041 msgid ""
19042 "This creates an empty sparse file of the given size, and then adds so it can "
19043 "be further examined."
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fish/guestfish-commands.pod:187
19048 msgid ""
19049 "In all respects it works the same as the L</alloc> command, except that the "
19050 "image file is allocated sparsely, which means that disk blocks are not "
19051 "assigned to the file until they are needed.  Sparse disk files only use "
19052 "space when written to, but they are slower and there is a danger you could "
19053 "run out of real disk space during a write operation."
19054 msgstr ""
19055
19056 #. type: =head2
19057 #: ../fish/guestfish-commands.pod:197
19058 msgid "supported"
19059 msgstr ""
19060
19061 #. type: verbatim
19062 #: ../fish/guestfish-commands.pod:199
19063 #, no-wrap
19064 msgid ""
19065 " supported\n"
19066 "\n"
19067 msgstr ""
19068
19069 #. type: textblock
19070 #: ../fish/guestfish-commands.pod:201
19071 msgid ""
19072 "This command returns a list of the optional groups known to the daemon, and "
19073 "indicates which ones are supported by this build of the libguestfs appliance."
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../fish/guestfish-commands.pod:205
19078 msgid "See also L<guestfs(3)/AVAILABILITY>."
19079 msgstr ""
19080
19081 #. type: =head2
19082 #: ../fish/guestfish-commands.pod:207
19083 msgid "time"
19084 msgstr ""
19085
19086 #. type: verbatim
19087 #: ../fish/guestfish-commands.pod:209
19088 #, no-wrap
19089 msgid ""
19090 " time command args...\n"
19091 "\n"
19092 msgstr ""
19093
19094 #. type: textblock
19095 #: ../fish/guestfish-commands.pod:211
19096 msgid ""
19097 "Run the command as usual, but print the elapsed time afterwards.  This can "
19098 "be useful for benchmarking operations."
19099 msgstr ""
19100
19101 #. type: =head2
19102 #: ../fish/guestfish-commands.pod:214
19103 msgid "unsetenv"
19104 msgstr ""
19105
19106 #. type: verbatim
19107 #: ../fish/guestfish-commands.pod:216
19108 #, no-wrap
19109 msgid ""
19110 "  unsetenv VAR\n"
19111 "\n"
19112 msgstr ""
19113
19114 #. type: textblock
19115 #: ../fish/guestfish-commands.pod:218
19116 msgid "Remove C<VAR> from the environment."
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish.pod:5
19121 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19122 msgstr ""
19123
19124 #. type: verbatim
19125 #: ../fish/guestfish.pod:9
19126 #, no-wrap
19127 msgid ""
19128 " guestfish [--options] [commands]\n"
19129 "\n"
19130 msgstr ""
19131
19132 #. type: verbatim
19133 #: ../fish/guestfish.pod:11
19134 #, no-wrap
19135 msgid ""
19136 " guestfish\n"
19137 "\n"
19138 msgstr ""
19139
19140 #. type: verbatim
19141 #: ../fish/guestfish.pod:13
19142 #, no-wrap
19143 msgid ""
19144 " guestfish [--ro|--rw] -a disk.img\n"
19145 "\n"
19146 msgstr ""
19147
19148 #. type: verbatim
19149 #: ../fish/guestfish.pod:15
19150 #, no-wrap
19151 msgid ""
19152 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19153 "\n"
19154 msgstr ""
19155
19156 #. type: verbatim
19157 #: ../fish/guestfish.pod:17
19158 #, no-wrap
19159 msgid ""
19160 " guestfish -d libvirt-domain\n"
19161 "\n"
19162 msgstr ""
19163
19164 #. type: verbatim
19165 #: ../fish/guestfish.pod:19
19166 #, no-wrap
19167 msgid ""
19168 " guestfish [--ro|--rw] -a disk.img -i\n"
19169 "\n"
19170 msgstr ""
19171
19172 #. type: verbatim
19173 #: ../fish/guestfish.pod:21
19174 #, no-wrap
19175 msgid ""
19176 " guestfish -d libvirt-domain -i\n"
19177 "\n"
19178 msgstr ""
19179
19180 #. type: textblock
19181 #: ../fish/guestfish.pod:25
19182 msgid ""
19183 "Using guestfish in read/write mode on live virtual machines can be "
19184 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19185 "option to use guestfish safely if the disk image or virtual machine might be "
19186 "live."
19187 msgstr ""
19188
19189 #. type: textblock
19190 #: ../fish/guestfish.pod:32
19191 msgid ""
19192 "Guestfish is a shell and command-line tool for examining and modifying "
19193 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19194 "functionality of the guestfs API, see L<guestfs(3)>."
19195 msgstr ""
19196
19197 #. type: textblock
19198 #: ../fish/guestfish.pod:36
19199 msgid ""
19200 "Guestfish gives you structured access to the libguestfs API, from shell "
19201 "scripts or the command line or interactively.  If you want to rescue a "
19202 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19203 "command."
19204 msgstr ""
19205
19206 #. type: =head2
19207 #: ../fish/guestfish.pod:43
19208 msgid "As an interactive shell"
19209 msgstr ""
19210
19211 #. type: verbatim
19212 #: ../fish/guestfish.pod:45
19213 #, no-wrap
19214 msgid ""
19215 " $ guestfish\n"
19216 " \n"
19217 msgstr ""
19218
19219 #. type: verbatim
19220 #: ../fish/guestfish.pod:47
19221 #, no-wrap
19222 msgid ""
19223 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19224 " editing virtual machine filesystems.\n"
19225 " \n"
19226 msgstr ""
19227
19228 #. type: verbatim
19229 #: ../fish/guestfish.pod:50
19230 #, no-wrap
19231 msgid ""
19232 " Type: 'help' for a list of commands\n"
19233 "       'man' to read the manual\n"
19234 "       'quit' to quit the shell\n"
19235 " \n"
19236 msgstr ""
19237
19238 #. type: verbatim
19239 #: ../fish/guestfish.pod:54
19240 #, no-wrap
19241 msgid ""
19242 " ><fs> add-ro disk.img\n"
19243 " ><fs> run\n"
19244 " ><fs> list-filesystems\n"
19245 " /dev/sda1: ext4\n"
19246 " /dev/vg_guest/lv_root: ext4\n"
19247 " /dev/vg_guest/lv_swap: swap\n"
19248 " ><fs> mount /dev/vg_guest/lv_root /\n"
19249 " ><fs> cat /etc/fstab\n"
19250 " # /etc/fstab\n"
19251 " # Created by anaconda\n"
19252 " [...]\n"
19253 " ><fs> exit\n"
19254 "\n"
19255 msgstr ""
19256
19257 #. type: =head2
19258 #: ../fish/guestfish.pod:67
19259 msgid "From shell scripts"
19260 msgstr ""
19261
19262 #. type: textblock
19263 #: ../fish/guestfish.pod:69
19264 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19265 msgstr ""
19266
19267 #. type: verbatim
19268 #: ../fish/guestfish.pod:71
19269 #, no-wrap
19270 msgid ""
19271 " guestfish <<_EOF_\n"
19272 " add disk.img\n"
19273 " run\n"
19274 " mount /dev/vg_guest/lv_root /\n"
19275 " write /etc/motd \"Welcome, new users\"\n"
19276 " _EOF_\n"
19277 "\n"
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:78
19282 msgid "List the LVM logical volumes in a disk image:"
19283 msgstr ""
19284
19285 #. type: verbatim
19286 #: ../fish/guestfish.pod:80
19287 #, no-wrap
19288 msgid ""
19289 " guestfish -a disk.img --ro <<_EOF_\n"
19290 " run\n"
19291 " lvs\n"
19292 " _EOF_\n"
19293 "\n"
19294 msgstr ""
19295
19296 #. type: textblock
19297 #: ../fish/guestfish.pod:85
19298 msgid "List all the filesystems in a disk image:"
19299 msgstr ""
19300
19301 #. type: verbatim
19302 #: ../fish/guestfish.pod:87
19303 #, no-wrap
19304 msgid ""
19305 " guestfish -a disk.img --ro <<_EOF_\n"
19306 " run\n"
19307 " list-filesystems\n"
19308 " _EOF_\n"
19309 "\n"
19310 msgstr ""
19311
19312 #. type: =head2
19313 #: ../fish/guestfish.pod:92
19314 msgid "On one command line"
19315 msgstr ""
19316
19317 #. type: textblock
19318 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
19319 msgid "Update C</etc/resolv.conf> in a guest:"
19320 msgstr ""
19321
19322 #. type: verbatim
19323 #: ../fish/guestfish.pod:96
19324 #, no-wrap
19325 msgid ""
19326 " guestfish \\\n"
19327 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19328 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19329 "\n"
19330 msgstr ""
19331
19332 #. type: textblock
19333 #: ../fish/guestfish.pod:100
19334 msgid "Edit C</boot/grub/grub.conf> interactively:"
19335 msgstr ""
19336
19337 #. type: verbatim
19338 #: ../fish/guestfish.pod:102
19339 #, no-wrap
19340 msgid ""
19341 " guestfish --rw --add disk.img \\\n"
19342 "   --mount /dev/vg_guest/lv_root \\\n"
19343 "   --mount /dev/sda1:/boot \\\n"
19344 "   edit /boot/grub/grub.conf\n"
19345 "\n"
19346 msgstr ""
19347
19348 #. type: =head2
19349 #: ../fish/guestfish.pod:107
19350 msgid "Mount disks automatically"
19351 msgstr ""
19352
19353 #. type: textblock
19354 #: ../fish/guestfish.pod:109
19355 msgid ""
19356 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
19357 msgstr ""
19358
19359 #. type: verbatim
19360 #: ../fish/guestfish.pod:112
19361 #, no-wrap
19362 msgid ""
19363 " guestfish --ro -a disk.img -i cat /etc/group\n"
19364 "\n"
19365 msgstr ""
19366
19367 #. type: verbatim
19368 #: ../fish/guestfish.pod:114
19369 #, no-wrap
19370 msgid ""
19371 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19372 "\n"
19373 msgstr ""
19374
19375 #. type: textblock
19376 #: ../fish/guestfish.pod:116
19377 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19378 msgstr ""
19379
19380 #. type: verbatim
19381 #: ../fish/guestfish.pod:118
19382 #, no-wrap
19383 msgid ""
19384 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19385 "\n"
19386 msgstr ""
19387
19388 #. type: =head2
19389 #: ../fish/guestfish.pod:120
19390 msgid "As a script interpreter"
19391 msgstr ""
19392
19393 #. type: textblock
19394 #: ../fish/guestfish.pod:122
19395 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19396 msgstr ""
19397
19398 #. type: verbatim
19399 #: ../fish/guestfish.pod:124
19400 #, no-wrap
19401 msgid ""
19402 " #!/usr/bin/guestfish -f\n"
19403 " sparse test1.img 100M\n"
19404 " run\n"
19405 " part-disk /dev/sda mbr\n"
19406 " mkfs ext2 /dev/sda1\n"
19407 "\n"
19408 msgstr ""
19409
19410 #. type: =head2
19411 #: ../fish/guestfish.pod:130
19412 msgid "Start with a prepared disk"
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fish/guestfish.pod:132
19417 msgid ""
19418 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19419 "single ext2-formatted partition:"
19420 msgstr ""
19421
19422 #. type: verbatim
19423 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
19424 #, no-wrap
19425 msgid ""
19426 " guestfish -N fs\n"
19427 "\n"
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:137
19432 msgid "To list what is available do:"
19433 msgstr ""
19434
19435 #. type: verbatim
19436 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
19437 #, no-wrap
19438 msgid ""
19439 " guestfish -N help | less\n"
19440 "\n"
19441 msgstr ""
19442
19443 #. type: =head2
19444 #: ../fish/guestfish.pod:141
19445 msgid "Remote control"
19446 msgstr ""
19447
19448 #. type: verbatim
19449 #: ../fish/guestfish.pod:143
19450 #, no-wrap
19451 msgid ""
19452 " eval \"`guestfish --listen`\"\n"
19453 " guestfish --remote add-ro disk.img\n"
19454 " guestfish --remote run\n"
19455 " guestfish --remote lvs\n"
19456 "\n"
19457 msgstr ""
19458
19459 #. type: textblock
19460 #: ../fish/guestfish.pod:154
19461 msgid "Displays general help on options."
19462 msgstr ""
19463
19464 #. type: =item
19465 #: ../fish/guestfish.pod:158
19466 msgid "B<--cmd-help>"
19467 msgstr ""
19468
19469 #. type: textblock
19470 #: ../fish/guestfish.pod:160
19471 msgid "Lists all available guestfish commands."
19472 msgstr ""
19473
19474 #. type: =item
19475 #: ../fish/guestfish.pod:162
19476 msgid "B<-h cmd>"
19477 msgstr ""
19478
19479 #. type: =item
19480 #: ../fish/guestfish.pod:164
19481 msgid "B<--cmd-help cmd>"
19482 msgstr ""
19483
19484 #. type: textblock
19485 #: ../fish/guestfish.pod:166
19486 msgid "Displays detailed help on a single command C<cmd>."
19487 msgstr ""
19488
19489 #. type: =item
19490 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19491 msgid "B<-a image>"
19492 msgstr ""
19493
19494 #. type: =item
19495 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19496 msgid "B<--add image>"
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:172
19501 msgid "Add a block device or virtual machine image to the shell."
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../fish/guestfish.pod:177
19506 msgid ""
19507 "Using this flag is mostly equivalent to using the C<add> command, with "
19508 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19509 "the I<--format=...> flag was given."
19510 msgstr ""
19511
19512 #. type: textblock
19513 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19514 msgid ""
19515 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19516 "URI to use.  The default is to use the default libvirt connection."
19517 msgstr ""
19518
19519 #. type: =item
19520 #: ../fish/guestfish.pod:189
19521 msgid "B<--csh>"
19522 msgstr ""
19523
19524 #. type: textblock
19525 #: ../fish/guestfish.pod:191
19526 msgid ""
19527 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19528 "section L</REMOTE CONTROL AND CSH> below."
19529 msgstr ""
19530
19531 #. type: =item
19532 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19533 msgid "B<-d libvirt-domain>"
19534 msgstr ""
19535
19536 #. type: =item
19537 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19538 msgid "B<--domain libvirt-domain>"
19539 msgstr ""
19540
19541 #. type: textblock
19542 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19543 msgid ""
19544 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19545 "used, then any libvirt domain can be used.  However in write mode, only "
19546 "libvirt domains which are shut down can be named here."
19547 msgstr ""
19548
19549 #. type: textblock
19550 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19551 msgid "Domain UUIDs can be used instead of names."
19552 msgstr ""
19553
19554 #. type: textblock
19555 #: ../fish/guestfish.pod:204
19556 msgid ""
19557 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19558 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19559 "if the I<--format:...> flag was given."
19560 msgstr ""
19561
19562 #. type: =item
19563 #: ../fish/guestfish.pod:208
19564 msgid "B<-D>"
19565 msgstr ""
19566
19567 #. type: =item
19568 #: ../fish/guestfish.pod:210
19569 msgid "B<--no-dest-paths>"
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../fish/guestfish.pod:212
19574 msgid ""
19575 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19576 "to hit the tab key to complete paths on the guest filesystem, but this "
19577 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19578 "allow this feature to be disabled."
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19583 msgid ""
19584 "When prompting for keys and passphrases, guestfish normally turns echoing "
19585 "off so you cannot see what you are typing.  If you are not worried about "
19586 "Tempest attacks and there is no one else in the room you can specify this "
19587 "flag to see what you are typing."
19588 msgstr ""
19589
19590 #. type: =item
19591 #: ../fish/guestfish.pod:224
19592 msgid "B<-f file>"
19593 msgstr ""
19594
19595 #. type: =item
19596 #: ../fish/guestfish.pod:226
19597 msgid "B<--file file>"
19598 msgstr ""
19599
19600 #. type: textblock
19601 #: ../fish/guestfish.pod:228
19602 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19603 msgstr ""
19604
19605 #. type: verbatim
19606 #: ../fish/guestfish.pod:231
19607 #, no-wrap
19608 msgid ""
19609 " #!/usr/bin/guestfish -f\n"
19610 "\n"
19611 msgstr ""
19612
19613 #. type: verbatim
19614 #: ../fish/guestfish.pod:244
19615 #, no-wrap
19616 msgid ""
19617 " guestfish --format=raw -a disk.img\n"
19618 "\n"
19619 msgstr ""
19620
19621 #. type: verbatim
19622 #: ../fish/guestfish.pod:248
19623 #, no-wrap
19624 msgid ""
19625 " guestfish --format=raw -a disk.img --format -a another.img\n"
19626 "\n"
19627 msgstr ""
19628
19629 #. type: textblock
19630 #: ../fish/guestfish.pod:253
19631 msgid ""
19632 "If you have untrusted raw-format guest disk images, you should use this "
19633 "option to specify the disk format.  This avoids a possible security problem "
19634 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19635 msgstr ""
19636
19637 #. type: =item
19638 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19639 msgid "B<--inspector>"
19640 msgstr ""
19641
19642 #. type: textblock
19643 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19644 msgid ""
19645 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19646 "system and mount filesystems as they would be mounted on the real virtual "
19647 "machine."
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/guestfish.pod:266
19652 msgid "Typical usage is either:"
19653 msgstr ""
19654
19655 #. type: verbatim
19656 #: ../fish/guestfish.pod:268
19657 #, no-wrap
19658 msgid ""
19659 " guestfish -d myguest -i\n"
19660 "\n"
19661 msgstr ""
19662
19663 #. type: textblock
19664 #: ../fish/guestfish.pod:270
19665 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19666 msgstr ""
19667
19668 #. type: verbatim
19669 #: ../fish/guestfish.pod:272
19670 #, no-wrap
19671 msgid ""
19672 " guestfish --ro -d myguest -i\n"
19673 "\n"
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../fish/guestfish.pod:274
19678 msgid "(for active domains, readonly), or specify the block device directly:"
19679 msgstr ""
19680
19681 #. type: verbatim
19682 #: ../fish/guestfish.pod:276
19683 #, no-wrap
19684 msgid ""
19685 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19686 "\n"
19687 msgstr ""
19688
19689 #. type: textblock
19690 #: ../fish/guestfish.pod:278
19691 msgid ""
19692 "Note that the command line syntax changed slightly over older versions of "
19693 "guestfish.  You can still use the old syntax:"
19694 msgstr ""
19695
19696 #. type: verbatim
19697 #: ../fish/guestfish.pod:281
19698 #, no-wrap
19699 msgid ""
19700 " guestfish [--ro] -i disk.img\n"
19701 "\n"
19702 msgstr ""
19703
19704 #. type: verbatim
19705 #: ../fish/guestfish.pod:283
19706 #, no-wrap
19707 msgid ""
19708 " guestfish [--ro] -i libvirt-domain\n"
19709 "\n"
19710 msgstr ""
19711
19712 #. type: textblock
19713 #: ../fish/guestfish.pod:285
19714 msgid ""
19715 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19716 "then using other commands to mount the filesystems that were found."
19717 msgstr ""
19718
19719 #. type: =item
19720 #: ../fish/guestfish.pod:294
19721 msgid "B<--listen>"
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fish/guestfish.pod:296
19726 msgid ""
19727 "Fork into the background and listen for remote commands.  See section L</"
19728 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19729 msgstr ""
19730
19731 #. type: =item
19732 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19733 msgid "B<--live>"
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19738 msgid ""
19739 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19740 "ATTACHING TO RUNNING DAEMONS>)."
19741 msgstr ""
19742
19743 #. type: =item
19744 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19745 msgid "B<-m dev[:mountpoint[:options]]>"
19746 msgstr ""
19747
19748 #. type: =item
19749 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19750 msgid "B<--mount dev[:mountpoint[:options]]>"
19751 msgstr ""
19752
19753 #. type: textblock
19754 #: ../fish/guestfish.pod:308
19755 msgid "Mount the named partition or logical volume on the given mountpoint."
19756 msgstr ""
19757
19758 #. type: textblock
19759 #: ../fish/guestfish.pod:310
19760 msgid "If the mountpoint is omitted, it defaults to C</>."
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fish/guestfish.pod:312
19765 msgid "You have to mount something on C</> before most commands will work."
19766 msgstr ""
19767
19768 #. type: textblock
19769 #: ../fish/guestfish.pod:314
19770 msgid ""
19771 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19772 "launched."
19773 msgstr ""
19774
19775 #. type: textblock
19776 #: ../fish/guestfish.pod:317
19777 msgid ""
19778 "If you don't know what filesystems a disk image contains, you can either run "
19779 "guestfish without this option, then list the partitions, filesystems and LVs "
19780 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19781 "commands), or you can use the L<virt-filesystems(1)> program."
19782 msgstr ""
19783
19784 #. type: textblock
19785 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19786 msgid ""
19787 "The third (and rarely used) part of the mount parameter is the list of mount "
19788 "options used to mount the underlying filesystem.  If this is not given, then "
19789 "the mount options are either the empty string or C<ro> (the latter if the "
19790 "I<--ro> flag is used).  By specifying the mount options, you override this "
19791 "default choice.  Probably the only time you would use this is to enable ACLs "
19792 "and/or extended attributes if the filesystem can support them:"
19793 msgstr ""
19794
19795 #. type: verbatim
19796 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19797 #, no-wrap
19798 msgid ""
19799 " -m /dev/sda1:/:acl,user_xattr\n"
19800 "\n"
19801 msgstr ""
19802
19803 #. type: textblock
19804 #: ../fish/guestfish.pod:333
19805 msgid "Using this flag is equivalent to using the C<mount-options> command."
19806 msgstr ""
19807
19808 #. type: =item
19809 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19810 #: ../resize/virt-resize.pod:435
19811 msgid "B<-n>"
19812 msgstr ""
19813
19814 #. type: =item
19815 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19816 msgid "B<--no-sync>"
19817 msgstr ""
19818
19819 #. type: textblock
19820 #: ../fish/guestfish.pod:339
19821 msgid ""
19822 "Disable autosync.  This is enabled by default.  See the discussion of "
19823 "autosync in the L<guestfs(3)> manpage."
19824 msgstr ""
19825
19826 #. type: =item
19827 #: ../fish/guestfish.pod:342
19828 msgid "B<-N type>"
19829 msgstr ""
19830
19831 #. type: =item
19832 #: ../fish/guestfish.pod:344
19833 msgid "B<--new type>"
19834 msgstr ""
19835
19836 #. type: =item
19837 #: ../fish/guestfish.pod:346
19838 msgid "B<-N help>"
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../fish/guestfish.pod:348
19843 msgid ""
19844 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19845 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19846 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19847 "IMAGES> below."
19848 msgstr ""
19849
19850 #. type: =item
19851 #: ../fish/guestfish.pod:353
19852 msgid "B<--progress-bars>"
19853 msgstr ""
19854
19855 #. type: textblock
19856 #: ../fish/guestfish.pod:355
19857 msgid "Enable progress bars, even when guestfish is used non-interactively."
19858 msgstr ""
19859
19860 #. type: textblock
19861 #: ../fish/guestfish.pod:357
19862 msgid ""
19863 "Progress bars are enabled by default when guestfish is used as an "
19864 "interactive shell."
19865 msgstr ""
19866
19867 #. type: =item
19868 #: ../fish/guestfish.pod:360
19869 msgid "B<--no-progress-bars>"
19870 msgstr ""
19871
19872 #. type: textblock
19873 #: ../fish/guestfish.pod:362
19874 msgid "Disable progress bars."
19875 msgstr ""
19876
19877 #. type: =item
19878 #: ../fish/guestfish.pod:364
19879 msgid "B<--remote[=pid]>"
19880 msgstr ""
19881
19882 #. type: textblock
19883 #: ../fish/guestfish.pod:366
19884 msgid ""
19885 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19886 "CONTROL GUESTFISH OVER A SOCKET> below."
19887 msgstr ""
19888
19889 #. type: =item
19890 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19891 #: ../rescue/virt-rescue.pod:189
19892 msgid "B<-r>"
19893 msgstr ""
19894
19895 #. type: =item
19896 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19897 #: ../rescue/virt-rescue.pod:191
19898 msgid "B<--ro>"
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../fish/guestfish.pod:373
19903 msgid ""
19904 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19905 "mounts are done read-only."
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19910 msgid ""
19911 "The option must always be used if the disk image or virtual machine might be "
19912 "running, and is generally recommended in cases where you don't need write "
19913 "access to the disk."
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../fish/guestfish.pod:380
19918 msgid ""
19919 "Note that prepared disk images created with I<-N> are not affected by this "
19920 "option.  Also commands like C<add> are not affected - you have to specify "
19921 "the C<readonly:true> option explicitly if you need it."
19922 msgstr ""
19923
19924 #. type: textblock
19925 #: ../fish/guestfish.pod:384
19926 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19927 msgstr ""
19928
19929 #. type: =item
19930 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19931 #: ../rescue/virt-rescue.pod:201
19932 msgid "B<--selinux>"
19933 msgstr ""
19934
19935 #. type: textblock
19936 #: ../fish/guestfish.pod:388
19937 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19938 msgstr ""
19939
19940 #. type: textblock
19941 #: ../fish/guestfish.pod:394
19942 msgid ""
19943 "Enable very verbose messages.  This is particularly useful if you find a bug."
19944 msgstr ""
19945
19946 #. type: textblock
19947 #: ../fish/guestfish.pod:401
19948 msgid "Display the guestfish / libguestfs version number and exit."
19949 msgstr ""
19950
19951 #. type: =item
19952 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19953 #: ../rescue/virt-rescue.pod:231
19954 msgid "B<-w>"
19955 msgstr ""
19956
19957 #. type: =item
19958 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19959 #: ../rescue/virt-rescue.pod:233
19960 msgid "B<--rw>"
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19965 msgid ""
19966 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19967 "mounts are done read-write."
19968 msgstr ""
19969
19970 #. type: textblock
19971 #: ../fish/guestfish.pod:410
19972 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19973 msgstr ""
19974
19975 #. type: textblock
19976 #: ../fish/guestfish.pod:414
19977 msgid "Echo each command before executing it."
19978 msgstr ""
19979
19980 #. type: =head1
19981 #: ../fish/guestfish.pod:418
19982 msgid "COMMANDS ON COMMAND LINE"
19983 msgstr ""
19984
19985 #. type: textblock
19986 #: ../fish/guestfish.pod:420
19987 msgid ""
19988 "Any additional (non-option) arguments are treated as commands to execute."
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../fish/guestfish.pod:423
19993 msgid ""
19994 "Commands to execute should be separated by a colon (C<:>), where the colon "
19995 "is a separate parameter.  Thus:"
19996 msgstr ""
19997
19998 #. type: verbatim
19999 #: ../fish/guestfish.pod:426
20000 #, no-wrap
20001 msgid ""
20002 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20003 "\n"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:428
20008 msgid ""
20009 "If there are no additional arguments, then we enter a shell, either an "
20010 "interactive shell with a prompt (if the input is a terminal) or a non-"
20011 "interactive shell."
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../fish/guestfish.pod:432
20016 msgid ""
20017 "In either command line mode or non-interactive shell, the first command that "
20018 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20019 "prompt) if a command fails, you can continue to enter commands."
20020 msgstr ""
20021
20022 #. type: =head1
20023 #: ../fish/guestfish.pod:437
20024 msgid "USING launch (OR run)"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../fish/guestfish.pod:439
20029 msgid ""
20030 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20031 "then launch it, then mount any disks you need, and finally issue actions/"
20032 "commands.  So the general order of the day is:"
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../fish/guestfish.pod:447
20037 msgid "add or -a/--add"
20038 msgstr ""
20039
20040 #. type: textblock
20041 #: ../fish/guestfish.pod:451
20042 msgid "launch (aka run)"
20043 msgstr ""
20044
20045 #. type: textblock
20046 #: ../fish/guestfish.pod:455
20047 msgid "mount or -m/--mount"
20048 msgstr ""
20049
20050 #. type: textblock
20051 #: ../fish/guestfish.pod:459
20052 msgid "any other commands"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fish/guestfish.pod:463
20057 msgid ""
20058 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20059 "guest before mounting or performing any other commands."
20060 msgstr ""
20061
20062 #. type: textblock
20063 #: ../fish/guestfish.pod:466
20064 msgid ""
20065 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20066 "I<--new> options were given then C<run> is done automatically, simply "
20067 "because guestfish can't perform the action you asked for without doing this."
20068 msgstr ""
20069
20070 #. type: =head1
20071 #: ../fish/guestfish.pod:471
20072 msgid "OPENING DISKS FOR READ AND WRITE"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fish/guestfish.pod:473
20077 msgid ""
20078 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20079 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20080 "I<-i> and I<-m> open disk images read-only or for writing."
20081 msgstr ""
20082
20083 #. type: textblock
20084 #: ../fish/guestfish.pod:478
20085 msgid ""
20086 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20087 "opening disk images supplied on the command line for write.  To open a disk "
20088 "image read-only you have to do I<-a image --ro>."
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../fish/guestfish.pod:482
20093 msgid ""
20094 "This matters: If you accidentally open a live VM disk image writable then "
20095 "you will cause irreversible disk corruption."
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:485
20100 msgid ""
20101 "In a future libguestfs we intend to change the default the other way.  Disk "
20102 "images will be opened read-only.  You will have to either specify "
20103 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20104 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20105 "access for disk images specified by those other command line options."
20106 msgstr ""
20107
20108 #. type: textblock
20109 #: ../fish/guestfish.pod:492
20110 msgid ""
20111 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20112 "which does nothing (it is already the default).  However it is highly "
20113 "recommended that you use this option to indicate that you need write access, "
20114 "and prepare your scripts for the day when this option will be required for "
20115 "write access."
20116 msgstr ""
20117
20118 #. type: textblock
20119 #: ../fish/guestfish.pod:498
20120 msgid ""
20121 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20122 "other libguestfs program apart from guestfish and guestmount."
20123 msgstr ""
20124
20125 #. type: =head1
20126 #: ../fish/guestfish.pod:501
20127 msgid "QUOTING"
20128 msgstr ""
20129
20130 #. type: textblock
20131 #: ../fish/guestfish.pod:503
20132 msgid ""
20133 "You can quote ordinary parameters using either single or double quotes.  For "
20134 "example:"
20135 msgstr ""
20136
20137 #. type: verbatim
20138 #: ../fish/guestfish.pod:506
20139 #, no-wrap
20140 msgid ""
20141 " add \"file with a space.img\"\n"
20142 "\n"
20143 msgstr ""
20144
20145 #. type: verbatim
20146 #: ../fish/guestfish.pod:508
20147 #, no-wrap
20148 msgid ""
20149 " rm '/file name'\n"
20150 "\n"
20151 msgstr ""
20152
20153 #. type: verbatim
20154 #: ../fish/guestfish.pod:510
20155 #, no-wrap
20156 msgid ""
20157 " rm '/\"'\n"
20158 "\n"
20159 msgstr ""
20160
20161 #. type: textblock
20162 #: ../fish/guestfish.pod:512
20163 msgid ""
20164 "A few commands require a list of strings to be passed.  For these, use a "
20165 "whitespace-separated list, enclosed in quotes.  Strings containing "
20166 "whitespace to be passed through must be enclosed in single quotes.  A "
20167 "literal single quote must be escaped with a backslash."
20168 msgstr ""
20169
20170 #. type: verbatim
20171 #: ../fish/guestfish.pod:517
20172 #, no-wrap
20173 msgid ""
20174 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20175 " command \"/bin/echo 'foo      bar'\"\n"
20176 " command \"/bin/echo \\'foo\\'\"\n"
20177 "\n"
20178 msgstr ""
20179
20180 #. type: =head2
20181 #: ../fish/guestfish.pod:521
20182 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20183 msgstr ""
20184
20185 #. type: textblock
20186 #: ../fish/guestfish.pod:523
20187 msgid ""
20188 "In double-quoted arguments (only) use backslash to insert special characters:"
20189 msgstr ""
20190
20191 #. type: =item
20192 #: ../fish/guestfish.pod:528
20193 msgid "C<\\a>"
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../fish/guestfish.pod:530
20198 msgid "Alert (bell) character."
20199 msgstr ""
20200
20201 #. type: =item
20202 #: ../fish/guestfish.pod:532
20203 msgid "C<\\b>"
20204 msgstr ""
20205
20206 #. type: textblock
20207 #: ../fish/guestfish.pod:534
20208 msgid "Backspace character."
20209 msgstr ""
20210
20211 #. type: =item
20212 #: ../fish/guestfish.pod:536
20213 msgid "C<\\f>"
20214 msgstr ""
20215
20216 #. type: textblock
20217 #: ../fish/guestfish.pod:538
20218 msgid "Form feed character."
20219 msgstr ""
20220
20221 #. type: =item
20222 #: ../fish/guestfish.pod:540
20223 msgid "C<\\n>"
20224 msgstr ""
20225
20226 #. type: textblock
20227 #: ../fish/guestfish.pod:542
20228 msgid "Newline character."
20229 msgstr ""
20230
20231 #. type: =item
20232 #: ../fish/guestfish.pod:544
20233 msgid "C<\\r>"
20234 msgstr ""
20235
20236 #. type: textblock
20237 #: ../fish/guestfish.pod:546
20238 msgid "Carriage return character."
20239 msgstr ""
20240
20241 #. type: =item
20242 #: ../fish/guestfish.pod:548
20243 msgid "C<\\t>"
20244 msgstr ""
20245
20246 #. type: textblock
20247 #: ../fish/guestfish.pod:550
20248 msgid "Horizontal tab character."
20249 msgstr ""
20250
20251 #. type: =item
20252 #: ../fish/guestfish.pod:552
20253 msgid "C<\\v>"
20254 msgstr ""
20255
20256 #. type: textblock
20257 #: ../fish/guestfish.pod:554
20258 msgid "Vertical tab character."
20259 msgstr ""
20260
20261 #. type: =item
20262 #: ../fish/guestfish.pod:556
20263 msgid "C<\\\">"
20264 msgstr ""
20265
20266 #. type: textblock
20267 #: ../fish/guestfish.pod:558
20268 msgid "A literal double quote character."
20269 msgstr ""
20270
20271 #. type: =item
20272 #: ../fish/guestfish.pod:560
20273 msgid "C<\\ooo>"
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../fish/guestfish.pod:562
20278 msgid ""
20279 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20280 "(unlike C)."
20281 msgstr ""
20282
20283 #. type: =item
20284 #: ../fish/guestfish.pod:565
20285 msgid "C<\\xhh>"
20286 msgstr ""
20287
20288 #. type: textblock
20289 #: ../fish/guestfish.pod:567
20290 msgid ""
20291 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20292 msgstr ""
20293
20294 #. type: textblock
20295 #: ../fish/guestfish.pod:570
20296 msgid ""
20297 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20298 "strings."
20299 msgstr ""
20300
20301 #. type: =item
20302 #: ../fish/guestfish.pod:573
20303 msgid "C<\\\\>"
20304 msgstr ""
20305
20306 #. type: textblock
20307 #: ../fish/guestfish.pod:575
20308 msgid "A literal backslash character."
20309 msgstr ""
20310
20311 #. type: =head1
20312 #: ../fish/guestfish.pod:579
20313 msgid "OPTIONAL ARGUMENTS"
20314 msgstr ""
20315
20316 #. type: textblock
20317 #: ../fish/guestfish.pod:581
20318 msgid ""
20319 "Some commands take optional arguments.  These arguments appear in this "
20320 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20321 msgstr ""
20322
20323 #. type: verbatim
20324 #: ../fish/guestfish.pod:585
20325 #, no-wrap
20326 msgid ""
20327 " add-drive-opts filename\n"
20328 "\n"
20329 msgstr ""
20330
20331 #. type: verbatim
20332 #: ../fish/guestfish.pod:587
20333 #, no-wrap
20334 msgid ""
20335 " add-drive-opts filename readonly:true\n"
20336 "\n"
20337 msgstr ""
20338
20339 #. type: verbatim
20340 #: ../fish/guestfish.pod:589
20341 #, no-wrap
20342 msgid ""
20343 " add-drive-opts filename format:qcow2 readonly:false\n"
20344 "\n"
20345 msgstr ""
20346
20347 #. type: textblock
20348 #: ../fish/guestfish.pod:591
20349 msgid ""
20350 "Each optional argument can appear at most once.  All optional arguments must "
20351 "appear after the required ones."
20352 msgstr ""
20353
20354 #. type: =head1
20355 #: ../fish/guestfish.pod:594
20356 msgid "NUMBERS"
20357 msgstr ""
20358
20359 #. type: textblock
20360 #: ../fish/guestfish.pod:596
20361 msgid ""
20362 "This section applies to all commands which can take integers as parameters."
20363 msgstr ""
20364
20365 #. type: =head2
20366 #: ../fish/guestfish.pod:599
20367 msgid "SIZE SUFFIX"
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:601
20372 msgid ""
20373 "When the command takes a parameter measured in bytes, you can use one of the "
20374 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20375 msgstr ""
20376
20377 #. type: =item
20378 #: ../fish/guestfish.pod:607
20379 msgid "B<k> or B<K> or B<KiB>"
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../fish/guestfish.pod:609
20384 msgid "The size in kilobytes (multiplied by 1024)."
20385 msgstr ""
20386
20387 #. type: =item
20388 #: ../fish/guestfish.pod:611
20389 msgid "B<KB>"
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../fish/guestfish.pod:613
20394 msgid "The size in SI 1000 byte units."
20395 msgstr ""
20396
20397 #. type: =item
20398 #: ../fish/guestfish.pod:615
20399 msgid "B<M> or B<MiB>"
20400 msgstr ""
20401
20402 #. type: textblock
20403 #: ../fish/guestfish.pod:617
20404 msgid "The size in megabytes (multiplied by 1048576)."
20405 msgstr ""
20406
20407 #. type: =item
20408 #: ../fish/guestfish.pod:619
20409 msgid "B<MB>"
20410 msgstr ""
20411
20412 #. type: textblock
20413 #: ../fish/guestfish.pod:621
20414 msgid "The size in SI 1000000 byte units."
20415 msgstr ""
20416
20417 #. type: =item
20418 #: ../fish/guestfish.pod:623
20419 msgid "B<G> or B<GiB>"
20420 msgstr ""
20421
20422 #. type: textblock
20423 #: ../fish/guestfish.pod:625
20424 msgid "The size in gigabytes (multiplied by 2**30)."
20425 msgstr ""
20426
20427 #. type: =item
20428 #: ../fish/guestfish.pod:627
20429 msgid "B<GB>"
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../fish/guestfish.pod:629
20434 msgid "The size in SI 10**9 byte units."
20435 msgstr ""
20436
20437 #. type: =item
20438 #: ../fish/guestfish.pod:631
20439 msgid "B<T> or B<TiB>"
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../fish/guestfish.pod:633
20444 msgid "The size in terabytes (multiplied by 2**40)."
20445 msgstr ""
20446
20447 #. type: =item
20448 #: ../fish/guestfish.pod:635
20449 msgid "B<TB>"
20450 msgstr ""
20451
20452 #. type: textblock
20453 #: ../fish/guestfish.pod:637
20454 msgid "The size in SI 10**12 byte units."
20455 msgstr ""
20456
20457 #. type: =item
20458 #: ../fish/guestfish.pod:639
20459 msgid "B<P> or B<PiB>"
20460 msgstr ""
20461
20462 #. type: textblock
20463 #: ../fish/guestfish.pod:641
20464 msgid "The size in petabytes (multiplied by 2**50)."
20465 msgstr ""
20466
20467 #. type: =item
20468 #: ../fish/guestfish.pod:643
20469 msgid "B<PB>"
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../fish/guestfish.pod:645
20474 msgid "The size in SI 10**15 byte units."
20475 msgstr ""
20476
20477 #. type: =item
20478 #: ../fish/guestfish.pod:647
20479 msgid "B<E> or B<EiB>"
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../fish/guestfish.pod:649
20484 msgid "The size in exabytes (multiplied by 2**60)."
20485 msgstr ""
20486
20487 #. type: =item
20488 #: ../fish/guestfish.pod:651
20489 msgid "B<EB>"
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../fish/guestfish.pod:653
20494 msgid "The size in SI 10**18 byte units."
20495 msgstr ""
20496
20497 #. type: =item
20498 #: ../fish/guestfish.pod:655
20499 msgid "B<Z> or B<ZiB>"
20500 msgstr ""
20501
20502 #. type: textblock
20503 #: ../fish/guestfish.pod:657
20504 msgid "The size in zettabytes (multiplied by 2**70)."
20505 msgstr ""
20506
20507 #. type: =item
20508 #: ../fish/guestfish.pod:659
20509 msgid "B<ZB>"
20510 msgstr ""
20511
20512 #. type: textblock
20513 #: ../fish/guestfish.pod:661
20514 msgid "The size in SI 10**21 byte units."
20515 msgstr ""
20516
20517 #. type: =item
20518 #: ../fish/guestfish.pod:663
20519 msgid "B<Y> or B<YiB>"
20520 msgstr ""
20521
20522 #. type: textblock
20523 #: ../fish/guestfish.pod:665
20524 msgid "The size in yottabytes (multiplied by 2**80)."
20525 msgstr ""
20526
20527 #. type: =item
20528 #: ../fish/guestfish.pod:667
20529 msgid "B<YB>"
20530 msgstr ""
20531
20532 #. type: textblock
20533 #: ../fish/guestfish.pod:669
20534 msgid "The size in SI 10**24 byte units."
20535 msgstr ""
20536
20537 #. type: verbatim
20538 #: ../fish/guestfish.pod:675
20539 #, no-wrap
20540 msgid ""
20541 " truncate-size /file 1G\n"
20542 "\n"
20543 msgstr ""
20544
20545 #. type: textblock
20546 #: ../fish/guestfish.pod:677
20547 msgid "would truncate the file to 1 gigabyte."
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:679
20552 msgid ""
20553 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20554 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20555 "suffix will probably not do what you expect."
20556 msgstr ""
20557
20558 #. type: =head2
20559 #: ../fish/guestfish.pod:683
20560 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20561 msgstr ""
20562
20563 #. type: textblock
20564 #: ../fish/guestfish.pod:685
20565 msgid ""
20566 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20567 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20568 msgstr ""
20569
20570 #. type: verbatim
20571 #: ../fish/guestfish.pod:688
20572 #, no-wrap
20573 msgid ""
20574 " 1234      decimal number 1234\n"
20575 " 02322     octal number, equivalent to decimal 1234\n"
20576 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20577 "\n"
20578 msgstr ""
20579
20580 #. type: textblock
20581 #: ../fish/guestfish.pod:692
20582 msgid ""
20583 "When using the C<chmod> command, you almost always want to specify an octal "
20584 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20585 "L<chmod(1)> program):"
20586 msgstr ""
20587
20588 #. type: verbatim
20589 #: ../fish/guestfish.pod:696
20590 #, no-wrap
20591 msgid ""
20592 " chmod 0777 /public  # OK\n"
20593 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20594 "\n"
20595 msgstr ""
20596
20597 #. type: textblock
20598 #: ../fish/guestfish.pod:699
20599 msgid ""
20600 "Commands that return numbers usually print them in decimal, but some "
20601 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20602 "octal, preceeded by C<0>)."
20603 msgstr ""
20604
20605 #. type: =head1
20606 #: ../fish/guestfish.pod:703
20607 msgid "WILDCARDS AND GLOBBING"
20608 msgstr ""
20609
20610 #. type: textblock
20611 #: ../fish/guestfish.pod:705
20612 msgid ""
20613 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20614 "(globbing) by default.  So for example the following will not do what you "
20615 "expect:"
20616 msgstr ""
20617
20618 #. type: verbatim
20619 #: ../fish/guestfish.pod:709
20620 #, no-wrap
20621 msgid ""
20622 " rm-rf /home/*\n"
20623 "\n"
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../fish/guestfish.pod:711
20628 msgid ""
20629 "Assuming you don't have a directory called literally C</home/*> then the "
20630 "above command will return an error."
20631 msgstr ""
20632
20633 #. type: textblock
20634 #: ../fish/guestfish.pod:714
20635 msgid "To perform wildcard expansion, use the C<glob> command."
20636 msgstr ""
20637
20638 #. type: verbatim
20639 #: ../fish/guestfish.pod:716
20640 #, no-wrap
20641 msgid ""
20642 " glob rm-rf /home/*\n"
20643 "\n"
20644 msgstr ""
20645
20646 #. type: textblock
20647 #: ../fish/guestfish.pod:718
20648 msgid ""
20649 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20650 "many times), equivalent to:"
20651 msgstr ""
20652
20653 #. type: verbatim
20654 #: ../fish/guestfish.pod:721
20655 #, no-wrap
20656 msgid ""
20657 " rm-rf /home/jim\n"
20658 " rm-rf /home/joe\n"
20659 " rm-rf /home/mary\n"
20660 "\n"
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../fish/guestfish.pod:725
20665 msgid "C<glob> only works on simple guest paths and not on device names."
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../fish/guestfish.pod:727
20670 msgid ""
20671 "If you have several parameters, each containing a wildcard, then glob will "
20672 "perform a Cartesian product."
20673 msgstr ""
20674
20675 #. type: =head1
20676 #: ../fish/guestfish.pod:730
20677 msgid "COMMENTS"
20678 msgstr ""
20679
20680 #. type: textblock
20681 #: ../fish/guestfish.pod:732
20682 msgid ""
20683 "Any line which starts with a I<#> character is treated as a comment and "
20684 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20685 "a command.  For example:"
20686 msgstr ""
20687
20688 #. type: verbatim
20689 #: ../fish/guestfish.pod:736
20690 #, no-wrap
20691 msgid ""
20692 " # this is a comment\n"
20693 "         # this is a comment\n"
20694 " foo # NOT a comment\n"
20695 "\n"
20696 msgstr ""
20697
20698 #. type: textblock
20699 #: ../fish/guestfish.pod:740
20700 msgid "Blank lines are also ignored."
20701 msgstr ""
20702
20703 #. type: =head1
20704 #: ../fish/guestfish.pod:742
20705 msgid "RUNNING COMMANDS LOCALLY"
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../fish/guestfish.pod:744
20710 msgid ""
20711 "Any line which starts with a I<!> character is treated as a command sent to "
20712 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20713 msgstr ""
20714
20715 #. type: verbatim
20716 #: ../fish/guestfish.pod:748
20717 #, no-wrap
20718 msgid ""
20719 " !mkdir local\n"
20720 " tgz-out /remote local/remote-data.tar.gz\n"
20721 "\n"
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../fish/guestfish.pod:751
20726 msgid ""
20727 "will create a directory C<local> on the host, and then export the contents "
20728 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20729 "(See C<tgz-out>)."
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../fish/guestfish.pod:755
20734 msgid ""
20735 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20736 "effect, due to the way that subprocesses work in Unix."
20737 msgstr ""
20738
20739 #. type: =head2
20740 #: ../fish/guestfish.pod:758
20741 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20742 msgstr ""
20743
20744 #. type: textblock
20745 #: ../fish/guestfish.pod:760
20746 msgid ""
20747 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20748 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20749 "and executed as guestfish commands."
20750 msgstr ""
20751
20752 #. type: textblock
20753 #: ../fish/guestfish.pod:764
20754 msgid ""
20755 "Thus you can use shell script to construct arbitrary guestfish commands "
20756 "which are then parsed by guestfish."
20757 msgstr ""
20758
20759 #. type: textblock
20760 #: ../fish/guestfish.pod:767
20761 msgid ""
20762 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20763 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20764 "if we use a shell script to create the guestfish commands for us:"
20765 msgstr ""
20766
20767 #. type: verbatim
20768 #: ../fish/guestfish.pod:772
20769 #, no-wrap
20770 msgid ""
20771 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20772 "\n"
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../fish/guestfish.pod:774
20777 msgid "or with names like C</foo.001>:"
20778 msgstr ""
20779
20780 #. type: verbatim
20781 #: ../fish/guestfish.pod:776
20782 #, no-wrap
20783 msgid ""
20784 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20785 "\n"
20786 msgstr ""
20787
20788 #. type: textblock
20789 #: ../fish/guestfish.pod:778
20790 msgid ""
20791 "When using guestfish interactively it can be helpful to just run the shell "
20792 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20793 "ordinary I<!> local command), see what guestfish commands it would run, and "
20794 "when you are happy with those prepend the C<E<lt>> character to run the "
20795 "guestfish commands for real."
20796 msgstr ""
20797
20798 #. type: =head1
20799 #: ../fish/guestfish.pod:784
20800 msgid "PIPES"
20801 msgstr ""
20802
20803 #. type: textblock
20804 #: ../fish/guestfish.pod:786
20805 msgid ""
20806 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20807 "command (a guestfish command) to the second command (any host command).  For "
20808 "example:"
20809 msgstr ""
20810
20811 #. type: verbatim
20812 #: ../fish/guestfish.pod:790
20813 #, no-wrap
20814 msgid ""
20815 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20816 "\n"
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/guestfish.pod:792
20821 msgid ""
20822 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20823 "program).  The above command would list all accounts in the guest filesystem "
20824 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20825 msgstr ""
20826
20827 #. type: verbatim
20828 #: ../fish/guestfish.pod:797
20829 #, no-wrap
20830 msgid ""
20831 " hexdump /bin/ls | head\n"
20832 " list-devices | tail -1\n"
20833 " tgz-out / - | tar ztf -\n"
20834 "\n"
20835 msgstr ""
20836
20837 #. type: textblock
20838 #: ../fish/guestfish.pod:801
20839 msgid ""
20840 "The space before the pipe symbol is required, any space after the pipe "
20841 "symbol is optional.  Everything after the pipe symbol is just passed "
20842 "straight to the host shell, so it can contain redirections, globs and "
20843 "anything else that makes sense on the host side."
20844 msgstr ""
20845
20846 #. type: textblock
20847 #: ../fish/guestfish.pod:806
20848 msgid ""
20849 "To use a literal argument which begins with a pipe symbol, you have to quote "
20850 "it, eg:"
20851 msgstr ""
20852
20853 #. type: verbatim
20854 #: ../fish/guestfish.pod:809
20855 #, no-wrap
20856 msgid ""
20857 " echo \"|\"\n"
20858 "\n"
20859 msgstr ""
20860
20861 #. type: =head1
20862 #: ../fish/guestfish.pod:811
20863 msgid "HOME DIRECTORIES"
20864 msgstr ""
20865
20866 #. type: textblock
20867 #: ../fish/guestfish.pod:813
20868 msgid ""
20869 "If a parameter starts with the character C<~> then the tilde may be expanded "
20870 "as a home directory path (either C<~> for the current user's home directory, "
20871 "or C<~user> for another user)."
20872 msgstr ""
20873
20874 #. type: textblock
20875 #: ../fish/guestfish.pod:817
20876 msgid ""
20877 "Note that home directory expansion happens for users known I<on the host>, "
20878 "not in the guest filesystem."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fish/guestfish.pod:820
20883 msgid ""
20884 "To use a literal argument which begins with a tilde, you have to quote it, "
20885 "eg:"
20886 msgstr ""
20887
20888 #. type: verbatim
20889 #: ../fish/guestfish.pod:823
20890 #, no-wrap
20891 msgid ""
20892 " echo \"~\"\n"
20893 "\n"
20894 msgstr ""
20895
20896 #. type: =head2
20897 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20898 msgid "ENCRYPTED DISKS"
20899 msgstr ""
20900
20901 #. type: textblock
20902 #: ../fish/guestfish.pod:827
20903 msgid ""
20904 "Libguestfs has some support for Linux guests encrypted according to the "
20905 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20906 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20907 "LUKS is supported."
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../fish/guestfish.pod:832
20912 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20913 msgstr ""
20914
20915 #. type: verbatim
20916 #: ../fish/guestfish.pod:834
20917 #, no-wrap
20918 msgid ""
20919 " ><fs> vfs-type /dev/sda2\n"
20920 " crypto_LUKS\n"
20921 "\n"
20922 msgstr ""
20923
20924 #. type: textblock
20925 #: ../fish/guestfish.pod:837
20926 msgid ""
20927 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20928 "device called C</dev/mapper/luksdev>."
20929 msgstr ""
20930
20931 #. type: verbatim
20932 #: ../fish/guestfish.pod:840
20933 #, no-wrap
20934 msgid ""
20935 " ><fs> luks-open /dev/sda2 luksdev\n"
20936 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20937 "\n"
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../fish/guestfish.pod:843
20942 msgid ""
20943 "Finally you have to tell LVM to scan for volume groups on the newly created "
20944 "mapper device:"
20945 msgstr ""
20946
20947 #. type: verbatim
20948 #: ../fish/guestfish.pod:846
20949 #, no-wrap
20950 msgid ""
20951 " vgscan\n"
20952 " vg-activate-all true\n"
20953 "\n"
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fish/guestfish.pod:849
20958 msgid "The logical volume(s) can now be mounted in the usual way."
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fish/guestfish.pod:851
20963 msgid ""
20964 "Before closing a LUKS device you must unmount any logical volumes on it and "
20965 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20966 "one.  Then you can close the mapper device:"
20967 msgstr ""
20968
20969 #. type: verbatim
20970 #: ../fish/guestfish.pod:855
20971 #, no-wrap
20972 msgid ""
20973 " vg-activate false /dev/VG\n"
20974 " luks-close /dev/mapper/luksdev\n"
20975 "\n"
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../fish/guestfish.pod:860
20980 msgid ""
20981 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20982 "letters and paths (with some limitations).  The following commands are "
20983 "equivalent:"
20984 msgstr ""
20985
20986 #. type: verbatim
20987 #: ../fish/guestfish.pod:864
20988 #, no-wrap
20989 msgid ""
20990 " file /WINDOWS/system32/config/system.LOG\n"
20991 "\n"
20992 msgstr ""
20993
20994 #. type: verbatim
20995 #: ../fish/guestfish.pod:866
20996 #, no-wrap
20997 msgid ""
20998 " file win:\\windows\\system32\\config\\system.log\n"
20999 "\n"
21000 msgstr ""
21001
21002 #. type: verbatim
21003 #: ../fish/guestfish.pod:868
21004 #, no-wrap
21005 msgid ""
21006 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21007 "\n"
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/guestfish.pod:870
21012 msgid ""
21013 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21014 "where the drive is mounted, prepending that to the path, changing all "
21015 "backslash characters to forward slash, then resolving the result using L</"
21016 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21017 "the parameter might be rewritten like this:"
21018 msgstr ""
21019
21020 #. type: verbatim
21021 #: ../fish/guestfish.pod:876
21022 #, no-wrap
21023 msgid ""
21024 " win:e:\\foo\\bar => /e/FOO/bar\n"
21025 "\n"
21026 msgstr ""
21027
21028 #. type: textblock
21029 #: ../fish/guestfish.pod:878
21030 msgid "This only works in argument positions that expect a path."
21031 msgstr ""
21032
21033 #. type: =head1
21034 #: ../fish/guestfish.pod:880
21035 msgid "UPLOADING AND DOWNLOADING FILES"
21036 msgstr ""
21037
21038 #. type: textblock
21039 #: ../fish/guestfish.pod:882
21040 msgid ""
21041 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21042 "others which upload from or download to a local file, you can use the "
21043 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21044 msgstr ""
21045
21046 #. type: verbatim
21047 #: ../fish/guestfish.pod:886
21048 #, no-wrap
21049 msgid ""
21050 " upload - /foo\n"
21051 "\n"
21052 msgstr ""
21053
21054 #. type: textblock
21055 #: ../fish/guestfish.pod:888
21056 msgid ""
21057 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21058 msgstr ""
21059
21060 #. type: verbatim
21061 #: ../fish/guestfish.pod:891
21062 #, no-wrap
21063 msgid ""
21064 " tar-out /etc - | tar tf -\n"
21065 "\n"
21066 msgstr ""
21067
21068 #. type: textblock
21069 #: ../fish/guestfish.pod:893
21070 msgid ""
21071 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21072 "command (see L</PIPES>)."
21073 msgstr ""
21074
21075 #. type: textblock
21076 #: ../fish/guestfish.pod:896
21077 msgid ""
21078 "When using C<-> to read from stdin, the input is read up to the end of "
21079 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21080 "some arbitrary end marker:"
21081 msgstr ""
21082
21083 #. type: verbatim
21084 #: ../fish/guestfish.pod:900
21085 #, no-wrap
21086 msgid ""
21087 " upload -<<END /foo\n"
21088 " input line 1\n"
21089 " input line 2\n"
21090 " input line 3\n"
21091 " END\n"
21092 "\n"
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../fish/guestfish.pod:906
21097 msgid ""
21098 "Any string of characters can be used instead of C<END>.  The end marker must "
21099 "appear on a line of its own, without any preceeding or following characters "
21100 "(not even spaces)."
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../fish/guestfish.pod:910
21105 msgid ""
21106 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21107 "upload local files (so-called \"FileIn\" parameters in the generator)."
21108 msgstr ""
21109
21110 #. type: =head1
21111 #: ../fish/guestfish.pod:913
21112 msgid "EXIT ON ERROR BEHAVIOUR"
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../fish/guestfish.pod:915
21117 msgid ""
21118 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21119 "taking commands from a human over a tty), and will exit on the first error "
21120 "in non-interactive mode (scripts, commands given on the command line)."
21121 msgstr ""
21122
21123 #. type: textblock
21124 #: ../fish/guestfish.pod:920
21125 msgid ""
21126 "If you prefix a command with a I<-> character, then that command will not "
21127 "cause guestfish to exit, even if that (one) command returns an error."
21128 msgstr ""
21129
21130 #. type: =head1
21131 #: ../fish/guestfish.pod:924
21132 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21133 msgstr ""
21134
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:926
21137 msgid ""
21138 "Guestfish can be remote-controlled over a socket.  This is useful "
21139 "particularly in shell scripts where you want to make several different "
21140 "changes to a filesystem, but you don't want the overhead of starting up a "
21141 "guestfish process each time."
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../fish/guestfish.pod:931
21146 msgid "Start a guestfish server process using:"
21147 msgstr ""
21148
21149 #. type: verbatim
21150 #: ../fish/guestfish.pod:933
21151 #, no-wrap
21152 msgid ""
21153 " eval \"`guestfish --listen`\"\n"
21154 "\n"
21155 msgstr ""
21156
21157 #. type: textblock
21158 #: ../fish/guestfish.pod:935
21159 msgid "and then send it commands by doing:"
21160 msgstr ""
21161
21162 #. type: verbatim
21163 #: ../fish/guestfish.pod:937
21164 #, no-wrap
21165 msgid ""
21166 " guestfish --remote cmd [...]\n"
21167 "\n"
21168 msgstr ""
21169
21170 #. type: textblock
21171 #: ../fish/guestfish.pod:939
21172 msgid "To cause the server to exit, send it the exit command:"
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../fish/guestfish.pod:943
21177 msgid ""
21178 "Note that the server will normally exit if there is an error in a command.  "
21179 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21180 "BEHAVIOUR>."
21181 msgstr ""
21182
21183 #. type: =head2
21184 #: ../fish/guestfish.pod:947
21185 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21186 msgstr ""
21187
21188 #. type: textblock
21189 #: ../fish/guestfish.pod:949
21190 msgid ""
21191 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21192 "is how the I<--remote> option knows where to send the commands.  You can "
21193 "have several guestfish listener processes running using:"
21194 msgstr ""
21195
21196 #. type: verbatim
21197 #: ../fish/guestfish.pod:953
21198 #, no-wrap
21199 msgid ""
21200 " eval \"`guestfish --listen`\"\n"
21201 " pid1=$GUESTFISH_PID\n"
21202 " eval \"`guestfish --listen`\"\n"
21203 " pid2=$GUESTFISH_PID\n"
21204 " ...\n"
21205 " guestfish --remote=$pid1 cmd\n"
21206 " guestfish --remote=$pid2 cmd\n"
21207 "\n"
21208 msgstr ""
21209
21210 #. type: =head2
21211 #: ../fish/guestfish.pod:961
21212 msgid "REMOTE CONTROL AND CSH"
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../fish/guestfish.pod:963
21217 msgid ""
21218 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21219 "option:"
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../fish/guestfish.pod:966
21224 #, no-wrap
21225 msgid ""
21226 " eval \"`guestfish --listen --csh`\"\n"
21227 "\n"
21228 msgstr ""
21229
21230 #. type: =head2
21231 #: ../fish/guestfish.pod:968
21232 msgid "REMOTE CONTROL DETAILS"
21233 msgstr ""
21234
21235 #. type: textblock
21236 #: ../fish/guestfish.pod:970
21237 msgid ""
21238 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
21239 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
21240 "and C<$PID> is the process ID of the server."
21241 msgstr ""
21242
21243 #. type: textblock
21244 #: ../fish/guestfish.pod:974
21245 msgid "Guestfish client and server versions must match exactly."
21246 msgstr ""
21247
21248 #. type: =head2
21249 #: ../fish/guestfish.pod:976
21250 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../fish/guestfish.pod:978
21255 msgid ""
21256 "From Bash, you can use the following code which creates a guestfish "
21257 "instance, correctly quotes the command line, handles failure to start, and "
21258 "cleans up guestfish when the script exits:"
21259 msgstr ""
21260
21261 #. type: verbatim
21262 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
21263 #, no-wrap
21264 msgid ""
21265 " #!/bin/bash -\n"
21266 " \n"
21267 msgstr ""
21268
21269 #. type: verbatim
21270 #: ../fish/guestfish.pod:986
21271 #, no-wrap
21272 msgid ""
21273 " guestfish[0]=\"guestfish\"\n"
21274 " guestfish[1]=\"--listen\"\n"
21275 " guestfish[2]=\"--ro\"\n"
21276 " guestfish[3]=\"-a\"\n"
21277 " guestfish[4]=\"disk.img\"\n"
21278 " \n"
21279 msgstr ""
21280
21281 #. type: verbatim
21282 #: ../fish/guestfish.pod:992
21283 #, no-wrap
21284 msgid ""
21285 " GUESTFISH_PID=\n"
21286 " eval $(\"${guestfish[@]}\")\n"
21287 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
21288 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
21289 "     exit 1\n"
21290 " fi\n"
21291 " \n"
21292 msgstr ""
21293
21294 #. type: verbatim
21295 #: ../fish/guestfish.pod:999
21296 #, no-wrap
21297 msgid ""
21298 " cleanup_guestfish ()\n"
21299 " {\n"
21300 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
21301 " }\n"
21302 " trap cleanup_guestfish EXIT ERR\n"
21303 " \n"
21304 msgstr ""
21305
21306 #. type: verbatim
21307 #: ../fish/guestfish.pod:1005
21308 #, no-wrap
21309 msgid ""
21310 " guestfish --remote -- run\n"
21311 " \n"
21312 msgstr ""
21313
21314 #. type: verbatim
21315 #: ../fish/guestfish.pod:1007
21316 #, no-wrap
21317 msgid ""
21318 " # ...\n"
21319 "\n"
21320 msgstr ""
21321
21322 #. type: =head2
21323 #: ../fish/guestfish.pod:1009
21324 msgid "REMOTE CONTROL RUN COMMAND HANGING"
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../fish/guestfish.pod:1011
21329 msgid ""
21330 "Using the C<run> (or C<launch>) command remotely in a command substitution "
21331 "context hangs, ie. don't do (note the backquotes):"
21332 msgstr ""
21333
21334 #. type: verbatim
21335 #: ../fish/guestfish.pod:1014
21336 #, no-wrap
21337 msgid ""
21338 " a=`guestfish --remote run`\n"
21339 "\n"
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../fish/guestfish.pod:1016
21344 msgid ""
21345 "Since the C<run> command produces no output on stdout, this is not useful "
21346 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
21347 "cgi?id=592910>."
21348 msgstr ""
21349
21350 #. type: =head1
21351 #: ../fish/guestfish.pod:1020
21352 msgid "PREPARED DISK IMAGES"
21353 msgstr ""
21354
21355 #. type: textblock
21356 #: ../fish/guestfish.pod:1022
21357 msgid ""
21358 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21359 "preformatted disk images that guestfish can make for you to save typing.  "
21360 "This is particularly useful for testing purposes.  This option is used "
21361 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21362 "can be mixed with I<-a>)."
21363 msgstr ""
21364
21365 #. type: textblock
21366 #: ../fish/guestfish.pod:1028
21367 msgid ""
21368 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21369 "the second and so on.  Existing files in the current directory are "
21370 "I<overwritten>."
21371 msgstr ""
21372
21373 #. type: textblock
21374 #: ../fish/guestfish.pod:1032
21375 msgid ""
21376 "The type briefly describes how the disk should be sized, partitioned, how "
21377 "filesystem(s) should be created, and how content should be added.  "
21378 "Optionally the type can be followed by extra parameters, separated by C<:> "
21379 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
21380 "allocated disk, containing a single partition, with the partition formatted "
21381 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
21382 "disk instead."
21383 msgstr ""
21384
21385 #. type: textblock
21386 #: ../fish/guestfish.pod:1040
21387 msgid "To list the available types and any extra parameters they take, run:"
21388 msgstr ""
21389
21390 #. type: textblock
21391 #: ../fish/guestfish.pod:1044
21392 msgid ""
21393 "Note that the prepared filesystem is not mounted.  You would usually have to "
21394 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../fish/guestfish.pod:1048
21399 msgid ""
21400 "If any I<-N> or I<--new> options are given, the guest is automatically "
21401 "launched."
21402 msgstr ""
21403
21404 #. type: textblock
21405 #: ../fish/guestfish.pod:1053
21406 msgid "Create a 100MB disk with an ext4-formatted partition:"
21407 msgstr ""
21408
21409 #. type: verbatim
21410 #: ../fish/guestfish.pod:1055
21411 #, no-wrap
21412 msgid ""
21413 " guestfish -N fs:ext4\n"
21414 "\n"
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../fish/guestfish.pod:1057
21419 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21420 msgstr ""
21421
21422 #. type: verbatim
21423 #: ../fish/guestfish.pod:1059
21424 #, no-wrap
21425 msgid ""
21426 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21427 "\n"
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../fish/guestfish.pod:1061
21432 msgid "Create a blank 200MB disk:"
21433 msgstr ""
21434
21435 #. type: verbatim
21436 #: ../fish/guestfish.pod:1063
21437 #, no-wrap
21438 msgid ""
21439 " guestfish -N disk:200M\n"
21440 "\n"
21441 msgstr ""
21442
21443 #. type: =head1
21444 #: ../fish/guestfish.pod:1065
21445 msgid "PROGRESS BARS"
21446 msgstr ""
21447
21448 #. type: textblock
21449 #: ../fish/guestfish.pod:1067
21450 msgid ""
21451 "Some (not all) long-running commands send progress notification messages as "
21452 "they are running.  Guestfish turns these messages into progress bars."
21453 msgstr ""
21454
21455 #. type: textblock
21456 #: ../fish/guestfish.pod:1071
21457 msgid ""
21458 "When a command that supports progress bars takes longer than two seconds to "
21459 "run, and if progress bars are enabled, then you will see one appearing below "
21460 "the command:"
21461 msgstr ""
21462
21463 #. type: verbatim
21464 #: ../fish/guestfish.pod:1075
21465 #, no-wrap
21466 msgid ""
21467 " ><fs> copy-size /large-file /another-file 2048M\n"
21468 " / 10% [#####-----------------------------------------] 00:30\n"
21469 "\n"
21470 msgstr ""
21471
21472 #. type: textblock
21473 #: ../fish/guestfish.pod:1078
21474 msgid ""
21475 "The spinner on the left hand side moves round once for every progress "
21476 "notification received from the backend.  This is a (reasonably) golden "
21477 "assurance that the command is \"doing something\" even if the progress bar "
21478 "is not moving, because the command is able to send the progress "
21479 "notifications.  When the bar reaches 100% and the command finishes, the "
21480 "spinner disappears."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fish/guestfish.pod:1085
21485 msgid ""
21486 "Progress bars are enabled by default when guestfish is used interactively.  "
21487 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21488 "and you can disable them completely using I<--no-progress-bars>."
21489 msgstr ""
21490
21491 #. type: =head1
21492 #: ../fish/guestfish.pod:1090
21493 msgid "GUESTFISH COMMANDS"
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../fish/guestfish.pod:1092
21498 msgid ""
21499 "The commands in this section are guestfish convenience commands, in other "
21500 "words, they are not part of the L<guestfs(3)> API."
21501 msgstr ""
21502
21503 #. type: =head2
21504 #: ../fish/guestfish.pod:1095
21505 msgid "help"
21506 msgstr ""
21507
21508 #. type: verbatim
21509 #: ../fish/guestfish.pod:1097
21510 #, no-wrap
21511 msgid ""
21512 " help\n"
21513 " help cmd\n"
21514 "\n"
21515 msgstr ""
21516
21517 #. type: textblock
21518 #: ../fish/guestfish.pod:1100
21519 msgid "Without any parameter, this provides general help."
21520 msgstr ""
21521
21522 #. type: textblock
21523 #: ../fish/guestfish.pod:1102
21524 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21525 msgstr ""
21526
21527 #. type: =head2
21528 #: ../fish/guestfish.pod:1104
21529 msgid "quit | exit"
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../fish/guestfish.pod:1106
21534 msgid "This exits guestfish.  You can also use C<^D> key."
21535 msgstr ""
21536
21537 #. type: textblock
21538 #: ../fish/guestfish.pod:1108
21539 msgid "@FISH_COMMANDS@"
21540 msgstr ""
21541
21542 #. type: =head1
21543 #: ../fish/guestfish.pod:1110
21544 msgid "COMMANDS"
21545 msgstr ""
21546
21547 #. type: textblock
21548 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21549 msgid "@ACTIONS@"
21550 msgstr ""
21551
21552 #. type: textblock
21553 #: ../fish/guestfish.pod:1116
21554 msgid ""
21555 "guestfish returns 0 if the commands completed without error, or 1 if there "
21556 "was an error."
21557 msgstr ""
21558
21559 #. type: =item
21560 #: ../fish/guestfish.pod:1123
21561 msgid "EDITOR"
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../fish/guestfish.pod:1125
21566 msgid ""
21567 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21568 "C<vi>."
21569 msgstr ""
21570
21571 #. type: =item
21572 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21573 msgid "FEBOOTSTRAP_KERNEL"
21574 msgstr ""
21575
21576 #. type: =item
21577 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21578 msgid "FEBOOTSTRAP_MODULES"
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21583 msgid ""
21584 "These two environment variables allow the kernel that libguestfs uses in the "
21585 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21586 "most recent host kernel is chosen.  For more information about kernel "
21587 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21588 "available in febootstrap E<ge> 3.8."
21589 msgstr ""
21590
21591 #. type: =item
21592 #: ../fish/guestfish.pod:1138
21593 msgid "GUESTFISH_DISPLAY_IMAGE"
21594 msgstr ""
21595
21596 #. type: textblock
21597 #: ../fish/guestfish.pod:1140
21598 msgid ""
21599 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21600 "If not set, it uses L<display(1)>."
21601 msgstr ""
21602
21603 #. type: =item
21604 #: ../fish/guestfish.pod:1143
21605 msgid "GUESTFISH_PID"
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../fish/guestfish.pod:1145
21610 msgid ""
21611 "Used with the I<--remote> option to specify the remote guestfish process to "
21612 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21613 msgstr ""
21614
21615 #. type: =item
21616 #: ../fish/guestfish.pod:1149
21617 msgid "HEXEDITOR"
21618 msgstr ""
21619
21620 #. type: textblock
21621 #: ../fish/guestfish.pod:1151
21622 msgid ""
21623 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21624 "not specified, the external L<hexedit(1)> program is used."
21625 msgstr ""
21626
21627 #. type: =item
21628 #: ../fish/guestfish.pod:1155
21629 msgid "HOME"
21630 msgstr ""
21631
21632 #. type: textblock
21633 #: ../fish/guestfish.pod:1157
21634 msgid ""
21635 "If compiled with GNU readline support, various files in the home directory "
21636 "can be used.  See L</FILES>."
21637 msgstr ""
21638
21639 #. type: =item
21640 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21641 msgid "LIBGUESTFS_APPEND"
21642 msgstr ""
21643
21644 #. type: textblock
21645 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21646 msgid "Pass additional options to the guest kernel."
21647 msgstr ""
21648
21649 #. type: =item
21650 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21651 msgid "LIBGUESTFS_DEBUG"
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../fish/guestfish.pod:1166
21656 msgid ""
21657 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21658 "effect as using the B<-v> option."
21659 msgstr ""
21660
21661 #. type: =item
21662 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21663 msgid "LIBGUESTFS_MEMSIZE"
21664 msgstr ""
21665
21666 #. type: textblock
21667 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21668 msgid ""
21669 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21670 msgstr ""
21671
21672 #. type: verbatim
21673 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21674 #, no-wrap
21675 msgid ""
21676 " LIBGUESTFS_MEMSIZE=700\n"
21677 "\n"
21678 msgstr ""
21679
21680 #. type: =item
21681 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21682 msgid "LIBGUESTFS_PATH"
21683 msgstr ""
21684
21685 #. type: textblock
21686 #: ../fish/guestfish.pod:1178
21687 msgid ""
21688 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21689 "the discussion of paths in L<guestfs(3)>."
21690 msgstr ""
21691
21692 #. type: =item
21693 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21694 msgid "LIBGUESTFS_QEMU"
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21699 msgid ""
21700 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21701 "which was found at compile time by the configure script is used."
21702 msgstr ""
21703
21704 #. type: =item
21705 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21706 msgid "LIBGUESTFS_TRACE"
21707 msgstr ""
21708
21709 #. type: textblock
21710 #: ../fish/guestfish.pod:1189
21711 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21712 msgstr ""
21713
21714 #. type: =item
21715 #: ../fish/guestfish.pod:1191
21716 msgid "PAGER"
21717 msgstr ""
21718
21719 #. type: textblock
21720 #: ../fish/guestfish.pod:1193
21721 msgid ""
21722 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21723 "C<more>."
21724 msgstr ""
21725
21726 #. type: =item
21727 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21728 #: ../src/guestfs.pod:3257
21729 msgid "TMPDIR"
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21734 msgid ""
21735 "Location of temporary directory, defaults to C</tmp> except for the cached "
21736 "supermin appliance which defaults to C</var/tmp>."
21737 msgstr ""
21738
21739 #. type: textblock
21740 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21741 msgid ""
21742 "If libguestfs was compiled to use the supermin appliance then the real "
21743 "appliance is cached in this directory, shared between all handles belonging "
21744 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21745 "use in case C</var/tmp> is not large enough."
21746 msgstr ""
21747
21748 #. type: =head1
21749 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21750 #: ../rescue/virt-rescue.pod:310
21751 msgid "FILES"
21752 msgstr ""
21753
21754 #. type: =item
21755 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21756 #: ../rescue/virt-rescue.pod:314
21757 msgid "$HOME/.libguestfs-tools.rc"
21758 msgstr ""
21759
21760 #. type: =item
21761 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21762 #: ../rescue/virt-rescue.pod:316
21763 msgid "/etc/libguestfs-tools.conf"
21764 msgstr ""
21765
21766 #. type: textblock
21767 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21768 #: ../rescue/virt-rescue.pod:318
21769 msgid ""
21770 "This configuration file controls the default read-only or read-write mode "
21771 "(I<--ro> or I<--rw>)."
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../fish/guestfish.pod:1220
21776 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21777 msgstr ""
21778
21779 #. type: =item
21780 #: ../fish/guestfish.pod:1222
21781 msgid "$HOME/.guestfish"
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../fish/guestfish.pod:1224
21786 msgid ""
21787 "If compiled with GNU readline support, then the command history is saved in "
21788 "this file."
21789 msgstr ""
21790
21791 #. type: =item
21792 #: ../fish/guestfish.pod:1227
21793 msgid "$HOME/.inputrc"
21794 msgstr ""
21795
21796 #. type: =item
21797 #: ../fish/guestfish.pod:1229
21798 msgid "/etc/inputrc"
21799 msgstr ""
21800
21801 #. type: textblock
21802 #: ../fish/guestfish.pod:1231
21803 msgid ""
21804 "If compiled with GNU readline support, then these files can be used to "
21805 "configure readline.  For further information, please see L<readline(3)/"
21806 "INITIALIZATION FILE>."
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../fish/guestfish.pod:1235
21811 msgid "To write rules which only apply to guestfish, use:"
21812 msgstr ""
21813
21814 #. type: verbatim
21815 #: ../fish/guestfish.pod:1237
21816 #, no-wrap
21817 msgid ""
21818 " $if guestfish\n"
21819 " ...\n"
21820 " $endif\n"
21821 "\n"
21822 msgstr ""
21823
21824 #. type: textblock
21825 #: ../fish/guestfish.pod:1241
21826 msgid ""
21827 "Variables that you can set in inputrc that change the behaviour of guestfish "
21828 "in useful ways include:"
21829 msgstr ""
21830
21831 #. type: =item
21832 #: ../fish/guestfish.pod:1246
21833 msgid "completion-ignore-case (default: on)"
21834 msgstr ""
21835
21836 #. type: textblock
21837 #: ../fish/guestfish.pod:1248
21838 msgid ""
21839 "By default, guestfish will ignore case when tab-completing paths on the "
21840 "disk.  Use:"
21841 msgstr ""
21842
21843 #. type: verbatim
21844 #: ../fish/guestfish.pod:1251
21845 #, no-wrap
21846 msgid ""
21847 " set completion-ignore-case off\n"
21848 "\n"
21849 msgstr ""
21850
21851 #. type: textblock
21852 #: ../fish/guestfish.pod:1253
21853 msgid "to make guestfish case sensitive."
21854 msgstr ""
21855
21856 #. type: =item
21857 #: ../fish/guestfish.pod:1257
21858 msgid "test1.img"
21859 msgstr ""
21860
21861 #. type: =item
21862 #: ../fish/guestfish.pod:1259
21863 msgid "test2.img (etc)"
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../fish/guestfish.pod:1261
21868 msgid ""
21869 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21870 "will be created in the file C<test1.img> in the current directory.  The "
21871 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21872 "the same name will be overwritten."
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../fish/guestfish.pod:1270
21877 msgid ""
21878 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21879 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21880 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21881 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21882 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21883 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21884 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21885 msgstr ""
21886
21887 #. type: textblock
21888 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3355
21889 #: ../test-tool/libguestfs-test-tool.pod:112
21890 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21891 msgstr ""
21892
21893 #. type: textblock
21894 #: ../fish/virt-copy-in.pod:5
21895 msgid ""
21896 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21897 msgstr ""
21898
21899 #. type: verbatim
21900 #: ../fish/virt-copy-in.pod:9
21901 #, no-wrap
21902 msgid ""
21903 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21904 "\n"
21905 msgstr ""
21906
21907 #. type: verbatim
21908 #: ../fish/virt-copy-in.pod:11
21909 #, no-wrap
21910 msgid ""
21911 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21912 "\n"
21913 msgstr ""
21914
21915 #. type: textblock
21916 #: ../fish/virt-copy-in.pod:15
21917 msgid ""
21918 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21919 "causing disk corruption.  The virtual machine must be shut down before you "
21920 "use this command."
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../fish/virt-copy-in.pod:21
21925 msgid ""
21926 "C<virt-copy-in> copies files and directories from the local disk into a "
21927 "virtual machine disk image or named libvirt domain."
21928 msgstr ""
21929
21930 #. type: textblock
21931 #: ../fish/virt-copy-in.pod:24
21932 msgid ""
21933 "You can give one of more filenames and directories on the command line.  "
21934 "Directories are copied in recursively.  The final parameter must be the "
21935 "destination directory in the disk image which must be an absolute path "
21936 "starting with a C</> character."
21937 msgstr ""
21938
21939 #. type: verbatim
21940 #: ../fish/virt-copy-in.pod:33
21941 #, no-wrap
21942 msgid ""
21943 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21944 "\n"
21945 msgstr ""
21946
21947 #. type: textblock
21948 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21949 msgid "Upload a home directory to a guest:"
21950 msgstr ""
21951
21952 #. type: verbatim
21953 #: ../fish/virt-copy-in.pod:37
21954 #, no-wrap
21955 msgid ""
21956 " virt-copy-in -d MyGuest skel /home\n"
21957 "\n"
21958 msgstr ""
21959
21960 #. type: =head1
21961 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21962 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21963 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../fish/virt-copy-in.pod:41
21968 msgid ""
21969 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21970 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21971 "are probably better off using guestfish directly."
21972 msgstr ""
21973
21974 #. type: textblock
21975 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21976 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21977 msgid ""
21978 "Since the shell script just passes options straight to guestfish, read "
21979 "L<guestfish(1)> to see the full list of options."
21980 msgstr ""
21981
21982 #. type: textblock
21983 #: ../fish/virt-copy-in.pod:52
21984 msgid ""
21985 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21986 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21987 msgstr ""
21988
21989 #. type: textblock
21990 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21991 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21992 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../fish/virt-copy-out.pod:5
21997 msgid ""
21998 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21999 "image."
22000 msgstr ""
22001
22002 #. type: verbatim
22003 #: ../fish/virt-copy-out.pod:9
22004 #, no-wrap
22005 msgid ""
22006 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22007 "\n"
22008 msgstr ""
22009
22010 #. type: verbatim
22011 #: ../fish/virt-copy-out.pod:11
22012 #, no-wrap
22013 msgid ""
22014 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22015 "\n"
22016 msgstr ""
22017
22018 #. type: textblock
22019 #: ../fish/virt-copy-out.pod:15
22020 msgid ""
22021 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22022 "image or named libvirt domain."
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../fish/virt-copy-out.pod:18
22027 msgid ""
22028 "You can give one of more filenames and directories on the command line.  "
22029 "Directories are copied out recursively."
22030 msgstr ""
22031
22032 #. type: textblock
22033 #: ../fish/virt-copy-out.pod:23
22034 msgid "Download the home directories from a virtual machine:"
22035 msgstr ""
22036
22037 #. type: verbatim
22038 #: ../fish/virt-copy-out.pod:25
22039 #, no-wrap
22040 msgid ""
22041 " mkdir homes\n"
22042 " virt-copy-out -d MyGuest /home homes\n"
22043 "\n"
22044 msgstr ""
22045
22046 #. type: textblock
22047 #: ../fish/virt-copy-out.pod:30
22048 msgid ""
22049 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22050 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22051 "are probably better off using guestfish directly."
22052 msgstr ""
22053
22054 #. type: textblock
22055 #: ../fish/virt-copy-out.pod:41
22056 msgid ""
22057 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22058 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22059 msgstr ""
22060
22061 #. type: textblock
22062 #: ../fish/virt-tar-in.pod:5
22063 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22064 msgstr ""
22065
22066 #. type: verbatim
22067 #: ../fish/virt-tar-in.pod:9
22068 #, no-wrap
22069 msgid ""
22070 " virt-tar-in -a disk.img data.tar /destination\n"
22071 "\n"
22072 msgstr ""
22073
22074 #. type: verbatim
22075 #: ../fish/virt-tar-in.pod:11
22076 #, no-wrap
22077 msgid ""
22078 " virt-tar-in -d domain data.tar /destination\n"
22079 "\n"
22080 msgstr ""
22081
22082 #. type: verbatim
22083 #: ../fish/virt-tar-in.pod:13
22084 #, no-wrap
22085 msgid ""
22086 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22087 "\n"
22088 msgstr ""
22089
22090 #. type: textblock
22091 #: ../fish/virt-tar-in.pod:17
22092 msgid ""
22093 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22094 "causing disk corruption.  The virtual machine must be shut down before you "
22095 "use this command."
22096 msgstr ""
22097
22098 #. type: textblock
22099 #: ../fish/virt-tar-in.pod:23
22100 msgid ""
22101 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22102 "image or named libvirt domain."
22103 msgstr ""
22104
22105 #. type: textblock
22106 #: ../fish/virt-tar-in.pod:26
22107 msgid ""
22108 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22109 "standard input.  The second parameter is the absolute target directory to "
22110 "unpack into."
22111 msgstr ""
22112
22113 #. type: verbatim
22114 #: ../fish/virt-tar-in.pod:34
22115 #, no-wrap
22116 msgid ""
22117 " virt-tar-in -d MyGuest homes.tar /home\n"
22118 "\n"
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../fish/virt-tar-in.pod:38
22123 msgid ""
22124 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22125 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22126 "probably better off using guestfish directly."
22127 msgstr ""
22128
22129 #. type: textblock
22130 #: ../fish/virt-tar-in.pod:49
22131 msgid ""
22132 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22133 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22134 "org/>."
22135 msgstr ""
22136
22137 #. type: textblock
22138 #: ../fish/virt-tar-out.pod:5
22139 msgid ""
22140 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22141 msgstr ""
22142
22143 #. type: verbatim
22144 #: ../fish/virt-tar-out.pod:9
22145 #, no-wrap
22146 msgid ""
22147 " virt-tar-out -a disk.img /dir files.tar\n"
22148 "\n"
22149 msgstr ""
22150
22151 #. type: verbatim
22152 #: ../fish/virt-tar-out.pod:11
22153 #, no-wrap
22154 msgid ""
22155 " virt-tar-out -d domain /dir files.tar\n"
22156 "\n"
22157 msgstr ""
22158
22159 #. type: verbatim
22160 #: ../fish/virt-tar-out.pod:13
22161 #, no-wrap
22162 msgid ""
22163 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
22164 "\n"
22165 msgstr ""
22166
22167 #. type: textblock
22168 #: ../fish/virt-tar-out.pod:17
22169 msgid ""
22170 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../fish/virt-tar-out.pod:20
22175 msgid ""
22176 "The first parameter is the absolute path of the virtual machine directory.  "
22177 "The second parameter is the tar file to write.  Use C<-> to write to "
22178 "standard output."
22179 msgstr ""
22180
22181 #. type: textblock
22182 #: ../fish/virt-tar-out.pod:26
22183 msgid "Download the home directories from a guest:"
22184 msgstr ""
22185
22186 #. type: verbatim
22187 #: ../fish/virt-tar-out.pod:28
22188 #, no-wrap
22189 msgid ""
22190 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
22191 "\n"
22192 msgstr ""
22193
22194 #. type: textblock
22195 #: ../fish/virt-tar-out.pod:32
22196 msgid ""
22197 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22198 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
22199 "are probably better off using guestfish directly."
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../fish/virt-tar-out.pod:43
22204 msgid ""
22205 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22206 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../fuse/guestmount.pod:5
22211 msgid ""
22212 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
22213 msgstr ""
22214
22215 #. type: verbatim
22216 #: ../fuse/guestmount.pod:9
22217 #, no-wrap
22218 msgid ""
22219 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
22220 "\n"
22221 msgstr ""
22222
22223 #. type: verbatim
22224 #: ../fuse/guestmount.pod:11
22225 #, no-wrap
22226 msgid ""
22227 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
22228 "\n"
22229 msgstr ""
22230
22231 #. type: verbatim
22232 #: ../fuse/guestmount.pod:13
22233 #, no-wrap
22234 msgid ""
22235 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
22236 "\n"
22237 msgstr ""
22238
22239 #. type: textblock
22240 #: ../fuse/guestmount.pod:17
22241 msgid ""
22242 "You must I<not> use C<guestmount> in read-write mode on live virtual "
22243 "machines.  If you do this, you risk disk corruption in the VM."
22244 msgstr ""
22245
22246 #. type: textblock
22247 #: ../fuse/guestmount.pod:22
22248 msgid ""
22249 "The guestmount program can be used to mount virtual machine filesystems and "
22250 "other disk images on the host.  It uses libguestfs for access to the guest "
22251 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
22252 "a mountable device."
22253 msgstr ""
22254
22255 #. type: textblock
22256 #: ../fuse/guestmount.pod:27
22257 msgid ""
22258 "Along with other options, you have to give at least one device (I<-a> "
22259 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
22260 "option) or use the I<-i> inspection option or the I<--live> option.  How "
22261 "this works is better explained in the L<guestfish(1)> manual page, or by "
22262 "looking at the examples below."
22263 msgstr ""
22264
22265 #. type: textblock
22266 #: ../fuse/guestmount.pod:33
22267 msgid ""
22268 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
22269 "by you, and the filesystem will not be visible to any other users unless you "
22270 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
22271 "the filesystem, use the C<fusermount -u> command."
22272 msgstr ""
22273
22274 #. type: textblock
22275 #: ../fuse/guestmount.pod:41
22276 msgid ""
22277 "For a typical Windows guest which has its main filesystem on the first "
22278 "partition:"
22279 msgstr ""
22280
22281 #. type: verbatim
22282 #: ../fuse/guestmount.pod:44
22283 #, no-wrap
22284 msgid ""
22285 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
22286 "\n"
22287 msgstr ""
22288
22289 #. type: textblock
22290 #: ../fuse/guestmount.pod:46
22291 msgid ""
22292 "For a typical Linux guest which has a /boot filesystem on the first "
22293 "partition, and the root filesystem on a logical volume:"
22294 msgstr ""
22295
22296 #. type: verbatim
22297 #: ../fuse/guestmount.pod:49
22298 #, no-wrap
22299 msgid ""
22300 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
22301 "\n"
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../fuse/guestmount.pod:51
22306 msgid "To get libguestfs to detect guest mountpoints for you:"
22307 msgstr ""
22308
22309 #. type: verbatim
22310 #: ../fuse/guestmount.pod:53
22311 #, no-wrap
22312 msgid ""
22313 " guestmount -a guest.img -i --ro /mnt\n"
22314 "\n"
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../fuse/guestmount.pod:55
22319 msgid "For a libvirt guest called \"Guest\" you could do:"
22320 msgstr ""
22321
22322 #. type: verbatim
22323 #: ../fuse/guestmount.pod:57
22324 #, no-wrap
22325 msgid ""
22326 " guestmount -d Guest -i --ro /mnt\n"
22327 "\n"
22328 msgstr ""
22329
22330 #. type: textblock
22331 #: ../fuse/guestmount.pod:59
22332 msgid ""
22333 "If you don't know what filesystems are contained in a guest or disk image, "
22334 "use L<virt-filesystems(1)> first:"
22335 msgstr ""
22336
22337 #. type: verbatim
22338 #: ../fuse/guestmount.pod:62
22339 #, no-wrap
22340 msgid ""
22341 " virt-filesystems MyGuest\n"
22342 "\n"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../fuse/guestmount.pod:64
22347 msgid ""
22348 "If you want to trace the libguestfs calls but without excessive debugging "
22349 "information, we recommend:"
22350 msgstr ""
22351
22352 #. type: verbatim
22353 #: ../fuse/guestmount.pod:67
22354 #, no-wrap
22355 msgid ""
22356 " guestmount [...] --trace /mnt\n"
22357 "\n"
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../fuse/guestmount.pod:69
22362 msgid "If you want to debug the program, we recommend:"
22363 msgstr ""
22364
22365 #. type: verbatim
22366 #: ../fuse/guestmount.pod:71
22367 #, no-wrap
22368 msgid ""
22369 " guestmount [...] --trace --verbose /mnt\n"
22370 "\n"
22371 msgstr ""
22372
22373 #. type: =head1
22374 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
22375 #: ../resize/virt-resize.pod:621
22376 msgid "NOTES"
22377 msgstr ""
22378
22379 #. type: =head2
22380 #: ../fuse/guestmount.pod:75
22381 msgid "Other users cannot see the filesystem by default"
22382 msgstr ""
22383
22384 #. type: textblock
22385 #: ../fuse/guestmount.pod:77
22386 msgid ""
22387 "If you mount a filesystem as one user (eg. root), then other users will not "
22388 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
22389 "option when mounting:"
22390 msgstr ""
22391
22392 #. type: verbatim
22393 #: ../fuse/guestmount.pod:81
22394 #, no-wrap
22395 msgid ""
22396 " sudo guestmount [...] -o allow_other /mnt\n"
22397 "\n"
22398 msgstr ""
22399
22400 #. type: =head2
22401 #: ../fuse/guestmount.pod:83
22402 msgid "Enabling FUSE"
22403 msgstr ""
22404
22405 #. type: textblock
22406 #: ../fuse/guestmount.pod:85
22407 msgid ""
22408 "On some distros, you may need to add yourself to a special group (eg. "
22409 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
22410 "Debian and derivatives."
22411 msgstr ""
22412
22413 #. type: textblock
22414 #: ../fuse/guestmount.pod:89
22415 msgid ""
22416 "On other distros, no special group is required.  It is not necessary on "
22417 "Fedora or Red Hat Enterprise Linux."
22418 msgstr ""
22419
22420 #. type: textblock
22421 #: ../fuse/guestmount.pod:100
22422 msgid "Add a block device or virtual machine image."
22423 msgstr ""
22424
22425 #. type: =item
22426 #: ../fuse/guestmount.pod:123
22427 msgid "B<--dir-cache-timeout N>"
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../fuse/guestmount.pod:125
22432 msgid ""
22433 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22434 "seconds.  The readdir cache [actually, there are several semi-independent "
22435 "caches] is populated after a readdir(2) call with the stat and extended "
22436 "attributes of the files in the directory, in anticipation that they will be "
22437 "requested soon after."
22438 msgstr ""
22439
22440 #. type: textblock
22441 #: ../fuse/guestmount.pod:131
22442 msgid ""
22443 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22444 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22445 "requests, only cache existing ones."
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../fuse/guestmount.pod:151
22450 msgid ""
22451 "If you have untrusted raw-format guest disk images, you should use this "
22452 "option to specify the disk format.  This avoids a possible security problem "
22453 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22454 "guestfs_add_drive_opts>."
22455 msgstr ""
22456
22457 #. type: =item
22458 #: ../fuse/guestmount.pod:156
22459 msgid "B<--fuse-help>"
22460 msgstr ""
22461
22462 #. type: textblock
22463 #: ../fuse/guestmount.pod:158
22464 msgid "Display help on special FUSE options (see I<-o> below)."
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../fuse/guestmount.pod:162
22469 msgid "Display brief help and exit."
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../fuse/guestmount.pod:186
22474 msgid ""
22475 "Mount the named partition or logical volume on the given mountpoint B<in the "
22476 "guest> (this has nothing to do with mountpoints in the host)."
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../fuse/guestmount.pod:189
22481 msgid ""
22482 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22483 "something on C</>."
22484 msgstr ""
22485
22486 #. type: textblock
22487 #: ../fuse/guestmount.pod:206
22488 msgid ""
22489 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22490 "unmounted.  If you specify this option, then we don't attempt to sync the "
22491 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22492 msgstr ""
22493
22494 #. type: =item
22495 #: ../fuse/guestmount.pod:211
22496 msgid "B<-o option>"
22497 msgstr ""
22498
22499 #. type: =item
22500 #: ../fuse/guestmount.pod:213
22501 msgid "B<--option option>"
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../fuse/guestmount.pod:215
22506 msgid "Pass extra options to FUSE."
22507 msgstr ""
22508
22509 #. type: textblock
22510 #: ../fuse/guestmount.pod:217
22511 msgid ""
22512 "To get a list of all the extra options supported by FUSE, use the command "
22513 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22514 "of them are a good idea."
22515 msgstr ""
22516
22517 #. type: verbatim
22518 #: ../fuse/guestmount.pod:221
22519 #, no-wrap
22520 msgid ""
22521 " guestmount --fuse-help\n"
22522 "\n"
22523 msgstr ""
22524
22525 #. type: textblock
22526 #: ../fuse/guestmount.pod:223
22527 msgid "Some potentially useful FUSE options:"
22528 msgstr ""
22529
22530 #. type: =item
22531 #: ../fuse/guestmount.pod:227
22532 msgid "B<-o allow_other>"
22533 msgstr ""
22534
22535 #. type: textblock
22536 #: ../fuse/guestmount.pod:229
22537 msgid "Allow other users to see the filesystem."
22538 msgstr ""
22539
22540 #. type: =item
22541 #: ../fuse/guestmount.pod:231
22542 msgid "B<-o attr_timeout=N>"
22543 msgstr ""
22544
22545 #. type: textblock
22546 #: ../fuse/guestmount.pod:233
22547 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22548 msgstr ""
22549
22550 #. type: =item
22551 #: ../fuse/guestmount.pod:235
22552 msgid "B<-o kernel_cache>"
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../fuse/guestmount.pod:237
22557 msgid ""
22558 "Allow the kernel to cache files (reduces the number of reads that have to go "
22559 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22560 "afford the extra memory usage."
22561 msgstr ""
22562
22563 #. type: =item
22564 #: ../fuse/guestmount.pod:241
22565 msgid "B<-o uid=N> B<-o gid=N>"
22566 msgstr ""
22567
22568 #. type: textblock
22569 #: ../fuse/guestmount.pod:243
22570 msgid ""
22571 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22572 "the chosen values."
22573 msgstr ""
22574
22575 #. type: textblock
22576 #: ../fuse/guestmount.pod:252
22577 msgid ""
22578 "Add devices and mount everything read-only.  Also disallow writes and make "
22579 "the disk appear read-only to FUSE."
22580 msgstr ""
22581
22582 #. type: textblock
22583 #: ../fuse/guestmount.pod:255
22584 msgid ""
22585 "This is highly recommended if you are not going to edit the guest disk.  If "
22586 "the guest is running and this option is I<not> supplied, then there is a "
22587 "strong risk of disk corruption in the guest.  We try to prevent this from "
22588 "happening, but it is not always possible."
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22593 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22594 msgstr ""
22595
22596 #. type: textblock
22597 #: ../fuse/guestmount.pod:264
22598 msgid "Enable SELinux support for the guest."
22599 msgstr ""
22600
22601 #. type: textblock
22602 #: ../fuse/guestmount.pod:270
22603 msgid "Enable verbose messages from underlying libguestfs."
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../fuse/guestmount.pod:276
22608 msgid "Display the program version and exit."
22609 msgstr ""
22610
22611 #. type: textblock
22612 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22613 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22614 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22615 msgstr ""
22616
22617 #. type: =item
22618 #: ../fuse/guestmount.pod:289
22619 msgid "B<--trace>"
22620 msgstr ""
22621
22622 #. type: textblock
22623 #: ../fuse/guestmount.pod:291
22624 msgid "Trace libguestfs calls and entry into each FUSE function."
22625 msgstr ""
22626
22627 #. type: textblock
22628 #: ../fuse/guestmount.pod:293
22629 msgid "This also stops the daemon from forking into the background."
22630 msgstr ""
22631
22632 #. type: textblock
22633 #: ../fuse/guestmount.pod:319
22634 msgid ""
22635 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22636 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22637 "net/>."
22638 msgstr ""
22639
22640 #. type: textblock
22641 #: ../fuse/guestmount.pod:334
22642 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../inspector/virt-inspector.pod:5
22647 msgid ""
22648 "virt-inspector - Display operating system version and other information "
22649 "about a virtual machine"
22650 msgstr ""
22651
22652 #. type: verbatim
22653 #: ../inspector/virt-inspector.pod:9
22654 #, no-wrap
22655 msgid ""
22656 " virt-inspector [--options] -d domname\n"
22657 "\n"
22658 msgstr ""
22659
22660 #. type: verbatim
22661 #: ../inspector/virt-inspector.pod:11
22662 #, no-wrap
22663 msgid ""
22664 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22665 "\n"
22666 msgstr ""
22667
22668 #. type: verbatim
22669 #: ../inspector/virt-inspector.pod:15
22670 #, no-wrap
22671 msgid ""
22672 " virt-inspector domname\n"
22673 "\n"
22674 msgstr ""
22675
22676 #. type: verbatim
22677 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22678 #, no-wrap
22679 msgid ""
22680 " virt-inspector disk.img [disk.img ...]\n"
22681 "\n"
22682 msgstr ""
22683
22684 #. type: textblock
22685 #: ../inspector/virt-inspector.pod:21
22686 msgid ""
22687 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22688 "determine the version of the operating system and other information about "
22689 "the virtual machine."
22690 msgstr ""
22691
22692 #. type: textblock
22693 #: ../inspector/virt-inspector.pod:25
22694 msgid "Virt-inspector produces XML output for feeding into other programs."
22695 msgstr ""
22696
22697 #. type: textblock
22698 #: ../inspector/virt-inspector.pod:27
22699 msgid ""
22700 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22701 "the libvirt domain (see: C<virsh list --all>)."
22702 msgstr ""
22703
22704 #. type: textblock
22705 #: ../inspector/virt-inspector.pod:30
22706 msgid ""
22707 "You can also run virt-inspector directly on disk images from a single "
22708 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22709 "has several block devices, in which case you should list several I<-a> "
22710 "options one after another, with the first corresponding to the guest's C</"
22711 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22712 msgstr ""
22713
22714 #. type: textblock
22715 #: ../inspector/virt-inspector.pod:37
22716 msgid ""
22717 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22718 "keys and similar."
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../inspector/virt-inspector.pod:40
22723 msgid ""
22724 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22725 "inspect several virtual machines, you have to run virt-inspector several "
22726 "times (for example, from a shell script for-loop)."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../inspector/virt-inspector.pod:45
22731 msgid ""
22732 "Because virt-inspector needs direct access to guest images, it won't "
22733 "normally work over remote libvirt connections."
22734 msgstr ""
22735
22736 #. type: textblock
22737 #: ../inspector/virt-inspector.pod:48
22738 msgid ""
22739 "All of the information available from virt-inspector is also available "
22740 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22741 "The same information can also be fetched using guestfish or via libguestfs "
22742 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22743 "WITH OTHER PROGRAMMING LANGUAGES>)."
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../inspector/virt-inspector.pod:81
22748 msgid ""
22749 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22750 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22751 "at all."
22752 msgstr ""
22753
22754 #. type: textblock
22755 #: ../inspector/virt-inspector.pod:94
22756 msgid ""
22757 "When prompting for keys and passphrases, virt-inspector normally turns "
22758 "echoing off so you cannot see what you are typing.  If you are not worried "
22759 "about Tempest attacks and there is no one else in the room you can specify "
22760 "this flag to see what you are typing."
22761 msgstr ""
22762
22763 #. type: textblock
22764 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22765 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22766 #: ../tools/virt-win-reg.pl:144
22767 msgid ""
22768 "Specify the format of disk images given on the command line.  If this is "
22769 "omitted then the format is autodetected from the content of the disk image."
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22774 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22775 #: ../tools/virt-win-reg.pl:148
22776 msgid ""
22777 "If disk images are requested from libvirt, then this program asks libvirt "
22778 "for this information.  In this case, the value of the format parameter is "
22779 "ignored."
22780 msgstr ""
22781
22782 #. type: textblock
22783 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22784 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22785 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22786 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22787 msgid ""
22788 "If working with untrusted raw-format guest disk images, you should ensure "
22789 "the format is always specified."
22790 msgstr ""
22791
22792 #. type: =item
22793 #: ../inspector/virt-inspector.pod:135
22794 msgid "B<--xpath> query"
22795 msgstr ""
22796
22797 #. type: textblock
22798 #: ../inspector/virt-inspector.pod:137
22799 msgid ""
22800 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22801 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22802 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../inspector/virt-inspector.pod:146
22807 msgid "Previous versions of virt-inspector allowed you to write either:"
22808 msgstr ""
22809
22810 #. type: verbatim
22811 #: ../inspector/virt-inspector.pod:152
22812 #, no-wrap
22813 msgid ""
22814 " virt-inspector guestname\n"
22815 "\n"
22816 msgstr ""
22817
22818 #. type: =head1
22819 #: ../inspector/virt-inspector.pod:160
22820 msgid "XML FORMAT"
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../inspector/virt-inspector.pod:162
22825 msgid ""
22826 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22827 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22828 "just an overview."
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../inspector/virt-inspector.pod:166
22833 msgid ""
22834 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22835 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22836 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22837 "which is vanishingly rare in real world VMs."
22838 msgstr ""
22839
22840 #. type: =head2
22841 #: ../inspector/virt-inspector.pod:171
22842 msgid "E<lt>operatingsystemE<gt>"
22843 msgstr ""
22844
22845 #. type: textblock
22846 #: ../inspector/virt-inspector.pod:173
22847 msgid ""
22848 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22849 "describe the operating system, its architecture, the descriptive \"product "
22850 "name\" string, the type of OS and so on, as in this example:"
22851 msgstr ""
22852
22853 #. type: verbatim
22854 #: ../inspector/virt-inspector.pod:177
22855 #, no-wrap
22856 msgid ""
22857 " <operatingsystems>\n"
22858 "   <operatingsystem>\n"
22859 "     <root>/dev/sda2</root>\n"
22860 "     <name>windows</name>\n"
22861 "     <arch>i386</arch>\n"
22862 "     <distro>windows</distro>\n"
22863 "     <product_name>Windows 7 Enterprise</product_name>\n"
22864 "     <product_variant>Client</product_variant>\n"
22865 "     <major_version>6</major_version>\n"
22866 "     <minor_version>1</minor_version>\n"
22867 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22868 "     <format>installed</format>\n"
22869 "\n"
22870 msgstr ""
22871
22872 #. type: textblock
22873 #: ../inspector/virt-inspector.pod:190
22874 msgid ""
22875 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22876 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22877 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22878 "architecture.  The other fields are fairly self-explanatory, but because "
22879 "these fields are taken directly from the libguestfs inspection API you can "
22880 "find precise information from L<guestfs(3)/INSPECTION>."
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../inspector/virt-inspector.pod:198
22885 msgid ""
22886 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22887 "of view of libguestfs (block devices may have completely different names "
22888 "inside the VM itself)."
22889 msgstr ""
22890
22891 #. type: =head2
22892 #: ../inspector/virt-inspector.pod:202
22893 msgid "E<lt>mountpointsE<gt>"
22894 msgstr ""
22895
22896 #. type: textblock
22897 #: ../inspector/virt-inspector.pod:204
22898 msgid ""
22899 "Un*x-like guests typically have multiple filesystems which are mounted at "
22900 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22901 "element which looks like this:"
22902 msgstr ""
22903
22904 #. type: verbatim
22905 #: ../inspector/virt-inspector.pod:208
22906 #, no-wrap
22907 msgid ""
22908 " <operatingsystems>\n"
22909 "   <operatingsystem>\n"
22910 "     ...\n"
22911 "     <mountpoints>\n"
22912 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22913 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22914 "     </mountpoints>\n"
22915 "\n"
22916 msgstr ""
22917
22918 #. type: textblock
22919 #: ../inspector/virt-inspector.pod:216
22920 msgid ""
22921 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22922 "and may have completely different names inside the guest.  Only mountable "
22923 "filesystems appear in this list, not things like swap devices."
22924 msgstr ""
22925
22926 #. type: =head2
22927 #: ../inspector/virt-inspector.pod:221
22928 msgid "E<lt>filesystemsE<gt>"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../inspector/virt-inspector.pod:223
22933 msgid ""
22934 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22935 "filesystems belonging to the guest, including swap and empty partitions.  "
22936 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22937 "this OS or shared with this OS and other OSes)."
22938 msgstr ""
22939
22940 #. type: textblock
22941 #: ../inspector/virt-inspector.pod:229
22942 msgid "You might see something like this:"
22943 msgstr ""
22944
22945 #. type: verbatim
22946 #: ../inspector/virt-inspector.pod:231
22947 #, no-wrap
22948 msgid ""
22949 " <operatingsystems>\n"
22950 "   <operatingsystem>\n"
22951 "     ...\n"
22952 "     <filesystems>\n"
22953 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22954 "         <type>ext4</type>\n"
22955 "         <label>Fedora-13-x86_64</label>\n"
22956 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22957 "       </filesystem>\n"
22958 "\n"
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../inspector/virt-inspector.pod:241
22963 msgid ""
22964 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22965 "the label, and the UUID."
22966 msgstr ""
22967
22968 #. type: =head2
22969 #: ../inspector/virt-inspector.pod:244
22970 msgid "E<lt>applicationsE<gt>"
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../inspector/virt-inspector.pod:246
22975 msgid ""
22976 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22977 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22978 "machine."
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../inspector/virt-inspector.pod:250
22983 msgid ""
22984 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22985 "Typical values would be C<rpm> and C<deb>."
22986 msgstr ""
22987
22988 #. type: textblock
22989 #: ../inspector/virt-inspector.pod:253
22990 msgid ""
22991 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22992 "Typical values include C<yum>, C<up2date> and C<apt>"
22993 msgstr ""
22994
22995 #. type: textblock
22996 #: ../inspector/virt-inspector.pod:256
22997 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22998 msgstr ""
22999
23000 #. type: verbatim
23001 #: ../inspector/virt-inspector.pod:259
23002 #, no-wrap
23003 msgid ""
23004 " <operatingsystems>\n"
23005 "   <operatingsystem>\n"
23006 "     ...\n"
23007 "     <applications>\n"
23008 "       <application>\n"
23009 "         <name>coreutils</name>\n"
23010 "         <version>8.5</version>\n"
23011 "         <release>1</release>\n"
23012 "       </application>\n"
23013 "\n"
23014 msgstr ""
23015
23016 #. type: textblock
23017 #: ../inspector/virt-inspector.pod:269
23018 msgid ""
23019 "The version and release fields may not be available for some types guests.  "
23020 "Other fields are possible, see L<guestfs(3)/"
23021 "guestfs_inspect_list_applications>."
23022 msgstr ""
23023
23024 #. type: =head2
23025 #: ../inspector/virt-inspector.pod:273
23026 msgid "E<lt>drive_mappingsE<gt>"
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../inspector/virt-inspector.pod:275
23031 msgid ""
23032 "For operating systems like Windows which use drive letters, virt-inspector "
23033 "is able to find out how drive letters map to filesystems."
23034 msgstr ""
23035
23036 #. type: verbatim
23037 #: ../inspector/virt-inspector.pod:279
23038 #, no-wrap
23039 msgid ""
23040 " <operatingsystems>\n"
23041 "   <operatingsystem>\n"
23042 "     ...\n"
23043 "     <drive_mappings>\n"
23044 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23045 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23046 "     </drive_mappings>\n"
23047 "\n"
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../inspector/virt-inspector.pod:287
23052 msgid ""
23053 "In the example above, drive C maps to the filesystem on the second partition "
23054 "on the first disk, and drive E maps to the filesystem on the first partition "
23055 "on the second disk."
23056 msgstr ""
23057
23058 #. type: textblock
23059 #: ../inspector/virt-inspector.pod:291
23060 msgid ""
23061 "Note that this only covers permanent local filesystem mappings, not things "
23062 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23063 "here."
23064 msgstr ""
23065
23066 #. type: =head2
23067 #: ../inspector/virt-inspector.pod:295
23068 msgid "E<lt>iconE<gt>"
23069 msgstr ""
23070
23071 #. type: textblock
23072 #: ../inspector/virt-inspector.pod:297
23073 msgid ""
23074 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23075 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23076 "very large and high quality."
23077 msgstr ""
23078
23079 #. type: verbatim
23080 #: ../inspector/virt-inspector.pod:301
23081 #, no-wrap
23082 msgid ""
23083 " <operatingsystems>\n"
23084 "   <operatingsystem>\n"
23085 "     ...\n"
23086 "     <icon>\n"
23087 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23088 "       [... many lines of base64 data ...]\n"
23089 "     </icon>\n"
23090 "\n"
23091 msgstr ""
23092
23093 #. type: textblock
23094 #: ../inspector/virt-inspector.pod:309
23095 msgid ""
23096 "To display the icon, you have to extract it and convert the base64 data back "
23097 "to a binary file.  Use an XPath query or simply an editor to extract the "
23098 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23099 "to a PNG file:"
23100 msgstr ""
23101
23102 #. type: verbatim
23103 #: ../inspector/virt-inspector.pod:314
23104 #, no-wrap
23105 msgid ""
23106 " base64 -i -d < icon.data > icon.png\n"
23107 "\n"
23108 msgstr ""
23109
23110 #. type: =head2
23111 #: ../inspector/virt-inspector.pod:316
23112 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23113 msgstr ""
23114
23115 #. type: textblock
23116 #: ../inspector/virt-inspector.pod:318
23117 msgid ""
23118 "Virt-inspector can detect some operating system installers on install disks, "
23119 "live CDs, bootable USB keys and more."
23120 msgstr ""
23121
23122 #. type: textblock
23123 #: ../inspector/virt-inspector.pod:321
23124 msgid ""
23125 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23126 "fields may be present to indicate a live CD, network installer, or one part "
23127 "of a multipart CD.  For example:"
23128 msgstr ""
23129
23130 #. type: verbatim
23131 #: ../inspector/virt-inspector.pod:325
23132 #, no-wrap
23133 msgid ""
23134 " <operatingsystems>\n"
23135 "   <operatingsystem>\n"
23136 "     <root>/dev/sda</root>\n"
23137 "     <name>linux</name>\n"
23138 "     <arch>i386</arch>\n"
23139 "     <distro>ubuntu</distro>\n"
23140 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23141 "     <major_version>10</major_version>\n"
23142 "     <minor_version>10</minor_version>\n"
23143 "     <format>installer</format>\n"
23144 "     <live/>\n"
23145 "\n"
23146 msgstr ""
23147
23148 #. type: =head1
23149 #: ../inspector/virt-inspector.pod:337
23150 msgid "XPATH QUERIES"
23151 msgstr ""
23152
23153 #. type: textblock
23154 #: ../inspector/virt-inspector.pod:339
23155 msgid ""
23156 "Virt-inspector includes built in support for running XPath queries.  The "
23157 "reason for including XPath support directly in virt-inspector is simply that "
23158 "there are no good and widely available command line programs that can do "
23159 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
23160 "available on Red Hat Enterprise Linux."
23161 msgstr ""
23162
23163 #. type: textblock
23164 #: ../inspector/virt-inspector.pod:346
23165 msgid ""
23166 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
23167 "mode, virt-inspector simply reads XML from stdin and outputs the query "
23168 "result on stdout.  All other inspection features are disabled in this mode."
23169 msgstr ""
23170
23171 #. type: verbatim
23172 #: ../inspector/virt-inspector.pod:353
23173 #, no-wrap
23174 msgid ""
23175 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
23176 " <filesystems>\n"
23177 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23178 "        <type>ext4</type>\n"
23179 " [...]\n"
23180 "\n"
23181 msgstr ""
23182
23183 #. type: verbatim
23184 #: ../inspector/virt-inspector.pod:359
23185 #, no-wrap
23186 msgid ""
23187 " $ virt-inspector -d Guest | \\\n"
23188 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
23189 " ext4\n"
23190 "\n"
23191 msgstr ""
23192
23193 #. type: verbatim
23194 #: ../inspector/virt-inspector.pod:363
23195 #, no-wrap
23196 msgid ""
23197 " $ virt-inspector -d Guest | \\\n"
23198 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
23199 " [displays the guest icon, if there is one]\n"
23200 "\n"
23201 msgstr ""
23202
23203 #. type: =head1
23204 #: ../inspector/virt-inspector.pod:374
23205 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
23206 msgstr ""
23207
23208 #. type: textblock
23209 #: ../inspector/virt-inspector.pod:376
23210 msgid ""
23211 "Early versions of libguestfs shipped with a different virt-inspector program "
23212 "written in Perl (the current version is written in C).  The XML output of "
23213 "the Perl virt-inspector was different and it could also output in other "
23214 "formats like text."
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../inspector/virt-inspector.pod:381
23219 msgid ""
23220 "The old virt-inspector is no longer supported or shipped with libguestfs."
23221 msgstr ""
23222
23223 #. type: textblock
23224 #: ../inspector/virt-inspector.pod:384
23225 msgid ""
23226 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
23227 "versions of virt-inspector with different names:"
23228 msgstr ""
23229
23230 #. type: verbatim
23231 #: ../inspector/virt-inspector.pod:387
23232 #, no-wrap
23233 msgid ""
23234 " virt-inspector     Old Perl version.\n"
23235 " virt-inspector2    New C version.\n"
23236 "\n"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../inspector/virt-inspector.pod:397
23241 msgid ""
23242 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
23243 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
23244 msgstr ""
23245
23246 #. type: textblock
23247 #: ../inspector/virt-inspector.pod:414
23248 msgid "Matthew Booth L<mbooth@redhat.com>"
23249 msgstr ""
23250
23251 #. type: textblock
23252 #: ../java/examples/guestfs-java.pod:5
23253 msgid "guestfs-java - How to use libguestfs from Java"
23254 msgstr ""
23255
23256 #. type: verbatim
23257 #: ../java/examples/guestfs-java.pod:9
23258 #, no-wrap
23259 msgid ""
23260 " import com.redhat.et.libguestfs.*;\n"
23261 " \n"
23262 msgstr ""
23263
23264 #. type: verbatim
23265 #: ../java/examples/guestfs-java.pod:11
23266 #, no-wrap
23267 msgid ""
23268 " GuestFS g = new GuestFS ();\n"
23269 " g.add_drive_opts (\"disk.img\", null);\n"
23270 " g.launch ();\n"
23271 "\n"
23272 msgstr ""
23273
23274 #. type: textblock
23275 #: ../java/examples/guestfs-java.pod:17
23276 msgid ""
23277 "This manual page documents how to call libguestfs from the Java programming "
23278 "language.  This page just documents the differences from the C API and gives "
23279 "some examples.  If you are not familiar with using libguestfs, you also need "
23280 "to read L<guestfs(3)>."
23281 msgstr ""
23282
23283 #. type: =head2
23284 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
23285 msgid "CLOSING THE HANDLE"
23286 msgstr ""
23287
23288 #. type: textblock
23289 #: ../java/examples/guestfs-java.pod:24
23290 msgid ""
23291 "The handle is closed when it is reaped by the garbage collector.  Because "
23292 "libguestfs handles include a lot of state, it is also possible to close (and "
23293 "hence free) them explicitly by calling the C<close> method."
23294 msgstr ""
23295
23296 #. type: =head2
23297 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
23298 #: ../python/examples/guestfs-python.pod:21
23299 #: ../ruby/examples/guestfs-ruby.pod:22
23300 msgid "EXCEPTIONS"
23301 msgstr ""
23302
23303 #. type: textblock
23304 #: ../java/examples/guestfs-java.pod:31
23305 msgid ""
23306 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
23307 "exception.  This has a single parameter which is the error message (a "
23308 "C<String>)."
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../java/examples/guestfs-java.pod:35
23313 msgid "Calling any method on a closed handle raises the same exception."
23314 msgstr ""
23315
23316 #. type: textblock
23317 #: ../java/examples/guestfs-java.pod:47
23318 msgid ""
23319 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
23320 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23321 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../ocaml/examples/guestfs-ocaml.pod:5
23326 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
23327 msgstr ""
23328
23329 #. type: textblock
23330 #: ../ocaml/examples/guestfs-ocaml.pod:9
23331 msgid "Module style:"
23332 msgstr ""
23333
23334 #. type: verbatim
23335 #: ../ocaml/examples/guestfs-ocaml.pod:11
23336 #, no-wrap
23337 msgid ""
23338 " let g = Guestfs.create () in\n"
23339 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23340 " Guestfs.launch g;\n"
23341 "\n"
23342 msgstr ""
23343
23344 #. type: textblock
23345 #: ../ocaml/examples/guestfs-ocaml.pod:15
23346 msgid "Object-oriented style:"
23347 msgstr ""
23348
23349 #. type: verbatim
23350 #: ../ocaml/examples/guestfs-ocaml.pod:17
23351 #, no-wrap
23352 msgid ""
23353 " let g = new Guestfs.guestfs () in\n"
23354 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
23355 " g#launch ();\n"
23356 "\n"
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../ocaml/examples/guestfs-ocaml.pod:21
23361 #, no-wrap
23362 msgid ""
23363 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
23364 "or:\n"
23365 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
23366 "\n"
23367 msgstr ""
23368
23369 #. type: textblock
23370 #: ../ocaml/examples/guestfs-ocaml.pod:27
23371 msgid ""
23372 "This manual page documents how to call libguestfs from the OCaml programming "
23373 "language.  This page just documents the differences from the C API and gives "
23374 "some examples.  If you are not familiar with using libguestfs, you also need "
23375 "to read L<guestfs(3)>."
23376 msgstr ""
23377
23378 #. type: =head2
23379 #: ../ocaml/examples/guestfs-ocaml.pod:32
23380 msgid "PROGRAMMING STYLES"
23381 msgstr ""
23382
23383 #. type: textblock
23384 #: ../ocaml/examples/guestfs-ocaml.pod:34
23385 msgid ""
23386 "There are two different programming styles supported by the OCaml bindings.  "
23387 "You can use a module style, with each C function mapped to an OCaml function:"
23388 msgstr ""
23389
23390 #. type: verbatim
23391 #: ../ocaml/examples/guestfs-ocaml.pod:38
23392 #, no-wrap
23393 msgid ""
23394 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
23395 "\n"
23396 msgstr ""
23397
23398 #. type: textblock
23399 #: ../ocaml/examples/guestfs-ocaml.pod:40
23400 msgid "becomes:"
23401 msgstr ""
23402
23403 #. type: verbatim
23404 #: ../ocaml/examples/guestfs-ocaml.pod:42
23405 #, no-wrap
23406 msgid ""
23407 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
23408 "\n"
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../ocaml/examples/guestfs-ocaml.pod:44
23413 msgid ""
23414 "Alternately you can use an object-oriented style, calling methods on the "
23415 "class C<Guestfs.guestfs>:"
23416 msgstr ""
23417
23418 #. type: verbatim
23419 #: ../ocaml/examples/guestfs-ocaml.pod:47
23420 #, no-wrap
23421 msgid ""
23422 " method set_verbose : bool -> unit\n"
23423 "\n"
23424 msgstr ""
23425
23426 #. type: textblock
23427 #: ../ocaml/examples/guestfs-ocaml.pod:49
23428 msgid ""
23429 "The object-oriented style is usually briefer, and the minor performance "
23430 "penalty isn't noticable in the general overhead of performing libguestfs "
23431 "functions."
23432 msgstr ""
23433
23434 #. type: textblock
23435 #: ../ocaml/examples/guestfs-ocaml.pod:55
23436 msgid ""
23437 "The handle is closed when it is reaped by the garbage collector.  Because "
23438 "libguestfs handles include a lot of state, it is also possible to close (and "
23439 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23440 "method."
23441 msgstr ""
23442
23443 #. type: textblock
23444 #: ../ocaml/examples/guestfs-ocaml.pod:62
23445 msgid ""
23446 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23447 "exception.  This has a single parameter which is the error message (a "
23448 "string)."
23449 msgstr ""
23450
23451 #. type: textblock
23452 #: ../ocaml/examples/guestfs-ocaml.pod:66
23453 msgid ""
23454 "Calling any function/method on a closed handle raises C<Guestfs."
23455 "Handle_closed>.  The single parameter is the name of the function that you "
23456 "called."
23457 msgstr ""
23458
23459 #. type: textblock
23460 #: ../ocaml/examples/guestfs-ocaml.pod:80
23461 msgid ""
23462 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23463 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23464 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23465 msgstr ""
23466
23467 #. type: textblock
23468 #: ../perl/examples/guestfs-perl.pod:5
23469 msgid "guestfs-perl - How to use libguestfs from Perl"
23470 msgstr ""
23471
23472 #. type: verbatim
23473 #: ../perl/examples/guestfs-perl.pod:9
23474 #, no-wrap
23475 msgid ""
23476 " use Sys::Guestfs;\n"
23477 " \n"
23478 msgstr ""
23479
23480 #. type: verbatim
23481 #: ../perl/examples/guestfs-perl.pod:11
23482 #, no-wrap
23483 msgid ""
23484 " my $h = Sys::Guestfs->new ();\n"
23485 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23486 " $h->launch ();\n"
23487 " $h->mount_options ('', '/dev/sda1', '/');\n"
23488 " $h->touch ('/hello');\n"
23489 " $h->sync ();\n"
23490 "\n"
23491 msgstr ""
23492
23493 #. type: textblock
23494 #: ../perl/examples/guestfs-perl.pod:20
23495 msgid ""
23496 "This manual page documents how to call libguestfs from the Perl programming "
23497 "language.  This page just documents the differences from the C API and gives "
23498 "some examples.  If you are not familiar with using libguestfs, you also need "
23499 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23500 msgstr ""
23501
23502 #. type: =head2
23503 #: ../perl/examples/guestfs-perl.pod:26
23504 msgid "ERRORS"
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../perl/examples/guestfs-perl.pod:28
23509 msgid ""
23510 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23511 ">)."
23512 msgstr ""
23513
23514 #. type: textblock
23515 #: ../perl/examples/guestfs-perl.pod:41
23516 msgid ""
23517 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23518 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23519 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23520 msgstr ""
23521
23522 #. type: textblock
23523 #: ../python/examples/guestfs-python.pod:5
23524 msgid "guestfs-python - How to use libguestfs from Python"
23525 msgstr ""
23526
23527 #. type: verbatim
23528 #: ../python/examples/guestfs-python.pod:9
23529 #, no-wrap
23530 msgid ""
23531 " import guestfs\n"
23532 " g = guestfs.GuestFS ()\n"
23533 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23534 " g.launch\n"
23535 "\n"
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../python/examples/guestfs-python.pod:16
23540 msgid ""
23541 "This manual page documents how to call libguestfs from the Python "
23542 "programming language.  This page just documents the differences from the C "
23543 "API and gives some examples.  If you are not familiar with using libguestfs, "
23544 "you also need to read L<guestfs(3)>."
23545 msgstr ""
23546
23547 #. type: textblock
23548 #: ../python/examples/guestfs-python.pod:23
23549 msgid ""
23550 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23551 "single string argument which is the error message."
23552 msgstr ""
23553
23554 #. type: =head2
23555 #: ../python/examples/guestfs-python.pod:26
23556 msgid "MORE DOCUMENTATION"
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../python/examples/guestfs-python.pod:28
23561 msgid "Type:"
23562 msgstr ""
23563
23564 #. type: verbatim
23565 #: ../python/examples/guestfs-python.pod:30
23566 #, no-wrap
23567 msgid ""
23568 " $ python\n"
23569 " >>> import guestfs\n"
23570 " >>> help (guestfs)\n"
23571 "\n"
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../python/examples/guestfs-python.pod:44
23576 msgid ""
23577 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23578 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23579 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23580 msgstr ""
23581
23582 #. type: textblock
23583 #: ../rescue/virt-rescue.pod:5
23584 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23585 msgstr ""
23586
23587 #. type: verbatim
23588 #: ../rescue/virt-rescue.pod:9
23589 #, no-wrap
23590 msgid ""
23591 " virt-rescue [--options] -d domname\n"
23592 "\n"
23593 msgstr ""
23594
23595 #. type: verbatim
23596 #: ../rescue/virt-rescue.pod:11
23597 #, no-wrap
23598 msgid ""
23599 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23600 "\n"
23601 msgstr ""
23602
23603 #. type: verbatim
23604 #: ../rescue/virt-rescue.pod:13
23605 #, no-wrap
23606 msgid ""
23607 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23608 "\n"
23609 msgstr ""
23610
23611 #. type: verbatim
23612 #: ../rescue/virt-rescue.pod:17
23613 #, no-wrap
23614 msgid ""
23615 " virt-rescue [--options] domname\n"
23616 "\n"
23617 msgstr ""
23618
23619 #. type: verbatim
23620 #: ../rescue/virt-rescue.pod:19
23621 #, no-wrap
23622 msgid ""
23623 " virt-rescue [--options] disk.img [disk.img ...]\n"
23624 "\n"
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../rescue/virt-rescue.pod:23
23629 msgid ""
23630 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23631 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23632 "you from doing this, but doesn't catch all cases."
23633 msgstr ""
23634
23635 #. type: textblock
23636 #: ../rescue/virt-rescue.pod:27
23637 msgid ""
23638 "However if you use the I<--ro> (read only) option, then you can attach a "
23639 "shell to a live virtual machine.  The results might be strange or "
23640 "inconsistent at times but you won't get disk corruption."
23641 msgstr ""
23642
23643 #. type: textblock
23644 #: ../rescue/virt-rescue.pod:33
23645 msgid ""
23646 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23647 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23648 "recovery tools which you can use to examine or rescue a virtual machine or "
23649 "disk image."
23650 msgstr ""
23651
23652 #. type: textblock
23653 #: ../rescue/virt-rescue.pod:38
23654 msgid ""
23655 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23656 "on disk image(s):"
23657 msgstr ""
23658
23659 #. type: verbatim
23660 #: ../rescue/virt-rescue.pod:41
23661 #, no-wrap
23662 msgid ""
23663 " virt-rescue -d GuestName\n"
23664 "\n"
23665 msgstr ""
23666
23667 #. type: verbatim
23668 #: ../rescue/virt-rescue.pod:43
23669 #, no-wrap
23670 msgid ""
23671 " virt-rescue --ro -a /path/to/disk.img\n"
23672 "\n"
23673 msgstr ""
23674
23675 #. type: verbatim
23676 #: ../rescue/virt-rescue.pod:45
23677 #, no-wrap
23678 msgid ""
23679 " virt-rescue -a /dev/sdc\n"
23680 "\n"
23681 msgstr ""
23682
23683 #. type: textblock
23684 #: ../rescue/virt-rescue.pod:47
23685 msgid "For live VMs you I<must> use the --ro option."
23686 msgstr ""
23687
23688 #. type: textblock
23689 #: ../rescue/virt-rescue.pod:49
23690 msgid ""
23691 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23692 "in an interactive bash shell where you can use many ordinary Linux "
23693 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23694 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23695 "is an empty directory called C</sysroot> where you can mount filesystems."
23696 msgstr ""
23697
23698 #. type: textblock
23699 #: ../rescue/virt-rescue.pod:56
23700 msgid ""
23701 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23702 "suggest> option (in another terminal):"
23703 msgstr ""
23704
23705 #. type: verbatim
23706 #: ../rescue/virt-rescue.pod:59
23707 #, no-wrap
23708 msgid ""
23709 " $ virt-rescue --suggest -d Fedora15\n"
23710 " Inspecting the virtual machine or disk image ...\n"
23711 " \n"
23712 msgstr ""
23713
23714 #. type: verbatim
23715 #: ../rescue/virt-rescue.pod:62
23716 #, no-wrap
23717 msgid ""
23718 " This disk contains one or more operating systems.  You can use these\n"
23719 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23720 " filesystems.\n"
23721 " \n"
23722 msgstr ""
23723
23724 #. type: verbatim
23725 #: ../rescue/virt-rescue.pod:66
23726 #, no-wrap
23727 msgid ""
23728 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23729 " # type: linux, distro: fedora, version: 15.0\n"
23730 " # Fedora release 15 (Lovelock)\n"
23731 " \n"
23732 msgstr ""
23733
23734 #. type: verbatim
23735 #: ../rescue/virt-rescue.pod:70
23736 #, no-wrap
23737 msgid ""
23738 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23739 " mount /dev/vda1 /sysroot/boot\n"
23740 " mount --bind /dev /sysroot/dev\n"
23741 " mount --bind /dev/pts /sysroot/dev/pts\n"
23742 " mount --bind /proc /sysroot/proc\n"
23743 " mount --bind /sys /sysroot/sys\n"
23744 "\n"
23745 msgstr ""
23746
23747 #. type: textblock
23748 #: ../rescue/virt-rescue.pod:77
23749 msgid ""
23750 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23751 "(with L<parted(8)>) and mount them by hand:"
23752 msgstr ""
23753
23754 #. type: verbatim
23755 #: ../rescue/virt-rescue.pod:80
23756 #, no-wrap
23757 msgid ""
23758 " ><rescue> lvs\n"
23759 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23760 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23761 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23762 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23763 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23764 " ><rescue> ls /sysroot\n"
23765 "\n"
23766 msgstr ""
23767
23768 #. type: textblock
23769 #: ../rescue/virt-rescue.pod:88
23770 msgid ""
23771 "Another command to list available filesystems is L<virt-filesystems(1)>."
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../rescue/virt-rescue.pod:91
23776 msgid ""
23777 "To run commands in a Linux guest (for example, grub), you should chroot into "
23778 "the /sysroot directory first:"
23779 msgstr ""
23780
23781 #. type: verbatim
23782 #: ../rescue/virt-rescue.pod:94
23783 #, no-wrap
23784 msgid ""
23785 " ><rescue> chroot /sysroot\n"
23786 "\n"
23787 msgstr ""
23788
23789 #. type: textblock
23790 #: ../rescue/virt-rescue.pod:98
23791 msgid ""
23792 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23793 "virtual machine.  For example you can use it on a blank file if you want to "
23794 "partition that file (although we would recommend using L<guestfish(1)> "
23795 "instead as it is more suitable for this purpose).  You can even use virt-"
23796 "rescue on things like SD cards."
23797 msgstr ""
23798
23799 #. type: textblock
23800 #: ../rescue/virt-rescue.pod:104
23801 msgid ""
23802 "Virt-rescue does not require root.  You only need to run it as root if you "
23803 "need root to open the disk image."
23804 msgstr ""
23805
23806 #. type: textblock
23807 #: ../rescue/virt-rescue.pod:107
23808 msgid ""
23809 "This tool is just designed for quick interactive hacking on a virtual "
23810 "machine.  For more structured access to a virtual machine disk image, you "
23811 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23812 "make scripted changes to guests, use L<guestfish(1)>."
23813 msgstr ""
23814
23815 #. type: =item
23816 #: ../rescue/virt-rescue.pod:131
23817 msgid "B<--append kernelopts>"
23818 msgstr ""
23819
23820 #. type: textblock
23821 #: ../rescue/virt-rescue.pod:133
23822 msgid "Pass additional options to the rescue kernel."
23823 msgstr ""
23824
23825 #. type: verbatim
23826 #: ../rescue/virt-rescue.pod:163
23827 #, no-wrap
23828 msgid ""
23829 " virt-rescue --format=raw -a disk.img\n"
23830 "\n"
23831 msgstr ""
23832
23833 #. type: verbatim
23834 #: ../rescue/virt-rescue.pod:167
23835 #, no-wrap
23836 msgid ""
23837 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23838 "\n"
23839 msgstr ""
23840
23841 #. type: =item
23842 #: ../rescue/virt-rescue.pod:176
23843 msgid "B<-m MB>"
23844 msgstr ""
23845
23846 #. type: =item
23847 #: ../rescue/virt-rescue.pod:178
23848 msgid "B<--memsize MB>"
23849 msgstr ""
23850
23851 #. type: textblock
23852 #: ../rescue/virt-rescue.pod:180
23853 msgid ""
23854 "Change the amount of memory allocated to the rescue system.  The default is "
23855 "set by libguestfs and is small but adequate for running system tools.  The "
23856 "occasional program might need more memory.  The parameter is specified in "
23857 "megabytes."
23858 msgstr ""
23859
23860 #. type: =item
23861 #: ../rescue/virt-rescue.pod:185
23862 msgid "B<--network>"
23863 msgstr ""
23864
23865 #. type: textblock
23866 #: ../rescue/virt-rescue.pod:187
23867 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../rescue/virt-rescue.pod:193
23872 msgid "Open the image read-only."
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../rescue/virt-rescue.pod:203
23877 msgid ""
23878 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23879 "SELINUX> before using this option."
23880 msgstr ""
23881
23882 #. type: =item
23883 #: ../rescue/virt-rescue.pod:206
23884 msgid "B<--smp> N"
23885 msgstr ""
23886
23887 #. type: textblock
23888 #: ../rescue/virt-rescue.pod:208
23889 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23890 msgstr ""
23891
23892 #. type: =item
23893 #: ../rescue/virt-rescue.pod:210
23894 msgid "B<--suggest>"
23895 msgstr ""
23896
23897 #. type: textblock
23898 #: ../rescue/virt-rescue.pod:212
23899 msgid ""
23900 "Inspect the disk image and suggest what mount commands should be used to "
23901 "mount the disks.  You should use the I<--suggest> option in a second "
23902 "terminal, then paste the commands into another virt-rescue."
23903 msgstr ""
23904
23905 #. type: textblock
23906 #: ../rescue/virt-rescue.pod:216
23907 msgid ""
23908 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23909 "another virt-rescue is running."
23910 msgstr ""
23911
23912 #. type: textblock
23913 #: ../rescue/virt-rescue.pod:235
23914 msgid ""
23915 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23916 "are done read-write."
23917 msgstr ""
23918
23919 #. type: textblock
23920 #: ../rescue/virt-rescue.pod:248
23921 msgid "Previous versions of virt-rescue allowed you to write either:"
23922 msgstr ""
23923
23924 #. type: verbatim
23925 #: ../rescue/virt-rescue.pod:250
23926 #, no-wrap
23927 msgid ""
23928 " virt-rescue disk.img [disk.img ...]\n"
23929 "\n"
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../rescue/virt-rescue.pod:254
23934 #, no-wrap
23935 msgid ""
23936 " virt-rescue guestname\n"
23937 "\n"
23938 msgstr ""
23939
23940 #. type: =head1
23941 #: ../rescue/virt-rescue.pod:262
23942 msgid "NETWORK"
23943 msgstr ""
23944
23945 #. type: textblock
23946 #: ../rescue/virt-rescue.pod:264
23947 msgid ""
23948 "Adding the I<--network> option enables QEMU user networking in the rescue "
23949 "appliance.  There are some differences between user networking and ordinary "
23950 "networking:"
23951 msgstr ""
23952
23953 #. type: =item
23954 #: ../rescue/virt-rescue.pod:270
23955 msgid "ping does not work"
23956 msgstr ""
23957
23958 #. type: textblock
23959 #: ../rescue/virt-rescue.pod:272
23960 msgid ""
23961 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23962 "send the ping packets, and because virt-rescue must be able to run as non-"
23963 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23964 "The ping command will appear to resolve addresses but will not be able to "
23965 "send or receive any packets.  This does not mean that the network is not "
23966 "working."
23967 msgstr ""
23968
23969 #. type: =item
23970 #: ../rescue/virt-rescue.pod:279
23971 msgid "cannot receive connections"
23972 msgstr ""
23973
23974 #. type: textblock
23975 #: ../rescue/virt-rescue.pod:281
23976 msgid "QEMU user networking cannot receive incoming connections."
23977 msgstr ""
23978
23979 #. type: =item
23980 #: ../rescue/virt-rescue.pod:283
23981 msgid "making TCP connections"
23982 msgstr ""
23983
23984 #. type: textblock
23985 #: ../rescue/virt-rescue.pod:285
23986 msgid ""
23987 "The virt-rescue appliance needs to be small and so does not include many "
23988 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23989 "make TCP connections from the shell using the magical C</dev/tcp/"
23990 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23991 msgstr ""
23992
23993 #. type: verbatim
23994 #: ../rescue/virt-rescue.pod:290
23995 #, no-wrap
23996 msgid ""
23997 " exec 3<>/dev/tcp/redhat.com/80\n"
23998 " echo \"GET /\" >&3\n"
23999 " cat <&3\n"
24000 "\n"
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../rescue/virt-rescue.pod:294
24005 msgid "See L<bash(1)> for more details."
24006 msgstr ""
24007
24008 #. type: textblock
24009 #: ../rescue/virt-rescue.pod:300
24010 msgid ""
24011 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24012 "ENVIRONMENT VARIABLES> for the complete list."
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../rescue/virt-rescue.pod:327
24017 msgid ""
24018 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24019 "filesystems(1)>, L<http://libguestfs.org/>."
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../resize/virt-resize.pod:5
24024 msgid "virt-resize - Resize a virtual machine disk"
24025 msgstr ""
24026
24027 #. type: verbatim
24028 #: ../resize/virt-resize.pod:9
24029 #, no-wrap
24030 msgid ""
24031 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24032 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24033 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24034 "\n"
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../resize/virt-resize.pod:15
24039 msgid ""
24040 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24041 "larger or smaller overall, and resizing or deleting any partitions contained "
24042 "within."
24043 msgstr ""
24044
24045 #. type: textblock
24046 #: ../resize/virt-resize.pod:19
24047 msgid ""
24048 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24049 "not> be used on live virtual machines - for consistent results, shut the "
24050 "virtual machine down before resizing it."
24051 msgstr ""
24052
24053 #. type: textblock
24054 #: ../resize/virt-resize.pod:23
24055 msgid ""
24056 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24057 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24058 msgstr ""
24059
24060 #. type: =item
24061 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24062 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
24063 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24064 msgid "1."
24065 msgstr ""
24066
24067 #. type: textblock
24068 #: ../resize/virt-resize.pod:33
24069 msgid ""
24070 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24071 "fill the extra 5GB of space."
24072 msgstr ""
24073
24074 #. type: verbatim
24075 #: ../resize/virt-resize.pod:36
24076 #, no-wrap
24077 msgid ""
24078 " virt-filesystems --long -h --all -a olddisk\n"
24079 " \n"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../resize/virt-resize.pod:38
24084 #, no-wrap
24085 msgid ""
24086 " truncate -r olddisk newdisk\n"
24087 " truncate -s +5G newdisk\n"
24088 " \n"
24089 msgstr ""
24090
24091 #. type: verbatim
24092 #: ../resize/virt-resize.pod:41
24093 #, no-wrap
24094 msgid ""
24095 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24096 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24097 "\n"
24098 msgstr ""
24099
24100 #. type: =item
24101 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24102 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
24103 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24104 msgid "2."
24105 msgstr ""
24106
24107 #. type: textblock
24108 #: ../resize/virt-resize.pod:46
24109 msgid ""
24110 "As above, but make the /boot partition 200MB bigger, while giving the "
24111 "remaining space to /dev/sda2:"
24112 msgstr ""
24113
24114 #. type: verbatim
24115 #: ../resize/virt-resize.pod:49
24116 #, no-wrap
24117 msgid ""
24118 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24119 "   olddisk newdisk\n"
24120 "\n"
24121 msgstr ""
24122
24123 #. type: =item
24124 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24125 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
24126 #: ../src/guestfs.pod:1451
24127 msgid "3."
24128 msgstr ""
24129
24130 #. type: textblock
24131 #: ../resize/virt-resize.pod:54
24132 msgid ""
24133 "As in the first example, but expand a logical volume as the final step.  "
24134 "This is what you would typically use for Linux guests that use LVM:"
24135 msgstr ""
24136
24137 #. type: verbatim
24138 #: ../resize/virt-resize.pod:58
24139 #, no-wrap
24140 msgid ""
24141 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
24142 "   olddisk newdisk\n"
24143 "\n"
24144 msgstr ""
24145
24146 #. type: =item
24147 #: ../resize/virt-resize.pod:61
24148 msgid "4."
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../resize/virt-resize.pod:63
24153 msgid ""
24154 "As in the first example, but the output format will be qcow2 instead of a "
24155 "raw disk:"
24156 msgstr ""
24157
24158 #. type: verbatim
24159 #: ../resize/virt-resize.pod:66
24160 #, no-wrap
24161 msgid ""
24162 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
24163 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
24164 "\n"
24165 msgstr ""
24166
24167 #. type: =head1
24168 #: ../resize/virt-resize.pod:71
24169 msgid "DETAILED USAGE"
24170 msgstr ""
24171
24172 #. type: =head2
24173 #: ../resize/virt-resize.pod:73
24174 msgid "EXPANDING A VIRTUAL MACHINE DISK"
24175 msgstr ""
24176
24177 #. type: =item
24178 #: ../resize/virt-resize.pod:77
24179 msgid "1. Shut down the virtual machine"
24180 msgstr ""
24181
24182 #. type: =item
24183 #: ../resize/virt-resize.pod:79
24184 msgid "2. Locate input disk image"
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../resize/virt-resize.pod:81
24189 msgid ""
24190 "Locate the input disk image (ie. the file or device on the host containing "
24191 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
24192 "dumpxml> like this to find the disk image name:"
24193 msgstr ""
24194
24195 #. type: verbatim
24196 #: ../resize/virt-resize.pod:85
24197 #, no-wrap
24198 msgid ""
24199 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
24200 " Found 1 nodes:\n"
24201 " -- NODE --\n"
24202 " <source dev=\"/dev/vg/lv_guest\" />\n"
24203 "\n"
24204 msgstr ""
24205
24206 #. type: =item
24207 #: ../resize/virt-resize.pod:90
24208 msgid "3. Look at current sizing"
24209 msgstr ""
24210
24211 #. type: textblock
24212 #: ../resize/virt-resize.pod:92
24213 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
24214 msgstr ""
24215
24216 #. type: verbatim
24217 #: ../resize/virt-resize.pod:95
24218 #, no-wrap
24219 msgid ""
24220 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
24221 " Name       Type       Size  Parent\n"
24222 " /dev/sda1  partition  101M  /dev/sda\n"
24223 " /dev/sda2  partition  7.9G  /dev/sda\n"
24224 " /dev/sda   device     8.0G  -\n"
24225 "\n"
24226 msgstr ""
24227
24228 #. type: textblock
24229 #: ../resize/virt-resize.pod:101
24230 msgid ""
24231 "(This example is a virtual machine with an 8 GB disk which we would like to "
24232 "expand up to 10 GB)."
24233 msgstr ""
24234
24235 #. type: =item
24236 #: ../resize/virt-resize.pod:104
24237 msgid "4. Create output disk"
24238 msgstr ""
24239
24240 #. type: textblock
24241 #: ../resize/virt-resize.pod:106
24242 msgid ""
24243 "Virt-resize cannot do in-place disk modifications.  You have to have space "
24244 "to store the resized output disk."
24245 msgstr ""
24246
24247 #. type: textblock
24248 #: ../resize/virt-resize.pod:109
24249 msgid ""
24250 "To store the resized disk image in a file, create a file of a suitable size:"
24251 msgstr ""
24252
24253 #. type: verbatim
24254 #: ../resize/virt-resize.pod:112
24255 #, no-wrap
24256 msgid ""
24257 " # rm -f outdisk\n"
24258 " # truncate -s 10G outdisk\n"
24259 "\n"
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../resize/virt-resize.pod:115
24264 msgid "Or use L<lvcreate(1)> to create a logical volume:"
24265 msgstr ""
24266
24267 #. type: verbatim
24268 #: ../resize/virt-resize.pod:117
24269 #, no-wrap
24270 msgid ""
24271 " # lvcreate -L 10G -n lv_name vg_name\n"
24272 "\n"
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../resize/virt-resize.pod:119
24277 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
24278 msgstr ""
24279
24280 #. type: verbatim
24281 #: ../resize/virt-resize.pod:121
24282 #, no-wrap
24283 msgid ""
24284 " # virsh pool-list\n"
24285 " # virsh vol-create-as poolname newvol 10G\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: =item
24290 #: ../resize/virt-resize.pod:124
24291 msgid "5. Resize"
24292 msgstr ""
24293
24294 #. type: textblock
24295 #: ../resize/virt-resize.pod:126
24296 msgid ""
24297 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
24298 "file) and the output disk.  The output disk is the one created in the "
24299 "previous step."
24300 msgstr ""
24301
24302 #. type: verbatim
24303 #: ../resize/virt-resize.pod:130
24304 #, no-wrap
24305 msgid ""
24306 " # virt-resize indisk outdisk\n"
24307 "\n"
24308 msgstr ""
24309
24310 #. type: textblock
24311 #: ../resize/virt-resize.pod:132
24312 msgid ""
24313 "This command just copies disk image C<indisk> to disk image C<outdisk> "
24314 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
24315 "larger, then an extra, empty partition is created at the end of the disk "
24316 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
24317 "error."
24318 msgstr ""
24319
24320 #. type: textblock
24321 #: ../resize/virt-resize.pod:138
24322 msgid ""
24323 "More realistically you'd want to expand existing partitions in the disk "
24324 "image by passing extra options (for the full list see the L</OPTIONS> "
24325 "section below)."
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../resize/virt-resize.pod:142
24330 msgid ""
24331 "L</--expand> is the most useful option.  It expands the named partition "
24332 "within the disk to fill any extra space:"
24333 msgstr ""
24334
24335 #. type: verbatim
24336 #: ../resize/virt-resize.pod:145
24337 #, no-wrap
24338 msgid ""
24339 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
24340 "\n"
24341 msgstr ""
24342
24343 #. type: textblock
24344 #: ../resize/virt-resize.pod:147
24345 msgid ""
24346 "(In this case, an extra partition is I<not> created at the end of the disk, "
24347 "because there will be no unused space)."
24348 msgstr ""
24349
24350 #. type: textblock
24351 #: ../resize/virt-resize.pod:150
24352 msgid ""
24353 "L</--resize> is the other commonly used option.  The following would "
24354 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
24355 "rest of the available space:"
24356 msgstr ""
24357
24358 #. type: verbatim
24359 #: ../resize/virt-resize.pod:154
24360 #, no-wrap
24361 msgid ""
24362 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24363 "     indisk outdisk\n"
24364 "\n"
24365 msgstr ""
24366
24367 #. type: textblock
24368 #: ../resize/virt-resize.pod:157
24369 msgid ""
24370 "If the expanded partition in the image contains a filesystem or LVM PV, then "
24371 "if virt-resize knows how, it will resize the contents, the equivalent of "
24372 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
24373 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
24374 "filesystems, so you would have to online resize them after booting the guest."
24375 msgstr ""
24376
24377 #. type: textblock
24378 #: ../resize/virt-resize.pod:164
24379 msgid "Other options are covered below."
24380 msgstr ""
24381
24382 #. type: =item
24383 #: ../resize/virt-resize.pod:166
24384 msgid "6. Test"
24385 msgstr ""
24386
24387 #. type: textblock
24388 #: ../resize/virt-resize.pod:168
24389 msgid "Thoroughly test the new disk image I<before> discarding the old one."
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../resize/virt-resize.pod:170
24394 msgid "If you are using libvirt, edit the XML to point at the new disk:"
24395 msgstr ""
24396
24397 #. type: verbatim
24398 #: ../resize/virt-resize.pod:172
24399 #, no-wrap
24400 msgid ""
24401 " # virsh edit guestname\n"
24402 "\n"
24403 msgstr ""
24404
24405 #. type: textblock
24406 #: ../resize/virt-resize.pod:174
24407 msgid ""
24408 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
24409 "html#elementsDisks>"
24410 msgstr ""
24411
24412 #. type: textblock
24413 #: ../resize/virt-resize.pod:177
24414 msgid "Then start up the domain with the new, resized disk:"
24415 msgstr ""
24416
24417 #. type: verbatim
24418 #: ../resize/virt-resize.pod:179
24419 #, no-wrap
24420 msgid ""
24421 " # virsh start guestname\n"
24422 "\n"
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:181
24427 msgid ""
24428 "and check that it still works.  See also the L</NOTES> section below for "
24429 "additional information."
24430 msgstr ""
24431
24432 #. type: =item
24433 #: ../resize/virt-resize.pod:184
24434 msgid "7. Resize LVs etc inside the guest"
24435 msgstr ""
24436
24437 #. type: textblock
24438 #: ../resize/virt-resize.pod:186
24439 msgid "(This can also be done offline using L<guestfish(1)>)"
24440 msgstr ""
24441
24442 #. type: textblock
24443 #: ../resize/virt-resize.pod:188
24444 msgid ""
24445 "Once the guest has booted you should see the new space available, at least "
24446 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24447 "may need to resize LVs inside PVs, and also resize filesystem types that "
24448 "virt-resize does not know how to expand."
24449 msgstr ""
24450
24451 #. type: =head2
24452 #: ../resize/virt-resize.pod:195
24453 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24454 msgstr ""
24455
24456 #. type: textblock
24457 #: ../resize/virt-resize.pod:197
24458 msgid ""
24459 "Shrinking is somewhat more complex than expanding, and only an overview is "
24460 "given here."
24461 msgstr ""
24462
24463 #. type: textblock
24464 #: ../resize/virt-resize.pod:200
24465 msgid ""
24466 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24467 "filesystems).  The user has to shrink content before passing the disk image "
24468 "to virt-resize, and virt-resize will check that the content has been shrunk "
24469 "properly."
24470 msgstr ""
24471
24472 #. type: textblock
24473 #: ../resize/virt-resize.pod:205
24474 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24475 msgstr ""
24476
24477 #. type: textblock
24478 #: ../resize/virt-resize.pod:207
24479 msgid ""
24480 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24481 "steps 3 and 4 above to allocate a new disk image."
24482 msgstr ""
24483
24484 #. type: textblock
24485 #: ../resize/virt-resize.pod:210
24486 msgid ""
24487 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24488 msgstr ""
24489
24490 #. type: =head2
24491 #: ../resize/virt-resize.pod:213
24492 msgid "IGNORING OR DELETING PARTITIONS"
24493 msgstr ""
24494
24495 #. type: textblock
24496 #: ../resize/virt-resize.pod:215
24497 msgid ""
24498 "virt-resize also gives a convenient way to ignore or delete partitions when "
24499 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24500 "up the copy where you don't care about the existing contents of a "
24501 "partition.  Deleting a partition removes it completely, but note that it "
24502 "also renumbers any partitions after the one which is deleted, which can "
24503 "leave some guests unbootable."
24504 msgstr ""
24505
24506 #. type: =head2
24507 #: ../resize/virt-resize.pod:222
24508 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24509 msgstr ""
24510
24511 #. type: textblock
24512 #: ../resize/virt-resize.pod:224
24513 msgid ""
24514 "If the input disk is in qcow2 format, then you may prefer that the output is "
24515 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24516 "the fly.  The output format is simply determined by the format of the empty "
24517 "output container that you provide.  Thus to create qcow2 output, use:"
24518 msgstr ""
24519
24520 #. type: verbatim
24521 #: ../resize/virt-resize.pod:230
24522 #, no-wrap
24523 msgid ""
24524 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24525 "\n"
24526 msgstr ""
24527
24528 #. type: textblock
24529 #: ../resize/virt-resize.pod:232
24530 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24531 msgstr ""
24532
24533 #. type: textblock
24534 #: ../resize/virt-resize.pod:234
24535 msgid "Similarly, to get non-sparse raw output use:"
24536 msgstr ""
24537
24538 #. type: verbatim
24539 #: ../resize/virt-resize.pod:236
24540 #, no-wrap
24541 msgid ""
24542 " fallocate -l size outdisk\n"
24543 "\n"
24544 msgstr ""
24545
24546 #. type: textblock
24547 #: ../resize/virt-resize.pod:238
24548 msgid ""
24549 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24550 "dev/zero of=outdisk bs=1M count=..>)"
24551 msgstr ""
24552
24553 #. type: =head2
24554 #: ../resize/virt-resize.pod:241
24555 msgid "LOGICAL PARTITIONS"
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../resize/virt-resize.pod:243
24560 msgid ""
24561 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24562 "tables) cannot be resized."
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../resize/virt-resize.pod:246
24567 msgid ""
24568 "To understand what is going on, firstly one of the four partitions C</dev/"
24569 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24570 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24571 "type."
24572 msgstr ""
24573
24574 #. type: textblock
24575 #: ../resize/virt-resize.pod:251
24576 msgid "Logical partitions live inside the extended partition."
24577 msgstr ""
24578
24579 #. type: textblock
24580 #: ../resize/virt-resize.pod:253
24581 msgid ""
24582 "The extended partition can be expanded, but not shrunk (unless you force it, "
24583 "which is not advisable).  When the extended partition is copied across, all "
24584 "the logical partitions contained inside are copied over implicitly.  Virt-"
24585 "resize does not look inside the extended partition, so it copies the logical "
24586 "partitions blindly."
24587 msgstr ""
24588
24589 #. type: textblock
24590 #: ../resize/virt-resize.pod:259
24591 msgid ""
24592 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24593 "line.  Doing so will give an error."
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24598 msgid "Display help."
24599 msgstr ""
24600
24601 #. type: =item
24602 #: ../resize/virt-resize.pod:270
24603 msgid "B<--align-first auto>"
24604 msgstr ""
24605
24606 #. type: =item
24607 #: ../resize/virt-resize.pod:272
24608 msgid "B<--align-first never>"
24609 msgstr ""
24610
24611 #. type: =item
24612 #: ../resize/virt-resize.pod:274
24613 msgid "B<--align-first always>"
24614 msgstr ""
24615
24616 #. type: textblock
24617 #: ../resize/virt-resize.pod:276
24618 msgid ""
24619 "Align the first partition for improved performance (see also the I<--"
24620 "alignment> option)."
24621 msgstr ""
24622
24623 #. type: textblock
24624 #: ../resize/virt-resize.pod:279
24625 msgid ""
24626 "The default is I<--align-first auto> which only aligns the first partition "
24627 "if it is safe to do so.  That is, only when we know how to fix the "
24628 "bootloader automatically, and at the moment that can only be done for "
24629 "Windows guests."
24630 msgstr ""
24631
24632 #. type: textblock
24633 #: ../resize/virt-resize.pod:284
24634 msgid ""
24635 "I<--align-first never> means we never move the first partition.  This is the "
24636 "safest option.  Try this if the guest does not boot after resizing."
24637 msgstr ""
24638
24639 #. type: textblock
24640 #: ../resize/virt-resize.pod:288
24641 msgid ""
24642 "I<--align-first always> means we always align the first partition (if it "
24643 "needs to be aligned).  For some guests this will break the bootloader, "
24644 "making the guest unbootable."
24645 msgstr ""
24646
24647 #. type: =item
24648 #: ../resize/virt-resize.pod:292
24649 msgid "B<--alignment N>"
24650 msgstr ""
24651
24652 #. type: textblock
24653 #: ../resize/virt-resize.pod:294
24654 msgid ""
24655 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24656 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24657 msgstr ""
24658
24659 #. type: textblock
24660 #: ../resize/virt-resize.pod:298
24661 msgid ""
24662 "Assuming 512 byte sector size inside the guest, here are some suitable "
24663 "values for this:"
24664 msgstr ""
24665
24666 #. type: =item
24667 #: ../resize/virt-resize.pod:303
24668 msgid "I<--alignment 1> (512 bytes)"
24669 msgstr ""
24670
24671 #. type: textblock
24672 #: ../resize/virt-resize.pod:305
24673 msgid ""
24674 "The partitions would be packed together as closely as possible, but would be "
24675 "completely unaligned.  In some cases this can cause very poor performance.  "
24676 "See L<virt-alignment-scan(1)> for further details."
24677 msgstr ""
24678
24679 #. type: =item
24680 #: ../resize/virt-resize.pod:309
24681 msgid "I<--alignment 8> (4K)"
24682 msgstr ""
24683
24684 #. type: textblock
24685 #: ../resize/virt-resize.pod:311
24686 msgid ""
24687 "This would be the minimum acceptable alignment for reasonable performance on "
24688 "modern hosts."
24689 msgstr ""
24690
24691 #. type: =item
24692 #: ../resize/virt-resize.pod:314
24693 msgid "I<--alignment 128> (64K)"
24694 msgstr ""
24695
24696 #. type: textblock
24697 #: ../resize/virt-resize.pod:316
24698 msgid ""
24699 "This alignment provides good performance when the host is using high end "
24700 "network storage."
24701 msgstr ""
24702
24703 #. type: =item
24704 #: ../resize/virt-resize.pod:319
24705 msgid "I<--alignment 2048> (1M)"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../resize/virt-resize.pod:321
24710 msgid ""
24711 "This is the standard alignment used by all newly installed guests since "
24712 "around 2008."
24713 msgstr ""
24714
24715 #. type: =item
24716 #: ../resize/virt-resize.pod:326
24717 msgid "B<-d>"
24718 msgstr ""
24719
24720 #. type: =item
24721 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24722 #: ../tools/virt-win-reg.pl:120
24723 msgid "B<--debug>"
24724 msgstr ""
24725
24726 #. type: textblock
24727 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24728 msgid "Enable debugging messages."
24729 msgstr ""
24730
24731 #. type: =item
24732 #: ../resize/virt-resize.pod:332
24733 msgid "B<--delete part>"
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../resize/virt-resize.pod:334
24738 msgid ""
24739 "Delete the named partition.  It would be more accurate to describe this as "
24740 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24741 "the original disk image is left intact."
24742 msgstr ""
24743
24744 #. type: textblock
24745 #: ../resize/virt-resize.pod:338
24746 msgid ""
24747 "Note that when you delete a partition, then anything contained in the "
24748 "partition is also deleted.  Furthermore, this causes any partitions that "
24749 "come after to be I<renumbered>, which can easily make your guest unbootable."
24750 msgstr ""
24751
24752 #. type: textblock
24753 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24754 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24755 msgid "You can give this option multiple times."
24756 msgstr ""
24757
24758 #. type: =item
24759 #: ../resize/virt-resize.pod:345
24760 msgid "B<--expand part>"
24761 msgstr ""
24762
24763 #. type: textblock
24764 #: ../resize/virt-resize.pod:347
24765 msgid ""
24766 "Expand the named partition so it uses up all extra space (space left over "
24767 "after any other resize changes that you request have been done)."
24768 msgstr ""
24769
24770 #. type: textblock
24771 #: ../resize/virt-resize.pod:350
24772 msgid ""
24773 "If virt-resize knows how, it will expand the direct content of the "
24774 "partition.  For example, if the partition is an LVM PV, it will expand the "
24775 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24776 "content it doesn't know about alone."
24777 msgstr ""
24778
24779 #. type: textblock
24780 #: ../resize/virt-resize.pod:355
24781 msgid "Currently virt-resize can resize:"
24782 msgstr ""
24783
24784 #. type: textblock
24785 #: ../resize/virt-resize.pod:361
24786 msgid "ext2, ext3 and ext4 filesystems."
24787 msgstr ""
24788
24789 #. type: textblock
24790 #: ../resize/virt-resize.pod:365
24791 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../resize/virt-resize.pod:367
24796 msgid ""
24797 "The filesystem must have been shut down consistently last time it was used.  "
24798 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24799 "consistency check, so at the first boot after resizing Windows will check "
24800 "the disk."
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../resize/virt-resize.pod:374
24805 msgid ""
24806 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24807 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24808 "resize LVs as desired after boot."
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../resize/virt-resize.pod:380
24813 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24818 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24819 msgstr ""
24820
24821 #. type: =item
24822 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24823 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24824 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24825 msgid "B<--format> raw"
24826 msgstr ""
24827
24828 #. type: textblock
24829 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24830 msgid ""
24831 "Specify the format of the input disk image.  If this flag is not given then "
24832 "it is auto-detected from the image itself."
24833 msgstr ""
24834
24835 #. type: textblock
24836 #: ../resize/virt-resize.pod:394
24837 msgid ""
24838 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24839 "AND NON-SPARSE RAW FORMATS>."
24840 msgstr ""
24841
24842 #. type: =item
24843 #: ../resize/virt-resize.pod:397
24844 msgid "B<--ignore part>"
24845 msgstr ""
24846
24847 #. type: textblock
24848 #: ../resize/virt-resize.pod:399
24849 msgid ""
24850 "Ignore the named partition.  Effectively this means the partition is "
24851 "allocated on the destination disk, but the content is not copied across from "
24852 "the source disk.  The content of the partition will be blank (all zero "
24853 "bytes)."
24854 msgstr ""
24855
24856 #. type: =item
24857 #: ../resize/virt-resize.pod:406
24858 msgid "B<--LV-expand logvol>"
24859 msgstr ""
24860
24861 #. type: textblock
24862 #: ../resize/virt-resize.pod:408
24863 msgid ""
24864 "This takes the logical volume and, as a final step, expands it to fill all "
24865 "the space available in its volume group.  A typical usage, assuming a Linux "
24866 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24867 "lv_root> would be:"
24868 msgstr ""
24869
24870 #. type: verbatim
24871 #: ../resize/virt-resize.pod:413
24872 #, no-wrap
24873 msgid ""
24874 " virt-resize indisk outdisk \\\n"
24875 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24876 "\n"
24877 msgstr ""
24878
24879 #. type: textblock
24880 #: ../resize/virt-resize.pod:416
24881 msgid ""
24882 "This would first expand the partition (and PV), and then expand the root "
24883 "device to fill the extra space in the PV."
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../resize/virt-resize.pod:419
24888 msgid ""
24889 "The contents of the LV are also resized if virt-resize knows how to do "
24890 "that.  You can stop virt-resize from trying to expand the content by using "
24891 "the option I<--no-expand-content>."
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../resize/virt-resize.pod:423
24896 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24897 msgstr ""
24898
24899 #. type: textblock
24900 #: ../resize/virt-resize.pod:425
24901 msgid ""
24902 "You can give this option multiple times, I<but> it doesn't make sense to do "
24903 "this unless the logical volumes you specify are all in different volume "
24904 "groups."
24905 msgstr ""
24906
24907 #. type: =item
24908 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24909 msgid "B<--machine-readable>"
24910 msgstr ""
24911
24912 #. type: textblock
24913 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24914 msgid ""
24915 "This option is used to make the output more machine friendly when being "
24916 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24917 msgstr ""
24918
24919 #. type: =item
24920 #: ../resize/virt-resize.pod:437
24921 msgid "B<--dryrun>"
24922 msgstr ""
24923
24924 #. type: textblock
24925 #: ../resize/virt-resize.pod:439
24926 msgid "Print a summary of what would be done, but don't do anything."
24927 msgstr ""
24928
24929 #. type: =item
24930 #: ../resize/virt-resize.pod:441
24931 msgid "B<--no-copy-boot-loader>"
24932 msgstr ""
24933
24934 #. type: textblock
24935 #: ../resize/virt-resize.pod:443
24936 msgid ""
24937 "By default, virt-resize copies over some sectors at the start of the disk "
24938 "(up to the beginning of the first partition).  Commonly these sectors "
24939 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24940 "in order for the guest to boot correctly."
24941 msgstr ""
24942
24943 #. type: textblock
24944 #: ../resize/virt-resize.pod:448
24945 msgid ""
24946 "If you specify this flag, then this initial copy is not done.  You may need "
24947 "to reinstall the boot loader in this case."
24948 msgstr ""
24949
24950 #. type: =item
24951 #: ../resize/virt-resize.pod:451
24952 msgid "B<--no-extra-partition>"
24953 msgstr ""
24954
24955 #. type: textblock
24956 #: ../resize/virt-resize.pod:453
24957 msgid ""
24958 "By default, virt-resize creates an extra partition if there is any extra, "
24959 "unused space after all resizing has happened.  Use this option to prevent "
24960 "the extra partition from being created.  If you do this then the extra space "
24961 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24962 "tool in the guest."
24963 msgstr ""
24964
24965 #. type: textblock
24966 #: ../resize/virt-resize.pod:459
24967 msgid ""
24968 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24969 "will be created."
24970 msgstr ""
24971
24972 #. type: =item
24973 #: ../resize/virt-resize.pod:462
24974 msgid "B<--no-expand-content>"
24975 msgstr ""
24976
24977 #. type: textblock
24978 #: ../resize/virt-resize.pod:464
24979 msgid ""
24980 "By default, virt-resize will try to expand the direct contents of "
24981 "partitions, if it knows how (see I<--expand> option above)."
24982 msgstr ""
24983
24984 #. type: textblock
24985 #: ../resize/virt-resize.pod:467
24986 msgid ""
24987 "If you give the I<--no-expand-content> option then virt-resize will not "
24988 "attempt this."
24989 msgstr ""
24990
24991 #. type: =item
24992 #: ../resize/virt-resize.pod:470
24993 msgid "B<--ntfsresize-force>"
24994 msgstr ""
24995
24996 #. type: textblock
24997 #: ../resize/virt-resize.pod:472
24998 msgid ""
24999 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25000 "the NTFS disk is marked as needing a consistency check.  You have to use "
25001 "this option if you want to resize a Windows guest multiple times without "
25002 "booting into Windows between each resize."
25003 msgstr ""
25004
25005 #. type: =item
25006 #: ../resize/virt-resize.pod:478
25007 msgid "B<--output-format> raw"
25008 msgstr ""
25009
25010 #. type: textblock
25011 #: ../resize/virt-resize.pod:480
25012 msgid ""
25013 "Specify the format of the output disk image.  If this flag is not given then "
25014 "it is auto-detected from the image itself."
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../resize/virt-resize.pod:486
25019 msgid ""
25020 "Note that this option I<does not create> the output format.  This option "
25021 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25022 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25023 "SPARSE RAW FORMATS>."
25024 msgstr ""
25025
25026 #. type: textblock
25027 #: ../resize/virt-resize.pod:495
25028 msgid "Don't print the summary."
25029 msgstr ""
25030
25031 #. type: =item
25032 #: ../resize/virt-resize.pod:497
25033 msgid "B<--resize part=size>"
25034 msgstr ""
25035
25036 #. type: textblock
25037 #: ../resize/virt-resize.pod:499
25038 msgid ""
25039 "Resize the named partition (expanding or shrinking it) so that it has the "
25040 "given size."
25041 msgstr ""
25042
25043 #. type: textblock
25044 #: ../resize/virt-resize.pod:502
25045 msgid ""
25046 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25047 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25048 "size; or as a relative number or percentage.  For example:"
25049 msgstr ""
25050
25051 #. type: verbatim
25052 #: ../resize/virt-resize.pod:508
25053 #, no-wrap
25054 msgid ""
25055 " --resize /dev/sda2=10G\n"
25056 "\n"
25057 msgstr ""
25058
25059 #. type: verbatim
25060 #: ../resize/virt-resize.pod:510
25061 #, no-wrap
25062 msgid ""
25063 " --resize /dev/sda4=90%\n"
25064 "\n"
25065 msgstr ""
25066
25067 #. type: verbatim
25068 #: ../resize/virt-resize.pod:512
25069 #, no-wrap
25070 msgid ""
25071 " --resize /dev/sda2=+1G\n"
25072 "\n"
25073 msgstr ""
25074
25075 #. type: verbatim
25076 #: ../resize/virt-resize.pod:514
25077 #, no-wrap
25078 msgid ""
25079 " --resize /dev/sda2=-200M\n"
25080 "\n"
25081 msgstr ""
25082
25083 #. type: verbatim
25084 #: ../resize/virt-resize.pod:516
25085 #, no-wrap
25086 msgid ""
25087 " --resize /dev/sda1=+128K\n"
25088 "\n"
25089 msgstr ""
25090
25091 #. type: verbatim
25092 #: ../resize/virt-resize.pod:518
25093 #, no-wrap
25094 msgid ""
25095 " --resize /dev/sda1=+10%\n"
25096 "\n"
25097 msgstr ""
25098
25099 #. type: verbatim
25100 #: ../resize/virt-resize.pod:520
25101 #, no-wrap
25102 msgid ""
25103 " --resize /dev/sda1=-10%\n"
25104 "\n"
25105 msgstr ""
25106
25107 #. type: textblock
25108 #: ../resize/virt-resize.pod:522
25109 msgid ""
25110 "You can increase the size of any partition.  Virt-resize will expand the "
25111 "direct content of the partition if it knows how (see I<--expand> below)."
25112 msgstr ""
25113
25114 #. type: textblock
25115 #: ../resize/virt-resize.pod:526
25116 msgid ""
25117 "You can only I<decrease> the size of partitions that contain filesystems or "
25118 "PVs which have already been shrunk.  Virt-resize will check this has been "
25119 "done before proceeding, or else will print an error (see also I<--resize-"
25120 "force>)."
25121 msgstr ""
25122
25123 #. type: =item
25124 #: ../resize/virt-resize.pod:533
25125 msgid "B<--resize-force part=size>"
25126 msgstr ""
25127
25128 #. type: textblock
25129 #: ../resize/virt-resize.pod:535
25130 msgid ""
25131 "This is the same as I<--resize> except that it will let you decrease the "
25132 "size of any partition.  Generally this means you will lose any data which "
25133 "was at the end of the partition you shrink, but you may not care about that "
25134 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
25135 "as a swap partition)."
25136 msgstr ""
25137
25138 #. type: textblock
25139 #: ../resize/virt-resize.pod:541
25140 msgid "See also the I<--ignore> option."
25141 msgstr ""
25142
25143 #. type: =item
25144 #: ../resize/virt-resize.pod:543
25145 msgid "B<--shrink part>"
25146 msgstr ""
25147
25148 #. type: textblock
25149 #: ../resize/virt-resize.pod:545
25150 msgid ""
25151 "Shrink the named partition until the overall disk image fits in the "
25152 "destination.  The named partition B<must> contain a filesystem or PV which "
25153 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
25154 "online tools).  Virt-resize will check this and give an error if it has not "
25155 "been done."
25156 msgstr ""
25157
25158 #. type: textblock
25159 #: ../resize/virt-resize.pod:551
25160 msgid ""
25161 "The amount by which the overall disk must be shrunk (after carrying out all "
25162 "other operations requested by the user) is called the \"deficit\".  For "
25163 "example, a straight copy (assume no other operations)  from a 5GB disk image "
25164 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
25165 "would give an error unless the user specified a partition to shrink and that "
25166 "partition had more than a gigabyte of free space."
25167 msgstr ""
25168
25169 #. type: =head1
25170 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
25171 msgid "MACHINE READABLE OUTPUT"
25172 msgstr ""
25173
25174 #. type: textblock
25175 #: ../resize/virt-resize.pod:571
25176 msgid ""
25177 "The I<--machine-readable> option can be used to make the output more machine "
25178 "friendly, which is useful when calling virt-resize from other programs, GUIs "
25179 "etc."
25180 msgstr ""
25181
25182 #. type: textblock
25183 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
25184 msgid "There are two ways to use this option."
25185 msgstr ""
25186
25187 #. type: textblock
25188 #: ../resize/virt-resize.pod:577
25189 msgid ""
25190 "Firstly use the option on its own to query the capabilities of the virt-"
25191 "resize binary.  Typical output looks like this:"
25192 msgstr ""
25193
25194 #. type: verbatim
25195 #: ../resize/virt-resize.pod:580
25196 #, no-wrap
25197 msgid ""
25198 " $ virt-resize --machine-readable\n"
25199 " virt-resize\n"
25200 " ntfsresize-force\n"
25201 " 32bitok\n"
25202 " ntfs\n"
25203 " btrfs\n"
25204 "\n"
25205 msgstr ""
25206
25207 #. type: textblock
25208 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
25209 msgid ""
25210 "A list of features is printed, one per line, and the program exits with "
25211 "status 0."
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
25216 msgid ""
25217 "Secondly use the option in conjunction with other options to make the "
25218 "regular program output more machine friendly."
25219 msgstr ""
25220
25221 #. type: textblock
25222 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
25223 msgid "At the moment this means:"
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
25228 msgid ""
25229 "Progress bar messages can be parsed from stdout by looking for this regular "
25230 "expression:"
25231 msgstr ""
25232
25233 #. type: verbatim
25234 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
25235 #, no-wrap
25236 msgid ""
25237 " ^[0-9]+/[0-9]+$\n"
25238 "\n"
25239 msgstr ""
25240
25241 #. type: textblock
25242 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
25243 msgid ""
25244 "The calling program should treat messages sent to stdout (except for "
25245 "progress bar messages) as status messages.  They can be logged and/or "
25246 "displayed to the user."
25247 msgstr ""
25248
25249 #. type: textblock
25250 #: ../resize/virt-resize.pod:612
25251 msgid ""
25252 "The calling program should treat messages sent to stderr as error messages.  "
25253 "In addition, virt-resize exits with a non-zero status code if there was a "
25254 "fatal error."
25255 msgstr ""
25256
25257 #. type: textblock
25258 #: ../resize/virt-resize.pod:618
25259 msgid ""
25260 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
25261 "readable> option and will return an error."
25262 msgstr ""
25263
25264 #. type: =head2
25265 #: ../resize/virt-resize.pod:623
25266 msgid "\"Partition 1 does not end on cylinder boundary.\""
25267 msgstr ""
25268
25269 #. type: textblock
25270 #: ../resize/virt-resize.pod:625
25271 msgid ""
25272 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
25273 "alignment> parameter).  Usually this means the partitions will not be "
25274 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
25275 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
25276 "drives.  Alignment of partitions to cylinders is not required by any modern "
25277 "operating system."
25278 msgstr ""
25279
25280 #. type: =head2
25281 #: ../resize/virt-resize.pod:632
25282 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
25283 msgstr ""
25284
25285 #. type: textblock
25286 #: ../resize/virt-resize.pod:634
25287 msgid ""
25288 "In Windows Vista and later versions, Microsoft switched to using a separate "
25289 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
25290 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
25291 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
25292 "the second partition (ie. C: drive)  should work."
25293 msgstr ""
25294
25295 #. type: textblock
25296 #: ../resize/virt-resize.pod:641
25297 msgid ""
25298 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
25299 "NTFS partitions have been expanded.  This is just a safety check and (unless "
25300 "it find errors) is nothing to worry about."
25301 msgstr ""
25302
25303 #. type: =head2
25304 #: ../resize/virt-resize.pod:645
25305 msgid "GUEST BOOT STUCK AT \"GRUB\""
25306 msgstr ""
25307
25308 #. type: textblock
25309 #: ../resize/virt-resize.pod:647
25310 msgid ""
25311 "If a Linux guest does not boot after resizing, and the boot is stuck after "
25312 "printing C<GRUB> on the console, try reinstalling grub."
25313 msgstr ""
25314
25315 #. type: verbatim
25316 #: ../resize/virt-resize.pod:650
25317 #, no-wrap
25318 msgid ""
25319 " guestfish -i -a newdisk\n"
25320 " ><fs> cat /boot/grub/device.map\n"
25321 " # check the contents of this file are sensible or\n"
25322 " # edit the file if necessary\n"
25323 " ><fs> grub-install / /dev/vda\n"
25324 " ><fs> exit\n"
25325 "\n"
25326 msgstr ""
25327
25328 #. type: textblock
25329 #: ../resize/virt-resize.pod:657
25330 msgid ""
25331 "For more flexible guest reconfiguration, including if you need to specify "
25332 "other parameters to grub-install, use L<virt-rescue(1)>."
25333 msgstr ""
25334
25335 #. type: =head1
25336 #: ../resize/virt-resize.pod:660
25337 msgid "ALTERNATIVE TOOLS"
25338 msgstr ""
25339
25340 #. type: textblock
25341 #: ../resize/virt-resize.pod:662
25342 msgid ""
25343 "There are several proprietary tools for resizing partitions.  We won't "
25344 "mention any here."
25345 msgstr ""
25346
25347 #. type: textblock
25348 #: ../resize/virt-resize.pod:665
25349 msgid ""
25350 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
25351 "operations on disk images.  They can resize and move partitions, but I don't "
25352 "think they can do anything with the contents, and they certainly don't "
25353 "understand LVM."
25354 msgstr ""
25355
25356 #. type: textblock
25357 #: ../resize/virt-resize.pod:670
25358 msgid ""
25359 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
25360 "but at a much lower level.  You will probably end up hand-calculating sector "
25361 "offsets, which is something that virt-resize was designed to avoid.  If you "
25362 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
25363 "I<--debug> flag."
25364 msgstr ""
25365
25366 #. type: textblock
25367 #: ../resize/virt-resize.pod:690
25368 msgid ""
25369 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
25370 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
25371 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
25372 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
25373 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
25374 msgstr ""
25375
25376 #. type: textblock
25377 #: ../ruby/examples/guestfs-ruby.pod:5
25378 msgid "guestfs-ruby - How to use libguestfs from Ruby"
25379 msgstr ""
25380
25381 #. type: verbatim
25382 #: ../ruby/examples/guestfs-ruby.pod:9
25383 #, no-wrap
25384 msgid ""
25385 " require 'guestfs'\n"
25386 " g = Guestfs::Guestfs.new()\n"
25387 " g.add_drive_opts(\"disk.img\",\n"
25388 "                  :readonly => 1, :format => \"raw\")\n"
25389 " g.launch()\n"
25390 "\n"
25391 msgstr ""
25392
25393 #. type: textblock
25394 #: ../ruby/examples/guestfs-ruby.pod:17
25395 msgid ""
25396 "This manual page documents how to call libguestfs from the Ruby programming "
25397 "language.  This page just documents the differences from the C API and gives "
25398 "some examples.  If you are not familiar with using libguestfs, you also need "
25399 "to read L<guestfs(3)>."
25400 msgstr ""
25401
25402 #. type: textblock
25403 #: ../ruby/examples/guestfs-ruby.pod:24
25404 msgid ""
25405 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
25406 "This has a single parameter which is the error message (a string)."
25407 msgstr ""
25408
25409 #. type: textblock
25410 #: ../ruby/examples/guestfs-ruby.pod:38
25411 msgid ""
25412 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
25413 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
25414 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
25415 msgstr ""
25416
25417 #. type: textblock
25418 #: ../sparsify/virt-sparsify.pod:5
25419 msgid "virt-sparsify - Make a virtual machine disk sparse"
25420 msgstr ""
25421
25422 #. type: verbatim
25423 #: ../sparsify/virt-sparsify.pod:9
25424 #, no-wrap
25425 msgid ""
25426 " virt-sparsify [--options] indisk outdisk\n"
25427 "\n"
25428 msgstr ""
25429
25430 #. type: textblock
25431 #: ../sparsify/virt-sparsify.pod:13
25432 msgid ""
25433 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25434 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25435 "the disk image can be converted back to free space on the host."
25436 msgstr ""
25437
25438 #. type: textblock
25439 #: ../sparsify/virt-sparsify.pod:18
25440 msgid ""
25441 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25442 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25443 msgstr ""
25444
25445 #. type: textblock
25446 #: ../sparsify/virt-sparsify.pod:21
25447 msgid ""
25448 "Virt-sparsify can also convert between some disk formats, for example "
25449 "converting a raw disk image to a thin-provisioned qcow2 image."
25450 msgstr ""
25451
25452 #. type: textblock
25453 #: ../sparsify/virt-sparsify.pod:24
25454 msgid ""
25455 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25456 "machines.  If a virtual machine has more than one attached disk, you must "
25457 "sparsify each one separately."
25458 msgstr ""
25459
25460 #. type: =head2
25461 #: ../sparsify/virt-sparsify.pod:28
25462 msgid "IMPORTANT LIMITATIONS"
25463 msgstr ""
25464
25465 #. type: textblock
25466 #: ../sparsify/virt-sparsify.pod:34
25467 msgid ""
25468 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25469 "image to a destination image, leaving the source unchanged.  I<Check that "
25470 "the sparsification was successful before deleting the source image>."
25471 msgstr ""
25472
25473 #. type: textblock
25474 #: ../sparsify/virt-sparsify.pod:41
25475 msgid "The virtual machine I<must be shut down> before using this tool."
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../sparsify/virt-sparsify.pod:45
25480 msgid ""
25481 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25482 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25483 "usually much less space is required."
25484 msgstr ""
25485
25486 #. type: textblock
25487 #: ../sparsify/virt-sparsify.pod:51
25488 msgid ""
25489 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../sparsify/virt-sparsify.pod:56
25494 msgid "Virt-sparsify cannot handle encrypted disks."
25495 msgstr ""
25496
25497 #. type: textblock
25498 #: ../sparsify/virt-sparsify.pod:60
25499 msgid ""
25500 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25501 "this space is often used for critical items like bootloaders so it's not "
25502 "really unused."
25503 msgstr ""
25504
25505 #. type: textblock
25506 #: ../sparsify/virt-sparsify.pod:66
25507 msgid ""
25508 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25509 "to do this unless we can be sure there is no hibernation data, so at the "
25510 "moment swap partitions are ignored."
25511 msgstr ""
25512
25513 #. type: textblock
25514 #: ../sparsify/virt-sparsify.pod:72
25515 msgid ""
25516 "You may also want to read the manual pages for the associated tools L<virt-"
25517 "filesystems(1)> and L<virt-df(1)> before starting."
25518 msgstr ""
25519
25520 #. type: textblock
25521 #: ../sparsify/virt-sparsify.pod:77
25522 msgid "Typical usage is:"
25523 msgstr ""
25524
25525 #. type: verbatim
25526 #: ../sparsify/virt-sparsify.pod:79
25527 #, no-wrap
25528 msgid ""
25529 " virt-sparsify indisk outdisk\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: textblock
25534 #: ../sparsify/virt-sparsify.pod:81
25535 msgid ""
25536 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25537 "is created, or overwritten if it already exists.  The format of the input "
25538 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25539 msgstr ""
25540
25541 #. type: textblock
25542 #: ../sparsify/virt-sparsify.pod:86
25543 msgid "To convert between formats, use the I<--convert> option:"
25544 msgstr ""
25545
25546 #. type: verbatim
25547 #: ../sparsify/virt-sparsify.pod:88
25548 #, no-wrap
25549 msgid ""
25550 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25551 "\n"
25552 msgstr ""
25553
25554 #. type: textblock
25555 #: ../sparsify/virt-sparsify.pod:90
25556 msgid ""
25557 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25558 "can find within the source disk image.  You can get it to ignore (don't zero "
25559 "free space on) certain filesystems by doing:"
25560 msgstr ""
25561
25562 #. type: verbatim
25563 #: ../sparsify/virt-sparsify.pod:94
25564 #, no-wrap
25565 msgid ""
25566 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../sparsify/virt-sparsify.pod:96
25572 msgid ""
25573 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25574 msgstr ""
25575
25576 #. type: =item
25577 #: ../sparsify/virt-sparsify.pod:107
25578 msgid "B<--convert> raw"
25579 msgstr ""
25580
25581 #. type: =item
25582 #: ../sparsify/virt-sparsify.pod:109
25583 msgid "B<--convert> qcow2"
25584 msgstr ""
25585
25586 #. type: =item
25587 #: ../sparsify/virt-sparsify.pod:111
25588 msgid "B<--convert> [other formats]"
25589 msgstr ""
25590
25591 #. type: textblock
25592 #: ../sparsify/virt-sparsify.pod:113
25593 msgid ""
25594 "Use C<output-format> as the format for the destination image.  If this is "
25595 "not specified, then the input format is used."
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../sparsify/virt-sparsify.pod:116
25600 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25601 msgstr ""
25602
25603 #. type: textblock
25604 #: ../sparsify/virt-sparsify.pod:118
25605 msgid ""
25606 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25607 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25608 msgstr ""
25609
25610 #. type: textblock
25611 #: ../sparsify/virt-sparsify.pod:122
25612 msgid ""
25613 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25614 "sparsify doesn't need to try to guess the input format."
25615 msgstr ""
25616
25617 #. type: =item
25618 #: ../sparsify/virt-sparsify.pod:127
25619 msgid "B<--format> qcow2"
25620 msgstr ""
25621
25622 #. type: =item
25623 #: ../sparsify/virt-sparsify.pod:135
25624 msgid "B<--ignore> filesystem"
25625 msgstr ""
25626
25627 #. type: =item
25628 #: ../sparsify/virt-sparsify.pod:137
25629 msgid "B<--ignore> volgroup"
25630 msgstr ""
25631
25632 #. type: textblock
25633 #: ../sparsify/virt-sparsify.pod:139
25634 msgid ""
25635 "Ignore the named filesystem.  Free space on the filesystem will not be "
25636 "zeroed, but existing blocks of zeroes will still be sparsified."
25637 msgstr ""
25638
25639 #. type: textblock
25640 #: ../sparsify/virt-sparsify.pod:142
25641 msgid ""
25642 "In the second form, this ignores the named volume group.  Use the volume "
25643 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25644 msgstr ""
25645
25646 #. type: textblock
25647 #: ../sparsify/virt-sparsify.pod:157
25648 msgid "This disables progress bars and other unnecessary output."
25649 msgstr ""
25650
25651 #. type: textblock
25652 #: ../sparsify/virt-sparsify.pod:179
25653 msgid ""
25654 "The I<--machine-readable> option can be used to make the output more machine "
25655 "friendly, which is useful when calling virt-sparsify from other programs, "
25656 "GUIs etc."
25657 msgstr ""
25658
25659 #. type: textblock
25660 #: ../sparsify/virt-sparsify.pod:185
25661 msgid ""
25662 "Firstly use the option on its own to query the capabilities of the virt-"
25663 "sparsify binary.  Typical output looks like this:"
25664 msgstr ""
25665
25666 #. type: verbatim
25667 #: ../sparsify/virt-sparsify.pod:188
25668 #, no-wrap
25669 msgid ""
25670 " $ virt-sparsify --machine-readable\n"
25671 " virt-sparsify\n"
25672 " ntfs\n"
25673 " btrfs\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: textblock
25678 #: ../sparsify/virt-sparsify.pod:218
25679 msgid ""
25680 "The calling program should treat messages sent to stderr as error messages.  "
25681 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25682 "fatal error."
25683 msgstr ""
25684
25685 #. type: textblock
25686 #: ../sparsify/virt-sparsify.pod:224
25687 msgid ""
25688 "All versions of virt-sparsify have supported the I<--machine-readable> "
25689 "option."
25690 msgstr ""
25691
25692 #. type: textblock
25693 #: ../sparsify/virt-sparsify.pod:238
25694 msgid ""
25695 "Location of the temporary directory used for the potentially large temporary "
25696 "overlay file."
25697 msgstr ""
25698
25699 #. type: textblock
25700 #: ../sparsify/virt-sparsify.pod:241
25701 msgid ""
25702 "You should ensure there is enough free space in the worst case for a full "
25703 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25704 "to another directory that has enough space."
25705 msgstr ""
25706
25707 #. type: textblock
25708 #: ../sparsify/virt-sparsify.pod:245
25709 msgid "This defaults to C</tmp>."
25710 msgstr ""
25711
25712 #. type: textblock
25713 #: ../sparsify/virt-sparsify.pod:249
25714 msgid ""
25715 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25716 msgstr ""
25717
25718 #. type: textblock
25719 #: ../sparsify/virt-sparsify.pod:253
25720 msgid ""
25721 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25722 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25723 "(1)>, L<http://libguestfs.org/>."
25724 msgstr ""
25725
25726 #. type: =head2
25727 #: ../src/guestfs-actions.pod:1
25728 msgid "guestfs_add_cdrom"
25729 msgstr ""
25730
25731 #. type: verbatim
25732 #: ../src/guestfs-actions.pod:3
25733 #, no-wrap
25734 msgid ""
25735 " int\n"
25736 " guestfs_add_cdrom (guestfs_h *g,\n"
25737 "                    const char *filename);\n"
25738 "\n"
25739 msgstr ""
25740
25741 #. type: textblock
25742 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25743 #: ../src/guestfs-actions.pod:323
25744 msgid ""
25745 "I<This function is deprecated.> In new code, use the L</"
25746 "guestfs_add_drive_opts> call instead."
25747 msgstr ""
25748
25749 #. type: textblock
25750 #: ../src/guestfs-actions.pod:24
25751 msgid ""
25752 "This call checks for the existence of C<filename>.  This stops you from "
25753 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25754 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25755 "instead."
25756 msgstr ""
25757
25758 #. type: textblock
25759 #: ../src/guestfs-actions.pod:31
25760 msgid ""
25761 "If you just want to add an ISO file (often you use this as an efficient way "
25762 "to transfer large files into the guest), then you should probably use "
25763 "C<guestfs_add_drive_ro> instead."
25764 msgstr ""
25765
25766 #. type: textblock
25767 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25768 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25769 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25770 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25771 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25772 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25773 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25774 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25775 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25776 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25777 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25778 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25779 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25780 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25781 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25782 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25783 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25784 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25785 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25786 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25787 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25788 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25789 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25790 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25791 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25792 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25793 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4328
25794 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4355
25795 #: ../src/guestfs-actions.pod:4369 ../src/guestfs-actions.pod:4384
25796 #: ../src/guestfs-actions.pod:4420 ../src/guestfs-actions.pod:4492
25797 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4529
25798 #: ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4569
25799 #: ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4623
25800 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4677
25801 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4722
25802 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4751
25803 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4783
25804 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:5014
25805 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5047
25806 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5116
25807 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5150
25808 #: ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5178
25809 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5210
25810 #: ../src/guestfs-actions.pod:5237 ../src/guestfs-actions.pod:5300
25811 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5404
25812 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
25813 #: ../src/guestfs-actions.pod:5454 ../src/guestfs-actions.pod:5471
25814 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5499
25815 #: ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:5546
25816 #: ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:5611
25817 #: ../src/guestfs-actions.pod:5631 ../src/guestfs-actions.pod:5645
25818 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5711
25819 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5811
25820 #: ../src/guestfs-actions.pod:5854 ../src/guestfs-actions.pod:5882
25821 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5917
25822 #: ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6111
25823 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6151
25824 #: ../src/guestfs-actions.pod:6203 ../src/guestfs-actions.pod:6269
25825 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6299
25826 #: ../src/guestfs-actions.pod:6313 ../src/guestfs-actions.pod:6602
25827 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6640
25828 #: ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6666
25829 #: ../src/guestfs-actions.pod:6680 ../src/guestfs-actions.pod:6692
25830 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6722
25831 #: ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6759
25832 #: ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6808
25833 #: ../src/guestfs-actions.pod:6826 ../src/guestfs-actions.pod:6849
25834 #: ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6886
25835 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6926
25836 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6962
25837 #: ../src/guestfs-actions.pod:6990 ../src/guestfs-actions.pod:7014
25838 #: ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7049
25839 #: ../src/guestfs-actions.pod:7073 ../src/guestfs-actions.pod:7092
25840 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7126
25841 #: ../src/guestfs-actions.pod:7170 ../src/guestfs-actions.pod:7197
25842 #: ../src/guestfs-actions.pod:7227 ../src/guestfs-actions.pod:7339
25843 #: ../src/guestfs-actions.pod:7460 ../src/guestfs-actions.pod:7472
25844 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7498
25845 #: ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7533
25846 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7559
25847 #: ../src/guestfs-actions.pod:7574 ../src/guestfs-actions.pod:7633
25848 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7666
25849 #: ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7699
25850 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7732
25851 #: ../src/guestfs-actions.pod:7832 ../src/guestfs-actions.pod:7888
25852 #: ../src/guestfs-actions.pod:7902 ../src/guestfs-actions.pod:7943
25853 #: ../src/guestfs-actions.pod:7956 ../src/guestfs-actions.pod:7974
25854 #: ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8044
25855 #: ../src/guestfs-actions.pod:8160 ../src/guestfs-actions.pod:8175
25856 #: ../src/guestfs-actions.pod:8189 ../src/guestfs-actions.pod:8244
25857 #: ../src/guestfs-actions.pod:8257 ../src/guestfs-actions.pod:8302
25858 #: ../src/guestfs-actions.pod:8342 ../src/guestfs-actions.pod:8398
25859 #: ../src/guestfs-actions.pod:8418 ../src/guestfs-actions.pod:8451
25860 #: ../src/guestfs-actions.pod:8515 ../src/guestfs-actions.pod:8538
25861 #: ../src/guestfs-actions.pod:8564
25862 msgid "This function returns 0 on success or -1 on error."
25863 msgstr ""
25864
25865 #. type: textblock
25866 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25867 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25868 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25869 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25870 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:6828
25871 #: ../src/guestfs-actions.pod:6945 ../src/guestfs-actions.pod:7094
25872 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7701
25873 #: ../src/guestfs-actions.pod:8344
25874 msgid "(Added in 0.3)"
25875 msgstr ""
25876
25877 #. type: =head2
25878 #: ../src/guestfs-actions.pod:41
25879 msgid "guestfs_add_domain"
25880 msgstr ""
25881
25882 #. type: verbatim
25883 #: ../src/guestfs-actions.pod:43
25884 #, no-wrap
25885 msgid ""
25886 " int\n"
25887 " guestfs_add_domain (guestfs_h *g,\n"
25888 "                     const char *dom,\n"
25889 "                     ...);\n"
25890 "\n"
25891 msgstr ""
25892
25893 #. type: textblock
25894 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25895 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25896 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25897 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25898 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25899 #: ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:5249
25900 #: ../src/guestfs-actions.pod:5558 ../src/guestfs-actions.pod:5775
25901 #: ../src/guestfs-actions.pod:7743
25902 msgid ""
25903 "You may supply a list of optional arguments to this call.  Use zero or more "
25904 "of the following pairs of parameters, and terminate the list with C<-1> on "
25905 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25906 msgstr ""
25907
25908 #. type: verbatim
25909 #: ../src/guestfs-actions.pod:53
25910 #, no-wrap
25911 msgid ""
25912 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25913 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25914 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25915 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25916 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25917 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25918 "\n"
25919 msgstr ""
25920
25921 #. type: textblock
25922 #: ../src/guestfs-actions.pod:60
25923 msgid ""
25924 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25925 "It works by connecting to libvirt, requesting the domain and domain XML from "
25926 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25927 "one."
25928 msgstr ""
25929
25930 #. type: textblock
25931 #: ../src/guestfs-actions.pod:141
25932 msgid ""
25933 "The other optional parameters are passed directly through to "
25934 "C<guestfs_add_drive_opts>."
25935 msgstr ""
25936
25937 #. type: textblock
25938 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25939 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25940 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25941 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25942 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25943 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25944 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25945 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25946 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25947 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5951
25948 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6383
25949 #: ../src/guestfs-actions.pod:6409 ../src/guestfs-actions.pod:7929
25950 #: ../src/guestfs-actions.pod:8355 ../src/guestfs-actions.pod:8368
25951 #: ../src/guestfs-actions.pod:8381
25952 msgid "On error this function returns -1."
25953 msgstr ""
25954
25955 #. type: textblock
25956 #: ../src/guestfs-actions.pod:146
25957 msgid "(Added in 1.7.4)"
25958 msgstr ""
25959
25960 #. type: =head2
25961 #: ../src/guestfs-actions.pod:148
25962 msgid "guestfs_add_domain_va"
25963 msgstr ""
25964
25965 #. type: verbatim
25966 #: ../src/guestfs-actions.pod:150
25967 #, no-wrap
25968 msgid ""
25969 " int\n"
25970 " guestfs_add_domain_va (guestfs_h *g,\n"
25971 "                        const char *dom,\n"
25972 "                        va_list args);\n"
25973 "\n"
25974 msgstr ""
25975
25976 #. type: textblock
25977 #: ../src/guestfs-actions.pod:155
25978 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25983 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25984 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25985 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25986 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25987 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25988 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25989 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25990 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25991 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25992 #: ../src/guestfs-actions.pod:4953 ../src/guestfs-actions.pod:4965
25993 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5326
25994 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5598
25995 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:5835
25996 #: ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7854
25997 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25998 msgstr ""
25999
26000 #. type: =head2
26001 #: ../src/guestfs-actions.pod:159
26002 msgid "guestfs_add_domain_argv"
26003 msgstr ""
26004
26005 #. type: verbatim
26006 #: ../src/guestfs-actions.pod:161
26007 #, no-wrap
26008 msgid ""
26009 " int\n"
26010 " guestfs_add_domain_argv (guestfs_h *g,\n"
26011 "                          const char *dom,\n"
26012 "                          const struct guestfs_add_domain_argv *optargs);\n"
26013 "\n"
26014 msgstr ""
26015
26016 #. type: textblock
26017 #: ../src/guestfs-actions.pod:166
26018 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26019 msgstr ""
26020
26021 #. type: =head2
26022 #: ../src/guestfs-actions.pod:170
26023 msgid "guestfs_add_drive"
26024 msgstr ""
26025
26026 #. type: verbatim
26027 #: ../src/guestfs-actions.pod:172
26028 #, no-wrap
26029 msgid ""
26030 " int\n"
26031 " guestfs_add_drive (guestfs_h *g,\n"
26032 "                    const char *filename);\n"
26033 "\n"
26034 msgstr ""
26035
26036 #. type: textblock
26037 #: ../src/guestfs-actions.pod:176
26038 msgid ""
26039 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26040 "optional parameters, so the disk is added writable, with the format being "
26041 "detected automatically."
26042 msgstr ""
26043
26044 #. type: textblock
26045 #: ../src/guestfs-actions.pod:180
26046 msgid ""
26047 "Automatic detection of the format opens you up to a potential security hole "
26048 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26049 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26050 "you should think about replacing calls to this function with calls to "
26051 "C<guestfs_add_drive_opts>, and specifying the format."
26052 msgstr ""
26053
26054 #. type: =head2
26055 #: ../src/guestfs-actions.pod:191
26056 msgid "guestfs_add_drive_opts"
26057 msgstr ""
26058
26059 #. type: verbatim
26060 #: ../src/guestfs-actions.pod:193
26061 #, no-wrap
26062 msgid ""
26063 " int\n"
26064 " guestfs_add_drive_opts (guestfs_h *g,\n"
26065 "                         const char *filename,\n"
26066 "                         ...);\n"
26067 "\n"
26068 msgstr ""
26069
26070 #. type: verbatim
26071 #: ../src/guestfs-actions.pod:203
26072 #, no-wrap
26073 msgid ""
26074 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26075 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26076 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26077 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26078 "\n"
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../src/guestfs-actions.pod:233
26083 msgid ""
26084 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
26085 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
26086 "Possible formats include C<raw> and C<qcow2>."
26087 msgstr ""
26088
26089 #. type: textblock
26090 #: ../src/guestfs-actions.pod:244
26091 msgid ""
26092 "This rarely-used option lets you emulate the behaviour of the deprecated "
26093 "C<guestfs_add_drive_with_if> call (q.v.)"
26094 msgstr ""
26095
26096 #. type: textblock
26097 #: ../src/guestfs-actions.pod:256
26098 msgid "(Added in 1.5.23)"
26099 msgstr ""
26100
26101 #. type: =head2
26102 #: ../src/guestfs-actions.pod:258
26103 msgid "guestfs_add_drive_opts_va"
26104 msgstr ""
26105
26106 #. type: verbatim
26107 #: ../src/guestfs-actions.pod:260
26108 #, no-wrap
26109 msgid ""
26110 " int\n"
26111 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
26112 "                            const char *filename,\n"
26113 "                            va_list args);\n"
26114 "\n"
26115 msgstr ""
26116
26117 #. type: textblock
26118 #: ../src/guestfs-actions.pod:265
26119 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
26120 msgstr ""
26121
26122 #. type: =head2
26123 #: ../src/guestfs-actions.pod:269
26124 msgid "guestfs_add_drive_opts_argv"
26125 msgstr ""
26126
26127 #. type: verbatim
26128 #: ../src/guestfs-actions.pod:271
26129 #, no-wrap
26130 msgid ""
26131 " int\n"
26132 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
26133 "                              const char *filename,\n"
26134 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
26135 "\n"
26136 msgstr ""
26137
26138 #. type: textblock
26139 #: ../src/guestfs-actions.pod:276
26140 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
26141 msgstr ""
26142
26143 #. type: =head2
26144 #: ../src/guestfs-actions.pod:280
26145 msgid "guestfs_add_drive_ro"
26146 msgstr ""
26147
26148 #. type: verbatim
26149 #: ../src/guestfs-actions.pod:282
26150 #, no-wrap
26151 msgid ""
26152 " int\n"
26153 " guestfs_add_drive_ro (guestfs_h *g,\n"
26154 "                       const char *filename);\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: textblock
26159 #: ../src/guestfs-actions.pod:286
26160 msgid ""
26161 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
26162 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
26163 "disk is added read-only, with the format being detected automatically."
26164 msgstr ""
26165
26166 #. type: textblock
26167 #: ../src/guestfs-actions.pod:293
26168 msgid "(Added in 1.0.38)"
26169 msgstr ""
26170
26171 #. type: =head2
26172 #: ../src/guestfs-actions.pod:295
26173 msgid "guestfs_add_drive_ro_with_if"
26174 msgstr ""
26175
26176 #. type: verbatim
26177 #: ../src/guestfs-actions.pod:297
26178 #, no-wrap
26179 msgid ""
26180 " int\n"
26181 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
26182 "                               const char *filename,\n"
26183 "                               const char *iface);\n"
26184 "\n"
26185 msgstr ""
26186
26187 #. type: textblock
26188 #: ../src/guestfs-actions.pod:309
26189 msgid ""
26190 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
26191 "QEMU interface emulation to use at run time."
26192 msgstr ""
26193
26194 #. type: textblock
26195 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
26196 #: ../src/guestfs-actions.pod:2881
26197 msgid "(Added in 1.0.84)"
26198 msgstr ""
26199
26200 #. type: =head2
26201 #: ../src/guestfs-actions.pod:316
26202 msgid "guestfs_add_drive_with_if"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../src/guestfs-actions.pod:318
26207 #, no-wrap
26208 msgid ""
26209 " int\n"
26210 " guestfs_add_drive_with_if (guestfs_h *g,\n"
26211 "                            const char *filename,\n"
26212 "                            const char *iface);\n"
26213 "\n"
26214 msgstr ""
26215
26216 #. type: textblock
26217 #: ../src/guestfs-actions.pod:330
26218 msgid ""
26219 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
26220 "QEMU interface emulation to use at run time."
26221 msgstr ""
26222
26223 #. type: =head2
26224 #: ../src/guestfs-actions.pod:337
26225 msgid "guestfs_aug_clear"
26226 msgstr ""
26227
26228 #. type: verbatim
26229 #: ../src/guestfs-actions.pod:339
26230 #, no-wrap
26231 msgid ""
26232 " int\n"
26233 " guestfs_aug_clear (guestfs_h *g,\n"
26234 "                    const char *augpath);\n"
26235 "\n"
26236 msgstr ""
26237
26238 #. type: textblock
26239 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
26240 msgid "(Added in 1.3.4)"
26241 msgstr ""
26242
26243 #. type: =head2
26244 #: ../src/guestfs-actions.pod:350
26245 msgid "guestfs_aug_close"
26246 msgstr ""
26247
26248 #. type: verbatim
26249 #: ../src/guestfs-actions.pod:352
26250 #, no-wrap
26251 msgid ""
26252 " int\n"
26253 " guestfs_aug_close (guestfs_h *g);\n"
26254 "\n"
26255 msgstr ""
26256
26257 #. type: textblock
26258 #: ../src/guestfs-actions.pod:355
26259 msgid ""
26260 "Close the current Augeas handle and free up any resources used by it.  After "
26261 "calling this, you have to call C<guestfs_aug_init> again before you can use "
26262 "any other Augeas functions."
26263 msgstr ""
26264
26265 #. type: textblock
26266 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
26267 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
26268 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
26269 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
26270 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
26271 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
26272 #: ../src/guestfs-actions.pod:6460
26273 msgid "(Added in 0.7)"
26274 msgstr ""
26275
26276 #. type: =head2
26277 #: ../src/guestfs-actions.pod:364
26278 msgid "guestfs_aug_defnode"
26279 msgstr ""
26280
26281 #. type: verbatim
26282 #: ../src/guestfs-actions.pod:366
26283 #, no-wrap
26284 msgid ""
26285 " struct guestfs_int_bool *\n"
26286 " guestfs_aug_defnode (guestfs_h *g,\n"
26287 "                      const char *name,\n"
26288 "                      const char *expr,\n"
26289 "                      const char *val);\n"
26290 "\n"
26291 msgstr ""
26292
26293 #. type: textblock
26294 #: ../src/guestfs-actions.pod:375
26295 msgid ""
26296 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
26297 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
26298 "containing that single node."
26299 msgstr ""
26300
26301 #. type: textblock
26302 #: ../src/guestfs-actions.pod:383
26303 msgid ""
26304 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
26305 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
26306 msgstr ""
26307
26308 #. type: =head2
26309 #: ../src/guestfs-actions.pod:389
26310 msgid "guestfs_aug_defvar"
26311 msgstr ""
26312
26313 #. type: verbatim
26314 #: ../src/guestfs-actions.pod:391
26315 #, no-wrap
26316 msgid ""
26317 " int\n"
26318 " guestfs_aug_defvar (guestfs_h *g,\n"
26319 "                     const char *name,\n"
26320 "                     const char *expr);\n"
26321 "\n"
26322 msgstr ""
26323
26324 #. type: =head2
26325 #: ../src/guestfs-actions.pod:407
26326 msgid "guestfs_aug_get"
26327 msgstr ""
26328
26329 #. type: verbatim
26330 #: ../src/guestfs-actions.pod:409
26331 #, no-wrap
26332 msgid ""
26333 " char *\n"
26334 " guestfs_aug_get (guestfs_h *g,\n"
26335 "                  const char *augpath);\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
26341 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
26342 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
26343 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
26344 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
26345 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
26346 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
26347 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
26348 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
26349 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
26350 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
26351 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
26352 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
26353 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
26354 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
26355 #: ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4661
26356 #: ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:5076
26357 #: ../src/guestfs-actions.pod:5969 ../src/guestfs-actions.pod:6170
26358 #: ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6536
26359 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:7245
26360 #: ../src/guestfs-actions.pod:7261 ../src/guestfs-actions.pod:7285
26361 #: ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:8103
26362 #: ../src/guestfs-actions.pod:8122 ../src/guestfs-actions.pod:8140
26363 #: ../src/guestfs-actions.pod:8314 ../src/guestfs-actions.pod:8628
26364 msgid ""
26365 "This function returns a string, or NULL on error.  I<The caller must free "
26366 "the returned string after use>."
26367 msgstr ""
26368
26369 #. type: =head2
26370 #: ../src/guestfs-actions.pod:421
26371 msgid "guestfs_aug_init"
26372 msgstr ""
26373
26374 #. type: verbatim
26375 #: ../src/guestfs-actions.pod:423
26376 #, no-wrap
26377 msgid ""
26378 " int\n"
26379 " guestfs_aug_init (guestfs_h *g,\n"
26380 "                   const char *root,\n"
26381 "                   int flags);\n"
26382 "\n"
26383 msgstr ""
26384
26385 #. type: textblock
26386 #: ../src/guestfs-actions.pod:432
26387 msgid "You must call this before using any other C<guestfs_aug_*> commands."
26388 msgstr ""
26389
26390 #. type: textblock
26391 #: ../src/guestfs-actions.pod:457
26392 msgid ""
26393 "This option is only useful when debugging Augeas lenses.  Use of this option "
26394 "may require additional memory for the libguestfs appliance.  You may need to "
26395 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
26396 "C<guestfs_set_memsize>."
26397 msgstr ""
26398
26399 #. type: textblock
26400 #: ../src/guestfs-actions.pod:472
26401 msgid "Do not load the tree in C<guestfs_aug_init>."
26402 msgstr ""
26403
26404 #. type: textblock
26405 #: ../src/guestfs-actions.pod:476
26406 msgid "To close the handle, you can call C<guestfs_aug_close>."
26407 msgstr ""
26408
26409 #. type: =head2
26410 #: ../src/guestfs-actions.pod:484
26411 msgid "guestfs_aug_insert"
26412 msgstr ""
26413
26414 #. type: verbatim
26415 #: ../src/guestfs-actions.pod:486
26416 #, no-wrap
26417 msgid ""
26418 " int\n"
26419 " guestfs_aug_insert (guestfs_h *g,\n"
26420 "                     const char *augpath,\n"
26421 "                     const char *label,\n"
26422 "                     int before);\n"
26423 "\n"
26424 msgstr ""
26425
26426 #. type: =head2
26427 #: ../src/guestfs-actions.pod:504
26428 msgid "guestfs_aug_load"
26429 msgstr ""
26430
26431 #. type: verbatim
26432 #: ../src/guestfs-actions.pod:506
26433 #, no-wrap
26434 msgid ""
26435 " int\n"
26436 " guestfs_aug_load (guestfs_h *g);\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../src/guestfs-actions.pod:518
26442 msgid "guestfs_aug_ls"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../src/guestfs-actions.pod:520
26447 #, no-wrap
26448 msgid ""
26449 " char **\n"
26450 " guestfs_aug_ls (guestfs_h *g,\n"
26451 "                 const char *augpath);\n"
26452 "\n"
26453 msgstr ""
26454
26455 #. type: textblock
26456 #: ../src/guestfs-actions.pod:524
26457 msgid ""
26458 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26459 "sorting the resulting nodes into alphabetical order."
26460 msgstr ""
26461
26462 #. type: textblock
26463 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26464 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26465 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26466 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26467 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26468 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26469 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26470 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26471 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26472 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26473 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26474 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4296
26475 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4800
26476 #: ../src/guestfs-actions.pod:5695 ../src/guestfs-actions.pod:6330
26477 #: ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6570
26478 #: ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7386
26479 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7587
26480 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:8207
26481 #: ../src/guestfs-actions.pod:8227 ../src/guestfs-actions.pod:8274
26482 #: ../src/guestfs-actions.pod:8468 ../src/guestfs-actions.pod:8487
26483 #: ../src/guestfs-actions.pod:8578 ../src/guestfs-actions.pod:8597
26484 #: ../src/guestfs-actions.pod:8643 ../src/guestfs-actions.pod:8662
26485 msgid ""
26486 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26487 ">), or NULL if there was an error.  I<The caller must free the strings and "
26488 "the array after use>."
26489 msgstr ""
26490
26491 #. type: textblock
26492 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26493 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26494 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26495 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4691
26496 #: ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5049
26497 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5699
26498 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6668
26499 #: ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6694
26500 #: ../src/guestfs-actions.pod:7172 ../src/guestfs-actions.pod:7945
26501 #: ../src/guestfs-actions.pod:7958 ../src/guestfs-actions.pod:8191
26502 #: ../src/guestfs-actions.pod:8456
26503 msgid "(Added in 0.8)"
26504 msgstr ""
26505
26506 #. type: =head2
26507 #: ../src/guestfs-actions.pod:533
26508 msgid "guestfs_aug_match"
26509 msgstr ""
26510
26511 #. type: verbatim
26512 #: ../src/guestfs-actions.pod:535
26513 #, no-wrap
26514 msgid ""
26515 " char **\n"
26516 " guestfs_aug_match (guestfs_h *g,\n"
26517 "                    const char *augpath);\n"
26518 "\n"
26519 msgstr ""
26520
26521 #. type: =head2
26522 #: ../src/guestfs-actions.pod:549
26523 msgid "guestfs_aug_mv"
26524 msgstr ""
26525
26526 #. type: verbatim
26527 #: ../src/guestfs-actions.pod:551
26528 #, no-wrap
26529 msgid ""
26530 " int\n"
26531 " guestfs_aug_mv (guestfs_h *g,\n"
26532 "                 const char *src,\n"
26533 "                 const char *dest);\n"
26534 "\n"
26535 msgstr ""
26536
26537 #. type: =head2
26538 #: ../src/guestfs-actions.pod:563
26539 msgid "guestfs_aug_rm"
26540 msgstr ""
26541
26542 #. type: verbatim
26543 #: ../src/guestfs-actions.pod:565
26544 #, no-wrap
26545 msgid ""
26546 " int\n"
26547 " guestfs_aug_rm (guestfs_h *g,\n"
26548 "                 const char *augpath);\n"
26549 "\n"
26550 msgstr ""
26551
26552 #. type: =head2
26553 #: ../src/guestfs-actions.pod:577
26554 msgid "guestfs_aug_save"
26555 msgstr ""
26556
26557 #. type: verbatim
26558 #: ../src/guestfs-actions.pod:579
26559 #, no-wrap
26560 msgid ""
26561 " int\n"
26562 " guestfs_aug_save (guestfs_h *g);\n"
26563 "\n"
26564 msgstr ""
26565
26566 #. type: textblock
26567 #: ../src/guestfs-actions.pod:584
26568 msgid ""
26569 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26570 "are saved."
26571 msgstr ""
26572
26573 #. type: =head2
26574 #: ../src/guestfs-actions.pod:591
26575 msgid "guestfs_aug_set"
26576 msgstr ""
26577
26578 #. type: verbatim
26579 #: ../src/guestfs-actions.pod:593
26580 #, no-wrap
26581 msgid ""
26582 " int\n"
26583 " guestfs_aug_set (guestfs_h *g,\n"
26584 "                  const char *augpath,\n"
26585 "                  const char *val);\n"
26586 "\n"
26587 msgstr ""
26588
26589 #. type: textblock
26590 #: ../src/guestfs-actions.pod:600
26591 msgid ""
26592 "In the Augeas API, it is possible to clear a node by setting the value to "
26593 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26594 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26595 msgstr ""
26596
26597 #. type: =head2
26598 #: ../src/guestfs-actions.pod:609
26599 msgid "guestfs_available"
26600 msgstr ""
26601
26602 #. type: verbatim
26603 #: ../src/guestfs-actions.pod:611
26604 #, no-wrap
26605 msgid ""
26606 " int\n"
26607 " guestfs_available (guestfs_h *g,\n"
26608 "                    char *const *groups);\n"
26609 "\n"
26610 msgstr ""
26611
26612 #. type: textblock
26613 #: ../src/guestfs-actions.pod:619
26614 msgid ""
26615 "The libguestfs groups, and the functions that those groups correspond to, "
26616 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26617 "runtime by calling C<guestfs_available_all_groups>."
26618 msgstr ""
26619
26620 #. type: textblock
26621 #: ../src/guestfs-actions.pod:643
26622 msgid "You must call C<guestfs_launch> before calling this function."
26623 msgstr ""
26624
26625 #. type: textblock
26626 #: ../src/guestfs-actions.pod:665
26627 msgid ""
26628 "This call was added in version C<1.0.80>.  In previous versions of "
26629 "libguestfs all you could do would be to speculatively execute a command to "
26630 "find out if the daemon implemented it.  See also C<guestfs_version>."
26631 msgstr ""
26632
26633 #. type: textblock
26634 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26635 msgid "(Added in 1.0.80)"
26636 msgstr ""
26637
26638 #. type: =head2
26639 #: ../src/guestfs-actions.pod:676
26640 msgid "guestfs_available_all_groups"
26641 msgstr ""
26642
26643 #. type: verbatim
26644 #: ../src/guestfs-actions.pod:678
26645 #, no-wrap
26646 msgid ""
26647 " char **\n"
26648 " guestfs_available_all_groups (guestfs_h *g);\n"
26649 "\n"
26650 msgstr ""
26651
26652 #. type: textblock
26653 #: ../src/guestfs-actions.pod:681
26654 msgid ""
26655 "This command returns a list of all optional groups that this daemon knows "
26656 "about.  Note this returns both supported and unsupported groups.  To find "
26657 "out which ones the daemon can actually support you have to call "
26658 "C<guestfs_available> on each member of the returned list."
26659 msgstr ""
26660
26661 #. type: textblock
26662 #: ../src/guestfs-actions.pod:687
26663 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26664 msgstr ""
26665
26666 #. type: textblock
26667 #: ../src/guestfs-actions.pod:693
26668 msgid "(Added in 1.3.15)"
26669 msgstr ""
26670
26671 #. type: =head2
26672 #: ../src/guestfs-actions.pod:695
26673 msgid "guestfs_base64_in"
26674 msgstr ""
26675
26676 #. type: verbatim
26677 #: ../src/guestfs-actions.pod:697
26678 #, no-wrap
26679 msgid ""
26680 " int\n"
26681 " guestfs_base64_in (guestfs_h *g,\n"
26682 "                    const char *base64file,\n"
26683 "                    const char *filename);\n"
26684 "\n"
26685 msgstr ""
26686
26687 #. type: textblock
26688 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26689 msgid "(Added in 1.3.5)"
26690 msgstr ""
26691
26692 #. type: =head2
26693 #: ../src/guestfs-actions.pod:709
26694 msgid "guestfs_base64_out"
26695 msgstr ""
26696
26697 #. type: verbatim
26698 #: ../src/guestfs-actions.pod:711
26699 #, no-wrap
26700 msgid ""
26701 " int\n"
26702 " guestfs_base64_out (guestfs_h *g,\n"
26703 "                     const char *filename,\n"
26704 "                     const char *base64file);\n"
26705 "\n"
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../src/guestfs-actions.pod:723
26710 msgid "guestfs_blockdev_flushbufs"
26711 msgstr ""
26712
26713 #. type: verbatim
26714 #: ../src/guestfs-actions.pod:725
26715 #, no-wrap
26716 msgid ""
26717 " int\n"
26718 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26719 "                             const char *device);\n"
26720 "\n"
26721 msgstr ""
26722
26723 #. type: textblock
26724 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26725 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26726 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26727 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26728 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26729 msgid "(Added in 0.9.3)"
26730 msgstr ""
26731
26732 #. type: =head2
26733 #: ../src/guestfs-actions.pod:738
26734 msgid "guestfs_blockdev_getbsz"
26735 msgstr ""
26736
26737 #. type: verbatim
26738 #: ../src/guestfs-actions.pod:740
26739 #, no-wrap
26740 msgid ""
26741 " int\n"
26742 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26743 "                          const char *device);\n"
26744 "\n"
26745 msgstr ""
26746
26747 #. type: =head2
26748 #: ../src/guestfs-actions.pod:755
26749 msgid "guestfs_blockdev_getro"
26750 msgstr ""
26751
26752 #. type: verbatim
26753 #: ../src/guestfs-actions.pod:757
26754 #, no-wrap
26755 msgid ""
26756 " int\n"
26757 " guestfs_blockdev_getro (guestfs_h *g,\n"
26758 "                         const char *device);\n"
26759 "\n"
26760 msgstr ""
26761
26762 #. type: textblock
26763 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26764 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26765 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26766 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26767 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26768 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26769 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26770 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26771 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26772 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26773 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26774 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26775 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26776 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26777 #: ../src/guestfs-actions.pod:5933
26778 msgid "This function returns a C truth value on success or -1 on error."
26779 msgstr ""
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:770
26783 msgid "guestfs_blockdev_getsize64"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:772
26788 #, no-wrap
26789 msgid ""
26790 " int64_t\n"
26791 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26792 "                             const char *device);\n"
26793 "\n"
26794 msgstr ""
26795
26796 #. type: textblock
26797 #: ../src/guestfs-actions.pod:778
26798 msgid "See also C<guestfs_blockdev_getsz>."
26799 msgstr ""
26800
26801 #. type: =head2
26802 #: ../src/guestfs-actions.pod:786
26803 msgid "guestfs_blockdev_getss"
26804 msgstr ""
26805
26806 #. type: verbatim
26807 #: ../src/guestfs-actions.pod:788
26808 #, no-wrap
26809 msgid ""
26810 " int\n"
26811 " guestfs_blockdev_getss (guestfs_h *g,\n"
26812 "                         const char *device);\n"
26813 "\n"
26814 msgstr ""
26815
26816 #. type: textblock
26817 #: ../src/guestfs-actions.pod:795
26818 msgid ""
26819 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26820 "that)."
26821 msgstr ""
26822
26823 #. type: =head2
26824 #: ../src/guestfs-actions.pod:804
26825 msgid "guestfs_blockdev_getsz"
26826 msgstr ""
26827
26828 #. type: verbatim
26829 #: ../src/guestfs-actions.pod:806
26830 #, no-wrap
26831 msgid ""
26832 " int64_t\n"
26833 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26834 "                         const char *device);\n"
26835 "\n"
26836 msgstr ""
26837
26838 #. type: textblock
26839 #: ../src/guestfs-actions.pod:813
26840 msgid ""
26841 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26842 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26843 msgstr ""
26844
26845 #. type: =head2
26846 #: ../src/guestfs-actions.pod:823
26847 msgid "guestfs_blockdev_rereadpt"
26848 msgstr ""
26849
26850 #. type: verbatim
26851 #: ../src/guestfs-actions.pod:825
26852 #, no-wrap
26853 msgid ""
26854 " int\n"
26855 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26856 "                            const char *device);\n"
26857 "\n"
26858 msgstr ""
26859
26860 #. type: =head2
26861 #: ../src/guestfs-actions.pod:837
26862 msgid "guestfs_blockdev_setbsz"
26863 msgstr ""
26864
26865 #. type: verbatim
26866 #: ../src/guestfs-actions.pod:839
26867 #, no-wrap
26868 msgid ""
26869 " int\n"
26870 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26871 "                          const char *device,\n"
26872 "                          int blocksize);\n"
26873 "\n"
26874 msgstr ""
26875
26876 #. type: =head2
26877 #: ../src/guestfs-actions.pod:855
26878 msgid "guestfs_blockdev_setro"
26879 msgstr ""
26880
26881 #. type: verbatim
26882 #: ../src/guestfs-actions.pod:857
26883 #, no-wrap
26884 msgid ""
26885 " int\n"
26886 " guestfs_blockdev_setro (guestfs_h *g,\n"
26887 "                         const char *device);\n"
26888 "\n"
26889 msgstr ""
26890
26891 #. type: =head2
26892 #: ../src/guestfs-actions.pod:869
26893 msgid "guestfs_blockdev_setrw"
26894 msgstr ""
26895
26896 #. type: verbatim
26897 #: ../src/guestfs-actions.pod:871
26898 #, no-wrap
26899 msgid ""
26900 " int\n"
26901 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26902 "                         const char *device);\n"
26903 "\n"
26904 msgstr ""
26905
26906 #. type: =head2
26907 #: ../src/guestfs-actions.pod:883
26908 msgid "guestfs_btrfs_filesystem_resize"
26909 msgstr ""
26910
26911 #. type: verbatim
26912 #: ../src/guestfs-actions.pod:885
26913 #, no-wrap
26914 msgid ""
26915 " int\n"
26916 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26917 "                                  const char *mountpoint,\n"
26918 "                                  ...);\n"
26919 "\n"
26920 msgstr ""
26921
26922 #. type: verbatim
26923 #: ../src/guestfs-actions.pod:895
26924 #, no-wrap
26925 msgid ""
26926 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26927 "\n"
26928 msgstr ""
26929
26930 #. type: textblock
26931 #: ../src/guestfs-actions.pod:918
26932 msgid "(Added in 1.11.17)"
26933 msgstr ""
26934
26935 #. type: =head2
26936 #: ../src/guestfs-actions.pod:920
26937 msgid "guestfs_btrfs_filesystem_resize_va"
26938 msgstr ""
26939
26940 #. type: verbatim
26941 #: ../src/guestfs-actions.pod:922
26942 #, no-wrap
26943 msgid ""
26944 " int\n"
26945 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26946 "                                     const char *mountpoint,\n"
26947 "                                     va_list args);\n"
26948 "\n"
26949 msgstr ""
26950
26951 #. type: textblock
26952 #: ../src/guestfs-actions.pod:927
26953 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26954 msgstr ""
26955
26956 #. type: =head2
26957 #: ../src/guestfs-actions.pod:931
26958 msgid "guestfs_btrfs_filesystem_resize_argv"
26959 msgstr ""
26960
26961 #. type: verbatim
26962 #: ../src/guestfs-actions.pod:933
26963 #, no-wrap
26964 msgid ""
26965 " int\n"
26966 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26967 "                                       const char *mountpoint,\n"
26968 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26969 "\n"
26970 msgstr ""
26971
26972 #. type: textblock
26973 #: ../src/guestfs-actions.pod:938
26974 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26975 msgstr ""
26976
26977 #. type: =head2
26978 #: ../src/guestfs-actions.pod:942
26979 msgid "guestfs_case_sensitive_path"
26980 msgstr ""
26981
26982 #. type: verbatim
26983 #: ../src/guestfs-actions.pod:944
26984 #, no-wrap
26985 msgid ""
26986 " char *\n"
26987 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26988 "                              const char *path);\n"
26989 "\n"
26990 msgstr ""
26991
26992 #. type: textblock
26993 #: ../src/guestfs-actions.pod:970
26994 msgid ""
26995 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26996 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26997 "how the directories were originally created under Windows)."
26998 msgstr ""
26999
27000 #. type: textblock
27001 #: ../src/guestfs-actions.pod:978
27002 msgid "See also C<guestfs_realpath>."
27003 msgstr ""
27004
27005 #. type: textblock
27006 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8125
27007 msgid "(Added in 1.0.75)"
27008 msgstr ""
27009
27010 #. type: =head2
27011 #: ../src/guestfs-actions.pod:985
27012 msgid "guestfs_cat"
27013 msgstr ""
27014
27015 #. type: verbatim
27016 #: ../src/guestfs-actions.pod:987
27017 #, no-wrap
27018 msgid ""
27019 " char *\n"
27020 " guestfs_cat (guestfs_h *g,\n"
27021 "              const char *path);\n"
27022 "\n"
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../src/guestfs-actions.pod:993
27027 msgid ""
27028 "Note that this function cannot correctly handle binary files (specifically, "
27029 "files containing C<\\0> character which is treated as end of string).  For "
27030 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
27031 "functions which have a more complex interface."
27032 msgstr ""
27033
27034 #. type: textblock
27035 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
27036 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4317
27037 #: ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4804
27038 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:6334
27039 #: ../src/guestfs-actions.pod:6348 ../src/guestfs-actions.pod:8278
27040 #: ../src/guestfs-actions.pod:8292
27041 msgid "(Added in 0.4)"
27042 msgstr ""
27043
27044 #. type: =head2
27045 #: ../src/guestfs-actions.pod:1006
27046 msgid "guestfs_checksum"
27047 msgstr ""
27048
27049 #. type: verbatim
27050 #: ../src/guestfs-actions.pod:1008
27051 #, no-wrap
27052 msgid ""
27053 " char *\n"
27054 " guestfs_checksum (guestfs_h *g,\n"
27055 "                   const char *csumtype,\n"
27056 "                   const char *path);\n"
27057 "\n"
27058 msgstr ""
27059
27060 #. type: textblock
27061 #: ../src/guestfs-actions.pod:1054
27062 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
27063 msgstr ""
27064
27065 #. type: textblock
27066 #: ../src/guestfs-actions.pod:1056
27067 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
27068 msgstr ""
27069
27070 #. type: textblock
27071 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
27072 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
27073 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
27074 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7981
27075 msgid "(Added in 1.0.2)"
27076 msgstr ""
27077
27078 #. type: =head2
27079 #: ../src/guestfs-actions.pod:1063
27080 msgid "guestfs_checksum_device"
27081 msgstr ""
27082
27083 #. type: verbatim
27084 #: ../src/guestfs-actions.pod:1065
27085 #, no-wrap
27086 msgid ""
27087 " char *\n"
27088 " guestfs_checksum_device (guestfs_h *g,\n"
27089 "                          const char *csumtype,\n"
27090 "                          const char *device);\n"
27091 "\n"
27092 msgstr ""
27093
27094 #. type: textblock
27095 #: ../src/guestfs-actions.pod:1070
27096 msgid ""
27097 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
27098 "device named C<device>.  For the types of checksums supported see the "
27099 "C<guestfs_checksum> command."
27100 msgstr ""
27101
27102 #. type: textblock
27103 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5766
27104 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5935
27105 #: ../src/guestfs-actions.pod:5953 ../src/guestfs-actions.pod:6135
27106 #: ../src/guestfs-actions.pod:7890 ../src/guestfs-actions.pod:7904
27107 #: ../src/guestfs-actions.pod:8304
27108 msgid "(Added in 1.3.2)"
27109 msgstr ""
27110
27111 #. type: =head2
27112 #: ../src/guestfs-actions.pod:1079
27113 msgid "guestfs_checksums_out"
27114 msgstr ""
27115
27116 #. type: verbatim
27117 #: ../src/guestfs-actions.pod:1081
27118 #, no-wrap
27119 msgid ""
27120 " int\n"
27121 " guestfs_checksums_out (guestfs_h *g,\n"
27122 "                        const char *csumtype,\n"
27123 "                        const char *directory,\n"
27124 "                        const char *sumsfile);\n"
27125 "\n"
27126 msgstr ""
27127
27128 #. type: textblock
27129 #: ../src/guestfs-actions.pod:1101
27130 msgid "(Added in 1.3.7)"
27131 msgstr ""
27132
27133 #. type: =head2
27134 #: ../src/guestfs-actions.pod:1103
27135 msgid "guestfs_chmod"
27136 msgstr ""
27137
27138 #. type: verbatim
27139 #: ../src/guestfs-actions.pod:1105
27140 #, no-wrap
27141 msgid ""
27142 " int\n"
27143 " guestfs_chmod (guestfs_h *g,\n"
27144 "                int mode,\n"
27145 "                const char *path);\n"
27146 "\n"
27147 msgstr ""
27148
27149 #. type: =head2
27150 #: ../src/guestfs-actions.pod:1123
27151 msgid "guestfs_chown"
27152 msgstr ""
27153
27154 #. type: verbatim
27155 #: ../src/guestfs-actions.pod:1125
27156 #, no-wrap
27157 msgid ""
27158 " int\n"
27159 " guestfs_chown (guestfs_h *g,\n"
27160 "                int owner,\n"
27161 "                int group,\n"
27162 "                const char *path);\n"
27163 "\n"
27164 msgstr ""
27165
27166 #. type: =head2
27167 #: ../src/guestfs-actions.pod:1141
27168 msgid "guestfs_command"
27169 msgstr ""
27170
27171 #. type: verbatim
27172 #: ../src/guestfs-actions.pod:1143
27173 #, no-wrap
27174 msgid ""
27175 " char *\n"
27176 " guestfs_command (guestfs_h *g,\n"
27177 "                  char *const *arguments);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:1152
27183 msgid ""
27184 "The single parameter is an argv-style list of arguments.  The first element "
27185 "is the name of the program to run.  Subsequent elements are parameters.  The "
27186 "list must be non-empty (ie. must contain a program name).  Note that the "
27187 "command runs directly, and is I<not> invoked via the shell (see "
27188 "C<guestfs_sh>)."
27189 msgstr ""
27190
27191 #. type: textblock
27192 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
27193 #: ../src/guestfs-actions.pod:2027
27194 msgid "(Added in 0.9.1)"
27195 msgstr ""
27196
27197 #. type: =head2
27198 #: ../src/guestfs-actions.pod:1185
27199 msgid "guestfs_command_lines"
27200 msgstr ""
27201
27202 #. type: verbatim
27203 #: ../src/guestfs-actions.pod:1187
27204 #, no-wrap
27205 msgid ""
27206 " char **\n"
27207 " guestfs_command_lines (guestfs_h *g,\n"
27208 "                        char *const *arguments);\n"
27209 "\n"
27210 msgstr ""
27211
27212 #. type: textblock
27213 #: ../src/guestfs-actions.pod:1191
27214 msgid ""
27215 "This is the same as C<guestfs_command>, but splits the result into a list of "
27216 "lines."
27217 msgstr ""
27218
27219 #. type: textblock
27220 #: ../src/guestfs-actions.pod:1194
27221 msgid "See also: C<guestfs_sh_lines>"
27222 msgstr ""
27223
27224 #. type: =head2
27225 #: ../src/guestfs-actions.pod:1205
27226 msgid "guestfs_compress_device_out"
27227 msgstr ""
27228
27229 #. type: verbatim
27230 #: ../src/guestfs-actions.pod:1207
27231 #, no-wrap
27232 msgid ""
27233 " int\n"
27234 " guestfs_compress_device_out (guestfs_h *g,\n"
27235 "                              const char *ctype,\n"
27236 "                              const char *device,\n"
27237 "                              const char *zdevice,\n"
27238 "                              ...);\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: verbatim
27243 #: ../src/guestfs-actions.pod:1219
27244 #, no-wrap
27245 msgid ""
27246 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
27247 "\n"
27248 msgstr ""
27249
27250 #. type: textblock
27251 #: ../src/guestfs-actions.pod:1224
27252 msgid ""
27253 "The C<ctype> and optional C<level> parameters have the same meaning as in "
27254 "C<guestfs_compress_out>."
27255 msgstr ""
27256
27257 #. type: textblock
27258 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
27259 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7051
27260 msgid "(Added in 1.13.15)"
27261 msgstr ""
27262
27263 #. type: =head2
27264 #: ../src/guestfs-actions.pod:1231
27265 msgid "guestfs_compress_device_out_va"
27266 msgstr ""
27267
27268 #. type: verbatim
27269 #: ../src/guestfs-actions.pod:1233
27270 #, no-wrap
27271 msgid ""
27272 " int\n"
27273 " guestfs_compress_device_out_va (guestfs_h *g,\n"
27274 "                                 const char *ctype,\n"
27275 "                                 const char *device,\n"
27276 "                                 const char *zdevice,\n"
27277 "                                 va_list args);\n"
27278 "\n"
27279 msgstr ""
27280
27281 #. type: textblock
27282 #: ../src/guestfs-actions.pod:1240
27283 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
27284 msgstr ""
27285
27286 #. type: =head2
27287 #: ../src/guestfs-actions.pod:1244
27288 msgid "guestfs_compress_device_out_argv"
27289 msgstr ""
27290
27291 #. type: verbatim
27292 #: ../src/guestfs-actions.pod:1246
27293 #, no-wrap
27294 msgid ""
27295 " int\n"
27296 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
27297 "                                   const char *ctype,\n"
27298 "                                   const char *device,\n"
27299 "                                   const char *zdevice,\n"
27300 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
27301 "\n"
27302 msgstr ""
27303
27304 #. type: textblock
27305 #: ../src/guestfs-actions.pod:1253
27306 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
27307 msgstr ""
27308
27309 #. type: =head2
27310 #: ../src/guestfs-actions.pod:1257
27311 msgid "guestfs_compress_out"
27312 msgstr ""
27313
27314 #. type: verbatim
27315 #: ../src/guestfs-actions.pod:1259
27316 #, no-wrap
27317 msgid ""
27318 " int\n"
27319 " guestfs_compress_out (guestfs_h *g,\n"
27320 "                       const char *ctype,\n"
27321 "                       const char *file,\n"
27322 "                       const char *zfile,\n"
27323 "                       ...);\n"
27324 "\n"
27325 msgstr ""
27326
27327 #. type: verbatim
27328 #: ../src/guestfs-actions.pod:1271
27329 #, no-wrap
27330 msgid ""
27331 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27332 "\n"
27333 msgstr ""
27334
27335 #. type: =head2
27336 #: ../src/guestfs-actions.pod:1290
27337 msgid "guestfs_compress_out_va"
27338 msgstr ""
27339
27340 #. type: verbatim
27341 #: ../src/guestfs-actions.pod:1292
27342 #, no-wrap
27343 msgid ""
27344 " int\n"
27345 " guestfs_compress_out_va (guestfs_h *g,\n"
27346 "                          const char *ctype,\n"
27347 "                          const char *file,\n"
27348 "                          const char *zfile,\n"
27349 "                          va_list args);\n"
27350 "\n"
27351 msgstr ""
27352
27353 #. type: textblock
27354 #: ../src/guestfs-actions.pod:1299
27355 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27356 msgstr ""
27357
27358 #. type: =head2
27359 #: ../src/guestfs-actions.pod:1303
27360 msgid "guestfs_compress_out_argv"
27361 msgstr ""
27362
27363 #. type: verbatim
27364 #: ../src/guestfs-actions.pod:1305
27365 #, no-wrap
27366 msgid ""
27367 " int\n"
27368 " guestfs_compress_out_argv (guestfs_h *g,\n"
27369 "                            const char *ctype,\n"
27370 "                            const char *file,\n"
27371 "                            const char *zfile,\n"
27372 "                            const struct guestfs_compress_out_argv *optargs);\n"
27373 "\n"
27374 msgstr ""
27375
27376 #. type: textblock
27377 #: ../src/guestfs-actions.pod:1312
27378 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27379 msgstr ""
27380
27381 #. type: =head2
27382 #: ../src/guestfs-actions.pod:1316
27383 msgid "guestfs_config"
27384 msgstr ""
27385
27386 #. type: verbatim
27387 #: ../src/guestfs-actions.pod:1318
27388 #, no-wrap
27389 msgid ""
27390 " int\n"
27391 " guestfs_config (guestfs_h *g,\n"
27392 "                 const char *qemuparam,\n"
27393 "                 const char *qemuvalue);\n"
27394 "\n"
27395 msgstr ""
27396
27397 #. type: =head2
27398 #: ../src/guestfs-actions.pod:1336
27399 msgid "guestfs_copy_device_to_device"
27400 msgstr ""
27401
27402 #. type: verbatim
27403 #: ../src/guestfs-actions.pod:1338
27404 #, no-wrap
27405 msgid ""
27406 " int\n"
27407 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27408 "                                const char *src,\n"
27409 "                                const char *dest,\n"
27410 "                                ...);\n"
27411 "\n"
27412 msgstr ""
27413
27414 #. type: verbatim
27415 #: ../src/guestfs-actions.pod:1349
27416 #, no-wrap
27417 msgid ""
27418 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27419 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27420 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27421 "\n"
27422 msgstr ""
27423
27424 #. type: textblock
27425 #: ../src/guestfs-actions.pod:1353
27426 msgid ""
27427 "The four calls C<guestfs_copy_device_to_device>, "
27428 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27429 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27430 "destination (device|file)."
27431 msgstr ""
27432
27433 #. type: textblock
27434 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27435 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27436 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27437 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27438 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27439 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7976
27440 #: ../src/guestfs-actions.pod:8010 ../src/guestfs-actions.pod:8517
27441 #: ../src/guestfs-actions.pod:8540
27442 msgid ""
27443 "This long-running command can generate progress notification messages so "
27444 "that the caller can display a progress bar or indicator.  To receive these "
27445 "messages, the caller must register a progress event callback.  See L<guestfs"
27446 "(3)/GUESTFS_EVENT_PROGRESS>."
27447 msgstr ""
27448
27449 #. type: textblock
27450 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27451 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27452 #: ../src/guestfs-actions.pod:6191
27453 msgid "(Added in 1.13.25)"
27454 msgstr ""
27455
27456 #. type: =head2
27457 #: ../src/guestfs-actions.pod:1381
27458 msgid "guestfs_copy_device_to_device_va"
27459 msgstr ""
27460
27461 #. type: verbatim
27462 #: ../src/guestfs-actions.pod:1383
27463 #, no-wrap
27464 msgid ""
27465 " int\n"
27466 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27467 "                                   const char *src,\n"
27468 "                                   const char *dest,\n"
27469 "                                   va_list args);\n"
27470 "\n"
27471 msgstr ""
27472
27473 #. type: textblock
27474 #: ../src/guestfs-actions.pod:1389
27475 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27476 msgstr ""
27477
27478 #. type: =head2
27479 #: ../src/guestfs-actions.pod:1393
27480 msgid "guestfs_copy_device_to_device_argv"
27481 msgstr ""
27482
27483 #. type: verbatim
27484 #: ../src/guestfs-actions.pod:1395
27485 #, no-wrap
27486 msgid ""
27487 " int\n"
27488 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27489 "                                     const char *src,\n"
27490 "                                     const char *dest,\n"
27491 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27492 "\n"
27493 msgstr ""
27494
27495 #. type: textblock
27496 #: ../src/guestfs-actions.pod:1401
27497 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27498 msgstr ""
27499
27500 #. type: =head2
27501 #: ../src/guestfs-actions.pod:1405
27502 msgid "guestfs_copy_device_to_file"
27503 msgstr ""
27504
27505 #. type: verbatim
27506 #: ../src/guestfs-actions.pod:1407
27507 #, no-wrap
27508 msgid ""
27509 " int\n"
27510 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27511 "                              const char *src,\n"
27512 "                              const char *dest,\n"
27513 "                              ...);\n"
27514 "\n"
27515 msgstr ""
27516
27517 #. type: verbatim
27518 #: ../src/guestfs-actions.pod:1418
27519 #, no-wrap
27520 msgid ""
27521 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27522 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27523 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27524 "\n"
27525 msgstr ""
27526
27527 #. type: textblock
27528 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27529 #: ../src/guestfs-actions.pod:1528
27530 msgid ""
27531 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27532 msgstr ""
27533
27534 #. type: =head2
27535 #: ../src/guestfs-actions.pod:1434
27536 msgid "guestfs_copy_device_to_file_va"
27537 msgstr ""
27538
27539 #. type: verbatim
27540 #: ../src/guestfs-actions.pod:1436
27541 #, no-wrap
27542 msgid ""
27543 " int\n"
27544 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27545 "                                 const char *src,\n"
27546 "                                 const char *dest,\n"
27547 "                                 va_list args);\n"
27548 "\n"
27549 msgstr ""
27550
27551 #. type: textblock
27552 #: ../src/guestfs-actions.pod:1442
27553 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27554 msgstr ""
27555
27556 #. type: =head2
27557 #: ../src/guestfs-actions.pod:1446
27558 msgid "guestfs_copy_device_to_file_argv"
27559 msgstr ""
27560
27561 #. type: verbatim
27562 #: ../src/guestfs-actions.pod:1448
27563 #, no-wrap
27564 msgid ""
27565 " int\n"
27566 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27567 "                                   const char *src,\n"
27568 "                                   const char *dest,\n"
27569 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27570 "\n"
27571 msgstr ""
27572
27573 #. type: textblock
27574 #: ../src/guestfs-actions.pod:1454
27575 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27576 msgstr ""
27577
27578 #. type: =head2
27579 #: ../src/guestfs-actions.pod:1458
27580 msgid "guestfs_copy_file_to_device"
27581 msgstr ""
27582
27583 #. type: verbatim
27584 #: ../src/guestfs-actions.pod:1460
27585 #, no-wrap
27586 msgid ""
27587 " int\n"
27588 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27589 "                              const char *src,\n"
27590 "                              const char *dest,\n"
27591 "                              ...);\n"
27592 "\n"
27593 msgstr ""
27594
27595 #. type: verbatim
27596 #: ../src/guestfs-actions.pod:1471
27597 #, no-wrap
27598 msgid ""
27599 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27600 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27601 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27602 "\n"
27603 msgstr ""
27604
27605 #. type: =head2
27606 #: ../src/guestfs-actions.pod:1487
27607 msgid "guestfs_copy_file_to_device_va"
27608 msgstr ""
27609
27610 #. type: verbatim
27611 #: ../src/guestfs-actions.pod:1489
27612 #, no-wrap
27613 msgid ""
27614 " int\n"
27615 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27616 "                                 const char *src,\n"
27617 "                                 const char *dest,\n"
27618 "                                 va_list args);\n"
27619 "\n"
27620 msgstr ""
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:1495
27624 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27625 msgstr ""
27626
27627 #. type: =head2
27628 #: ../src/guestfs-actions.pod:1499
27629 msgid "guestfs_copy_file_to_device_argv"
27630 msgstr ""
27631
27632 #. type: verbatim
27633 #: ../src/guestfs-actions.pod:1501
27634 #, no-wrap
27635 msgid ""
27636 " int\n"
27637 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27638 "                                   const char *src,\n"
27639 "                                   const char *dest,\n"
27640 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27641 "\n"
27642 msgstr ""
27643
27644 #. type: textblock
27645 #: ../src/guestfs-actions.pod:1507
27646 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27647 msgstr ""
27648
27649 #. type: =head2
27650 #: ../src/guestfs-actions.pod:1511
27651 msgid "guestfs_copy_file_to_file"
27652 msgstr ""
27653
27654 #. type: verbatim
27655 #: ../src/guestfs-actions.pod:1513
27656 #, no-wrap
27657 msgid ""
27658 " int\n"
27659 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27660 "                            const char *src,\n"
27661 "                            const char *dest,\n"
27662 "                            ...);\n"
27663 "\n"
27664 msgstr ""
27665
27666 #. type: verbatim
27667 #: ../src/guestfs-actions.pod:1524
27668 #, no-wrap
27669 msgid ""
27670 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27671 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27672 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27673 "\n"
27674 msgstr ""
27675
27676 #. type: textblock
27677 #: ../src/guestfs-actions.pod:1531
27678 msgid ""
27679 "This is B<not> the function you want for copying files.  This is for copying "
27680 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27681 "C<guestfs_mv> for general file copying and moving functions."
27682 msgstr ""
27683
27684 #. type: =head2
27685 #: ../src/guestfs-actions.pod:1545
27686 msgid "guestfs_copy_file_to_file_va"
27687 msgstr ""
27688
27689 #. type: verbatim
27690 #: ../src/guestfs-actions.pod:1547
27691 #, no-wrap
27692 msgid ""
27693 " int\n"
27694 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27695 "                               const char *src,\n"
27696 "                               const char *dest,\n"
27697 "                               va_list args);\n"
27698 "\n"
27699 msgstr ""
27700
27701 #. type: textblock
27702 #: ../src/guestfs-actions.pod:1553
27703 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27704 msgstr ""
27705
27706 #. type: =head2
27707 #: ../src/guestfs-actions.pod:1557
27708 msgid "guestfs_copy_file_to_file_argv"
27709 msgstr ""
27710
27711 #. type: verbatim
27712 #: ../src/guestfs-actions.pod:1559
27713 #, no-wrap
27714 msgid ""
27715 " int\n"
27716 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27717 "                                 const char *src,\n"
27718 "                                 const char *dest,\n"
27719 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27720 "\n"
27721 msgstr ""
27722
27723 #. type: textblock
27724 #: ../src/guestfs-actions.pod:1565
27725 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27726 msgstr ""
27727
27728 #. type: =head2
27729 #: ../src/guestfs-actions.pod:1569
27730 msgid "guestfs_copy_size"
27731 msgstr ""
27732
27733 #. type: verbatim
27734 #: ../src/guestfs-actions.pod:1571
27735 #, no-wrap
27736 msgid ""
27737 " int\n"
27738 " guestfs_copy_size (guestfs_h *g,\n"
27739 "                    const char *src,\n"
27740 "                    const char *dest,\n"
27741 "                    int64_t size);\n"
27742 "\n"
27743 msgstr ""
27744
27745 #. type: textblock
27746 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27747 msgid ""
27748 "I<This function is deprecated.> In new code, use the L</"
27749 "guestfs_copy_device_to_device> call instead."
27750 msgstr ""
27751
27752 #. type: textblock
27753 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4831
27754 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:8211
27755 #: ../src/guestfs-actions.pod:8231 ../src/guestfs-actions.pod:8317
27756 msgid "(Added in 1.0.87)"
27757 msgstr ""
27758
27759 #. type: =head2
27760 #: ../src/guestfs-actions.pod:1599
27761 msgid "guestfs_cp"
27762 msgstr ""
27763
27764 #. type: verbatim
27765 #: ../src/guestfs-actions.pod:1601
27766 #, no-wrap
27767 msgid ""
27768 " int\n"
27769 " guestfs_cp (guestfs_h *g,\n"
27770 "             const char *src,\n"
27771 "             const char *dest);\n"
27772 "\n"
27773 msgstr ""
27774
27775 #. type: textblock
27776 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27777 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27778 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5713
27779 #: ../src/guestfs-actions.pod:6205
27780 msgid "(Added in 1.0.18)"
27781 msgstr ""
27782
27783 #. type: =head2
27784 #: ../src/guestfs-actions.pod:1613
27785 msgid "guestfs_cp_a"
27786 msgstr ""
27787
27788 #. type: verbatim
27789 #: ../src/guestfs-actions.pod:1615
27790 #, no-wrap
27791 msgid ""
27792 " int\n"
27793 " guestfs_cp_a (guestfs_h *g,\n"
27794 "               const char *src,\n"
27795 "               const char *dest);\n"
27796 "\n"
27797 msgstr ""
27798
27799 #. type: =head2
27800 #: ../src/guestfs-actions.pod:1627
27801 msgid "guestfs_dd"
27802 msgstr ""
27803
27804 #. type: verbatim
27805 #: ../src/guestfs-actions.pod:1629
27806 #, no-wrap
27807 msgid ""
27808 " int\n"
27809 " guestfs_dd (guestfs_h *g,\n"
27810 "             const char *src,\n"
27811 "             const char *dest);\n"
27812 "\n"
27813 msgstr ""
27814
27815 #. type: textblock
27816 #: ../src/guestfs-actions.pod:1646
27817 msgid ""
27818 "If the destination is a device, it must be as large or larger than the "
27819 "source file or device, otherwise the copy will fail.  This command cannot do "
27820 "partial copies (see C<guestfs_copy_device_to_device>)."
27821 msgstr ""
27822
27823 #. type: =head2
27824 #: ../src/guestfs-actions.pod:1655
27825 msgid "guestfs_df"
27826 msgstr ""
27827
27828 #. type: verbatim
27829 #: ../src/guestfs-actions.pod:1657
27830 #, no-wrap
27831 msgid ""
27832 " char *\n"
27833 " guestfs_df (guestfs_h *g);\n"
27834 "\n"
27835 msgstr ""
27836
27837 #. type: textblock
27838 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27839 msgid ""
27840 "This command is mostly useful for interactive sessions.  It is I<not> "
27841 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27842 "from programs."
27843 msgstr ""
27844
27845 #. type: textblock
27846 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27847 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27848 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27849 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5613
27850 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7618
27851 #: ../src/guestfs-actions.pod:8357 ../src/guestfs-actions.pod:8370
27852 #: ../src/guestfs-actions.pod:8383
27853 msgid "(Added in 1.0.54)"
27854 msgstr ""
27855
27856 #. type: =head2
27857 #: ../src/guestfs-actions.pod:1671
27858 msgid "guestfs_df_h"
27859 msgstr ""
27860
27861 #. type: verbatim
27862 #: ../src/guestfs-actions.pod:1673
27863 #, no-wrap
27864 msgid ""
27865 " char *\n"
27866 " guestfs_df_h (guestfs_h *g);\n"
27867 "\n"
27868 msgstr ""
27869
27870 #. type: =head2
27871 #: ../src/guestfs-actions.pod:1688
27872 msgid "guestfs_dmesg"
27873 msgstr ""
27874
27875 #. type: verbatim
27876 #: ../src/guestfs-actions.pod:1690
27877 #, no-wrap
27878 msgid ""
27879 " char *\n"
27880 " guestfs_dmesg (guestfs_h *g);\n"
27881 "\n"
27882 msgstr ""
27883
27884 #. type: textblock
27885 #: ../src/guestfs-actions.pod:1697
27886 msgid ""
27887 "Another way to get the same information is to enable verbose messages with "
27888 "C<guestfs_set_verbose> or by setting the environment variable "
27889 "C<LIBGUESTFS_DEBUG=1> before running the program."
27890 msgstr ""
27891
27892 #. type: =head2
27893 #: ../src/guestfs-actions.pod:1707
27894 msgid "guestfs_download"
27895 msgstr ""
27896
27897 #. type: verbatim
27898 #: ../src/guestfs-actions.pod:1709
27899 #, no-wrap
27900 msgid ""
27901 " int\n"
27902 " guestfs_download (guestfs_h *g,\n"
27903 "                   const char *remotefilename,\n"
27904 "                   const char *filename);\n"
27905 "\n"
27906 msgstr ""
27907
27908 #. type: textblock
27909 #: ../src/guestfs-actions.pod:1719
27910 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27911 msgstr ""
27912
27913 #. type: =head2
27914 #: ../src/guestfs-actions.pod:1730
27915 msgid "guestfs_download_offset"
27916 msgstr ""
27917
27918 #. type: verbatim
27919 #: ../src/guestfs-actions.pod:1732
27920 #, no-wrap
27921 msgid ""
27922 " int\n"
27923 " guestfs_download_offset (guestfs_h *g,\n"
27924 "                          const char *remotefilename,\n"
27925 "                          const char *filename,\n"
27926 "                          int64_t offset,\n"
27927 "                          int64_t size);\n"
27928 "\n"
27929 msgstr ""
27930
27931 #. type: textblock
27932 #: ../src/guestfs-actions.pod:1745
27933 msgid ""
27934 "Note that there is no limit on the amount of data that can be downloaded "
27935 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27936 "full amount unless an error occurs."
27937 msgstr ""
27938
27939 #. type: textblock
27940 #: ../src/guestfs-actions.pod:1750
27941 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27942 msgstr ""
27943
27944 #. type: textblock
27945 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8015
27946 msgid "(Added in 1.5.17)"
27947 msgstr ""
27948
27949 #. type: =head2
27950 #: ../src/guestfs-actions.pod:1761
27951 msgid "guestfs_drop_caches"
27952 msgstr ""
27953
27954 #. type: verbatim
27955 #: ../src/guestfs-actions.pod:1763
27956 #, no-wrap
27957 msgid ""
27958 " int\n"
27959 " guestfs_drop_caches (guestfs_h *g,\n"
27960 "                      int whattodrop);\n"
27961 "\n"
27962 msgstr ""
27963
27964 #. type: =head2
27965 #: ../src/guestfs-actions.pod:1781
27966 msgid "guestfs_du"
27967 msgstr ""
27968
27969 #. type: verbatim
27970 #: ../src/guestfs-actions.pod:1783
27971 #, no-wrap
27972 msgid ""
27973 " int64_t\n"
27974 " guestfs_du (guestfs_h *g,\n"
27975 "             const char *path);\n"
27976 "\n"
27977 msgstr ""
27978
27979 #. type: =head2
27980 #: ../src/guestfs-actions.pod:1806
27981 msgid "guestfs_e2fsck_f"
27982 msgstr ""
27983
27984 #. type: verbatim
27985 #: ../src/guestfs-actions.pod:1808
27986 #, no-wrap
27987 msgid ""
27988 " int\n"
27989 " guestfs_e2fsck_f (guestfs_h *g,\n"
27990 "                   const char *device);\n"
27991 "\n"
27992 msgstr ""
27993
27994 #. type: textblock
27995 #: ../src/guestfs-actions.pod:1816
27996 msgid ""
27997 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27998 "Normally you should use C<guestfs_fsck>."
27999 msgstr ""
28000
28001 #. type: textblock
28002 #: ../src/guestfs-actions.pod:1821
28003 msgid "(Added in 1.0.29)"
28004 msgstr ""
28005
28006 #. type: =head2
28007 #: ../src/guestfs-actions.pod:1823
28008 msgid "guestfs_echo_daemon"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../src/guestfs-actions.pod:1825
28013 #, no-wrap
28014 msgid ""
28015 " char *\n"
28016 " guestfs_echo_daemon (guestfs_h *g,\n"
28017 "                      char *const *words);\n"
28018 "\n"
28019 msgstr ""
28020
28021 #. type: textblock
28022 #: ../src/guestfs-actions.pod:1834
28023 msgid "See also C<guestfs_ping_daemon>."
28024 msgstr ""
28025
28026 #. type: textblock
28027 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
28028 #: ../src/guestfs-actions.pod:7075
28029 msgid "(Added in 1.0.69)"
28030 msgstr ""
28031
28032 #. type: =head2
28033 #: ../src/guestfs-actions.pod:1841
28034 msgid "guestfs_egrep"
28035 msgstr ""
28036
28037 #. type: verbatim
28038 #: ../src/guestfs-actions.pod:1843
28039 #, no-wrap
28040 msgid ""
28041 " char **\n"
28042 " guestfs_egrep (guestfs_h *g,\n"
28043 "                const char *regex,\n"
28044 "                const char *path);\n"
28045 "\n"
28046 msgstr ""
28047
28048 #. type: textblock
28049 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
28050 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
28051 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
28052 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
28053 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
28054 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
28055 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4330
28056 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357
28057 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:5501
28058 #: ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6588
28059 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7474
28060 #: ../src/guestfs-actions.pod:7487 ../src/guestfs-actions.pod:7500
28061 #: ../src/guestfs-actions.pod:7522 ../src/guestfs-actions.pod:7535
28062 #: ../src/guestfs-actions.pod:7548 ../src/guestfs-actions.pod:7561
28063 #: ../src/guestfs-actions.pod:8475 ../src/guestfs-actions.pod:8494
28064 #: ../src/guestfs-actions.pod:8585 ../src/guestfs-actions.pod:8604
28065 #: ../src/guestfs-actions.pod:8650 ../src/guestfs-actions.pod:8669
28066 msgid "(Added in 1.0.66)"
28067 msgstr ""
28068
28069 #. type: =head2
28070 #: ../src/guestfs-actions.pod:1860
28071 msgid "guestfs_egrepi"
28072 msgstr ""
28073
28074 #. type: verbatim
28075 #: ../src/guestfs-actions.pod:1862
28076 #, no-wrap
28077 msgid ""
28078 " char **\n"
28079 " guestfs_egrepi (guestfs_h *g,\n"
28080 "                 const char *regex,\n"
28081 "                 const char *path);\n"
28082 "\n"
28083 msgstr ""
28084
28085 #. type: =head2
28086 #: ../src/guestfs-actions.pod:1879
28087 msgid "guestfs_equal"
28088 msgstr ""
28089
28090 #. type: verbatim
28091 #: ../src/guestfs-actions.pod:1881
28092 #, no-wrap
28093 msgid ""
28094 " int\n"
28095 " guestfs_equal (guestfs_h *g,\n"
28096 "                const char *file1,\n"
28097 "                const char *file2);\n"
28098 "\n"
28099 msgstr ""
28100
28101 #. type: =head2
28102 #: ../src/guestfs-actions.pod:1895
28103 msgid "guestfs_exists"
28104 msgstr ""
28105
28106 #. type: verbatim
28107 #: ../src/guestfs-actions.pod:1897
28108 #, no-wrap
28109 msgid ""
28110 " int\n"
28111 " guestfs_exists (guestfs_h *g,\n"
28112 "                 const char *path);\n"
28113 "\n"
28114 msgstr ""
28115
28116 #. type: textblock
28117 #: ../src/guestfs-actions.pod:1904
28118 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
28119 msgstr ""
28120
28121 #. type: =head2
28122 #: ../src/guestfs-actions.pod:1910
28123 msgid "guestfs_fallocate"
28124 msgstr ""
28125
28126 #. type: verbatim
28127 #: ../src/guestfs-actions.pod:1912
28128 #, no-wrap
28129 msgid ""
28130 " int\n"
28131 " guestfs_fallocate (guestfs_h *g,\n"
28132 "                    const char *path,\n"
28133 "                    int len);\n"
28134 "\n"
28135 msgstr ""
28136
28137 #. type: textblock
28138 #: ../src/guestfs-actions.pod:1917
28139 msgid ""
28140 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
28141 "call instead."
28142 msgstr ""
28143
28144 #. type: =head2
28145 #: ../src/guestfs-actions.pod:1936
28146 msgid "guestfs_fallocate64"
28147 msgstr ""
28148
28149 #. type: verbatim
28150 #: ../src/guestfs-actions.pod:1938
28151 #, no-wrap
28152 msgid ""
28153 " int\n"
28154 " guestfs_fallocate64 (guestfs_h *g,\n"
28155 "                      const char *path,\n"
28156 "                      int64_t len);\n"
28157 "\n"
28158 msgstr ""
28159
28160 #. type: textblock
28161 #: ../src/guestfs-actions.pod:1947
28162 msgid ""
28163 "Note that this call allocates disk blocks for the file.  To create a sparse "
28164 "file use C<guestfs_truncate_size> instead."
28165 msgstr ""
28166
28167 #. type: textblock
28168 #: ../src/guestfs-actions.pod:1950
28169 msgid ""
28170 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
28171 "oversight it only allowed 30 bit lengths to be specified, effectively "
28172 "limiting the maximum size of files created through that call to 1GB."
28173 msgstr ""
28174
28175 #. type: textblock
28176 #: ../src/guestfs-actions.pod:1961
28177 msgid "(Added in 1.3.17)"
28178 msgstr ""
28179
28180 #. type: =head2
28181 #: ../src/guestfs-actions.pod:1963
28182 msgid "guestfs_fgrep"
28183 msgstr ""
28184
28185 #. type: verbatim
28186 #: ../src/guestfs-actions.pod:1965
28187 #, no-wrap
28188 msgid ""
28189 " char **\n"
28190 " guestfs_fgrep (guestfs_h *g,\n"
28191 "                const char *pattern,\n"
28192 "                const char *path);\n"
28193 "\n"
28194 msgstr ""
28195
28196 #. type: =head2
28197 #: ../src/guestfs-actions.pod:1982
28198 msgid "guestfs_fgrepi"
28199 msgstr ""
28200
28201 #. type: verbatim
28202 #: ../src/guestfs-actions.pod:1984
28203 #, no-wrap
28204 msgid ""
28205 " char **\n"
28206 " guestfs_fgrepi (guestfs_h *g,\n"
28207 "                 const char *pattern,\n"
28208 "                 const char *path);\n"
28209 "\n"
28210 msgstr ""
28211
28212 #. type: =head2
28213 #: ../src/guestfs-actions.pod:2001
28214 msgid "guestfs_file"
28215 msgstr ""
28216
28217 #. type: verbatim
28218 #: ../src/guestfs-actions.pod:2003
28219 #, no-wrap
28220 msgid ""
28221 " char *\n"
28222 " guestfs_file (guestfs_h *g,\n"
28223 "               const char *path);\n"
28224 "\n"
28225 msgstr ""
28226
28227 #. type: textblock
28228 #: ../src/guestfs-actions.pod:2021
28229 msgid ""
28230 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
28231 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
28232 msgstr ""
28233
28234 #. type: =head2
28235 #: ../src/guestfs-actions.pod:2029
28236 msgid "guestfs_file_architecture"
28237 msgstr ""
28238
28239 #. type: verbatim
28240 #: ../src/guestfs-actions.pod:2031
28241 #, no-wrap
28242 msgid ""
28243 " char *\n"
28244 " guestfs_file_architecture (guestfs_h *g,\n"
28245 "                            const char *filename);\n"
28246 "\n"
28247 msgstr ""
28248
28249 #. type: textblock
28250 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
28251 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
28252 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
28253 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
28254 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
28255 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
28256 #: ../src/guestfs-actions.pod:4008
28257 msgid "(Added in 1.5.3)"
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:2141
28262 msgid "guestfs_filesize"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:2143
28267 #, no-wrap
28268 msgid ""
28269 " int64_t\n"
28270 " guestfs_filesize (guestfs_h *g,\n"
28271 "                   const char *file);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../src/guestfs-actions.pod:2149
28277 msgid ""
28278 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28279 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28280 "devices, use C<guestfs_blockdev_getsize64>."
28281 msgstr ""
28282
28283 #. type: textblock
28284 #: ../src/guestfs-actions.pod:2155
28285 msgid "(Added in 1.0.82)"
28286 msgstr ""
28287
28288 #. type: =head2
28289 #: ../src/guestfs-actions.pod:2157
28290 msgid "guestfs_fill"
28291 msgstr ""
28292
28293 #. type: verbatim
28294 #: ../src/guestfs-actions.pod:2159
28295 #, no-wrap
28296 msgid ""
28297 " int\n"
28298 " guestfs_fill (guestfs_h *g,\n"
28299 "               int c,\n"
28300 "               int len,\n"
28301 "               const char *path);\n"
28302 "\n"
28303 msgstr ""
28304
28305 #. type: textblock
28306 #: ../src/guestfs-actions.pod:2169
28307 msgid ""
28308 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28309 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28310 "bytes use C<guestfs_fill_pattern>."
28311 msgstr ""
28312
28313 #. type: textblock
28314 #: ../src/guestfs-actions.pod:2181
28315 msgid "(Added in 1.0.79)"
28316 msgstr ""
28317
28318 #. type: =head2
28319 #: ../src/guestfs-actions.pod:2183
28320 msgid "guestfs_fill_pattern"
28321 msgstr ""
28322
28323 #. type: verbatim
28324 #: ../src/guestfs-actions.pod:2185
28325 #, no-wrap
28326 msgid ""
28327 " int\n"
28328 " guestfs_fill_pattern (guestfs_h *g,\n"
28329 "                       const char *pattern,\n"
28330 "                       int len,\n"
28331 "                       const char *path);\n"
28332 "\n"
28333 msgstr ""
28334
28335 #. type: textblock
28336 #: ../src/guestfs-actions.pod:2191
28337 msgid ""
28338 "This function is like C<guestfs_fill> except that it creates a new file of "
28339 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28340 "pattern is truncated if necessary to ensure the length of the file is "
28341 "exactly C<len> bytes."
28342 msgstr ""
28343
28344 #. type: textblock
28345 #: ../src/guestfs-actions.pod:2203
28346 msgid "(Added in 1.3.12)"
28347 msgstr ""
28348
28349 #. type: =head2
28350 #: ../src/guestfs-actions.pod:2205
28351 msgid "guestfs_find"
28352 msgstr ""
28353
28354 #. type: verbatim
28355 #: ../src/guestfs-actions.pod:2207
28356 #, no-wrap
28357 msgid ""
28358 " char **\n"
28359 " guestfs_find (guestfs_h *g,\n"
28360 "               const char *directory);\n"
28361 "\n"
28362 msgstr ""
28363
28364 #. type: textblock
28365 #: ../src/guestfs-actions.pod:2223
28366 msgid ""
28367 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28368 msgstr ""
28369
28370 #. type: textblock
28371 #: ../src/guestfs-actions.pod:2236
28372 msgid "See also C<guestfs_find0>."
28373 msgstr ""
28374
28375 #. type: textblock
28376 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4768
28377 #: ../src/guestfs-actions.pod:6623
28378 msgid "(Added in 1.0.27)"
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../src/guestfs-actions.pod:2247
28383 msgid "guestfs_find0"
28384 msgstr ""
28385
28386 #. type: verbatim
28387 #: ../src/guestfs-actions.pod:2249
28388 #, no-wrap
28389 msgid ""
28390 " int\n"
28391 " guestfs_find0 (guestfs_h *g,\n"
28392 "                const char *directory,\n"
28393 "                const char *files);\n"
28394 "\n"
28395 msgstr ""
28396
28397 #. type: textblock
28398 #: ../src/guestfs-actions.pod:2258
28399 msgid ""
28400 "This command works the same way as C<guestfs_find> with the following "
28401 "exceptions:"
28402 msgstr ""
28403
28404 #. type: textblock
28405 #: ../src/guestfs-actions.pod:2285
28406 msgid "(Added in 1.0.74)"
28407 msgstr ""
28408
28409 #. type: =head2
28410 #: ../src/guestfs-actions.pod:2287
28411 msgid "guestfs_findfs_label"
28412 msgstr ""
28413
28414 #. type: verbatim
28415 #: ../src/guestfs-actions.pod:2289
28416 #, no-wrap
28417 msgid ""
28418 " char *\n"
28419 " guestfs_findfs_label (guestfs_h *g,\n"
28420 "                       const char *label);\n"
28421 "\n"
28422 msgstr ""
28423
28424 #. type: textblock
28425 #: ../src/guestfs-actions.pod:2297
28426 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28427 msgstr ""
28428
28429 #. type: =head2
28430 #: ../src/guestfs-actions.pod:2304
28431 msgid "guestfs_findfs_uuid"
28432 msgstr ""
28433
28434 #. type: verbatim
28435 #: ../src/guestfs-actions.pod:2306
28436 #, no-wrap
28437 msgid ""
28438 " char *\n"
28439 " guestfs_findfs_uuid (guestfs_h *g,\n"
28440 "                      const char *uuid);\n"
28441 "\n"
28442 msgstr ""
28443
28444 #. type: textblock
28445 #: ../src/guestfs-actions.pod:2314
28446 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28447 msgstr ""
28448
28449 #. type: =head2
28450 #: ../src/guestfs-actions.pod:2321
28451 msgid "guestfs_fsck"
28452 msgstr ""
28453
28454 #. type: verbatim
28455 #: ../src/guestfs-actions.pod:2323
28456 #, no-wrap
28457 msgid ""
28458 " int\n"
28459 " guestfs_fsck (guestfs_h *g,\n"
28460 "               const char *fstype,\n"
28461 "               const char *device);\n"
28462 "\n"
28463 msgstr ""
28464
28465 #. type: textblock
28466 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8522
28467 msgid "(Added in 1.0.16)"
28468 msgstr ""
28469
28470 #. type: =head2
28471 #: ../src/guestfs-actions.pod:2360
28472 msgid "guestfs_get_append"
28473 msgstr ""
28474
28475 #. type: verbatim
28476 #: ../src/guestfs-actions.pod:2362
28477 #, no-wrap
28478 msgid ""
28479 " const char *\n"
28480 " guestfs_get_append (guestfs_h *g);\n"
28481 "\n"
28482 msgstr ""
28483
28484 #. type: textblock
28485 #: ../src/guestfs-actions.pod:2370
28486 msgid ""
28487 "This function returns a string which may be NULL.  There is no way to return "
28488 "an error from this function.  The string is owned by the guest handle and "
28489 "must I<not> be freed."
28490 msgstr ""
28491
28492 #. type: textblock
28493 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6301
28494 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:7229
28495 #: ../src/guestfs-actions.pod:7248 ../src/guestfs-actions.pod:7264
28496 #: ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:8162
28497 #: ../src/guestfs-actions.pod:8177 ../src/guestfs-actions.pod:8566
28498 msgid "(Added in 1.0.26)"
28499 msgstr ""
28500
28501 #. type: =head2
28502 #: ../src/guestfs-actions.pod:2376
28503 msgid "guestfs_get_attach_method"
28504 msgstr ""
28505
28506 #. type: verbatim
28507 #: ../src/guestfs-actions.pod:2378
28508 #, no-wrap
28509 msgid ""
28510 " char *\n"
28511 " guestfs_get_attach_method (guestfs_h *g);\n"
28512 "\n"
28513 msgstr ""
28514
28515 #. type: textblock
28516 #: ../src/guestfs-actions.pod:2381
28517 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28518 msgstr ""
28519
28520 #. type: textblock
28521 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6810
28522 msgid "(Added in 1.9.8)"
28523 msgstr ""
28524
28525 #. type: =head2
28526 #: ../src/guestfs-actions.pod:2388
28527 msgid "guestfs_get_autosync"
28528 msgstr ""
28529
28530 #. type: verbatim
28531 #: ../src/guestfs-actions.pod:2390
28532 #, no-wrap
28533 msgid ""
28534 " int\n"
28535 " guestfs_get_autosync (guestfs_h *g);\n"
28536 "\n"
28537 msgstr ""
28538
28539 #. type: =head2
28540 #: ../src/guestfs-actions.pod:2399
28541 msgid "guestfs_get_direct"
28542 msgstr ""
28543
28544 #. type: verbatim
28545 #: ../src/guestfs-actions.pod:2401
28546 #, no-wrap
28547 msgid ""
28548 " int\n"
28549 " guestfs_get_direct (guestfs_h *g);\n"
28550 "\n"
28551 msgstr ""
28552
28553 #. type: textblock
28554 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6851
28555 msgid "(Added in 1.0.72)"
28556 msgstr ""
28557
28558 #. type: =head2
28559 #: ../src/guestfs-actions.pod:2410
28560 msgid "guestfs_get_e2label"
28561 msgstr ""
28562
28563 #. type: verbatim
28564 #: ../src/guestfs-actions.pod:2412
28565 #, no-wrap
28566 msgid ""
28567 " char *\n"
28568 " guestfs_get_e2label (guestfs_h *g,\n"
28569 "                      const char *device);\n"
28570 "\n"
28571 msgstr ""
28572
28573 #. type: textblock
28574 #: ../src/guestfs-actions.pod:2416
28575 msgid ""
28576 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28577 "call instead."
28578 msgstr ""
28579
28580 #. type: textblock
28581 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28582 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
28583 msgid "(Added in 1.0.15)"
28584 msgstr ""
28585
28586 #. type: =head2
28587 #: ../src/guestfs-actions.pod:2431
28588 msgid "guestfs_get_e2uuid"
28589 msgstr ""
28590
28591 #. type: verbatim
28592 #: ../src/guestfs-actions.pod:2433
28593 #, no-wrap
28594 msgid ""
28595 " char *\n"
28596 " guestfs_get_e2uuid (guestfs_h *g,\n"
28597 "                     const char *device);\n"
28598 "\n"
28599 msgstr ""
28600
28601 #. type: textblock
28602 #: ../src/guestfs-actions.pod:2437
28603 msgid ""
28604 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28605 "call instead."
28606 msgstr ""
28607
28608 #. type: =head2
28609 #: ../src/guestfs-actions.pod:2452
28610 msgid "guestfs_get_memsize"
28611 msgstr ""
28612
28613 #. type: verbatim
28614 #: ../src/guestfs-actions.pod:2454
28615 #, no-wrap
28616 msgid ""
28617 " int\n"
28618 " guestfs_get_memsize (guestfs_h *g);\n"
28619 "\n"
28620 msgstr ""
28621
28622 #. type: textblock
28623 #: ../src/guestfs-actions.pod:2460
28624 msgid ""
28625 "If C<guestfs_set_memsize> was not called on this handle, and if "
28626 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28627 "value for memsize."
28628 msgstr ""
28629
28630 #. type: textblock
28631 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5197
28632 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5425
28633 #: ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5456
28634 #: ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5486
28635 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6909
28636 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7931
28637 msgid "(Added in 1.0.55)"
28638 msgstr ""
28639
28640 #. type: =head2
28641 #: ../src/guestfs-actions.pod:2471
28642 msgid "guestfs_get_network"
28643 msgstr ""
28644
28645 #. type: verbatim
28646 #: ../src/guestfs-actions.pod:2473
28647 #, no-wrap
28648 msgid ""
28649 " int\n"
28650 " guestfs_get_network (guestfs_h *g);\n"
28651 "\n"
28652 msgstr ""
28653
28654 #. type: textblock
28655 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6928
28656 msgid "(Added in 1.5.4)"
28657 msgstr ""
28658
28659 #. type: =head2
28660 #: ../src/guestfs-actions.pod:2482
28661 msgid "guestfs_get_path"
28662 msgstr ""
28663
28664 #. type: verbatim
28665 #: ../src/guestfs-actions.pod:2484
28666 #, no-wrap
28667 msgid ""
28668 " const char *\n"
28669 " guestfs_get_path (guestfs_h *g);\n"
28670 "\n"
28671 msgstr ""
28672
28673 #. type: textblock
28674 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28675 msgid ""
28676 "This function returns a string, or NULL on error.  The string is owned by "
28677 "the guest handle and must I<not> be freed."
28678 msgstr ""
28679
28680 #. type: =head2
28681 #: ../src/guestfs-actions.pod:2497
28682 msgid "guestfs_get_pgroup"
28683 msgstr ""
28684
28685 #. type: verbatim
28686 #: ../src/guestfs-actions.pod:2499
28687 #, no-wrap
28688 msgid ""
28689 " int\n"
28690 " guestfs_get_pgroup (guestfs_h *g);\n"
28691 "\n"
28692 msgstr ""
28693
28694 #. type: textblock
28695 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6964
28696 #: ../src/guestfs-actions.pod:8423
28697 msgid "(Added in 1.11.18)"
28698 msgstr ""
28699
28700 #. type: =head2
28701 #: ../src/guestfs-actions.pod:2508
28702 msgid "guestfs_get_pid"
28703 msgstr ""
28704
28705 #. type: verbatim
28706 #: ../src/guestfs-actions.pod:2510
28707 #, no-wrap
28708 msgid ""
28709 " int\n"
28710 " guestfs_get_pid (guestfs_h *g);\n"
28711 "\n"
28712 msgstr ""
28713
28714 #. type: textblock
28715 #: ../src/guestfs-actions.pod:2520
28716 msgid "(Added in 1.0.56)"
28717 msgstr ""
28718
28719 #. type: =head2
28720 #: ../src/guestfs-actions.pod:2522
28721 msgid "guestfs_get_qemu"
28722 msgstr ""
28723
28724 #. type: verbatim
28725 #: ../src/guestfs-actions.pod:2524
28726 #, no-wrap
28727 msgid ""
28728 " const char *\n"
28729 " guestfs_get_qemu (guestfs_h *g);\n"
28730 "\n"
28731 msgstr ""
28732
28733 #. type: textblock
28734 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6992
28735 msgid "(Added in 1.0.6)"
28736 msgstr ""
28737
28738 #. type: =head2
28739 #: ../src/guestfs-actions.pod:2537
28740 msgid "guestfs_get_recovery_proc"
28741 msgstr ""
28742
28743 #. type: verbatim
28744 #: ../src/guestfs-actions.pod:2539
28745 #, no-wrap
28746 msgid ""
28747 " int\n"
28748 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28749 "\n"
28750 msgstr ""
28751
28752 #. type: textblock
28753 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28754 #: ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:4866
28755 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:6231
28756 #: ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:7016
28757 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7734
28758 #: ../src/guestfs-actions.pod:8046
28759 msgid "(Added in 1.0.77)"
28760 msgstr ""
28761
28762 #. type: =head2
28763 #: ../src/guestfs-actions.pod:2548
28764 msgid "guestfs_get_selinux"
28765 msgstr ""
28766
28767 #. type: verbatim
28768 #: ../src/guestfs-actions.pod:2550
28769 #, no-wrap
28770 msgid ""
28771 " int\n"
28772 " guestfs_get_selinux (guestfs_h *g);\n"
28773 "\n"
28774 msgstr ""
28775
28776 #. type: textblock
28777 #: ../src/guestfs-actions.pod:2553
28778 msgid ""
28779 "This returns the current setting of the selinux flag which is passed to the "
28780 "appliance at boot time.  See C<guestfs_set_selinux>."
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28785 #: ../src/guestfs-actions.pod:7035 ../src/guestfs-actions.pod:7109
28786 msgid "(Added in 1.0.67)"
28787 msgstr ""
28788
28789 #. type: =head2
28790 #: ../src/guestfs-actions.pod:2563
28791 msgid "guestfs_get_smp"
28792 msgstr ""
28793
28794 #. type: verbatim
28795 #: ../src/guestfs-actions.pod:2565
28796 #, no-wrap
28797 msgid ""
28798 " int\n"
28799 " guestfs_get_smp (guestfs_h *g);\n"
28800 "\n"
28801 msgstr ""
28802
28803 #. type: =head2
28804 #: ../src/guestfs-actions.pod:2574
28805 msgid "guestfs_get_state"
28806 msgstr ""
28807
28808 #. type: verbatim
28809 #: ../src/guestfs-actions.pod:2576
28810 #, no-wrap
28811 msgid ""
28812 " int\n"
28813 " guestfs_get_state (guestfs_h *g);\n"
28814 "\n"
28815 msgstr ""
28816
28817 #. type: =head2
28818 #: ../src/guestfs-actions.pod:2588
28819 msgid "guestfs_get_trace"
28820 msgstr ""
28821
28822 #. type: verbatim
28823 #: ../src/guestfs-actions.pod:2590
28824 #, no-wrap
28825 msgid ""
28826 " int\n"
28827 " guestfs_get_trace (guestfs_h *g);\n"
28828 "\n"
28829 msgstr ""
28830
28831 #. type: =head2
28832 #: ../src/guestfs-actions.pod:2599
28833 msgid "guestfs_get_umask"
28834 msgstr ""
28835
28836 #. type: verbatim
28837 #: ../src/guestfs-actions.pod:2601
28838 #, no-wrap
28839 msgid ""
28840 " int\n"
28841 " guestfs_get_umask (guestfs_h *g);\n"
28842 "\n"
28843 msgstr ""
28844
28845 #. type: textblock
28846 #: ../src/guestfs-actions.pod:2604
28847 msgid ""
28848 "Return the current umask.  By default the umask is C<022> unless it has been "
28849 "set by calling C<guestfs_umask>."
28850 msgstr ""
28851
28852 #. type: =head2
28853 #: ../src/guestfs-actions.pod:2611
28854 msgid "guestfs_get_verbose"
28855 msgstr ""
28856
28857 #. type: verbatim
28858 #: ../src/guestfs-actions.pod:2613
28859 #, no-wrap
28860 msgid ""
28861 " int\n"
28862 " guestfs_get_verbose (guestfs_h *g);\n"
28863 "\n"
28864 msgstr ""
28865
28866 #. type: =head2
28867 #: ../src/guestfs-actions.pod:2622
28868 msgid "guestfs_getcon"
28869 msgstr ""
28870
28871 #. type: verbatim
28872 #: ../src/guestfs-actions.pod:2624
28873 #, no-wrap
28874 msgid ""
28875 " char *\n"
28876 " guestfs_getcon (guestfs_h *g);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../src/guestfs-actions.pod:2629
28882 msgid ""
28883 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28884 msgstr ""
28885
28886 #. type: =head2
28887 #: ../src/guestfs-actions.pod:2637
28888 msgid "guestfs_getxattr"
28889 msgstr ""
28890
28891 #. type: verbatim
28892 #: ../src/guestfs-actions.pod:2639
28893 #, no-wrap
28894 msgid ""
28895 " char *\n"
28896 " guestfs_getxattr (guestfs_h *g,\n"
28897 "                   const char *path,\n"
28898 "                   const char *name,\n"
28899 "                   size_t *size_r);\n"
28900 "\n"
28901 msgstr ""
28902
28903 #. type: textblock
28904 #: ../src/guestfs-actions.pod:2645
28905 msgid ""
28906 "Get a single extended attribute from file C<path> named C<name>.  This call "
28907 "follows symlinks.  If you want to lookup an extended attribute for the "
28908 "symlink itself, use C<guestfs_lgetxattr>."
28909 msgstr ""
28910
28911 #. type: textblock
28912 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
28913 msgid ""
28914 "Normally it is better to get all extended attributes from a file in one go "
28915 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28916 "implementations are buggy and do not provide a way to list out attributes.  "
28917 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28918 "extended attributes you want in advance and call this function."
28919 msgstr ""
28920
28921 #. type: textblock
28922 #: ../src/guestfs-actions.pod:2659
28923 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28924 msgstr ""
28925
28926 #. type: textblock
28927 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
28928 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
28929 #: ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6250
28930 #: ../src/guestfs-actions.pod:6431
28931 msgid ""
28932 "This function returns a buffer, or NULL on error.  The size of the returned "
28933 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28934 "after use>."
28935 msgstr ""
28936
28937 #. type: textblock
28938 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
28939 msgid "(Added in 1.7.24)"
28940 msgstr ""
28941
28942 #. type: =head2
28943 #: ../src/guestfs-actions.pod:2667
28944 msgid "guestfs_getxattrs"
28945 msgstr ""
28946
28947 #. type: verbatim
28948 #: ../src/guestfs-actions.pod:2669
28949 #, no-wrap
28950 msgid ""
28951 " struct guestfs_xattr_list *\n"
28952 " guestfs_getxattrs (guestfs_h *g,\n"
28953 "                    const char *path);\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: textblock
28958 #: ../src/guestfs-actions.pod:2679
28959 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28960 msgstr ""
28961
28962 #. type: textblock
28963 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
28964 #: ../src/guestfs-actions.pod:4862
28965 msgid ""
28966 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28967 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28968 msgstr ""
28969
28970 #. type: textblock
28971 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
28972 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4422
28973 #: ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:7128
28974 #: ../src/guestfs-actions.pod:8631
28975 msgid "(Added in 1.0.59)"
28976 msgstr ""
28977
28978 #. type: =head2
28979 #: ../src/guestfs-actions.pod:2687
28980 msgid "guestfs_glob_expand"
28981 msgstr ""
28982
28983 #. type: verbatim
28984 #: ../src/guestfs-actions.pod:2689
28985 #, no-wrap
28986 msgid ""
28987 " char **\n"
28988 " guestfs_glob_expand (guestfs_h *g,\n"
28989 "                      const char *pattern);\n"
28990 "\n"
28991 msgstr ""
28992
28993 #. type: textblock
28994 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7312
28995 #: ../src/guestfs-actions.pod:7329
28996 msgid "(Added in 1.0.50)"
28997 msgstr ""
28998
28999 #. type: =head2
29000 #: ../src/guestfs-actions.pod:2710
29001 msgid "guestfs_grep"
29002 msgstr ""
29003
29004 #. type: verbatim
29005 #: ../src/guestfs-actions.pod:2712
29006 #, no-wrap
29007 msgid ""
29008 " char **\n"
29009 " guestfs_grep (guestfs_h *g,\n"
29010 "               const char *regex,\n"
29011 "               const char *path);\n"
29012 "\n"
29013 msgstr ""
29014
29015 #. type: =head2
29016 #: ../src/guestfs-actions.pod:2729
29017 msgid "guestfs_grepi"
29018 msgstr ""
29019
29020 #. type: verbatim
29021 #: ../src/guestfs-actions.pod:2731
29022 #, no-wrap
29023 msgid ""
29024 " char **\n"
29025 " guestfs_grepi (guestfs_h *g,\n"
29026 "                const char *regex,\n"
29027 "                const char *path);\n"
29028 "\n"
29029 msgstr ""
29030
29031 #. type: =head2
29032 #: ../src/guestfs-actions.pod:2748
29033 msgid "guestfs_grub_install"
29034 msgstr ""
29035
29036 #. type: verbatim
29037 #: ../src/guestfs-actions.pod:2750
29038 #, no-wrap
29039 msgid ""
29040 " int\n"
29041 " guestfs_grub_install (guestfs_h *g,\n"
29042 "                       const char *root,\n"
29043 "                       const char *device);\n"
29044 "\n"
29045 msgstr ""
29046
29047 #. type: textblock
29048 #: ../src/guestfs-actions.pod:2793
29049 msgid "(Added in 1.0.17)"
29050 msgstr ""
29051
29052 #. type: =head2
29053 #: ../src/guestfs-actions.pod:2795
29054 msgid "guestfs_head"
29055 msgstr ""
29056
29057 #. type: verbatim
29058 #: ../src/guestfs-actions.pod:2797
29059 #, no-wrap
29060 msgid ""
29061 " char **\n"
29062 " guestfs_head (guestfs_h *g,\n"
29063 "               const char *path);\n"
29064 "\n"
29065 msgstr ""
29066
29067 #. type: =head2
29068 #: ../src/guestfs-actions.pod:2813
29069 msgid "guestfs_head_n"
29070 msgstr ""
29071
29072 #. type: verbatim
29073 #: ../src/guestfs-actions.pod:2815
29074 #, no-wrap
29075 msgid ""
29076 " char **\n"
29077 " guestfs_head_n (guestfs_h *g,\n"
29078 "                 int nrlines,\n"
29079 "                 const char *path);\n"
29080 "\n"
29081 msgstr ""
29082
29083 #. type: =head2
29084 #: ../src/guestfs-actions.pod:2837
29085 msgid "guestfs_hexdump"
29086 msgstr ""
29087
29088 #. type: verbatim
29089 #: ../src/guestfs-actions.pod:2839
29090 #, no-wrap
29091 msgid ""
29092 " char *\n"
29093 " guestfs_hexdump (guestfs_h *g,\n"
29094 "                  const char *path);\n"
29095 "\n"
29096 msgstr ""
29097
29098 #. type: textblock
29099 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7393
29100 #: ../src/guestfs-actions.pod:7448
29101 msgid "(Added in 1.0.22)"
29102 msgstr ""
29103
29104 #. type: =head2
29105 #: ../src/guestfs-actions.pod:2854
29106 msgid "guestfs_initrd_cat"
29107 msgstr ""
29108
29109 #. type: verbatim
29110 #: ../src/guestfs-actions.pod:2856
29111 #, no-wrap
29112 msgid ""
29113 " char *\n"
29114 " guestfs_initrd_cat (guestfs_h *g,\n"
29115 "                     const char *initrdpath,\n"
29116 "                     const char *filename,\n"
29117 "                     size_t *size_r);\n"
29118 "\n"
29119 msgstr ""
29120
29121 #. type: textblock
29122 #: ../src/guestfs-actions.pod:2872
29123 msgid "See also C<guestfs_initrd_list>."
29124 msgstr ""
29125
29126 #. type: =head2
29127 #: ../src/guestfs-actions.pod:2883
29128 msgid "guestfs_initrd_list"
29129 msgstr ""
29130
29131 #. type: verbatim
29132 #: ../src/guestfs-actions.pod:2885
29133 #, no-wrap
29134 msgid ""
29135 " char **\n"
29136 " guestfs_initrd_list (guestfs_h *g,\n"
29137 "                      const char *path);\n"
29138 "\n"
29139 msgstr ""
29140
29141 #. type: =head2
29142 #: ../src/guestfs-actions.pod:2905
29143 msgid "guestfs_inotify_add_watch"
29144 msgstr ""
29145
29146 #. type: verbatim
29147 #: ../src/guestfs-actions.pod:2907
29148 #, no-wrap
29149 msgid ""
29150 " int64_t\n"
29151 " guestfs_inotify_add_watch (guestfs_h *g,\n"
29152 "                            const char *path,\n"
29153 "                            int mask);\n"
29154 "\n"
29155 msgstr ""
29156
29157 #. type: =head2
29158 #: ../src/guestfs-actions.pod:2926
29159 msgid "guestfs_inotify_close"
29160 msgstr ""
29161
29162 #. type: verbatim
29163 #: ../src/guestfs-actions.pod:2928
29164 #, no-wrap
29165 msgid ""
29166 " int\n"
29167 " guestfs_inotify_close (guestfs_h *g);\n"
29168 "\n"
29169 msgstr ""
29170
29171 #. type: =head2
29172 #: ../src/guestfs-actions.pod:2939
29173 msgid "guestfs_inotify_files"
29174 msgstr ""
29175
29176 #. type: verbatim
29177 #: ../src/guestfs-actions.pod:2941
29178 #, no-wrap
29179 msgid ""
29180 " char **\n"
29181 " guestfs_inotify_files (guestfs_h *g);\n"
29182 "\n"
29183 msgstr ""
29184
29185 #. type: textblock
29186 #: ../src/guestfs-actions.pod:2944
29187 msgid ""
29188 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
29189 "returns a list of pathnames of objects that were touched.  The returned "
29190 "pathnames are sorted and deduplicated."
29191 msgstr ""
29192
29193 #. type: =head2
29194 #: ../src/guestfs-actions.pod:2954
29195 msgid "guestfs_inotify_init"
29196 msgstr ""
29197
29198 #. type: verbatim
29199 #: ../src/guestfs-actions.pod:2956
29200 #, no-wrap
29201 msgid ""
29202 " int\n"
29203 " guestfs_inotify_init (guestfs_h *g,\n"
29204 "                       int maxevents);\n"
29205 "\n"
29206 msgstr ""
29207
29208 #. type: textblock
29209 #: ../src/guestfs-actions.pod:2964
29210 msgid ""
29211 "C<maxevents> is the maximum number of events which will be queued up between "
29212 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
29213 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
29214 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
29215 "throws away events, but records the fact that it threw them away by setting "
29216 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
29217 "C<guestfs_inotify_read>)."
29218 msgstr ""
29219
29220 #. type: textblock
29221 #: ../src/guestfs-actions.pod:2974
29222 msgid ""
29223 "Before any events are generated, you have to add some watches to the "
29224 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
29225 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
29226 msgstr ""
29227
29228 #. type: textblock
29229 #: ../src/guestfs-actions.pod:2980
29230 msgid ""
29231 "Queued up events should be read periodically by calling "
29232 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
29233 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29234 "often enough then you risk the internal queue overflowing."
29235 msgstr ""
29236
29237 #. type: textblock
29238 #: ../src/guestfs-actions.pod:2987
29239 msgid ""
29240 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29241 "This also removes any watches automatically."
29242 msgstr ""
29243
29244 #. type: =head2
29245 #: ../src/guestfs-actions.pod:3000
29246 msgid "guestfs_inotify_read"
29247 msgstr ""
29248
29249 #. type: verbatim
29250 #: ../src/guestfs-actions.pod:3002
29251 #, no-wrap
29252 msgid ""
29253 " struct guestfs_inotify_event_list *\n"
29254 " guestfs_inotify_read (guestfs_h *g);\n"
29255 "\n"
29256 msgstr ""
29257
29258 #. type: textblock
29259 #: ../src/guestfs-actions.pod:3016
29260 msgid ""
29261 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29262 "there was an error.  I<The caller must call "
29263 "C<guestfs_free_inotify_event_list> after use>."
29264 msgstr ""
29265
29266 #. type: =head2
29267 #: ../src/guestfs-actions.pod:3022
29268 msgid "guestfs_inotify_rm_watch"
29269 msgstr ""
29270
29271 #. type: verbatim
29272 #: ../src/guestfs-actions.pod:3024
29273 #, no-wrap
29274 msgid ""
29275 " int\n"
29276 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29277 "                           int wd);\n"
29278 "\n"
29279 msgstr ""
29280
29281 #. type: textblock
29282 #: ../src/guestfs-actions.pod:3028
29283 msgid ""
29284 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29285 msgstr ""
29286
29287 #. type: =head2
29288 #: ../src/guestfs-actions.pod:3035
29289 msgid "guestfs_inspect_get_arch"
29290 msgstr ""
29291
29292 #. type: verbatim
29293 #: ../src/guestfs-actions.pod:3037
29294 #, no-wrap
29295 msgid ""
29296 " char *\n"
29297 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29298 "                           const char *root);\n"
29299 "\n"
29300 msgstr ""
29301
29302 #. type: textblock
29303 #: ../src/guestfs-actions.pod:3041
29304 msgid ""
29305 "This returns the architecture of the inspected operating system.  The "
29306 "possible return values are listed under C<guestfs_file_architecture>."
29307 msgstr ""
29308
29309 #. type: =head2
29310 #: ../src/guestfs-actions.pod:3055
29311 msgid "guestfs_inspect_get_distro"
29312 msgstr ""
29313
29314 #. type: verbatim
29315 #: ../src/guestfs-actions.pod:3057
29316 #, no-wrap
29317 msgid ""
29318 " char *\n"
29319 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29320 "                             const char *root);\n"
29321 "\n"
29322 msgstr ""
29323
29324 #. type: =head2
29325 #: ../src/guestfs-actions.pod:3157
29326 msgid "guestfs_inspect_get_drive_mappings"
29327 msgstr ""
29328
29329 #. type: verbatim
29330 #: ../src/guestfs-actions.pod:3159
29331 #, no-wrap
29332 msgid ""
29333 " char **\n"
29334 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29335 "                                     const char *root);\n"
29336 "\n"
29337 msgstr ""
29338
29339 #. type: textblock
29340 #: ../src/guestfs-actions.pod:3188
29341 msgid ""
29342 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29343 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29344 msgstr ""
29345
29346 #. type: textblock
29347 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29348 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5000
29349 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:7870
29350 msgid ""
29351 "This function returns a NULL-terminated array of strings, or NULL if there "
29352 "was an error.  The array of strings will always have length C<2n+1>, where "
29353 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29354 "caller must free the strings and the array after use>."
29355 msgstr ""
29356
29357 #. type: textblock
29358 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29359 msgid "(Added in 1.9.17)"
29360 msgstr ""
29361
29362 #. type: =head2
29363 #: ../src/guestfs-actions.pod:3200
29364 msgid "guestfs_inspect_get_filesystems"
29365 msgstr ""
29366
29367 #. type: verbatim
29368 #: ../src/guestfs-actions.pod:3202
29369 #, no-wrap
29370 msgid ""
29371 " char **\n"
29372 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29373 "                                  const char *root);\n"
29374 "\n"
29375 msgstr ""
29376
29377 #. type: textblock
29378 #: ../src/guestfs-actions.pod:3214
29379 msgid ""
29380 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29381 "C<guestfs_inspect_get_mountpoints>."
29382 msgstr ""
29383
29384 #. type: =head2
29385 #: ../src/guestfs-actions.pod:3223
29386 msgid "guestfs_inspect_get_format"
29387 msgstr ""
29388
29389 #. type: verbatim
29390 #: ../src/guestfs-actions.pod:3225
29391 #, no-wrap
29392 msgid ""
29393 " char *\n"
29394 " guestfs_inspect_get_format (guestfs_h *g,\n"
29395 "                             const char *root);\n"
29396 "\n"
29397 msgstr ""
29398
29399 #. type: textblock
29400 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29401 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29402 #: ../src/guestfs-actions.pod:6642
29403 msgid "(Added in 1.9.4)"
29404 msgstr ""
29405
29406 #. type: =head2
29407 #: ../src/guestfs-actions.pod:3261
29408 msgid "guestfs_inspect_get_hostname"
29409 msgstr ""
29410
29411 #. type: verbatim
29412 #: ../src/guestfs-actions.pod:3263
29413 #, no-wrap
29414 msgid ""
29415 " char *\n"
29416 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29417 "                               const char *root);\n"
29418 "\n"
29419 msgstr ""
29420
29421 #. type: textblock
29422 #: ../src/guestfs-actions.pod:3278
29423 msgid "(Added in 1.7.9)"
29424 msgstr ""
29425
29426 #. type: =head2
29427 #: ../src/guestfs-actions.pod:3280
29428 msgid "guestfs_inspect_get_icon"
29429 msgstr ""
29430
29431 #. type: verbatim
29432 #: ../src/guestfs-actions.pod:3282
29433 #, no-wrap
29434 msgid ""
29435 " char *\n"
29436 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29437 "                           const char *root,\n"
29438 "                           size_t *size_r,\n"
29439 "                           ...);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:3293
29445 #, no-wrap
29446 msgid ""
29447 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29448 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29449 "\n"
29450 msgstr ""
29451
29452 #. type: textblock
29453 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29454 #: ../src/guestfs-actions.pod:5574
29455 msgid "(Added in 1.11.12)"
29456 msgstr ""
29457
29458 #. type: =head2
29459 #: ../src/guestfs-actions.pod:3362
29460 msgid "guestfs_inspect_get_icon_va"
29461 msgstr ""
29462
29463 #. type: verbatim
29464 #: ../src/guestfs-actions.pod:3364
29465 #, no-wrap
29466 msgid ""
29467 " char *\n"
29468 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29469 "                              const char *root,\n"
29470 "                              size_t *size_r,\n"
29471 "                              va_list args);\n"
29472 "\n"
29473 msgstr ""
29474
29475 #. type: textblock
29476 #: ../src/guestfs-actions.pod:3370
29477 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29478 msgstr ""
29479
29480 #. type: =head2
29481 #: ../src/guestfs-actions.pod:3374
29482 msgid "guestfs_inspect_get_icon_argv"
29483 msgstr ""
29484
29485 #. type: verbatim
29486 #: ../src/guestfs-actions.pod:3376
29487 #, no-wrap
29488 msgid ""
29489 " char *\n"
29490 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29491 "                                const char *root,\n"
29492 "                                size_t *size_r,\n"
29493 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29494 "\n"
29495 msgstr ""
29496
29497 #. type: textblock
29498 #: ../src/guestfs-actions.pod:3382
29499 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29500 msgstr ""
29501
29502 #. type: =head2
29503 #: ../src/guestfs-actions.pod:3386
29504 msgid "guestfs_inspect_get_major_version"
29505 msgstr ""
29506
29507 #. type: verbatim
29508 #: ../src/guestfs-actions.pod:3388
29509 #, no-wrap
29510 msgid ""
29511 " int\n"
29512 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29513 "                                    const char *root);\n"
29514 "\n"
29515 msgstr ""
29516
29517 #. type: =head2
29518 #: ../src/guestfs-actions.pod:3410
29519 msgid "guestfs_inspect_get_minor_version"
29520 msgstr ""
29521
29522 #. type: verbatim
29523 #: ../src/guestfs-actions.pod:3412
29524 #, no-wrap
29525 msgid ""
29526 " int\n"
29527 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29528 "                                    const char *root);\n"
29529 "\n"
29530 msgstr ""
29531
29532 #. type: textblock
29533 #: ../src/guestfs-actions.pod:3421
29534 msgid ""
29535 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29536 "C<guestfs_inspect_get_major_version>."
29537 msgstr ""
29538
29539 #. type: =head2
29540 #: ../src/guestfs-actions.pod:3428
29541 msgid "guestfs_inspect_get_mountpoints"
29542 msgstr ""
29543
29544 #. type: verbatim
29545 #: ../src/guestfs-actions.pod:3430
29546 #, no-wrap
29547 msgid ""
29548 " char **\n"
29549 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29550 "                                  const char *root);\n"
29551 "\n"
29552 msgstr ""
29553
29554 #. type: textblock
29555 #: ../src/guestfs-actions.pod:3451
29556 msgid ""
29557 "For operating systems like Windows which still use drive letters, this call "
29558 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29559 "information about the mapping of drive letters to partitions, see "
29560 "C<guestfs_inspect_get_drive_mappings>."
29561 msgstr ""
29562
29563 #. type: textblock
29564 #: ../src/guestfs-actions.pod:3457
29565 msgid ""
29566 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29567 "C<guestfs_inspect_get_filesystems>."
29568 msgstr ""
29569
29570 #. type: =head2
29571 #: ../src/guestfs-actions.pod:3468
29572 msgid "guestfs_inspect_get_package_format"
29573 msgstr ""
29574
29575 #. type: verbatim
29576 #: ../src/guestfs-actions.pod:3470
29577 #, no-wrap
29578 msgid ""
29579 " char *\n"
29580 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29581 "                                     const char *root);\n"
29582 "\n"
29583 msgstr ""
29584
29585 #. type: textblock
29586 #: ../src/guestfs-actions.pod:3474
29587 msgid ""
29588 "This function and C<guestfs_inspect_get_package_management> return the "
29589 "package format and package management tool used by the inspected operating "
29590 "system.  For example for Fedora these functions would return C<rpm> (package "
29591 "format) and C<yum> (package management)."
29592 msgstr ""
29593
29594 #. type: textblock
29595 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29596 msgid "(Added in 1.7.5)"
29597 msgstr ""
29598
29599 #. type: =head2
29600 #: ../src/guestfs-actions.pod:3495
29601 msgid "guestfs_inspect_get_package_management"
29602 msgstr ""
29603
29604 #. type: verbatim
29605 #: ../src/guestfs-actions.pod:3497
29606 #, no-wrap
29607 msgid ""
29608 " char *\n"
29609 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29610 "                                         const char *root);\n"
29611 "\n"
29612 msgstr ""
29613
29614 #. type: textblock
29615 #: ../src/guestfs-actions.pod:3501
29616 msgid ""
29617 "C<guestfs_inspect_get_package_format> and this function return the package "
29618 "format and package management tool used by the inspected operating system.  "
29619 "For example for Fedora these functions would return C<rpm> (package format) "
29620 "and C<yum> (package management)."
29621 msgstr ""
29622
29623 #. type: =head2
29624 #: ../src/guestfs-actions.pod:3523
29625 msgid "guestfs_inspect_get_product_name"
29626 msgstr ""
29627
29628 #. type: verbatim
29629 #: ../src/guestfs-actions.pod:3525
29630 #, no-wrap
29631 msgid ""
29632 " char *\n"
29633 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29634 "                                   const char *root);\n"
29635 "\n"
29636 msgstr ""
29637
29638 #. type: =head2
29639 #: ../src/guestfs-actions.pod:3544
29640 msgid "guestfs_inspect_get_product_variant"
29641 msgstr ""
29642
29643 #. type: verbatim
29644 #: ../src/guestfs-actions.pod:3546
29645 #, no-wrap
29646 msgid ""
29647 " char *\n"
29648 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29649 "                                      const char *root);\n"
29650 "\n"
29651 msgstr ""
29652
29653 #. type: textblock
29654 #: ../src/guestfs-actions.pod:3569
29655 msgid ""
29656 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29657 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29658 msgstr ""
29659
29660 #. type: textblock
29661 #: ../src/guestfs-actions.pod:3576
29662 msgid "(Added in 1.9.13)"
29663 msgstr ""
29664
29665 #. type: =head2
29666 #: ../src/guestfs-actions.pod:3578
29667 msgid "guestfs_inspect_get_roots"
29668 msgstr ""
29669
29670 #. type: verbatim
29671 #: ../src/guestfs-actions.pod:3580
29672 #, no-wrap
29673 msgid ""
29674 " char **\n"
29675 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29676 "\n"
29677 msgstr ""
29678
29679 #. type: textblock
29680 #: ../src/guestfs-actions.pod:3583
29681 msgid ""
29682 "This function is a convenient way to get the list of root devices, as "
29683 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29684 "the whole inspection process."
29685 msgstr ""
29686
29687 #. type: textblock
29688 #: ../src/guestfs-actions.pod:3587
29689 msgid ""
29690 "This returns an empty list if either no root devices were found or the "
29691 "caller has not called C<guestfs_inspect_os>."
29692 msgstr ""
29693
29694 #. type: textblock
29695 #: ../src/guestfs-actions.pod:3596
29696 msgid "(Added in 1.7.3)"
29697 msgstr ""
29698
29699 #. type: =head2
29700 #: ../src/guestfs-actions.pod:3598
29701 msgid "guestfs_inspect_get_type"
29702 msgstr ""
29703
29704 #. type: verbatim
29705 #: ../src/guestfs-actions.pod:3600
29706 #, no-wrap
29707 msgid ""
29708 " char *\n"
29709 " guestfs_inspect_get_type (guestfs_h *g,\n"
29710 "                           const char *root);\n"
29711 "\n"
29712 msgstr ""
29713
29714 #. type: =head2
29715 #: ../src/guestfs-actions.pod:3641
29716 msgid "guestfs_inspect_get_windows_current_control_set"
29717 msgstr ""
29718
29719 #. type: verbatim
29720 #: ../src/guestfs-actions.pod:3643
29721 #, no-wrap
29722 msgid ""
29723 " char *\n"
29724 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29725 "                                                  const char *root);\n"
29726 "\n"
29727 msgstr ""
29728
29729 #. type: =head2
29730 #: ../src/guestfs-actions.pod:3661
29731 msgid "guestfs_inspect_get_windows_systemroot"
29732 msgstr ""
29733
29734 #. type: verbatim
29735 #: ../src/guestfs-actions.pod:3663
29736 #, no-wrap
29737 msgid ""
29738 " char *\n"
29739 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29740 "                                         const char *root);\n"
29741 "\n"
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:3679
29746 msgid "(Added in 1.5.25)"
29747 msgstr ""
29748
29749 #. type: =head2
29750 #: ../src/guestfs-actions.pod:3681
29751 msgid "guestfs_inspect_is_live"
29752 msgstr ""
29753
29754 #. type: verbatim
29755 #: ../src/guestfs-actions.pod:3683
29756 #, no-wrap
29757 msgid ""
29758 " int\n"
29759 " guestfs_inspect_is_live (guestfs_h *g,\n"
29760 "                          const char *root);\n"
29761 "\n"
29762 msgstr ""
29763
29764 #. type: textblock
29765 #: ../src/guestfs-actions.pod:3687
29766 msgid ""
29767 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29768 "disk), then this returns true if a live image was detected on the disk."
29769 msgstr ""
29770
29771 #. type: =head2
29772 #: ../src/guestfs-actions.pod:3697
29773 msgid "guestfs_inspect_is_multipart"
29774 msgstr ""
29775
29776 #. type: verbatim
29777 #: ../src/guestfs-actions.pod:3699
29778 #, no-wrap
29779 msgid ""
29780 " int\n"
29781 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29782 "                               const char *root);\n"
29783 "\n"
29784 msgstr ""
29785
29786 #. type: textblock
29787 #: ../src/guestfs-actions.pod:3703
29788 msgid ""
29789 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29790 "disk), then this returns true if the disk is part of a set."
29791 msgstr ""
29792
29793 #. type: =head2
29794 #: ../src/guestfs-actions.pod:3713
29795 msgid "guestfs_inspect_is_netinst"
29796 msgstr ""
29797
29798 #. type: verbatim
29799 #: ../src/guestfs-actions.pod:3715
29800 #, no-wrap
29801 msgid ""
29802 " int\n"
29803 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29804 "                             const char *root);\n"
29805 "\n"
29806 msgstr ""
29807
29808 #. type: textblock
29809 #: ../src/guestfs-actions.pod:3719
29810 msgid ""
29811 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29812 "disk), then this returns true if the disk is a network installer, ie. not a "
29813 "self-contained install CD but one which is likely to require network access "
29814 "to complete the install."
29815 msgstr ""
29816
29817 #. type: =head2
29818 #: ../src/guestfs-actions.pod:3731
29819 msgid "guestfs_inspect_list_applications"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../src/guestfs-actions.pod:3733
29824 #, no-wrap
29825 msgid ""
29826 " struct guestfs_application_list *\n"
29827 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29828 "                                    const char *root);\n"
29829 "\n"
29830 msgstr ""
29831
29832 #. type: textblock
29833 #: ../src/guestfs-actions.pod:3739
29834 msgid ""
29835 "I<Note:> This call works differently from other parts of the inspection "
29836 "API.  You have to call C<guestfs_inspect_os>, then "
29837 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29838 "this.  Listing applications is a significantly more difficult operation "
29839 "which requires access to the full filesystem.  Also note that unlike the "
29840 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29841 "the libguestfs handle, this call actually reads parts of the mounted "
29842 "filesystems during the call."
29843 msgstr ""
29844
29845 #. type: textblock
29846 #: ../src/guestfs-actions.pod:3829
29847 msgid ""
29848 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29849 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29850 "after use>."
29851 msgstr ""
29852
29853 #. type: textblock
29854 #: ../src/guestfs-actions.pod:3833
29855 msgid "(Added in 1.7.8)"
29856 msgstr ""
29857
29858 #. type: =head2
29859 #: ../src/guestfs-actions.pod:3835
29860 msgid "guestfs_inspect_os"
29861 msgstr ""
29862
29863 #. type: verbatim
29864 #: ../src/guestfs-actions.pod:3837
29865 #, no-wrap
29866 msgid ""
29867 " char **\n"
29868 " guestfs_inspect_os (guestfs_h *g);\n"
29869 "\n"
29870 msgstr ""
29871
29872 #. type: textblock
29873 #: ../src/guestfs-actions.pod:3853
29874 msgid ""
29875 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29876 "functions in order to query further information about each operating system, "
29877 "such as the name and version."
29878 msgstr ""
29879
29880 #. type: textblock
29881 #: ../src/guestfs-actions.pod:3858
29882 msgid ""
29883 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29884 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29885 "the contents.  This should be called with no disks currently mounted.  The "
29886 "function may also use Augeas, so any existing Augeas handle will be closed."
29887 msgstr ""
29888
29889 #. type: textblock
29890 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29891 #: ../src/guestfs-actions.pod:4294
29892 msgid "See also C<guestfs_list_filesystems>."
29893 msgstr ""
29894
29895 #. type: =head2
29896 #: ../src/guestfs-actions.pod:3878
29897 msgid "guestfs_is_blockdev"
29898 msgstr ""
29899
29900 #. type: verbatim
29901 #: ../src/guestfs-actions.pod:3880
29902 #, no-wrap
29903 msgid ""
29904 " int\n"
29905 " guestfs_is_blockdev (guestfs_h *g,\n"
29906 "                      const char *path);\n"
29907 "\n"
29908 msgstr ""
29909
29910 #. type: textblock
29911 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
29912 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
29913 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
29914 #: ../src/guestfs-actions.pod:4048
29915 msgid "See also C<guestfs_stat>."
29916 msgstr ""
29917
29918 #. type: textblock
29919 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
29920 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
29921 #: ../src/guestfs-actions.pod:4052
29922 msgid "(Added in 1.5.10)"
29923 msgstr ""
29924
29925 #. type: =head2
29926 #: ../src/guestfs-actions.pod:3893
29927 msgid "guestfs_is_busy"
29928 msgstr ""
29929
29930 #. type: verbatim
29931 #: ../src/guestfs-actions.pod:3895
29932 #, no-wrap
29933 msgid ""
29934 " int\n"
29935 " guestfs_is_busy (guestfs_h *g);\n"
29936 "\n"
29937 msgstr ""
29938
29939 #. type: =head2
29940 #: ../src/guestfs-actions.pod:3907
29941 msgid "guestfs_is_chardev"
29942 msgstr ""
29943
29944 #. type: verbatim
29945 #: ../src/guestfs-actions.pod:3909
29946 #, no-wrap
29947 msgid ""
29948 " int\n"
29949 " guestfs_is_chardev (guestfs_h *g,\n"
29950 "                     const char *path);\n"
29951 "\n"
29952 msgstr ""
29953
29954 #. type: =head2
29955 #: ../src/guestfs-actions.pod:3922
29956 msgid "guestfs_is_config"
29957 msgstr ""
29958
29959 #. type: verbatim
29960 #: ../src/guestfs-actions.pod:3924
29961 #, no-wrap
29962 msgid ""
29963 " int\n"
29964 " guestfs_is_config (guestfs_h *g);\n"
29965 "\n"
29966 msgstr ""
29967
29968 #. type: =head2
29969 #: ../src/guestfs-actions.pod:3936
29970 msgid "guestfs_is_dir"
29971 msgstr ""
29972
29973 #. type: verbatim
29974 #: ../src/guestfs-actions.pod:3938
29975 #, no-wrap
29976 msgid ""
29977 " int\n"
29978 " guestfs_is_dir (guestfs_h *g,\n"
29979 "                 const char *path);\n"
29980 "\n"
29981 msgstr ""
29982
29983 #. type: =head2
29984 #: ../src/guestfs-actions.pod:3952
29985 msgid "guestfs_is_fifo"
29986 msgstr ""
29987
29988 #. type: verbatim
29989 #: ../src/guestfs-actions.pod:3954
29990 #, no-wrap
29991 msgid ""
29992 " int\n"
29993 " guestfs_is_fifo (guestfs_h *g,\n"
29994 "                  const char *path);\n"
29995 "\n"
29996 msgstr ""
29997
29998 #. type: =head2
29999 #: ../src/guestfs-actions.pod:3967
30000 msgid "guestfs_is_file"
30001 msgstr ""
30002
30003 #. type: verbatim
30004 #: ../src/guestfs-actions.pod:3969
30005 #, no-wrap
30006 msgid ""
30007 " int\n"
30008 " guestfs_is_file (guestfs_h *g,\n"
30009 "                  const char *path);\n"
30010 "\n"
30011 msgstr ""
30012
30013 #. type: =head2
30014 #: ../src/guestfs-actions.pod:3983
30015 msgid "guestfs_is_launching"
30016 msgstr ""
30017
30018 #. type: verbatim
30019 #: ../src/guestfs-actions.pod:3985
30020 #, no-wrap
30021 msgid ""
30022 " int\n"
30023 " guestfs_is_launching (guestfs_h *g);\n"
30024 "\n"
30025 msgstr ""
30026
30027 #. type: =head2
30028 #: ../src/guestfs-actions.pod:3997
30029 msgid "guestfs_is_lv"
30030 msgstr ""
30031
30032 #. type: verbatim
30033 #: ../src/guestfs-actions.pod:3999
30034 #, no-wrap
30035 msgid ""
30036 " int\n"
30037 " guestfs_is_lv (guestfs_h *g,\n"
30038 "                const char *device);\n"
30039 "\n"
30040 msgstr ""
30041
30042 #. type: =head2
30043 #: ../src/guestfs-actions.pod:4010
30044 msgid "guestfs_is_ready"
30045 msgstr ""
30046
30047 #. type: verbatim
30048 #: ../src/guestfs-actions.pod:4012
30049 #, no-wrap
30050 msgid ""
30051 " int\n"
30052 " guestfs_is_ready (guestfs_h *g);\n"
30053 "\n"
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:4024
30058 msgid "guestfs_is_socket"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:4026
30063 #, no-wrap
30064 msgid ""
30065 " int\n"
30066 " guestfs_is_socket (guestfs_h *g,\n"
30067 "                    const char *path);\n"
30068 "\n"
30069 msgstr ""
30070
30071 #. type: =head2
30072 #: ../src/guestfs-actions.pod:4039
30073 msgid "guestfs_is_symlink"
30074 msgstr ""
30075
30076 #. type: verbatim
30077 #: ../src/guestfs-actions.pod:4041
30078 #, no-wrap
30079 msgid ""
30080 " int\n"
30081 " guestfs_is_symlink (guestfs_h *g,\n"
30082 "                     const char *path);\n"
30083 "\n"
30084 msgstr ""
30085
30086 #. type: =head2
30087 #: ../src/guestfs-actions.pod:4054
30088 msgid "guestfs_is_zero"
30089 msgstr ""
30090
30091 #. type: verbatim
30092 #: ../src/guestfs-actions.pod:4056
30093 #, no-wrap
30094 msgid ""
30095 " int\n"
30096 " guestfs_is_zero (guestfs_h *g,\n"
30097 "                  const char *path);\n"
30098 "\n"
30099 msgstr ""
30100
30101 #. type: textblock
30102 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
30103 msgid "(Added in 1.11.8)"
30104 msgstr ""
30105
30106 #. type: =head2
30107 #: ../src/guestfs-actions.pod:4067
30108 msgid "guestfs_is_zero_device"
30109 msgstr ""
30110
30111 #. type: verbatim
30112 #: ../src/guestfs-actions.pod:4069
30113 #, no-wrap
30114 msgid ""
30115 " int\n"
30116 " guestfs_is_zero_device (guestfs_h *g,\n"
30117 "                         const char *device);\n"
30118 "\n"
30119 msgstr ""
30120
30121 #. type: =head2
30122 #: ../src/guestfs-actions.pod:4081
30123 msgid "guestfs_kill_subprocess"
30124 msgstr ""
30125
30126 #. type: verbatim
30127 #: ../src/guestfs-actions.pod:4083
30128 #, no-wrap
30129 msgid ""
30130 " int\n"
30131 " guestfs_kill_subprocess (guestfs_h *g);\n"
30132 "\n"
30133 msgstr ""
30134
30135 #. type: =head2
30136 #: ../src/guestfs-actions.pod:4092
30137 msgid "guestfs_launch"
30138 msgstr ""
30139
30140 #. type: verbatim
30141 #: ../src/guestfs-actions.pod:4094
30142 #, no-wrap
30143 msgid ""
30144 " int\n"
30145 " guestfs_launch (guestfs_h *g);\n"
30146 "\n"
30147 msgstr ""
30148
30149 #. type: =head2
30150 #: ../src/guestfs-actions.pod:4112
30151 msgid "guestfs_lchown"
30152 msgstr ""
30153
30154 #. type: verbatim
30155 #: ../src/guestfs-actions.pod:4114
30156 #, no-wrap
30157 msgid ""
30158 " int\n"
30159 " guestfs_lchown (guestfs_h *g,\n"
30160 "                 int owner,\n"
30161 "                 int group,\n"
30162 "                 const char *path);\n"
30163 "\n"
30164 msgstr ""
30165
30166 #. type: textblock
30167 #: ../src/guestfs-actions.pod:4120
30168 msgid ""
30169 "Change the file owner to C<owner> and group to C<group>.  This is like "
30170 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
30171 "changed, not the target."
30172 msgstr ""
30173
30174 #. type: =head2
30175 #: ../src/guestfs-actions.pod:4132
30176 msgid "guestfs_lgetxattr"
30177 msgstr ""
30178
30179 #. type: verbatim
30180 #: ../src/guestfs-actions.pod:4134
30181 #, no-wrap
30182 msgid ""
30183 " char *\n"
30184 " guestfs_lgetxattr (guestfs_h *g,\n"
30185 "                    const char *path,\n"
30186 "                    const char *name,\n"
30187 "                    size_t *size_r);\n"
30188 "\n"
30189 msgstr ""
30190
30191 #. type: textblock
30192 #: ../src/guestfs-actions.pod:4154
30193 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
30194 msgstr ""
30195
30196 #. type: =head2
30197 #: ../src/guestfs-actions.pod:4162
30198 msgid "guestfs_lgetxattrs"
30199 msgstr ""
30200
30201 #. type: verbatim
30202 #: ../src/guestfs-actions.pod:4164
30203 #, no-wrap
30204 msgid ""
30205 " struct guestfs_xattr_list *\n"
30206 " guestfs_lgetxattrs (guestfs_h *g,\n"
30207 "                     const char *path);\n"
30208 "\n"
30209 msgstr ""
30210
30211 #. type: textblock
30212 #: ../src/guestfs-actions.pod:4168
30213 msgid ""
30214 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
30215 "then it returns the extended attributes of the link itself."
30216 msgstr ""
30217
30218 #. type: =head2
30219 #: ../src/guestfs-actions.pod:4178
30220 msgid "guestfs_list_9p"
30221 msgstr ""
30222
30223 #. type: verbatim
30224 #: ../src/guestfs-actions.pod:4180
30225 #, no-wrap
30226 msgid ""
30227 " char **\n"
30228 " guestfs_list_9p (guestfs_h *g);\n"
30229 "\n"
30230 msgstr ""
30231
30232 #. type: =head2
30233 #: ../src/guestfs-actions.pod:4192
30234 msgid "guestfs_list_devices"
30235 msgstr ""
30236
30237 #. type: verbatim
30238 #: ../src/guestfs-actions.pod:4194
30239 #, no-wrap
30240 msgid ""
30241 " char **\n"
30242 " guestfs_list_devices (guestfs_h *g);\n"
30243 "\n"
30244 msgstr ""
30245
30246 #. type: =head2
30247 #: ../src/guestfs-actions.pod:4209
30248 msgid "guestfs_list_dm_devices"
30249 msgstr ""
30250
30251 #. type: verbatim
30252 #: ../src/guestfs-actions.pod:4211
30253 #, no-wrap
30254 msgid ""
30255 " char **\n"
30256 " guestfs_list_dm_devices (guestfs_h *g);\n"
30257 "\n"
30258 msgstr ""
30259
30260 #. type: textblock
30261 #: ../src/guestfs-actions.pod:4216
30262 msgid ""
30263 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30264 "previous call to C<guestfs_luks_open>."
30265 msgstr ""
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:4219
30269 msgid ""
30270 "Device mapper devices which correspond to logical volumes are I<not> "
30271 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30272 "volumes."
30273 msgstr ""
30274
30275 #. type: textblock
30276 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5813
30277 msgid "(Added in 1.11.15)"
30278 msgstr ""
30279
30280 #. type: =head2
30281 #: ../src/guestfs-actions.pod:4229
30282 msgid "guestfs_list_filesystems"
30283 msgstr ""
30284
30285 #. type: verbatim
30286 #: ../src/guestfs-actions.pod:4231
30287 #, no-wrap
30288 msgid ""
30289 " char **\n"
30290 " guestfs_list_filesystems (guestfs_h *g);\n"
30291 "\n"
30292 msgstr ""
30293
30294 #. type: textblock
30295 #: ../src/guestfs-actions.pod:4251
30296 msgid ""
30297 "This command runs other libguestfs commands, which might include "
30298 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30299 "soon after launch and only when nothing is mounted."
30300 msgstr ""
30301
30302 #. type: textblock
30303 #: ../src/guestfs-actions.pod:4255
30304 msgid ""
30305 "Not all of the filesystems returned will be mountable.  In particular, swap "
30306 "partitions are returned in the list.  Also this command does not check that "
30307 "each filesystem found is valid and mountable, and some filesystems might be "
30308 "mountable but require special options.  Filesystems may not all belong to a "
30309 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30310 msgstr ""
30311
30312 #. type: textblock
30313 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6173
30314 msgid "(Added in 1.5.15)"
30315 msgstr ""
30316
30317 #. type: =head2
30318 #: ../src/guestfs-actions.pod:4271
30319 msgid "guestfs_list_md_devices"
30320 msgstr ""
30321
30322 #. type: verbatim
30323 #: ../src/guestfs-actions.pod:4273
30324 #, no-wrap
30325 msgid ""
30326 " char **\n"
30327 " guestfs_list_md_devices (guestfs_h *g);\n"
30328 "\n"
30329 msgstr ""
30330
30331 #. type: =head2
30332 #: ../src/guestfs-actions.pod:4282
30333 msgid "guestfs_list_partitions"
30334 msgstr ""
30335
30336 #. type: verbatim
30337 #: ../src/guestfs-actions.pod:4284
30338 #, no-wrap
30339 msgid ""
30340 " char **\n"
30341 " guestfs_list_partitions (guestfs_h *g);\n"
30342 "\n"
30343 msgstr ""
30344
30345 #. type: textblock
30346 #: ../src/guestfs-actions.pod:4291
30347 msgid ""
30348 "This does not return logical volumes.  For that you will need to call "
30349 "C<guestfs_lvs>."
30350 msgstr ""
30351
30352 #. type: =head2
30353 #: ../src/guestfs-actions.pod:4302
30354 msgid "guestfs_ll"
30355 msgstr ""
30356
30357 #. type: verbatim
30358 #: ../src/guestfs-actions.pod:4304
30359 #, no-wrap
30360 msgid ""
30361 " char *\n"
30362 " guestfs_ll (guestfs_h *g,\n"
30363 "             const char *directory);\n"
30364 "\n"
30365 msgstr ""
30366
30367 #. type: =head2
30368 #: ../src/guestfs-actions.pod:4319
30369 msgid "guestfs_ln"
30370 msgstr ""
30371
30372 #. type: verbatim
30373 #: ../src/guestfs-actions.pod:4321
30374 #, no-wrap
30375 msgid ""
30376 " int\n"
30377 " guestfs_ln (guestfs_h *g,\n"
30378 "             const char *target,\n"
30379 "             const char *linkname);\n"
30380 "\n"
30381 msgstr ""
30382
30383 #. type: =head2
30384 #: ../src/guestfs-actions.pod:4332
30385 msgid "guestfs_ln_f"
30386 msgstr ""
30387
30388 #. type: verbatim
30389 #: ../src/guestfs-actions.pod:4334
30390 #, no-wrap
30391 msgid ""
30392 " int\n"
30393 " guestfs_ln_f (guestfs_h *g,\n"
30394 "               const char *target,\n"
30395 "               const char *linkname);\n"
30396 "\n"
30397 msgstr ""
30398
30399 #. type: =head2
30400 #: ../src/guestfs-actions.pod:4346
30401 msgid "guestfs_ln_s"
30402 msgstr ""
30403
30404 #. type: verbatim
30405 #: ../src/guestfs-actions.pod:4348
30406 #, no-wrap
30407 msgid ""
30408 " int\n"
30409 " guestfs_ln_s (guestfs_h *g,\n"
30410 "               const char *target,\n"
30411 "               const char *linkname);\n"
30412 "\n"
30413 msgstr ""
30414
30415 #. type: =head2
30416 #: ../src/guestfs-actions.pod:4359
30417 msgid "guestfs_ln_sf"
30418 msgstr ""
30419
30420 #. type: verbatim
30421 #: ../src/guestfs-actions.pod:4361
30422 #, no-wrap
30423 msgid ""
30424 " int\n"
30425 " guestfs_ln_sf (guestfs_h *g,\n"
30426 "                const char *target,\n"
30427 "                const char *linkname);\n"
30428 "\n"
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs-actions.pod:4373
30433 msgid "guestfs_lremovexattr"
30434 msgstr ""
30435
30436 #. type: verbatim
30437 #: ../src/guestfs-actions.pod:4375
30438 #, no-wrap
30439 msgid ""
30440 " int\n"
30441 " guestfs_lremovexattr (guestfs_h *g,\n"
30442 "                       const char *xattr,\n"
30443 "                       const char *path);\n"
30444 "\n"
30445 msgstr ""
30446
30447 #. type: textblock
30448 #: ../src/guestfs-actions.pod:4380
30449 msgid ""
30450 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30451 "link, then it removes an extended attribute of the link itself."
30452 msgstr ""
30453
30454 #. type: =head2
30455 #: ../src/guestfs-actions.pod:4388
30456 msgid "guestfs_ls"
30457 msgstr ""
30458
30459 #. type: verbatim
30460 #: ../src/guestfs-actions.pod:4390
30461 #, no-wrap
30462 msgid ""
30463 " char **\n"
30464 " guestfs_ls (guestfs_h *g,\n"
30465 "             const char *directory);\n"
30466 "\n"
30467 msgstr ""
30468
30469 #. type: textblock
30470 #: ../src/guestfs-actions.pod:4398
30471 msgid ""
30472 "This command is mostly useful for interactive sessions.  Programs should "
30473 "probably use C<guestfs_readdir> instead."
30474 msgstr ""
30475
30476 #. type: =head2
30477 #: ../src/guestfs-actions.pod:4407
30478 msgid "guestfs_lsetxattr"
30479 msgstr ""
30480
30481 #. type: verbatim
30482 #: ../src/guestfs-actions.pod:4409
30483 #, no-wrap
30484 msgid ""
30485 " int\n"
30486 " guestfs_lsetxattr (guestfs_h *g,\n"
30487 "                    const char *xattr,\n"
30488 "                    const char *val,\n"
30489 "                    int vallen,\n"
30490 "                    const char *path);\n"
30491 "\n"
30492 msgstr ""
30493
30494 #. type: textblock
30495 #: ../src/guestfs-actions.pod:4416
30496 msgid ""
30497 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30498 "then it sets an extended attribute of the link itself."
30499 msgstr ""
30500
30501 #. type: =head2
30502 #: ../src/guestfs-actions.pod:4424
30503 msgid "guestfs_lstat"
30504 msgstr ""
30505
30506 #. type: verbatim
30507 #: ../src/guestfs-actions.pod:4426
30508 #, no-wrap
30509 msgid ""
30510 " struct guestfs_stat *\n"
30511 " guestfs_lstat (guestfs_h *g,\n"
30512 "                const char *path);\n"
30513 "\n"
30514 msgstr ""
30515
30516 #. type: textblock
30517 #: ../src/guestfs-actions.pod:4432
30518 msgid ""
30519 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30520 "link, then the link is stat-ed, not the file it refers to."
30521 msgstr ""
30522
30523 #. type: textblock
30524 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:7353
30525 msgid ""
30526 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30527 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30528 msgstr ""
30529
30530 #. type: textblock
30531 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:7357
30532 #: ../src/guestfs-actions.pod:7375 ../src/guestfs-actions.pod:7876
30533 msgid "(Added in 0.9.2)"
30534 msgstr ""
30535
30536 #. type: =head2
30537 #: ../src/guestfs-actions.pod:4444
30538 msgid "guestfs_lstatlist"
30539 msgstr ""
30540
30541 #. type: verbatim
30542 #: ../src/guestfs-actions.pod:4446
30543 #, no-wrap
30544 msgid ""
30545 " struct guestfs_stat_list *\n"
30546 " guestfs_lstatlist (guestfs_h *g,\n"
30547 "                    const char *path,\n"
30548 "                    char *const *names);\n"
30549 "\n"
30550 msgstr ""
30551
30552 #. type: textblock
30553 #: ../src/guestfs-actions.pod:4451
30554 msgid ""
30555 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30556 "files, where all files are in the directory C<path>.  C<names> is the list "
30557 "of files from this directory."
30558 msgstr ""
30559
30560 #. type: textblock
30561 #: ../src/guestfs-actions.pod:4460
30562 msgid ""
30563 "This call is intended for programs that want to efficiently list a directory "
30564 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30565 "for a similarly efficient call for getting extended attributes.  Very long "
30566 "directory listings might cause the protocol message size to be exceeded, "
30567 "causing this call to fail.  The caller must split up such requests into "
30568 "smaller groups of names."
30569 msgstr ""
30570
30571 #. type: textblock
30572 #: ../src/guestfs-actions.pod:4468
30573 msgid ""
30574 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30575 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:4474
30580 msgid "guestfs_luks_add_key"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:4476
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_luks_add_key (guestfs_h *g,\n"
30589 "                       const char *device,\n"
30590 "                       const char *key,\n"
30591 "                       const char *newkey,\n"
30592 "                       int keyslot);\n"
30593 "\n"
30594 msgstr ""
30595
30596 #. type: textblock
30597 #: ../src/guestfs-actions.pod:4488
30598 msgid ""
30599 "Note that if C<keyslot> already contains a key, then this command will "
30600 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30601 msgstr ""
30602
30603 #. type: textblock
30604 #: ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:4531
30605 #: ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4571
30606 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4625
30607 msgid ""
30608 "This function takes a key or passphrase parameter which could contain "
30609 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30610 "information."
30611 msgstr ""
30612
30613 #. type: textblock
30614 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4535
30615 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
30616 msgid "(Added in 1.5.2)"
30617 msgstr ""
30618
30619 #. type: =head2
30620 #: ../src/guestfs-actions.pod:4500
30621 msgid "guestfs_luks_close"
30622 msgstr ""
30623
30624 #. type: verbatim
30625 #: ../src/guestfs-actions.pod:4502
30626 #, no-wrap
30627 msgid ""
30628 " int\n"
30629 " guestfs_luks_close (guestfs_h *g,\n"
30630 "                     const char *device);\n"
30631 "\n"
30632 msgstr ""
30633
30634 #. type: textblock
30635 #: ../src/guestfs-actions.pod:4506
30636 msgid ""
30637 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30638 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30639 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30640 "underlying block device."
30641 msgstr ""
30642
30643 #. type: textblock
30644 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4610
30645 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4679
30646 #: ../src/guestfs-actions.pod:4724
30647 msgid "(Added in 1.5.1)"
30648 msgstr ""
30649
30650 #. type: =head2
30651 #: ../src/guestfs-actions.pod:4516
30652 msgid "guestfs_luks_format"
30653 msgstr ""
30654
30655 #. type: verbatim
30656 #: ../src/guestfs-actions.pod:4518
30657 #, no-wrap
30658 msgid ""
30659 " int\n"
30660 " guestfs_luks_format (guestfs_h *g,\n"
30661 "                      const char *device,\n"
30662 "                      const char *key,\n"
30663 "                      int keyslot);\n"
30664 "\n"
30665 msgstr ""
30666
30667 #. type: =head2
30668 #: ../src/guestfs-actions.pod:4537
30669 msgid "guestfs_luks_format_cipher"
30670 msgstr ""
30671
30672 #. type: verbatim
30673 #: ../src/guestfs-actions.pod:4539
30674 #, no-wrap
30675 msgid ""
30676 " int\n"
30677 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30678 "                             const char *device,\n"
30679 "                             const char *key,\n"
30680 "                             int keyslot,\n"
30681 "                             const char *cipher);\n"
30682 "\n"
30683 msgstr ""
30684
30685 #. type: textblock
30686 #: ../src/guestfs-actions.pod:4546
30687 msgid ""
30688 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30689 "set the C<cipher> used."
30690 msgstr ""
30691
30692 #. type: =head2
30693 #: ../src/guestfs-actions.pod:4557
30694 msgid "guestfs_luks_kill_slot"
30695 msgstr ""
30696
30697 #. type: verbatim
30698 #: ../src/guestfs-actions.pod:4559
30699 #, no-wrap
30700 msgid ""
30701 " int\n"
30702 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30703 "                         const char *device,\n"
30704 "                         const char *key,\n"
30705 "                         int keyslot);\n"
30706 "\n"
30707 msgstr ""
30708
30709 #. type: =head2
30710 #: ../src/guestfs-actions.pod:4577
30711 msgid "guestfs_luks_open"
30712 msgstr ""
30713
30714 #. type: verbatim
30715 #: ../src/guestfs-actions.pod:4579
30716 #, no-wrap
30717 msgid ""
30718 " int\n"
30719 " guestfs_luks_open (guestfs_h *g,\n"
30720 "                    const char *device,\n"
30721 "                    const char *key,\n"
30722 "                    const char *mapname);\n"
30723 "\n"
30724 msgstr ""
30725
30726 #. type: textblock
30727 #: ../src/guestfs-actions.pod:4597
30728 msgid ""
30729 "If this block device contains LVM volume groups, then calling "
30730 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30731 "visible."
30732 msgstr ""
30733
30734 #. type: textblock
30735 #: ../src/guestfs-actions.pod:4601
30736 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30737 msgstr ""
30738
30739 #. type: =head2
30740 #: ../src/guestfs-actions.pod:4612
30741 msgid "guestfs_luks_open_ro"
30742 msgstr ""
30743
30744 #. type: verbatim
30745 #: ../src/guestfs-actions.pod:4614
30746 #, no-wrap
30747 msgid ""
30748 " int\n"
30749 " guestfs_luks_open_ro (guestfs_h *g,\n"
30750 "                       const char *device,\n"
30751 "                       const char *key,\n"
30752 "                       const char *mapname);\n"
30753 "\n"
30754 msgstr ""
30755
30756 #. type: textblock
30757 #: ../src/guestfs-actions.pod:4620
30758 msgid ""
30759 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30760 "created."
30761 msgstr ""
30762
30763 #. type: =head2
30764 #: ../src/guestfs-actions.pod:4631
30765 msgid "guestfs_lvcreate"
30766 msgstr ""
30767
30768 #. type: verbatim
30769 #: ../src/guestfs-actions.pod:4633
30770 #, no-wrap
30771 msgid ""
30772 " int\n"
30773 " guestfs_lvcreate (guestfs_h *g,\n"
30774 "                   const char *logvol,\n"
30775 "                   const char *volgroup,\n"
30776 "                   int mbytes);\n"
30777 "\n"
30778 msgstr ""
30779
30780 #. type: =head2
30781 #: ../src/guestfs-actions.pod:4646
30782 msgid "guestfs_lvm_canonical_lv_name"
30783 msgstr ""
30784
30785 #. type: verbatim
30786 #: ../src/guestfs-actions.pod:4648
30787 #, no-wrap
30788 msgid ""
30789 " char *\n"
30790 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30791 "                                const char *lvname);\n"
30792 "\n"
30793 msgstr ""
30794
30795 #. type: textblock
30796 #: ../src/guestfs-actions.pod:4659
30797 msgid "See also C<guestfs_is_lv>."
30798 msgstr ""
30799
30800 #. type: textblock
30801 #: ../src/guestfs-actions.pod:4664
30802 msgid "(Added in 1.5.24)"
30803 msgstr ""
30804
30805 #. type: =head2
30806 #: ../src/guestfs-actions.pod:4666
30807 msgid "guestfs_lvm_clear_filter"
30808 msgstr ""
30809
30810 #. type: verbatim
30811 #: ../src/guestfs-actions.pod:4668
30812 #, no-wrap
30813 msgid ""
30814 " int\n"
30815 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30816 "\n"
30817 msgstr ""
30818
30819 #. type: textblock
30820 #: ../src/guestfs-actions.pod:4671
30821 msgid ""
30822 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30823 "see every block device."
30824 msgstr ""
30825
30826 #. type: =head2
30827 #: ../src/guestfs-actions.pod:4681
30828 msgid "guestfs_lvm_remove_all"
30829 msgstr ""
30830
30831 #. type: verbatim
30832 #: ../src/guestfs-actions.pod:4683
30833 #, no-wrap
30834 msgid ""
30835 " int\n"
30836 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30837 "\n"
30838 msgstr ""
30839
30840 #. type: =head2
30841 #: ../src/guestfs-actions.pod:4693
30842 msgid "guestfs_lvm_set_filter"
30843 msgstr ""
30844
30845 #. type: verbatim
30846 #: ../src/guestfs-actions.pod:4695
30847 #, no-wrap
30848 msgid ""
30849 " int\n"
30850 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30851 "                         char *const *devices);\n"
30852 "\n"
30853 msgstr ""
30854
30855 #. type: =head2
30856 #: ../src/guestfs-actions.pod:4726
30857 msgid "guestfs_lvremove"
30858 msgstr ""
30859
30860 #. type: verbatim
30861 #: ../src/guestfs-actions.pod:4728
30862 #, no-wrap
30863 msgid ""
30864 " int\n"
30865 " guestfs_lvremove (guestfs_h *g,\n"
30866 "                   const char *device);\n"
30867 "\n"
30868 msgstr ""
30869
30870 #. type: textblock
30871 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:6288
30872 #: ../src/guestfs-actions.pod:8246
30873 msgid "(Added in 1.0.13)"
30874 msgstr ""
30875
30876 #. type: =head2
30877 #: ../src/guestfs-actions.pod:4742
30878 msgid "guestfs_lvrename"
30879 msgstr ""
30880
30881 #. type: verbatim
30882 #: ../src/guestfs-actions.pod:4744
30883 #, no-wrap
30884 msgid ""
30885 " int\n"
30886 " guestfs_lvrename (guestfs_h *g,\n"
30887 "                   const char *logvol,\n"
30888 "                   const char *newlogvol);\n"
30889 "\n"
30890 msgstr ""
30891
30892 #. type: textblock
30893 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:8259
30894 msgid "(Added in 1.0.83)"
30895 msgstr ""
30896
30897 #. type: =head2
30898 #: ../src/guestfs-actions.pod:4755
30899 msgid "guestfs_lvresize"
30900 msgstr ""
30901
30902 #. type: verbatim
30903 #: ../src/guestfs-actions.pod:4757
30904 #, no-wrap
30905 msgid ""
30906 " int\n"
30907 " guestfs_lvresize (guestfs_h *g,\n"
30908 "                   const char *device,\n"
30909 "                   int mbytes);\n"
30910 "\n"
30911 msgstr ""
30912
30913 #. type: =head2
30914 #: ../src/guestfs-actions.pod:4770
30915 msgid "guestfs_lvresize_free"
30916 msgstr ""
30917
30918 #. type: verbatim
30919 #: ../src/guestfs-actions.pod:4772
30920 #, no-wrap
30921 msgid ""
30922 " int\n"
30923 " guestfs_lvresize_free (guestfs_h *g,\n"
30924 "                        const char *lv,\n"
30925 "                        int percent);\n"
30926 "\n"
30927 msgstr ""
30928
30929 #. type: textblock
30930 #: ../src/guestfs-actions.pod:4785
30931 msgid "(Added in 1.3.3)"
30932 msgstr ""
30933
30934 #. type: =head2
30935 #: ../src/guestfs-actions.pod:4787
30936 msgid "guestfs_lvs"
30937 msgstr ""
30938
30939 #. type: verbatim
30940 #: ../src/guestfs-actions.pod:4789
30941 #, no-wrap
30942 msgid ""
30943 " char **\n"
30944 " guestfs_lvs (guestfs_h *g);\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs-actions.pod:4798
30950 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30951 msgstr ""
30952
30953 #. type: =head2
30954 #: ../src/guestfs-actions.pod:4806
30955 msgid "guestfs_lvs_full"
30956 msgstr ""
30957
30958 #. type: verbatim
30959 #: ../src/guestfs-actions.pod:4808
30960 #, no-wrap
30961 msgid ""
30962 " struct guestfs_lvm_lv_list *\n"
30963 " guestfs_lvs_full (guestfs_h *g);\n"
30964 "\n"
30965 msgstr ""
30966
30967 #. type: textblock
30968 #: ../src/guestfs-actions.pod:4814
30969 msgid ""
30970 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30971 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30972 msgstr ""
30973
30974 #. type: =head2
30975 #: ../src/guestfs-actions.pod:4820
30976 msgid "guestfs_lvuuid"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs-actions.pod:4822
30981 #, no-wrap
30982 msgid ""
30983 " char *\n"
30984 " guestfs_lvuuid (guestfs_h *g,\n"
30985 "                 const char *device);\n"
30986 "\n"
30987 msgstr ""
30988
30989 #. type: =head2
30990 #: ../src/guestfs-actions.pod:4833
30991 msgid "guestfs_lxattrlist"
30992 msgstr ""
30993
30994 #. type: verbatim
30995 #: ../src/guestfs-actions.pod:4835
30996 #, no-wrap
30997 msgid ""
30998 " struct guestfs_xattr_list *\n"
30999 " guestfs_lxattrlist (guestfs_h *g,\n"
31000 "                     const char *path,\n"
31001 "                     char *const *names);\n"
31002 "\n"
31003 msgstr ""
31004
31005 #. type: textblock
31006 #: ../src/guestfs-actions.pod:4854
31007 msgid ""
31008 "This call is intended for programs that want to efficiently list a directory "
31009 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
31010 "a similarly efficient call for getting standard stats.  Very long directory "
31011 "listings might cause the protocol message size to be exceeded, causing this "
31012 "call to fail.  The caller must split up such requests into smaller groups of "
31013 "names."
31014 msgstr ""
31015
31016 #. type: =head2
31017 #: ../src/guestfs-actions.pod:4868
31018 msgid "guestfs_mdadm_create"
31019 msgstr ""
31020
31021 #. type: verbatim
31022 #: ../src/guestfs-actions.pod:4870
31023 #, no-wrap
31024 msgid ""
31025 " int\n"
31026 " guestfs_mdadm_create (guestfs_h *g,\n"
31027 "                       const char *name,\n"
31028 "                       char *const *devices,\n"
31029 "                       ...);\n"
31030 "\n"
31031 msgstr ""
31032
31033 #. type: verbatim
31034 #: ../src/guestfs-actions.pod:4881
31035 #, no-wrap
31036 msgid ""
31037 " GUESTFS_MDADM_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
31038 " GUESTFS_MDADM_CREATE_NRDEVICES, int nrdevices,\n"
31039 " GUESTFS_MDADM_CREATE_SPARE, int spare,\n"
31040 " GUESTFS_MDADM_CREATE_CHUNK, int64_t chunk,\n"
31041 " GUESTFS_MDADM_CREATE_LEVEL, const char *level,\n"
31042 "\n"
31043 msgstr ""
31044
31045 #. type: =head2
31046 #: ../src/guestfs-actions.pod:4943
31047 msgid "guestfs_mdadm_create_va"
31048 msgstr ""
31049
31050 #. type: verbatim
31051 #: ../src/guestfs-actions.pod:4945
31052 #, no-wrap
31053 msgid ""
31054 " int\n"
31055 " guestfs_mdadm_create_va (guestfs_h *g,\n"
31056 "                          const char *name,\n"
31057 "                          char *const *devices,\n"
31058 "                          va_list args);\n"
31059 "\n"
31060 msgstr ""
31061
31062 #. type: textblock
31063 #: ../src/guestfs-actions.pod:4951
31064 msgid "This is the \"va_list variant\" of L</guestfs_mdadm_create>."
31065 msgstr ""
31066
31067 #. type: =head2
31068 #: ../src/guestfs-actions.pod:4955
31069 msgid "guestfs_mdadm_create_argv"
31070 msgstr ""
31071
31072 #. type: verbatim
31073 #: ../src/guestfs-actions.pod:4957
31074 #, no-wrap
31075 msgid ""
31076 " int\n"
31077 " guestfs_mdadm_create_argv (guestfs_h *g,\n"
31078 "                            const char *name,\n"
31079 "                            char *const *devices,\n"
31080 "                            const struct guestfs_mdadm_create_argv *optargs);\n"
31081 "\n"
31082 msgstr ""
31083
31084 #. type: textblock
31085 #: ../src/guestfs-actions.pod:4963
31086 msgid "This is the \"argv variant\" of L</guestfs_mdadm_create>."
31087 msgstr ""
31088
31089 #. type: =head2
31090 #: ../src/guestfs-actions.pod:4967
31091 msgid "guestfs_mdadm_detail"
31092 msgstr ""
31093
31094 #. type: verbatim
31095 #: ../src/guestfs-actions.pod:4969
31096 #, no-wrap
31097 msgid ""
31098 " char **\n"
31099 " guestfs_mdadm_detail (guestfs_h *g,\n"
31100 "                       const char *md);\n"
31101 "\n"
31102 msgstr ""
31103
31104 #. type: =head2
31105 #: ../src/guestfs-actions.pod:5006
31106 msgid "guestfs_mkdir"
31107 msgstr ""
31108
31109 #. type: verbatim
31110 #: ../src/guestfs-actions.pod:5008
31111 #, no-wrap
31112 msgid ""
31113 " int\n"
31114 " guestfs_mkdir (guestfs_h *g,\n"
31115 "                const char *path);\n"
31116 "\n"
31117 msgstr ""
31118
31119 #. type: =head2
31120 #: ../src/guestfs-actions.pod:5018
31121 msgid "guestfs_mkdir_mode"
31122 msgstr ""
31123
31124 #. type: verbatim
31125 #: ../src/guestfs-actions.pod:5020
31126 #, no-wrap
31127 msgid ""
31128 " int\n"
31129 " guestfs_mkdir_mode (guestfs_h *g,\n"
31130 "                     const char *path,\n"
31131 "                     int mode);\n"
31132 "\n"
31133 msgstr ""
31134
31135 #. type: textblock
31136 #: ../src/guestfs-actions.pod:5032
31137 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
31138 msgstr ""
31139
31140 #. type: =head2
31141 #: ../src/guestfs-actions.pod:5038
31142 msgid "guestfs_mkdir_p"
31143 msgstr ""
31144
31145 #. type: verbatim
31146 #: ../src/guestfs-actions.pod:5040
31147 #, no-wrap
31148 msgid ""
31149 " int\n"
31150 " guestfs_mkdir_p (guestfs_h *g,\n"
31151 "                  const char *path);\n"
31152 "\n"
31153 msgstr ""
31154
31155 #. type: =head2
31156 #: ../src/guestfs-actions.pod:5051
31157 msgid "guestfs_mkdtemp"
31158 msgstr ""
31159
31160 #. type: verbatim
31161 #: ../src/guestfs-actions.pod:5053
31162 #, no-wrap
31163 msgid ""
31164 " char *\n"
31165 " guestfs_mkdtemp (guestfs_h *g,\n"
31166 "                  const char *template);\n"
31167 "\n"
31168 msgstr ""
31169
31170 #. type: =head2
31171 #: ../src/guestfs-actions.pod:5081
31172 msgid "guestfs_mke2fs_J"
31173 msgstr ""
31174
31175 #. type: verbatim
31176 #: ../src/guestfs-actions.pod:5083
31177 #, no-wrap
31178 msgid ""
31179 " int\n"
31180 " guestfs_mke2fs_J (guestfs_h *g,\n"
31181 "                   const char *fstype,\n"
31182 "                   int blocksize,\n"
31183 "                   const char *device,\n"
31184 "                   const char *journal);\n"
31185 "\n"
31186 msgstr ""
31187
31188 #. type: textblock
31189 #: ../src/guestfs-actions.pod:5096
31190 msgid "See also C<guestfs_mke2journal>."
31191 msgstr ""
31192
31193 #. type: textblock
31194 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5118
31195 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5152
31196 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5180
31197 #: ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5516
31198 msgid "(Added in 1.0.68)"
31199 msgstr ""
31200
31201 #. type: =head2
31202 #: ../src/guestfs-actions.pod:5102
31203 msgid "guestfs_mke2fs_JL"
31204 msgstr ""
31205
31206 #. type: verbatim
31207 #: ../src/guestfs-actions.pod:5104
31208 #, no-wrap
31209 msgid ""
31210 " int\n"
31211 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31212 "                    const char *fstype,\n"
31213 "                    int blocksize,\n"
31214 "                    const char *device,\n"
31215 "                    const char *label);\n"
31216 "\n"
31217 msgstr ""
31218
31219 #. type: textblock
31220 #: ../src/guestfs-actions.pod:5114
31221 msgid "See also C<guestfs_mke2journal_L>."
31222 msgstr ""
31223
31224 #. type: =head2
31225 #: ../src/guestfs-actions.pod:5120
31226 msgid "guestfs_mke2fs_JU"
31227 msgstr ""
31228
31229 #. type: verbatim
31230 #: ../src/guestfs-actions.pod:5122
31231 #, no-wrap
31232 msgid ""
31233 " int\n"
31234 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31235 "                    const char *fstype,\n"
31236 "                    int blocksize,\n"
31237 "                    const char *device,\n"
31238 "                    const char *uuid);\n"
31239 "\n"
31240 msgstr ""
31241
31242 #. type: textblock
31243 #: ../src/guestfs-actions.pod:5132
31244 msgid "See also C<guestfs_mke2journal_U>."
31245 msgstr ""
31246
31247 #. type: =head2
31248 #: ../src/guestfs-actions.pod:5138
31249 msgid "guestfs_mke2journal"
31250 msgstr ""
31251
31252 #. type: verbatim
31253 #: ../src/guestfs-actions.pod:5140
31254 #, no-wrap
31255 msgid ""
31256 " int\n"
31257 " guestfs_mke2journal (guestfs_h *g,\n"
31258 "                      int blocksize,\n"
31259 "                      const char *device);\n"
31260 "\n"
31261 msgstr ""
31262
31263 #. type: =head2
31264 #: ../src/guestfs-actions.pod:5154
31265 msgid "guestfs_mke2journal_L"
31266 msgstr ""
31267
31268 #. type: verbatim
31269 #: ../src/guestfs-actions.pod:5156
31270 #, no-wrap
31271 msgid ""
31272 " int\n"
31273 " guestfs_mke2journal_L (guestfs_h *g,\n"
31274 "                        int blocksize,\n"
31275 "                        const char *label,\n"
31276 "                        const char *device);\n"
31277 "\n"
31278 msgstr ""
31279
31280 #. type: =head2
31281 #: ../src/guestfs-actions.pod:5168
31282 msgid "guestfs_mke2journal_U"
31283 msgstr ""
31284
31285 #. type: verbatim
31286 #: ../src/guestfs-actions.pod:5170
31287 #, no-wrap
31288 msgid ""
31289 " int\n"
31290 " guestfs_mke2journal_U (guestfs_h *g,\n"
31291 "                        int blocksize,\n"
31292 "                        const char *uuid,\n"
31293 "                        const char *device);\n"
31294 "\n"
31295 msgstr ""
31296
31297 #. type: =head2
31298 #: ../src/guestfs-actions.pod:5182
31299 msgid "guestfs_mkfifo"
31300 msgstr ""
31301
31302 #. type: verbatim
31303 #: ../src/guestfs-actions.pod:5184
31304 #, no-wrap
31305 msgid ""
31306 " int\n"
31307 " guestfs_mkfifo (guestfs_h *g,\n"
31308 "                 int mode,\n"
31309 "                 const char *path);\n"
31310 "\n"
31311 msgstr ""
31312
31313 #. type: textblock
31314 #: ../src/guestfs-actions.pod:5189
31315 msgid ""
31316 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31317 "is just a convenient wrapper around C<guestfs_mknod>."
31318 msgstr ""
31319
31320 #. type: =head2
31321 #: ../src/guestfs-actions.pod:5199
31322 msgid "guestfs_mkfs"
31323 msgstr ""
31324
31325 #. type: verbatim
31326 #: ../src/guestfs-actions.pod:5201
31327 #, no-wrap
31328 msgid ""
31329 " int\n"
31330 " guestfs_mkfs (guestfs_h *g,\n"
31331 "               const char *fstype,\n"
31332 "               const char *device);\n"
31333 "\n"
31334 msgstr ""
31335
31336 #. type: =head2
31337 #: ../src/guestfs-actions.pod:5214
31338 msgid "guestfs_mkfs_b"
31339 msgstr ""
31340
31341 #. type: verbatim
31342 #: ../src/guestfs-actions.pod:5216
31343 #, no-wrap
31344 msgid ""
31345 " int\n"
31346 " guestfs_mkfs_b (guestfs_h *g,\n"
31347 "                 const char *fstype,\n"
31348 "                 int blocksize,\n"
31349 "                 const char *device);\n"
31350 "\n"
31351 msgstr ""
31352
31353 #. type: textblock
31354 #: ../src/guestfs-actions.pod:5222
31355 msgid ""
31356 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31357 "call instead."
31358 msgstr ""
31359
31360 #. type: textblock
31361 #: ../src/guestfs-actions.pod:5229
31362 msgid ""
31363 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31364 "block size of the resulting filesystem.  Supported block sizes depend on the "
31365 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31366 msgstr ""
31367
31368 #. type: =head2
31369 #: ../src/guestfs-actions.pod:5241
31370 msgid "guestfs_mkfs_opts"
31371 msgstr ""
31372
31373 #. type: verbatim
31374 #: ../src/guestfs-actions.pod:5243
31375 #, no-wrap
31376 msgid ""
31377 " int\n"
31378 " guestfs_mkfs_opts (guestfs_h *g,\n"
31379 "                    const char *fstype,\n"
31380 "                    const char *device,\n"
31381 "                    ...);\n"
31382 "\n"
31383 msgstr ""
31384
31385 #. type: verbatim
31386 #: ../src/guestfs-actions.pod:5254
31387 #, no-wrap
31388 msgid ""
31389 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31390 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31391 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31392 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31393 "\n"
31394 msgstr ""
31395
31396 #. type: textblock
31397 #: ../src/guestfs-actions.pod:5302
31398 msgid "(Added in 1.7.19)"
31399 msgstr ""
31400
31401 #. type: =head2
31402 #: ../src/guestfs-actions.pod:5304
31403 msgid "guestfs_mkfs_opts_va"
31404 msgstr ""
31405
31406 #. type: verbatim
31407 #: ../src/guestfs-actions.pod:5306
31408 #, no-wrap
31409 msgid ""
31410 " int\n"
31411 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31412 "                       const char *fstype,\n"
31413 "                       const char *device,\n"
31414 "                       va_list args);\n"
31415 "\n"
31416 msgstr ""
31417
31418 #. type: textblock
31419 #: ../src/guestfs-actions.pod:5312
31420 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31421 msgstr ""
31422
31423 #. type: =head2
31424 #: ../src/guestfs-actions.pod:5316
31425 msgid "guestfs_mkfs_opts_argv"
31426 msgstr ""
31427
31428 #. type: verbatim
31429 #: ../src/guestfs-actions.pod:5318
31430 #, no-wrap
31431 msgid ""
31432 " int\n"
31433 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31434 "                         const char *fstype,\n"
31435 "                         const char *device,\n"
31436 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31437 "\n"
31438 msgstr ""
31439
31440 #. type: textblock
31441 #: ../src/guestfs-actions.pod:5324
31442 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31443 msgstr ""
31444
31445 #. type: =head2
31446 #: ../src/guestfs-actions.pod:5328
31447 msgid "guestfs_mkmountpoint"
31448 msgstr ""
31449
31450 #. type: verbatim
31451 #: ../src/guestfs-actions.pod:5330
31452 #, no-wrap
31453 msgid ""
31454 " int\n"
31455 " guestfs_mkmountpoint (guestfs_h *g,\n"
31456 "                       const char *exemptpath);\n"
31457 "\n"
31458 msgstr ""
31459
31460 #. type: textblock
31461 #: ../src/guestfs-actions.pod:5334
31462 msgid ""
31463 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31464 "that can be used to create extra mountpoints before mounting the first "
31465 "filesystem."
31466 msgstr ""
31467
31468 #. type: textblock
31469 #: ../src/guestfs-actions.pod:5358
31470 msgid ""
31471 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31472 "may get unexpected errors if you try to mix these calls.  It is safest to "
31473 "manually unmount filesystems and remove mountpoints after use."
31474 msgstr ""
31475
31476 #. type: textblock
31477 #: ../src/guestfs-actions.pod:5362
31478 msgid ""
31479 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31480 "first, so for this to work for manual mountpoints, you must ensure that the "
31481 "innermost mountpoints have the longest pathnames, as in the example code "
31482 "above."
31483 msgstr ""
31484
31485 #. type: textblock
31486 #: ../src/guestfs-actions.pod:5369
31487 msgid ""
31488 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31489 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31490 "can also trigger these issues."
31491 msgstr ""
31492
31493 #. type: textblock
31494 #: ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5681
31495 #: ../src/guestfs-actions.pod:6708
31496 msgid "(Added in 1.0.62)"
31497 msgstr ""
31498
31499 #. type: =head2
31500 #: ../src/guestfs-actions.pod:5377
31501 msgid "guestfs_mknod"
31502 msgstr ""
31503
31504 #. type: verbatim
31505 #: ../src/guestfs-actions.pod:5379
31506 #, no-wrap
31507 msgid ""
31508 " int\n"
31509 " guestfs_mknod (guestfs_h *g,\n"
31510 "                int mode,\n"
31511 "                int devmajor,\n"
31512 "                int devminor,\n"
31513 "                const char *path);\n"
31514 "\n"
31515 msgstr ""
31516
31517 #. type: textblock
31518 #: ../src/guestfs-actions.pod:5394
31519 msgid ""
31520 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31521 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31522 "regular file).  These constants are available in the standard Linux header "
31523 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31524 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31525 "the appropriate constant for you."
31526 msgstr ""
31527
31528 #. type: =head2
31529 #: ../src/guestfs-actions.pod:5408
31530 msgid "guestfs_mknod_b"
31531 msgstr ""
31532
31533 #. type: verbatim
31534 #: ../src/guestfs-actions.pod:5410
31535 #, no-wrap
31536 msgid ""
31537 " int\n"
31538 " guestfs_mknod_b (guestfs_h *g,\n"
31539 "                  int mode,\n"
31540 "                  int devmajor,\n"
31541 "                  int devminor,\n"
31542 "                  const char *path);\n"
31543 "\n"
31544 msgstr ""
31545
31546 #. type: textblock
31547 #: ../src/guestfs-actions.pod:5417
31548 msgid ""
31549 "This call creates a block device node called C<path> with mode C<mode> and "
31550 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31551 "wrapper around C<guestfs_mknod>."
31552 msgstr ""
31553
31554 #. type: =head2
31555 #: ../src/guestfs-actions.pod:5427
31556 msgid "guestfs_mknod_c"
31557 msgstr ""
31558
31559 #. type: verbatim
31560 #: ../src/guestfs-actions.pod:5429
31561 #, no-wrap
31562 msgid ""
31563 " int\n"
31564 " guestfs_mknod_c (guestfs_h *g,\n"
31565 "                  int mode,\n"
31566 "                  int devmajor,\n"
31567 "                  int devminor,\n"
31568 "                  const char *path);\n"
31569 "\n"
31570 msgstr ""
31571
31572 #. type: textblock
31573 #: ../src/guestfs-actions.pod:5436
31574 msgid ""
31575 "This call creates a char device node called C<path> with mode C<mode> and "
31576 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31577 "wrapper around C<guestfs_mknod>."
31578 msgstr ""
31579
31580 #. type: =head2
31581 #: ../src/guestfs-actions.pod:5446
31582 msgid "guestfs_mkswap"
31583 msgstr ""
31584
31585 #. type: verbatim
31586 #: ../src/guestfs-actions.pod:5448
31587 #, no-wrap
31588 msgid ""
31589 " int\n"
31590 " guestfs_mkswap (guestfs_h *g,\n"
31591 "                 const char *device);\n"
31592 "\n"
31593 msgstr ""
31594
31595 #. type: =head2
31596 #: ../src/guestfs-actions.pod:5458
31597 msgid "guestfs_mkswap_L"
31598 msgstr ""
31599
31600 #. type: verbatim
31601 #: ../src/guestfs-actions.pod:5460
31602 #, no-wrap
31603 msgid ""
31604 " int\n"
31605 " guestfs_mkswap_L (guestfs_h *g,\n"
31606 "                   const char *label,\n"
31607 "                   const char *device);\n"
31608 "\n"
31609 msgstr ""
31610
31611 #. type: =head2
31612 #: ../src/guestfs-actions.pod:5475
31613 msgid "guestfs_mkswap_U"
31614 msgstr ""
31615
31616 #. type: verbatim
31617 #: ../src/guestfs-actions.pod:5477
31618 #, no-wrap
31619 msgid ""
31620 " int\n"
31621 " guestfs_mkswap_U (guestfs_h *g,\n"
31622 "                   const char *uuid,\n"
31623 "                   const char *device);\n"
31624 "\n"
31625 msgstr ""
31626
31627 #. type: =head2
31628 #: ../src/guestfs-actions.pod:5488
31629 msgid "guestfs_mkswap_file"
31630 msgstr ""
31631
31632 #. type: verbatim
31633 #: ../src/guestfs-actions.pod:5490
31634 #, no-wrap
31635 msgid ""
31636 " int\n"
31637 " guestfs_mkswap_file (guestfs_h *g,\n"
31638 "                      const char *path);\n"
31639 "\n"
31640 msgstr ""
31641
31642 #. type: textblock
31643 #: ../src/guestfs-actions.pod:5496
31644 msgid ""
31645 "This command just writes a swap file signature to an existing file.  To "
31646 "create the file itself, use something like C<guestfs_fallocate>."
31647 msgstr ""
31648
31649 #. type: =head2
31650 #: ../src/guestfs-actions.pod:5503
31651 msgid "guestfs_modprobe"
31652 msgstr ""
31653
31654 #. type: verbatim
31655 #: ../src/guestfs-actions.pod:5505
31656 #, no-wrap
31657 msgid ""
31658 " int\n"
31659 " guestfs_modprobe (guestfs_h *g,\n"
31660 "                   const char *modulename);\n"
31661 "\n"
31662 msgstr ""
31663
31664 #. type: =head2
31665 #: ../src/guestfs-actions.pod:5518
31666 msgid "guestfs_mount"
31667 msgstr ""
31668
31669 #. type: verbatim
31670 #: ../src/guestfs-actions.pod:5520
31671 #, no-wrap
31672 msgid ""
31673 " int\n"
31674 " guestfs_mount (guestfs_h *g,\n"
31675 "                const char *device,\n"
31676 "                const char *mountpoint);\n"
31677 "\n"
31678 msgstr ""
31679
31680 #. type: textblock
31681 #: ../src/guestfs-actions.pod:5539
31682 msgid ""
31683 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31684 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31685 "problems for users.  If your program might need to work with older versions "
31686 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31687 "for the first parameter if you don't want any options)."
31688 msgstr ""
31689
31690 #. type: =head2
31691 #: ../src/guestfs-actions.pod:5550
31692 msgid "guestfs_mount_9p"
31693 msgstr ""
31694
31695 #. type: verbatim
31696 #: ../src/guestfs-actions.pod:5552
31697 #, no-wrap
31698 msgid ""
31699 " int\n"
31700 " guestfs_mount_9p (guestfs_h *g,\n"
31701 "                   const char *mounttag,\n"
31702 "                   const char *mountpoint,\n"
31703 "                   ...);\n"
31704 "\n"
31705 msgstr ""
31706
31707 #. type: verbatim
31708 #: ../src/guestfs-actions.pod:5563
31709 #, no-wrap
31710 msgid ""
31711 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31712 "\n"
31713 msgstr ""
31714
31715 #. type: =head2
31716 #: ../src/guestfs-actions.pod:5576
31717 msgid "guestfs_mount_9p_va"
31718 msgstr ""
31719
31720 #. type: verbatim
31721 #: ../src/guestfs-actions.pod:5578
31722 #, no-wrap
31723 msgid ""
31724 " int\n"
31725 " guestfs_mount_9p_va (guestfs_h *g,\n"
31726 "                      const char *mounttag,\n"
31727 "                      const char *mountpoint,\n"
31728 "                      va_list args);\n"
31729 "\n"
31730 msgstr ""
31731
31732 #. type: textblock
31733 #: ../src/guestfs-actions.pod:5584
31734 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31735 msgstr ""
31736
31737 #. type: =head2
31738 #: ../src/guestfs-actions.pod:5588
31739 msgid "guestfs_mount_9p_argv"
31740 msgstr ""
31741
31742 #. type: verbatim
31743 #: ../src/guestfs-actions.pod:5590
31744 #, no-wrap
31745 msgid ""
31746 " int\n"
31747 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31748 "                        const char *mounttag,\n"
31749 "                        const char *mountpoint,\n"
31750 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31751 "\n"
31752 msgstr ""
31753
31754 #. type: textblock
31755 #: ../src/guestfs-actions.pod:5596
31756 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31757 msgstr ""
31758
31759 #. type: =head2
31760 #: ../src/guestfs-actions.pod:5600
31761 msgid "guestfs_mount_loop"
31762 msgstr ""
31763
31764 #. type: verbatim
31765 #: ../src/guestfs-actions.pod:5602
31766 #, no-wrap
31767 msgid ""
31768 " int\n"
31769 " guestfs_mount_loop (guestfs_h *g,\n"
31770 "                     const char *file,\n"
31771 "                     const char *mountpoint);\n"
31772 "\n"
31773 msgstr ""
31774
31775 #. type: =head2
31776 #: ../src/guestfs-actions.pod:5615
31777 msgid "guestfs_mount_options"
31778 msgstr ""
31779
31780 #. type: verbatim
31781 #: ../src/guestfs-actions.pod:5617
31782 #, no-wrap
31783 msgid ""
31784 " int\n"
31785 " guestfs_mount_options (guestfs_h *g,\n"
31786 "                        const char *options,\n"
31787 "                        const char *device,\n"
31788 "                        const char *mountpoint);\n"
31789 "\n"
31790 msgstr ""
31791
31792 #. type: textblock
31793 #: ../src/guestfs-actions.pod:5623
31794 msgid ""
31795 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31796 "the mount options as for the L<mount(8)> I<-o> flag."
31797 msgstr ""
31798
31799 #. type: textblock
31800 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5647
31801 #: ../src/guestfs-actions.pod:5664
31802 msgid "(Added in 1.0.10)"
31803 msgstr ""
31804
31805 #. type: =head2
31806 #: ../src/guestfs-actions.pod:5635
31807 msgid "guestfs_mount_ro"
31808 msgstr ""
31809
31810 #. type: verbatim
31811 #: ../src/guestfs-actions.pod:5637
31812 #, no-wrap
31813 msgid ""
31814 " int\n"
31815 " guestfs_mount_ro (guestfs_h *g,\n"
31816 "                   const char *device,\n"
31817 "                   const char *mountpoint);\n"
31818 "\n"
31819 msgstr ""
31820
31821 #. type: textblock
31822 #: ../src/guestfs-actions.pod:5642
31823 msgid ""
31824 "This is the same as the C<guestfs_mount> command, but it mounts the "
31825 "filesystem with the read-only (I<-o ro>) flag."
31826 msgstr ""
31827
31828 #. type: =head2
31829 #: ../src/guestfs-actions.pod:5649
31830 msgid "guestfs_mount_vfs"
31831 msgstr ""
31832
31833 #. type: verbatim
31834 #: ../src/guestfs-actions.pod:5651
31835 #, no-wrap
31836 msgid ""
31837 " int\n"
31838 " guestfs_mount_vfs (guestfs_h *g,\n"
31839 "                    const char *options,\n"
31840 "                    const char *vfstype,\n"
31841 "                    const char *device,\n"
31842 "                    const char *mountpoint);\n"
31843 "\n"
31844 msgstr ""
31845
31846 #. type: textblock
31847 #: ../src/guestfs-actions.pod:5658
31848 msgid ""
31849 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31850 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31851 "t> flags."
31852 msgstr ""
31853
31854 #. type: =head2
31855 #: ../src/guestfs-actions.pod:5666
31856 msgid "guestfs_mountpoints"
31857 msgstr ""
31858
31859 #. type: verbatim
31860 #: ../src/guestfs-actions.pod:5668
31861 #, no-wrap
31862 msgid ""
31863 " char **\n"
31864 " guestfs_mountpoints (guestfs_h *g);\n"
31865 "\n"
31866 msgstr ""
31867
31868 #. type: textblock
31869 #: ../src/guestfs-actions.pod:5671
31870 msgid ""
31871 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31872 "devices.  This one returns a hash table (map) of device name to directory "
31873 "where the device is mounted."
31874 msgstr ""
31875
31876 #. type: =head2
31877 #: ../src/guestfs-actions.pod:5683
31878 msgid "guestfs_mounts"
31879 msgstr ""
31880
31881 #. type: verbatim
31882 #: ../src/guestfs-actions.pod:5685
31883 #, no-wrap
31884 msgid ""
31885 " char **\n"
31886 " guestfs_mounts (guestfs_h *g);\n"
31887 "\n"
31888 msgstr ""
31889
31890 #. type: textblock
31891 #: ../src/guestfs-actions.pod:5693
31892 msgid "See also: C<guestfs_mountpoints>"
31893 msgstr ""
31894
31895 #. type: =head2
31896 #: ../src/guestfs-actions.pod:5701
31897 msgid "guestfs_mv"
31898 msgstr ""
31899
31900 #. type: verbatim
31901 #: ../src/guestfs-actions.pod:5703
31902 #, no-wrap
31903 msgid ""
31904 " int\n"
31905 " guestfs_mv (guestfs_h *g,\n"
31906 "             const char *src,\n"
31907 "             const char *dest);\n"
31908 "\n"
31909 msgstr ""
31910
31911 #. type: =head2
31912 #: ../src/guestfs-actions.pod:5715
31913 msgid "guestfs_ntfs_3g_probe"
31914 msgstr ""
31915
31916 #. type: verbatim
31917 #: ../src/guestfs-actions.pod:5717
31918 #, no-wrap
31919 msgid ""
31920 " int\n"
31921 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31922 "                        int rw,\n"
31923 "                        const char *device);\n"
31924 "\n"
31925 msgstr ""
31926
31927 #. type: textblock
31928 #: ../src/guestfs-actions.pod:5736
31929 msgid "(Added in 1.0.43)"
31930 msgstr ""
31931
31932 #. type: =head2
31933 #: ../src/guestfs-actions.pod:5738
31934 msgid "guestfs_ntfsresize"
31935 msgstr ""
31936
31937 #. type: verbatim
31938 #: ../src/guestfs-actions.pod:5740
31939 #, no-wrap
31940 msgid ""
31941 " int\n"
31942 " guestfs_ntfsresize (guestfs_h *g,\n"
31943 "                     const char *device);\n"
31944 "\n"
31945 msgstr ""
31946
31947 #. type: textblock
31948 #: ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5844
31949 msgid ""
31950 "I<This function is deprecated.> In new code, use the L</"
31951 "guestfs_ntfsresize_opts> call instead."
31952 msgstr ""
31953
31954 #. type: =head2
31955 #: ../src/guestfs-actions.pod:5768
31956 msgid "guestfs_ntfsresize_opts"
31957 msgstr ""
31958
31959 #. type: verbatim
31960 #: ../src/guestfs-actions.pod:5770
31961 #, no-wrap
31962 msgid ""
31963 " int\n"
31964 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31965 "                          const char *device,\n"
31966 "                          ...);\n"
31967 "\n"
31968 msgstr ""
31969
31970 #. type: verbatim
31971 #: ../src/guestfs-actions.pod:5780
31972 #, no-wrap
31973 msgid ""
31974 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31975 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31976 "\n"
31977 msgstr ""
31978
31979 #. type: textblock
31980 #: ../src/guestfs-actions.pod:5800
31981 msgid ""
31982 "After the resize operation, the filesystem is always marked as requiring a "
31983 "consistency check (for safety).  You have to boot into Windows to perform "
31984 "this check and clear this condition.  If you I<don't> set the C<force> "
31985 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31986 "times on a single filesystem without booting into Windows between each "
31987 "resize."
31988 msgstr ""
31989
31990 #. type: =head2
31991 #: ../src/guestfs-actions.pod:5815
31992 msgid "guestfs_ntfsresize_opts_va"
31993 msgstr ""
31994
31995 #. type: verbatim
31996 #: ../src/guestfs-actions.pod:5817
31997 #, no-wrap
31998 msgid ""
31999 " int\n"
32000 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
32001 "                             const char *device,\n"
32002 "                             va_list args);\n"
32003 "\n"
32004 msgstr ""
32005
32006 #. type: textblock
32007 #: ../src/guestfs-actions.pod:5822
32008 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
32009 msgstr ""
32010
32011 #. type: =head2
32012 #: ../src/guestfs-actions.pod:5826
32013 msgid "guestfs_ntfsresize_opts_argv"
32014 msgstr ""
32015
32016 #. type: verbatim
32017 #: ../src/guestfs-actions.pod:5828
32018 #, no-wrap
32019 msgid ""
32020 " int\n"
32021 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
32022 "                               const char *device,\n"
32023 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
32024 "\n"
32025 msgstr ""
32026
32027 #. type: textblock
32028 #: ../src/guestfs-actions.pod:5833
32029 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
32030 msgstr ""
32031
32032 #. type: =head2
32033 #: ../src/guestfs-actions.pod:5837
32034 msgid "guestfs_ntfsresize_size"
32035 msgstr ""
32036
32037 #. type: verbatim
32038 #: ../src/guestfs-actions.pod:5839
32039 #, no-wrap
32040 msgid ""
32041 " int\n"
32042 " guestfs_ntfsresize_size (guestfs_h *g,\n"
32043 "                          const char *device,\n"
32044 "                          int64_t size);\n"
32045 "\n"
32046 msgstr ""
32047
32048 #. type: textblock
32049 #: ../src/guestfs-actions.pod:5851
32050 msgid ""
32051 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
32052 "to specify the new size (in bytes) explicitly."
32053 msgstr ""
32054
32055 #. type: textblock
32056 #: ../src/guestfs-actions.pod:5856 ../src/guestfs-actions.pod:6315
32057 #: ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:6656
32058 #: ../src/guestfs-actions.pod:8403
32059 msgid "(Added in 1.3.14)"
32060 msgstr ""
32061
32062 #. type: =head2
32063 #: ../src/guestfs-actions.pod:5858
32064 msgid "guestfs_part_add"
32065 msgstr ""
32066
32067 #. type: verbatim
32068 #: ../src/guestfs-actions.pod:5860
32069 #, no-wrap
32070 msgid ""
32071 " int\n"
32072 " guestfs_part_add (guestfs_h *g,\n"
32073 "                   const char *device,\n"
32074 "                   const char *prlogex,\n"
32075 "                   int64_t startsect,\n"
32076 "                   int64_t endsect);\n"
32077 "\n"
32078 msgstr ""
32079
32080 #. type: textblock
32081 #: ../src/guestfs-actions.pod:5867
32082 msgid ""
32083 "This command adds a partition to C<device>.  If there is no partition table "
32084 "on the device, call C<guestfs_part_init> first."
32085 msgstr ""
32086
32087 #. type: textblock
32088 #: ../src/guestfs-actions.pod:5879
32089 msgid ""
32090 "Creating a partition which covers the whole disk is not so easy.  Use "
32091 "C<guestfs_part_disk> to do that."
32092 msgstr ""
32093
32094 #. type: textblock
32095 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5919
32096 #: ../src/guestfs-actions.pod:5972 ../src/guestfs-actions.pod:6056
32097 #: ../src/guestfs-actions.pod:6094 ../src/guestfs-actions.pod:6113
32098 #: ../src/guestfs-actions.pod:6153
32099 msgid "(Added in 1.0.78)"
32100 msgstr ""
32101
32102 #. type: =head2
32103 #: ../src/guestfs-actions.pod:5886
32104 msgid "guestfs_part_del"
32105 msgstr ""
32106
32107 #. type: verbatim
32108 #: ../src/guestfs-actions.pod:5888
32109 #, no-wrap
32110 msgid ""
32111 " int\n"
32112 " guestfs_part_del (guestfs_h *g,\n"
32113 "                   const char *device,\n"
32114 "                   int partnum);\n"
32115 "\n"
32116 msgstr ""
32117
32118 #. type: =head2
32119 #: ../src/guestfs-actions.pod:5903
32120 msgid "guestfs_part_disk"
32121 msgstr ""
32122
32123 #. type: verbatim
32124 #: ../src/guestfs-actions.pod:5905
32125 #, no-wrap
32126 msgid ""
32127 " int\n"
32128 " guestfs_part_disk (guestfs_h *g,\n"
32129 "                    const char *device,\n"
32130 "                    const char *parttype);\n"
32131 "\n"
32132 msgstr ""
32133
32134 #. type: textblock
32135 #: ../src/guestfs-actions.pod:5910
32136 msgid ""
32137 "This command is simply a combination of C<guestfs_part_init> followed by "
32138 "C<guestfs_part_add> to create a single primary partition covering the whole "
32139 "disk."
32140 msgstr ""
32141
32142 #. type: textblock
32143 #: ../src/guestfs-actions.pod:5914
32144 msgid ""
32145 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32146 "possible values are described in C<guestfs_part_init>."
32147 msgstr ""
32148
32149 #. type: =head2
32150 #: ../src/guestfs-actions.pod:5921
32151 msgid "guestfs_part_get_bootable"
32152 msgstr ""
32153
32154 #. type: verbatim
32155 #: ../src/guestfs-actions.pod:5923
32156 #, no-wrap
32157 msgid ""
32158 " int\n"
32159 " guestfs_part_get_bootable (guestfs_h *g,\n"
32160 "                            const char *device,\n"
32161 "                            int partnum);\n"
32162 "\n"
32163 msgstr ""
32164
32165 #. type: textblock
32166 #: ../src/guestfs-actions.pod:5931
32167 msgid "See also C<guestfs_part_set_bootable>."
32168 msgstr ""
32169
32170 #. type: =head2
32171 #: ../src/guestfs-actions.pod:5937
32172 msgid "guestfs_part_get_mbr_id"
32173 msgstr ""
32174
32175 #. type: verbatim
32176 #: ../src/guestfs-actions.pod:5939
32177 #, no-wrap
32178 msgid ""
32179 " int\n"
32180 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32181 "                          const char *device,\n"
32182 "                          int partnum);\n"
32183 "\n"
32184 msgstr ""
32185
32186 #. type: textblock
32187 #: ../src/guestfs-actions.pod:5947 ../src/guestfs-actions.pod:6129
32188 msgid ""
32189 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32190 "undefined results for other partition table types (see "
32191 "C<guestfs_part_get_parttype>)."
32192 msgstr ""
32193
32194 #. type: =head2
32195 #: ../src/guestfs-actions.pod:5955
32196 msgid "guestfs_part_get_parttype"
32197 msgstr ""
32198
32199 #. type: verbatim
32200 #: ../src/guestfs-actions.pod:5957
32201 #, no-wrap
32202 msgid ""
32203 " char *\n"
32204 " guestfs_part_get_parttype (guestfs_h *g,\n"
32205 "                            const char *device);\n"
32206 "\n"
32207 msgstr ""
32208
32209 #. type: textblock
32210 #: ../src/guestfs-actions.pod:5964
32211 msgid ""
32212 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32213 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32214 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32215 msgstr ""
32216
32217 #. type: =head2
32218 #: ../src/guestfs-actions.pod:5974
32219 msgid "guestfs_part_init"
32220 msgstr ""
32221
32222 #. type: verbatim
32223 #: ../src/guestfs-actions.pod:5976
32224 #, no-wrap
32225 msgid ""
32226 " int\n"
32227 " guestfs_part_init (guestfs_h *g,\n"
32228 "                    const char *device,\n"
32229 "                    const char *parttype);\n"
32230 "\n"
32231 msgstr ""
32232
32233 #. type: textblock
32234 #: ../src/guestfs-actions.pod:5985
32235 msgid ""
32236 "Initially there are no partitions.  Following this, you should call "
32237 "C<guestfs_part_add> for each partition required."
32238 msgstr ""
32239
32240 #. type: =head2
32241 #: ../src/guestfs-actions.pod:6058
32242 msgid "guestfs_part_list"
32243 msgstr ""
32244
32245 #. type: verbatim
32246 #: ../src/guestfs-actions.pod:6060
32247 #, no-wrap
32248 msgid ""
32249 " struct guestfs_partition_list *\n"
32250 " guestfs_part_list (guestfs_h *g,\n"
32251 "                    const char *device);\n"
32252 "\n"
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs-actions.pod:6077
32257 msgid ""
32258 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32259 "the device's sector size, see C<guestfs_blockdev_getss>."
32260 msgstr ""
32261
32262 #. type: textblock
32263 #: ../src/guestfs-actions.pod:6090
32264 msgid ""
32265 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32266 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32267 "use>."
32268 msgstr ""
32269
32270 #. type: =head2
32271 #: ../src/guestfs-actions.pod:6096
32272 msgid "guestfs_part_set_bootable"
32273 msgstr ""
32274
32275 #. type: verbatim
32276 #: ../src/guestfs-actions.pod:6098
32277 #, no-wrap
32278 msgid ""
32279 " int\n"
32280 " guestfs_part_set_bootable (guestfs_h *g,\n"
32281 "                            const char *device,\n"
32282 "                            int partnum,\n"
32283 "                            int bootable);\n"
32284 "\n"
32285 msgstr ""
32286
32287 #. type: =head2
32288 #: ../src/guestfs-actions.pod:6115
32289 msgid "guestfs_part_set_mbr_id"
32290 msgstr ""
32291
32292 #. type: verbatim
32293 #: ../src/guestfs-actions.pod:6117
32294 #, no-wrap
32295 msgid ""
32296 " int\n"
32297 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32298 "                          const char *device,\n"
32299 "                          int partnum,\n"
32300 "                          int idbyte);\n"
32301 "\n"
32302 msgstr ""
32303
32304 #. type: =head2
32305 #: ../src/guestfs-actions.pod:6137
32306 msgid "guestfs_part_set_name"
32307 msgstr ""
32308
32309 #. type: verbatim
32310 #: ../src/guestfs-actions.pod:6139
32311 #, no-wrap
32312 msgid ""
32313 " int\n"
32314 " guestfs_part_set_name (guestfs_h *g,\n"
32315 "                        const char *device,\n"
32316 "                        int partnum,\n"
32317 "                        const char *name);\n"
32318 "\n"
32319 msgstr ""
32320
32321 #. type: =head2
32322 #: ../src/guestfs-actions.pod:6155
32323 msgid "guestfs_part_to_dev"
32324 msgstr ""
32325
32326 #. type: verbatim
32327 #: ../src/guestfs-actions.pod:6157
32328 #, no-wrap
32329 msgid ""
32330 " char *\n"
32331 " guestfs_part_to_dev (guestfs_h *g,\n"
32332 "                      const char *partition);\n"
32333 "\n"
32334 msgstr ""
32335
32336 #. type: textblock
32337 #: ../src/guestfs-actions.pod:6165 ../src/guestfs-actions.pod:6184
32338 msgid ""
32339 "The named partition must exist, for example as a string returned from "
32340 "C<guestfs_list_partitions>."
32341 msgstr ""
32342
32343 #. type: textblock
32344 #: ../src/guestfs-actions.pod:6168
32345 msgid "See also C<guestfs_part_to_partnum>."
32346 msgstr ""
32347
32348 #. type: =head2
32349 #: ../src/guestfs-actions.pod:6175
32350 msgid "guestfs_part_to_partnum"
32351 msgstr ""
32352
32353 #. type: verbatim
32354 #: ../src/guestfs-actions.pod:6177
32355 #, no-wrap
32356 msgid ""
32357 " int\n"
32358 " guestfs_part_to_partnum (guestfs_h *g,\n"
32359 "                          const char *partition);\n"
32360 "\n"
32361 msgstr ""
32362
32363 #. type: textblock
32364 #: ../src/guestfs-actions.pod:6187
32365 msgid "See also C<guestfs_part_to_dev>."
32366 msgstr ""
32367
32368 #. type: =head2
32369 #: ../src/guestfs-actions.pod:6193
32370 msgid "guestfs_ping_daemon"
32371 msgstr ""
32372
32373 #. type: verbatim
32374 #: ../src/guestfs-actions.pod:6195
32375 #, no-wrap
32376 msgid ""
32377 " int\n"
32378 " guestfs_ping_daemon (guestfs_h *g);\n"
32379 "\n"
32380 msgstr ""
32381
32382 #. type: =head2
32383 #: ../src/guestfs-actions.pod:6207
32384 msgid "guestfs_pread"
32385 msgstr ""
32386
32387 #. type: verbatim
32388 #: ../src/guestfs-actions.pod:6209
32389 #, no-wrap
32390 msgid ""
32391 " char *\n"
32392 " guestfs_pread (guestfs_h *g,\n"
32393 "                const char *path,\n"
32394 "                int count,\n"
32395 "                int64_t offset,\n"
32396 "                size_t *size_r);\n"
32397 "\n"
32398 msgstr ""
32399
32400 #. type: textblock
32401 #: ../src/guestfs-actions.pod:6222
32402 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32403 msgstr ""
32404
32405 #. type: =head2
32406 #: ../src/guestfs-actions.pod:6233
32407 msgid "guestfs_pread_device"
32408 msgstr ""
32409
32410 #. type: verbatim
32411 #: ../src/guestfs-actions.pod:6235
32412 #, no-wrap
32413 msgid ""
32414 " char *\n"
32415 " guestfs_pread_device (guestfs_h *g,\n"
32416 "                       const char *device,\n"
32417 "                       int count,\n"
32418 "                       int64_t offset,\n"
32419 "                       size_t *size_r);\n"
32420 "\n"
32421 msgstr ""
32422
32423 #. type: textblock
32424 #: ../src/guestfs-actions.pod:6248
32425 msgid "See also C<guestfs_pread>."
32426 msgstr ""
32427
32428 #. type: textblock
32429 #: ../src/guestfs-actions.pod:6257
32430 msgid "(Added in 1.5.21)"
32431 msgstr ""
32432
32433 #. type: =head2
32434 #: ../src/guestfs-actions.pod:6259
32435 msgid "guestfs_pvcreate"
32436 msgstr ""
32437
32438 #. type: verbatim
32439 #: ../src/guestfs-actions.pod:6261
32440 #, no-wrap
32441 msgid ""
32442 " int\n"
32443 " guestfs_pvcreate (guestfs_h *g,\n"
32444 "                   const char *device);\n"
32445 "\n"
32446 msgstr ""
32447
32448 #. type: =head2
32449 #: ../src/guestfs-actions.pod:6273
32450 msgid "guestfs_pvremove"
32451 msgstr ""
32452
32453 #. type: verbatim
32454 #: ../src/guestfs-actions.pod:6275
32455 #, no-wrap
32456 msgid ""
32457 " int\n"
32458 " guestfs_pvremove (guestfs_h *g,\n"
32459 "                   const char *device);\n"
32460 "\n"
32461 msgstr ""
32462
32463 #. type: =head2
32464 #: ../src/guestfs-actions.pod:6290
32465 msgid "guestfs_pvresize"
32466 msgstr ""
32467
32468 #. type: verbatim
32469 #: ../src/guestfs-actions.pod:6292
32470 #, no-wrap
32471 msgid ""
32472 " int\n"
32473 " guestfs_pvresize (guestfs_h *g,\n"
32474 "                   const char *device);\n"
32475 "\n"
32476 msgstr ""
32477
32478 #. type: =head2
32479 #: ../src/guestfs-actions.pod:6303
32480 msgid "guestfs_pvresize_size"
32481 msgstr ""
32482
32483 #. type: verbatim
32484 #: ../src/guestfs-actions.pod:6305
32485 #, no-wrap
32486 msgid ""
32487 " int\n"
32488 " guestfs_pvresize_size (guestfs_h *g,\n"
32489 "                        const char *device,\n"
32490 "                        int64_t size);\n"
32491 "\n"
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs-actions.pod:6310
32496 msgid ""
32497 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32498 "specify the new size (in bytes) explicitly."
32499 msgstr ""
32500
32501 #. type: =head2
32502 #: ../src/guestfs-actions.pod:6317
32503 msgid "guestfs_pvs"
32504 msgstr ""
32505
32506 #. type: verbatim
32507 #: ../src/guestfs-actions.pod:6319
32508 #, no-wrap
32509 msgid ""
32510 " char **\n"
32511 " guestfs_pvs (guestfs_h *g);\n"
32512 "\n"
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs-actions.pod:6328
32517 msgid "See also C<guestfs_pvs_full>."
32518 msgstr ""
32519
32520 #. type: =head2
32521 #: ../src/guestfs-actions.pod:6336
32522 msgid "guestfs_pvs_full"
32523 msgstr ""
32524
32525 #. type: verbatim
32526 #: ../src/guestfs-actions.pod:6338
32527 #, no-wrap
32528 msgid ""
32529 " struct guestfs_lvm_pv_list *\n"
32530 " guestfs_pvs_full (guestfs_h *g);\n"
32531 "\n"
32532 msgstr ""
32533
32534 #. type: textblock
32535 #: ../src/guestfs-actions.pod:6344
32536 msgid ""
32537 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32538 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32539 msgstr ""
32540
32541 #. type: =head2
32542 #: ../src/guestfs-actions.pod:6350
32543 msgid "guestfs_pvuuid"
32544 msgstr ""
32545
32546 #. type: verbatim
32547 #: ../src/guestfs-actions.pod:6352
32548 #, no-wrap
32549 msgid ""
32550 " char *\n"
32551 " guestfs_pvuuid (guestfs_h *g,\n"
32552 "                 const char *device);\n"
32553 "\n"
32554 msgstr ""
32555
32556 #. type: =head2
32557 #: ../src/guestfs-actions.pod:6363
32558 msgid "guestfs_pwrite"
32559 msgstr ""
32560
32561 #. type: verbatim
32562 #: ../src/guestfs-actions.pod:6365
32563 #, no-wrap
32564 msgid ""
32565 " int\n"
32566 " guestfs_pwrite (guestfs_h *g,\n"
32567 "                 const char *path,\n"
32568 "                 const char *content,\n"
32569 "                 size_t content_size,\n"
32570 "                 int64_t offset);\n"
32571 "\n"
32572 msgstr ""
32573
32574 #. type: textblock
32575 #: ../src/guestfs-actions.pod:6381
32576 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32577 msgstr ""
32578
32579 #. type: =head2
32580 #: ../src/guestfs-actions.pod:6390
32581 msgid "guestfs_pwrite_device"
32582 msgstr ""
32583
32584 #. type: verbatim
32585 #: ../src/guestfs-actions.pod:6392
32586 #, no-wrap
32587 msgid ""
32588 " int\n"
32589 " guestfs_pwrite_device (guestfs_h *g,\n"
32590 "                        const char *device,\n"
32591 "                        const char *content,\n"
32592 "                        size_t content_size,\n"
32593 "                        int64_t offset);\n"
32594 "\n"
32595 msgstr ""
32596
32597 #. type: textblock
32598 #: ../src/guestfs-actions.pod:6407
32599 msgid "See also C<guestfs_pwrite>."
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs-actions.pod:6414
32604 msgid "(Added in 1.5.20)"
32605 msgstr ""
32606
32607 #. type: =head2
32608 #: ../src/guestfs-actions.pod:6416
32609 msgid "guestfs_read_file"
32610 msgstr ""
32611
32612 #. type: verbatim
32613 #: ../src/guestfs-actions.pod:6418
32614 #, no-wrap
32615 msgid ""
32616 " char *\n"
32617 " guestfs_read_file (guestfs_h *g,\n"
32618 "                    const char *path,\n"
32619 "                    size_t *size_r);\n"
32620 "\n"
32621 msgstr ""
32622
32623 #. type: textblock
32624 #: ../src/guestfs-actions.pod:6426
32625 msgid ""
32626 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32627 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32628 "function is limited in the total size of file that can be handled."
32629 msgstr ""
32630
32631 #. type: textblock
32632 #: ../src/guestfs-actions.pod:6438
32633 msgid "(Added in 1.0.63)"
32634 msgstr ""
32635
32636 #. type: =head2
32637 #: ../src/guestfs-actions.pod:6440
32638 msgid "guestfs_read_lines"
32639 msgstr ""
32640
32641 #. type: verbatim
32642 #: ../src/guestfs-actions.pod:6442
32643 #, no-wrap
32644 msgid ""
32645 " char **\n"
32646 " guestfs_read_lines (guestfs_h *g,\n"
32647 "                     const char *path);\n"
32648 "\n"
32649 msgstr ""
32650
32651 #. type: textblock
32652 #: ../src/guestfs-actions.pod:6451
32653 msgid ""
32654 "Note that this function cannot correctly handle binary files (specifically, "
32655 "files containing C<\\0> character which is treated as end of line).  For "
32656 "those you need to use the C<guestfs_read_file> function which has a more "
32657 "complex interface."
32658 msgstr ""
32659
32660 #. type: =head2
32661 #: ../src/guestfs-actions.pod:6462
32662 msgid "guestfs_readdir"
32663 msgstr ""
32664
32665 #. type: verbatim
32666 #: ../src/guestfs-actions.pod:6464
32667 #, no-wrap
32668 msgid ""
32669 " struct guestfs_dirent_list *\n"
32670 " guestfs_readdir (guestfs_h *g,\n"
32671 "                  const char *dir);\n"
32672 "\n"
32673 msgstr ""
32674
32675 #. type: textblock
32676 #: ../src/guestfs-actions.pod:6518
32677 msgid ""
32678 "This function is primarily intended for use by programs.  To get a simple "
32679 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32680 "consumption, use C<guestfs_ll>."
32681 msgstr ""
32682
32683 #. type: textblock
32684 #: ../src/guestfs-actions.pod:6522
32685 msgid ""
32686 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32687 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32688 msgstr ""
32689
32690 #. type: =head2
32691 #: ../src/guestfs-actions.pod:6528
32692 msgid "guestfs_readlink"
32693 msgstr ""
32694
32695 #. type: verbatim
32696 #: ../src/guestfs-actions.pod:6530
32697 #, no-wrap
32698 msgid ""
32699 " char *\n"
32700 " guestfs_readlink (guestfs_h *g,\n"
32701 "                   const char *path);\n"
32702 "\n"
32703 msgstr ""
32704
32705 #. type: =head2
32706 #: ../src/guestfs-actions.pod:6541
32707 msgid "guestfs_readlinklist"
32708 msgstr ""
32709
32710 #. type: verbatim
32711 #: ../src/guestfs-actions.pod:6543
32712 #, no-wrap
32713 msgid ""
32714 " char **\n"
32715 " guestfs_readlinklist (guestfs_h *g,\n"
32716 "                       const char *path,\n"
32717 "                       char *const *names);\n"
32718 "\n"
32719 msgstr ""
32720
32721 #. type: =head2
32722 #: ../src/guestfs-actions.pod:6576
32723 msgid "guestfs_realpath"
32724 msgstr ""
32725
32726 #. type: verbatim
32727 #: ../src/guestfs-actions.pod:6578
32728 #, no-wrap
32729 msgid ""
32730 " char *\n"
32731 " guestfs_realpath (guestfs_h *g,\n"
32732 "                   const char *path);\n"
32733 "\n"
32734 msgstr ""
32735
32736 #. type: =head2
32737 #: ../src/guestfs-actions.pod:6590
32738 msgid "guestfs_removexattr"
32739 msgstr ""
32740
32741 #. type: verbatim
32742 #: ../src/guestfs-actions.pod:6592
32743 #, no-wrap
32744 msgid ""
32745 " int\n"
32746 " guestfs_removexattr (guestfs_h *g,\n"
32747 "                      const char *xattr,\n"
32748 "                      const char *path);\n"
32749 "\n"
32750 msgstr ""
32751
32752 #. type: textblock
32753 #: ../src/guestfs-actions.pod:6600
32754 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32755 msgstr ""
32756
32757 #. type: =head2
32758 #: ../src/guestfs-actions.pod:6606
32759 msgid "guestfs_resize2fs"
32760 msgstr ""
32761
32762 #. type: verbatim
32763 #: ../src/guestfs-actions.pod:6608
32764 #, no-wrap
32765 msgid ""
32766 " int\n"
32767 " guestfs_resize2fs (guestfs_h *g,\n"
32768 "                    const char *device);\n"
32769 "\n"
32770 msgstr ""
32771
32772 #. type: textblock
32773 #: ../src/guestfs-actions.pod:6615
32774 msgid ""
32775 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32776 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32777 "sometimes gives an error about this and sometimes not.  In any case, it is "
32778 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32779 msgstr ""
32780
32781 #. type: =head2
32782 #: ../src/guestfs-actions.pod:6625
32783 msgid "guestfs_resize2fs_M"
32784 msgstr ""
32785
32786 #. type: verbatim
32787 #: ../src/guestfs-actions.pod:6627
32788 #, no-wrap
32789 msgid ""
32790 " int\n"
32791 " guestfs_resize2fs_M (guestfs_h *g,\n"
32792 "                      const char *device);\n"
32793 "\n"
32794 msgstr ""
32795
32796 #. type: textblock
32797 #: ../src/guestfs-actions.pod:6631
32798 msgid ""
32799 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32800 "resized to its minimum size.  This works like the I<-M> option to the "
32801 "C<resize2fs> command."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs-actions.pod:6635
32806 msgid ""
32807 "To get the resulting size of the filesystem you should call "
32808 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32809 "These two numbers, multiplied together, give the resulting size of the "
32810 "minimal filesystem in bytes."
32811 msgstr ""
32812
32813 #. type: =head2
32814 #: ../src/guestfs-actions.pod:6644
32815 msgid "guestfs_resize2fs_size"
32816 msgstr ""
32817
32818 #. type: verbatim
32819 #: ../src/guestfs-actions.pod:6646
32820 #, no-wrap
32821 msgid ""
32822 " int\n"
32823 " guestfs_resize2fs_size (guestfs_h *g,\n"
32824 "                         const char *device,\n"
32825 "                         int64_t size);\n"
32826 "\n"
32827 msgstr ""
32828
32829 #. type: textblock
32830 #: ../src/guestfs-actions.pod:6651
32831 msgid ""
32832 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32833 "to specify the new size (in bytes) explicitly."
32834 msgstr ""
32835
32836 #. type: =head2
32837 #: ../src/guestfs-actions.pod:6658
32838 msgid "guestfs_rm"
32839 msgstr ""
32840
32841 #. type: verbatim
32842 #: ../src/guestfs-actions.pod:6660
32843 #, no-wrap
32844 msgid ""
32845 " int\n"
32846 " guestfs_rm (guestfs_h *g,\n"
32847 "             const char *path);\n"
32848 "\n"
32849 msgstr ""
32850
32851 #. type: =head2
32852 #: ../src/guestfs-actions.pod:6670
32853 msgid "guestfs_rm_rf"
32854 msgstr ""
32855
32856 #. type: verbatim
32857 #: ../src/guestfs-actions.pod:6672
32858 #, no-wrap
32859 msgid ""
32860 " int\n"
32861 " guestfs_rm_rf (guestfs_h *g,\n"
32862 "                const char *path);\n"
32863 "\n"
32864 msgstr ""
32865
32866 #. type: =head2
32867 #: ../src/guestfs-actions.pod:6684
32868 msgid "guestfs_rmdir"
32869 msgstr ""
32870
32871 #. type: verbatim
32872 #: ../src/guestfs-actions.pod:6686
32873 #, no-wrap
32874 msgid ""
32875 " int\n"
32876 " guestfs_rmdir (guestfs_h *g,\n"
32877 "                const char *path);\n"
32878 "\n"
32879 msgstr ""
32880
32881 #. type: =head2
32882 #: ../src/guestfs-actions.pod:6696
32883 msgid "guestfs_rmmountpoint"
32884 msgstr ""
32885
32886 #. type: verbatim
32887 #: ../src/guestfs-actions.pod:6698
32888 #, no-wrap
32889 msgid ""
32890 " int\n"
32891 " guestfs_rmmountpoint (guestfs_h *g,\n"
32892 "                       const char *exemptpath);\n"
32893 "\n"
32894 msgstr ""
32895
32896 #. type: textblock
32897 #: ../src/guestfs-actions.pod:6702
32898 msgid ""
32899 "This calls removes a mountpoint that was previously created with "
32900 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32901 msgstr ""
32902
32903 #. type: =head2
32904 #: ../src/guestfs-actions.pod:6710
32905 msgid "guestfs_scrub_device"
32906 msgstr ""
32907
32908 #. type: verbatim
32909 #: ../src/guestfs-actions.pod:6712
32910 #, no-wrap
32911 msgid ""
32912 " int\n"
32913 " guestfs_scrub_device (guestfs_h *g,\n"
32914 "                       const char *device);\n"
32915 "\n"
32916 msgstr ""
32917
32918 #. type: textblock
32919 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6742
32920 #: ../src/guestfs-actions.pod:6761
32921 msgid "(Added in 1.0.52)"
32922 msgstr ""
32923
32924 #. type: =head2
32925 #: ../src/guestfs-actions.pod:6726
32926 msgid "guestfs_scrub_file"
32927 msgstr ""
32928
32929 #. type: verbatim
32930 #: ../src/guestfs-actions.pod:6728
32931 #, no-wrap
32932 msgid ""
32933 " int\n"
32934 " guestfs_scrub_file (guestfs_h *g,\n"
32935 "                     const char *file);\n"
32936 "\n"
32937 msgstr ""
32938
32939 #. type: =head2
32940 #: ../src/guestfs-actions.pod:6744
32941 msgid "guestfs_scrub_freespace"
32942 msgstr ""
32943
32944 #. type: verbatim
32945 #: ../src/guestfs-actions.pod:6746
32946 #, no-wrap
32947 msgid ""
32948 " int\n"
32949 " guestfs_scrub_freespace (guestfs_h *g,\n"
32950 "                          const char *dir);\n"
32951 "\n"
32952 msgstr ""
32953
32954 #. type: textblock
32955 #: ../src/guestfs-actions.pod:6750
32956 msgid ""
32957 "This command creates the directory C<dir> and then fills it with files until "
32958 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32959 "and deletes them.  The intention is to scrub any free space on the partition "
32960 "containing C<dir>."
32961 msgstr ""
32962
32963 #. type: =head2
32964 #: ../src/guestfs-actions.pod:6763
32965 msgid "guestfs_set_append"
32966 msgstr ""
32967
32968 #. type: verbatim
32969 #: ../src/guestfs-actions.pod:6765
32970 #, no-wrap
32971 msgid ""
32972 " int\n"
32973 " guestfs_set_append (guestfs_h *g,\n"
32974 "                     const char *append);\n"
32975 "\n"
32976 msgstr ""
32977
32978 #. type: =head2
32979 #: ../src/guestfs-actions.pod:6782
32980 msgid "guestfs_set_attach_method"
32981 msgstr ""
32982
32983 #. type: verbatim
32984 #: ../src/guestfs-actions.pod:6784
32985 #, no-wrap
32986 msgid ""
32987 " int\n"
32988 " guestfs_set_attach_method (guestfs_h *g,\n"
32989 "                            const char *attachmethod);\n"
32990 "\n"
32991 msgstr ""
32992
32993 #. type: =head2
32994 #: ../src/guestfs-actions.pod:6812
32995 msgid "guestfs_set_autosync"
32996 msgstr ""
32997
32998 #. type: verbatim
32999 #: ../src/guestfs-actions.pod:6814
33000 #, no-wrap
33001 msgid ""
33002 " int\n"
33003 " guestfs_set_autosync (guestfs_h *g,\n"
33004 "                       int autosync);\n"
33005 "\n"
33006 msgstr ""
33007
33008 #. type: =head2
33009 #: ../src/guestfs-actions.pod:6830
33010 msgid "guestfs_set_direct"
33011 msgstr ""
33012
33013 #. type: verbatim
33014 #: ../src/guestfs-actions.pod:6832
33015 #, no-wrap
33016 msgid ""
33017 " int\n"
33018 " guestfs_set_direct (guestfs_h *g,\n"
33019 "                     int direct);\n"
33020 "\n"
33021 msgstr ""
33022
33023 #. type: textblock
33024 #: ../src/guestfs-actions.pod:6840
33025 msgid ""
33026 "One consequence of this is that log messages aren't caught by the library "
33027 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
33028 "stdout."
33029 msgstr ""
33030
33031 #. type: =head2
33032 #: ../src/guestfs-actions.pod:6853
33033 msgid "guestfs_set_e2label"
33034 msgstr ""
33035
33036 #. type: verbatim
33037 #: ../src/guestfs-actions.pod:6855
33038 #, no-wrap
33039 msgid ""
33040 " int\n"
33041 " guestfs_set_e2label (guestfs_h *g,\n"
33042 "                      const char *device,\n"
33043 "                      const char *label);\n"
33044 "\n"
33045 msgstr ""
33046
33047 #. type: textblock
33048 #: ../src/guestfs-actions.pod:6864
33049 msgid ""
33050 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
33051 "the existing label on a filesystem."
33052 msgstr ""
33053
33054 #. type: =head2
33055 #: ../src/guestfs-actions.pod:6871
33056 msgid "guestfs_set_e2uuid"
33057 msgstr ""
33058
33059 #. type: verbatim
33060 #: ../src/guestfs-actions.pod:6873
33061 #, no-wrap
33062 msgid ""
33063 " int\n"
33064 " guestfs_set_e2uuid (guestfs_h *g,\n"
33065 "                     const char *device,\n"
33066 "                     const char *uuid);\n"
33067 "\n"
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs-actions.pod:6883
33072 msgid ""
33073 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
33074 "the existing UUID of a filesystem."
33075 msgstr ""
33076
33077 #. type: =head2
33078 #: ../src/guestfs-actions.pod:6890
33079 msgid "guestfs_set_memsize"
33080 msgstr ""
33081
33082 #. type: verbatim
33083 #: ../src/guestfs-actions.pod:6892
33084 #, no-wrap
33085 msgid ""
33086 " int\n"
33087 " guestfs_set_memsize (guestfs_h *g,\n"
33088 "                      int memsize);\n"
33089 "\n"
33090 msgstr ""
33091
33092 #. type: textblock
33093 #: ../src/guestfs-actions.pod:6896
33094 msgid ""
33095 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33096 "This only has any effect if called before C<guestfs_launch>."
33097 msgstr ""
33098
33099 #. type: =head2
33100 #: ../src/guestfs-actions.pod:6911
33101 msgid "guestfs_set_network"
33102 msgstr ""
33103
33104 #. type: verbatim
33105 #: ../src/guestfs-actions.pod:6913
33106 #, no-wrap
33107 msgid ""
33108 " int\n"
33109 " guestfs_set_network (guestfs_h *g,\n"
33110 "                      int network);\n"
33111 "\n"
33112 msgstr ""
33113
33114 #. type: textblock
33115 #: ../src/guestfs-actions.pod:6923
33116 msgid ""
33117 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33118 "effect."
33119 msgstr ""
33120
33121 #. type: =head2
33122 #: ../src/guestfs-actions.pod:6930
33123 msgid "guestfs_set_path"
33124 msgstr ""
33125
33126 #. type: verbatim
33127 #: ../src/guestfs-actions.pod:6932
33128 #, no-wrap
33129 msgid ""
33130 " int\n"
33131 " guestfs_set_path (guestfs_h *g,\n"
33132 "                   const char *searchpath);\n"
33133 "\n"
33134 msgstr ""
33135
33136 #. type: =head2
33137 #: ../src/guestfs-actions.pod:6947
33138 msgid "guestfs_set_pgroup"
33139 msgstr ""
33140
33141 #. type: verbatim
33142 #: ../src/guestfs-actions.pod:6949
33143 #, no-wrap
33144 msgid ""
33145 " int\n"
33146 " guestfs_set_pgroup (guestfs_h *g,\n"
33147 "                     int pgroup);\n"
33148 "\n"
33149 msgstr ""
33150
33151 #. type: =head2
33152 #: ../src/guestfs-actions.pod:6966
33153 msgid "guestfs_set_qemu"
33154 msgstr ""
33155
33156 #. type: verbatim
33157 #: ../src/guestfs-actions.pod:6968
33158 #, no-wrap
33159 msgid ""
33160 " int\n"
33161 " guestfs_set_qemu (guestfs_h *g,\n"
33162 "                   const char *qemu);\n"
33163 "\n"
33164 msgstr ""
33165
33166 #. type: =head2
33167 #: ../src/guestfs-actions.pod:6994
33168 msgid "guestfs_set_recovery_proc"
33169 msgstr ""
33170
33171 #. type: verbatim
33172 #: ../src/guestfs-actions.pod:6996
33173 #, no-wrap
33174 msgid ""
33175 " int\n"
33176 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33177 "                            int recoveryproc);\n"
33178 "\n"
33179 msgstr ""
33180
33181 #. type: textblock
33182 #: ../src/guestfs-actions.pod:7000
33183 msgid ""
33184 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33185 "not create a recovery process.  The purpose of the recovery process is to "
33186 "stop runaway qemu processes in the case where the main program aborts "
33187 "abruptly."
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs-actions.pod:7005
33192 msgid ""
33193 "This only has any effect if called before C<guestfs_launch>, and the default "
33194 "is true."
33195 msgstr ""
33196
33197 #. type: =head2
33198 #: ../src/guestfs-actions.pod:7018
33199 msgid "guestfs_set_selinux"
33200 msgstr ""
33201
33202 #. type: verbatim
33203 #: ../src/guestfs-actions.pod:7020
33204 #, no-wrap
33205 msgid ""
33206 " int\n"
33207 " guestfs_set_selinux (guestfs_h *g,\n"
33208 "                      int selinux);\n"
33209 "\n"
33210 msgstr ""
33211
33212 #. type: =head2
33213 #: ../src/guestfs-actions.pod:7037
33214 msgid "guestfs_set_smp"
33215 msgstr ""
33216
33217 #. type: verbatim
33218 #: ../src/guestfs-actions.pod:7039
33219 #, no-wrap
33220 msgid ""
33221 " int\n"
33222 " guestfs_set_smp (guestfs_h *g,\n"
33223 "                  int smp);\n"
33224 "\n"
33225 msgstr ""
33226
33227 #. type: textblock
33228 #: ../src/guestfs-actions.pod:7047
33229 msgid "This function must be called before C<guestfs_launch>."
33230 msgstr ""
33231
33232 #. type: =head2
33233 #: ../src/guestfs-actions.pod:7053
33234 msgid "guestfs_set_trace"
33235 msgstr ""
33236
33237 #. type: verbatim
33238 #: ../src/guestfs-actions.pod:7055
33239 #, no-wrap
33240 msgid ""
33241 " int\n"
33242 " guestfs_set_trace (guestfs_h *g,\n"
33243 "                    int trace);\n"
33244 "\n"
33245 msgstr ""
33246
33247 #. type: textblock
33248 #: ../src/guestfs-actions.pod:7069
33249 msgid ""
33250 "Trace messages are normally sent to C<stderr>, unless you register a "
33251 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33252 msgstr ""
33253
33254 #. type: =head2
33255 #: ../src/guestfs-actions.pod:7077
33256 msgid "guestfs_set_verbose"
33257 msgstr ""
33258
33259 #. type: verbatim
33260 #: ../src/guestfs-actions.pod:7079
33261 #, no-wrap
33262 msgid ""
33263 " int\n"
33264 " guestfs_set_verbose (guestfs_h *g,\n"
33265 "                      int verbose);\n"
33266 "\n"
33267 msgstr ""
33268
33269 #. type: textblock
33270 #: ../src/guestfs-actions.pod:7088
33271 msgid ""
33272 "Verbose messages are normally sent to C<stderr>, unless you register a "
33273 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33274 msgstr ""
33275
33276 #. type: =head2
33277 #: ../src/guestfs-actions.pod:7096
33278 msgid "guestfs_setcon"
33279 msgstr ""
33280
33281 #. type: verbatim
33282 #: ../src/guestfs-actions.pod:7098
33283 #, no-wrap
33284 msgid ""
33285 " int\n"
33286 " guestfs_setcon (guestfs_h *g,\n"
33287 "                 const char *context);\n"
33288 "\n"
33289 msgstr ""
33290
33291 #. type: =head2
33292 #: ../src/guestfs-actions.pod:7111
33293 msgid "guestfs_setxattr"
33294 msgstr ""
33295
33296 #. type: verbatim
33297 #: ../src/guestfs-actions.pod:7113
33298 #, no-wrap
33299 msgid ""
33300 " int\n"
33301 " guestfs_setxattr (guestfs_h *g,\n"
33302 "                   const char *xattr,\n"
33303 "                   const char *val,\n"
33304 "                   int vallen,\n"
33305 "                   const char *path);\n"
33306 "\n"
33307 msgstr ""
33308
33309 #. type: textblock
33310 #: ../src/guestfs-actions.pod:7124
33311 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33312 msgstr ""
33313
33314 #. type: =head2
33315 #: ../src/guestfs-actions.pod:7130
33316 msgid "guestfs_sfdisk"
33317 msgstr ""
33318
33319 #. type: verbatim
33320 #: ../src/guestfs-actions.pod:7132
33321 #, no-wrap
33322 msgid ""
33323 " int\n"
33324 " guestfs_sfdisk (guestfs_h *g,\n"
33325 "                 const char *device,\n"
33326 "                 int cyls,\n"
33327 "                 int heads,\n"
33328 "                 int sectors,\n"
33329 "                 char *const *lines);\n"
33330 "\n"
33331 msgstr ""
33332
33333 #. type: textblock
33334 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7181
33335 #: ../src/guestfs-actions.pod:7212
33336 msgid ""
33337 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33338 "call instead."
33339 msgstr ""
33340
33341 #. type: textblock
33342 #: ../src/guestfs-actions.pod:7167
33343 msgid ""
33344 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33345 msgstr ""
33346
33347 #. type: =head2
33348 #: ../src/guestfs-actions.pod:7174
33349 msgid "guestfs_sfdiskM"
33350 msgstr ""
33351
33352 #. type: verbatim
33353 #: ../src/guestfs-actions.pod:7176
33354 #, no-wrap
33355 msgid ""
33356 " int\n"
33357 " guestfs_sfdiskM (guestfs_h *g,\n"
33358 "                  const char *device,\n"
33359 "                  char *const *lines);\n"
33360 "\n"
33361 msgstr ""
33362
33363 #. type: textblock
33364 #: ../src/guestfs-actions.pod:7188
33365 msgid ""
33366 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33367 "partition sizes are specified in megabytes only (rounded to the nearest "
33368 "cylinder) and you don't need to specify the cyls, heads and sectors "
33369 "parameters which were rarely if ever used anyway."
33370 msgstr ""
33371
33372 #. type: textblock
33373 #: ../src/guestfs-actions.pod:7194
33374 msgid ""
33375 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33376 "C<guestfs_part_disk>"
33377 msgstr ""
33378
33379 #. type: =head2
33380 #: ../src/guestfs-actions.pod:7201
33381 msgid "guestfs_sfdisk_N"
33382 msgstr ""
33383
33384 #. type: verbatim
33385 #: ../src/guestfs-actions.pod:7203
33386 #, no-wrap
33387 msgid ""
33388 " int\n"
33389 " guestfs_sfdisk_N (guestfs_h *g,\n"
33390 "                   const char *device,\n"
33391 "                   int partnum,\n"
33392 "                   int cyls,\n"
33393 "                   int heads,\n"
33394 "                   int sectors,\n"
33395 "                   const char *line);\n"
33396 "\n"
33397 msgstr ""
33398
33399 #. type: textblock
33400 #: ../src/guestfs-actions.pod:7222
33401 msgid ""
33402 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33403 "for the cyls/heads/sectors parameters."
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs-actions.pod:7225
33408 msgid "See also: C<guestfs_part_add>"
33409 msgstr ""
33410
33411 #. type: =head2
33412 #: ../src/guestfs-actions.pod:7231
33413 msgid "guestfs_sfdisk_disk_geometry"
33414 msgstr ""
33415
33416 #. type: verbatim
33417 #: ../src/guestfs-actions.pod:7233
33418 #, no-wrap
33419 msgid ""
33420 " char *\n"
33421 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33422 "                               const char *device);\n"
33423 "\n"
33424 msgstr ""
33425
33426 #. type: textblock
33427 #: ../src/guestfs-actions.pod:7237
33428 msgid ""
33429 "This displays the disk geometry of C<device> read from the partition table.  "
33430 "Especially in the case where the underlying block device has been resized, "
33431 "this can be different from the kernel's idea of the geometry (see "
33432 "C<guestfs_sfdisk_kernel_geometry>)."
33433 msgstr ""
33434
33435 #. type: =head2
33436 #: ../src/guestfs-actions.pod:7250
33437 msgid "guestfs_sfdisk_kernel_geometry"
33438 msgstr ""
33439
33440 #. type: verbatim
33441 #: ../src/guestfs-actions.pod:7252
33442 #, no-wrap
33443 msgid ""
33444 " char *\n"
33445 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33446 "                                 const char *device);\n"
33447 "\n"
33448 msgstr ""
33449
33450 #. type: =head2
33451 #: ../src/guestfs-actions.pod:7266
33452 msgid "guestfs_sfdisk_l"
33453 msgstr ""
33454
33455 #. type: verbatim
33456 #: ../src/guestfs-actions.pod:7268
33457 #, no-wrap
33458 msgid ""
33459 " char *\n"
33460 " guestfs_sfdisk_l (guestfs_h *g,\n"
33461 "                   const char *device);\n"
33462 "\n"
33463 msgstr ""
33464
33465 #. type: textblock
33466 #: ../src/guestfs-actions.pod:7272
33467 msgid ""
33468 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33469 "call instead."
33470 msgstr ""
33471
33472 #. type: textblock
33473 #: ../src/guestfs-actions.pod:7283
33474 msgid "See also: C<guestfs_part_list>"
33475 msgstr ""
33476
33477 #. type: =head2
33478 #: ../src/guestfs-actions.pod:7290
33479 msgid "guestfs_sh"
33480 msgstr ""
33481
33482 #. type: verbatim
33483 #: ../src/guestfs-actions.pod:7292
33484 #, no-wrap
33485 msgid ""
33486 " char *\n"
33487 " guestfs_sh (guestfs_h *g,\n"
33488 "             const char *command);\n"
33489 "\n"
33490 msgstr ""
33491
33492 #. type: textblock
33493 #: ../src/guestfs-actions.pod:7299
33494 msgid "This is like C<guestfs_command>, but passes the command to:"
33495 msgstr ""
33496
33497 #. type: textblock
33498 #: ../src/guestfs-actions.pod:7307
33499 msgid "All the provisos about C<guestfs_command> apply to this call."
33500 msgstr ""
33501
33502 #. type: =head2
33503 #: ../src/guestfs-actions.pod:7314
33504 msgid "guestfs_sh_lines"
33505 msgstr ""
33506
33507 #. type: verbatim
33508 #: ../src/guestfs-actions.pod:7316
33509 #, no-wrap
33510 msgid ""
33511 " char **\n"
33512 " guestfs_sh_lines (guestfs_h *g,\n"
33513 "                   const char *command);\n"
33514 "\n"
33515 msgstr ""
33516
33517 #. type: textblock
33518 #: ../src/guestfs-actions.pod:7320
33519 msgid ""
33520 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33521 "lines."
33522 msgstr ""
33523
33524 #. type: textblock
33525 #: ../src/guestfs-actions.pod:7323
33526 msgid "See also: C<guestfs_command_lines>"
33527 msgstr ""
33528
33529 #. type: =head2
33530 #: ../src/guestfs-actions.pod:7331
33531 msgid "guestfs_sleep"
33532 msgstr ""
33533
33534 #. type: verbatim
33535 #: ../src/guestfs-actions.pod:7333
33536 #, no-wrap
33537 msgid ""
33538 " int\n"
33539 " guestfs_sleep (guestfs_h *g,\n"
33540 "                int secs);\n"
33541 "\n"
33542 msgstr ""
33543
33544 #. type: textblock
33545 #: ../src/guestfs-actions.pod:7341
33546 msgid "(Added in 1.0.41)"
33547 msgstr ""
33548
33549 #. type: =head2
33550 #: ../src/guestfs-actions.pod:7343 ../src/guestfs-structs.pod:109
33551 msgid "guestfs_stat"
33552 msgstr ""
33553
33554 #. type: verbatim
33555 #: ../src/guestfs-actions.pod:7345
33556 #, no-wrap
33557 msgid ""
33558 " struct guestfs_stat *\n"
33559 " guestfs_stat (guestfs_h *g,\n"
33560 "               const char *path);\n"
33561 "\n"
33562 msgstr ""
33563
33564 #. type: =head2
33565 #: ../src/guestfs-actions.pod:7359 ../src/guestfs-structs.pod:135
33566 msgid "guestfs_statvfs"
33567 msgstr ""
33568
33569 #. type: verbatim
33570 #: ../src/guestfs-actions.pod:7361
33571 #, no-wrap
33572 msgid ""
33573 " struct guestfs_statvfs *\n"
33574 " guestfs_statvfs (guestfs_h *g,\n"
33575 "                  const char *path);\n"
33576 "\n"
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../src/guestfs-actions.pod:7371
33581 msgid ""
33582 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33583 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33584 msgstr ""
33585
33586 #. type: =head2
33587 #: ../src/guestfs-actions.pod:7377
33588 msgid "guestfs_strings"
33589 msgstr ""
33590
33591 #. type: verbatim
33592 #: ../src/guestfs-actions.pod:7379
33593 #, no-wrap
33594 msgid ""
33595 " char **\n"
33596 " guestfs_strings (guestfs_h *g,\n"
33597 "                  const char *path);\n"
33598 "\n"
33599 msgstr ""
33600
33601 #. type: =head2
33602 #: ../src/guestfs-actions.pod:7395
33603 msgid "guestfs_strings_e"
33604 msgstr ""
33605
33606 #. type: verbatim
33607 #: ../src/guestfs-actions.pod:7397
33608 #, no-wrap
33609 msgid ""
33610 " char **\n"
33611 " guestfs_strings_e (guestfs_h *g,\n"
33612 "                    const char *encoding,\n"
33613 "                    const char *path);\n"
33614 "\n"
33615 msgstr ""
33616
33617 #. type: textblock
33618 #: ../src/guestfs-actions.pod:7402
33619 msgid ""
33620 "This is like the C<guestfs_strings> command, but allows you to specify the "
33621 "encoding of strings that are looked for in the source file C<path>."
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs-actions.pod:7412
33626 msgid ""
33627 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33628 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33629 msgstr ""
33630
33631 #. type: =head2
33632 #: ../src/guestfs-actions.pod:7450
33633 msgid "guestfs_swapoff_device"
33634 msgstr ""
33635
33636 #. type: verbatim
33637 #: ../src/guestfs-actions.pod:7452
33638 #, no-wrap
33639 msgid ""
33640 " int\n"
33641 " guestfs_swapoff_device (guestfs_h *g,\n"
33642 "                         const char *device);\n"
33643 "\n"
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs-actions.pod:7456
33648 msgid ""
33649 "This command disables the libguestfs appliance swap device or partition "
33650 "named C<device>.  See C<guestfs_swapon_device>."
33651 msgstr ""
33652
33653 #. type: =head2
33654 #: ../src/guestfs-actions.pod:7464
33655 msgid "guestfs_swapoff_file"
33656 msgstr ""
33657
33658 #. type: verbatim
33659 #: ../src/guestfs-actions.pod:7466
33660 #, no-wrap
33661 msgid ""
33662 " int\n"
33663 " guestfs_swapoff_file (guestfs_h *g,\n"
33664 "                       const char *file);\n"
33665 "\n"
33666 msgstr ""
33667
33668 #. type: =head2
33669 #: ../src/guestfs-actions.pod:7476
33670 msgid "guestfs_swapoff_label"
33671 msgstr ""
33672
33673 #. type: verbatim
33674 #: ../src/guestfs-actions.pod:7478
33675 #, no-wrap
33676 msgid ""
33677 " int\n"
33678 " guestfs_swapoff_label (guestfs_h *g,\n"
33679 "                        const char *label);\n"
33680 "\n"
33681 msgstr ""
33682
33683 #. type: =head2
33684 #: ../src/guestfs-actions.pod:7489
33685 msgid "guestfs_swapoff_uuid"
33686 msgstr ""
33687
33688 #. type: verbatim
33689 #: ../src/guestfs-actions.pod:7491
33690 #, no-wrap
33691 msgid ""
33692 " int\n"
33693 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33694 "                       const char *uuid);\n"
33695 "\n"
33696 msgstr ""
33697
33698 #. type: =head2
33699 #: ../src/guestfs-actions.pod:7502
33700 msgid "guestfs_swapon_device"
33701 msgstr ""
33702
33703 #. type: verbatim
33704 #: ../src/guestfs-actions.pod:7504
33705 #, no-wrap
33706 msgid ""
33707 " int\n"
33708 " guestfs_swapon_device (guestfs_h *g,\n"
33709 "                        const char *device);\n"
33710 "\n"
33711 msgstr ""
33712
33713 #. type: textblock
33714 #: ../src/guestfs-actions.pod:7508
33715 msgid ""
33716 "This command enables the libguestfs appliance to use the swap device or "
33717 "partition named C<device>.  The increased memory is made available for all "
33718 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33719 msgstr ""
33720
33721 #. type: =head2
33722 #: ../src/guestfs-actions.pod:7524
33723 msgid "guestfs_swapon_file"
33724 msgstr ""
33725
33726 #. type: verbatim
33727 #: ../src/guestfs-actions.pod:7526
33728 #, no-wrap
33729 msgid ""
33730 " int\n"
33731 " guestfs_swapon_file (guestfs_h *g,\n"
33732 "                      const char *file);\n"
33733 "\n"
33734 msgstr ""
33735
33736 #. type: textblock
33737 #: ../src/guestfs-actions.pod:7530
33738 msgid ""
33739 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33740 "notes."
33741 msgstr ""
33742
33743 #. type: =head2
33744 #: ../src/guestfs-actions.pod:7537
33745 msgid "guestfs_swapon_label"
33746 msgstr ""
33747
33748 #. type: verbatim
33749 #: ../src/guestfs-actions.pod:7539
33750 #, no-wrap
33751 msgid ""
33752 " int\n"
33753 " guestfs_swapon_label (guestfs_h *g,\n"
33754 "                       const char *label);\n"
33755 "\n"
33756 msgstr ""
33757
33758 #. type: textblock
33759 #: ../src/guestfs-actions.pod:7543
33760 msgid ""
33761 "This command enables swap to a labeled swap partition.  See "
33762 "C<guestfs_swapon_device> for other notes."
33763 msgstr ""
33764
33765 #. type: =head2
33766 #: ../src/guestfs-actions.pod:7550
33767 msgid "guestfs_swapon_uuid"
33768 msgstr ""
33769
33770 #. type: verbatim
33771 #: ../src/guestfs-actions.pod:7552
33772 #, no-wrap
33773 msgid ""
33774 " int\n"
33775 " guestfs_swapon_uuid (guestfs_h *g,\n"
33776 "                      const char *uuid);\n"
33777 "\n"
33778 msgstr ""
33779
33780 #. type: textblock
33781 #: ../src/guestfs-actions.pod:7556
33782 msgid ""
33783 "This command enables swap to a swap partition with the given UUID.  See "
33784 "C<guestfs_swapon_device> for other notes."
33785 msgstr ""
33786
33787 #. type: =head2
33788 #: ../src/guestfs-actions.pod:7563
33789 msgid "guestfs_sync"
33790 msgstr ""
33791
33792 #. type: verbatim
33793 #: ../src/guestfs-actions.pod:7565
33794 #, no-wrap
33795 msgid ""
33796 " int\n"
33797 " guestfs_sync (guestfs_h *g);\n"
33798 "\n"
33799 msgstr ""
33800
33801 #. type: =head2
33802 #: ../src/guestfs-actions.pod:7578
33803 msgid "guestfs_tail"
33804 msgstr ""
33805
33806 #. type: verbatim
33807 #: ../src/guestfs-actions.pod:7580
33808 #, no-wrap
33809 msgid ""
33810 " char **\n"
33811 " guestfs_tail (guestfs_h *g,\n"
33812 "               const char *path);\n"
33813 "\n"
33814 msgstr ""
33815
33816 #. type: =head2
33817 #: ../src/guestfs-actions.pod:7596
33818 msgid "guestfs_tail_n"
33819 msgstr ""
33820
33821 #. type: verbatim
33822 #: ../src/guestfs-actions.pod:7598
33823 #, no-wrap
33824 msgid ""
33825 " char **\n"
33826 " guestfs_tail_n (guestfs_h *g,\n"
33827 "                 int nrlines,\n"
33828 "                 const char *path);\n"
33829 "\n"
33830 msgstr ""
33831
33832 #. type: =head2
33833 #: ../src/guestfs-actions.pod:7620
33834 msgid "guestfs_tar_in"
33835 msgstr ""
33836
33837 #. type: verbatim
33838 #: ../src/guestfs-actions.pod:7622
33839 #, no-wrap
33840 msgid ""
33841 " int\n"
33842 " guestfs_tar_in (guestfs_h *g,\n"
33843 "                 const char *tarfile,\n"
33844 "                 const char *directory);\n"
33845 "\n"
33846 msgstr ""
33847
33848 #. type: textblock
33849 #: ../src/guestfs-actions.pod:7630
33850 msgid ""
33851 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33852 msgstr ""
33853
33854 #. type: textblock
33855 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7652
33856 #: ../src/guestfs-actions.pod:7668 ../src/guestfs-actions.pod:7684
33857 msgid "(Added in 1.0.3)"
33858 msgstr ""
33859
33860 #. type: =head2
33861 #: ../src/guestfs-actions.pod:7637
33862 msgid "guestfs_tar_out"
33863 msgstr ""
33864
33865 #. type: verbatim
33866 #: ../src/guestfs-actions.pod:7639
33867 #, no-wrap
33868 msgid ""
33869 " int\n"
33870 " guestfs_tar_out (guestfs_h *g,\n"
33871 "                  const char *directory,\n"
33872 "                  const char *tarfile);\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: textblock
33877 #: ../src/guestfs-actions.pod:7647
33878 msgid ""
33879 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33880 "C<guestfs_txz_out>."
33881 msgstr ""
33882
33883 #. type: =head2
33884 #: ../src/guestfs-actions.pod:7654
33885 msgid "guestfs_tgz_in"
33886 msgstr ""
33887
33888 #. type: verbatim
33889 #: ../src/guestfs-actions.pod:7656
33890 #, no-wrap
33891 msgid ""
33892 " int\n"
33893 " guestfs_tgz_in (guestfs_h *g,\n"
33894 "                 const char *tarball,\n"
33895 "                 const char *directory);\n"
33896 "\n"
33897 msgstr ""
33898
33899 #. type: textblock
33900 #: ../src/guestfs-actions.pod:7664
33901 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33902 msgstr ""
33903
33904 #. type: =head2
33905 #: ../src/guestfs-actions.pod:7670
33906 msgid "guestfs_tgz_out"
33907 msgstr ""
33908
33909 #. type: verbatim
33910 #: ../src/guestfs-actions.pod:7672
33911 #, no-wrap
33912 msgid ""
33913 " int\n"
33914 " guestfs_tgz_out (guestfs_h *g,\n"
33915 "                  const char *directory,\n"
33916 "                  const char *tarball);\n"
33917 "\n"
33918 msgstr ""
33919
33920 #. type: textblock
33921 #: ../src/guestfs-actions.pod:7680
33922 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33923 msgstr ""
33924
33925 #. type: =head2
33926 #: ../src/guestfs-actions.pod:7686
33927 msgid "guestfs_touch"
33928 msgstr ""
33929
33930 #. type: verbatim
33931 #: ../src/guestfs-actions.pod:7688
33932 #, no-wrap
33933 msgid ""
33934 " int\n"
33935 " guestfs_touch (guestfs_h *g,\n"
33936 "                const char *path);\n"
33937 "\n"
33938 msgstr ""
33939
33940 #. type: =head2
33941 #: ../src/guestfs-actions.pod:7703
33942 msgid "guestfs_truncate"
33943 msgstr ""
33944
33945 #. type: verbatim
33946 #: ../src/guestfs-actions.pod:7705
33947 #, no-wrap
33948 msgid ""
33949 " int\n"
33950 " guestfs_truncate (guestfs_h *g,\n"
33951 "                   const char *path);\n"
33952 "\n"
33953 msgstr ""
33954
33955 #. type: =head2
33956 #: ../src/guestfs-actions.pod:7716
33957 msgid "guestfs_truncate_size"
33958 msgstr ""
33959
33960 #. type: verbatim
33961 #: ../src/guestfs-actions.pod:7718
33962 #, no-wrap
33963 msgid ""
33964 " int\n"
33965 " guestfs_truncate_size (guestfs_h *g,\n"
33966 "                        const char *path,\n"
33967 "                        int64_t size);\n"
33968 "\n"
33969 msgstr ""
33970
33971 #. type: textblock
33972 #: ../src/guestfs-actions.pod:7726
33973 msgid ""
33974 "If the current file size is less than C<size> then the file is extended to "
33975 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33976 "blocks are not allocated for the file until you write to it).  To create a "
33977 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33978 msgstr ""
33979
33980 #. type: =head2
33981 #: ../src/guestfs-actions.pod:7736
33982 msgid "guestfs_tune2fs"
33983 msgstr ""
33984
33985 #. type: verbatim
33986 #: ../src/guestfs-actions.pod:7738
33987 #, no-wrap
33988 msgid ""
33989 " int\n"
33990 " guestfs_tune2fs (guestfs_h *g,\n"
33991 "                  const char *device,\n"
33992 "                  ...);\n"
33993 "\n"
33994 msgstr ""
33995
33996 #. type: verbatim
33997 #: ../src/guestfs-actions.pod:7748
33998 #, no-wrap
33999 msgid ""
34000 " GUESTFS_TUNE2FS_FORCE, int force,\n"
34001 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
34002 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
34003 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
34004 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
34005 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
34006 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
34007 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
34008 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
34009 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
34010 "\n"
34011 msgstr ""
34012
34013 #. type: textblock
34014 #: ../src/guestfs-actions.pod:7828
34015 msgid ""
34016 "To get the current values of filesystem parameters, see "
34017 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
34018 "L<tune2fs(8)> man page."
34019 msgstr ""
34020
34021 #. type: =head2
34022 #: ../src/guestfs-actions.pod:7834
34023 msgid "guestfs_tune2fs_va"
34024 msgstr ""
34025
34026 #. type: verbatim
34027 #: ../src/guestfs-actions.pod:7836
34028 #, no-wrap
34029 msgid ""
34030 " int\n"
34031 " guestfs_tune2fs_va (guestfs_h *g,\n"
34032 "                     const char *device,\n"
34033 "                     va_list args);\n"
34034 "\n"
34035 msgstr ""
34036
34037 #. type: textblock
34038 #: ../src/guestfs-actions.pod:7841
34039 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
34040 msgstr ""
34041
34042 #. type: =head2
34043 #: ../src/guestfs-actions.pod:7845
34044 msgid "guestfs_tune2fs_argv"
34045 msgstr ""
34046
34047 #. type: verbatim
34048 #: ../src/guestfs-actions.pod:7847
34049 #, no-wrap
34050 msgid ""
34051 " int\n"
34052 " guestfs_tune2fs_argv (guestfs_h *g,\n"
34053 "                       const char *device,\n"
34054 "                       const struct guestfs_tune2fs_argv *optargs);\n"
34055 "\n"
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs-actions.pod:7852
34060 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
34061 msgstr ""
34062
34063 #. type: =head2
34064 #: ../src/guestfs-actions.pod:7856
34065 msgid "guestfs_tune2fs_l"
34066 msgstr ""
34067
34068 #. type: verbatim
34069 #: ../src/guestfs-actions.pod:7858
34070 #, no-wrap
34071 msgid ""
34072 " char **\n"
34073 " guestfs_tune2fs_l (guestfs_h *g,\n"
34074 "                    const char *device);\n"
34075 "\n"
34076 msgstr ""
34077
34078 #. type: =head2
34079 #: ../src/guestfs-actions.pod:7878
34080 msgid "guestfs_txz_in"
34081 msgstr ""
34082
34083 #. type: verbatim
34084 #: ../src/guestfs-actions.pod:7880
34085 #, no-wrap
34086 msgid ""
34087 " int\n"
34088 " guestfs_txz_in (guestfs_h *g,\n"
34089 "                 const char *tarball,\n"
34090 "                 const char *directory);\n"
34091 "\n"
34092 msgstr ""
34093
34094 #. type: =head2
34095 #: ../src/guestfs-actions.pod:7892
34096 msgid "guestfs_txz_out"
34097 msgstr ""
34098
34099 #. type: verbatim
34100 #: ../src/guestfs-actions.pod:7894
34101 #, no-wrap
34102 msgid ""
34103 " int\n"
34104 " guestfs_txz_out (guestfs_h *g,\n"
34105 "                  const char *directory,\n"
34106 "                  const char *tarball);\n"
34107 "\n"
34108 msgstr ""
34109
34110 #. type: =head2
34111 #: ../src/guestfs-actions.pod:7906
34112 msgid "guestfs_umask"
34113 msgstr ""
34114
34115 #. type: verbatim
34116 #: ../src/guestfs-actions.pod:7908
34117 #, no-wrap
34118 msgid ""
34119 " int\n"
34120 " guestfs_umask (guestfs_h *g,\n"
34121 "                int mask);\n"
34122 "\n"
34123 msgstr ""
34124
34125 #. type: textblock
34126 #: ../src/guestfs-actions.pod:7924
34127 msgid ""
34128 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
34129 "C<guestfs_mkdir>."
34130 msgstr ""
34131
34132 #. type: =head2
34133 #: ../src/guestfs-actions.pod:7933
34134 msgid "guestfs_umount"
34135 msgstr ""
34136
34137 #. type: verbatim
34138 #: ../src/guestfs-actions.pod:7935
34139 #, no-wrap
34140 msgid ""
34141 " int\n"
34142 " guestfs_umount (guestfs_h *g,\n"
34143 "                 const char *pathordevice);\n"
34144 "\n"
34145 msgstr ""
34146
34147 #. type: =head2
34148 #: ../src/guestfs-actions.pod:7947
34149 msgid "guestfs_umount_all"
34150 msgstr ""
34151
34152 #. type: verbatim
34153 #: ../src/guestfs-actions.pod:7949
34154 #, no-wrap
34155 msgid ""
34156 " int\n"
34157 " guestfs_umount_all (guestfs_h *g);\n"
34158 "\n"
34159 msgstr ""
34160
34161 #. type: =head2
34162 #: ../src/guestfs-actions.pod:7960
34163 msgid "guestfs_upload"
34164 msgstr ""
34165
34166 #. type: verbatim
34167 #: ../src/guestfs-actions.pod:7962
34168 #, no-wrap
34169 msgid ""
34170 " int\n"
34171 " guestfs_upload (guestfs_h *g,\n"
34172 "                 const char *filename,\n"
34173 "                 const char *remotefilename);\n"
34174 "\n"
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs-actions.pod:7972
34179 msgid "See also C<guestfs_download>."
34180 msgstr ""
34181
34182 #. type: =head2
34183 #: ../src/guestfs-actions.pod:7983
34184 msgid "guestfs_upload_offset"
34185 msgstr ""
34186
34187 #. type: verbatim
34188 #: ../src/guestfs-actions.pod:7985
34189 #, no-wrap
34190 msgid ""
34191 " int\n"
34192 " guestfs_upload_offset (guestfs_h *g,\n"
34193 "                        const char *filename,\n"
34194 "                        const char *remotefilename,\n"
34195 "                        int64_t offset);\n"
34196 "\n"
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs-actions.pod:8001
34201 msgid ""
34202 "Note that there is no limit on the amount of data that can be uploaded with "
34203 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34204 "full amount unless an error occurs."
34205 msgstr ""
34206
34207 #. type: textblock
34208 #: ../src/guestfs-actions.pod:8006
34209 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34210 msgstr ""
34211
34212 #. type: =head2
34213 #: ../src/guestfs-actions.pod:8017
34214 msgid "guestfs_utimens"
34215 msgstr ""
34216
34217 #. type: verbatim
34218 #: ../src/guestfs-actions.pod:8019
34219 #, no-wrap
34220 msgid ""
34221 " int\n"
34222 " guestfs_utimens (guestfs_h *g,\n"
34223 "                  const char *path,\n"
34224 "                  int64_t atsecs,\n"
34225 "                  int64_t atnsecs,\n"
34226 "                  int64_t mtsecs,\n"
34227 "                  int64_t mtnsecs);\n"
34228 "\n"
34229 msgstr ""
34230
34231 #. type: =head2
34232 #: ../src/guestfs-actions.pod:8048 ../src/guestfs-structs.pod:175
34233 msgid "guestfs_version"
34234 msgstr ""
34235
34236 #. type: verbatim
34237 #: ../src/guestfs-actions.pod:8050
34238 #, no-wrap
34239 msgid ""
34240 " struct guestfs_version *\n"
34241 " guestfs_version (guestfs_h *g);\n"
34242 "\n"
34243 msgstr ""
34244
34245 #. type: textblock
34246 #: ../src/guestfs-actions.pod:8078
34247 msgid ""
34248 "I<Note:> Don't use this call to test for availability of features.  In "
34249 "enterprise distributions we backport features from later versions into "
34250 "earlier versions, making this an unreliable way to test for features.  Use "
34251 "C<guestfs_available> instead."
34252 msgstr ""
34253
34254 #. type: textblock
34255 #: ../src/guestfs-actions.pod:8084
34256 msgid ""
34257 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34258 "error.  I<The caller must call C<guestfs_free_version> after use>."
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs-actions.pod:8088
34263 msgid "(Added in 1.0.58)"
34264 msgstr ""
34265
34266 #. type: =head2
34267 #: ../src/guestfs-actions.pod:8090
34268 msgid "guestfs_vfs_label"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs-actions.pod:8092
34273 #, no-wrap
34274 msgid ""
34275 " char *\n"
34276 " guestfs_vfs_label (guestfs_h *g,\n"
34277 "                    const char *device);\n"
34278 "\n"
34279 msgstr ""
34280
34281 #. type: textblock
34282 #: ../src/guestfs-actions.pod:8101
34283 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs-actions.pod:8106 ../src/guestfs-actions.pod:8143
34288 msgid "(Added in 1.3.18)"
34289 msgstr ""
34290
34291 #. type: =head2
34292 #: ../src/guestfs-actions.pod:8108
34293 msgid "guestfs_vfs_type"
34294 msgstr ""
34295
34296 #. type: verbatim
34297 #: ../src/guestfs-actions.pod:8110
34298 #, no-wrap
34299 msgid ""
34300 " char *\n"
34301 " guestfs_vfs_type (guestfs_h *g,\n"
34302 "                   const char *device);\n"
34303 "\n"
34304 msgstr ""
34305
34306 #. type: =head2
34307 #: ../src/guestfs-actions.pod:8127
34308 msgid "guestfs_vfs_uuid"
34309 msgstr ""
34310
34311 #. type: verbatim
34312 #: ../src/guestfs-actions.pod:8129
34313 #, no-wrap
34314 msgid ""
34315 " char *\n"
34316 " guestfs_vfs_uuid (guestfs_h *g,\n"
34317 "                   const char *device);\n"
34318 "\n"
34319 msgstr ""
34320
34321 #. type: textblock
34322 #: ../src/guestfs-actions.pod:8138
34323 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34324 msgstr ""
34325
34326 #. type: =head2
34327 #: ../src/guestfs-actions.pod:8145
34328 msgid "guestfs_vg_activate"
34329 msgstr ""
34330
34331 #. type: verbatim
34332 #: ../src/guestfs-actions.pod:8147
34333 #, no-wrap
34334 msgid ""
34335 " int\n"
34336 " guestfs_vg_activate (guestfs_h *g,\n"
34337 "                      int activate,\n"
34338 "                      char *const *volgroups);\n"
34339 "\n"
34340 msgstr ""
34341
34342 #. type: =head2
34343 #: ../src/guestfs-actions.pod:8164
34344 msgid "guestfs_vg_activate_all"
34345 msgstr ""
34346
34347 #. type: verbatim
34348 #: ../src/guestfs-actions.pod:8166
34349 #, no-wrap
34350 msgid ""
34351 " int\n"
34352 " guestfs_vg_activate_all (guestfs_h *g,\n"
34353 "                          int activate);\n"
34354 "\n"
34355 msgstr ""
34356
34357 #. type: =head2
34358 #: ../src/guestfs-actions.pod:8179
34359 msgid "guestfs_vgcreate"
34360 msgstr ""
34361
34362 #. type: verbatim
34363 #: ../src/guestfs-actions.pod:8181
34364 #, no-wrap
34365 msgid ""
34366 " int\n"
34367 " guestfs_vgcreate (guestfs_h *g,\n"
34368 "                   const char *volgroup,\n"
34369 "                   char *const *physvols);\n"
34370 "\n"
34371 msgstr ""
34372
34373 #. type: =head2
34374 #: ../src/guestfs-actions.pod:8193
34375 msgid "guestfs_vglvuuids"
34376 msgstr ""
34377
34378 #. type: verbatim
34379 #: ../src/guestfs-actions.pod:8195
34380 #, no-wrap
34381 msgid ""
34382 " char **\n"
34383 " guestfs_vglvuuids (guestfs_h *g,\n"
34384 "                    const char *vgname);\n"
34385 "\n"
34386 msgstr ""
34387
34388 #. type: textblock
34389 #: ../src/guestfs-actions.pod:8202
34390 msgid ""
34391 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34392 "associate logical volumes and volume groups."
34393 msgstr ""
34394
34395 #. type: textblock
34396 #: ../src/guestfs-actions.pod:8205
34397 msgid "See also C<guestfs_vgpvuuids>."
34398 msgstr ""
34399
34400 #. type: =head2
34401 #: ../src/guestfs-actions.pod:8213
34402 msgid "guestfs_vgpvuuids"
34403 msgstr ""
34404
34405 #. type: verbatim
34406 #: ../src/guestfs-actions.pod:8215
34407 #, no-wrap
34408 msgid ""
34409 " char **\n"
34410 " guestfs_vgpvuuids (guestfs_h *g,\n"
34411 "                    const char *vgname);\n"
34412 "\n"
34413 msgstr ""
34414
34415 #. type: textblock
34416 #: ../src/guestfs-actions.pod:8222
34417 msgid ""
34418 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34419 "associate physical volumes and volume groups."
34420 msgstr ""
34421
34422 #. type: textblock
34423 #: ../src/guestfs-actions.pod:8225
34424 msgid "See also C<guestfs_vglvuuids>."
34425 msgstr ""
34426
34427 #. type: =head2
34428 #: ../src/guestfs-actions.pod:8233
34429 msgid "guestfs_vgremove"
34430 msgstr ""
34431
34432 #. type: verbatim
34433 #: ../src/guestfs-actions.pod:8235
34434 #, no-wrap
34435 msgid ""
34436 " int\n"
34437 " guestfs_vgremove (guestfs_h *g,\n"
34438 "                   const char *vgname);\n"
34439 "\n"
34440 msgstr ""
34441
34442 #. type: =head2
34443 #: ../src/guestfs-actions.pod:8248
34444 msgid "guestfs_vgrename"
34445 msgstr ""
34446
34447 #. type: verbatim
34448 #: ../src/guestfs-actions.pod:8250
34449 #, no-wrap
34450 msgid ""
34451 " int\n"
34452 " guestfs_vgrename (guestfs_h *g,\n"
34453 "                   const char *volgroup,\n"
34454 "                   const char *newvolgroup);\n"
34455 "\n"
34456 msgstr ""
34457
34458 #. type: =head2
34459 #: ../src/guestfs-actions.pod:8261
34460 msgid "guestfs_vgs"
34461 msgstr ""
34462
34463 #. type: verbatim
34464 #: ../src/guestfs-actions.pod:8263
34465 #, no-wrap
34466 msgid ""
34467 " char **\n"
34468 " guestfs_vgs (guestfs_h *g);\n"
34469 "\n"
34470 msgstr ""
34471
34472 #. type: textblock
34473 #: ../src/guestfs-actions.pod:8272
34474 msgid "See also C<guestfs_vgs_full>."
34475 msgstr ""
34476
34477 #. type: =head2
34478 #: ../src/guestfs-actions.pod:8280
34479 msgid "guestfs_vgs_full"
34480 msgstr ""
34481
34482 #. type: verbatim
34483 #: ../src/guestfs-actions.pod:8282
34484 #, no-wrap
34485 msgid ""
34486 " struct guestfs_lvm_vg_list *\n"
34487 " guestfs_vgs_full (guestfs_h *g);\n"
34488 "\n"
34489 msgstr ""
34490
34491 #. type: textblock
34492 #: ../src/guestfs-actions.pod:8288
34493 msgid ""
34494 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34495 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34496 msgstr ""
34497
34498 #. type: =head2
34499 #: ../src/guestfs-actions.pod:8294
34500 msgid "guestfs_vgscan"
34501 msgstr ""
34502
34503 #. type: verbatim
34504 #: ../src/guestfs-actions.pod:8296
34505 #, no-wrap
34506 msgid ""
34507 " int\n"
34508 " guestfs_vgscan (guestfs_h *g);\n"
34509 "\n"
34510 msgstr ""
34511
34512 #. type: =head2
34513 #: ../src/guestfs-actions.pod:8306
34514 msgid "guestfs_vguuid"
34515 msgstr ""
34516
34517 #. type: verbatim
34518 #: ../src/guestfs-actions.pod:8308
34519 #, no-wrap
34520 msgid ""
34521 " char *\n"
34522 " guestfs_vguuid (guestfs_h *g,\n"
34523 "                 const char *vgname);\n"
34524 "\n"
34525 msgstr ""
34526
34527 #. type: =head2
34528 #: ../src/guestfs-actions.pod:8319
34529 msgid "guestfs_wait_ready"
34530 msgstr ""
34531
34532 #. type: verbatim
34533 #: ../src/guestfs-actions.pod:8321
34534 #, no-wrap
34535 msgid ""
34536 " int\n"
34537 " guestfs_wait_ready (guestfs_h *g);\n"
34538 "\n"
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs-actions.pod:8324
34543 msgid ""
34544 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34545 "instead."
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs-actions.pod:8331
34550 msgid "This function is a no op."
34551 msgstr ""
34552
34553 #. type: textblock
34554 #: ../src/guestfs-actions.pod:8333
34555 msgid ""
34556 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34557 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34558 "is no longer necessary because C<guestfs_launch> now does the waiting."
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs-actions.pod:8338
34563 msgid ""
34564 "If you see any calls to this function in code then you can just remove them, "
34565 "unless you want to retain compatibility with older versions of the API."
34566 msgstr ""
34567
34568 #. type: =head2
34569 #: ../src/guestfs-actions.pod:8346
34570 msgid "guestfs_wc_c"
34571 msgstr ""
34572
34573 #. type: verbatim
34574 #: ../src/guestfs-actions.pod:8348
34575 #, no-wrap
34576 msgid ""
34577 " int\n"
34578 " guestfs_wc_c (guestfs_h *g,\n"
34579 "               const char *path);\n"
34580 "\n"
34581 msgstr ""
34582
34583 #. type: =head2
34584 #: ../src/guestfs-actions.pod:8359
34585 msgid "guestfs_wc_l"
34586 msgstr ""
34587
34588 #. type: verbatim
34589 #: ../src/guestfs-actions.pod:8361
34590 #, no-wrap
34591 msgid ""
34592 " int\n"
34593 " guestfs_wc_l (guestfs_h *g,\n"
34594 "               const char *path);\n"
34595 "\n"
34596 msgstr ""
34597
34598 #. type: =head2
34599 #: ../src/guestfs-actions.pod:8372
34600 msgid "guestfs_wc_w"
34601 msgstr ""
34602
34603 #. type: verbatim
34604 #: ../src/guestfs-actions.pod:8374
34605 #, no-wrap
34606 msgid ""
34607 " int\n"
34608 " guestfs_wc_w (guestfs_h *g,\n"
34609 "               const char *path);\n"
34610 "\n"
34611 msgstr ""
34612
34613 #. type: =head2
34614 #: ../src/guestfs-actions.pod:8385
34615 msgid "guestfs_write"
34616 msgstr ""
34617
34618 #. type: verbatim
34619 #: ../src/guestfs-actions.pod:8387
34620 #, no-wrap
34621 msgid ""
34622 " int\n"
34623 " guestfs_write (guestfs_h *g,\n"
34624 "                const char *path,\n"
34625 "                const char *content,\n"
34626 "                size_t content_size);\n"
34627 "\n"
34628 msgstr ""
34629
34630 #. type: textblock
34631 #: ../src/guestfs-actions.pod:8396
34632 msgid "See also C<guestfs_write_append>."
34633 msgstr ""
34634
34635 #. type: =head2
34636 #: ../src/guestfs-actions.pod:8405
34637 msgid "guestfs_write_append"
34638 msgstr ""
34639
34640 #. type: verbatim
34641 #: ../src/guestfs-actions.pod:8407
34642 #, no-wrap
34643 msgid ""
34644 " int\n"
34645 " guestfs_write_append (guestfs_h *g,\n"
34646 "                       const char *path,\n"
34647 "                       const char *content,\n"
34648 "                       size_t content_size);\n"
34649 "\n"
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs-actions.pod:8416
34654 msgid "See also C<guestfs_write>."
34655 msgstr ""
34656
34657 #. type: =head2
34658 #: ../src/guestfs-actions.pod:8425
34659 msgid "guestfs_write_file"
34660 msgstr ""
34661
34662 #. type: verbatim
34663 #: ../src/guestfs-actions.pod:8427
34664 #, no-wrap
34665 msgid ""
34666 " int\n"
34667 " guestfs_write_file (guestfs_h *g,\n"
34668 "                     const char *path,\n"
34669 "                     const char *content,\n"
34670 "                     int size);\n"
34671 "\n"
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs-actions.pod:8433
34676 msgid ""
34677 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34678 "instead."
34679 msgstr ""
34680
34681 #. type: =head2
34682 #: ../src/guestfs-actions.pod:8458
34683 msgid "guestfs_zegrep"
34684 msgstr ""
34685
34686 #. type: verbatim
34687 #: ../src/guestfs-actions.pod:8460
34688 #, no-wrap
34689 msgid ""
34690 " char **\n"
34691 " guestfs_zegrep (guestfs_h *g,\n"
34692 "                 const char *regex,\n"
34693 "                 const char *path);\n"
34694 "\n"
34695 msgstr ""
34696
34697 #. type: =head2
34698 #: ../src/guestfs-actions.pod:8477
34699 msgid "guestfs_zegrepi"
34700 msgstr ""
34701
34702 #. type: verbatim
34703 #: ../src/guestfs-actions.pod:8479
34704 #, no-wrap
34705 msgid ""
34706 " char **\n"
34707 " guestfs_zegrepi (guestfs_h *g,\n"
34708 "                  const char *regex,\n"
34709 "                  const char *path);\n"
34710 "\n"
34711 msgstr ""
34712
34713 #. type: =head2
34714 #: ../src/guestfs-actions.pod:8496
34715 msgid "guestfs_zero"
34716 msgstr ""
34717
34718 #. type: verbatim
34719 #: ../src/guestfs-actions.pod:8498
34720 #, no-wrap
34721 msgid ""
34722 " int\n"
34723 " guestfs_zero (guestfs_h *g,\n"
34724 "               const char *device);\n"
34725 "\n"
34726 msgstr ""
34727
34728 #. type: textblock
34729 #: ../src/guestfs-actions.pod:8512
34730 msgid ""
34731 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34732 "C<guestfs_is_zero_device>"
34733 msgstr ""
34734
34735 #. type: =head2
34736 #: ../src/guestfs-actions.pod:8524
34737 msgid "guestfs_zero_device"
34738 msgstr ""
34739
34740 #. type: verbatim
34741 #: ../src/guestfs-actions.pod:8526
34742 #, no-wrap
34743 msgid ""
34744 " int\n"
34745 " guestfs_zero_device (guestfs_h *g,\n"
34746 "                      const char *device);\n"
34747 "\n"
34748 msgstr ""
34749
34750 #. type: textblock
34751 #: ../src/guestfs-actions.pod:8530
34752 msgid ""
34753 "This command writes zeroes over the entire C<device>.  Compare with "
34754 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs-actions.pod:8545
34759 msgid "(Added in 1.3.1)"
34760 msgstr ""
34761
34762 #. type: =head2
34763 #: ../src/guestfs-actions.pod:8547
34764 msgid "guestfs_zerofree"
34765 msgstr ""
34766
34767 #. type: verbatim
34768 #: ../src/guestfs-actions.pod:8549
34769 #, no-wrap
34770 msgid ""
34771 " int\n"
34772 " guestfs_zerofree (guestfs_h *g,\n"
34773 "                   const char *device);\n"
34774 "\n"
34775 msgstr ""
34776
34777 #. type: =head2
34778 #: ../src/guestfs-actions.pod:8568
34779 msgid "guestfs_zfgrep"
34780 msgstr ""
34781
34782 #. type: verbatim
34783 #: ../src/guestfs-actions.pod:8570
34784 #, no-wrap
34785 msgid ""
34786 " char **\n"
34787 " guestfs_zfgrep (guestfs_h *g,\n"
34788 "                 const char *pattern,\n"
34789 "                 const char *path);\n"
34790 "\n"
34791 msgstr ""
34792
34793 #. type: =head2
34794 #: ../src/guestfs-actions.pod:8587
34795 msgid "guestfs_zfgrepi"
34796 msgstr ""
34797
34798 #. type: verbatim
34799 #: ../src/guestfs-actions.pod:8589
34800 #, no-wrap
34801 msgid ""
34802 " char **\n"
34803 " guestfs_zfgrepi (guestfs_h *g,\n"
34804 "                  const char *pattern,\n"
34805 "                  const char *path);\n"
34806 "\n"
34807 msgstr ""
34808
34809 #. type: =head2
34810 #: ../src/guestfs-actions.pod:8606
34811 msgid "guestfs_zfile"
34812 msgstr ""
34813
34814 #. type: verbatim
34815 #: ../src/guestfs-actions.pod:8608
34816 #, no-wrap
34817 msgid ""
34818 " char *\n"
34819 " guestfs_zfile (guestfs_h *g,\n"
34820 "                const char *meth,\n"
34821 "                const char *path);\n"
34822 "\n"
34823 msgstr ""
34824
34825 #. type: textblock
34826 #: ../src/guestfs-actions.pod:8613
34827 msgid ""
34828 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34829 "instead."
34830 msgstr ""
34831
34832 #. type: textblock
34833 #: ../src/guestfs-actions.pod:8625
34834 msgid ""
34835 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34836 "files."
34837 msgstr ""
34838
34839 #. type: =head2
34840 #: ../src/guestfs-actions.pod:8633
34841 msgid "guestfs_zgrep"
34842 msgstr ""
34843
34844 #. type: verbatim
34845 #: ../src/guestfs-actions.pod:8635
34846 #, no-wrap
34847 msgid ""
34848 " char **\n"
34849 " guestfs_zgrep (guestfs_h *g,\n"
34850 "                const char *regex,\n"
34851 "                const char *path);\n"
34852 "\n"
34853 msgstr ""
34854
34855 #. type: =head2
34856 #: ../src/guestfs-actions.pod:8652
34857 msgid "guestfs_zgrepi"
34858 msgstr ""
34859
34860 #. type: verbatim
34861 #: ../src/guestfs-actions.pod:8654
34862 #, no-wrap
34863 msgid ""
34864 " char **\n"
34865 " guestfs_zgrepi (guestfs_h *g,\n"
34866 "                 const char *regex,\n"
34867 "                 const char *path);\n"
34868 "\n"
34869 msgstr ""
34870
34871 #. type: =item
34872 #: ../src/guestfs-availability.pod:3
34873 msgid "B<augeas>"
34874 msgstr ""
34875
34876 #. type: textblock
34877 #: ../src/guestfs-availability.pod:5
34878 msgid ""
34879 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34880 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34881 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34882 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34883 "L</guestfs_aug_save> L</guestfs_aug_set>"
34884 msgstr ""
34885
34886 #. type: =item
34887 #: ../src/guestfs-availability.pod:21
34888 msgid "B<btrfs>"
34889 msgstr ""
34890
34891 #. type: textblock
34892 #: ../src/guestfs-availability.pod:23
34893 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34894 msgstr ""
34895
34896 #. type: =item
34897 #: ../src/guestfs-availability.pod:26
34898 msgid "B<grub>"
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs-availability.pod:28
34903 msgid "The following functions: L</guestfs_grub_install>"
34904 msgstr ""
34905
34906 #. type: =item
34907 #: ../src/guestfs-availability.pod:31
34908 msgid "B<inotify>"
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs-availability.pod:33
34913 msgid ""
34914 "The following functions: L</guestfs_inotify_add_watch> L</"
34915 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34916 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34917 msgstr ""
34918
34919 #. type: =item
34920 #: ../src/guestfs-availability.pod:41
34921 msgid "B<linuxfsuuid>"
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs-availability.pod:43
34926 msgid ""
34927 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34928 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34929 msgstr ""
34930
34931 #. type: =item
34932 #: ../src/guestfs-availability.pod:50
34933 msgid "B<linuxmodules>"
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs-availability.pod:52
34938 msgid "The following functions: L</guestfs_modprobe>"
34939 msgstr ""
34940
34941 #. type: =item
34942 #: ../src/guestfs-availability.pod:55
34943 msgid "B<linuxxattrs>"
34944 msgstr ""
34945
34946 #. type: textblock
34947 #: ../src/guestfs-availability.pod:57
34948 msgid ""
34949 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34950 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34951 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34952 "guestfs_setxattr>"
34953 msgstr ""
34954
34955 #. type: =item
34956 #: ../src/guestfs-availability.pod:68
34957 msgid "B<luks>"
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs-availability.pod:70
34962 msgid ""
34963 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34964 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34965 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34966 msgstr ""
34967
34968 #. type: =item
34969 #: ../src/guestfs-availability.pod:79
34970 msgid "B<lvm2>"
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs-availability.pod:81
34975 msgid ""
34976 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34977 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34978 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34979 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34980 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34981 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34982 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34983 msgstr ""
34984
34985 #. type: =item
34986 #: ../src/guestfs-availability.pod:104
34987 msgid "B<mdadm>"
34988 msgstr ""
34989
34990 #. type: textblock
34991 #: ../src/guestfs-availability.pod:106
34992 msgid ""
34993 "The following functions: L</guestfs_mdadm_create> L</guestfs_mdadm_detail>"
34994 msgstr ""
34995
34996 #. type: =item
34997 #: ../src/guestfs-availability.pod:110
34998 msgid "B<mknod>"
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs-availability.pod:112
35003 msgid ""
35004 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
35005 "guestfs_mknod_b> L</guestfs_mknod_c>"
35006 msgstr ""
35007
35008 #. type: =item
35009 #: ../src/guestfs-availability.pod:118
35010 msgid "B<ntfs3g>"
35011 msgstr ""
35012
35013 #. type: textblock
35014 #: ../src/guestfs-availability.pod:120
35015 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
35016 msgstr ""
35017
35018 #. type: =item
35019 #: ../src/guestfs-availability.pod:123
35020 msgid "B<ntfsprogs>"
35021 msgstr ""
35022
35023 #. type: textblock
35024 #: ../src/guestfs-availability.pod:125
35025 msgid ""
35026 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
35027 "L</guestfs_ntfsresize_size>"
35028 msgstr ""
35029
35030 #. type: =item
35031 #: ../src/guestfs-availability.pod:130
35032 msgid "B<realpath>"
35033 msgstr ""
35034
35035 #. type: textblock
35036 #: ../src/guestfs-availability.pod:132
35037 msgid "The following functions: L</guestfs_realpath>"
35038 msgstr ""
35039
35040 #. type: =item
35041 #: ../src/guestfs-availability.pod:135
35042 msgid "B<scrub>"
35043 msgstr ""
35044
35045 #. type: textblock
35046 #: ../src/guestfs-availability.pod:137
35047 msgid ""
35048 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
35049 "guestfs_scrub_freespace>"
35050 msgstr ""
35051
35052 #. type: =item
35053 #: ../src/guestfs-availability.pod:142
35054 msgid "B<selinux>"
35055 msgstr ""
35056
35057 #. type: textblock
35058 #: ../src/guestfs-availability.pod:144
35059 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
35060 msgstr ""
35061
35062 #. type: =item
35063 #: ../src/guestfs-availability.pod:148
35064 msgid "B<xz>"
35065 msgstr ""
35066
35067 #. type: textblock
35068 #: ../src/guestfs-availability.pod:150
35069 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
35070 msgstr ""
35071
35072 #. type: =item
35073 #: ../src/guestfs-availability.pod:154
35074 msgid "B<zerofree>"
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs-availability.pod:156
35079 msgid "The following functions: L</guestfs_zerofree>"
35080 msgstr ""
35081
35082 #. type: =head2
35083 #: ../src/guestfs-structs.pod:1
35084 msgid "guestfs_int_bool"
35085 msgstr ""
35086
35087 #. type: verbatim
35088 #: ../src/guestfs-structs.pod:3
35089 #, no-wrap
35090 msgid ""
35091 " struct guestfs_int_bool {\n"
35092 "   int32_t i;\n"
35093 "   int32_t b;\n"
35094 " };\n"
35095 " \n"
35096 msgstr ""
35097
35098 #. type: verbatim
35099 #: ../src/guestfs-structs.pod:8
35100 #, no-wrap
35101 msgid ""
35102 " struct guestfs_int_bool_list {\n"
35103 "   uint32_t len; /* Number of elements in list. */\n"
35104 "   struct guestfs_int_bool *val; /* Elements. */\n"
35105 " };\n"
35106 " \n"
35107 msgstr ""
35108
35109 #. type: verbatim
35110 #: ../src/guestfs-structs.pod:13
35111 #, no-wrap
35112 msgid ""
35113 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
35114 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
35115 "\n"
35116 msgstr ""
35117
35118 #. type: =head2
35119 #: ../src/guestfs-structs.pod:16
35120 msgid "guestfs_lvm_pv"
35121 msgstr ""
35122
35123 #. type: verbatim
35124 #: ../src/guestfs-structs.pod:18
35125 #, no-wrap
35126 msgid ""
35127 " struct guestfs_lvm_pv {\n"
35128 "   char *pv_name;\n"
35129 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35130 "   char pv_uuid[32];\n"
35131 "   char *pv_fmt;\n"
35132 "   uint64_t pv_size;\n"
35133 "   uint64_t dev_size;\n"
35134 "   uint64_t pv_free;\n"
35135 "   uint64_t pv_used;\n"
35136 "   char *pv_attr;\n"
35137 "   int64_t pv_pe_count;\n"
35138 "   int64_t pv_pe_alloc_count;\n"
35139 "   char *pv_tags;\n"
35140 "   uint64_t pe_start;\n"
35141 "   int64_t pv_mda_count;\n"
35142 "   uint64_t pv_mda_free;\n"
35143 " };\n"
35144 " \n"
35145 msgstr ""
35146
35147 #. type: verbatim
35148 #: ../src/guestfs-structs.pod:36
35149 #, no-wrap
35150 msgid ""
35151 " struct guestfs_lvm_pv_list {\n"
35152 "   uint32_t len; /* Number of elements in list. */\n"
35153 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35154 " };\n"
35155 " \n"
35156 msgstr ""
35157
35158 #. type: verbatim
35159 #: ../src/guestfs-structs.pod:41
35160 #, no-wrap
35161 msgid ""
35162 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35163 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35164 "\n"
35165 msgstr ""
35166
35167 #. type: =head2
35168 #: ../src/guestfs-structs.pod:44
35169 msgid "guestfs_lvm_vg"
35170 msgstr ""
35171
35172 #. type: verbatim
35173 #: ../src/guestfs-structs.pod:46
35174 #, no-wrap
35175 msgid ""
35176 " struct guestfs_lvm_vg {\n"
35177 "   char *vg_name;\n"
35178 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35179 "   char vg_uuid[32];\n"
35180 "   char *vg_fmt;\n"
35181 "   char *vg_attr;\n"
35182 "   uint64_t vg_size;\n"
35183 "   uint64_t vg_free;\n"
35184 "   char *vg_sysid;\n"
35185 "   uint64_t vg_extent_size;\n"
35186 "   int64_t vg_extent_count;\n"
35187 "   int64_t vg_free_count;\n"
35188 "   int64_t max_lv;\n"
35189 "   int64_t max_pv;\n"
35190 "   int64_t pv_count;\n"
35191 "   int64_t lv_count;\n"
35192 "   int64_t snap_count;\n"
35193 "   int64_t vg_seqno;\n"
35194 "   char *vg_tags;\n"
35195 "   int64_t vg_mda_count;\n"
35196 "   uint64_t vg_mda_free;\n"
35197 " };\n"
35198 " \n"
35199 msgstr ""
35200
35201 #. type: verbatim
35202 #: ../src/guestfs-structs.pod:69
35203 #, no-wrap
35204 msgid ""
35205 " struct guestfs_lvm_vg_list {\n"
35206 "   uint32_t len; /* Number of elements in list. */\n"
35207 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35208 " };\n"
35209 " \n"
35210 msgstr ""
35211
35212 #. type: verbatim
35213 #: ../src/guestfs-structs.pod:74
35214 #, no-wrap
35215 msgid ""
35216 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35217 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35218 "\n"
35219 msgstr ""
35220
35221 #. type: =head2
35222 #: ../src/guestfs-structs.pod:77
35223 msgid "guestfs_lvm_lv"
35224 msgstr ""
35225
35226 #. type: verbatim
35227 #: ../src/guestfs-structs.pod:79
35228 #, no-wrap
35229 msgid ""
35230 " struct guestfs_lvm_lv {\n"
35231 "   char *lv_name;\n"
35232 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35233 "   char lv_uuid[32];\n"
35234 "   char *lv_attr;\n"
35235 "   int64_t lv_major;\n"
35236 "   int64_t lv_minor;\n"
35237 "   int64_t lv_kernel_major;\n"
35238 "   int64_t lv_kernel_minor;\n"
35239 "   uint64_t lv_size;\n"
35240 "   int64_t seg_count;\n"
35241 "   char *origin;\n"
35242 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35243 "   float snap_percent;\n"
35244 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35245 "   float copy_percent;\n"
35246 "   char *move_pv;\n"
35247 "   char *lv_tags;\n"
35248 "   char *mirror_log;\n"
35249 "   char *modules;\n"
35250 " };\n"
35251 " \n"
35252 msgstr ""
35253
35254 #. type: verbatim
35255 #: ../src/guestfs-structs.pod:101
35256 #, no-wrap
35257 msgid ""
35258 " struct guestfs_lvm_lv_list {\n"
35259 "   uint32_t len; /* Number of elements in list. */\n"
35260 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35261 " };\n"
35262 " \n"
35263 msgstr ""
35264
35265 #. type: verbatim
35266 #: ../src/guestfs-structs.pod:106
35267 #, no-wrap
35268 msgid ""
35269 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35270 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35271 "\n"
35272 msgstr ""
35273
35274 #. type: verbatim
35275 #: ../src/guestfs-structs.pod:111
35276 #, no-wrap
35277 msgid ""
35278 " struct guestfs_stat {\n"
35279 "   int64_t dev;\n"
35280 "   int64_t ino;\n"
35281 "   int64_t mode;\n"
35282 "   int64_t nlink;\n"
35283 "   int64_t uid;\n"
35284 "   int64_t gid;\n"
35285 "   int64_t rdev;\n"
35286 "   int64_t size;\n"
35287 "   int64_t blksize;\n"
35288 "   int64_t blocks;\n"
35289 "   int64_t atime;\n"
35290 "   int64_t mtime;\n"
35291 "   int64_t ctime;\n"
35292 " };\n"
35293 " \n"
35294 msgstr ""
35295
35296 #. type: verbatim
35297 #: ../src/guestfs-structs.pod:127
35298 #, no-wrap
35299 msgid ""
35300 " struct guestfs_stat_list {\n"
35301 "   uint32_t len; /* Number of elements in list. */\n"
35302 "   struct guestfs_stat *val; /* Elements. */\n"
35303 " };\n"
35304 " \n"
35305 msgstr ""
35306
35307 #. type: verbatim
35308 #: ../src/guestfs-structs.pod:132
35309 #, no-wrap
35310 msgid ""
35311 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35312 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35313 "\n"
35314 msgstr ""
35315
35316 #. type: verbatim
35317 #: ../src/guestfs-structs.pod:137
35318 #, no-wrap
35319 msgid ""
35320 " struct guestfs_statvfs {\n"
35321 "   int64_t bsize;\n"
35322 "   int64_t frsize;\n"
35323 "   int64_t blocks;\n"
35324 "   int64_t bfree;\n"
35325 "   int64_t bavail;\n"
35326 "   int64_t files;\n"
35327 "   int64_t ffree;\n"
35328 "   int64_t favail;\n"
35329 "   int64_t fsid;\n"
35330 "   int64_t flag;\n"
35331 "   int64_t namemax;\n"
35332 " };\n"
35333 " \n"
35334 msgstr ""
35335
35336 #. type: verbatim
35337 #: ../src/guestfs-structs.pod:151
35338 #, no-wrap
35339 msgid ""
35340 " struct guestfs_statvfs_list {\n"
35341 "   uint32_t len; /* Number of elements in list. */\n"
35342 "   struct guestfs_statvfs *val; /* Elements. */\n"
35343 " };\n"
35344 " \n"
35345 msgstr ""
35346
35347 #. type: verbatim
35348 #: ../src/guestfs-structs.pod:156
35349 #, no-wrap
35350 msgid ""
35351 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35352 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35353 "\n"
35354 msgstr ""
35355
35356 #. type: =head2
35357 #: ../src/guestfs-structs.pod:159
35358 msgid "guestfs_dirent"
35359 msgstr ""
35360
35361 #. type: verbatim
35362 #: ../src/guestfs-structs.pod:161
35363 #, no-wrap
35364 msgid ""
35365 " struct guestfs_dirent {\n"
35366 "   int64_t ino;\n"
35367 "   char ftyp;\n"
35368 "   char *name;\n"
35369 " };\n"
35370 " \n"
35371 msgstr ""
35372
35373 #. type: verbatim
35374 #: ../src/guestfs-structs.pod:167
35375 #, no-wrap
35376 msgid ""
35377 " struct guestfs_dirent_list {\n"
35378 "   uint32_t len; /* Number of elements in list. */\n"
35379 "   struct guestfs_dirent *val; /* Elements. */\n"
35380 " };\n"
35381 " \n"
35382 msgstr ""
35383
35384 #. type: verbatim
35385 #: ../src/guestfs-structs.pod:172
35386 #, no-wrap
35387 msgid ""
35388 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35389 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35390 "\n"
35391 msgstr ""
35392
35393 #. type: verbatim
35394 #: ../src/guestfs-structs.pod:177
35395 #, no-wrap
35396 msgid ""
35397 " struct guestfs_version {\n"
35398 "   int64_t major;\n"
35399 "   int64_t minor;\n"
35400 "   int64_t release;\n"
35401 "   char *extra;\n"
35402 " };\n"
35403 " \n"
35404 msgstr ""
35405
35406 #. type: verbatim
35407 #: ../src/guestfs-structs.pod:184
35408 #, no-wrap
35409 msgid ""
35410 " struct guestfs_version_list {\n"
35411 "   uint32_t len; /* Number of elements in list. */\n"
35412 "   struct guestfs_version *val; /* Elements. */\n"
35413 " };\n"
35414 " \n"
35415 msgstr ""
35416
35417 #. type: verbatim
35418 #: ../src/guestfs-structs.pod:189
35419 #, no-wrap
35420 msgid ""
35421 " void guestfs_free_version (struct guestfs_free_version *);\n"
35422 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35423 "\n"
35424 msgstr ""
35425
35426 #. type: =head2
35427 #: ../src/guestfs-structs.pod:192
35428 msgid "guestfs_xattr"
35429 msgstr ""
35430
35431 #. type: verbatim
35432 #: ../src/guestfs-structs.pod:194
35433 #, no-wrap
35434 msgid ""
35435 " struct guestfs_xattr {\n"
35436 "   char *attrname;\n"
35437 "   /* The next two fields describe a byte array. */\n"
35438 "   uint32_t attrval_len;\n"
35439 "   char *attrval;\n"
35440 " };\n"
35441 " \n"
35442 msgstr ""
35443
35444 #. type: verbatim
35445 #: ../src/guestfs-structs.pod:201
35446 #, no-wrap
35447 msgid ""
35448 " struct guestfs_xattr_list {\n"
35449 "   uint32_t len; /* Number of elements in list. */\n"
35450 "   struct guestfs_xattr *val; /* Elements. */\n"
35451 " };\n"
35452 " \n"
35453 msgstr ""
35454
35455 #. type: verbatim
35456 #: ../src/guestfs-structs.pod:206
35457 #, no-wrap
35458 msgid ""
35459 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35460 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35461 "\n"
35462 msgstr ""
35463
35464 #. type: =head2
35465 #: ../src/guestfs-structs.pod:209
35466 msgid "guestfs_inotify_event"
35467 msgstr ""
35468
35469 #. type: verbatim
35470 #: ../src/guestfs-structs.pod:211
35471 #, no-wrap
35472 msgid ""
35473 " struct guestfs_inotify_event {\n"
35474 "   int64_t in_wd;\n"
35475 "   uint32_t in_mask;\n"
35476 "   uint32_t in_cookie;\n"
35477 "   char *in_name;\n"
35478 " };\n"
35479 " \n"
35480 msgstr ""
35481
35482 #. type: verbatim
35483 #: ../src/guestfs-structs.pod:218
35484 #, no-wrap
35485 msgid ""
35486 " struct guestfs_inotify_event_list {\n"
35487 "   uint32_t len; /* Number of elements in list. */\n"
35488 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35489 " };\n"
35490 " \n"
35491 msgstr ""
35492
35493 #. type: verbatim
35494 #: ../src/guestfs-structs.pod:223
35495 #, no-wrap
35496 msgid ""
35497 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35498 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35499 "\n"
35500 msgstr ""
35501
35502 #. type: =head2
35503 #: ../src/guestfs-structs.pod:226
35504 msgid "guestfs_partition"
35505 msgstr ""
35506
35507 #. type: verbatim
35508 #: ../src/guestfs-structs.pod:228
35509 #, no-wrap
35510 msgid ""
35511 " struct guestfs_partition {\n"
35512 "   int32_t part_num;\n"
35513 "   uint64_t part_start;\n"
35514 "   uint64_t part_end;\n"
35515 "   uint64_t part_size;\n"
35516 " };\n"
35517 " \n"
35518 msgstr ""
35519
35520 #. type: verbatim
35521 #: ../src/guestfs-structs.pod:235
35522 #, no-wrap
35523 msgid ""
35524 " struct guestfs_partition_list {\n"
35525 "   uint32_t len; /* Number of elements in list. */\n"
35526 "   struct guestfs_partition *val; /* Elements. */\n"
35527 " };\n"
35528 " \n"
35529 msgstr ""
35530
35531 #. type: verbatim
35532 #: ../src/guestfs-structs.pod:240
35533 #, no-wrap
35534 msgid ""
35535 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35536 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35537 "\n"
35538 msgstr ""
35539
35540 #. type: =head2
35541 #: ../src/guestfs-structs.pod:243
35542 msgid "guestfs_application"
35543 msgstr ""
35544
35545 #. type: verbatim
35546 #: ../src/guestfs-structs.pod:245
35547 #, no-wrap
35548 msgid ""
35549 " struct guestfs_application {\n"
35550 "   char *app_name;\n"
35551 "   char *app_display_name;\n"
35552 "   int32_t app_epoch;\n"
35553 "   char *app_version;\n"
35554 "   char *app_release;\n"
35555 "   char *app_install_path;\n"
35556 "   char *app_trans_path;\n"
35557 "   char *app_publisher;\n"
35558 "   char *app_url;\n"
35559 "   char *app_source_package;\n"
35560 "   char *app_summary;\n"
35561 "   char *app_description;\n"
35562 " };\n"
35563 " \n"
35564 msgstr ""
35565
35566 #. type: verbatim
35567 #: ../src/guestfs-structs.pod:260
35568 #, no-wrap
35569 msgid ""
35570 " struct guestfs_application_list {\n"
35571 "   uint32_t len; /* Number of elements in list. */\n"
35572 "   struct guestfs_application *val; /* Elements. */\n"
35573 " };\n"
35574 " \n"
35575 msgstr ""
35576
35577 #. type: verbatim
35578 #: ../src/guestfs-structs.pod:265
35579 #, no-wrap
35580 msgid ""
35581 " void guestfs_free_application (struct guestfs_free_application *);\n"
35582 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35583 "\n"
35584 msgstr ""
35585
35586 #. type: textblock
35587 #: ../src/guestfs.pod:5
35588 msgid "guestfs - Library for accessing and modifying virtual machine images"
35589 msgstr ""
35590
35591 #. type: verbatim
35592 #: ../src/guestfs.pod:11
35593 #, no-wrap
35594 msgid ""
35595 " guestfs_h *g = guestfs_create ();\n"
35596 " guestfs_add_drive (g, \"guest.img\");\n"
35597 " guestfs_launch (g);\n"
35598 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35599 " guestfs_touch (g, \"/hello\");\n"
35600 " guestfs_umount (g, \"/\");\n"
35601 " guestfs_close (g);\n"
35602 "\n"
35603 msgstr ""
35604 " guestfs_h *g = guestfs_create ();\n"
35605 " guestfs_add_drive (g, \"guest.img\");\n"
35606 " guestfs_launch (g);\n"
35607 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35608 " guestfs_touch (g, \"/hello\");\n"
35609 " guestfs_umount (g, \"/\");\n"
35610 " guestfs_close (g);\n"
35611 "\n"
35612
35613 #. type: textblock
35614 #: ../src/guestfs.pod:25
35615 msgid ""
35616 "Libguestfs is a library for accessing and modifying guest disk images.  "
35617 "Amongst the things this is good for: making batch configuration changes to "
35618 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35619 "between virtualization systems (see also: virt-p2v), performing partial "
35620 "backups, performing partial guest clones, cloning guests and changing "
35621 "registry/UUID/hostname info, and much else besides."
35622 msgstr ""
35623
35624 #. type: textblock
35625 #: ../src/guestfs.pod:33
35626 msgid ""
35627 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35628 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35629 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35630 "qcow2, vmdk."
35631 msgstr ""
35632
35633 #. type: textblock
35634 #: ../src/guestfs.pod:38
35635 msgid ""
35636 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35637 "what filesystem is in each LV, etc.).  It can also run commands in the "
35638 "context of the guest.  Also you can access filesystems over FUSE."
35639 msgstr ""
35640
35641 #. type: textblock
35642 #: ../src/guestfs.pod:43
35643 msgid ""
35644 "Libguestfs is a library that can be linked with C and C++ management "
35645 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35646 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35647 "command line."
35648 msgstr ""
35649
35650 #. type: textblock
35651 #: ../src/guestfs.pod:48
35652 msgid ""
35653 "You don't need to be root to use libguestfs, although obviously you do need "
35654 "enough permissions to access the disk images."
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:51
35659 msgid ""
35660 "Libguestfs is a large API because it can do many things.  For a gentle "
35661 "introduction, please read the L</API OVERVIEW> section next."
35662 msgstr ""
35663
35664 #. type: textblock
35665 #: ../src/guestfs.pod:54
35666 msgid ""
35667 "There are also some example programs in the L<guestfs-examples(3)> manual "
35668 "page."
35669 msgstr ""
35670
35671 #. type: =head1
35672 #: ../src/guestfs.pod:57
35673 msgid "API OVERVIEW"
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:59
35678 msgid ""
35679 "This section provides a gentler overview of the libguestfs API.  We also try "
35680 "to group API calls together, where that may not be obvious from reading "
35681 "about the individual calls in the main section of this manual."
35682 msgstr ""
35683
35684 #. type: =head2
35685 #: ../src/guestfs.pod:64
35686 msgid "HANDLES"
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:66
35691 msgid ""
35692 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35693 "must add at least one disk image to the handle, followed by launching the "
35694 "handle, then performing whatever operations you want, and finally closing "
35695 "the handle.  By convention we use the single letter C<g> for the name of the "
35696 "handle variable, although of course you can use any name you want."
35697 msgstr ""
35698
35699 #. type: textblock
35700 #: ../src/guestfs.pod:73
35701 msgid "The general structure of all libguestfs-using programs looks like this:"
35702 msgstr ""
35703
35704 #. type: verbatim
35705 #: ../src/guestfs.pod:76
35706 #, no-wrap
35707 msgid ""
35708 " guestfs_h *g = guestfs_create ();\n"
35709 " \n"
35710 msgstr ""
35711
35712 #. type: verbatim
35713 #: ../src/guestfs.pod:78
35714 #, no-wrap
35715 msgid ""
35716 " /* Call guestfs_add_drive additional times if there are\n"
35717 "  * multiple disk images.\n"
35718 "  */\n"
35719 " guestfs_add_drive (g, \"guest.img\");\n"
35720 " \n"
35721 msgstr ""
35722
35723 #. type: verbatim
35724 #: ../src/guestfs.pod:83
35725 #, no-wrap
35726 msgid ""
35727 " /* Most manipulation calls won't work until you've launched\n"
35728 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35729 "  * and _before_ other commands.\n"
35730 "  */\n"
35731 " guestfs_launch (g);\n"
35732 " \n"
35733 msgstr ""
35734
35735 #. type: verbatim
35736 #: ../src/guestfs.pod:89
35737 #, no-wrap
35738 msgid ""
35739 " /* Now you can examine what partitions, LVs etc are available.\n"
35740 "  */\n"
35741 " char **partitions = guestfs_list_partitions (g);\n"
35742 " char **logvols = guestfs_lvs (g);\n"
35743 " \n"
35744 msgstr ""
35745
35746 #. type: verbatim
35747 #: ../src/guestfs.pod:94
35748 #, no-wrap
35749 msgid ""
35750 " /* To access a filesystem in the image, you must mount it.\n"
35751 "  */\n"
35752 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35753 " \n"
35754 msgstr ""
35755
35756 #. type: verbatim
35757 #: ../src/guestfs.pod:98
35758 #, no-wrap
35759 msgid ""
35760 " /* Now you can perform filesystem actions on the guest\n"
35761 "  * disk image.\n"
35762 "  */\n"
35763 " guestfs_touch (g, \"/hello\");\n"
35764 " \n"
35765 msgstr ""
35766
35767 #. type: verbatim
35768 #: ../src/guestfs.pod:103
35769 #, no-wrap
35770 msgid ""
35771 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35772 "  * it is done automatically when you close the handle.  See\n"
35773 "  * discussion of autosync in this page.\n"
35774 "  */\n"
35775 " guestfs_sync (g);\n"
35776 " \n"
35777 msgstr ""
35778
35779 #. type: verbatim
35780 #: ../src/guestfs.pod:109
35781 #, no-wrap
35782 msgid ""
35783 " /* Close the handle 'g'. */\n"
35784 " guestfs_close (g);\n"
35785 "\n"
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:112
35790 msgid ""
35791 "The code above doesn't include any error checking.  In real code you should "
35792 "check return values carefully for errors.  In general all functions that "
35793 "return integers return C<-1> on error, and all functions that return "
35794 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35795 "how to handle errors, and consult the documentation for each function call "
35796 "below to see precisely how they return error indications.  See L<guestfs-"
35797 "examples(3)> for fully worked examples."
35798 msgstr ""
35799
35800 #. type: =head2
35801 #: ../src/guestfs.pod:121
35802 msgid "DISK IMAGES"
35803 msgstr ""
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:123
35807 msgid ""
35808 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35809 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35810 "actual block device, or simply an empty file of zeroes that you have created "
35811 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35812 "of these."
35813 msgstr ""
35814
35815 #. type: textblock
35816 #: ../src/guestfs.pod:129
35817 msgid ""
35818 "The call you should use in modern code for adding drives is L</"
35819 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35820 "specifying that the format is raw, do:"
35821 msgstr ""
35822
35823 #. type: verbatim
35824 #: ../src/guestfs.pod:133
35825 #, no-wrap
35826 msgid ""
35827 " guestfs_add_drive_opts (g, filename,\n"
35828 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35829 "                         -1);\n"
35830 "\n"
35831 msgstr ""
35832
35833 #. type: textblock
35834 #: ../src/guestfs.pod:137
35835 msgid "You can add a disk read-only using:"
35836 msgstr ""
35837
35838 #. type: verbatim
35839 #: ../src/guestfs.pod:139
35840 #, no-wrap
35841 msgid ""
35842 " guestfs_add_drive_opts (g, filename,\n"
35843 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35844 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35845 "                         -1);\n"
35846 "\n"
35847 msgstr ""
35848
35849 #. type: textblock
35850 #: ../src/guestfs.pod:144
35851 msgid ""
35852 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35853 "libguestfs won't modify the file."
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:147
35858 msgid ""
35859 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35860 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35861 "corruption, but adding it read-only is safe."
35862 msgstr ""
35863
35864 #. type: textblock
35865 #: ../src/guestfs.pod:151
35866 msgid ""
35867 "You must add at least one disk image, and you may add multiple disk images.  "
35868 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35869 "first one you added), C</dev/sdb> (for the second one you added), etc."
35870 msgstr ""
35871
35872 #. type: textblock
35873 #: ../src/guestfs.pod:156
35874 msgid ""
35875 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35876 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35877 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35878 msgstr ""
35879
35880 #. type: =head2
35881 #: ../src/guestfs.pod:161
35882 msgid "MOUNTING"
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:163
35887 msgid ""
35888 "Before you can read or write files, create directories and so on in a disk "
35889 "image that contains filesystems, you have to mount those filesystems using "
35890 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35891 "a disk image contains (for example) one partition with a filesystem on that "
35892 "partition, then you can mount it directly:"
35893 msgstr ""
35894
35895 #. type: verbatim
35896 #: ../src/guestfs.pod:170
35897 #, no-wrap
35898 msgid ""
35899 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35900 "\n"
35901 msgstr ""
35902
35903 #. type: textblock
35904 #: ../src/guestfs.pod:172
35905 msgid ""
35906 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35907 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35908 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35909 "that these are libguestfs virtual devices, and are nothing to do with host "
35910 "devices."
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../src/guestfs.pod:178
35915 msgid ""
35916 "If you are given a disk image and you don't know what it contains then you "
35917 "have to find out.  Libguestfs can do that too: use L</"
35918 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35919 "LVs, and either try mounting each to see what is mountable, or else examine "
35920 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35921 "filesystems, use L</guestfs_list_filesystems>."
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:186
35926 msgid ""
35927 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35928 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35929 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35930 msgstr ""
35931
35932 #. type: textblock
35933 #: ../src/guestfs.pod:191
35934 msgid ""
35935 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35936 "several other variations of the C<guestfs_mount_*> call."
35937 msgstr ""
35938
35939 #. type: =head2
35940 #: ../src/guestfs.pod:194
35941 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35942 msgstr ""
35943
35944 #. type: textblock
35945 #: ../src/guestfs.pod:196
35946 msgid ""
35947 "The majority of the libguestfs API consists of fairly low-level calls for "
35948 "accessing and modifying the files, directories, symlinks etc on mounted "
35949 "filesystems.  There are over a hundred such calls which you can find listed "
35950 "in detail below in this man page, and we don't even pretend to cover them "
35951 "all in this overview."
35952 msgstr ""
35953
35954 #. type: textblock
35955 #: ../src/guestfs.pod:202
35956 msgid ""
35957 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35958 "mount point."
35959 msgstr ""
35960
35961 #. type: textblock
35962 #: ../src/guestfs.pod:205
35963 msgid ""
35964 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35965 "the file called C<\"etc/passwd\"> then you could do:"
35966 msgstr ""
35967
35968 #. type: verbatim
35969 #: ../src/guestfs.pod:208
35970 #, no-wrap
35971 msgid ""
35972 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35973 "\n"
35974 msgstr ""
35975
35976 #. type: textblock
35977 #: ../src/guestfs.pod:210
35978 msgid ""
35979 "This would return C<data> as a newly allocated buffer containing the full "
35980 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35981 "or C<NULL> if there was an error."
35982 msgstr ""
35983
35984 #. type: textblock
35985 #: ../src/guestfs.pod:214
35986 msgid ""
35987 "As another example, to create a top-level directory on that filesystem "
35988 "called C<\"var\"> you would do:"
35989 msgstr ""
35990
35991 #. type: verbatim
35992 #: ../src/guestfs.pod:217
35993 #, no-wrap
35994 msgid ""
35995 " guestfs_mkdir (g, \"/var\");\n"
35996 "\n"
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../src/guestfs.pod:219
36001 msgid "To create a symlink you could do:"
36002 msgstr ""
36003
36004 #. type: verbatim
36005 #: ../src/guestfs.pod:221
36006 #, no-wrap
36007 msgid ""
36008 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
36009 "               \"/etc/rc3.d/S30portmap\");\n"
36010 "\n"
36011 msgstr ""
36012
36013 #. type: textblock
36014 #: ../src/guestfs.pod:224
36015 msgid ""
36016 "Libguestfs will reject attempts to use relative paths and there is no "
36017 "concept of a current working directory."
36018 msgstr ""
36019
36020 #. type: textblock
36021 #: ../src/guestfs.pod:227
36022 msgid ""
36023 "Libguestfs can return errors in many situations: for example if the "
36024 "filesystem isn't writable, or if a file or directory that you requested "
36025 "doesn't exist.  If you are using the C API (documented here)  you have to "
36026 "check for those error conditions after each call.  (Other language bindings "
36027 "turn these errors into exceptions)."
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../src/guestfs.pod:233
36032 msgid ""
36033 "File writes are affected by the per-handle umask, set by calling L</"
36034 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
36035 msgstr ""
36036
36037 #. type: =head2
36038 #: ../src/guestfs.pod:236
36039 msgid "PARTITIONING"
36040 msgstr ""
36041
36042 #. type: textblock
36043 #: ../src/guestfs.pod:238
36044 msgid ""
36045 "Libguestfs contains API calls to read, create and modify partition tables on "
36046 "disk images."
36047 msgstr ""
36048
36049 #. type: textblock
36050 #: ../src/guestfs.pod:241
36051 msgid ""
36052 "In the common case where you want to create a single partition covering the "
36053 "whole disk, you should use the L</guestfs_part_disk> call:"
36054 msgstr ""
36055
36056 #. type: verbatim
36057 #: ../src/guestfs.pod:245
36058 #, no-wrap
36059 msgid ""
36060 " const char *parttype = \"mbr\";\n"
36061 " if (disk_is_larger_than_2TB)\n"
36062 "   parttype = \"gpt\";\n"
36063 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
36064 "\n"
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:250
36069 msgid ""
36070 "Obviously this effectively wipes anything that was on that disk image before."
36071 msgstr ""
36072
36073 #. type: =head2
36074 #: ../src/guestfs.pod:253
36075 msgid "LVM2"
36076 msgstr ""
36077
36078 #. type: textblock
36079 #: ../src/guestfs.pod:255
36080 msgid ""
36081 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36082 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36083 "you familiarize yourself with the concepts of physical volumes, volume "
36084 "groups and logical volumes."
36085 msgstr ""
36086
36087 #. type: textblock
36088 #: ../src/guestfs.pod:260
36089 msgid ""
36090 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36091 "tldp.org/HOWTO/LVM-HOWTO/>."
36092 msgstr ""
36093
36094 #. type: =head2
36095 #: ../src/guestfs.pod:263
36096 msgid "DOWNLOADING"
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:265
36101 msgid ""
36102 "Use L</guestfs_cat> to download small, text only files.  This call is "
36103 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36104 "NUL (C<\\0>) characters.  However the API is very simple to use."
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../src/guestfs.pod:269
36109 msgid ""
36110 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36111 "bit data, since it returns a (pointer, size) pair.  However it is still "
36112 "limited to \"small\" files, less than 2 MB."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:273
36117 msgid ""
36118 "L</guestfs_download> can be used to download any file, with no limits on "
36119 "content or size (even files larger than 4 GB)."
36120 msgstr ""
36121
36122 #. type: textblock
36123 #: ../src/guestfs.pod:276
36124 msgid ""
36125 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36126 msgstr ""
36127
36128 #. type: =head2
36129 #: ../src/guestfs.pod:279
36130 msgid "UPLOADING"
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:281
36135 msgid ""
36136 "It's often the case that you want to write a file or files to the disk image."
36137 msgstr ""
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:284
36141 msgid ""
36142 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36143 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36144 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36145 "of other functions for creating test files, for example L</guestfs_fill> and "
36146 "L</guestfs_fill_pattern>."
36147 msgstr ""
36148
36149 #. type: textblock
36150 #: ../src/guestfs.pod:290
36151 msgid ""
36152 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36153 "file content or size (even files larger than 4 GB)."
36154 msgstr ""
36155
36156 #. type: textblock
36157 #: ../src/guestfs.pod:293
36158 msgid ""
36159 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36160 msgstr ""
36161
36162 #. type: textblock
36163 #: ../src/guestfs.pod:295
36164 msgid ""
36165 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36166 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36167 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36168 "in a predictable way (eg. adding it last after all other drives) then you "
36169 "can get the device name from L</guestfs_list_devices> and mount it directly "
36170 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36171 "portable between kernel versions, and they don't support labels or UUIDs.  "
36172 "If you want to pre-build an image or you need to mount it using a label or "
36173 "UUID, use an ISO image instead."
36174 msgstr ""
36175
36176 #. type: =head2
36177 #: ../src/guestfs.pod:306
36178 msgid "COPYING"
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:308
36183 msgid ""
36184 "There are various different commands for copying between files and devices "
36185 "and in and out of the guest filesystem.  These are summarised in the table "
36186 "below."
36187 msgstr ""
36188
36189 #. type: =item
36190 #: ../src/guestfs.pod:314
36191 msgid "B<file> to B<file>"
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:316
36196 msgid ""
36197 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36198 "directories recursively."
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:319
36203 msgid ""
36204 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36205 msgstr ""
36206
36207 #. type: =item
36208 #: ../src/guestfs.pod:322
36209 msgid "B<file> to B<device>"
36210 msgstr ""
36211
36212 #. type: =item
36213 #: ../src/guestfs.pod:324
36214 msgid "B<device> to B<file>"
36215 msgstr ""
36216
36217 #. type: =item
36218 #: ../src/guestfs.pod:326
36219 msgid "B<device> to B<device>"
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:328
36224 msgid ""
36225 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36226 "guestfs_copy_device_to_device>."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:331
36231 msgid "Example: duplicate the contents of an LV:"
36232 msgstr ""
36233
36234 #. type: verbatim
36235 #: ../src/guestfs.pod:333
36236 #, no-wrap
36237 msgid ""
36238 " guestfs_copy_device_to_device (g,\n"
36239 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36240 "         /* -1 marks the end of the list of optional parameters */\n"
36241 "         -1);\n"
36242 "\n"
36243 msgstr ""
36244
36245 #. type: textblock
36246 #: ../src/guestfs.pod:338
36247 msgid ""
36248 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36249 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36250 "optional C<size> parameter:"
36251 msgstr ""
36252
36253 #. type: verbatim
36254 #: ../src/guestfs.pod:342
36255 #, no-wrap
36256 msgid ""
36257 " guestfs_copy_device_to_device (g,\n"
36258 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36259 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36260 "         -1);\n"
36261 "\n"
36262 msgstr ""
36263
36264 #. type: =item
36265 #: ../src/guestfs.pod:347
36266 msgid "B<file on the host> to B<file or device>"
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:349
36271 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36272 msgstr ""
36273
36274 #. type: =item
36275 #: ../src/guestfs.pod:351
36276 msgid "B<file or device> to B<file on the host>"
36277 msgstr ""
36278
36279 #. type: textblock
36280 #: ../src/guestfs.pod:353
36281 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36282 msgstr ""
36283
36284 #. type: =head2
36285 #: ../src/guestfs.pod:357
36286 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:359
36291 msgid ""
36292 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36293 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36294 "appears you can only upload and download to files.  However many Un*x-like "
36295 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36296 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36297 "and arbitrary file descriptor N."
36298 msgstr ""
36299
36300 #. type: textblock
36301 #: ../src/guestfs.pod:367
36302 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36303 msgstr ""
36304
36305 #. type: verbatim
36306 #: ../src/guestfs.pod:370
36307 #, no-wrap
36308 msgid ""
36309 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36310 "\n"
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:372
36315 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36316 msgstr ""
36317
36318 #. type: verbatim
36319 #: ../src/guestfs.pod:374
36320 #, no-wrap
36321 msgid ""
36322 " char devfd[64];\n"
36323 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36324 " guestfs_tar_out (g, \"/\", devfd);\n"
36325 "\n"
36326 msgstr ""
36327
36328 #. type: =head2
36329 #: ../src/guestfs.pod:378
36330 msgid "LISTING FILES"
36331 msgstr ""
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:380
36335 msgid ""
36336 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36337 "L<guestfish(1)>-equivalent command C<ll>)."
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:383
36342 msgid ""
36343 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36344 "programs, as a flat list of strings."
36345 msgstr ""
36346
36347 #. type: textblock
36348 #: ../src/guestfs.pod:386
36349 msgid ""
36350 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36351 "directory, plus additional information about each one.  It is more "
36352 "equivalent to using the L<readdir(3)> call on a local filesystem."
36353 msgstr ""
36354
36355 #. type: textblock
36356 #: ../src/guestfs.pod:390
36357 msgid ""
36358 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36359 msgstr ""
36360
36361 #. type: =head2
36362 #: ../src/guestfs.pod:393
36363 msgid "RUNNING COMMANDS"
36364 msgstr ""
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:395
36368 msgid ""
36369 "Although libguestfs is primarily an API for manipulating files inside guest "
36370 "images, we also provide some limited facilities for running commands inside "
36371 "guests."
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:399
36376 msgid "There are many limitations to this:"
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:405
36381 msgid ""
36382 "The kernel version that the command runs under will be different from what "
36383 "it expects."
36384 msgstr ""
36385
36386 #. type: textblock
36387 #: ../src/guestfs.pod:410
36388 msgid ""
36389 "If the command needs to communicate with daemons, then most likely they "
36390 "won't be running."
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:415
36395 msgid "The command will be running in limited memory."
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:419
36400 msgid ""
36401 "The network may not be available unless you enable it (see L</"
36402 "guestfs_set_network>)."
36403 msgstr ""
36404
36405 #. type: textblock
36406 #: ../src/guestfs.pod:424
36407 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36408 msgstr ""
36409
36410 #. type: textblock
36411 #: ../src/guestfs.pod:428
36412 msgid ""
36413 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../src/guestfs.pod:433
36418 msgid ""
36419 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36420 "See L</SELINUX> in this manpage."
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../src/guestfs.pod:438
36425 msgid ""
36426 "I<Security:> It is not safe to run commands from untrusted, possibly "
36427 "malicious guests.  These commands may attempt to exploit your program by "
36428 "sending unexpected output.  They could also try to exploit the Linux kernel "
36429 "or qemu provided by the libguestfs appliance.  They could use the network "
36430 "provided by the libguestfs appliance to bypass ordinary network partitions "
36431 "and firewalls.  They could use the elevated privileges or different SELinux "
36432 "context of your program to their advantage."
36433 msgstr ""
36434
36435 #. type: textblock
36436 #: ../src/guestfs.pod:447
36437 msgid ""
36438 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36439 "(a script which runs when the guest next boots normally), and to have this "
36440 "script run the commands you want in the normal context of the running guest, "
36441 "network security and so on.  For information about other security issues, "
36442 "see L</SECURITY>."
36443 msgstr ""
36444
36445 #. type: textblock
36446 #: ../src/guestfs.pod:455
36447 msgid ""
36448 "The two main API calls to run commands are L</guestfs_command> and L</"
36449 "guestfs_sh> (there are also variations)."
36450 msgstr ""
36451
36452 #. type: textblock
36453 #: ../src/guestfs.pod:458
36454 msgid ""
36455 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36456 "shell globs, redirections, etc will work."
36457 msgstr ""
36458
36459 #. type: =head2
36460 #: ../src/guestfs.pod:461
36461 msgid "CONFIGURATION FILES"
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:463
36466 msgid ""
36467 "To read and write configuration files in Linux guest filesystems, we "
36468 "strongly recommend using Augeas.  For example, Augeas understands how to "
36469 "read and write, say, a Linux shadow password file or X.org configuration "
36470 "file, and so avoids you having to write that code."
36471 msgstr ""
36472
36473 #. type: textblock
36474 #: ../src/guestfs.pod:468
36475 msgid ""
36476 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36477 "document Augeas itself here because there is excellent documentation on the "
36478 "L<http://augeas.net/> website."
36479 msgstr ""
36480
36481 #. type: textblock
36482 #: ../src/guestfs.pod:472
36483 msgid ""
36484 "If you don't want to use Augeas (you fool!) then try calling L</"
36485 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36486 "over."
36487 msgstr ""
36488
36489 #. type: =head2
36490 #: ../src/guestfs.pod:476
36491 msgid "SELINUX"
36492 msgstr ""
36493
36494 #. type: textblock
36495 #: ../src/guestfs.pod:478
36496 msgid ""
36497 "We support SELinux guests.  To ensure that labeling happens correctly in "
36498 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36499 msgstr ""
36500
36501 #. type: textblock
36502 #: ../src/guestfs.pod:486
36503 msgid "Before launching, do:"
36504 msgstr ""
36505
36506 #. type: verbatim
36507 #: ../src/guestfs.pod:488
36508 #, no-wrap
36509 msgid ""
36510 " guestfs_set_selinux (g, 1);\n"
36511 "\n"
36512 msgstr ""
36513
36514 #. type: textblock
36515 #: ../src/guestfs.pod:492
36516 msgid ""
36517 "After mounting the guest's filesystem(s), load the policy.  This is best "
36518 "done by running the L<load_policy(8)> command in the guest itself:"
36519 msgstr ""
36520
36521 #. type: verbatim
36522 #: ../src/guestfs.pod:496
36523 #, no-wrap
36524 msgid ""
36525 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36526 "\n"
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:498
36531 msgid ""
36532 "(Older versions of C<load_policy> require you to specify the name of the "
36533 "policy file)."
36534 msgstr ""
36535
36536 #. type: textblock
36537 #: ../src/guestfs.pod:503
36538 msgid ""
36539 "Optionally, set the security context for the API.  The correct security "
36540 "context to use can only be known by inspecting the guest.  As an example:"
36541 msgstr ""
36542
36543 #. type: verbatim
36544 #: ../src/guestfs.pod:507
36545 #, no-wrap
36546 msgid ""
36547 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36548 "\n"
36549 msgstr ""
36550
36551 #. type: textblock
36552 #: ../src/guestfs.pod:511
36553 msgid "This will work for running commands and editing existing files."
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../src/guestfs.pod:513
36558 msgid ""
36559 "When new files are created, you may need to label them explicitly, for "
36560 "example by running the external command C<restorecon pathname>."
36561 msgstr ""
36562
36563 #. type: =head2
36564 #: ../src/guestfs.pod:517
36565 msgid "UMASK"
36566 msgstr ""
36567
36568 #. type: textblock
36569 #: ../src/guestfs.pod:519
36570 msgid ""
36571 "Certain calls are affected by the current file mode creation mask (the "
36572 "\"umask\").  In particular ones which create files or directories, such as "
36573 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36574 "either the default mode that the file is created with or modifies the mode "
36575 "that you supply."
36576 msgstr ""
36577
36578 #. type: textblock
36579 #: ../src/guestfs.pod:525
36580 msgid ""
36581 "The default umask is C<022>, so files are created with modes such as C<0644> "
36582 "and directories with C<0755>."
36583 msgstr ""
36584
36585 #. type: textblock
36586 #: ../src/guestfs.pod:528
36587 msgid ""
36588 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36589 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36590 "guestfs_chmod> after creating each file or directory."
36591 msgstr ""
36592
36593 #. type: textblock
36594 #: ../src/guestfs.pod:532
36595 msgid "For more information about umask, see L<umask(2)>."
36596 msgstr ""
36597
36598 #. type: textblock
36599 #: ../src/guestfs.pod:536
36600 msgid ""
36601 "Libguestfs allows you to access Linux guests which have been encrypted using "
36602 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36603 "standard.  This includes nearly all whole disk encryption systems used by "
36604 "modern Linux guests."
36605 msgstr ""
36606
36607 #. type: textblock
36608 #: ../src/guestfs.pod:542
36609 msgid ""
36610 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36611 "returns the string C<crypto_LUKS>)."
36612 msgstr ""
36613
36614 #. type: textblock
36615 #: ../src/guestfs.pod:545
36616 msgid ""
36617 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36618 "will require the passphrase!"
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../src/guestfs.pod:548
36623 msgid ""
36624 "Opening a LUKS device creates a new device mapper device called C</dev/"
36625 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36626 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36627 "from and encrypted to the underlying block device respectively."
36628 msgstr ""
36629
36630 #. type: textblock
36631 #: ../src/guestfs.pod:554
36632 msgid ""
36633 "LVM volume groups on the device can be made visible by calling L</"
36634 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36635 "(s) can now be mounted in the usual way."
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:558
36640 msgid ""
36641 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36642 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36643 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36644 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36645 "underlying encrypted block device)."
36646 msgstr ""
36647
36648 #. type: =head2
36649 #: ../src/guestfs.pod:565
36650 msgid "INSPECTION"
36651 msgstr ""
36652
36653 #. type: textblock
36654 #: ../src/guestfs.pod:567
36655 msgid ""
36656 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36657 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36658 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36659 "version 1.5.3 the most frequently used part of this library has been "
36660 "rewritten in C and moved into the core code)."
36661 msgstr ""
36662
36663 #. type: textblock
36664 #: ../src/guestfs.pod:574
36665 msgid ""
36666 "Add all disks belonging to the unknown virtual machine and call L</"
36667 "guestfs_launch> in the usual way."
36668 msgstr ""
36669
36670 #. type: textblock
36671 #: ../src/guestfs.pod:577
36672 msgid ""
36673 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36674 "and certain heuristics, and returns a list of operating systems that were "
36675 "found.  An empty list means none were found.  A single element is the root "
36676 "filesystem of the operating system.  For dual- or multi-boot guests, "
36677 "multiple roots can be returned, each one corresponding to a separate "
36678 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36679 "world of virtualization, but since this scenario can happen, we have built "
36680 "libguestfs to deal with it.)"
36681 msgstr ""
36682
36683 #. type: textblock
36684 #: ../src/guestfs.pod:586
36685 msgid ""
36686 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36687 "to get additional details about that operating system.  For example, call L</"
36688 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36689 "Windows and Linux-based operating systems respectively."
36690 msgstr ""
36691
36692 #. type: textblock
36693 #: ../src/guestfs.pod:592
36694 msgid ""
36695 "Un*x-like and Linux-based operating systems usually consist of several "
36696 "filesystems which are mounted at boot time (for example, a separate boot "
36697 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36698 "filesystems correspond to mount points.  Call "
36699 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36700 "hash table like this example:"
36701 msgstr ""
36702
36703 #. type: verbatim
36704 #: ../src/guestfs.pod:599
36705 #, no-wrap
36706 msgid ""
36707 " /boot => /dev/sda1\n"
36708 " /     => /dev/vg_guest/lv_root\n"
36709 " /usr  => /dev/vg_guest/lv_usr\n"
36710 "\n"
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:603
36715 msgid ""
36716 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36717 "filesystems as suggested."
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:606
36722 msgid ""
36723 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36724 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36725 msgstr ""
36726
36727 #. type: textblock
36728 #: ../src/guestfs.pod:610
36729 msgid ""
36730 "Inspection currently only works for some common operating systems.  "
36731 "Contributors are welcome to send patches for other operating systems that we "
36732 "currently cannot detect."
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../src/guestfs.pod:614
36737 msgid ""
36738 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36739 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36740 "encrypted devices."
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../src/guestfs.pod:618
36745 msgid ""
36746 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36747 "inspection and caches the results in the guest handle.  Subsequent calls to "
36748 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36749 "read the disks.  If you change the content of the guest disks, you can redo "
36750 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36751 "guestfs_inspect_list_applications> works a little differently from the other "
36752 "calls and does read the disks.  See documentation for that function for "
36753 "details)."
36754 msgstr ""
36755
36756 #. type: =head3
36757 #: ../src/guestfs.pod:627
36758 msgid "INSPECTING INSTALL DISKS"
36759 msgstr ""
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:629
36763 msgid ""
36764 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36765 "CDs and more."
36766 msgstr ""
36767
36768 #. type: textblock
36769 #: ../src/guestfs.pod:632
36770 msgid ""
36771 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36772 "system, which currently can be C<installed> (a regular operating system) or "
36773 "C<installer> (some sort of install disk)."
36774 msgstr ""
36775
36776 #. type: textblock
36777 #: ../src/guestfs.pod:636
36778 msgid ""
36779 "Further information is available about the operating system that can be "
36780 "installed using the regular inspection APIs like L</"
36781 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36782 msgstr ""
36783
36784 #. type: textblock
36785 #: ../src/guestfs.pod:641
36786 msgid ""
36787 "Some additional information specific to installer disks is also available "
36788 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36789 "guestfs_inspect_is_multipart> calls."
36790 msgstr ""
36791
36792 #. type: =head2
36793 #: ../src/guestfs.pod:646
36794 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36795 msgstr ""
36796
36797 #. type: textblock
36798 #: ../src/guestfs.pod:648
36799 msgid ""
36800 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36801 "ntfs-3g.org/> driver."
36802 msgstr ""
36803
36804 #. type: =head3
36805 #: ../src/guestfs.pod:651
36806 msgid "DRIVE LETTERS AND PATHS"
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:653
36811 msgid ""
36812 "DOS and Windows still use drive letters, and the filesystems are always "
36813 "treated as case insensitive by Windows itself, and therefore you might find "
36814 "a Windows configuration file referring to a path like C<c:\\windows"
36815 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36816 "might be referred to as C</WINDOWS/System32>."
36817 msgstr ""
36818
36819 #. type: textblock
36820 #: ../src/guestfs.pod:659
36821 msgid ""
36822 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36823 "L</guestfs_inspect_get_drive_mappings>)"
36824 msgstr ""
36825
36826 #. type: textblock
36827 #: ../src/guestfs.pod:662
36828 msgid ""
36829 "Dealing with separator characters (backslash vs forward slash) is outside "
36830 "the scope of libguestfs, but usually a simple character replacement will "
36831 "work."
36832 msgstr ""
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:666
36836 msgid ""
36837 "To resolve the case insensitivity of paths, call L</"
36838 "guestfs_case_sensitive_path>."
36839 msgstr ""
36840
36841 #. type: =head3
36842 #: ../src/guestfs.pod:669
36843 msgid "ACCESSING THE WINDOWS REGISTRY"
36844 msgstr ""
36845
36846 #. type: textblock
36847 #: ../src/guestfs.pod:671
36848 msgid ""
36849 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36850 "files, through the library C<hivex> which is part of the libguestfs project "
36851 "although ships as a separate tarball.  You have to locate and download the "
36852 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36853 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36854 "reg(1)> for more help on this issue."
36855 msgstr ""
36856
36857 #. type: =head3
36858 #: ../src/guestfs.pod:679
36859 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36860 msgstr ""
36861
36862 #. type: textblock
36863 #: ../src/guestfs.pod:681
36864 msgid ""
36865 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36866 "provide something which looks like a Linux symlink.  The way it tries to do "
36867 "the rewriting is described here:"
36868 msgstr ""
36869
36870 #. type: textblock
36871 #: ../src/guestfs.pod:685
36872 msgid ""
36873 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36874 "symbolic-links/>"
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../src/guestfs.pod:687
36879 msgid ""
36880 "The essential problem is that ntfs-3g simply does not have enough "
36881 "information to do a correct job.  NTFS links can contain drive letters and "
36882 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36883 "It is almost certainly the case that libguestfs callers should ignore what "
36884 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36885 msgstr ""
36886
36887 #. type: textblock
36888 #: ../src/guestfs.pod:694
36889 msgid ""
36890 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36891 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36892 "attribute, and read the raw reparse data from that (you can find the format "
36893 "documented in various places around the web)."
36894 msgstr ""
36895
36896 #. type: =head3
36897 #: ../src/guestfs.pod:699
36898 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:701
36903 msgid ""
36904 "There are other useful extended attributes that can be read from ntfs-3g "
36905 "filesystems (using L</guestfs_getxattr>).  See:"
36906 msgstr ""
36907
36908 #. type: textblock
36909 #: ../src/guestfs.pod:704
36910 msgid ""
36911 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36912 msgstr ""
36913
36914 #. type: =head2
36915 #: ../src/guestfs.pod:706
36916 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36917 msgstr ""
36918
36919 #. type: textblock
36920 #: ../src/guestfs.pod:708
36921 msgid ""
36922 "Although we don't want to discourage you from using the C API, we will "
36923 "mention here that the same API is also available in other languages."
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../src/guestfs.pod:711
36928 msgid ""
36929 "The API is broadly identical in all supported languages.  This means that "
36930 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36931 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36932 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36933 "each language."
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:717
36938 msgid ""
36939 "Error messages are automatically transformed into exceptions if the language "
36940 "supports it."
36941 msgstr ""
36942
36943 #. type: textblock
36944 #: ../src/guestfs.pod:720
36945 msgid ""
36946 "We don't try to \"object orientify\" parts of the API in OO languages, "
36947 "although contributors are welcome to write higher level APIs above what we "
36948 "provide in their favourite languages if they wish."
36949 msgstr ""
36950
36951 #. type: =item
36952 #: ../src/guestfs.pod:726
36953 msgid "B<C++>"
36954 msgstr ""
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:728
36958 msgid ""
36959 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36960 "identical to the C API.  C++ classes and exceptions are not used."
36961 msgstr ""
36962
36963 #. type: =item
36964 #: ../src/guestfs.pod:732
36965 msgid "B<C#>"
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:734
36970 msgid ""
36971 "The C# bindings are highly experimental.  Please read the warnings at the "
36972 "top of C<csharp/Libguestfs.cs>."
36973 msgstr ""
36974
36975 #. type: =item
36976 #: ../src/guestfs.pod:737
36977 msgid "B<Erlang>"
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:739
36982 msgid "See L<guestfs-erlang(3)>."
36983 msgstr ""
36984
36985 #. type: =item
36986 #: ../src/guestfs.pod:741
36987 msgid "B<Haskell>"
36988 msgstr ""
36989
36990 #. type: textblock
36991 #: ../src/guestfs.pod:743
36992 msgid ""
36993 "This is the only language binding that is working but incomplete.  Only "
36994 "calls which return simple integers have been bound in Haskell, and we are "
36995 "looking for help to complete this binding."
36996 msgstr ""
36997
36998 #. type: =item
36999 #: ../src/guestfs.pod:747
37000 msgid "B<Java>"
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:749
37005 msgid ""
37006 "Full documentation is contained in the Javadoc which is distributed with "
37007 "libguestfs.  For examples, see L<guestfs-java(3)>."
37008 msgstr ""
37009
37010 #. type: =item
37011 #: ../src/guestfs.pod:752
37012 msgid "B<OCaml>"
37013 msgstr ""
37014
37015 #. type: textblock
37016 #: ../src/guestfs.pod:754
37017 msgid "See L<guestfs-ocaml(3)>."
37018 msgstr ""
37019
37020 #. type: =item
37021 #: ../src/guestfs.pod:756
37022 msgid "B<Perl>"
37023 msgstr ""
37024
37025 #. type: textblock
37026 #: ../src/guestfs.pod:758
37027 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
37028 msgstr ""
37029
37030 #. type: =item
37031 #: ../src/guestfs.pod:760
37032 msgid "B<PHP>"
37033 msgstr ""
37034
37035 #. type: textblock
37036 #: ../src/guestfs.pod:762
37037 msgid ""
37038 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
37039 "the php-libguestfs package for your distribution."
37040 msgstr ""
37041
37042 #. type: textblock
37043 #: ../src/guestfs.pod:765
37044 msgid "The PHP binding only works correctly on 64 bit machines."
37045 msgstr ""
37046
37047 #. type: =item
37048 #: ../src/guestfs.pod:767
37049 msgid "B<Python>"
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:769
37054 msgid "See L<guestfs-python(3)>."
37055 msgstr ""
37056
37057 #. type: =item
37058 #: ../src/guestfs.pod:771
37059 msgid "B<Ruby>"
37060 msgstr ""
37061
37062 #. type: textblock
37063 #: ../src/guestfs.pod:773
37064 msgid "See L<guestfs-ruby(3)>."
37065 msgstr ""
37066
37067 #. type: =item
37068 #: ../src/guestfs.pod:775
37069 msgid "B<shell scripts>"
37070 msgstr ""
37071
37072 #. type: textblock
37073 #: ../src/guestfs.pod:777
37074 msgid "See L<guestfish(1)>."
37075 msgstr ""
37076
37077 #. type: =head2
37078 #: ../src/guestfs.pod:781
37079 msgid "LIBGUESTFS GOTCHAS"
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../src/guestfs.pod:783
37084 msgid ""
37085 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37086 "system [...] that works in the way it is documented but is counterintuitive "
37087 "and almost invites mistakes.\""
37088 msgstr ""
37089
37090 #. type: textblock
37091 #: ../src/guestfs.pod:787
37092 msgid ""
37093 "Since we developed libguestfs and the associated tools, there are several "
37094 "things we would have designed differently, but are now stuck with for "
37095 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37096 "release, you can expect these to change.  Beware of them."
37097 msgstr ""
37098
37099 #. type: =item
37100 #: ../src/guestfs.pod:795
37101 msgid "Autosync / forgetting to sync."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:797
37106 msgid ""
37107 "I<Update:> Autosync is enabled by default for all API users starting from "
37108 "libguestfs 1.5.24.  This section only applies to older versions."
37109 msgstr ""
37110
37111 #. type: textblock
37112 #: ../src/guestfs.pod:800
37113 msgid ""
37114 "When modifying a filesystem from C or another language, you B<must> unmount "
37115 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37116 "libguestfs handle.  You can also call:"
37117 msgstr ""
37118
37119 #. type: verbatim
37120 #: ../src/guestfs.pod:804
37121 #, no-wrap
37122 msgid ""
37123 " guestfs_set_autosync (g, 1);\n"
37124 "\n"
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:806
37129 msgid ""
37130 "to have the unmount/sync done automatically for you when the handle 'g' is "
37131 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:810
37136 msgid ""
37137 "If you forget to do this, then it is entirely possible that your changes "
37138 "won't be written out, or will be partially written, or (very rarely) that "
37139 "you'll get disk corruption."
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:814
37144 msgid ""
37145 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37146 "guestfish scripts that forget to sync will work just fine, which can make "
37147 "this very puzzling if you are trying to debug a problem."
37148 msgstr ""
37149
37150 #. type: =item
37151 #: ../src/guestfs.pod:818
37152 msgid "Mount option C<-o sync> should not be the default."
37153 msgstr ""
37154
37155 #. type: textblock
37156 #: ../src/guestfs.pod:820
37157 msgid ""
37158 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37159 "libguestfs 1.13.16.  This section only applies to older versions."
37160 msgstr ""
37161
37162 #. type: textblock
37163 #: ../src/guestfs.pod:823
37164 msgid ""
37165 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37166 "However C<-o sync> does not add any reliability benefit, but does have a "
37167 "very large performance impact."
37168 msgstr ""
37169
37170 #. type: textblock
37171 #: ../src/guestfs.pod:827
37172 msgid ""
37173 "The work around is to use L</guestfs_mount_options> and set the mount "
37174 "options that you actually want to use."
37175 msgstr ""
37176
37177 #. type: =item
37178 #: ../src/guestfs.pod:830
37179 msgid "Read-only should be the default."
37180 msgstr ""
37181
37182 #. type: textblock
37183 #: ../src/guestfs.pod:832
37184 msgid ""
37185 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37186 "specify I<--rw> if you want to make changes to the image."
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../src/guestfs.pod:835
37191 msgid "This would reduce the potential to corrupt live VM images."
37192 msgstr ""
37193
37194 #. type: textblock
37195 #: ../src/guestfs.pod:837
37196 msgid ""
37197 "Note that many filesystems change the disk when you just mount and unmount, "
37198 "even if you didn't perform any writes.  You need to use L</"
37199 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37200 msgstr ""
37201
37202 #. type: =item
37203 #: ../src/guestfs.pod:841
37204 msgid "guestfish command line is hard to use."
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../src/guestfs.pod:843
37209 msgid ""
37210 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37211 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37212 "exist, so it fails.  In earlier versions of guestfish the error message was "
37213 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37214 "we should have used C<guestfish -c command> to run commands."
37215 msgstr ""
37216
37217 #. type: =item
37218 #: ../src/guestfs.pod:850
37219 msgid "guestfish megabyte modifiers don't work right on all commands"
37220 msgstr ""
37221
37222 #. type: textblock
37223 #: ../src/guestfs.pod:852
37224 msgid ""
37225 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37226 "other modifiers).  What guestfish actually does is to multiply the number "
37227 "part by the modifier part and pass the result to the C API.  However this "
37228 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37229 "expecting some other unit (eg. megabytes)."
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:859
37234 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37235 msgstr ""
37236
37237 #. type: verbatim
37238 #: ../src/guestfs.pod:861
37239 #, no-wrap
37240 msgid ""
37241 " lvcreate LV VG 100M\n"
37242 "\n"
37243 msgstr ""
37244
37245 #. type: textblock
37246 #: ../src/guestfs.pod:863
37247 msgid ""
37248 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37249 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37250 "megabytes * megabytes) logical volume.  The error message you get from this "
37251 "is also a little obscure."
37252 msgstr ""
37253
37254 #. type: textblock
37255 #: ../src/guestfs.pod:868
37256 msgid ""
37257 "This could be fixed in the generator by specially marking parameters and "
37258 "return values which take bytes or other units."
37259 msgstr ""
37260
37261 #. type: =item
37262 #: ../src/guestfs.pod:871
37263 msgid "Ambiguity between devices and paths"
37264 msgstr ""
37265
37266 #. type: textblock
37267 #: ../src/guestfs.pod:873
37268 msgid ""
37269 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37270 "sdb2>) and a similar pathname.  A file might just happen to be called "
37271 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../src/guestfs.pod:878
37276 msgid ""
37277 "In the current API we usually resolve this ambiguity by having two separate "
37278 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37279 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37280 "detecting if the path supplied begins with C</dev/>."
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:884
37285 msgid ""
37286 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37287 "make paths/devices into structured names.  One way to do this would be to "
37288 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37289 "aspect of grub.  Another way would be to use a structured type, equivalent "
37290 "to this OCaml type:"
37291 msgstr ""
37292
37293 #. type: verbatim
37294 #: ../src/guestfs.pod:890
37295 #, no-wrap
37296 msgid ""
37297 " type path = Path of string | Device of int | Partition of int * int\n"
37298 "\n"
37299 msgstr ""
37300
37301 #. type: textblock
37302 #: ../src/guestfs.pod:892
37303 msgid "which would allow you to pass arguments like:"
37304 msgstr ""
37305
37306 #. type: verbatim
37307 #: ../src/guestfs.pod:894
37308 #, no-wrap
37309 msgid ""
37310 " Path \"/foo/bar\"\n"
37311 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37312 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37313 " Path \"/dev/sdb2\"    (* not a device *)\n"
37314 "\n"
37315 msgstr ""
37316
37317 #. type: textblock
37318 #: ../src/guestfs.pod:899
37319 msgid ""
37320 "As you can see there are still problems to resolve even with this "
37321 "representation.  Also consider how it might work in guestfish."
37322 msgstr ""
37323
37324 #. type: =head2
37325 #: ../src/guestfs.pod:904
37326 msgid "KEYS AND PASSPHRASES"
37327 msgstr ""
37328
37329 #. type: textblock
37330 #: ../src/guestfs.pod:906
37331 msgid ""
37332 "Certain libguestfs calls take a parameter that contains sensitive key "
37333 "material, passed in as a C string."
37334 msgstr ""
37335
37336 #. type: textblock
37337 #: ../src/guestfs.pod:909
37338 msgid ""
37339 "In the future we would hope to change the libguestfs implementation so that "
37340 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37341 "swap.  However this is I<not> done at the moment, because of the complexity "
37342 "of such an implementation."
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:914
37347 msgid ""
37348 "Therefore you should be aware that any key parameter you pass to libguestfs "
37349 "might end up being written out to the swap partition.  If this is a concern, "
37350 "scrub the swap partition or don't use libguestfs on encrypted devices."
37351 msgstr ""
37352
37353 #. type: =head2
37354 #: ../src/guestfs.pod:919
37355 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37356 msgstr ""
37357
37358 #. type: textblock
37359 #: ../src/guestfs.pod:921
37360 msgid ""
37361 "All high-level libguestfs actions are synchronous.  If you want to use "
37362 "libguestfs asynchronously then you must create a thread."
37363 msgstr ""
37364
37365 #. type: textblock
37366 #: ../src/guestfs.pod:924
37367 msgid ""
37368 "Only use the handle from a single thread.  Either use the handle exclusively "
37369 "from one thread, or provide your own mutex so that two threads cannot issue "
37370 "calls on the same handle at the same time."
37371 msgstr ""
37372
37373 #. type: textblock
37374 #: ../src/guestfs.pod:928
37375 msgid ""
37376 "See the graphical program guestfs-browser for one possible architecture for "
37377 "multithreaded programs using libvirt and libguestfs."
37378 msgstr ""
37379
37380 #. type: =head2
37381 #: ../src/guestfs.pod:931
37382 msgid "PATH"
37383 msgstr ""
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:933
37387 msgid ""
37388 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37389 "internal path."
37390 msgstr ""
37391
37392 #. type: textblock
37393 #: ../src/guestfs.pod:936
37394 msgid ""
37395 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37396 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37397 msgstr ""
37398
37399 #. type: textblock
37400 #: ../src/guestfs.pod:939
37401 msgid ""
37402 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37403 "to change the directories that libguestfs will search in.  The value is a "
37404 "colon-separated list of paths.  The current directory is I<not> searched "
37405 "unless the path contains an empty element or C<.>.  For example "
37406 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37407 "then C</usr/lib/guestfs>."
37408 msgstr ""
37409
37410 #. type: =head2
37411 #: ../src/guestfs.pod:946
37412 msgid "QEMU WRAPPERS"
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../src/guestfs.pod:948
37417 msgid ""
37418 "If you want to compile your own qemu, run qemu from a non-standard location, "
37419 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37420 "around qemu."
37421 msgstr ""
37422
37423 #. type: textblock
37424 #: ../src/guestfs.pod:952
37425 msgid ""
37426 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37427 "last command in the shell script (so that qemu replaces the shell and "
37428 "becomes the direct child of the libguestfs-using program).  If you don't do "
37429 "this, then the qemu process won't be cleaned up correctly."
37430 msgstr ""
37431
37432 #. type: textblock
37433 #: ../src/guestfs.pod:957
37434 msgid ""
37435 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37436 "source:"
37437 msgstr ""
37438
37439 #. type: verbatim
37440 #: ../src/guestfs.pod:960
37441 #, no-wrap
37442 msgid ""
37443 " #!/bin/sh -\n"
37444 " qemudir=/home/rjones/d/qemu\n"
37445 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37446 "\n"
37447 msgstr ""
37448
37449 #. type: textblock
37450 #: ../src/guestfs.pod:964
37451 msgid ""
37452 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37453 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37454 "example:"
37455 msgstr ""
37456
37457 #. type: verbatim
37458 #: ../src/guestfs.pod:968
37459 #, no-wrap
37460 msgid ""
37461 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37462 "\n"
37463 msgstr ""
37464
37465 #. type: textblock
37466 #: ../src/guestfs.pod:970
37467 msgid ""
37468 "Note that libguestfs also calls qemu with the -help and -version options in "
37469 "order to determine features."
37470 msgstr ""
37471
37472 #. type: textblock
37473 #: ../src/guestfs.pod:973
37474 msgid ""
37475 "Wrappers can also be used to edit the options passed to qemu.  In the "
37476 "following example, the C<-machine ...> option (C<-machine> and the following "
37477 "argument) are removed from the command line and replaced with C<-machine pc,"
37478 "accel=tcg>.  The while loop iterates over the options until it finds the "
37479 "right one to remove, putting the remaining options into the C<args> array."
37480 msgstr ""
37481
37482 #. type: verbatim
37483 #: ../src/guestfs.pod:982
37484 #, no-wrap
37485 msgid ""
37486 " i=0\n"
37487 " while [ $# -gt 0 ]; do\n"
37488 "     case \"$1\" in\n"
37489 "     -machine)\n"
37490 "         shift 2;;\n"
37491 "     *)\n"
37492 "         args[i]=\"$1\"\n"
37493 "         (( i++ ))\n"
37494 "         shift ;;\n"
37495 "     esac\n"
37496 " done\n"
37497 " \n"
37498 msgstr ""
37499
37500 #. type: verbatim
37501 #: ../src/guestfs.pod:994
37502 #, no-wrap
37503 msgid ""
37504 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37505 "\n"
37506 msgstr ""
37507
37508 #. type: =head2
37509 #: ../src/guestfs.pod:996
37510 msgid "ATTACHING TO RUNNING DAEMONS"
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:998
37515 msgid ""
37516 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37517 "babies.  Use with caution."
37518 msgstr ""
37519
37520 #. type: textblock
37521 #: ../src/guestfs.pod:1001
37522 msgid ""
37523 "I<Note (2):> This section explains how to attach to a running daemon from a "
37524 "low level perspective.  For most users, simply using virt tools such as "
37525 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37526 msgstr ""
37527
37528 #. type: =head3
37529 #: ../src/guestfs.pod:1005
37530 msgid "Using guestfs_set_attach_method"
37531 msgstr ""
37532
37533 #. type: textblock
37534 #: ../src/guestfs.pod:1007
37535 msgid ""
37536 "By calling L</guestfs_set_attach_method> you can change how the library "
37537 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37538 "ARCHITECTURE> for some background)."
37539 msgstr ""
37540
37541 #. type: textblock
37542 #: ../src/guestfs.pod:1011
37543 msgid ""
37544 "The normal attach method is C<appliance>, where a small appliance is created "
37545 "containing the daemon, and then the library connects to this."
37546 msgstr ""
37547
37548 #. type: textblock
37549 #: ../src/guestfs.pod:1014
37550 msgid ""
37551 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37552 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37553 "daemon over the Unix domain socket."
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:1018
37558 msgid ""
37559 "The normal use for this is to connect to a running virtual machine that "
37560 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37561 "files inside the live virtual machine."
37562 msgstr ""
37563
37564 #. type: =head3
37565 #: ../src/guestfs.pod:1022
37566 msgid "Using guestfs_add_domain with live flag"
37567 msgstr ""
37568
37569 #. type: textblock
37570 #: ../src/guestfs.pod:1024
37571 msgid ""
37572 "L</guestfs_add_domain> provides some help for getting the correct attach "
37573 "method.  If you pass the C<live> option to this function, then (if the "
37574 "virtual machine is running) it will examine the libvirt XML looking for a "
37575 "virtio-serial channel to connect to:"
37576 msgstr ""
37577
37578 #. type: verbatim
37579 #: ../src/guestfs.pod:1030
37580 #, no-wrap
37581 msgid ""
37582 " <domain>\n"
37583 "   ...\n"
37584 "   <devices>\n"
37585 "     ...\n"
37586 "     <channel type='unix'>\n"
37587 "       <source mode='bind' path='/path/to/socket'/>\n"
37588 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37589 "     </channel>\n"
37590 "     ...\n"
37591 "   </devices>\n"
37592 " </domain>\n"
37593 "\n"
37594 msgstr ""
37595
37596 #. type: textblock
37597 #: ../src/guestfs.pod:1042
37598 msgid ""
37599 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37600 "method to C<unix:/path/to/socket>."
37601 msgstr ""
37602
37603 #. type: textblock
37604 #: ../src/guestfs.pod:1045
37605 msgid ""
37606 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37607 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37608 "to attach to and modify live virtual machines."
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:1049
37613 msgid ""
37614 "The virtual machine needs to have been set up beforehand so that it has the "
37615 "virtio-serial channel and so that guestfsd is running inside it."
37616 msgstr ""
37617
37618 #. type: =head2
37619 #: ../src/guestfs.pod:1053
37620 msgid "ABI GUARANTEE"
37621 msgstr ""
37622
37623 #. type: textblock
37624 #: ../src/guestfs.pod:1055
37625 msgid ""
37626 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37627 "actions as outlined in this section.  Although we will deprecate some "
37628 "actions, for example if they get replaced by newer calls, we will keep the "
37629 "old actions forever.  This allows you the developer to program in confidence "
37630 "against the libguestfs API."
37631 msgstr ""
37632
37633 #. type: =head2
37634 #: ../src/guestfs.pod:1061
37635 msgid "BLOCK DEVICE NAMING"
37636 msgstr ""
37637
37638 #. type: textblock
37639 #: ../src/guestfs.pod:1063
37640 msgid ""
37641 "In the kernel there is now quite a profusion of schemata for naming block "
37642 "devices (in this context, by I<block device> I mean a physical or virtual "
37643 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37644 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37645 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37646 "for the old IDE driver (particularly for SATA devices) those devices also "
37647 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37648 "paravirtualized drivers.  This has created several different naming systems, "
37649 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:1075
37654 msgid ""
37655 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37656 "Linux kernel to access block devices.  We can run a variety of appliances "
37657 "based on a variety of Linux kernels."
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../src/guestfs.pod:1079
37662 msgid ""
37663 "This causes a problem for libguestfs because many API calls use device or "
37664 "partition names.  Working scripts and the recipe (example) scripts that we "
37665 "make available over the internet could fail if the naming scheme changes."
37666 msgstr ""
37667
37668 #. type: textblock
37669 #: ../src/guestfs.pod:1084
37670 msgid ""
37671 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37672 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37673 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37674 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:1090
37679 msgid ""
37680 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37681 "L</guestfs_list_partitions> and similar calls return the true names of the "
37682 "devices and partitions as known to the appliance."
37683 msgstr ""
37684
37685 #. type: =head3
37686 #: ../src/guestfs.pod:1095
37687 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37688 msgstr ""
37689
37690 #. type: textblock
37691 #: ../src/guestfs.pod:1097
37692 msgid ""
37693 "Usually this translation is transparent.  However in some (very rare)  cases "
37694 "you may need to know the exact algorithm.  Such cases include where you use "
37695 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37696 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37697 msgstr ""
37698
37699 #. type: textblock
37700 #: ../src/guestfs.pod:1103
37701 msgid ""
37702 "The algorithm is applied only to I<parameters> which are known to be either "
37703 "device or partition names.  Return values from functions such as L</"
37704 "guestfs_list_devices> are never changed."
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:1111
37709 msgid "Is the string a parameter which is a device or partition name?"
37710 msgstr ""
37711
37712 #. type: textblock
37713 #: ../src/guestfs.pod:1115
37714 msgid "Does the string begin with C</dev/sd>?"
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../src/guestfs.pod:1119
37719 msgid ""
37720 "Does the named device exist? If so, we use that device.  However if I<not> "
37721 "then we continue with this algorithm."
37722 msgstr ""
37723
37724 #. type: textblock
37725 #: ../src/guestfs.pod:1124
37726 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37727 msgstr ""
37728
37729 #. type: textblock
37730 #: ../src/guestfs.pod:1126
37731 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37732 msgstr ""
37733
37734 #. type: textblock
37735 #: ../src/guestfs.pod:1128
37736 msgid "If that named device exists, use it.  If not, continue."
37737 msgstr ""
37738
37739 #. type: textblock
37740 #: ../src/guestfs.pod:1132
37741 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:1134
37746 msgid "If that named device exists, use it.  If not, return an error."
37747 msgstr ""
37748
37749 #. type: =head3
37750 #: ../src/guestfs.pod:1138
37751 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:1140
37756 msgid ""
37757 "Although the standard naming scheme and automatic translation is useful for "
37758 "simple programs and guestfish scripts, for larger programs it is best not to "
37759 "rely on this mechanism."
37760 msgstr ""
37761
37762 #. type: textblock
37763 #: ../src/guestfs.pod:1144
37764 msgid ""
37765 "Where possible for maximum future portability programs using libguestfs "
37766 "should use these future-proof techniques:"
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:1151
37771 msgid ""
37772 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37773 "device names, and then use those names directly."
37774 msgstr ""
37775
37776 #. type: textblock
37777 #: ../src/guestfs.pod:1154
37778 msgid ""
37779 "Since those device names exist by definition, they will never be translated."
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:1159
37784 msgid ""
37785 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37786 "filesystem labels."
37787 msgstr ""
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:1166
37791 msgid ""
37792 "This section discusses security implications of using libguestfs, "
37793 "particularly with untrusted or malicious guests or disk images."
37794 msgstr ""
37795
37796 #. type: =head2
37797 #: ../src/guestfs.pod:1169
37798 msgid "GENERAL SECURITY CONSIDERATIONS"
37799 msgstr ""
37800
37801 #. type: textblock
37802 #: ../src/guestfs.pod:1171
37803 msgid ""
37804 "Be careful with any files or data that you download from a guest (by "
37805 "\"download\" we mean not just the L</guestfs_download> command but any "
37806 "command that reads files, filenames, directories or anything else from a "
37807 "disk image).  An attacker could manipulate the data to fool your program "
37808 "into doing the wrong thing.  Consider cases such as:"
37809 msgstr ""
37810
37811 #. type: textblock
37812 #: ../src/guestfs.pod:1181
37813 msgid "the data (file etc) not being present"
37814 msgstr ""
37815
37816 #. type: textblock
37817 #: ../src/guestfs.pod:1185
37818 msgid "being present but empty"
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:1189
37823 msgid "being much larger than normal"
37824 msgstr ""
37825
37826 #. type: textblock
37827 #: ../src/guestfs.pod:1193
37828 msgid "containing arbitrary 8 bit data"
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../src/guestfs.pod:1197
37833 msgid "being in an unexpected character encoding"
37834 msgstr ""
37835
37836 #. type: textblock
37837 #: ../src/guestfs.pod:1201
37838 msgid "containing homoglyphs."
37839 msgstr ""
37840
37841 #. type: =head2
37842 #: ../src/guestfs.pod:1205
37843 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:1207
37848 msgid ""
37849 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37850 "(VFS) module can sometimes be escalated into exploits by deliberately "
37851 "creating a malicious, malformed filesystem.  These exploits are very severe "
37852 "for two reasons.  Firstly there are very many filesystem drivers in the "
37853 "kernel, and many of them are infrequently used and not much developer "
37854 "attention has been paid to the code.  Linux userspace helps potential "
37855 "crackers by detecting the filesystem type and automatically choosing the "
37856 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37857 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37858 "exploit (worse in some ways), giving immediate and total access to the "
37859 "system right down to the hardware level."
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:1220
37864 msgid ""
37865 "That explains why you should never mount a filesystem from an untrusted "
37866 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37867 "inside a qemu virtual machine, usually running as a non-root user.  The "
37868 "attacker would need to write a filesystem which first exploited the kernel, "
37869 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37870 "the libguestfs protocol, and finally to be as serious as the host kernel "
37871 "exploit it would need to escalate its privileges to root.  This multi-step "
37872 "escalation, performed by a static piece of data, is thought to be extremely "
37873 "hard to do, although we never say 'never' about security issues."
37874 msgstr ""
37875
37876 #. type: textblock
37877 #: ../src/guestfs.pod:1231
37878 msgid ""
37879 "In any case callers can reduce the attack surface by forcing the filesystem "
37880 "type when mounting (use L</guestfs_mount_vfs>)."
37881 msgstr ""
37882
37883 #. type: =head2
37884 #: ../src/guestfs.pod:1234
37885 msgid "PROTOCOL SECURITY"
37886 msgstr ""
37887
37888 #. type: textblock
37889 #: ../src/guestfs.pod:1236
37890 msgid ""
37891 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37892 "defined upper message size.  However a program that uses libguestfs must "
37893 "also take care - for example you can write a program that downloads a binary "
37894 "from a disk image and executes it locally, and no amount of protocol "
37895 "security will save you from the consequences."
37896 msgstr ""
37897
37898 #. type: =head2
37899 #: ../src/guestfs.pod:1242
37900 msgid "INSPECTION SECURITY"
37901 msgstr ""
37902
37903 #. type: textblock
37904 #: ../src/guestfs.pod:1244
37905 msgid ""
37906 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37907 "directly from the guest, and these could contain any 8 bit data.  Callers "
37908 "should be careful to escape these before printing them to a structured file "
37909 "(for example, use HTML escaping if creating a web page)."
37910 msgstr ""
37911
37912 #. type: textblock
37913 #: ../src/guestfs.pod:1250
37914 msgid ""
37915 "Guest configuration may be altered in unusual ways by the administrator of "
37916 "the virtual machine, and may not reflect reality (particularly for untrusted "
37917 "or actively malicious guests).  For example we parse the hostname from "
37918 "configuration files like C</etc/sysconfig/network> that we find in the "
37919 "guest, but the guest administrator can easily manipulate these files to "
37920 "provide the wrong hostname."
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../src/guestfs.pod:1258
37925 msgid ""
37926 "The inspection API parses guest configuration using two external libraries: "
37927 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37928 "designed to be robust in the face of malicious data, although denial of "
37929 "service attacks are still possible, for example with oversized configuration "
37930 "files."
37931 msgstr ""
37932
37933 #. type: =head2
37934 #: ../src/guestfs.pod:1264
37935 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37936 msgstr ""
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:1266
37940 msgid ""
37941 "Be very cautious about running commands from the guest.  By running a "
37942 "command in the guest, you are giving CPU time to a binary that you do not "
37943 "control, under the same user account as the library, albeit wrapped in qemu "
37944 "virtualization.  More information and alternatives can be found in the "
37945 "section L</RUNNING COMMANDS>."
37946 msgstr ""
37947
37948 #. type: =head2
37949 #: ../src/guestfs.pod:1272
37950 msgid "CVE-2010-3851"
37951 msgstr ""
37952
37953 #. type: textblock
37954 #: ../src/guestfs.pod:1274
37955 msgid "https://bugzilla.redhat.com/642934"
37956 msgstr ""
37957
37958 #. type: textblock
37959 #: ../src/guestfs.pod:1276
37960 msgid ""
37961 "This security bug concerns the automatic disk format detection that qemu "
37962 "does on disk images."
37963 msgstr ""
37964
37965 #. type: textblock
37966 #: ../src/guestfs.pod:1279
37967 msgid ""
37968 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37969 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37970 "for one of the known headers, and if none is found then assuming the disk "
37971 "image must be raw."
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../src/guestfs.pod:1284
37976 msgid ""
37977 "This allows a guest which has been given a raw disk image to write some "
37978 "other header.  At next boot (or when the disk image is accessed by "
37979 "libguestfs) qemu would do autodetection and think the disk image format was, "
37980 "say, qcow2 based on the header written by the guest."
37981 msgstr ""
37982
37983 #. type: textblock
37984 #: ../src/guestfs.pod:1289
37985 msgid ""
37986 "This in itself would not be a problem, but qcow2 offers many features, one "
37987 "of which is to allow a disk image to refer to another image (called the "
37988 "\"backing disk\").  It does this by placing the path to the backing disk "
37989 "into the qcow2 header.  This path is not validated and could point to any "
37990 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37991 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37992 "control of the attacker."
37993 msgstr ""
37994
37995 #. type: textblock
37996 #: ../src/guestfs.pod:1297
37997 msgid ""
37998 "In libguestfs this is rather hard to exploit except under two circumstances:"
37999 msgstr ""
38000
38001 #. type: textblock
38002 #: ../src/guestfs.pod:1304
38003 msgid "You have enabled the network or have opened the disk in write mode."
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:1308
38008 msgid ""
38009 "You are also running untrusted code from the guest (see L</RUNNING "
38010 "COMMANDS>)."
38011 msgstr ""
38012
38013 #. type: textblock
38014 #: ../src/guestfs.pod:1313
38015 msgid ""
38016 "The way to avoid this is to specify the expected disk format when adding "
38017 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
38018 "should always do this if the disk is raw format, and it's a good idea for "
38019 "other cases too."
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../src/guestfs.pod:1318
38024 msgid ""
38025 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38026 "format is fetched from libvirt and passed through."
38027 msgstr ""
38028
38029 #. type: textblock
38030 #: ../src/guestfs.pod:1321
38031 msgid ""
38032 "For libguestfs tools, use the I<--format> command line parameter as "
38033 "appropriate."
38034 msgstr ""
38035
38036 #. type: =head1
38037 #: ../src/guestfs.pod:1324
38038 msgid "CONNECTION MANAGEMENT"
38039 msgstr ""
38040
38041 #. type: =head2
38042 #: ../src/guestfs.pod:1326
38043 msgid "guestfs_h *"
38044 msgstr ""
38045
38046 #. type: textblock
38047 #: ../src/guestfs.pod:1328
38048 msgid ""
38049 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38050 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38051 "handle and release all resources used."
38052 msgstr ""
38053
38054 #. type: textblock
38055 #: ../src/guestfs.pod:1332
38056 msgid ""
38057 "For information on using multiple handles and threads, see the section L</"
38058 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38059 msgstr ""
38060
38061 #. type: =head2
38062 #: ../src/guestfs.pod:1335
38063 msgid "guestfs_create"
38064 msgstr ""
38065
38066 #. type: verbatim
38067 #: ../src/guestfs.pod:1337
38068 #, no-wrap
38069 msgid ""
38070 " guestfs_h *guestfs_create (void);\n"
38071 "\n"
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../src/guestfs.pod:1339
38076 msgid "Create a connection handle."
38077 msgstr ""
38078
38079 #. type: textblock
38080 #: ../src/guestfs.pod:1341
38081 msgid ""
38082 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38083 "NULL."
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:1344
38088 msgid ""
38089 "You have to \"configure\" the handle after creating it.  This includes "
38090 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38091 "handle at least once."
38092 msgstr ""
38093
38094 #. type: textblock
38095 #: ../src/guestfs.pod:1348
38096 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38097 msgstr ""
38098
38099 #. type: textblock
38100 #: ../src/guestfs.pod:1350
38101 msgid ""
38102 "You may also want to configure error handling for the handle.  See the L</"
38103 "ERROR HANDLING> section below."
38104 msgstr ""
38105
38106 #. type: =head2
38107 #: ../src/guestfs.pod:1353
38108 msgid "guestfs_close"
38109 msgstr ""
38110
38111 #. type: verbatim
38112 #: ../src/guestfs.pod:1355
38113 #, no-wrap
38114 msgid ""
38115 " void guestfs_close (guestfs_h *g);\n"
38116 "\n"
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:1357
38121 msgid "This closes the connection handle and frees up all resources used."
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../src/guestfs.pod:1359
38126 msgid ""
38127 "If autosync was set on the handle and the handle was launched, then this "
38128 "implicitly calls various functions to unmount filesystems and sync the "
38129 "disk.  See L</guestfs_set_autosync> for more details."
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:1363
38134 msgid "If a close callback was set on the handle, then it is called."
38135 msgstr ""
38136
38137 #. type: =head1
38138 #: ../src/guestfs.pod:1365
38139 msgid "ERROR HANDLING"
38140 msgstr ""
38141
38142 #. type: textblock
38143 #: ../src/guestfs.pod:1367
38144 msgid ""
38145 "API functions can return errors.  For example, almost all functions that "
38146 "return C<int> will return C<-1> to indicate an error."
38147 msgstr ""
38148
38149 #. type: textblock
38150 #: ../src/guestfs.pod:1370
38151 msgid ""
38152 "Additional information is available for errors: an error message string and "
38153 "optionally an error number (errno) if the thing that failed was a system "
38154 "call."
38155 msgstr ""
38156
38157 #. type: textblock
38158 #: ../src/guestfs.pod:1374
38159 msgid ""
38160 "You can get at the additional information about the last error on the handle "
38161 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38162 "up an error handler with L</guestfs_set_error_handler>."
38163 msgstr ""
38164
38165 #. type: textblock
38166 #: ../src/guestfs.pod:1379
38167 msgid ""
38168 "When the handle is created, a default error handler is installed which "
38169 "prints the error message string to C<stderr>.  For small short-running "
38170 "command line programs it is sufficient to do:"
38171 msgstr ""
38172
38173 #. type: verbatim
38174 #: ../src/guestfs.pod:1383
38175 #, no-wrap
38176 msgid ""
38177 " if (guestfs_launch (g) == -1)\n"
38178 "   exit (EXIT_FAILURE);\n"
38179 "\n"
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:1386
38184 msgid ""
38185 "since the default error handler will ensure that an error message has been "
38186 "printed to C<stderr> before the program exits."
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:1389
38191 msgid ""
38192 "For other programs the caller will almost certainly want to install an "
38193 "alternate error handler or do error handling in-line like this:"
38194 msgstr ""
38195
38196 #. type: verbatim
38197 #: ../src/guestfs.pod:1392
38198 #, no-wrap
38199 msgid ""
38200 " /* This disables the default behaviour of printing errors\n"
38201 "    on stderr. */\n"
38202 " guestfs_set_error_handler (g, NULL, NULL);\n"
38203 " \n"
38204 msgstr ""
38205
38206 #. type: verbatim
38207 #: ../src/guestfs.pod:1396
38208 #, no-wrap
38209 msgid ""
38210 " if (guestfs_launch (g) == -1) {\n"
38211 "   /* Examine the error message and print it etc. */\n"
38212 "   char *msg = guestfs_last_error (g);\n"
38213 "   int errnum = guestfs_last_errno (g);\n"
38214 "   fprintf (stderr, \"%s\", msg);\n"
38215 "   if (errnum != 0)\n"
38216 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38217 "   fprintf (stderr, \"\\n\");\n"
38218 "   /* ... */\n"
38219 " }\n"
38220 "\n"
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../src/guestfs.pod:1407
38225 msgid ""
38226 "Out of memory errors are handled differently.  The default action is to call "
38227 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38228 "guestfs_set_out_of_memory_handler>."
38229 msgstr ""
38230
38231 #. type: textblock
38232 #: ../src/guestfs.pod:1411
38233 msgid ""
38234 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38235 "because there is no handle if this happens there is no way to get additional "
38236 "error information.  However L</guestfs_create> is supposed to be a "
38237 "lightweight operation which can only fail because of insufficient memory (it "
38238 "returns NULL in this case)."
38239 msgstr ""
38240
38241 #. type: =head2
38242 #: ../src/guestfs.pod:1417
38243 msgid "guestfs_last_error"
38244 msgstr ""
38245
38246 #. type: verbatim
38247 #: ../src/guestfs.pod:1419
38248 #, no-wrap
38249 msgid ""
38250 " const char *guestfs_last_error (guestfs_h *g);\n"
38251 "\n"
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:1421
38256 msgid ""
38257 "This returns the last error message that happened on C<g>.  If there has not "
38258 "been an error since the handle was created, then this returns C<NULL>."
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../src/guestfs.pod:1425
38263 msgid ""
38264 "The lifetime of the returned string is until the next error occurs, or L</"
38265 "guestfs_close> is called."
38266 msgstr ""
38267
38268 #. type: =head2
38269 #: ../src/guestfs.pod:1428
38270 msgid "guestfs_last_errno"
38271 msgstr ""
38272
38273 #. type: verbatim
38274 #: ../src/guestfs.pod:1430
38275 #, no-wrap
38276 msgid ""
38277 " int guestfs_last_errno (guestfs_h *g);\n"
38278 "\n"
38279 msgstr ""
38280
38281 #. type: textblock
38282 #: ../src/guestfs.pod:1432
38283 msgid "This returns the last error number (errno) that happened on C<g>."
38284 msgstr ""
38285
38286 #. type: textblock
38287 #: ../src/guestfs.pod:1434
38288 msgid "If successful, an errno integer not equal to zero is returned."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:1436
38293 msgid ""
38294 "If no error, this returns 0.  This call can return 0 in three situations:"
38295 msgstr ""
38296
38297 #. type: textblock
38298 #: ../src/guestfs.pod:1443
38299 msgid "There has not been any error on the handle."
38300 msgstr ""
38301
38302 #. type: textblock
38303 #: ../src/guestfs.pod:1447
38304 msgid ""
38305 "There has been an error but the errno was meaningless.  This corresponds to "
38306 "the case where the error did not come from a failed system call, but for "
38307 "some other reason."
38308 msgstr ""
38309
38310 #. type: textblock
38311 #: ../src/guestfs.pod:1453
38312 msgid ""
38313 "There was an error from a failed system call, but for some reason the errno "
38314 "was not captured and returned.  This usually indicates a bug in libguestfs."
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:1459
38319 msgid ""
38320 "Libguestfs tries to convert the errno from inside the applicance into a "
38321 "corresponding errno for the caller (not entirely trivial: the appliance "
38322 "might be running a completely different operating system from the library "
38323 "and error numbers are not standardized across Un*xen).  If this could not be "
38324 "done, then the error is translated to C<EINVAL>.  In practice this should "
38325 "only happen in very rare circumstances."
38326 msgstr ""
38327
38328 #. type: =head2
38329 #: ../src/guestfs.pod:1467
38330 msgid "guestfs_set_error_handler"
38331 msgstr ""
38332
38333 #. type: verbatim
38334 #: ../src/guestfs.pod:1469
38335 #, no-wrap
38336 msgid ""
38337 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38338 "                                           void *opaque,\n"
38339 "                                           const char *msg);\n"
38340 " void guestfs_set_error_handler (guestfs_h *g,\n"
38341 "                                 guestfs_error_handler_cb cb,\n"
38342 "                                 void *opaque);\n"
38343 "\n"
38344 msgstr ""
38345
38346 #. type: textblock
38347 #: ../src/guestfs.pod:1476
38348 msgid ""
38349 "The callback C<cb> will be called if there is an error.  The parameters "
38350 "passed to the callback are an opaque data pointer and the error message "
38351 "string."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:1480
38356 msgid ""
38357 "C<errno> is not passed to the callback.  To get that the callback must call "
38358 "L</guestfs_last_errno>."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:1483
38363 msgid ""
38364 "Note that the message string C<msg> is freed as soon as the callback "
38365 "function returns, so if you want to stash it somewhere you must make your "
38366 "own copy."
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../src/guestfs.pod:1487
38371 msgid "The default handler prints messages on C<stderr>."
38372 msgstr ""
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:1489
38376 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38377 msgstr ""
38378
38379 #. type: =head2
38380 #: ../src/guestfs.pod:1491
38381 msgid "guestfs_get_error_handler"
38382 msgstr ""
38383
38384 #. type: verbatim
38385 #: ../src/guestfs.pod:1493
38386 #, no-wrap
38387 msgid ""
38388 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38389 "                                                     void **opaque_rtn);\n"
38390 "\n"
38391 msgstr ""
38392
38393 #. type: textblock
38394 #: ../src/guestfs.pod:1496
38395 msgid "Returns the current error handler callback."
38396 msgstr ""
38397
38398 #. type: =head2
38399 #: ../src/guestfs.pod:1498
38400 msgid "guestfs_set_out_of_memory_handler"
38401 msgstr ""
38402
38403 #. type: verbatim
38404 #: ../src/guestfs.pod:1500
38405 #, no-wrap
38406 msgid ""
38407 " typedef void (*guestfs_abort_cb) (void);\n"
38408 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38409 "                                         guestfs_abort_cb);\n"
38410 "\n"
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:1504
38415 msgid ""
38416 "The callback C<cb> will be called if there is an out of memory situation.  "
38417 "I<Note this callback must not return>."
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:1507
38422 msgid "The default is to call L<abort(3)>."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../src/guestfs.pod:1509
38427 msgid ""
38428 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38429 msgstr ""
38430
38431 #. type: =head2
38432 #: ../src/guestfs.pod:1512
38433 msgid "guestfs_get_out_of_memory_handler"
38434 msgstr ""
38435
38436 #. type: verbatim
38437 #: ../src/guestfs.pod:1514
38438 #, no-wrap
38439 msgid ""
38440 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38441 "\n"
38442 msgstr ""
38443
38444 #. type: textblock
38445 #: ../src/guestfs.pod:1516
38446 msgid "This returns the current out of memory handler."
38447 msgstr ""
38448
38449 #. type: =head1
38450 #: ../src/guestfs.pod:1518
38451 msgid "API CALLS"
38452 msgstr ""
38453
38454 #. type: =head1
38455 #: ../src/guestfs.pod:1522
38456 msgid "STRUCTURES"
38457 msgstr ""
38458
38459 #. type: textblock
38460 #: ../src/guestfs.pod:1524
38461 msgid "@STRUCTS@"
38462 msgstr ""
38463
38464 #. type: =head1
38465 #: ../src/guestfs.pod:1526
38466 msgid "AVAILABILITY"
38467 msgstr ""
38468
38469 #. type: =head2
38470 #: ../src/guestfs.pod:1528
38471 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38472 msgstr ""
38473
38474 #. type: textblock
38475 #: ../src/guestfs.pod:1530
38476 msgid ""
38477 "Using L</guestfs_available> you can test availability of the following "
38478 "groups of functions.  This test queries the appliance to see if the "
38479 "appliance you are currently using supports the functionality."
38480 msgstr ""
38481
38482 #. type: textblock
38483 #: ../src/guestfs.pod:1535
38484 msgid "@AVAILABILITY@"
38485 msgstr ""
38486
38487 #. type: =head2
38488 #: ../src/guestfs.pod:1537
38489 msgid "GUESTFISH supported COMMAND"
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../src/guestfs.pod:1539
38494 msgid ""
38495 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38496 "prints out the available groups and whether they are supported by this build "
38497 "of libguestfs.  Note however that you have to do C<run> first."
38498 msgstr ""
38499
38500 #. type: =head2
38501 #: ../src/guestfs.pod:1544
38502 msgid "SINGLE CALLS AT COMPILE TIME"
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../src/guestfs.pod:1546
38507 msgid ""
38508 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38509 "function, such as:"
38510 msgstr ""
38511
38512 #. type: verbatim
38513 #: ../src/guestfs.pod:1549
38514 #, no-wrap
38515 msgid ""
38516 " #define LIBGUESTFS_HAVE_DD 1\n"
38517 "\n"
38518 msgstr ""
38519
38520 #. type: textblock
38521 #: ../src/guestfs.pod:1551
38522 msgid "if L</guestfs_dd> is available."
38523 msgstr ""
38524
38525 #. type: textblock
38526 #: ../src/guestfs.pod:1553
38527 msgid ""
38528 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38529 "function is available at compile time, we recommended using build tools such "
38530 "as autoconf or cmake.  For example in autotools you could use:"
38531 msgstr ""
38532
38533 #. type: verbatim
38534 #: ../src/guestfs.pod:1558
38535 #, no-wrap
38536 msgid ""
38537 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38538 " AC_CHECK_FUNCS([guestfs_dd])\n"
38539 "\n"
38540 msgstr ""
38541
38542 #. type: textblock
38543 #: ../src/guestfs.pod:1561
38544 msgid ""
38545 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38546 "in your program."
38547 msgstr ""
38548
38549 #. type: =head2
38550 #: ../src/guestfs.pod:1564
38551 msgid "SINGLE CALLS AT RUN TIME"
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:1566
38556 msgid ""
38557 "Testing at compile time doesn't guarantee that a function really exists in "
38558 "the library.  The reason is that you might be dynamically linked against a "
38559 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38560 "This situation unfortunately results in a segmentation fault, which is a "
38561 "shortcoming of the C dynamic linking system itself."
38562 msgstr ""
38563
38564 #. type: textblock
38565 #: ../src/guestfs.pod:1573
38566 msgid ""
38567 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38568 "in this example program (note that you still need the compile time check as "
38569 "well):"
38570 msgstr ""
38571
38572 #. type: verbatim
38573 #: ../src/guestfs.pod:1577
38574 #, no-wrap
38575 msgid ""
38576 " #include <stdio.h>\n"
38577 " #include <stdlib.h>\n"
38578 " #include <unistd.h>\n"
38579 " #include <dlfcn.h>\n"
38580 " #include <guestfs.h>\n"
38581 " \n"
38582 msgstr ""
38583
38584 #. type: verbatim
38585 #: ../src/guestfs.pod:1583
38586 #, no-wrap
38587 msgid ""
38588 " main ()\n"
38589 " {\n"
38590 " #ifdef LIBGUESTFS_HAVE_DD\n"
38591 "   void *dl;\n"
38592 "   int has_function;\n"
38593 " \n"
38594 msgstr ""
38595
38596 #. type: verbatim
38597 #: ../src/guestfs.pod:1589
38598 #, no-wrap
38599 msgid ""
38600 "   /* Test if the function guestfs_dd is really available. */\n"
38601 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38602 "   if (!dl) {\n"
38603 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38604 "     exit (EXIT_FAILURE);\n"
38605 "   }\n"
38606 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38607 "   dlclose (dl);\n"
38608 " \n"
38609 msgstr ""
38610
38611 #. type: verbatim
38612 #: ../src/guestfs.pod:1598
38613 #, no-wrap
38614 msgid ""
38615 "   if (!has_function)\n"
38616 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38617 "   else {\n"
38618 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38619 "     /* Now it's safe to call\n"
38620 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38621 "     */\n"
38622 "   }\n"
38623 " #else\n"
38624 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38625 " #endif\n"
38626 "  }\n"
38627 "\n"
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../src/guestfs.pod:1611
38632 msgid ""
38633 "You may think the above is an awful lot of hassle, and it is.  There are "
38634 "other ways outside of the C linking system to ensure that this kind of "
38635 "incompatibility never arises, such as using package versioning:"
38636 msgstr ""
38637
38638 #. type: verbatim
38639 #: ../src/guestfs.pod:1616
38640 #, no-wrap
38641 msgid ""
38642 " Requires: libguestfs >= 1.0.80\n"
38643 "\n"
38644 msgstr ""
38645
38646 #. type: =head1
38647 #: ../src/guestfs.pod:1618
38648 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38649 msgstr ""
38650
38651 #. type: textblock
38652 #: ../src/guestfs.pod:1620
38653 msgid ""
38654 "A recent feature of the API is the introduction of calls which take optional "
38655 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38656 "takes variable arguments (ie. C<...>), as in this example:"
38657 msgstr ""
38658
38659 #. type: verbatim
38660 #: ../src/guestfs.pod:1625
38661 #, no-wrap
38662 msgid ""
38663 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38664 "\n"
38665 msgstr ""
38666
38667 #. type: textblock
38668 #: ../src/guestfs.pod:1627
38669 msgid ""
38670 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38671 "call with no optional arguments specified:"
38672 msgstr ""
38673
38674 #. type: verbatim
38675 #: ../src/guestfs.pod:1630
38676 #, no-wrap
38677 msgid ""
38678 " guestfs_add_drive_opts (g, filename, -1);\n"
38679 "\n"
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:1632
38684 msgid "With a single optional argument:"
38685 msgstr ""
38686
38687 #. type: verbatim
38688 #: ../src/guestfs.pod:1634
38689 #, no-wrap
38690 msgid ""
38691 " guestfs_add_drive_opts (g, filename,\n"
38692 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38693 "                         -1);\n"
38694 "\n"
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../src/guestfs.pod:1638
38699 msgid "With two:"
38700 msgstr ""
38701
38702 #. type: verbatim
38703 #: ../src/guestfs.pod:1640
38704 #, no-wrap
38705 msgid ""
38706 " guestfs_add_drive_opts (g, filename,\n"
38707 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38708 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38709 "                         -1);\n"
38710 "\n"
38711 msgstr ""
38712
38713 #. type: textblock
38714 #: ../src/guestfs.pod:1645
38715 msgid ""
38716 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38717 "happen!"
38718 msgstr ""
38719
38720 #. type: =head2
38721 #: ../src/guestfs.pod:1648
38722 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38723 msgstr ""
38724
38725 #. type: textblock
38726 #: ../src/guestfs.pod:1650
38727 msgid ""
38728 "The second variant has the same name with the suffix C<_va>, which works the "
38729 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38730 "example function, this is declared:"
38731 msgstr ""
38732
38733 #. type: verbatim
38734 #: ../src/guestfs.pod:1654
38735 #, no-wrap
38736 msgid ""
38737 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38738 "                                va_list args);\n"
38739 "\n"
38740 msgstr ""
38741
38742 #. type: =head2
38743 #: ../src/guestfs.pod:1657
38744 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38745 msgstr ""
38746
38747 #. type: textblock
38748 #: ../src/guestfs.pod:1659
38749 msgid ""
38750 "The third variant is useful where you need to construct these calls.  You "
38751 "pass in a structure where you fill in the optional fields.  The structure "
38752 "has a bitmask as the first element which you must set to indicate which "
38753 "fields you have filled in.  For our example function the structure and call "
38754 "are declared:"
38755 msgstr ""
38756
38757 #. type: verbatim
38758 #: ../src/guestfs.pod:1665
38759 #, no-wrap
38760 msgid ""
38761 " struct guestfs_add_drive_opts_argv {\n"
38762 "   uint64_t bitmask;\n"
38763 "   int readonly;\n"
38764 "   const char *format;\n"
38765 "   /* ... */\n"
38766 " };\n"
38767 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38768 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38769 "\n"
38770 msgstr ""
38771
38772 #. type: textblock
38773 #: ../src/guestfs.pod:1674
38774 msgid "You could call it like this:"
38775 msgstr ""
38776
38777 #. type: verbatim
38778 #: ../src/guestfs.pod:1676
38779 #, no-wrap
38780 msgid ""
38781 " struct guestfs_add_drive_opts_argv optargs = {\n"
38782 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38783 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38784 "   .readonly = 1,\n"
38785 "   .format = \"qcow2\"\n"
38786 " };\n"
38787 " \n"
38788 msgstr ""
38789
38790 #. type: verbatim
38791 #: ../src/guestfs.pod:1683
38792 #, no-wrap
38793 msgid ""
38794 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38795 "\n"
38796 msgstr ""
38797
38798 #. type: textblock
38799 #: ../src/guestfs.pod:1691
38800 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38801 msgstr ""
38802
38803 #. type: textblock
38804 #: ../src/guestfs.pod:1696
38805 msgid "You do not need to fill in all fields of the structure."
38806 msgstr ""
38807
38808 #. type: textblock
38809 #: ../src/guestfs.pod:1700
38810 msgid ""
38811 "There must be a one-to-one correspondence between fields of the structure "
38812 "that are filled in, and bits set in the bitmask."
38813 msgstr ""
38814
38815 #. type: =head2
38816 #: ../src/guestfs.pod:1705
38817 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38818 msgstr ""
38819
38820 #. type: textblock
38821 #: ../src/guestfs.pod:1707
38822 msgid ""
38823 "In other languages, optional arguments are expressed in the way that is "
38824 "natural for that language.  We refer you to the language-specific "
38825 "documentation for more details on that."
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../src/guestfs.pod:1711
38830 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38831 msgstr ""
38832
38833 #. type: =head2
38834 #: ../src/guestfs.pod:1713
38835 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38836 msgstr ""
38837
38838 #. type: textblock
38839 #: ../src/guestfs.pod:1715
38840 msgid ""
38841 "B<Note:> This section documents the generic event mechanism introduced in "
38842 "libguestfs 1.10, which you should use in new code if possible.  The old "
38843 "functions C<guestfs_set_log_message_callback>, "
38844 "C<guestfs_set_subprocess_quit_callback>, "
38845 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38846 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38847 "page.  Because of the ABI guarantee, the old functions continue to work."
38848 msgstr ""
38849
38850 #. type: textblock
38851 #: ../src/guestfs.pod:1724
38852 msgid ""
38853 "Handles generate events when certain things happen, such as log messages "
38854 "being generated, progress messages during long-running operations, or the "
38855 "handle being closed.  The API calls described below let you register a "
38856 "callback to be called when events happen.  You can register multiple "
38857 "callbacks (for the same, different or overlapping sets of events), and "
38858 "individually remove callbacks.  If callbacks are not removed, then they "
38859 "remain in force until the handle is closed."
38860 msgstr ""
38861
38862 #. type: textblock
38863 #: ../src/guestfs.pod:1732
38864 msgid ""
38865 "In the current implementation, events are only generated synchronously: that "
38866 "means that events (and hence callbacks) can only happen while you are in the "
38867 "middle of making another libguestfs call.  The callback is called in the "
38868 "same thread."
38869 msgstr ""
38870
38871 #. type: textblock
38872 #: ../src/guestfs.pod:1737
38873 msgid ""
38874 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38875 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38876 msgstr ""
38877
38878 #. type: =head3
38879 #: ../src/guestfs.pod:1741
38880 msgid "CLASSES OF EVENTS"
38881 msgstr ""
38882
38883 #. type: =item
38884 #: ../src/guestfs.pod:1745
38885 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38886 msgstr ""
38887
38888 #. type: textblock
38889 #: ../src/guestfs.pod:1748
38890 msgid ""
38891 "The callback function will be called while the handle is being closed "
38892 "(synchronously from L</guestfs_close>)."
38893 msgstr ""
38894
38895 #. type: textblock
38896 #: ../src/guestfs.pod:1751
38897 msgid ""
38898 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38899 "handles that are open when the program exits.  This means that this callback "
38900 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38901 "problems in higher-level languages (eg. if your HLL interpreter has already "
38902 "been cleaned up by the time this is called, and if your callback then jumps "
38903 "into some HLL function)."
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../src/guestfs.pod:1758
38908 msgid ""
38909 "If no callback is registered: the handle is closed without any callback "
38910 "being invoked."
38911 msgstr ""
38912
38913 #. type: =item
38914 #: ../src/guestfs.pod:1761
38915 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38916 msgstr ""
38917
38918 #. type: textblock
38919 #: ../src/guestfs.pod:1764
38920 msgid ""
38921 "The callback function will be called when the child process quits, either "
38922 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38923 "corresponds to a transition from any state to the CONFIG state)."
38924 msgstr ""
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38928 msgid "If no callback is registered: the event is ignored."
38929 msgstr ""
38930
38931 #. type: =item
38932 #: ../src/guestfs.pod:1770
38933 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38934 msgstr ""
38935
38936 #. type: textblock
38937 #: ../src/guestfs.pod:1773
38938 msgid ""
38939 "The callback function will be called when the child process becomes ready "
38940 "first time after it has been launched.  (This corresponds to a transition "
38941 "from LAUNCHING to the READY state)."
38942 msgstr ""
38943
38944 #. type: =item
38945 #: ../src/guestfs.pod:1779
38946 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38947 msgstr ""
38948
38949 #. type: textblock
38950 #: ../src/guestfs.pod:1782
38951 msgid ""
38952 "Some long-running operations can generate progress messages.  If this "
38953 "callback is registered, then it will be called each time a progress message "
38954 "is generated (usually two seconds after the operation started, and three "
38955 "times per second thereafter until it completes, although the frequency may "
38956 "change in future versions)."
38957 msgstr ""
38958
38959 #. type: textblock
38960 #: ../src/guestfs.pod:1788
38961 msgid ""
38962 "The callback receives in the payload four unsigned 64 bit numbers which are "
38963 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38964 msgstr ""
38965
38966 #. type: textblock
38967 #: ../src/guestfs.pod:1791
38968 msgid ""
38969 "The units of C<total> are not defined, although for some operations C<total> "
38970 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38971 "or megabytes), and C<position> may be the portion which has been transferred."
38972 msgstr ""
38973
38974 #. type: textblock
38975 #: ../src/guestfs.pod:1796
38976 msgid "The only defined and stable parts of the API are:"
38977 msgstr ""
38978
38979 #. type: textblock
38980 #: ../src/guestfs.pod:1802
38981 msgid ""
38982 "The callback can display to the user some type of progress bar or indicator "
38983 "which shows the ratio of C<position>:C<total>."
38984 msgstr ""
38985
38986 #. type: textblock
38987 #: ../src/guestfs.pod:1807
38988 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38989 msgstr ""
38990
38991 #. type: textblock
38992 #: ../src/guestfs.pod:1811
38993 msgid ""
38994 "If any progress notification is sent during a call, then a final progress "
38995 "notification is always sent when C<position> = C<total> (I<unless> the call "
38996 "fails with an error)."
38997 msgstr ""
38998
38999 #. type: textblock
39000 #: ../src/guestfs.pod:1815
39001 msgid ""
39002 "This is to simplify caller code, so callers can easily set the progress "
39003 "indicator to \"100%\" at the end of the operation, without requiring special "
39004 "code to detect this case."
39005 msgstr ""
39006
39007 #. type: textblock
39008 #: ../src/guestfs.pod:1821
39009 msgid ""
39010 "For some calls we are unable to estimate the progress of the call, but we "
39011 "can still generate progress messages to indicate activity.  This is known as "
39012 "\"pulse mode\", and is directly supported by certain progress bar "
39013 "implementations (eg. GtkProgressBar)."
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../src/guestfs.pod:1826
39018 msgid ""
39019 "For these calls, zero or more progress messages are generated with "
39020 "C<position = 0> and C<total = 1>, followed by a final message with "
39021 "C<position = total = 1>."
39022 msgstr ""
39023
39024 #. type: textblock
39025 #: ../src/guestfs.pod:1830
39026 msgid ""
39027 "As noted above, if the call fails with an error then the final message may "
39028 "not be generated."
39029 msgstr ""
39030
39031 #. type: textblock
39032 #: ../src/guestfs.pod:1835
39033 msgid ""
39034 "The callback also receives the procedure number (C<proc_nr>) and serial "
39035 "number (C<serial>) of the call.  These are only useful for debugging "
39036 "protocol issues, and the callback can normally ignore them.  The callback "
39037 "may want to print these numbers in error messages or debugging messages."
39038 msgstr ""
39039
39040 #. type: textblock
39041 #: ../src/guestfs.pod:1841
39042 msgid "If no callback is registered: progress messages are discarded."
39043 msgstr ""
39044
39045 #. type: =item
39046 #: ../src/guestfs.pod:1843
39047 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../src/guestfs.pod:1846
39052 msgid ""
39053 "The callback function is called whenever a log message is generated by qemu, "
39054 "the appliance kernel, guestfsd (daemon), or utility programs."
39055 msgstr ""
39056
39057 #. type: textblock
39058 #: ../src/guestfs.pod:1849
39059 msgid ""
39060 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39061 "guestfs_launch>) then additional debug messages are generated."
39062 msgstr ""
39063
39064 #. type: textblock
39065 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39066 msgid ""
39067 "If no callback is registered: the messages are discarded unless the verbose "
39068 "flag is set in which case they are sent to stderr.  You can override the "
39069 "printing of verbose messages to stderr by setting up a callback."
39070 msgstr ""
39071
39072 #. type: =item
39073 #: ../src/guestfs.pod:1857
39074 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39075 msgstr ""
39076
39077 #. type: textblock
39078 #: ../src/guestfs.pod:1860
39079 msgid ""
39080 "The callback function is called whenever a log message is generated by the "
39081 "library part of libguestfs."
39082 msgstr ""
39083
39084 #. type: textblock
39085 #: ../src/guestfs.pod:1863
39086 msgid ""
39087 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39088 "messages are generated."
39089 msgstr ""
39090
39091 #. type: =item
39092 #: ../src/guestfs.pod:1871
39093 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39094 msgstr ""
39095
39096 #. type: textblock
39097 #: ../src/guestfs.pod:1874
39098 msgid ""
39099 "The callback function is called whenever a trace message is generated.  This "
39100 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39101 msgstr ""
39102
39103 #. type: textblock
39104 #: ../src/guestfs.pod:1877
39105 msgid ""
39106 "If no callback is registered: the messages are sent to stderr.  You can "
39107 "override the printing of trace messages to stderr by setting up a callback."
39108 msgstr ""
39109
39110 #. type: =item
39111 #: ../src/guestfs.pod:1881
39112 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39113 msgstr ""
39114
39115 #. type: textblock
39116 #: ../src/guestfs.pod:1884
39117 msgid ""
39118 "The callback function is called whenever a libguestfs function is entered."
39119 msgstr ""
39120
39121 #. type: textblock
39122 #: ../src/guestfs.pod:1887
39123 msgid ""
39124 "The payload is a string which contains the name of the function that we are "
39125 "entering (not including C<guestfs_> prefix)."
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:1890
39130 msgid ""
39131 "Note that libguestfs functions can call themselves, so you may see many "
39132 "events from a single call.  A few libguestfs functions do not generate this "
39133 "event."
39134 msgstr ""
39135
39136 #. type: =head3
39137 #: ../src/guestfs.pod:1898
39138 msgid "guestfs_set_event_callback"
39139 msgstr ""
39140
39141 #. type: verbatim
39142 #: ../src/guestfs.pod:1900
39143 #, no-wrap
39144 msgid ""
39145 " int guestfs_set_event_callback (guestfs_h *g,\n"
39146 "                                 guestfs_event_callback cb,\n"
39147 "                                 uint64_t event_bitmask,\n"
39148 "                                 int flags,\n"
39149 "                                 void *opaque);\n"
39150 "\n"
39151 msgstr ""
39152
39153 #. type: textblock
39154 #: ../src/guestfs.pod:1906
39155 msgid ""
39156 "This function registers a callback (C<cb>) for all event classes in the "
39157 "C<event_bitmask>."
39158 msgstr ""
39159
39160 #. type: textblock
39161 #: ../src/guestfs.pod:1909
39162 msgid ""
39163 "For example, to register for all log message events, you could call this "
39164 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39165 "To register a single callback for all possible classes of events, use "
39166 "C<GUESTFS_EVENT_ALL>."
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:1915
39171 msgid "C<flags> should always be passed as 0."
39172 msgstr ""
39173
39174 #. type: textblock
39175 #: ../src/guestfs.pod:1917
39176 msgid ""
39177 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39178 "it for any purpose."
39179 msgstr ""
39180
39181 #. type: textblock
39182 #: ../src/guestfs.pod:1920
39183 msgid ""
39184 "The return value is the event handle (an integer) which you can use to "
39185 "delete the callback (see below)."
39186 msgstr ""
39187
39188 #. type: textblock
39189 #: ../src/guestfs.pod:1923
39190 msgid ""
39191 "If there is an error, this function returns C<-1>, and sets the error in the "
39192 "handle in the usual way (see L</guestfs_last_error> etc.)"
39193 msgstr ""
39194
39195 #. type: textblock
39196 #: ../src/guestfs.pod:1926
39197 msgid ""
39198 "Callbacks remain in effect until they are deleted, or until the handle is "
39199 "closed."
39200 msgstr ""
39201
39202 #. type: textblock
39203 #: ../src/guestfs.pod:1929
39204 msgid ""
39205 "In the case where multiple callbacks are registered for a particular event "
39206 "class, all of the callbacks are called.  The order in which multiple "
39207 "callbacks are called is not defined."
39208 msgstr ""
39209
39210 #. type: =head3
39211 #: ../src/guestfs.pod:1933
39212 msgid "guestfs_delete_event_callback"
39213 msgstr ""
39214
39215 #. type: verbatim
39216 #: ../src/guestfs.pod:1935
39217 #, no-wrap
39218 msgid ""
39219 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39220 "\n"
39221 msgstr ""
39222
39223 #. type: textblock
39224 #: ../src/guestfs.pod:1937
39225 msgid ""
39226 "Delete a callback that was previously registered.  C<event_handle> should be "
39227 "the integer that was returned by a previous call to "
39228 "C<guestfs_set_event_callback> on the same handle."
39229 msgstr ""
39230
39231 #. type: =head3
39232 #: ../src/guestfs.pod:1941
39233 msgid "guestfs_event_callback"
39234 msgstr ""
39235
39236 #. type: verbatim
39237 #: ../src/guestfs.pod:1943
39238 #, no-wrap
39239 msgid ""
39240 " typedef void (*guestfs_event_callback) (\n"
39241 "                  guestfs_h *g,\n"
39242 "                  void *opaque,\n"
39243 "                  uint64_t event,\n"
39244 "                  int event_handle,\n"
39245 "                  int flags,\n"
39246 "                  const char *buf, size_t buf_len,\n"
39247 "                  const uint64_t *array, size_t array_len);\n"
39248 "\n"
39249 msgstr ""
39250
39251 #. type: textblock
39252 #: ../src/guestfs.pod:1952
39253 msgid ""
39254 "This is the type of the event callback function that you have to provide."
39255 msgstr ""
39256
39257 #. type: textblock
39258 #: ../src/guestfs.pod:1955
39259 msgid ""
39260 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39261 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39262 "handle, and C<flags> which in the current API you should ignore."
39263 msgstr ""
39264
39265 #. type: textblock
39266 #: ../src/guestfs.pod:1959
39267 msgid ""
39268 "The remaining parameters contain the event payload (if any).  Each event may "
39269 "contain a payload, which usually relates to the event class, but for future "
39270 "proofing your code should be written to handle any payload for any event "
39271 "class."
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../src/guestfs.pod:1964
39276 msgid ""
39277 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39278 "there is no message buffer).  Note that this message buffer can contain "
39279 "arbitrary 8 bit data, including NUL bytes."
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:1968
39284 msgid ""
39285 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39286 "moment this is only used for progress messages."
39287 msgstr ""
39288
39289 #. type: =head3
39290 #: ../src/guestfs.pod:1971
39291 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39292 msgstr ""
39293
39294 #. type: textblock
39295 #: ../src/guestfs.pod:1973
39296 msgid ""
39297 "One motivation for the generic event API was to allow GUI programs to "
39298 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39299 "unconditionally to C<stderr>."
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:1977
39304 msgid ""
39305 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39306 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39307 "messages are not events; you must capture error messages separately)."
39308 msgstr ""
39309
39310 #. type: textblock
39311 #: ../src/guestfs.pod:1982
39312 msgid ""
39313 "Programs have to set up a callback to capture the classes of events of "
39314 "interest:"
39315 msgstr ""
39316
39317 #. type: verbatim
39318 #: ../src/guestfs.pod:1985
39319 #, no-wrap
39320 msgid ""
39321 " int eh =\n"
39322 "   guestfs_set_event_callback\n"
39323 "     (g, message_callback,\n"
39324 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39325 "      GUESTFS_EVENT_TRACE,\n"
39326 "      0, NULL) == -1)\n"
39327 " if (eh == -1) {\n"
39328 "   // handle error in the usual way\n"
39329 " }\n"
39330 "\n"
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../src/guestfs.pod:1995
39335 msgid ""
39336 "The callback can then direct messages to the appropriate place.  In this "
39337 "example, messages are directed to syslog:"
39338 msgstr ""
39339
39340 #. type: verbatim
39341 #: ../src/guestfs.pod:1998
39342 #, no-wrap
39343 msgid ""
39344 " static void\n"
39345 " message_callback (\n"
39346 "         guestfs_h *g,\n"
39347 "         void *opaque,\n"
39348 "         uint64_t event,\n"
39349 "         int event_handle,\n"
39350 "         int flags,\n"
39351 "         const char *buf, size_t buf_len,\n"
39352 "         const uint64_t *array, size_t array_len)\n"
39353 " {\n"
39354 "   const int priority = LOG_USER|LOG_INFO;\n"
39355 "   if (buf_len > 0)\n"
39356 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39357 " }\n"
39358 "\n"
39359 msgstr ""
39360
39361 #. type: =head1
39362 #: ../src/guestfs.pod:2013
39363 msgid "CANCELLING LONG TRANSFERS"
39364 msgstr ""
39365
39366 #. type: textblock
39367 #: ../src/guestfs.pod:2015
39368 msgid ""
39369 "Some operations can be cancelled by the caller while they are in progress.  "
39370 "Currently only operations that involve uploading or downloading data can be "
39371 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39372 "parameters in the generator)."
39373 msgstr ""
39374
39375 #. type: =head2
39376 #: ../src/guestfs.pod:2020
39377 msgid "guestfs_user_cancel"
39378 msgstr ""
39379
39380 #. type: verbatim
39381 #: ../src/guestfs.pod:2022
39382 #, no-wrap
39383 msgid ""
39384 " void guestfs_user_cancel (guestfs_h *g);\n"
39385 "\n"
39386 msgstr ""
39387
39388 #. type: textblock
39389 #: ../src/guestfs.pod:2024
39390 msgid ""
39391 "C<guestfs_user_cancel> cancels the current upload or download operation."
39392 msgstr ""
39393
39394 #. type: textblock
39395 #: ../src/guestfs.pod:2027
39396 msgid ""
39397 "Unlike most other libguestfs calls, this function is signal safe and thread "
39398 "safe.  You can call it from a signal handler or from another thread, without "
39399 "needing to do any locking."
39400 msgstr ""
39401
39402 #. type: textblock
39403 #: ../src/guestfs.pod:2031
39404 msgid ""
39405 "The transfer that was in progress (if there is one) will stop shortly "
39406 "afterwards, and will return an error.  The errno (see L</"
39407 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39408 "out if the operation was cancelled or failed because of another error."
39409 msgstr ""
39410
39411 #. type: textblock
39412 #: ../src/guestfs.pod:2037
39413 msgid ""
39414 "No cleanup is performed: for example, if a file was being uploaded then "
39415 "after cancellation there may be a partially uploaded file.  It is the "
39416 "caller's responsibility to clean up if necessary."
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../src/guestfs.pod:2041
39421 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39422 msgstr ""
39423
39424 #. type: textblock
39425 #: ../src/guestfs.pod:2043
39426 msgid ""
39427 "In an interactive text-based program, you might call it from a C<SIGINT> "
39428 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39429 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39430 "receive the C<^C> signal)."
39431 msgstr ""
39432
39433 #. type: textblock
39434 #: ../src/guestfs.pod:2048
39435 msgid ""
39436 "In a graphical program, when the main thread is displaying a progress bar "
39437 "with a cancel button, wire up the cancel button to call this function."
39438 msgstr ""
39439
39440 #. type: =head1
39441 #: ../src/guestfs.pod:2052
39442 msgid "PRIVATE DATA AREA"
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../src/guestfs.pod:2054
39447 msgid ""
39448 "You can attach named pieces of private data to the libguestfs handle, fetch "
39449 "them by name, and walk over them, for the lifetime of the handle.  This is "
39450 "called the private data area and is only available from the C API."
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../src/guestfs.pod:2059
39455 msgid "To attach a named piece of data, use the following call:"
39456 msgstr ""
39457
39458 #. type: verbatim
39459 #: ../src/guestfs.pod:2061
39460 #, no-wrap
39461 msgid ""
39462 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39463 "\n"
39464 msgstr ""
39465
39466 #. type: textblock
39467 #: ../src/guestfs.pod:2063
39468 msgid ""
39469 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39470 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39471 "overwritten."
39472 msgstr ""
39473
39474 #. type: textblock
39475 #: ../src/guestfs.pod:2067
39476 msgid ""
39477 "You can use any C<key> you want, but your key should I<not> start with an "
39478 "underscore character.  Keys beginning with an underscore character are "
39479 "reserved for internal libguestfs purposes (eg. for implementing language "
39480 "bindings).  It is recommended that you prefix the key with some unique "
39481 "string to avoid collisions with other users."
39482 msgstr ""
39483
39484 #. type: textblock
39485 #: ../src/guestfs.pod:2073
39486 msgid "To retrieve the pointer, use:"
39487 msgstr ""
39488
39489 #. type: verbatim
39490 #: ../src/guestfs.pod:2075
39491 #, no-wrap
39492 msgid ""
39493 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39494 "\n"
39495 msgstr ""
39496
39497 #. type: textblock
39498 #: ../src/guestfs.pod:2077
39499 msgid ""
39500 "This function returns C<NULL> if either no data is found associated with "
39501 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39502 "C<NULL>."
39503 msgstr ""
39504
39505 #. type: textblock
39506 #: ../src/guestfs.pod:2081
39507 msgid ""
39508 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39509 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39510 "all.  In particular, libguestfs does I<not> try to free the data when the "
39511 "handle is closed.  If the data must be freed, then the caller must either "
39512 "free it before calling L</guestfs_close> or must set up a close callback to "
39513 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39514 msgstr ""
39515
39516 #. type: textblock
39517 #: ../src/guestfs.pod:2088
39518 msgid "To walk over all entries, use these two functions:"
39519 msgstr ""
39520
39521 #. type: verbatim
39522 #: ../src/guestfs.pod:2090
39523 #, no-wrap
39524 msgid ""
39525 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39526 "\n"
39527 msgstr ""
39528
39529 #. type: verbatim
39530 #: ../src/guestfs.pod:2092
39531 #, no-wrap
39532 msgid ""
39533 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39534 "\n"
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:2094
39539 msgid ""
39540 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39541 "not have any particular meaning -- keys are not returned in any defined "
39542 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39543 "corresponding data pointer is returned from the function.  C<NULL> is "
39544 "returned if there are no keys stored in the handle."
39545 msgstr ""
39546
39547 #. type: textblock
39548 #: ../src/guestfs.pod:2100
39549 msgid ""
39550 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39551 "value of this function is also C<NULL> is there are no further entries to "
39552 "return."
39553 msgstr ""
39554
39555 #. type: textblock
39556 #: ../src/guestfs.pod:2104
39557 msgid "Notes about walking over entries:"
39558 msgstr ""
39559
39560 #. type: textblock
39561 #: ../src/guestfs.pod:2110
39562 msgid ""
39563 "You must not call C<guestfs_set_private> while walking over the entries."
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../src/guestfs.pod:2115
39568 msgid ""
39569 "The handle maintains an internal iterator which is reset when you call "
39570 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39571 "call C<guestfs_set_private>."
39572 msgstr ""
39573
39574 #. type: textblock
39575 #: ../src/guestfs.pod:2121
39576 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39577 msgstr ""
39578
39579 #. type: verbatim
39580 #: ../src/guestfs.pod:2123
39581 #, no-wrap
39582 msgid ""
39583 " guestfs_set_private (g, key, NULL);\n"
39584 "\n"
39585 msgstr ""
39586
39587 #. type: textblock
39588 #: ../src/guestfs.pod:2125
39589 msgid "then that C<key> is not returned when walking."
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:2129
39594 msgid ""
39595 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39596 "C<guestfs_next_private> or C<guestfs_set_private>."
39597 msgstr ""
39598
39599 #. type: textblock
39600 #: ../src/guestfs.pod:2135
39601 msgid ""
39602 "The following example code shows how to print all keys and data pointers "
39603 "that are associated with the handle C<g>:"
39604 msgstr ""
39605
39606 #. type: verbatim
39607 #: ../src/guestfs.pod:2138
39608 #, no-wrap
39609 msgid ""
39610 " const char *key;\n"
39611 " void *data = guestfs_first_private (g, &key);\n"
39612 " while (data != NULL)\n"
39613 "   {\n"
39614 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39615 "     data = guestfs_next_private (g, &key);\n"
39616 "   }\n"
39617 "\n"
39618 msgstr ""
39619
39620 #. type: textblock
39621 #: ../src/guestfs.pod:2146
39622 msgid ""
39623 "More commonly you are only interested in keys that begin with an application-"
39624 "specific prefix C<foo_>.  Modify the loop like so:"
39625 msgstr ""
39626
39627 #. type: verbatim
39628 #: ../src/guestfs.pod:2149
39629 #, no-wrap
39630 msgid ""
39631 " const char *key;\n"
39632 " void *data = guestfs_first_private (g, &key);\n"
39633 " while (data != NULL)\n"
39634 "   {\n"
39635 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39636 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39637 "     data = guestfs_next_private (g, &key);\n"
39638 "   }\n"
39639 "\n"
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../src/guestfs.pod:2158
39644 msgid ""
39645 "If you need to modify keys while walking, then you have to jump back to the "
39646 "beginning of the loop.  For example, to delete all keys prefixed with "
39647 "C<foo_>:"
39648 msgstr ""
39649
39650 #. type: verbatim
39651 #: ../src/guestfs.pod:2162
39652 #, no-wrap
39653 msgid ""
39654 "  const char *key;\n"
39655 "  void *data;\n"
39656 " again:\n"
39657 "  data = guestfs_first_private (g, &key);\n"
39658 "  while (data != NULL)\n"
39659 "    {\n"
39660 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39661 "        {\n"
39662 "          guestfs_set_private (g, key, NULL);\n"
39663 "          /* note that 'key' pointer is now invalid, and so is\n"
39664 "             the internal iterator */\n"
39665 "          goto again;\n"
39666 "        }\n"
39667 "      data = guestfs_next_private (g, &key);\n"
39668 "    }\n"
39669 "\n"
39670 msgstr ""
39671
39672 #. type: textblock
39673 #: ../src/guestfs.pod:2178
39674 msgid ""
39675 "Note that the above loop is guaranteed to terminate because the keys are "
39676 "being deleted, but other manipulations of keys within the loop might not "
39677 "terminate unless you also maintain an indication of which keys have been "
39678 "visited."
39679 msgstr ""
39680
39681 #. type: =head1
39682 #: ../src/guestfs.pod:2183
39683 msgid "SYSTEMTAP"
39684 msgstr ""
39685
39686 #. type: textblock
39687 #: ../src/guestfs.pod:2185
39688 msgid ""
39689 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39690 "true of any library, not just libguestfs.  However libguestfs also contains "
39691 "static markers to help in probing internal operations."
39692 msgstr ""
39693
39694 #. type: textblock
39695 #: ../src/guestfs.pod:2189
39696 msgid "You can list all the static markers by doing:"
39697 msgstr ""
39698
39699 #. type: verbatim
39700 #: ../src/guestfs.pod:2191
39701 #, no-wrap
39702 msgid ""
39703 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39704 "              .provider(\"guestfs\").mark(\"*\")'\n"
39705 "\n"
39706 msgstr ""
39707
39708 #. type: textblock
39709 #: ../src/guestfs.pod:2194
39710 msgid ""
39711 "B<Note:> These static markers are I<not> part of the stable API and may "
39712 "change in future versions."
39713 msgstr ""
39714
39715 #. type: =head2
39716 #: ../src/guestfs.pod:2197
39717 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../src/guestfs.pod:2199
39722 msgid ""
39723 "This script contains examples of displaying both the static markers and some "
39724 "ordinary C entry points:"
39725 msgstr ""
39726
39727 #. type: verbatim
39728 #: ../src/guestfs.pod:2202
39729 #, no-wrap
39730 msgid ""
39731 " global last;\n"
39732 " \n"
39733 msgstr ""
39734
39735 #. type: verbatim
39736 #: ../src/guestfs.pod:2204
39737 #, no-wrap
39738 msgid ""
39739 " function display_time () {\n"
39740 "       now = gettimeofday_us ();\n"
39741 "       delta = 0;\n"
39742 "       if (last > 0)\n"
39743 "             delta = now - last;\n"
39744 "       last = now;\n"
39745 " \n"
39746 msgstr ""
39747
39748 #. type: verbatim
39749 #: ../src/guestfs.pod:2211
39750 #, no-wrap
39751 msgid ""
39752 "       printf (\"%d (+%d):\", now, delta);\n"
39753 " }\n"
39754 " \n"
39755 msgstr ""
39756
39757 #. type: verbatim
39758 #: ../src/guestfs.pod:2214
39759 #, no-wrap
39760 msgid ""
39761 " probe begin {\n"
39762 "       last = 0;\n"
39763 "       printf (\"ready\\n\");\n"
39764 " }\n"
39765 " \n"
39766 msgstr ""
39767
39768 #. type: verbatim
39769 #: ../src/guestfs.pod:2219
39770 #, no-wrap
39771 msgid ""
39772 " /* Display all calls to static markers. */\n"
39773 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39774 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39775 "       display_time();\n"
39776 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39777 " }\n"
39778 " \n"
39779 msgstr ""
39780
39781 #. type: verbatim
39782 #: ../src/guestfs.pod:2226
39783 #, no-wrap
39784 msgid ""
39785 " /* Display all calls to guestfs_mkfs* functions. */\n"
39786 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39787 "           .function(\"guestfs_mkfs*\") ? {\n"
39788 "       display_time();\n"
39789 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39790 " }\n"
39791 "\n"
39792 msgstr ""
39793
39794 #. type: textblock
39795 #: ../src/guestfs.pod:2233
39796 msgid ""
39797 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39798 "program.  Note that you either have to be root, or you have to add yourself "
39799 "to several special stap groups.  Consult the systemtap documentation for "
39800 "more information."
39801 msgstr ""
39802
39803 #. type: verbatim
39804 #: ../src/guestfs.pod:2238
39805 #, no-wrap
39806 msgid ""
39807 " # stap /tmp/test.stap\n"
39808 " ready\n"
39809 "\n"
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../src/guestfs.pod:2241
39814 msgid "In another terminal, run a guestfish command such as this:"
39815 msgstr ""
39816
39817 #. type: textblock
39818 #: ../src/guestfs.pod:2245
39819 msgid "In the first terminal, stap trace output similar to this is shown:"
39820 msgstr ""
39821
39822 #. type: verbatim
39823 #: ../src/guestfs.pod:2247
39824 #, no-wrap
39825 msgid ""
39826 " 1318248056692655 (+0):\tlaunch_start\n"
39827 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39828 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39829 " 1318248056838059 (+19774):     launch_run_qemu\n"
39830 " 1318248061071167 (+4233108):   launch_end\n"
39831 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39832 "\n"
39833 msgstr ""
39834
39835 #. type: =end
39836 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39837 msgid "html"
39838 msgstr ""
39839
39840 #. type: textblock
39841 #: ../src/guestfs.pod:2256
39842 msgid ""
39843 "<!-- old anchor for the next section --> <a name="
39844 "\"state_machine_and_low_level_event_api\"/>"
39845 msgstr ""
39846
39847 #. type: =head1
39848 #: ../src/guestfs.pod:2261
39849 msgid "ARCHITECTURE"
39850 msgstr ""
39851
39852 #. type: textblock
39853 #: ../src/guestfs.pod:2263
39854 msgid ""
39855 "Internally, libguestfs is implemented by running an appliance (a special "
39856 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39857 "process of the main program."
39858 msgstr ""
39859
39860 #. type: verbatim
39861 #: ../src/guestfs.pod:2267
39862 #, no-wrap
39863 msgid ""
39864 "  ___________________\n"
39865 " /                   \\\n"
39866 " | main program      |\n"
39867 " |                   |\n"
39868 " |                   |           child process / appliance\n"
39869 " |                   |           __________________________\n"
39870 " |                   |          / qemu                     \\\n"
39871 " +-------------------+   RPC    |      +-----------------+ |\n"
39872 " | libguestfs     <--------------------> guestfsd        | |\n"
39873 " |                   |          |      +-----------------+ |\n"
39874 " \\___________________/          |      | Linux kernel    | |\n"
39875 "                                |      +--^--------------+ |\n"
39876 "                                \\_________|________________/\n"
39877 "                                          |\n"
39878 "                                   _______v______\n"
39879 "                                  /              \\\n"
39880 "                                  | Device or    |\n"
39881 "                                  | disk image   |\n"
39882 "                                  \\______________/\n"
39883 "\n"
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../src/guestfs.pod:2287
39888 msgid ""
39889 "The library, linked to the main program, creates the child process and hence "
39890 "the appliance in the L</guestfs_launch> function."
39891 msgstr ""
39892
39893 #. type: textblock
39894 #: ../src/guestfs.pod:2290
39895 msgid ""
39896 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39897 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39898 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39899 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39900 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39901 "attached to the qemu process which translates device access by the "
39902 "appliance's Linux kernel into accesses to the image."
39903 msgstr ""
39904
39905 #. type: textblock
39906 #: ../src/guestfs.pod:2299
39907 msgid ""
39908 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39909 "Although the disk image you are attached to might also be used by some "
39910 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39911 "care if both libguestfs's qemu process and your virtual machine are trying "
39912 "to update the disk image at the same time, since these usually results in "
39913 "massive disk corruption)."
39914 msgstr ""
39915
39916 #. type: =head1
39917 #: ../src/guestfs.pod:2306
39918 msgid "STATE MACHINE"
39919 msgstr ""
39920
39921 #. type: textblock
39922 #: ../src/guestfs.pod:2308
39923 msgid "libguestfs uses a state machine to model the child process:"
39924 msgstr ""
39925
39926 #. type: verbatim
39927 #: ../src/guestfs.pod:2310
39928 #, no-wrap
39929 msgid ""
39930 "                         |\n"
39931 "                    guestfs_create\n"
39932 "                         |\n"
39933 "                         |\n"
39934 "                     ____V_____\n"
39935 "                    /          \\\n"
39936 "                    |  CONFIG  |\n"
39937 "                    \\__________/\n"
39938 "                     ^ ^   ^  \\\n"
39939 "                    /  |    \\  \\ guestfs_launch\n"
39940 "                   /   |    _\\__V______\n"
39941 "                  /    |   /           \\\n"
39942 "                 /     |   | LAUNCHING |\n"
39943 "                /      |   \\___________/\n"
39944 "               /       |       /\n"
39945 "              /        |  guestfs_launch\n"
39946 "             /         |     /\n"
39947 "    ______  /        __|____V\n"
39948 "   /      \\ ------> /        \\\n"
39949 "   | BUSY |         | READY  |\n"
39950 "   \\______/ <------ \\________/\n"
39951 "\n"
39952 msgstr ""
39953
39954 #. type: textblock
39955 #: ../src/guestfs.pod:2332
39956 msgid ""
39957 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39958 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39959 "(3) alternating between READY and BUSY as commands are issued to, and "
39960 "carried out by, the child process."
39961 msgstr ""
39962
39963 #. type: textblock
39964 #: ../src/guestfs.pod:2337
39965 msgid ""
39966 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39967 "asynchronously at any time (eg. due to some internal error), and that causes "
39968 "the state to transition back to CONFIG."
39969 msgstr ""
39970
39971 #. type: textblock
39972 #: ../src/guestfs.pod:2341
39973 msgid ""
39974 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39975 "issued when in the CONFIG state."
39976 msgstr ""
39977
39978 #. type: textblock
39979 #: ../src/guestfs.pod:2344
39980 msgid ""
39981 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39982 "L</guestfs_launch> blocks until the child process is READY to accept "
39983 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39984 "moves the state from CONFIG to LAUNCHING while it is running."
39985 msgstr ""
39986
39987 #. type: textblock
39988 #: ../src/guestfs.pod:2350
39989 msgid ""
39990 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39991 "state.  These API calls block waiting for the command to be carried out (ie. "
39992 "the state to transition to BUSY and then back to READY).  There are no non-"
39993 "blocking versions, and no way to issue more than one command per handle at "
39994 "the same time."
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../src/guestfs.pod:2356
39999 msgid ""
40000 "Finally, the child process sends asynchronous messages back to the main "
40001 "program, such as kernel log messages.  You can register a callback to "
40002 "receive these messages."
40003 msgstr ""
40004
40005 #. type: =head1
40006 #: ../src/guestfs.pod:2360
40007 msgid "INTERNALS"
40008 msgstr ""
40009
40010 #. type: =head2
40011 #: ../src/guestfs.pod:2362
40012 msgid "APPLIANCE BOOT PROCESS"
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../src/guestfs.pod:2364
40017 msgid ""
40018 "This process has evolved and continues to evolve.  The description here "
40019 "corresponds only to the current version of libguestfs and is provided for "
40020 "information only."
40021 msgstr ""
40022
40023 #. type: textblock
40024 #: ../src/guestfs.pod:2368
40025 msgid ""
40026 "In order to follow the stages involved below, enable libguestfs debugging "
40027 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40028 msgstr ""
40029
40030 #. type: =item
40031 #: ../src/guestfs.pod:2373
40032 msgid "Create the appliance"
40033 msgstr ""
40034
40035 #. type: textblock
40036 #: ../src/guestfs.pod:2375
40037 msgid ""
40038 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40039 "initrd and the appliance."
40040 msgstr ""
40041
40042 #. type: textblock
40043 #: ../src/guestfs.pod:2378
40044 msgid ""
40045 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40046 "directory if C<TMPDIR> is set)."
40047 msgstr ""
40048
40049 #. type: textblock
40050 #: ../src/guestfs.pod:2381
40051 msgid ""
40052 "For a complete description of how the appliance is created and cached, read "
40053 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40054 msgstr ""
40055
40056 #. type: =item
40057 #: ../src/guestfs.pod:2385
40058 msgid "Start qemu and boot the kernel"
40059 msgstr ""
40060
40061 #. type: textblock
40062 #: ../src/guestfs.pod:2387
40063 msgid "qemu is invoked to boot the kernel."
40064 msgstr ""
40065
40066 #. type: =item
40067 #: ../src/guestfs.pod:2389
40068 msgid "Run the initrd"
40069 msgstr ""
40070
40071 #. type: textblock
40072 #: ../src/guestfs.pod:2391
40073 msgid ""
40074 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40075 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40076 "order that the appliance itself can be mounted and started."
40077 msgstr ""
40078
40079 #. type: textblock
40080 #: ../src/guestfs.pod:2395
40081 msgid ""
40082 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40083 "initrd>."
40084 msgstr ""
40085
40086 #. type: textblock
40087 #: ../src/guestfs.pod:2398
40088 msgid ""
40089 "When the initrd has started you will see messages showing that kernel "
40090 "modules are being loaded, similar to this:"
40091 msgstr ""
40092
40093 #. type: verbatim
40094 #: ../src/guestfs.pod:2401
40095 #, no-wrap
40096 msgid ""
40097 " febootstrap: ext2 mini initrd starting up\n"
40098 " febootstrap: mounting /sys\n"
40099 " febootstrap: internal insmod libcrc32c.ko\n"
40100 " febootstrap: internal insmod crc32c-intel.ko\n"
40101 "\n"
40102 msgstr ""
40103
40104 #. type: =item
40105 #: ../src/guestfs.pod:2406
40106 msgid "Find and mount the appliance device"
40107 msgstr ""
40108
40109 #. type: textblock
40110 #: ../src/guestfs.pod:2408
40111 msgid ""
40112 "The appliance is a sparse file containing an ext2 filesystem which contains "
40113 "a familiar (although reduced in size) Linux operating system.  It would "
40114 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40115 msgstr ""
40116
40117 #. type: textblock
40118 #: ../src/guestfs.pod:2412
40119 msgid ""
40120 "The regular disks being inspected by libguestfs are the first devices "
40121 "exposed by qemu (eg. as C</dev/vda>)."
40122 msgstr ""
40123
40124 #. type: textblock
40125 #: ../src/guestfs.pod:2415
40126 msgid ""
40127 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40128 "there was only one regular disk)."
40129 msgstr ""
40130
40131 #. type: textblock
40132 #: ../src/guestfs.pod:2418
40133 msgid ""
40134 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40135 "and switch root into the appliance, and run C</init> from the appliance."
40136 msgstr ""
40137
40138 #. type: textblock
40139 #: ../src/guestfs.pod:2422
40140 msgid "If this works successfully you will see messages such as:"
40141 msgstr ""
40142
40143 #. type: verbatim
40144 #: ../src/guestfs.pod:2424
40145 #, no-wrap
40146 msgid ""
40147 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40148 " febootstrap: creating /dev/root as block special 252:16\n"
40149 " febootstrap: mounting new root on /root\n"
40150 " febootstrap: chroot\n"
40151 " Starting /init script ...\n"
40152 "\n"
40153 msgstr ""
40154
40155 #. type: textblock
40156 #: ../src/guestfs.pod:2430
40157 msgid ""
40158 "Note that C<Starting /init script ...> indicates that the appliance's init "
40159 "script is now running."
40160 msgstr ""
40161
40162 #. type: =item
40163 #: ../src/guestfs.pod:2433
40164 msgid "Initialize the appliance"
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2435
40169 msgid ""
40170 "The appliance itself now initializes itself.  This involves starting certain "
40171 "processes like C<udev>, possibly printing some debug information, and "
40172 "finally running the daemon (C<guestfsd>)."
40173 msgstr ""
40174
40175 #. type: =item
40176 #: ../src/guestfs.pod:2439
40177 msgid "The daemon"
40178 msgstr ""
40179
40180 #. type: textblock
40181 #: ../src/guestfs.pod:2441
40182 msgid ""
40183 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40184 "should see:"
40185 msgstr ""
40186
40187 #. type: verbatim
40188 #: ../src/guestfs.pod:2444
40189 #, no-wrap
40190 msgid ""
40191 " verbose daemon enabled\n"
40192 "\n"
40193 msgstr ""
40194
40195 #. type: textblock
40196 #: ../src/guestfs.pod:2446
40197 msgid ""
40198 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40199 "connected on the other end to the library."
40200 msgstr ""
40201
40202 #. type: textblock
40203 #: ../src/guestfs.pod:2449
40204 msgid ""
40205 "The daemon connects to this port (and hence to the library) and sends a four "
40206 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40207 "protocol (see below)."
40208 msgstr ""
40209
40210 #. type: =head2
40211 #: ../src/guestfs.pod:2455
40212 msgid "COMMUNICATION PROTOCOL"
40213 msgstr ""
40214
40215 #. type: textblock
40216 #: ../src/guestfs.pod:2457
40217 msgid ""
40218 "Don't rely on using this protocol directly.  This section documents how it "
40219 "currently works, but it may change at any time."
40220 msgstr ""
40221
40222 #. type: textblock
40223 #: ../src/guestfs.pod:2460
40224 msgid ""
40225 "The protocol used to talk between the library and the daemon running inside "
40226 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40227 "1014, RFC 1832, RFC 4506)."
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2464
40232 msgid ""
40233 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40234 "this file is automatically generated)."
40235 msgstr ""
40236
40237 #. type: textblock
40238 #: ../src/guestfs.pod:2467
40239 msgid ""
40240 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40241 "and C<FileOut> parameters, which are handled with very simple request/reply "
40242 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40243 "parameters, which use the same request and reply messages, but they may also "
40244 "be followed by files sent using a chunked encoding."
40245 msgstr ""
40246
40247 #. type: =head3
40248 #: ../src/guestfs.pod:2474
40249 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../src/guestfs.pod:2476
40254 msgid "For ordinary functions, the request message is:"
40255 msgstr ""
40256
40257 #. type: verbatim
40258 #: ../src/guestfs.pod:2478
40259 #, no-wrap
40260 msgid ""
40261 " total length (header + arguments,\n"
40262 "      but not including the length word itself)\n"
40263 " struct guestfs_message_header (encoded as XDR)\n"
40264 " struct guestfs_<foo>_args (encoded as XDR)\n"
40265 "\n"
40266 msgstr ""
40267
40268 #. type: textblock
40269 #: ../src/guestfs.pod:2483
40270 msgid ""
40271 "The total length field allows the daemon to allocate a fixed size buffer "
40272 "into which it slurps the rest of the message.  As a result, the total length "
40273 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40274 "effective size of any request is limited to somewhere under this size."
40275 msgstr ""
40276
40277 #. type: textblock
40278 #: ../src/guestfs.pod:2489
40279 msgid ""
40280 "Note also that many functions don't take any arguments, in which case the "
40281 "C<guestfs_I<foo>_args> is completely omitted."
40282 msgstr ""
40283
40284 #. type: textblock
40285 #: ../src/guestfs.pod:2492
40286 msgid ""
40287 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40288 "receiver knows what type of args structure to expect, or none at all."
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../src/guestfs.pod:2496
40293 msgid ""
40294 "For functions that take optional arguments, the optional arguments are "
40295 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40296 "arguments.  A bitmask in the header indicates which optional arguments are "
40297 "meaningful.  The bitmask is also checked to see if it contains bits set "
40298 "which the daemon does not know about (eg. if more optional arguments were "
40299 "added in a later version of the library), and this causes the call to be "
40300 "rejected."
40301 msgstr ""
40302
40303 #. type: textblock
40304 #: ../src/guestfs.pod:2504
40305 msgid "The reply message for ordinary functions is:"
40306 msgstr ""
40307
40308 #. type: verbatim
40309 #: ../src/guestfs.pod:2506
40310 #, no-wrap
40311 msgid ""
40312 " total length (header + ret,\n"
40313 "      but not including the length word itself)\n"
40314 " struct guestfs_message_header (encoded as XDR)\n"
40315 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40316 "\n"
40317 msgstr ""
40318
40319 #. type: textblock
40320 #: ../src/guestfs.pod:2511
40321 msgid ""
40322 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40323 "functions that return no formal return values."
40324 msgstr ""
40325
40326 #. type: textblock
40327 #: ../src/guestfs.pod:2514
40328 msgid ""
40329 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40330 msgstr ""
40331
40332 #. type: textblock
40333 #: ../src/guestfs.pod:2517
40334 msgid ""
40335 "In the case of an error, a flag is set in the header, and the reply message "
40336 "is slightly changed:"
40337 msgstr ""
40338
40339 #. type: verbatim
40340 #: ../src/guestfs.pod:2520
40341 #, no-wrap
40342 msgid ""
40343 " total length (header + error,\n"
40344 "      but not including the length word itself)\n"
40345 " struct guestfs_message_header (encoded as XDR)\n"
40346 " struct guestfs_message_error (encoded as XDR)\n"
40347 "\n"
40348 msgstr ""
40349
40350 #. type: textblock
40351 #: ../src/guestfs.pod:2525
40352 msgid ""
40353 "The C<guestfs_message_error> structure contains the error message as a "
40354 "string."
40355 msgstr ""
40356
40357 #. type: =head3
40358 #: ../src/guestfs.pod:2528
40359 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40360 msgstr ""
40361
40362 #. type: textblock
40363 #: ../src/guestfs.pod:2530
40364 msgid ""
40365 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40366 "The normal request message is sent (see above).  However this is followed by "
40367 "a sequence of file chunks."
40368 msgstr ""
40369
40370 #. type: verbatim
40371 #: ../src/guestfs.pod:2534
40372 #, no-wrap
40373 msgid ""
40374 " total length (header + arguments,\n"
40375 "      but not including the length word itself,\n"
40376 "      and not including the chunks)\n"
40377 " struct guestfs_message_header (encoded as XDR)\n"
40378 " struct guestfs_<foo>_args (encoded as XDR)\n"
40379 " sequence of chunks for FileIn param #0\n"
40380 " sequence of chunks for FileIn param #1 etc.\n"
40381 "\n"
40382 msgstr ""
40383
40384 #. type: textblock
40385 #: ../src/guestfs.pod:2542
40386 msgid "The \"sequence of chunks\" is:"
40387 msgstr ""
40388
40389 #. type: verbatim
40390 #: ../src/guestfs.pod:2544
40391 #, no-wrap
40392 msgid ""
40393 " length of chunk (not including length word itself)\n"
40394 " struct guestfs_chunk (encoded as XDR)\n"
40395 " length of chunk\n"
40396 " struct guestfs_chunk (encoded as XDR)\n"
40397 "   ...\n"
40398 " length of chunk\n"
40399 " struct guestfs_chunk (with data.data_len == 0)\n"
40400 "\n"
40401 msgstr ""
40402
40403 #. type: textblock
40404 #: ../src/guestfs.pod:2552
40405 msgid ""
40406 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40407 "is set in the final chunk to indicate either successful completion or early "
40408 "cancellation."
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:2556
40413 msgid ""
40414 "At time of writing there are no functions that have more than one FileIn "
40415 "parameter.  However this is (theoretically) supported, by sending the "
40416 "sequence of chunks for each FileIn parameter one after another (from left to "
40417 "right)."
40418 msgstr ""
40419
40420 #. type: textblock
40421 #: ../src/guestfs.pod:2561
40422 msgid ""
40423 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40424 "transfer.  The library does this by sending a chunk with a special flag set "
40425 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40426 "RPC, does I<not> send any reply, and goes back to reading the next request."
40427 msgstr ""
40428
40429 #. type: textblock
40430 #: ../src/guestfs.pod:2567
40431 msgid ""
40432 "The daemon may also cancel.  It does this by writing a special word "
40433 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40434 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40435 "cancel chunk).  The special word is chosen so that even if cancellation "
40436 "happens right at the end of the transfer (after the library has finished "
40437 "writing and has started listening for the reply), the \"spurious\" cancel "
40438 "flag will not be confused with the reply message."
40439 msgstr ""
40440
40441 #. type: textblock
40442 #: ../src/guestfs.pod:2576
40443 msgid ""
40444 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40445 "limit), and also files where the size is not known in advance (eg. from "
40446 "pipes or sockets).  However the chunks are rather small "
40447 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40448 "to keep much in memory."
40449 msgstr ""
40450
40451 #. type: =head3
40452 #: ../src/guestfs.pod:2582
40453 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40454 msgstr ""
40455
40456 #. type: textblock
40457 #: ../src/guestfs.pod:2584
40458 msgid ""
40459 "The protocol for FileOut parameters is exactly the same as for FileIn "
40460 "parameters, but with the roles of daemon and library reversed."
40461 msgstr ""
40462
40463 #. type: verbatim
40464 #: ../src/guestfs.pod:2587
40465 #, no-wrap
40466 msgid ""
40467 " total length (header + ret,\n"
40468 "      but not including the length word itself,\n"
40469 "      and not including the chunks)\n"
40470 " struct guestfs_message_header (encoded as XDR)\n"
40471 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40472 " sequence of chunks for FileOut param #0\n"
40473 " sequence of chunks for FileOut param #1 etc.\n"
40474 "\n"
40475 msgstr ""
40476
40477 #. type: =head3
40478 #: ../src/guestfs.pod:2595
40479 msgid "INITIAL MESSAGE"
40480 msgstr ""
40481
40482 #. type: textblock
40483 #: ../src/guestfs.pod:2597
40484 msgid ""
40485 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40486 "which indicates that the guest and daemon is alive.  This is what L</"
40487 "guestfs_launch> waits for."
40488 msgstr ""
40489
40490 #. type: =head3
40491 #: ../src/guestfs.pod:2601
40492 msgid "PROGRESS NOTIFICATION MESSAGES"
40493 msgstr ""
40494
40495 #. type: textblock
40496 #: ../src/guestfs.pod:2603
40497 msgid ""
40498 "The daemon may send progress notification messages at any time.  These are "
40499 "distinguished by the normal length word being replaced by "
40500 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40501 msgstr ""
40502
40503 #. type: textblock
40504 #: ../src/guestfs.pod:2607
40505 msgid ""
40506 "The library turns them into progress callbacks (see L</"
40507 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40508 "if not."
40509 msgstr ""
40510
40511 #. type: textblock
40512 #: ../src/guestfs.pod:2611
40513 msgid ""
40514 "The daemon self-limits the frequency of progress messages it sends (see "
40515 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40516 "messages."
40517 msgstr ""
40518
40519 #. type: =head1
40520 #: ../src/guestfs.pod:2615
40521 msgid "LIBGUESTFS VERSION NUMBERS"
40522 msgstr ""
40523
40524 #. type: textblock
40525 #: ../src/guestfs.pod:2617
40526 msgid ""
40527 "Since April 2010, libguestfs has started to make separate development and "
40528 "stable releases, along with corresponding branches in our git repository.  "
40529 "These separate releases can be identified by version number:"
40530 msgstr ""
40531
40532 #. type: verbatim
40533 #: ../src/guestfs.pod:2622
40534 #, no-wrap
40535 msgid ""
40536 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40537 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40538 "       |\n"
40539 "       v\n"
40540 " 1  .  3  .  5\n"
40541 " ^           ^\n"
40542 " |           |\n"
40543 " |           `-------- sub-version\n"
40544 " |\n"
40545 " `------ always '1' because we don't change the ABI\n"
40546 "\n"
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../src/guestfs.pod:2633
40551 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40552 msgstr ""
40553
40554 #. type: textblock
40555 #: ../src/guestfs.pod:2635
40556 msgid ""
40557 "As time passes we cherry pick fixes from the development branch and backport "
40558 "those into the stable branch, the effect being that the stable branch should "
40559 "get more stable and less buggy over time.  So the stable releases are ideal "
40560 "for people who don't need new features but would just like the software to "
40561 "work."
40562 msgstr ""
40563
40564 #. type: textblock
40565 #: ../src/guestfs.pod:2641
40566 msgid "Our criteria for backporting changes are:"
40567 msgstr ""
40568
40569 #. type: textblock
40570 #: ../src/guestfs.pod:2647
40571 msgid ""
40572 "Documentation changes which don't affect any code are backported unless the "
40573 "documentation refers to a future feature which is not in stable."
40574 msgstr ""
40575
40576 #. type: textblock
40577 #: ../src/guestfs.pod:2653
40578 msgid ""
40579 "Bug fixes which are not controversial, fix obvious problems, and have been "
40580 "well tested are backported."
40581 msgstr ""
40582
40583 #. type: textblock
40584 #: ../src/guestfs.pod:2658
40585 msgid ""
40586 "Simple rearrangements of code which shouldn't affect how it works get "
40587 "backported.  This is so that the code in the two branches doesn't get too "
40588 "far out of step, allowing us to backport future fixes more easily."
40589 msgstr ""
40590
40591 #. type: textblock
40592 #: ../src/guestfs.pod:2664
40593 msgid ""
40594 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40595 "exceptional case: the new feature is required in order to implement an "
40596 "important bug fix."
40597 msgstr ""
40598
40599 #. type: textblock
40600 #: ../src/guestfs.pod:2670
40601 msgid ""
40602 "A new stable branch starts when we think the new features in development are "
40603 "substantial and compelling enough over the current stable branch to warrant "
40604 "it.  When that happens we create new stable and development versions 1.N.0 "
40605 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40606 "stable at this point, but by backporting fixes from development, that branch "
40607 "will stabilize over time."
40608 msgstr ""
40609
40610 #. type: =head1
40611 #: ../src/guestfs.pod:2678
40612 msgid "EXTENDING LIBGUESTFS"
40613 msgstr ""
40614
40615 #. type: =head2
40616 #: ../src/guestfs.pod:2680
40617 msgid "ADDING A NEW API ACTION"
40618 msgstr ""
40619
40620 #. type: textblock
40621 #: ../src/guestfs.pod:2682
40622 msgid ""
40623 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40624 "documentation) are generated, and this makes it easy to extend the "
40625 "libguestfs API."
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../src/guestfs.pod:2686
40630 msgid "To add a new API action there are two changes:"
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../src/guestfs.pod:2692
40635 msgid ""
40636 "You need to add a description of the call (name, parameters, return type, "
40637 "tests, documentation) to C<generator/generator_actions.ml>."
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../src/guestfs.pod:2695
40642 msgid ""
40643 "There are two sorts of API action, depending on whether the call goes "
40644 "through to the daemon in the appliance, or is serviced entirely by the "
40645 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40646 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40647 "an example of the latter, since a trace flag is maintained in the handle and "
40648 "all tracing is done on the library side."
40649 msgstr ""
40650
40651 #. type: textblock
40652 #: ../src/guestfs.pod:2703
40653 msgid ""
40654 "Most new actions are of the first type, and get added to the "
40655 "C<daemon_functions> list.  Each function has a unique procedure number used "
40656 "in the RPC protocol which is assigned to that action when we publish "
40657 "libguestfs and cannot be reused.  Take the latest procedure number and "
40658 "increment it."
40659 msgstr ""
40660
40661 #. type: textblock
40662 #: ../src/guestfs.pod:2709
40663 msgid ""
40664 "For library-only actions of the second type, add to the "
40665 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40666 "library and do not travel over the RPC mechanism to the daemon, these "
40667 "functions do not need a procedure number, and so the procedure number is set "
40668 "to C<-1>."
40669 msgstr ""
40670
40671 #. type: textblock
40672 #: ../src/guestfs.pod:2717
40673 msgid "Implement the action (in C):"
40674 msgstr ""
40675
40676 #. type: textblock
40677 #: ../src/guestfs.pod:2719
40678 msgid ""
40679 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40680 "C<daemon/> directory."
40681 msgstr ""
40682
40683 #. type: textblock
40684 #: ../src/guestfs.pod:2722
40685 msgid ""
40686 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40687 "(note: double underscore) in the C<src/> directory."
40688 msgstr ""
40689
40690 #. type: textblock
40691 #: ../src/guestfs.pod:2725
40692 msgid "In either case, use another function as an example of what to do."
40693 msgstr ""
40694
40695 #. type: textblock
40696 #: ../src/guestfs.pod:2729
40697 msgid "After making these changes, use C<make> to compile."
40698 msgstr ""
40699
40700 #. type: textblock
40701 #: ../src/guestfs.pod:2731
40702 msgid ""
40703 "Note that you don't need to implement the RPC, language bindings, manual "
40704 "pages or anything else.  It's all automatically generated from the OCaml "
40705 "description."
40706 msgstr ""
40707
40708 #. type: =head2
40709 #: ../src/guestfs.pod:2735
40710 msgid "ADDING TESTS FOR AN API ACTION"
40711 msgstr ""
40712
40713 #. type: textblock
40714 #: ../src/guestfs.pod:2737
40715 msgid ""
40716 "You can supply zero or as many tests as you want per API call.  The tests "
40717 "can either be added as part of the API description (C<generator/"
40718 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40719 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40720 "slower, so if possible use the first method."
40721 msgstr ""
40722
40723 #. type: textblock
40724 #: ../src/guestfs.pod:2743
40725 msgid ""
40726 "The following describes the test environment used when you add an API test "
40727 "in C<generator_actions.ml>."
40728 msgstr ""
40729
40730 #. type: textblock
40731 #: ../src/guestfs.pod:2746
40732 msgid "The test environment has 4 block devices:"
40733 msgstr ""
40734
40735 #. type: =item
40736 #: ../src/guestfs.pod:2750
40737 msgid "C</dev/sda> 500MB"
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../src/guestfs.pod:2752
40742 msgid "General block device for testing."
40743 msgstr ""
40744
40745 #. type: =item
40746 #: ../src/guestfs.pod:2754
40747 msgid "C</dev/sdb> 50MB"
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../src/guestfs.pod:2756
40752 msgid ""
40753 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40754 "operations."
40755 msgstr ""
40756
40757 #. type: =item
40758 #: ../src/guestfs.pod:2759
40759 msgid "C</dev/sdc> 10MB"
40760 msgstr ""
40761
40762 #. type: textblock
40763 #: ../src/guestfs.pod:2761
40764 msgid "Used in a few tests where two block devices are needed."
40765 msgstr ""
40766
40767 #. type: =item
40768 #: ../src/guestfs.pod:2763
40769 msgid "C</dev/sdd>"
40770 msgstr ""
40771
40772 #. type: textblock
40773 #: ../src/guestfs.pod:2765
40774 msgid "ISO with fixed content (see C<images/test.iso>)."
40775 msgstr ""
40776
40777 #. type: textblock
40778 #: ../src/guestfs.pod:2769
40779 msgid ""
40780 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40781 "appliance and block devices are reused between tests.  So don't try testing "
40782 "L</guestfs_kill_subprocess> :-x"
40783 msgstr ""
40784
40785 #. type: textblock
40786 #: ../src/guestfs.pod:2773
40787 msgid ""
40788 "Each test starts with an initial scenario, selected using one of the "
40789 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40790 "initialize the disks mentioned above in a particular way as documented in "
40791 "C<generator_types.ml>.  You should not assume anything about the previous "
40792 "contents of other disks that are not initialized."
40793 msgstr ""
40794
40795 #. type: textblock
40796 #: ../src/guestfs.pod:2779
40797 msgid ""
40798 "You can add a prerequisite clause to any individual test.  This is a run-"
40799 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40800 "testing a command which might not work on all variations of libguestfs "
40801 "builds.  A test that has prerequisite of C<Always> means to run "
40802 "unconditionally."
40803 msgstr ""
40804
40805 #. type: textblock
40806 #: ../src/guestfs.pod:2785
40807 msgid ""
40808 "In addition, packagers can skip individual tests by setting environment "
40809 "variables before running C<make check>."
40810 msgstr ""
40811
40812 #. type: verbatim
40813 #: ../src/guestfs.pod:2788
40814 #, no-wrap
40815 msgid ""
40816 " SKIP_TEST_<CMD>_<NUM>=1\n"
40817 "\n"
40818 msgstr ""
40819
40820 #. type: textblock
40821 #: ../src/guestfs.pod:2790
40822 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40823 msgstr ""
40824
40825 #. type: verbatim
40826 #: ../src/guestfs.pod:2794
40827 #, no-wrap
40828 msgid ""
40829 " SKIP_TEST_<CMD>=1\n"
40830 "\n"
40831 msgstr ""
40832
40833 #. type: textblock
40834 #: ../src/guestfs.pod:2796
40835 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40836 msgstr ""
40837
40838 #. type: textblock
40839 #: ../src/guestfs.pod:2798
40840 msgid "Packagers can run only certain tests by setting for example:"
40841 msgstr ""
40842
40843 #. type: verbatim
40844 #: ../src/guestfs.pod:2800
40845 #, no-wrap
40846 msgid ""
40847 " TEST_ONLY=\"vfs_type zerofree\"\n"
40848 "\n"
40849 msgstr ""
40850
40851 #. type: textblock
40852 #: ../src/guestfs.pod:2802
40853 msgid ""
40854 "See C<capitests/tests.c> for more details of how these environment variables "
40855 "work."
40856 msgstr ""
40857
40858 #. type: =head2
40859 #: ../src/guestfs.pod:2805
40860 msgid "DEBUGGING NEW API ACTIONS"
40861 msgstr ""
40862
40863 #. type: textblock
40864 #: ../src/guestfs.pod:2807
40865 msgid "Test new actions work before submitting them."
40866 msgstr ""
40867
40868 #. type: textblock
40869 #: ../src/guestfs.pod:2809
40870 msgid "You can use guestfish to try out new commands."
40871 msgstr ""
40872
40873 #. type: textblock
40874 #: ../src/guestfs.pod:2811
40875 msgid ""
40876 "Debugging the daemon is a problem because it runs inside a minimal "
40877 "environment.  However you can fprintf messages in the daemon to stderr, and "
40878 "they will show up if you use C<guestfish -v>."
40879 msgstr ""
40880
40881 #. type: =head2
40882 #: ../src/guestfs.pod:2815
40883 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40884 msgstr ""
40885
40886 #. type: textblock
40887 #: ../src/guestfs.pod:2817
40888 msgid ""
40889 "Our C source code generally adheres to some basic code-formatting "
40890 "conventions.  The existing code base is not totally consistent on this "
40891 "front, but we do prefer that contributed code be formatted similarly.  In "
40892 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40893 "indentation level, and other than that, follow the K&R style."
40894 msgstr ""
40895
40896 #. type: textblock
40897 #: ../src/guestfs.pod:2823
40898 msgid ""
40899 "If you use Emacs, add the following to one of one of your start-up files (e."
40900 "g., ~/.emacs), to help ensure that you get indentation right:"
40901 msgstr ""
40902
40903 #. type: verbatim
40904 #: ../src/guestfs.pod:2826
40905 #, no-wrap
40906 msgid ""
40907 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40908 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40909 " (add-hook 'find-file-hook\n"
40910 "     '(lambda () (if (and buffer-file-name\n"
40911 "                          (string-match \"/libguestfs\\\\>\"\n"
40912 "                              (buffer-file-name))\n"
40913 "                          (not (string-equal mode-name \"Change Log\"))\n"
40914 "                          (not (string-equal mode-name \"Makefile\")))\n"
40915 "                     (setq indent-tabs-mode nil))))\n"
40916 " \n"
40917 msgstr ""
40918
40919 #. type: verbatim
40920 #: ../src/guestfs.pod:2836
40921 #, no-wrap
40922 msgid ""
40923 " ;;; When editing C sources in libguestfs, use this style.\n"
40924 " (defun libguestfs-c-mode ()\n"
40925 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40926 "   (interactive)\n"
40927 "   (c-set-style \"K&R\")\n"
40928 "   (setq c-indent-level 2)\n"
40929 "   (setq c-basic-offset 2))\n"
40930 " (add-hook 'c-mode-hook\n"
40931 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40932 "                               (buffer-file-name))\n"
40933 "                           (libguestfs-c-mode))))\n"
40934 "\n"
40935 msgstr ""
40936
40937 #. type: textblock
40938 #: ../src/guestfs.pod:2848
40939 msgid "Enable warnings when compiling (and fix any problems this finds):"
40940 msgstr ""
40941
40942 #. type: verbatim
40943 #: ../src/guestfs.pod:2851
40944 #, no-wrap
40945 msgid ""
40946 " ./configure --enable-gcc-warnings\n"
40947 "\n"
40948 msgstr ""
40949
40950 #. type: textblock
40951 #: ../src/guestfs.pod:2853
40952 msgid "Useful targets are:"
40953 msgstr ""
40954
40955 #. type: verbatim
40956 #: ../src/guestfs.pod:2855
40957 #, no-wrap
40958 msgid ""
40959 " make syntax-check  # checks the syntax of the C code\n"
40960 " make check         # runs the test suite\n"
40961 "\n"
40962 msgstr ""
40963
40964 #. type: =head2
40965 #: ../src/guestfs.pod:2858
40966 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40967 msgstr ""
40968
40969 #. type: textblock
40970 #: ../src/guestfs.pod:2860
40971 msgid ""
40972 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40973 "which are used to do shell quoting."
40974 msgstr ""
40975
40976 #. type: =item
40977 #: ../src/guestfs.pod:2865
40978 msgid "%Q"
40979 msgstr ""
40980
40981 #. type: textblock
40982 #: ../src/guestfs.pod:2867
40983 msgid ""
40984 "Simple shell quoted string.  Any spaces or other shell characters are "
40985 "escaped for you."
40986 msgstr ""
40987
40988 #. type: =item
40989 #: ../src/guestfs.pod:2870
40990 msgid "%R"
40991 msgstr ""
40992
40993 #. type: textblock
40994 #: ../src/guestfs.pod:2872
40995 msgid ""
40996 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40997 "the sysroot."
40998 msgstr ""
40999
41000 #. type: verbatim
41001 #: ../src/guestfs.pod:2879
41002 #, no-wrap
41003 msgid ""
41004 " asprintf (&cmd, \"cat %R\", path);\n"
41005 "\n"
41006 msgstr ""
41007
41008 #. type: textblock
41009 #: ../src/guestfs.pod:2881
41010 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41011 msgstr ""
41012
41013 #. type: textblock
41014 #: ../src/guestfs.pod:2883
41015 msgid ""
41016 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41017 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41018 "they are not passed via the shell (instead, straight to exec).  You probably "
41019 "want to use the C<sysroot_path()> function however."
41020 msgstr ""
41021
41022 #. type: =head2
41023 #: ../src/guestfs.pod:2889
41024 msgid "SUBMITTING YOUR NEW API ACTIONS"
41025 msgstr ""
41026
41027 #. type: textblock
41028 #: ../src/guestfs.pod:2891
41029 msgid ""
41030 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41031 "libguestfs> and CC to L<rjones@redhat.com>."
41032 msgstr ""
41033
41034 #. type: =head2
41035 #: ../src/guestfs.pod:2895
41036 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41037 msgstr ""
41038
41039 #. type: textblock
41040 #: ../src/guestfs.pod:2897
41041 msgid "We support i18n (gettext anyhow) in the library."
41042 msgstr ""
41043
41044 #. type: textblock
41045 #: ../src/guestfs.pod:2899
41046 msgid ""
41047 "However many messages come from the daemon, and we don't translate those at "
41048 "the moment.  One reason is that the appliance generally has all locale files "
41049 "removed from it, because they take up a lot of space.  So we'd have to readd "
41050 "some of those, as well as copying our PO files into the appliance."
41051 msgstr ""
41052
41053 #. type: textblock
41054 #: ../src/guestfs.pod:2905
41055 msgid ""
41056 "Debugging messages are never translated, since they are intended for the "
41057 "programmers."
41058 msgstr ""
41059
41060 #. type: =head2
41061 #: ../src/guestfs.pod:2908
41062 msgid "SOURCE CODE SUBDIRECTORIES"
41063 msgstr ""
41064
41065 #. type: =item
41066 #: ../src/guestfs.pod:2912
41067 msgid "C<align>"
41068 msgstr ""
41069
41070 #. type: textblock
41071 #: ../src/guestfs.pod:2914
41072 msgid "L<virt-alignment-scan(1)> command and documentation."
41073 msgstr ""
41074
41075 #. type: textblock
41076 #: ../src/guestfs.pod:2918
41077 msgid "The libguestfs appliance, build scripts and so on."
41078 msgstr ""
41079
41080 #. type: =item
41081 #: ../src/guestfs.pod:2920
41082 msgid "C<capitests>"
41083 msgstr ""
41084
41085 #. type: textblock
41086 #: ../src/guestfs.pod:2922
41087 msgid "Automated tests of the C API."
41088 msgstr ""
41089
41090 #. type: =item
41091 #: ../src/guestfs.pod:2924
41092 msgid "C<cat>"
41093 msgstr ""
41094
41095 #. type: textblock
41096 #: ../src/guestfs.pod:2926
41097 msgid ""
41098 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41099 "documentation."
41100 msgstr ""
41101
41102 #. type: =item
41103 #: ../src/guestfs.pod:2929
41104 msgid "C<caution>"
41105 msgstr ""
41106
41107 #. type: textblock
41108 #: ../src/guestfs.pod:2931
41109 msgid ""
41110 "Safety and liveness tests of components that libguestfs depends upon (not of "
41111 "libguestfs itself).  Mainly this is for qemu and the kernel."
41112 msgstr ""
41113
41114 #. type: =item
41115 #: ../src/guestfs.pod:2934
41116 msgid "C<clone>"
41117 msgstr ""
41118
41119 #. type: textblock
41120 #: ../src/guestfs.pod:2936
41121 msgid ""
41122 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41123 "command and documentation."
41124 msgstr ""
41125
41126 #. type: =item
41127 #: ../src/guestfs.pod:2939
41128 msgid "C<contrib>"
41129 msgstr ""
41130
41131 #. type: textblock
41132 #: ../src/guestfs.pod:2941
41133 msgid "Outside contributions, experimental parts."
41134 msgstr ""
41135
41136 #. type: =item
41137 #: ../src/guestfs.pod:2943
41138 msgid "C<daemon>"
41139 msgstr ""
41140
41141 #. type: textblock
41142 #: ../src/guestfs.pod:2945
41143 msgid ""
41144 "The daemon that runs inside the libguestfs appliance and carries out actions."
41145 msgstr ""
41146
41147 #. type: =item
41148 #: ../src/guestfs.pod:2948
41149 msgid "C<df>"
41150 msgstr ""
41151
41152 #. type: textblock
41153 #: ../src/guestfs.pod:2950
41154 msgid "L<virt-df(1)> command and documentation."
41155 msgstr ""
41156
41157 #. type: =item
41158 #: ../src/guestfs.pod:2952
41159 msgid "C<edit>"
41160 msgstr ""
41161
41162 #. type: textblock
41163 #: ../src/guestfs.pod:2954
41164 msgid "L<virt-edit(1)> command and documentation."
41165 msgstr ""
41166
41167 #. type: =item
41168 #: ../src/guestfs.pod:2956
41169 msgid "C<examples>"
41170 msgstr ""
41171
41172 #. type: textblock
41173 #: ../src/guestfs.pod:2958
41174 msgid "C API example code."
41175 msgstr ""
41176
41177 #. type: =item
41178 #: ../src/guestfs.pod:2960
41179 msgid "C<fish>"
41180 msgstr ""
41181
41182 #. type: textblock
41183 #: ../src/guestfs.pod:2962
41184 msgid ""
41185 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41186 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41187 "L<virt-tar-out(1)>."
41188 msgstr ""
41189
41190 #. type: =item
41191 #: ../src/guestfs.pod:2966
41192 msgid "C<fuse>"
41193 msgstr ""
41194
41195 #. type: textblock
41196 #: ../src/guestfs.pod:2968
41197 msgid ""
41198 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41199 msgstr ""
41200
41201 #. type: =item
41202 #: ../src/guestfs.pod:2970
41203 msgid "C<generator>"
41204 msgstr ""
41205
41206 #. type: textblock
41207 #: ../src/guestfs.pod:2972
41208 msgid ""
41209 "The crucially important generator, used to automatically generate large "
41210 "amounts of boilerplate C code for things like RPC and bindings."
41211 msgstr ""
41212
41213 #. type: =item
41214 #: ../src/guestfs.pod:2975
41215 msgid "C<images>"
41216 msgstr ""
41217
41218 #. type: textblock
41219 #: ../src/guestfs.pod:2977
41220 msgid "Files used by the test suite."
41221 msgstr ""
41222
41223 #. type: textblock
41224 #: ../src/guestfs.pod:2979
41225 msgid "Some \"phony\" guest images which we test against."
41226 msgstr ""
41227
41228 #. type: =item
41229 #: ../src/guestfs.pod:2981
41230 msgid "C<inspector>"
41231 msgstr ""
41232
41233 #. type: textblock
41234 #: ../src/guestfs.pod:2983
41235 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41236 msgstr ""
41237
41238 #. type: =item
41239 #: ../src/guestfs.pod:2985
41240 msgid "C<logo>"
41241 msgstr ""
41242
41243 #. type: textblock
41244 #: ../src/guestfs.pod:2987
41245 msgid "Logo used on the website.  The fish is called Arthur by the way."
41246 msgstr ""
41247
41248 #. type: =item
41249 #: ../src/guestfs.pod:2989
41250 msgid "C<m4>"
41251 msgstr ""
41252
41253 #. type: textblock
41254 #: ../src/guestfs.pod:2991
41255 msgid "M4 macros used by autoconf."
41256 msgstr ""
41257
41258 #. type: =item
41259 #: ../src/guestfs.pod:2993
41260 msgid "C<po>"
41261 msgstr ""
41262
41263 #. type: textblock
41264 #: ../src/guestfs.pod:2995
41265 msgid "Translations of simple gettext strings."
41266 msgstr ""
41267
41268 #. type: =item
41269 #: ../src/guestfs.pod:2997
41270 msgid "C<po-docs>"
41271 msgstr ""
41272
41273 #. type: textblock
41274 #: ../src/guestfs.pod:2999
41275 msgid ""
41276 "The build infrastructure and PO files for translations of manpages and POD "
41277 "files.  Eventually this will be combined with the C<po> directory, but that "
41278 "is rather complicated."
41279 msgstr ""
41280
41281 #. type: =item
41282 #: ../src/guestfs.pod:3003
41283 msgid "C<regressions>"
41284 msgstr ""
41285
41286 #. type: textblock
41287 #: ../src/guestfs.pod:3005
41288 msgid "Regression tests."
41289 msgstr ""
41290
41291 #. type: =item
41292 #: ../src/guestfs.pod:3007
41293 msgid "C<rescue>"
41294 msgstr ""
41295
41296 #. type: textblock
41297 #: ../src/guestfs.pod:3009
41298 msgid "L<virt-rescue(1)> command and documentation."
41299 msgstr ""
41300
41301 #. type: =item
41302 #: ../src/guestfs.pod:3011
41303 msgid "C<resize>"
41304 msgstr ""
41305
41306 #. type: textblock
41307 #: ../src/guestfs.pod:3013
41308 msgid "L<virt-resize(1)> command and documentation."
41309 msgstr ""
41310
41311 #. type: =item
41312 #: ../src/guestfs.pod:3015
41313 msgid "C<sparsify>"
41314 msgstr ""
41315
41316 #. type: textblock
41317 #: ../src/guestfs.pod:3017
41318 msgid "L<virt-sparsify(1)> command and documentation."
41319 msgstr ""
41320
41321 #. type: =item
41322 #: ../src/guestfs.pod:3019
41323 msgid "C<src>"
41324 msgstr ""
41325
41326 #. type: textblock
41327 #: ../src/guestfs.pod:3021
41328 msgid "Source code to the C library."
41329 msgstr ""
41330
41331 #. type: =item
41332 #: ../src/guestfs.pod:3023
41333 msgid "C<tools>"
41334 msgstr ""
41335
41336 #. type: textblock
41337 #: ../src/guestfs.pod:3025
41338 msgid ""
41339 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41340 msgstr ""
41341
41342 #. type: =item
41343 #: ../src/guestfs.pod:3027
41344 msgid "C<test-tool>"
41345 msgstr ""
41346
41347 #. type: textblock
41348 #: ../src/guestfs.pod:3029
41349 msgid ""
41350 "Test tool for end users to test if their qemu/kernel combination will work "
41351 "with libguestfs."
41352 msgstr ""
41353
41354 #. type: =item
41355 #: ../src/guestfs.pod:3032
41356 msgid "C<csharp>"
41357 msgstr ""
41358
41359 #. type: =item
41360 #: ../src/guestfs.pod:3034
41361 msgid "C<erlang>"
41362 msgstr ""
41363
41364 #. type: =item
41365 #: ../src/guestfs.pod:3036
41366 msgid "C<haskell>"
41367 msgstr ""
41368
41369 #. type: =item
41370 #: ../src/guestfs.pod:3038
41371 msgid "C<java>"
41372 msgstr ""
41373
41374 #. type: =item
41375 #: ../src/guestfs.pod:3040
41376 msgid "C<ocaml>"
41377 msgstr ""
41378
41379 #. type: =item
41380 #: ../src/guestfs.pod:3042
41381 msgid "C<php>"
41382 msgstr ""
41383
41384 #. type: =item
41385 #: ../src/guestfs.pod:3044
41386 msgid "C<perl>"
41387 msgstr ""
41388
41389 #. type: =item
41390 #: ../src/guestfs.pod:3046
41391 msgid "C<python>"
41392 msgstr ""
41393
41394 #. type: =item
41395 #: ../src/guestfs.pod:3048
41396 msgid "C<ruby>"
41397 msgstr ""
41398
41399 #. type: textblock
41400 #: ../src/guestfs.pod:3050
41401 msgid "Language bindings."
41402 msgstr ""
41403
41404 #. type: =head2
41405 #: ../src/guestfs.pod:3054
41406 msgid "MAKING A STABLE RELEASE"
41407 msgstr ""
41408
41409 #. type: textblock
41410 #: ../src/guestfs.pod:3056
41411 msgid ""
41412 "When we make a stable release, there are several steps documented here.  See "
41413 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41414 "branch policy."
41415 msgstr ""
41416
41417 #. type: textblock
41418 #: ../src/guestfs.pod:3064
41419 msgid ""
41420 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41421 msgstr ""
41422
41423 #. type: textblock
41424 #: ../src/guestfs.pod:3069
41425 msgid "Finalize RELEASE-NOTES."
41426 msgstr ""
41427
41428 #. type: textblock
41429 #: ../src/guestfs.pod:3073
41430 msgid "Update ROADMAP."
41431 msgstr ""
41432
41433 #. type: textblock
41434 #: ../src/guestfs.pod:3077
41435 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41436 msgstr ""
41437
41438 #. type: textblock
41439 #: ../src/guestfs.pod:3081
41440 msgid "Push and pull from Transifex."
41441 msgstr ""
41442
41443 #. type: verbatim
41444 #: ../src/guestfs.pod:3085
41445 #, no-wrap
41446 msgid ""
41447 " tx push -s\n"
41448 "\n"
41449 msgstr ""
41450
41451 #. type: textblock
41452 #: ../src/guestfs.pod:3087
41453 msgid "to push the latest POT files to Transifex.  Then run:"
41454 msgstr ""
41455
41456 #. type: verbatim
41457 #: ../src/guestfs.pod:3089
41458 #, no-wrap
41459 msgid ""
41460 " ./tx-pull.sh\n"
41461 "\n"
41462 msgstr ""
41463
41464 #. type: textblock
41465 #: ../src/guestfs.pod:3091
41466 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41467 msgstr ""
41468
41469 #. type: textblock
41470 #: ../src/guestfs.pod:3095
41471 msgid ""
41472 "Create new stable and development directories under L<http://libguestfs.org/"
41473 "download>."
41474 msgstr ""
41475
41476 #. type: textblock
41477 #: ../src/guestfs.pod:3100
41478 msgid "Create the branch in git:"
41479 msgstr ""
41480
41481 #. type: verbatim
41482 #: ../src/guestfs.pod:3102
41483 #, no-wrap
41484 msgid ""
41485 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41486 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41487 " git branch stable-1.XX\n"
41488 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41489 "\n"
41490 msgstr ""
41491
41492 #. type: =head1
41493 #: ../src/guestfs.pod:3109
41494 msgid "LIMITS"
41495 msgstr ""
41496
41497 #. type: =head2
41498 #: ../src/guestfs.pod:3111
41499 msgid "PROTOCOL LIMITS"
41500 msgstr ""
41501
41502 #. type: textblock
41503 #: ../src/guestfs.pod:3113
41504 msgid ""
41505 "Internally libguestfs uses a message-based protocol to pass API calls and "
41506 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41507 "plenty more detail about this).  The maximum message size used by the "
41508 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41509 "aware of this limit.  The API calls which may be affected are individually "
41510 "documented, with a link back to this section of the documentation."
41511 msgstr ""
41512
41513 #. type: textblock
41514 #: ../src/guestfs.pod:3121
41515 msgid ""
41516 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41517 "a simple string.  Because this string is at some point internally encoded as "
41518 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41519 "the requested file is larger than this then you will get an error."
41520 msgstr ""
41521
41522 #. type: textblock
41523 #: ../src/guestfs.pod:3127
41524 msgid ""
41525 "In order to transfer large files into and out of the guest filesystem, you "
41526 "need to use particular calls that support this.  The sections L</UPLOADING> "
41527 "and L</DOWNLOADING> document how to do this."
41528 msgstr ""
41529
41530 #. type: textblock
41531 #: ../src/guestfs.pod:3131
41532 msgid ""
41533 "You might also consider mounting the disk image using our FUSE filesystem "
41534 "support (L<guestmount(1)>)."
41535 msgstr ""
41536
41537 #. type: =head2
41538 #: ../src/guestfs.pod:3134
41539 msgid "MAXIMUM NUMBER OF DISKS"
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../src/guestfs.pod:3136
41544 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41545 msgstr ""
41546
41547 #. type: textblock
41548 #: ../src/guestfs.pod:3139
41549 msgid ""
41550 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41551 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41552 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41553 "purposes."
41554 msgstr ""
41555
41556 #. type: textblock
41557 #: ../src/guestfs.pod:3144
41558 msgid ""
41559 "We are working to substantially raise this limit in future versions but it "
41560 "requires complex changes to qemu."
41561 msgstr ""
41562
41563 #. type: textblock
41564 #: ../src/guestfs.pod:3147
41565 msgid ""
41566 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41567 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41568 "requires changes to qemu."
41569 msgstr ""
41570
41571 #. type: =head2
41572 #: ../src/guestfs.pod:3151
41573 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41574 msgstr ""
41575
41576 #. type: textblock
41577 #: ../src/guestfs.pod:3153
41578 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41579 msgstr ""
41580
41581 #. type: textblock
41582 #: ../src/guestfs.pod:3155
41583 msgid ""
41584 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41585 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41586 msgstr ""
41587
41588 #. type: textblock
41589 #: ../src/guestfs.pod:3158
41590 msgid ""
41591 "If you attach a disk with more than 15 partitions, the extra partitions are "
41592 "ignored by libguestfs."
41593 msgstr ""
41594
41595 #. type: =head2
41596 #: ../src/guestfs.pod:3161
41597 msgid "MAXIMUM SIZE OF A DISK"
41598 msgstr ""
41599
41600 #. type: textblock
41601 #: ../src/guestfs.pod:3163
41602 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41603 msgstr ""
41604
41605 #. type: textblock
41606 #: ../src/guestfs.pod:3165
41607 msgid ""
41608 "We have tested block devices up to 1 exabyte (2**60 or "
41609 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41610 "filesystem."
41611 msgstr ""
41612
41613 #. type: textblock
41614 #: ../src/guestfs.pod:3169
41615 msgid ""
41616 "Although libguestfs probably does not impose any limit, the underlying host "
41617 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41618 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41619 "TB).  If you store disk images as host logical volumes then you are limited "
41620 "by the maximum size of an LV."
41621 msgstr ""
41622
41623 #. type: textblock
41624 #: ../src/guestfs.pod:3175
41625 msgid ""
41626 "For the hugest disk image files, we recommend using XFS on the host for "
41627 "storage."
41628 msgstr ""
41629
41630 #. type: =head2
41631 #: ../src/guestfs.pod:3178
41632 msgid "MAXIMUM SIZE OF A PARTITION"
41633 msgstr ""
41634
41635 #. type: textblock
41636 #: ../src/guestfs.pod:3180
41637 msgid ""
41638 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41639 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41640 "address a partition located beyond 2 TB on the disk."
41641 msgstr ""
41642
41643 #. type: textblock
41644 #: ../src/guestfs.pod:3184
41645 msgid ""
41646 "It is recommended that you use GPT partitions on disks which are larger than "
41647 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41648 "which are theoretically larger than the largest disk we could support."
41649 msgstr ""
41650
41651 #. type: =head2
41652 #: ../src/guestfs.pod:3189
41653 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../src/guestfs.pod:3191
41658 msgid ""
41659 "This depends on the filesystem type.  libguestfs itself does not impose any "
41660 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41661 "what these limits are."
41662 msgstr ""
41663
41664 #. type: =head2
41665 #: ../src/guestfs.pod:3195
41666 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41667 msgstr ""
41668
41669 #. type: textblock
41670 #: ../src/guestfs.pod:3197
41671 msgid ""
41672 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41673 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41674 "uploads and downloads."
41675 msgstr ""
41676
41677 #. type: =head2
41678 #: ../src/guestfs.pod:3201
41679 msgid "INSPECTION LIMITS"
41680 msgstr ""
41681
41682 #. type: textblock
41683 #: ../src/guestfs.pod:3203
41684 msgid ""
41685 "The inspection code has several arbitrary limits on things like the size of "
41686 "Windows Registry hive it will read, and the length of product name.  These "
41687 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41688 "memory and disk space on the host, and should not be reached in practice.  "
41689 "See the source code for more information."
41690 msgstr ""
41691
41692 #. type: textblock
41693 #: ../src/guestfs.pod:3229
41694 msgid ""
41695 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41696 "effect as calling C<guestfs_set_verbose (g, 1)>."
41697 msgstr ""
41698
41699 #. type: textblock
41700 #: ../src/guestfs.pod:3241
41701 msgid ""
41702 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41703 "the discussion of paths in section L</PATH> above."
41704 msgstr ""
41705
41706 #. type: textblock
41707 #: ../src/guestfs.pod:3250
41708 msgid "See also L</QEMU WRAPPERS> above."
41709 msgstr ""
41710
41711 #. type: textblock
41712 #: ../src/guestfs.pod:3254
41713 msgid ""
41714 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41715 "effect as calling C<guestfs_set_trace (g, 1)>."
41716 msgstr ""
41717
41718 #. type: textblock
41719 #: ../src/guestfs.pod:3272
41720 msgid ""
41721 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41722 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41723 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41724 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41725 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41726 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41727 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41728 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
41729 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
41730 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
41731 msgstr ""
41732
41733 #. type: textblock
41734 #: ../src/guestfs.pod:3309
41735 msgid ""
41736 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41737 "(8)>, L<disktype(1)>."
41738 msgstr ""
41739
41740 #. type: =head1
41741 #: ../src/guestfs.pod:3316 ../tools/virt-make-fs.pl:571
41742 #: ../tools/virt-win-reg.pl:772
41743 msgid "BUGS"
41744 msgstr ""
41745
41746 #. type: textblock
41747 #: ../src/guestfs.pod:3318
41748 msgid "To get a list of bugs against libguestfs use this link:"
41749 msgstr ""
41750
41751 #. type: textblock
41752 #: ../src/guestfs.pod:3320
41753 msgid ""
41754 "L<https://bugzilla.redhat.com/buglist.cgi?"
41755 "component=libguestfs&product=Virtualization+Tools>"
41756 msgstr ""
41757
41758 #. type: textblock
41759 #: ../src/guestfs.pod:3322
41760 msgid "To report a new bug against libguestfs use this link:"
41761 msgstr ""
41762
41763 #. type: textblock
41764 #: ../src/guestfs.pod:3324
41765 msgid ""
41766 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41767 "component=libguestfs&product=Virtualization+Tools>"
41768 msgstr ""
41769
41770 #. type: textblock
41771 #: ../src/guestfs.pod:3326
41772 msgid "When reporting a bug, please check:"
41773 msgstr ""
41774
41775 #. type: textblock
41776 #: ../src/guestfs.pod:3332
41777 msgid "That the bug hasn't been reported already."
41778 msgstr ""
41779
41780 #. type: textblock
41781 #: ../src/guestfs.pod:3336
41782 msgid "That you are testing a recent version."
41783 msgstr ""
41784
41785 #. type: textblock
41786 #: ../src/guestfs.pod:3340
41787 msgid "Describe the bug accurately, and give a way to reproduce it."
41788 msgstr ""
41789
41790 #. type: textblock
41791 #: ../src/guestfs.pod:3344
41792 msgid ""
41793 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41794 "bug report."
41795 msgstr ""
41796
41797 #. type: textblock
41798 #: ../test-tool/libguestfs-test-tool.pod:5
41799 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41800 msgstr ""
41801
41802 #. type: verbatim
41803 #: ../test-tool/libguestfs-test-tool.pod:9
41804 #, no-wrap
41805 msgid ""
41806 " libguestfs-test-tool [--options]\n"
41807 "\n"
41808 msgstr ""
41809
41810 #. type: textblock
41811 #: ../test-tool/libguestfs-test-tool.pod:13
41812 msgid ""
41813 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41814 "to check basic libguestfs functionality is working.  This is needed because "
41815 "libguestfs occasionally breaks for reasons beyond our control: usually "
41816 "because of changes in the underlying qemu or kernel packages, or the host "
41817 "environment."
41818 msgstr ""
41819
41820 #. type: textblock
41821 #: ../test-tool/libguestfs-test-tool.pod:19
41822 msgid "If you suspect a problem in libguestfs, then just run:"
41823 msgstr ""
41824
41825 #. type: verbatim
41826 #: ../test-tool/libguestfs-test-tool.pod:21
41827 #, no-wrap
41828 msgid ""
41829 " libguestfs-test-tool\n"
41830 "\n"
41831 msgstr ""
41832
41833 #. type: textblock
41834 #: ../test-tool/libguestfs-test-tool.pod:23
41835 msgid "It will print lots of diagnostic messages."
41836 msgstr ""
41837
41838 #. type: textblock
41839 #: ../test-tool/libguestfs-test-tool.pod:25
41840 msgid "If it runs to completion successfully, you will see this near the end:"
41841 msgstr ""
41842
41843 #. type: verbatim
41844 #: ../test-tool/libguestfs-test-tool.pod:27
41845 #, no-wrap
41846 msgid ""
41847 " ===== TEST FINISHED OK =====\n"
41848 "\n"
41849 msgstr ""
41850
41851 #. type: textblock
41852 #: ../test-tool/libguestfs-test-tool.pod:29
41853 msgid "and the test tool will exit with code 0."
41854 msgstr ""
41855
41856 #. type: textblock
41857 #: ../test-tool/libguestfs-test-tool.pod:31
41858 msgid ""
41859 "If it fails (and/or exits with non-zero error code), please paste the "
41860 "I<complete, unedited> output of the test tool into a bug report.  More "
41861 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41862 "> website."
41863 msgstr ""
41864
41865 #. type: textblock
41866 #: ../test-tool/libguestfs-test-tool.pod:42
41867 msgid "Display short usage information and exit."
41868 msgstr ""
41869
41870 #. type: =item
41871 #: ../test-tool/libguestfs-test-tool.pod:44
41872 msgid "B<--qemu qemu_binary>"
41873 msgstr ""
41874
41875 #. type: textblock
41876 #: ../test-tool/libguestfs-test-tool.pod:46
41877 msgid ""
41878 "If you have downloaded another qemu binary, point this option at the full "
41879 "path of the binary to try it."
41880 msgstr ""
41881
41882 #. type: =item
41883 #: ../test-tool/libguestfs-test-tool.pod:49
41884 msgid "B<--qemudir qemu_source_dir>"
41885 msgstr ""
41886
41887 #. type: textblock
41888 #: ../test-tool/libguestfs-test-tool.pod:51
41889 msgid ""
41890 "If you have compiled qemu from source, point this option at the source "
41891 "directory to try it."
41892 msgstr ""
41893
41894 #. type: =item
41895 #: ../test-tool/libguestfs-test-tool.pod:54
41896 msgid "B<-t N>"
41897 msgstr ""
41898
41899 #. type: =item
41900 #: ../test-tool/libguestfs-test-tool.pod:56
41901 msgid "B<--timeout N>"
41902 msgstr ""
41903
41904 #. type: textblock
41905 #: ../test-tool/libguestfs-test-tool.pod:58
41906 msgid ""
41907 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41908 "minutes) which does not usually need to be adjusted."
41909 msgstr ""
41910
41911 #. type: =head1
41912 #: ../test-tool/libguestfs-test-tool.pod:63
41913 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41914 msgstr ""
41915
41916 #. type: textblock
41917 #: ../test-tool/libguestfs-test-tool.pod:65
41918 msgid ""
41919 "If you have compiled another version of qemu from source and would like to "
41920 "try that, then you can use the I<--qemudir> option to point to the qemu "
41921 "source directory."
41922 msgstr ""
41923
41924 #. type: textblock
41925 #: ../test-tool/libguestfs-test-tool.pod:69
41926 msgid ""
41927 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41928 "option to point to the binary."
41929 msgstr ""
41930
41931 #. type: textblock
41932 #: ../test-tool/libguestfs-test-tool.pod:72
41933 msgid ""
41934 "Note when using these options, you can ignore the business of qemu wrapper "
41935 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41936 "wrapper script for you if one is needed."
41937 msgstr ""
41938
41939 #. type: =head1
41940 #: ../test-tool/libguestfs-test-tool.pod:76
41941 msgid "TRYING OUT A DIFFERENT KERNEL"
41942 msgstr ""
41943
41944 #. type: textblock
41945 #: ../test-tool/libguestfs-test-tool.pod:78
41946 msgid ""
41947 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41948 "libguestfs tries.  You do this by setting the environment variables "
41949 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41950 msgstr ""
41951
41952 #. type: textblock
41953 #: ../test-tool/libguestfs-test-tool.pod:82
41954 msgid ""
41955 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41956 "information."
41957 msgstr ""
41958
41959 #. type: =head1
41960 #: ../test-tool/libguestfs-test-tool.pod:85
41961 msgid "SELF-DIAGNOSIS"
41962 msgstr ""
41963
41964 #. type: textblock
41965 #: ../test-tool/libguestfs-test-tool.pod:87
41966 msgid ""
41967 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41968 "produced by libguestfs-test-tool and/or possible errors."
41969 msgstr ""
41970
41971 #. type: textblock
41972 #: ../test-tool/libguestfs-test-tool.pod:92
41973 msgid ""
41974 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41975 "I<1> if there was an error."
41976 msgstr ""
41977
41978 #. type: textblock
41979 #: ../test-tool/libguestfs-test-tool.pod:97
41980 msgid ""
41981 "For the full list of environment variables which may affect libguestfs, "
41982 "please see the L<guestfs(3)> manual page."
41983 msgstr ""
41984
41985 #. type: textblock
41986 #: ../test-tool/libguestfs-test-tool.pod:102
41987 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41988 msgstr ""
41989
41990 #. type: textblock
41991 #: ../tools/virt-list-filesystems.pl:32
41992 msgid ""
41993 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41994 msgstr ""
41995
41996 #. type: verbatim
41997 #: ../tools/virt-list-filesystems.pl:36
41998 #, no-wrap
41999 msgid ""
42000 " virt-list-filesystems [--options] domname\n"
42001 "\n"
42002 msgstr ""
42003
42004 #. type: verbatim
42005 #: ../tools/virt-list-filesystems.pl:38
42006 #, no-wrap
42007 msgid ""
42008 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42009 "\n"
42010 msgstr ""
42011
42012 #. type: textblock
42013 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42014 msgid ""
42015 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42016 "replacement."
42017 msgstr ""
42018
42019 #. type: textblock
42020 #: ../tools/virt-list-filesystems.pl:45
42021 msgid ""
42022 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42023 "are contained in a virtual machine or disk image."
42024 msgstr ""
42025
42026 #. type: textblock
42027 #: ../tools/virt-list-filesystems.pl:49
42028 msgid ""
42029 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42030 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42031 "> tool."
42032 msgstr ""
42033
42034 #. type: textblock
42035 #: ../tools/virt-list-filesystems.pl:112
42036 msgid ""
42037 "With this option, C<virt-list-filesystems> displays the type of each "
42038 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42039 msgstr ""
42040
42041 #. type: =item
42042 #: ../tools/virt-list-filesystems.pl:119
42043 msgid "B<-a>"
42044 msgstr ""
42045
42046 #. type: textblock
42047 #: ../tools/virt-list-filesystems.pl:123
42048 msgid ""
42049 "Normally we only show mountable filesystems.  If this option is given then "
42050 "swap devices are shown too."
42051 msgstr ""
42052
42053 #. type: textblock
42054 #: ../tools/virt-list-filesystems.pl:197
42055 msgid ""
42056 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42057 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42058 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42059 msgstr ""
42060
42061 #. type: textblock
42062 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42063 msgid "Copyright (C) 2009 Red Hat Inc."
42064 msgstr ""
42065
42066 #. type: textblock
42067 #: ../tools/virt-list-partitions.pl:32
42068 msgid ""
42069 "virt-list-partitions - List partitions in a virtual machine or disk image"
42070 msgstr ""
42071
42072 #. type: verbatim
42073 #: ../tools/virt-list-partitions.pl:36
42074 #, no-wrap
42075 msgid ""
42076 " virt-list-partitions [--options] domname\n"
42077 "\n"
42078 msgstr ""
42079
42080 #. type: verbatim
42081 #: ../tools/virt-list-partitions.pl:38
42082 #, no-wrap
42083 msgid ""
42084 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42085 "\n"
42086 msgstr ""
42087
42088 #. type: textblock
42089 #: ../tools/virt-list-partitions.pl:45
42090 msgid ""
42091 "C<virt-list-partitions> is a command line tool to list the partitions that "
42092 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42093 "first step to using L<virt-resize(1)>."
42094 msgstr ""
42095
42096 #. type: textblock
42097 #: ../tools/virt-list-partitions.pl:50
42098 msgid ""
42099 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42100 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42101 "> tool."
42102 msgstr ""
42103
42104 #. type: textblock
42105 #: ../tools/virt-list-partitions.pl:113
42106 msgid "Show sizes in human-readable form (eg. \"1G\")."
42107 msgstr ""
42108
42109 #. type: textblock
42110 #: ../tools/virt-list-partitions.pl:123
42111 msgid ""
42112 "With this option, C<virt-list-partitions> displays the type and size of each "
42113 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42114 msgstr ""
42115
42116 #. type: =item
42117 #: ../tools/virt-list-partitions.pl:130
42118 msgid "B<-t>"
42119 msgstr ""
42120
42121 #. type: =item
42122 #: ../tools/virt-list-partitions.pl:132
42123 msgid "B<--total>"
42124 msgstr ""
42125
42126 #. type: textblock
42127 #: ../tools/virt-list-partitions.pl:134
42128 msgid ""
42129 "Display the total size of each block device (as a separate row or rows)."
42130 msgstr ""
42131
42132 #. type: textblock
42133 #: ../tools/virt-list-partitions.pl:267
42134 msgid ""
42135 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42136 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42137 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42138 msgstr ""
42139
42140 #. type: textblock
42141 #: ../tools/virt-list-partitions.pl:283
42142 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42143 msgstr ""
42144
42145 #. type: textblock
42146 #: ../tools/virt-make-fs.pl:37
42147 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42148 msgstr ""
42149
42150 #. type: verbatim
42151 #: ../tools/virt-make-fs.pl:41
42152 #, no-wrap
42153 msgid ""
42154 " virt-make-fs [--options] input.tar output.img\n"
42155 "\n"
42156 msgstr ""
42157
42158 #. type: verbatim
42159 #: ../tools/virt-make-fs.pl:43
42160 #, no-wrap
42161 msgid ""
42162 " virt-make-fs [--options] input.tar.gz output.img\n"
42163 "\n"
42164 msgstr ""
42165
42166 #. type: verbatim
42167 #: ../tools/virt-make-fs.pl:45
42168 #, no-wrap
42169 msgid ""
42170 " virt-make-fs [--options] directory output.img\n"
42171 "\n"
42172 msgstr ""
42173
42174 #. type: textblock
42175 #: ../tools/virt-make-fs.pl:49
42176 msgid ""
42177 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42178 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42179 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42180 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42181 "you want to attach these filesystems to existing virtual machines (eg. to "
42182 "import large amounts of read-only data to a VM)."
42183 msgstr ""
42184
42185 #. type: textblock
42186 #: ../tools/virt-make-fs.pl:57
42187 msgid "Basic usage is:"
42188 msgstr ""
42189
42190 #. type: verbatim
42191 #: ../tools/virt-make-fs.pl:59
42192 #, no-wrap
42193 msgid ""
42194 " virt-make-fs input output.img\n"
42195 "\n"
42196 msgstr ""
42197
42198 #. type: textblock
42199 #: ../tools/virt-make-fs.pl:61
42200 msgid ""
42201 "where C<input> is either a directory containing files that you want to add, "
42202 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42203 "C<output.img> is a disk image.  The input type is detected automatically.  "
42204 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42205 "extra flags (see L</OPTIONS> below)."
42206 msgstr ""
42207
42208 #. type: =head2
42209 #: ../tools/virt-make-fs.pl:67
42210 msgid "FILESYSTEM TYPE"
42211 msgstr ""
42212
42213 #. type: textblock
42214 #: ../tools/virt-make-fs.pl:69
42215 msgid ""
42216 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42217 "libguestfs supports can be used (but I<not> read-only formats like "
42218 "ISO9660).  Here are some of the more common choices:"
42219 msgstr ""
42220
42221 #. type: =item
42222 #: ../tools/virt-make-fs.pl:75
42223 msgid "I<ext3>"
42224 msgstr ""
42225
42226 #. type: textblock
42227 #: ../tools/virt-make-fs.pl:77
42228 msgid ""
42229 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42230 "you are not going to use the filesystem in a way that requires the journal, "
42231 "then this is just wasted overhead."
42232 msgstr ""
42233
42234 #. type: =item
42235 #: ../tools/virt-make-fs.pl:81
42236 msgid "I<ntfs> or I<vfat>"
42237 msgstr ""
42238
42239 #. type: textblock
42240 #: ../tools/virt-make-fs.pl:83
42241 msgid "Useful if exporting data to a Windows guest."
42242 msgstr ""
42243
42244 #. type: textblock
42245 #: ../tools/virt-make-fs.pl:85
42246 msgid ""
42247 "I<Note for vfat>: The tar archive or local directory must only contain files "
42248 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42249 "program running within libguestfs is unable to change the ownership of non-"
42250 "root files, since vfat itself does not support this."
42251 msgstr ""
42252
42253 #. type: =item
42254 #: ../tools/virt-make-fs.pl:90
42255 msgid "I<minix>"
42256 msgstr ""
42257
42258 #. type: textblock
42259 #: ../tools/virt-make-fs.pl:92
42260 msgid ""
42261 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42262 "total filesystem size."
42263 msgstr ""
42264
42265 #. type: =head3
42266 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42267 #: ../tools/virt-make-fs.pl:149
42268 msgid "EXAMPLE"
42269 msgstr ""
42270
42271 #. type: verbatim
42272 #: ../tools/virt-make-fs.pl:99
42273 #, no-wrap
42274 msgid ""
42275 " virt-make-fs --type=minix input minixfs.img\n"
42276 "\n"
42277 msgstr ""
42278
42279 #. type: =head2
42280 #: ../tools/virt-make-fs.pl:101
42281 msgid "TO PARTITION OR NOT TO PARTITION"
42282 msgstr ""
42283
42284 #. type: textblock
42285 #: ../tools/virt-make-fs.pl:103
42286 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42287 msgstr ""
42288
42289 #. type: textblock
42290 #: ../tools/virt-make-fs.pl:105
42291 msgid ""
42292 "Adding a partition can make the disk image more compatible with certain "
42293 "virtualized operating systems which don't expect to see a filesystem "
42294 "directly located on a block device (Linux doesn't care and will happily "
42295 "handle both types)."
42296 msgstr ""
42297
42298 #. type: textblock
42299 #: ../tools/virt-make-fs.pl:110
42300 msgid ""
42301 "On the other hand, if you have a partition table then the output image is no "
42302 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42303 "directly on a partitioned disk image.  (However libguestfs tools such as "
42304 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42305 msgstr ""
42306
42307 #. type: textblock
42308 #: ../tools/virt-make-fs.pl:118
42309 msgid "Add an MBR partition:"
42310 msgstr ""
42311
42312 #. type: verbatim
42313 #: ../tools/virt-make-fs.pl:120
42314 #, no-wrap
42315 msgid ""
42316 " virt-make-fs --partition -- input disk.img\n"
42317 "\n"
42318 msgstr ""
42319
42320 #. type: textblock
42321 #: ../tools/virt-make-fs.pl:122
42322 msgid ""
42323 "If the output disk image could be terabyte-sized or larger, it's better to "
42324 "use an EFI/GPT-compatible partition table:"
42325 msgstr ""
42326
42327 #. type: verbatim
42328 #: ../tools/virt-make-fs.pl:125
42329 #, no-wrap
42330 msgid ""
42331 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42332 "\n"
42333 msgstr ""
42334
42335 #. type: =head2
42336 #: ../tools/virt-make-fs.pl:127
42337 msgid "EXTRA SPACE"
42338 msgstr ""
42339
42340 #. type: textblock
42341 #: ../tools/virt-make-fs.pl:129
42342 msgid ""
42343 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42344 "the files that it contains, but might have extra space.  Depending on how "
42345 "you are going to use the output, you might think this extra space is wasted "
42346 "and want to minimize it, or you might want to leave space so that more files "
42347 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42348 "but you can use the I<--size> flag to leave space in the filesystem if you "
42349 "want it."
42350 msgstr ""
42351
42352 #. type: textblock
42353 #: ../tools/virt-make-fs.pl:137
42354 msgid ""
42355 "An alternative way to leave extra space but not make the output image any "
42356 "bigger is to use an alternative disk image format (instead of the default "
42357 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42358 "image format (check your hypervisor supports this before using it).  This "
42359 "allows you to choose a large I<--size> but the extra space won't actually be "
42360 "allocated in the image until you try to store something in it."
42361 msgstr ""
42362
42363 #. type: textblock
42364 #: ../tools/virt-make-fs.pl:145
42365 msgid ""
42366 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42367 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42368 "to build another image from scratch."
42369 msgstr ""
42370
42371 #. type: verbatim
42372 #: ../tools/virt-make-fs.pl:151
42373 #, no-wrap
42374 msgid ""
42375 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42376 "\n"
42377 msgstr ""
42378
42379 #. type: textblock
42380 #: ../tools/virt-make-fs.pl:179
42381 msgid "Enable debugging information."
42382 msgstr ""
42383
42384 #. type: =item
42385 #: ../tools/virt-make-fs.pl:185
42386 msgid "B<--size=E<lt>NE<gt>>"
42387 msgstr ""
42388
42389 #. type: =item
42390 #: ../tools/virt-make-fs.pl:187
42391 msgid "B<--size=+E<lt>NE<gt>>"
42392 msgstr ""
42393
42394 #. type: =item
42395 #: ../tools/virt-make-fs.pl:189
42396 msgid "B<-s E<lt>NE<gt>>"
42397 msgstr ""
42398
42399 #. type: =item
42400 #: ../tools/virt-make-fs.pl:191
42401 msgid "B<-s +E<lt>NE<gt>>"
42402 msgstr ""
42403
42404 #. type: textblock
42405 #: ../tools/virt-make-fs.pl:193
42406 msgid ""
42407 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42408 msgstr ""
42409
42410 #. type: textblock
42411 #: ../tools/virt-make-fs.pl:196
42412 msgid ""
42413 "If this option is I<not> given, then the output image will be just large "
42414 "enough to contain all the files, with not much wasted space."
42415 msgstr ""
42416
42417 #. type: textblock
42418 #: ../tools/virt-make-fs.pl:199
42419 msgid ""
42420 "To choose a fixed size output disk, specify an absolute number followed by b/"
42421 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42422 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42423 "files, else you will get an error."
42424 msgstr ""
42425
42426 #. type: textblock
42427 #: ../tools/virt-make-fs.pl:204
42428 msgid ""
42429 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42430 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42431 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42432 "the input files, and (approximately) an extra 200 MB free space."
42433 msgstr ""
42434
42435 #. type: textblock
42436 #: ../tools/virt-make-fs.pl:210
42437 msgid ""
42438 "Note that virt-make-fs estimates free space, and therefore will not produce "
42439 "filesystems containing precisely the free space requested.  (It is much more "
42440 "expensive and time-consuming to produce a filesystem which has precisely the "
42441 "desired free space)."
42442 msgstr ""
42443
42444 #. type: =item
42445 #: ../tools/virt-make-fs.pl:219
42446 msgid "B<--format=E<lt>fmtE<gt>>"
42447 msgstr ""
42448
42449 #. type: =item
42450 #: ../tools/virt-make-fs.pl:221
42451 msgid "B<-F E<lt>fmtE<gt>>"
42452 msgstr ""
42453
42454 #. type: textblock
42455 #: ../tools/virt-make-fs.pl:223
42456 msgid "Choose the output disk image format."
42457 msgstr ""
42458
42459 #. type: textblock
42460 #: ../tools/virt-make-fs.pl:225
42461 msgid "The default is C<raw> (raw sparse disk image)."
42462 msgstr ""
42463
42464 #. type: textblock
42465 #: ../tools/virt-make-fs.pl:227
42466 msgid ""
42467 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42468 "that would really make sense here is C<qcow2>."
42469 msgstr ""
42470
42471 #. type: =item
42472 #: ../tools/virt-make-fs.pl:234
42473 msgid "B<--type=E<lt>fsE<gt>>"
42474 msgstr ""
42475
42476 #. type: =item
42477 #: ../tools/virt-make-fs.pl:236
42478 msgid "B<-t E<lt>fsE<gt>>"
42479 msgstr ""
42480
42481 #. type: textblock
42482 #: ../tools/virt-make-fs.pl:238
42483 msgid "Choose the output filesystem type."
42484 msgstr ""
42485
42486 #. type: textblock
42487 #: ../tools/virt-make-fs.pl:240
42488 msgid "The default is C<ext2>."
42489 msgstr ""
42490
42491 #. type: textblock
42492 #: ../tools/virt-make-fs.pl:242
42493 msgid ""
42494 "Any filesystem which is supported read-write by libguestfs can be used here."
42495 msgstr ""
42496
42497 #. type: =item
42498 #: ../tools/virt-make-fs.pl:249
42499 msgid "B<--partition>"
42500 msgstr ""
42501
42502 #. type: =item
42503 #: ../tools/virt-make-fs.pl:251
42504 msgid "B<--partition=E<lt>parttypeE<gt>>"
42505 msgstr ""
42506
42507 #. type: textblock
42508 #: ../tools/virt-make-fs.pl:253
42509 msgid ""
42510 "If specified, this flag adds an MBR partition table to the output disk image."
42511 msgstr ""
42512
42513 #. type: textblock
42514 #: ../tools/virt-make-fs.pl:256
42515 msgid ""
42516 "You can change the partition table type, eg. I<--partition=gpt> for large "
42517 "disks."
42518 msgstr ""
42519
42520 #. type: textblock
42521 #: ../tools/virt-make-fs.pl:259
42522 msgid ""
42523 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42524 "might consider the next parameter to be the partition type.  For example:"
42525 msgstr ""
42526
42527 #. type: verbatim
42528 #: ../tools/virt-make-fs.pl:263
42529 #, no-wrap
42530 msgid ""
42531 " virt-make-fs --partition input.tar output.img\n"
42532 "\n"
42533 msgstr ""
42534
42535 #. type: textblock
42536 #: ../tools/virt-make-fs.pl:265
42537 msgid ""
42538 "would cause virt-make-fs to think you wanted to use a partition type of "
42539 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42540 "dash) between options and the input and output arguments:"
42541 msgstr ""
42542
42543 #. type: verbatim
42544 #: ../tools/virt-make-fs.pl:269
42545 #, no-wrap
42546 msgid ""
42547 " virt-make-fs --partition -- input.tar output.img\n"
42548 "\n"
42549 msgstr ""
42550
42551 #. type: textblock
42552 #: ../tools/virt-make-fs.pl:271
42553 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42554 msgstr ""
42555
42556 #. type: textblock
42557 #: ../tools/virt-make-fs.pl:559
42558 msgid ""
42559 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42560 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42561 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42562 msgstr ""
42563
42564 #. type: textblock
42565 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42566 msgid ""
42567 "When reporting bugs, please enable debugging and capture the I<complete> "
42568 "output:"
42569 msgstr ""
42570
42571 #. type: verbatim
42572 #: ../tools/virt-make-fs.pl:576
42573 #, no-wrap
42574 msgid ""
42575 " export LIBGUESTFS_DEBUG=1\n"
42576 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42577 "\n"
42578 msgstr ""
42579
42580 #. type: textblock
42581 #: ../tools/virt-make-fs.pl:579
42582 msgid ""
42583 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42584 "redhat.com/>"
42585 msgstr ""
42586
42587 #. type: textblock
42588 #: ../tools/virt-tar.pl:33
42589 msgid "virt-tar - Extract or upload files to a virtual machine"
42590 msgstr ""
42591
42592 #. type: verbatim
42593 #: ../tools/virt-tar.pl:37
42594 #, no-wrap
42595 msgid ""
42596 " virt-tar [--options] -x domname directory tarball\n"
42597 "\n"
42598 msgstr ""
42599
42600 #. type: verbatim
42601 #: ../tools/virt-tar.pl:39
42602 #, no-wrap
42603 msgid ""
42604 " virt-tar [--options] -u domname tarball directory\n"
42605 "\n"
42606 msgstr ""
42607
42608 #. type: verbatim
42609 #: ../tools/virt-tar.pl:41
42610 #, no-wrap
42611 msgid ""
42612 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42613 "\n"
42614 msgstr ""
42615
42616 #. type: verbatim
42617 #: ../tools/virt-tar.pl:43
42618 #, no-wrap
42619 msgid ""
42620 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42621 "\n"
42622 msgstr ""
42623
42624 #. type: =head2
42625 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42626 msgid "NOTE"
42627 msgstr ""
42628
42629 #. type: textblock
42630 #: ../tools/virt-tar.pl:47
42631 msgid ""
42632 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42633 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42634 msgstr ""
42635
42636 #. type: textblock
42637 #: ../tools/virt-tar.pl:52
42638 msgid "Download C</home> from the VM into a local tarball:"
42639 msgstr ""
42640
42641 #. type: verbatim
42642 #: ../tools/virt-tar.pl:54
42643 #, no-wrap
42644 msgid ""
42645 " virt-tar -x domname /home home.tar\n"
42646 "\n"
42647 msgstr ""
42648
42649 #. type: verbatim
42650 #: ../tools/virt-tar.pl:56
42651 #, no-wrap
42652 msgid ""
42653 " virt-tar -zx domname /home home.tar.gz\n"
42654 "\n"
42655 msgstr ""
42656
42657 #. type: textblock
42658 #: ../tools/virt-tar.pl:58
42659 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42660 msgstr ""
42661
42662 #. type: verbatim
42663 #: ../tools/virt-tar.pl:60
42664 #, no-wrap
42665 msgid ""
42666 " virt-tar -u domname uploadstuff.tar /tmp\n"
42667 "\n"
42668 msgstr ""
42669
42670 #. type: verbatim
42671 #: ../tools/virt-tar.pl:62
42672 #, no-wrap
42673 msgid ""
42674 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42675 "\n"
42676 msgstr ""
42677
42678 #. type: textblock
42679 #: ../tools/virt-tar.pl:66
42680 msgid ""
42681 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42682 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42683 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42684 msgstr ""
42685
42686 #. type: textblock
42687 #: ../tools/virt-tar.pl:71
42688 msgid ""
42689 "You can use I<-x> (extract) on live virtual machines, but you might get "
42690 "inconsistent results or errors if there is filesystem activity inside the "
42691 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42692 "work, but the only way to guarantee consistent results is if the virtual "
42693 "machine is shut down."
42694 msgstr ""
42695
42696 #. type: textblock
42697 #: ../tools/virt-tar.pl:79
42698 msgid ""
42699 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42700 "parts of a guest filesystem.  There are many possibilities: making backups, "
42701 "uploading data files, snooping on guest activity, fixing or customizing "
42702 "guests, etc."
42703 msgstr ""
42704
42705 #. type: textblock
42706 #: ../tools/virt-tar.pl:84
42707 msgid ""
42708 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42709 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42710 "should look at the L<guestfish(1)> tool."
42711 msgstr ""
42712
42713 #. type: textblock
42714 #: ../tools/virt-tar.pl:88
42715 msgid ""
42716 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42717 "its contents (recursively) from the virtual machine into a local tarball.  "
42718 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42719 "virtual machine.  You cannot use these two options together."
42720 msgstr ""
42721
42722 #. type: textblock
42723 #: ../tools/virt-tar.pl:94
42724 msgid ""
42725 "In addition, you may need to use the I<-z> (gZip) option to enable "
42726 "compression.  When uploading, you have to specify I<-z> if the upload file "
42727 "is compressed because virt-tar won't detect this on its own."
42728 msgstr ""
42729
42730 #. type: textblock
42731 #: ../tools/virt-tar.pl:98
42732 msgid ""
42733 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42734 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42735 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42736 "the L<libguestfs(3)> API)."
42737 msgstr ""
42738
42739 #. type: =item
42740 #: ../tools/virt-tar.pl:160
42741 msgid "B<--extract>"
42742 msgstr ""
42743
42744 #. type: =item
42745 #: ../tools/virt-tar.pl:162
42746 msgid "B<--download>"
42747 msgstr ""
42748
42749 #. type: =item
42750 #: ../tools/virt-tar.pl:164
42751 msgid "B<-u>"
42752 msgstr ""
42753
42754 #. type: =item
42755 #: ../tools/virt-tar.pl:166
42756 msgid "B<--upload>"
42757 msgstr ""
42758
42759 #. type: textblock
42760 #: ../tools/virt-tar.pl:168
42761 msgid ""
42762 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42763 "local tarball."
42764 msgstr ""
42765
42766 #. type: textblock
42767 #: ../tools/virt-tar.pl:171
42768 msgid ""
42769 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42770 "Please read the L</WARNING> section above before using this option."
42771 msgstr ""
42772
42773 #. type: textblock
42774 #: ../tools/virt-tar.pl:175
42775 msgid "You must specify exactly one of these options."
42776 msgstr ""
42777
42778 #. type: =item
42779 #: ../tools/virt-tar.pl:181
42780 msgid "B<-z>"
42781 msgstr ""
42782
42783 #. type: =item
42784 #: ../tools/virt-tar.pl:183
42785 msgid "B<--gzip>"
42786 msgstr ""
42787
42788 #. type: textblock
42789 #: ../tools/virt-tar.pl:185
42790 msgid "Specify that the input or output tarball is gzip-compressed."
42791 msgstr ""
42792
42793 #. type: textblock
42794 #: ../tools/virt-tar.pl:298
42795 msgid ""
42796 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42797 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42798 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42799 "org/>."
42800 msgstr ""
42801
42802 #. type: textblock
42803 #: ../tools/virt-win-reg.pl:37
42804 msgid ""
42805 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42806 msgstr ""
42807
42808 #. type: verbatim
42809 #: ../tools/virt-win-reg.pl:41
42810 #, no-wrap
42811 msgid ""
42812 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42813 "\n"
42814 msgstr ""
42815
42816 #. type: verbatim
42817 #: ../tools/virt-win-reg.pl:43
42818 #, no-wrap
42819 msgid ""
42820 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42821 "\n"
42822 msgstr ""
42823
42824 #. type: verbatim
42825 #: ../tools/virt-win-reg.pl:45
42826 #, no-wrap
42827 msgid ""
42828 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42829 "\n"
42830 msgstr ""
42831
42832 #. type: verbatim
42833 #: ../tools/virt-win-reg.pl:47
42834 #, no-wrap
42835 msgid ""
42836 " virt-win-reg --merge domname [input.reg ...]\n"
42837 "\n"
42838 msgstr ""
42839
42840 #. type: verbatim
42841 #: ../tools/virt-win-reg.pl:49
42842 #, no-wrap
42843 msgid ""
42844 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42845 "\n"
42846 msgstr ""
42847
42848 #. type: textblock
42849 #: ../tools/virt-win-reg.pl:53
42850 msgid ""
42851 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42852 "virtual machines.  If you do this, you I<will> get irreversible disk "
42853 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42854 "but doesn't catch all cases."
42855 msgstr ""
42856
42857 #. type: textblock
42858 #: ../tools/virt-win-reg.pl:58
42859 msgid ""
42860 "Modifying the Windows Registry is an inherently risky operation.  The format "
42861 "is deliberately obscure and undocumented, and Registry changes can leave the "
42862 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42863 "you have a reliable backup first."
42864 msgstr ""
42865
42866 #. type: textblock
42867 #: ../tools/virt-win-reg.pl:65
42868 msgid ""
42869 "This program can export and merge Windows Registry entries from a Windows "
42870 "guest."
42871 msgstr ""
42872
42873 #. type: textblock
42874 #: ../tools/virt-win-reg.pl:68
42875 msgid ""
42876 "The first parameter is the libvirt guest name or the raw disk image of a "
42877 "Windows guest."
42878 msgstr ""
42879
42880 #. type: textblock
42881 #: ../tools/virt-win-reg.pl:71
42882 msgid ""
42883 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42884 "exported (recursively).  For example:"
42885 msgstr ""
42886
42887 #. type: verbatim
42888 #: ../tools/virt-win-reg.pl:74
42889 #, no-wrap
42890 msgid ""
42891 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42892 "\n"
42893 msgstr ""
42894
42895 #. type: textblock
42896 #: ../tools/virt-win-reg.pl:76
42897 msgid ""
42898 "You can also display single values from within registry keys, for example:"
42899 msgstr ""
42900
42901 #. type: verbatim
42902 #: ../tools/virt-win-reg.pl:79
42903 #, no-wrap
42904 msgid ""
42905 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42906 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42907 " Windows 7 Enterprise\n"
42908 "\n"
42909 msgstr ""
42910
42911 #. type: textblock
42912 #: ../tools/virt-win-reg.pl:83
42913 msgid ""
42914 "With I<--merge>, you can merge a textual regedit file into the Windows "
42915 "Registry:"
42916 msgstr ""
42917
42918 #. type: verbatim
42919 #: ../tools/virt-win-reg.pl:86
42920 #, no-wrap
42921 msgid ""
42922 " $ virt-win-reg --merge Windows7 changes.reg\n"
42923 "\n"
42924 msgstr ""
42925
42926 #. type: textblock
42927 #: ../tools/virt-win-reg.pl:90
42928 msgid ""
42929 "This program is only meant for simple access to the registry.  If you want "
42930 "to do complicated things with the registry, we suggest you download the "
42931 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42932 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42933 "L<hivexregedit(1)>."
42934 msgstr ""
42935
42936 #. type: =item
42937 #: ../tools/virt-win-reg.pl:159
42938 msgid "B<--merge>"
42939 msgstr ""
42940
42941 #. type: textblock
42942 #: ../tools/virt-win-reg.pl:161
42943 msgid ""
42944 "In merge mode, this merges a textual regedit file into the Windows Registry "
42945 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42946 "displays or exports Registry entries instead."
42947 msgstr ""
42948
42949 #. type: textblock
42950 #: ../tools/virt-win-reg.pl:165
42951 msgid ""
42952 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42953 "result in disk corruption.  However exporting (without this flag)  is always "
42954 "safe."
42955 msgstr ""
42956
42957 #. type: =item
42958 #: ../tools/virt-win-reg.pl:173
42959 msgid "B<--encoding> UTF-16LE|ASCII"
42960 msgstr ""
42961
42962 #. type: textblock
42963 #: ../tools/virt-win-reg.pl:175
42964 msgid ""
42965 "When merging (only), you may need to specify the encoding for strings to be "
42966 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42967 "(3)/ENCODING STRINGS>."
42968 msgstr ""
42969
42970 #. type: textblock
42971 #: ../tools/virt-win-reg.pl:179
42972 msgid ""
42973 "The default is to use UTF-16LE, which should work with recent versions of "
42974 "Windows."
42975 msgstr ""
42976
42977 #. type: =item
42978 #: ../tools/virt-win-reg.pl:186
42979 msgid "B<--unsafe-printable-strings>"
42980 msgstr ""
42981
42982 #. type: textblock
42983 #: ../tools/virt-win-reg.pl:188
42984 msgid ""
42985 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42986 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42987 "present."
42988 msgstr ""
42989
42990 #. type: textblock
42991 #: ../tools/virt-win-reg.pl:192
42992 msgid ""
42993 "This is unsafe and does not preserve the fidelity of strings in the original "
42994 "Registry for various reasons:"
42995 msgstr ""
42996
42997 #. type: textblock
42998 #: ../tools/virt-win-reg.pl:199
42999 msgid ""
43000 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43001 "other encodings will be corrupted by this transformation."
43002 msgstr ""
43003
43004 #. type: textblock
43005 #: ../tools/virt-win-reg.pl:204
43006 msgid ""
43007 "Assumes that everything which has type 1 or 2 is really a string and that "
43008 "everything else is not a string, but the type field in real Registries is "
43009 "not reliable."
43010 msgstr ""
43011
43012 #. type: textblock
43013 #: ../tools/virt-win-reg.pl:210
43014 msgid ""
43015 "Loses information about whether a zero codepoint followed the string in the "
43016 "Registry or not."
43017 msgstr ""
43018
43019 #. type: textblock
43020 #: ../tools/virt-win-reg.pl:215
43021 msgid ""
43022 "This all happens because the Registry itself contains no information about "
43023 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43024 msgstr ""
43025
43026 #. type: textblock
43027 #: ../tools/virt-win-reg.pl:219
43028 msgid ""
43029 "You should only use this option for quick hacking and debugging of the "
43030 "Registry contents, and I<never> use it if the output is going to be passed "
43031 "into another program or stored in another Registry."
43032 msgstr ""
43033
43034 #. type: =head1
43035 #: ../tools/virt-win-reg.pl:556
43036 msgid "SUPPORTED SYSTEMS"
43037 msgstr ""
43038
43039 #. type: textblock
43040 #: ../tools/virt-win-reg.pl:558
43041 msgid ""
43042 "The program currently supports Windows NT-derived guests starting with "
43043 "Windows XP through to at least Windows 7."
43044 msgstr ""
43045
43046 #. type: textblock
43047 #: ../tools/virt-win-reg.pl:561
43048 msgid "The following Registry keys are supported:"
43049 msgstr ""
43050
43051 #. type: =item
43052 #: ../tools/virt-win-reg.pl:565
43053 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43054 msgstr ""
43055
43056 #. type: =item
43057 #: ../tools/virt-win-reg.pl:567
43058 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43059 msgstr ""
43060
43061 #. type: =item
43062 #: ../tools/virt-win-reg.pl:569
43063 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43064 msgstr ""
43065
43066 #. type: =item
43067 #: ../tools/virt-win-reg.pl:571
43068 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43069 msgstr ""
43070
43071 #. type: =item
43072 #: ../tools/virt-win-reg.pl:573
43073 msgid "C<HKEY_USERS\\.DEFAULT>"
43074 msgstr ""
43075
43076 #. type: =item
43077 #: ../tools/virt-win-reg.pl:575
43078 msgid "C<HKEY_USERS\\I<SID>>"
43079 msgstr ""
43080
43081 #. type: textblock
43082 #: ../tools/virt-win-reg.pl:577
43083 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43084 msgstr ""
43085
43086 #. type: =item
43087 #: ../tools/virt-win-reg.pl:579
43088 msgid "C<HKEY_USERS\\I<username>>"
43089 msgstr ""
43090
43091 #. type: textblock
43092 #: ../tools/virt-win-reg.pl:581
43093 msgid ""
43094 "where I<username> is a local user name (this is a libguestfs extension)."
43095 msgstr ""
43096
43097 #. type: textblock
43098 #: ../tools/virt-win-reg.pl:585
43099 msgid ""
43100 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43101 "C<HKEY_USERS>."
43102 msgstr ""
43103
43104 #. type: textblock
43105 #: ../tools/virt-win-reg.pl:588
43106 msgid ""
43107 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43108 "supported (there is no \"current user\")."
43109 msgstr ""
43110
43111 #. type: =head1
43112 #: ../tools/virt-win-reg.pl:591
43113 msgid "ENCODING"
43114 msgstr ""
43115
43116 #. type: textblock
43117 #: ../tools/virt-win-reg.pl:593
43118 msgid ""
43119 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43120 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43121 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43122 "Windows-style line endings, you may need to reencode the whole file before "
43123 "or after processing."
43124 msgstr ""
43125
43126 #. type: textblock
43127 #: ../tools/virt-win-reg.pl:599
43128 msgid ""
43129 "To reencode a file from Windows format to Linux (before processing it with "
43130 "the I<--merge> option), you would do something like this:"
43131 msgstr ""
43132
43133 #. type: verbatim
43134 #: ../tools/virt-win-reg.pl:602
43135 #, no-wrap
43136 msgid ""
43137 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43138 "\n"
43139 msgstr ""
43140
43141 #. type: textblock
43142 #: ../tools/virt-win-reg.pl:604
43143 msgid ""
43144 "To go in the opposite direction, after exporting and before sending the file "
43145 "to a Windows user, do something like this:"
43146 msgstr ""
43147
43148 #. type: verbatim
43149 #: ../tools/virt-win-reg.pl:607
43150 #, no-wrap
43151 msgid ""
43152 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43153 "\n"
43154 msgstr ""
43155
43156 #. type: textblock
43157 #: ../tools/virt-win-reg.pl:609
43158 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43159 msgstr ""
43160
43161 #. type: textblock
43162 #: ../tools/virt-win-reg.pl:611
43163 msgid ""
43164 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43165 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43166 "style (CRLF) line endings, like this:"
43167 msgstr ""
43168
43169 #. type: verbatim
43170 #: ../tools/virt-win-reg.pl:615
43171 #, no-wrap
43172 msgid ""
43173 " $ file software.reg\n"
43174 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43175 " with CRLF line terminators\n"
43176 "\n"
43177 msgstr ""
43178
43179 #. type: textblock
43180 #: ../tools/virt-win-reg.pl:619
43181 msgid "This file would need conversion before you could I<--merge> it."
43182 msgstr ""
43183
43184 #. type: =head1
43185 #: ../tools/virt-win-reg.pl:621
43186 msgid "CurrentControlSet etc."
43187 msgstr ""
43188
43189 #. type: textblock
43190 #: ../tools/virt-win-reg.pl:623
43191 msgid ""
43192 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43193 "Registry at the level of the hive file, and therefore you cannot modify "
43194 "these."
43195 msgstr ""
43196
43197 #. type: textblock
43198 #: ../tools/virt-win-reg.pl:627
43199 msgid ""
43200 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43201 "circumstances it might refer to another control set.  The way to find out is "
43202 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43203 msgstr ""
43204
43205 #. type: verbatim
43206 #: ../tools/virt-win-reg.pl:631
43207 #, no-wrap
43208 msgid ""
43209 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43210 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43211 " \"Current\"=dword:00000001\n"
43212 " \"Default\"=dword:00000001\n"
43213 " \"Failed\"=dword:00000000\n"
43214 " \"LastKnownGood\"=dword:00000002\n"
43215 "\n"
43216 msgstr ""
43217
43218 #. type: textblock
43219 #: ../tools/virt-win-reg.pl:638
43220 msgid "\"Current\" is the one which Windows will choose when it boots."
43221 msgstr ""
43222
43223 #. type: textblock
43224 #: ../tools/virt-win-reg.pl:640
43225 msgid ""
43226 "Similarly, other C<Current...> keys in the path may need to be replaced."
43227 msgstr ""
43228
43229 #. type: =head1
43230 #: ../tools/virt-win-reg.pl:643
43231 msgid "DELETING REGISTRY KEYS AND VALUES"
43232 msgstr ""
43233
43234 #. type: textblock
43235 #: ../tools/virt-win-reg.pl:645
43236 msgid "To delete a whole registry key, use the syntax:"
43237 msgstr ""
43238
43239 #. type: verbatim
43240 #: ../tools/virt-win-reg.pl:647
43241 #, no-wrap
43242 msgid ""
43243 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43244 "\n"
43245 msgstr ""
43246
43247 #. type: textblock
43248 #: ../tools/virt-win-reg.pl:649
43249 msgid "To delete a single value within a key, use the syntax:"
43250 msgstr ""
43251
43252 #. type: verbatim
43253 #: ../tools/virt-win-reg.pl:651
43254 #, no-wrap
43255 msgid ""
43256 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43257 " \"Value\"=-\n"
43258 "\n"
43259 msgstr ""
43260
43261 #. type: =head1
43262 #: ../tools/virt-win-reg.pl:654
43263 msgid "WINDOWS TIPS"
43264 msgstr ""
43265
43266 #. type: textblock
43267 #: ../tools/virt-win-reg.pl:656
43268 msgid ""
43269 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43270 "be shut off, else you will get disk corruption."
43271 msgstr ""
43272
43273 #. type: =head2
43274 #: ../tools/virt-win-reg.pl:659
43275 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43276 msgstr ""
43277
43278 #. type: textblock
43279 #: ../tools/virt-win-reg.pl:661
43280 msgid ""
43281 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43282 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43283 "is uploaded into C<C:\\>:"
43284 msgstr ""
43285
43286 #. type: verbatim
43287 #: ../tools/virt-win-reg.pl:665
43288 #, no-wrap
43289 msgid ""
43290 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43291 "\n"
43292 msgstr ""
43293
43294 #. type: textblock
43295 #: ../tools/virt-win-reg.pl:667
43296 msgid "Prepare a regedit file containing the registry change:"
43297 msgstr ""
43298
43299 #. type: verbatim
43300 #: ../tools/virt-win-reg.pl:669
43301 #, no-wrap
43302 msgid ""
43303 " cat > test.reg <<'EOF'\n"
43304 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43305 " \"Test\"=\"c:\\\\test.bat\"\n"
43306 " EOF\n"
43307 "\n"
43308 msgstr ""
43309
43310 #. type: textblock
43311 #: ../tools/virt-win-reg.pl:674
43312 msgid ""
43313 "In this example we use the key C<RunOnce> which means that the script will "
43314 "run precisely once when the first user logs in.  If you want it to run every "
43315 "time a user logs in, replace C<RunOnce> with C<Run>."
43316 msgstr ""
43317
43318 #. type: textblock
43319 #: ../tools/virt-win-reg.pl:678
43320 msgid "Now update the registry:"
43321 msgstr ""
43322
43323 #. type: verbatim
43324 #: ../tools/virt-win-reg.pl:680
43325 #, no-wrap
43326 msgid ""
43327 " virt-win-reg --merge WindowsGuest test.reg\n"
43328 "\n"
43329 msgstr ""
43330
43331 #. type: =head2
43332 #: ../tools/virt-win-reg.pl:682
43333 msgid "INSTALLING A SERVICE"
43334 msgstr ""
43335
43336 #. type: textblock
43337 #: ../tools/virt-win-reg.pl:684
43338 msgid ""
43339 "This section assumes you are familiar with Windows services, and you either "
43340 "have a program which handles the Windows Service Control Protocol directly "
43341 "or you want to run any program using a service wrapper like SrvAny or the "
43342 "free RHSrvAny."
43343 msgstr ""
43344
43345 #. type: textblock
43346 #: ../tools/virt-win-reg.pl:689
43347 msgid ""
43348 "First upload the program and optionally the service wrapper.  In this case "
43349 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43350 msgstr ""
43351
43352 #. type: verbatim
43353 #: ../tools/virt-win-reg.pl:693
43354 #, no-wrap
43355 msgid ""
43356 " guestfish -i -d WindowsGuest <<EOF\n"
43357 "   upload rhsrvany.exe /rhsrvany.exe\n"
43358 "   upload test.exe /test.exe\n"
43359 " EOF\n"
43360 "\n"
43361 msgstr ""
43362
43363 #. type: textblock
43364 #: ../tools/virt-win-reg.pl:698
43365 msgid ""
43366 "Prepare a regedit file containing the registry changes.  In this example, "
43367 "the first registry change is needed for the service itself or the service "
43368 "wrapper (if used).  The second registry change is only needed because I am "
43369 "using the RHSrvAny service wrapper."
43370 msgstr ""
43371
43372 #. type: verbatim
43373 #: ../tools/virt-win-reg.pl:703
43374 #, no-wrap
43375 msgid ""
43376 " cat > service.reg <<'EOF'\n"
43377 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43378 " \"Type\"=dword:00000010\n"
43379 " \"Start\"=dword:00000002\n"
43380 " \"ErrorControl\"=dword:00000001\n"
43381 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43382 " \"DisplayName\"=\"RHSrvAny\"\n"
43383 " \"ObjectName\"=\"NetworkService\"\n"
43384 " \n"
43385 msgstr ""
43386
43387 #. type: verbatim
43388 #: ../tools/virt-win-reg.pl:712
43389 #, no-wrap
43390 msgid ""
43391 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43392 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43393 " \"PWD\"=\"c:\\\\Temp\"\n"
43394 " EOF\n"
43395 "\n"
43396 msgstr ""
43397
43398 #. type: textblock
43399 #: ../tools/virt-win-reg.pl:723
43400 msgid ""
43401 "For use of C<ControlSet001> see the section above in this manual page.  You "
43402 "may need to adjust this according to the control set that is in use by the "
43403 "guest."
43404 msgstr ""
43405
43406 #. type: textblock
43407 #: ../tools/virt-win-reg.pl:729
43408 msgid ""
43409 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43410 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43411 "privileged account."
43412 msgstr ""
43413
43414 #. type: textblock
43415 #: ../tools/virt-win-reg.pl:735
43416 msgid ""
43417 "For the meaning of the magic numbers, see this Microsoft KB article: "
43418 "L<http://support.microsoft.com/kb/103000>."
43419 msgstr ""
43420
43421 #. type: textblock
43422 #: ../tools/virt-win-reg.pl:740
43423 msgid "Update the registry:"
43424 msgstr ""
43425
43426 #. type: verbatim
43427 #: ../tools/virt-win-reg.pl:742
43428 #, no-wrap
43429 msgid ""
43430 " virt-win-reg --merge WindowsGuest service.reg\n"
43431 "\n"
43432 msgstr ""
43433
43434 #. type: textblock
43435 #: ../tools/virt-win-reg.pl:746
43436 msgid ""
43437 "Be careful when passing parameters containing C<\\> (backslash) in the "
43438 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43439 "(but not both) to protect them from the shell."
43440 msgstr ""
43441
43442 #. type: textblock
43443 #: ../tools/virt-win-reg.pl:750
43444 msgid "Paths and value names are case-insensitive."
43445 msgstr ""
43446
43447 #. type: textblock
43448 #: ../tools/virt-win-reg.pl:759
43449 msgid ""
43450 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43451 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43452 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43453 msgstr ""
43454
43455 #. type: verbatim
43456 #: ../tools/virt-win-reg.pl:777
43457 #, no-wrap
43458 msgid ""
43459 " export LIBGUESTFS_DEBUG=1\n"
43460 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43461 "\n"
43462 msgstr ""
43463
43464 #. type: textblock
43465 #: ../tools/virt-win-reg.pl:780
43466 msgid ""
43467 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43468 "redhat.com/>"
43469 msgstr ""