Version 1.13.24.
[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-10-24 17:16+0200\n"
13 "PO-Revision-Date: 2011-10-19 15:46+0000\n"
14 "Last-Translator: rjones <rjones@redhat.com>\n"
15 "Language-Team: Japanese <trans-ja@lists.fedoraproject.org>\n"
16 "Language: ja\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=1; plural=0\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "名前"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr ""
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr ""
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr ""
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr ""
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr ""
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
308 msgid "B<-a> file"
309 msgstr ""
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr ""
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
340 msgid "B<-c> URI"
341 msgstr ""
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr ""
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
378 msgid "B<-d> guest"
379 msgstr ""
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr ""
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr ""
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
415 msgid "B<--format>"
416 msgstr ""
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
438 msgid "For example:"
439 msgstr ""
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:470
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr ""
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:472
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr ""
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr ""
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr ""
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:540
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr ""
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:542
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr ""
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:544
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr ""
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr ""
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:261
764 msgid ""
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
766 "information.]"
767 msgstr ""
768
769 #. type: =head2
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:266
776 msgid ""
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:269
783 msgid ""
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
786 "multiple of 2048 sectors."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:273
791 msgid ""
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
794 msgstr ""
795
796 #. type: =head2
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
799 msgstr ""
800
801 #. type: textblock
802 #: ../align/virt-alignment-scan.pod:278
803 msgid ""
804 "L<virt-resize(1)> can change the alignment of the partitions of some "
805 "guests.  Currently it can fully align all the partitions of all Windows "
806 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
807 "it can align the second and subsequent partitions, so the majority of OS "
808 "accesses except at boot will be aligned."
809 msgstr ""
810
811 #. type: textblock
812 #: ../align/virt-alignment-scan.pod:284
813 msgid ""
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems.  If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
817 msgstr ""
818
819 #. type: textblock
820 #: ../align/virt-alignment-scan.pod:288
821 msgid ""
822 "For older versions of Windows, the following NetApp document contains useful "
823 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
824 msgstr ""
825
826 #. type: textblock
827 #: ../align/virt-alignment-scan.pod:291
828 msgid ""
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
831 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
832 "contains an example."
833 msgstr ""
834
835 #. type: =head1
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:191
837 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:655
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:744
844 msgid "SHELL QUOTING"
845 msgstr ""
846
847 #. type: textblock
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:193
849 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:657
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:752
856 msgid ""
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space.  You may need to quote or "
859 "escape these characters on the command line.  See the shell manual page L<sh"
860 "(1)> for details."
861 msgstr ""
862
863 #. type: =head1
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:198
865 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:662 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
871 msgid "EXIT STATUS"
872 msgstr ""
873
874 #. type: textblock
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
877 msgstr ""
878
879 #. type: =item
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
883 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
884 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
885 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
886 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
887 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
888 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
889 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
890 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
891 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
892 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
893 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
894 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
895 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
896 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
897 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
898 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
899 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
900 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
901 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
902 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
903 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
904 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
905 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
906 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
907 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
908 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
909 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
910 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
911 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
912 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
913 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
914 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:338
915 #: ../resize/virt-resize.pod:342 ../resize/virt-resize.pod:351
916 #: ../resize/virt-resize.pod:357 ../sparsify/virt-sparsify.pod:32
917 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
918 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
919 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
920 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
921 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
922 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
923 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
924 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
925 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
926 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
927 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
928 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
929 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
930 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
931 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
932 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
933 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
934 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
935 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
936 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
937 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
938 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
939 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
940 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
941 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
942 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
943 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
944 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
945 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
946 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
947 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
948 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
949 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
950 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
951 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
952 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
953 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
954 #: ../tools/virt-win-reg.pl:733
955 msgid "*"
956 msgstr ""
957
958 #. type: textblock
959 #: ../align/virt-alignment-scan.pod:311
960 msgid "0"
961 msgstr ""
962
963 #. type: textblock
964 #: ../align/virt-alignment-scan.pod:313
965 msgid ""
966 "successful exit, all partitions are aligned E<ge> 64K for best performance"
967 msgstr ""
968
969 #. type: textblock
970 #: ../align/virt-alignment-scan.pod:317
971 msgid "1"
972 msgstr ""
973
974 #. type: textblock
975 #: ../align/virt-alignment-scan.pod:319
976 msgid "an error scanning the disk image or guest"
977 msgstr ""
978
979 #. type: textblock
980 #: ../align/virt-alignment-scan.pod:323
981 msgid "2"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:325
986 msgid ""
987 "successful exit, some partitions have alignment E<lt> 64K which can result "
988 "in poor performance on high end network storage"
989 msgstr ""
990
991 #. type: textblock
992 #: ../align/virt-alignment-scan.pod:330
993 msgid "3"
994 msgstr ""
995
996 #. type: textblock
997 #: ../align/virt-alignment-scan.pod:332
998 msgid ""
999 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1000 "poor performance on most hypervisors"
1001 msgstr ""
1002
1003 #. type: =head1
1004 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:203
1005 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1006 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1007 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1008 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1009 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1010 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1011 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1012 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1013 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1014 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1015 #: ../resize/virt-resize.pod:667 ../ruby/examples/guestfs-ruby.pod:36
1016 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1017 #: ../test-tool/libguestfs-test-tool.pod:100
1018 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1019 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1020 #: ../tools/virt-win-reg.pl:757
1021 msgid "SEE ALSO"
1022 msgstr ""
1023
1024 #. type: textblock
1025 #: ../align/virt-alignment-scan.pod:339
1026 msgid ""
1027 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1028 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1029 msgstr ""
1030
1031 #. type: =head1
1032 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:212
1033 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1034 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1035 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1036 #: ../resize/virt-resize.pod:690 ../sparsify/virt-sparsify.pod:264
1037 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1038 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1039 #: ../tools/virt-win-reg.pl:783
1040 msgid "AUTHOR"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:214
1045 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1046 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1047 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1048 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:692
1049 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1050 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1051 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1052 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1053 msgstr ""
1054
1055 #. type: =head1
1056 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:216
1057 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1058 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1059 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1060 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1061 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1062 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1063 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1064 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1065 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1066 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1067 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:52
1068 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1069 #: ../test-tool/libguestfs-test-tool.pod:110
1070 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1071 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1072 #: ../tools/virt-win-reg.pl:787
1073 msgid "COPYRIGHT"
1074 msgstr ""
1075
1076 #. type: textblock
1077 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1078 #: ../sparsify/virt-sparsify.pod:270
1079 msgid "Copyright (C) 2011 Red Hat Inc."
1080 msgstr ""
1081
1082 #. type: textblock
1083 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:220
1084 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1085 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1086 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1087 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1088 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1089 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1090 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:698
1091 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1092 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1093 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1094 #: ../tools/virt-win-reg.pl:791
1095 msgid ""
1096 "This program is free software; you can redistribute it and/or modify it "
1097 "under the terms of the GNU General Public License as published by the Free "
1098 "Software Foundation; either version 2 of the License, or (at your option) "
1099 "any later version."
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:225
1104 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1105 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1106 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1107 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1108 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1109 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1110 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:703
1111 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1112 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1113 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1114 #: ../tools/virt-win-reg.pl:796
1115 msgid ""
1116 "This program is distributed in the hope that it will be useful, but WITHOUT "
1117 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1118 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1119 "more details."
1120 msgstr ""
1121
1122 #. type: textblock
1123 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:230
1124 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1125 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1126 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1127 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1128 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1129 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1130 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:708
1131 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1132 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1133 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1134 #: ../tools/virt-win-reg.pl:801
1135 msgid ""
1136 "You should have received a copy of the GNU General Public License along with "
1137 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1138 "Ave, Cambridge, MA 02139, USA."
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../cat/virt-cat.pod:5
1143 msgid "virt-cat - Display files in a virtual machine"
1144 msgstr ""
1145
1146 #. type: verbatim
1147 #: ../cat/virt-cat.pod:9
1148 #, no-wrap
1149 msgid ""
1150 " virt-cat [--options] -d domname file [file ...]\n"
1151 "\n"
1152 msgstr ""
1153
1154 #. type: verbatim
1155 #: ../cat/virt-cat.pod:11
1156 #, no-wrap
1157 msgid ""
1158 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1159 "\n"
1160 msgstr ""
1161
1162 #. type: textblock
1163 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1164 #: ../inspector/virt-inspector.pod:13
1165 msgid "Old-style:"
1166 msgstr ""
1167
1168 #. type: verbatim
1169 #: ../cat/virt-cat.pod:15
1170 #, no-wrap
1171 msgid ""
1172 " virt-cat domname file\n"
1173 "\n"
1174 msgstr ""
1175
1176 #. type: verbatim
1177 #: ../cat/virt-cat.pod:17
1178 #, no-wrap
1179 msgid ""
1180 " virt-cat disk.img file\n"
1181 "\n"
1182 msgstr ""
1183
1184 #. type: textblock
1185 #: ../cat/virt-cat.pod:21
1186 msgid ""
1187 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1188 "C<file> exists in the named virtual machine (or disk image)."
1189 msgstr ""
1190
1191 #. type: textblock
1192 #: ../cat/virt-cat.pod:24
1193 msgid ""
1194 "Multiple filenames can be given, in which case they are concatenated "
1195 "together.  Each filename must be a full path, starting at the root directory "
1196 "(starting with '/')."
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-cat.pod:28
1201 msgid ""
1202 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1203 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1204 "(see L</USING GUESTFISH> below)."
1205 msgstr ""
1206
1207 #. type: =head1
1208 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1209 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1210 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1211 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1212 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1213 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1214 #: ../tools/virt-tar.pl:50
1215 msgid "EXAMPLES"
1216 msgstr ""
1217
1218 #. type: textblock
1219 #: ../cat/virt-cat.pod:34
1220 msgid ""
1221 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1222 msgstr ""
1223
1224 #. type: verbatim
1225 #: ../cat/virt-cat.pod:37
1226 #, no-wrap
1227 msgid ""
1228 " virt-cat -d mydomain /etc/fstab\n"
1229 "\n"
1230 msgstr ""
1231
1232 #. type: textblock
1233 #: ../cat/virt-cat.pod:39
1234 msgid "List syslog messages from a VM disk image file:"
1235 msgstr ""
1236
1237 #. type: verbatim
1238 #: ../cat/virt-cat.pod:41
1239 #, no-wrap
1240 msgid ""
1241 " virt-cat -a disk.img /var/log/messages | tail\n"
1242 "\n"
1243 msgstr ""
1244
1245 #. type: textblock
1246 #: ../cat/virt-cat.pod:43
1247 msgid "Find out what DHCP IP address a VM acquired:"
1248 msgstr ""
1249
1250 #. type: verbatim
1251 #: ../cat/virt-cat.pod:45
1252 #, no-wrap
1253 msgid ""
1254 " virt-cat -d mydomain /var/log/messages | \\\n"
1255 "   grep 'dhclient: bound to' | tail\n"
1256 "\n"
1257 msgstr ""
1258
1259 #. type: textblock
1260 #: ../cat/virt-cat.pod:48
1261 msgid "Find out what packages were recently installed:"
1262 msgstr ""
1263
1264 #. type: verbatim
1265 #: ../cat/virt-cat.pod:50
1266 #, no-wrap
1267 msgid ""
1268 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1269 "\n"
1270 msgstr ""
1271
1272 #. type: textblock
1273 #: ../cat/virt-cat.pod:52
1274 msgid "Find out who is logged on inside a virtual machine:"
1275 msgstr ""
1276
1277 #. type: verbatim
1278 #: ../cat/virt-cat.pod:54
1279 #, no-wrap
1280 msgid ""
1281 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1282 " who /tmp/utmp\n"
1283 "\n"
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-cat.pod:57
1288 msgid "or who was logged on:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-cat.pod:59
1293 #, no-wrap
1294 msgid ""
1295 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1296 " last -f /tmp/wtmp\n"
1297 "\n"
1298 msgstr ""
1299
1300 #. type: textblock
1301 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1302 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1303 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1304 msgid ""
1305 "Add I<file> which should be a disk image from a virtual machine.  If the "
1306 "virtual machine has multiple block devices, you must supply all of them with "
1307 "separate I<-a> options."
1308 msgstr ""
1309
1310 #. type: =item
1311 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1312 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1313 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1314 msgid "B<--echo-keys>"
1315 msgstr ""
1316
1317 #. type: textblock
1318 #: ../cat/virt-cat.pod:100
1319 msgid ""
1320 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1321 "so you cannot see what you are typing.  If you are not worried about Tempest "
1322 "attacks and there is no one else in the room you can specify this flag to "
1323 "see what you are typing."
1324 msgstr ""
1325
1326 #. type: verbatim
1327 #: ../cat/virt-cat.pod:116
1328 #, no-wrap
1329 msgid ""
1330 " virt-cat --format=raw -a disk.img file\n"
1331 "\n"
1332 msgstr ""
1333
1334 #. type: verbatim
1335 #: ../cat/virt-cat.pod:120
1336 #, no-wrap
1337 msgid ""
1338 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1339 "\n"
1340 msgstr ""
1341
1342 #. type: =item
1343 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1344 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1345 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1346 msgid "B<--keys-from-stdin>"
1347 msgstr ""
1348
1349 #. type: textblock
1350 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1351 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1352 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1353 msgid ""
1354 "Read key or passphrase parameters from stdin.  The default is to try to read "
1355 "passphrases from the user by opening C</dev/tty>."
1356 msgstr ""
1357
1358 #. type: =head1
1359 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1360 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1361 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-cat.pod:154
1366 msgid "Previous versions of virt-cat allowed you to write either:"
1367 msgstr ""
1368
1369 #. type: verbatim
1370 #: ../cat/virt-cat.pod:156
1371 #, no-wrap
1372 msgid ""
1373 " virt-cat disk.img [disk.img ...] file\n"
1374 "\n"
1375 msgstr ""
1376
1377 #. type: textblock
1378 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1379 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1380 msgid "or"
1381 msgstr ""
1382
1383 #. type: verbatim
1384 #: ../cat/virt-cat.pod:160
1385 #, no-wrap
1386 msgid ""
1387 " virt-cat guestname file\n"
1388 "\n"
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1393 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1394 msgid ""
1395 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1396 "the confusing case where a disk image might have the same name as a guest."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1401 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1402 msgid "For compatibility the old style is still supported."
1403 msgstr ""
1404
1405 #. type: =head1
1406 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1407 msgid "USING GUESTFISH"
1408 msgstr ""
1409
1410 #. type: textblock
1411 #: ../cat/virt-cat.pod:170
1412 msgid ""
1413 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1414 "C<virt-cat> doesn't work."
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-cat.pod:173
1419 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1420 msgstr ""
1421
1422 #. type: verbatim
1423 #: ../cat/virt-cat.pod:175
1424 #, no-wrap
1425 msgid ""
1426 " guestfish --ro -i -d domname download file -\n"
1427 "\n"
1428 msgstr ""
1429
1430 #. type: textblock
1431 #: ../cat/virt-cat.pod:177
1432 msgid ""
1433 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1434 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1435 msgstr ""
1436
1437 #. type: textblock
1438 #: ../cat/virt-cat.pod:181
1439 msgid ""
1440 "The command above uses libguestfs's guest inspection feature and so does not "
1441 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1442 "disk images that don't contain guests.  To display a file from a disk image "
1443 "directly, use:"
1444 msgstr ""
1445
1446 #. type: verbatim
1447 #: ../cat/virt-cat.pod:186
1448 #, no-wrap
1449 msgid ""
1450 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1451 "\n"
1452 msgstr ""
1453
1454 #. type: textblock
1455 #: ../cat/virt-cat.pod:188
1456 msgid ""
1457 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1458 "the disk image, and C<file> is the full path to the file."
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1463 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1464 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1465 #: ../resize/virt-resize.pod:664 ../sparsify/virt-sparsify.pod:229
1466 msgid ""
1467 "This program returns 0 if successful, or non-zero if there was an error."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../cat/virt-cat.pod:205
1472 msgid ""
1473 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1474 "tar-out(1)>, L<http://libguestfs.org/>."
1475 msgstr ""
1476
1477 #. type: textblock
1478 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1479 #: ../resize/virt-resize.pod:696 ../tools/virt-make-fs.pl:588
1480 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1481 msgstr ""
1482
1483 #. type: textblock
1484 #: ../cat/virt-filesystems.pod:5
1485 msgid ""
1486 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1487 "virtual machine or disk image"
1488 msgstr ""
1489
1490 #. type: verbatim
1491 #: ../cat/virt-filesystems.pod:9
1492 #, no-wrap
1493 msgid ""
1494 " virt-filesystems [--options] -d domname\n"
1495 "\n"
1496 msgstr ""
1497
1498 #. type: verbatim
1499 #: ../cat/virt-filesystems.pod:11
1500 #, no-wrap
1501 msgid ""
1502 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1503 "\n"
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../cat/virt-filesystems.pod:15
1508 msgid ""
1509 "This tool allows you to discover filesystems, partitions, logical volumes, "
1510 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1511 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-filesystems.pod:20
1516 msgid ""
1517 "One use for this tool is from shell scripts to iterate over all filesystems "
1518 "from a disk image:"
1519 msgstr ""
1520
1521 #. type: verbatim
1522 #: ../cat/virt-filesystems.pod:23
1523 #, no-wrap
1524 msgid ""
1525 " for fs in $(virt-filesystems -a disk.img); do\n"
1526 "   # ...\n"
1527 " done\n"
1528 "\n"
1529 msgstr ""
1530
1531 #. type: textblock
1532 #: ../cat/virt-filesystems.pod:27
1533 msgid ""
1534 "Another use is to list partitions before using another tool to modify those "
1535 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1536 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1537 msgstr ""
1538
1539 #. type: textblock
1540 #: ../cat/virt-filesystems.pod:32
1541 msgid ""
1542 "Various command line options control what this program displays.  You need "
1543 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1544 "guest respectively.  If you just specify that then the program shows "
1545 "filesystems found, one per line, like this:"
1546 msgstr ""
1547
1548 #. type: verbatim
1549 #: ../cat/virt-filesystems.pod:37
1550 #, no-wrap
1551 msgid ""
1552 " $ virt-filesystems -a disk.img\n"
1553 " /dev/sda1\n"
1554 " /dev/vg_guest/lv_root\n"
1555 "\n"
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:41
1560 msgid ""
1561 "If you add I<-l> or I<--long> then the output includes extra information:"
1562 msgstr ""
1563
1564 #. type: verbatim
1565 #: ../cat/virt-filesystems.pod:44
1566 #, no-wrap
1567 msgid ""
1568 " $ virt-filesystems -a disk.img -l\n"
1569 " Name                   Type         VFS   Label  Size\n"
1570 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1571 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1572 "\n"
1573 msgstr ""
1574
1575 #. type: textblock
1576 #: ../cat/virt-filesystems.pod:49
1577 msgid ""
1578 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1579 "shown as well:"
1580 msgstr ""
1581
1582 #. type: verbatim
1583 #: ../cat/virt-filesystems.pod:52
1584 #, no-wrap
1585 msgid ""
1586 " $ virt-filesystems -a disk.img --extra\n"
1587 " /dev/sda1\n"
1588 " /dev/vg_guest/lv_root\n"
1589 " /dev/vg_guest/lv_swap\n"
1590 " /dev/vg_guest/lv_data\n"
1591 "\n"
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-filesystems.pod:58
1596 msgid ""
1597 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1598 msgstr ""
1599
1600 #. type: verbatim
1601 #: ../cat/virt-filesystems.pod:60
1602 #, no-wrap
1603 msgid ""
1604 " $ virt-filesystems -a disk.img --partitions\n"
1605 " /dev/sda1\n"
1606 " /dev/sda2\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-filesystems.pod:64
1612 msgid ""
1613 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1614 "volumes>, I<--block-devices> to list those items."
1615 msgstr ""
1616
1617 #. type: textblock
1618 #: ../cat/virt-filesystems.pod:67
1619 msgid ""
1620 "You can use these options in combination as well (if you want a combination "
1621 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1622 "items fall into several categories (eg. C</dev/sda1> might be both a "
1623 "partition and a filesystem).  These items are listed several times.  To get "
1624 "a list which includes absolutely everything that virt-filesystems knows "
1625 "about, use the I<--all> option."
1626 msgstr ""
1627
1628 #. type: textblock
1629 #: ../cat/virt-filesystems.pod:74
1630 msgid ""
1631 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1632 "uuid> option to display device and filesystem UUIDs in the long output."
1633 msgstr ""
1634
1635 #. type: textblock
1636 #: ../cat/virt-filesystems.pod:78
1637 msgid ""
1638 "I<--all --long --uuid> is a useful combination to display all possible "
1639 "information about everything."
1640 msgstr ""
1641
1642 #. type: verbatim
1643 #: ../cat/virt-filesystems.pod:81
1644 #, no-wrap
1645 msgid ""
1646 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1647 " Name      Type       VFS  Label           Size Parent   UUID\n"
1648 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1649 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1650 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1651 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1652 " /dev/sda  device     -    -               20G  -        -\n"
1653 "\n"
1654 msgstr ""
1655
1656 #. type: textblock
1657 #: ../cat/virt-filesystems.pod:89
1658 msgid ""
1659 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1660 msgstr ""
1661
1662 #. type: =item
1663 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1664 msgid "B<--all>"
1665 msgstr ""
1666
1667 #. type: textblock
1668 #: ../cat/virt-filesystems.pod:112
1669 msgid ""
1670 "Display everything.  This is currently the same as specifying these options: "
1671 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1672 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1673 "added to this list in future)."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:117
1678 msgid "See also I<--long>."
1679 msgstr ""
1680
1681 #. type: =item
1682 #: ../cat/virt-filesystems.pod:119
1683 msgid "B<--blkdevs>"
1684 msgstr ""
1685
1686 #. type: =item
1687 #: ../cat/virt-filesystems.pod:121
1688 msgid "B<--block-devices>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../cat/virt-filesystems.pod:123
1693 msgid "Display block devices."
1694 msgstr ""
1695
1696 #. type: =item
1697 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1698 msgid "B<--csv>"
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1703 msgid ""
1704 "Write out the results in CSV format (comma-separated values).  This format "
1705 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1706 "ABOUT CSV FORMAT> below."
1707 msgstr ""
1708
1709 #. type: textblock
1710 #: ../cat/virt-filesystems.pod:150
1711 msgid ""
1712 "When prompting for keys and passphrases, virt-filesystems normally turns "
1713 "echoing off so you cannot see what you are typing.  If you are not worried "
1714 "about Tempest attacks and there is no one else in the room you can specify "
1715 "this flag to see what you are typing."
1716 msgstr ""
1717
1718 #. type: =item
1719 #: ../cat/virt-filesystems.pod:155
1720 msgid "B<--extra>"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-filesystems.pod:157
1725 msgid ""
1726 "This causes filesystems that are not ordinary, mountable filesystems to be "
1727 "displayed.  This category includes swapspace, and filesystems that are empty "
1728 "or contain unknown data."
1729 msgstr ""
1730
1731 #. type: textblock
1732 #: ../cat/virt-filesystems.pod:161
1733 msgid "This option implies I<--filesystems>."
1734 msgstr ""
1735
1736 #. type: =item
1737 #: ../cat/virt-filesystems.pod:163
1738 msgid "B<--filesystems>"
1739 msgstr ""
1740
1741 #. type: textblock
1742 #: ../cat/virt-filesystems.pod:165
1743 msgid ""
1744 "Display mountable filesystems.  If no display option was selected then this "
1745 "option is implied."
1746 msgstr ""
1747
1748 #. type: textblock
1749 #: ../cat/virt-filesystems.pod:168
1750 msgid "With I<--extra>, non-mountable filesystems are shown too."
1751 msgstr ""
1752
1753 #. type: verbatim
1754 #: ../cat/virt-filesystems.pod:181
1755 #, no-wrap
1756 msgid ""
1757 " virt-filesystems --format=raw -a disk.img\n"
1758 "\n"
1759 msgstr ""
1760
1761 #. type: verbatim
1762 #: ../cat/virt-filesystems.pod:185
1763 #, no-wrap
1764 msgid ""
1765 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1766 "\n"
1767 msgstr ""
1768
1769 #. type: =item
1770 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1771 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1772 #: ../tools/virt-list-partitions.pl:109
1773 msgid "B<-h>"
1774 msgstr ""
1775
1776 #. type: =item
1777 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1778 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1779 msgid "B<--human-readable>"
1780 msgstr ""
1781
1782 #. type: textblock
1783 #: ../cat/virt-filesystems.pod:198
1784 msgid "In I<--long> mode, display sizes in human-readable format."
1785 msgstr ""
1786
1787 #. type: =item
1788 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1789 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1790 msgid "B<-l>"
1791 msgstr ""
1792
1793 #. type: =item
1794 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1795 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1796 msgid "B<--long>"
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-filesystems.pod:209
1801 msgid "Display extra columns of data (\"long format\")."
1802 msgstr ""
1803
1804 #. type: textblock
1805 #: ../cat/virt-filesystems.pod:211
1806 msgid "A title row is added unless you also specify I<--no-title>."
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-filesystems.pod:213
1811 msgid ""
1812 "The extra columns displayed depend on what output you select, and the "
1813 "ordering of columns may change in future versions.  Use the title row, I<--"
1814 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1815 "programs."
1816 msgstr ""
1817
1818 #. type: textblock
1819 #: ../cat/virt-filesystems.pod:218
1820 msgid ""
1821 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1822 "default is to show raw numbers of I<bytes>."
1823 msgstr ""
1824
1825 #. type: textblock
1826 #: ../cat/virt-filesystems.pod:221
1827 msgid "Use I<--uuid> to display UUIDs too."
1828 msgstr ""
1829
1830 #. type: =item
1831 #: ../cat/virt-filesystems.pod:223
1832 msgid "B<--lvs>"
1833 msgstr ""
1834
1835 #. type: =item
1836 #: ../cat/virt-filesystems.pod:225
1837 msgid "B<--logvols>"
1838 msgstr ""
1839
1840 #. type: =item
1841 #: ../cat/virt-filesystems.pod:227
1842 msgid "B<--logical-volumes>"
1843 msgstr ""
1844
1845 #. type: textblock
1846 #: ../cat/virt-filesystems.pod:229
1847 msgid ""
1848 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1849 "of whether the LVs contain filesystems."
1850 msgstr ""
1851
1852 #. type: =item
1853 #: ../cat/virt-filesystems.pod:232
1854 msgid "B<--no-title>"
1855 msgstr ""
1856
1857 #. type: textblock
1858 #: ../cat/virt-filesystems.pod:234
1859 msgid "In I<--long> mode, don't add a title row."
1860 msgstr ""
1861
1862 #. type: textblock
1863 #: ../cat/virt-filesystems.pod:236
1864 msgid ""
1865 "Note that the order of the columns is not fixed, and may change in future "
1866 "versions of virt-filesystems, so using this option may give you unexpected "
1867 "surprises."
1868 msgstr ""
1869
1870 #. type: =item
1871 #: ../cat/virt-filesystems.pod:240
1872 msgid "B<--parts>"
1873 msgstr ""
1874
1875 #. type: =item
1876 #: ../cat/virt-filesystems.pod:242
1877 msgid "B<--partitions>"
1878 msgstr ""
1879
1880 #. type: textblock
1881 #: ../cat/virt-filesystems.pod:244
1882 msgid ""
1883 "Display partitions.  In this mode, these are displayed irrespective of "
1884 "whether the partitions contain filesystems."
1885 msgstr ""
1886
1887 #. type: =item
1888 #: ../cat/virt-filesystems.pod:247
1889 msgid "B<--pvs>"
1890 msgstr ""
1891
1892 #. type: =item
1893 #: ../cat/virt-filesystems.pod:249
1894 msgid "B<--physvols>"
1895 msgstr ""
1896
1897 #. type: =item
1898 #: ../cat/virt-filesystems.pod:251
1899 msgid "B<--physical-volumes>"
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-filesystems.pod:253
1904 msgid "Display LVM physical volumes."
1905 msgstr ""
1906
1907 #. type: =item
1908 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1909 msgid "B<--uuid>"
1910 msgstr ""
1911
1912 #. type: =item
1913 #: ../cat/virt-filesystems.pod:257
1914 msgid "B<--uuids>"
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-filesystems.pod:259
1919 msgid "In I<--long> mode, display UUIDs as well."
1920 msgstr ""
1921
1922 #. type: =item
1923 #: ../cat/virt-filesystems.pod:273
1924 msgid "B<--vgs>"
1925 msgstr ""
1926
1927 #. type: =item
1928 #: ../cat/virt-filesystems.pod:275
1929 msgid "B<--volgroups>"
1930 msgstr ""
1931
1932 #. type: =item
1933 #: ../cat/virt-filesystems.pod:277
1934 msgid "B<--volume-groups>"
1935 msgstr ""
1936
1937 #. type: textblock
1938 #: ../cat/virt-filesystems.pod:279
1939 msgid "Display LVM volume groups."
1940 msgstr ""
1941
1942 #. type: =head1
1943 #: ../cat/virt-filesystems.pod:287
1944 msgid "COLUMNS"
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../cat/virt-filesystems.pod:289
1949 msgid ""
1950 "Note that columns in the output are subject to reordering and change in "
1951 "future versions of this tool."
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:294
1956 msgid "B<Name>"
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../cat/virt-filesystems.pod:296
1961 msgid "The filesystem, partition, block device or LVM name."
1962 msgstr ""
1963
1964 #. type: textblock
1965 #: ../cat/virt-filesystems.pod:298
1966 msgid ""
1967 "For device and partition names these are displayed as canonical libguestfs "
1968 "names, so that for example C</dev/sda2> is the second partition on the first "
1969 "device."
1970 msgstr ""
1971
1972 #. type: textblock
1973 #: ../cat/virt-filesystems.pod:302
1974 msgid ""
1975 "If the I<--long> option is B<not> specified, then only the name column is "
1976 "shown in the output."
1977 msgstr ""
1978
1979 #. type: =item
1980 #: ../cat/virt-filesystems.pod:305
1981 msgid "B<Type>"
1982 msgstr ""
1983
1984 #. type: textblock
1985 #: ../cat/virt-filesystems.pod:307
1986 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1987 msgstr ""
1988
1989 #. type: =item
1990 #: ../cat/virt-filesystems.pod:309
1991 msgid "B<VFS>"
1992 msgstr ""
1993
1994 #. type: textblock
1995 #: ../cat/virt-filesystems.pod:311
1996 msgid ""
1997 "If there is a filesystem, then this column displays the filesystem type if "
1998 "one could be detected, eg. C<ext4>."
1999 msgstr ""
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:314
2003 msgid "B<Label>"
2004 msgstr ""
2005
2006 #. type: textblock
2007 #: ../cat/virt-filesystems.pod:316
2008 msgid ""
2009 "If the object has a label (used for identifying and mounting filesystems) "
2010 "then this column contains the label."
2011 msgstr ""
2012
2013 #. type: =item
2014 #: ../cat/virt-filesystems.pod:319
2015 msgid "B<Size>"
2016 msgstr ""
2017
2018 #. type: textblock
2019 #: ../cat/virt-filesystems.pod:321
2020 msgid ""
2021 "The size of the object in bytes.  If the I<--human> option is used then the "
2022 "size is displayed in a human-readable form."
2023 msgstr ""
2024
2025 #. type: =item
2026 #: ../cat/virt-filesystems.pod:324
2027 msgid "B<Parent>"
2028 msgstr ""
2029
2030 #. type: textblock
2031 #: ../cat/virt-filesystems.pod:326
2032 msgid ""
2033 "The parent column records the parent relationship between objects.  For "
2034 "example, if the object is a partition, then this column contains the name of "
2035 "the containing device.  If the object is a logical volume, then this column "
2036 "is the name of the volume group."
2037 msgstr ""
2038
2039 #. type: =item
2040 #: ../cat/virt-filesystems.pod:331
2041 msgid "B<UUID>"
2042 msgstr ""
2043
2044 #. type: textblock
2045 #: ../cat/virt-filesystems.pod:333
2046 msgid ""
2047 "If the object has a UUID (used for identifying and mounting filesystems and "
2048 "block devices) then this column contains the UUID as a string."
2049 msgstr ""
2050
2051 #. type: textblock
2052 #: ../cat/virt-filesystems.pod:337
2053 msgid "The UUID is only displayed if the I<--uuid> option is given."
2054 msgstr ""
2055
2056 #. type: =head1
2057 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2058 #: ../df/virt-df.pod:191
2059 msgid "NOTE ABOUT CSV FORMAT"
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2064 #: ../df/virt-df.pod:193
2065 msgid ""
2066 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2067 "should be easy to parse, but it is definitely not easy to parse."
2068 msgstr ""
2069
2070 #. type: textblock
2071 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2072 #: ../df/virt-df.pod:196
2073 msgid ""
2074 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2075 "reliably.  This example has two columns:"
2076 msgstr ""
2077
2078 #. type: verbatim
2079 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2080 #: ../df/virt-df.pod:199
2081 #, no-wrap
2082 msgid ""
2083 " \"foo,bar\",baz\n"
2084 "\n"
2085 msgstr ""
2086
2087 #. type: textblock
2088 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2089 #: ../df/virt-df.pod:201
2090 msgid ""
2091 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2092 "reliably.  This example has one row:"
2093 msgstr ""
2094
2095 #. type: verbatim
2096 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2097 #: ../df/virt-df.pod:204
2098 #, no-wrap
2099 msgid ""
2100 " \"foo\n"
2101 " bar\",baz\n"
2102 "\n"
2103 msgstr ""
2104
2105 #. type: textblock
2106 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2107 #: ../df/virt-df.pod:207
2108 msgid ""
2109 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2110 "packaged in major Linux distributions)."
2111 msgstr ""
2112
2113 #. type: textblock
2114 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2115 #: ../df/virt-df.pod:210
2116 msgid ""
2117 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2118 "or Python's built-in csv library)."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2123 #: ../df/virt-df.pod:213
2124 msgid "Most spreadsheets and databases can import CSV directly."
2125 msgstr ""
2126
2127 #. type: textblock
2128 #: ../cat/virt-filesystems.pod:379
2129 msgid ""
2130 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2131 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2132 "libguestfs.org/>."
2133 msgstr ""
2134
2135 #. type: textblock
2136 #: ../cat/virt-filesystems.pod:394 ../tools/virt-win-reg.pl:789
2137 msgid "Copyright (C) 2010 Red Hat Inc."
2138 msgstr ""
2139
2140 #. type: textblock
2141 #: ../cat/virt-ls.pod:5
2142 msgid "virt-ls - List files in a virtual machine"
2143 msgstr ""
2144
2145 #. type: verbatim
2146 #: ../cat/virt-ls.pod:9
2147 #, no-wrap
2148 msgid ""
2149 " virt-ls [--options] -d domname directory [directory ...]\n"
2150 "\n"
2151 msgstr ""
2152
2153 #. type: verbatim
2154 #: ../cat/virt-ls.pod:11
2155 #, no-wrap
2156 msgid ""
2157 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2158 "\n"
2159 msgstr ""
2160
2161 #. type: textblock
2162 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2163 msgid "Old style:"
2164 msgstr ""
2165
2166 #. type: verbatim
2167 #: ../cat/virt-ls.pod:15
2168 #, no-wrap
2169 msgid ""
2170 " virt-ls [--options] domname directory\n"
2171 "\n"
2172 msgstr ""
2173
2174 #. type: verbatim
2175 #: ../cat/virt-ls.pod:17
2176 #, no-wrap
2177 msgid ""
2178 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2179 "\n"
2180 msgstr ""
2181
2182 #. type: textblock
2183 #: ../cat/virt-ls.pod:21
2184 msgid ""
2185 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2186 "more from a virtual machine or disk image."
2187 msgstr ""
2188
2189 #. type: textblock
2190 #: ../cat/virt-ls.pod:24
2191 msgid ""
2192 "Multiple directory names can be given, in which case the output from each is "
2193 "concatenated."
2194 msgstr ""
2195
2196 #. type: textblock
2197 #: ../cat/virt-ls.pod:27
2198 msgid ""
2199 "To list directories from a libvirt guest use the I<-d> option to specify the "
2200 "name of the guest.  For a disk image, use the I<-a> option."
2201 msgstr ""
2202
2203 #. type: textblock
2204 #: ../cat/virt-ls.pod:31
2205 msgid ""
2206 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2207 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2208 "(3)> API."
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../cat/virt-ls.pod:37
2213 msgid "Get a list of all files and directories in a virtual machine:"
2214 msgstr ""
2215
2216 #. type: verbatim
2217 #: ../cat/virt-ls.pod:39
2218 #, no-wrap
2219 msgid ""
2220 " virt-ls -R -d guest /\n"
2221 "\n"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../cat/virt-ls.pod:41
2226 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2227 msgstr ""
2228
2229 #. type: verbatim
2230 #: ../cat/virt-ls.pod:43
2231 #, no-wrap
2232 msgid ""
2233 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2234 "\n"
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../cat/virt-ls.pod:45
2239 msgid "List all public-writable directories in a Linux virtual machine:"
2240 msgstr ""
2241
2242 #. type: verbatim
2243 #: ../cat/virt-ls.pod:47
2244 #, no-wrap
2245 msgid ""
2246 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2247 "\n"
2248 msgstr ""
2249
2250 #. type: textblock
2251 #: ../cat/virt-ls.pod:49
2252 msgid "List all Unix domain sockets in a Linux virtual machine:"
2253 msgstr ""
2254
2255 #. type: verbatim
2256 #: ../cat/virt-ls.pod:51
2257 #, no-wrap
2258 msgid ""
2259 " virt-ls -lR -d guest / | grep '^s'\n"
2260 "\n"
2261 msgstr ""
2262
2263 #. type: textblock
2264 #: ../cat/virt-ls.pod:53
2265 msgid "List all regular files with filenames ending in '.png':"
2266 msgstr ""
2267
2268 #. type: verbatim
2269 #: ../cat/virt-ls.pod:55
2270 #, no-wrap
2271 msgid ""
2272 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2273 "\n"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:57
2278 msgid "To display files larger than 10MB in home directories:"
2279 msgstr ""
2280
2281 #. type: verbatim
2282 #: ../cat/virt-ls.pod:59
2283 #, no-wrap
2284 msgid ""
2285 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2286 "\n"
2287 msgstr ""
2288
2289 #. type: textblock
2290 #: ../cat/virt-ls.pod:61
2291 msgid "Find everything modified in the last 7 days:"
2292 msgstr ""
2293
2294 #. type: verbatim
2295 #: ../cat/virt-ls.pod:63
2296 #, no-wrap
2297 msgid ""
2298 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2299 "\n"
2300 msgstr ""
2301
2302 #. type: textblock
2303 #: ../cat/virt-ls.pod:65
2304 msgid "Find regular files modified in the last 24 hours:"
2305 msgstr ""
2306
2307 #. type: verbatim
2308 #: ../cat/virt-ls.pod:67
2309 #, no-wrap
2310 msgid ""
2311 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2312 "\n"
2313 msgstr ""
2314
2315 #. type: =head2
2316 #: ../cat/virt-ls.pod:69
2317 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2318 msgstr ""
2319
2320 #. type: textblock
2321 #: ../cat/virt-ls.pod:71
2322 msgid ""
2323 "Find the differences between files in a guest and an earlier snapshot of the "
2324 "same guest."
2325 msgstr ""
2326
2327 #. type: verbatim
2328 #: ../cat/virt-ls.pod:74
2329 #, no-wrap
2330 msgid ""
2331 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2332 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2333 " diff -u old new | less\n"
2334 "\n"
2335 msgstr ""
2336
2337 #. type: textblock
2338 #: ../cat/virt-ls.pod:78
2339 msgid ""
2340 "The commands above won't find files where the content has changed but the "
2341 "metadata (eg. file size and modification date) is the same.  To do that, you "
2342 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2343 "checksum> can be quite slow since it has to read and compute a checksum of "
2344 "every regular file in the virtual machine."
2345 msgstr ""
2346
2347 #. type: =head1
2348 #: ../cat/virt-ls.pod:84
2349 msgid "OUTPUT MODES"
2350 msgstr ""
2351
2352 #. type: textblock
2353 #: ../cat/virt-ls.pod:86
2354 msgid ""
2355 "C<virt-ls> has four output modes, controlled by different combinations of "
2356 "the I<-l> and I<-R> options."
2357 msgstr ""
2358
2359 #. type: =head2
2360 #: ../cat/virt-ls.pod:89
2361 msgid "SIMPLE LISTING"
2362 msgstr ""
2363
2364 #. type: textblock
2365 #: ../cat/virt-ls.pod:91
2366 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2367 msgstr ""
2368
2369 #. type: verbatim
2370 #: ../cat/virt-ls.pod:93
2371 #, no-wrap
2372 msgid ""
2373 " $ virt-ls -d guest /\n"
2374 " bin\n"
2375 " boot\n"
2376 " [etc.]\n"
2377 "\n"
2378 msgstr ""
2379
2380 #. type: =head2
2381 #: ../cat/virt-ls.pod:98
2382 msgid "LONG LISTING"
2383 msgstr ""
2384
2385 #. type: textblock
2386 #: ../cat/virt-ls.pod:100
2387 msgid ""
2388 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2389 "(more specifically, like the C<guestfs_ll> function)."
2390 msgstr ""
2391
2392 #. type: verbatim
2393 #: ../cat/virt-ls.pod:103
2394 #, no-wrap
2395 msgid ""
2396 " $ virt-ls -l -d guest /\n"
2397 " total 204\n"
2398 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2399 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2400 " [etc.]\n"
2401 "\n"
2402 msgstr ""
2403
2404 #. type: textblock
2405 #: ../cat/virt-ls.pod:109
2406 msgid ""
2407 "Note that while this is useful for displaying a directory, do not try "
2408 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2409 "instead."
2410 msgstr ""
2411
2412 #. type: =head2
2413 #: ../cat/virt-ls.pod:113
2414 msgid "RECURSIVE LISTING"
2415 msgstr ""
2416
2417 #. type: textblock
2418 #: ../cat/virt-ls.pod:115
2419 msgid ""
2420 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2421 "and directories recursively:"
2422 msgstr ""
2423
2424 #. type: verbatim
2425 #: ../cat/virt-ls.pod:118
2426 #, no-wrap
2427 msgid ""
2428 " $ virt-ls -R -d guest /tmp\n"
2429 " foo\n"
2430 " foo/bar\n"
2431 " [etc.]\n"
2432 "\n"
2433 msgstr ""
2434
2435 #. type: textblock
2436 #: ../cat/virt-ls.pod:123
2437 msgid ""
2438 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2439 "converts C<\\0> characters to C<\\n>."
2440 msgstr ""
2441
2442 #. type: =head2
2443 #: ../cat/virt-ls.pod:126
2444 msgid "RECURSIVE LONG LISTING"
2445 msgstr ""
2446
2447 #. type: textblock
2448 #: ../cat/virt-ls.pod:128
2449 msgid ""
2450 "Using I<-lR> options together changes the output to display directories "
2451 "recursively, with file stats, and optionally other features such as "
2452 "checksums and extended attributes."
2453 msgstr ""
2454
2455 #. type: textblock
2456 #: ../cat/virt-ls.pod:132
2457 msgid ""
2458 "Most of the interesting features of C<virt-ls> are only available when using "
2459 "I<-lR> mode."
2460 msgstr ""
2461
2462 #. type: textblock
2463 #: ../cat/virt-ls.pod:135
2464 msgid ""
2465 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2466 "you cannot use the output in another program (because filenames can contain "
2467 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2468 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2469 "on you by creating filenames with embedded newline characters.  To B<safely> "
2470 "parse the output in another program, use the I<--csv> (Comma-Separated "
2471 "Values) option."
2472 msgstr ""
2473
2474 #. type: textblock
2475 #: ../cat/virt-ls.pod:143
2476 msgid ""
2477 "Note that this output format is completely unrelated to the C<ls -lR> "
2478 "command."
2479 msgstr ""
2480
2481 #. type: verbatim
2482 #: ../cat/virt-ls.pod:146
2483 #, no-wrap
2484 msgid ""
2485 " $ virt-ls -lR -d guest /bin\n"
2486 " d 0555       4096 /bin\n"
2487 " - 0755        123 /bin/alsaunmute\n"
2488 " - 0755      28328 /bin/arch\n"
2489 " l 0777          4 /bin/awk -> gawk\n"
2490 " - 0755      27216 /bin/basename\n"
2491 " - 0755     943360 /bin/bash\n"
2492 " [etc.]\n"
2493 "\n"
2494 msgstr ""
2495
2496 #. type: textblock
2497 #: ../cat/virt-ls.pod:155
2498 msgid "These basic fields are always shown:"
2499 msgstr ""
2500
2501 #. type: =item
2502 #: ../cat/virt-ls.pod:159
2503 msgid "type"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../cat/virt-ls.pod:161
2508 msgid ""
2509 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2510 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2511 "link), C<s> (socket) or C<u> (unknown)."
2512 msgstr ""
2513
2514 #. type: =item
2515 #: ../cat/virt-ls.pod:171
2516 msgid "permissions"
2517 msgstr ""
2518
2519 #. type: textblock
2520 #: ../cat/virt-ls.pod:173
2521 msgid "The Unix permissions, displayed as a 4 digit octal number."
2522 msgstr ""
2523
2524 #. type: =item
2525 #: ../cat/virt-ls.pod:175
2526 msgid "size"
2527 msgstr ""
2528
2529 #. type: textblock
2530 #: ../cat/virt-ls.pod:177
2531 msgid ""
2532 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2533 "readable> option is given, in which case this is shown as a human-readable "
2534 "number."
2535 msgstr ""
2536
2537 #. type: =head2
2538 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2539 msgid "path"
2540 msgstr ""
2541
2542 #. type: textblock
2543 #: ../cat/virt-ls.pod:183
2544 msgid "The full path of the file or directory."
2545 msgstr ""
2546
2547 #. type: =item
2548 #: ../cat/virt-ls.pod:185
2549 msgid "link"
2550 msgstr ""
2551
2552 #. type: textblock
2553 #: ../cat/virt-ls.pod:187
2554 msgid "For symbolic links only, the link target."
2555 msgstr ""
2556
2557 #. type: textblock
2558 #: ../cat/virt-ls.pod:191
2559 msgid ""
2560 "In I<-lR> mode, additional command line options enable the display of more "
2561 "fields."
2562 msgstr ""
2563
2564 #. type: textblock
2565 #: ../cat/virt-ls.pod:194
2566 msgid ""
2567 "With the I<--uids> flag, these additional fields are displayed before the "
2568 "path:"
2569 msgstr ""
2570
2571 #. type: =item
2572 #: ../cat/virt-ls.pod:199
2573 msgid "uid"
2574 msgstr ""
2575
2576 #. type: =item
2577 #: ../cat/virt-ls.pod:201
2578 msgid "gid"
2579 msgstr ""
2580
2581 #. type: textblock
2582 #: ../cat/virt-ls.pod:203
2583 msgid ""
2584 "The UID and GID of the owner of the file (displayed numerically).  Note "
2585 "these only make sense in the context of a Unix-like guest."
2586 msgstr ""
2587
2588 #. type: textblock
2589 #: ../cat/virt-ls.pod:208
2590 msgid "With the I<--times> flag, these additional fields are displayed:"
2591 msgstr ""
2592
2593 #. type: =item
2594 #: ../cat/virt-ls.pod:212
2595 msgid "atime"
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../cat/virt-ls.pod:214
2600 msgid "The time of last access."
2601 msgstr ""
2602
2603 #. type: =item
2604 #: ../cat/virt-ls.pod:216
2605 msgid "mtime"
2606 msgstr ""
2607
2608 #. type: textblock
2609 #: ../cat/virt-ls.pod:218
2610 msgid "The time of last modification."
2611 msgstr ""
2612
2613 #. type: =item
2614 #: ../cat/virt-ls.pod:220
2615 msgid "ctime"
2616 msgstr ""
2617
2618 #. type: textblock
2619 #: ../cat/virt-ls.pod:222
2620 msgid "The time of last status change."
2621 msgstr ""
2622
2623 #. type: textblock
2624 #: ../cat/virt-ls.pod:226
2625 msgid ""
2626 "The time fields are displayed as string dates and times, unless one of the "
2627 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2628 msgstr ""
2629
2630 #. type: textblock
2631 #: ../cat/virt-ls.pod:229
2632 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2633 msgstr ""
2634
2635 #. type: =item
2636 #: ../cat/virt-ls.pod:233
2637 msgid "device"
2638 msgstr ""
2639
2640 #. type: textblock
2641 #: ../cat/virt-ls.pod:235
2642 msgid ""
2643 "The device containing the file (displayed as major:minor).  This may not "
2644 "match devices as known to the guest."
2645 msgstr ""
2646
2647 #. type: =item
2648 #: ../cat/virt-ls.pod:238
2649 msgid "inode"
2650 msgstr ""
2651
2652 #. type: textblock
2653 #: ../cat/virt-ls.pod:240
2654 msgid "The inode number."
2655 msgstr ""
2656
2657 #. type: =item
2658 #: ../cat/virt-ls.pod:242
2659 msgid "nlink"
2660 msgstr ""
2661
2662 #. type: textblock
2663 #: ../cat/virt-ls.pod:244
2664 msgid "The number of hard links."
2665 msgstr ""
2666
2667 #. type: =item
2668 #: ../cat/virt-ls.pod:246
2669 msgid "rdev"
2670 msgstr ""
2671
2672 #. type: textblock
2673 #: ../cat/virt-ls.pod:248
2674 msgid ""
2675 "For block and char special files, the device (displayed as major:minor)."
2676 msgstr ""
2677
2678 #. type: =item
2679 #: ../cat/virt-ls.pod:251
2680 msgid "blocks"
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../cat/virt-ls.pod:253
2685 msgid "The number of 512 byte blocks allocated to the file."
2686 msgstr ""
2687
2688 #. type: textblock
2689 #: ../cat/virt-ls.pod:257
2690 msgid ""
2691 "With the I<--checksum> flag, the checksum of the file contents is shown "
2692 "(only for regular files).  Computing file checksums can take a considerable "
2693 "amount of time."
2694 msgstr ""
2695
2696 #. type: =item
2697 #: ../cat/virt-ls.pod:280
2698 msgid "B<--checksum>"
2699 msgstr ""
2700
2701 #. type: =item
2702 #: ../cat/virt-ls.pod:282
2703 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2704 msgstr ""
2705
2706 #. type: textblock
2707 #: ../cat/virt-ls.pod:284
2708 msgid ""
2709 "Display checksum over file contents for regular files.  With no argument, "
2710 "this defaults to using I<md5>.  Using an argument, you can select the "
2711 "checksum type to use."
2712 msgstr ""
2713
2714 #. type: textblock
2715 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2716 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2717 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2718 msgid ""
2719 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2720 "LISTING> above."
2721 msgstr ""
2722
2723 #. type: textblock
2724 #: ../cat/virt-ls.pod:316
2725 msgid ""
2726 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2727 "so you cannot see what you are typing.  If you are not worried about Tempest "
2728 "attacks and there is no one else in the room you can specify this flag to "
2729 "see what you are typing."
2730 msgstr ""
2731
2732 #. type: =item
2733 #: ../cat/virt-ls.pod:321
2734 msgid "B<--extra-stats>"
2735 msgstr ""
2736
2737 #. type: textblock
2738 #: ../cat/virt-ls.pod:323
2739 msgid "Display extra stats."
2740 msgstr ""
2741
2742 #. type: verbatim
2743 #: ../cat/virt-ls.pod:339
2744 #, no-wrap
2745 msgid ""
2746 " virt-ls --format=raw -a disk.img /dir\n"
2747 "\n"
2748 msgstr ""
2749
2750 #. type: verbatim
2751 #: ../cat/virt-ls.pod:343
2752 #, no-wrap
2753 msgid ""
2754 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2755 "\n"
2756 msgstr ""
2757
2758 #. type: textblock
2759 #: ../cat/virt-ls.pod:356
2760 msgid "Display file sizes in human-readable format."
2761 msgstr ""
2762
2763 #. type: =item
2764 #: ../cat/virt-ls.pod:370
2765 msgid "B<-R>"
2766 msgstr ""
2767
2768 #. type: =item
2769 #: ../cat/virt-ls.pod:372
2770 msgid "B<--recursive>"
2771 msgstr ""
2772
2773 #. type: textblock
2774 #: ../cat/virt-ls.pod:374
2775 msgid ""
2776 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2777 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2778 "LISTING>."
2779 msgstr ""
2780
2781 #. type: textblock
2782 #: ../cat/virt-ls.pod:378
2783 msgid ""
2784 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2785 "LONG LISTING>."
2786 msgstr ""
2787
2788 #. type: textblock
2789 #: ../cat/virt-ls.pod:381
2790 msgid ""
2791 "C<virt-ls -R> produces a recursive list of files starting at the named "
2792 "directory.  See L</RECURSIVE LISTING>."
2793 msgstr ""
2794
2795 #. type: textblock
2796 #: ../cat/virt-ls.pod:384
2797 msgid ""
2798 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2799 "parsed.  See L</RECURSIVE LONG LISTING>."
2800 msgstr ""
2801
2802 #. type: =item
2803 #: ../cat/virt-ls.pod:387
2804 msgid "B<--times>"
2805 msgstr ""
2806
2807 #. type: textblock
2808 #: ../cat/virt-ls.pod:389
2809 msgid "Display time fields."
2810 msgstr ""
2811
2812 #. type: =item
2813 #: ../cat/virt-ls.pod:394
2814 msgid "B<--time-days>"
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../cat/virt-ls.pod:396
2819 msgid "Display time fields as days before now (negative if in the future)."
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../cat/virt-ls.pod:398
2824 msgid ""
2825 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2826 "of the file is between 0 and 86399 seconds."
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:404
2831 msgid "B<--time-relative>"
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:406
2836 msgid "Display time fields as seconds before now (negative if in the future)."
2837 msgstr ""
2838
2839 #. type: =item
2840 #: ../cat/virt-ls.pod:411
2841 msgid "B<--time-t>"
2842 msgstr ""
2843
2844 #. type: textblock
2845 #: ../cat/virt-ls.pod:413
2846 msgid "Display time fields as seconds since the Unix epoch."
2847 msgstr ""
2848
2849 #. type: =item
2850 #: ../cat/virt-ls.pod:418
2851 msgid "B<--uids>"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../cat/virt-ls.pod:420
2856 msgid "Display UID and GID fields."
2857 msgstr ""
2858
2859 #. type: textblock
2860 #: ../cat/virt-ls.pod:445
2861 msgid "Previous versions of virt-ls allowed you to write either:"
2862 msgstr ""
2863
2864 #. type: verbatim
2865 #: ../cat/virt-ls.pod:447
2866 #, no-wrap
2867 msgid ""
2868 " virt-ls disk.img [disk.img ...] /dir\n"
2869 "\n"
2870 msgstr ""
2871
2872 #. type: verbatim
2873 #: ../cat/virt-ls.pod:451
2874 #, no-wrap
2875 msgid ""
2876 " virt-ls guestname /dir\n"
2877 "\n"
2878 msgstr ""
2879
2880 #. type: textblock
2881 #: ../cat/virt-ls.pod:497
2882 msgid ""
2883 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2884 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2885 "L<http://libguestfs.org/>."
2886 msgstr ""
2887
2888 #. type: textblock
2889 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2890 #: ../rescue/virt-rescue.pod:302
2891 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2892 msgstr ""
2893
2894 #. type: textblock
2895 #: ../clone/virt-sysprep.pod:5
2896 msgid ""
2897 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2898 msgstr ""
2899
2900 #. type: verbatim
2901 #: ../clone/virt-sysprep.pod:9
2902 #, no-wrap
2903 msgid ""
2904 " virt-sysprep [--options] -d domname\n"
2905 "\n"
2906 msgstr ""
2907
2908 #. type: verbatim
2909 #: ../clone/virt-sysprep.pod:11
2910 #, no-wrap
2911 msgid ""
2912 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2913 "\n"
2914 msgstr ""
2915
2916 #. type: textblock
2917 #: ../clone/virt-sysprep.pod:15
2918 msgid ""
2919 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2920 "can be made from it.  Steps in this process include removing SSH host keys, "
2921 "removing persistent network MAC configuration, and removing user accounts.  "
2922 "Each step can be enabled or disabled as required."
2923 msgstr ""
2924
2925 #. type: textblock
2926 #: ../clone/virt-sysprep.pod:21
2927 msgid ""
2928 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2929 "customization by the system administrator."
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../clone/virt-sysprep.pod:24
2934 msgid ""
2935 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2936 "be shut down.  If you want to preserve the existing contents of the guest, "
2937 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
2938 msgstr ""
2939
2940 #. type: textblock
2941 #: ../clone/virt-sysprep.pod:29
2942 msgid ""
2943 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2944 "recommend that you don't.  The time you might want to run it as root is when "
2945 "you need root in order to access the disk image, but even in this case it "
2946 "would be better to change the permissions on the disk image to be writable "
2947 "as the non-root user running virt-sysprep."
2948 msgstr ""
2949
2950 #. type: textblock
2951 #: ../clone/virt-sysprep.pod:35
2952 msgid ""
2953 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2954 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2955 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2956 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2957 "Windows sysprepping in a future version, and we already have code to do it."
2958 msgstr ""
2959
2960 #. type: =item
2961 #: ../clone/virt-sysprep.pod:76
2962 msgid "B<--enable=...>"
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:78
2967 msgid ""
2968 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2969 "operations, for example:"
2970 msgstr ""
2971
2972 #. type: verbatim
2973 #: ../clone/virt-sysprep.pod:81
2974 #, no-wrap
2975 msgid ""
2976 " --enable=ssh-hostkeys,udev-persistent-net\n"
2977 "\n"
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../clone/virt-sysprep.pod:83
2982 msgid ""
2983 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2984 msgstr ""
2985
2986 #. type: textblock
2987 #: ../clone/virt-sysprep.pod:85
2988 msgid ""
2989 "If the I<--enable> option is not given, then we default to trying all "
2990 "possible sysprep operations.  But some sysprep operations are skipped for "
2991 "some guest types."
2992 msgstr ""
2993
2994 #. type: textblock
2995 #: ../clone/virt-sysprep.pod:89
2996 msgid ""
2997 "Use I<--list-operations> to list operations supported by a particular "
2998 "version of virt-sysprep."
2999 msgstr ""
3000
3001 #. type: textblock
3002 #: ../clone/virt-sysprep.pod:92
3003 msgid ""
3004 "See L</OPERATIONS> below for a list and an explanation of each operation."
3005 msgstr ""
3006
3007 #. type: verbatim
3008 #: ../clone/virt-sysprep.pod:106
3009 #, no-wrap
3010 msgid ""
3011 " virt-sysprep --format=raw -a disk.img\n"
3012 "\n"
3013 msgstr ""
3014
3015 #. type: verbatim
3016 #: ../clone/virt-sysprep.pod:110
3017 #, no-wrap
3018 msgid ""
3019 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3020 "\n"
3021 msgstr ""
3022
3023 #. type: =item
3024 #: ../clone/virt-sysprep.pod:119
3025 msgid "B<--hostname> newhostname"
3026 msgstr ""
3027
3028 #. type: textblock
3029 #: ../clone/virt-sysprep.pod:121
3030 msgid ""
3031 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3032 "defaults to C<localhost.localdomain>."
3033 msgstr ""
3034
3035 #. type: =item
3036 #: ../clone/virt-sysprep.pod:124
3037 msgid "B<--list-operations>"
3038 msgstr ""
3039
3040 #. type: textblock
3041 #: ../clone/virt-sysprep.pod:126
3042 msgid "List the operations supported by the virt-sysprep program."
3043 msgstr ""
3044
3045 #. type: =item
3046 #: ../clone/virt-sysprep.pod:128
3047 msgid "B<--selinux-relabel>"
3048 msgstr ""
3049
3050 #. type: =item
3051 #: ../clone/virt-sysprep.pod:130
3052 msgid "B<--no-selinux-relabel>"
3053 msgstr ""
3054
3055 #. type: textblock
3056 #: ../clone/virt-sysprep.pod:132
3057 msgid ""
3058 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3059 "I<--no-selinux-relabel> disables relabelling."
3060 msgstr ""
3061
3062 #. type: textblock
3063 #: ../clone/virt-sysprep.pod:135
3064 msgid ""
3065 "The default is to try to detect if SELinux relabelling is required.  See L</"
3066 "SELINUX RELABELLING> below for more details."
3067 msgstr ""
3068
3069 #. type: =head1
3070 #: ../clone/virt-sysprep.pod:156
3071 msgid "OPERATIONS"
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../clone/virt-sysprep.pod:158
3076 msgid ""
3077 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3078 "enabled>, although some are skipped depending on the type of guest."
3079 msgstr ""
3080
3081 #. type: textblock
3082 #: ../clone/virt-sysprep.pod:162
3083 msgid ""
3084 "Operations can be individually enabled using the I<--enable> option.  Use a "
3085 "comma-separated list, for example:"
3086 msgstr ""
3087
3088 #. type: verbatim
3089 #: ../clone/virt-sysprep.pod:165
3090 #, no-wrap
3091 msgid ""
3092 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3093 "\n"
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../clone/virt-sysprep.pod:167
3098 msgid ""
3099 "To list the operations supported by the current version of virt-sysprep, use "
3100 "I<--list-operations>."
3101 msgstr ""
3102
3103 #. type: textblock
3104 #: ../clone/virt-sysprep.pod:170
3105 msgid ""
3106 "Future versions of virt-sysprep may add more operations.  If you are using "
3107 "virt-sysprep and want predictable behaviour, specify only the operations "
3108 "that you want to have enabled."
3109 msgstr ""
3110
3111 #. type: =head2
3112 #: ../clone/virt-sysprep.pod:174
3113 msgid "cron-spool"
3114 msgstr ""
3115
3116 #. type: textblock
3117 #: ../clone/virt-sysprep.pod:176
3118 msgid "Remove user at-jobs and cron-jobs."
3119 msgstr ""
3120
3121 #. type: =head2
3122 #: ../clone/virt-sysprep.pod:178
3123 msgid "dhcp-client-state"
3124 msgstr ""
3125
3126 #. type: textblock
3127 #: ../clone/virt-sysprep.pod:180
3128 msgid "Remove DHCP client leases."
3129 msgstr ""
3130
3131 #. type: =head2
3132 #: ../clone/virt-sysprep.pod:182
3133 msgid "dhcp-server-state"
3134 msgstr ""
3135
3136 #. type: textblock
3137 #: ../clone/virt-sysprep.pod:184
3138 msgid "Remove DHCP server leases."
3139 msgstr ""
3140
3141 #. type: =head2
3142 #: ../clone/virt-sysprep.pod:186
3143 msgid "hostname"
3144 msgstr ""
3145
3146 #. type: textblock
3147 #: ../clone/virt-sysprep.pod:188
3148 msgid ""
3149 "Changes the hostname of the guest to the value given in the I<--hostname> "
3150 "parameter."
3151 msgstr ""
3152
3153 #. type: textblock
3154 #: ../clone/virt-sysprep.pod:191
3155 msgid ""
3156 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3157 "C<localhost.localdomain>."
3158 msgstr ""
3159
3160 #. type: =head2
3161 #: ../clone/virt-sysprep.pod:194
3162 msgid "logfiles"
3163 msgstr ""
3164
3165 #. type: textblock
3166 #: ../clone/virt-sysprep.pod:196
3167 msgid "Remove many log files."
3168 msgstr ""
3169
3170 #. type: =head2
3171 #: ../clone/virt-sysprep.pod:198
3172 msgid "mail-spool"
3173 msgstr ""
3174
3175 #. type: textblock
3176 #: ../clone/virt-sysprep.pod:200
3177 msgid "Remove email from the local mail spool directory."
3178 msgstr ""
3179
3180 #. type: =head2
3181 #: ../clone/virt-sysprep.pod:202
3182 msgid "net-hwaddr"
3183 msgstr ""
3184
3185 #. type: textblock
3186 #: ../clone/virt-sysprep.pod:204
3187 msgid ""
3188 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3189 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3190 msgstr ""
3191
3192 #. type: =head2
3193 #: ../clone/virt-sysprep.pod:207
3194 msgid "random-seed"
3195 msgstr ""
3196
3197 #. type: textblock
3198 #: ../clone/virt-sysprep.pod:209
3199 msgid ""
3200 "Write some random bytes from the host into the random seed file of the guest."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../clone/virt-sysprep.pod:212
3205 msgid "See L</RANDOM SEED> below."
3206 msgstr ""
3207
3208 #. type: =head2
3209 #: ../clone/virt-sysprep.pod:214
3210 msgid "rhn-systemid"
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../clone/virt-sysprep.pod:216
3215 msgid "Remove the RHN system ID."
3216 msgstr ""
3217
3218 #. type: =head2
3219 #: ../clone/virt-sysprep.pod:218
3220 msgid "smolt-uuid"
3221 msgstr ""
3222
3223 #. type: textblock
3224 #: ../clone/virt-sysprep.pod:220
3225 msgid "Remove the Smolt hardware UUID."
3226 msgstr ""
3227
3228 #. type: =head2
3229 #: ../clone/virt-sysprep.pod:222
3230 msgid "ssh-hostkeys"
3231 msgstr ""
3232
3233 #. type: textblock
3234 #: ../clone/virt-sysprep.pod:224
3235 msgid "Remove the SSH host keys in the guest."
3236 msgstr ""
3237
3238 #. type: textblock
3239 #: ../clone/virt-sysprep.pod:226
3240 msgid ""
3241 "The SSH host keys are regenerated (differently) next time the guest is "
3242 "booted."
3243 msgstr ""
3244
3245 #. type: textblock
3246 #: ../clone/virt-sysprep.pod:229
3247 msgid ""
3248 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3249 "stark warning about the host key changing:"
3250 msgstr ""
3251
3252 #. type: verbatim
3253 #: ../clone/virt-sysprep.pod:232
3254 #, no-wrap
3255 msgid ""
3256 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3257 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3258 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3259 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3260 "\n"
3261 msgstr ""
3262
3263 #. type: =head2
3264 #: ../clone/virt-sysprep.pod:237
3265 msgid "udev-persistent-net"
3266 msgstr ""
3267
3268 #. type: textblock
3269 #: ../clone/virt-sysprep.pod:239
3270 msgid ""
3271 "Remove udev persistent net rules which map the guest's existing MAC address "
3272 "to a fixed ethernet device (eg. eth0)."
3273 msgstr ""
3274
3275 #. type: textblock
3276 #: ../clone/virt-sysprep.pod:242
3277 msgid ""
3278 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3279 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3280 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3281 "Erasing the udev persistent net rules avoids this."
3282 msgstr ""
3283
3284 #. type: =head2
3285 #: ../clone/virt-sysprep.pod:247
3286 msgid "utmp"
3287 msgstr ""
3288
3289 #. type: textblock
3290 #: ../clone/virt-sysprep.pod:249
3291 msgid "Remove the utmp file."
3292 msgstr ""
3293
3294 #. type: textblock
3295 #: ../clone/virt-sysprep.pod:251
3296 msgid ""
3297 "This records who is currently logged in on a machine.  In modern Linux "
3298 "distros it is stored in a ramdisk and hence not part of the virtual "
3299 "machine's disk, but it was stored on disk in older distros."
3300 msgstr ""
3301
3302 #. type: =head2
3303 #: ../clone/virt-sysprep.pod:255
3304 msgid "yum-uuid"
3305 msgstr ""
3306
3307 #. type: textblock
3308 #: ../clone/virt-sysprep.pod:257
3309 msgid "Remove the yum UUID."
3310 msgstr ""
3311
3312 #. type: textblock
3313 #: ../clone/virt-sysprep.pod:259
3314 msgid ""
3315 "Yum creates a fresh UUID the next time it runs when it notices that the "
3316 "original UUID has been erased."
3317 msgstr ""
3318
3319 #. type: =head1
3320 #: ../clone/virt-sysprep.pod:262
3321 msgid "COPYING AND CLONING"
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:264
3326 msgid ""
3327 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3328 "prepare a template from which guests can be cloned.  There are many "
3329 "different ways to achieve this using the virt tools, and this section is "
3330 "just an introduction."
3331 msgstr ""
3332
3333 #. type: textblock
3334 #: ../clone/virt-sysprep.pod:269
3335 msgid "A virtual machine (when switched off) consists of two parts:"
3336 msgstr ""
3337
3338 #. type: =item
3339 #: ../clone/virt-sysprep.pod:273
3340 msgid "I<configuration>"
3341 msgstr ""
3342
3343 #. type: textblock
3344 #: ../clone/virt-sysprep.pod:275
3345 msgid ""
3346 "The configuration or description of the guest.  eg. The libvirt XML (see "
3347 "C<virsh dumpxml>), the running configuration of the guest, or another "
3348 "external format like OVF."
3349 msgstr ""
3350
3351 #. type: textblock
3352 #: ../clone/virt-sysprep.pod:279
3353 msgid "Some configuration items that might need to be changed:"
3354 msgstr ""
3355
3356 #. type: textblock
3357 #: ../clone/virt-sysprep.pod:285
3358 msgid "name"
3359 msgstr ""
3360
3361 #. type: textblock
3362 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3363 msgid "UUID"
3364 msgstr ""
3365
3366 #. type: textblock
3367 #: ../clone/virt-sysprep.pod:293
3368 msgid "path to block device(s)"
3369 msgstr ""
3370
3371 #. type: textblock
3372 #: ../clone/virt-sysprep.pod:297
3373 msgid "network card MAC address"
3374 msgstr ""
3375
3376 #. type: =item
3377 #: ../clone/virt-sysprep.pod:301
3378 msgid "I<block device(s)>"
3379 msgstr ""
3380
3381 #. type: textblock
3382 #: ../clone/virt-sysprep.pod:303
3383 msgid ""
3384 "One or more hard disk images, themselves containing files, directories, "
3385 "applications, kernels, configuration, etc."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../clone/virt-sysprep.pod:306
3390 msgid "Some things inside the block devices that might need to be changed:"
3391 msgstr ""
3392
3393 #. type: textblock
3394 #: ../clone/virt-sysprep.pod:312
3395 msgid "hostname and other net configuration"
3396 msgstr ""
3397
3398 #. type: textblock
3399 #: ../clone/virt-sysprep.pod:320
3400 msgid "SSH host keys"
3401 msgstr ""
3402
3403 #. type: textblock
3404 #: ../clone/virt-sysprep.pod:324
3405 msgid "Windows unique security ID (SID)"
3406 msgstr ""
3407
3408 #. type: textblock
3409 #: ../clone/virt-sysprep.pod:328
3410 msgid "Puppet registration"
3411 msgstr ""
3412
3413 #. type: =head2
3414 #: ../clone/virt-sysprep.pod:334
3415 msgid "COPYING THE BLOCK DEVICE"
3416 msgstr ""
3417
3418 #. type: textblock
3419 #: ../clone/virt-sysprep.pod:336
3420 msgid ""
3421 "Starting with an original guest, you probably wish to copy the guest block "
3422 "device and its configuration to make a template.  Then once you are happy "
3423 "with the template, you will want to make many clones from it."
3424 msgstr ""
3425
3426 #. type: verbatim
3427 #: ../clone/virt-sysprep.pod:341
3428 #, no-wrap
3429 msgid ""
3430 "                        virt-sysprep\n"
3431 "                             |\n"
3432 "                             v\n"
3433 " original guest --------> template ---------->\n"
3434 "                                      \\------> cloned\n"
3435 "                                       \\-----> guests\n"
3436 "                                        \\---->\n"
3437 "\n"
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../clone/virt-sysprep.pod:349
3442 msgid ""
3443 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3444 "L<dd(1)>."
3445 msgstr ""
3446
3447 #. type: verbatim
3448 #: ../clone/virt-sysprep.pod:352
3449 #, no-wrap
3450 msgid ""
3451 "                   dd                 dd\n"
3452 " original guest --------> template ---------->\n"
3453 "                                      \\------> cloned\n"
3454 "                                       \\-----> guests\n"
3455 "                                        \\---->\n"
3456 "\n"
3457 msgstr ""
3458
3459 #. type: textblock
3460 #: ../clone/virt-sysprep.pod:358
3461 msgid "There are some smarter (and faster) ways too:"
3462 msgstr ""
3463
3464 #. type: verbatim
3465 #: ../clone/virt-sysprep.pod:364
3466 #, no-wrap
3467 msgid ""
3468 "                          snapshot\n"
3469 "                template ---------->\n"
3470 "                            \\------> cloned\n"
3471 "                             \\-----> guests\n"
3472 "                              \\---->\n"
3473 "\n"
3474 msgstr ""
3475
3476 #. type: textblock
3477 #: ../clone/virt-sysprep.pod:370
3478 msgid ""
3479 "Use the block device as a backing file and create a snapshot on top for each "
3480 "guest.  The advantage is that you don't need to copy the block device (very "
3481 "fast) and only changes are stored (less storage required)."
3482 msgstr ""
3483
3484 #. type: textblock
3485 #: ../clone/virt-sysprep.pod:375
3486 msgid ""
3487 "Note that writing to the backing file once you have created guests on top of "
3488 "it is not possible: you will corrupt the guests."
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../clone/virt-sysprep.pod:378
3493 msgid ""
3494 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3495 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3496 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3497 "also create cheap snapshots from files or LUNs."
3498 msgstr ""
3499
3500 #. type: textblock
3501 #: ../clone/virt-sysprep.pod:386
3502 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../clone/virt-sysprep.pod:390
3507 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3508 msgstr ""
3509
3510 #. type: =head2
3511 #: ../clone/virt-sysprep.pod:394
3512 msgid "VIRT-CLONE"
3513 msgstr ""
3514
3515 #. type: textblock
3516 #: ../clone/virt-sysprep.pod:396
3517 msgid ""
3518 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3519 "and/or modify the external libvirt configuration of a guest.  It will reset "
3520 "the name, UUID and MAC address of the guest in the libvirt XML."
3521 msgstr ""
3522
3523 #. type: textblock
3524 #: ../clone/virt-sysprep.pod:401
3525 msgid ""
3526 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3527 "image.  This was the original motivation to write virt-sysprep."
3528 msgstr ""
3529
3530 #. type: =head2
3531 #: ../clone/virt-sysprep.pod:404
3532 msgid "SPARSIFY"
3533 msgstr ""
3534
3535 #. type: verbatim
3536 #: ../clone/virt-sysprep.pod:406
3537 #, no-wrap
3538 msgid ""
3539 "              virt-sparsify\n"
3540 " original guest --------> template\n"
3541 "\n"
3542 msgstr ""
3543
3544 #. type: textblock
3545 #: ../clone/virt-sysprep.pod:409
3546 msgid ""
3547 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3548 "it easier to compress and/or faster to copy."
3549 msgstr ""
3550
3551 #. type: textblock
3552 #: ../clone/virt-sysprep.pod:412
3553 msgid ""
3554 "Notice that since virt-sparsify also copies the image, you can use it to "
3555 "make the initial copy (instead of C<dd>)."
3556 msgstr ""
3557
3558 #. type: =head2
3559 #: ../clone/virt-sysprep.pod:415
3560 msgid "RESIZE"
3561 msgstr ""
3562
3563 #. type: verbatim
3564 #: ../clone/virt-sysprep.pod:417
3565 #, no-wrap
3566 msgid ""
3567 "                         virt-resize\n"
3568 "                template ---------->\n"
3569 "                            \\------> cloned\n"
3570 "                             \\-----> guests\n"
3571 "                              \\---->\n"
3572 "\n"
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../clone/virt-sysprep.pod:423
3577 msgid ""
3578 "If you want to give people cloned guests, but let them pick the size of the "
3579 "guest themselves (eg. depending on how much they are prepared to pay for "
3580 "disk space), then instead of copying the template, you can run L<virt-resize"
3581 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3582 "guests from a template."
3583 msgstr ""
3584
3585 #. type: =head1
3586 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3587 msgid "SECURITY"
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../clone/virt-sysprep.pod:431
3592 msgid ""
3593 "Although virt-sysprep removes some sensitive information from the guest, it "
3594 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3595 "above, and the implementation of the operations in the shell script.  You "
3596 "should also examine the guest afterwards."
3597 msgstr ""
3598
3599 #. type: textblock
3600 #: ../clone/virt-sysprep.pod:436
3601 msgid ""
3602 "Sensitive files are simply removed.  The data they contained may still exist "
3603 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3604 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3605 "(1)> command to get rid of deleted content in directory entries and inodes."
3606 msgstr ""
3607
3608 #. type: =head2
3609 #: ../clone/virt-sysprep.pod:442
3610 msgid "RANDOM SEED"
3611 msgstr ""
3612
3613 #. type: textblock
3614 #: ../clone/virt-sysprep.pod:444
3615 msgid "I<(This section applies to Linux guests only)>"
3616 msgstr ""
3617
3618 #. type: textblock
3619 #: ../clone/virt-sysprep.pod:446
3620 msgid ""
3621 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3622 "from the host into the guest's random seed file."
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../clone/virt-sysprep.pod:449
3627 msgid ""
3628 "If this is just done once and the guest is cloned from the same template, "
3629 "then each guest will start with the same entropy, and things like SSH host "
3630 "keys and TCP sequence numbers may be predictable."
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../clone/virt-sysprep.pod:453
3635 msgid ""
3636 "Therefore you should arrange to add more randomness I<after> cloning from a "
3637 "template too, which can be done by just enabling the C<random-seed> "
3638 "operation:"
3639 msgstr ""
3640
3641 #. type: verbatim
3642 #: ../clone/virt-sysprep.pod:457
3643 #, no-wrap
3644 msgid ""
3645 " cp template.img newguest.img\n"
3646 " virt-sysprep --enable=random-seed -a newguest.img\n"
3647 "\n"
3648 msgstr ""
3649
3650 #. type: =head2
3651 #: ../clone/virt-sysprep.pod:460
3652 msgid "SELINUX RELABELLING"
3653 msgstr ""
3654
3655 #. type: textblock
3656 #: ../clone/virt-sysprep.pod:462
3657 msgid "I<(This section applies to Linux guests using SELinux only)>"
3658 msgstr ""
3659
3660 #. type: textblock
3661 #: ../clone/virt-sysprep.pod:464
3662 msgid ""
3663 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3664 "autorelabel> so that these will be correctly labelled by SELinux the next "
3665 "time the guest is booted.  This process interrupts boot and can take some "
3666 "time."
3667 msgstr ""
3668
3669 #. type: textblock
3670 #: ../clone/virt-sysprep.pod:469
3671 msgid ""
3672 "You can force relabelling for all guests by supplying the I<--selinux-"
3673 "relabel> option."
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../clone/virt-sysprep.pod:472
3678 msgid ""
3679 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3680 "relabel> option."
3681 msgstr ""
3682
3683 #. type: textblock
3684 #: ../clone/virt-sysprep.pod:484
3685 msgid "This program returns 0 on success, or 1 if there was an error."
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../clone/virt-sysprep.pod:488
3690 msgid ""
3691 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3692 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3693 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3694 msgstr ""
3695
3696 #. type: textblock
3697 #: ../df/virt-df.pod:5
3698 msgid "virt-df - Display free space on virtual filesystems"
3699 msgstr ""
3700
3701 #. type: verbatim
3702 #: ../df/virt-df.pod:9
3703 #, no-wrap
3704 msgid ""
3705 " virt-df [--options]\n"
3706 "\n"
3707 msgstr ""
3708
3709 #. type: verbatim
3710 #: ../df/virt-df.pod:11
3711 #, no-wrap
3712 msgid ""
3713 " virt-df [--options] -d domname\n"
3714 "\n"
3715 msgstr ""
3716
3717 #. type: verbatim
3718 #: ../df/virt-df.pod:13
3719 #, no-wrap
3720 msgid ""
3721 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3722 "\n"
3723 msgstr ""
3724
3725 #. type: verbatim
3726 #: ../df/virt-df.pod:17
3727 #, no-wrap
3728 msgid ""
3729 " virt-df [--options] domname\n"
3730 "\n"
3731 msgstr ""
3732
3733 #. type: verbatim
3734 #: ../df/virt-df.pod:19
3735 #, no-wrap
3736 msgid ""
3737 " virt-df [--options] disk.img [disk.img ...]\n"
3738 "\n"
3739 msgstr ""
3740
3741 #. type: textblock
3742 #: ../df/virt-df.pod:23
3743 msgid ""
3744 "C<virt-df> is a command line tool to display free space on virtual machine "
3745 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3746 "allocated to a virtual machine, but can look inside disk images to see how "
3747 "much space is really being used."
3748 msgstr ""
3749
3750 #. type: textblock
3751 #: ../df/virt-df.pod:28
3752 msgid ""
3753 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3754 "to get a list of all active and inactive guests, and performs a C<df>-type "
3755 "operation on each one in turn, printing out the results."
3756 msgstr ""
3757
3758 #. type: textblock
3759 #: ../df/virt-df.pod:32
3760 msgid ""
3761 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3762 "type operation on either the single named libvirt domain, or on the disk "
3763 "image(s) listed on the command line (which must all belong to a single VM).  "
3764 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3765 "guest>.  If you want to run on multiple guests, then you have to invoke "
3766 "C<virt-df> multiple times."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../df/virt-df.pod:39
3771 msgid ""
3772 "Use the I<--csv> option to get a format which can be easily parsed by other "
3773 "programs.  Other options are similar to the standard L<df(1)> command."
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../df/virt-df.pod:45
3778 msgid ""
3779 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3780 "output human-readable:"
3781 msgstr ""
3782
3783 #. type: verbatim
3784 #: ../df/virt-df.pod:48
3785 #, no-wrap
3786 msgid ""
3787 " # virt-df -d F14x64 -h\n"
3788 " Filesystem                       Size     Used  Available  Use%\n"
3789 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3790 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3791 "\n"
3792 msgstr ""
3793
3794 #. type: textblock
3795 #: ../df/virt-df.pod:53
3796 msgid "Show disk usage for a disk image file called C<test.img>:"
3797 msgstr ""
3798
3799 #. type: verbatim
3800 #: ../df/virt-df.pod:55
3801 #, no-wrap
3802 msgid ""
3803 " $ virt-df -a test1.img\n"
3804 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3805 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3806 "\n"
3807 msgstr ""
3808
3809 #. type: verbatim
3810 #: ../df/virt-df.pod:112
3811 #, no-wrap
3812 msgid ""
3813 " virt-df --format=raw -a disk.img\n"
3814 "\n"
3815 msgstr ""
3816
3817 #. type: verbatim
3818 #: ../df/virt-df.pod:116
3819 #, no-wrap
3820 msgid ""
3821 " virt-df --format=raw -a disk.img --format -a another.img\n"
3822 "\n"
3823 msgstr ""
3824
3825 #. type: textblock
3826 #: ../df/virt-df.pod:129
3827 msgid "Print sizes in human-readable format."
3828 msgstr ""
3829
3830 #. type: textblock
3831 #: ../df/virt-df.pod:131
3832 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3833 msgstr ""
3834
3835 #. type: =item
3836 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3837 msgid "B<-i>"
3838 msgstr ""
3839
3840 #. type: =item
3841 #: ../df/virt-df.pod:135
3842 msgid "B<--inodes>"
3843 msgstr ""
3844
3845 #. type: textblock
3846 #: ../df/virt-df.pod:137
3847 msgid "Print inodes instead of blocks."
3848 msgstr ""
3849
3850 #. type: =item
3851 #: ../df/virt-df.pod:139
3852 msgid "B<--one-per-guest>"
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../df/virt-df.pod:141
3857 msgid ""
3858 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3859 "disks from several guests to a single libguestfs appliance."
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../df/virt-df.pod:144
3864 msgid "You might use this option in the following circumstances:"
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../df/virt-df.pod:150
3869 msgid ""
3870 "If you think an untrusted guest might actively try to exploit the libguestfs "
3871 "appliance kernel, then this prevents one guest from interfering with the "
3872 "stats printed for another guest."
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../df/virt-df.pod:156
3877 msgid ""
3878 "If the kernel has a bug which stops it from accessing a filesystem in one "
3879 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3880 "and report stats for further guests."
3881 msgstr ""
3882
3883 #. type: textblock
3884 #: ../df/virt-df.pod:165
3885 msgid ""
3886 "Print UUIDs instead of names.  This is useful for following a guest even "
3887 "when the guest is migrated or renamed, or when two guests happen to have the "
3888 "same name."
3889 msgstr ""
3890
3891 #. type: textblock
3892 #: ../df/virt-df.pod:169
3893 msgid ""
3894 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3895 "images, we still print the disk image name even when this option is "
3896 "specified."
3897 msgstr ""
3898
3899 #. type: textblock
3900 #: ../df/virt-df.pod:229
3901 msgid ""
3902 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3903 "libguestfs.org/>."
3904 msgstr ""
3905
3906 #. type: textblock
3907 #: ../edit/virt-edit.pod:5
3908 msgid "virt-edit - Edit a file in a virtual machine"
3909 msgstr ""
3910
3911 #. type: verbatim
3912 #: ../edit/virt-edit.pod:9
3913 #, no-wrap
3914 msgid ""
3915 " virt-edit [--options] -d domname file [file ...]\n"
3916 "\n"
3917 msgstr ""
3918
3919 #. type: verbatim
3920 #: ../edit/virt-edit.pod:11
3921 #, no-wrap
3922 msgid ""
3923 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3924 "\n"
3925 msgstr ""
3926
3927 #. type: verbatim
3928 #: ../edit/virt-edit.pod:13
3929 #, no-wrap
3930 msgid ""
3931 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3932 "\n"
3933 msgstr ""
3934
3935 #. type: verbatim
3936 #: ../edit/virt-edit.pod:17
3937 #, no-wrap
3938 msgid ""
3939 " virt-edit domname file\n"
3940 "\n"
3941 msgstr ""
3942
3943 #. type: verbatim
3944 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3945 #, no-wrap
3946 msgid ""
3947 " virt-edit disk.img [disk.img ...] file\n"
3948 "\n"
3949 msgstr ""
3950
3951 #. type: =head1
3952 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
3953 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
3954 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
3955 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3956 msgid "WARNING"
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../edit/virt-edit.pod:23
3961 msgid ""
3962 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3963 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3964 "doing this, but doesn't catch all cases."
3965 msgstr ""
3966
3967 #. type: textblock
3968 #: ../edit/virt-edit.pod:29
3969 msgid ""
3970 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3971 "exists in the named virtual machine (or disk image)."
3972 msgstr ""
3973
3974 #. type: textblock
3975 #: ../edit/virt-edit.pod:32
3976 msgid ""
3977 "Multiple filenames can be given, in which case they are each edited in "
3978 "turn.  Each filename must be a full path, starting at the root directory "
3979 "(starting with '/')."
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../edit/virt-edit.pod:36
3984 msgid "If you want to just view a file, use L<virt-cat(1)>."
3985 msgstr ""
3986
3987 #. type: textblock
3988 #: ../edit/virt-edit.pod:38
3989 msgid ""
3990 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
3991 "USING GUESTFISH> below)."
3992 msgstr ""
3993
3994 #. type: textblock
3995 #: ../edit/virt-edit.pod:41
3996 msgid ""
3997 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3998 "that and much more."
3999 msgstr ""
4000
4001 #. type: textblock
4002 #: ../edit/virt-edit.pod:46
4003 msgid "Edit the named files interactively:"
4004 msgstr ""
4005
4006 #. type: verbatim
4007 #: ../edit/virt-edit.pod:48
4008 #, no-wrap
4009 msgid ""
4010 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4011 "\n"
4012 msgstr ""
4013
4014 #. type: verbatim
4015 #: ../edit/virt-edit.pod:50
4016 #, no-wrap
4017 msgid ""
4018 " virt-edit -d mydomain /etc/passwd\n"
4019 "\n"
4020 msgstr ""
4021
4022 #. type: textblock
4023 #: ../edit/virt-edit.pod:52
4024 msgid "For Windows guests, some Windows paths are understood:"
4025 msgstr ""
4026
4027 #. type: verbatim
4028 #: ../edit/virt-edit.pod:54
4029 #, no-wrap
4030 msgid ""
4031 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4032 "\n"
4033 msgstr ""
4034
4035 #. type: textblock
4036 #: ../edit/virt-edit.pod:56
4037 msgid ""
4038 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4039 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4040 msgstr ""
4041
4042 #. type: verbatim
4043 #: ../edit/virt-edit.pod:60
4044 #, no-wrap
4045 msgid ""
4046 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4047 "\n"
4048 msgstr ""
4049
4050 #. type: =item
4051 #: ../edit/virt-edit.pod:81
4052 msgid "B<-b> extension"
4053 msgstr ""
4054
4055 #. type: =item
4056 #: ../edit/virt-edit.pod:83
4057 msgid "B<--backup> extension"
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../edit/virt-edit.pod:85
4062 msgid ""
4063 "Create a backup of the original file I<in the guest disk image>.  The backup "
4064 "has the original filename with C<extension> added."
4065 msgstr ""
4066
4067 #. type: textblock
4068 #: ../edit/virt-edit.pod:88
4069 msgid ""
4070 "Usually the first character of C<extension> would be a dot C<.> so you would "
4071 "write:"
4072 msgstr ""
4073
4074 #. type: verbatim
4075 #: ../edit/virt-edit.pod:91
4076 #, no-wrap
4077 msgid ""
4078 " virt-edit -b .orig [etc]\n"
4079 "\n"
4080 msgstr ""
4081
4082 #. type: textblock
4083 #: ../edit/virt-edit.pod:93
4084 msgid "By default, no backup file is made."
4085 msgstr ""
4086
4087 #. type: =item
4088 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4089 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4090 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4091 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4092 msgid "B<-c URI>"
4093 msgstr ""
4094
4095 #. type: =item
4096 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4097 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4098 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4099 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4100 msgid "B<--connect URI>"
4101 msgstr ""
4102
4103 #. type: textblock
4104 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4105 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4106 #: ../tools/virt-win-reg.pl:135
4107 msgid ""
4108 "If you specify guest block devices directly, then libvirt is not used at all."
4109 msgstr ""
4110
4111 #. type: textblock
4112 #: ../edit/virt-edit.pod:114
4113 msgid ""
4114 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4115 "off so you cannot see what you are typing.  If you are not worried about "
4116 "Tempest attacks and there is no one else in the room you can specify this "
4117 "flag to see what you are typing."
4118 msgstr ""
4119
4120 #. type: =item
4121 #: ../edit/virt-edit.pod:119
4122 msgid "B<-e> EXPR"
4123 msgstr ""
4124
4125 #. type: =item
4126 #: ../edit/virt-edit.pod:121
4127 msgid "B<--expr> EXPR"
4128 msgstr ""
4129
4130 #. type: textblock
4131 #: ../edit/virt-edit.pod:123
4132 msgid ""
4133 "Instead of launching the external editor, non-interactively apply the Perl "
4134 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4135 "EDITING> below."
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../edit/virt-edit.pod:127
4140 msgid ""
4141 "Be careful to properly quote the expression to prevent it from being altered "
4142 "by the shell."
4143 msgstr ""
4144
4145 #. type: textblock
4146 #: ../edit/virt-edit.pod:130
4147 msgid "Note that this option is only available when Perl 5 is installed."
4148 msgstr ""
4149
4150 #. type: =item
4151 #: ../edit/virt-edit.pod:132
4152 msgid "B<--format> raw|qcow2|..."
4153 msgstr ""
4154
4155 #. type: verbatim
4156 #: ../edit/virt-edit.pod:143
4157 #, no-wrap
4158 msgid ""
4159 " virt-edit --format=raw -a disk.img file\n"
4160 "\n"
4161 msgstr ""
4162
4163 #. type: verbatim
4164 #: ../edit/virt-edit.pod:147
4165 #, no-wrap
4166 msgid ""
4167 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4168 "\n"
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../edit/virt-edit.pod:181
4173 msgid "Previous versions of virt-edit allowed you to write either:"
4174 msgstr ""
4175
4176 #. type: verbatim
4177 #: ../edit/virt-edit.pod:187
4178 #, no-wrap
4179 msgid ""
4180 " virt-edit guestname file\n"
4181 "\n"
4182 msgstr ""
4183
4184 #. type: =head1
4185 #: ../edit/virt-edit.pod:195
4186 msgid "NON-INTERACTIVE EDITING"
4187 msgstr ""
4188
4189 #. type: textblock
4190 #: ../edit/virt-edit.pod:197
4191 msgid ""
4192 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4193 "administrator can interactively edit the file."
4194 msgstr ""
4195
4196 #. type: textblock
4197 #: ../edit/virt-edit.pod:200
4198 msgid ""
4199 "There are two ways also to use C<virt-edit> from scripts in order to make "
4200 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4201 "like this, it's less error-prone to write scripts directly using the "
4202 "libguestfs API and Augeas for configuration file editing.)"
4203 msgstr ""
4204
4205 #. type: textblock
4206 #: ../edit/virt-edit.pod:206
4207 msgid ""
4208 "The first method is to temporarily set C<$EDITOR> to any script or program "
4209 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4210 "update C<tmpfile> in place however it likes."
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../edit/virt-edit.pod:210
4215 msgid ""
4216 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4217 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4218 "instances of C<foo> with C<bar> in a file:"
4219 msgstr ""
4220
4221 #. type: verbatim
4222 #: ../edit/virt-edit.pod:214
4223 #, no-wrap
4224 msgid ""
4225 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4226 "\n"
4227 msgstr ""
4228
4229 #. type: textblock
4230 #: ../edit/virt-edit.pod:216
4231 msgid ""
4232 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4233 "For example to delete root's password you could do:"
4234 msgstr ""
4235
4236 #. type: verbatim
4237 #: ../edit/virt-edit.pod:219
4238 #, no-wrap
4239 msgid ""
4240 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4241 "\n"
4242 msgstr ""
4243
4244 #. type: textblock
4245 #: ../edit/virt-edit.pod:221
4246 msgid ""
4247 "What really happens is that the snippet is evaluated as a Perl expression "
4248 "for each line of the file.  The line, including the final C<\\n>, is passed "
4249 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4250 msgstr ""
4251
4252 #. type: textblock
4253 #: ../edit/virt-edit.pod:226
4254 msgid ""
4255 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4256 "C<apache> user account from the password file you can do:"
4257 msgstr ""
4258
4259 #. type: verbatim
4260 #: ../edit/virt-edit.pod:229
4261 #, no-wrap
4262 msgid ""
4263 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4264 "\n"
4265 msgstr ""
4266
4267 #. type: textblock
4268 #: ../edit/virt-edit.pod:231
4269 msgid ""
4270 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4271 "the end of the file is rather difficult this way since there is no concept "
4272 "of \"last line of the file\" - your expression just doesn't get called "
4273 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4274 "want to do this."
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../edit/virt-edit.pod:237
4279 msgid ""
4280 "The variable C<$lineno> contains the current line number.  As is "
4281 "traditional, the first line in the file is number C<1>."
4282 msgstr ""
4283
4284 #. type: textblock
4285 #: ../edit/virt-edit.pod:240
4286 msgid ""
4287 "The return value from the expression is ignored, but the expression may call "
4288 "C<die> in order to abort the whole program, leaving the original file "
4289 "untouched."
4290 msgstr ""
4291
4292 #. type: textblock
4293 #: ../edit/virt-edit.pod:244
4294 msgid ""
4295 "Remember when matching the end of a line that C<$_> may contain the final C<"
4296 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4297 "newline then neither of these.  Thus to match or substitute some text at the "
4298 "end of a line, use this regular expression:"
4299 msgstr ""
4300
4301 #. type: verbatim
4302 #: ../edit/virt-edit.pod:249
4303 #, no-wrap
4304 msgid ""
4305 " /some text(\\r?\\n)?$/\n"
4306 "\n"
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../edit/virt-edit.pod:251
4311 msgid ""
4312 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4313 "$_> itself (since that would remove all newlines from the file):"
4314 msgstr ""
4315
4316 #. type: verbatim
4317 #: ../edit/virt-edit.pod:255
4318 #, no-wrap
4319 msgid ""
4320 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4321 "\n"
4322 msgstr ""
4323
4324 #. type: =head1
4325 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4326 msgid "WINDOWS PATHS"
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../edit/virt-edit.pod:259
4331 msgid ""
4332 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4333 "paths (eg. C<E:\\foo\\bar.txt>)."
4334 msgstr ""
4335
4336 #. type: textblock
4337 #: ../edit/virt-edit.pod:262
4338 msgid "If and only if the guest is running Windows then:"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../edit/virt-edit.pod:268
4343 msgid ""
4344 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4345 "to the correct filesystem."
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../edit/virt-edit.pod:273
4350 msgid ""
4351 "Any backslash (C<\\>) characters in the path are replaced with forward "
4352 "slashes so that libguestfs can process it."
4353 msgstr ""
4354
4355 #. type: textblock
4356 #: ../edit/virt-edit.pod:278
4357 msgid ""
4358 "The path is resolved case insensitively to locate the file that should be "
4359 "edited."
4360 msgstr ""
4361
4362 #. type: textblock
4363 #: ../edit/virt-edit.pod:283
4364 msgid "There are some known shortcomings:"
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../edit/virt-edit.pod:289
4369 msgid "Some NTFS symbolic links may not be followed correctly."
4370 msgstr ""
4371
4372 #. type: textblock
4373 #: ../edit/virt-edit.pod:293
4374 msgid "NTFS junction points that cross filesystems are not followed."
4375 msgstr ""
4376
4377 #. type: textblock
4378 #: ../edit/virt-edit.pod:299
4379 msgid ""
4380 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4381 "C<virt-edit> doesn't work."
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../edit/virt-edit.pod:302
4386 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4387 msgstr ""
4388
4389 #. type: verbatim
4390 #: ../edit/virt-edit.pod:304
4391 #, no-wrap
4392 msgid ""
4393 " guestfish --rw -i -d domname edit /file\n"
4394 "\n"
4395 msgstr ""
4396
4397 #. type: textblock
4398 #: ../edit/virt-edit.pod:306
4399 msgid ""
4400 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4401 "path to the file."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:309
4406 msgid ""
4407 "The command above uses libguestfs's guest inspection feature and so does not "
4408 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4409 "disk images that don't contain guests.  To edit a file on a disk image "
4410 "directly, use:"
4411 msgstr ""
4412
4413 #. type: verbatim
4414 #: ../edit/virt-edit.pod:314
4415 #, no-wrap
4416 msgid ""
4417 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../edit/virt-edit.pod:316
4423 msgid ""
4424 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4425 "the disk image to edit, and C</file> is the full path to the file."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:320
4430 msgid ""
4431 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4432 "C<write> or C<upload> instead:"
4433 msgstr ""
4434
4435 #. type: verbatim
4436 #: ../edit/virt-edit.pod:323
4437 #, no-wrap
4438 msgid ""
4439 " guestfish --rw -i -d domname touch /newfile\n"
4440 "\n"
4441 msgstr ""
4442
4443 #. type: verbatim
4444 #: ../edit/virt-edit.pod:325
4445 #, no-wrap
4446 msgid ""
4447 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4448 "\n"
4449 msgstr ""
4450
4451 #. type: verbatim
4452 #: ../edit/virt-edit.pod:327
4453 #, no-wrap
4454 msgid ""
4455 " guestfish --rw -i -d domname upload localfile /newfile\n"
4456 "\n"
4457 msgstr ""
4458
4459 #. type: =head1
4460 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4461 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4462 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4463 msgid "ENVIRONMENT VARIABLES"
4464 msgstr ""
4465
4466 #. type: =item
4467 #: ../edit/virt-edit.pod:333
4468 msgid "C<EDITOR>"
4469 msgstr ""
4470
4471 #. type: textblock
4472 #: ../edit/virt-edit.pod:335
4473 msgid ""
4474 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4475 "\"emacs -nw\">"
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../edit/virt-edit.pod:338
4480 msgid "If not set, C<vi> is used."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../edit/virt-edit.pod:356
4485 msgid ""
4486 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4487 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4488 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../erlang/examples/guestfs-erlang.pod:5
4493 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4494 msgstr ""
4495
4496 #. type: verbatim
4497 #: ../erlang/examples/guestfs-erlang.pod:9
4498 #, no-wrap
4499 msgid ""
4500 " {ok, G} = guestfs:create(),\n"
4501 " ok = guestfs:add_drive_opts(G, Disk,\n"
4502 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4503 " ok = guestfs:launch(G),\n"
4504 " [Device] = guestfs:list_devices(G),\n"
4505 " ok = guestfs:close(G).\n"
4506 "\n"
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../erlang/examples/guestfs-erlang.pod:18
4511 msgid ""
4512 "This manual page documents how to call libguestfs from the Erlang "
4513 "programming language.  This page just documents the differences from the C "
4514 "API and gives some examples.  If you are not familiar with using libguestfs, "
4515 "you also need to read L<guestfs(3)>."
4516 msgstr ""
4517
4518 #. type: =head2
4519 #: ../erlang/examples/guestfs-erlang.pod:23
4520 msgid "OPENING AND CLOSING THE HANDLE"
4521 msgstr ""
4522
4523 #. type: textblock
4524 #: ../erlang/examples/guestfs-erlang.pod:25
4525 msgid ""
4526 "The Erlang bindings are implemented using an external program called C<erl-"
4527 "guestfs>.  This program must be on the current PATH, or else you should "
4528 "specify the full path to the program:"
4529 msgstr ""
4530
4531 #. type: verbatim
4532 #: ../erlang/examples/guestfs-erlang.pod:29
4533 #, no-wrap
4534 msgid ""
4535 " {ok, G} = guestfs:create().\n"
4536 "\n"
4537 msgstr ""
4538
4539 #. type: verbatim
4540 #: ../erlang/examples/guestfs-erlang.pod:31
4541 #, no-wrap
4542 msgid ""
4543 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4544 "\n"
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../erlang/examples/guestfs-erlang.pod:33
4549 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4550 msgstr ""
4551
4552 #. type: textblock
4553 #: ../erlang/examples/guestfs-erlang.pod:36
4554 msgid "To close the handle:"
4555 msgstr ""
4556
4557 #. type: verbatim
4558 #: ../erlang/examples/guestfs-erlang.pod:38
4559 #, no-wrap
4560 msgid ""
4561 " ok = guestfs:close(G).\n"
4562 "\n"
4563 msgstr ""
4564
4565 #. type: =head2
4566 #: ../erlang/examples/guestfs-erlang.pod:40
4567 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4568 msgstr ""
4569
4570 #. type: textblock
4571 #: ../erlang/examples/guestfs-erlang.pod:42
4572 msgid ""
4573 "For functions that take optional arguments, the first arguments are the non-"
4574 "optional ones.  The last argument is a list of tuples supplying the "
4575 "remaining optional arguments."
4576 msgstr ""
4577
4578 #. type: verbatim
4579 #: ../erlang/examples/guestfs-erlang.pod:46
4580 #, no-wrap
4581 msgid ""
4582 " ok = guestfs:add_drive_opts(G, Disk,\n"
4583 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4584 "\n"
4585 msgstr ""
4586
4587 #. type: textblock
4588 #: ../erlang/examples/guestfs-erlang.pod:49
4589 msgid "If the last argument would be an empty list, you can also omit it:"
4590 msgstr ""
4591
4592 #. type: verbatim
4593 #: ../erlang/examples/guestfs-erlang.pod:51
4594 #, no-wrap
4595 msgid ""
4596 " ok = guestfs:add_drive_opts(G, Disk).\n"
4597 "\n"
4598 msgstr ""
4599
4600 #. type: =head2
4601 #: ../erlang/examples/guestfs-erlang.pod:53
4602 msgid "RETURN VALUES AND ERRORS"
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../erlang/examples/guestfs-erlang.pod:55
4607 msgid ""
4608 "On success, most functions return a C<Result> term (which could be a list, "
4609 "string, tuple etc.).  If there is nothing for the function to return, then "
4610 "the atom C<ok> is returned."
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../erlang/examples/guestfs-erlang.pod:59
4615 msgid "On error, you would see one of the following tuples:"
4616 msgstr ""
4617
4618 #. type: =item
4619 #: ../erlang/examples/guestfs-erlang.pod:63
4620 msgid "C<{error, Msg, Errno}>"
4621 msgstr ""
4622
4623 #. type: textblock
4624 #: ../erlang/examples/guestfs-erlang.pod:65
4625 msgid "This indicates an ordinary error from the function."
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../erlang/examples/guestfs-erlang.pod:67
4630 msgid ""
4631 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4632 "(integer)."
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../erlang/examples/guestfs-erlang.pod:70
4637 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4638 msgstr ""
4639
4640 #. type: =item
4641 #: ../erlang/examples/guestfs-erlang.pod:72
4642 msgid "C<{unknown, Function}>"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../erlang/examples/guestfs-erlang.pod:74
4647 msgid ""
4648 "This indicates that the function you called is not known.  Generally this "
4649 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4650 "which you should not do."
4651 msgstr ""
4652
4653 #. type: textblock
4654 #: ../erlang/examples/guestfs-erlang.pod:78
4655 msgid "C<Function> is the name of the unknown function."
4656 msgstr ""
4657
4658 #. type: =item
4659 #: ../erlang/examples/guestfs-erlang.pod:80
4660 msgid "C<{unknownarg, Arg}>"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../erlang/examples/guestfs-erlang.pod:82
4665 msgid ""
4666 "This indicates that you called a function with optional arguments, with an "
4667 "unknown argument name."
4668 msgstr ""
4669
4670 #. type: textblock
4671 #: ../erlang/examples/guestfs-erlang.pod:85
4672 msgid "C<Arg> is the name of the unknown argument."
4673 msgstr ""
4674
4675 #. type: =head1
4676 #: ../erlang/examples/guestfs-erlang.pod:89
4677 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4678 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4679 #: ../python/examples/guestfs-python.pod:34
4680 #: ../ruby/examples/guestfs-ruby.pod:28
4681 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../erlang/examples/guestfs-erlang.pod:91
4686 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4687 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4688 #: ../python/examples/guestfs-python.pod:36
4689 #: ../ruby/examples/guestfs-ruby.pod:30
4690 msgid "@EXAMPLE1@"
4691 msgstr ""
4692
4693 #. type: =head1
4694 #: ../erlang/examples/guestfs-erlang.pod:93
4695 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4696 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4697 #: ../python/examples/guestfs-python.pod:38
4698 #: ../ruby/examples/guestfs-ruby.pod:32
4699 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4700 msgstr ""
4701
4702 #. type: textblock
4703 #: ../erlang/examples/guestfs-erlang.pod:95
4704 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4705 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4706 #: ../python/examples/guestfs-python.pod:40
4707 #: ../ruby/examples/guestfs-ruby.pod:34
4708 msgid "@EXAMPLE2@"
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../erlang/examples/guestfs-erlang.pod:99
4713 msgid ""
4714 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4715 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4716 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4717 msgstr ""
4718
4719 #. type: =head1
4720 #: ../erlang/examples/guestfs-erlang.pod:110
4721 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4722 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4723 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4724 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4725 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4726 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4727 #: ../python/examples/guestfs-python.pod:54
4728 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4729 #: ../test-tool/libguestfs-test-tool.pod:106
4730 msgid "AUTHORS"
4731 msgstr ""
4732
4733 #. type: textblock
4734 #: ../erlang/examples/guestfs-erlang.pod:112
4735 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4736 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4737 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4738 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4739 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4740 #: ../perl/examples/guestfs-perl.pod:54
4741 #: ../python/examples/guestfs-python.pod:56
4742 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4743 #: ../test-tool/libguestfs-test-tool.pod:108
4744 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../erlang/examples/guestfs-erlang.pod:116
4749 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4750 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4751 msgstr ""
4752
4753 #. type: textblock
4754 #: ../erlang/examples/guestfs-erlang.pod:118
4755 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4756 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4757 #: ../perl/examples/guestfs-perl.pod:60
4758 #: ../python/examples/guestfs-python.pod:62
4759 #: ../ruby/examples/guestfs-ruby.pod:56
4760 msgid ""
4761 "The examples in this manual page may be freely copied, modified and "
4762 "distributed without any restrictions."
4763 msgstr ""
4764
4765 #. type: textblock
4766 #: ../erlang/examples/guestfs-erlang.pod:121
4767 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4768 #: ../java/examples/guestfs-java.pod:69
4769 #: ../ocaml/examples/guestfs-ocaml.pod:102
4770 #: ../perl/examples/guestfs-perl.pod:63
4771 #: ../python/examples/guestfs-python.pod:65
4772 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4773 msgid ""
4774 "This library is free software; you can redistribute it and/or modify it "
4775 "under the terms of the GNU Lesser General Public License as published by the "
4776 "Free Software Foundation; either version 2 of the License, or (at your "
4777 "option) any later version."
4778 msgstr ""
4779
4780 #. type: textblock
4781 #: ../erlang/examples/guestfs-erlang.pod:126
4782 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4783 #: ../java/examples/guestfs-java.pod:74
4784 #: ../ocaml/examples/guestfs-ocaml.pod:107
4785 #: ../perl/examples/guestfs-perl.pod:68
4786 #: ../python/examples/guestfs-python.pod:70
4787 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4788 msgid ""
4789 "This library is distributed in the hope that it will be useful, but WITHOUT "
4790 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4791 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4792 "for more details."
4793 msgstr ""
4794
4795 #. type: textblock
4796 #: ../erlang/examples/guestfs-erlang.pod:131
4797 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4798 #: ../java/examples/guestfs-java.pod:79
4799 #: ../ocaml/examples/guestfs-ocaml.pod:112
4800 #: ../perl/examples/guestfs-perl.pod:73
4801 #: ../python/examples/guestfs-python.pod:75
4802 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4803 msgid ""
4804 "You should have received a copy of the GNU Lesser General Public License "
4805 "along with this library; if not, write to the Free Software Foundation, "
4806 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4807 msgstr ""
4808
4809 #. type: textblock
4810 #: ../examples/guestfs-examples.pod:5
4811 msgid "guestfs-examples - Examples of using libguestfs from C"
4812 msgstr ""
4813
4814 #. type: verbatim
4815 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4816 #, no-wrap
4817 msgid ""
4818 " #include <guestfs.h>\n"
4819 " \n"
4820 msgstr "#include <guestfs.h>\n"
4821
4822 #. type: verbatim
4823 #: ../examples/guestfs-examples.pod:11
4824 #, no-wrap
4825 msgid ""
4826 " guestfs_h *g = guestfs_create ();\n"
4827 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4828 " guestfs_launch (g);\n"
4829 "\n"
4830 msgstr ""
4831
4832 #. type: verbatim
4833 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4834 #, no-wrap
4835 msgid ""
4836 " cc prog.c -o prog -lguestfs\n"
4837 "or:\n"
4838 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4839 "\n"
4840 msgstr ""
4841 " cc prog.c -o prog -lguestfs\n"
4842 "or:\n"
4843 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4844 "\n"
4845
4846 #. type: textblock
4847 #: ../examples/guestfs-examples.pod:21
4848 msgid ""
4849 "This manual page contains examples of calling libguestfs from the C "
4850 "programming language.  If you are not familiar with using libguestfs, you "
4851 "also need to read L<guestfs(3)>."
4852 msgstr ""
4853
4854 #. type: textblock
4855 #: ../examples/guestfs-examples.pod:35
4856 msgid ""
4857 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4858 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4859 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4864 #: ../python/examples/guestfs-python.pod:60
4865 #: ../ruby/examples/guestfs-ruby.pod:54
4866 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4867 msgstr ""
4868
4869 #. type: =end
4870 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4871 msgid "comment"
4872 msgstr ""
4873
4874 #. type: textblock
4875 #: ../examples/guestfs-recipes.pod:5
4876 msgid ""
4877 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4878 "here.  The only way which works for both sorts of output is to just write "
4879 "the URL directly.  Do NOT use L<...> for URLs."
4880 msgstr ""
4881
4882 #. type: textblock
4883 #: ../examples/guestfs-recipes.pod:9
4884 msgid ""
4885 "We break with tradition here and don't use ALL CAPS for the section "
4886 "headings, as this makes them much easier to read."
4887 msgstr ""
4888
4889 #. type: textblock
4890 #: ../examples/guestfs-recipes.pod:16
4891 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../examples/guestfs-recipes.pod:20
4896 msgid ""
4897 "This page contains recipes for and links to things you can do using "
4898 "libguestfs, L<guestfish(1)> and the virt tools."
4899 msgstr ""
4900
4901 #. type: =head1
4902 #: ../examples/guestfs-recipes.pod:23
4903 msgid "Audit a virtual machine for setuid files"
4904 msgstr ""
4905
4906 #. type: textblock
4907 #: ../examples/guestfs-recipes.pod:25
4908 msgid ""
4909 "The link below contains a small program which can be used to audit a Linux "
4910 "virtual machine to see what setuid and setgid files it contains."
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../examples/guestfs-recipes.pod:28
4915 msgid ""
4916 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4917 "files/#content"
4918 msgstr ""
4919
4920 #. type: =head1
4921 #: ../examples/guestfs-recipes.pod:30
4922 msgid "Change the background image in a Windows XP VM"
4923 msgstr ""
4924
4925 #. type: textblock
4926 #: ../examples/guestfs-recipes.pod:32
4927 msgid ""
4928 "The links below explain how to use L<guestfish(1)> to change the background "
4929 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4930 "be substantially different for each version of Windows."
4931 msgstr ""
4932
4933 #. type: textblock
4934 #: ../examples/guestfs-recipes.pod:37
4935 msgid ""
4936 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4937 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4938 msgstr ""
4939
4940 #. type: =head1
4941 #: ../examples/guestfs-recipes.pod:40
4942 msgid "Cloning a virtual machine (Linux)"
4943 msgstr ""
4944
4945 #. type: textblock
4946 #: ../examples/guestfs-recipes.pod:42
4947 msgid ""
4948 "The guestfish technique described in the link below works well for most "
4949 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4950 "slightly."
4951 msgstr ""
4952
4953 #. type: textblock
4954 #: ../examples/guestfs-recipes.pod:46
4955 msgid ""
4956 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4957 "vm/#content"
4958 msgstr ""
4959
4960 #. type: textblock
4961 #: ../examples/guestfs-recipes.pod:48
4962 msgid ""
4963 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4964 "discussion."
4965 msgstr ""
4966
4967 #. type: textblock
4968 #: ../examples/guestfs-recipes.pod:51
4969 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4970 msgstr ""
4971
4972 #. type: =head1
4973 #: ../examples/guestfs-recipes.pod:53
4974 msgid "Cloning a virtual machine (Windows)"
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../examples/guestfs-recipes.pod:55
4979 msgid ""
4980 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4981 "straightforward.  Currently there is code in the Aeolus Oz project which "
4982 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4983 "we may add sysprepping ability."
4984 msgstr ""
4985
4986 #. type: textblock
4987 #: ../examples/guestfs-recipes.pod:60
4988 msgid ""
4989 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
4990 "list/2011-May/msg00019.html"
4991 msgstr ""
4992
4993 #. type: =head1
4994 #: ../examples/guestfs-recipes.pod:63
4995 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../examples/guestfs-recipes.pod:65
5000 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5001 msgstr ""
5002
5003 #. type: verbatim
5004 #: ../examples/guestfs-recipes.pod:67
5005 #, no-wrap
5006 msgid ""
5007 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5008 "\n"
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../examples/guestfs-recipes.pod:69
5013 msgid "To export just a subdirectory, eg. C</files>, do:"
5014 msgstr ""
5015
5016 #. type: verbatim
5017 #: ../examples/guestfs-recipes.pod:71
5018 #, no-wrap
5019 msgid ""
5020 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5021 "\n"
5022 msgstr ""
5023
5024 #. type: =head1
5025 #: ../examples/guestfs-recipes.pod:73
5026 msgid "Create empty disk images"
5027 msgstr ""
5028
5029 #. type: textblock
5030 #: ../examples/guestfs-recipes.pod:75
5031 msgid ""
5032 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5033 "The useful guide below explains the options available."
5034 msgstr ""
5035
5036 #. type: textblock
5037 #: ../examples/guestfs-recipes.pod:78
5038 msgid ""
5039 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5040 "#content"
5041 msgstr ""
5042
5043 #. type: =head1
5044 #: ../examples/guestfs-recipes.pod:80
5045 msgid "Dump raw filesystem content from inside a disk image or VM"
5046 msgstr ""
5047
5048 #. type: textblock
5049 #: ../examples/guestfs-recipes.pod:82
5050 msgid ""
5051 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5052 "filesystem content from any filesystem in a disk image or a VM (even one "
5053 "which is encrypted or buried inside an LV):"
5054 msgstr ""
5055
5056 #. type: verbatim
5057 #: ../examples/guestfs-recipes.pod:86
5058 #, no-wrap
5059 msgid ""
5060 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5061 "\n"
5062 msgstr ""
5063
5064 #. type: verbatim
5065 #: ../examples/guestfs-recipes.pod:88
5066 #, no-wrap
5067 msgid ""
5068 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5069 "\n"
5070 msgstr ""
5071
5072 #. type: textblock
5073 #: ../examples/guestfs-recipes.pod:90
5074 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5075 msgstr ""
5076
5077 #. type: =head1
5078 #: ../examples/guestfs-recipes.pod:92
5079 msgid "Edit grub configuration in a VM"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../examples/guestfs-recipes.pod:94
5084 msgid "You can use this to:"
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../examples/guestfs-recipes.pod:100
5089 msgid "Fix a virtual machine that does not boot."
5090 msgstr ""
5091
5092 #. type: textblock
5093 #: ../examples/guestfs-recipes.pod:104
5094 msgid "Change which kernel is used to boot the VM."
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../examples/guestfs-recipes.pod:108
5099 msgid "Change kernel command line options."
5100 msgstr ""
5101
5102 #. type: textblock
5103 #: ../examples/guestfs-recipes.pod:112
5104 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5105 msgstr ""
5106
5107 #. type: verbatim
5108 #: ../examples/guestfs-recipes.pod:114
5109 #, no-wrap
5110 msgid ""
5111 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5112 "\n"
5113 msgstr ""
5114
5115 #. type: textblock
5116 #: ../examples/guestfs-recipes.pod:116
5117 msgid ""
5118 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5119 "this:"
5120 msgstr ""
5121
5122 #. type: verbatim
5123 #: ../examples/guestfs-recipes.pod:119
5124 #, no-wrap
5125 msgid ""
5126 " virt-rescue -d BrokenGuest\n"
5127 "\n"
5128 msgstr ""
5129
5130 #. type: =head1
5131 #: ../examples/guestfs-recipes.pod:121
5132 msgid "Export any directory from a VM"
5133 msgstr ""
5134
5135 #. type: textblock
5136 #: ../examples/guestfs-recipes.pod:123
5137 msgid ""
5138 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5139 msgstr ""
5140
5141 #. type: verbatim
5142 #: ../examples/guestfs-recipes.pod:126
5143 #, no-wrap
5144 msgid ""
5145 " virt-copy-out -d Guest /home .\n"
5146 "\n"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5151 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5152 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5153 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5154 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5155 #: ../tools/virt-win-reg.pl:717
5156 msgid "Notes:"
5157 msgstr ""
5158
5159 #. type: textblock
5160 #: ../examples/guestfs-recipes.pod:134
5161 msgid ""
5162 "The final dot of the command is not a printing error.  It means we want to "
5163 "copy out to the current directory."
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../examples/guestfs-recipes.pod:139
5168 msgid "This creates a directory called C<home> under the current directory."
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../examples/guestfs-recipes.pod:143
5173 msgid ""
5174 "If the guest is a Windows guest then you can use drive letters and "
5175 "backslashes, but you must prefix the path with C<win:> and quote it to "
5176 "protect it from the shell, like this:"
5177 msgstr ""
5178
5179 #. type: verbatim
5180 #: ../examples/guestfs-recipes.pod:147
5181 #, no-wrap
5182 msgid ""
5183 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5184 "\n"
5185 msgstr ""
5186
5187 #. type: textblock
5188 #: ../examples/guestfs-recipes.pod:149
5189 msgid "To get the output as a compressed tarball, do:"
5190 msgstr ""
5191
5192 #. type: verbatim
5193 #: ../examples/guestfs-recipes.pod:151
5194 #, no-wrap
5195 msgid ""
5196 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5197 "\n"
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../examples/guestfs-recipes.pod:153
5202 msgid ""
5203 "Although it sounds tempting, this is usually not a reliable way to get a "
5204 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5205 "org/FAQ.html#backup"
5206 msgstr ""
5207
5208 #. type: =head1
5209 #: ../examples/guestfs-recipes.pod:157
5210 msgid "Find out which user is using the most space"
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../examples/guestfs-recipes.pod:159
5215 msgid ""
5216 "This simple script examines a Linux guest to find out which user is using "
5217 "the most space in their home directory:"
5218 msgstr ""
5219
5220 #. type: verbatim
5221 #: ../examples/guestfs-recipes.pod:162
5222 #, no-wrap
5223 msgid ""
5224 " #!/bin/sh -\n"
5225 " \n"
5226 msgstr ""
5227
5228 #. type: verbatim
5229 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5230 #, no-wrap
5231 msgid ""
5232 " set -e\n"
5233 " \n"
5234 msgstr ""
5235
5236 #. type: verbatim
5237 #: ../examples/guestfs-recipes.pod:166
5238 #, no-wrap
5239 msgid ""
5240 " vm=\"$1\"\n"
5241 " dir=/home\n"
5242 " \n"
5243 msgstr ""
5244
5245 #. type: verbatim
5246 #: ../examples/guestfs-recipes.pod:169
5247 #, no-wrap
5248 msgid ""
5249 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5250 " \n"
5251 msgstr ""
5252
5253 #. type: verbatim
5254 #: ../examples/guestfs-recipes.pod:171
5255 #, no-wrap
5256 msgid ""
5257 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5258 "     echo -n \"$dir/$d\"\n"
5259 "     echo -ne '\\t'\n"
5260 "     guestfish --remote du \"$dir/$d\";\n"
5261 " done | sort -nr -k 2\n"
5262 " \n"
5263 msgstr ""
5264
5265 #. type: verbatim
5266 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5267 #, no-wrap
5268 msgid ""
5269 " guestfish --remote exit\n"
5270 "\n"
5271 msgstr ""
5272
5273 #. type: =head1
5274 #: ../examples/guestfs-recipes.pod:179
5275 msgid "Get DHCP address from a VM"
5276 msgstr ""
5277
5278 #. type: textblock
5279 #: ../examples/guestfs-recipes.pod:181
5280 msgid ""
5281 "The link below explains the many different possible techniques for getting "
5282 "the last assigned DHCP address of a virtual machine."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../examples/guestfs-recipes.pod:184
5287 msgid ""
5288 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5289 "a-virtual-machine-disk-image/#content"
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../examples/guestfs-recipes.pod:186
5294 msgid ""
5295 "In the libguestfs source examples directory you will find the latest version "
5296 "of the C<virt-dhcp-address.c> program."
5297 msgstr ""
5298
5299 #. type: =head1
5300 #: ../examples/guestfs-recipes.pod:189
5301 msgid "Get the operating system product name string"
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../examples/guestfs-recipes.pod:191
5306 msgid "Save the following script into a file called C<product-name.sh>:"
5307 msgstr ""
5308
5309 #. type: verbatim
5310 #: ../examples/guestfs-recipes.pod:193
5311 #, no-wrap
5312 msgid ""
5313 " #!/bin/sh -\n"
5314 " set -e\n"
5315 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5316 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5317 " guestfish --remote inspect-get-product-name \"$root\"\n"
5318 " guestfish --remote exit\n"
5319 "\n"
5320 msgstr ""
5321
5322 #. type: textblock
5323 #: ../examples/guestfs-recipes.pod:200
5324 msgid "Make the script executable and run it on a named guest:"
5325 msgstr ""
5326
5327 #. type: verbatim
5328 #: ../examples/guestfs-recipes.pod:202
5329 #, no-wrap
5330 msgid ""
5331 " # product-name.sh RHEL60x64\n"
5332 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5333 "\n"
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../examples/guestfs-recipes.pod:205
5338 msgid ""
5339 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5340 "C<xpath> command line tool or from your favourite programming language:"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../examples/guestfs-recipes.pod:209
5345 #, no-wrap
5346 msgid ""
5347 " # virt-inspector RHEL60x64 > xml\n"
5348 " # xpath '//product_name' < xml\n"
5349 " Found 1 nodes:\n"
5350 " -- NODE --\n"
5351 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5352 "\n"
5353 msgstr ""
5354
5355 #. type: =head1
5356 #: ../examples/guestfs-recipes.pod:215
5357 msgid "Get the default boot kernel for a Linux VM"
5358 msgstr ""
5359
5360 #. type: textblock
5361 #: ../examples/guestfs-recipes.pod:217
5362 msgid ""
5363 "The link below contains a program to print the default boot kernel for a "
5364 "Linux VM."
5365 msgstr ""
5366
5367 #. type: textblock
5368 #: ../examples/guestfs-recipes.pod:220
5369 msgid ""
5370 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5371 "kernel-for-a-vm/#content"
5372 msgstr ""
5373
5374 #. type: textblock
5375 #: ../examples/guestfs-recipes.pod:222
5376 msgid ""
5377 "It uses Augeas, and the technique is generally applicable for many different "
5378 "tasks, such as:"
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../examples/guestfs-recipes.pod:229
5383 msgid "listing the user accounts in the guest"
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../examples/guestfs-recipes.pod:233
5388 msgid "what repositories is it configured to use"
5389 msgstr ""
5390
5391 #. type: textblock
5392 #: ../examples/guestfs-recipes.pod:237
5393 msgid "what NTP servers does it connect to"
5394 msgstr ""
5395
5396 #. type: textblock
5397 #: ../examples/guestfs-recipes.pod:241
5398 msgid "what were the boot messages last time it booted"
5399 msgstr ""
5400
5401 #. type: textblock
5402 #: ../examples/guestfs-recipes.pod:245
5403 msgid "listing who was logged in recently"
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../examples/guestfs-recipes.pod:249
5408 msgid "http://augeas.net/"
5409 msgstr ""
5410
5411 #. type: =head1
5412 #: ../examples/guestfs-recipes.pod:251
5413 msgid "Install RPMs in a guest"
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../examples/guestfs-recipes.pod:253
5418 msgid ""
5419 "The link below contains a method to install RPMs in a guest.  In fact the "
5420 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5421 "installs them next time the guest is booted.  You could use this technique "
5422 "to install vital security updates in an offline guest."
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../examples/guestfs-recipes.pod:259
5427 msgid ""
5428 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5429 msgstr ""
5430
5431 #. type: =head1
5432 #: ../examples/guestfs-recipes.pod:261
5433 msgid "List applications installed in a VM"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../examples/guestfs-recipes.pod:263
5438 msgid "Save the following to a file C<list-apps.sh>:"
5439 msgstr ""
5440
5441 #. type: verbatim
5442 #: ../examples/guestfs-recipes.pod:265
5443 #, no-wrap
5444 msgid ""
5445 " #!/bin/sh -\n"
5446 " set -e\n"
5447 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5448 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5449 " guestfish --remote inspect-list-applications \"$root\"\n"
5450 " guestfish --remote exit\n"
5451 "\n"
5452 msgstr ""
5453
5454 #. type: textblock
5455 #: ../examples/guestfs-recipes.pod:272
5456 msgid ""
5457 "Make the file executable and then you can run it on any named virtual "
5458 "machine:"
5459 msgstr ""
5460
5461 #. type: verbatim
5462 #: ../examples/guestfs-recipes.pod:275
5463 #, no-wrap
5464 msgid ""
5465 " # list-apps.sh WinGuest\n"
5466 " [0] = {\n"
5467 "   app_name: Mozilla Firefox (3.6.12)\n"
5468 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5469 "   app_epoch: 0\n"
5470 "   app_version: 3.6.12 (en-GB)\n"
5471 "   app_release:\n"
5472 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5473 "   app_trans_path:\n"
5474 "   app_publisher: Mozilla\n"
5475 "   app_url: http://www.mozilla.com/en-GB/\n"
5476 "   app_source_package:\n"
5477 "   app_summary:\n"
5478 "   app_description: Mozilla Firefox\n"
5479 " }\n"
5480 " [1] = {\n"
5481 "   app_name: VLC media player\n"
5482 "   app_display_name: VLC media player 1.1.5\n"
5483 "   app_epoch: 0\n"
5484 "   app_version: 1.1.5\n"
5485 "   app_release:\n"
5486 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5487 "   app_trans_path:\n"
5488 "   app_publisher: VideoLAN\n"
5489 "   app_url: http://www.videolan.org/\n"
5490 "   app_source_package:\n"
5491 "   app_summary:\n"
5492 "   app_description:\n"
5493 " }\n"
5494 "\n"
5495 msgstr ""
5496
5497 #. type: textblock
5498 #: ../examples/guestfs-recipes.pod:305
5499 msgid ""
5500 "If you want to run the script on disk images (instead of libvirt virtual "
5501 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5502 ">."
5503 msgstr ""
5504
5505 #. type: =head1
5506 #: ../examples/guestfs-recipes.pod:309
5507 msgid "List files and directories in a VM"
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../examples/guestfs-recipes.pod:311
5512 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5513 msgstr ""
5514
5515 #. type: verbatim
5516 #: ../examples/guestfs-recipes.pod:313
5517 #, no-wrap
5518 msgid ""
5519 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5520 "\n"
5521 msgstr ""
5522
5523 #. type: =head1
5524 #: ../examples/guestfs-recipes.pod:315
5525 msgid "List services in a Windows VM"
5526 msgstr ""
5527
5528 #. type: textblock
5529 #: ../examples/guestfs-recipes.pod:317
5530 msgid ""
5531 "The link below contains a script that can be used to list out the services "
5532 "from a Windows VM, and whether those services run at boot time or are loaded "
5533 "on demand."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-recipes.pod:321
5538 msgid ""
5539 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5540 "#content"
5541 msgstr ""
5542
5543 #. type: =head1
5544 #: ../examples/guestfs-recipes.pod:323
5545 msgid "Make a disk image sparse"
5546 msgstr ""
5547
5548 #. type: textblock
5549 #: ../examples/guestfs-recipes.pod:325
5550 msgid ""
5551 "The link below contains some guides for making a disk image sparse (or "
5552 "reintroducing sparseness)."
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../examples/guestfs-recipes.pod:328
5557 msgid ""
5558 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5559 msgstr ""
5560
5561 #. type: =head1
5562 #: ../examples/guestfs-recipes.pod:330
5563 msgid "Monitor disk usage over time"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../examples/guestfs-recipes.pod:332
5568 msgid ""
5569 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5570 "The link below contains a guide."
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../examples/guestfs-recipes.pod:335
5575 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5576 msgstr ""
5577
5578 #. type: =head1
5579 #: ../examples/guestfs-recipes.pod:337
5580 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../examples/guestfs-recipes.pod:339
5585 msgid ""
5586 "L<guestfish(1)> plus the tools described in the link below can be used to "
5587 "read out the Windows Event Log from any virtual machine running Windows "
5588 "Vista or a later version."
5589 msgstr ""
5590
5591 #. type: textblock
5592 #: ../examples/guestfs-recipes.pod:343
5593 msgid ""
5594 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5595 "guestfish/#content"
5596 msgstr ""
5597
5598 #. type: =head1
5599 #: ../examples/guestfs-recipes.pod:345
5600 msgid "Remove root password (Linux)"
5601 msgstr ""
5602
5603 #. type: textblock
5604 #: ../examples/guestfs-recipes.pod:347
5605 msgid ""
5606 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5607 "files.  One use is to remove the root password from a Linux guest:"
5608 msgstr ""
5609
5610 #. type: verbatim
5611 #: ../examples/guestfs-recipes.pod:350
5612 #, no-wrap
5613 msgid ""
5614 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5615 "\n"
5616 msgstr ""
5617
5618 #. type: =head1
5619 #: ../examples/guestfs-recipes.pod:352
5620 msgid "Remove Administrator password (Windows)"
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../examples/guestfs-recipes.pod:354
5625 msgid ""
5626 "The link below contains one technique for removing the Administrator "
5627 "password from a Windows VM, or to be more precise, it gives you a command "
5628 "prompt the next time you log in which you can use to bypass any security:"
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../examples/guestfs-recipes.pod:359
5633 msgid ""
5634 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5635 "administrator-password-with-guestfish/"
5636 msgstr ""
5637
5638 #. type: =head1
5639 #: ../examples/guestfs-recipes.pod:361
5640 msgid "Unpack a live CD"
5641 msgstr ""
5642
5643 #. type: textblock
5644 #: ../examples/guestfs-recipes.pod:363
5645 msgid ""
5646 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5647 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5648 "layers, as outlined in the guide below."
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../examples/guestfs-recipes.pod:367
5653 msgid ""
5654 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5655 "cd/#content"
5656 msgstr ""
5657
5658 #. type: =head1
5659 #: ../examples/guestfs-recipes.pod:369
5660 msgid "Uploading and downloading files"
5661 msgstr ""
5662
5663 #. type: textblock
5664 #: ../examples/guestfs-recipes.pod:371
5665 msgid ""
5666 "The link below contains general tips on uploading (copying in)  and "
5667 "downloading (copying out) files from VMs."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../examples/guestfs-recipes.pod:374
5672 msgid ""
5673 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5674 msgstr ""
5675
5676 #. type: =head1
5677 #: ../examples/guestfs-recipes.pod:376
5678 msgid "Use libguestfs tools on VMware ESX guests"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../examples/guestfs-recipes.pod:378
5683 msgid ""
5684 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5685 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../examples/guestfs-recipes.pod:382
5690 msgid ""
5691 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5692 "guests/#content"
5693 msgstr ""
5694
5695 #. type: textblock
5696 #: ../examples/guestfs-recipes.pod:386
5697 msgid ""
5698 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5699 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5700 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5701 msgstr ""
5702
5703 #. type: textblock
5704 #: ../examples/guestfs-recipes.pod:403
5705 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5706 msgstr ""
5707
5708 #. type: =head2
5709 #: ../fish/guestfish-actions.pod:1
5710 msgid "add-cdrom"
5711 msgstr ""
5712
5713 #. type: verbatim
5714 #: ../fish/guestfish-actions.pod:3
5715 #, no-wrap
5716 msgid ""
5717 " add-cdrom filename\n"
5718 "\n"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5723 msgid "This function adds a virtual CD-ROM disk image to the guest."
5724 msgstr ""
5725
5726 #. type: textblock
5727 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5728 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5729 msgstr ""
5730
5731 #. type: textblock
5732 #: ../fish/guestfish-actions.pod:15
5733 msgid ""
5734 "This call checks for the existence of C<filename>.  This stops you from "
5735 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5736 "and C<http:> URLs.  To specify those, use the general L</config> call "
5737 "instead."
5738 msgstr ""
5739
5740 #. type: textblock
5741 #: ../fish/guestfish-actions.pod:22
5742 msgid ""
5743 "If you just want to add an ISO file (often you use this as an efficient way "
5744 "to transfer large files into the guest), then you should probably use L</add-"
5745 "drive-ro> instead."
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5750 #: ../fish/guestfish-actions.pod:182
5751 msgid ""
5752 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5753 "instead."
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5758 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5759 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5760 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5761 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5762 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5763 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5764 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5765 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5766 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5767 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5768 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5769 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5770 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5771 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5772 #: ../src/guestfs-actions.pod:8059
5773 msgid ""
5774 "Deprecated functions will not be removed from the API, but the fact that "
5775 "they are deprecated indicates that there are problems with correct use of "
5776 "these functions."
5777 msgstr ""
5778
5779 #. type: =head2
5780 #: ../fish/guestfish-actions.pod:35
5781 msgid "add-domain"
5782 msgstr ""
5783
5784 #. type: =head2
5785 #: ../fish/guestfish-actions.pod:37
5786 msgid "domain"
5787 msgstr ""
5788
5789 #. type: verbatim
5790 #: ../fish/guestfish-actions.pod:39
5791 #, no-wrap
5792 msgid ""
5793 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5794 "\n"
5795 msgstr ""
5796
5797 #. type: textblock
5798 #: ../fish/guestfish-actions.pod:41
5799 msgid ""
5800 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5801 "It works by connecting to libvirt, requesting the domain and domain XML from "
5802 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5803 msgstr ""
5804
5805 #. type: textblock
5806 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5807 msgid ""
5808 "The number of disks added is returned.  This operation is atomic: if an "
5809 "error is returned, then no disks are added."
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5814 msgid ""
5815 "This function does some minimal checks to make sure the libvirt domain is "
5816 "not running (unless C<readonly> is true).  In a future version we will try "
5817 "to acquire the libvirt lock on each disk."
5818 msgstr ""
5819
5820 #. type: textblock
5821 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5822 msgid ""
5823 "Disks must be accessible locally.  This often means that adding disks from a "
5824 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5825 "unless those disks are accessible via the same device path locally too."
5826 msgstr ""
5827
5828 #. type: textblock
5829 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5830 msgid ""
5831 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5832 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5833 "libvirt URI (or one set through an environment variable, see the libvirt "
5834 "documentation for full details)."
5835 msgstr ""
5836
5837 #. type: textblock
5838 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5839 msgid ""
5840 "The optional C<live> flag controls whether this call will try to connect to "
5841 "a running virtual machine C<guestfsd> process if it sees a suitable "
5842 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5843 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5844 "DAEMONS> for more information."
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5849 msgid ""
5850 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5851 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5852 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5853 "as usual."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../fish/guestfish-actions.pod:76
5858 msgid ""
5859 "The other optional parameters are passed directly through to L</add-drive-"
5860 "opts>."
5861 msgstr ""
5862
5863 #. type: textblock
5864 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5865 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5866 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5867 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5868 #: ../fish/guestfish-actions.pod:3522
5869 msgid ""
5870 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5871 msgstr ""
5872
5873 #. type: =head2
5874 #: ../fish/guestfish-actions.pod:81
5875 msgid "add-drive"
5876 msgstr ""
5877
5878 #. type: verbatim
5879 #: ../fish/guestfish-actions.pod:83
5880 #, no-wrap
5881 msgid ""
5882 " add-drive filename\n"
5883 "\n"
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:85
5888 msgid ""
5889 "This function is the equivalent of calling L</add-drive-opts> with no "
5890 "optional parameters, so the disk is added writable, with the format being "
5891 "detected automatically."
5892 msgstr ""
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:89
5896 msgid ""
5897 "Automatic detection of the format opens you up to a potential security hole "
5898 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5899 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5900 "you should think about replacing calls to this function with calls to L</add-"
5901 "drive-opts>, and specifying the format."
5902 msgstr ""
5903
5904 #. type: =head2
5905 #: ../fish/guestfish-actions.pod:96
5906 msgid "add-drive-opts"
5907 msgstr ""
5908
5909 #. type: =head2
5910 #: ../fish/guestfish-actions.pod:98
5911 msgid "add"
5912 msgstr ""
5913
5914 #. type: verbatim
5915 #: ../fish/guestfish-actions.pod:100
5916 #, no-wrap
5917 msgid ""
5918 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
5919 "\n"
5920 msgstr ""
5921
5922 #. type: textblock
5923 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
5924 msgid ""
5925 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5926 "The first time you call this function, the disk appears as C</dev/sda>, the "
5927 "second time as C</dev/sdb>, and so on."
5928 msgstr ""
5929
5930 #. type: textblock
5931 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
5932 msgid ""
5933 "You don't necessarily need to be root when using libguestfs.  However you "
5934 "obviously do need sufficient permissions to access the filename for whatever "
5935 "operations you want to perform (ie. read access if you just want to read the "
5936 "image or write access if you want to modify the image)."
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
5941 msgid "This call checks that C<filename> exists."
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
5946 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
5947 msgid "The optional arguments are:"
5948 msgstr ""
5949
5950 #. type: =item
5951 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
5952 msgid "C<readonly>"
5953 msgstr ""
5954
5955 #. type: textblock
5956 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
5957 msgid ""
5958 "If true then the image is treated as read-only.  Writes are still allowed, "
5959 "but they are stored in a temporary snapshot overlay which is discarded at "
5960 "the end.  The disk that you add is not modified."
5961 msgstr ""
5962
5963 #. type: =item
5964 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
5965 msgid "C<format>"
5966 msgstr ""
5967
5968 #. type: textblock
5969 #: ../fish/guestfish-actions.pod:127
5970 msgid ""
5971 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5972 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5973 "include C<raw> and C<qcow2>."
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
5978 msgid ""
5979 "Automatic detection of the format opens you up to a potential security hole "
5980 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5981 "RHBZ#642934.  Specifying the format closes this security hole."
5982 msgstr ""
5983
5984 #. type: =item
5985 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
5986 msgid "C<iface>"
5987 msgstr ""
5988
5989 #. type: textblock
5990 #: ../fish/guestfish-actions.pod:138
5991 msgid ""
5992 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5993 "add-drive-with-if> call (q.v.)"
5994 msgstr ""
5995
5996 #. type: =item
5997 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
5998 msgid "C<name>"
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6003 msgid ""
6004 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6005 "a hint to the guest inspection process if it is available."
6006 msgstr ""
6007
6008 #. type: =head2
6009 #: ../fish/guestfish-actions.pod:150
6010 msgid "add-drive-ro"
6011 msgstr ""
6012
6013 #. type: =head2
6014 #: ../fish/guestfish-actions.pod:152
6015 msgid "add-ro"
6016 msgstr ""
6017
6018 #. type: verbatim
6019 #: ../fish/guestfish-actions.pod:154
6020 #, no-wrap
6021 msgid ""
6022 " add-drive-ro filename\n"
6023 "\n"
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:156
6028 msgid ""
6029 "This function is the equivalent of calling L</add-drive-opts> with the "
6030 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6031 "is added read-only, with the format being detected automatically."
6032 msgstr ""
6033
6034 #. type: =head2
6035 #: ../fish/guestfish-actions.pod:161
6036 msgid "add-drive-ro-with-if"
6037 msgstr ""
6038
6039 #. type: verbatim
6040 #: ../fish/guestfish-actions.pod:163
6041 #, no-wrap
6042 msgid ""
6043 " add-drive-ro-with-if filename iface\n"
6044 "\n"
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:165
6049 msgid ""
6050 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6051 "interface emulation to use at run time."
6052 msgstr ""
6053
6054 #. type: =head2
6055 #: ../fish/guestfish-actions.pod:175
6056 msgid "add-drive-with-if"
6057 msgstr ""
6058
6059 #. type: verbatim
6060 #: ../fish/guestfish-actions.pod:177
6061 #, no-wrap
6062 msgid ""
6063 " add-drive-with-if filename iface\n"
6064 "\n"
6065 msgstr ""
6066
6067 #. type: textblock
6068 #: ../fish/guestfish-actions.pod:179
6069 msgid ""
6070 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6071 "interface emulation to use at run time."
6072 msgstr ""
6073
6074 #. type: =head2
6075 #: ../fish/guestfish-actions.pod:189
6076 msgid "aug-clear"
6077 msgstr ""
6078
6079 #. type: verbatim
6080 #: ../fish/guestfish-actions.pod:191
6081 #, no-wrap
6082 msgid ""
6083 " aug-clear augpath\n"
6084 "\n"
6085 msgstr ""
6086
6087 #. type: textblock
6088 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6089 msgid ""
6090 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6091 "L<augtool(1)> C<clear> command."
6092 msgstr ""
6093
6094 #. type: =head2
6095 #: ../fish/guestfish-actions.pod:196
6096 msgid "aug-close"
6097 msgstr ""
6098
6099 #. type: verbatim
6100 #: ../fish/guestfish-actions.pod:198
6101 #, no-wrap
6102 msgid ""
6103 " aug-close\n"
6104 "\n"
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:200
6109 msgid ""
6110 "Close the current Augeas handle and free up any resources used by it.  After "
6111 "calling this, you have to call L</aug-init> again before you can use any "
6112 "other Augeas functions."
6113 msgstr ""
6114
6115 #. type: =head2
6116 #: ../fish/guestfish-actions.pod:205
6117 msgid "aug-defnode"
6118 msgstr ""
6119
6120 #. type: verbatim
6121 #: ../fish/guestfish-actions.pod:207
6122 #, no-wrap
6123 msgid ""
6124 " aug-defnode name expr val\n"
6125 "\n"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6130 msgid ""
6131 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../fish/guestfish-actions.pod:212
6136 msgid ""
6137 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6138 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6139 "containing that single node."
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6144 msgid ""
6145 "On success this returns a pair containing the number of nodes in the "
6146 "nodeset, and a boolean flag if a node was created."
6147 msgstr ""
6148
6149 #. type: =head2
6150 #: ../fish/guestfish-actions.pod:220
6151 msgid "aug-defvar"
6152 msgstr ""
6153
6154 #. type: verbatim
6155 #: ../fish/guestfish-actions.pod:222
6156 #, no-wrap
6157 msgid ""
6158 " aug-defvar name expr\n"
6159 "\n"
6160 msgstr ""
6161
6162 #. type: textblock
6163 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6164 msgid ""
6165 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6166 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6167 msgstr ""
6168
6169 #. type: textblock
6170 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6171 msgid ""
6172 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6173 "evaluates to something which is not a nodeset."
6174 msgstr ""
6175
6176 #. type: =head2
6177 #: ../fish/guestfish-actions.pod:231
6178 msgid "aug-get"
6179 msgstr ""
6180
6181 #. type: verbatim
6182 #: ../fish/guestfish-actions.pod:233
6183 #, no-wrap
6184 msgid ""
6185 " aug-get augpath\n"
6186 "\n"
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6191 msgid ""
6192 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6193 "node, the C<value> is returned."
6194 msgstr ""
6195
6196 #. type: =head2
6197 #: ../fish/guestfish-actions.pod:238
6198 msgid "aug-init"
6199 msgstr ""
6200
6201 #. type: verbatim
6202 #: ../fish/guestfish-actions.pod:240
6203 #, no-wrap
6204 msgid ""
6205 " aug-init root flags\n"
6206 "\n"
6207 msgstr ""
6208
6209 #. type: textblock
6210 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6211 msgid ""
6212 "Create a new Augeas handle for editing configuration files.  If there was "
6213 "any previous Augeas handle associated with this guestfs session, then it is "
6214 "closed."
6215 msgstr ""
6216
6217 #. type: textblock
6218 #: ../fish/guestfish-actions.pod:246
6219 msgid "You must call this before using any other L</aug-*> commands."
6220 msgstr ""
6221
6222 #. type: textblock
6223 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6224 msgid ""
6225 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6226 msgstr ""
6227
6228 #. type: textblock
6229 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6230 msgid ""
6231 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6232 "logical I<or> of the following integers:"
6233 msgstr ""
6234
6235 #. type: =item
6236 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6237 msgid "C<AUG_SAVE_BACKUP> = 1"
6238 msgstr ""
6239
6240 #. type: textblock
6241 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6242 msgid "Keep the original file with a C<.augsave> extension."
6243 msgstr ""
6244
6245 #. type: =item
6246 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6247 msgid "C<AUG_SAVE_NEWFILE> = 2"
6248 msgstr ""
6249
6250 #. type: textblock
6251 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6252 msgid ""
6253 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6254 "original.  Overrides C<AUG_SAVE_BACKUP>."
6255 msgstr ""
6256
6257 #. type: =item
6258 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6259 msgid "C<AUG_TYPE_CHECK> = 4"
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6264 msgid "Typecheck lenses."
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:271
6269 msgid ""
6270 "This option is only useful when debugging Augeas lenses.  Use of this option "
6271 "may require additional memory for the libguestfs appliance.  You may need to "
6272 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6273 msgstr ""
6274
6275 #. type: =item
6276 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6277 msgid "C<AUG_NO_STDINC> = 8"
6278 msgstr ""
6279
6280 #. type: textblock
6281 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6282 msgid "Do not use standard load path for modules."
6283 msgstr ""
6284
6285 #. type: =item
6286 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6287 msgid "C<AUG_SAVE_NOOP> = 16"
6288 msgstr ""
6289
6290 #. type: textblock
6291 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6292 msgid "Make save a no-op, just record what would have been changed."
6293 msgstr ""
6294
6295 #. type: =item
6296 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6297 msgid "C<AUG_NO_LOAD> = 32"
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:286
6302 msgid "Do not load the tree in L</aug-init>."
6303 msgstr ""
6304
6305 #. type: textblock
6306 #: ../fish/guestfish-actions.pod:290
6307 msgid "To close the handle, you can call L</aug-close>."
6308 msgstr ""
6309
6310 #. type: textblock
6311 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6312 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6313 msgstr ""
6314
6315 #. type: =head2
6316 #: ../fish/guestfish-actions.pod:294
6317 msgid "aug-insert"
6318 msgstr ""
6319
6320 #. type: verbatim
6321 #: ../fish/guestfish-actions.pod:296
6322 #, no-wrap
6323 msgid ""
6324 " aug-insert augpath label true|false\n"
6325 "\n"
6326 msgstr ""
6327
6328 #. type: textblock
6329 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6330 msgid ""
6331 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6332 "or after C<path> (depending on the boolean flag C<before>)."
6333 msgstr ""
6334
6335 #. type: textblock
6336 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6337 msgid ""
6338 "C<path> must match exactly one existing node in the tree, and C<label> must "
6339 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6340 msgstr ""
6341
6342 #. type: =head2
6343 #: ../fish/guestfish-actions.pod:306
6344 msgid "aug-load"
6345 msgstr ""
6346
6347 #. type: verbatim
6348 #: ../fish/guestfish-actions.pod:308
6349 #, no-wrap
6350 msgid ""
6351 " aug-load\n"
6352 "\n"
6353 msgstr ""
6354
6355 #. type: textblock
6356 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6357 msgid "Load files into the tree."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6362 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6363 msgstr ""
6364
6365 #. type: =head2
6366 #: ../fish/guestfish-actions.pod:315
6367 msgid "aug-ls"
6368 msgstr ""
6369
6370 #. type: verbatim
6371 #: ../fish/guestfish-actions.pod:317
6372 #, no-wrap
6373 msgid ""
6374 " aug-ls augpath\n"
6375 "\n"
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../fish/guestfish-actions.pod:319
6380 msgid ""
6381 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6382 "resulting nodes into alphabetical order."
6383 msgstr ""
6384
6385 #. type: =head2
6386 #: ../fish/guestfish-actions.pod:322
6387 msgid "aug-match"
6388 msgstr ""
6389
6390 #. type: verbatim
6391 #: ../fish/guestfish-actions.pod:324
6392 #, no-wrap
6393 msgid ""
6394 " aug-match augpath\n"
6395 "\n"
6396 msgstr ""
6397
6398 #. type: textblock
6399 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6400 msgid ""
6401 "Returns a list of paths which match the path expression C<path>.  The "
6402 "returned paths are sufficiently qualified so that they match exactly one "
6403 "node in the current tree."
6404 msgstr ""
6405
6406 #. type: =head2
6407 #: ../fish/guestfish-actions.pod:330
6408 msgid "aug-mv"
6409 msgstr ""
6410
6411 #. type: verbatim
6412 #: ../fish/guestfish-actions.pod:332
6413 #, no-wrap
6414 msgid ""
6415 " aug-mv src dest\n"
6416 "\n"
6417 msgstr ""
6418
6419 #. type: textblock
6420 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6421 msgid ""
6422 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6423 "C<dest> is overwritten if it exists."
6424 msgstr ""
6425
6426 #. type: =head2
6427 #: ../fish/guestfish-actions.pod:337
6428 msgid "aug-rm"
6429 msgstr ""
6430
6431 #. type: verbatim
6432 #: ../fish/guestfish-actions.pod:339
6433 #, no-wrap
6434 msgid ""
6435 " aug-rm augpath\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6441 msgid "Remove C<path> and all of its children."
6442 msgstr ""
6443
6444 #. type: textblock
6445 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6446 msgid "On success this returns the number of entries which were removed."
6447 msgstr ""
6448
6449 #. type: =head2
6450 #: ../fish/guestfish-actions.pod:345
6451 msgid "aug-save"
6452 msgstr ""
6453
6454 #. type: verbatim
6455 #: ../fish/guestfish-actions.pod:347
6456 #, no-wrap
6457 msgid ""
6458 " aug-save\n"
6459 "\n"
6460 msgstr ""
6461
6462 #. type: textblock
6463 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6464 msgid "This writes all pending changes to disk."
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../fish/guestfish-actions.pod:351
6469 msgid ""
6470 "The flags which were passed to L</aug-init> affect exactly how files are "
6471 "saved."
6472 msgstr ""
6473
6474 #. type: =head2
6475 #: ../fish/guestfish-actions.pod:354
6476 msgid "aug-set"
6477 msgstr ""
6478
6479 #. type: verbatim
6480 #: ../fish/guestfish-actions.pod:356
6481 #, no-wrap
6482 msgid ""
6483 " aug-set augpath val\n"
6484 "\n"
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6489 msgid "Set the value associated with C<path> to C<val>."
6490 msgstr ""
6491
6492 #. type: textblock
6493 #: ../fish/guestfish-actions.pod:360
6494 msgid ""
6495 "In the Augeas API, it is possible to clear a node by setting the value to "
6496 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6497 "this call.  Instead you must use the L</aug-clear> call."
6498 msgstr ""
6499
6500 #. type: =head2
6501 #: ../fish/guestfish-actions.pod:365
6502 msgid "available"
6503 msgstr ""
6504
6505 #. type: verbatim
6506 #: ../fish/guestfish-actions.pod:367
6507 #, no-wrap
6508 msgid ""
6509 " available 'groups ...'\n"
6510 "\n"
6511 msgstr ""
6512
6513 #. type: textblock
6514 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6515 msgid ""
6516 "This command is used to check the availability of some groups of "
6517 "functionality in the appliance, which not all builds of the libguestfs "
6518 "appliance will be able to provide."
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:373
6523 msgid ""
6524 "The libguestfs groups, and the functions that those groups correspond to, "
6525 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6526 "runtime by calling L</available-all-groups>."
6527 msgstr ""
6528
6529 #. type: textblock
6530 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6531 msgid ""
6532 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6533 "\"]> would check for the availability of the Linux inotify functions and "
6534 "Augeas (configuration file editing) functions."
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6539 msgid "The command returns no error if I<all> requested groups are available."
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6544 msgid ""
6545 "It fails with an error if one or more of the requested groups is unavailable "
6546 "in the appliance."
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6551 msgid ""
6552 "If an unknown group name is included in the list of groups then an error is "
6553 "always returned."
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6558 msgid "I<Notes:>"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:397
6563 msgid "You must call L</launch> before calling this function."
6564 msgstr ""
6565
6566 #. type: textblock
6567 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6568 msgid ""
6569 "The reason is because we don't know what groups are supported by the "
6570 "appliance/daemon until it is running and can be queried."
6571 msgstr ""
6572
6573 #. type: textblock
6574 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6575 msgid ""
6576 "If a group of functions is available, this does not necessarily mean that "
6577 "they will work.  You still have to check for errors when calling individual "
6578 "API functions even if they are available."
6579 msgstr ""
6580
6581 #. type: textblock
6582 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6583 msgid ""
6584 "It is usually the job of distro packagers to build complete functionality "
6585 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6586 "with all requirements satisfied, will support everything."
6587 msgstr ""
6588
6589 #. type: textblock
6590 #: ../fish/guestfish-actions.pod:419
6591 msgid ""
6592 "This call was added in version C<1.0.80>.  In previous versions of "
6593 "libguestfs all you could do would be to speculatively execute a command to "
6594 "find out if the daemon implemented it.  See also L</version>."
6595 msgstr ""
6596
6597 #. type: =head2
6598 #: ../fish/guestfish-actions.pod:426
6599 msgid "available-all-groups"
6600 msgstr ""
6601
6602 #. type: verbatim
6603 #: ../fish/guestfish-actions.pod:428
6604 #, no-wrap
6605 msgid ""
6606 " available-all-groups\n"
6607 "\n"
6608 msgstr ""
6609
6610 #. type: textblock
6611 #: ../fish/guestfish-actions.pod:430
6612 msgid ""
6613 "This command returns a list of all optional groups that this daemon knows "
6614 "about.  Note this returns both supported and unsupported groups.  To find "
6615 "out which ones the daemon can actually support you have to call L</"
6616 "available> on each member of the returned list."
6617 msgstr ""
6618
6619 #. type: textblock
6620 #: ../fish/guestfish-actions.pod:436
6621 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6622 msgstr ""
6623
6624 #. type: =head2
6625 #: ../fish/guestfish-actions.pod:438
6626 msgid "base64-in"
6627 msgstr ""
6628
6629 #. type: verbatim
6630 #: ../fish/guestfish-actions.pod:440
6631 #, no-wrap
6632 msgid ""
6633 " base64-in (base64file|-) filename\n"
6634 "\n"
6635 msgstr ""
6636
6637 #. type: textblock
6638 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6639 msgid ""
6640 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6641 msgstr ""
6642
6643 #. type: textblock
6644 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6645 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6646 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6647 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6648 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6649 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6650 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6651 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6652 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6653 msgstr ""
6654
6655 #. type: =head2
6656 #: ../fish/guestfish-actions.pod:447
6657 msgid "base64-out"
6658 msgstr ""
6659
6660 #. type: verbatim
6661 #: ../fish/guestfish-actions.pod:449
6662 #, no-wrap
6663 msgid ""
6664 " base64-out filename (base64file|-)\n"
6665 "\n"
6666 msgstr ""
6667
6668 #. type: textblock
6669 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6670 msgid ""
6671 "This command downloads the contents of C<filename>, writing it out to local "
6672 "file C<base64file> encoded as base64."
6673 msgstr ""
6674
6675 #. type: =head2
6676 #: ../fish/guestfish-actions.pod:456
6677 msgid "blockdev-flushbufs"
6678 msgstr ""
6679
6680 #. type: verbatim
6681 #: ../fish/guestfish-actions.pod:458
6682 #, no-wrap
6683 msgid ""
6684 " blockdev-flushbufs device\n"
6685 "\n"
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6690 msgid ""
6691 "This tells the kernel to flush internal buffers associated with C<device>."
6692 msgstr ""
6693
6694 #. type: textblock
6695 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6696 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6697 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6698 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6699 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6700 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6701 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6702 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6703 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6704 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6705 msgid "This uses the L<blockdev(8)> command."
6706 msgstr ""
6707
6708 #. type: =head2
6709 #: ../fish/guestfish-actions.pod:465
6710 msgid "blockdev-getbsz"
6711 msgstr ""
6712
6713 #. type: verbatim
6714 #: ../fish/guestfish-actions.pod:467
6715 #, no-wrap
6716 msgid ""
6717 " blockdev-getbsz device\n"
6718 "\n"
6719 msgstr ""
6720
6721 #. type: textblock
6722 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6723 msgid "This returns the block size of a device."
6724 msgstr ""
6725
6726 #. type: textblock
6727 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6728 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6729 msgid ""
6730 "(Note this is different from both I<size in blocks> and I<filesystem block "
6731 "size>)."
6732 msgstr ""
6733
6734 #. type: =head2
6735 #: ../fish/guestfish-actions.pod:476
6736 msgid "blockdev-getro"
6737 msgstr ""
6738
6739 #. type: verbatim
6740 #: ../fish/guestfish-actions.pod:478
6741 #, no-wrap
6742 msgid ""
6743 " blockdev-getro device\n"
6744 "\n"
6745 msgstr ""
6746
6747 #. type: textblock
6748 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6749 msgid ""
6750 "Returns a boolean indicating if the block device is read-only (true if read-"
6751 "only, false if not)."
6752 msgstr ""
6753
6754 #. type: =head2
6755 #: ../fish/guestfish-actions.pod:485
6756 msgid "blockdev-getsize64"
6757 msgstr ""
6758
6759 #. type: verbatim
6760 #: ../fish/guestfish-actions.pod:487
6761 #, no-wrap
6762 msgid ""
6763 " blockdev-getsize64 device\n"
6764 "\n"
6765 msgstr ""
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6769 msgid "This returns the size of the device in bytes."
6770 msgstr ""
6771
6772 #. type: textblock
6773 #: ../fish/guestfish-actions.pod:491
6774 msgid "See also L</blockdev-getsz>."
6775 msgstr ""
6776
6777 #. type: =head2
6778 #: ../fish/guestfish-actions.pod:495
6779 msgid "blockdev-getss"
6780 msgstr ""
6781
6782 #. type: verbatim
6783 #: ../fish/guestfish-actions.pod:497
6784 #, no-wrap
6785 msgid ""
6786 " blockdev-getss device\n"
6787 "\n"
6788 msgstr ""
6789
6790 #. type: textblock
6791 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6792 msgid ""
6793 "This returns the size of sectors on a block device.  Usually 512, but can be "
6794 "larger for modern devices."
6795 msgstr ""
6796
6797 #. type: textblock
6798 #: ../fish/guestfish-actions.pod:502
6799 msgid ""
6800 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6801 msgstr ""
6802
6803 #. type: =head2
6804 #: ../fish/guestfish-actions.pod:507
6805 msgid "blockdev-getsz"
6806 msgstr ""
6807
6808 #. type: verbatim
6809 #: ../fish/guestfish-actions.pod:509
6810 #, no-wrap
6811 msgid ""
6812 " blockdev-getsz device\n"
6813 "\n"
6814 msgstr ""
6815
6816 #. type: textblock
6817 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6818 msgid ""
6819 "This returns the size of the device in units of 512-byte sectors (even if "
6820 "the sectorsize isn't 512 bytes ... weird)."
6821 msgstr ""
6822
6823 #. type: textblock
6824 #: ../fish/guestfish-actions.pod:514
6825 msgid ""
6826 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6827 "blockdev-getsize64> for the more useful I<size in bytes>."
6828 msgstr ""
6829
6830 #. type: =head2
6831 #: ../fish/guestfish-actions.pod:520
6832 msgid "blockdev-rereadpt"
6833 msgstr ""
6834
6835 #. type: verbatim
6836 #: ../fish/guestfish-actions.pod:522
6837 #, no-wrap
6838 msgid ""
6839 " blockdev-rereadpt device\n"
6840 "\n"
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6845 msgid "Reread the partition table on C<device>."
6846 msgstr ""
6847
6848 #. type: =head2
6849 #: ../fish/guestfish-actions.pod:528
6850 msgid "blockdev-setbsz"
6851 msgstr ""
6852
6853 #. type: verbatim
6854 #: ../fish/guestfish-actions.pod:530
6855 #, no-wrap
6856 msgid ""
6857 " blockdev-setbsz device blocksize\n"
6858 "\n"
6859 msgstr ""
6860
6861 #. type: textblock
6862 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6863 msgid "This sets the block size of a device."
6864 msgstr ""
6865
6866 #. type: =head2
6867 #: ../fish/guestfish-actions.pod:539
6868 msgid "blockdev-setro"
6869 msgstr ""
6870
6871 #. type: verbatim
6872 #: ../fish/guestfish-actions.pod:541
6873 #, no-wrap
6874 msgid ""
6875 " blockdev-setro device\n"
6876 "\n"
6877 msgstr ""
6878
6879 #. type: textblock
6880 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
6881 msgid "Sets the block device named C<device> to read-only."
6882 msgstr ""
6883
6884 #. type: =head2
6885 #: ../fish/guestfish-actions.pod:547
6886 msgid "blockdev-setrw"
6887 msgstr ""
6888
6889 #. type: verbatim
6890 #: ../fish/guestfish-actions.pod:549
6891 #, no-wrap
6892 msgid ""
6893 " blockdev-setrw device\n"
6894 "\n"
6895 msgstr ""
6896
6897 #. type: textblock
6898 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
6899 msgid "Sets the block device named C<device> to read-write."
6900 msgstr ""
6901
6902 #. type: =head2
6903 #: ../fish/guestfish-actions.pod:555
6904 msgid "btrfs-filesystem-resize"
6905 msgstr ""
6906
6907 #. type: verbatim
6908 #: ../fish/guestfish-actions.pod:557
6909 #, no-wrap
6910 msgid ""
6911 " btrfs-filesystem-resize mountpoint [size:..]\n"
6912 "\n"
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
6917 msgid "This command resizes a btrfs filesystem."
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
6922 msgid ""
6923 "Note that unlike other resize calls, the filesystem has to be mounted and "
6924 "the parameter is the mountpoint not the device (this is a requirement of "
6925 "btrfs itself)."
6926 msgstr ""
6927
6928 #. type: textblock
6929 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
6930 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
6931 msgid "The optional parameters are:"
6932 msgstr ""
6933
6934 #. type: =item
6935 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
6936 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
6937 msgid "C<size>"
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
6942 msgid ""
6943 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6944 "resized to the maximum size."
6945 msgstr ""
6946
6947 #. type: textblock
6948 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
6949 msgid "See also L<btrfs(8)>."
6950 msgstr ""
6951
6952 #. type: =head2
6953 #: ../fish/guestfish-actions.pod:580
6954 msgid "case-sensitive-path"
6955 msgstr ""
6956
6957 #. type: verbatim
6958 #: ../fish/guestfish-actions.pod:582
6959 #, no-wrap
6960 msgid ""
6961 " case-sensitive-path path\n"
6962 "\n"
6963 msgstr ""
6964
6965 #. type: textblock
6966 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
6967 msgid ""
6968 "This can be used to resolve case insensitive paths on a filesystem which is "
6969 "case sensitive.  The use case is to resolve paths which you have read from "
6970 "Windows configuration files or the Windows Registry, to the true path."
6971 msgstr ""
6972
6973 #. type: textblock
6974 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
6975 msgid ""
6976 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6977 "(and probably others), which is that although the underlying filesystem is "
6978 "case-insensitive, the driver exports the filesystem to Linux as case-"
6979 "sensitive."
6980 msgstr ""
6981
6982 #. type: textblock
6983 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
6984 msgid ""
6985 "One consequence of this is that special directories such as C<c:\\windows> "
6986 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6987 "precise details of how they were created.  In Windows itself this would not "
6988 "be a problem."
6989 msgstr ""
6990
6991 #. type: textblock
6992 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
6993 msgid ""
6994 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6995 "#posixfilenames1>"
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7000 msgid ""
7001 "This function resolves the true case of each element in the path and returns "
7002 "the case-sensitive path."
7003 msgstr ""
7004
7005 #. type: textblock
7006 #: ../fish/guestfish-actions.pod:606
7007 msgid ""
7008 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7009 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7010 "the directories were originally created under Windows)."
7011 msgstr ""
7012
7013 #. type: textblock
7014 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7015 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../fish/guestfish-actions.pod:614
7020 msgid "See also L</realpath>."
7021 msgstr ""
7022
7023 #. type: =head2
7024 #: ../fish/guestfish-actions.pod:616
7025 msgid "cat"
7026 msgstr ""
7027
7028 #. type: verbatim
7029 #: ../fish/guestfish-actions.pod:618
7030 #, no-wrap
7031 msgid ""
7032 " cat path\n"
7033 "\n"
7034 msgstr ""
7035
7036 #. type: textblock
7037 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7038 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7039 msgid "Return the contents of the file named C<path>."
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:622
7044 msgid ""
7045 "Note that this function cannot correctly handle binary files (specifically, "
7046 "files containing C<\\0> character which is treated as end of string).  For "
7047 "those you need to use the L</read-file> or L</download> functions which have "
7048 "a more complex interface."
7049 msgstr ""
7050
7051 #. type: textblock
7052 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7053 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7054 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7055 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7056 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7057 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7058 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7059 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7060 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7061 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7062 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7063 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7064 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7065 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7066 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7067 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7068 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7069 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7070 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7071 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7072 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7073 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7074 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7075 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7076 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7077 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7078 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7079 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7080 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7081 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7082 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7083 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7084 msgid ""
7085 "Because of the message protocol, there is a transfer limit of somewhere "
7086 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7087 msgstr ""
7088
7089 #. type: =head2
7090 #: ../fish/guestfish-actions.pod:630
7091 msgid "checksum"
7092 msgstr ""
7093
7094 #. type: verbatim
7095 #: ../fish/guestfish-actions.pod:632
7096 #, no-wrap
7097 msgid ""
7098 " checksum csumtype path\n"
7099 "\n"
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7104 msgid ""
7105 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7106 msgstr ""
7107
7108 #. type: textblock
7109 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7110 msgid ""
7111 "The type of checksum to compute is given by the C<csumtype> parameter which "
7112 "must have one of the following values:"
7113 msgstr ""
7114
7115 #. type: =item
7116 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7117 msgid "C<crc>"
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7122 msgid ""
7123 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7124 "C<cksum> command."
7125 msgstr ""
7126
7127 #. type: =item
7128 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7129 msgid "C<md5>"
7130 msgstr ""
7131
7132 #. type: textblock
7133 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7134 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7135 msgstr ""
7136
7137 #. type: =item
7138 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7139 msgid "C<sha1>"
7140 msgstr ""
7141
7142 #. type: textblock
7143 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7144 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7145 msgstr ""
7146
7147 #. type: =item
7148 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7149 msgid "C<sha224>"
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7154 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7155 msgstr ""
7156
7157 #. type: =item
7158 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7159 msgid "C<sha256>"
7160 msgstr ""
7161
7162 #. type: textblock
7163 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7164 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7165 msgstr ""
7166
7167 #. type: =item
7168 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7169 msgid "C<sha384>"
7170 msgstr ""
7171
7172 #. type: textblock
7173 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7174 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7175 msgstr ""
7176
7177 #. type: =item
7178 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7179 msgid "C<sha512>"
7180 msgstr ""
7181
7182 #. type: textblock
7183 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7184 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7185 msgstr ""
7186
7187 #. type: textblock
7188 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7189 msgid "The checksum is returned as a printable string."
7190 msgstr ""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:675
7194 msgid "To get the checksum for a device, use L</checksum-device>."
7195 msgstr ""
7196
7197 #. type: textblock
7198 #: ../fish/guestfish-actions.pod:677
7199 msgid "To get the checksums for many files, use L</checksums-out>."
7200 msgstr ""
7201
7202 #. type: =head2
7203 #: ../fish/guestfish-actions.pod:679
7204 msgid "checksum-device"
7205 msgstr ""
7206
7207 #. type: verbatim
7208 #: ../fish/guestfish-actions.pod:681
7209 #, no-wrap
7210 msgid ""
7211 " checksum-device csumtype device\n"
7212 "\n"
7213 msgstr ""
7214
7215 #. type: textblock
7216 #: ../fish/guestfish-actions.pod:683
7217 msgid ""
7218 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7219 "device named C<device>.  For the types of checksums supported see the L</"
7220 "checksum> command."
7221 msgstr ""
7222
7223 #. type: =head2
7224 #: ../fish/guestfish-actions.pod:687
7225 msgid "checksums-out"
7226 msgstr ""
7227
7228 #. type: verbatim
7229 #: ../fish/guestfish-actions.pod:689
7230 #, no-wrap
7231 msgid ""
7232 " checksums-out csumtype directory (sumsfile|-)\n"
7233 "\n"
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7238 msgid ""
7239 "This command computes the checksums of all regular files in C<directory> and "
7240 "then emits a list of those checksums to the local output file C<sumsfile>."
7241 msgstr ""
7242
7243 #. type: textblock
7244 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7245 msgid ""
7246 "This can be used for verifying the integrity of a virtual machine.  However "
7247 "to be properly secure you should pay attention to the output of the checksum "
7248 "command (it uses the ones from GNU coreutils).  In particular when the "
7249 "filename is not printable, coreutils uses a special backslash syntax.  For "
7250 "more information, see the GNU coreutils info file."
7251 msgstr ""
7252
7253 #. type: =head2
7254 #: ../fish/guestfish-actions.pod:705
7255 msgid "chmod"
7256 msgstr ""
7257
7258 #. type: verbatim
7259 #: ../fish/guestfish-actions.pod:707
7260 #, no-wrap
7261 msgid ""
7262 " chmod mode path\n"
7263 "\n"
7264 msgstr ""
7265
7266 #. type: textblock
7267 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7268 msgid ""
7269 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7270 "supported."
7271 msgstr ""
7272
7273 #. type: textblock
7274 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7275 msgid ""
7276 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7277 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7278 "C<700>."
7279 msgstr ""
7280
7281 #. type: textblock
7282 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7283 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7284 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7285 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7286 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7287 msgid "The mode actually set is affected by the umask."
7288 msgstr ""
7289
7290 #. type: =head2
7291 #: ../fish/guestfish-actions.pod:718
7292 msgid "chown"
7293 msgstr ""
7294
7295 #. type: verbatim
7296 #: ../fish/guestfish-actions.pod:720
7297 #, no-wrap
7298 msgid ""
7299 " chown owner group path\n"
7300 "\n"
7301 msgstr ""
7302
7303 #. type: textblock
7304 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7305 msgid "Change the file owner to C<owner> and group to C<group>."
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7310 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7311 msgid ""
7312 "Only numeric uid and gid are supported.  If you want to use names, you will "
7313 "need to locate and parse the password file yourself (Augeas support makes "
7314 "this relatively easy)."
7315 msgstr ""
7316
7317 #. type: =head2
7318 #: ../fish/guestfish-actions.pod:728
7319 msgid "command"
7320 msgstr ""
7321
7322 #. type: verbatim
7323 #: ../fish/guestfish-actions.pod:730
7324 #, no-wrap
7325 msgid ""
7326 " command 'arguments ...'\n"
7327 "\n"
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7332 msgid ""
7333 "This call runs a command from the guest filesystem.  The filesystem must be "
7334 "mounted, and must contain a compatible operating system (ie. something "
7335 "Linux, with the same or compatible processor architecture)."
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:737
7340 msgid ""
7341 "The single parameter is an argv-style list of arguments.  The first element "
7342 "is the name of the program to run.  Subsequent elements are parameters.  The "
7343 "list must be non-empty (ie. must contain a program name).  Note that the "
7344 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7349 msgid "The return value is anything printed to I<stdout> by the command."
7350 msgstr ""
7351
7352 #. type: textblock
7353 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7354 msgid ""
7355 "If the command returns a non-zero exit status, then this function returns an "
7356 "error message.  The error message string is the content of I<stderr> from "
7357 "the command."
7358 msgstr ""
7359
7360 #. type: textblock
7361 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7362 msgid ""
7363 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7364 "bin>.  If you require a program from another location, you should provide "
7365 "the full path in the first parameter."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7370 msgid ""
7371 "Shared libraries and data files required by the program must be available on "
7372 "filesystems which are mounted in the correct places.  It is the caller's "
7373 "responsibility to ensure all filesystems that are needed are mounted at the "
7374 "right locations."
7375 msgstr ""
7376
7377 #. type: =head2
7378 #: ../fish/guestfish-actions.pod:765
7379 msgid "command-lines"
7380 msgstr ""
7381
7382 #. type: verbatim
7383 #: ../fish/guestfish-actions.pod:767
7384 #, no-wrap
7385 msgid ""
7386 " command-lines 'arguments ...'\n"
7387 "\n"
7388 msgstr ""
7389
7390 #. type: textblock
7391 #: ../fish/guestfish-actions.pod:769
7392 msgid ""
7393 "This is the same as L</command>, but splits the result into a list of lines."
7394 msgstr ""
7395
7396 #. type: textblock
7397 #: ../fish/guestfish-actions.pod:772
7398 msgid "See also: L</sh-lines>"
7399 msgstr ""
7400
7401 #. type: =head2
7402 #: ../fish/guestfish-actions.pod:777
7403 msgid "compress-device-out"
7404 msgstr ""
7405
7406 #. type: verbatim
7407 #: ../fish/guestfish-actions.pod:779
7408 #, no-wrap
7409 msgid ""
7410 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7411 "\n"
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7416 msgid ""
7417 "This command compresses C<device> and writes it out to the local file "
7418 "C<zdevice>."
7419 msgstr ""
7420
7421 #. type: textblock
7422 #: ../fish/guestfish-actions.pod:784
7423 msgid ""
7424 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7425 "compress-out>."
7426 msgstr ""
7427
7428 #. type: =head2
7429 #: ../fish/guestfish-actions.pod:791
7430 msgid "compress-out"
7431 msgstr ""
7432
7433 #. type: verbatim
7434 #: ../fish/guestfish-actions.pod:793
7435 #, no-wrap
7436 msgid ""
7437 " compress-out ctype file (zfile|-) [level:..]\n"
7438 "\n"
7439 msgstr ""
7440
7441 #. type: textblock
7442 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7443 msgid ""
7444 "This command compresses C<file> and writes it out to the local file C<zfile>."
7445 msgstr ""
7446
7447 #. type: textblock
7448 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7449 msgid ""
7450 "The compression program used is controlled by the C<ctype> parameter.  "
7451 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7452 "Some compression types may not be supported by particular builds of "
7453 "libguestfs, in which case you will get an error containing the substring "
7454 "\"not supported\"."
7455 msgstr ""
7456
7457 #. type: textblock
7458 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7459 msgid ""
7460 "The optional C<level> parameter controls compression level.  The meaning and "
7461 "default for this parameter depends on the compression program being used."
7462 msgstr ""
7463
7464 #. type: =head2
7465 #: ../fish/guestfish-actions.pod:812
7466 msgid "config"
7467 msgstr ""
7468
7469 #. type: verbatim
7470 #: ../fish/guestfish-actions.pod:814
7471 #, no-wrap
7472 msgid ""
7473 " config qemuparam qemuvalue\n"
7474 "\n"
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7479 msgid ""
7480 "This can be used to add arbitrary qemu command line parameters of the form "
7481 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7482 "setting some parameters which would interfere with parameters that we use."
7483 msgstr ""
7484
7485 #. type: textblock
7486 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7487 msgid "The first character of C<param> string must be a C<-> (dash)."
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7492 msgid "C<value> can be NULL."
7493 msgstr ""
7494
7495 #. type: =head2
7496 #: ../fish/guestfish-actions.pod:825
7497 msgid "copy-size"
7498 msgstr ""
7499
7500 #. type: verbatim
7501 #: ../fish/guestfish-actions.pod:827
7502 #, no-wrap
7503 msgid ""
7504 " copy-size src dest size\n"
7505 "\n"
7506 msgstr ""
7507
7508 #. type: textblock
7509 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7510 msgid ""
7511 "This command copies exactly C<size> bytes from one source device or file "
7512 "C<src> to another destination device or file C<dest>."
7513 msgstr ""
7514
7515 #. type: textblock
7516 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7517 msgid ""
7518 "Note this will fail if the source is too short or if the destination is not "
7519 "large enough."
7520 msgstr ""
7521
7522 #. type: =head2
7523 #: ../fish/guestfish-actions.pod:835
7524 msgid "cp"
7525 msgstr ""
7526
7527 #. type: verbatim
7528 #: ../fish/guestfish-actions.pod:837
7529 #, no-wrap
7530 msgid ""
7531 " cp src dest\n"
7532 "\n"
7533 msgstr ""
7534
7535 #. type: textblock
7536 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7537 msgid ""
7538 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7539 "destination filename or destination directory."
7540 msgstr ""
7541
7542 #. type: =head2
7543 #: ../fish/guestfish-actions.pod:842
7544 msgid "cp-a"
7545 msgstr ""
7546
7547 #. type: verbatim
7548 #: ../fish/guestfish-actions.pod:844
7549 #, no-wrap
7550 msgid ""
7551 " cp-a src dest\n"
7552 "\n"
7553 msgstr ""
7554
7555 #. type: textblock
7556 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7557 msgid ""
7558 "This copies a file or directory from C<src> to C<dest> recursively using the "
7559 "C<cp -a> command."
7560 msgstr ""
7561
7562 #. type: =head2
7563 #: ../fish/guestfish-actions.pod:849
7564 msgid "dd"
7565 msgstr ""
7566
7567 #. type: verbatim
7568 #: ../fish/guestfish-actions.pod:851
7569 #, no-wrap
7570 msgid ""
7571 " dd src dest\n"
7572 "\n"
7573 msgstr ""
7574
7575 #. type: textblock
7576 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7577 msgid ""
7578 "This command copies from one source device or file C<src> to another "
7579 "destination device or file C<dest>.  Normally you would use this to copy to "
7580 "or from a device or partition, for example to duplicate a filesystem."
7581 msgstr ""
7582
7583 #. type: textblock
7584 #: ../fish/guestfish-actions.pod:858
7585 msgid ""
7586 "If the destination is a device, it must be as large or larger than the "
7587 "source file or device, otherwise the copy will fail.  This command cannot do "
7588 "partial copies (see L</copy-size>)."
7589 msgstr ""
7590
7591 #. type: =head2
7592 #: ../fish/guestfish-actions.pod:862
7593 msgid "df"
7594 msgstr ""
7595
7596 #. type: verbatim
7597 #: ../fish/guestfish-actions.pod:864
7598 #, no-wrap
7599 msgid ""
7600 " df\n"
7601 "\n"
7602 msgstr ""
7603
7604 #. type: textblock
7605 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7606 msgid "This command runs the C<df> command to report disk space used."
7607 msgstr ""
7608
7609 #. type: textblock
7610 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7611 msgid ""
7612 "This command is mostly useful for interactive sessions.  It is I<not> "
7613 "intended that you try to parse the output string.  Use L</statvfs> from "
7614 "programs."
7615 msgstr ""
7616
7617 #. type: =head2
7618 #: ../fish/guestfish-actions.pod:872
7619 msgid "df-h"
7620 msgstr ""
7621
7622 #. type: verbatim
7623 #: ../fish/guestfish-actions.pod:874
7624 #, no-wrap
7625 msgid ""
7626 " df-h\n"
7627 "\n"
7628 msgstr ""
7629
7630 #. type: textblock
7631 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7632 msgid ""
7633 "This command runs the C<df -h> command to report disk space used in human-"
7634 "readable format."
7635 msgstr ""
7636
7637 #. type: =head2
7638 #: ../fish/guestfish-actions.pod:883
7639 msgid "dmesg"
7640 msgstr ""
7641
7642 #. type: verbatim
7643 #: ../fish/guestfish-actions.pod:885
7644 #, no-wrap
7645 msgid ""
7646 " dmesg\n"
7647 "\n"
7648 msgstr ""
7649
7650 #. type: textblock
7651 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7652 msgid ""
7653 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7654 "This is sometimes useful for extended debugging of problems."
7655 msgstr ""
7656
7657 #. type: textblock
7658 #: ../fish/guestfish-actions.pod:891
7659 msgid ""
7660 "Another way to get the same information is to enable verbose messages with "
7661 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7662 "before running the program."
7663 msgstr ""
7664
7665 #. type: =head2
7666 #: ../fish/guestfish-actions.pod:896
7667 msgid "download"
7668 msgstr ""
7669
7670 #. type: verbatim
7671 #: ../fish/guestfish-actions.pod:898
7672 #, no-wrap
7673 msgid ""
7674 " download remotefilename (filename|-)\n"
7675 "\n"
7676 msgstr ""
7677
7678 #. type: textblock
7679 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7680 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7681 msgid ""
7682 "Download file C<remotefilename> and save it as C<filename> on the local "
7683 "machine."
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7688 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7689 msgid "C<filename> can also be a named pipe."
7690 msgstr ""
7691
7692 #. type: textblock
7693 #: ../fish/guestfish-actions.pod:905
7694 msgid "See also L</upload>, L</cat>."
7695 msgstr ""
7696
7697 #. type: =head2
7698 #: ../fish/guestfish-actions.pod:909
7699 msgid "download-offset"
7700 msgstr ""
7701
7702 #. type: verbatim
7703 #: ../fish/guestfish-actions.pod:911
7704 #, no-wrap
7705 msgid ""
7706 " download-offset remotefilename (filename|-) offset size\n"
7707 "\n"
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7712 msgid ""
7713 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7714 "region must be within the file or device)."
7715 msgstr ""
7716
7717 #. type: textblock
7718 #: ../fish/guestfish-actions.pod:919
7719 msgid ""
7720 "Note that there is no limit on the amount of data that can be downloaded "
7721 "with this call, unlike with L</pread>, and this call always reads the full "
7722 "amount unless an error occurs."
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:924
7727 msgid "See also L</download>, L</pread>."
7728 msgstr ""
7729
7730 #. type: =head2
7731 #: ../fish/guestfish-actions.pod:928
7732 msgid "drop-caches"
7733 msgstr ""
7734
7735 #. type: verbatim
7736 #: ../fish/guestfish-actions.pod:930
7737 #, no-wrap
7738 msgid ""
7739 " drop-caches whattodrop\n"
7740 "\n"
7741 msgstr ""
7742
7743 #. type: textblock
7744 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7745 msgid ""
7746 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7747 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7748 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7749 msgstr ""
7750
7751 #. type: textblock
7752 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7753 msgid "Setting C<whattodrop> to 3 should drop everything."
7754 msgstr ""
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7758 msgid ""
7759 "This automatically calls L<sync(2)> before the operation, so that the "
7760 "maximum guest memory is freed."
7761 msgstr ""
7762
7763 #. type: =head2
7764 #: ../fish/guestfish-actions.pod:942
7765 msgid "du"
7766 msgstr ""
7767
7768 #. type: verbatim
7769 #: ../fish/guestfish-actions.pod:944
7770 #, no-wrap
7771 msgid ""
7772 " du path\n"
7773 "\n"
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7778 msgid ""
7779 "This command runs the C<du -s> command to estimate file space usage for "
7780 "C<path>."
7781 msgstr ""
7782
7783 #. type: textblock
7784 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7785 msgid ""
7786 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7787 "estimate includes the contents of the directory and all subdirectories "
7788 "(recursively)."
7789 msgstr ""
7790
7791 #. type: textblock
7792 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7793 msgid ""
7794 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7795 msgstr ""
7796
7797 #. type: =head2
7798 #: ../fish/guestfish-actions.pod:956
7799 msgid "e2fsck-f"
7800 msgstr ""
7801
7802 #. type: verbatim
7803 #: ../fish/guestfish-actions.pod:958
7804 #, no-wrap
7805 msgid ""
7806 " e2fsck-f device\n"
7807 "\n"
7808 msgstr ""
7809
7810 #. type: textblock
7811 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7812 msgid ""
7813 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7814 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7815 "clean (I<-f>)."
7816 msgstr ""
7817
7818 #. type: textblock
7819 #: ../fish/guestfish-actions.pod:964
7820 msgid ""
7821 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7822 "should use L</fsck>."
7823 msgstr ""
7824
7825 #. type: =head2
7826 #: ../fish/guestfish-actions.pod:967
7827 msgid "echo-daemon"
7828 msgstr ""
7829
7830 #. type: verbatim
7831 #: ../fish/guestfish-actions.pod:969
7832 #, no-wrap
7833 msgid ""
7834 " echo-daemon 'words ...'\n"
7835 "\n"
7836 msgstr ""
7837
7838 #. type: textblock
7839 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7840 msgid ""
7841 "This command concatenates the list of C<words> passed with single spaces "
7842 "between them and returns the resulting string."
7843 msgstr ""
7844
7845 #. type: textblock
7846 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7847 msgid "You can use this command to test the connection through to the daemon."
7848 msgstr ""
7849
7850 #. type: textblock
7851 #: ../fish/guestfish-actions.pod:976
7852 msgid "See also L</ping-daemon>."
7853 msgstr ""
7854
7855 #. type: =head2
7856 #: ../fish/guestfish-actions.pod:978
7857 msgid "egrep"
7858 msgstr ""
7859
7860 #. type: verbatim
7861 #: ../fish/guestfish-actions.pod:980
7862 #, no-wrap
7863 msgid ""
7864 " egrep regex path\n"
7865 "\n"
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
7870 msgid ""
7871 "This calls the external C<egrep> program and returns the matching lines."
7872 msgstr ""
7873
7874 #. type: =head2
7875 #: ../fish/guestfish-actions.pod:988
7876 msgid "egrepi"
7877 msgstr ""
7878
7879 #. type: verbatim
7880 #: ../fish/guestfish-actions.pod:990
7881 #, no-wrap
7882 msgid ""
7883 " egrepi regex path\n"
7884 "\n"
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
7889 msgid ""
7890 "This calls the external C<egrep -i> program and returns the matching lines."
7891 msgstr ""
7892
7893 #. type: =head2
7894 #: ../fish/guestfish-actions.pod:998
7895 msgid "equal"
7896 msgstr ""
7897
7898 #. type: verbatim
7899 #: ../fish/guestfish-actions.pod:1000
7900 #, no-wrap
7901 msgid ""
7902 " equal file1 file2\n"
7903 "\n"
7904 msgstr ""
7905
7906 #. type: textblock
7907 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
7908 msgid ""
7909 "This compares the two files C<file1> and C<file2> and returns true if their "
7910 "content is exactly equal, or false otherwise."
7911 msgstr ""
7912
7913 #. type: textblock
7914 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
7915 msgid "The external L<cmp(1)> program is used for the comparison."
7916 msgstr ""
7917
7918 #. type: =head2
7919 #: ../fish/guestfish-actions.pod:1007
7920 msgid "exists"
7921 msgstr ""
7922
7923 #. type: verbatim
7924 #: ../fish/guestfish-actions.pod:1009
7925 #, no-wrap
7926 msgid ""
7927 " exists path\n"
7928 "\n"
7929 msgstr ""
7930
7931 #. type: textblock
7932 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
7933 msgid ""
7934 "This returns C<true> if and only if there is a file, directory (or anything) "
7935 "with the given C<path> name."
7936 msgstr ""
7937
7938 #. type: textblock
7939 #: ../fish/guestfish-actions.pod:1014
7940 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7941 msgstr ""
7942
7943 #. type: =head2
7944 #: ../fish/guestfish-actions.pod:1016
7945 msgid "fallocate"
7946 msgstr ""
7947
7948 #. type: verbatim
7949 #: ../fish/guestfish-actions.pod:1018
7950 #, no-wrap
7951 msgid ""
7952 " fallocate path len\n"
7953 "\n"
7954 msgstr ""
7955
7956 #. type: textblock
7957 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
7958 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
7959 msgid ""
7960 "This command preallocates a file (containing zero bytes) named C<path> of "
7961 "size C<len> bytes.  If the file exists already, it is overwritten."
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
7966 msgid ""
7967 "Do not confuse this with the guestfish-specific C<alloc> command which "
7968 "allocates a file in the host and attaches it as a device."
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:1028
7973 msgid ""
7974 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7975 "instead."
7976 msgstr ""
7977
7978 #. type: =head2
7979 #: ../fish/guestfish-actions.pod:1035
7980 msgid "fallocate64"
7981 msgstr ""
7982
7983 #. type: verbatim
7984 #: ../fish/guestfish-actions.pod:1037
7985 #, no-wrap
7986 msgid ""
7987 " fallocate64 path len\n"
7988 "\n"
7989 msgstr ""
7990
7991 #. type: textblock
7992 #: ../fish/guestfish-actions.pod:1043
7993 msgid ""
7994 "Note that this call allocates disk blocks for the file.  To create a sparse "
7995 "file use L</truncate-size> instead."
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:1046
8000 msgid ""
8001 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8002 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8003 "maximum size of files created through that call to 1GB."
8004 msgstr ""
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8008 msgid ""
8009 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8010 "commands which create a file in the host and attach it as a device."
8011 msgstr ""
8012
8013 #. type: =head2
8014 #: ../fish/guestfish-actions.pod:1055
8015 msgid "fgrep"
8016 msgstr ""
8017
8018 #. type: verbatim
8019 #: ../fish/guestfish-actions.pod:1057
8020 #, no-wrap
8021 msgid ""
8022 " fgrep pattern path\n"
8023 "\n"
8024 msgstr ""
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8028 msgid ""
8029 "This calls the external C<fgrep> program and returns the matching lines."
8030 msgstr ""
8031
8032 #. type: =head2
8033 #: ../fish/guestfish-actions.pod:1065
8034 msgid "fgrepi"
8035 msgstr ""
8036
8037 #. type: verbatim
8038 #: ../fish/guestfish-actions.pod:1067
8039 #, no-wrap
8040 msgid ""
8041 " fgrepi pattern path\n"
8042 "\n"
8043 msgstr ""
8044
8045 #. type: textblock
8046 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8047 msgid ""
8048 "This calls the external C<fgrep -i> program and returns the matching lines."
8049 msgstr ""
8050
8051 #. type: =head2
8052 #: ../fish/guestfish-actions.pod:1075
8053 msgid "file"
8054 msgstr ""
8055
8056 #. type: verbatim
8057 #: ../fish/guestfish-actions.pod:1077
8058 #, no-wrap
8059 msgid ""
8060 " file path\n"
8061 "\n"
8062 msgstr ""
8063
8064 #. type: textblock
8065 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8066 msgid ""
8067 "This call uses the standard L<file(1)> command to determine the type or "
8068 "contents of the file."
8069 msgstr ""
8070
8071 #. type: textblock
8072 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8073 msgid ""
8074 "This call will also transparently look inside various types of compressed "
8075 "file."
8076 msgstr ""
8077
8078 #. type: textblock
8079 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8080 msgid ""
8081 "The exact command which runs is C<file -zb path>.  Note in particular that "
8082 "the filename is not prepended to the output (the I<-b> option)."
8083 msgstr ""
8084
8085 #. type: textblock
8086 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8087 msgid ""
8088 "The output depends on the output of the underlying L<file(1)> command and it "
8089 "can change in future in ways beyond our control.  In other words, the output "
8090 "is not guaranteed by the ABI."
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:1093
8095 msgid ""
8096 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8097 "(etc), L</is-zero>."
8098 msgstr ""
8099
8100 #. type: =head2
8101 #: ../fish/guestfish-actions.pod:1096
8102 msgid "file-architecture"
8103 msgstr ""
8104
8105 #. type: verbatim
8106 #: ../fish/guestfish-actions.pod:1098
8107 #, no-wrap
8108 msgid ""
8109 " file-architecture filename\n"
8110 "\n"
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8115 msgid ""
8116 "This detects the architecture of the binary C<filename>, and returns it if "
8117 "known."
8118 msgstr ""
8119
8120 #. type: textblock
8121 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8122 msgid "Currently defined architectures are:"
8123 msgstr ""
8124
8125 #. type: =item
8126 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8127 msgid "\"i386\""
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8132 msgid ""
8133 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8134 "irrespective of the precise processor requirements of the binary."
8135 msgstr ""
8136
8137 #. type: =item
8138 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8139 msgid "\"x86_64\""
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8144 msgid "64 bit x86-64."
8145 msgstr ""
8146
8147 #. type: =item
8148 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8149 msgid "\"sparc\""
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8154 msgid "32 bit SPARC."
8155 msgstr ""
8156
8157 #. type: =item
8158 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8159 msgid "\"sparc64\""
8160 msgstr ""
8161
8162 #. type: textblock
8163 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8164 msgid "64 bit SPARC V9 and above."
8165 msgstr ""
8166
8167 #. type: =item
8168 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8169 msgid "\"ia64\""
8170 msgstr ""
8171
8172 #. type: textblock
8173 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8174 msgid "Intel Itanium."
8175 msgstr ""
8176
8177 #. type: =item
8178 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8179 msgid "\"ppc\""
8180 msgstr ""
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8184 msgid "32 bit Power PC."
8185 msgstr ""
8186
8187 #. type: =item
8188 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8189 msgid "\"ppc64\""
8190 msgstr ""
8191
8192 #. type: textblock
8193 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8194 msgid "64 bit Power PC."
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8199 msgid "Libguestfs may return other architecture strings in future."
8200 msgstr ""
8201
8202 #. type: textblock
8203 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8204 msgid "The function works on at least the following types of files:"
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8209 msgid "many types of Un*x and Linux binary"
8210 msgstr ""
8211
8212 #. type: textblock
8213 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8214 msgid "many types of Un*x and Linux shared library"
8215 msgstr ""
8216
8217 #. type: textblock
8218 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8219 msgid "Windows Win32 and Win64 binaries"
8220 msgstr ""
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8224 msgid "Windows Win32 and Win64 DLLs"
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8229 msgid "Win32 binaries and DLLs return C<i386>."
8230 msgstr ""
8231
8232 #. type: textblock
8233 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8234 msgid "Win64 binaries and DLLs return C<x86_64>."
8235 msgstr ""
8236
8237 #. type: textblock
8238 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8239 msgid "Linux kernel modules"
8240 msgstr ""
8241
8242 #. type: textblock
8243 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8244 msgid "Linux new-style initrd images"
8245 msgstr ""
8246
8247 #. type: textblock
8248 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8249 msgid "some non-x86 Linux vmlinuz kernels"
8250 msgstr ""
8251
8252 #. type: textblock
8253 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8254 msgid "What it can't do currently:"
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8259 msgid "static libraries (libfoo.a)"
8260 msgstr ""
8261
8262 #. type: textblock
8263 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8264 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8269 msgid "x86 Linux vmlinuz kernels"
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8274 msgid ""
8275 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8276 "compressed code, and are horribly hard to unpack.  If you want to find the "
8277 "architecture of a kernel, use the architecture of the associated initrd or "
8278 "kernel module(s) instead."
8279 msgstr ""
8280
8281 #. type: =head2
8282 #: ../fish/guestfish-actions.pod:1201
8283 msgid "filesize"
8284 msgstr ""
8285
8286 #. type: verbatim
8287 #: ../fish/guestfish-actions.pod:1203
8288 #, no-wrap
8289 msgid ""
8290 " filesize file\n"
8291 "\n"
8292 msgstr ""
8293
8294 #. type: textblock
8295 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8296 msgid "This command returns the size of C<file> in bytes."
8297 msgstr ""
8298
8299 #. type: textblock
8300 #: ../fish/guestfish-actions.pod:1207
8301 msgid ""
8302 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8303 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8304 msgstr ""
8305
8306 #. type: =head2
8307 #: ../fish/guestfish-actions.pod:1211
8308 msgid "fill"
8309 msgstr ""
8310
8311 #. type: verbatim
8312 #: ../fish/guestfish-actions.pod:1213
8313 #, no-wrap
8314 msgid ""
8315 " fill c len path\n"
8316 "\n"
8317 msgstr ""
8318
8319 #. type: textblock
8320 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8321 msgid ""
8322 "This command creates a new file called C<path>.  The initial content of the "
8323 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8324 "[0..255]>."
8325 msgstr ""
8326
8327 #. type: textblock
8328 #: ../fish/guestfish-actions.pod:1219
8329 msgid ""
8330 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8331 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8332 "L</fill-pattern>."
8333 msgstr ""
8334
8335 #. type: =head2
8336 #: ../fish/guestfish-actions.pod:1224
8337 msgid "fill-pattern"
8338 msgstr ""
8339
8340 #. type: verbatim
8341 #: ../fish/guestfish-actions.pod:1226
8342 #, no-wrap
8343 msgid ""
8344 " fill-pattern pattern len path\n"
8345 "\n"
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1228
8350 msgid ""
8351 "This function is like L</fill> except that it creates a new file of length "
8352 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8353 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8354 "bytes."
8355 msgstr ""
8356
8357 #. type: =head2
8358 #: ../fish/guestfish-actions.pod:1233
8359 msgid "find"
8360 msgstr ""
8361
8362 #. type: verbatim
8363 #: ../fish/guestfish-actions.pod:1235
8364 #, no-wrap
8365 msgid ""
8366 " find directory\n"
8367 "\n"
8368 msgstr ""
8369
8370 #. type: textblock
8371 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8372 msgid ""
8373 "This command lists out all files and directories, recursively, starting at "
8374 "C<directory>.  It is essentially equivalent to running the shell command "
8375 "C<find directory -print> but some post-processing happens on the output, "
8376 "described below."
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8381 msgid ""
8382 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8383 "structure was:"
8384 msgstr ""
8385
8386 #. type: verbatim
8387 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8388 #, no-wrap
8389 msgid ""
8390 " /tmp/a\n"
8391 " /tmp/b\n"
8392 " /tmp/c/d\n"
8393 "\n"
8394 msgstr ""
8395
8396 #. type: textblock
8397 #: ../fish/guestfish-actions.pod:1249
8398 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8399 msgstr ""
8400
8401 #. type: verbatim
8402 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8403 #, no-wrap
8404 msgid ""
8405 " a\n"
8406 " b\n"
8407 " c\n"
8408 " c/d\n"
8409 "\n"
8410 msgstr ""
8411
8412 #. type: textblock
8413 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8414 msgid "If C<directory> is not a directory, then this command returns an error."
8415 msgstr ""
8416
8417 #. type: textblock
8418 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8419 msgid "The returned list is sorted."
8420 msgstr ""
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:1262
8424 msgid "See also L</find0>."
8425 msgstr ""
8426
8427 #. type: =head2
8428 #: ../fish/guestfish-actions.pod:1267
8429 msgid "find0"
8430 msgstr ""
8431
8432 #. type: verbatim
8433 #: ../fish/guestfish-actions.pod:1269
8434 #, no-wrap
8435 msgid ""
8436 " find0 directory (files|-)\n"
8437 "\n"
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8442 msgid ""
8443 "This command lists out all files and directories, recursively, starting at "
8444 "C<directory>, placing the resulting list in the external file called "
8445 "C<files>."
8446 msgstr ""
8447
8448 #. type: textblock
8449 #: ../fish/guestfish-actions.pod:1275
8450 msgid ""
8451 "This command works the same way as L</find> with the following exceptions:"
8452 msgstr ""
8453
8454 #. type: textblock
8455 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8456 msgid "The resulting list is written to an external file."
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8461 msgid ""
8462 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8463 "L<find(1)> option I<-print0>."
8464 msgstr ""
8465
8466 #. type: textblock
8467 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8468 msgid "This command is not limited in the number of names that it can return."
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8473 msgid "The result list is not sorted."
8474 msgstr ""
8475
8476 #. type: =head2
8477 #: ../fish/guestfish-actions.pod:1302
8478 msgid "findfs-label"
8479 msgstr ""
8480
8481 #. type: verbatim
8482 #: ../fish/guestfish-actions.pod:1304
8483 #, no-wrap
8484 msgid ""
8485 " findfs-label label\n"
8486 "\n"
8487 msgstr ""
8488
8489 #. type: textblock
8490 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8491 msgid ""
8492 "This command searches the filesystems and returns the one which has the "
8493 "given label.  An error is returned if no such filesystem can be found."
8494 msgstr ""
8495
8496 #. type: textblock
8497 #: ../fish/guestfish-actions.pod:1310
8498 msgid "To find the label of a filesystem, use L</vfs-label>."
8499 msgstr ""
8500
8501 #. type: =head2
8502 #: ../fish/guestfish-actions.pod:1312
8503 msgid "findfs-uuid"
8504 msgstr ""
8505
8506 #. type: verbatim
8507 #: ../fish/guestfish-actions.pod:1314
8508 #, no-wrap
8509 msgid ""
8510 " findfs-uuid uuid\n"
8511 "\n"
8512 msgstr ""
8513
8514 #. type: textblock
8515 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8516 msgid ""
8517 "This command searches the filesystems and returns the one which has the "
8518 "given UUID.  An error is returned if no such filesystem can be found."
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:1320
8523 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8524 msgstr ""
8525
8526 #. type: =head2
8527 #: ../fish/guestfish-actions.pod:1322
8528 msgid "fsck"
8529 msgstr ""
8530
8531 #. type: verbatim
8532 #: ../fish/guestfish-actions.pod:1324
8533 #, no-wrap
8534 msgid ""
8535 " fsck fstype device\n"
8536 "\n"
8537 msgstr ""
8538
8539 #. type: textblock
8540 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8541 msgid ""
8542 "This runs the filesystem checker (fsck) on C<device> which should have "
8543 "filesystem type C<fstype>."
8544 msgstr ""
8545
8546 #. type: textblock
8547 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8548 msgid ""
8549 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8550 "codes from C<fsck>."
8551 msgstr ""
8552
8553 #. type: textblock
8554 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8555 msgid "Multiple status codes can be summed together."
8556 msgstr ""
8557
8558 #. type: textblock
8559 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8560 msgid ""
8561 "A non-zero return code can mean \"success\", for example if errors have been "
8562 "corrected on the filesystem."
8563 msgstr ""
8564
8565 #. type: textblock
8566 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8567 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8572 msgid ""
8573 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8574 msgstr ""
8575
8576 #. type: =head2
8577 #: ../fish/guestfish-actions.pod:1354
8578 msgid "get-append"
8579 msgstr ""
8580
8581 #. type: verbatim
8582 #: ../fish/guestfish-actions.pod:1356
8583 #, no-wrap
8584 msgid ""
8585 " get-append\n"
8586 "\n"
8587 msgstr ""
8588
8589 #. type: textblock
8590 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8591 msgid ""
8592 "Return the additional kernel options which are added to the guest kernel "
8593 "command line."
8594 msgstr ""
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8598 msgid "If C<NULL> then no options are added."
8599 msgstr ""
8600
8601 #. type: =head2
8602 #: ../fish/guestfish-actions.pod:1363
8603 msgid "get-attach-method"
8604 msgstr ""
8605
8606 #. type: verbatim
8607 #: ../fish/guestfish-actions.pod:1365
8608 #, no-wrap
8609 msgid ""
8610 " get-attach-method\n"
8611 "\n"
8612 msgstr ""
8613
8614 #. type: textblock
8615 #: ../fish/guestfish-actions.pod:1367
8616 msgid "Return the current attach method.  See L</set-attach-method>."
8617 msgstr ""
8618
8619 #. type: =head2
8620 #: ../fish/guestfish-actions.pod:1369
8621 msgid "get-autosync"
8622 msgstr ""
8623
8624 #. type: verbatim
8625 #: ../fish/guestfish-actions.pod:1371
8626 #, no-wrap
8627 msgid ""
8628 " get-autosync\n"
8629 "\n"
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8634 msgid "Get the autosync flag."
8635 msgstr ""
8636
8637 #. type: =head2
8638 #: ../fish/guestfish-actions.pod:1375
8639 msgid "get-direct"
8640 msgstr ""
8641
8642 #. type: verbatim
8643 #: ../fish/guestfish-actions.pod:1377
8644 #, no-wrap
8645 msgid ""
8646 " get-direct\n"
8647 "\n"
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8652 msgid "Return the direct appliance mode flag."
8653 msgstr ""
8654
8655 #. type: =head2
8656 #: ../fish/guestfish-actions.pod:1381
8657 msgid "get-e2label"
8658 msgstr ""
8659
8660 #. type: verbatim
8661 #: ../fish/guestfish-actions.pod:1383
8662 #, no-wrap
8663 msgid ""
8664 " get-e2label device\n"
8665 "\n"
8666 msgstr ""
8667
8668 #. type: textblock
8669 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8670 msgid ""
8671 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8672 msgstr ""
8673
8674 #. type: textblock
8675 #: ../fish/guestfish-actions.pod:1388
8676 msgid ""
8677 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8678 "instead."
8679 msgstr ""
8680
8681 #. type: =head2
8682 #: ../fish/guestfish-actions.pod:1395
8683 msgid "get-e2uuid"
8684 msgstr ""
8685
8686 #. type: verbatim
8687 #: ../fish/guestfish-actions.pod:1397
8688 #, no-wrap
8689 msgid ""
8690 " get-e2uuid device\n"
8691 "\n"
8692 msgstr ""
8693
8694 #. type: textblock
8695 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8696 msgid ""
8697 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8698 msgstr ""
8699
8700 #. type: textblock
8701 #: ../fish/guestfish-actions.pod:1402
8702 msgid ""
8703 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8704 "instead."
8705 msgstr ""
8706
8707 #. type: =head2
8708 #: ../fish/guestfish-actions.pod:1409
8709 msgid "get-memsize"
8710 msgstr ""
8711
8712 #. type: verbatim
8713 #: ../fish/guestfish-actions.pod:1411
8714 #, no-wrap
8715 msgid ""
8716 " get-memsize\n"
8717 "\n"
8718 msgstr ""
8719
8720 #. type: textblock
8721 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8722 msgid ""
8723 "This gets the memory size in megabytes allocated to the qemu subprocess."
8724 msgstr ""
8725
8726 #. type: textblock
8727 #: ../fish/guestfish-actions.pod:1416
8728 msgid ""
8729 "If L</set-memsize> was not called on this handle, and if "
8730 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8731 "value for memsize."
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8736 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8737 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8738 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8739 msgid ""
8740 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8741 msgstr ""
8742
8743 #. type: =head2
8744 #: ../fish/guestfish-actions.pod:1423
8745 msgid "get-network"
8746 msgstr ""
8747
8748 #. type: verbatim
8749 #: ../fish/guestfish-actions.pod:1425
8750 #, no-wrap
8751 msgid ""
8752 " get-network\n"
8753 "\n"
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8758 msgid "This returns the enable network flag."
8759 msgstr ""
8760
8761 #. type: =head2
8762 #: ../fish/guestfish-actions.pod:1429
8763 msgid "get-path"
8764 msgstr ""
8765
8766 #. type: verbatim
8767 #: ../fish/guestfish-actions.pod:1431
8768 #, no-wrap
8769 msgid ""
8770 " get-path\n"
8771 "\n"
8772 msgstr ""
8773
8774 #. type: textblock
8775 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8776 msgid "Return the current search path."
8777 msgstr ""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8781 msgid ""
8782 "This is always non-NULL.  If it wasn't set already, then this will return "
8783 "the default path."
8784 msgstr ""
8785
8786 #. type: =head2
8787 #: ../fish/guestfish-actions.pod:1438
8788 msgid "get-pgroup"
8789 msgstr ""
8790
8791 #. type: verbatim
8792 #: ../fish/guestfish-actions.pod:1440
8793 #, no-wrap
8794 msgid ""
8795 " get-pgroup\n"
8796 "\n"
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8801 msgid "This returns the process group flag."
8802 msgstr ""
8803
8804 #. type: =head2
8805 #: ../fish/guestfish-actions.pod:1444
8806 msgid "get-pid"
8807 msgstr ""
8808
8809 #. type: =head2
8810 #: ../fish/guestfish-actions.pod:1446
8811 msgid "pid"
8812 msgstr ""
8813
8814 #. type: verbatim
8815 #: ../fish/guestfish-actions.pod:1448
8816 #, no-wrap
8817 msgid ""
8818 " get-pid\n"
8819 "\n"
8820 msgstr ""
8821
8822 #. type: textblock
8823 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
8824 msgid ""
8825 "Return the process ID of the qemu subprocess.  If there is no qemu "
8826 "subprocess, then this will return an error."
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
8831 msgid "This is an internal call used for debugging and testing."
8832 msgstr ""
8833
8834 #. type: =head2
8835 #: ../fish/guestfish-actions.pod:1455
8836 msgid "get-qemu"
8837 msgstr ""
8838
8839 #. type: verbatim
8840 #: ../fish/guestfish-actions.pod:1457
8841 #, no-wrap
8842 msgid ""
8843 " get-qemu\n"
8844 "\n"
8845 msgstr ""
8846
8847 #. type: textblock
8848 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
8849 msgid "Return the current qemu binary."
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
8854 msgid ""
8855 "This is always non-NULL.  If it wasn't set already, then this will return "
8856 "the default qemu binary name."
8857 msgstr ""
8858
8859 #. type: =head2
8860 #: ../fish/guestfish-actions.pod:1464
8861 msgid "get-recovery-proc"
8862 msgstr ""
8863
8864 #. type: verbatim
8865 #: ../fish/guestfish-actions.pod:1466
8866 #, no-wrap
8867 msgid ""
8868 " get-recovery-proc\n"
8869 "\n"
8870 msgstr ""
8871
8872 #. type: textblock
8873 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
8874 msgid "Return the recovery process enabled flag."
8875 msgstr ""
8876
8877 #. type: =head2
8878 #: ../fish/guestfish-actions.pod:1470
8879 msgid "get-selinux"
8880 msgstr ""
8881
8882 #. type: verbatim
8883 #: ../fish/guestfish-actions.pod:1472
8884 #, no-wrap
8885 msgid ""
8886 " get-selinux\n"
8887 "\n"
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../fish/guestfish-actions.pod:1474
8892 msgid ""
8893 "This returns the current setting of the selinux flag which is passed to the "
8894 "appliance at boot time.  See L</set-selinux>."
8895 msgstr ""
8896
8897 #. type: =head2
8898 #: ../fish/guestfish-actions.pod:1480
8899 msgid "get-smp"
8900 msgstr ""
8901
8902 #. type: verbatim
8903 #: ../fish/guestfish-actions.pod:1482
8904 #, no-wrap
8905 msgid ""
8906 " get-smp\n"
8907 "\n"
8908 msgstr ""
8909
8910 #. type: textblock
8911 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
8912 msgid "This returns the number of virtual CPUs assigned to the appliance."
8913 msgstr ""
8914
8915 #. type: =head2
8916 #: ../fish/guestfish-actions.pod:1486
8917 msgid "get-state"
8918 msgstr ""
8919
8920 #. type: verbatim
8921 #: ../fish/guestfish-actions.pod:1488
8922 #, no-wrap
8923 msgid ""
8924 " get-state\n"
8925 "\n"
8926 msgstr ""
8927
8928 #. type: textblock
8929 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
8930 msgid ""
8931 "This returns the current state as an opaque integer.  This is only useful "
8932 "for printing debug and internal error messages."
8933 msgstr ""
8934
8935 #. type: textblock
8936 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
8937 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
8938 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
8939 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
8940 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
8941 msgid "For more information on states, see L<guestfs(3)>."
8942 msgstr ""
8943
8944 #. type: =head2
8945 #: ../fish/guestfish-actions.pod:1495
8946 msgid "get-trace"
8947 msgstr ""
8948
8949 #. type: verbatim
8950 #: ../fish/guestfish-actions.pod:1497
8951 #, no-wrap
8952 msgid ""
8953 " get-trace\n"
8954 "\n"
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
8959 msgid "Return the command trace flag."
8960 msgstr ""
8961
8962 #. type: =head2
8963 #: ../fish/guestfish-actions.pod:1501
8964 msgid "get-umask"
8965 msgstr ""
8966
8967 #. type: verbatim
8968 #: ../fish/guestfish-actions.pod:1503
8969 #, no-wrap
8970 msgid ""
8971 " get-umask\n"
8972 "\n"
8973 msgstr ""
8974
8975 #. type: textblock
8976 #: ../fish/guestfish-actions.pod:1505
8977 msgid ""
8978 "Return the current umask.  By default the umask is C<022> unless it has been "
8979 "set by calling L</umask>."
8980 msgstr ""
8981
8982 #. type: =head2
8983 #: ../fish/guestfish-actions.pod:1508
8984 msgid "get-verbose"
8985 msgstr ""
8986
8987 #. type: verbatim
8988 #: ../fish/guestfish-actions.pod:1510
8989 #, no-wrap
8990 msgid ""
8991 " get-verbose\n"
8992 "\n"
8993 msgstr ""
8994
8995 #. type: textblock
8996 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
8997 msgid "This returns the verbose messages flag."
8998 msgstr ""
8999
9000 #. type: =head2
9001 #: ../fish/guestfish-actions.pod:1514
9002 msgid "getcon"
9003 msgstr ""
9004
9005 #. type: verbatim
9006 #: ../fish/guestfish-actions.pod:1516
9007 #, no-wrap
9008 msgid ""
9009 " getcon\n"
9010 "\n"
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9015 msgid "This gets the SELinux security context of the daemon."
9016 msgstr ""
9017
9018 #. type: textblock
9019 #: ../fish/guestfish-actions.pod:1520
9020 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9021 msgstr ""
9022
9023 #. type: =head2
9024 #: ../fish/guestfish-actions.pod:1523
9025 msgid "getxattr"
9026 msgstr ""
9027
9028 #. type: verbatim
9029 #: ../fish/guestfish-actions.pod:1525
9030 #, no-wrap
9031 msgid ""
9032 " getxattr path name\n"
9033 "\n"
9034 msgstr ""
9035
9036 #. type: textblock
9037 #: ../fish/guestfish-actions.pod:1527
9038 msgid ""
9039 "Get a single extended attribute from file C<path> named C<name>.  This call "
9040 "follows symlinks.  If you want to lookup an extended attribute for the "
9041 "symlink itself, use L</lgetxattr>."
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9046 msgid ""
9047 "Normally it is better to get all extended attributes from a file in one go "
9048 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9049 "buggy and do not provide a way to list out attributes.  For these "
9050 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9051 "attributes you want in advance and call this function."
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9056 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9057 msgid ""
9058 "Extended attribute values are blobs of binary data.  If there is no extended "
9059 "attribute named C<name>, this returns an error."
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:1541
9064 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9065 msgstr ""
9066
9067 #. type: =head2
9068 #: ../fish/guestfish-actions.pod:1543
9069 msgid "getxattrs"
9070 msgstr ""
9071
9072 #. type: verbatim
9073 #: ../fish/guestfish-actions.pod:1545
9074 #, no-wrap
9075 msgid ""
9076 " getxattrs path\n"
9077 "\n"
9078 msgstr ""
9079
9080 #. type: textblock
9081 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9082 msgid ""
9083 "This call lists the extended attributes of the file or directory C<path>."
9084 msgstr ""
9085
9086 #. type: textblock
9087 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9088 msgid ""
9089 "At the system call level, this is a combination of the L<listxattr(2)> and "
9090 "L<getxattr(2)> calls."
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:1553
9095 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9096 msgstr ""
9097
9098 #. type: =head2
9099 #: ../fish/guestfish-actions.pod:1555
9100 msgid "glob-expand"
9101 msgstr ""
9102
9103 #. type: verbatim
9104 #: ../fish/guestfish-actions.pod:1557
9105 #, no-wrap
9106 msgid ""
9107 " glob-expand pattern\n"
9108 "\n"
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9113 msgid ""
9114 "This command searches for all the pathnames matching C<pattern> according to "
9115 "the wildcard expansion rules used by the shell."
9116 msgstr ""
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9120 msgid ""
9121 "If no paths match, then this returns an empty list (note: not an error)."
9122 msgstr ""
9123
9124 #. type: textblock
9125 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9126 msgid ""
9127 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9128 "GLOB_BRACE>.  See that manual page for more details."
9129 msgstr ""
9130
9131 #. type: =head2
9132 #: ../fish/guestfish-actions.pod:1570
9133 msgid "grep"
9134 msgstr ""
9135
9136 #. type: verbatim
9137 #: ../fish/guestfish-actions.pod:1572
9138 #, no-wrap
9139 msgid ""
9140 " grep regex path\n"
9141 "\n"
9142 msgstr ""
9143
9144 #. type: textblock
9145 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9146 msgid "This calls the external C<grep> program and returns the matching lines."
9147 msgstr ""
9148
9149 #. type: =head2
9150 #: ../fish/guestfish-actions.pod:1580
9151 msgid "grepi"
9152 msgstr ""
9153
9154 #. type: verbatim
9155 #: ../fish/guestfish-actions.pod:1582
9156 #, no-wrap
9157 msgid ""
9158 " grepi regex path\n"
9159 "\n"
9160 msgstr ""
9161
9162 #. type: textblock
9163 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9164 msgid ""
9165 "This calls the external C<grep -i> program and returns the matching lines."
9166 msgstr ""
9167
9168 #. type: =head2
9169 #: ../fish/guestfish-actions.pod:1590
9170 msgid "grub-install"
9171 msgstr ""
9172
9173 #. type: verbatim
9174 #: ../fish/guestfish-actions.pod:1592
9175 #, no-wrap
9176 msgid ""
9177 " grub-install root device\n"
9178 "\n"
9179 msgstr ""
9180
9181 #. type: textblock
9182 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9183 msgid ""
9184 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9185 "with the root directory being C<root>."
9186 msgstr ""
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9190 msgid ""
9191 "There is currently no way in the API to install grub2, which is used by most "
9192 "modern Linux guests.  It is possible to run the grub2 command from the "
9193 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9198 msgid ""
9199 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9200 "compatible with itself, so this only works in rather narrow circumstances.  "
9201 "Careful testing with each guest version is advisable."
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9206 msgid ""
9207 "If grub-install reports the error \"No suitable drive was found in the "
9208 "generated device map.\" it may be that you need to create a C</boot/grub/"
9209 "device.map> file first that contains the mapping between grub device names "
9210 "and Linux device names.  It is usually sufficient to create a file "
9211 "containing:"
9212 msgstr ""
9213
9214 #. type: verbatim
9215 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9216 #, no-wrap
9217 msgid ""
9218 " (hd0) /dev/vda\n"
9219 "\n"
9220 msgstr ""
9221
9222 #. type: textblock
9223 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9224 msgid "replacing C</dev/vda> with the name of the installation device."
9225 msgstr ""
9226
9227 #. type: =head2
9228 #: ../fish/guestfish-actions.pod:1630
9229 msgid "head"
9230 msgstr ""
9231
9232 #. type: verbatim
9233 #: ../fish/guestfish-actions.pod:1632
9234 #, no-wrap
9235 msgid ""
9236 " head path\n"
9237 "\n"
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9242 msgid ""
9243 "This command returns up to the first 10 lines of a file as a list of strings."
9244 msgstr ""
9245
9246 #. type: =head2
9247 #: ../fish/guestfish-actions.pod:1640
9248 msgid "head-n"
9249 msgstr ""
9250
9251 #. type: verbatim
9252 #: ../fish/guestfish-actions.pod:1642
9253 #, no-wrap
9254 msgid ""
9255 " head-n nrlines path\n"
9256 "\n"
9257 msgstr ""
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9261 msgid ""
9262 "If the parameter C<nrlines> is a positive number, this returns the first "
9263 "C<nrlines> lines of the file C<path>."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9268 msgid ""
9269 "If the parameter C<nrlines> is a negative number, this returns lines from "
9270 "the file C<path>, excluding the last C<nrlines> lines."
9271 msgstr ""
9272
9273 #. type: textblock
9274 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9275 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9276 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9277 msgstr ""
9278
9279 #. type: =head2
9280 #: ../fish/guestfish-actions.pod:1655
9281 msgid "hexdump"
9282 msgstr ""
9283
9284 #. type: verbatim
9285 #: ../fish/guestfish-actions.pod:1657
9286 #, no-wrap
9287 msgid ""
9288 " hexdump path\n"
9289 "\n"
9290 msgstr ""
9291
9292 #. type: textblock
9293 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9294 msgid ""
9295 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9296 "readable, canonical hex dump of the file."
9297 msgstr ""
9298
9299 #. type: =head2
9300 #: ../fish/guestfish-actions.pod:1665
9301 msgid "initrd-cat"
9302 msgstr ""
9303
9304 #. type: verbatim
9305 #: ../fish/guestfish-actions.pod:1667
9306 #, no-wrap
9307 msgid ""
9308 " initrd-cat initrdpath filename\n"
9309 "\n"
9310 msgstr ""
9311
9312 #. type: textblock
9313 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9314 msgid ""
9315 "This command unpacks the file C<filename> from the initrd file called "
9316 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9317 "character."
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9322 msgid ""
9323 "For example, in guestfish you could use the following command to examine the "
9324 "boot script (usually called C</init>)  contained in a Linux initrd or "
9325 "initramfs image:"
9326 msgstr ""
9327
9328 #. type: verbatim
9329 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9330 #, no-wrap
9331 msgid ""
9332 " initrd-cat /boot/initrd-<version>.img init\n"
9333 "\n"
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:1679
9338 msgid "See also L</initrd-list>."
9339 msgstr ""
9340
9341 #. type: =head2
9342 #: ../fish/guestfish-actions.pod:1684
9343 msgid "initrd-list"
9344 msgstr ""
9345
9346 #. type: verbatim
9347 #: ../fish/guestfish-actions.pod:1686
9348 #, no-wrap
9349 msgid ""
9350 " initrd-list path\n"
9351 "\n"
9352 msgstr ""
9353
9354 #. type: textblock
9355 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9356 msgid "This command lists out files contained in an initrd."
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9361 msgid ""
9362 "The files are listed without any initial C</> character.  The files are "
9363 "listed in the order they appear (not necessarily alphabetical).  Directory "
9364 "names are listed as separate items."
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9369 msgid ""
9370 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9371 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9372 "files)."
9373 msgstr ""
9374
9375 #. type: =head2
9376 #: ../fish/guestfish-actions.pod:1698
9377 msgid "inotify-add-watch"
9378 msgstr ""
9379
9380 #. type: verbatim
9381 #: ../fish/guestfish-actions.pod:1700
9382 #, no-wrap
9383 msgid ""
9384 " inotify-add-watch path mask\n"
9385 "\n"
9386 msgstr ""
9387
9388 #. type: textblock
9389 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9390 msgid "Watch C<path> for the events listed in C<mask>."
9391 msgstr ""
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9395 msgid ""
9396 "Note that if C<path> is a directory then events within that directory are "
9397 "watched, but this does I<not> happen recursively (in subdirectories)."
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9402 msgid ""
9403 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9404 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9405 msgstr ""
9406
9407 #. type: =head2
9408 #: ../fish/guestfish-actions.pod:1712
9409 msgid "inotify-close"
9410 msgstr ""
9411
9412 #. type: verbatim
9413 #: ../fish/guestfish-actions.pod:1714
9414 #, no-wrap
9415 msgid ""
9416 " inotify-close\n"
9417 "\n"
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9422 msgid ""
9423 "This closes the inotify handle which was previously opened by inotify_init.  "
9424 "It removes all watches, throws away any pending events, and deallocates all "
9425 "resources."
9426 msgstr ""
9427
9428 #. type: =head2
9429 #: ../fish/guestfish-actions.pod:1720
9430 msgid "inotify-files"
9431 msgstr ""
9432
9433 #. type: verbatim
9434 #: ../fish/guestfish-actions.pod:1722
9435 #, no-wrap
9436 msgid ""
9437 " inotify-files\n"
9438 "\n"
9439 msgstr ""
9440
9441 #. type: textblock
9442 #: ../fish/guestfish-actions.pod:1724
9443 msgid ""
9444 "This function is a helpful wrapper around L</inotify-read> which just "
9445 "returns a list of pathnames of objects that were touched.  The returned "
9446 "pathnames are sorted and deduplicated."
9447 msgstr ""
9448
9449 #. type: =head2
9450 #: ../fish/guestfish-actions.pod:1728
9451 msgid "inotify-init"
9452 msgstr ""
9453
9454 #. type: verbatim
9455 #: ../fish/guestfish-actions.pod:1730
9456 #, no-wrap
9457 msgid ""
9458 " inotify-init maxevents\n"
9459 "\n"
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9464 msgid ""
9465 "This command creates a new inotify handle.  The inotify subsystem can be "
9466 "used to notify events which happen to objects in the guest filesystem."
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../fish/guestfish-actions.pod:1736
9471 msgid ""
9472 "C<maxevents> is the maximum number of events which will be queued up between "
9473 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9474 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9475 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9476 "but records the fact that it threw them away by setting a flag "
9477 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9478 msgstr ""
9479
9480 #. type: textblock
9481 #: ../fish/guestfish-actions.pod:1746
9482 msgid ""
9483 "Before any events are generated, you have to add some watches to the "
9484 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9485 "L</inotify-watch-all>."
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:1752
9490 msgid ""
9491 "Queued up events should be read periodically by calling L</inotify-read> (or "
9492 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9493 "If you don't read the events out often enough then you risk the internal "
9494 "queue overflowing."
9495 msgstr ""
9496
9497 #. type: textblock
9498 #: ../fish/guestfish-actions.pod:1759
9499 msgid ""
9500 "The handle should be closed after use by calling L</inotify-close>.  This "
9501 "also removes any watches automatically."
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9506 msgid ""
9507 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9508 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9509 "that there is one global inotify handle per libguestfs instance."
9510 msgstr ""
9511
9512 #. type: =head2
9513 #: ../fish/guestfish-actions.pod:1768
9514 msgid "inotify-read"
9515 msgstr ""
9516
9517 #. type: verbatim
9518 #: ../fish/guestfish-actions.pod:1770
9519 #, no-wrap
9520 msgid ""
9521 " inotify-read\n"
9522 "\n"
9523 msgstr ""
9524
9525 #. type: textblock
9526 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9527 msgid ""
9528 "Return the complete queue of events that have happened since the previous "
9529 "read call."
9530 msgstr ""
9531
9532 #. type: textblock
9533 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9534 msgid "If no events have happened, this returns an empty list."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9539 msgid ""
9540 "I<Note>: In order to make sure that all events have been read, you must call "
9541 "this function repeatedly until it returns an empty list.  The reason is that "
9542 "the call will read events up to the maximum appliance-to-host message size "
9543 "and leave remaining events in the queue."
9544 msgstr ""
9545
9546 #. type: =head2
9547 #: ../fish/guestfish-actions.pod:1783
9548 msgid "inotify-rm-watch"
9549 msgstr ""
9550
9551 #. type: verbatim
9552 #: ../fish/guestfish-actions.pod:1785
9553 #, no-wrap
9554 msgid ""
9555 " inotify-rm-watch wd\n"
9556 "\n"
9557 msgstr ""
9558
9559 #. type: textblock
9560 #: ../fish/guestfish-actions.pod:1787
9561 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9562 msgstr ""
9563
9564 #. type: =head2
9565 #: ../fish/guestfish-actions.pod:1790
9566 msgid "inspect-get-arch"
9567 msgstr ""
9568
9569 #. type: verbatim
9570 #: ../fish/guestfish-actions.pod:1792
9571 #, no-wrap
9572 msgid ""
9573 " inspect-get-arch root\n"
9574 "\n"
9575 msgstr ""
9576
9577 #. type: textblock
9578 #: ../fish/guestfish-actions.pod:1794
9579 msgid ""
9580 "This returns the architecture of the inspected operating system.  The "
9581 "possible return values are listed under L</file-architecture>."
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9586 msgid ""
9587 "If the architecture could not be determined, then the string C<unknown> is "
9588 "returned."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9593 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9594 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9595 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9596 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9597 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9598 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9599 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9600 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9601 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9602 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9603 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9604 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9605 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9606 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9607 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9608 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9609 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9610 msgstr ""
9611
9612 #. type: =head2
9613 #: ../fish/guestfish-actions.pod:1803
9614 msgid "inspect-get-distro"
9615 msgstr ""
9616
9617 #. type: verbatim
9618 #: ../fish/guestfish-actions.pod:1805
9619 #, no-wrap
9620 msgid ""
9621 " inspect-get-distro root\n"
9622 "\n"
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9627 msgid ""
9628 "This returns the distro (distribution) of the inspected operating system."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9633 msgid "Currently defined distros are:"
9634 msgstr ""
9635
9636 #. type: =item
9637 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9638 msgid "\"archlinux\""
9639 msgstr ""
9640
9641 #. type: textblock
9642 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9643 msgid "Arch Linux."
9644 msgstr ""
9645
9646 #. type: =item
9647 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9648 msgid "\"centos\""
9649 msgstr ""
9650
9651 #. type: textblock
9652 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9653 msgid "CentOS."
9654 msgstr ""
9655
9656 #. type: =item
9657 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9658 msgid "\"debian\""
9659 msgstr ""
9660
9661 #. type: textblock
9662 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9663 msgid "Debian."
9664 msgstr ""
9665
9666 #. type: =item
9667 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9668 msgid "\"fedora\""
9669 msgstr ""
9670
9671 #. type: textblock
9672 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9673 msgid "Fedora."
9674 msgstr ""
9675
9676 #. type: =item
9677 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9678 msgid "\"gentoo\""
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9683 msgid "Gentoo."
9684 msgstr ""
9685
9686 #. type: =item
9687 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9688 msgid "\"linuxmint\""
9689 msgstr ""
9690
9691 #. type: textblock
9692 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9693 msgid "Linux Mint."
9694 msgstr ""
9695
9696 #. type: =item
9697 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9698 msgid "\"mageia\""
9699 msgstr ""
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9703 msgid "Mageia."
9704 msgstr ""
9705
9706 #. type: =item
9707 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9708 msgid "\"mandriva\""
9709 msgstr ""
9710
9711 #. type: textblock
9712 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9713 msgid "Mandriva."
9714 msgstr ""
9715
9716 #. type: =item
9717 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9718 msgid "\"meego\""
9719 msgstr ""
9720
9721 #. type: textblock
9722 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9723 msgid "MeeGo."
9724 msgstr ""
9725
9726 #. type: =item
9727 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9728 msgid "\"opensuse\""
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9733 msgid "OpenSUSE."
9734 msgstr ""
9735
9736 #. type: =item
9737 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9738 msgid "\"pardus\""
9739 msgstr ""
9740
9741 #. type: textblock
9742 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9743 msgid "Pardus."
9744 msgstr ""
9745
9746 #. type: =item
9747 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9748 msgid "\"redhat-based\""
9749 msgstr ""
9750
9751 #. type: textblock
9752 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9753 msgid "Some Red Hat-derived distro."
9754 msgstr ""
9755
9756 #. type: =item
9757 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9758 msgid "\"rhel\""
9759 msgstr ""
9760
9761 #. type: textblock
9762 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9763 msgid "Red Hat Enterprise Linux."
9764 msgstr ""
9765
9766 #. type: =item
9767 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
9768 msgid "\"scientificlinux\""
9769 msgstr ""
9770
9771 #. type: textblock
9772 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
9773 msgid "Scientific Linux."
9774 msgstr ""
9775
9776 #. type: =item
9777 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
9778 msgid "\"slackware\""
9779 msgstr ""
9780
9781 #. type: textblock
9782 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
9783 msgid "Slackware."
9784 msgstr ""
9785
9786 #. type: =item
9787 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
9788 msgid "\"ttylinux\""
9789 msgstr ""
9790
9791 #. type: textblock
9792 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
9793 msgid "ttylinux."
9794 msgstr ""
9795
9796 #. type: =item
9797 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
9798 msgid "\"ubuntu\""
9799 msgstr ""
9800
9801 #. type: textblock
9802 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
9803 msgid "Ubuntu."
9804 msgstr ""
9805
9806 #. type: =item
9807 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
9808 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
9809 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
9810 msgid "\"unknown\""
9811 msgstr ""
9812
9813 #. type: textblock
9814 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
9815 msgid "The distro could not be determined."
9816 msgstr ""
9817
9818 #. type: =item
9819 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
9820 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
9821 msgid "\"windows\""
9822 msgstr ""
9823
9824 #. type: textblock
9825 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
9826 msgid ""
9827 "Windows does not have distributions.  This string is returned if the OS type "
9828 "is Windows."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
9833 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
9834 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
9835 msgid ""
9836 "Future versions of libguestfs may return other strings here.  The caller "
9837 "should be prepared to handle any string."
9838 msgstr ""
9839
9840 #. type: =head2
9841 #: ../fish/guestfish-actions.pod:1898
9842 msgid "inspect-get-drive-mappings"
9843 msgstr ""
9844
9845 #. type: verbatim
9846 #: ../fish/guestfish-actions.pod:1900
9847 #, no-wrap
9848 msgid ""
9849 " inspect-get-drive-mappings root\n"
9850 "\n"
9851 msgstr ""
9852
9853 #. type: textblock
9854 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
9855 msgid ""
9856 "This call is useful for Windows which uses a primitive system of assigning "
9857 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9858 "Windows Registry to find out how disks/partitions are mapped to drive "
9859 "letters, and returns a hash table as in the example below:"
9860 msgstr ""
9861
9862 #. type: verbatim
9863 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
9864 #, no-wrap
9865 msgid ""
9866 " C      =>     /dev/vda2\n"
9867 " E      =>     /dev/vdb1\n"
9868 " F      =>     /dev/vdc1\n"
9869 "\n"
9870 msgstr ""
9871
9872 #. type: textblock
9873 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
9874 msgid ""
9875 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9876 "and just contains the drive letter, without the customary colon separator "
9877 "character."
9878 msgstr ""
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
9882 msgid ""
9883 "In future we may support other operating systems that also used drive "
9884 "letters, but the keys for those might not be case insensitive and might be "
9885 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9886 "C<h1> etc."
9887 msgstr ""
9888
9889 #. type: textblock
9890 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
9891 msgid ""
9892 "For Windows guests, currently only hard drive mappings are returned.  "
9893 "Removable disks (eg. DVD-ROMs) are ignored."
9894 msgstr ""
9895
9896 #. type: textblock
9897 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
9898 msgid ""
9899 "For guests that do not use drive mappings, or if the drive mappings could "
9900 "not be determined, this returns an empty hash table."
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1927
9905 msgid ""
9906 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9907 "get-mountpoints>, L</inspect-get-filesystems>."
9908 msgstr ""
9909
9910 #. type: =head2
9911 #: ../fish/guestfish-actions.pod:1931
9912 msgid "inspect-get-filesystems"
9913 msgstr ""
9914
9915 #. type: verbatim
9916 #: ../fish/guestfish-actions.pod:1933
9917 #, no-wrap
9918 msgid ""
9919 " inspect-get-filesystems root\n"
9920 "\n"
9921 msgstr ""
9922
9923 #. type: textblock
9924 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
9925 msgid ""
9926 "This returns a list of all the filesystems that we think are associated with "
9927 "this operating system.  This includes the root filesystem, other ordinary "
9928 "filesystems, and non-mounted devices like swap partitions."
9929 msgstr ""
9930
9931 #. type: textblock
9932 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
9933 msgid ""
9934 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9935 "to be shared between operating systems."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1943
9940 msgid ""
9941 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9942 "get-mountpoints>."
9943 msgstr ""
9944
9945 #. type: =head2
9946 #: ../fish/guestfish-actions.pod:1946
9947 msgid "inspect-get-format"
9948 msgstr ""
9949
9950 #. type: verbatim
9951 #: ../fish/guestfish-actions.pod:1948
9952 #, no-wrap
9953 msgid ""
9954 " inspect-get-format root\n"
9955 "\n"
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
9960 msgid ""
9961 "This returns the format of the inspected operating system.  You can use it "
9962 "to detect install images, live CDs and similar."
9963 msgstr ""
9964
9965 #. type: textblock
9966 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
9967 msgid "Currently defined formats are:"
9968 msgstr ""
9969
9970 #. type: =item
9971 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
9972 msgid "\"installed\""
9973 msgstr ""
9974
9975 #. type: textblock
9976 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
9977 msgid "This is an installed operating system."
9978 msgstr ""
9979
9980 #. type: =item
9981 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
9982 msgid "\"installer\""
9983 msgstr ""
9984
9985 #. type: textblock
9986 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
9987 msgid ""
9988 "The disk image being inspected is not an installed operating system, but a "
9989 "I<bootable> install disk, live CD, or similar."
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9994 msgid "The format of this disk image is not known."
9995 msgstr ""
9996
9997 #. type: =head2
9998 #: ../fish/guestfish-actions.pod:1977
9999 msgid "inspect-get-hostname"
10000 msgstr ""
10001
10002 #. type: verbatim
10003 #: ../fish/guestfish-actions.pod:1979
10004 #, no-wrap
10005 msgid ""
10006 " inspect-get-hostname root\n"
10007 "\n"
10008 msgstr ""
10009
10010 #. type: textblock
10011 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10012 msgid ""
10013 "This function returns the hostname of the operating system as found by "
10014 "inspection of the guest's configuration files."
10015 msgstr ""
10016
10017 #. type: textblock
10018 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10019 msgid ""
10020 "If the hostname could not be determined, then the string C<unknown> is "
10021 "returned."
10022 msgstr ""
10023
10024 #. type: =head2
10025 #: ../fish/guestfish-actions.pod:1989
10026 msgid "inspect-get-icon"
10027 msgstr ""
10028
10029 #. type: verbatim
10030 #: ../fish/guestfish-actions.pod:1991
10031 #, no-wrap
10032 msgid ""
10033 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10034 "\n"
10035 msgstr ""
10036
10037 #. type: textblock
10038 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10039 msgid ""
10040 "This function returns an icon corresponding to the inspected operating "
10041 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10042 "to PNG if necessary)."
10043 msgstr ""
10044
10045 #. type: textblock
10046 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10047 msgid ""
10048 "If it was not possible to get an icon this function returns a zero-length "
10049 "(non-NULL) buffer.  I<Callers must check for this case>."
10050 msgstr ""
10051
10052 #. type: textblock
10053 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10054 msgid ""
10055 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10056 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10057 "this file will be returned.  You can disable favicons by passing the "
10058 "optional C<favicon> boolean as false (default is true)."
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10063 msgid ""
10064 "If finding the favicon fails, then we look in other places in the guest for "
10065 "a suitable icon."
10066 msgstr ""
10067
10068 #. type: textblock
10069 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10070 msgid ""
10071 "If the optional C<highquality> boolean is true then only high quality icons "
10072 "are returned, which means only icons of high resolution with an alpha "
10073 "channel.  The default (false) is to return any icon we can, even if it is of "
10074 "substandard quality."
10075 msgstr ""
10076
10077 #. type: textblock
10078 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10079 msgid ""
10080 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10081 "before you call this, since it needs to read information from the guest "
10082 "filesystem during the call."
10083 msgstr ""
10084
10085 #. type: textblock
10086 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10087 msgid ""
10088 "B<Security:> The icon data comes from the untrusted guest, and should be "
10089 "treated with caution.  PNG files have been known to contain exploits.  "
10090 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10091 "trying to process or display the icon."
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10096 msgid ""
10097 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10098 "tries to return the largest, highest quality icon available.  The "
10099 "application must scale the icon to the required size."
10100 msgstr ""
10101
10102 #. type: textblock
10103 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10104 msgid ""
10105 "Extracting icons from Windows guests requires the external C<wrestool> "
10106 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10107 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10108 "installed separately."
10109 msgstr ""
10110
10111 #. type: textblock
10112 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10113 msgid ""
10114 "Operating system icons are usually trademarks.  Seek legal advice before "
10115 "using trademarks in applications."
10116 msgstr ""
10117
10118 #. type: =head2
10119 #: ../fish/guestfish-actions.pod:2055
10120 msgid "inspect-get-major-version"
10121 msgstr ""
10122
10123 #. type: verbatim
10124 #: ../fish/guestfish-actions.pod:2057
10125 #, no-wrap
10126 msgid ""
10127 " inspect-get-major-version root\n"
10128 "\n"
10129 msgstr ""
10130
10131 #. type: textblock
10132 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10133 msgid ""
10134 "This returns the major version number of the inspected operating system."
10135 msgstr ""
10136
10137 #. type: textblock
10138 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10139 msgid ""
10140 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10141 "popular public names used by the operating system.  Notably the operating "
10142 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10143 "1).  You can find out the real versions corresponding to releases of Windows "
10144 "by consulting Wikipedia or MSDN."
10145 msgstr ""
10146
10147 #. type: textblock
10148 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10149 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10150 msgid "If the version could not be determined, then C<0> is returned."
10151 msgstr ""
10152
10153 #. type: =head2
10154 #: ../fish/guestfish-actions.pod:2073
10155 msgid "inspect-get-minor-version"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:2075
10160 #, no-wrap
10161 msgid ""
10162 " inspect-get-minor-version root\n"
10163 "\n"
10164 msgstr ""
10165
10166 #. type: textblock
10167 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10168 msgid ""
10169 "This returns the minor version number of the inspected operating system."
10170 msgstr ""
10171
10172 #. type: textblock
10173 #: ../fish/guestfish-actions.pod:2082
10174 msgid ""
10175 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10176 "get-major-version>."
10177 msgstr ""
10178
10179 #. type: =head2
10180 #: ../fish/guestfish-actions.pod:2085
10181 msgid "inspect-get-mountpoints"
10182 msgstr ""
10183
10184 #. type: verbatim
10185 #: ../fish/guestfish-actions.pod:2087
10186 #, no-wrap
10187 msgid ""
10188 " inspect-get-mountpoints root\n"
10189 "\n"
10190 msgstr ""
10191
10192 #. type: textblock
10193 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10194 msgid ""
10195 "This returns a hash of where we think the filesystems associated with this "
10196 "operating system should be mounted.  Callers should note that this is at "
10197 "best an educated guess made by reading configuration files such as C</etc/"
10198 "fstab>.  I<In particular note> that this may return filesystems which are "
10199 "non-existent or not mountable and callers should be prepared to handle or "
10200 "ignore failures if they try to mount them."
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10205 msgid ""
10206 "Each element in the returned hashtable has a key which is the path of the "
10207 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10208 "mounted there (eg. C</dev/sda1>)."
10209 msgstr ""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10213 msgid ""
10214 "Non-mounted devices such as swap devices are I<not> returned in this list."
10215 msgstr ""
10216
10217 #. type: textblock
10218 #: ../fish/guestfish-actions.pod:2106
10219 msgid ""
10220 "For operating systems like Windows which still use drive letters, this call "
10221 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10222 "information about the mapping of drive letters to partitions, see L</inspect-"
10223 "get-drive-mappings>."
10224 msgstr ""
10225
10226 #. type: textblock
10227 #: ../fish/guestfish-actions.pod:2112
10228 msgid ""
10229 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10230 "get-filesystems>."
10231 msgstr ""
10232
10233 #. type: =head2
10234 #: ../fish/guestfish-actions.pod:2115
10235 msgid "inspect-get-package-format"
10236 msgstr ""
10237
10238 #. type: verbatim
10239 #: ../fish/guestfish-actions.pod:2117
10240 #, no-wrap
10241 msgid ""
10242 " inspect-get-package-format root\n"
10243 "\n"
10244 msgstr ""
10245
10246 #. type: textblock
10247 #: ../fish/guestfish-actions.pod:2119
10248 msgid ""
10249 "This function and L</inspect-get-package-management> return the package "
10250 "format and package management tool used by the inspected operating system.  "
10251 "For example for Fedora these functions would return C<rpm> (package format) "
10252 "and C<yum> (package management)."
10253 msgstr ""
10254
10255 #. type: textblock
10256 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10257 msgid ""
10258 "This returns the string C<unknown> if we could not determine the package "
10259 "format I<or> if the operating system does not have a real packaging system "
10260 "(eg. Windows)."
10261 msgstr ""
10262
10263 #. type: textblock
10264 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10265 msgid ""
10266 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10267 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10268 msgstr ""
10269
10270 #. type: =head2
10271 #: ../fish/guestfish-actions.pod:2135
10272 msgid "inspect-get-package-management"
10273 msgstr ""
10274
10275 #. type: verbatim
10276 #: ../fish/guestfish-actions.pod:2137
10277 #, no-wrap
10278 msgid ""
10279 " inspect-get-package-management root\n"
10280 "\n"
10281 msgstr ""
10282
10283 #. type: textblock
10284 #: ../fish/guestfish-actions.pod:2139
10285 msgid ""
10286 "L</inspect-get-package-format> and this function return the package format "
10287 "and package management tool used by the inspected operating system.  For "
10288 "example for Fedora these functions would return C<rpm> (package format) and "
10289 "C<yum> (package management)."
10290 msgstr ""
10291
10292 #. type: textblock
10293 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10294 msgid ""
10295 "This returns the string C<unknown> if we could not determine the package "
10296 "management tool I<or> if the operating system does not have a real packaging "
10297 "system (eg. Windows)."
10298 msgstr ""
10299
10300 #. type: textblock
10301 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10302 msgid ""
10303 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10304 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10305 "versions of libguestfs may return other strings."
10306 msgstr ""
10307
10308 #. type: =head2
10309 #: ../fish/guestfish-actions.pod:2156
10310 msgid "inspect-get-product-name"
10311 msgstr ""
10312
10313 #. type: verbatim
10314 #: ../fish/guestfish-actions.pod:2158
10315 #, no-wrap
10316 msgid ""
10317 " inspect-get-product-name root\n"
10318 "\n"
10319 msgstr ""
10320
10321 #. type: textblock
10322 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10323 msgid ""
10324 "This returns the product name of the inspected operating system.  The "
10325 "product name is generally some freeform string which can be displayed to the "
10326 "user, but should not be parsed by programs."
10327 msgstr ""
10328
10329 #. type: textblock
10330 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10331 msgid ""
10332 "If the product name could not be determined, then the string C<unknown> is "
10333 "returned."
10334 msgstr ""
10335
10336 #. type: =head2
10337 #: ../fish/guestfish-actions.pod:2170
10338 msgid "inspect-get-product-variant"
10339 msgstr ""
10340
10341 #. type: verbatim
10342 #: ../fish/guestfish-actions.pod:2172
10343 #, no-wrap
10344 msgid ""
10345 " inspect-get-product-variant root\n"
10346 "\n"
10347 msgstr ""
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10351 msgid "This returns the product variant of the inspected operating system."
10352 msgstr ""
10353
10354 #. type: textblock
10355 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10356 msgid ""
10357 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10358 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10359 "is usually a string such as C<Client> or C<Server> (other values are "
10360 "possible).  This can be used to distinguish consumer and enterprise versions "
10361 "of Windows that have the same version number (for example, Windows 7 and "
10362 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10363 "the latter is C<Server>)."
10364 msgstr ""
10365
10366 #. type: textblock
10367 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10368 msgid ""
10369 "For enterprise Linux guests, in future we intend this to return the product "
10370 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10371 "implemented at present."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10376 msgid ""
10377 "If the product variant could not be determined, then the string C<unknown> "
10378 "is returned."
10379 msgstr ""
10380
10381 #. type: textblock
10382 #: ../fish/guestfish-actions.pod:2193
10383 msgid ""
10384 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10385 "get-product-name>, L</inspect-get-major-version>."
10386 msgstr ""
10387
10388 #. type: =head2
10389 #: ../fish/guestfish-actions.pod:2197
10390 msgid "inspect-get-roots"
10391 msgstr ""
10392
10393 #. type: verbatim
10394 #: ../fish/guestfish-actions.pod:2199
10395 #, no-wrap
10396 msgid ""
10397 " inspect-get-roots\n"
10398 "\n"
10399 msgstr ""
10400
10401 #. type: textblock
10402 #: ../fish/guestfish-actions.pod:2201
10403 msgid ""
10404 "This function is a convenient way to get the list of root devices, as "
10405 "returned from a previous call to L</inspect-os>, but without redoing the "
10406 "whole inspection process."
10407 msgstr ""
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2205
10411 msgid ""
10412 "This returns an empty list if either no root devices were found or the "
10413 "caller has not called L</inspect-os>."
10414 msgstr ""
10415
10416 #. type: =head2
10417 #: ../fish/guestfish-actions.pod:2210
10418 msgid "inspect-get-type"
10419 msgstr ""
10420
10421 #. type: verbatim
10422 #: ../fish/guestfish-actions.pod:2212
10423 #, no-wrap
10424 msgid ""
10425 " inspect-get-type root\n"
10426 "\n"
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10431 msgid ""
10432 "This returns the type of the inspected operating system.  Currently defined "
10433 "types are:"
10434 msgstr ""
10435
10436 #. type: =item
10437 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10438 msgid "\"linux\""
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10443 msgid "Any Linux-based operating system."
10444 msgstr ""
10445
10446 #. type: textblock
10447 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10448 msgid "Any Microsoft Windows operating system."
10449 msgstr ""
10450
10451 #. type: =item
10452 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10453 msgid "\"freebsd\""
10454 msgstr ""
10455
10456 #. type: textblock
10457 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10458 msgid "FreeBSD."
10459 msgstr ""
10460
10461 #. type: =item
10462 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10463 msgid "\"netbsd\""
10464 msgstr ""
10465
10466 #. type: textblock
10467 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10468 msgid "NetBSD."
10469 msgstr ""
10470
10471 #. type: textblock
10472 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10473 msgid "The operating system type could not be determined."
10474 msgstr ""
10475
10476 #. type: =head2
10477 #: ../fish/guestfish-actions.pod:2246
10478 msgid "inspect-get-windows-current-control-set"
10479 msgstr ""
10480
10481 #. type: verbatim
10482 #: ../fish/guestfish-actions.pod:2248
10483 #, no-wrap
10484 msgid ""
10485 " inspect-get-windows-current-control-set root\n"
10486 "\n"
10487 msgstr ""
10488
10489 #. type: textblock
10490 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10491 msgid ""
10492 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10493 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10494 msgstr ""
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10498 msgid ""
10499 "This call assumes that the guest is Windows and that the Registry could be "
10500 "examined by inspection.  If this is not the case then an error is returned."
10501 msgstr ""
10502
10503 #. type: =head2
10504 #: ../fish/guestfish-actions.pod:2259
10505 msgid "inspect-get-windows-systemroot"
10506 msgstr ""
10507
10508 #. type: verbatim
10509 #: ../fish/guestfish-actions.pod:2261
10510 #, no-wrap
10511 msgid ""
10512 " inspect-get-windows-systemroot root\n"
10513 "\n"
10514 msgstr ""
10515
10516 #. type: textblock
10517 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10518 msgid ""
10519 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10520 "is a directory path such as C</WINDOWS>."
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10525 msgid ""
10526 "This call assumes that the guest is Windows and that the systemroot could be "
10527 "determined by inspection.  If this is not the case then an error is returned."
10528 msgstr ""
10529
10530 #. type: =head2
10531 #: ../fish/guestfish-actions.pod:2272
10532 msgid "inspect-is-live"
10533 msgstr ""
10534
10535 #. type: verbatim
10536 #: ../fish/guestfish-actions.pod:2274
10537 #, no-wrap
10538 msgid ""
10539 " inspect-is-live root\n"
10540 "\n"
10541 msgstr ""
10542
10543 #. type: textblock
10544 #: ../fish/guestfish-actions.pod:2276
10545 msgid ""
10546 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10547 "then this returns true if a live image was detected on the disk."
10548 msgstr ""
10549
10550 #. type: =head2
10551 #: ../fish/guestfish-actions.pod:2282
10552 msgid "inspect-is-multipart"
10553 msgstr ""
10554
10555 #. type: verbatim
10556 #: ../fish/guestfish-actions.pod:2284
10557 #, no-wrap
10558 msgid ""
10559 " inspect-is-multipart root\n"
10560 "\n"
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../fish/guestfish-actions.pod:2286
10565 msgid ""
10566 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10567 "then this returns true if the disk is part of a set."
10568 msgstr ""
10569
10570 #. type: =head2
10571 #: ../fish/guestfish-actions.pod:2292
10572 msgid "inspect-is-netinst"
10573 msgstr ""
10574
10575 #. type: verbatim
10576 #: ../fish/guestfish-actions.pod:2294
10577 #, no-wrap
10578 msgid ""
10579 " inspect-is-netinst root\n"
10580 "\n"
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:2296
10585 msgid ""
10586 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10587 "then this returns true if the disk is a network installer, ie. not a self-"
10588 "contained install CD but one which is likely to require network access to "
10589 "complete the install."
10590 msgstr ""
10591
10592 #. type: =head2
10593 #: ../fish/guestfish-actions.pod:2304
10594 msgid "inspect-list-applications"
10595 msgstr ""
10596
10597 #. type: verbatim
10598 #: ../fish/guestfish-actions.pod:2306
10599 #, no-wrap
10600 msgid ""
10601 " inspect-list-applications root\n"
10602 "\n"
10603 msgstr ""
10604
10605 #. type: textblock
10606 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10607 msgid "Return the list of applications installed in the operating system."
10608 msgstr ""
10609
10610 #. type: textblock
10611 #: ../fish/guestfish-actions.pod:2310
10612 msgid ""
10613 "I<Note:> This call works differently from other parts of the inspection "
10614 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10615 "then mount up the disks, before calling this.  Listing applications is a "
10616 "significantly more difficult operation which requires access to the full "
10617 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10618 "are just returning data cached in the libguestfs handle, this call actually "
10619 "reads parts of the mounted filesystems during the call."
10620 msgstr ""
10621
10622 #. type: textblock
10623 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10624 msgid ""
10625 "This returns an empty list if the inspection code was not able to determine "
10626 "the list of applications."
10627 msgstr ""
10628
10629 #. type: textblock
10630 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10631 msgid "The application structure contains the following fields:"
10632 msgstr ""
10633
10634 #. type: =item
10635 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10636 msgid "C<app_name>"
10637 msgstr ""
10638
10639 #. type: textblock
10640 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10641 msgid ""
10642 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10643 "guests, this is the package name."
10644 msgstr ""
10645
10646 #. type: =item
10647 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10648 msgid "C<app_display_name>"
10649 msgstr ""
10650
10651 #. type: textblock
10652 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10653 msgid ""
10654 "The display name of the application, sometimes localized to the install "
10655 "language of the guest operating system."
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10660 msgid ""
10661 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10662 "to display something can use C<app_name> instead."
10663 msgstr ""
10664
10665 #. type: =item
10666 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10667 msgid "C<app_epoch>"
10668 msgstr ""
10669
10670 #. type: textblock
10671 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10672 msgid ""
10673 "For package managers which use epochs, this contains the epoch of the "
10674 "package (an integer).  If unavailable, this is returned as C<0>."
10675 msgstr ""
10676
10677 #. type: =item
10678 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10679 msgid "C<app_version>"
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10684 msgid ""
10685 "The version string of the application or package.  If unavailable this is "
10686 "returned as an empty string C<\"\">."
10687 msgstr ""
10688
10689 #. type: =item
10690 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10691 msgid "C<app_release>"
10692 msgstr ""
10693
10694 #. type: textblock
10695 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10696 msgid ""
10697 "The release string of the application or package, for package managers that "
10698 "use this.  If unavailable this is returned as an empty string C<\"\">."
10699 msgstr ""
10700
10701 #. type: =item
10702 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10703 msgid "C<app_install_path>"
10704 msgstr ""
10705
10706 #. type: textblock
10707 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10708 msgid ""
10709 "The installation path of the application (on operating systems such as "
10710 "Windows which use installation paths).  This path is in the format used by "
10711 "the guest operating system, it is not a libguestfs path."
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10716 msgid "If unavailable this is returned as an empty string C<\"\">."
10717 msgstr ""
10718
10719 #. type: =item
10720 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10721 msgid "C<app_trans_path>"
10722 msgstr ""
10723
10724 #. type: textblock
10725 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10726 msgid ""
10727 "The install path translated into a libguestfs path.  If unavailable this is "
10728 "returned as an empty string C<\"\">."
10729 msgstr ""
10730
10731 #. type: =item
10732 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10733 msgid "C<app_publisher>"
10734 msgstr ""
10735
10736 #. type: textblock
10737 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
10738 msgid ""
10739 "The name of the publisher of the application, for package managers that use "
10740 "this.  If unavailable this is returned as an empty string C<\"\">."
10741 msgstr ""
10742
10743 #. type: =item
10744 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
10745 msgid "C<app_url>"
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
10750 msgid ""
10751 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10752 "returned as an empty string C<\"\">."
10753 msgstr ""
10754
10755 #. type: =item
10756 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
10757 msgid "C<app_source_package>"
10758 msgstr ""
10759
10760 #. type: textblock
10761 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
10762 msgid ""
10763 "For packaging systems which support this, the name of the source package.  "
10764 "If unavailable this is returned as an empty string C<\"\">."
10765 msgstr ""
10766
10767 #. type: =item
10768 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
10769 msgid "C<app_summary>"
10770 msgstr ""
10771
10772 #. type: textblock
10773 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
10774 msgid ""
10775 "A short (usually one line) description of the application or package.  If "
10776 "unavailable this is returned as an empty string C<\"\">."
10777 msgstr ""
10778
10779 #. type: =item
10780 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
10781 msgid "C<app_description>"
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
10786 msgid ""
10787 "A longer description of the application or package.  If unavailable this is "
10788 "returned as an empty string C<\"\">."
10789 msgstr ""
10790
10791 #. type: =head2
10792 #: ../fish/guestfish-actions.pod:2400
10793 msgid "inspect-os"
10794 msgstr ""
10795
10796 #. type: verbatim
10797 #: ../fish/guestfish-actions.pod:2402
10798 #, no-wrap
10799 msgid ""
10800 " inspect-os\n"
10801 "\n"
10802 msgstr ""
10803
10804 #. type: textblock
10805 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
10806 msgid ""
10807 "This function uses other libguestfs functions and certain heuristics to "
10808 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10809 "for operating systems."
10810 msgstr ""
10811
10812 #. type: textblock
10813 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
10814 msgid "The list returned is empty if no operating systems were found."
10815 msgstr ""
10816
10817 #. type: textblock
10818 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
10819 msgid ""
10820 "If one operating system was found, then this returns a list with a single "
10821 "element, which is the name of the root filesystem of this operating system.  "
10822 "It is also possible for this function to return a list containing more than "
10823 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10824 "element being the root filesystem of one of the operating systems."
10825 msgstr ""
10826
10827 #. type: textblock
10828 #: ../fish/guestfish-actions.pod:2417
10829 msgid ""
10830 "You can pass the root string(s) returned to other L</inspect-get-*> "
10831 "functions in order to query further information about each operating system, "
10832 "such as the name and version."
10833 msgstr ""
10834
10835 #. type: textblock
10836 #: ../fish/guestfish-actions.pod:2422
10837 msgid ""
10838 "This function uses other libguestfs features such as L</mount-ro> and L</"
10839 "umount-all> in order to mount and unmount filesystems and look at the "
10840 "contents.  This should be called with no disks currently mounted.  The "
10841 "function may also use Augeas, so any existing Augeas handle will be closed."
10842 msgstr ""
10843
10844 #. type: textblock
10845 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
10846 msgid ""
10847 "This function cannot decrypt encrypted disks.  The caller must do that first "
10848 "(supplying the necessary keys) if the disk is encrypted."
10849 msgstr ""
10850
10851 #. type: textblock
10852 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
10853 #: ../fish/guestfish-actions.pod:2691
10854 msgid "See also L</list-filesystems>."
10855 msgstr ""
10856
10857 #. type: =head2
10858 #: ../fish/guestfish-actions.pod:2436
10859 msgid "is-blockdev"
10860 msgstr ""
10861
10862 #. type: verbatim
10863 #: ../fish/guestfish-actions.pod:2438
10864 #, no-wrap
10865 msgid ""
10866 " is-blockdev path\n"
10867 "\n"
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
10872 msgid ""
10873 "This returns C<true> if and only if there is a block device with the given "
10874 "C<path> name."
10875 msgstr ""
10876
10877 #. type: textblock
10878 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
10879 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
10880 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
10881 #: ../fish/guestfish-actions.pod:2542
10882 msgid "See also L</stat>."
10883 msgstr ""
10884
10885 #. type: =head2
10886 #: ../fish/guestfish-actions.pod:2445
10887 msgid "is-busy"
10888 msgstr ""
10889
10890 #. type: verbatim
10891 #: ../fish/guestfish-actions.pod:2447
10892 #, no-wrap
10893 msgid ""
10894 " is-busy\n"
10895 "\n"
10896 msgstr ""
10897
10898 #. type: textblock
10899 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
10900 msgid ""
10901 "This returns true iff this handle is busy processing a command (in the "
10902 "C<BUSY> state)."
10903 msgstr ""
10904
10905 #. type: =head2
10906 #: ../fish/guestfish-actions.pod:2454
10907 msgid "is-chardev"
10908 msgstr ""
10909
10910 #. type: verbatim
10911 #: ../fish/guestfish-actions.pod:2456
10912 #, no-wrap
10913 msgid ""
10914 " is-chardev path\n"
10915 "\n"
10916 msgstr ""
10917
10918 #. type: textblock
10919 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
10920 msgid ""
10921 "This returns C<true> if and only if there is a character device with the "
10922 "given C<path> name."
10923 msgstr ""
10924
10925 #. type: =head2
10926 #: ../fish/guestfish-actions.pod:2463
10927 msgid "is-config"
10928 msgstr ""
10929
10930 #. type: verbatim
10931 #: ../fish/guestfish-actions.pod:2465
10932 #, no-wrap
10933 msgid ""
10934 " is-config\n"
10935 "\n"
10936 msgstr ""
10937
10938 #. type: textblock
10939 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
10940 msgid ""
10941 "This returns true iff this handle is being configured (in the C<CONFIG> "
10942 "state)."
10943 msgstr ""
10944
10945 #. type: =head2
10946 #: ../fish/guestfish-actions.pod:2472
10947 msgid "is-dir"
10948 msgstr ""
10949
10950 #. type: verbatim
10951 #: ../fish/guestfish-actions.pod:2474
10952 #, no-wrap
10953 msgid ""
10954 " is-dir path\n"
10955 "\n"
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
10960 msgid ""
10961 "This returns C<true> if and only if there is a directory with the given "
10962 "C<path> name.  Note that it returns false for other objects like files."
10963 msgstr ""
10964
10965 #. type: =head2
10966 #: ../fish/guestfish-actions.pod:2482
10967 msgid "is-fifo"
10968 msgstr ""
10969
10970 #. type: verbatim
10971 #: ../fish/guestfish-actions.pod:2484
10972 #, no-wrap
10973 msgid ""
10974 " is-fifo path\n"
10975 "\n"
10976 msgstr ""
10977
10978 #. type: textblock
10979 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
10980 msgid ""
10981 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10982 "given C<path> name."
10983 msgstr ""
10984
10985 #. type: =head2
10986 #: ../fish/guestfish-actions.pod:2491
10987 msgid "is-file"
10988 msgstr ""
10989
10990 #. type: verbatim
10991 #: ../fish/guestfish-actions.pod:2493
10992 #, no-wrap
10993 msgid ""
10994 " is-file path\n"
10995 "\n"
10996 msgstr ""
10997
10998 #. type: textblock
10999 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11000 msgid ""
11001 "This returns C<true> if and only if there is a regular file with the given "
11002 "C<path> name.  Note that it returns false for other objects like directories."
11003 msgstr ""
11004
11005 #. type: =head2
11006 #: ../fish/guestfish-actions.pod:2501
11007 msgid "is-launching"
11008 msgstr ""
11009
11010 #. type: verbatim
11011 #: ../fish/guestfish-actions.pod:2503
11012 #, no-wrap
11013 msgid ""
11014 " is-launching\n"
11015 "\n"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11020 msgid ""
11021 "This returns true iff this handle is launching the subprocess (in the "
11022 "C<LAUNCHING> state)."
11023 msgstr ""
11024
11025 #. type: =head2
11026 #: ../fish/guestfish-actions.pod:2510
11027 msgid "is-lv"
11028 msgstr ""
11029
11030 #. type: verbatim
11031 #: ../fish/guestfish-actions.pod:2512
11032 #, no-wrap
11033 msgid ""
11034 " is-lv device\n"
11035 "\n"
11036 msgstr ""
11037
11038 #. type: textblock
11039 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11040 msgid ""
11041 "This command tests whether C<device> is a logical volume, and returns true "
11042 "iff this is the case."
11043 msgstr ""
11044
11045 #. type: =head2
11046 #: ../fish/guestfish-actions.pod:2517
11047 msgid "is-ready"
11048 msgstr ""
11049
11050 #. type: verbatim
11051 #: ../fish/guestfish-actions.pod:2519
11052 #, no-wrap
11053 msgid ""
11054 " is-ready\n"
11055 "\n"
11056 msgstr ""
11057
11058 #. type: textblock
11059 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11060 msgid ""
11061 "This returns true iff this handle is ready to accept commands (in the "
11062 "C<READY> state)."
11063 msgstr ""
11064
11065 #. type: =head2
11066 #: ../fish/guestfish-actions.pod:2526
11067 msgid "is-socket"
11068 msgstr ""
11069
11070 #. type: verbatim
11071 #: ../fish/guestfish-actions.pod:2528
11072 #, no-wrap
11073 msgid ""
11074 " is-socket path\n"
11075 "\n"
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11080 msgid ""
11081 "This returns C<true> if and only if there is a Unix domain socket with the "
11082 "given C<path> name."
11083 msgstr ""
11084
11085 #. type: =head2
11086 #: ../fish/guestfish-actions.pod:2535
11087 msgid "is-symlink"
11088 msgstr ""
11089
11090 #. type: verbatim
11091 #: ../fish/guestfish-actions.pod:2537
11092 #, no-wrap
11093 msgid ""
11094 " is-symlink path\n"
11095 "\n"
11096 msgstr ""
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11100 msgid ""
11101 "This returns C<true> if and only if there is a symbolic link with the given "
11102 "C<path> name."
11103 msgstr ""
11104
11105 #. type: =head2
11106 #: ../fish/guestfish-actions.pod:2544
11107 msgid "is-zero"
11108 msgstr ""
11109
11110 #. type: verbatim
11111 #: ../fish/guestfish-actions.pod:2546
11112 #, no-wrap
11113 msgid ""
11114 " is-zero path\n"
11115 "\n"
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11120 msgid ""
11121 "This returns true iff the file exists and the file is empty or it contains "
11122 "all zero bytes."
11123 msgstr ""
11124
11125 #. type: =head2
11126 #: ../fish/guestfish-actions.pod:2551
11127 msgid "is-zero-device"
11128 msgstr ""
11129
11130 #. type: verbatim
11131 #: ../fish/guestfish-actions.pod:2553
11132 #, no-wrap
11133 msgid ""
11134 " is-zero-device device\n"
11135 "\n"
11136 msgstr ""
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11140 msgid "This returns true iff the device exists and contains all zero bytes."
11141 msgstr ""
11142
11143 #. type: textblock
11144 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11145 msgid "Note that for large devices this can take a long time to run."
11146 msgstr ""
11147
11148 #. type: =head2
11149 #: ../fish/guestfish-actions.pod:2559
11150 msgid "kill-subprocess"
11151 msgstr ""
11152
11153 #. type: verbatim
11154 #: ../fish/guestfish-actions.pod:2561
11155 #, no-wrap
11156 msgid ""
11157 " kill-subprocess\n"
11158 "\n"
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11163 msgid "This kills the qemu subprocess.  You should never need to call this."
11164 msgstr ""
11165
11166 #. type: =head2
11167 #: ../fish/guestfish-actions.pod:2565
11168 msgid "launch"
11169 msgstr ""
11170
11171 #. type: =head2
11172 #: ../fish/guestfish-actions.pod:2567
11173 msgid "run"
11174 msgstr ""
11175
11176 #. type: verbatim
11177 #: ../fish/guestfish-actions.pod:2569
11178 #, no-wrap
11179 msgid ""
11180 " launch\n"
11181 "\n"
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11186 msgid ""
11187 "Internally libguestfs is implemented by running a virtual machine using "
11188 "L<qemu(1)>."
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11193 msgid ""
11194 "You should call this after configuring the handle (eg. adding drives) but "
11195 "before performing any actions."
11196 msgstr ""
11197
11198 #. type: =head2
11199 #: ../fish/guestfish-actions.pod:2577
11200 msgid "lchown"
11201 msgstr ""
11202
11203 #. type: verbatim
11204 #: ../fish/guestfish-actions.pod:2579
11205 #, no-wrap
11206 msgid ""
11207 " lchown owner group path\n"
11208 "\n"
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:2581
11213 msgid ""
11214 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11215 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11216 "target."
11217 msgstr ""
11218
11219 #. type: =head2
11220 #: ../fish/guestfish-actions.pod:2589
11221 msgid "lgetxattr"
11222 msgstr ""
11223
11224 #. type: verbatim
11225 #: ../fish/guestfish-actions.pod:2591
11226 #, no-wrap
11227 msgid ""
11228 " lgetxattr path name\n"
11229 "\n"
11230 msgstr ""
11231
11232 #. type: textblock
11233 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11234 msgid ""
11235 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11236 "is a symlink, then this call returns an extended attribute from the symlink."
11237 msgstr ""
11238
11239 #. type: textblock
11240 #: ../fish/guestfish-actions.pod:2607
11241 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11242 msgstr ""
11243
11244 #. type: =head2
11245 #: ../fish/guestfish-actions.pod:2609
11246 msgid "lgetxattrs"
11247 msgstr ""
11248
11249 #. type: verbatim
11250 #: ../fish/guestfish-actions.pod:2611
11251 #, no-wrap
11252 msgid ""
11253 " lgetxattrs path\n"
11254 "\n"
11255 msgstr ""
11256
11257 #. type: textblock
11258 #: ../fish/guestfish-actions.pod:2613
11259 msgid ""
11260 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11261 "it returns the extended attributes of the link itself."
11262 msgstr ""
11263
11264 #. type: =head2
11265 #: ../fish/guestfish-actions.pod:2617
11266 msgid "list-9p"
11267 msgstr ""
11268
11269 #. type: verbatim
11270 #: ../fish/guestfish-actions.pod:2619
11271 #, no-wrap
11272 msgid ""
11273 " list-9p\n"
11274 "\n"
11275 msgstr ""
11276
11277 #. type: textblock
11278 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11279 msgid ""
11280 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11281 "returned."
11282 msgstr ""
11283
11284 #. type: =head2
11285 #: ../fish/guestfish-actions.pod:2624
11286 msgid "list-devices"
11287 msgstr ""
11288
11289 #. type: verbatim
11290 #: ../fish/guestfish-actions.pod:2626
11291 #, no-wrap
11292 msgid ""
11293 " list-devices\n"
11294 "\n"
11295 msgstr ""
11296
11297 #. type: textblock
11298 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11299 msgid "List all the block devices."
11300 msgstr ""
11301
11302 #. type: textblock
11303 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11304 msgid "The full block device names are returned, eg. C</dev/sda>."
11305 msgstr ""
11306
11307 #. type: =head2
11308 #: ../fish/guestfish-actions.pod:2634
11309 msgid "list-dm-devices"
11310 msgstr ""
11311
11312 #. type: verbatim
11313 #: ../fish/guestfish-actions.pod:2636
11314 #, no-wrap
11315 msgid ""
11316 " list-dm-devices\n"
11317 "\n"
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11322 msgid "List all device mapper devices."
11323 msgstr ""
11324
11325 #. type: textblock
11326 #: ../fish/guestfish-actions.pod:2640
11327 msgid ""
11328 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11329 "previous call to L</luks-open>."
11330 msgstr ""
11331
11332 #. type: textblock
11333 #: ../fish/guestfish-actions.pod:2643
11334 msgid ""
11335 "Device mapper devices which correspond to logical volumes are I<not> "
11336 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11337 msgstr ""
11338
11339 #. type: =head2
11340 #: ../fish/guestfish-actions.pod:2647
11341 msgid "list-filesystems"
11342 msgstr ""
11343
11344 #. type: verbatim
11345 #: ../fish/guestfish-actions.pod:2649
11346 #, no-wrap
11347 msgid ""
11348 " list-filesystems\n"
11349 "\n"
11350 msgstr ""
11351
11352 #. type: textblock
11353 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11354 msgid ""
11355 "This inspection command looks for filesystems on partitions, block devices "
11356 "and logical volumes, returning a list of devices containing filesystems and "
11357 "their type."
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11362 msgid ""
11363 "The return value is a hash, where the keys are the devices containing "
11364 "filesystems, and the values are the filesystem types.  For example:"
11365 msgstr ""
11366
11367 #. type: verbatim
11368 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11369 #, no-wrap
11370 msgid ""
11371 " \"/dev/sda1\" => \"ntfs\"\n"
11372 " \"/dev/sda2\" => \"ext2\"\n"
11373 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11374 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11375 "\n"
11376 msgstr ""
11377
11378 #. type: textblock
11379 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11380 msgid ""
11381 "The value can have the special value \"unknown\", meaning the content of the "
11382 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11383 msgstr ""
11384
11385 #. type: textblock
11386 #: ../fish/guestfish-actions.pod:2668
11387 msgid ""
11388 "This command runs other libguestfs commands, which might include L</mount> "
11389 "and L</umount>, and therefore you should use this soon after launch and only "
11390 "when nothing is mounted."
11391 msgstr ""
11392
11393 #. type: textblock
11394 #: ../fish/guestfish-actions.pod:2672
11395 msgid ""
11396 "Not all of the filesystems returned will be mountable.  In particular, swap "
11397 "partitions are returned in the list.  Also this command does not check that "
11398 "each filesystem found is valid and mountable, and some filesystems might be "
11399 "mountable but require special options.  Filesystems may not all belong to a "
11400 "single logical operating system (use L</inspect-os> to look for OSes)."
11401 msgstr ""
11402
11403 #. type: =head2
11404 #: ../fish/guestfish-actions.pod:2680
11405 msgid "list-partitions"
11406 msgstr ""
11407
11408 #. type: verbatim
11409 #: ../fish/guestfish-actions.pod:2682
11410 #, no-wrap
11411 msgid ""
11412 " list-partitions\n"
11413 "\n"
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11418 msgid "List all the partitions detected on all block devices."
11419 msgstr ""
11420
11421 #. type: textblock
11422 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11423 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11424 msgstr ""
11425
11426 #. type: textblock
11427 #: ../fish/guestfish-actions.pod:2688
11428 msgid ""
11429 "This does not return logical volumes.  For that you will need to call L</"
11430 "lvs>."
11431 msgstr ""
11432
11433 #. type: =head2
11434 #: ../fish/guestfish-actions.pod:2693
11435 msgid "ll"
11436 msgstr ""
11437
11438 #. type: verbatim
11439 #: ../fish/guestfish-actions.pod:2695
11440 #, no-wrap
11441 msgid ""
11442 " ll directory\n"
11443 "\n"
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11448 msgid ""
11449 "List the files in C<directory> (relative to the root directory, there is no "
11450 "cwd) in the format of 'ls -la'."
11451 msgstr ""
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11455 msgid ""
11456 "This command is mostly useful for interactive sessions.  It is I<not> "
11457 "intended that you try to parse the output string."
11458 msgstr ""
11459
11460 #. type: =head2
11461 #: ../fish/guestfish-actions.pod:2703
11462 msgid "ln"
11463 msgstr ""
11464
11465 #. type: verbatim
11466 #: ../fish/guestfish-actions.pod:2705
11467 #, no-wrap
11468 msgid ""
11469 " ln target linkname\n"
11470 "\n"
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11475 msgid "This command creates a hard link using the C<ln> command."
11476 msgstr ""
11477
11478 #. type: =head2
11479 #: ../fish/guestfish-actions.pod:2709
11480 msgid "ln-f"
11481 msgstr ""
11482
11483 #. type: verbatim
11484 #: ../fish/guestfish-actions.pod:2711
11485 #, no-wrap
11486 msgid ""
11487 " ln-f target linkname\n"
11488 "\n"
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11493 msgid ""
11494 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11495 "option removes the link (C<linkname>) if it exists already."
11496 msgstr ""
11497
11498 #. type: =head2
11499 #: ../fish/guestfish-actions.pod:2716
11500 msgid "ln-s"
11501 msgstr ""
11502
11503 #. type: verbatim
11504 #: ../fish/guestfish-actions.pod:2718
11505 #, no-wrap
11506 msgid ""
11507 " ln-s target linkname\n"
11508 "\n"
11509 msgstr ""
11510
11511 #. type: textblock
11512 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11513 msgid "This command creates a symbolic link using the C<ln -s> command."
11514 msgstr ""
11515
11516 #. type: =head2
11517 #: ../fish/guestfish-actions.pod:2722
11518 msgid "ln-sf"
11519 msgstr ""
11520
11521 #. type: verbatim
11522 #: ../fish/guestfish-actions.pod:2724
11523 #, no-wrap
11524 msgid ""
11525 " ln-sf target linkname\n"
11526 "\n"
11527 msgstr ""
11528
11529 #. type: textblock
11530 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11531 msgid ""
11532 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11533 "option removes the link (C<linkname>) if it exists already."
11534 msgstr ""
11535
11536 #. type: =head2
11537 #: ../fish/guestfish-actions.pod:2729
11538 msgid "lremovexattr"
11539 msgstr ""
11540
11541 #. type: verbatim
11542 #: ../fish/guestfish-actions.pod:2731
11543 #, no-wrap
11544 msgid ""
11545 " lremovexattr xattr path\n"
11546 "\n"
11547 msgstr ""
11548
11549 #. type: textblock
11550 #: ../fish/guestfish-actions.pod:2733
11551 msgid ""
11552 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11553 "it removes an extended attribute of the link itself."
11554 msgstr ""
11555
11556 #. type: =head2
11557 #: ../fish/guestfish-actions.pod:2737
11558 msgid "ls"
11559 msgstr ""
11560
11561 #. type: verbatim
11562 #: ../fish/guestfish-actions.pod:2739
11563 #, no-wrap
11564 msgid ""
11565 " ls directory\n"
11566 "\n"
11567 msgstr ""
11568
11569 #. type: textblock
11570 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11571 msgid ""
11572 "List the files in C<directory> (relative to the root directory, there is no "
11573 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../fish/guestfish-actions.pod:2745
11578 msgid ""
11579 "This command is mostly useful for interactive sessions.  Programs should "
11580 "probably use L</readdir> instead."
11581 msgstr ""
11582
11583 #. type: =head2
11584 #: ../fish/guestfish-actions.pod:2748
11585 msgid "lsetxattr"
11586 msgstr ""
11587
11588 #. type: verbatim
11589 #: ../fish/guestfish-actions.pod:2750
11590 #, no-wrap
11591 msgid ""
11592 " lsetxattr xattr val vallen path\n"
11593 "\n"
11594 msgstr ""
11595
11596 #. type: textblock
11597 #: ../fish/guestfish-actions.pod:2752
11598 msgid ""
11599 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11600 "sets an extended attribute of the link itself."
11601 msgstr ""
11602
11603 #. type: =head2
11604 #: ../fish/guestfish-actions.pod:2756
11605 msgid "lstat"
11606 msgstr ""
11607
11608 #. type: verbatim
11609 #: ../fish/guestfish-actions.pod:2758
11610 #, no-wrap
11611 msgid ""
11612 " lstat path\n"
11613 "\n"
11614 msgstr ""
11615
11616 #. type: textblock
11617 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11618 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11619 msgid "Returns file information for the given C<path>."
11620 msgstr ""
11621
11622 #. type: textblock
11623 #: ../fish/guestfish-actions.pod:2762
11624 msgid ""
11625 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11626 "the link is stat-ed, not the file it refers to."
11627 msgstr ""
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11631 msgid "This is the same as the C<lstat(2)> system call."
11632 msgstr ""
11633
11634 #. type: =head2
11635 #: ../fish/guestfish-actions.pod:2768
11636 msgid "lstatlist"
11637 msgstr ""
11638
11639 #. type: verbatim
11640 #: ../fish/guestfish-actions.pod:2770
11641 #, no-wrap
11642 msgid ""
11643 " lstatlist path 'names ...'\n"
11644 "\n"
11645 msgstr ""
11646
11647 #. type: textblock
11648 #: ../fish/guestfish-actions.pod:2772
11649 msgid ""
11650 "This call allows you to perform the L</lstat> operation on multiple files, "
11651 "where all files are in the directory C<path>.  C<names> is the list of files "
11652 "from this directory."
11653 msgstr ""
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11657 msgid ""
11658 "On return you get a list of stat structs, with a one-to-one correspondence "
11659 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11660 "then the C<ino> field of that structure is set to C<-1>."
11661 msgstr ""
11662
11663 #. type: textblock
11664 #: ../fish/guestfish-actions.pod:2781
11665 msgid ""
11666 "This call is intended for programs that want to efficiently list a directory "
11667 "contents without making many round-trips.  See also L</lxattrlist> for a "
11668 "similarly efficient call for getting extended attributes.  Very long "
11669 "directory listings might cause the protocol message size to be exceeded, "
11670 "causing this call to fail.  The caller must split up such requests into "
11671 "smaller groups of names."
11672 msgstr ""
11673
11674 #. type: =head2
11675 #: ../fish/guestfish-actions.pod:2789
11676 msgid "luks-add-key"
11677 msgstr ""
11678
11679 #. type: verbatim
11680 #: ../fish/guestfish-actions.pod:2791
11681 #, no-wrap
11682 msgid ""
11683 " luks-add-key device keyslot\n"
11684 "\n"
11685 msgstr ""
11686
11687 #. type: textblock
11688 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
11689 msgid ""
11690 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11691 "existing key, and is used to access the device.  C<newkey> is the new key to "
11692 "add.  C<keyslot> is the key slot that will be replaced."
11693 msgstr ""
11694
11695 #. type: textblock
11696 #: ../fish/guestfish-actions.pod:2798
11697 msgid ""
11698 "Note that if C<keyslot> already contains a key, then this command will "
11699 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
11704 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
11705 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
11706 msgid ""
11707 "This command has one or more key or passphrase parameters.  Guestfish will "
11708 "prompt for these separately."
11709 msgstr ""
11710
11711 #. type: =head2
11712 #: ../fish/guestfish-actions.pod:2805
11713 msgid "luks-close"
11714 msgstr ""
11715
11716 #. type: verbatim
11717 #: ../fish/guestfish-actions.pod:2807
11718 #, no-wrap
11719 msgid ""
11720 " luks-close device\n"
11721 "\n"
11722 msgstr ""
11723
11724 #. type: textblock
11725 #: ../fish/guestfish-actions.pod:2809
11726 msgid ""
11727 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11728 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11729 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11730 "block device."
11731 msgstr ""
11732
11733 #. type: =head2
11734 #: ../fish/guestfish-actions.pod:2815
11735 msgid "luks-format"
11736 msgstr ""
11737
11738 #. type: verbatim
11739 #: ../fish/guestfish-actions.pod:2817
11740 #, no-wrap
11741 msgid ""
11742 " luks-format device keyslot\n"
11743 "\n"
11744 msgstr ""
11745
11746 #. type: textblock
11747 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
11748 msgid ""
11749 "This command erases existing data on C<device> and formats the device as a "
11750 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11751 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11752 msgstr ""
11753
11754 #. type: textblock
11755 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
11756 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
11757 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
11758 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
11759 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
11760 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
11761 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
11762 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
11763 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
11764 msgid ""
11765 "B<This command is dangerous.  Without careful use you can easily destroy all "
11766 "your data>."
11767 msgstr ""
11768
11769 #. type: =head2
11770 #: ../fish/guestfish-actions.pod:2830
11771 msgid "luks-format-cipher"
11772 msgstr ""
11773
11774 #. type: verbatim
11775 #: ../fish/guestfish-actions.pod:2832
11776 #, no-wrap
11777 msgid ""
11778 " luks-format-cipher device keyslot cipher\n"
11779 "\n"
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:2834
11784 msgid ""
11785 "This command is the same as L</luks-format> but it also allows you to set "
11786 "the C<cipher> used."
11787 msgstr ""
11788
11789 #. type: =head2
11790 #: ../fish/guestfish-actions.pod:2843
11791 msgid "luks-kill-slot"
11792 msgstr ""
11793
11794 #. type: verbatim
11795 #: ../fish/guestfish-actions.pod:2845
11796 #, no-wrap
11797 msgid ""
11798 " luks-kill-slot device keyslot\n"
11799 "\n"
11800 msgstr ""
11801
11802 #. type: textblock
11803 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
11804 msgid ""
11805 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11806 "device C<device>.  C<key> must be one of the I<other> keys."
11807 msgstr ""
11808
11809 #. type: =head2
11810 #: ../fish/guestfish-actions.pod:2854
11811 msgid "luks-open"
11812 msgstr ""
11813
11814 #. type: verbatim
11815 #: ../fish/guestfish-actions.pod:2856
11816 #, no-wrap
11817 msgid ""
11818 " luks-open device mapname\n"
11819 "\n"
11820 msgstr ""
11821
11822 #. type: textblock
11823 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
11824 msgid ""
11825 "This command opens a block device which has been encrypted according to the "
11826 "Linux Unified Key Setup (LUKS) standard."
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
11831 msgid "C<device> is the encrypted block device or partition."
11832 msgstr ""
11833
11834 #. type: textblock
11835 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
11836 msgid ""
11837 "The caller must supply one of the keys associated with the LUKS block "
11838 "device, in the C<key> parameter."
11839 msgstr ""
11840
11841 #. type: textblock
11842 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
11843 msgid ""
11844 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11845 "writes to this block device are decrypted from and encrypted to the "
11846 "underlying C<device> respectively."
11847 msgstr ""
11848
11849 #. type: textblock
11850 #: ../fish/guestfish-actions.pod:2870
11851 msgid ""
11852 "If this block device contains LVM volume groups, then calling L</vgscan> "
11853 "followed by L</vg-activate-all> will make them visible."
11854 msgstr ""
11855
11856 #. type: textblock
11857 #: ../fish/guestfish-actions.pod:2874
11858 msgid "Use L</list-dm-devices> to list all device mapper devices."
11859 msgstr ""
11860
11861 #. type: =head2
11862 #: ../fish/guestfish-actions.pod:2880
11863 msgid "luks-open-ro"
11864 msgstr ""
11865
11866 #. type: verbatim
11867 #: ../fish/guestfish-actions.pod:2882
11868 #, no-wrap
11869 msgid ""
11870 " luks-open-ro device mapname\n"
11871 "\n"
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../fish/guestfish-actions.pod:2884
11876 msgid ""
11877 "This is the same as L</luks-open> except that a read-only mapping is created."
11878 msgstr ""
11879
11880 #. type: =head2
11881 #: ../fish/guestfish-actions.pod:2890
11882 msgid "lvcreate"
11883 msgstr ""
11884
11885 #. type: verbatim
11886 #: ../fish/guestfish-actions.pod:2892
11887 #, no-wrap
11888 msgid ""
11889 " lvcreate logvol volgroup mbytes\n"
11890 "\n"
11891 msgstr ""
11892
11893 #. type: textblock
11894 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
11895 msgid ""
11896 "This creates an LVM logical volume called C<logvol> on the volume group "
11897 "C<volgroup>, with C<size> megabytes."
11898 msgstr ""
11899
11900 #. type: =head2
11901 #: ../fish/guestfish-actions.pod:2897
11902 msgid "lvm-canonical-lv-name"
11903 msgstr ""
11904
11905 #. type: verbatim
11906 #: ../fish/guestfish-actions.pod:2899
11907 #, no-wrap
11908 msgid ""
11909 " lvm-canonical-lv-name lvname\n"
11910 "\n"
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
11915 msgid ""
11916 "This converts alternative naming schemes for LVs that you might find to the "
11917 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11918 "LV>."
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
11923 msgid ""
11924 "This command returns an error if the C<lvname> parameter does not refer to a "
11925 "logical volume."
11926 msgstr ""
11927
11928 #. type: textblock
11929 #: ../fish/guestfish-actions.pod:2908
11930 msgid "See also L</is-lv>."
11931 msgstr ""
11932
11933 #. type: =head2
11934 #: ../fish/guestfish-actions.pod:2910
11935 msgid "lvm-clear-filter"
11936 msgstr ""
11937
11938 #. type: verbatim
11939 #: ../fish/guestfish-actions.pod:2912
11940 #, no-wrap
11941 msgid ""
11942 " lvm-clear-filter\n"
11943 "\n"
11944 msgstr ""
11945
11946 #. type: textblock
11947 #: ../fish/guestfish-actions.pod:2914
11948 msgid ""
11949 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11950 "block device."
11951 msgstr ""
11952
11953 #. type: textblock
11954 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
11955 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
11956 msgid ""
11957 "This command also clears the LVM cache and performs a volume group scan."
11958 msgstr ""
11959
11960 #. type: =head2
11961 #: ../fish/guestfish-actions.pod:2920
11962 msgid "lvm-remove-all"
11963 msgstr ""
11964
11965 #. type: verbatim
11966 #: ../fish/guestfish-actions.pod:2922
11967 #, no-wrap
11968 msgid ""
11969 " lvm-remove-all\n"
11970 "\n"
11971 msgstr ""
11972
11973 #. type: textblock
11974 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
11975 msgid ""
11976 "This command removes all LVM logical volumes, volume groups and physical "
11977 "volumes."
11978 msgstr ""
11979
11980 #. type: =head2
11981 #: ../fish/guestfish-actions.pod:2930
11982 msgid "lvm-set-filter"
11983 msgstr ""
11984
11985 #. type: verbatim
11986 #: ../fish/guestfish-actions.pod:2932
11987 #, no-wrap
11988 msgid ""
11989 " lvm-set-filter 'devices ...'\n"
11990 "\n"
11991 msgstr ""
11992
11993 #. type: textblock
11994 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
11995 msgid ""
11996 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11997 "block devices in the list C<devices>, and will ignore all other attached "
11998 "block devices."
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12003 msgid ""
12004 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12005 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12006 "there are two types of duplication possible: either cloned PVs/VGs which "
12007 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12008 "same name.  In normal operation you cannot create this situation, but you "
12009 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12010 "inside the LVM metadata."
12011 msgstr ""
12012
12013 #. type: textblock
12014 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12015 msgid "You can filter whole block devices or individual partitions."
12016 msgstr ""
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12020 msgid ""
12021 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12022 "filesystem), even if you are not filtering out that VG."
12023 msgstr ""
12024
12025 #. type: =head2
12026 #: ../fish/guestfish-actions.pod:2957
12027 msgid "lvremove"
12028 msgstr ""
12029
12030 #. type: verbatim
12031 #: ../fish/guestfish-actions.pod:2959
12032 #, no-wrap
12033 msgid ""
12034 " lvremove device\n"
12035 "\n"
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12040 msgid ""
12041 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12042 "LV, such as C</dev/VG/LV>."
12043 msgstr ""
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12047 msgid ""
12048 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12049 "dev/VG>."
12050 msgstr ""
12051
12052 #. type: =head2
12053 #: ../fish/guestfish-actions.pod:2967
12054 msgid "lvrename"
12055 msgstr ""
12056
12057 #. type: verbatim
12058 #: ../fish/guestfish-actions.pod:2969
12059 #, no-wrap
12060 msgid ""
12061 " lvrename logvol newlogvol\n"
12062 "\n"
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12067 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12068 msgstr ""
12069
12070 #. type: =head2
12071 #: ../fish/guestfish-actions.pod:2973
12072 msgid "lvresize"
12073 msgstr ""
12074
12075 #. type: verbatim
12076 #: ../fish/guestfish-actions.pod:2975
12077 #, no-wrap
12078 msgid ""
12079 " lvresize device mbytes\n"
12080 "\n"
12081 msgstr ""
12082
12083 #. type: textblock
12084 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12085 msgid ""
12086 "This resizes (expands or shrinks) an existing LVM logical volume to "
12087 "C<mbytes>.  When reducing, data in the reduced part is lost."
12088 msgstr ""
12089
12090 #. type: =head2
12091 #: ../fish/guestfish-actions.pod:2981
12092 msgid "lvresize-free"
12093 msgstr ""
12094
12095 #. type: verbatim
12096 #: ../fish/guestfish-actions.pod:2983
12097 #, no-wrap
12098 msgid ""
12099 " lvresize-free lv percent\n"
12100 "\n"
12101 msgstr ""
12102
12103 #. type: textblock
12104 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12105 msgid ""
12106 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12107 "remaining free space in the volume group.  Commonly you would call this with "
12108 "pc = 100 which expands the logical volume as much as possible, using all "
12109 "remaining free space in the volume group."
12110 msgstr ""
12111
12112 #. type: =head2
12113 #: ../fish/guestfish-actions.pod:2991
12114 msgid "lvs"
12115 msgstr ""
12116
12117 #. type: verbatim
12118 #: ../fish/guestfish-actions.pod:2993
12119 #, no-wrap
12120 msgid ""
12121 " lvs\n"
12122 "\n"
12123 msgstr ""
12124
12125 #. type: textblock
12126 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12127 msgid ""
12128 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12129 "(8)> command."
12130 msgstr ""
12131
12132 #. type: textblock
12133 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12134 msgid ""
12135 "This returns a list of the logical volume device names (eg. C</dev/"
12136 "VolGroup00/LogVol00>)."
12137 msgstr ""
12138
12139 #. type: textblock
12140 #: ../fish/guestfish-actions.pod:3001
12141 msgid "See also L</lvs-full>, L</list-filesystems>."
12142 msgstr ""
12143
12144 #. type: =head2
12145 #: ../fish/guestfish-actions.pod:3003
12146 msgid "lvs-full"
12147 msgstr ""
12148
12149 #. type: verbatim
12150 #: ../fish/guestfish-actions.pod:3005
12151 #, no-wrap
12152 msgid ""
12153 " lvs-full\n"
12154 "\n"
12155 msgstr ""
12156
12157 #. type: textblock
12158 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12159 msgid ""
12160 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12161 "(8)> command.  The \"full\" version includes all fields."
12162 msgstr ""
12163
12164 #. type: =head2
12165 #: ../fish/guestfish-actions.pod:3010
12166 msgid "lvuuid"
12167 msgstr ""
12168
12169 #. type: verbatim
12170 #: ../fish/guestfish-actions.pod:3012
12171 #, no-wrap
12172 msgid ""
12173 " lvuuid device\n"
12174 "\n"
12175 msgstr ""
12176
12177 #. type: textblock
12178 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12179 msgid "This command returns the UUID of the LVM LV C<device>."
12180 msgstr ""
12181
12182 #. type: =head2
12183 #: ../fish/guestfish-actions.pod:3016
12184 msgid "lxattrlist"
12185 msgstr ""
12186
12187 #. type: verbatim
12188 #: ../fish/guestfish-actions.pod:3018
12189 #, no-wrap
12190 msgid ""
12191 " lxattrlist path 'names ...'\n"
12192 "\n"
12193 msgstr ""
12194
12195 #. type: textblock
12196 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12197 msgid ""
12198 "This call allows you to get the extended attributes of multiple files, where "
12199 "all files are in the directory C<path>.  C<names> is the list of files from "
12200 "this directory."
12201 msgstr ""
12202
12203 #. type: textblock
12204 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12205 msgid ""
12206 "On return you get a flat list of xattr structs which must be interpreted "
12207 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12208 "C<attrval> in this struct is zero-length to indicate there was an error "
12209 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12210 "number (the number of following attributes for this file, which could be C<"
12211 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12212 "for the first named file.  This repeats for the second and subsequent files."
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:3034
12217 msgid ""
12218 "This call is intended for programs that want to efficiently list a directory "
12219 "contents without making many round-trips.  See also L</lstatlist> for a "
12220 "similarly efficient call for getting standard stats.  Very long directory "
12221 "listings might cause the protocol message size to be exceeded, causing this "
12222 "call to fail.  The caller must split up such requests into smaller groups of "
12223 "names."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:3042
12228 msgid "mkdir"
12229 msgstr ""
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:3044
12233 #, no-wrap
12234 msgid ""
12235 " mkdir path\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12241 msgid "Create a directory named C<path>."
12242 msgstr ""
12243
12244 #. type: =head2
12245 #: ../fish/guestfish-actions.pod:3048
12246 msgid "mkdir-mode"
12247 msgstr ""
12248
12249 #. type: verbatim
12250 #: ../fish/guestfish-actions.pod:3050
12251 #, no-wrap
12252 msgid ""
12253 " mkdir-mode path mode\n"
12254 "\n"
12255 msgstr ""
12256
12257 #. type: textblock
12258 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12259 msgid ""
12260 "This command creates a directory, setting the initial permissions of the "
12261 "directory to C<mode>."
12262 msgstr ""
12263
12264 #. type: textblock
12265 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12266 msgid ""
12267 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12268 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12269 "other ways."
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3059
12274 msgid "See also L</mkdir>, L</umask>"
12275 msgstr ""
12276
12277 #. type: =head2
12278 #: ../fish/guestfish-actions.pod:3061
12279 msgid "mkdir-p"
12280 msgstr ""
12281
12282 #. type: verbatim
12283 #: ../fish/guestfish-actions.pod:3063
12284 #, no-wrap
12285 msgid ""
12286 " mkdir-p path\n"
12287 "\n"
12288 msgstr ""
12289
12290 #. type: textblock
12291 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12292 msgid ""
12293 "Create a directory named C<path>, creating any parent directories as "
12294 "necessary.  This is like the C<mkdir -p> shell command."
12295 msgstr ""
12296
12297 #. type: =head2
12298 #: ../fish/guestfish-actions.pod:3068
12299 msgid "mkdtemp"
12300 msgstr ""
12301
12302 #. type: verbatim
12303 #: ../fish/guestfish-actions.pod:3070
12304 #, no-wrap
12305 msgid ""
12306 " mkdtemp template\n"
12307 "\n"
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12312 msgid ""
12313 "This command creates a temporary directory.  The C<template> parameter "
12314 "should be a full pathname for the temporary directory name with the final "
12315 "six characters being \"XXXXXX\"."
12316 msgstr ""
12317
12318 #. type: textblock
12319 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12320 msgid ""
12321 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12322 "being suitable for Windows filesystems."
12323 msgstr ""
12324
12325 #. type: textblock
12326 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12327 msgid "The name of the temporary directory that was created is returned."
12328 msgstr ""
12329
12330 #. type: textblock
12331 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12332 msgid "The temporary directory is created with mode 0700 and is owned by root."
12333 msgstr ""
12334
12335 #. type: textblock
12336 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12337 msgid ""
12338 "The caller is responsible for deleting the temporary directory and its "
12339 "contents after use."
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12344 msgid "See also: L<mkdtemp(3)>"
12345 msgstr ""
12346
12347 #. type: =head2
12348 #: ../fish/guestfish-actions.pod:3091
12349 msgid "mke2fs-J"
12350 msgstr ""
12351
12352 #. type: verbatim
12353 #: ../fish/guestfish-actions.pod:3093
12354 #, no-wrap
12355 msgid ""
12356 " mke2fs-J fstype blocksize device journal\n"
12357 "\n"
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12362 msgid ""
12363 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12364 "C<journal>.  It is equivalent to the command:"
12365 msgstr ""
12366
12367 #. type: verbatim
12368 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12369 #, no-wrap
12370 msgid ""
12371 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12372 "\n"
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../fish/guestfish-actions.pod:3101
12377 msgid "See also L</mke2journal>."
12378 msgstr ""
12379
12380 #. type: =head2
12381 #: ../fish/guestfish-actions.pod:3103
12382 msgid "mke2fs-JL"
12383 msgstr ""
12384
12385 #. type: verbatim
12386 #: ../fish/guestfish-actions.pod:3105
12387 #, no-wrap
12388 msgid ""
12389 " mke2fs-JL fstype blocksize device label\n"
12390 "\n"
12391 msgstr ""
12392
12393 #. type: textblock
12394 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12395 msgid ""
12396 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12397 "the journal labeled C<label>."
12398 msgstr ""
12399
12400 #. type: textblock
12401 #: ../fish/guestfish-actions.pod:3110
12402 msgid "See also L</mke2journal-L>."
12403 msgstr ""
12404
12405 #. type: =head2
12406 #: ../fish/guestfish-actions.pod:3112
12407 msgid "mke2fs-JU"
12408 msgstr ""
12409
12410 #. type: verbatim
12411 #: ../fish/guestfish-actions.pod:3114
12412 #, no-wrap
12413 msgid ""
12414 " mke2fs-JU fstype blocksize device uuid\n"
12415 "\n"
12416 msgstr ""
12417
12418 #. type: textblock
12419 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12420 msgid ""
12421 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12422 "the journal with UUID C<uuid>."
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:3119
12427 msgid "See also L</mke2journal-U>."
12428 msgstr ""
12429
12430 #. type: =head2
12431 #: ../fish/guestfish-actions.pod:3121
12432 msgid "mke2journal"
12433 msgstr ""
12434
12435 #. type: verbatim
12436 #: ../fish/guestfish-actions.pod:3123
12437 #, no-wrap
12438 msgid ""
12439 " mke2journal blocksize device\n"
12440 "\n"
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12445 msgid ""
12446 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12447 "command:"
12448 msgstr ""
12449
12450 #. type: verbatim
12451 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12452 #, no-wrap
12453 msgid ""
12454 " mke2fs -O journal_dev -b blocksize device\n"
12455 "\n"
12456 msgstr ""
12457
12458 #. type: =head2
12459 #: ../fish/guestfish-actions.pod:3130
12460 msgid "mke2journal-L"
12461 msgstr ""
12462
12463 #. type: verbatim
12464 #: ../fish/guestfish-actions.pod:3132
12465 #, no-wrap
12466 msgid ""
12467 " mke2journal-L blocksize label device\n"
12468 "\n"
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12473 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12474 msgstr ""
12475
12476 #. type: =head2
12477 #: ../fish/guestfish-actions.pod:3136
12478 msgid "mke2journal-U"
12479 msgstr ""
12480
12481 #. type: verbatim
12482 #: ../fish/guestfish-actions.pod:3138
12483 #, no-wrap
12484 msgid ""
12485 " mke2journal-U blocksize uuid device\n"
12486 "\n"
12487 msgstr ""
12488
12489 #. type: textblock
12490 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12491 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12492 msgstr ""
12493
12494 #. type: =head2
12495 #: ../fish/guestfish-actions.pod:3142
12496 msgid "mkfifo"
12497 msgstr ""
12498
12499 #. type: verbatim
12500 #: ../fish/guestfish-actions.pod:3144
12501 #, no-wrap
12502 msgid ""
12503 " mkfifo mode path\n"
12504 "\n"
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../fish/guestfish-actions.pod:3146
12509 msgid ""
12510 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12511 "is just a convenient wrapper around L</mknod>."
12512 msgstr ""
12513
12514 #. type: =head2
12515 #: ../fish/guestfish-actions.pod:3152
12516 msgid "mkfs"
12517 msgstr ""
12518
12519 #. type: verbatim
12520 #: ../fish/guestfish-actions.pod:3154
12521 #, no-wrap
12522 msgid ""
12523 " mkfs fstype device\n"
12524 "\n"
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12529 msgid ""
12530 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12531 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12532 msgstr ""
12533
12534 #. type: =head2
12535 #: ../fish/guestfish-actions.pod:3160
12536 msgid "mkfs-b"
12537 msgstr ""
12538
12539 #. type: verbatim
12540 #: ../fish/guestfish-actions.pod:3162
12541 #, no-wrap
12542 msgid ""
12543 " mkfs-b fstype blocksize device\n"
12544 "\n"
12545 msgstr ""
12546
12547 #. type: textblock
12548 #: ../fish/guestfish-actions.pod:3164
12549 msgid ""
12550 "This call is similar to L</mkfs>, but it allows you to control the block "
12551 "size of the resulting filesystem.  Supported block sizes depend on the "
12552 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12557 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12558 msgid ""
12559 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12560 "cluster size."
12561 msgstr ""
12562
12563 #. type: textblock
12564 #: ../fish/guestfish-actions.pod:3172
12565 msgid ""
12566 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12567 "instead."
12568 msgstr ""
12569
12570 #. type: =head2
12571 #: ../fish/guestfish-actions.pod:3179
12572 msgid "mkfs-opts"
12573 msgstr ""
12574
12575 #. type: verbatim
12576 #: ../fish/guestfish-actions.pod:3181
12577 #, no-wrap
12578 msgid ""
12579 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12580 "\n"
12581 msgstr ""
12582
12583 #. type: textblock
12584 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12585 msgid ""
12586 "This function creates a filesystem on C<device>.  The filesystem type is "
12587 "C<fstype>, for example C<ext3>."
12588 msgstr ""
12589
12590 #. type: =item
12591 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12592 msgid "C<blocksize>"
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12597 msgid ""
12598 "The filesystem block size.  Supported block sizes depend on the filesystem "
12599 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12600 "filesystems."
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12605 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12606 msgstr ""
12607
12608 #. type: =item
12609 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12610 msgid "C<features>"
12611 msgstr ""
12612
12613 #. type: textblock
12614 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12615 msgid "This passes the I<-O> parameter to the external mkfs program."
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12620 msgid ""
12621 "For certain filesystem types, this allows extra filesystem features to be "
12622 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12627 msgid ""
12628 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12629 "type."
12630 msgstr ""
12631
12632 #. type: =item
12633 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12634 msgid "C<inode>"
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12639 msgid ""
12640 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12641 "sets the inode size (only for ext2/3/4 filesystems at present)."
12642 msgstr ""
12643
12644 #. type: =item
12645 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12646 msgid "C<sectorsize>"
12647 msgstr ""
12648
12649 #. type: textblock
12650 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
12651 msgid ""
12652 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12653 "sets sector size for ufs filesystem."
12654 msgstr ""
12655
12656 #. type: =head2
12657 #: ../fish/guestfish-actions.pod:3226
12658 msgid "mkmountpoint"
12659 msgstr ""
12660
12661 #. type: verbatim
12662 #: ../fish/guestfish-actions.pod:3228
12663 #, no-wrap
12664 msgid ""
12665 " mkmountpoint exemptpath\n"
12666 "\n"
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../fish/guestfish-actions.pod:3230
12671 msgid ""
12672 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12673 "to create extra mountpoints before mounting the first filesystem."
12674 msgstr ""
12675
12676 #. type: textblock
12677 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
12678 msgid ""
12679 "These calls are I<only> necessary in some very limited circumstances, mainly "
12680 "the case where you want to mount a mix of unrelated and/or read-only "
12681 "filesystems together."
12682 msgstr ""
12683
12684 #. type: textblock
12685 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
12686 msgid ""
12687 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12688 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12689 "inside that.  You can unpack this as follows in guestfish:"
12690 msgstr ""
12691
12692 #. type: verbatim
12693 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
12694 #, no-wrap
12695 msgid ""
12696 " add-ro Fedora-11-i686-Live.iso\n"
12697 " run\n"
12698 " mkmountpoint /cd\n"
12699 " mkmountpoint /sqsh\n"
12700 " mkmountpoint /ext3fs\n"
12701 " mount /dev/sda /cd\n"
12702 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12703 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12704 "\n"
12705 msgstr ""
12706
12707 #. type: textblock
12708 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
12709 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12710 msgstr ""
12711
12712 #. type: textblock
12713 #: ../fish/guestfish-actions.pod:3254
12714 msgid ""
12715 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12716 "unexpected errors if you try to mix these calls.  It is safest to manually "
12717 "unmount filesystems and remove mountpoints after use."
12718 msgstr ""
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:3258
12722 msgid ""
12723 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12724 "for this to work for manual mountpoints, you must ensure that the innermost "
12725 "mountpoints have the longest pathnames, as in the example code above."
12726 msgstr ""
12727
12728 #. type: textblock
12729 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
12730 msgid ""
12731 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12732 msgstr ""
12733
12734 #. type: textblock
12735 #: ../fish/guestfish-actions.pod:3265
12736 msgid ""
12737 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12738 "L</umount-all> to be called when the handle is closed which can also trigger "
12739 "these issues."
12740 msgstr ""
12741
12742 #. type: =head2
12743 #: ../fish/guestfish-actions.pod:3269
12744 msgid "mknod"
12745 msgstr ""
12746
12747 #. type: verbatim
12748 #: ../fish/guestfish-actions.pod:3271
12749 #, no-wrap
12750 msgid ""
12751 " mknod mode devmajor devminor path\n"
12752 "\n"
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
12757 msgid ""
12758 "This call creates block or character special devices, or named pipes (FIFOs)."
12759 msgstr ""
12760
12761 #. type: textblock
12762 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
12763 msgid ""
12764 "The C<mode> parameter should be the mode, using the standard constants.  "
12765 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12766 "used when creating block and character special devices."
12767 msgstr ""
12768
12769 #. type: textblock
12770 #: ../fish/guestfish-actions.pod:3281
12771 msgid ""
12772 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12773 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12774 "regular file).  These constants are available in the standard Linux header "
12775 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12776 "wrappers around this command which bitwise OR in the appropriate constant "
12777 "for you."
12778 msgstr ""
12779
12780 #. type: =head2
12781 #: ../fish/guestfish-actions.pod:3291
12782 msgid "mknod-b"
12783 msgstr ""
12784
12785 #. type: verbatim
12786 #: ../fish/guestfish-actions.pod:3293
12787 #, no-wrap
12788 msgid ""
12789 " mknod-b mode devmajor devminor path\n"
12790 "\n"
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../fish/guestfish-actions.pod:3295
12795 msgid ""
12796 "This call creates a block device node called C<path> with mode C<mode> and "
12797 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12798 "wrapper around L</mknod>."
12799 msgstr ""
12800
12801 #. type: =head2
12802 #: ../fish/guestfish-actions.pod:3301
12803 msgid "mknod-c"
12804 msgstr ""
12805
12806 #. type: verbatim
12807 #: ../fish/guestfish-actions.pod:3303
12808 #, no-wrap
12809 msgid ""
12810 " mknod-c mode devmajor devminor path\n"
12811 "\n"
12812 msgstr ""
12813
12814 #. type: textblock
12815 #: ../fish/guestfish-actions.pod:3305
12816 msgid ""
12817 "This call creates a char device node called C<path> with mode C<mode> and "
12818 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12819 "wrapper around L</mknod>."
12820 msgstr ""
12821
12822 #. type: =head2
12823 #: ../fish/guestfish-actions.pod:3311
12824 msgid "mkswap"
12825 msgstr ""
12826
12827 #. type: verbatim
12828 #: ../fish/guestfish-actions.pod:3313
12829 #, no-wrap
12830 msgid ""
12831 " mkswap device\n"
12832 "\n"
12833 msgstr ""
12834
12835 #. type: textblock
12836 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
12837 msgid "Create a swap partition on C<device>."
12838 msgstr ""
12839
12840 #. type: =head2
12841 #: ../fish/guestfish-actions.pod:3317
12842 msgid "mkswap-L"
12843 msgstr ""
12844
12845 #. type: verbatim
12846 #: ../fish/guestfish-actions.pod:3319
12847 #, no-wrap
12848 msgid ""
12849 " mkswap-L label device\n"
12850 "\n"
12851 msgstr ""
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
12855 msgid "Create a swap partition on C<device> with label C<label>."
12856 msgstr ""
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
12860 msgid ""
12861 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12862 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12863 "or swap tools."
12864 msgstr ""
12865
12866 #. type: =head2
12867 #: ../fish/guestfish-actions.pod:3327
12868 msgid "mkswap-U"
12869 msgstr ""
12870
12871 #. type: verbatim
12872 #: ../fish/guestfish-actions.pod:3329
12873 #, no-wrap
12874 msgid ""
12875 " mkswap-U uuid device\n"
12876 "\n"
12877 msgstr ""
12878
12879 #. type: textblock
12880 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
12881 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12882 msgstr ""
12883
12884 #. type: =head2
12885 #: ../fish/guestfish-actions.pod:3333
12886 msgid "mkswap-file"
12887 msgstr ""
12888
12889 #. type: verbatim
12890 #: ../fish/guestfish-actions.pod:3335
12891 #, no-wrap
12892 msgid ""
12893 " mkswap-file path\n"
12894 "\n"
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
12899 msgid "Create a swap file."
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:3339
12904 msgid ""
12905 "This command just writes a swap file signature to an existing file.  To "
12906 "create the file itself, use something like L</fallocate>."
12907 msgstr ""
12908
12909 #. type: =head2
12910 #: ../fish/guestfish-actions.pod:3342
12911 msgid "modprobe"
12912 msgstr ""
12913
12914 #. type: verbatim
12915 #: ../fish/guestfish-actions.pod:3344
12916 #, no-wrap
12917 msgid ""
12918 " modprobe modulename\n"
12919 "\n"
12920 msgstr ""
12921
12922 #. type: textblock
12923 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
12924 msgid "This loads a kernel module in the appliance."
12925 msgstr ""
12926
12927 #. type: textblock
12928 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
12929 msgid ""
12930 "The kernel module must have been whitelisted when libguestfs was built (see "
12931 "C<appliance/kmod.whitelist.in> in the source)."
12932 msgstr ""
12933
12934 #. type: =head2
12935 #: ../fish/guestfish-actions.pod:3351
12936 msgid "mount"
12937 msgstr ""
12938
12939 #. type: verbatim
12940 #: ../fish/guestfish-actions.pod:3353
12941 #, no-wrap
12942 msgid ""
12943 " mount device mountpoint\n"
12944 "\n"
12945 msgstr ""
12946
12947 #. type: textblock
12948 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
12949 msgid ""
12950 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12951 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12952 "those block devices contain partitions, they will have the usual names (eg. "
12953 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12954 msgstr ""
12955
12956 #. type: textblock
12957 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12958 msgid ""
12959 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12960 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12961 "mounted on directories which already exist."
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
12966 msgid ""
12967 "The mounted filesystem is writable, if we have sufficient permissions on the "
12968 "underlying device."
12969 msgstr ""
12970
12971 #. type: textblock
12972 #: ../fish/guestfish-actions.pod:3369
12973 msgid ""
12974 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12975 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12976 "problems for users.  If your program might need to work with older versions "
12977 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12978 "first parameter if you don't want any options)."
12979 msgstr ""
12980
12981 #. type: =head2
12982 #: ../fish/guestfish-actions.pod:3376
12983 msgid "mount-9p"
12984 msgstr ""
12985
12986 #. type: verbatim
12987 #: ../fish/guestfish-actions.pod:3378
12988 #, no-wrap
12989 msgid ""
12990 " mount-9p mounttag mountpoint [options:..]\n"
12991 "\n"
12992 msgstr ""
12993
12994 #. type: textblock
12995 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
12996 msgid ""
12997 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12998 "C<mountpoint>."
12999 msgstr ""
13000
13001 #. type: textblock
13002 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13003 msgid ""
13004 "If required, C<trans=virtio> will be automatically added to the options.  "
13005 "Any other options required can be passed in the optional C<options> "
13006 "parameter."
13007 msgstr ""
13008
13009 #. type: =head2
13010 #: ../fish/guestfish-actions.pod:3389
13011 msgid "mount-loop"
13012 msgstr ""
13013
13014 #. type: verbatim
13015 #: ../fish/guestfish-actions.pod:3391
13016 #, no-wrap
13017 msgid ""
13018 " mount-loop file mountpoint\n"
13019 "\n"
13020 msgstr ""
13021
13022 #. type: textblock
13023 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13024 msgid ""
13025 "This command lets you mount C<file> (a filesystem image in a file) on a "
13026 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13027 "mountpoint>."
13028 msgstr ""
13029
13030 #. type: =head2
13031 #: ../fish/guestfish-actions.pod:3397
13032 msgid "mount-options"
13033 msgstr ""
13034
13035 #. type: verbatim
13036 #: ../fish/guestfish-actions.pod:3399
13037 #, no-wrap
13038 msgid ""
13039 " mount-options options device mountpoint\n"
13040 "\n"
13041 msgstr ""
13042
13043 #. type: textblock
13044 #: ../fish/guestfish-actions.pod:3401
13045 msgid ""
13046 "This is the same as the L</mount> command, but it allows you to set the "
13047 "mount options as for the L<mount(8)> I<-o> flag."
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13052 msgid ""
13053 "If the C<options> parameter is an empty string, then no options are passed "
13054 "(all options default to whatever the filesystem uses)."
13055 msgstr ""
13056
13057 #. type: =head2
13058 #: ../fish/guestfish-actions.pod:3409
13059 msgid "mount-ro"
13060 msgstr ""
13061
13062 #. type: verbatim
13063 #: ../fish/guestfish-actions.pod:3411
13064 #, no-wrap
13065 msgid ""
13066 " mount-ro device mountpoint\n"
13067 "\n"
13068 msgstr ""
13069
13070 #. type: textblock
13071 #: ../fish/guestfish-actions.pod:3413
13072 msgid ""
13073 "This is the same as the L</mount> command, but it mounts the filesystem with "
13074 "the read-only (I<-o ro>) flag."
13075 msgstr ""
13076
13077 #. type: =head2
13078 #: ../fish/guestfish-actions.pod:3416
13079 msgid "mount-vfs"
13080 msgstr ""
13081
13082 #. type: verbatim
13083 #: ../fish/guestfish-actions.pod:3418
13084 #, no-wrap
13085 msgid ""
13086 " mount-vfs options vfstype device mountpoint\n"
13087 "\n"
13088 msgstr ""
13089
13090 #. type: textblock
13091 #: ../fish/guestfish-actions.pod:3420
13092 msgid ""
13093 "This is the same as the L</mount> command, but it allows you to set both the "
13094 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13095 msgstr ""
13096
13097 #. type: =head2
13098 #: ../fish/guestfish-actions.pod:3424
13099 msgid "mountpoints"
13100 msgstr ""
13101
13102 #. type: verbatim
13103 #: ../fish/guestfish-actions.pod:3426
13104 #, no-wrap
13105 msgid ""
13106 " mountpoints\n"
13107 "\n"
13108 msgstr ""
13109
13110 #. type: textblock
13111 #: ../fish/guestfish-actions.pod:3428
13112 msgid ""
13113 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13114 "This one returns a hash table (map) of device name to directory where the "
13115 "device is mounted."
13116 msgstr ""
13117
13118 #. type: =head2
13119 #: ../fish/guestfish-actions.pod:3432
13120 msgid "mounts"
13121 msgstr ""
13122
13123 #. type: verbatim
13124 #: ../fish/guestfish-actions.pod:3434
13125 #, no-wrap
13126 msgid ""
13127 " mounts\n"
13128 "\n"
13129 msgstr ""
13130
13131 #. type: textblock
13132 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13133 msgid ""
13134 "This returns the list of currently mounted filesystems.  It returns the list "
13135 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13140 msgid "Some internal mounts are not shown."
13141 msgstr ""
13142
13143 #. type: textblock
13144 #: ../fish/guestfish-actions.pod:3441
13145 msgid "See also: L</mountpoints>"
13146 msgstr ""
13147
13148 #. type: =head2
13149 #: ../fish/guestfish-actions.pod:3443
13150 msgid "mv"
13151 msgstr ""
13152
13153 #. type: verbatim
13154 #: ../fish/guestfish-actions.pod:3445
13155 #, no-wrap
13156 msgid ""
13157 " mv src dest\n"
13158 "\n"
13159 msgstr ""
13160
13161 #. type: textblock
13162 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13163 msgid ""
13164 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13165 "destination filename or destination directory."
13166 msgstr ""
13167
13168 #. type: =head2
13169 #: ../fish/guestfish-actions.pod:3450
13170 msgid "ntfs-3g-probe"
13171 msgstr ""
13172
13173 #. type: verbatim
13174 #: ../fish/guestfish-actions.pod:3452
13175 #, no-wrap
13176 msgid ""
13177 " ntfs-3g-probe true|false device\n"
13178 "\n"
13179 msgstr ""
13180
13181 #. type: textblock
13182 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13183 msgid ""
13184 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13185 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13186 "write, and some cannot be mounted at all)."
13187 msgstr ""
13188
13189 #. type: textblock
13190 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13191 msgid ""
13192 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13193 "can be mounted read-write.  Set it to false if you want to test if the "
13194 "volume can be mounted read-only."
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13199 msgid ""
13200 "The return value is an integer which C<0> if the operation would succeed, or "
13201 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13202 msgstr ""
13203
13204 #. type: =head2
13205 #: ../fish/guestfish-actions.pod:3466
13206 msgid "ntfsresize"
13207 msgstr ""
13208
13209 #. type: verbatim
13210 #: ../fish/guestfish-actions.pod:3468
13211 #, no-wrap
13212 msgid ""
13213 " ntfsresize device\n"
13214 "\n"
13215 msgstr ""
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13219 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13220 msgid ""
13221 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13222 "size of the underlying device."
13223 msgstr ""
13224
13225 #. type: textblock
13226 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13227 msgid ""
13228 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13229 "consistency check (for safety).  You have to boot into Windows to perform "
13230 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13231 "resize filesystems which have been marked in this way.  So in effect it is "
13232 "not possible to call ntfsresize multiple times on a single filesystem "
13233 "without booting into Windows between each resize."
13234 msgstr ""
13235
13236 #. type: textblock
13237 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13238 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13239 msgid "See also L<ntfsresize(8)>."
13240 msgstr ""
13241
13242 #. type: textblock
13243 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13244 msgid ""
13245 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13246 "call instead."
13247 msgstr ""
13248
13249 #. type: =head2
13250 #: ../fish/guestfish-actions.pod:3490
13251 msgid "ntfsresize-opts"
13252 msgstr ""
13253
13254 #. type: verbatim
13255 #: ../fish/guestfish-actions.pod:3492
13256 #, no-wrap
13257 msgid ""
13258 " ntfsresize-opts device [size:..] [force:..]\n"
13259 "\n"
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13264 msgid ""
13265 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13266 "resized to fit the container (eg. partition)."
13267 msgstr ""
13268
13269 #. type: =item
13270 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13271 msgid "C<force>"
13272 msgstr ""
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13276 msgid ""
13277 "If this option is true, then force the resize of the filesystem even if the "
13278 "filesystem is marked as requiring a consistency check."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:3511
13283 msgid ""
13284 "After the resize operation, the filesystem is always marked as requiring a "
13285 "consistency check (for safety).  You have to boot into Windows to perform "
13286 "this check and clear this condition.  If you I<don't> set the C<force> "
13287 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13288 "a single filesystem without booting into Windows between each resize."
13289 msgstr ""
13290
13291 #. type: =head2
13292 #: ../fish/guestfish-actions.pod:3524
13293 msgid "ntfsresize-size"
13294 msgstr ""
13295
13296 #. type: verbatim
13297 #: ../fish/guestfish-actions.pod:3526
13298 #, no-wrap
13299 msgid ""
13300 " ntfsresize-size device size\n"
13301 "\n"
13302 msgstr ""
13303
13304 #. type: textblock
13305 #: ../fish/guestfish-actions.pod:3528
13306 msgid ""
13307 "This command is the same as L</ntfsresize> except that it allows you to "
13308 "specify the new size (in bytes) explicitly."
13309 msgstr ""
13310
13311 #. type: =head2
13312 #: ../fish/guestfish-actions.pod:3538
13313 msgid "part-add"
13314 msgstr ""
13315
13316 #. type: verbatim
13317 #: ../fish/guestfish-actions.pod:3540
13318 #, no-wrap
13319 msgid ""
13320 " part-add device prlogex startsect endsect\n"
13321 "\n"
13322 msgstr ""
13323
13324 #. type: textblock
13325 #: ../fish/guestfish-actions.pod:3542
13326 msgid ""
13327 "This command adds a partition to C<device>.  If there is no partition table "
13328 "on the device, call L</part-init> first."
13329 msgstr ""
13330
13331 #. type: textblock
13332 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13333 msgid ""
13334 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13335 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13336 "C<logical>) and C<e> (or C<extended>) partition types."
13337 msgstr ""
13338
13339 #. type: textblock
13340 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13341 msgid ""
13342 "C<startsect> and C<endsect> are the start and end of the partition in "
13343 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13344 "from the end of the disk (C<-1> is the last sector)."
13345 msgstr ""
13346
13347 #. type: textblock
13348 #: ../fish/guestfish-actions.pod:3554
13349 msgid ""
13350 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13351 "part-disk> to do that."
13352 msgstr ""
13353
13354 #. type: =head2
13355 #: ../fish/guestfish-actions.pod:3557
13356 msgid "part-del"
13357 msgstr ""
13358
13359 #. type: verbatim
13360 #: ../fish/guestfish-actions.pod:3559
13361 #, no-wrap
13362 msgid ""
13363 " part-del device partnum\n"
13364 "\n"
13365 msgstr ""
13366
13367 #. type: textblock
13368 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13369 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13370 msgstr ""
13371
13372 #. type: textblock
13373 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13374 msgid ""
13375 "Note that in the case of MBR partitioning, deleting an extended partition "
13376 "also deletes any logical partitions it contains."
13377 msgstr ""
13378
13379 #. type: =head2
13380 #: ../fish/guestfish-actions.pod:3567
13381 msgid "part-disk"
13382 msgstr ""
13383
13384 #. type: verbatim
13385 #: ../fish/guestfish-actions.pod:3569
13386 #, no-wrap
13387 msgid ""
13388 " part-disk device parttype\n"
13389 "\n"
13390 msgstr ""
13391
13392 #. type: textblock
13393 #: ../fish/guestfish-actions.pod:3571
13394 msgid ""
13395 "This command is simply a combination of L</part-init> followed by L</part-"
13396 "add> to create a single primary partition covering the whole disk."
13397 msgstr ""
13398
13399 #. type: textblock
13400 #: ../fish/guestfish-actions.pod:3575
13401 msgid ""
13402 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13403 "possible values are described in L</part-init>."
13404 msgstr ""
13405
13406 #. type: =head2
13407 #: ../fish/guestfish-actions.pod:3581
13408 msgid "part-get-bootable"
13409 msgstr ""
13410
13411 #. type: verbatim
13412 #: ../fish/guestfish-actions.pod:3583
13413 #, no-wrap
13414 msgid ""
13415 " part-get-bootable device partnum\n"
13416 "\n"
13417 msgstr ""
13418
13419 #. type: textblock
13420 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13421 msgid ""
13422 "This command returns true if the partition C<partnum> on C<device> has the "
13423 "bootable flag set."
13424 msgstr ""
13425
13426 #. type: textblock
13427 #: ../fish/guestfish-actions.pod:3588
13428 msgid "See also L</part-set-bootable>."
13429 msgstr ""
13430
13431 #. type: =head2
13432 #: ../fish/guestfish-actions.pod:3590
13433 msgid "part-get-mbr-id"
13434 msgstr ""
13435
13436 #. type: verbatim
13437 #: ../fish/guestfish-actions.pod:3592
13438 #, no-wrap
13439 msgid ""
13440 " part-get-mbr-id device partnum\n"
13441 "\n"
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13446 msgid ""
13447 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13448 "partition C<partnum>."
13449 msgstr ""
13450
13451 #. type: textblock
13452 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13453 msgid ""
13454 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13455 "undefined results for other partition table types (see L</part-get-"
13456 "parttype>)."
13457 msgstr ""
13458
13459 #. type: =head2
13460 #: ../fish/guestfish-actions.pod:3601
13461 msgid "part-get-parttype"
13462 msgstr ""
13463
13464 #. type: verbatim
13465 #: ../fish/guestfish-actions.pod:3603
13466 #, no-wrap
13467 msgid ""
13468 " part-get-parttype device\n"
13469 "\n"
13470 msgstr ""
13471
13472 #. type: textblock
13473 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13474 msgid ""
13475 "This command examines the partition table on C<device> and returns the "
13476 "partition table type (format) being used."
13477 msgstr ""
13478
13479 #. type: textblock
13480 #: ../fish/guestfish-actions.pod:3608
13481 msgid ""
13482 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13483 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13484 "possible, although unusual.  See L</part-init> for a full list."
13485 msgstr ""
13486
13487 #. type: =head2
13488 #: ../fish/guestfish-actions.pod:3613
13489 msgid "part-init"
13490 msgstr ""
13491
13492 #. type: verbatim
13493 #: ../fish/guestfish-actions.pod:3615
13494 #, no-wrap
13495 msgid ""
13496 " part-init device parttype\n"
13497 "\n"
13498 msgstr ""
13499
13500 #. type: textblock
13501 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13502 msgid ""
13503 "This creates an empty partition table on C<device> of one of the partition "
13504 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13505 "(for large disks)."
13506 msgstr ""
13507
13508 #. type: textblock
13509 #: ../fish/guestfish-actions.pod:3621
13510 msgid ""
13511 "Initially there are no partitions.  Following this, you should call L</part-"
13512 "add> for each partition required."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13517 msgid "Possible values for C<parttype> are:"
13518 msgstr ""
13519
13520 #. type: =item
13521 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13522 msgid "B<efi>"
13523 msgstr ""
13524
13525 #. type: =item
13526 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13527 msgid "B<gpt>"
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13532 msgid "Intel EFI / GPT partition table."
13533 msgstr ""
13534
13535 #. type: textblock
13536 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13537 msgid ""
13538 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13539 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13540 "the C<mbr> format."
13541 msgstr ""
13542
13543 #. type: =item
13544 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13545 msgid "B<mbr>"
13546 msgstr ""
13547
13548 #. type: =item
13549 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13550 msgid "B<msdos>"
13551 msgstr ""
13552
13553 #. type: textblock
13554 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13555 msgid ""
13556 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13557 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13558 "TB.  For large disks we recommend using C<gpt>."
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13563 msgid ""
13564 "Other partition table types that may work but are not supported include:"
13565 msgstr ""
13566
13567 #. type: =item
13568 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13569 msgid "B<aix>"
13570 msgstr ""
13571
13572 #. type: textblock
13573 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13574 msgid "AIX disk labels."
13575 msgstr ""
13576
13577 #. type: =item
13578 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13579 msgid "B<amiga>"
13580 msgstr ""
13581
13582 #. type: =item
13583 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13584 msgid "B<rdb>"
13585 msgstr ""
13586
13587 #. type: textblock
13588 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13589 msgid "Amiga \"Rigid Disk Block\" format."
13590 msgstr ""
13591
13592 #. type: =item
13593 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13594 msgid "B<bsd>"
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13599 msgid "BSD disk labels."
13600 msgstr ""
13601
13602 #. type: =item
13603 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13604 msgid "B<dasd>"
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
13609 msgid "DASD, used on IBM mainframes."
13610 msgstr ""
13611
13612 #. type: =item
13613 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
13614 msgid "B<dvh>"
13615 msgstr ""
13616
13617 #. type: textblock
13618 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
13619 msgid "MIPS/SGI volumes."
13620 msgstr ""
13621
13622 #. type: =item
13623 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
13624 msgid "B<mac>"
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
13629 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13630 msgstr ""
13631
13632 #. type: =item
13633 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
13634 msgid "B<pc98>"
13635 msgstr ""
13636
13637 #. type: textblock
13638 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
13639 msgid "NEC PC-98 format, common in Japan apparently."
13640 msgstr ""
13641
13642 #. type: =item
13643 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
13644 msgid "B<sun>"
13645 msgstr ""
13646
13647 #. type: textblock
13648 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
13649 msgid "Sun disk labels."
13650 msgstr ""
13651
13652 #. type: =head2
13653 #: ../fish/guestfish-actions.pod:3690
13654 msgid "part-list"
13655 msgstr ""
13656
13657 #. type: verbatim
13658 #: ../fish/guestfish-actions.pod:3692
13659 #, no-wrap
13660 msgid ""
13661 " part-list device\n"
13662 "\n"
13663 msgstr ""
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
13667 msgid ""
13668 "This command parses the partition table on C<device> and returns the list of "
13669 "partitions found."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
13674 msgid "The fields in the returned structure are:"
13675 msgstr ""
13676
13677 #. type: =item
13678 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
13679 msgid "B<part_num>"
13680 msgstr ""
13681
13682 #. type: textblock
13683 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
13684 msgid "Partition number, counting from 1."
13685 msgstr ""
13686
13687 #. type: =item
13688 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
13689 msgid "B<part_start>"
13690 msgstr ""
13691
13692 #. type: textblock
13693 #: ../fish/guestfish-actions.pod:3707
13694 msgid ""
13695 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13696 "the device's sector size, see L</blockdev-getss>."
13697 msgstr ""
13698
13699 #. type: =item
13700 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
13701 msgid "B<part_end>"
13702 msgstr ""
13703
13704 #. type: textblock
13705 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
13706 msgid "End of the partition in bytes."
13707 msgstr ""
13708
13709 #. type: =item
13710 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
13711 msgid "B<part_size>"
13712 msgstr ""
13713
13714 #. type: textblock
13715 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
13716 msgid "Size of the partition in bytes."
13717 msgstr ""
13718
13719 #. type: =head2
13720 #: ../fish/guestfish-actions.pod:3720
13721 msgid "part-set-bootable"
13722 msgstr ""
13723
13724 #. type: verbatim
13725 #: ../fish/guestfish-actions.pod:3722
13726 #, no-wrap
13727 msgid ""
13728 " part-set-bootable device partnum true|false\n"
13729 "\n"
13730 msgstr ""
13731
13732 #. type: textblock
13733 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
13734 msgid ""
13735 "This sets the bootable flag on partition numbered C<partnum> on device "
13736 "C<device>.  Note that partitions are numbered from 1."
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
13741 msgid ""
13742 "The bootable flag is used by some operating systems (notably Windows) to "
13743 "determine which partition to boot from.  It is by no means universally "
13744 "recognized."
13745 msgstr ""
13746
13747 #. type: =head2
13748 #: ../fish/guestfish-actions.pod:3731
13749 msgid "part-set-mbr-id"
13750 msgstr ""
13751
13752 #. type: verbatim
13753 #: ../fish/guestfish-actions.pod:3733
13754 #, no-wrap
13755 msgid ""
13756 " part-set-mbr-id device partnum idbyte\n"
13757 "\n"
13758 msgstr ""
13759
13760 #. type: textblock
13761 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
13762 msgid ""
13763 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13764 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13765 "documentation are in fact hexadecimal numbers, but usually documented "
13766 "without any leading \"0x\" which might be confusing."
13767 msgstr ""
13768
13769 #. type: =head2
13770 #: ../fish/guestfish-actions.pod:3745
13771 msgid "part-set-name"
13772 msgstr ""
13773
13774 #. type: verbatim
13775 #: ../fish/guestfish-actions.pod:3747
13776 #, no-wrap
13777 msgid ""
13778 " part-set-name device partnum name\n"
13779 "\n"
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
13784 msgid ""
13785 "This sets the partition name on partition numbered C<partnum> on device "
13786 "C<device>.  Note that partitions are numbered from 1."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
13791 msgid ""
13792 "The partition name can only be set on certain types of partition table.  "
13793 "This works on C<gpt> but not on C<mbr> partitions."
13794 msgstr ""
13795
13796 #. type: =head2
13797 #: ../fish/guestfish-actions.pod:3755
13798 msgid "part-to-dev"
13799 msgstr ""
13800
13801 #. type: verbatim
13802 #: ../fish/guestfish-actions.pod:3757
13803 #, no-wrap
13804 msgid ""
13805 " part-to-dev partition\n"
13806 "\n"
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
13811 msgid ""
13812 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13813 "partition number, returning the device name (eg. \"/dev/sdb\")."
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../fish/guestfish-actions.pod:3763
13818 msgid ""
13819 "The named partition must exist, for example as a string returned from L</"
13820 "list-partitions>."
13821 msgstr ""
13822
13823 #. type: =head2
13824 #: ../fish/guestfish-actions.pod:3766
13825 msgid "ping-daemon"
13826 msgstr ""
13827
13828 #. type: verbatim
13829 #: ../fish/guestfish-actions.pod:3768
13830 #, no-wrap
13831 msgid ""
13832 " ping-daemon\n"
13833 "\n"
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
13838 msgid ""
13839 "This is a test probe into the guestfs daemon running inside the qemu "
13840 "subprocess.  Calling this function checks that the daemon responds to the "
13841 "ping message, without affecting the daemon or attached block device(s) in "
13842 "any other way."
13843 msgstr ""
13844
13845 #. type: =head2
13846 #: ../fish/guestfish-actions.pod:3775
13847 msgid "pread"
13848 msgstr ""
13849
13850 #. type: verbatim
13851 #: ../fish/guestfish-actions.pod:3777
13852 #, no-wrap
13853 msgid ""
13854 " pread path count offset\n"
13855 "\n"
13856 msgstr ""
13857
13858 #. type: textblock
13859 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
13860 msgid ""
13861 "This command lets you read part of a file.  It reads C<count> bytes of the "
13862 "file, starting at C<offset>, from file C<path>."
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
13867 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
13868 msgid ""
13869 "This may read fewer bytes than requested.  For further details see the "
13870 "L<pread(2)> system call."
13871 msgstr ""
13872
13873 #. type: textblock
13874 #: ../fish/guestfish-actions.pod:3785
13875 msgid "See also L</pwrite>, L</pread-device>."
13876 msgstr ""
13877
13878 #. type: =head2
13879 #: ../fish/guestfish-actions.pod:3790
13880 msgid "pread-device"
13881 msgstr ""
13882
13883 #. type: verbatim
13884 #: ../fish/guestfish-actions.pod:3792
13885 #, no-wrap
13886 msgid ""
13887 " pread-device device count offset\n"
13888 "\n"
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
13893 msgid ""
13894 "This command lets you read part of a file.  It reads C<count> bytes of "
13895 "C<device>, starting at C<offset>."
13896 msgstr ""
13897
13898 #. type: textblock
13899 #: ../fish/guestfish-actions.pod:3800
13900 msgid "See also L</pread>."
13901 msgstr ""
13902
13903 #. type: =head2
13904 #: ../fish/guestfish-actions.pod:3805
13905 msgid "pvcreate"
13906 msgstr ""
13907
13908 #. type: verbatim
13909 #: ../fish/guestfish-actions.pod:3807
13910 #, no-wrap
13911 msgid ""
13912 " pvcreate device\n"
13913 "\n"
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
13918 msgid ""
13919 "This creates an LVM physical volume on the named C<device>, where C<device> "
13920 "should usually be a partition name such as C</dev/sda1>."
13921 msgstr ""
13922
13923 #. type: =head2
13924 #: ../fish/guestfish-actions.pod:3813
13925 msgid "pvremove"
13926 msgstr ""
13927
13928 #. type: verbatim
13929 #: ../fish/guestfish-actions.pod:3815
13930 #, no-wrap
13931 msgid ""
13932 " pvremove device\n"
13933 "\n"
13934 msgstr ""
13935
13936 #. type: textblock
13937 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
13938 msgid ""
13939 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13940 "it."
13941 msgstr ""
13942
13943 #. type: textblock
13944 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
13945 msgid ""
13946 "The implementation uses the C<pvremove> command which refuses to wipe "
13947 "physical volumes that contain any volume groups, so you have to remove those "
13948 "first."
13949 msgstr ""
13950
13951 #. type: =head2
13952 #: ../fish/guestfish-actions.pod:3824
13953 msgid "pvresize"
13954 msgstr ""
13955
13956 #. type: verbatim
13957 #: ../fish/guestfish-actions.pod:3826
13958 #, no-wrap
13959 msgid ""
13960 " pvresize device\n"
13961 "\n"
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
13966 msgid ""
13967 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13968 "the new size of the underlying device."
13969 msgstr ""
13970
13971 #. type: =head2
13972 #: ../fish/guestfish-actions.pod:3831
13973 msgid "pvresize-size"
13974 msgstr ""
13975
13976 #. type: verbatim
13977 #: ../fish/guestfish-actions.pod:3833
13978 #, no-wrap
13979 msgid ""
13980 " pvresize-size device size\n"
13981 "\n"
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:3835
13986 msgid ""
13987 "This command is the same as L</pvresize> except that it allows you to "
13988 "specify the new size (in bytes) explicitly."
13989 msgstr ""
13990
13991 #. type: =head2
13992 #: ../fish/guestfish-actions.pod:3838
13993 msgid "pvs"
13994 msgstr ""
13995
13996 #. type: verbatim
13997 #: ../fish/guestfish-actions.pod:3840
13998 #, no-wrap
13999 msgid ""
14000 " pvs\n"
14001 "\n"
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14006 msgid ""
14007 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14008 "(8)> command."
14009 msgstr ""
14010
14011 #. type: textblock
14012 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14013 msgid ""
14014 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14015 "sda2>)."
14016 msgstr ""
14017
14018 #. type: textblock
14019 #: ../fish/guestfish-actions.pod:3848
14020 msgid "See also L</pvs-full>."
14021 msgstr ""
14022
14023 #. type: =head2
14024 #: ../fish/guestfish-actions.pod:3850
14025 msgid "pvs-full"
14026 msgstr ""
14027
14028 #. type: verbatim
14029 #: ../fish/guestfish-actions.pod:3852
14030 #, no-wrap
14031 msgid ""
14032 " pvs-full\n"
14033 "\n"
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14038 msgid ""
14039 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14040 "(8)> command.  The \"full\" version includes all fields."
14041 msgstr ""
14042
14043 #. type: =head2
14044 #: ../fish/guestfish-actions.pod:3857
14045 msgid "pvuuid"
14046 msgstr ""
14047
14048 #. type: verbatim
14049 #: ../fish/guestfish-actions.pod:3859
14050 #, no-wrap
14051 msgid ""
14052 " pvuuid device\n"
14053 "\n"
14054 msgstr ""
14055
14056 #. type: textblock
14057 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14058 msgid "This command returns the UUID of the LVM PV C<device>."
14059 msgstr ""
14060
14061 #. type: =head2
14062 #: ../fish/guestfish-actions.pod:3863
14063 msgid "pwrite"
14064 msgstr ""
14065
14066 #. type: verbatim
14067 #: ../fish/guestfish-actions.pod:3865
14068 #, no-wrap
14069 msgid ""
14070 " pwrite path content offset\n"
14071 "\n"
14072 msgstr ""
14073
14074 #. type: textblock
14075 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14076 msgid ""
14077 "This command writes to part of a file.  It writes the data buffer C<content> "
14078 "to the file C<path> starting at offset C<offset>."
14079 msgstr ""
14080
14081 #. type: textblock
14082 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14083 msgid ""
14084 "This command implements the L<pwrite(2)> system call, and like that system "
14085 "call it may not write the full data requested.  The return value is the "
14086 "number of bytes that were actually written to the file.  This could even be "
14087 "0, although short writes are unlikely for regular files in ordinary "
14088 "circumstances."
14089 msgstr ""
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:3876
14093 msgid "See also L</pread>, L</pwrite-device>."
14094 msgstr ""
14095
14096 #. type: =head2
14097 #: ../fish/guestfish-actions.pod:3881
14098 msgid "pwrite-device"
14099 msgstr ""
14100
14101 #. type: verbatim
14102 #: ../fish/guestfish-actions.pod:3883
14103 #, no-wrap
14104 msgid ""
14105 " pwrite-device device content offset\n"
14106 "\n"
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14111 msgid ""
14112 "This command writes to part of a device.  It writes the data buffer "
14113 "C<content> to C<device> starting at offset C<offset>."
14114 msgstr ""
14115
14116 #. type: textblock
14117 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14118 msgid ""
14119 "This command implements the L<pwrite(2)> system call, and like that system "
14120 "call it may not write the full data requested (although short writes to disk "
14121 "devices and partitions are probably impossible with standard Linux kernels)."
14122 msgstr ""
14123
14124 #. type: textblock
14125 #: ../fish/guestfish-actions.pod:3893
14126 msgid "See also L</pwrite>."
14127 msgstr ""
14128
14129 #. type: =head2
14130 #: ../fish/guestfish-actions.pod:3898
14131 msgid "read-file"
14132 msgstr ""
14133
14134 #. type: verbatim
14135 #: ../fish/guestfish-actions.pod:3900
14136 #, no-wrap
14137 msgid ""
14138 " read-file path\n"
14139 "\n"
14140 msgstr ""
14141
14142 #. type: textblock
14143 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14144 msgid "This calls returns the contents of the file C<path> as a buffer."
14145 msgstr ""
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:3905
14149 msgid ""
14150 "Unlike L</cat>, this function can correctly handle files that contain "
14151 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14152 "is limited in the total size of file that can be handled."
14153 msgstr ""
14154
14155 #. type: =head2
14156 #: ../fish/guestfish-actions.pod:3913
14157 msgid "read-lines"
14158 msgstr ""
14159
14160 #. type: verbatim
14161 #: ../fish/guestfish-actions.pod:3915
14162 #, no-wrap
14163 msgid ""
14164 " read-lines path\n"
14165 "\n"
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14170 msgid ""
14171 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14172 "C<CRLF> character sequences are I<not> returned."
14173 msgstr ""
14174
14175 #. type: textblock
14176 #: ../fish/guestfish-actions.pod:3922
14177 msgid ""
14178 "Note that this function cannot correctly handle binary files (specifically, "
14179 "files containing C<\\0> character which is treated as end of line).  For "
14180 "those you need to use the L</read-file> function which has a more complex "
14181 "interface."
14182 msgstr ""
14183
14184 #. type: =head2
14185 #: ../fish/guestfish-actions.pod:3927
14186 msgid "readdir"
14187 msgstr ""
14188
14189 #. type: verbatim
14190 #: ../fish/guestfish-actions.pod:3929
14191 #, no-wrap
14192 msgid ""
14193 " readdir dir\n"
14194 "\n"
14195 msgstr ""
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14199 msgid "This returns the list of directory entries in directory C<dir>."
14200 msgstr ""
14201
14202 #. type: textblock
14203 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14204 msgid ""
14205 "All entries in the directory are returned, including C<.> and C<..>.  The "
14206 "entries are I<not> sorted, but returned in the same order as the underlying "
14207 "filesystem."
14208 msgstr ""
14209
14210 #. type: textblock
14211 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14212 msgid ""
14213 "Also this call returns basic file type information about each file.  The "
14214 "C<ftyp> field will contain one of the following characters:"
14215 msgstr ""
14216
14217 #. type: =item
14218 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14219 msgid "'b'"
14220 msgstr ""
14221
14222 #. type: textblock
14223 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14224 msgid "Block special"
14225 msgstr ""
14226
14227 #. type: =item
14228 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14229 msgid "'c'"
14230 msgstr ""
14231
14232 #. type: textblock
14233 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14234 msgid "Char special"
14235 msgstr ""
14236
14237 #. type: =item
14238 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14239 msgid "'d'"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14244 msgid "Directory"
14245 msgstr ""
14246
14247 #. type: =item
14248 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14249 msgid "'f'"
14250 msgstr ""
14251
14252 #. type: textblock
14253 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14254 msgid "FIFO (named pipe)"
14255 msgstr ""
14256
14257 #. type: =item
14258 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14259 msgid "'l'"
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14264 msgid "Symbolic link"
14265 msgstr ""
14266
14267 #. type: =item
14268 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14269 msgid "'r'"
14270 msgstr ""
14271
14272 #. type: textblock
14273 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14274 msgid "Regular file"
14275 msgstr ""
14276
14277 #. type: =item
14278 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14279 msgid "'s'"
14280 msgstr ""
14281
14282 #. type: textblock
14283 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14284 msgid "Socket"
14285 msgstr ""
14286
14287 #. type: =item
14288 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14289 msgid "'u'"
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14294 msgid "Unknown file type"
14295 msgstr ""
14296
14297 #. type: =item
14298 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14299 msgid "'?'"
14300 msgstr ""
14301
14302 #. type: textblock
14303 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14304 msgid ""
14305 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:3981
14310 msgid ""
14311 "This function is primarily intended for use by programs.  To get a simple "
14312 "list of names, use L</ls>.  To get a printable directory for human "
14313 "consumption, use L</ll>."
14314 msgstr ""
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:3985
14318 msgid "readlink"
14319 msgstr ""
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:3987
14323 #, no-wrap
14324 msgid ""
14325 " readlink path\n"
14326 "\n"
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14331 msgid "This command reads the target of a symbolic link."
14332 msgstr ""
14333
14334 #. type: =head2
14335 #: ../fish/guestfish-actions.pod:3991
14336 msgid "readlinklist"
14337 msgstr ""
14338
14339 #. type: verbatim
14340 #: ../fish/guestfish-actions.pod:3993
14341 #, no-wrap
14342 msgid ""
14343 " readlinklist path 'names ...'\n"
14344 "\n"
14345 msgstr ""
14346
14347 #. type: textblock
14348 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14349 msgid ""
14350 "This call allows you to do a C<readlink> operation on multiple files, where "
14351 "all files are in the directory C<path>.  C<names> is the list of files from "
14352 "this directory."
14353 msgstr ""
14354
14355 #. type: textblock
14356 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14357 msgid ""
14358 "On return you get a list of strings, with a one-to-one correspondence to the "
14359 "C<names> list.  Each string is the value of the symbolic link."
14360 msgstr ""
14361
14362 #. type: textblock
14363 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14364 msgid ""
14365 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14366 "result string is the empty string C<\"\">.  However the whole operation is "
14367 "completed even if there were C<readlink(2)> errors, and so you can call this "
14368 "function with names where you don't know if they are symbolic links already "
14369 "(albeit slightly less efficient)."
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14374 msgid ""
14375 "This call is intended for programs that want to efficiently list a directory "
14376 "contents without making many round-trips.  Very long directory listings "
14377 "might cause the protocol message size to be exceeded, causing this call to "
14378 "fail.  The caller must split up such requests into smaller groups of names."
14379 msgstr ""
14380
14381 #. type: =head2
14382 #: ../fish/guestfish-actions.pod:4017
14383 msgid "realpath"
14384 msgstr ""
14385
14386 #. type: verbatim
14387 #: ../fish/guestfish-actions.pod:4019
14388 #, no-wrap
14389 msgid ""
14390 " realpath path\n"
14391 "\n"
14392 msgstr ""
14393
14394 #. type: textblock
14395 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14396 msgid ""
14397 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14398 "has no C<.>, C<..> or symbolic link path elements."
14399 msgstr ""
14400
14401 #. type: =head2
14402 #: ../fish/guestfish-actions.pod:4024
14403 msgid "removexattr"
14404 msgstr ""
14405
14406 #. type: verbatim
14407 #: ../fish/guestfish-actions.pod:4026
14408 #, no-wrap
14409 msgid ""
14410 " removexattr xattr path\n"
14411 "\n"
14412 msgstr ""
14413
14414 #. type: textblock
14415 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14416 msgid ""
14417 "This call removes the extended attribute named C<xattr> of the file C<path>."
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:4031
14422 msgid "See also: L</lremovexattr>, L<attr(5)>."
14423 msgstr ""
14424
14425 #. type: =head2
14426 #: ../fish/guestfish-actions.pod:4033
14427 msgid "resize2fs"
14428 msgstr ""
14429
14430 #. type: verbatim
14431 #: ../fish/guestfish-actions.pod:4035
14432 #, no-wrap
14433 msgid ""
14434 " resize2fs device\n"
14435 "\n"
14436 msgstr ""
14437
14438 #. type: textblock
14439 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14440 msgid ""
14441 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14442 "underlying device."
14443 msgstr ""
14444
14445 #. type: textblock
14446 #: ../fish/guestfish-actions.pod:4040
14447 msgid ""
14448 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14449 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14450 "gives an error about this and sometimes not.  In any case, it is always safe "
14451 "to call L</e2fsck-f> before calling this function."
14452 msgstr ""
14453
14454 #. type: =head2
14455 #: ../fish/guestfish-actions.pod:4046
14456 msgid "resize2fs-M"
14457 msgstr ""
14458
14459 #. type: verbatim
14460 #: ../fish/guestfish-actions.pod:4048
14461 #, no-wrap
14462 msgid ""
14463 " resize2fs-M device\n"
14464 "\n"
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:4050
14469 msgid ""
14470 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14471 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14472 "command."
14473 msgstr ""
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4054
14477 msgid ""
14478 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14479 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14480 "multiplied together, give the resulting size of the minimal filesystem in "
14481 "bytes."
14482 msgstr ""
14483
14484 #. type: =head2
14485 #: ../fish/guestfish-actions.pod:4059
14486 msgid "resize2fs-size"
14487 msgstr ""
14488
14489 #. type: verbatim
14490 #: ../fish/guestfish-actions.pod:4061
14491 #, no-wrap
14492 msgid ""
14493 " resize2fs-size device size\n"
14494 "\n"
14495 msgstr ""
14496
14497 #. type: textblock
14498 #: ../fish/guestfish-actions.pod:4063
14499 msgid ""
14500 "This command is the same as L</resize2fs> except that it allows you to "
14501 "specify the new size (in bytes) explicitly."
14502 msgstr ""
14503
14504 #. type: =head2
14505 #: ../fish/guestfish-actions.pod:4066
14506 msgid "rm"
14507 msgstr ""
14508
14509 #. type: verbatim
14510 #: ../fish/guestfish-actions.pod:4068
14511 #, no-wrap
14512 msgid ""
14513 " rm path\n"
14514 "\n"
14515 msgstr ""
14516
14517 #. type: textblock
14518 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14519 msgid "Remove the single file C<path>."
14520 msgstr ""
14521
14522 #. type: =head2
14523 #: ../fish/guestfish-actions.pod:4072
14524 msgid "rm-rf"
14525 msgstr ""
14526
14527 #. type: verbatim
14528 #: ../fish/guestfish-actions.pod:4074
14529 #, no-wrap
14530 msgid ""
14531 " rm-rf path\n"
14532 "\n"
14533 msgstr ""
14534
14535 #. type: textblock
14536 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14537 msgid ""
14538 "Remove the file or directory C<path>, recursively removing the contents if "
14539 "its a directory.  This is like the C<rm -rf> shell command."
14540 msgstr ""
14541
14542 #. type: =head2
14543 #: ../fish/guestfish-actions.pod:4080
14544 msgid "rmdir"
14545 msgstr ""
14546
14547 #. type: verbatim
14548 #: ../fish/guestfish-actions.pod:4082
14549 #, no-wrap
14550 msgid ""
14551 " rmdir path\n"
14552 "\n"
14553 msgstr ""
14554
14555 #. type: textblock
14556 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14557 msgid "Remove the single directory C<path>."
14558 msgstr ""
14559
14560 #. type: =head2
14561 #: ../fish/guestfish-actions.pod:4086
14562 msgid "rmmountpoint"
14563 msgstr ""
14564
14565 #. type: verbatim
14566 #: ../fish/guestfish-actions.pod:4088
14567 #, no-wrap
14568 msgid ""
14569 " rmmountpoint exemptpath\n"
14570 "\n"
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../fish/guestfish-actions.pod:4090
14575 msgid ""
14576 "This calls removes a mountpoint that was previously created with L</"
14577 "mkmountpoint>.  See L</mkmountpoint> for full details."
14578 msgstr ""
14579
14580 #. type: =head2
14581 #: ../fish/guestfish-actions.pod:4094
14582 msgid "scrub-device"
14583 msgstr ""
14584
14585 #. type: verbatim
14586 #: ../fish/guestfish-actions.pod:4096
14587 #, no-wrap
14588 msgid ""
14589 " scrub-device device\n"
14590 "\n"
14591 msgstr ""
14592
14593 #. type: textblock
14594 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
14595 msgid ""
14596 "This command writes patterns over C<device> to make data retrieval more "
14597 "difficult."
14598 msgstr ""
14599
14600 #. type: textblock
14601 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
14602 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
14603 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
14604 msgid ""
14605 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14606 "more details."
14607 msgstr ""
14608
14609 #. type: =head2
14610 #: ../fish/guestfish-actions.pod:4107
14611 msgid "scrub-file"
14612 msgstr ""
14613
14614 #. type: verbatim
14615 #: ../fish/guestfish-actions.pod:4109
14616 #, no-wrap
14617 msgid ""
14618 " scrub-file file\n"
14619 "\n"
14620 msgstr ""
14621
14622 #. type: textblock
14623 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
14624 msgid ""
14625 "This command writes patterns over a file to make data retrieval more "
14626 "difficult."
14627 msgstr ""
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
14631 msgid "The file is I<removed> after scrubbing."
14632 msgstr ""
14633
14634 #. type: =head2
14635 #: ../fish/guestfish-actions.pod:4119
14636 msgid "scrub-freespace"
14637 msgstr ""
14638
14639 #. type: verbatim
14640 #: ../fish/guestfish-actions.pod:4121
14641 #, no-wrap
14642 msgid ""
14643 " scrub-freespace dir\n"
14644 "\n"
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../fish/guestfish-actions.pod:4123
14649 msgid ""
14650 "This command creates the directory C<dir> and then fills it with files until "
14651 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14652 "deletes them.  The intention is to scrub any free space on the partition "
14653 "containing C<dir>."
14654 msgstr ""
14655
14656 #. type: =head2
14657 #: ../fish/guestfish-actions.pod:4132
14658 msgid "set-append"
14659 msgstr ""
14660
14661 #. type: =head2
14662 #: ../fish/guestfish-actions.pod:4134
14663 msgid "append"
14664 msgstr ""
14665
14666 #. type: verbatim
14667 #: ../fish/guestfish-actions.pod:4136
14668 #, no-wrap
14669 msgid ""
14670 " set-append append\n"
14671 "\n"
14672 msgstr ""
14673
14674 #. type: textblock
14675 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
14676 msgid ""
14677 "This function is used to add additional options to the guest kernel command "
14678 "line."
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
14683 msgid ""
14684 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14685 "environment variable."
14686 msgstr ""
14687
14688 #. type: textblock
14689 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
14690 msgid ""
14691 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14692 "(libguestfs always adds a few of its own)."
14693 msgstr ""
14694
14695 #. type: =head2
14696 #: ../fish/guestfish-actions.pod:4147
14697 msgid "set-attach-method"
14698 msgstr ""
14699
14700 #. type: =head2
14701 #: ../fish/guestfish-actions.pod:4149
14702 msgid "attach-method"
14703 msgstr ""
14704
14705 #. type: verbatim
14706 #: ../fish/guestfish-actions.pod:4151
14707 #, no-wrap
14708 msgid ""
14709 " set-attach-method attachmethod\n"
14710 "\n"
14711 msgstr ""
14712
14713 #. type: textblock
14714 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
14715 msgid ""
14716 "Set the method that libguestfs uses to connect to the back end guestfsd "
14717 "daemon.  Possible methods are:"
14718 msgstr ""
14719
14720 #. type: =item
14721 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
14722 #: ../src/guestfs.pod:2901
14723 msgid "C<appliance>"
14724 msgstr ""
14725
14726 #. type: textblock
14727 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
14728 msgid ""
14729 "Launch an appliance and connect to it.  This is the ordinary method and the "
14730 "default."
14731 msgstr ""
14732
14733 #. type: =item
14734 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
14735 msgid "C<unix:I<path>>"
14736 msgstr ""
14737
14738 #. type: textblock
14739 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
14740 msgid "Connect to the Unix domain socket I<path>."
14741 msgstr ""
14742
14743 #. type: textblock
14744 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
14745 msgid ""
14746 "This method lets you connect to an existing daemon or (using virtio-serial) "
14747 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14748 "RUNNING DAEMONS>."
14749 msgstr ""
14750
14751 #. type: =head2
14752 #: ../fish/guestfish-actions.pod:4173
14753 msgid "set-autosync"
14754 msgstr ""
14755
14756 #. type: =head2
14757 #: ../fish/guestfish-actions.pod:4175
14758 msgid "autosync"
14759 msgstr ""
14760
14761 #. type: verbatim
14762 #: ../fish/guestfish-actions.pod:4177
14763 #, no-wrap
14764 msgid ""
14765 " set-autosync true|false\n"
14766 "\n"
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
14771 msgid ""
14772 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14773 "effort attempt to make filesystems consistent and synchronized when the "
14774 "handle is closed (also if the program exits without closing handles)."
14775 msgstr ""
14776
14777 #. type: textblock
14778 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
14779 msgid ""
14780 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14781 "disabled by default)."
14782 msgstr ""
14783
14784 #. type: =head2
14785 #: ../fish/guestfish-actions.pod:4187
14786 msgid "set-direct"
14787 msgstr ""
14788
14789 #. type: =head2
14790 #: ../fish/guestfish-actions.pod:4189
14791 msgid "direct"
14792 msgstr ""
14793
14794 #. type: verbatim
14795 #: ../fish/guestfish-actions.pod:4191
14796 #, no-wrap
14797 msgid ""
14798 " set-direct true|false\n"
14799 "\n"
14800 msgstr ""
14801
14802 #. type: textblock
14803 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
14804 msgid ""
14805 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14806 "passed directly through to the appliance once it is launched."
14807 msgstr ""
14808
14809 #. type: textblock
14810 #: ../fish/guestfish-actions.pod:4197
14811 msgid ""
14812 "One consequence of this is that log messages aren't caught by the library "
14813 "and handled by L</set-log-message-callback>, but go straight to stdout."
14814 msgstr ""
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
14818 msgid "You probably don't want to use this unless you know what you are doing."
14819 msgstr ""
14820
14821 #. type: textblock
14822 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
14823 msgid "The default is disabled."
14824 msgstr ""
14825
14826 #. type: =head2
14827 #: ../fish/guestfish-actions.pod:4206
14828 msgid "set-e2label"
14829 msgstr ""
14830
14831 #. type: verbatim
14832 #: ../fish/guestfish-actions.pod:4208
14833 #, no-wrap
14834 msgid ""
14835 " set-e2label device label\n"
14836 "\n"
14837 msgstr ""
14838
14839 #. type: textblock
14840 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
14841 msgid ""
14842 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14843 "C<label>.  Filesystem labels are limited to 16 characters."
14844 msgstr ""
14845
14846 #. type: textblock
14847 #: ../fish/guestfish-actions.pod:4214
14848 msgid ""
14849 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14850 "label on a filesystem."
14851 msgstr ""
14852
14853 #. type: =head2
14854 #: ../fish/guestfish-actions.pod:4217
14855 msgid "set-e2uuid"
14856 msgstr ""
14857
14858 #. type: verbatim
14859 #: ../fish/guestfish-actions.pod:4219
14860 #, no-wrap
14861 msgid ""
14862 " set-e2uuid device uuid\n"
14863 "\n"
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
14868 msgid ""
14869 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14870 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14871 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14872 msgstr ""
14873
14874 #. type: textblock
14875 #: ../fish/guestfish-actions.pod:4226
14876 msgid ""
14877 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14878 "UUID of a filesystem."
14879 msgstr ""
14880
14881 #. type: =head2
14882 #: ../fish/guestfish-actions.pod:4229
14883 msgid "set-memsize"
14884 msgstr ""
14885
14886 #. type: =head2
14887 #: ../fish/guestfish-actions.pod:4231
14888 msgid "memsize"
14889 msgstr ""
14890
14891 #. type: verbatim
14892 #: ../fish/guestfish-actions.pod:4233
14893 #, no-wrap
14894 msgid ""
14895 " set-memsize memsize\n"
14896 "\n"
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../fish/guestfish-actions.pod:4235
14901 msgid ""
14902 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14903 "This only has any effect if called before L</launch>."
14904 msgstr ""
14905
14906 #. type: textblock
14907 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
14908 msgid ""
14909 "You can also change this by setting the environment variable "
14910 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14911 msgstr ""
14912
14913 #. type: =head2
14914 #: ../fish/guestfish-actions.pod:4246
14915 msgid "set-network"
14916 msgstr ""
14917
14918 #. type: =head2
14919 #: ../fish/guestfish-actions.pod:4248
14920 msgid "network"
14921 msgstr ""
14922
14923 #. type: verbatim
14924 #: ../fish/guestfish-actions.pod:4250
14925 #, no-wrap
14926 msgid ""
14927 " set-network true|false\n"
14928 "\n"
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
14933 msgid ""
14934 "If C<network> is true, then the network is enabled in the libguestfs "
14935 "appliance.  The default is false."
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
14940 msgid ""
14941 "This affects whether commands are able to access the network (see L<guestfs"
14942 "(3)/RUNNING COMMANDS>)."
14943 msgstr ""
14944
14945 #. type: textblock
14946 #: ../fish/guestfish-actions.pod:4258
14947 msgid ""
14948 "You must call this before calling L</launch>, otherwise it has no effect."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../fish/guestfish-actions.pod:4261
14953 msgid "set-path"
14954 msgstr ""
14955
14956 #. type: verbatim
14957 #: ../fish/guestfish-actions.pod:4265
14958 #, no-wrap
14959 msgid ""
14960 " set-path searchpath\n"
14961 "\n"
14962 msgstr ""
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
14966 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14967 msgstr ""
14968
14969 #. type: textblock
14970 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
14971 msgid ""
14972 "The default is C<$libdir/guestfs> unless overridden by setting "
14973 "C<LIBGUESTFS_PATH> environment variable."
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
14978 msgid "Setting C<path> to C<NULL> restores the default path."
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../fish/guestfish-actions.pod:4274
14983 msgid "set-pgroup"
14984 msgstr ""
14985
14986 #. type: =head2
14987 #: ../fish/guestfish-actions.pod:4276
14988 msgid "pgroup"
14989 msgstr ""
14990
14991 #. type: verbatim
14992 #: ../fish/guestfish-actions.pod:4278
14993 #, no-wrap
14994 msgid ""
14995 " set-pgroup true|false\n"
14996 "\n"
14997 msgstr ""
14998
14999 #. type: textblock
15000 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15001 msgid ""
15002 "If C<pgroup> is true, child processes are placed into their own process "
15003 "group."
15004 msgstr ""
15005
15006 #. type: textblock
15007 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15008 msgid ""
15009 "The practical upshot of this is that signals like C<SIGINT> (from users "
15010 "pressing C<^C>) won't be received by the child process."
15011 msgstr ""
15012
15013 #. type: textblock
15014 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15015 msgid ""
15016 "The default for this flag is false, because usually you want C<^C> to kill "
15017 "the subprocess."
15018 msgstr ""
15019
15020 #. type: =head2
15021 #: ../fish/guestfish-actions.pod:4289
15022 msgid "set-qemu"
15023 msgstr ""
15024
15025 #. type: =head2
15026 #: ../fish/guestfish-actions.pod:4291
15027 msgid "qemu"
15028 msgstr ""
15029
15030 #. type: verbatim
15031 #: ../fish/guestfish-actions.pod:4293
15032 #, no-wrap
15033 msgid ""
15034 " set-qemu qemu\n"
15035 "\n"
15036 msgstr ""
15037
15038 #. type: textblock
15039 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15040 msgid "Set the qemu binary that we will use."
15041 msgstr ""
15042
15043 #. type: textblock
15044 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15045 msgid ""
15046 "The default is chosen when the library was compiled by the configure script."
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15051 msgid ""
15052 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15053 "variable."
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15058 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15059 msgstr ""
15060
15061 #. type: textblock
15062 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15063 msgid ""
15064 "Note that you should call this function as early as possible after creating "
15065 "the handle.  This is because some pre-launch operations depend on testing "
15066 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15067 "don't retest features, and so you might see inconsistent results.  Using the "
15068 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15069 "the qemu binary at the same time as the handle is created."
15070 msgstr ""
15071
15072 #. type: =head2
15073 #: ../fish/guestfish-actions.pod:4313
15074 msgid "set-recovery-proc"
15075 msgstr ""
15076
15077 #. type: =head2
15078 #: ../fish/guestfish-actions.pod:4315
15079 msgid "recovery-proc"
15080 msgstr ""
15081
15082 #. type: verbatim
15083 #: ../fish/guestfish-actions.pod:4317
15084 #, no-wrap
15085 msgid ""
15086 " set-recovery-proc true|false\n"
15087 "\n"
15088 msgstr ""
15089
15090 #. type: textblock
15091 #: ../fish/guestfish-actions.pod:4319
15092 msgid ""
15093 "If this is called with the parameter C<false> then L</launch> does not "
15094 "create a recovery process.  The purpose of the recovery process is to stop "
15095 "runaway qemu processes in the case where the main program aborts abruptly."
15096 msgstr ""
15097
15098 #. type: textblock
15099 #: ../fish/guestfish-actions.pod:4324
15100 msgid ""
15101 "This only has any effect if called before L</launch>, and the default is "
15102 "true."
15103 msgstr ""
15104
15105 #. type: textblock
15106 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15107 msgid ""
15108 "About the only time when you would want to disable this is if the main "
15109 "process will fork itself into the background (\"daemonize\" itself).  In "
15110 "this case the recovery process thinks that the main program has disappeared "
15111 "and so kills qemu, which is not very helpful."
15112 msgstr ""
15113
15114 #. type: =head2
15115 #: ../fish/guestfish-actions.pod:4333
15116 msgid "set-selinux"
15117 msgstr ""
15118
15119 #. type: =head2
15120 #: ../fish/guestfish-actions.pod:4335
15121 msgid "selinux"
15122 msgstr ""
15123
15124 #. type: verbatim
15125 #: ../fish/guestfish-actions.pod:4337
15126 #, no-wrap
15127 msgid ""
15128 " set-selinux true|false\n"
15129 "\n"
15130 msgstr ""
15131
15132 #. type: textblock
15133 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15134 msgid ""
15135 "This sets the selinux flag that is passed to the appliance at boot time.  "
15136 "The default is C<selinux=0> (disabled)."
15137 msgstr ""
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15141 msgid ""
15142 "Note that if SELinux is enabled, it is always in Permissive mode "
15143 "(C<enforcing=0>)."
15144 msgstr ""
15145
15146 #. type: =head2
15147 #: ../fish/guestfish-actions.pod:4348
15148 msgid "set-smp"
15149 msgstr ""
15150
15151 #. type: =head2
15152 #: ../fish/guestfish-actions.pod:4350
15153 msgid "smp"
15154 msgstr ""
15155
15156 #. type: verbatim
15157 #: ../fish/guestfish-actions.pod:4352
15158 #, no-wrap
15159 msgid ""
15160 " set-smp smp\n"
15161 "\n"
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15166 msgid ""
15167 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15168 "C<1>.  Increasing this may improve performance, though often it has no "
15169 "effect."
15170 msgstr ""
15171
15172 #. type: textblock
15173 #: ../fish/guestfish-actions.pod:4358
15174 msgid "This function must be called before L</launch>."
15175 msgstr ""
15176
15177 #. type: =head2
15178 #: ../fish/guestfish-actions.pod:4360
15179 msgid "set-trace"
15180 msgstr ""
15181
15182 #. type: =head2
15183 #: ../fish/guestfish-actions.pod:4362
15184 msgid "trace"
15185 msgstr ""
15186
15187 #. type: verbatim
15188 #: ../fish/guestfish-actions.pod:4364
15189 #, no-wrap
15190 msgid ""
15191 " set-trace true|false\n"
15192 "\n"
15193 msgstr ""
15194
15195 #. type: textblock
15196 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15197 msgid ""
15198 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15199 "return values are traced."
15200 msgstr ""
15201
15202 #. type: textblock
15203 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15204 msgid ""
15205 "If you want to trace C API calls into libguestfs (and other libraries) then "
15206 "possibly a better way is to use the external ltrace(1) command."
15207 msgstr ""
15208
15209 #. type: textblock
15210 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15211 msgid ""
15212 "Command traces are disabled unless the environment variable "
15213 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15214 msgstr ""
15215
15216 #. type: textblock
15217 #: ../fish/guestfish-actions.pod:4376
15218 msgid ""
15219 "Trace messages are normally sent to C<stderr>, unless you register a "
15220 "callback to send them somewhere else (see L</set-event-callback>)."
15221 msgstr ""
15222
15223 #. type: =head2
15224 #: ../fish/guestfish-actions.pod:4380
15225 msgid "set-verbose"
15226 msgstr ""
15227
15228 #. type: =head2
15229 #: ../fish/guestfish-actions.pod:4382
15230 msgid "verbose"
15231 msgstr ""
15232
15233 #. type: verbatim
15234 #: ../fish/guestfish-actions.pod:4384
15235 #, no-wrap
15236 msgid ""
15237 " set-verbose true|false\n"
15238 "\n"
15239 msgstr ""
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15243 msgid "If C<verbose> is true, this turns on verbose messages."
15244 msgstr ""
15245
15246 #. type: textblock
15247 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15248 msgid ""
15249 "Verbose messages are disabled unless the environment variable "
15250 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15251 msgstr ""
15252
15253 #. type: textblock
15254 #: ../fish/guestfish-actions.pod:4391
15255 msgid ""
15256 "Verbose messages are normally sent to C<stderr>, unless you register a "
15257 "callback to send them somewhere else (see L</set-event-callback>)."
15258 msgstr ""
15259
15260 #. type: =head2
15261 #: ../fish/guestfish-actions.pod:4395
15262 msgid "setcon"
15263 msgstr ""
15264
15265 #. type: verbatim
15266 #: ../fish/guestfish-actions.pod:4397
15267 #, no-wrap
15268 msgid ""
15269 " setcon context\n"
15270 "\n"
15271 msgstr ""
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15275 msgid ""
15276 "This sets the SELinux security context of the daemon to the string "
15277 "C<context>."
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15282 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15283 msgstr ""
15284
15285 #. type: =head2
15286 #: ../fish/guestfish-actions.pod:4404
15287 msgid "setxattr"
15288 msgstr ""
15289
15290 #. type: verbatim
15291 #: ../fish/guestfish-actions.pod:4406
15292 #, no-wrap
15293 msgid ""
15294 " setxattr xattr val vallen path\n"
15295 "\n"
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15300 msgid ""
15301 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15302 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15303 msgstr ""
15304
15305 #. type: textblock
15306 #: ../fish/guestfish-actions.pod:4412
15307 msgid "See also: L</lsetxattr>, L<attr(5)>."
15308 msgstr ""
15309
15310 #. type: =head2
15311 #: ../fish/guestfish-actions.pod:4414
15312 msgid "sfdisk"
15313 msgstr ""
15314
15315 #. type: verbatim
15316 #: ../fish/guestfish-actions.pod:4416
15317 #, no-wrap
15318 msgid ""
15319 " sfdisk device cyls heads sectors 'lines ...'\n"
15320 "\n"
15321 msgstr ""
15322
15323 #. type: textblock
15324 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15325 msgid ""
15326 "This is a direct interface to the L<sfdisk(8)> program for creating "
15327 "partitions on block devices."
15328 msgstr ""
15329
15330 #. type: textblock
15331 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15332 msgid "C<device> should be a block device, for example C</dev/sda>."
15333 msgstr ""
15334
15335 #. type: textblock
15336 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15337 msgid ""
15338 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15339 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15340 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15341 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15342 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15343 "the kernel) cannot work out the right geometry and you will need to tell it."
15344 msgstr ""
15345
15346 #. type: textblock
15347 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15348 msgid ""
15349 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15350 "refer to the L<sfdisk(8)> manpage."
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15355 msgid ""
15356 "To create a single partition occupying the whole disk, you would pass "
15357 "C<lines> as a single element list, when the single element being the string "
15358 "C<,> (comma)."
15359 msgstr ""
15360
15361 #. type: textblock
15362 #: ../fish/guestfish-actions.pod:4438
15363 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15368 #: ../fish/guestfish-actions.pod:4489
15369 msgid ""
15370 "I<This function is deprecated.> In new code, use the L</part_add> call "
15371 "instead."
15372 msgstr ""
15373
15374 #. type: =head2
15375 #: ../fish/guestfish-actions.pod:4451
15376 msgid "sfdiskM"
15377 msgstr ""
15378
15379 #. type: verbatim
15380 #: ../fish/guestfish-actions.pod:4453
15381 #, no-wrap
15382 msgid ""
15383 " sfdiskM device 'lines ...'\n"
15384 "\n"
15385 msgstr ""
15386
15387 #. type: textblock
15388 #: ../fish/guestfish-actions.pod:4455
15389 msgid ""
15390 "This is a simplified interface to the L</sfdisk> command, where partition "
15391 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15392 "you don't need to specify the cyls, heads and sectors parameters which were "
15393 "rarely if ever used anyway."
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:4461
15398 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15399 msgstr ""
15400
15401 #. type: =head2
15402 #: ../fish/guestfish-actions.pod:4474
15403 msgid "sfdisk-N"
15404 msgstr ""
15405
15406 #. type: verbatim
15407 #: ../fish/guestfish-actions.pod:4476
15408 #, no-wrap
15409 msgid ""
15410 " sfdisk-N device partnum cyls heads sectors line\n"
15411 "\n"
15412 msgstr ""
15413
15414 #. type: textblock
15415 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15416 msgid ""
15417 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15418 "(note: C<n> counts from 1)."
15419 msgstr ""
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:4481
15423 msgid ""
15424 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15425 "cyls/heads/sectors parameters."
15426 msgstr ""
15427
15428 #. type: textblock
15429 #: ../fish/guestfish-actions.pod:4484
15430 msgid "See also: L</part-add>"
15431 msgstr ""
15432
15433 #. type: =head2
15434 #: ../fish/guestfish-actions.pod:4496
15435 msgid "sfdisk-disk-geometry"
15436 msgstr ""
15437
15438 #. type: verbatim
15439 #: ../fish/guestfish-actions.pod:4498
15440 #, no-wrap
15441 msgid ""
15442 " sfdisk-disk-geometry device\n"
15443 "\n"
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../fish/guestfish-actions.pod:4500
15448 msgid ""
15449 "This displays the disk geometry of C<device> read from the partition table.  "
15450 "Especially in the case where the underlying block device has been resized, "
15451 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15452 "kernel-geometry>)."
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15457 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15458 msgid "The result is in human-readable format, and not designed to be parsed."
15459 msgstr ""
15460
15461 #. type: =head2
15462 #: ../fish/guestfish-actions.pod:4508
15463 msgid "sfdisk-kernel-geometry"
15464 msgstr ""
15465
15466 #. type: verbatim
15467 #: ../fish/guestfish-actions.pod:4510
15468 #, no-wrap
15469 msgid ""
15470 " sfdisk-kernel-geometry device\n"
15471 "\n"
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15476 msgid "This displays the kernel's idea of the geometry of C<device>."
15477 msgstr ""
15478
15479 #. type: =head2
15480 #: ../fish/guestfish-actions.pod:4517
15481 msgid "sfdisk-l"
15482 msgstr ""
15483
15484 #. type: verbatim
15485 #: ../fish/guestfish-actions.pod:4519
15486 #, no-wrap
15487 msgid ""
15488 " sfdisk-l device\n"
15489 "\n"
15490 msgstr ""
15491
15492 #. type: textblock
15493 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15494 msgid ""
15495 "This displays the partition table on C<device>, in the human-readable output "
15496 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15497 msgstr ""
15498
15499 #. type: textblock
15500 #: ../fish/guestfish-actions.pod:4525
15501 msgid "See also: L</part-list>"
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-actions.pod:4527
15506 msgid ""
15507 "I<This function is deprecated.> In new code, use the L</part_list> call "
15508 "instead."
15509 msgstr ""
15510
15511 #. type: =head2
15512 #: ../fish/guestfish-actions.pod:4534
15513 msgid "sh"
15514 msgstr ""
15515
15516 #. type: verbatim
15517 #: ../fish/guestfish-actions.pod:4536
15518 #, no-wrap
15519 msgid ""
15520 " sh command\n"
15521 "\n"
15522 msgstr ""
15523
15524 #. type: textblock
15525 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15526 msgid ""
15527 "This call runs a command from the guest filesystem via the guest's C</bin/"
15528 "sh>."
15529 msgstr ""
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-actions.pod:4541
15533 msgid "This is like L</command>, but passes the command to:"
15534 msgstr ""
15535
15536 #. type: verbatim
15537 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
15538 #, no-wrap
15539 msgid ""
15540 " /bin/sh -c \"command\"\n"
15541 "\n"
15542 msgstr ""
15543
15544 #. type: textblock
15545 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
15546 msgid ""
15547 "Depending on the guest's shell, this usually results in wildcards being "
15548 "expanded, shell expressions being interpolated and so on."
15549 msgstr ""
15550
15551 #. type: textblock
15552 #: ../fish/guestfish-actions.pod:4549
15553 msgid "All the provisos about L</command> apply to this call."
15554 msgstr ""
15555
15556 #. type: =head2
15557 #: ../fish/guestfish-actions.pod:4551
15558 msgid "sh-lines"
15559 msgstr ""
15560
15561 #. type: verbatim
15562 #: ../fish/guestfish-actions.pod:4553
15563 #, no-wrap
15564 msgid ""
15565 " sh-lines command\n"
15566 "\n"
15567 msgstr ""
15568
15569 #. type: textblock
15570 #: ../fish/guestfish-actions.pod:4555
15571 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15572 msgstr ""
15573
15574 #. type: textblock
15575 #: ../fish/guestfish-actions.pod:4558
15576 msgid "See also: L</command-lines>"
15577 msgstr ""
15578
15579 #. type: =head2
15580 #: ../fish/guestfish-actions.pod:4560
15581 msgid "sleep"
15582 msgstr ""
15583
15584 #. type: verbatim
15585 #: ../fish/guestfish-actions.pod:4562
15586 #, no-wrap
15587 msgid ""
15588 " sleep secs\n"
15589 "\n"
15590 msgstr ""
15591
15592 #. type: textblock
15593 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
15594 msgid "Sleep for C<secs> seconds."
15595 msgstr ""
15596
15597 #. type: =head2
15598 #: ../fish/guestfish-actions.pod:4566
15599 msgid "stat"
15600 msgstr ""
15601
15602 #. type: verbatim
15603 #: ../fish/guestfish-actions.pod:4568
15604 #, no-wrap
15605 msgid ""
15606 " stat path\n"
15607 "\n"
15608 msgstr ""
15609
15610 #. type: textblock
15611 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
15612 msgid "This is the same as the C<stat(2)> system call."
15613 msgstr ""
15614
15615 #. type: =head2
15616 #: ../fish/guestfish-actions.pod:4574
15617 msgid "statvfs"
15618 msgstr ""
15619
15620 #. type: verbatim
15621 #: ../fish/guestfish-actions.pod:4576
15622 #, no-wrap
15623 msgid ""
15624 " statvfs path\n"
15625 "\n"
15626 msgstr ""
15627
15628 #. type: textblock
15629 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
15630 msgid ""
15631 "Returns file system statistics for any mounted file system.  C<path> should "
15632 "be a file or directory in the mounted file system (typically it is the mount "
15633 "point itself, but it doesn't need to be)."
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
15638 msgid "This is the same as the C<statvfs(2)> system call."
15639 msgstr ""
15640
15641 #. type: =head2
15642 #: ../fish/guestfish-actions.pod:4584
15643 msgid "strings"
15644 msgstr ""
15645
15646 #. type: verbatim
15647 #: ../fish/guestfish-actions.pod:4586
15648 #, no-wrap
15649 msgid ""
15650 " strings path\n"
15651 "\n"
15652 msgstr ""
15653
15654 #. type: textblock
15655 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
15656 msgid ""
15657 "This runs the L<strings(1)> command on a file and returns the list of "
15658 "printable strings found."
15659 msgstr ""
15660
15661 #. type: =head2
15662 #: ../fish/guestfish-actions.pod:4594
15663 msgid "strings-e"
15664 msgstr ""
15665
15666 #. type: verbatim
15667 #: ../fish/guestfish-actions.pod:4596
15668 #, no-wrap
15669 msgid ""
15670 " strings-e encoding path\n"
15671 "\n"
15672 msgstr ""
15673
15674 #. type: textblock
15675 #: ../fish/guestfish-actions.pod:4598
15676 msgid ""
15677 "This is like the L</strings> command, but allows you to specify the encoding "
15678 "of strings that are looked for in the source file C<path>."
15679 msgstr ""
15680
15681 #. type: textblock
15682 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
15683 msgid "Allowed encodings are:"
15684 msgstr ""
15685
15686 #. type: =item
15687 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
15688 msgid "s"
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4608
15693 msgid ""
15694 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15695 "ISO-8859-X (this is what L</strings> uses)."
15696 msgstr ""
15697
15698 #. type: =item
15699 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
15700 msgid "S"
15701 msgstr ""
15702
15703 #. type: textblock
15704 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
15705 msgid "Single 8-bit-byte characters."
15706 msgstr ""
15707
15708 #. type: =item
15709 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
15710 msgid "b"
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
15715 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15716 msgstr ""
15717
15718 #. type: =item
15719 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
15720 msgid "l (lower case letter L)"
15721 msgstr ""
15722
15723 #. type: textblock
15724 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
15725 msgid ""
15726 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15727 "examining binaries in Windows guests."
15728 msgstr ""
15729
15730 #. type: =item
15731 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
15732 msgid "B"
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
15737 msgid "32-bit big endian such as UCS-4BE."
15738 msgstr ""
15739
15740 #. type: =item
15741 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
15742 msgid "L"
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
15747 msgid "32-bit little endian such as UCS-4LE."
15748 msgstr ""
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
15752 msgid "The returned strings are transcoded to UTF-8."
15753 msgstr ""
15754
15755 #. type: =head2
15756 #: ../fish/guestfish-actions.pod:4640
15757 msgid "swapoff-device"
15758 msgstr ""
15759
15760 #. type: verbatim
15761 #: ../fish/guestfish-actions.pod:4642
15762 #, no-wrap
15763 msgid ""
15764 " swapoff-device device\n"
15765 "\n"
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../fish/guestfish-actions.pod:4644
15770 msgid ""
15771 "This command disables the libguestfs appliance swap device or partition "
15772 "named C<device>.  See L</swapon-device>."
15773 msgstr ""
15774
15775 #. type: =head2
15776 #: ../fish/guestfish-actions.pod:4648
15777 msgid "swapoff-file"
15778 msgstr ""
15779
15780 #. type: verbatim
15781 #: ../fish/guestfish-actions.pod:4650
15782 #, no-wrap
15783 msgid ""
15784 " swapoff-file file\n"
15785 "\n"
15786 msgstr ""
15787
15788 #. type: textblock
15789 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
15790 msgid "This command disables the libguestfs appliance swap on file."
15791 msgstr ""
15792
15793 #. type: =head2
15794 #: ../fish/guestfish-actions.pod:4654
15795 msgid "swapoff-label"
15796 msgstr ""
15797
15798 #. type: verbatim
15799 #: ../fish/guestfish-actions.pod:4656
15800 #, no-wrap
15801 msgid ""
15802 " swapoff-label label\n"
15803 "\n"
15804 msgstr ""
15805
15806 #. type: textblock
15807 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
15808 msgid ""
15809 "This command disables the libguestfs appliance swap on labeled swap "
15810 "partition."
15811 msgstr ""
15812
15813 #. type: =head2
15814 #: ../fish/guestfish-actions.pod:4661
15815 msgid "swapoff-uuid"
15816 msgstr ""
15817
15818 #. type: verbatim
15819 #: ../fish/guestfish-actions.pod:4663
15820 #, no-wrap
15821 msgid ""
15822 " swapoff-uuid uuid\n"
15823 "\n"
15824 msgstr ""
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
15828 msgid ""
15829 "This command disables the libguestfs appliance swap partition with the given "
15830 "UUID."
15831 msgstr ""
15832
15833 #. type: =head2
15834 #: ../fish/guestfish-actions.pod:4668
15835 msgid "swapon-device"
15836 msgstr ""
15837
15838 #. type: verbatim
15839 #: ../fish/guestfish-actions.pod:4670
15840 #, no-wrap
15841 msgid ""
15842 " swapon-device device\n"
15843 "\n"
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:4672
15848 msgid ""
15849 "This command enables the libguestfs appliance to use the swap device or "
15850 "partition named C<device>.  The increased memory is made available for all "
15851 "commands, for example those run using L</command> or L</sh>."
15852 msgstr ""
15853
15854 #. type: textblock
15855 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
15856 msgid ""
15857 "Note that you should not swap to existing guest swap partitions unless you "
15858 "know what you are doing.  They may contain hibernation information, or other "
15859 "information that the guest doesn't want you to trash.  You also risk leaking "
15860 "information about the host to the guest this way.  Instead, attach a new "
15861 "host device to the guest and swap on that."
15862 msgstr ""
15863
15864 #. type: =head2
15865 #: ../fish/guestfish-actions.pod:4684
15866 msgid "swapon-file"
15867 msgstr ""
15868
15869 #. type: verbatim
15870 #: ../fish/guestfish-actions.pod:4686
15871 #, no-wrap
15872 msgid ""
15873 " swapon-file file\n"
15874 "\n"
15875 msgstr ""
15876
15877 #. type: textblock
15878 #: ../fish/guestfish-actions.pod:4688
15879 msgid ""
15880 "This command enables swap to a file.  See L</swapon-device> for other notes."
15881 msgstr ""
15882
15883 #. type: =head2
15884 #: ../fish/guestfish-actions.pod:4691
15885 msgid "swapon-label"
15886 msgstr ""
15887
15888 #. type: verbatim
15889 #: ../fish/guestfish-actions.pod:4693
15890 #, no-wrap
15891 msgid ""
15892 " swapon-label label\n"
15893 "\n"
15894 msgstr ""
15895
15896 #. type: textblock
15897 #: ../fish/guestfish-actions.pod:4695
15898 msgid ""
15899 "This command enables swap to a labeled swap partition.  See L</swapon-"
15900 "device> for other notes."
15901 msgstr ""
15902
15903 #. type: =head2
15904 #: ../fish/guestfish-actions.pod:4698
15905 msgid "swapon-uuid"
15906 msgstr ""
15907
15908 #. type: verbatim
15909 #: ../fish/guestfish-actions.pod:4700
15910 #, no-wrap
15911 msgid ""
15912 " swapon-uuid uuid\n"
15913 "\n"
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../fish/guestfish-actions.pod:4702
15918 msgid ""
15919 "This command enables swap to a swap partition with the given UUID.  See L</"
15920 "swapon-device> for other notes."
15921 msgstr ""
15922
15923 #. type: =head2
15924 #: ../fish/guestfish-actions.pod:4705
15925 msgid "sync"
15926 msgstr ""
15927
15928 #. type: verbatim
15929 #: ../fish/guestfish-actions.pod:4707
15930 #, no-wrap
15931 msgid ""
15932 " sync\n"
15933 "\n"
15934 msgstr ""
15935
15936 #. type: textblock
15937 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
15938 msgid ""
15939 "This syncs the disk, so that any writes are flushed through to the "
15940 "underlying disk image."
15941 msgstr ""
15942
15943 #. type: textblock
15944 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
15945 msgid ""
15946 "You should always call this if you have modified a disk image, before "
15947 "closing the handle."
15948 msgstr ""
15949
15950 #. type: =head2
15951 #: ../fish/guestfish-actions.pod:4715
15952 msgid "tail"
15953 msgstr ""
15954
15955 #. type: verbatim
15956 #: ../fish/guestfish-actions.pod:4717
15957 #, no-wrap
15958 msgid ""
15959 " tail path\n"
15960 "\n"
15961 msgstr ""
15962
15963 #. type: textblock
15964 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
15965 msgid ""
15966 "This command returns up to the last 10 lines of a file as a list of strings."
15967 msgstr ""
15968
15969 #. type: =head2
15970 #: ../fish/guestfish-actions.pod:4725
15971 msgid "tail-n"
15972 msgstr ""
15973
15974 #. type: verbatim
15975 #: ../fish/guestfish-actions.pod:4727
15976 #, no-wrap
15977 msgid ""
15978 " tail-n nrlines path\n"
15979 "\n"
15980 msgstr ""
15981
15982 #. type: textblock
15983 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
15984 msgid ""
15985 "If the parameter C<nrlines> is a positive number, this returns the last "
15986 "C<nrlines> lines of the file C<path>."
15987 msgstr ""
15988
15989 #. type: textblock
15990 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
15991 msgid ""
15992 "If the parameter C<nrlines> is a negative number, this returns lines from "
15993 "the file C<path>, starting with the C<-nrlines>th line."
15994 msgstr ""
15995
15996 #. type: =head2
15997 #: ../fish/guestfish-actions.pod:4740
15998 msgid "tar-in"
15999 msgstr ""
16000
16001 #. type: verbatim
16002 #: ../fish/guestfish-actions.pod:4742
16003 #, no-wrap
16004 msgid ""
16005 " tar-in (tarfile|-) directory\n"
16006 "\n"
16007 msgstr ""
16008
16009 #. type: textblock
16010 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16011 msgid ""
16012 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16013 "tar file) into C<directory>."
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:4747
16018 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16019 msgstr ""
16020
16021 #. type: =head2
16022 #: ../fish/guestfish-actions.pod:4752
16023 msgid "tar-out"
16024 msgstr ""
16025
16026 #. type: verbatim
16027 #: ../fish/guestfish-actions.pod:4754
16028 #, no-wrap
16029 msgid ""
16030 " tar-out directory (tarfile|-)\n"
16031 "\n"
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16036 msgid ""
16037 "This command packs the contents of C<directory> and downloads it to local "
16038 "file C<tarfile>."
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../fish/guestfish-actions.pod:4759
16043 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16044 msgstr ""
16045
16046 #. type: =head2
16047 #: ../fish/guestfish-actions.pod:4764
16048 msgid "tgz-in"
16049 msgstr ""
16050
16051 #. type: verbatim
16052 #: ../fish/guestfish-actions.pod:4766
16053 #, no-wrap
16054 msgid ""
16055 " tgz-in (tarball|-) directory\n"
16056 "\n"
16057 msgstr ""
16058
16059 #. type: textblock
16060 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16061 msgid ""
16062 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16063 "tar file) into C<directory>."
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish-actions.pod:4771
16068 msgid "To upload an uncompressed tarball, use L</tar-in>."
16069 msgstr ""
16070
16071 #. type: =head2
16072 #: ../fish/guestfish-actions.pod:4775
16073 msgid "tgz-out"
16074 msgstr ""
16075
16076 #. type: verbatim
16077 #: ../fish/guestfish-actions.pod:4777
16078 #, no-wrap
16079 msgid ""
16080 " tgz-out directory (tarball|-)\n"
16081 "\n"
16082 msgstr ""
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16086 msgid ""
16087 "This command packs the contents of C<directory> and downloads it to local "
16088 "file C<tarball>."
16089 msgstr ""
16090
16091 #. type: textblock
16092 #: ../fish/guestfish-actions.pod:4782
16093 msgid "To download an uncompressed tarball, use L</tar-out>."
16094 msgstr ""
16095
16096 #. type: =head2
16097 #: ../fish/guestfish-actions.pod:4786
16098 msgid "touch"
16099 msgstr ""
16100
16101 #. type: verbatim
16102 #: ../fish/guestfish-actions.pod:4788
16103 #, no-wrap
16104 msgid ""
16105 " touch path\n"
16106 "\n"
16107 msgstr ""
16108
16109 #. type: textblock
16110 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16111 msgid ""
16112 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16113 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16114 "length file."
16115 msgstr ""
16116
16117 #. type: textblock
16118 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16119 msgid ""
16120 "This command only works on regular files, and will fail on other file types "
16121 "such as directories, symbolic links, block special etc."
16122 msgstr ""
16123
16124 #. type: =head2
16125 #: ../fish/guestfish-actions.pod:4797
16126 msgid "truncate"
16127 msgstr ""
16128
16129 #. type: verbatim
16130 #: ../fish/guestfish-actions.pod:4799
16131 #, no-wrap
16132 msgid ""
16133 " truncate path\n"
16134 "\n"
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16139 msgid ""
16140 "This command truncates C<path> to a zero-length file.  The file must exist "
16141 "already."
16142 msgstr ""
16143
16144 #. type: =head2
16145 #: ../fish/guestfish-actions.pod:4804
16146 msgid "truncate-size"
16147 msgstr ""
16148
16149 #. type: verbatim
16150 #: ../fish/guestfish-actions.pod:4806
16151 #, no-wrap
16152 msgid ""
16153 " truncate-size path size\n"
16154 "\n"
16155 msgstr ""
16156
16157 #. type: textblock
16158 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16159 msgid ""
16160 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16161 "already."
16162 msgstr ""
16163
16164 #. type: textblock
16165 #: ../fish/guestfish-actions.pod:4811
16166 msgid ""
16167 "If the current file size is less than C<size> then the file is extended to "
16168 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16169 "blocks are not allocated for the file until you write to it).  To create a "
16170 "non-sparse file of zeroes, use L</fallocate64> instead."
16171 msgstr ""
16172
16173 #. type: =head2
16174 #: ../fish/guestfish-actions.pod:4817
16175 msgid "tune2fs-l"
16176 msgstr ""
16177
16178 #. type: verbatim
16179 #: ../fish/guestfish-actions.pod:4819
16180 #, no-wrap
16181 msgid ""
16182 " tune2fs-l device\n"
16183 "\n"
16184 msgstr ""
16185
16186 #. type: textblock
16187 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16188 msgid ""
16189 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16190 "C<device>."
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16195 msgid ""
16196 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16197 "for more details.  The list of fields returned isn't clearly defined, and "
16198 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16199 "and the filesystem itself."
16200 msgstr ""
16201
16202 #. type: =head2
16203 #: ../fish/guestfish-actions.pod:4829
16204 msgid "txz-in"
16205 msgstr ""
16206
16207 #. type: verbatim
16208 #: ../fish/guestfish-actions.pod:4831
16209 #, no-wrap
16210 msgid ""
16211 " txz-in (tarball|-) directory\n"
16212 "\n"
16213 msgstr ""
16214
16215 #. type: textblock
16216 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16217 msgid ""
16218 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16219 "tar file) into C<directory>."
16220 msgstr ""
16221
16222 #. type: =head2
16223 #: ../fish/guestfish-actions.pod:4838
16224 msgid "txz-out"
16225 msgstr ""
16226
16227 #. type: verbatim
16228 #: ../fish/guestfish-actions.pod:4840
16229 #, no-wrap
16230 msgid ""
16231 " txz-out directory (tarball|-)\n"
16232 "\n"
16233 msgstr ""
16234
16235 #. type: textblock
16236 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16237 msgid ""
16238 "This command packs the contents of C<directory> and downloads it to local "
16239 "file C<tarball> (as an xz compressed tar archive)."
16240 msgstr ""
16241
16242 #. type: =head2
16243 #: ../fish/guestfish-actions.pod:4847
16244 msgid "umask"
16245 msgstr ""
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish-actions.pod:4849
16249 #, no-wrap
16250 msgid ""
16251 " umask mask\n"
16252 "\n"
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16257 msgid ""
16258 "This function sets the mask used for creating new files and device nodes to "
16259 "C<mask & 0777>."
16260 msgstr ""
16261
16262 #. type: textblock
16263 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16264 msgid ""
16265 "Typical umask values would be C<022> which creates new files with "
16266 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16267 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16268 msgstr ""
16269
16270 #. type: textblock
16271 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16272 msgid ""
16273 "The default umask is C<022>.  This is important because it means that "
16274 "directories and device nodes will be created with C<0644> or C<0755> mode "
16275 "even if you specify C<0777>."
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish-actions.pod:4863
16280 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16285 msgid "This call returns the previous umask."
16286 msgstr ""
16287
16288 #. type: =head2
16289 #: ../fish/guestfish-actions.pod:4868
16290 msgid "umount"
16291 msgstr ""
16292
16293 #. type: =head2
16294 #: ../fish/guestfish-actions.pod:4870
16295 msgid "unmount"
16296 msgstr ""
16297
16298 #. type: verbatim
16299 #: ../fish/guestfish-actions.pod:4872
16300 #, no-wrap
16301 msgid ""
16302 " umount pathordevice\n"
16303 "\n"
16304 msgstr ""
16305
16306 #. type: textblock
16307 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16308 msgid ""
16309 "This unmounts the given filesystem.  The filesystem may be specified either "
16310 "by its mountpoint (path) or the device which contains the filesystem."
16311 msgstr ""
16312
16313 #. type: =head2
16314 #: ../fish/guestfish-actions.pod:4878
16315 msgid "umount-all"
16316 msgstr ""
16317
16318 #. type: =head2
16319 #: ../fish/guestfish-actions.pod:4880
16320 msgid "unmount-all"
16321 msgstr ""
16322
16323 #. type: verbatim
16324 #: ../fish/guestfish-actions.pod:4882
16325 #, no-wrap
16326 msgid ""
16327 " umount-all\n"
16328 "\n"
16329 msgstr ""
16330
16331 #. type: textblock
16332 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16333 msgid "This unmounts all mounted filesystems."
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16338 msgid "Some internal mounts are not unmounted by this call."
16339 msgstr ""
16340
16341 #. type: =head2
16342 #: ../fish/guestfish-actions.pod:4888
16343 msgid "upload"
16344 msgstr ""
16345
16346 #. type: verbatim
16347 #: ../fish/guestfish-actions.pod:4890
16348 #, no-wrap
16349 msgid ""
16350 " upload (filename|-) remotefilename\n"
16351 "\n"
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16356 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16357 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish-actions.pod:4897
16362 msgid "See also L</download>."
16363 msgstr ""
16364
16365 #. type: =head2
16366 #: ../fish/guestfish-actions.pod:4901
16367 msgid "upload-offset"
16368 msgstr ""
16369
16370 #. type: verbatim
16371 #: ../fish/guestfish-actions.pod:4903
16372 #, no-wrap
16373 msgid ""
16374 " upload-offset (filename|-) remotefilename offset\n"
16375 "\n"
16376 msgstr ""
16377
16378 #. type: textblock
16379 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16380 msgid ""
16381 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16382 "The intention is to overwrite parts of existing files or devices, although "
16383 "if a non-existant file is specified then it is created with a \"hole\" "
16384 "before C<offset>.  The size of the data written is implicit in the size of "
16385 "the source C<filename>."
16386 msgstr ""
16387
16388 #. type: textblock
16389 #: ../fish/guestfish-actions.pod:4915
16390 msgid ""
16391 "Note that there is no limit on the amount of data that can be uploaded with "
16392 "this call, unlike with L</pwrite>, and this call always writes the full "
16393 "amount unless an error occurs."
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish-actions.pod:4920
16398 msgid "See also L</upload>, L</pwrite>."
16399 msgstr ""
16400
16401 #. type: =head2
16402 #: ../fish/guestfish-actions.pod:4924
16403 msgid "utimens"
16404 msgstr ""
16405
16406 #. type: verbatim
16407 #: ../fish/guestfish-actions.pod:4926
16408 #, no-wrap
16409 msgid ""
16410 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16411 "\n"
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16416 msgid "This command sets the timestamps of a file with nanosecond precision."
16417 msgstr ""
16418
16419 #. type: textblock
16420 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16421 msgid ""
16422 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16423 "from the epoch."
16424 msgstr ""
16425
16426 #. type: textblock
16427 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16428 msgid ""
16429 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16430 "nanoseconds from the epoch."
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16435 msgid ""
16436 "If the C<*nsecs> field contains the special value C<-1> then the "
16437 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16438 "ignored in this case)."
16439 msgstr ""
16440
16441 #. type: textblock
16442 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16443 msgid ""
16444 "If the C<*nsecs> field contains the special value C<-2> then the "
16445 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16446 "in this case)."
16447 msgstr ""
16448
16449 #. type: =head2
16450 #: ../fish/guestfish-actions.pod:4945
16451 msgid "version"
16452 msgstr ""
16453
16454 #. type: verbatim
16455 #: ../fish/guestfish-actions.pod:4947
16456 #, no-wrap
16457 msgid ""
16458 " version\n"
16459 "\n"
16460 msgstr ""
16461
16462 #. type: textblock
16463 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16464 msgid ""
16465 "Return the libguestfs version number that the program is linked against."
16466 msgstr ""
16467
16468 #. type: textblock
16469 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
16470 msgid ""
16471 "Note that because of dynamic linking this is not necessarily the version of "
16472 "libguestfs that you compiled against.  You can compile the program, and then "
16473 "at runtime dynamically link against a completely different C<libguestfs.so> "
16474 "library."
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
16479 msgid ""
16480 "This call was added in version C<1.0.58>.  In previous versions of "
16481 "libguestfs there was no way to get the version number.  From C code you can "
16482 "use dynamic linker functions to find out if this symbol exists (if it "
16483 "doesn't, then it's an earlier version)."
16484 msgstr ""
16485
16486 #. type: textblock
16487 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
16488 msgid ""
16489 "The call returns a structure with four elements.  The first three (C<major>, "
16490 "C<minor> and C<release>) are numbers and correspond to the usual version "
16491 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16492 "but may be used for distro-specific information."
16493 msgstr ""
16494
16495 #. type: textblock
16496 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
16497 msgid ""
16498 "To construct the original version string: C<$major.$minor.$release$extra>"
16499 msgstr ""
16500
16501 #. type: textblock
16502 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
16503 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16504 msgstr ""
16505
16506 #. type: textblock
16507 #: ../fish/guestfish-actions.pod:4974
16508 msgid ""
16509 "I<Note:> Don't use this call to test for availability of features.  In "
16510 "enterprise distributions we backport features from later versions into "
16511 "earlier versions, making this an unreliable way to test for features.  Use "
16512 "L</available> instead."
16513 msgstr ""
16514
16515 #. type: =head2
16516 #: ../fish/guestfish-actions.pod:4980
16517 msgid "vfs-label"
16518 msgstr ""
16519
16520 #. type: verbatim
16521 #: ../fish/guestfish-actions.pod:4982
16522 #, no-wrap
16523 msgid ""
16524 " vfs-label device\n"
16525 "\n"
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
16530 msgid "This returns the filesystem label of the filesystem on C<device>."
16531 msgstr ""
16532
16533 #. type: textblock
16534 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
16535 msgid "If the filesystem is unlabeled, this returns the empty string."
16536 msgstr ""
16537
16538 #. type: textblock
16539 #: ../fish/guestfish-actions.pod:4989
16540 msgid "To find a filesystem from the label, use L</findfs-label>."
16541 msgstr ""
16542
16543 #. type: =head2
16544 #: ../fish/guestfish-actions.pod:4991
16545 msgid "vfs-type"
16546 msgstr ""
16547
16548 #. type: verbatim
16549 #: ../fish/guestfish-actions.pod:4993
16550 #, no-wrap
16551 msgid ""
16552 " vfs-type device\n"
16553 "\n"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
16558 msgid ""
16559 "This command gets the filesystem type corresponding to the filesystem on "
16560 "C<device>."
16561 msgstr ""
16562
16563 #. type: textblock
16564 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
16565 msgid ""
16566 "For most filesystems, the result is the name of the Linux VFS module which "
16567 "would be used to mount this filesystem if you mounted it without specifying "
16568 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16569 msgstr ""
16570
16571 #. type: =head2
16572 #: ../fish/guestfish-actions.pod:5003
16573 msgid "vfs-uuid"
16574 msgstr ""
16575
16576 #. type: verbatim
16577 #: ../fish/guestfish-actions.pod:5005
16578 #, no-wrap
16579 msgid ""
16580 " vfs-uuid device\n"
16581 "\n"
16582 msgstr ""
16583
16584 #. type: textblock
16585 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
16586 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16587 msgstr ""
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
16591 msgid "If the filesystem does not have a UUID, this returns the empty string."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-actions.pod:5012
16596 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16597 msgstr ""
16598
16599 #. type: =head2
16600 #: ../fish/guestfish-actions.pod:5014
16601 msgid "vg-activate"
16602 msgstr ""
16603
16604 #. type: verbatim
16605 #: ../fish/guestfish-actions.pod:5016
16606 #, no-wrap
16607 msgid ""
16608 " vg-activate true|false 'volgroups ...'\n"
16609 "\n"
16610 msgstr ""
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
16614 msgid ""
16615 "This command activates or (if C<activate> is false) deactivates all logical "
16616 "volumes in the listed volume groups C<volgroups>."
16617 msgstr ""
16618
16619 #. type: textblock
16620 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
16621 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
16626 msgid ""
16627 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16628 "activated or deactivated."
16629 msgstr ""
16630
16631 #. type: =head2
16632 #: ../fish/guestfish-actions.pod:5026
16633 msgid "vg-activate-all"
16634 msgstr ""
16635
16636 #. type: verbatim
16637 #: ../fish/guestfish-actions.pod:5028
16638 #, no-wrap
16639 msgid ""
16640 " vg-activate-all true|false\n"
16641 "\n"
16642 msgstr ""
16643
16644 #. type: textblock
16645 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
16646 msgid ""
16647 "This command activates or (if C<activate> is false) deactivates all logical "
16648 "volumes in all volume groups."
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
16653 msgid "This command is the same as running C<vgchange -a y|n>"
16654 msgstr ""
16655
16656 #. type: =head2
16657 #: ../fish/guestfish-actions.pod:5035
16658 msgid "vgcreate"
16659 msgstr ""
16660
16661 #. type: verbatim
16662 #: ../fish/guestfish-actions.pod:5037
16663 #, no-wrap
16664 msgid ""
16665 " vgcreate volgroup 'physvols ...'\n"
16666 "\n"
16667 msgstr ""
16668
16669 #. type: textblock
16670 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
16671 msgid ""
16672 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16673 "of physical volumes C<physvols>."
16674 msgstr ""
16675
16676 #. type: =head2
16677 #: ../fish/guestfish-actions.pod:5042
16678 msgid "vglvuuids"
16679 msgstr ""
16680
16681 #. type: verbatim
16682 #: ../fish/guestfish-actions.pod:5044
16683 #, no-wrap
16684 msgid ""
16685 " vglvuuids vgname\n"
16686 "\n"
16687 msgstr ""
16688
16689 #. type: textblock
16690 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
16691 msgid ""
16692 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16693 "volumes created in this volume group."
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-actions.pod:5049
16698 msgid ""
16699 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16700 "logical volumes and volume groups."
16701 msgstr ""
16702
16703 #. type: textblock
16704 #: ../fish/guestfish-actions.pod:5052
16705 msgid "See also L</vgpvuuids>."
16706 msgstr ""
16707
16708 #. type: =head2
16709 #: ../fish/guestfish-actions.pod:5054
16710 msgid "vgpvuuids"
16711 msgstr ""
16712
16713 #. type: verbatim
16714 #: ../fish/guestfish-actions.pod:5056
16715 #, no-wrap
16716 msgid ""
16717 " vgpvuuids vgname\n"
16718 "\n"
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
16723 msgid ""
16724 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16725 "volumes that this volume group resides on."
16726 msgstr ""
16727
16728 #. type: textblock
16729 #: ../fish/guestfish-actions.pod:5061
16730 msgid ""
16731 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16732 "physical volumes and volume groups."
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish-actions.pod:5064
16737 msgid "See also L</vglvuuids>."
16738 msgstr ""
16739
16740 #. type: =head2
16741 #: ../fish/guestfish-actions.pod:5066
16742 msgid "vgremove"
16743 msgstr ""
16744
16745 #. type: verbatim
16746 #: ../fish/guestfish-actions.pod:5068
16747 #, no-wrap
16748 msgid ""
16749 " vgremove vgname\n"
16750 "\n"
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
16755 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16756 msgstr ""
16757
16758 #. type: textblock
16759 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
16760 msgid ""
16761 "This also forcibly removes all logical volumes in the volume group (if any)."
16762 msgstr ""
16763
16764 #. type: =head2
16765 #: ../fish/guestfish-actions.pod:5075
16766 msgid "vgrename"
16767 msgstr ""
16768
16769 #. type: verbatim
16770 #: ../fish/guestfish-actions.pod:5077
16771 #, no-wrap
16772 msgid ""
16773 " vgrename volgroup newvolgroup\n"
16774 "\n"
16775 msgstr ""
16776
16777 #. type: textblock
16778 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
16779 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16780 msgstr ""
16781
16782 #. type: =head2
16783 #: ../fish/guestfish-actions.pod:5081
16784 msgid "vgs"
16785 msgstr ""
16786
16787 #. type: verbatim
16788 #: ../fish/guestfish-actions.pod:5083
16789 #, no-wrap
16790 msgid ""
16791 " vgs\n"
16792 "\n"
16793 msgstr ""
16794
16795 #. type: textblock
16796 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
16797 msgid ""
16798 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16799 "> command."
16800 msgstr ""
16801
16802 #. type: textblock
16803 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
16804 msgid ""
16805 "This returns a list of just the volume group names that were detected (eg. "
16806 "C<VolGroup00>)."
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish-actions.pod:5091
16811 msgid "See also L</vgs-full>."
16812 msgstr ""
16813
16814 #. type: =head2
16815 #: ../fish/guestfish-actions.pod:5093
16816 msgid "vgs-full"
16817 msgstr ""
16818
16819 #. type: verbatim
16820 #: ../fish/guestfish-actions.pod:5095
16821 #, no-wrap
16822 msgid ""
16823 " vgs-full\n"
16824 "\n"
16825 msgstr ""
16826
16827 #. type: textblock
16828 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
16829 msgid ""
16830 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16831 "> command.  The \"full\" version includes all fields."
16832 msgstr ""
16833
16834 #. type: =head2
16835 #: ../fish/guestfish-actions.pod:5100
16836 msgid "vgscan"
16837 msgstr ""
16838
16839 #. type: verbatim
16840 #: ../fish/guestfish-actions.pod:5102
16841 #, no-wrap
16842 msgid ""
16843 " vgscan\n"
16844 "\n"
16845 msgstr ""
16846
16847 #. type: textblock
16848 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
16849 msgid ""
16850 "This rescans all block devices and rebuilds the list of LVM physical "
16851 "volumes, volume groups and logical volumes."
16852 msgstr ""
16853
16854 #. type: =head2
16855 #: ../fish/guestfish-actions.pod:5107
16856 msgid "vguuid"
16857 msgstr ""
16858
16859 #. type: verbatim
16860 #: ../fish/guestfish-actions.pod:5109
16861 #, no-wrap
16862 msgid ""
16863 " vguuid vgname\n"
16864 "\n"
16865 msgstr ""
16866
16867 #. type: textblock
16868 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
16869 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16870 msgstr ""
16871
16872 #. type: =head2
16873 #: ../fish/guestfish-actions.pod:5113
16874 msgid "wc-c"
16875 msgstr ""
16876
16877 #. type: verbatim
16878 #: ../fish/guestfish-actions.pod:5115
16879 #, no-wrap
16880 msgid ""
16881 " wc-c path\n"
16882 "\n"
16883 msgstr ""
16884
16885 #. type: textblock
16886 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
16887 msgid ""
16888 "This command counts the characters in a file, using the C<wc -c> external "
16889 "command."
16890 msgstr ""
16891
16892 #. type: =head2
16893 #: ../fish/guestfish-actions.pod:5120
16894 msgid "wc-l"
16895 msgstr ""
16896
16897 #. type: verbatim
16898 #: ../fish/guestfish-actions.pod:5122
16899 #, no-wrap
16900 msgid ""
16901 " wc-l path\n"
16902 "\n"
16903 msgstr ""
16904
16905 #. type: textblock
16906 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
16907 msgid ""
16908 "This command counts the lines in a file, using the C<wc -l> external command."
16909 msgstr ""
16910
16911 #. type: =head2
16912 #: ../fish/guestfish-actions.pod:5127
16913 msgid "wc-w"
16914 msgstr ""
16915
16916 #. type: verbatim
16917 #: ../fish/guestfish-actions.pod:5129
16918 #, no-wrap
16919 msgid ""
16920 " wc-w path\n"
16921 "\n"
16922 msgstr ""
16923
16924 #. type: textblock
16925 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
16926 msgid ""
16927 "This command counts the words in a file, using the C<wc -w> external command."
16928 msgstr ""
16929
16930 #. type: =head2
16931 #: ../fish/guestfish-actions.pod:5134
16932 msgid "write"
16933 msgstr ""
16934
16935 #. type: verbatim
16936 #: ../fish/guestfish-actions.pod:5136
16937 #, no-wrap
16938 msgid ""
16939 " write path content\n"
16940 "\n"
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
16945 msgid ""
16946 "This call creates a file called C<path>.  The content of the file is the "
16947 "string C<content> (which can contain any 8 bit data)."
16948 msgstr ""
16949
16950 #. type: textblock
16951 #: ../fish/guestfish-actions.pod:5141
16952 msgid "See also L</write-append>."
16953 msgstr ""
16954
16955 #. type: =head2
16956 #: ../fish/guestfish-actions.pod:5146
16957 msgid "write-append"
16958 msgstr ""
16959
16960 #. type: verbatim
16961 #: ../fish/guestfish-actions.pod:5148
16962 #, no-wrap
16963 msgid ""
16964 " write-append path content\n"
16965 "\n"
16966 msgstr ""
16967
16968 #. type: textblock
16969 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
16970 msgid ""
16971 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16972 "not exist, then a new file is created."
16973 msgstr ""
16974
16975 #. type: textblock
16976 #: ../fish/guestfish-actions.pod:5153
16977 msgid "See also L</write>."
16978 msgstr ""
16979
16980 #. type: =head2
16981 #: ../fish/guestfish-actions.pod:5158
16982 msgid "write-file"
16983 msgstr ""
16984
16985 #. type: verbatim
16986 #: ../fish/guestfish-actions.pod:5160
16987 #, no-wrap
16988 msgid ""
16989 " write-file path content size\n"
16990 "\n"
16991 msgstr ""
16992
16993 #. type: textblock
16994 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
16995 msgid ""
16996 "This call creates a file called C<path>.  The contents of the file is the "
16997 "string C<content> (which can contain any 8 bit data), with length C<size>."
16998 msgstr ""
16999
17000 #. type: textblock
17001 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17002 msgid ""
17003 "As a special case, if C<size> is C<0> then the length is calculated using "
17004 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17009 msgid ""
17010 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17011 "I<not> work, even if the length is specified."
17012 msgstr ""
17013
17014 #. type: textblock
17015 #: ../fish/guestfish-actions.pod:5176
17016 msgid ""
17017 "I<This function is deprecated.> In new code, use the L</write> call instead."
17018 msgstr ""
17019
17020 #. type: =head2
17021 #: ../fish/guestfish-actions.pod:5183
17022 msgid "zegrep"
17023 msgstr ""
17024
17025 #. type: verbatim
17026 #: ../fish/guestfish-actions.pod:5185
17027 #, no-wrap
17028 msgid ""
17029 " zegrep regex path\n"
17030 "\n"
17031 msgstr ""
17032
17033 #. type: textblock
17034 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17035 msgid ""
17036 "This calls the external C<zegrep> program and returns the matching lines."
17037 msgstr ""
17038
17039 #. type: =head2
17040 #: ../fish/guestfish-actions.pod:5193
17041 msgid "zegrepi"
17042 msgstr ""
17043
17044 #. type: verbatim
17045 #: ../fish/guestfish-actions.pod:5195
17046 #, no-wrap
17047 msgid ""
17048 " zegrepi regex path\n"
17049 "\n"
17050 msgstr ""
17051
17052 #. type: textblock
17053 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17054 msgid ""
17055 "This calls the external C<zegrep -i> program and returns the matching lines."
17056 msgstr ""
17057
17058 #. type: =head2
17059 #: ../fish/guestfish-actions.pod:5203
17060 msgid "zero"
17061 msgstr ""
17062
17063 #. type: verbatim
17064 #: ../fish/guestfish-actions.pod:5205
17065 #, no-wrap
17066 msgid ""
17067 " zero device\n"
17068 "\n"
17069 msgstr ""
17070
17071 #. type: textblock
17072 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17073 msgid "This command writes zeroes over the first few blocks of C<device>."
17074 msgstr ""
17075
17076 #. type: textblock
17077 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17078 msgid ""
17079 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17080 "securely wipe the device).  It should be sufficient to remove any partition "
17081 "tables, filesystem superblocks and so on."
17082 msgstr ""
17083
17084 #. type: textblock
17085 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17086 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17087 msgid ""
17088 "If blocks are already zero, then this command avoids writing zeroes.  This "
17089 "prevents the underlying device from becoming non-sparse or growing "
17090 "unnecessarily."
17091 msgstr ""
17092
17093 #. type: textblock
17094 #: ../fish/guestfish-actions.pod:5217
17095 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17096 msgstr ""
17097
17098 #. type: =head2
17099 #: ../fish/guestfish-actions.pod:5220
17100 msgid "zero-device"
17101 msgstr ""
17102
17103 #. type: verbatim
17104 #: ../fish/guestfish-actions.pod:5222
17105 #, no-wrap
17106 msgid ""
17107 " zero-device device\n"
17108 "\n"
17109 msgstr ""
17110
17111 #. type: textblock
17112 #: ../fish/guestfish-actions.pod:5224
17113 msgid ""
17114 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17115 "which just zeroes the first few blocks of a device."
17116 msgstr ""
17117
17118 #. type: =head2
17119 #: ../fish/guestfish-actions.pod:5235
17120 msgid "zerofree"
17121 msgstr ""
17122
17123 #. type: verbatim
17124 #: ../fish/guestfish-actions.pod:5237
17125 #, no-wrap
17126 msgid ""
17127 " zerofree device\n"
17128 "\n"
17129 msgstr ""
17130
17131 #. type: textblock
17132 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17133 msgid ""
17134 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17135 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17136 "possible to compress the filesystem more effectively."
17137 msgstr ""
17138
17139 #. type: textblock
17140 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17141 msgid "You should B<not> run this program if the filesystem is mounted."
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17146 msgid ""
17147 "It is possible that using this program can damage the filesystem or data on "
17148 "the filesystem."
17149 msgstr ""
17150
17151 #. type: =head2
17152 #: ../fish/guestfish-actions.pod:5250
17153 msgid "zfgrep"
17154 msgstr ""
17155
17156 #. type: verbatim
17157 #: ../fish/guestfish-actions.pod:5252
17158 #, no-wrap
17159 msgid ""
17160 " zfgrep pattern path\n"
17161 "\n"
17162 msgstr ""
17163
17164 #. type: textblock
17165 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17166 msgid ""
17167 "This calls the external C<zfgrep> program and returns the matching lines."
17168 msgstr ""
17169
17170 #. type: =head2
17171 #: ../fish/guestfish-actions.pod:5260
17172 msgid "zfgrepi"
17173 msgstr ""
17174
17175 #. type: verbatim
17176 #: ../fish/guestfish-actions.pod:5262
17177 #, no-wrap
17178 msgid ""
17179 " zfgrepi pattern path\n"
17180 "\n"
17181 msgstr ""
17182
17183 #. type: textblock
17184 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17185 msgid ""
17186 "This calls the external C<zfgrep -i> program and returns the matching lines."
17187 msgstr ""
17188
17189 #. type: =head2
17190 #: ../fish/guestfish-actions.pod:5270
17191 msgid "zfile"
17192 msgstr ""
17193
17194 #. type: verbatim
17195 #: ../fish/guestfish-actions.pod:5272
17196 #, no-wrap
17197 msgid ""
17198 " zfile meth path\n"
17199 "\n"
17200 msgstr ""
17201
17202 #. type: textblock
17203 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17204 msgid ""
17205 "This command runs C<file> after first decompressing C<path> using C<method>."
17206 msgstr ""
17207
17208 #. type: textblock
17209 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17210 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish-actions.pod:5279
17215 msgid ""
17216 "Since 1.0.63, use L</file> instead which can now process compressed files."
17217 msgstr ""
17218
17219 #. type: textblock
17220 #: ../fish/guestfish-actions.pod:5282
17221 msgid ""
17222 "I<This function is deprecated.> In new code, use the L</file> call instead."
17223 msgstr ""
17224
17225 #. type: =head2
17226 #: ../fish/guestfish-actions.pod:5289
17227 msgid "zgrep"
17228 msgstr ""
17229
17230 #. type: verbatim
17231 #: ../fish/guestfish-actions.pod:5291
17232 #, no-wrap
17233 msgid ""
17234 " zgrep regex path\n"
17235 "\n"
17236 msgstr ""
17237
17238 #. type: textblock
17239 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17240 msgid ""
17241 "This calls the external C<zgrep> program and returns the matching lines."
17242 msgstr ""
17243
17244 #. type: =head2
17245 #: ../fish/guestfish-actions.pod:5299
17246 msgid "zgrepi"
17247 msgstr ""
17248
17249 #. type: verbatim
17250 #: ../fish/guestfish-actions.pod:5301
17251 #, no-wrap
17252 msgid ""
17253 " zgrepi regex path\n"
17254 "\n"
17255 msgstr ""
17256
17257 #. type: textblock
17258 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17259 msgid ""
17260 "This calls the external C<zgrep -i> program and returns the matching lines."
17261 msgstr ""
17262
17263 #. type: =head2
17264 #: ../fish/guestfish-commands.pod:1
17265 msgid "alloc"
17266 msgstr ""
17267
17268 #. type: =head2
17269 #: ../fish/guestfish-commands.pod:3
17270 msgid "allocate"
17271 msgstr ""
17272
17273 #. type: verbatim
17274 #: ../fish/guestfish-commands.pod:5
17275 #, no-wrap
17276 msgid ""
17277 " alloc filename size\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-commands.pod:7
17283 msgid ""
17284 "This creates an empty (zeroed) file of the given size, and then adds so it "
17285 "can be further examined."
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17290 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17291 msgstr ""
17292
17293 #. type: textblock
17294 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17295 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17296 msgstr ""
17297
17298 #. type: textblock
17299 #: ../fish/guestfish-commands.pod:14
17300 msgid ""
17301 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17302 "image, see L</PREPARED DISK IMAGES>."
17303 msgstr ""
17304
17305 #. type: =head2
17306 #: ../fish/guestfish-commands.pod:17
17307 msgid "copy-in"
17308 msgstr ""
17309
17310 #. type: verbatim
17311 #: ../fish/guestfish-commands.pod:19
17312 #, no-wrap
17313 msgid ""
17314 " copy-in local [local ...] /remotedir\n"
17315 "\n"
17316 msgstr ""
17317
17318 #. type: textblock
17319 #: ../fish/guestfish-commands.pod:21
17320 msgid ""
17321 "C<copy-in> copies local files or directories recursively into the disk "
17322 "image, placing them in the directory called C</remotedir> (which must "
17323 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17324 "other commands as necessary."
17325 msgstr ""
17326
17327 #. type: textblock
17328 #: ../fish/guestfish-commands.pod:26
17329 msgid ""
17330 "Multiple local files and directories can be specified, but the last "
17331 "parameter must always be a remote directory.  Wildcards cannot be used."
17332 msgstr ""
17333
17334 #. type: =head2
17335 #: ../fish/guestfish-commands.pod:30
17336 msgid "copy-out"
17337 msgstr ""
17338
17339 #. type: verbatim
17340 #: ../fish/guestfish-commands.pod:32
17341 #, no-wrap
17342 msgid ""
17343 " copy-out remote [remote ...] localdir\n"
17344 "\n"
17345 msgstr ""
17346
17347 #. type: textblock
17348 #: ../fish/guestfish-commands.pod:34
17349 msgid ""
17350 "C<copy-out> copies remote files or directories recursively out of the disk "
17351 "image, placing them on the host disk in a local directory called C<localdir> "
17352 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17353 "download>, L</tar-out> and other commands as necessary."
17354 msgstr ""
17355
17356 #. type: textblock
17357 #: ../fish/guestfish-commands.pod:40
17358 msgid ""
17359 "Multiple remote files and directories can be specified, but the last "
17360 "parameter must always be a local directory.  To download to the current "
17361 "directory, use C<.> as in:"
17362 msgstr ""
17363
17364 #. type: verbatim
17365 #: ../fish/guestfish-commands.pod:44
17366 #, no-wrap
17367 msgid ""
17368 " copy-out /home .\n"
17369 "\n"
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../fish/guestfish-commands.pod:46
17374 msgid ""
17375 "Wildcards cannot be used in the ordinary command, but you can use them with "
17376 "the help of L</glob> like this:"
17377 msgstr ""
17378
17379 #. type: verbatim
17380 #: ../fish/guestfish-commands.pod:49
17381 #, no-wrap
17382 msgid ""
17383 " glob copy-out /home/* .\n"
17384 "\n"
17385 msgstr ""
17386
17387 #. type: =head2
17388 #: ../fish/guestfish-commands.pod:51
17389 msgid "display"
17390 msgstr ""
17391
17392 #. type: verbatim
17393 #: ../fish/guestfish-commands.pod:53
17394 #, no-wrap
17395 msgid ""
17396 " display filename\n"
17397 "\n"
17398 msgstr ""
17399
17400 #. type: textblock
17401 #: ../fish/guestfish-commands.pod:55
17402 msgid ""
17403 "Use C<display> (a graphical display program) to display an image file.  It "
17404 "downloads the file, and runs C<display> on it."
17405 msgstr ""
17406
17407 #. type: textblock
17408 #: ../fish/guestfish-commands.pod:58
17409 msgid ""
17410 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17411 "environment variable.  For example to use the GNOME display program:"
17412 msgstr ""
17413
17414 #. type: verbatim
17415 #: ../fish/guestfish-commands.pod:61
17416 #, no-wrap
17417 msgid ""
17418 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17419 "\n"
17420 msgstr ""
17421
17422 #. type: textblock
17423 #: ../fish/guestfish-commands.pod:63
17424 msgid "See also L<display(1)>."
17425 msgstr ""
17426
17427 #. type: =head2
17428 #: ../fish/guestfish-commands.pod:65
17429 msgid "echo"
17430 msgstr ""
17431
17432 #. type: verbatim
17433 #: ../fish/guestfish-commands.pod:67
17434 #, no-wrap
17435 msgid ""
17436 " echo [params ...]\n"
17437 "\n"
17438 msgstr ""
17439
17440 #. type: textblock
17441 #: ../fish/guestfish-commands.pod:69
17442 msgid "This echos the parameters to the terminal."
17443 msgstr ""
17444
17445 #. type: =head2
17446 #: ../fish/guestfish-commands.pod:71
17447 msgid "edit"
17448 msgstr ""
17449
17450 #. type: =head2
17451 #: ../fish/guestfish-commands.pod:73
17452 msgid "vi"
17453 msgstr ""
17454
17455 #. type: =head2
17456 #: ../fish/guestfish-commands.pod:75
17457 msgid "emacs"
17458 msgstr ""
17459
17460 #. type: verbatim
17461 #: ../fish/guestfish-commands.pod:77
17462 #, no-wrap
17463 msgid ""
17464 " edit filename\n"
17465 "\n"
17466 msgstr ""
17467
17468 #. type: textblock
17469 #: ../fish/guestfish-commands.pod:79
17470 msgid ""
17471 "This is used to edit a file.  It downloads the file, edits it locally using "
17472 "your editor, then uploads the result."
17473 msgstr ""
17474
17475 #. type: textblock
17476 #: ../fish/guestfish-commands.pod:82
17477 msgid ""
17478 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17479 "or C<emacs> you will get those corresponding editors."
17480 msgstr ""
17481
17482 #. type: =head2
17483 #: ../fish/guestfish-commands.pod:86
17484 msgid "glob"
17485 msgstr ""
17486
17487 #. type: verbatim
17488 #: ../fish/guestfish-commands.pod:88
17489 #, no-wrap
17490 msgid ""
17491 " glob command args...\n"
17492 "\n"
17493 msgstr ""
17494
17495 #. type: textblock
17496 #: ../fish/guestfish-commands.pod:90
17497 msgid ""
17498 "Expand wildcards in any paths in the args list, and run C<command> "
17499 "repeatedly on each matching path."
17500 msgstr ""
17501
17502 #. type: textblock
17503 #: ../fish/guestfish-commands.pod:93
17504 msgid "See L</WILDCARDS AND GLOBBING>."
17505 msgstr ""
17506
17507 #. type: =head2
17508 #: ../fish/guestfish-commands.pod:95
17509 msgid "hexedit"
17510 msgstr ""
17511
17512 #. type: verbatim
17513 #: ../fish/guestfish-commands.pod:97
17514 #, no-wrap
17515 msgid ""
17516 " hexedit <filename|device>\n"
17517 " hexedit <filename|device> <max>\n"
17518 " hexedit <filename|device> <start> <max>\n"
17519 "\n"
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish-commands.pod:101
17524 msgid ""
17525 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17526 "device."
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../fish/guestfish-commands.pod:104
17531 msgid ""
17532 "This command works by downloading potentially the whole file or device, "
17533 "editing it locally, then uploading it.  If the file or device is large, you "
17534 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17535 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17536 "usual modifiers allowed such as C<1M> (1 megabyte)."
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish-commands.pod:111
17541 msgid "For example to edit the first few sectors of a disk you might do:"
17542 msgstr ""
17543
17544 #. type: verbatim
17545 #: ../fish/guestfish-commands.pod:114
17546 #, no-wrap
17547 msgid ""
17548 " hexedit /dev/sda 1M\n"
17549 "\n"
17550 msgstr ""
17551
17552 #. type: textblock
17553 #: ../fish/guestfish-commands.pod:116
17554 msgid ""
17555 "which would allow you to edit anywhere within the first megabyte of the disk."
17556 msgstr ""
17557
17558 #. type: textblock
17559 #: ../fish/guestfish-commands.pod:119
17560 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17561 msgstr ""
17562
17563 #. type: verbatim
17564 #: ../fish/guestfish-commands.pod:121
17565 #, no-wrap
17566 msgid ""
17567 " hexedit /dev/sda1 0x400 0x400\n"
17568 "\n"
17569 msgstr ""
17570
17571 #. type: textblock
17572 #: ../fish/guestfish-commands.pod:123
17573 msgid "(assuming the superblock is in the standard location)."
17574 msgstr ""
17575
17576 #. type: textblock
17577 #: ../fish/guestfish-commands.pod:125
17578 msgid ""
17579 "This command requires the external L<hexedit(1)> program.  You can specify "
17580 "another program to use by setting the C<HEXEDITOR> environment variable."
17581 msgstr ""
17582
17583 #. type: textblock
17584 #: ../fish/guestfish-commands.pod:129
17585 msgid "See also L</hexdump>."
17586 msgstr ""
17587
17588 #. type: =head2
17589 #: ../fish/guestfish-commands.pod:131
17590 msgid "lcd"
17591 msgstr ""
17592
17593 #. type: verbatim
17594 #: ../fish/guestfish-commands.pod:133
17595 #, no-wrap
17596 msgid ""
17597 " lcd directory\n"
17598 "\n"
17599 msgstr ""
17600
17601 #. type: textblock
17602 #: ../fish/guestfish-commands.pod:135
17603 msgid ""
17604 "Change the local directory, ie. the current directory of guestfish itself."
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish-commands.pod:138
17609 msgid "Note that C<!cd> won't do what you might expect."
17610 msgstr ""
17611
17612 #. type: =head2
17613 #: ../fish/guestfish-commands.pod:140
17614 msgid "man"
17615 msgstr ""
17616
17617 #. type: =head2
17618 #: ../fish/guestfish-commands.pod:142
17619 msgid "manual"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish-commands.pod:144
17624 #, no-wrap
17625 msgid ""
17626 "  man\n"
17627 "\n"
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish-commands.pod:146
17632 msgid "Opens the manual page for guestfish."
17633 msgstr ""
17634
17635 #. type: =head2
17636 #: ../fish/guestfish-commands.pod:148
17637 msgid "more"
17638 msgstr ""
17639
17640 #. type: =head2
17641 #: ../fish/guestfish-commands.pod:150
17642 msgid "less"
17643 msgstr ""
17644
17645 #. type: verbatim
17646 #: ../fish/guestfish-commands.pod:152
17647 #, no-wrap
17648 msgid ""
17649 " more filename\n"
17650 "\n"
17651 msgstr ""
17652
17653 #. type: verbatim
17654 #: ../fish/guestfish-commands.pod:154
17655 #, no-wrap
17656 msgid ""
17657 " less filename\n"
17658 "\n"
17659 msgstr ""
17660
17661 #. type: textblock
17662 #: ../fish/guestfish-commands.pod:156
17663 msgid "This is used to view a file."
17664 msgstr ""
17665
17666 #. type: textblock
17667 #: ../fish/guestfish-commands.pod:158
17668 msgid ""
17669 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17670 "C<less> you will get the C<less> command specifically."
17671 msgstr ""
17672
17673 #. type: =head2
17674 #: ../fish/guestfish-commands.pod:161
17675 msgid "reopen"
17676 msgstr ""
17677
17678 #. type: verbatim
17679 #: ../fish/guestfish-commands.pod:163
17680 #, no-wrap
17681 msgid ""
17682 "  reopen\n"
17683 "\n"
17684 msgstr ""
17685
17686 #. type: textblock
17687 #: ../fish/guestfish-commands.pod:165
17688 msgid ""
17689 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17690 "normally, because the handle is closed properly when guestfish exits.  "
17691 "However this is occasionally useful for testing."
17692 msgstr ""
17693
17694 #. type: =head2
17695 #: ../fish/guestfish-commands.pod:169
17696 msgid "setenv"
17697 msgstr ""
17698
17699 #. type: verbatim
17700 #: ../fish/guestfish-commands.pod:171
17701 #, no-wrap
17702 msgid ""
17703 "  setenv VAR value\n"
17704 "\n"
17705 msgstr ""
17706
17707 #. type: textblock
17708 #: ../fish/guestfish-commands.pod:173
17709 msgid "Set the environment variable C<VAR> to the string C<value>."
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish-commands.pod:175
17714 msgid ""
17715 "To print the value of an environment variable use a shell command such as:"
17716 msgstr ""
17717
17718 #. type: verbatim
17719 #: ../fish/guestfish-commands.pod:178
17720 #, no-wrap
17721 msgid ""
17722 " !echo $VAR\n"
17723 "\n"
17724 msgstr ""
17725
17726 #. type: =head2
17727 #: ../fish/guestfish-commands.pod:180
17728 msgid "sparse"
17729 msgstr ""
17730
17731 #. type: verbatim
17732 #: ../fish/guestfish-commands.pod:182
17733 #, no-wrap
17734 msgid ""
17735 " sparse filename size\n"
17736 "\n"
17737 msgstr ""
17738
17739 #. type: textblock
17740 #: ../fish/guestfish-commands.pod:184
17741 msgid ""
17742 "This creates an empty sparse file of the given size, and then adds so it can "
17743 "be further examined."
17744 msgstr ""
17745
17746 #. type: textblock
17747 #: ../fish/guestfish-commands.pod:187
17748 msgid ""
17749 "In all respects it works the same as the L</alloc> command, except that the "
17750 "image file is allocated sparsely, which means that disk blocks are not "
17751 "assigned to the file until they are needed.  Sparse disk files only use "
17752 "space when written to, but they are slower and there is a danger you could "
17753 "run out of real disk space during a write operation."
17754 msgstr ""
17755
17756 #. type: =head2
17757 #: ../fish/guestfish-commands.pod:197
17758 msgid "supported"
17759 msgstr ""
17760
17761 #. type: verbatim
17762 #: ../fish/guestfish-commands.pod:199
17763 #, no-wrap
17764 msgid ""
17765 " supported\n"
17766 "\n"
17767 msgstr ""
17768
17769 #. type: textblock
17770 #: ../fish/guestfish-commands.pod:201
17771 msgid ""
17772 "This command returns a list of the optional groups known to the daemon, and "
17773 "indicates which ones are supported by this build of the libguestfs appliance."
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish-commands.pod:205
17778 msgid "See also L<guestfs(3)/AVAILABILITY>."
17779 msgstr ""
17780
17781 #. type: =head2
17782 #: ../fish/guestfish-commands.pod:207
17783 msgid "time"
17784 msgstr ""
17785
17786 #. type: verbatim
17787 #: ../fish/guestfish-commands.pod:209
17788 #, no-wrap
17789 msgid ""
17790 " time command args...\n"
17791 "\n"
17792 msgstr ""
17793
17794 #. type: textblock
17795 #: ../fish/guestfish-commands.pod:211
17796 msgid ""
17797 "Run the command as usual, but print the elapsed time afterwards.  This can "
17798 "be useful for benchmarking operations."
17799 msgstr ""
17800
17801 #. type: =head2
17802 #: ../fish/guestfish-commands.pod:214
17803 msgid "unsetenv"
17804 msgstr ""
17805
17806 #. type: verbatim
17807 #: ../fish/guestfish-commands.pod:216
17808 #, no-wrap
17809 msgid ""
17810 "  unsetenv VAR\n"
17811 "\n"
17812 msgstr ""
17813
17814 #. type: textblock
17815 #: ../fish/guestfish-commands.pod:218
17816 msgid "Remove C<VAR> from the environment."
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../fish/guestfish.pod:5
17821 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17822 msgstr ""
17823
17824 #. type: verbatim
17825 #: ../fish/guestfish.pod:9
17826 #, no-wrap
17827 msgid ""
17828 " guestfish [--options] [commands]\n"
17829 "\n"
17830 msgstr ""
17831
17832 #. type: verbatim
17833 #: ../fish/guestfish.pod:11
17834 #, no-wrap
17835 msgid ""
17836 " guestfish\n"
17837 "\n"
17838 msgstr ""
17839
17840 #. type: verbatim
17841 #: ../fish/guestfish.pod:13
17842 #, no-wrap
17843 msgid ""
17844 " guestfish [--ro|--rw] -a disk.img\n"
17845 "\n"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../fish/guestfish.pod:15
17850 #, no-wrap
17851 msgid ""
17852 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17853 "\n"
17854 msgstr ""
17855
17856 #. type: verbatim
17857 #: ../fish/guestfish.pod:17
17858 #, no-wrap
17859 msgid ""
17860 " guestfish -d libvirt-domain\n"
17861 "\n"
17862 msgstr ""
17863
17864 #. type: verbatim
17865 #: ../fish/guestfish.pod:19
17866 #, no-wrap
17867 msgid ""
17868 " guestfish [--ro|--rw] -a disk.img -i\n"
17869 "\n"
17870 msgstr ""
17871
17872 #. type: verbatim
17873 #: ../fish/guestfish.pod:21
17874 #, no-wrap
17875 msgid ""
17876 " guestfish -d libvirt-domain -i\n"
17877 "\n"
17878 msgstr ""
17879
17880 #. type: textblock
17881 #: ../fish/guestfish.pod:25
17882 msgid ""
17883 "Using guestfish in read/write mode on live virtual machines can be "
17884 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17885 "option to use guestfish safely if the disk image or virtual machine might be "
17886 "live."
17887 msgstr ""
17888
17889 #. type: textblock
17890 #: ../fish/guestfish.pod:32
17891 msgid ""
17892 "Guestfish is a shell and command-line tool for examining and modifying "
17893 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17894 "functionality of the guestfs API, see L<guestfs(3)>."
17895 msgstr ""
17896
17897 #. type: textblock
17898 #: ../fish/guestfish.pod:36
17899 msgid ""
17900 "Guestfish gives you structured access to the libguestfs API, from shell "
17901 "scripts or the command line or interactively.  If you want to rescue a "
17902 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17903 "command."
17904 msgstr ""
17905
17906 #. type: =head2
17907 #: ../fish/guestfish.pod:43
17908 msgid "As an interactive shell"
17909 msgstr ""
17910
17911 #. type: verbatim
17912 #: ../fish/guestfish.pod:45
17913 #, no-wrap
17914 msgid ""
17915 " $ guestfish\n"
17916 " \n"
17917 msgstr ""
17918
17919 #. type: verbatim
17920 #: ../fish/guestfish.pod:47
17921 #, no-wrap
17922 msgid ""
17923 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17924 " editing virtual machine filesystems.\n"
17925 " \n"
17926 msgstr ""
17927
17928 #. type: verbatim
17929 #: ../fish/guestfish.pod:50
17930 #, no-wrap
17931 msgid ""
17932 " Type: 'help' for a list of commands\n"
17933 "       'man' to read the manual\n"
17934 "       'quit' to quit the shell\n"
17935 " \n"
17936 msgstr ""
17937
17938 #. type: verbatim
17939 #: ../fish/guestfish.pod:54
17940 #, no-wrap
17941 msgid ""
17942 " ><fs> add-ro disk.img\n"
17943 " ><fs> run\n"
17944 " ><fs> list-filesystems\n"
17945 " /dev/sda1: ext4\n"
17946 " /dev/vg_guest/lv_root: ext4\n"
17947 " /dev/vg_guest/lv_swap: swap\n"
17948 " ><fs> mount /dev/vg_guest/lv_root /\n"
17949 " ><fs> cat /etc/fstab\n"
17950 " # /etc/fstab\n"
17951 " # Created by anaconda\n"
17952 " [...]\n"
17953 " ><fs> exit\n"
17954 "\n"
17955 msgstr ""
17956
17957 #. type: =head2
17958 #: ../fish/guestfish.pod:67
17959 msgid "From shell scripts"
17960 msgstr ""
17961
17962 #. type: textblock
17963 #: ../fish/guestfish.pod:69
17964 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17965 msgstr ""
17966
17967 #. type: verbatim
17968 #: ../fish/guestfish.pod:71
17969 #, no-wrap
17970 msgid ""
17971 " guestfish <<_EOF_\n"
17972 " add disk.img\n"
17973 " run\n"
17974 " mount /dev/vg_guest/lv_root /\n"
17975 " write /etc/motd \"Welcome, new users\"\n"
17976 " _EOF_\n"
17977 "\n"
17978 msgstr ""
17979
17980 #. type: textblock
17981 #: ../fish/guestfish.pod:78
17982 msgid "List the LVM logical volumes in a disk image:"
17983 msgstr ""
17984
17985 #. type: verbatim
17986 #: ../fish/guestfish.pod:80
17987 #, no-wrap
17988 msgid ""
17989 " guestfish -a disk.img --ro <<_EOF_\n"
17990 " run\n"
17991 " lvs\n"
17992 " _EOF_\n"
17993 "\n"
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish.pod:85
17998 msgid "List all the filesystems in a disk image:"
17999 msgstr ""
18000
18001 #. type: verbatim
18002 #: ../fish/guestfish.pod:87
18003 #, no-wrap
18004 msgid ""
18005 " guestfish -a disk.img --ro <<_EOF_\n"
18006 " run\n"
18007 " list-filesystems\n"
18008 " _EOF_\n"
18009 "\n"
18010 msgstr ""
18011
18012 #. type: =head2
18013 #: ../fish/guestfish.pod:92
18014 msgid "On one command line"
18015 msgstr ""
18016
18017 #. type: textblock
18018 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18019 msgid "Update C</etc/resolv.conf> in a guest:"
18020 msgstr ""
18021
18022 #. type: verbatim
18023 #: ../fish/guestfish.pod:96
18024 #, no-wrap
18025 msgid ""
18026 " guestfish \\\n"
18027 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18028 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18029 "\n"
18030 msgstr ""
18031
18032 #. type: textblock
18033 #: ../fish/guestfish.pod:100
18034 msgid "Edit C</boot/grub/grub.conf> interactively:"
18035 msgstr ""
18036
18037 #. type: verbatim
18038 #: ../fish/guestfish.pod:102
18039 #, no-wrap
18040 msgid ""
18041 " guestfish --rw --add disk.img \\\n"
18042 "   --mount /dev/vg_guest/lv_root \\\n"
18043 "   --mount /dev/sda1:/boot \\\n"
18044 "   edit /boot/grub/grub.conf\n"
18045 "\n"
18046 msgstr ""
18047
18048 #. type: =head2
18049 #: ../fish/guestfish.pod:107
18050 msgid "Mount disks automatically"
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../fish/guestfish.pod:109
18055 msgid ""
18056 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18057 msgstr ""
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish.pod:112
18061 #, no-wrap
18062 msgid ""
18063 " guestfish --ro -a disk.img -i cat /etc/group\n"
18064 "\n"
18065 msgstr ""
18066
18067 #. type: verbatim
18068 #: ../fish/guestfish.pod:114
18069 #, no-wrap
18070 msgid ""
18071 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18072 "\n"
18073 msgstr ""
18074
18075 #. type: textblock
18076 #: ../fish/guestfish.pod:116
18077 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18078 msgstr ""
18079
18080 #. type: verbatim
18081 #: ../fish/guestfish.pod:118
18082 #, no-wrap
18083 msgid ""
18084 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18085 "\n"
18086 msgstr ""
18087
18088 #. type: =head2
18089 #: ../fish/guestfish.pod:120
18090 msgid "As a script interpreter"
18091 msgstr ""
18092
18093 #. type: textblock
18094 #: ../fish/guestfish.pod:122
18095 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18096 msgstr ""
18097
18098 #. type: verbatim
18099 #: ../fish/guestfish.pod:124
18100 #, no-wrap
18101 msgid ""
18102 " #!/usr/bin/guestfish -f\n"
18103 " sparse test1.img 100M\n"
18104 " run\n"
18105 " part-disk /dev/sda mbr\n"
18106 " mkfs ext2 /dev/sda1\n"
18107 "\n"
18108 msgstr ""
18109
18110 #. type: =head2
18111 #: ../fish/guestfish.pod:130
18112 msgid "Start with a prepared disk"
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish.pod:132
18117 msgid ""
18118 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18119 "single ext2-formatted partition:"
18120 msgstr ""
18121
18122 #. type: verbatim
18123 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18124 #, no-wrap
18125 msgid ""
18126 " guestfish -N fs\n"
18127 "\n"
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/guestfish.pod:137
18132 msgid "To list what is available do:"
18133 msgstr ""
18134
18135 #. type: verbatim
18136 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18137 #, no-wrap
18138 msgid ""
18139 " guestfish -N help | less\n"
18140 "\n"
18141 msgstr ""
18142
18143 #. type: =head2
18144 #: ../fish/guestfish.pod:141
18145 msgid "Remote control"
18146 msgstr ""
18147
18148 #. type: verbatim
18149 #: ../fish/guestfish.pod:143
18150 #, no-wrap
18151 msgid ""
18152 " eval \"`guestfish --listen`\"\n"
18153 " guestfish --remote add-ro disk.img\n"
18154 " guestfish --remote run\n"
18155 " guestfish --remote lvs\n"
18156 "\n"
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../fish/guestfish.pod:154
18161 msgid "Displays general help on options."
18162 msgstr ""
18163
18164 #. type: =item
18165 #: ../fish/guestfish.pod:158
18166 msgid "B<--cmd-help>"
18167 msgstr ""
18168
18169 #. type: textblock
18170 #: ../fish/guestfish.pod:160
18171 msgid "Lists all available guestfish commands."
18172 msgstr ""
18173
18174 #. type: =item
18175 #: ../fish/guestfish.pod:162
18176 msgid "B<-h cmd>"
18177 msgstr ""
18178
18179 #. type: =item
18180 #: ../fish/guestfish.pod:164
18181 msgid "B<--cmd-help cmd>"
18182 msgstr ""
18183
18184 #. type: textblock
18185 #: ../fish/guestfish.pod:166
18186 msgid "Displays detailed help on a single command C<cmd>."
18187 msgstr ""
18188
18189 #. type: =item
18190 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18191 msgid "B<-a image>"
18192 msgstr ""
18193
18194 #. type: =item
18195 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18196 msgid "B<--add image>"
18197 msgstr ""
18198
18199 #. type: textblock
18200 #: ../fish/guestfish.pod:172
18201 msgid "Add a block device or virtual machine image to the shell."
18202 msgstr ""
18203
18204 #. type: textblock
18205 #: ../fish/guestfish.pod:177
18206 msgid ""
18207 "Using this flag is mostly equivalent to using the C<add> command, with "
18208 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18209 "the I<--format=...> flag was given."
18210 msgstr ""
18211
18212 #. type: textblock
18213 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18214 msgid ""
18215 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18216 "URI to use.  The default is to use the default libvirt connection."
18217 msgstr ""
18218
18219 #. type: =item
18220 #: ../fish/guestfish.pod:189
18221 msgid "B<--csh>"
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../fish/guestfish.pod:191
18226 msgid ""
18227 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18228 "section L</REMOTE CONTROL AND CSH> below."
18229 msgstr ""
18230
18231 #. type: =item
18232 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18233 msgid "B<-d libvirt-domain>"
18234 msgstr ""
18235
18236 #. type: =item
18237 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18238 msgid "B<--domain libvirt-domain>"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18243 msgid ""
18244 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18245 "used, then any libvirt domain can be used.  However in write mode, only "
18246 "libvirt domains which are shut down can be named here."
18247 msgstr ""
18248
18249 #. type: textblock
18250 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18251 msgid "Domain UUIDs can be used instead of names."
18252 msgstr ""
18253
18254 #. type: textblock
18255 #: ../fish/guestfish.pod:204
18256 msgid ""
18257 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18258 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18259 "if the I<--format:...> flag was given."
18260 msgstr ""
18261
18262 #. type: =item
18263 #: ../fish/guestfish.pod:208
18264 msgid "B<-D>"
18265 msgstr ""
18266
18267 #. type: =item
18268 #: ../fish/guestfish.pod:210
18269 msgid "B<--no-dest-paths>"
18270 msgstr ""
18271
18272 #. type: textblock
18273 #: ../fish/guestfish.pod:212
18274 msgid ""
18275 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18276 "to hit the tab key to complete paths on the guest filesystem, but this "
18277 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18278 "allow this feature to be disabled."
18279 msgstr ""
18280
18281 #. type: textblock
18282 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18283 msgid ""
18284 "When prompting for keys and passphrases, guestfish normally turns echoing "
18285 "off so you cannot see what you are typing.  If you are not worried about "
18286 "Tempest attacks and there is no one else in the room you can specify this "
18287 "flag to see what you are typing."
18288 msgstr ""
18289
18290 #. type: =item
18291 #: ../fish/guestfish.pod:224
18292 msgid "B<-f file>"
18293 msgstr ""
18294
18295 #. type: =item
18296 #: ../fish/guestfish.pod:226
18297 msgid "B<--file file>"
18298 msgstr ""
18299
18300 #. type: textblock
18301 #: ../fish/guestfish.pod:228
18302 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18303 msgstr ""
18304
18305 #. type: verbatim
18306 #: ../fish/guestfish.pod:231
18307 #, no-wrap
18308 msgid ""
18309 " #!/usr/bin/guestfish -f\n"
18310 "\n"
18311 msgstr ""
18312
18313 #. type: verbatim
18314 #: ../fish/guestfish.pod:244
18315 #, no-wrap
18316 msgid ""
18317 " guestfish --format=raw -a disk.img\n"
18318 "\n"
18319 msgstr ""
18320
18321 #. type: verbatim
18322 #: ../fish/guestfish.pod:248
18323 #, no-wrap
18324 msgid ""
18325 " guestfish --format=raw -a disk.img --format -a another.img\n"
18326 "\n"
18327 msgstr ""
18328
18329 #. type: textblock
18330 #: ../fish/guestfish.pod:253
18331 msgid ""
18332 "If you have untrusted raw-format guest disk images, you should use this "
18333 "option to specify the disk format.  This avoids a possible security problem "
18334 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18335 msgstr ""
18336
18337 #. type: =item
18338 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18339 msgid "B<--inspector>"
18340 msgstr ""
18341
18342 #. type: textblock
18343 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18344 msgid ""
18345 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18346 "system and mount filesystems as they would be mounted on the real virtual "
18347 "machine."
18348 msgstr ""
18349
18350 #. type: textblock
18351 #: ../fish/guestfish.pod:266
18352 msgid "Typical usage is either:"
18353 msgstr ""
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish.pod:268
18357 #, no-wrap
18358 msgid ""
18359 " guestfish -d myguest -i\n"
18360 "\n"
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish.pod:270
18365 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18366 msgstr ""
18367
18368 #. type: verbatim
18369 #: ../fish/guestfish.pod:272
18370 #, no-wrap
18371 msgid ""
18372 " guestfish --ro -d myguest -i\n"
18373 "\n"
18374 msgstr ""
18375
18376 #. type: textblock
18377 #: ../fish/guestfish.pod:274
18378 msgid "(for active domains, readonly), or specify the block device directly:"
18379 msgstr ""
18380
18381 #. type: verbatim
18382 #: ../fish/guestfish.pod:276
18383 #, no-wrap
18384 msgid ""
18385 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18386 "\n"
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../fish/guestfish.pod:278
18391 msgid ""
18392 "Note that the command line syntax changed slightly over older versions of "
18393 "guestfish.  You can still use the old syntax:"
18394 msgstr ""
18395
18396 #. type: verbatim
18397 #: ../fish/guestfish.pod:281
18398 #, no-wrap
18399 msgid ""
18400 " guestfish [--ro] -i disk.img\n"
18401 "\n"
18402 msgstr ""
18403
18404 #. type: verbatim
18405 #: ../fish/guestfish.pod:283
18406 #, no-wrap
18407 msgid ""
18408 " guestfish [--ro] -i libvirt-domain\n"
18409 "\n"
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/guestfish.pod:285
18414 msgid ""
18415 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18416 "then using other commands to mount the filesystems that were found."
18417 msgstr ""
18418
18419 #. type: =item
18420 #: ../fish/guestfish.pod:294
18421 msgid "B<--listen>"
18422 msgstr ""
18423
18424 #. type: textblock
18425 #: ../fish/guestfish.pod:296
18426 msgid ""
18427 "Fork into the background and listen for remote commands.  See section L</"
18428 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18429 msgstr ""
18430
18431 #. type: =item
18432 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
18433 msgid "B<--live>"
18434 msgstr ""
18435
18436 #. type: textblock
18437 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
18438 msgid ""
18439 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18440 "ATTACHING TO RUNNING DAEMONS>)."
18441 msgstr ""
18442
18443 #. type: =item
18444 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18445 msgid "B<-m dev[:mountpoint[:options]]>"
18446 msgstr ""
18447
18448 #. type: =item
18449 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18450 msgid "B<--mount dev[:mountpoint[:options]]>"
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish.pod:308
18455 msgid "Mount the named partition or logical volume on the given mountpoint."
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish.pod:310
18460 msgid "If the mountpoint is omitted, it defaults to C</>."
18461 msgstr ""
18462
18463 #. type: textblock
18464 #: ../fish/guestfish.pod:312
18465 msgid "You have to mount something on C</> before most commands will work."
18466 msgstr ""
18467
18468 #. type: textblock
18469 #: ../fish/guestfish.pod:314
18470 msgid ""
18471 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18472 "launched."
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fish/guestfish.pod:317
18477 msgid ""
18478 "If you don't know what filesystems a disk image contains, you can either run "
18479 "guestfish without this option, then list the partitions, filesystems and LVs "
18480 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18481 "commands), or you can use the L<virt-filesystems(1)> program."
18482 msgstr ""
18483
18484 #. type: textblock
18485 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18486 msgid ""
18487 "The third (and rarely used) part of the mount parameter is the list of mount "
18488 "options used to mount the underlying filesystem.  If this is not given, then "
18489 "the mount options are either the empty string or C<ro> (the latter if the "
18490 "I<--ro> flag is used).  By specifying the mount options, you override this "
18491 "default choice.  Probably the only time you would use this is to enable ACLs "
18492 "and/or extended attributes if the filesystem can support them:"
18493 msgstr ""
18494
18495 #. type: verbatim
18496 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18497 #, no-wrap
18498 msgid ""
18499 " -m /dev/sda1:/:acl,user_xattr\n"
18500 "\n"
18501 msgstr ""
18502
18503 #. type: textblock
18504 #: ../fish/guestfish.pod:333
18505 msgid "Using this flag is equivalent to using the C<mount-options> command."
18506 msgstr ""
18507
18508 #. type: =item
18509 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
18510 #: ../resize/virt-resize.pod:414
18511 msgid "B<-n>"
18512 msgstr ""
18513
18514 #. type: =item
18515 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18516 msgid "B<--no-sync>"
18517 msgstr ""
18518
18519 #. type: textblock
18520 #: ../fish/guestfish.pod:339
18521 msgid ""
18522 "Disable autosync.  This is enabled by default.  See the discussion of "
18523 "autosync in the L<guestfs(3)> manpage."
18524 msgstr ""
18525
18526 #. type: =item
18527 #: ../fish/guestfish.pod:342
18528 msgid "B<-N type>"
18529 msgstr ""
18530
18531 #. type: =item
18532 #: ../fish/guestfish.pod:344
18533 msgid "B<--new type>"
18534 msgstr ""
18535
18536 #. type: =item
18537 #: ../fish/guestfish.pod:346
18538 msgid "B<-N help>"
18539 msgstr ""
18540
18541 #. type: textblock
18542 #: ../fish/guestfish.pod:348
18543 msgid ""
18544 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18545 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18546 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18547 "IMAGES> below."
18548 msgstr ""
18549
18550 #. type: =item
18551 #: ../fish/guestfish.pod:353
18552 msgid "B<--progress-bars>"
18553 msgstr ""
18554
18555 #. type: textblock
18556 #: ../fish/guestfish.pod:355
18557 msgid "Enable progress bars, even when guestfish is used non-interactively."
18558 msgstr ""
18559
18560 #. type: textblock
18561 #: ../fish/guestfish.pod:357
18562 msgid ""
18563 "Progress bars are enabled by default when guestfish is used as an "
18564 "interactive shell."
18565 msgstr ""
18566
18567 #. type: =item
18568 #: ../fish/guestfish.pod:360
18569 msgid "B<--no-progress-bars>"
18570 msgstr ""
18571
18572 #. type: textblock
18573 #: ../fish/guestfish.pod:362
18574 msgid "Disable progress bars."
18575 msgstr ""
18576
18577 #. type: =item
18578 #: ../fish/guestfish.pod:364
18579 msgid "B<--remote[=pid]>"
18580 msgstr ""
18581
18582 #. type: textblock
18583 #: ../fish/guestfish.pod:366
18584 msgid ""
18585 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18586 "CONTROL GUESTFISH OVER A SOCKET> below."
18587 msgstr ""
18588
18589 #. type: =item
18590 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
18591 #: ../rescue/virt-rescue.pod:161
18592 msgid "B<-r>"
18593 msgstr ""
18594
18595 #. type: =item
18596 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
18597 #: ../rescue/virt-rescue.pod:163
18598 msgid "B<--ro>"
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:373
18603 msgid ""
18604 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18605 "mounts are done read-only."
18606 msgstr ""
18607
18608 #. type: textblock
18609 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18610 msgid ""
18611 "The option must always be used if the disk image or virtual machine might be "
18612 "running, and is generally recommended in cases where you don't need write "
18613 "access to the disk."
18614 msgstr ""
18615
18616 #. type: textblock
18617 #: ../fish/guestfish.pod:380
18618 msgid ""
18619 "Note that prepared disk images created with I<-N> are not affected by this "
18620 "option.  Also commands like C<add> are not affected - you have to specify "
18621 "the C<readonly:true> option explicitly if you need it."
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish.pod:384
18626 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18627 msgstr ""
18628
18629 #. type: =item
18630 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
18631 #: ../rescue/virt-rescue.pod:173
18632 msgid "B<--selinux>"
18633 msgstr ""
18634
18635 #. type: textblock
18636 #: ../fish/guestfish.pod:388
18637 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18638 msgstr ""
18639
18640 #. type: textblock
18641 #: ../fish/guestfish.pod:394
18642 msgid ""
18643 "Enable very verbose messages.  This is particularly useful if you find a bug."
18644 msgstr ""
18645
18646 #. type: textblock
18647 #: ../fish/guestfish.pod:401
18648 msgid "Display the guestfish / libguestfs version number and exit."
18649 msgstr ""
18650
18651 #. type: =item
18652 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
18653 #: ../rescue/virt-rescue.pod:194
18654 msgid "B<-w>"
18655 msgstr ""
18656
18657 #. type: =item
18658 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
18659 #: ../rescue/virt-rescue.pod:196
18660 msgid "B<--rw>"
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18665 msgid ""
18666 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18667 "mounts are done read-write."
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:410
18672 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18673 msgstr ""
18674
18675 #. type: textblock
18676 #: ../fish/guestfish.pod:414
18677 msgid "Echo each command before executing it."
18678 msgstr ""
18679
18680 #. type: =head1
18681 #: ../fish/guestfish.pod:418
18682 msgid "COMMANDS ON COMMAND LINE"
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/guestfish.pod:420
18687 msgid ""
18688 "Any additional (non-option) arguments are treated as commands to execute."
18689 msgstr ""
18690
18691 #. type: textblock
18692 #: ../fish/guestfish.pod:423
18693 msgid ""
18694 "Commands to execute should be separated by a colon (C<:>), where the colon "
18695 "is a separate parameter.  Thus:"
18696 msgstr ""
18697
18698 #. type: verbatim
18699 #: ../fish/guestfish.pod:426
18700 #, no-wrap
18701 msgid ""
18702 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18703 "\n"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fish/guestfish.pod:428
18708 msgid ""
18709 "If there are no additional arguments, then we enter a shell, either an "
18710 "interactive shell with a prompt (if the input is a terminal) or a non-"
18711 "interactive shell."
18712 msgstr ""
18713
18714 #. type: textblock
18715 #: ../fish/guestfish.pod:432
18716 msgid ""
18717 "In either command line mode or non-interactive shell, the first command that "
18718 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18719 "prompt) if a command fails, you can continue to enter commands."
18720 msgstr ""
18721
18722 #. type: =head1
18723 #: ../fish/guestfish.pod:437
18724 msgid "USING launch (OR run)"
18725 msgstr ""
18726
18727 #. type: textblock
18728 #: ../fish/guestfish.pod:439
18729 msgid ""
18730 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18731 "then launch it, then mount any disks you need, and finally issue actions/"
18732 "commands.  So the general order of the day is:"
18733 msgstr ""
18734
18735 #. type: textblock
18736 #: ../fish/guestfish.pod:447
18737 msgid "add or -a/--add"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:451
18742 msgid "launch (aka run)"
18743 msgstr ""
18744
18745 #. type: textblock
18746 #: ../fish/guestfish.pod:455
18747 msgid "mount or -m/--mount"
18748 msgstr ""
18749
18750 #. type: textblock
18751 #: ../fish/guestfish.pod:459
18752 msgid "any other commands"
18753 msgstr ""
18754
18755 #. type: textblock
18756 #: ../fish/guestfish.pod:463
18757 msgid ""
18758 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18759 "guest before mounting or performing any other commands."
18760 msgstr ""
18761
18762 #. type: textblock
18763 #: ../fish/guestfish.pod:466
18764 msgid ""
18765 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18766 "I<--new> options were given then C<run> is done automatically, simply "
18767 "because guestfish can't perform the action you asked for without doing this."
18768 msgstr ""
18769
18770 #. type: =head1
18771 #: ../fish/guestfish.pod:471
18772 msgid "OPENING DISKS FOR READ AND WRITE"
18773 msgstr ""
18774
18775 #. type: textblock
18776 #: ../fish/guestfish.pod:473
18777 msgid ""
18778 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18779 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18780 "I<-i> and I<-m> open disk images read-only or for writing."
18781 msgstr ""
18782
18783 #. type: textblock
18784 #: ../fish/guestfish.pod:478
18785 msgid ""
18786 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18787 "opening disk images supplied on the command line for write.  To open a disk "
18788 "image read-only you have to do I<-a image --ro>."
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fish/guestfish.pod:482
18793 msgid ""
18794 "This matters: If you accidentally open a live VM disk image writable then "
18795 "you will cause irreversible disk corruption."
18796 msgstr ""
18797
18798 #. type: textblock
18799 #: ../fish/guestfish.pod:485
18800 msgid ""
18801 "In a future libguestfs we intend to change the default the other way.  Disk "
18802 "images will be opened read-only.  You will have to either specify "
18803 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18804 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18805 "access for disk images specified by those other command line options."
18806 msgstr ""
18807
18808 #. type: textblock
18809 #: ../fish/guestfish.pod:492
18810 msgid ""
18811 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18812 "which does nothing (it is already the default).  However it is highly "
18813 "recommended that you use this option to indicate that you need write access, "
18814 "and prepare your scripts for the day when this option will be required for "
18815 "write access."
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:498
18820 msgid ""
18821 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18822 "other libguestfs program apart from guestfish and guestmount."
18823 msgstr ""
18824
18825 #. type: =head1
18826 #: ../fish/guestfish.pod:501
18827 msgid "QUOTING"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fish/guestfish.pod:503
18832 msgid ""
18833 "You can quote ordinary parameters using either single or double quotes.  For "
18834 "example:"
18835 msgstr ""
18836
18837 #. type: verbatim
18838 #: ../fish/guestfish.pod:506
18839 #, no-wrap
18840 msgid ""
18841 " add \"file with a space.img\"\n"
18842 "\n"
18843 msgstr ""
18844
18845 #. type: verbatim
18846 #: ../fish/guestfish.pod:508
18847 #, no-wrap
18848 msgid ""
18849 " rm '/file name'\n"
18850 "\n"
18851 msgstr ""
18852
18853 #. type: verbatim
18854 #: ../fish/guestfish.pod:510
18855 #, no-wrap
18856 msgid ""
18857 " rm '/\"'\n"
18858 "\n"
18859 msgstr ""
18860
18861 #. type: textblock
18862 #: ../fish/guestfish.pod:512
18863 msgid ""
18864 "A few commands require a list of strings to be passed.  For these, use a "
18865 "whitespace-separated list, enclosed in quotes.  Strings containing "
18866 "whitespace to be passed through must be enclosed in single quotes.  A "
18867 "literal single quote must be escaped with a backslash."
18868 msgstr ""
18869
18870 #. type: verbatim
18871 #: ../fish/guestfish.pod:517
18872 #, no-wrap
18873 msgid ""
18874 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18875 " command \"/bin/echo 'foo      bar'\"\n"
18876 " command \"/bin/echo \\'foo\\'\"\n"
18877 "\n"
18878 msgstr ""
18879
18880 #. type: =head2
18881 #: ../fish/guestfish.pod:521
18882 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish.pod:523
18887 msgid ""
18888 "In double-quoted arguments (only) use backslash to insert special characters:"
18889 msgstr ""
18890
18891 #. type: =item
18892 #: ../fish/guestfish.pod:528
18893 msgid "C<\\a>"
18894 msgstr ""
18895
18896 #. type: textblock
18897 #: ../fish/guestfish.pod:530
18898 msgid "Alert (bell) character."
18899 msgstr ""
18900
18901 #. type: =item
18902 #: ../fish/guestfish.pod:532
18903 msgid "C<\\b>"
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fish/guestfish.pod:534
18908 msgid "Backspace character."
18909 msgstr ""
18910
18911 #. type: =item
18912 #: ../fish/guestfish.pod:536
18913 msgid "C<\\f>"
18914 msgstr ""
18915
18916 #. type: textblock
18917 #: ../fish/guestfish.pod:538
18918 msgid "Form feed character."
18919 msgstr ""
18920
18921 #. type: =item
18922 #: ../fish/guestfish.pod:540
18923 msgid "C<\\n>"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:542
18928 msgid "Newline character."
18929 msgstr ""
18930
18931 #. type: =item
18932 #: ../fish/guestfish.pod:544
18933 msgid "C<\\r>"
18934 msgstr ""
18935
18936 #. type: textblock
18937 #: ../fish/guestfish.pod:546
18938 msgid "Carriage return character."
18939 msgstr ""
18940
18941 #. type: =item
18942 #: ../fish/guestfish.pod:548
18943 msgid "C<\\t>"
18944 msgstr ""
18945
18946 #. type: textblock
18947 #: ../fish/guestfish.pod:550
18948 msgid "Horizontal tab character."
18949 msgstr ""
18950
18951 #. type: =item
18952 #: ../fish/guestfish.pod:552
18953 msgid "C<\\v>"
18954 msgstr ""
18955
18956 #. type: textblock
18957 #: ../fish/guestfish.pod:554
18958 msgid "Vertical tab character."
18959 msgstr ""
18960
18961 #. type: =item
18962 #: ../fish/guestfish.pod:556
18963 msgid "C<\\\">"
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../fish/guestfish.pod:558
18968 msgid "A literal double quote character."
18969 msgstr ""
18970
18971 #. type: =item
18972 #: ../fish/guestfish.pod:560
18973 msgid "C<\\ooo>"
18974 msgstr ""
18975
18976 #. type: textblock
18977 #: ../fish/guestfish.pod:562
18978 msgid ""
18979 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18980 "(unlike C)."
18981 msgstr ""
18982
18983 #. type: =item
18984 #: ../fish/guestfish.pod:565
18985 msgid "C<\\xhh>"
18986 msgstr ""
18987
18988 #. type: textblock
18989 #: ../fish/guestfish.pod:567
18990 msgid ""
18991 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:570
18996 msgid ""
18997 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18998 "strings."
18999 msgstr ""
19000
19001 #. type: =item
19002 #: ../fish/guestfish.pod:573
19003 msgid "C<\\\\>"
19004 msgstr ""
19005
19006 #. type: textblock
19007 #: ../fish/guestfish.pod:575
19008 msgid "A literal backslash character."
19009 msgstr ""
19010
19011 #. type: =head1
19012 #: ../fish/guestfish.pod:579
19013 msgid "OPTIONAL ARGUMENTS"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../fish/guestfish.pod:581
19018 msgid ""
19019 "Some commands take optional arguments.  These arguments appear in this "
19020 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19021 msgstr ""
19022
19023 #. type: verbatim
19024 #: ../fish/guestfish.pod:585
19025 #, no-wrap
19026 msgid ""
19027 " add-drive-opts filename\n"
19028 "\n"
19029 msgstr ""
19030
19031 #. type: verbatim
19032 #: ../fish/guestfish.pod:587
19033 #, no-wrap
19034 msgid ""
19035 " add-drive-opts filename readonly:true\n"
19036 "\n"
19037 msgstr ""
19038
19039 #. type: verbatim
19040 #: ../fish/guestfish.pod:589
19041 #, no-wrap
19042 msgid ""
19043 " add-drive-opts filename format:qcow2 readonly:false\n"
19044 "\n"
19045 msgstr ""
19046
19047 #. type: textblock
19048 #: ../fish/guestfish.pod:591
19049 msgid ""
19050 "Each optional argument can appear at most once.  All optional arguments must "
19051 "appear after the required ones."
19052 msgstr ""
19053
19054 #. type: =head1
19055 #: ../fish/guestfish.pod:594
19056 msgid "NUMBERS"
19057 msgstr ""
19058
19059 #. type: textblock
19060 #: ../fish/guestfish.pod:596
19061 msgid ""
19062 "This section applies to all commands which can take integers as parameters."
19063 msgstr ""
19064
19065 #. type: =head2
19066 #: ../fish/guestfish.pod:599
19067 msgid "SIZE SUFFIX"
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fish/guestfish.pod:601
19072 msgid ""
19073 "When the command takes a parameter measured in bytes, you can use one of the "
19074 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19075 msgstr ""
19076
19077 #. type: =item
19078 #: ../fish/guestfish.pod:607
19079 msgid "B<k> or B<K> or B<KiB>"
19080 msgstr ""
19081
19082 #. type: textblock
19083 #: ../fish/guestfish.pod:609
19084 msgid "The size in kilobytes (multiplied by 1024)."
19085 msgstr ""
19086
19087 #. type: =item
19088 #: ../fish/guestfish.pod:611
19089 msgid "B<KB>"
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:613
19094 msgid "The size in SI 1000 byte units."
19095 msgstr ""
19096
19097 #. type: =item
19098 #: ../fish/guestfish.pod:615
19099 msgid "B<M> or B<MiB>"
19100 msgstr ""
19101
19102 #. type: textblock
19103 #: ../fish/guestfish.pod:617
19104 msgid "The size in megabytes (multiplied by 1048576)."
19105 msgstr ""
19106
19107 #. type: =item
19108 #: ../fish/guestfish.pod:619
19109 msgid "B<MB>"
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fish/guestfish.pod:621
19114 msgid "The size in SI 1000000 byte units."
19115 msgstr ""
19116
19117 #. type: =item
19118 #: ../fish/guestfish.pod:623
19119 msgid "B<G> or B<GiB>"
19120 msgstr ""
19121
19122 #. type: textblock
19123 #: ../fish/guestfish.pod:625
19124 msgid "The size in gigabytes (multiplied by 2**30)."
19125 msgstr ""
19126
19127 #. type: =item
19128 #: ../fish/guestfish.pod:627
19129 msgid "B<GB>"
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fish/guestfish.pod:629
19134 msgid "The size in SI 10**9 byte units."
19135 msgstr ""
19136
19137 #. type: =item
19138 #: ../fish/guestfish.pod:631
19139 msgid "B<T> or B<TiB>"
19140 msgstr ""
19141
19142 #. type: textblock
19143 #: ../fish/guestfish.pod:633
19144 msgid "The size in terabytes (multiplied by 2**40)."
19145 msgstr ""
19146
19147 #. type: =item
19148 #: ../fish/guestfish.pod:635
19149 msgid "B<TB>"
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:637
19154 msgid "The size in SI 10**12 byte units."
19155 msgstr ""
19156
19157 #. type: =item
19158 #: ../fish/guestfish.pod:639
19159 msgid "B<P> or B<PiB>"
19160 msgstr ""
19161
19162 #. type: textblock
19163 #: ../fish/guestfish.pod:641
19164 msgid "The size in petabytes (multiplied by 2**50)."
19165 msgstr ""
19166
19167 #. type: =item
19168 #: ../fish/guestfish.pod:643
19169 msgid "B<PB>"
19170 msgstr ""
19171
19172 #. type: textblock
19173 #: ../fish/guestfish.pod:645
19174 msgid "The size in SI 10**15 byte units."
19175 msgstr ""
19176
19177 #. type: =item
19178 #: ../fish/guestfish.pod:647
19179 msgid "B<E> or B<EiB>"
19180 msgstr ""
19181
19182 #. type: textblock
19183 #: ../fish/guestfish.pod:649
19184 msgid "The size in exabytes (multiplied by 2**60)."
19185 msgstr ""
19186
19187 #. type: =item
19188 #: ../fish/guestfish.pod:651
19189 msgid "B<EB>"
19190 msgstr ""
19191
19192 #. type: textblock
19193 #: ../fish/guestfish.pod:653
19194 msgid "The size in SI 10**18 byte units."
19195 msgstr ""
19196
19197 #. type: =item
19198 #: ../fish/guestfish.pod:655
19199 msgid "B<Z> or B<ZiB>"
19200 msgstr ""
19201
19202 #. type: textblock
19203 #: ../fish/guestfish.pod:657
19204 msgid "The size in zettabytes (multiplied by 2**70)."
19205 msgstr ""
19206
19207 #. type: =item
19208 #: ../fish/guestfish.pod:659
19209 msgid "B<ZB>"
19210 msgstr ""
19211
19212 #. type: textblock
19213 #: ../fish/guestfish.pod:661
19214 msgid "The size in SI 10**21 byte units."
19215 msgstr ""
19216
19217 #. type: =item
19218 #: ../fish/guestfish.pod:663
19219 msgid "B<Y> or B<YiB>"
19220 msgstr ""
19221
19222 #. type: textblock
19223 #: ../fish/guestfish.pod:665
19224 msgid "The size in yottabytes (multiplied by 2**80)."
19225 msgstr ""
19226
19227 #. type: =item
19228 #: ../fish/guestfish.pod:667
19229 msgid "B<YB>"
19230 msgstr ""
19231
19232 #. type: textblock
19233 #: ../fish/guestfish.pod:669
19234 msgid "The size in SI 10**24 byte units."
19235 msgstr ""
19236
19237 #. type: verbatim
19238 #: ../fish/guestfish.pod:675
19239 #, no-wrap
19240 msgid ""
19241 " truncate-size /file 1G\n"
19242 "\n"
19243 msgstr ""
19244
19245 #. type: textblock
19246 #: ../fish/guestfish.pod:677
19247 msgid "would truncate the file to 1 gigabyte."
19248 msgstr ""
19249
19250 #. type: textblock
19251 #: ../fish/guestfish.pod:679
19252 msgid ""
19253 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19254 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19255 "suffix will probably not do what you expect."
19256 msgstr ""
19257
19258 #. type: =head2
19259 #: ../fish/guestfish.pod:683
19260 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19261 msgstr ""
19262
19263 #. type: textblock
19264 #: ../fish/guestfish.pod:685
19265 msgid ""
19266 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19267 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19268 msgstr ""
19269
19270 #. type: verbatim
19271 #: ../fish/guestfish.pod:688
19272 #, no-wrap
19273 msgid ""
19274 " 1234      decimal number 1234\n"
19275 " 02322     octal number, equivalent to decimal 1234\n"
19276 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19277 "\n"
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:692
19282 msgid ""
19283 "When using the C<chmod> command, you almost always want to specify an octal "
19284 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19285 "L<chmod(1)> program):"
19286 msgstr ""
19287
19288 #. type: verbatim
19289 #: ../fish/guestfish.pod:696
19290 #, no-wrap
19291 msgid ""
19292 " chmod 0777 /public  # OK\n"
19293 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19294 "\n"
19295 msgstr ""
19296
19297 #. type: textblock
19298 #: ../fish/guestfish.pod:699
19299 msgid ""
19300 "Commands that return numbers usually print them in decimal, but some "
19301 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19302 "octal, preceeded by C<0>)."
19303 msgstr ""
19304
19305 #. type: =head1
19306 #: ../fish/guestfish.pod:703
19307 msgid "WILDCARDS AND GLOBBING"
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:705
19312 msgid ""
19313 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19314 "(globbing) by default.  So for example the following will not do what you "
19315 "expect:"
19316 msgstr ""
19317
19318 #. type: verbatim
19319 #: ../fish/guestfish.pod:709
19320 #, no-wrap
19321 msgid ""
19322 " rm-rf /home/*\n"
19323 "\n"
19324 msgstr ""
19325
19326 #. type: textblock
19327 #: ../fish/guestfish.pod:711
19328 msgid ""
19329 "Assuming you don't have a directory called literally C</home/*> then the "
19330 "above command will return an error."
19331 msgstr ""
19332
19333 #. type: textblock
19334 #: ../fish/guestfish.pod:714
19335 msgid "To perform wildcard expansion, use the C<glob> command."
19336 msgstr ""
19337
19338 #. type: verbatim
19339 #: ../fish/guestfish.pod:716
19340 #, no-wrap
19341 msgid ""
19342 " glob rm-rf /home/*\n"
19343 "\n"
19344 msgstr ""
19345
19346 #. type: textblock
19347 #: ../fish/guestfish.pod:718
19348 msgid ""
19349 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19350 "many times), equivalent to:"
19351 msgstr ""
19352
19353 #. type: verbatim
19354 #: ../fish/guestfish.pod:721
19355 #, no-wrap
19356 msgid ""
19357 " rm-rf /home/jim\n"
19358 " rm-rf /home/joe\n"
19359 " rm-rf /home/mary\n"
19360 "\n"
19361 msgstr ""
19362
19363 #. type: textblock
19364 #: ../fish/guestfish.pod:725
19365 msgid "C<glob> only works on simple guest paths and not on device names."
19366 msgstr ""
19367
19368 #. type: textblock
19369 #: ../fish/guestfish.pod:727
19370 msgid ""
19371 "If you have several parameters, each containing a wildcard, then glob will "
19372 "perform a Cartesian product."
19373 msgstr ""
19374
19375 #. type: =head1
19376 #: ../fish/guestfish.pod:730
19377 msgid "COMMENTS"
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fish/guestfish.pod:732
19382 msgid ""
19383 "Any line which starts with a I<#> character is treated as a comment and "
19384 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19385 "a command.  For example:"
19386 msgstr ""
19387
19388 #. type: verbatim
19389 #: ../fish/guestfish.pod:736
19390 #, no-wrap
19391 msgid ""
19392 " # this is a comment\n"
19393 "         # this is a comment\n"
19394 " foo # NOT a comment\n"
19395 "\n"
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fish/guestfish.pod:740
19400 msgid "Blank lines are also ignored."
19401 msgstr ""
19402
19403 #. type: =head1
19404 #: ../fish/guestfish.pod:742
19405 msgid "RUNNING COMMANDS LOCALLY"
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../fish/guestfish.pod:744
19410 msgid ""
19411 "Any line which starts with a I<!> character is treated as a command sent to "
19412 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19413 msgstr ""
19414
19415 #. type: verbatim
19416 #: ../fish/guestfish.pod:748
19417 #, no-wrap
19418 msgid ""
19419 " !mkdir local\n"
19420 " tgz-out /remote local/remote-data.tar.gz\n"
19421 "\n"
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:751
19426 msgid ""
19427 "will create a directory C<local> on the host, and then export the contents "
19428 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19429 "(See C<tgz-out>)."
19430 msgstr ""
19431
19432 #. type: textblock
19433 #: ../fish/guestfish.pod:755
19434 msgid ""
19435 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19436 "effect, due to the way that subprocesses work in Unix."
19437 msgstr ""
19438
19439 #. type: =head2
19440 #: ../fish/guestfish.pod:758
19441 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19442 msgstr ""
19443
19444 #. type: textblock
19445 #: ../fish/guestfish.pod:760
19446 msgid ""
19447 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19448 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19449 "and executed as guestfish commands."
19450 msgstr ""
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:764
19454 msgid ""
19455 "Thus you can use shell script to construct arbitrary guestfish commands "
19456 "which are then parsed by guestfish."
19457 msgstr ""
19458
19459 #. type: textblock
19460 #: ../fish/guestfish.pod:767
19461 msgid ""
19462 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19463 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19464 "if we use a shell script to create the guestfish commands for us:"
19465 msgstr ""
19466
19467 #. type: verbatim
19468 #: ../fish/guestfish.pod:772
19469 #, no-wrap
19470 msgid ""
19471 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19472 "\n"
19473 msgstr ""
19474
19475 #. type: textblock
19476 #: ../fish/guestfish.pod:774
19477 msgid "or with names like C</foo.001>:"
19478 msgstr ""
19479
19480 #. type: verbatim
19481 #: ../fish/guestfish.pod:776
19482 #, no-wrap
19483 msgid ""
19484 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19485 "\n"
19486 msgstr ""
19487
19488 #. type: textblock
19489 #: ../fish/guestfish.pod:778
19490 msgid ""
19491 "When using guestfish interactively it can be helpful to just run the shell "
19492 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19493 "ordinary I<!> local command), see what guestfish commands it would run, and "
19494 "when you are happy with those prepend the C<E<lt>> character to run the "
19495 "guestfish commands for real."
19496 msgstr ""
19497
19498 #. type: =head1
19499 #: ../fish/guestfish.pod:784
19500 msgid "PIPES"
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:786
19505 msgid ""
19506 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19507 "command (a guestfish command) to the second command (any host command).  For "
19508 "example:"
19509 msgstr ""
19510
19511 #. type: verbatim
19512 #: ../fish/guestfish.pod:790
19513 #, no-wrap
19514 msgid ""
19515 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19516 "\n"
19517 msgstr ""
19518
19519 #. type: textblock
19520 #: ../fish/guestfish.pod:792
19521 msgid ""
19522 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19523 "program).  The above command would list all accounts in the guest filesystem "
19524 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19525 msgstr ""
19526
19527 #. type: verbatim
19528 #: ../fish/guestfish.pod:797
19529 #, no-wrap
19530 msgid ""
19531 " hexdump /bin/ls | head\n"
19532 " list-devices | tail -1\n"
19533 " tgz-out / - | tar ztf -\n"
19534 "\n"
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:801
19539 msgid ""
19540 "The space before the pipe symbol is required, any space after the pipe "
19541 "symbol is optional.  Everything after the pipe symbol is just passed "
19542 "straight to the host shell, so it can contain redirections, globs and "
19543 "anything else that makes sense on the host side."
19544 msgstr ""
19545
19546 #. type: textblock
19547 #: ../fish/guestfish.pod:806
19548 msgid ""
19549 "To use a literal argument which begins with a pipe symbol, you have to quote "
19550 "it, eg:"
19551 msgstr ""
19552
19553 #. type: verbatim
19554 #: ../fish/guestfish.pod:809
19555 #, no-wrap
19556 msgid ""
19557 " echo \"|\"\n"
19558 "\n"
19559 msgstr ""
19560
19561 #. type: =head1
19562 #: ../fish/guestfish.pod:811
19563 msgid "HOME DIRECTORIES"
19564 msgstr ""
19565
19566 #. type: textblock
19567 #: ../fish/guestfish.pod:813
19568 msgid ""
19569 "If a parameter starts with the character C<~> then the tilde may be expanded "
19570 "as a home directory path (either C<~> for the current user's home directory, "
19571 "or C<~user> for another user)."
19572 msgstr ""
19573
19574 #. type: textblock
19575 #: ../fish/guestfish.pod:817
19576 msgid ""
19577 "Note that home directory expansion happens for users known I<on the host>, "
19578 "not in the guest filesystem."
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:820
19583 msgid ""
19584 "To use a literal argument which begins with a tilde, you have to quote it, "
19585 "eg:"
19586 msgstr ""
19587
19588 #. type: verbatim
19589 #: ../fish/guestfish.pod:823
19590 #, no-wrap
19591 msgid ""
19592 " echo \"~\"\n"
19593 "\n"
19594 msgstr ""
19595
19596 #. type: =head2
19597 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19598 msgid "ENCRYPTED DISKS"
19599 msgstr ""
19600
19601 #. type: textblock
19602 #: ../fish/guestfish.pod:827
19603 msgid ""
19604 "Libguestfs has some support for Linux guests encrypted according to the "
19605 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19606 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19607 "LUKS is supported."
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../fish/guestfish.pod:832
19612 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19613 msgstr ""
19614
19615 #. type: verbatim
19616 #: ../fish/guestfish.pod:834
19617 #, no-wrap
19618 msgid ""
19619 " ><fs> vfs-type /dev/sda2\n"
19620 " crypto_LUKS\n"
19621 "\n"
19622 msgstr ""
19623
19624 #. type: textblock
19625 #: ../fish/guestfish.pod:837
19626 msgid ""
19627 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19628 "device called C</dev/mapper/luksdev>."
19629 msgstr ""
19630
19631 #. type: verbatim
19632 #: ../fish/guestfish.pod:840
19633 #, no-wrap
19634 msgid ""
19635 " ><fs> luks-open /dev/sda2 luksdev\n"
19636 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19637 "\n"
19638 msgstr ""
19639
19640 #. type: textblock
19641 #: ../fish/guestfish.pod:843
19642 msgid ""
19643 "Finally you have to tell LVM to scan for volume groups on the newly created "
19644 "mapper device:"
19645 msgstr ""
19646
19647 #. type: verbatim
19648 #: ../fish/guestfish.pod:846
19649 #, no-wrap
19650 msgid ""
19651 " vgscan\n"
19652 " vg-activate-all true\n"
19653 "\n"
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../fish/guestfish.pod:849
19658 msgid "The logical volume(s) can now be mounted in the usual way."
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/guestfish.pod:851
19663 msgid ""
19664 "Before closing a LUKS device you must unmount any logical volumes on it and "
19665 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19666 "one.  Then you can close the mapper device:"
19667 msgstr ""
19668
19669 #. type: verbatim
19670 #: ../fish/guestfish.pod:855
19671 #, no-wrap
19672 msgid ""
19673 " vg-activate false /dev/VG\n"
19674 " luks-close /dev/mapper/luksdev\n"
19675 "\n"
19676 msgstr ""
19677
19678 #. type: textblock
19679 #: ../fish/guestfish.pod:860
19680 msgid ""
19681 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19682 "letters and paths (with some limitations).  The following commands are "
19683 "equivalent:"
19684 msgstr ""
19685
19686 #. type: verbatim
19687 #: ../fish/guestfish.pod:864
19688 #, no-wrap
19689 msgid ""
19690 " file /WINDOWS/system32/config/system.LOG\n"
19691 "\n"
19692 msgstr ""
19693
19694 #. type: verbatim
19695 #: ../fish/guestfish.pod:866
19696 #, no-wrap
19697 msgid ""
19698 " file win:\\windows\\system32\\config\\system.log\n"
19699 "\n"
19700 msgstr ""
19701
19702 #. type: verbatim
19703 #: ../fish/guestfish.pod:868
19704 #, no-wrap
19705 msgid ""
19706 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19707 "\n"
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../fish/guestfish.pod:870
19712 msgid ""
19713 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19714 "where the drive is mounted, prepending that to the path, changing all "
19715 "backslash characters to forward slash, then resolving the result using L</"
19716 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19717 "the parameter might be rewritten like this:"
19718 msgstr ""
19719
19720 #. type: verbatim
19721 #: ../fish/guestfish.pod:876
19722 #, no-wrap
19723 msgid ""
19724 " win:e:\\foo\\bar => /e/FOO/bar\n"
19725 "\n"
19726 msgstr ""
19727
19728 #. type: textblock
19729 #: ../fish/guestfish.pod:878
19730 msgid "This only works in argument positions that expect a path."
19731 msgstr ""
19732
19733 #. type: =head1
19734 #: ../fish/guestfish.pod:880
19735 msgid "UPLOADING AND DOWNLOADING FILES"
19736 msgstr ""
19737
19738 #. type: textblock
19739 #: ../fish/guestfish.pod:882
19740 msgid ""
19741 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19742 "others which upload from or download to a local file, you can use the "
19743 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19744 msgstr ""
19745
19746 #. type: verbatim
19747 #: ../fish/guestfish.pod:886
19748 #, no-wrap
19749 msgid ""
19750 " upload - /foo\n"
19751 "\n"
19752 msgstr ""
19753
19754 #. type: textblock
19755 #: ../fish/guestfish.pod:888
19756 msgid ""
19757 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19758 msgstr ""
19759
19760 #. type: verbatim
19761 #: ../fish/guestfish.pod:891
19762 #, no-wrap
19763 msgid ""
19764 " tar-out /etc - | tar tf -\n"
19765 "\n"
19766 msgstr ""
19767
19768 #. type: textblock
19769 #: ../fish/guestfish.pod:893
19770 msgid ""
19771 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19772 "command (see L</PIPES>)."
19773 msgstr ""
19774
19775 #. type: textblock
19776 #: ../fish/guestfish.pod:896
19777 msgid ""
19778 "When using C<-> to read from stdin, the input is read up to the end of "
19779 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19780 "some arbitrary end marker:"
19781 msgstr ""
19782
19783 #. type: verbatim
19784 #: ../fish/guestfish.pod:900
19785 #, no-wrap
19786 msgid ""
19787 " upload -<<END /foo\n"
19788 " input line 1\n"
19789 " input line 2\n"
19790 " input line 3\n"
19791 " END\n"
19792 "\n"
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:906
19797 msgid ""
19798 "Any string of characters can be used instead of C<END>.  The end marker must "
19799 "appear on a line of its own, without any preceeding or following characters "
19800 "(not even spaces)."
19801 msgstr ""
19802
19803 #. type: textblock
19804 #: ../fish/guestfish.pod:910
19805 msgid ""
19806 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19807 "upload local files (so-called \"FileIn\" parameters in the generator)."
19808 msgstr ""
19809
19810 #. type: =head1
19811 #: ../fish/guestfish.pod:913
19812 msgid "EXIT ON ERROR BEHAVIOUR"
19813 msgstr ""
19814
19815 #. type: textblock
19816 #: ../fish/guestfish.pod:915
19817 msgid ""
19818 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19819 "taking commands from a human over a tty), and will exit on the first error "
19820 "in non-interactive mode (scripts, commands given on the command line)."
19821 msgstr ""
19822
19823 #. type: textblock
19824 #: ../fish/guestfish.pod:920
19825 msgid ""
19826 "If you prefix a command with a I<-> character, then that command will not "
19827 "cause guestfish to exit, even if that (one) command returns an error."
19828 msgstr ""
19829
19830 #. type: =head1
19831 #: ../fish/guestfish.pod:924
19832 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19833 msgstr ""
19834
19835 #. type: textblock
19836 #: ../fish/guestfish.pod:926
19837 msgid ""
19838 "Guestfish can be remote-controlled over a socket.  This is useful "
19839 "particularly in shell scripts where you want to make several different "
19840 "changes to a filesystem, but you don't want the overhead of starting up a "
19841 "guestfish process each time."
19842 msgstr ""
19843
19844 #. type: textblock
19845 #: ../fish/guestfish.pod:931
19846 msgid "Start a guestfish server process using:"
19847 msgstr ""
19848
19849 #. type: verbatim
19850 #: ../fish/guestfish.pod:933
19851 #, no-wrap
19852 msgid ""
19853 " eval \"`guestfish --listen`\"\n"
19854 "\n"
19855 msgstr ""
19856
19857 #. type: textblock
19858 #: ../fish/guestfish.pod:935
19859 msgid "and then send it commands by doing:"
19860 msgstr ""
19861
19862 #. type: verbatim
19863 #: ../fish/guestfish.pod:937
19864 #, no-wrap
19865 msgid ""
19866 " guestfish --remote cmd [...]\n"
19867 "\n"
19868 msgstr ""
19869
19870 #. type: textblock
19871 #: ../fish/guestfish.pod:939
19872 msgid "To cause the server to exit, send it the exit command:"
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../fish/guestfish.pod:943
19877 msgid ""
19878 "Note that the server will normally exit if there is an error in a command.  "
19879 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19880 "BEHAVIOUR>."
19881 msgstr ""
19882
19883 #. type: =head2
19884 #: ../fish/guestfish.pod:947
19885 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19886 msgstr ""
19887
19888 #. type: textblock
19889 #: ../fish/guestfish.pod:949
19890 msgid ""
19891 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19892 "is how the I<--remote> option knows where to send the commands.  You can "
19893 "have several guestfish listener processes running using:"
19894 msgstr ""
19895
19896 #. type: verbatim
19897 #: ../fish/guestfish.pod:953
19898 #, no-wrap
19899 msgid ""
19900 " eval \"`guestfish --listen`\"\n"
19901 " pid1=$GUESTFISH_PID\n"
19902 " eval \"`guestfish --listen`\"\n"
19903 " pid2=$GUESTFISH_PID\n"
19904 " ...\n"
19905 " guestfish --remote=$pid1 cmd\n"
19906 " guestfish --remote=$pid2 cmd\n"
19907 "\n"
19908 msgstr ""
19909
19910 #. type: =head2
19911 #: ../fish/guestfish.pod:961
19912 msgid "REMOTE CONTROL AND CSH"
19913 msgstr ""
19914
19915 #. type: textblock
19916 #: ../fish/guestfish.pod:963
19917 msgid ""
19918 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19919 "option:"
19920 msgstr ""
19921
19922 #. type: verbatim
19923 #: ../fish/guestfish.pod:966
19924 #, no-wrap
19925 msgid ""
19926 " eval \"`guestfish --listen --csh`\"\n"
19927 "\n"
19928 msgstr ""
19929
19930 #. type: =head2
19931 #: ../fish/guestfish.pod:968
19932 msgid "REMOTE CONTROL DETAILS"
19933 msgstr ""
19934
19935 #. type: textblock
19936 #: ../fish/guestfish.pod:970
19937 msgid ""
19938 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19939 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19940 "and C<$PID> is the process ID of the server."
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/guestfish.pod:974
19945 msgid "Guestfish client and server versions must match exactly."
19946 msgstr ""
19947
19948 #. type: =head2
19949 #: ../fish/guestfish.pod:976
19950 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19951 msgstr ""
19952
19953 #. type: textblock
19954 #: ../fish/guestfish.pod:978
19955 msgid ""
19956 "From Bash, you can use the following code which creates a guestfish "
19957 "instance, correctly quotes the command line, handles failure to start, and "
19958 "cleans up guestfish when the script exits:"
19959 msgstr ""
19960
19961 #. type: verbatim
19962 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
19963 #, no-wrap
19964 msgid ""
19965 " #!/bin/bash -\n"
19966 " \n"
19967 msgstr ""
19968
19969 #. type: verbatim
19970 #: ../fish/guestfish.pod:986
19971 #, no-wrap
19972 msgid ""
19973 " guestfish[0]=\"guestfish\"\n"
19974 " guestfish[1]=\"--listen\"\n"
19975 " guestfish[2]=\"--ro\"\n"
19976 " guestfish[3]=\"-a\"\n"
19977 " guestfish[4]=\"disk.img\"\n"
19978 " \n"
19979 msgstr ""
19980
19981 #. type: verbatim
19982 #: ../fish/guestfish.pod:992
19983 #, no-wrap
19984 msgid ""
19985 " GUESTFISH_PID=\n"
19986 " eval $(\"${guestfish[@]}\")\n"
19987 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19988 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19989 "     exit 1\n"
19990 " fi\n"
19991 " \n"
19992 msgstr ""
19993
19994 #. type: verbatim
19995 #: ../fish/guestfish.pod:999
19996 #, no-wrap
19997 msgid ""
19998 " cleanup_guestfish ()\n"
19999 " {\n"
20000 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20001 " }\n"
20002 " trap cleanup_guestfish EXIT ERR\n"
20003 " \n"
20004 msgstr ""
20005
20006 #. type: verbatim
20007 #: ../fish/guestfish.pod:1005
20008 #, no-wrap
20009 msgid ""
20010 " guestfish --remote -- run\n"
20011 " \n"
20012 msgstr ""
20013
20014 #. type: verbatim
20015 #: ../fish/guestfish.pod:1007
20016 #, no-wrap
20017 msgid ""
20018 " # ...\n"
20019 "\n"
20020 msgstr ""
20021
20022 #. type: =head2
20023 #: ../fish/guestfish.pod:1009
20024 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../fish/guestfish.pod:1011
20029 msgid ""
20030 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20031 "context hangs, ie. don't do (note the backquotes):"
20032 msgstr ""
20033
20034 #. type: verbatim
20035 #: ../fish/guestfish.pod:1014
20036 #, no-wrap
20037 msgid ""
20038 " a=`guestfish --remote run`\n"
20039 "\n"
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../fish/guestfish.pod:1016
20044 msgid ""
20045 "Since the C<run> command produces no output on stdout, this is not useful "
20046 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20047 "cgi?id=592910>."
20048 msgstr ""
20049
20050 #. type: =head1
20051 #: ../fish/guestfish.pod:1020
20052 msgid "PREPARED DISK IMAGES"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fish/guestfish.pod:1022
20057 msgid ""
20058 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20059 "preformatted disk images that guestfish can make for you to save typing.  "
20060 "This is particularly useful for testing purposes.  This option is used "
20061 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20062 "can be mixed with I<-a>)."
20063 msgstr ""
20064
20065 #. type: textblock
20066 #: ../fish/guestfish.pod:1028
20067 msgid ""
20068 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20069 "the second and so on.  Existing files in the current directory are "
20070 "I<overwritten>."
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../fish/guestfish.pod:1032
20075 msgid ""
20076 "The type briefly describes how the disk should be sized, partitioned, how "
20077 "filesystem(s) should be created, and how content should be added.  "
20078 "Optionally the type can be followed by extra parameters, separated by C<:> "
20079 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20080 "allocated disk, containing a single partition, with the partition formatted "
20081 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20082 "disk instead."
20083 msgstr ""
20084
20085 #. type: textblock
20086 #: ../fish/guestfish.pod:1040
20087 msgid "To list the available types and any extra parameters they take, run:"
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../fish/guestfish.pod:1044
20092 msgid ""
20093 "Note that the prepared filesystem is not mounted.  You would usually have to "
20094 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20095 msgstr ""
20096
20097 #. type: textblock
20098 #: ../fish/guestfish.pod:1048
20099 msgid ""
20100 "If any I<-N> or I<--new> options are given, the guest is automatically "
20101 "launched."
20102 msgstr ""
20103
20104 #. type: textblock
20105 #: ../fish/guestfish.pod:1053
20106 msgid "Create a 100MB disk with an ext4-formatted partition:"
20107 msgstr ""
20108
20109 #. type: verbatim
20110 #: ../fish/guestfish.pod:1055
20111 #, no-wrap
20112 msgid ""
20113 " guestfish -N fs:ext4\n"
20114 "\n"
20115 msgstr ""
20116
20117 #. type: textblock
20118 #: ../fish/guestfish.pod:1057
20119 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20120 msgstr ""
20121
20122 #. type: verbatim
20123 #: ../fish/guestfish.pod:1059
20124 #, no-wrap
20125 msgid ""
20126 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20127 "\n"
20128 msgstr ""
20129
20130 #. type: textblock
20131 #: ../fish/guestfish.pod:1061
20132 msgid "Create a blank 200MB disk:"
20133 msgstr ""
20134
20135 #. type: verbatim
20136 #: ../fish/guestfish.pod:1063
20137 #, no-wrap
20138 msgid ""
20139 " guestfish -N disk:200M\n"
20140 "\n"
20141 msgstr ""
20142
20143 #. type: =head1
20144 #: ../fish/guestfish.pod:1065
20145 msgid "PROGRESS BARS"
20146 msgstr ""
20147
20148 #. type: textblock
20149 #: ../fish/guestfish.pod:1067
20150 msgid ""
20151 "Some (not all) long-running commands send progress notification messages as "
20152 "they are running.  Guestfish turns these messages into progress bars."
20153 msgstr ""
20154
20155 #. type: textblock
20156 #: ../fish/guestfish.pod:1071
20157 msgid ""
20158 "When a command that supports progress bars takes longer than two seconds to "
20159 "run, and if progress bars are enabled, then you will see one appearing below "
20160 "the command:"
20161 msgstr ""
20162
20163 #. type: verbatim
20164 #: ../fish/guestfish.pod:1075
20165 #, no-wrap
20166 msgid ""
20167 " ><fs> copy-size /large-file /another-file 2048M\n"
20168 " / 10% [#####-----------------------------------------] 00:30\n"
20169 "\n"
20170 msgstr ""
20171
20172 #. type: textblock
20173 #: ../fish/guestfish.pod:1078
20174 msgid ""
20175 "The spinner on the left hand side moves round once for every progress "
20176 "notification received from the backend.  This is a (reasonably) golden "
20177 "assurance that the command is \"doing something\" even if the progress bar "
20178 "is not moving, because the command is able to send the progress "
20179 "notifications.  When the bar reaches 100% and the command finishes, the "
20180 "spinner disappears."
20181 msgstr ""
20182
20183 #. type: textblock
20184 #: ../fish/guestfish.pod:1085
20185 msgid ""
20186 "Progress bars are enabled by default when guestfish is used interactively.  "
20187 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20188 "and you can disable them completely using I<--no-progress-bars>."
20189 msgstr ""
20190
20191 #. type: =head1
20192 #: ../fish/guestfish.pod:1090
20193 msgid "GUESTFISH COMMANDS"
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../fish/guestfish.pod:1092
20198 msgid ""
20199 "The commands in this section are guestfish convenience commands, in other "
20200 "words, they are not part of the L<guestfs(3)> API."
20201 msgstr ""
20202
20203 #. type: =head2
20204 #: ../fish/guestfish.pod:1095
20205 msgid "help"
20206 msgstr ""
20207
20208 #. type: verbatim
20209 #: ../fish/guestfish.pod:1097
20210 #, no-wrap
20211 msgid ""
20212 " help\n"
20213 " help cmd\n"
20214 "\n"
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fish/guestfish.pod:1100
20219 msgid "Without any parameter, this provides general help."
20220 msgstr ""
20221
20222 #. type: textblock
20223 #: ../fish/guestfish.pod:1102
20224 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20225 msgstr ""
20226
20227 #. type: =head2
20228 #: ../fish/guestfish.pod:1104
20229 msgid "quit | exit"
20230 msgstr ""
20231
20232 #. type: textblock
20233 #: ../fish/guestfish.pod:1106
20234 msgid "This exits guestfish.  You can also use C<^D> key."
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:1108
20239 msgid "@FISH_COMMANDS@"
20240 msgstr ""
20241
20242 #. type: =head1
20243 #: ../fish/guestfish.pod:1110
20244 msgid "COMMANDS"
20245 msgstr ""
20246
20247 #. type: textblock
20248 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20249 msgid "@ACTIONS@"
20250 msgstr ""
20251
20252 #. type: textblock
20253 #: ../fish/guestfish.pod:1116
20254 msgid ""
20255 "guestfish returns 0 if the commands completed without error, or 1 if there "
20256 "was an error."
20257 msgstr ""
20258
20259 #. type: =item
20260 #: ../fish/guestfish.pod:1123
20261 msgid "EDITOR"
20262 msgstr ""
20263
20264 #. type: textblock
20265 #: ../fish/guestfish.pod:1125
20266 msgid ""
20267 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20268 "C<vi>."
20269 msgstr ""
20270
20271 #. type: =item
20272 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20273 msgid "FEBOOTSTRAP_KERNEL"
20274 msgstr ""
20275
20276 #. type: =item
20277 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20278 msgid "FEBOOTSTRAP_MODULES"
20279 msgstr ""
20280
20281 #. type: textblock
20282 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20283 msgid ""
20284 "These two environment variables allow the kernel that libguestfs uses in the "
20285 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20286 "most recent host kernel is chosen.  For more information about kernel "
20287 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20288 "available in febootstrap E<ge> 3.8."
20289 msgstr ""
20290
20291 #. type: =item
20292 #: ../fish/guestfish.pod:1138
20293 msgid "GUESTFISH_DISPLAY_IMAGE"
20294 msgstr ""
20295
20296 #. type: textblock
20297 #: ../fish/guestfish.pod:1140
20298 msgid ""
20299 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20300 "If not set, it uses L<display(1)>."
20301 msgstr ""
20302
20303 #. type: =item
20304 #: ../fish/guestfish.pod:1143
20305 msgid "GUESTFISH_PID"
20306 msgstr ""
20307
20308 #. type: textblock
20309 #: ../fish/guestfish.pod:1145
20310 msgid ""
20311 "Used with the I<--remote> option to specify the remote guestfish process to "
20312 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20313 msgstr ""
20314
20315 #. type: =item
20316 #: ../fish/guestfish.pod:1149
20317 msgid "HEXEDITOR"
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fish/guestfish.pod:1151
20322 msgid ""
20323 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20324 "not specified, the external L<hexedit(1)> program is used."
20325 msgstr ""
20326
20327 #. type: =item
20328 #: ../fish/guestfish.pod:1155
20329 msgid "HOME"
20330 msgstr ""
20331
20332 #. type: textblock
20333 #: ../fish/guestfish.pod:1157
20334 msgid ""
20335 "If compiled with GNU readline support, various files in the home directory "
20336 "can be used.  See L</FILES>."
20337 msgstr ""
20338
20339 #. type: =item
20340 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20341 msgid "LIBGUESTFS_APPEND"
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20346 msgid "Pass additional options to the guest kernel."
20347 msgstr ""
20348
20349 #. type: =item
20350 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20351 msgid "LIBGUESTFS_DEBUG"
20352 msgstr ""
20353
20354 #. type: textblock
20355 #: ../fish/guestfish.pod:1166
20356 msgid ""
20357 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20358 "effect as using the B<-v> option."
20359 msgstr ""
20360
20361 #. type: =item
20362 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20363 msgid "LIBGUESTFS_MEMSIZE"
20364 msgstr ""
20365
20366 #. type: textblock
20367 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20368 msgid ""
20369 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20370 msgstr ""
20371
20372 #. type: verbatim
20373 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20374 #, no-wrap
20375 msgid ""
20376 " LIBGUESTFS_MEMSIZE=700\n"
20377 "\n"
20378 msgstr ""
20379
20380 #. type: =item
20381 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20382 msgid "LIBGUESTFS_PATH"
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fish/guestfish.pod:1178
20387 msgid ""
20388 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20389 "the discussion of paths in L<guestfs(3)>."
20390 msgstr ""
20391
20392 #. type: =item
20393 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
20394 msgid "LIBGUESTFS_QEMU"
20395 msgstr ""
20396
20397 #. type: textblock
20398 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
20399 msgid ""
20400 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20401 "which was found at compile time by the configure script is used."
20402 msgstr ""
20403
20404 #. type: =item
20405 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
20406 msgid "LIBGUESTFS_TRACE"
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../fish/guestfish.pod:1189
20411 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20412 msgstr ""
20413
20414 #. type: =item
20415 #: ../fish/guestfish.pod:1191
20416 msgid "PAGER"
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../fish/guestfish.pod:1193
20421 msgid ""
20422 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20423 "C<more>."
20424 msgstr ""
20425
20426 #. type: =item
20427 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
20428 #: ../src/guestfs.pod:3242
20429 msgid "TMPDIR"
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
20434 msgid ""
20435 "Location of temporary directory, defaults to C</tmp> except for the cached "
20436 "supermin appliance which defaults to C</var/tmp>."
20437 msgstr ""
20438
20439 #. type: textblock
20440 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
20441 msgid ""
20442 "If libguestfs was compiled to use the supermin appliance then the real "
20443 "appliance is cached in this directory, shared between all handles belonging "
20444 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20445 "use in case C</var/tmp> is not large enough."
20446 msgstr ""
20447
20448 #. type: =head1
20449 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
20450 #: ../rescue/virt-rescue.pod:273
20451 msgid "FILES"
20452 msgstr ""
20453
20454 #. type: =item
20455 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
20456 #: ../rescue/virt-rescue.pod:277
20457 msgid "$HOME/.libguestfs-tools.rc"
20458 msgstr ""
20459
20460 #. type: =item
20461 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
20462 #: ../rescue/virt-rescue.pod:279
20463 msgid "/etc/libguestfs-tools.conf"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
20468 #: ../rescue/virt-rescue.pod:281
20469 msgid ""
20470 "This configuration file controls the default read-only or read-write mode "
20471 "(I<--ro> or I<--rw>)."
20472 msgstr ""
20473
20474 #. type: textblock
20475 #: ../fish/guestfish.pod:1220
20476 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20477 msgstr ""
20478
20479 #. type: =item
20480 #: ../fish/guestfish.pod:1222
20481 msgid "$HOME/.guestfish"
20482 msgstr ""
20483
20484 #. type: textblock
20485 #: ../fish/guestfish.pod:1224
20486 msgid ""
20487 "If compiled with GNU readline support, then the command history is saved in "
20488 "this file."
20489 msgstr ""
20490
20491 #. type: =item
20492 #: ../fish/guestfish.pod:1227
20493 msgid "$HOME/.inputrc"
20494 msgstr ""
20495
20496 #. type: =item
20497 #: ../fish/guestfish.pod:1229
20498 msgid "/etc/inputrc"
20499 msgstr ""
20500
20501 #. type: textblock
20502 #: ../fish/guestfish.pod:1231
20503 msgid ""
20504 "If compiled with GNU readline support, then these files can be used to "
20505 "configure readline.  For further information, please see L<readline(3)/"
20506 "INITIALIZATION FILE>."
20507 msgstr ""
20508
20509 #. type: textblock
20510 #: ../fish/guestfish.pod:1235
20511 msgid "To write rules which only apply to guestfish, use:"
20512 msgstr ""
20513
20514 #. type: verbatim
20515 #: ../fish/guestfish.pod:1237
20516 #, no-wrap
20517 msgid ""
20518 " $if guestfish\n"
20519 " ...\n"
20520 " $endif\n"
20521 "\n"
20522 msgstr ""
20523
20524 #. type: textblock
20525 #: ../fish/guestfish.pod:1241
20526 msgid ""
20527 "Variables that you can set in inputrc that change the behaviour of guestfish "
20528 "in useful ways include:"
20529 msgstr ""
20530
20531 #. type: =item
20532 #: ../fish/guestfish.pod:1246
20533 msgid "completion-ignore-case (default: on)"
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../fish/guestfish.pod:1248
20538 msgid ""
20539 "By default, guestfish will ignore case when tab-completing paths on the "
20540 "disk.  Use:"
20541 msgstr ""
20542
20543 #. type: verbatim
20544 #: ../fish/guestfish.pod:1251
20545 #, no-wrap
20546 msgid ""
20547 " set completion-ignore-case off\n"
20548 "\n"
20549 msgstr ""
20550
20551 #. type: textblock
20552 #: ../fish/guestfish.pod:1253
20553 msgid "to make guestfish case sensitive."
20554 msgstr ""
20555
20556 #. type: =item
20557 #: ../fish/guestfish.pod:1257
20558 msgid "test1.img"
20559 msgstr ""
20560
20561 #. type: =item
20562 #: ../fish/guestfish.pod:1259
20563 msgid "test2.img (etc)"
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../fish/guestfish.pod:1261
20568 msgid ""
20569 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20570 "will be created in the file C<test1.img> in the current directory.  The "
20571 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20572 "the same name will be overwritten."
20573 msgstr ""
20574
20575 #. type: textblock
20576 #: ../fish/guestfish.pod:1270
20577 msgid ""
20578 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20579 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20580 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20581 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20582 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
20583 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
20584 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20585 msgstr ""
20586
20587 #. type: textblock
20588 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
20589 #: ../test-tool/libguestfs-test-tool.pod:112
20590 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20591 msgstr ""
20592
20593 #. type: textblock
20594 #: ../fish/virt-copy-in.pod:5
20595 msgid ""
20596 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20597 msgstr ""
20598
20599 #. type: verbatim
20600 #: ../fish/virt-copy-in.pod:9
20601 #, no-wrap
20602 msgid ""
20603 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20604 "\n"
20605 msgstr ""
20606
20607 #. type: verbatim
20608 #: ../fish/virt-copy-in.pod:11
20609 #, no-wrap
20610 msgid ""
20611 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20612 "\n"
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../fish/virt-copy-in.pod:15
20617 msgid ""
20618 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20619 "causing disk corruption.  The virtual machine must be shut down before you "
20620 "use this command."
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fish/virt-copy-in.pod:21
20625 msgid ""
20626 "C<virt-copy-in> copies files and directories from the local disk into a "
20627 "virtual machine disk image or named libvirt domain."
20628 msgstr ""
20629
20630 #. type: textblock
20631 #: ../fish/virt-copy-in.pod:24
20632 msgid ""
20633 "You can give one of more filenames and directories on the command line.  "
20634 "Directories are copied in recursively.  The final parameter must be the "
20635 "destination directory in the disk image which must be an absolute path "
20636 "starting with a C</> character."
20637 msgstr ""
20638
20639 #. type: verbatim
20640 #: ../fish/virt-copy-in.pod:33
20641 #, no-wrap
20642 msgid ""
20643 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20644 "\n"
20645 msgstr ""
20646
20647 #. type: textblock
20648 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20649 msgid "Upload a home directory to a guest:"
20650 msgstr ""
20651
20652 #. type: verbatim
20653 #: ../fish/virt-copy-in.pod:37
20654 #, no-wrap
20655 msgid ""
20656 " virt-copy-in -d MyGuest skel /home\n"
20657 "\n"
20658 msgstr ""
20659
20660 #. type: =head1
20661 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20662 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20663 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20664 msgstr ""
20665
20666 #. type: textblock
20667 #: ../fish/virt-copy-in.pod:41
20668 msgid ""
20669 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20670 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20671 "are probably better off using guestfish directly."
20672 msgstr ""
20673
20674 #. type: textblock
20675 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20676 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20677 msgid ""
20678 "Since the shell script just passes options straight to guestfish, read "
20679 "L<guestfish(1)> to see the full list of options."
20680 msgstr ""
20681
20682 #. type: textblock
20683 #: ../fish/virt-copy-in.pod:52
20684 msgid ""
20685 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20686 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20691 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20692 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20693 msgstr ""
20694
20695 #. type: textblock
20696 #: ../fish/virt-copy-out.pod:5
20697 msgid ""
20698 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20699 "image."
20700 msgstr ""
20701
20702 #. type: verbatim
20703 #: ../fish/virt-copy-out.pod:9
20704 #, no-wrap
20705 msgid ""
20706 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20707 "\n"
20708 msgstr ""
20709
20710 #. type: verbatim
20711 #: ../fish/virt-copy-out.pod:11
20712 #, no-wrap
20713 msgid ""
20714 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20715 "\n"
20716 msgstr ""
20717
20718 #. type: textblock
20719 #: ../fish/virt-copy-out.pod:15
20720 msgid ""
20721 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20722 "image or named libvirt domain."
20723 msgstr ""
20724
20725 #. type: textblock
20726 #: ../fish/virt-copy-out.pod:18
20727 msgid ""
20728 "You can give one of more filenames and directories on the command line.  "
20729 "Directories are copied out recursively."
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../fish/virt-copy-out.pod:23
20734 msgid "Download the home directories from a virtual machine:"
20735 msgstr ""
20736
20737 #. type: verbatim
20738 #: ../fish/virt-copy-out.pod:25
20739 #, no-wrap
20740 msgid ""
20741 " mkdir homes\n"
20742 " virt-copy-out -d MyGuest /home homes\n"
20743 "\n"
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../fish/virt-copy-out.pod:30
20748 msgid ""
20749 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20750 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20751 "are probably better off using guestfish directly."
20752 msgstr ""
20753
20754 #. type: textblock
20755 #: ../fish/virt-copy-out.pod:41
20756 msgid ""
20757 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20758 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20759 msgstr ""
20760
20761 #. type: textblock
20762 #: ../fish/virt-tar-in.pod:5
20763 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20764 msgstr ""
20765
20766 #. type: verbatim
20767 #: ../fish/virt-tar-in.pod:9
20768 #, no-wrap
20769 msgid ""
20770 " virt-tar-in -a disk.img data.tar /destination\n"
20771 "\n"
20772 msgstr ""
20773
20774 #. type: verbatim
20775 #: ../fish/virt-tar-in.pod:11
20776 #, no-wrap
20777 msgid ""
20778 " virt-tar-in -d domain data.tar /destination\n"
20779 "\n"
20780 msgstr ""
20781
20782 #. type: verbatim
20783 #: ../fish/virt-tar-in.pod:13
20784 #, no-wrap
20785 msgid ""
20786 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20787 "\n"
20788 msgstr ""
20789
20790 #. type: textblock
20791 #: ../fish/virt-tar-in.pod:17
20792 msgid ""
20793 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20794 "causing disk corruption.  The virtual machine must be shut down before you "
20795 "use this command."
20796 msgstr ""
20797
20798 #. type: textblock
20799 #: ../fish/virt-tar-in.pod:23
20800 msgid ""
20801 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20802 "image or named libvirt domain."
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/virt-tar-in.pod:26
20807 msgid ""
20808 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20809 "standard input.  The second parameter is the absolute target directory to "
20810 "unpack into."
20811 msgstr ""
20812
20813 #. type: verbatim
20814 #: ../fish/virt-tar-in.pod:34
20815 #, no-wrap
20816 msgid ""
20817 " virt-tar-in -d MyGuest homes.tar /home\n"
20818 "\n"
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../fish/virt-tar-in.pod:38
20823 msgid ""
20824 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20825 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20826 "probably better off using guestfish directly."
20827 msgstr ""
20828
20829 #. type: textblock
20830 #: ../fish/virt-tar-in.pod:49
20831 msgid ""
20832 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20833 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20834 "org/>."
20835 msgstr ""
20836
20837 #. type: textblock
20838 #: ../fish/virt-tar-out.pod:5
20839 msgid ""
20840 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20841 msgstr ""
20842
20843 #. type: verbatim
20844 #: ../fish/virt-tar-out.pod:9
20845 #, no-wrap
20846 msgid ""
20847 " virt-tar-out -a disk.img /dir files.tar\n"
20848 "\n"
20849 msgstr ""
20850
20851 #. type: verbatim
20852 #: ../fish/virt-tar-out.pod:11
20853 #, no-wrap
20854 msgid ""
20855 " virt-tar-out -d domain /dir files.tar\n"
20856 "\n"
20857 msgstr ""
20858
20859 #. type: verbatim
20860 #: ../fish/virt-tar-out.pod:13
20861 #, no-wrap
20862 msgid ""
20863 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20864 "\n"
20865 msgstr ""
20866
20867 #. type: textblock
20868 #: ../fish/virt-tar-out.pod:17
20869 msgid ""
20870 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../fish/virt-tar-out.pod:20
20875 msgid ""
20876 "The first parameter is the absolute path of the virtual machine directory.  "
20877 "The second parameter is the tar file to write.  Use C<-> to write to "
20878 "standard output."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fish/virt-tar-out.pod:26
20883 msgid "Download the home directories from a guest:"
20884 msgstr ""
20885
20886 #. type: verbatim
20887 #: ../fish/virt-tar-out.pod:28
20888 #, no-wrap
20889 msgid ""
20890 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20891 "\n"
20892 msgstr ""
20893
20894 #. type: textblock
20895 #: ../fish/virt-tar-out.pod:32
20896 msgid ""
20897 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20898 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20899 "are probably better off using guestfish directly."
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../fish/virt-tar-out.pod:43
20904 msgid ""
20905 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20906 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20907 msgstr ""
20908
20909 #. type: textblock
20910 #: ../fuse/guestmount.pod:5
20911 msgid ""
20912 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20913 msgstr ""
20914
20915 #. type: verbatim
20916 #: ../fuse/guestmount.pod:9
20917 #, no-wrap
20918 msgid ""
20919 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20920 "\n"
20921 msgstr ""
20922
20923 #. type: verbatim
20924 #: ../fuse/guestmount.pod:11
20925 #, no-wrap
20926 msgid ""
20927 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20928 "\n"
20929 msgstr ""
20930
20931 #. type: verbatim
20932 #: ../fuse/guestmount.pod:13
20933 #, no-wrap
20934 msgid ""
20935 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20936 "\n"
20937 msgstr ""
20938
20939 #. type: textblock
20940 #: ../fuse/guestmount.pod:17
20941 msgid ""
20942 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20943 "machines.  If you do this, you risk disk corruption in the VM."
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../fuse/guestmount.pod:22
20948 msgid ""
20949 "The guestmount program can be used to mount virtual machine filesystems and "
20950 "other disk images on the host.  It uses libguestfs for access to the guest "
20951 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20952 "a mountable device."
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../fuse/guestmount.pod:27
20957 msgid ""
20958 "Along with other options, you have to give at least one device (I<-a> "
20959 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20960 "option) or use the I<-i> inspection option.  How this works is better "
20961 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20962 "below."
20963 msgstr ""
20964
20965 #. type: textblock
20966 #: ../fuse/guestmount.pod:33
20967 msgid ""
20968 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20969 "by you, and the filesystem will not be visible to any other users unless you "
20970 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20971 "the filesystem, use the C<fusermount -u> command."
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fuse/guestmount.pod:41
20976 msgid ""
20977 "For a typical Windows guest which has its main filesystem on the first "
20978 "partition:"
20979 msgstr ""
20980
20981 #. type: verbatim
20982 #: ../fuse/guestmount.pod:44
20983 #, no-wrap
20984 msgid ""
20985 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20986 "\n"
20987 msgstr ""
20988
20989 #. type: textblock
20990 #: ../fuse/guestmount.pod:46
20991 msgid ""
20992 "For a typical Linux guest which has a /boot filesystem on the first "
20993 "partition, and the root filesystem on a logical volume:"
20994 msgstr ""
20995
20996 #. type: verbatim
20997 #: ../fuse/guestmount.pod:49
20998 #, no-wrap
20999 msgid ""
21000 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21001 "\n"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../fuse/guestmount.pod:51
21006 msgid "To get libguestfs to detect guest mountpoints for you:"
21007 msgstr ""
21008
21009 #. type: verbatim
21010 #: ../fuse/guestmount.pod:53
21011 #, no-wrap
21012 msgid ""
21013 " guestmount -a guest.img -i --ro /mnt\n"
21014 "\n"
21015 msgstr ""
21016
21017 #. type: textblock
21018 #: ../fuse/guestmount.pod:55
21019 msgid "For a libvirt guest called \"Guest\" you could do:"
21020 msgstr ""
21021
21022 #. type: verbatim
21023 #: ../fuse/guestmount.pod:57
21024 #, no-wrap
21025 msgid ""
21026 " guestmount -d Guest -i --ro /mnt\n"
21027 "\n"
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../fuse/guestmount.pod:59
21032 msgid ""
21033 "If you don't know what filesystems are contained in a guest or disk image, "
21034 "use L<virt-filesystems(1)> first:"
21035 msgstr ""
21036
21037 #. type: verbatim
21038 #: ../fuse/guestmount.pod:62
21039 #, no-wrap
21040 msgid ""
21041 " virt-filesystems MyGuest\n"
21042 "\n"
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../fuse/guestmount.pod:64
21047 msgid ""
21048 "If you want to trace the libguestfs calls but without excessive debugging "
21049 "information, we recommend:"
21050 msgstr ""
21051
21052 #. type: verbatim
21053 #: ../fuse/guestmount.pod:67
21054 #, no-wrap
21055 msgid ""
21056 " guestmount [...] --trace /mnt\n"
21057 "\n"
21058 msgstr ""
21059
21060 #. type: textblock
21061 #: ../fuse/guestmount.pod:69
21062 msgid "If you want to debug the program, we recommend:"
21063 msgstr ""
21064
21065 #. type: verbatim
21066 #: ../fuse/guestmount.pod:71
21067 #, no-wrap
21068 msgid ""
21069 " guestmount [...] --trace --verbose /mnt\n"
21070 "\n"
21071 msgstr ""
21072
21073 #. type: =head1
21074 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21075 #: ../resize/virt-resize.pod:600
21076 msgid "NOTES"
21077 msgstr ""
21078
21079 #. type: =head2
21080 #: ../fuse/guestmount.pod:75
21081 msgid "Other users cannot see the filesystem by default"
21082 msgstr ""
21083
21084 #. type: textblock
21085 #: ../fuse/guestmount.pod:77
21086 msgid ""
21087 "If you mount a filesystem as one user (eg. root), then other users will not "
21088 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21089 "option when mounting:"
21090 msgstr ""
21091
21092 #. type: verbatim
21093 #: ../fuse/guestmount.pod:81
21094 #, no-wrap
21095 msgid ""
21096 " sudo guestmount [...] -o allow_other /mnt\n"
21097 "\n"
21098 msgstr ""
21099
21100 #. type: =head2
21101 #: ../fuse/guestmount.pod:83
21102 msgid "Enabling FUSE"
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../fuse/guestmount.pod:85
21107 msgid ""
21108 "On some distros, you may need to add yourself to a special group (eg. "
21109 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21110 "Debian and derivatives."
21111 msgstr ""
21112
21113 #. type: textblock
21114 #: ../fuse/guestmount.pod:89
21115 msgid ""
21116 "On other distros, no special group is required.  It is not necessary on "
21117 "Fedora or Red Hat Enterprise Linux."
21118 msgstr ""
21119
21120 #. type: textblock
21121 #: ../fuse/guestmount.pod:100
21122 msgid "Add a block device or virtual machine image."
21123 msgstr ""
21124
21125 #. type: =item
21126 #: ../fuse/guestmount.pod:123
21127 msgid "B<--dir-cache-timeout N>"
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../fuse/guestmount.pod:125
21132 msgid ""
21133 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21134 "seconds.  The readdir cache [actually, there are several semi-independent "
21135 "caches] is populated after a readdir(2) call with the stat and extended "
21136 "attributes of the files in the directory, in anticipation that they will be "
21137 "requested soon after."
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../fuse/guestmount.pod:131
21142 msgid ""
21143 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21144 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21145 "requests, only cache existing ones."
21146 msgstr ""
21147
21148 #. type: textblock
21149 #: ../fuse/guestmount.pod:151
21150 msgid ""
21151 "If you have untrusted raw-format guest disk images, you should use this "
21152 "option to specify the disk format.  This avoids a possible security problem "
21153 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21154 "guestfs_add_drive_opts>."
21155 msgstr ""
21156
21157 #. type: =item
21158 #: ../fuse/guestmount.pod:156
21159 msgid "B<--fuse-help>"
21160 msgstr ""
21161
21162 #. type: textblock
21163 #: ../fuse/guestmount.pod:158
21164 msgid "Display help on special FUSE options (see I<-o> below)."
21165 msgstr ""
21166
21167 #. type: textblock
21168 #: ../fuse/guestmount.pod:162
21169 msgid "Display brief help and exit."
21170 msgstr ""
21171
21172 #. type: textblock
21173 #: ../fuse/guestmount.pod:186
21174 msgid ""
21175 "Mount the named partition or logical volume on the given mountpoint B<in the "
21176 "guest> (this has nothing to do with mountpoints in the host)."
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../fuse/guestmount.pod:189
21181 msgid ""
21182 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21183 "something on C</>."
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../fuse/guestmount.pod:206
21188 msgid ""
21189 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21190 "unmounted.  If you specify this option, then we don't attempt to sync the "
21191 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21192 msgstr ""
21193
21194 #. type: =item
21195 #: ../fuse/guestmount.pod:211
21196 msgid "B<-o option>"
21197 msgstr ""
21198
21199 #. type: =item
21200 #: ../fuse/guestmount.pod:213
21201 msgid "B<--option option>"
21202 msgstr ""
21203
21204 #. type: textblock
21205 #: ../fuse/guestmount.pod:215
21206 msgid "Pass extra options to FUSE."
21207 msgstr ""
21208
21209 #. type: textblock
21210 #: ../fuse/guestmount.pod:217
21211 msgid ""
21212 "To get a list of all the extra options supported by FUSE, use the command "
21213 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21214 "of them are a good idea."
21215 msgstr ""
21216
21217 #. type: verbatim
21218 #: ../fuse/guestmount.pod:221
21219 #, no-wrap
21220 msgid ""
21221 " guestmount --fuse-help\n"
21222 "\n"
21223 msgstr ""
21224
21225 #. type: textblock
21226 #: ../fuse/guestmount.pod:223
21227 msgid "Some potentially useful FUSE options:"
21228 msgstr ""
21229
21230 #. type: =item
21231 #: ../fuse/guestmount.pod:227
21232 msgid "B<-o allow_other>"
21233 msgstr ""
21234
21235 #. type: textblock
21236 #: ../fuse/guestmount.pod:229
21237 msgid "Allow other users to see the filesystem."
21238 msgstr ""
21239
21240 #. type: =item
21241 #: ../fuse/guestmount.pod:231
21242 msgid "B<-o attr_timeout=N>"
21243 msgstr ""
21244
21245 #. type: textblock
21246 #: ../fuse/guestmount.pod:233
21247 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21248 msgstr ""
21249
21250 #. type: =item
21251 #: ../fuse/guestmount.pod:235
21252 msgid "B<-o kernel_cache>"
21253 msgstr ""
21254
21255 #. type: textblock
21256 #: ../fuse/guestmount.pod:237
21257 msgid ""
21258 "Allow the kernel to cache files (reduces the number of reads that have to go "
21259 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21260 "afford the extra memory usage."
21261 msgstr ""
21262
21263 #. type: =item
21264 #: ../fuse/guestmount.pod:241
21265 msgid "B<-o uid=N> B<-o gid=N>"
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../fuse/guestmount.pod:243
21270 msgid ""
21271 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21272 "the chosen values."
21273 msgstr ""
21274
21275 #. type: textblock
21276 #: ../fuse/guestmount.pod:252
21277 msgid ""
21278 "Add devices and mount everything read-only.  Also disallow writes and make "
21279 "the disk appear read-only to FUSE."
21280 msgstr ""
21281
21282 #. type: textblock
21283 #: ../fuse/guestmount.pod:255
21284 msgid ""
21285 "This is highly recommended if you are not going to edit the guest disk.  If "
21286 "the guest is running and this option is I<not> supplied, then there is a "
21287 "strong risk of disk corruption in the guest.  We try to prevent this from "
21288 "happening, but it is not always possible."
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21293 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../fuse/guestmount.pod:264
21298 msgid "Enable SELinux support for the guest."
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../fuse/guestmount.pod:270
21303 msgid "Enable verbose messages from underlying libguestfs."
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../fuse/guestmount.pod:276
21308 msgid "Display the program version and exit."
21309 msgstr ""
21310
21311 #. type: textblock
21312 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21313 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21314 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21315 msgstr ""
21316
21317 #. type: =item
21318 #: ../fuse/guestmount.pod:289
21319 msgid "B<--trace>"
21320 msgstr ""
21321
21322 #. type: textblock
21323 #: ../fuse/guestmount.pod:291
21324 msgid "Trace libguestfs calls and entry into each FUSE function."
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../fuse/guestmount.pod:293
21329 msgid "This also stops the daemon from forking into the background."
21330 msgstr ""
21331
21332 #. type: textblock
21333 #: ../fuse/guestmount.pod:319
21334 msgid ""
21335 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21336 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21337 "net/>."
21338 msgstr ""
21339
21340 #. type: textblock
21341 #: ../fuse/guestmount.pod:334
21342 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21343 msgstr ""
21344
21345 #. type: textblock
21346 #: ../inspector/virt-inspector.pod:5
21347 msgid ""
21348 "virt-inspector - Display operating system version and other information "
21349 "about a virtual machine"
21350 msgstr ""
21351
21352 #. type: verbatim
21353 #: ../inspector/virt-inspector.pod:9
21354 #, no-wrap
21355 msgid ""
21356 " virt-inspector [--options] -d domname\n"
21357 "\n"
21358 msgstr ""
21359
21360 #. type: verbatim
21361 #: ../inspector/virt-inspector.pod:11
21362 #, no-wrap
21363 msgid ""
21364 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21365 "\n"
21366 msgstr ""
21367
21368 #. type: verbatim
21369 #: ../inspector/virt-inspector.pod:15
21370 #, no-wrap
21371 msgid ""
21372 " virt-inspector domname\n"
21373 "\n"
21374 msgstr ""
21375
21376 #. type: verbatim
21377 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21378 #, no-wrap
21379 msgid ""
21380 " virt-inspector disk.img [disk.img ...]\n"
21381 "\n"
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../inspector/virt-inspector.pod:21
21386 msgid ""
21387 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21388 "determine the version of the operating system and other information about "
21389 "the virtual machine."
21390 msgstr ""
21391
21392 #. type: textblock
21393 #: ../inspector/virt-inspector.pod:25
21394 msgid "Virt-inspector produces XML output for feeding into other programs."
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../inspector/virt-inspector.pod:27
21399 msgid ""
21400 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21401 "the libvirt domain (see: C<virsh list --all>)."
21402 msgstr ""
21403
21404 #. type: textblock
21405 #: ../inspector/virt-inspector.pod:30
21406 msgid ""
21407 "You can also run virt-inspector directly on disk images from a single "
21408 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21409 "has several block devices, in which case you should list several I<-a> "
21410 "options one after another, with the first corresponding to the guest's C</"
21411 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21412 msgstr ""
21413
21414 #. type: textblock
21415 #: ../inspector/virt-inspector.pod:37
21416 msgid ""
21417 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21418 "keys and similar."
21419 msgstr ""
21420
21421 #. type: textblock
21422 #: ../inspector/virt-inspector.pod:40
21423 msgid ""
21424 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21425 "inspect several virtual machines, you have to run virt-inspector several "
21426 "times (for example, from a shell script for-loop)."
21427 msgstr ""
21428
21429 #. type: textblock
21430 #: ../inspector/virt-inspector.pod:45
21431 msgid ""
21432 "Because virt-inspector needs direct access to guest images, it won't "
21433 "normally work over remote libvirt connections."
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../inspector/virt-inspector.pod:48
21438 msgid ""
21439 "All of the information available from virt-inspector is also available "
21440 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21441 "The same information can also be fetched using guestfish or via libguestfs "
21442 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21443 "WITH OTHER PROGRAMMING LANGUAGES>)."
21444 msgstr ""
21445
21446 #. type: textblock
21447 #: ../inspector/virt-inspector.pod:81
21448 msgid ""
21449 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21450 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21451 "at all."
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../inspector/virt-inspector.pod:94
21456 msgid ""
21457 "When prompting for keys and passphrases, virt-inspector normally turns "
21458 "echoing off so you cannot see what you are typing.  If you are not worried "
21459 "about Tempest attacks and there is no one else in the room you can specify "
21460 "this flag to see what you are typing."
21461 msgstr ""
21462
21463 #. type: textblock
21464 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21465 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21466 #: ../tools/virt-win-reg.pl:144
21467 msgid ""
21468 "Specify the format of disk images given on the command line.  If this is "
21469 "omitted then the format is autodetected from the content of the disk image."
21470 msgstr ""
21471
21472 #. type: textblock
21473 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21474 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21475 #: ../tools/virt-win-reg.pl:148
21476 msgid ""
21477 "If disk images are requested from libvirt, then this program asks libvirt "
21478 "for this information.  In this case, the value of the format parameter is "
21479 "ignored."
21480 msgstr ""
21481
21482 #. type: textblock
21483 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:370
21484 #: ../resize/virt-resize.pod:462 ../sparsify/virt-sparsify.pod:132
21485 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21486 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21487 msgid ""
21488 "If working with untrusted raw-format guest disk images, you should ensure "
21489 "the format is always specified."
21490 msgstr ""
21491
21492 #. type: textblock
21493 #: ../inspector/virt-inspector.pod:139
21494 msgid "Previous versions of virt-inspector allowed you to write either:"
21495 msgstr ""
21496
21497 #. type: verbatim
21498 #: ../inspector/virt-inspector.pod:145
21499 #, no-wrap
21500 msgid ""
21501 " virt-inspector guestname\n"
21502 "\n"
21503 msgstr ""
21504
21505 #. type: =head1
21506 #: ../inspector/virt-inspector.pod:153
21507 msgid "XML FORMAT"
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../inspector/virt-inspector.pod:155
21512 msgid ""
21513 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21514 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21515 "just an overview."
21516 msgstr ""
21517
21518 #. type: textblock
21519 #: ../inspector/virt-inspector.pod:159
21520 msgid ""
21521 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21522 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21523 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21524 "which is vanishingly rare in real world VMs."
21525 msgstr ""
21526
21527 #. type: =head2
21528 #: ../inspector/virt-inspector.pod:164
21529 msgid "E<lt>operatingsystemE<gt>"
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../inspector/virt-inspector.pod:166
21534 msgid ""
21535 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21536 "describe the operating system, its architecture, the descriptive \"product "
21537 "name\" string, the type of OS and so on, as in this example:"
21538 msgstr ""
21539
21540 #. type: verbatim
21541 #: ../inspector/virt-inspector.pod:170
21542 #, no-wrap
21543 msgid ""
21544 " <operatingsystems>\n"
21545 "   <operatingsystem>\n"
21546 "     <root>/dev/sda2</root>\n"
21547 "     <name>windows</name>\n"
21548 "     <arch>i386</arch>\n"
21549 "     <distro>windows</distro>\n"
21550 "     <product_name>Windows 7 Enterprise</product_name>\n"
21551 "     <product_variant>Client</product_variant>\n"
21552 "     <major_version>6</major_version>\n"
21553 "     <minor_version>1</minor_version>\n"
21554 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21555 "     <format>installed</format>\n"
21556 "\n"
21557 msgstr ""
21558
21559 #. type: textblock
21560 #: ../inspector/virt-inspector.pod:183
21561 msgid ""
21562 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21563 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21564 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21565 "architecture.  The other fields are fairly self-explanatory, but because "
21566 "these fields are taken directly from the libguestfs inspection API you can "
21567 "find precise information from L<guestfs(3)/INSPECTION>."
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../inspector/virt-inspector.pod:191
21572 msgid ""
21573 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21574 "of view of libguestfs (block devices may have completely different names "
21575 "inside the VM itself)."
21576 msgstr ""
21577
21578 #. type: =head2
21579 #: ../inspector/virt-inspector.pod:195
21580 msgid "E<lt>mountpointsE<gt>"
21581 msgstr ""
21582
21583 #. type: textblock
21584 #: ../inspector/virt-inspector.pod:197
21585 msgid ""
21586 "Un*x-like guests typically have multiple filesystems which are mounted at "
21587 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21588 "element which looks like this:"
21589 msgstr ""
21590
21591 #. type: verbatim
21592 #: ../inspector/virt-inspector.pod:201
21593 #, no-wrap
21594 msgid ""
21595 " <operatingsystems>\n"
21596 "   <operatingsystem>\n"
21597 "     ...\n"
21598 "     <mountpoints>\n"
21599 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21600 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21601 "     </mountpoints>\n"
21602 "\n"
21603 msgstr ""
21604
21605 #. type: textblock
21606 #: ../inspector/virt-inspector.pod:209
21607 msgid ""
21608 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21609 "and may have completely different names inside the guest.  Only mountable "
21610 "filesystems appear in this list, not things like swap devices."
21611 msgstr ""
21612
21613 #. type: =head2
21614 #: ../inspector/virt-inspector.pod:214
21615 msgid "E<lt>filesystemsE<gt>"
21616 msgstr ""
21617
21618 #. type: textblock
21619 #: ../inspector/virt-inspector.pod:216
21620 msgid ""
21621 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21622 "filesystems belonging to the guest, including swap and empty partitions.  "
21623 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21624 "this OS or shared with this OS and other OSes)."
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../inspector/virt-inspector.pod:222
21629 msgid "You might see something like this:"
21630 msgstr ""
21631
21632 #. type: verbatim
21633 #: ../inspector/virt-inspector.pod:224
21634 #, no-wrap
21635 msgid ""
21636 " <operatingsystems>\n"
21637 "   <operatingsystem>\n"
21638 "     ...\n"
21639 "     <filesystems>\n"
21640 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21641 "         <type>ext4</type>\n"
21642 "         <label>Fedora-13-x86_64</label>\n"
21643 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21644 "       </filesystem>\n"
21645 "\n"
21646 msgstr ""
21647
21648 #. type: textblock
21649 #: ../inspector/virt-inspector.pod:234
21650 msgid ""
21651 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21652 "the label, and the UUID."
21653 msgstr ""
21654
21655 #. type: =head2
21656 #: ../inspector/virt-inspector.pod:237
21657 msgid "E<lt>applicationsE<gt>"
21658 msgstr ""
21659
21660 #. type: textblock
21661 #: ../inspector/virt-inspector.pod:239
21662 msgid ""
21663 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21664 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21665 "machine."
21666 msgstr ""
21667
21668 #. type: textblock
21669 #: ../inspector/virt-inspector.pod:243
21670 msgid ""
21671 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21672 "Typical values would be C<rpm> and C<deb>."
21673 msgstr ""
21674
21675 #. type: textblock
21676 #: ../inspector/virt-inspector.pod:246
21677 msgid ""
21678 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21679 "Typical values include C<yum>, C<up2date> and C<apt>"
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../inspector/virt-inspector.pod:249
21684 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21685 msgstr ""
21686
21687 #. type: verbatim
21688 #: ../inspector/virt-inspector.pod:252
21689 #, no-wrap
21690 msgid ""
21691 " <operatingsystems>\n"
21692 "   <operatingsystem>\n"
21693 "     ...\n"
21694 "     <applications>\n"
21695 "       <application>\n"
21696 "         <name>coreutils</name>\n"
21697 "         <version>8.5</version>\n"
21698 "         <release>1</release>\n"
21699 "       </application>\n"
21700 "\n"
21701 msgstr ""
21702
21703 #. type: textblock
21704 #: ../inspector/virt-inspector.pod:262
21705 msgid ""
21706 "The version and release fields may not be available for some types guests.  "
21707 "Other fields are possible, see L<guestfs(3)/"
21708 "guestfs_inspect_list_applications>."
21709 msgstr ""
21710
21711 #. type: =head2
21712 #: ../inspector/virt-inspector.pod:266
21713 msgid "E<lt>drive_mappingsE<gt>"
21714 msgstr ""
21715
21716 #. type: textblock
21717 #: ../inspector/virt-inspector.pod:268
21718 msgid ""
21719 "For operating systems like Windows which use drive letters, virt-inspector "
21720 "is able to find out how drive letters map to filesystems."
21721 msgstr ""
21722
21723 #. type: verbatim
21724 #: ../inspector/virt-inspector.pod:272
21725 #, no-wrap
21726 msgid ""
21727 " <operatingsystems>\n"
21728 "   <operatingsystem>\n"
21729 "     ...\n"
21730 "     <drive_mappings>\n"
21731 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21732 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21733 "     </drive_mappings>\n"
21734 "\n"
21735 msgstr ""
21736
21737 #. type: textblock
21738 #: ../inspector/virt-inspector.pod:280
21739 msgid ""
21740 "In the example above, drive C maps to the filesystem on the second partition "
21741 "on the first disk, and drive E maps to the filesystem on the first partition "
21742 "on the second disk."
21743 msgstr ""
21744
21745 #. type: textblock
21746 #: ../inspector/virt-inspector.pod:284
21747 msgid ""
21748 "Note that this only covers permanent local filesystem mappings, not things "
21749 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21750 "here."
21751 msgstr ""
21752
21753 #. type: =head2
21754 #: ../inspector/virt-inspector.pod:288
21755 msgid "E<lt>iconE<gt>"
21756 msgstr ""
21757
21758 #. type: textblock
21759 #: ../inspector/virt-inspector.pod:290
21760 msgid ""
21761 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21762 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21763 "very large and high quality."
21764 msgstr ""
21765
21766 #. type: verbatim
21767 #: ../inspector/virt-inspector.pod:294
21768 #, no-wrap
21769 msgid ""
21770 " <operatingsystems>\n"
21771 "   <operatingsystem>\n"
21772 "     ...\n"
21773 "     <icon>\n"
21774 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21775 "       [... many lines of base64 data ...]\n"
21776 "     </icon>\n"
21777 "\n"
21778 msgstr ""
21779
21780 #. type: textblock
21781 #: ../inspector/virt-inspector.pod:302
21782 msgid ""
21783 "To display the icon, you have to extract it and convert the base64 data back "
21784 "to a binary file.  Use an XPath query or simply an editor to extract the "
21785 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21786 "to a PNG file:"
21787 msgstr ""
21788
21789 #. type: verbatim
21790 #: ../inspector/virt-inspector.pod:307
21791 #, no-wrap
21792 msgid ""
21793 " base64 -i -d < icon.data > icon.png\n"
21794 "\n"
21795 msgstr ""
21796
21797 #. type: =head2
21798 #: ../inspector/virt-inspector.pod:309
21799 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21800 msgstr ""
21801
21802 #. type: textblock
21803 #: ../inspector/virt-inspector.pod:311
21804 msgid ""
21805 "Virt-inspector can detect some operating system installers on install disks, "
21806 "live CDs, bootable USB keys and more."
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../inspector/virt-inspector.pod:314
21811 msgid ""
21812 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21813 "fields may be present to indicate a live CD, network installer, or one part "
21814 "of a multipart CD.  For example:"
21815 msgstr ""
21816
21817 #. type: verbatim
21818 #: ../inspector/virt-inspector.pod:318
21819 #, no-wrap
21820 msgid ""
21821 " <operatingsystems>\n"
21822 "   <operatingsystem>\n"
21823 "     <root>/dev/sda</root>\n"
21824 "     <name>linux</name>\n"
21825 "     <arch>i386</arch>\n"
21826 "     <distro>ubuntu</distro>\n"
21827 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21828 "     <major_version>10</major_version>\n"
21829 "     <minor_version>10</minor_version>\n"
21830 "     <format>installer</format>\n"
21831 "     <live/>\n"
21832 "\n"
21833 msgstr ""
21834
21835 #. type: =head1
21836 #: ../inspector/virt-inspector.pod:330
21837 msgid "USING XPATH"
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../inspector/virt-inspector.pod:332
21842 msgid ""
21843 "You can use the XPath query language to select parts of the XML.  We "
21844 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21845 msgstr ""
21846
21847 #. type: verbatim
21848 #: ../inspector/virt-inspector.pod:338
21849 #, no-wrap
21850 msgid ""
21851 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21852 " <filesystems>\n"
21853 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21854 "        <type>ext4</type>\n"
21855 " [...]\n"
21856 "\n"
21857 msgstr ""
21858
21859 #. type: verbatim
21860 #: ../inspector/virt-inspector.pod:344
21861 #, no-wrap
21862 msgid ""
21863 " $ virt-inspector -d Guest | \\\n"
21864 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21865 " ext4\n"
21866 "\n"
21867 msgstr ""
21868
21869 #. type: verbatim
21870 #: ../inspector/virt-inspector.pod:348
21871 #, no-wrap
21872 msgid ""
21873 " $ virt-inspector -d Guest | \\\n"
21874 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21875 " [displays the guest icon, if there is one]\n"
21876 "\n"
21877 msgstr ""
21878
21879 #. type: =head1
21880 #: ../inspector/virt-inspector.pod:359
21881 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../inspector/virt-inspector.pod:361
21886 msgid ""
21887 "Early versions of libguestfs shipped with a different virt-inspector program "
21888 "written in Perl (the current version is written in C).  The XML output of "
21889 "the Perl virt-inspector was different and it could also output in other "
21890 "formats like text."
21891 msgstr ""
21892
21893 #. type: textblock
21894 #: ../inspector/virt-inspector.pod:366
21895 msgid ""
21896 "The old virt-inspector is no longer supported or shipped with libguestfs."
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../inspector/virt-inspector.pod:369
21901 msgid ""
21902 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21903 "versions of virt-inspector with different names:"
21904 msgstr ""
21905
21906 #. type: verbatim
21907 #: ../inspector/virt-inspector.pod:372
21908 #, no-wrap
21909 msgid ""
21910 " virt-inspector     Old Perl version.\n"
21911 " virt-inspector2    New C version.\n"
21912 "\n"
21913 msgstr ""
21914
21915 #. type: textblock
21916 #: ../inspector/virt-inspector.pod:382
21917 msgid ""
21918 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21919 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21920 msgstr ""
21921
21922 #. type: textblock
21923 #: ../inspector/virt-inspector.pod:399
21924 msgid "Matthew Booth L<mbooth@redhat.com>"
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../java/examples/guestfs-java.pod:5
21929 msgid "guestfs-java - How to use libguestfs from Java"
21930 msgstr ""
21931
21932 #. type: verbatim
21933 #: ../java/examples/guestfs-java.pod:9
21934 #, no-wrap
21935 msgid ""
21936 " import com.redhat.et.libguestfs.*;\n"
21937 " \n"
21938 msgstr ""
21939
21940 #. type: verbatim
21941 #: ../java/examples/guestfs-java.pod:11
21942 #, no-wrap
21943 msgid ""
21944 " GuestFS g = new GuestFS ();\n"
21945 " g.add_drive_opts (\"disk.img\", null);\n"
21946 " g.launch ();\n"
21947 "\n"
21948 msgstr ""
21949
21950 #. type: textblock
21951 #: ../java/examples/guestfs-java.pod:17
21952 msgid ""
21953 "This manual page documents how to call libguestfs from the Java programming "
21954 "language.  This page just documents the differences from the C API and gives "
21955 "some examples.  If you are not familiar with using libguestfs, you also need "
21956 "to read L<guestfs(3)>."
21957 msgstr ""
21958
21959 #. type: =head2
21960 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21961 msgid "CLOSING THE HANDLE"
21962 msgstr ""
21963
21964 #. type: textblock
21965 #: ../java/examples/guestfs-java.pod:24
21966 msgid ""
21967 "The handle is closed when it is reaped by the garbage collector.  Because "
21968 "libguestfs handles include a lot of state, it is also possible to close (and "
21969 "hence free) them explicitly by calling the C<close> method."
21970 msgstr ""
21971
21972 #. type: =head2
21973 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21974 #: ../python/examples/guestfs-python.pod:21
21975 #: ../ruby/examples/guestfs-ruby.pod:22
21976 msgid "EXCEPTIONS"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../java/examples/guestfs-java.pod:31
21981 msgid ""
21982 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21983 "exception.  This has a single parameter which is the error message (a "
21984 "C<String>)."
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../java/examples/guestfs-java.pod:35
21989 msgid "Calling any method on a closed handle raises the same exception."
21990 msgstr ""
21991
21992 #. type: textblock
21993 #: ../java/examples/guestfs-java.pod:47
21994 msgid ""
21995 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21996 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21997 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../ocaml/examples/guestfs-ocaml.pod:5
22002 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../ocaml/examples/guestfs-ocaml.pod:9
22007 msgid "Module style:"
22008 msgstr ""
22009
22010 #. type: verbatim
22011 #: ../ocaml/examples/guestfs-ocaml.pod:11
22012 #, no-wrap
22013 msgid ""
22014 " let g = Guestfs.create () in\n"
22015 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22016 " Guestfs.launch g;\n"
22017 "\n"
22018 msgstr ""
22019
22020 #. type: textblock
22021 #: ../ocaml/examples/guestfs-ocaml.pod:15
22022 msgid "Object-oriented style:"
22023 msgstr ""
22024
22025 #. type: verbatim
22026 #: ../ocaml/examples/guestfs-ocaml.pod:17
22027 #, no-wrap
22028 msgid ""
22029 " let g = new Guestfs.guestfs () in\n"
22030 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22031 " g#launch ();\n"
22032 "\n"
22033 msgstr ""
22034
22035 #. type: verbatim
22036 #: ../ocaml/examples/guestfs-ocaml.pod:21
22037 #, no-wrap
22038 msgid ""
22039 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22040 "or:\n"
22041 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22042 "\n"
22043 msgstr ""
22044
22045 #. type: textblock
22046 #: ../ocaml/examples/guestfs-ocaml.pod:27
22047 msgid ""
22048 "This manual page documents how to call libguestfs from the OCaml programming "
22049 "language.  This page just documents the differences from the C API and gives "
22050 "some examples.  If you are not familiar with using libguestfs, you also need "
22051 "to read L<guestfs(3)>."
22052 msgstr ""
22053
22054 #. type: =head2
22055 #: ../ocaml/examples/guestfs-ocaml.pod:32
22056 msgid "PROGRAMMING STYLES"
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../ocaml/examples/guestfs-ocaml.pod:34
22061 msgid ""
22062 "There are two different programming styles supported by the OCaml bindings.  "
22063 "You can use a module style, with each C function mapped to an OCaml function:"
22064 msgstr ""
22065
22066 #. type: verbatim
22067 #: ../ocaml/examples/guestfs-ocaml.pod:38
22068 #, no-wrap
22069 msgid ""
22070 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22071 "\n"
22072 msgstr ""
22073
22074 #. type: textblock
22075 #: ../ocaml/examples/guestfs-ocaml.pod:40
22076 msgid "becomes:"
22077 msgstr ""
22078
22079 #. type: verbatim
22080 #: ../ocaml/examples/guestfs-ocaml.pod:42
22081 #, no-wrap
22082 msgid ""
22083 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22084 "\n"
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../ocaml/examples/guestfs-ocaml.pod:44
22089 msgid ""
22090 "Alternately you can use an object-oriented style, calling methods on the "
22091 "class C<Guestfs.guestfs>:"
22092 msgstr ""
22093
22094 #. type: verbatim
22095 #: ../ocaml/examples/guestfs-ocaml.pod:47
22096 #, no-wrap
22097 msgid ""
22098 " method set_verbose : bool -> unit\n"
22099 "\n"
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../ocaml/examples/guestfs-ocaml.pod:49
22104 msgid ""
22105 "The object-oriented style is usually briefer, and the minor performance "
22106 "penalty isn't noticable in the general overhead of performing libguestfs "
22107 "functions."
22108 msgstr ""
22109
22110 #. type: textblock
22111 #: ../ocaml/examples/guestfs-ocaml.pod:55
22112 msgid ""
22113 "The handle is closed when it is reaped by the garbage collector.  Because "
22114 "libguestfs handles include a lot of state, it is also possible to close (and "
22115 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22116 "method."
22117 msgstr ""
22118
22119 #. type: textblock
22120 #: ../ocaml/examples/guestfs-ocaml.pod:62
22121 msgid ""
22122 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22123 "exception.  This has a single parameter which is the error message (a "
22124 "string)."
22125 msgstr ""
22126
22127 #. type: textblock
22128 #: ../ocaml/examples/guestfs-ocaml.pod:66
22129 msgid ""
22130 "Calling any function/method on a closed handle raises C<Guestfs."
22131 "Handle_closed>.  The single parameter is the name of the function that you "
22132 "called."
22133 msgstr ""
22134
22135 #. type: textblock
22136 #: ../ocaml/examples/guestfs-ocaml.pod:80
22137 msgid ""
22138 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22139 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22140 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22141 msgstr ""
22142
22143 #. type: textblock
22144 #: ../perl/examples/guestfs-perl.pod:5
22145 msgid "guestfs-perl - How to use libguestfs from Perl"
22146 msgstr ""
22147
22148 #. type: verbatim
22149 #: ../perl/examples/guestfs-perl.pod:9
22150 #, no-wrap
22151 msgid ""
22152 " use Sys::Guestfs;\n"
22153 " \n"
22154 msgstr ""
22155
22156 #. type: verbatim
22157 #: ../perl/examples/guestfs-perl.pod:11
22158 #, no-wrap
22159 msgid ""
22160 " my $h = Sys::Guestfs->new ();\n"
22161 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22162 " $h->launch ();\n"
22163 " $h->mount_options ('', '/dev/sda1', '/');\n"
22164 " $h->touch ('/hello');\n"
22165 " $h->sync ();\n"
22166 "\n"
22167 msgstr ""
22168
22169 #. type: textblock
22170 #: ../perl/examples/guestfs-perl.pod:20
22171 msgid ""
22172 "This manual page documents how to call libguestfs from the Perl programming "
22173 "language.  This page just documents the differences from the C API and gives "
22174 "some examples.  If you are not familiar with using libguestfs, you also need "
22175 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22176 msgstr ""
22177
22178 #. type: =head2
22179 #: ../perl/examples/guestfs-perl.pod:26
22180 msgid "ERRORS"
22181 msgstr ""
22182
22183 #. type: textblock
22184 #: ../perl/examples/guestfs-perl.pod:28
22185 msgid ""
22186 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22187 ">)."
22188 msgstr ""
22189
22190 #. type: textblock
22191 #: ../perl/examples/guestfs-perl.pod:41
22192 msgid ""
22193 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22194 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22195 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22196 msgstr ""
22197
22198 #. type: textblock
22199 #: ../python/examples/guestfs-python.pod:5
22200 msgid "guestfs-python - How to use libguestfs from Python"
22201 msgstr ""
22202
22203 #. type: verbatim
22204 #: ../python/examples/guestfs-python.pod:9
22205 #, no-wrap
22206 msgid ""
22207 " import guestfs\n"
22208 " g = guestfs.GuestFS ()\n"
22209 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22210 " g.launch\n"
22211 "\n"
22212 msgstr ""
22213
22214 #. type: textblock
22215 #: ../python/examples/guestfs-python.pod:16
22216 msgid ""
22217 "This manual page documents how to call libguestfs from the Python "
22218 "programming language.  This page just documents the differences from the C "
22219 "API and gives some examples.  If you are not familiar with using libguestfs, "
22220 "you also need to read L<guestfs(3)>."
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../python/examples/guestfs-python.pod:23
22225 msgid ""
22226 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22227 "single string argument which is the error message."
22228 msgstr ""
22229
22230 #. type: =head2
22231 #: ../python/examples/guestfs-python.pod:26
22232 msgid "MORE DOCUMENTATION"
22233 msgstr ""
22234
22235 #. type: textblock
22236 #: ../python/examples/guestfs-python.pod:28
22237 msgid "Type:"
22238 msgstr ""
22239
22240 #. type: verbatim
22241 #: ../python/examples/guestfs-python.pod:30
22242 #, no-wrap
22243 msgid ""
22244 " $ python\n"
22245 " >>> import guestfs\n"
22246 " >>> help (guestfs)\n"
22247 "\n"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../python/examples/guestfs-python.pod:44
22252 msgid ""
22253 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22254 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22255 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22256 msgstr ""
22257
22258 #. type: textblock
22259 #: ../rescue/virt-rescue.pod:5
22260 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22261 msgstr ""
22262
22263 #. type: verbatim
22264 #: ../rescue/virt-rescue.pod:9
22265 #, no-wrap
22266 msgid ""
22267 " virt-rescue [--options] -d domname\n"
22268 "\n"
22269 msgstr ""
22270
22271 #. type: verbatim
22272 #: ../rescue/virt-rescue.pod:11
22273 #, no-wrap
22274 msgid ""
22275 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22276 "\n"
22277 msgstr ""
22278
22279 #. type: verbatim
22280 #: ../rescue/virt-rescue.pod:15
22281 #, no-wrap
22282 msgid ""
22283 " virt-rescue [--options] domname\n"
22284 "\n"
22285 msgstr ""
22286
22287 #. type: verbatim
22288 #: ../rescue/virt-rescue.pod:17
22289 #, no-wrap
22290 msgid ""
22291 " virt-rescue [--options] disk.img [disk.img ...]\n"
22292 "\n"
22293 msgstr ""
22294
22295 #. type: textblock
22296 #: ../rescue/virt-rescue.pod:21
22297 msgid ""
22298 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22299 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22300 "you from doing this, but doesn't catch all cases."
22301 msgstr ""
22302
22303 #. type: textblock
22304 #: ../rescue/virt-rescue.pod:25
22305 msgid ""
22306 "However if you use the I<--ro> (read only) option, then you can attach a "
22307 "shell to a live virtual machine.  The results might be strange or "
22308 "inconsistent at times but you won't get disk corruption."
22309 msgstr ""
22310
22311 #. type: textblock
22312 #: ../rescue/virt-rescue.pod:31
22313 msgid ""
22314 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22315 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22316 "recovery tools which you can use to examine or rescue a virtual machine or "
22317 "disk image."
22318 msgstr ""
22319
22320 #. type: textblock
22321 #: ../rescue/virt-rescue.pod:36
22322 msgid ""
22323 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22324 "on disk image(s):"
22325 msgstr ""
22326
22327 #. type: verbatim
22328 #: ../rescue/virt-rescue.pod:39
22329 #, no-wrap
22330 msgid ""
22331 " virt-rescue -d GuestName\n"
22332 "\n"
22333 msgstr ""
22334
22335 #. type: verbatim
22336 #: ../rescue/virt-rescue.pod:41
22337 #, no-wrap
22338 msgid ""
22339 " virt-rescue --ro -a /path/to/disk.img\n"
22340 "\n"
22341 msgstr ""
22342
22343 #. type: verbatim
22344 #: ../rescue/virt-rescue.pod:43
22345 #, no-wrap
22346 msgid ""
22347 " virt-rescue -a /dev/sdc\n"
22348 "\n"
22349 msgstr ""
22350
22351 #. type: textblock
22352 #: ../rescue/virt-rescue.pod:45
22353 msgid "For live VMs you I<must> use the --ro option."
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../rescue/virt-rescue.pod:47
22358 msgid ""
22359 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22360 "in an interactive bash shell where you can use many ordinary Linux "
22361 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22362 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22363 "is an empty directory called C</sysroot> where you can mount filesystems."
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../rescue/virt-rescue.pod:54
22368 msgid ""
22369 "In the example below, we list logical volumes, then choose one to mount "
22370 "under C</sysroot>:"
22371 msgstr ""
22372
22373 #. type: verbatim
22374 #: ../rescue/virt-rescue.pod:57
22375 #, no-wrap
22376 msgid ""
22377 " ><rescue> lvs\n"
22378 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22379 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22380 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22381 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22382 " ><rescue> ls /sysroot\n"
22383 "\n"
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../rescue/virt-rescue.pod:64
22388 msgid ""
22389 "If you don't know what filesystems are available on the virtual machine then "
22390 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22391 msgstr ""
22392
22393 #. type: textblock
22394 #: ../rescue/virt-rescue.pod:70
22395 msgid ""
22396 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22397 "virtual machine.  For example you can use it on a blank file if you want to "
22398 "partition that file (although we would recommend using L<guestfish(1)> "
22399 "instead as it is more suitable for this purpose).  You can even use virt-"
22400 "rescue on things like SD cards."
22401 msgstr ""
22402
22403 #. type: textblock
22404 #: ../rescue/virt-rescue.pod:76
22405 msgid ""
22406 "Virt-rescue does not require root.  You only need to run it as root if you "
22407 "need root to open the disk image."
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../rescue/virt-rescue.pod:79
22412 msgid ""
22413 "This tool is just designed for quick interactive hacking on a virtual "
22414 "machine.  For more structured access to a virtual machine disk image, you "
22415 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22416 "make scripted changes to guests, use L<guestfish(1)>."
22417 msgstr ""
22418
22419 #. type: =item
22420 #: ../rescue/virt-rescue.pod:103
22421 msgid "B<--append kernelopts>"
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../rescue/virt-rescue.pod:105
22426 msgid "Pass additional options to the rescue kernel."
22427 msgstr ""
22428
22429 #. type: verbatim
22430 #: ../rescue/virt-rescue.pod:135
22431 #, no-wrap
22432 msgid ""
22433 " virt-rescue --format=raw -a disk.img\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: verbatim
22438 #: ../rescue/virt-rescue.pod:139
22439 #, no-wrap
22440 msgid ""
22441 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22442 "\n"
22443 msgstr ""
22444
22445 #. type: =item
22446 #: ../rescue/virt-rescue.pod:148
22447 msgid "B<-m MB>"
22448 msgstr ""
22449
22450 #. type: =item
22451 #: ../rescue/virt-rescue.pod:150
22452 msgid "B<--memsize MB>"
22453 msgstr ""
22454
22455 #. type: textblock
22456 #: ../rescue/virt-rescue.pod:152
22457 msgid ""
22458 "Change the amount of memory allocated to the rescue system.  The default is "
22459 "set by libguestfs and is small but adequate for running system tools.  The "
22460 "occasional program might need more memory.  The parameter is specified in "
22461 "megabytes."
22462 msgstr ""
22463
22464 #. type: =item
22465 #: ../rescue/virt-rescue.pod:157
22466 msgid "B<--network>"
22467 msgstr ""
22468
22469 #. type: textblock
22470 #: ../rescue/virt-rescue.pod:159
22471 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22472 msgstr ""
22473
22474 #. type: textblock
22475 #: ../rescue/virt-rescue.pod:165
22476 msgid "Open the image read-only."
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../rescue/virt-rescue.pod:175
22481 msgid ""
22482 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22483 "SELINUX> before using this option."
22484 msgstr ""
22485
22486 #. type: =item
22487 #: ../rescue/virt-rescue.pod:178
22488 msgid "B<--smp> N"
22489 msgstr ""
22490
22491 #. type: textblock
22492 #: ../rescue/virt-rescue.pod:180
22493 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../rescue/virt-rescue.pod:198
22498 msgid ""
22499 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22500 "are done read-write."
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../rescue/virt-rescue.pod:211
22505 msgid "Previous versions of virt-rescue allowed you to write either:"
22506 msgstr ""
22507
22508 #. type: verbatim
22509 #: ../rescue/virt-rescue.pod:213
22510 #, no-wrap
22511 msgid ""
22512 " virt-rescue disk.img [disk.img ...]\n"
22513 "\n"
22514 msgstr ""
22515
22516 #. type: verbatim
22517 #: ../rescue/virt-rescue.pod:217
22518 #, no-wrap
22519 msgid ""
22520 " virt-rescue guestname\n"
22521 "\n"
22522 msgstr ""
22523
22524 #. type: =head1
22525 #: ../rescue/virt-rescue.pod:225
22526 msgid "NETWORK"
22527 msgstr ""
22528
22529 #. type: textblock
22530 #: ../rescue/virt-rescue.pod:227
22531 msgid ""
22532 "Adding the I<--network> option enables QEMU user networking in the rescue "
22533 "appliance.  There are some differences between user networking and ordinary "
22534 "networking:"
22535 msgstr ""
22536
22537 #. type: =item
22538 #: ../rescue/virt-rescue.pod:233
22539 msgid "ping does not work"
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../rescue/virt-rescue.pod:235
22544 msgid ""
22545 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22546 "send the ping packets, and because virt-rescue must be able to run as non-"
22547 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22548 "The ping command will appear to resolve addresses but will not be able to "
22549 "send or receive any packets.  This does not mean that the network is not "
22550 "working."
22551 msgstr ""
22552
22553 #. type: =item
22554 #: ../rescue/virt-rescue.pod:242
22555 msgid "cannot receive connections"
22556 msgstr ""
22557
22558 #. type: textblock
22559 #: ../rescue/virt-rescue.pod:244
22560 msgid "QEMU user networking cannot receive incoming connections."
22561 msgstr ""
22562
22563 #. type: =item
22564 #: ../rescue/virt-rescue.pod:246
22565 msgid "making TCP connections"
22566 msgstr ""
22567
22568 #. type: textblock
22569 #: ../rescue/virt-rescue.pod:248
22570 msgid ""
22571 "The virt-rescue appliance needs to be small and so does not include many "
22572 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22573 "make TCP connections from the shell using the magical C</dev/tcp/"
22574 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22575 msgstr ""
22576
22577 #. type: verbatim
22578 #: ../rescue/virt-rescue.pod:253
22579 #, no-wrap
22580 msgid ""
22581 " exec 3<>/dev/tcp/redhat.com/80\n"
22582 " echo \"GET /\" >&3\n"
22583 " cat <&3\n"
22584 "\n"
22585 msgstr ""
22586
22587 #. type: textblock
22588 #: ../rescue/virt-rescue.pod:257
22589 msgid "See L<bash(1)> for more details."
22590 msgstr ""
22591
22592 #. type: textblock
22593 #: ../rescue/virt-rescue.pod:263
22594 msgid ""
22595 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22596 "ENVIRONMENT VARIABLES> for the complete list."
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../rescue/virt-rescue.pod:290
22601 msgid ""
22602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22603 "libguestfs.org/>."
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../resize/virt-resize.pod:5
22608 msgid "virt-resize - Resize a virtual machine disk"
22609 msgstr ""
22610
22611 #. type: verbatim
22612 #: ../resize/virt-resize.pod:9
22613 #, no-wrap
22614 msgid ""
22615 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22616 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22617 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22618 "\n"
22619 msgstr ""
22620
22621 #. type: textblock
22622 #: ../resize/virt-resize.pod:15
22623 msgid ""
22624 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22625 "larger or smaller overall, and resizing or deleting any partitions contained "
22626 "within."
22627 msgstr ""
22628
22629 #. type: textblock
22630 #: ../resize/virt-resize.pod:19
22631 msgid ""
22632 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22633 "not> be used on live virtual machines - for consistent results, shut the "
22634 "virtual machine down before resizing it."
22635 msgstr ""
22636
22637 #. type: textblock
22638 #: ../resize/virt-resize.pod:23
22639 msgid ""
22640 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22641 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22642 msgstr ""
22643
22644 #. type: =item
22645 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:576
22646 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22647 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
22648 msgid "1."
22649 msgstr ""
22650
22651 #. type: textblock
22652 #: ../resize/virt-resize.pod:33
22653 msgid ""
22654 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22655 "fill the extra 5GB of space."
22656 msgstr ""
22657
22658 #. type: verbatim
22659 #: ../resize/virt-resize.pod:36
22660 #, no-wrap
22661 msgid ""
22662 " virt-filesystems --long -h --all -a olddisk\n"
22663 " \n"
22664 msgstr ""
22665
22666 #. type: verbatim
22667 #: ../resize/virt-resize.pod:38
22668 #, no-wrap
22669 msgid ""
22670 " truncate -r olddisk newdisk\n"
22671 " truncate -s +5G newdisk\n"
22672 " \n"
22673 msgstr ""
22674
22675 #. type: verbatim
22676 #: ../resize/virt-resize.pod:41
22677 #, no-wrap
22678 msgid ""
22679 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22680 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22681 "\n"
22682 msgstr ""
22683
22684 #. type: =item
22685 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:583
22686 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22687 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
22688 msgid "2."
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../resize/virt-resize.pod:46
22693 msgid ""
22694 "As above, but make the /boot partition 200MB bigger, while giving the "
22695 "remaining space to /dev/sda2:"
22696 msgstr ""
22697
22698 #. type: verbatim
22699 #: ../resize/virt-resize.pod:49
22700 #, no-wrap
22701 msgid ""
22702 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22703 "   olddisk newdisk\n"
22704 "\n"
22705 msgstr ""
22706
22707 #. type: =item
22708 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:589
22709 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22710 #: ../src/guestfs.pod:1436
22711 msgid "3."
22712 msgstr ""
22713
22714 #. type: textblock
22715 #: ../resize/virt-resize.pod:54
22716 msgid ""
22717 "As in the first example, but expand a logical volume as the final step.  "
22718 "This is what you would typically use for Linux guests that use LVM:"
22719 msgstr ""
22720
22721 #. type: verbatim
22722 #: ../resize/virt-resize.pod:58
22723 #, no-wrap
22724 msgid ""
22725 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22726 "   olddisk newdisk\n"
22727 "\n"
22728 msgstr ""
22729
22730 #. type: =item
22731 #: ../resize/virt-resize.pod:61
22732 msgid "4."
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../resize/virt-resize.pod:63
22737 msgid ""
22738 "As in the first example, but the output format will be qcow2 instead of a "
22739 "raw disk:"
22740 msgstr ""
22741
22742 #. type: verbatim
22743 #: ../resize/virt-resize.pod:66
22744 #, no-wrap
22745 msgid ""
22746 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22747 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22748 "\n"
22749 msgstr ""
22750
22751 #. type: =head1
22752 #: ../resize/virt-resize.pod:71
22753 msgid "DETAILED USAGE"
22754 msgstr ""
22755
22756 #. type: =head2
22757 #: ../resize/virt-resize.pod:73
22758 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22759 msgstr ""
22760
22761 #. type: =item
22762 #: ../resize/virt-resize.pod:77
22763 msgid "1. Shut down the virtual machine"
22764 msgstr ""
22765
22766 #. type: =item
22767 #: ../resize/virt-resize.pod:79
22768 msgid "2. Locate input disk image"
22769 msgstr ""
22770
22771 #. type: textblock
22772 #: ../resize/virt-resize.pod:81
22773 msgid ""
22774 "Locate the input disk image (ie. the file or device on the host containing "
22775 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22776 "dumpxml> like this to find the disk image name:"
22777 msgstr ""
22778
22779 #. type: verbatim
22780 #: ../resize/virt-resize.pod:85
22781 #, no-wrap
22782 msgid ""
22783 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22784 " Found 1 nodes:\n"
22785 " -- NODE --\n"
22786 " <source dev=\"/dev/vg/lv_guest\" />\n"
22787 "\n"
22788 msgstr ""
22789
22790 #. type: =item
22791 #: ../resize/virt-resize.pod:90
22792 msgid "3. Look at current sizing"
22793 msgstr ""
22794
22795 #. type: textblock
22796 #: ../resize/virt-resize.pod:92
22797 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22798 msgstr ""
22799
22800 #. type: verbatim
22801 #: ../resize/virt-resize.pod:95
22802 #, no-wrap
22803 msgid ""
22804 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22805 " Name       Type       Size  Parent\n"
22806 " /dev/sda1  partition  101M  /dev/sda\n"
22807 " /dev/sda2  partition  7.9G  /dev/sda\n"
22808 " /dev/sda   device     8.0G  -\n"
22809 "\n"
22810 msgstr ""
22811
22812 #. type: textblock
22813 #: ../resize/virt-resize.pod:101
22814 msgid ""
22815 "(This example is a virtual machine with an 8 GB disk which we would like to "
22816 "expand up to 10 GB)."
22817 msgstr ""
22818
22819 #. type: =item
22820 #: ../resize/virt-resize.pod:104
22821 msgid "4. Create output disk"
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../resize/virt-resize.pod:106
22826 msgid ""
22827 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22828 "to store the resized output disk."
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../resize/virt-resize.pod:109
22833 msgid ""
22834 "To store the resized disk image in a file, create a file of a suitable size:"
22835 msgstr ""
22836
22837 #. type: verbatim
22838 #: ../resize/virt-resize.pod:112
22839 #, no-wrap
22840 msgid ""
22841 " # rm -f outdisk\n"
22842 " # truncate -s 10G outdisk\n"
22843 "\n"
22844 msgstr ""
22845
22846 #. type: textblock
22847 #: ../resize/virt-resize.pod:115
22848 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22849 msgstr ""
22850
22851 #. type: verbatim
22852 #: ../resize/virt-resize.pod:117
22853 #, no-wrap
22854 msgid ""
22855 " # lvcreate -L 10G -n lv_name vg_name\n"
22856 "\n"
22857 msgstr ""
22858
22859 #. type: textblock
22860 #: ../resize/virt-resize.pod:119
22861 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22862 msgstr ""
22863
22864 #. type: verbatim
22865 #: ../resize/virt-resize.pod:121
22866 #, no-wrap
22867 msgid ""
22868 " # virsh pool-list\n"
22869 " # virsh vol-create-as poolname newvol 10G\n"
22870 "\n"
22871 msgstr ""
22872
22873 #. type: =item
22874 #: ../resize/virt-resize.pod:124
22875 msgid "5. Resize"
22876 msgstr ""
22877
22878 #. type: textblock
22879 #: ../resize/virt-resize.pod:126
22880 msgid ""
22881 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22882 "file) and the output disk.  The output disk is the one created in the "
22883 "previous step."
22884 msgstr ""
22885
22886 #. type: verbatim
22887 #: ../resize/virt-resize.pod:130
22888 #, no-wrap
22889 msgid ""
22890 " # virt-resize indisk outdisk\n"
22891 "\n"
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../resize/virt-resize.pod:132
22896 msgid ""
22897 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22898 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22899 "larger, then an extra, empty partition is created at the end of the disk "
22900 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22901 "error."
22902 msgstr ""
22903
22904 #. type: textblock
22905 #: ../resize/virt-resize.pod:138
22906 msgid ""
22907 "More realistically you'd want to expand existing partitions in the disk "
22908 "image by passing extra options (for the full list see the L</OPTIONS> "
22909 "section below)."
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../resize/virt-resize.pod:142
22914 msgid ""
22915 "L</--expand> is the most useful option.  It expands the named partition "
22916 "within the disk to fill any extra space:"
22917 msgstr ""
22918
22919 #. type: verbatim
22920 #: ../resize/virt-resize.pod:145
22921 #, no-wrap
22922 msgid ""
22923 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22924 "\n"
22925 msgstr ""
22926
22927 #. type: textblock
22928 #: ../resize/virt-resize.pod:147
22929 msgid ""
22930 "(In this case, an extra partition is I<not> created at the end of the disk, "
22931 "because there will be no unused space)."
22932 msgstr ""
22933
22934 #. type: textblock
22935 #: ../resize/virt-resize.pod:150
22936 msgid ""
22937 "L</--resize> is the other commonly used option.  The following would "
22938 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22939 "rest of the available space:"
22940 msgstr ""
22941
22942 #. type: verbatim
22943 #: ../resize/virt-resize.pod:154
22944 #, no-wrap
22945 msgid ""
22946 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22947 "     indisk outdisk\n"
22948 "\n"
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../resize/virt-resize.pod:157
22953 msgid ""
22954 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22955 "if virt-resize knows how, it will resize the contents, the equivalent of "
22956 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22957 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22958 "filesystems, so you would have to online resize them after booting the guest."
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../resize/virt-resize.pod:164
22963 msgid "Other options are covered below."
22964 msgstr ""
22965
22966 #. type: =item
22967 #: ../resize/virt-resize.pod:166
22968 msgid "6. Test"
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../resize/virt-resize.pod:168
22973 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22974 msgstr ""
22975
22976 #. type: textblock
22977 #: ../resize/virt-resize.pod:170
22978 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22979 msgstr ""
22980
22981 #. type: verbatim
22982 #: ../resize/virt-resize.pod:172
22983 #, no-wrap
22984 msgid ""
22985 " # virsh edit guestname\n"
22986 "\n"
22987 msgstr ""
22988
22989 #. type: textblock
22990 #: ../resize/virt-resize.pod:174
22991 msgid ""
22992 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22993 "html#elementsDisks>"
22994 msgstr ""
22995
22996 #. type: textblock
22997 #: ../resize/virt-resize.pod:177
22998 msgid "Then start up the domain with the new, resized disk:"
22999 msgstr ""
23000
23001 #. type: verbatim
23002 #: ../resize/virt-resize.pod:179
23003 #, no-wrap
23004 msgid ""
23005 " # virsh start guestname\n"
23006 "\n"
23007 msgstr ""
23008
23009 #. type: textblock
23010 #: ../resize/virt-resize.pod:181
23011 msgid ""
23012 "and check that it still works.  See also the L</NOTES> section below for "
23013 "additional information."
23014 msgstr ""
23015
23016 #. type: =item
23017 #: ../resize/virt-resize.pod:184
23018 msgid "7. Resize LVs etc inside the guest"
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../resize/virt-resize.pod:186
23023 msgid "(This can also be done offline using L<guestfish(1)>)"
23024 msgstr ""
23025
23026 #. type: textblock
23027 #: ../resize/virt-resize.pod:188
23028 msgid ""
23029 "Once the guest has booted you should see the new space available, at least "
23030 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23031 "may need to resize LVs inside PVs, and also resize filesystem types that "
23032 "virt-resize does not know how to expand."
23033 msgstr ""
23034
23035 #. type: =head2
23036 #: ../resize/virt-resize.pod:195
23037 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23038 msgstr ""
23039
23040 #. type: textblock
23041 #: ../resize/virt-resize.pod:197
23042 msgid ""
23043 "Shrinking is somewhat more complex than expanding, and only an overview is "
23044 "given here."
23045 msgstr ""
23046
23047 #. type: textblock
23048 #: ../resize/virt-resize.pod:200
23049 msgid ""
23050 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23051 "filesystems).  The user has to shrink content before passing the disk image "
23052 "to virt-resize, and virt-resize will check that the content has been shrunk "
23053 "properly."
23054 msgstr ""
23055
23056 #. type: textblock
23057 #: ../resize/virt-resize.pod:205
23058 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../resize/virt-resize.pod:207
23063 msgid ""
23064 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23065 "steps 3 and 4 above to allocate a new disk image."
23066 msgstr ""
23067
23068 #. type: textblock
23069 #: ../resize/virt-resize.pod:210
23070 msgid ""
23071 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23072 msgstr ""
23073
23074 #. type: =head2
23075 #: ../resize/virt-resize.pod:213
23076 msgid "IGNORING OR DELETING PARTITIONS"
23077 msgstr ""
23078
23079 #. type: textblock
23080 #: ../resize/virt-resize.pod:215
23081 msgid ""
23082 "virt-resize also gives a convenient way to ignore or delete partitions when "
23083 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23084 "up the copy where you don't care about the existing contents of a "
23085 "partition.  Deleting a partition removes it completely, but note that it "
23086 "also renumbers any partitions after the one which is deleted, which can "
23087 "leave some guests unbootable."
23088 msgstr ""
23089
23090 #. type: =head2
23091 #: ../resize/virt-resize.pod:222
23092 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../resize/virt-resize.pod:224
23097 msgid ""
23098 "If the input disk is in qcow2 format, then you may prefer that the output is "
23099 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23100 "the fly.  The output format is simply determined by the format of the empty "
23101 "output container that you provide.  Thus to create qcow2 output, use:"
23102 msgstr ""
23103
23104 #. type: verbatim
23105 #: ../resize/virt-resize.pod:230
23106 #, no-wrap
23107 msgid ""
23108 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23109 "\n"
23110 msgstr ""
23111
23112 #. type: textblock
23113 #: ../resize/virt-resize.pod:232
23114 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23115 msgstr ""
23116
23117 #. type: textblock
23118 #: ../resize/virt-resize.pod:234
23119 msgid "Similarly, to get non-sparse raw output use:"
23120 msgstr ""
23121
23122 #. type: verbatim
23123 #: ../resize/virt-resize.pod:236
23124 #, no-wrap
23125 msgid ""
23126 " fallocate -l size outdisk\n"
23127 "\n"
23128 msgstr ""
23129
23130 #. type: textblock
23131 #: ../resize/virt-resize.pod:238
23132 msgid ""
23133 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23134 "dev/zero of=outdisk bs=1M count=..>)"
23135 msgstr ""
23136
23137 #. type: textblock
23138 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23139 msgid "Display help."
23140 msgstr ""
23141
23142 #. type: =item
23143 #: ../resize/virt-resize.pod:249
23144 msgid "B<--align-first auto>"
23145 msgstr ""
23146
23147 #. type: =item
23148 #: ../resize/virt-resize.pod:251
23149 msgid "B<--align-first never>"
23150 msgstr ""
23151
23152 #. type: =item
23153 #: ../resize/virt-resize.pod:253
23154 msgid "B<--align-first always>"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../resize/virt-resize.pod:255
23159 msgid ""
23160 "Align the first partition for improved performance (see also the I<--"
23161 "alignment> option)."
23162 msgstr ""
23163
23164 #. type: textblock
23165 #: ../resize/virt-resize.pod:258
23166 msgid ""
23167 "The default is I<--align-first auto> which only aligns the first partition "
23168 "if it is safe to do so.  That is, only when we know how to fix the "
23169 "bootloader automatically, and at the moment that can only be done for "
23170 "Windows guests."
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../resize/virt-resize.pod:263
23175 msgid ""
23176 "I<--align-first never> means we never move the first partition.  This is the "
23177 "safest option.  Try this if the guest does not boot after resizing."
23178 msgstr ""
23179
23180 #. type: textblock
23181 #: ../resize/virt-resize.pod:267
23182 msgid ""
23183 "I<--align-first always> means we always align the first partition (if it "
23184 "needs to be aligned).  For some guests this will break the bootloader, "
23185 "making the guest unbootable."
23186 msgstr ""
23187
23188 #. type: =item
23189 #: ../resize/virt-resize.pod:271
23190 msgid "B<--alignment N>"
23191 msgstr ""
23192
23193 #. type: textblock
23194 #: ../resize/virt-resize.pod:273
23195 msgid ""
23196 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23197 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23198 msgstr ""
23199
23200 #. type: textblock
23201 #: ../resize/virt-resize.pod:277
23202 msgid ""
23203 "Assuming 512 byte sector size inside the guest, here are some suitable "
23204 "values for this:"
23205 msgstr ""
23206
23207 #. type: =item
23208 #: ../resize/virt-resize.pod:282
23209 msgid "I<--alignment 1> (512 bytes)"
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../resize/virt-resize.pod:284
23214 msgid ""
23215 "The partitions would be packed together as closely as possible, but would be "
23216 "completely unaligned.  In some cases this can cause very poor performance.  "
23217 "See L<virt-alignment-scan(1)> for further details."
23218 msgstr ""
23219
23220 #. type: =item
23221 #: ../resize/virt-resize.pod:288
23222 msgid "I<--alignment 8> (4K)"
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../resize/virt-resize.pod:290
23227 msgid ""
23228 "This would be the minimum acceptable alignment for reasonable performance on "
23229 "modern hosts."
23230 msgstr ""
23231
23232 #. type: =item
23233 #: ../resize/virt-resize.pod:293
23234 msgid "I<--alignment 128> (64K)"
23235 msgstr ""
23236
23237 #. type: textblock
23238 #: ../resize/virt-resize.pod:295
23239 msgid ""
23240 "This alignment provides good performance when the host is using high end "
23241 "network storage."
23242 msgstr ""
23243
23244 #. type: =item
23245 #: ../resize/virt-resize.pod:298
23246 msgid "I<--alignment 2048> (1M)"
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../resize/virt-resize.pod:300
23251 msgid ""
23252 "This is the standard alignment used by all newly installed guests since "
23253 "around 2008."
23254 msgstr ""
23255
23256 #. type: =item
23257 #: ../resize/virt-resize.pod:305
23258 msgid "B<-d>"
23259 msgstr ""
23260
23261 #. type: =item
23262 #: ../resize/virt-resize.pod:307 ../tools/virt-make-fs.pl:177
23263 #: ../tools/virt-win-reg.pl:120
23264 msgid "B<--debug>"
23265 msgstr ""
23266
23267 #. type: textblock
23268 #: ../resize/virt-resize.pod:309 ../tools/virt-win-reg.pl:122
23269 msgid "Enable debugging messages."
23270 msgstr ""
23271
23272 #. type: =item
23273 #: ../resize/virt-resize.pod:311
23274 msgid "B<--delete part>"
23275 msgstr ""
23276
23277 #. type: textblock
23278 #: ../resize/virt-resize.pod:313
23279 msgid ""
23280 "Delete the named partition.  It would be more accurate to describe this as "
23281 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23282 "the original disk image is left intact."
23283 msgstr ""
23284
23285 #. type: textblock
23286 #: ../resize/virt-resize.pod:317
23287 msgid ""
23288 "Note that when you delete a partition, then anything contained in the "
23289 "partition is also deleted.  Furthermore, this causes any partitions that "
23290 "come after to be I<renumbered>, which can easily make your guest unbootable."
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../resize/virt-resize.pod:322 ../resize/virt-resize.pod:383
23295 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:145
23296 msgid "You can give this option multiple times."
23297 msgstr ""
23298
23299 #. type: =item
23300 #: ../resize/virt-resize.pod:324
23301 msgid "B<--expand part>"
23302 msgstr ""
23303
23304 #. type: textblock
23305 #: ../resize/virt-resize.pod:326
23306 msgid ""
23307 "Expand the named partition so it uses up all extra space (space left over "
23308 "after any other resize changes that you request have been done)."
23309 msgstr ""
23310
23311 #. type: textblock
23312 #: ../resize/virt-resize.pod:329
23313 msgid ""
23314 "If virt-resize knows how, it will expand the direct content of the "
23315 "partition.  For example, if the partition is an LVM PV, it will expand the "
23316 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23317 "content it doesn't know about alone."
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../resize/virt-resize.pod:334
23322 msgid "Currently virt-resize can resize:"
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../resize/virt-resize.pod:340
23327 msgid "ext2, ext3 and ext4 filesystems."
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../resize/virt-resize.pod:344
23332 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../resize/virt-resize.pod:346
23337 msgid ""
23338 "The filesystem must have been shut down consistently last time it was used.  "
23339 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23340 "consistency check, so at the first boot after resizing Windows will check "
23341 "the disk."
23342 msgstr ""
23343
23344 #. type: textblock
23345 #: ../resize/virt-resize.pod:353
23346 msgid ""
23347 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23348 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23349 "resize LVs as desired after boot."
23350 msgstr ""
23351
23352 #. type: textblock
23353 #: ../resize/virt-resize.pod:359
23354 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23355 msgstr ""
23356
23357 #. type: textblock
23358 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:538
23359 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23360 msgstr ""
23361
23362 #. type: =item
23363 #: ../resize/virt-resize.pod:365 ../sparsify/virt-sparsify.pod:125
23364 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23365 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23366 msgid "B<--format> raw"
23367 msgstr ""
23368
23369 #. type: textblock
23370 #: ../resize/virt-resize.pod:367 ../sparsify/virt-sparsify.pod:129
23371 msgid ""
23372 "Specify the format of the input disk image.  If this flag is not given then "
23373 "it is auto-detected from the image itself."
23374 msgstr ""
23375
23376 #. type: textblock
23377 #: ../resize/virt-resize.pod:373
23378 msgid ""
23379 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23380 "AND NON-SPARSE RAW FORMATS>."
23381 msgstr ""
23382
23383 #. type: =item
23384 #: ../resize/virt-resize.pod:376
23385 msgid "B<--ignore part>"
23386 msgstr ""
23387
23388 #. type: textblock
23389 #: ../resize/virt-resize.pod:378
23390 msgid ""
23391 "Ignore the named partition.  Effectively this means the partition is "
23392 "allocated on the destination disk, but the content is not copied across from "
23393 "the source disk.  The content of the partition will be blank (all zero "
23394 "bytes)."
23395 msgstr ""
23396
23397 #. type: =item
23398 #: ../resize/virt-resize.pod:385
23399 msgid "B<--LV-expand logvol>"
23400 msgstr ""
23401
23402 #. type: textblock
23403 #: ../resize/virt-resize.pod:387
23404 msgid ""
23405 "This takes the logical volume and, as a final step, expands it to fill all "
23406 "the space available in its volume group.  A typical usage, assuming a Linux "
23407 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23408 "lv_root> would be:"
23409 msgstr ""
23410
23411 #. type: verbatim
23412 #: ../resize/virt-resize.pod:392
23413 #, no-wrap
23414 msgid ""
23415 " virt-resize indisk outdisk \\\n"
23416 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23417 "\n"
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../resize/virt-resize.pod:395
23422 msgid ""
23423 "This would first expand the partition (and PV), and then expand the root "
23424 "device to fill the extra space in the PV."
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../resize/virt-resize.pod:398
23429 msgid ""
23430 "The contents of the LV are also resized if virt-resize knows how to do "
23431 "that.  You can stop virt-resize from trying to expand the content by using "
23432 "the option I<--no-expand-content>."
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../resize/virt-resize.pod:402
23437 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23438 msgstr ""
23439
23440 #. type: textblock
23441 #: ../resize/virt-resize.pod:404
23442 msgid ""
23443 "You can give this option multiple times, I<but> it doesn't make sense to do "
23444 "this unless the logical volumes you specify are all in different volume "
23445 "groups."
23446 msgstr ""
23447
23448 #. type: =item
23449 #: ../resize/virt-resize.pod:408 ../sparsify/virt-sparsify.pod:147
23450 msgid "B<--machine-readable>"
23451 msgstr ""
23452
23453 #. type: textblock
23454 #: ../resize/virt-resize.pod:410 ../sparsify/virt-sparsify.pod:149
23455 msgid ""
23456 "This option is used to make the output more machine friendly when being "
23457 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23458 msgstr ""
23459
23460 #. type: =item
23461 #: ../resize/virt-resize.pod:416
23462 msgid "B<--dryrun>"
23463 msgstr ""
23464
23465 #. type: textblock
23466 #: ../resize/virt-resize.pod:418
23467 msgid "Print a summary of what would be done, but don't do anything."
23468 msgstr ""
23469
23470 #. type: =item
23471 #: ../resize/virt-resize.pod:420
23472 msgid "B<--no-copy-boot-loader>"
23473 msgstr ""
23474
23475 #. type: textblock
23476 #: ../resize/virt-resize.pod:422
23477 msgid ""
23478 "By default, virt-resize copies over some sectors at the start of the disk "
23479 "(up to the beginning of the first partition).  Commonly these sectors "
23480 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23481 "in order for the guest to boot correctly."
23482 msgstr ""
23483
23484 #. type: textblock
23485 #: ../resize/virt-resize.pod:427
23486 msgid ""
23487 "If you specify this flag, then this initial copy is not done.  You may need "
23488 "to reinstall the boot loader in this case."
23489 msgstr ""
23490
23491 #. type: =item
23492 #: ../resize/virt-resize.pod:430
23493 msgid "B<--no-extra-partition>"
23494 msgstr ""
23495
23496 #. type: textblock
23497 #: ../resize/virt-resize.pod:432
23498 msgid ""
23499 "By default, virt-resize creates an extra partition if there is any extra, "
23500 "unused space after all resizing has happened.  Use this option to prevent "
23501 "the extra partition from being created.  If you do this then the extra space "
23502 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23503 "tool in the guest."
23504 msgstr ""
23505
23506 #. type: textblock
23507 #: ../resize/virt-resize.pod:438
23508 msgid ""
23509 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23510 "will be created."
23511 msgstr ""
23512
23513 #. type: =item
23514 #: ../resize/virt-resize.pod:441
23515 msgid "B<--no-expand-content>"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../resize/virt-resize.pod:443
23520 msgid ""
23521 "By default, virt-resize will try to expand the direct contents of "
23522 "partitions, if it knows how (see I<--expand> option above)."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../resize/virt-resize.pod:446
23527 msgid ""
23528 "If you give the I<--no-expand-content> option then virt-resize will not "
23529 "attempt this."
23530 msgstr ""
23531
23532 #. type: =item
23533 #: ../resize/virt-resize.pod:449
23534 msgid "B<--ntfsresize-force>"
23535 msgstr ""
23536
23537 #. type: textblock
23538 #: ../resize/virt-resize.pod:451
23539 msgid ""
23540 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23541 "the NTFS disk is marked as needing a consistency check.  You have to use "
23542 "this option if you want to resize a Windows guest multiple times without "
23543 "booting into Windows between each resize."
23544 msgstr ""
23545
23546 #. type: =item
23547 #: ../resize/virt-resize.pod:457
23548 msgid "B<--output-format> raw"
23549 msgstr ""
23550
23551 #. type: textblock
23552 #: ../resize/virt-resize.pod:459
23553 msgid ""
23554 "Specify the format of the output disk image.  If this flag is not given then "
23555 "it is auto-detected from the image itself."
23556 msgstr ""
23557
23558 #. type: textblock
23559 #: ../resize/virt-resize.pod:465
23560 msgid ""
23561 "Note that this option I<does not create> the output format.  This option "
23562 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23563 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23564 "SPARSE RAW FORMATS>."
23565 msgstr ""
23566
23567 #. type: textblock
23568 #: ../resize/virt-resize.pod:474
23569 msgid "Don't print the summary."
23570 msgstr ""
23571
23572 #. type: =item
23573 #: ../resize/virt-resize.pod:476
23574 msgid "B<--resize part=size>"
23575 msgstr ""
23576
23577 #. type: textblock
23578 #: ../resize/virt-resize.pod:478
23579 msgid ""
23580 "Resize the named partition (expanding or shrinking it) so that it has the "
23581 "given size."
23582 msgstr ""
23583
23584 #. type: textblock
23585 #: ../resize/virt-resize.pod:481
23586 msgid ""
23587 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23588 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23589 "size; or as a relative number or percentage.  For example:"
23590 msgstr ""
23591
23592 #. type: verbatim
23593 #: ../resize/virt-resize.pod:487
23594 #, no-wrap
23595 msgid ""
23596 " --resize /dev/sda2=10G\n"
23597 "\n"
23598 msgstr ""
23599
23600 #. type: verbatim
23601 #: ../resize/virt-resize.pod:489
23602 #, no-wrap
23603 msgid ""
23604 " --resize /dev/sda4=90%\n"
23605 "\n"
23606 msgstr ""
23607
23608 #. type: verbatim
23609 #: ../resize/virt-resize.pod:491
23610 #, no-wrap
23611 msgid ""
23612 " --resize /dev/sda2=+1G\n"
23613 "\n"
23614 msgstr ""
23615
23616 #. type: verbatim
23617 #: ../resize/virt-resize.pod:493
23618 #, no-wrap
23619 msgid ""
23620 " --resize /dev/sda2=-200M\n"
23621 "\n"
23622 msgstr ""
23623
23624 #. type: verbatim
23625 #: ../resize/virt-resize.pod:495
23626 #, no-wrap
23627 msgid ""
23628 " --resize /dev/sda1=+128K\n"
23629 "\n"
23630 msgstr ""
23631
23632 #. type: verbatim
23633 #: ../resize/virt-resize.pod:497
23634 #, no-wrap
23635 msgid ""
23636 " --resize /dev/sda1=+10%\n"
23637 "\n"
23638 msgstr ""
23639
23640 #. type: verbatim
23641 #: ../resize/virt-resize.pod:499
23642 #, no-wrap
23643 msgid ""
23644 " --resize /dev/sda1=-10%\n"
23645 "\n"
23646 msgstr ""
23647
23648 #. type: textblock
23649 #: ../resize/virt-resize.pod:501
23650 msgid ""
23651 "You can increase the size of any partition.  Virt-resize will expand the "
23652 "direct content of the partition if it knows how (see I<--expand> below)."
23653 msgstr ""
23654
23655 #. type: textblock
23656 #: ../resize/virt-resize.pod:505
23657 msgid ""
23658 "You can only I<decrease> the size of partitions that contain filesystems or "
23659 "PVs which have already been shrunk.  Virt-resize will check this has been "
23660 "done before proceeding, or else will print an error (see also I<--resize-"
23661 "force>)."
23662 msgstr ""
23663
23664 #. type: =item
23665 #: ../resize/virt-resize.pod:512
23666 msgid "B<--resize-force part=size>"
23667 msgstr ""
23668
23669 #. type: textblock
23670 #: ../resize/virt-resize.pod:514
23671 msgid ""
23672 "This is the same as I<--resize> except that it will let you decrease the "
23673 "size of any partition.  Generally this means you will lose any data which "
23674 "was at the end of the partition you shrink, but you may not care about that "
23675 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23676 "as a swap partition)."
23677 msgstr ""
23678
23679 #. type: textblock
23680 #: ../resize/virt-resize.pod:520
23681 msgid "See also the I<--ignore> option."
23682 msgstr ""
23683
23684 #. type: =item
23685 #: ../resize/virt-resize.pod:522
23686 msgid "B<--shrink part>"
23687 msgstr ""
23688
23689 #. type: textblock
23690 #: ../resize/virt-resize.pod:524
23691 msgid ""
23692 "Shrink the named partition until the overall disk image fits in the "
23693 "destination.  The named partition B<must> contain a filesystem or PV which "
23694 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23695 "online tools).  Virt-resize will check this and give an error if it has not "
23696 "been done."
23697 msgstr ""
23698
23699 #. type: textblock
23700 #: ../resize/virt-resize.pod:530
23701 msgid ""
23702 "The amount by which the overall disk must be shrunk (after carrying out all "
23703 "other operations requested by the user) is called the \"deficit\".  For "
23704 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23705 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23706 "would give an error unless the user specified a partition to shrink and that "
23707 "partition had more than a gigabyte of free space."
23708 msgstr ""
23709
23710 #. type: =head1
23711 #: ../resize/virt-resize.pod:548 ../sparsify/virt-sparsify.pod:177
23712 msgid "MACHINE READABLE OUTPUT"
23713 msgstr ""
23714
23715 #. type: textblock
23716 #: ../resize/virt-resize.pod:550
23717 msgid ""
23718 "The I<--machine-readable> option can be used to make the output more machine "
23719 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23720 "etc."
23721 msgstr ""
23722
23723 #. type: textblock
23724 #: ../resize/virt-resize.pod:554 ../sparsify/virt-sparsify.pod:183
23725 msgid "There are two ways to use this option."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../resize/virt-resize.pod:556
23730 msgid ""
23731 "Firstly use the option on its own to query the capabilities of the virt-"
23732 "resize binary.  Typical output looks like this:"
23733 msgstr ""
23734
23735 #. type: verbatim
23736 #: ../resize/virt-resize.pod:559
23737 #, no-wrap
23738 msgid ""
23739 " $ virt-resize --machine-readable\n"
23740 " virt-resize\n"
23741 " ntfsresize-force\n"
23742 " 32bitok\n"
23743 " ntfs\n"
23744 " btrfs\n"
23745 "\n"
23746 msgstr ""
23747
23748 #. type: textblock
23749 #: ../resize/virt-resize.pod:566 ../sparsify/virt-sparsify.pod:193
23750 msgid ""
23751 "A list of features is printed, one per line, and the program exits with "
23752 "status 0."
23753 msgstr ""
23754
23755 #. type: textblock
23756 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:196
23757 msgid ""
23758 "Secondly use the option in conjunction with other options to make the "
23759 "regular program output more machine friendly."
23760 msgstr ""
23761
23762 #. type: textblock
23763 #: ../resize/virt-resize.pod:572 ../sparsify/virt-sparsify.pod:199
23764 msgid "At the moment this means:"
23765 msgstr ""
23766
23767 #. type: textblock
23768 #: ../resize/virt-resize.pod:578 ../sparsify/virt-sparsify.pod:205
23769 msgid ""
23770 "Progress bar messages can be parsed from stdout by looking for this regular "
23771 "expression:"
23772 msgstr ""
23773
23774 #. type: verbatim
23775 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:208
23776 #, no-wrap
23777 msgid ""
23778 " ^[0-9]+/[0-9]+$\n"
23779 "\n"
23780 msgstr ""
23781
23782 #. type: textblock
23783 #: ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:212
23784 msgid ""
23785 "The calling program should treat messages sent to stdout (except for "
23786 "progress bar messages) as status messages.  They can be logged and/or "
23787 "displayed to the user."
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../resize/virt-resize.pod:591
23792 msgid ""
23793 "The calling program should treat messages sent to stderr as error messages.  "
23794 "In addition, virt-resize exits with a non-zero status code if there was a "
23795 "fatal error."
23796 msgstr ""
23797
23798 #. type: textblock
23799 #: ../resize/virt-resize.pod:597
23800 msgid ""
23801 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23802 "readable> option and will return an error."
23803 msgstr ""
23804
23805 #. type: =head2
23806 #: ../resize/virt-resize.pod:602
23807 msgid "\"Partition 1 does not end on cylinder boundary.\""
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../resize/virt-resize.pod:604
23812 msgid ""
23813 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
23814 "alignment> parameter).  Usually this means the partitions will not be "
23815 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
23816 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
23817 "drives.  Alignment of partitions to cylinders is not required by any modern "
23818 "operating system."
23819 msgstr ""
23820
23821 #. type: =head2
23822 #: ../resize/virt-resize.pod:611
23823 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23824 msgstr ""
23825
23826 #. type: textblock
23827 #: ../resize/virt-resize.pod:613
23828 msgid ""
23829 "In Windows Vista and later versions, Microsoft switched to using a separate "
23830 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23831 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
23832 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
23833 "the second partition (ie. C: drive)  should work."
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../resize/virt-resize.pod:620
23838 msgid ""
23839 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23840 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23841 "it find errors) is nothing to worry about."
23842 msgstr ""
23843
23844 #. type: =head2
23845 #: ../resize/virt-resize.pod:624
23846 msgid "GUEST BOOT STUCK AT \"GRUB\""
23847 msgstr ""
23848
23849 #. type: textblock
23850 #: ../resize/virt-resize.pod:626
23851 msgid ""
23852 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23853 "printing C<GRUB> on the console, try reinstalling grub."
23854 msgstr ""
23855
23856 #. type: verbatim
23857 #: ../resize/virt-resize.pod:629
23858 #, no-wrap
23859 msgid ""
23860 " guestfish -i -a newdisk\n"
23861 " ><fs> cat /boot/grub/device.map\n"
23862 " # check the contents of this file are sensible or\n"
23863 " # edit the file if necessary\n"
23864 " ><fs> grub-install / /dev/vda\n"
23865 " ><fs> exit\n"
23866 "\n"
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../resize/virt-resize.pod:636
23871 msgid ""
23872 "For more flexible guest reconfiguration, including if you need to specify "
23873 "other parameters to grub-install, use L<virt-rescue(1)>."
23874 msgstr ""
23875
23876 #. type: =head1
23877 #: ../resize/virt-resize.pod:639
23878 msgid "ALTERNATIVE TOOLS"
23879 msgstr ""
23880
23881 #. type: textblock
23882 #: ../resize/virt-resize.pod:641
23883 msgid ""
23884 "There are several proprietary tools for resizing partitions.  We won't "
23885 "mention any here."
23886 msgstr ""
23887
23888 #. type: textblock
23889 #: ../resize/virt-resize.pod:644
23890 msgid ""
23891 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23892 "operations on disk images.  They can resize and move partitions, but I don't "
23893 "think they can do anything with the contents, and they certainly don't "
23894 "understand LVM."
23895 msgstr ""
23896
23897 #. type: textblock
23898 #: ../resize/virt-resize.pod:649
23899 msgid ""
23900 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23901 "but at a much lower level.  You will probably end up hand-calculating sector "
23902 "offsets, which is something that virt-resize was designed to avoid.  If you "
23903 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23904 "I<--debug> flag."
23905 msgstr ""
23906
23907 #. type: textblock
23908 #: ../resize/virt-resize.pod:669
23909 msgid ""
23910 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23911 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23912 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23913 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23914 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
23915 msgstr ""
23916
23917 #. type: textblock
23918 #: ../ruby/examples/guestfs-ruby.pod:5
23919 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23920 msgstr ""
23921
23922 #. type: verbatim
23923 #: ../ruby/examples/guestfs-ruby.pod:9
23924 #, no-wrap
23925 msgid ""
23926 " require 'guestfs'\n"
23927 " g = Guestfs::Guestfs.new()\n"
23928 " g.add_drive_opts(\"disk.img\",\n"
23929 "                  :readonly => 1, :format => \"raw\")\n"
23930 " g.launch()\n"
23931 "\n"
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../ruby/examples/guestfs-ruby.pod:17
23936 msgid ""
23937 "This manual page documents how to call libguestfs from the Ruby programming "
23938 "language.  This page just documents the differences from the C API and gives "
23939 "some examples.  If you are not familiar with using libguestfs, you also need "
23940 "to read L<guestfs(3)>."
23941 msgstr ""
23942
23943 #. type: textblock
23944 #: ../ruby/examples/guestfs-ruby.pod:24
23945 msgid ""
23946 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23947 "This has a single parameter which is the error message (a string)."
23948 msgstr ""
23949
23950 #. type: textblock
23951 #: ../ruby/examples/guestfs-ruby.pod:38
23952 msgid ""
23953 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23954 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23955 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23956 msgstr ""
23957
23958 #. type: textblock
23959 #: ../sparsify/virt-sparsify.pod:5
23960 msgid "virt-sparsify - Make a virtual machine disk sparse"
23961 msgstr ""
23962
23963 #. type: verbatim
23964 #: ../sparsify/virt-sparsify.pod:9
23965 #, no-wrap
23966 msgid ""
23967 " virt-sparsify [--options] indisk outdisk\n"
23968 "\n"
23969 msgstr ""
23970
23971 #. type: textblock
23972 #: ../sparsify/virt-sparsify.pod:13
23973 msgid ""
23974 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23975 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23976 "the disk image can be converted back to free space on the host."
23977 msgstr ""
23978
23979 #. type: textblock
23980 #: ../sparsify/virt-sparsify.pod:18
23981 msgid ""
23982 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23983 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23984 msgstr ""
23985
23986 #. type: textblock
23987 #: ../sparsify/virt-sparsify.pod:21
23988 msgid ""
23989 "Virt-sparsify can also convert between some disk formats, for example "
23990 "converting a raw disk image to a thin-provisioned qcow2 image."
23991 msgstr ""
23992
23993 #. type: textblock
23994 #: ../sparsify/virt-sparsify.pod:24
23995 msgid ""
23996 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23997 "machines.  If a virtual machine has more than one attached disk, you must "
23998 "sparsify each one separately."
23999 msgstr ""
24000
24001 #. type: =head2
24002 #: ../sparsify/virt-sparsify.pod:28
24003 msgid "IMPORTANT LIMITATIONS"
24004 msgstr ""
24005
24006 #. type: textblock
24007 #: ../sparsify/virt-sparsify.pod:34
24008 msgid ""
24009 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24010 "image to a destination image, leaving the source unchanged.  I<Check that "
24011 "the sparsification was successful before deleting the source image>."
24012 msgstr ""
24013
24014 #. type: textblock
24015 #: ../sparsify/virt-sparsify.pod:41
24016 msgid "The virtual machine I<must be shut down> before using this tool."
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../sparsify/virt-sparsify.pod:45
24021 msgid ""
24022 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24023 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24024 "usually much less space is required."
24025 msgstr ""
24026
24027 #. type: textblock
24028 #: ../sparsify/virt-sparsify.pod:51
24029 msgid ""
24030 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24031 msgstr ""
24032
24033 #. type: textblock
24034 #: ../sparsify/virt-sparsify.pod:56
24035 msgid "Virt-sparsify cannot handle encrypted disks."
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../sparsify/virt-sparsify.pod:60
24040 msgid ""
24041 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24042 "this space is often used for critical items like bootloaders so it's not "
24043 "really unused."
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../sparsify/virt-sparsify.pod:66
24048 msgid ""
24049 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24050 "to do this unless we can be sure there is no hibernation data, so at the "
24051 "moment swap partitions are ignored."
24052 msgstr ""
24053
24054 #. type: textblock
24055 #: ../sparsify/virt-sparsify.pod:72
24056 msgid ""
24057 "You may also want to read the manual pages for the associated tools L<virt-"
24058 "filesystems(1)> and L<virt-df(1)> before starting."
24059 msgstr ""
24060
24061 #. type: textblock
24062 #: ../sparsify/virt-sparsify.pod:77
24063 msgid "Typical usage is:"
24064 msgstr ""
24065
24066 #. type: verbatim
24067 #: ../sparsify/virt-sparsify.pod:79
24068 #, no-wrap
24069 msgid ""
24070 " virt-sparsify indisk outdisk\n"
24071 "\n"
24072 msgstr ""
24073
24074 #. type: textblock
24075 #: ../sparsify/virt-sparsify.pod:81
24076 msgid ""
24077 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24078 "is created, or overwritten if it already exists.  The format of the input "
24079 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../sparsify/virt-sparsify.pod:86
24084 msgid "To convert between formats, use the I<--convert> option:"
24085 msgstr ""
24086
24087 #. type: verbatim
24088 #: ../sparsify/virt-sparsify.pod:88
24089 #, no-wrap
24090 msgid ""
24091 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24092 "\n"
24093 msgstr ""
24094
24095 #. type: textblock
24096 #: ../sparsify/virt-sparsify.pod:90
24097 msgid ""
24098 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24099 "can find within the source disk image.  You can get it to ignore (don't zero "
24100 "free space on) certain filesystems by doing:"
24101 msgstr ""
24102
24103 #. type: verbatim
24104 #: ../sparsify/virt-sparsify.pod:94
24105 #, no-wrap
24106 msgid ""
24107 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24108 "\n"
24109 msgstr ""
24110
24111 #. type: textblock
24112 #: ../sparsify/virt-sparsify.pod:96
24113 msgid ""
24114 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24115 msgstr ""
24116
24117 #. type: =item
24118 #: ../sparsify/virt-sparsify.pod:107
24119 msgid "B<--convert> raw"
24120 msgstr ""
24121
24122 #. type: =item
24123 #: ../sparsify/virt-sparsify.pod:109
24124 msgid "B<--convert> qcow2"
24125 msgstr ""
24126
24127 #. type: =item
24128 #: ../sparsify/virt-sparsify.pod:111
24129 msgid "B<--convert> [other formats]"
24130 msgstr ""
24131
24132 #. type: textblock
24133 #: ../sparsify/virt-sparsify.pod:113
24134 msgid ""
24135 "Use C<output-format> as the format for the destination image.  If this is "
24136 "not specified, then the input format is used."
24137 msgstr ""
24138
24139 #. type: textblock
24140 #: ../sparsify/virt-sparsify.pod:116
24141 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24142 msgstr ""
24143
24144 #. type: textblock
24145 #: ../sparsify/virt-sparsify.pod:118
24146 msgid ""
24147 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24148 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24149 msgstr ""
24150
24151 #. type: textblock
24152 #: ../sparsify/virt-sparsify.pod:122
24153 msgid ""
24154 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24155 "sparsify doesn't need to try to guess the input format."
24156 msgstr ""
24157
24158 #. type: =item
24159 #: ../sparsify/virt-sparsify.pod:127
24160 msgid "B<--format> qcow2"
24161 msgstr ""
24162
24163 #. type: =item
24164 #: ../sparsify/virt-sparsify.pod:135
24165 msgid "B<--ignore> filesystem"
24166 msgstr ""
24167
24168 #. type: =item
24169 #: ../sparsify/virt-sparsify.pod:137
24170 msgid "B<--ignore> volgroup"
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../sparsify/virt-sparsify.pod:139
24175 msgid ""
24176 "Ignore the named filesystem.  Free space on the filesystem will not be "
24177 "zeroed, but existing blocks of zeroes will still be sparsified."
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../sparsify/virt-sparsify.pod:142
24182 msgid ""
24183 "In the second form, this ignores the named volume group.  Use the volume "
24184 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../sparsify/virt-sparsify.pod:157
24189 msgid "This disables progress bars and other unnecessary output."
24190 msgstr ""
24191
24192 #. type: textblock
24193 #: ../sparsify/virt-sparsify.pod:179
24194 msgid ""
24195 "The I<--machine-readable> option can be used to make the output more machine "
24196 "friendly, which is useful when calling virt-sparsify from other programs, "
24197 "GUIs etc."
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../sparsify/virt-sparsify.pod:185
24202 msgid ""
24203 "Firstly use the option on its own to query the capabilities of the virt-"
24204 "sparsify binary.  Typical output looks like this:"
24205 msgstr ""
24206
24207 #. type: verbatim
24208 #: ../sparsify/virt-sparsify.pod:188
24209 #, no-wrap
24210 msgid ""
24211 " $ virt-sparsify --machine-readable\n"
24212 " virt-sparsify\n"
24213 " ntfs\n"
24214 " btrfs\n"
24215 "\n"
24216 msgstr ""
24217
24218 #. type: textblock
24219 #: ../sparsify/virt-sparsify.pod:218
24220 msgid ""
24221 "The calling program should treat messages sent to stderr as error messages.  "
24222 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24223 "fatal error."
24224 msgstr ""
24225
24226 #. type: textblock
24227 #: ../sparsify/virt-sparsify.pod:224
24228 msgid ""
24229 "All versions of virt-sparsify have supported the I<--machine-readable> "
24230 "option."
24231 msgstr ""
24232
24233 #. type: textblock
24234 #: ../sparsify/virt-sparsify.pod:238
24235 msgid ""
24236 "Location of the temporary directory used for the potentially large temporary "
24237 "overlay file."
24238 msgstr ""
24239
24240 #. type: textblock
24241 #: ../sparsify/virt-sparsify.pod:241
24242 msgid ""
24243 "You should ensure there is enough free space in the worst case for a full "
24244 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24245 "to another directory that has enough space."
24246 msgstr ""
24247
24248 #. type: textblock
24249 #: ../sparsify/virt-sparsify.pod:245
24250 msgid "This defaults to C</tmp>."
24251 msgstr ""
24252
24253 #. type: textblock
24254 #: ../sparsify/virt-sparsify.pod:249
24255 msgid ""
24256 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../sparsify/virt-sparsify.pod:253
24261 msgid ""
24262 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24263 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24264 "(1)>, L<http://libguestfs.org/>."
24265 msgstr ""
24266
24267 #. type: =head2
24268 #: ../src/guestfs-actions.pod:1
24269 msgid "guestfs_add_cdrom"
24270 msgstr ""
24271
24272 #. type: verbatim
24273 #: ../src/guestfs-actions.pod:3
24274 #, no-wrap
24275 msgid ""
24276 " int\n"
24277 " guestfs_add_cdrom (guestfs_h *g,\n"
24278 "                    const char *filename);\n"
24279 "\n"
24280 msgstr ""
24281
24282 #. type: textblock
24283 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24284 #: ../src/guestfs-actions.pod:276
24285 msgid ""
24286 "I<This function is deprecated.> In new code, use the L</"
24287 "guestfs_add_drive_opts> call instead."
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../src/guestfs-actions.pod:24
24292 msgid ""
24293 "This call checks for the existence of C<filename>.  This stops you from "
24294 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24295 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24296 "instead."
24297 msgstr ""
24298
24299 #. type: textblock
24300 #: ../src/guestfs-actions.pod:31
24301 msgid ""
24302 "If you just want to add an ISO file (often you use this as an efficient way "
24303 "to transfer large files into the guest), then you should probably use "
24304 "C<guestfs_add_drive_ro> instead."
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24309 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24310 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24311 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24312 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24313 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24314 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24315 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24316 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24317 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24318 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24319 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24320 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24321 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24322 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24323 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24324 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24325 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24326 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24327 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24328 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24329 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24330 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24331 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24332 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24333 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24334 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24335 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24336 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24337 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24338 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24339 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24340 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24341 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24342 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24343 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24344 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24345 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24346 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24347 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24348 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24349 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24350 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24351 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24352 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24353 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24354 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24355 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24356 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24357 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24358 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24359 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24360 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24361 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24362 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24363 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24364 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24365 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24366 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24367 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24368 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24369 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24370 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24371 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24372 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24373 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24374 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24375 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24376 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24377 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24378 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24379 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24380 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24381 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24382 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24383 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24384 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24385 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24386 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24387 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24388 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
24389 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
24390 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
24391 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
24392 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
24393 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
24394 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
24395 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
24396 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
24397 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
24398 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
24399 #: ../src/guestfs-actions.pod:8007
24400 msgid "This function returns 0 on success or -1 on error."
24401 msgstr ""
24402
24403 #. type: textblock
24404 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24405 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
24406 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
24407 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
24408 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
24409 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
24410 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
24411 #: ../src/guestfs-actions.pod:7784
24412 msgid "(Added in 0.3)"
24413 msgstr ""
24414
24415 #. type: =head2
24416 #: ../src/guestfs-actions.pod:41
24417 msgid "guestfs_add_domain"
24418 msgstr ""
24419
24420 #. type: verbatim
24421 #: ../src/guestfs-actions.pod:43
24422 #, no-wrap
24423 msgid ""
24424 " int\n"
24425 " guestfs_add_domain (guestfs_h *g,\n"
24426 "                     const char *dom,\n"
24427 "                     ...);\n"
24428 "\n"
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24433 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
24434 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
24435 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
24436 #: ../src/guestfs-actions.pod:5340
24437 msgid ""
24438 "You may supply a list of optional arguments to this call.  Use zero or more "
24439 "of the following pairs of parameters, and terminate the list with C<-1> on "
24440 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24441 msgstr ""
24442
24443 #. type: verbatim
24444 #: ../src/guestfs-actions.pod:53
24445 #, no-wrap
24446 msgid ""
24447 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24448 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24449 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24450 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24451 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24452 "\n"
24453 msgstr ""
24454
24455 #. type: textblock
24456 #: ../src/guestfs-actions.pod:59
24457 msgid ""
24458 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24459 "It works by connecting to libvirt, requesting the domain and domain XML from "
24460 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24461 "one."
24462 msgstr ""
24463
24464 #. type: textblock
24465 #: ../src/guestfs-actions.pod:94
24466 msgid ""
24467 "The other optional parameters are passed directly through to "
24468 "C<guestfs_add_drive_opts>."
24469 msgstr ""
24470
24471 #. type: textblock
24472 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
24473 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
24474 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
24475 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
24476 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
24477 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
24478 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
24479 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
24480 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
24481 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
24482 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
24483 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
24484 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
24485 msgid "On error this function returns -1."
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../src/guestfs-actions.pod:99
24490 msgid "(Added in 1.7.4)"
24491 msgstr ""
24492
24493 #. type: =head2
24494 #: ../src/guestfs-actions.pod:101
24495 msgid "guestfs_add_domain_va"
24496 msgstr ""
24497
24498 #. type: verbatim
24499 #: ../src/guestfs-actions.pod:103
24500 #, no-wrap
24501 msgid ""
24502 " int\n"
24503 " guestfs_add_domain_va (guestfs_h *g,\n"
24504 "                        const char *dom,\n"
24505 "                        va_list args);\n"
24506 "\n"
24507 msgstr ""
24508
24509 #. type: textblock
24510 #: ../src/guestfs-actions.pod:108
24511 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24516 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
24517 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
24518 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
24519 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
24520 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
24521 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
24522 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
24523 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
24524 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24525 msgstr ""
24526
24527 #. type: =head2
24528 #: ../src/guestfs-actions.pod:112
24529 msgid "guestfs_add_domain_argv"
24530 msgstr ""
24531
24532 #. type: verbatim
24533 #: ../src/guestfs-actions.pod:114
24534 #, no-wrap
24535 msgid ""
24536 " int\n"
24537 " guestfs_add_domain_argv (guestfs_h *g,\n"
24538 "                          const char *dom,\n"
24539 "                          const struct guestfs_add_domain_argv *optargs);\n"
24540 "\n"
24541 msgstr ""
24542
24543 #. type: textblock
24544 #: ../src/guestfs-actions.pod:119
24545 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24546 msgstr ""
24547
24548 #. type: =head2
24549 #: ../src/guestfs-actions.pod:123
24550 msgid "guestfs_add_drive"
24551 msgstr ""
24552
24553 #. type: verbatim
24554 #: ../src/guestfs-actions.pod:125
24555 #, no-wrap
24556 msgid ""
24557 " int\n"
24558 " guestfs_add_drive (guestfs_h *g,\n"
24559 "                    const char *filename);\n"
24560 "\n"
24561 msgstr ""
24562
24563 #. type: textblock
24564 #: ../src/guestfs-actions.pod:129
24565 msgid ""
24566 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24567 "optional parameters, so the disk is added writable, with the format being "
24568 "detected automatically."
24569 msgstr ""
24570
24571 #. type: textblock
24572 #: ../src/guestfs-actions.pod:133
24573 msgid ""
24574 "Automatic detection of the format opens you up to a potential security hole "
24575 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24576 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24577 "you should think about replacing calls to this function with calls to "
24578 "C<guestfs_add_drive_opts>, and specifying the format."
24579 msgstr ""
24580
24581 #. type: =head2
24582 #: ../src/guestfs-actions.pod:144
24583 msgid "guestfs_add_drive_opts"
24584 msgstr ""
24585
24586 #. type: verbatim
24587 #: ../src/guestfs-actions.pod:146
24588 #, no-wrap
24589 msgid ""
24590 " int\n"
24591 " guestfs_add_drive_opts (guestfs_h *g,\n"
24592 "                         const char *filename,\n"
24593 "                         ...);\n"
24594 "\n"
24595 msgstr ""
24596
24597 #. type: verbatim
24598 #: ../src/guestfs-actions.pod:156
24599 #, no-wrap
24600 msgid ""
24601 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24602 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24603 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24604 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24605 "\n"
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../src/guestfs-actions.pod:186
24610 msgid ""
24611 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24612 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24613 "Possible formats include C<raw> and C<qcow2>."
24614 msgstr ""
24615
24616 #. type: textblock
24617 #: ../src/guestfs-actions.pod:197
24618 msgid ""
24619 "This rarely-used option lets you emulate the behaviour of the deprecated "
24620 "C<guestfs_add_drive_with_if> call (q.v.)"
24621 msgstr ""
24622
24623 #. type: textblock
24624 #: ../src/guestfs-actions.pod:209
24625 msgid "(Added in 1.5.23)"
24626 msgstr ""
24627
24628 #. type: =head2
24629 #: ../src/guestfs-actions.pod:211
24630 msgid "guestfs_add_drive_opts_va"
24631 msgstr ""
24632
24633 #. type: verbatim
24634 #: ../src/guestfs-actions.pod:213
24635 #, no-wrap
24636 msgid ""
24637 " int\n"
24638 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24639 "                            const char *filename,\n"
24640 "                            va_list args);\n"
24641 "\n"
24642 msgstr ""
24643
24644 #. type: textblock
24645 #: ../src/guestfs-actions.pod:218
24646 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24647 msgstr ""
24648
24649 #. type: =head2
24650 #: ../src/guestfs-actions.pod:222
24651 msgid "guestfs_add_drive_opts_argv"
24652 msgstr ""
24653
24654 #. type: verbatim
24655 #: ../src/guestfs-actions.pod:224
24656 #, no-wrap
24657 msgid ""
24658 " int\n"
24659 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24660 "                              const char *filename,\n"
24661 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24662 "\n"
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../src/guestfs-actions.pod:229
24667 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24668 msgstr ""
24669
24670 #. type: =head2
24671 #: ../src/guestfs-actions.pod:233
24672 msgid "guestfs_add_drive_ro"
24673 msgstr ""
24674
24675 #. type: verbatim
24676 #: ../src/guestfs-actions.pod:235
24677 #, no-wrap
24678 msgid ""
24679 " int\n"
24680 " guestfs_add_drive_ro (guestfs_h *g,\n"
24681 "                       const char *filename);\n"
24682 "\n"
24683 msgstr ""
24684
24685 #. type: textblock
24686 #: ../src/guestfs-actions.pod:239
24687 msgid ""
24688 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24689 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24690 "disk is added read-only, with the format being detected automatically."
24691 msgstr ""
24692
24693 #. type: textblock
24694 #: ../src/guestfs-actions.pod:246
24695 msgid "(Added in 1.0.38)"
24696 msgstr ""
24697
24698 #. type: =head2
24699 #: ../src/guestfs-actions.pod:248
24700 msgid "guestfs_add_drive_ro_with_if"
24701 msgstr ""
24702
24703 #. type: verbatim
24704 #: ../src/guestfs-actions.pod:250
24705 #, no-wrap
24706 msgid ""
24707 " int\n"
24708 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24709 "                               const char *filename,\n"
24710 "                               const char *iface);\n"
24711 "\n"
24712 msgstr ""
24713
24714 #. type: textblock
24715 #: ../src/guestfs-actions.pod:262
24716 msgid ""
24717 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24718 "QEMU interface emulation to use at run time."
24719 msgstr ""
24720
24721 #. type: textblock
24722 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
24723 #: ../src/guestfs-actions.pod:2586
24724 msgid "(Added in 1.0.84)"
24725 msgstr ""
24726
24727 #. type: =head2
24728 #: ../src/guestfs-actions.pod:269
24729 msgid "guestfs_add_drive_with_if"
24730 msgstr ""
24731
24732 #. type: verbatim
24733 #: ../src/guestfs-actions.pod:271
24734 #, no-wrap
24735 msgid ""
24736 " int\n"
24737 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24738 "                            const char *filename,\n"
24739 "                            const char *iface);\n"
24740 "\n"
24741 msgstr ""
24742
24743 #. type: textblock
24744 #: ../src/guestfs-actions.pod:283
24745 msgid ""
24746 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24747 "QEMU interface emulation to use at run time."
24748 msgstr ""
24749
24750 #. type: =head2
24751 #: ../src/guestfs-actions.pod:290
24752 msgid "guestfs_aug_clear"
24753 msgstr ""
24754
24755 #. type: verbatim
24756 #: ../src/guestfs-actions.pod:292
24757 #, no-wrap
24758 msgid ""
24759 " int\n"
24760 " guestfs_aug_clear (guestfs_h *g,\n"
24761 "                    const char *augpath);\n"
24762 "\n"
24763 msgstr ""
24764
24765 #. type: textblock
24766 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
24767 msgid "(Added in 1.3.4)"
24768 msgstr ""
24769
24770 #. type: =head2
24771 #: ../src/guestfs-actions.pod:303
24772 msgid "guestfs_aug_close"
24773 msgstr ""
24774
24775 #. type: verbatim
24776 #: ../src/guestfs-actions.pod:305
24777 #, no-wrap
24778 msgid ""
24779 " int\n"
24780 " guestfs_aug_close (guestfs_h *g);\n"
24781 "\n"
24782 msgstr ""
24783
24784 #. type: textblock
24785 #: ../src/guestfs-actions.pod:308
24786 msgid ""
24787 "Close the current Augeas handle and free up any resources used by it.  After "
24788 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24789 "any other Augeas functions."
24790 msgstr ""
24791
24792 #. type: textblock
24793 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
24794 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
24795 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
24796 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
24797 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
24798 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
24799 #: ../src/guestfs-actions.pod:6008
24800 msgid "(Added in 0.7)"
24801 msgstr ""
24802
24803 #. type: =head2
24804 #: ../src/guestfs-actions.pod:317
24805 msgid "guestfs_aug_defnode"
24806 msgstr ""
24807
24808 #. type: verbatim
24809 #: ../src/guestfs-actions.pod:319
24810 #, no-wrap
24811 msgid ""
24812 " struct guestfs_int_bool *\n"
24813 " guestfs_aug_defnode (guestfs_h *g,\n"
24814 "                      const char *name,\n"
24815 "                      const char *expr,\n"
24816 "                      const char *val);\n"
24817 "\n"
24818 msgstr ""
24819
24820 #. type: textblock
24821 #: ../src/guestfs-actions.pod:328
24822 msgid ""
24823 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24824 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24825 "containing that single node."
24826 msgstr ""
24827
24828 #. type: textblock
24829 #: ../src/guestfs-actions.pod:336
24830 msgid ""
24831 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24832 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24833 msgstr ""
24834
24835 #. type: =head2
24836 #: ../src/guestfs-actions.pod:342
24837 msgid "guestfs_aug_defvar"
24838 msgstr ""
24839
24840 #. type: verbatim
24841 #: ../src/guestfs-actions.pod:344
24842 #, no-wrap
24843 msgid ""
24844 " int\n"
24845 " guestfs_aug_defvar (guestfs_h *g,\n"
24846 "                     const char *name,\n"
24847 "                     const char *expr);\n"
24848 "\n"
24849 msgstr ""
24850
24851 #. type: =head2
24852 #: ../src/guestfs-actions.pod:360
24853 msgid "guestfs_aug_get"
24854 msgstr ""
24855
24856 #. type: verbatim
24857 #: ../src/guestfs-actions.pod:362
24858 #, no-wrap
24859 msgid ""
24860 " char *\n"
24861 " guestfs_aug_get (guestfs_h *g,\n"
24862 "                  const char *augpath);\n"
24863 "\n"
24864 msgstr ""
24865
24866 #. type: textblock
24867 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
24868 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
24869 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
24870 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
24871 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
24872 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
24873 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
24874 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
24875 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
24876 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
24877 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
24878 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
24879 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
24880 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
24881 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
24882 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
24883 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
24884 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
24885 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
24886 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
24887 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
24888 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
24889 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
24890 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
24891 msgid ""
24892 "This function returns a string, or NULL on error.  I<The caller must free "
24893 "the returned string after use>."
24894 msgstr ""
24895
24896 #. type: =head2
24897 #: ../src/guestfs-actions.pod:374
24898 msgid "guestfs_aug_init"
24899 msgstr ""
24900
24901 #. type: verbatim
24902 #: ../src/guestfs-actions.pod:376
24903 #, no-wrap
24904 msgid ""
24905 " int\n"
24906 " guestfs_aug_init (guestfs_h *g,\n"
24907 "                   const char *root,\n"
24908 "                   int flags);\n"
24909 "\n"
24910 msgstr ""
24911
24912 #. type: textblock
24913 #: ../src/guestfs-actions.pod:385
24914 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24915 msgstr ""
24916
24917 #. type: textblock
24918 #: ../src/guestfs-actions.pod:410
24919 msgid ""
24920 "This option is only useful when debugging Augeas lenses.  Use of this option "
24921 "may require additional memory for the libguestfs appliance.  You may need to "
24922 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24923 "C<guestfs_set_memsize>."
24924 msgstr ""
24925
24926 #. type: textblock
24927 #: ../src/guestfs-actions.pod:425
24928 msgid "Do not load the tree in C<guestfs_aug_init>."
24929 msgstr ""
24930
24931 #. type: textblock
24932 #: ../src/guestfs-actions.pod:429
24933 msgid "To close the handle, you can call C<guestfs_aug_close>."
24934 msgstr ""
24935
24936 #. type: =head2
24937 #: ../src/guestfs-actions.pod:437
24938 msgid "guestfs_aug_insert"
24939 msgstr ""
24940
24941 #. type: verbatim
24942 #: ../src/guestfs-actions.pod:439
24943 #, no-wrap
24944 msgid ""
24945 " int\n"
24946 " guestfs_aug_insert (guestfs_h *g,\n"
24947 "                     const char *augpath,\n"
24948 "                     const char *label,\n"
24949 "                     int before);\n"
24950 "\n"
24951 msgstr ""
24952
24953 #. type: =head2
24954 #: ../src/guestfs-actions.pod:457
24955 msgid "guestfs_aug_load"
24956 msgstr ""
24957
24958 #. type: verbatim
24959 #: ../src/guestfs-actions.pod:459
24960 #, no-wrap
24961 msgid ""
24962 " int\n"
24963 " guestfs_aug_load (guestfs_h *g);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: =head2
24968 #: ../src/guestfs-actions.pod:471
24969 msgid "guestfs_aug_ls"
24970 msgstr ""
24971
24972 #. type: verbatim
24973 #: ../src/guestfs-actions.pod:473
24974 #, no-wrap
24975 msgid ""
24976 " char **\n"
24977 " guestfs_aug_ls (guestfs_h *g,\n"
24978 "                 const char *augpath);\n"
24979 "\n"
24980 msgstr ""
24981
24982 #. type: textblock
24983 #: ../src/guestfs-actions.pod:477
24984 msgid ""
24985 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24986 "sorting the resulting nodes into alphabetical order."
24987 msgstr ""
24988
24989 #. type: textblock
24990 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
24991 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
24992 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
24993 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
24994 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
24995 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
24996 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
24997 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
24998 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
24999 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25000 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25001 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25002 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25003 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25004 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25005 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25006 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25007 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25008 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25009 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25010 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25011 #: ../src/guestfs-actions.pod:8105
25012 msgid ""
25013 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25014 ">), or NULL if there was an error.  I<The caller must free the strings and "
25015 "the array after use>."
25016 msgstr ""
25017
25018 #. type: textblock
25019 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25020 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25021 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25022 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25023 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25024 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25025 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25026 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25027 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25028 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25029 #: ../src/guestfs-actions.pod:7896
25030 msgid "(Added in 0.8)"
25031 msgstr ""
25032
25033 #. type: =head2
25034 #: ../src/guestfs-actions.pod:486
25035 msgid "guestfs_aug_match"
25036 msgstr ""
25037
25038 #. type: verbatim
25039 #: ../src/guestfs-actions.pod:488
25040 #, no-wrap
25041 msgid ""
25042 " char **\n"
25043 " guestfs_aug_match (guestfs_h *g,\n"
25044 "                    const char *augpath);\n"
25045 "\n"
25046 msgstr ""
25047
25048 #. type: =head2
25049 #: ../src/guestfs-actions.pod:502
25050 msgid "guestfs_aug_mv"
25051 msgstr ""
25052
25053 #. type: verbatim
25054 #: ../src/guestfs-actions.pod:504
25055 #, no-wrap
25056 msgid ""
25057 " int\n"
25058 " guestfs_aug_mv (guestfs_h *g,\n"
25059 "                 const char *src,\n"
25060 "                 const char *dest);\n"
25061 "\n"
25062 msgstr ""
25063
25064 #. type: =head2
25065 #: ../src/guestfs-actions.pod:516
25066 msgid "guestfs_aug_rm"
25067 msgstr ""
25068
25069 #. type: verbatim
25070 #: ../src/guestfs-actions.pod:518
25071 #, no-wrap
25072 msgid ""
25073 " int\n"
25074 " guestfs_aug_rm (guestfs_h *g,\n"
25075 "                 const char *augpath);\n"
25076 "\n"
25077 msgstr ""
25078
25079 #. type: =head2
25080 #: ../src/guestfs-actions.pod:530
25081 msgid "guestfs_aug_save"
25082 msgstr ""
25083
25084 #. type: verbatim
25085 #: ../src/guestfs-actions.pod:532
25086 #, no-wrap
25087 msgid ""
25088 " int\n"
25089 " guestfs_aug_save (guestfs_h *g);\n"
25090 "\n"
25091 msgstr ""
25092
25093 #. type: textblock
25094 #: ../src/guestfs-actions.pod:537
25095 msgid ""
25096 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25097 "are saved."
25098 msgstr ""
25099
25100 #. type: =head2
25101 #: ../src/guestfs-actions.pod:544
25102 msgid "guestfs_aug_set"
25103 msgstr ""
25104
25105 #. type: verbatim
25106 #: ../src/guestfs-actions.pod:546
25107 #, no-wrap
25108 msgid ""
25109 " int\n"
25110 " guestfs_aug_set (guestfs_h *g,\n"
25111 "                  const char *augpath,\n"
25112 "                  const char *val);\n"
25113 "\n"
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../src/guestfs-actions.pod:553
25118 msgid ""
25119 "In the Augeas API, it is possible to clear a node by setting the value to "
25120 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25121 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25122 msgstr ""
25123
25124 #. type: =head2
25125 #: ../src/guestfs-actions.pod:562
25126 msgid "guestfs_available"
25127 msgstr ""
25128
25129 #. type: verbatim
25130 #: ../src/guestfs-actions.pod:564
25131 #, no-wrap
25132 msgid ""
25133 " int\n"
25134 " guestfs_available (guestfs_h *g,\n"
25135 "                    char *const *groups);\n"
25136 "\n"
25137 msgstr ""
25138
25139 #. type: textblock
25140 #: ../src/guestfs-actions.pod:572
25141 msgid ""
25142 "The libguestfs groups, and the functions that those groups correspond to, "
25143 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25144 "runtime by calling C<guestfs_available_all_groups>."
25145 msgstr ""
25146
25147 #. type: textblock
25148 #: ../src/guestfs-actions.pod:596
25149 msgid "You must call C<guestfs_launch> before calling this function."
25150 msgstr ""
25151
25152 #. type: textblock
25153 #: ../src/guestfs-actions.pod:618
25154 msgid ""
25155 "This call was added in version C<1.0.80>.  In previous versions of "
25156 "libguestfs all you could do would be to speculatively execute a command to "
25157 "find out if the daemon implemented it.  See also C<guestfs_version>."
25158 msgstr ""
25159
25160 #. type: textblock
25161 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25162 msgid "(Added in 1.0.80)"
25163 msgstr ""
25164
25165 #. type: =head2
25166 #: ../src/guestfs-actions.pod:629
25167 msgid "guestfs_available_all_groups"
25168 msgstr ""
25169
25170 #. type: verbatim
25171 #: ../src/guestfs-actions.pod:631
25172 #, no-wrap
25173 msgid ""
25174 " char **\n"
25175 " guestfs_available_all_groups (guestfs_h *g);\n"
25176 "\n"
25177 msgstr ""
25178
25179 #. type: textblock
25180 #: ../src/guestfs-actions.pod:634
25181 msgid ""
25182 "This command returns a list of all optional groups that this daemon knows "
25183 "about.  Note this returns both supported and unsupported groups.  To find "
25184 "out which ones the daemon can actually support you have to call "
25185 "C<guestfs_available> on each member of the returned list."
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../src/guestfs-actions.pod:640
25190 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25191 msgstr ""
25192
25193 #. type: textblock
25194 #: ../src/guestfs-actions.pod:646
25195 msgid "(Added in 1.3.15)"
25196 msgstr ""
25197
25198 #. type: =head2
25199 #: ../src/guestfs-actions.pod:648
25200 msgid "guestfs_base64_in"
25201 msgstr ""
25202
25203 #. type: verbatim
25204 #: ../src/guestfs-actions.pod:650
25205 #, no-wrap
25206 msgid ""
25207 " int\n"
25208 " guestfs_base64_in (guestfs_h *g,\n"
25209 "                    const char *base64file,\n"
25210 "                    const char *filename);\n"
25211 "\n"
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25216 msgid "(Added in 1.3.5)"
25217 msgstr ""
25218
25219 #. type: =head2
25220 #: ../src/guestfs-actions.pod:662
25221 msgid "guestfs_base64_out"
25222 msgstr ""
25223
25224 #. type: verbatim
25225 #: ../src/guestfs-actions.pod:664
25226 #, no-wrap
25227 msgid ""
25228 " int\n"
25229 " guestfs_base64_out (guestfs_h *g,\n"
25230 "                     const char *filename,\n"
25231 "                     const char *base64file);\n"
25232 "\n"
25233 msgstr ""
25234
25235 #. type: =head2
25236 #: ../src/guestfs-actions.pod:676
25237 msgid "guestfs_blockdev_flushbufs"
25238 msgstr ""
25239
25240 #. type: verbatim
25241 #: ../src/guestfs-actions.pod:678
25242 #, no-wrap
25243 msgid ""
25244 " int\n"
25245 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25246 "                             const char *device);\n"
25247 "\n"
25248 msgstr ""
25249
25250 #. type: textblock
25251 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25252 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25253 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25254 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25255 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25256 msgid "(Added in 0.9.3)"
25257 msgstr ""
25258
25259 #. type: =head2
25260 #: ../src/guestfs-actions.pod:691
25261 msgid "guestfs_blockdev_getbsz"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../src/guestfs-actions.pod:693
25266 #, no-wrap
25267 msgid ""
25268 " int\n"
25269 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25270 "                          const char *device);\n"
25271 "\n"
25272 msgstr ""
25273
25274 #. type: =head2
25275 #: ../src/guestfs-actions.pod:708
25276 msgid "guestfs_blockdev_getro"
25277 msgstr ""
25278
25279 #. type: verbatim
25280 #: ../src/guestfs-actions.pod:710
25281 #, no-wrap
25282 msgid ""
25283 " int\n"
25284 " guestfs_blockdev_getro (guestfs_h *g,\n"
25285 "                         const char *device);\n"
25286 "\n"
25287 msgstr ""
25288
25289 #. type: textblock
25290 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25291 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25292 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25293 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25294 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25295 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25296 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25297 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25298 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25299 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25300 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25301 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25302 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25303 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25304 #: ../src/guestfs-actions.pod:5501
25305 msgid "This function returns a C truth value on success or -1 on error."
25306 msgstr ""
25307
25308 #. type: =head2
25309 #: ../src/guestfs-actions.pod:723
25310 msgid "guestfs_blockdev_getsize64"
25311 msgstr ""
25312
25313 #. type: verbatim
25314 #: ../src/guestfs-actions.pod:725
25315 #, no-wrap
25316 msgid ""
25317 " int64_t\n"
25318 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25319 "                             const char *device);\n"
25320 "\n"
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../src/guestfs-actions.pod:731
25325 msgid "See also C<guestfs_blockdev_getsz>."
25326 msgstr ""
25327
25328 #. type: =head2
25329 #: ../src/guestfs-actions.pod:739
25330 msgid "guestfs_blockdev_getss"
25331 msgstr ""
25332
25333 #. type: verbatim
25334 #: ../src/guestfs-actions.pod:741
25335 #, no-wrap
25336 msgid ""
25337 " int\n"
25338 " guestfs_blockdev_getss (guestfs_h *g,\n"
25339 "                         const char *device);\n"
25340 "\n"
25341 msgstr ""
25342
25343 #. type: textblock
25344 #: ../src/guestfs-actions.pod:748
25345 msgid ""
25346 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25347 "that)."
25348 msgstr ""
25349
25350 #. type: =head2
25351 #: ../src/guestfs-actions.pod:757
25352 msgid "guestfs_blockdev_getsz"
25353 msgstr ""
25354
25355 #. type: verbatim
25356 #: ../src/guestfs-actions.pod:759
25357 #, no-wrap
25358 msgid ""
25359 " int64_t\n"
25360 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25361 "                         const char *device);\n"
25362 "\n"
25363 msgstr ""
25364
25365 #. type: textblock
25366 #: ../src/guestfs-actions.pod:766
25367 msgid ""
25368 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25369 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25370 msgstr ""
25371
25372 #. type: =head2
25373 #: ../src/guestfs-actions.pod:776
25374 msgid "guestfs_blockdev_rereadpt"
25375 msgstr ""
25376
25377 #. type: verbatim
25378 #: ../src/guestfs-actions.pod:778
25379 #, no-wrap
25380 msgid ""
25381 " int\n"
25382 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25383 "                            const char *device);\n"
25384 "\n"
25385 msgstr ""
25386
25387 #. type: =head2
25388 #: ../src/guestfs-actions.pod:790
25389 msgid "guestfs_blockdev_setbsz"
25390 msgstr ""
25391
25392 #. type: verbatim
25393 #: ../src/guestfs-actions.pod:792
25394 #, no-wrap
25395 msgid ""
25396 " int\n"
25397 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25398 "                          const char *device,\n"
25399 "                          int blocksize);\n"
25400 "\n"
25401 msgstr ""
25402
25403 #. type: =head2
25404 #: ../src/guestfs-actions.pod:808
25405 msgid "guestfs_blockdev_setro"
25406 msgstr ""
25407
25408 #. type: verbatim
25409 #: ../src/guestfs-actions.pod:810
25410 #, no-wrap
25411 msgid ""
25412 " int\n"
25413 " guestfs_blockdev_setro (guestfs_h *g,\n"
25414 "                         const char *device);\n"
25415 "\n"
25416 msgstr ""
25417
25418 #. type: =head2
25419 #: ../src/guestfs-actions.pod:822
25420 msgid "guestfs_blockdev_setrw"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../src/guestfs-actions.pod:824
25425 #, no-wrap
25426 msgid ""
25427 " int\n"
25428 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25429 "                         const char *device);\n"
25430 "\n"
25431 msgstr ""
25432
25433 #. type: =head2
25434 #: ../src/guestfs-actions.pod:836
25435 msgid "guestfs_btrfs_filesystem_resize"
25436 msgstr ""
25437
25438 #. type: verbatim
25439 #: ../src/guestfs-actions.pod:838
25440 #, no-wrap
25441 msgid ""
25442 " int\n"
25443 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25444 "                                  const char *mountpoint,\n"
25445 "                                  ...);\n"
25446 "\n"
25447 msgstr ""
25448
25449 #. type: verbatim
25450 #: ../src/guestfs-actions.pod:848
25451 #, no-wrap
25452 msgid ""
25453 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25454 "\n"
25455 msgstr ""
25456
25457 #. type: textblock
25458 #: ../src/guestfs-actions.pod:871
25459 msgid "(Added in 1.11.17)"
25460 msgstr ""
25461
25462 #. type: =head2
25463 #: ../src/guestfs-actions.pod:873
25464 msgid "guestfs_btrfs_filesystem_resize_va"
25465 msgstr ""
25466
25467 #. type: verbatim
25468 #: ../src/guestfs-actions.pod:875
25469 #, no-wrap
25470 msgid ""
25471 " int\n"
25472 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25473 "                                     const char *mountpoint,\n"
25474 "                                     va_list args);\n"
25475 "\n"
25476 msgstr ""
25477
25478 #. type: textblock
25479 #: ../src/guestfs-actions.pod:880
25480 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25481 msgstr ""
25482
25483 #. type: =head2
25484 #: ../src/guestfs-actions.pod:884
25485 msgid "guestfs_btrfs_filesystem_resize_argv"
25486 msgstr ""
25487
25488 #. type: verbatim
25489 #: ../src/guestfs-actions.pod:886
25490 #, no-wrap
25491 msgid ""
25492 " int\n"
25493 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25494 "                                       const char *mountpoint,\n"
25495 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25496 "\n"
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../src/guestfs-actions.pod:891
25501 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25502 msgstr ""
25503
25504 #. type: =head2
25505 #: ../src/guestfs-actions.pod:895
25506 msgid "guestfs_case_sensitive_path"
25507 msgstr ""
25508
25509 #. type: verbatim
25510 #: ../src/guestfs-actions.pod:897
25511 #, no-wrap
25512 msgid ""
25513 " char *\n"
25514 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25515 "                              const char *path);\n"
25516 "\n"
25517 msgstr ""
25518
25519 #. type: textblock
25520 #: ../src/guestfs-actions.pod:923
25521 msgid ""
25522 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25523 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25524 "how the directories were originally created under Windows)."
25525 msgstr ""
25526
25527 #. type: textblock
25528 #: ../src/guestfs-actions.pod:931
25529 msgid "See also C<guestfs_realpath>."
25530 msgstr ""
25531
25532 #. type: textblock
25533 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
25534 msgid "(Added in 1.0.75)"
25535 msgstr ""
25536
25537 #. type: =head2
25538 #: ../src/guestfs-actions.pod:938
25539 msgid "guestfs_cat"
25540 msgstr ""
25541
25542 #. type: verbatim
25543 #: ../src/guestfs-actions.pod:940
25544 #, no-wrap
25545 msgid ""
25546 " char *\n"
25547 " guestfs_cat (guestfs_h *g,\n"
25548 "              const char *path);\n"
25549 "\n"
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../src/guestfs-actions.pod:946
25554 msgid ""
25555 "Note that this function cannot correctly handle binary files (specifically, "
25556 "files containing C<\\0> character which is treated as end of string).  For "
25557 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25558 "functions which have a more complex interface."
25559 msgstr ""
25560
25561 #. type: textblock
25562 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
25563 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
25564 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
25565 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
25566 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
25567 #: ../src/guestfs-actions.pod:7732
25568 msgid "(Added in 0.4)"
25569 msgstr ""
25570
25571 #. type: =head2
25572 #: ../src/guestfs-actions.pod:959
25573 msgid "guestfs_checksum"
25574 msgstr ""
25575
25576 #. type: verbatim
25577 #: ../src/guestfs-actions.pod:961
25578 #, no-wrap
25579 msgid ""
25580 " char *\n"
25581 " guestfs_checksum (guestfs_h *g,\n"
25582 "                   const char *csumtype,\n"
25583 "                   const char *path);\n"
25584 "\n"
25585 msgstr ""
25586
25587 #. type: textblock
25588 #: ../src/guestfs-actions.pod:1007
25589 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25590 msgstr ""
25591
25592 #. type: textblock
25593 #: ../src/guestfs-actions.pod:1009
25594 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25595 msgstr ""
25596
25597 #. type: textblock
25598 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
25599 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
25600 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
25601 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
25602 msgid "(Added in 1.0.2)"
25603 msgstr ""
25604
25605 #. type: =head2
25606 #: ../src/guestfs-actions.pod:1016
25607 msgid "guestfs_checksum_device"
25608 msgstr ""
25609
25610 #. type: verbatim
25611 #: ../src/guestfs-actions.pod:1018
25612 #, no-wrap
25613 msgid ""
25614 " char *\n"
25615 " guestfs_checksum_device (guestfs_h *g,\n"
25616 "                          const char *csumtype,\n"
25617 "                          const char *device);\n"
25618 "\n"
25619 msgstr ""
25620
25621 #. type: textblock
25622 #: ../src/guestfs-actions.pod:1023
25623 msgid ""
25624 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25625 "device named C<device>.  For the types of checksums supported see the "
25626 "C<guestfs_checksum> command."
25627 msgstr ""
25628
25629 #. type: textblock
25630 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
25631 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
25632 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
25633 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
25634 #: ../src/guestfs-actions.pod:7744
25635 msgid "(Added in 1.3.2)"
25636 msgstr ""
25637
25638 #. type: =head2
25639 #: ../src/guestfs-actions.pod:1032
25640 msgid "guestfs_checksums_out"
25641 msgstr ""
25642
25643 #. type: verbatim
25644 #: ../src/guestfs-actions.pod:1034
25645 #, no-wrap
25646 msgid ""
25647 " int\n"
25648 " guestfs_checksums_out (guestfs_h *g,\n"
25649 "                        const char *csumtype,\n"
25650 "                        const char *directory,\n"
25651 "                        const char *sumsfile);\n"
25652 "\n"
25653 msgstr ""
25654
25655 #. type: textblock
25656 #: ../src/guestfs-actions.pod:1054
25657 msgid "(Added in 1.3.7)"
25658 msgstr ""
25659
25660 #. type: =head2
25661 #: ../src/guestfs-actions.pod:1056
25662 msgid "guestfs_chmod"
25663 msgstr ""
25664
25665 #. type: verbatim
25666 #: ../src/guestfs-actions.pod:1058
25667 #, no-wrap
25668 msgid ""
25669 " int\n"
25670 " guestfs_chmod (guestfs_h *g,\n"
25671 "                int mode,\n"
25672 "                const char *path);\n"
25673 "\n"
25674 msgstr ""
25675
25676 #. type: =head2
25677 #: ../src/guestfs-actions.pod:1076
25678 msgid "guestfs_chown"
25679 msgstr ""
25680
25681 #. type: verbatim
25682 #: ../src/guestfs-actions.pod:1078
25683 #, no-wrap
25684 msgid ""
25685 " int\n"
25686 " guestfs_chown (guestfs_h *g,\n"
25687 "                int owner,\n"
25688 "                int group,\n"
25689 "                const char *path);\n"
25690 "\n"
25691 msgstr ""
25692
25693 #. type: =head2
25694 #: ../src/guestfs-actions.pod:1094
25695 msgid "guestfs_command"
25696 msgstr ""
25697
25698 #. type: verbatim
25699 #: ../src/guestfs-actions.pod:1096
25700 #, no-wrap
25701 msgid ""
25702 " char *\n"
25703 " guestfs_command (guestfs_h *g,\n"
25704 "                  char *const *arguments);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:1105
25710 msgid ""
25711 "The single parameter is an argv-style list of arguments.  The first element "
25712 "is the name of the program to run.  Subsequent elements are parameters.  The "
25713 "list must be non-empty (ie. must contain a program name).  Note that the "
25714 "command runs directly, and is I<not> invoked via the shell (see "
25715 "C<guestfs_sh>)."
25716 msgstr ""
25717
25718 #. type: textblock
25719 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
25720 #: ../src/guestfs-actions.pod:1732
25721 msgid "(Added in 0.9.1)"
25722 msgstr ""
25723
25724 #. type: =head2
25725 #: ../src/guestfs-actions.pod:1138
25726 msgid "guestfs_command_lines"
25727 msgstr ""
25728
25729 #. type: verbatim
25730 #: ../src/guestfs-actions.pod:1140
25731 #, no-wrap
25732 msgid ""
25733 " char **\n"
25734 " guestfs_command_lines (guestfs_h *g,\n"
25735 "                        char *const *arguments);\n"
25736 "\n"
25737 msgstr ""
25738
25739 #. type: textblock
25740 #: ../src/guestfs-actions.pod:1144
25741 msgid ""
25742 "This is the same as C<guestfs_command>, but splits the result into a list of "
25743 "lines."
25744 msgstr ""
25745
25746 #. type: textblock
25747 #: ../src/guestfs-actions.pod:1147
25748 msgid "See also: C<guestfs_sh_lines>"
25749 msgstr ""
25750
25751 #. type: =head2
25752 #: ../src/guestfs-actions.pod:1158
25753 msgid "guestfs_compress_device_out"
25754 msgstr ""
25755
25756 #. type: verbatim
25757 #: ../src/guestfs-actions.pod:1160
25758 #, no-wrap
25759 msgid ""
25760 " int\n"
25761 " guestfs_compress_device_out (guestfs_h *g,\n"
25762 "                              const char *ctype,\n"
25763 "                              const char *device,\n"
25764 "                              const char *zdevice,\n"
25765 "                              ...);\n"
25766 "\n"
25767 msgstr ""
25768
25769 #. type: verbatim
25770 #: ../src/guestfs-actions.pod:1172
25771 #, no-wrap
25772 msgid ""
25773 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25774 "\n"
25775 msgstr ""
25776
25777 #. type: textblock
25778 #: ../src/guestfs-actions.pod:1177
25779 msgid ""
25780 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25781 "C<guestfs_compress_out>."
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
25786 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
25787 msgid "(Added in 1.13.15)"
25788 msgstr ""
25789
25790 #. type: =head2
25791 #: ../src/guestfs-actions.pod:1184
25792 msgid "guestfs_compress_device_out_va"
25793 msgstr ""
25794
25795 #. type: verbatim
25796 #: ../src/guestfs-actions.pod:1186
25797 #, no-wrap
25798 msgid ""
25799 " int\n"
25800 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25801 "                                 const char *ctype,\n"
25802 "                                 const char *device,\n"
25803 "                                 const char *zdevice,\n"
25804 "                                 va_list args);\n"
25805 "\n"
25806 msgstr ""
25807
25808 #. type: textblock
25809 #: ../src/guestfs-actions.pod:1193
25810 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25811 msgstr ""
25812
25813 #. type: =head2
25814 #: ../src/guestfs-actions.pod:1197
25815 msgid "guestfs_compress_device_out_argv"
25816 msgstr ""
25817
25818 #. type: verbatim
25819 #: ../src/guestfs-actions.pod:1199
25820 #, no-wrap
25821 msgid ""
25822 " int\n"
25823 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25824 "                                   const char *ctype,\n"
25825 "                                   const char *device,\n"
25826 "                                   const char *zdevice,\n"
25827 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25828 "\n"
25829 msgstr ""
25830
25831 #. type: textblock
25832 #: ../src/guestfs-actions.pod:1206
25833 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25834 msgstr ""
25835
25836 #. type: =head2
25837 #: ../src/guestfs-actions.pod:1210
25838 msgid "guestfs_compress_out"
25839 msgstr ""
25840
25841 #. type: verbatim
25842 #: ../src/guestfs-actions.pod:1212
25843 #, no-wrap
25844 msgid ""
25845 " int\n"
25846 " guestfs_compress_out (guestfs_h *g,\n"
25847 "                       const char *ctype,\n"
25848 "                       const char *file,\n"
25849 "                       const char *zfile,\n"
25850 "                       ...);\n"
25851 "\n"
25852 msgstr ""
25853
25854 #. type: verbatim
25855 #: ../src/guestfs-actions.pod:1224
25856 #, no-wrap
25857 msgid ""
25858 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25859 "\n"
25860 msgstr ""
25861
25862 #. type: =head2
25863 #: ../src/guestfs-actions.pod:1243
25864 msgid "guestfs_compress_out_va"
25865 msgstr ""
25866
25867 #. type: verbatim
25868 #: ../src/guestfs-actions.pod:1245
25869 #, no-wrap
25870 msgid ""
25871 " int\n"
25872 " guestfs_compress_out_va (guestfs_h *g,\n"
25873 "                          const char *ctype,\n"
25874 "                          const char *file,\n"
25875 "                          const char *zfile,\n"
25876 "                          va_list args);\n"
25877 "\n"
25878 msgstr ""
25879
25880 #. type: textblock
25881 #: ../src/guestfs-actions.pod:1252
25882 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25883 msgstr ""
25884
25885 #. type: =head2
25886 #: ../src/guestfs-actions.pod:1256
25887 msgid "guestfs_compress_out_argv"
25888 msgstr ""
25889
25890 #. type: verbatim
25891 #: ../src/guestfs-actions.pod:1258
25892 #, no-wrap
25893 msgid ""
25894 " int\n"
25895 " guestfs_compress_out_argv (guestfs_h *g,\n"
25896 "                            const char *ctype,\n"
25897 "                            const char *file,\n"
25898 "                            const char *zfile,\n"
25899 "                            const struct guestfs_compress_out_argv *optargs);\n"
25900 "\n"
25901 msgstr ""
25902
25903 #. type: textblock
25904 #: ../src/guestfs-actions.pod:1265
25905 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25906 msgstr ""
25907
25908 #. type: =head2
25909 #: ../src/guestfs-actions.pod:1269
25910 msgid "guestfs_config"
25911 msgstr ""
25912
25913 #. type: verbatim
25914 #: ../src/guestfs-actions.pod:1271
25915 #, no-wrap
25916 msgid ""
25917 " int\n"
25918 " guestfs_config (guestfs_h *g,\n"
25919 "                 const char *qemuparam,\n"
25920 "                 const char *qemuvalue);\n"
25921 "\n"
25922 msgstr ""
25923
25924 #. type: =head2
25925 #: ../src/guestfs-actions.pod:1289
25926 msgid "guestfs_copy_size"
25927 msgstr ""
25928
25929 #. type: verbatim
25930 #: ../src/guestfs-actions.pod:1291
25931 #, no-wrap
25932 msgid ""
25933 " int\n"
25934 " guestfs_copy_size (guestfs_h *g,\n"
25935 "                    const char *src,\n"
25936 "                    const char *dest,\n"
25937 "                    int64_t size);\n"
25938 "\n"
25939 msgstr ""
25940
25941 #. type: textblock
25942 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
25943 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
25944 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
25945 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
25946 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
25947 #: ../src/guestfs-actions.pod:7980
25948 msgid ""
25949 "This long-running command can generate progress notification messages so "
25950 "that the caller can display a progress bar or indicator.  To receive these "
25951 "messages, the caller must register a progress event callback.  See L<guestfs"
25952 "(3)/GUESTFS_EVENT_PROGRESS>."
25953 msgstr ""
25954
25955 #. type: textblock
25956 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
25957 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
25958 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
25959 msgid "(Added in 1.0.87)"
25960 msgstr ""
25961
25962 #. type: =head2
25963 #: ../src/guestfs-actions.pod:1312
25964 msgid "guestfs_cp"
25965 msgstr ""
25966
25967 #. type: verbatim
25968 #: ../src/guestfs-actions.pod:1314
25969 #, no-wrap
25970 msgid ""
25971 " int\n"
25972 " guestfs_cp (guestfs_h *g,\n"
25973 "             const char *src,\n"
25974 "             const char *dest);\n"
25975 "\n"
25976 msgstr ""
25977
25978 #. type: textblock
25979 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
25980 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
25981 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
25982 #: ../src/guestfs-actions.pod:5753
25983 msgid "(Added in 1.0.18)"
25984 msgstr ""
25985
25986 #. type: =head2
25987 #: ../src/guestfs-actions.pod:1326
25988 msgid "guestfs_cp_a"
25989 msgstr ""
25990
25991 #. type: verbatim
25992 #: ../src/guestfs-actions.pod:1328
25993 #, no-wrap
25994 msgid ""
25995 " int\n"
25996 " guestfs_cp_a (guestfs_h *g,\n"
25997 "               const char *src,\n"
25998 "               const char *dest);\n"
25999 "\n"
26000 msgstr ""
26001
26002 #. type: =head2
26003 #: ../src/guestfs-actions.pod:1340
26004 msgid "guestfs_dd"
26005 msgstr ""
26006
26007 #. type: verbatim
26008 #: ../src/guestfs-actions.pod:1342
26009 #, no-wrap
26010 msgid ""
26011 " int\n"
26012 " guestfs_dd (guestfs_h *g,\n"
26013 "             const char *src,\n"
26014 "             const char *dest);\n"
26015 "\n"
26016 msgstr ""
26017
26018 #. type: textblock
26019 #: ../src/guestfs-actions.pod:1352
26020 msgid ""
26021 "If the destination is a device, it must be as large or larger than the "
26022 "source file or device, otherwise the copy will fail.  This command cannot do "
26023 "partial copies (see C<guestfs_copy_size>)."
26024 msgstr ""
26025
26026 #. type: =head2
26027 #: ../src/guestfs-actions.pod:1360
26028 msgid "guestfs_df"
26029 msgstr ""
26030
26031 #. type: verbatim
26032 #: ../src/guestfs-actions.pod:1362
26033 #, no-wrap
26034 msgid ""
26035 " char *\n"
26036 " guestfs_df (guestfs_h *g);\n"
26037 "\n"
26038 msgstr ""
26039
26040 #. type: textblock
26041 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26042 msgid ""
26043 "This command is mostly useful for interactive sessions.  It is I<not> "
26044 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26045 "from programs."
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26050 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26051 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26052 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26053 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26054 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26055 #: ../src/guestfs-actions.pod:7823
26056 msgid "(Added in 1.0.54)"
26057 msgstr ""
26058
26059 #. type: =head2
26060 #: ../src/guestfs-actions.pod:1376
26061 msgid "guestfs_df_h"
26062 msgstr ""
26063
26064 #. type: verbatim
26065 #: ../src/guestfs-actions.pod:1378
26066 #, no-wrap
26067 msgid ""
26068 " char *\n"
26069 " guestfs_df_h (guestfs_h *g);\n"
26070 "\n"
26071 msgstr ""
26072
26073 #. type: =head2
26074 #: ../src/guestfs-actions.pod:1393
26075 msgid "guestfs_dmesg"
26076 msgstr ""
26077
26078 #. type: verbatim
26079 #: ../src/guestfs-actions.pod:1395
26080 #, no-wrap
26081 msgid ""
26082 " char *\n"
26083 " guestfs_dmesg (guestfs_h *g);\n"
26084 "\n"
26085 msgstr ""
26086
26087 #. type: textblock
26088 #: ../src/guestfs-actions.pod:1402
26089 msgid ""
26090 "Another way to get the same information is to enable verbose messages with "
26091 "C<guestfs_set_verbose> or by setting the environment variable "
26092 "C<LIBGUESTFS_DEBUG=1> before running the program."
26093 msgstr ""
26094
26095 #. type: =head2
26096 #: ../src/guestfs-actions.pod:1412
26097 msgid "guestfs_download"
26098 msgstr ""
26099
26100 #. type: verbatim
26101 #: ../src/guestfs-actions.pod:1414
26102 #, no-wrap
26103 msgid ""
26104 " int\n"
26105 " guestfs_download (guestfs_h *g,\n"
26106 "                   const char *remotefilename,\n"
26107 "                   const char *filename);\n"
26108 "\n"
26109 msgstr ""
26110
26111 #. type: textblock
26112 #: ../src/guestfs-actions.pod:1424
26113 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26114 msgstr ""
26115
26116 #. type: =head2
26117 #: ../src/guestfs-actions.pod:1435
26118 msgid "guestfs_download_offset"
26119 msgstr ""
26120
26121 #. type: verbatim
26122 #: ../src/guestfs-actions.pod:1437
26123 #, no-wrap
26124 msgid ""
26125 " int\n"
26126 " guestfs_download_offset (guestfs_h *g,\n"
26127 "                          const char *remotefilename,\n"
26128 "                          const char *filename,\n"
26129 "                          int64_t offset,\n"
26130 "                          int64_t size);\n"
26131 "\n"
26132 msgstr ""
26133
26134 #. type: textblock
26135 #: ../src/guestfs-actions.pod:1450
26136 msgid ""
26137 "Note that there is no limit on the amount of data that can be downloaded "
26138 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26139 "full amount unless an error occurs."
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../src/guestfs-actions.pod:1455
26144 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26145 msgstr ""
26146
26147 #. type: textblock
26148 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26149 msgid "(Added in 1.5.17)"
26150 msgstr ""
26151
26152 #. type: =head2
26153 #: ../src/guestfs-actions.pod:1466
26154 msgid "guestfs_drop_caches"
26155 msgstr ""
26156
26157 #. type: verbatim
26158 #: ../src/guestfs-actions.pod:1468
26159 #, no-wrap
26160 msgid ""
26161 " int\n"
26162 " guestfs_drop_caches (guestfs_h *g,\n"
26163 "                      int whattodrop);\n"
26164 "\n"
26165 msgstr ""
26166
26167 #. type: =head2
26168 #: ../src/guestfs-actions.pod:1486
26169 msgid "guestfs_du"
26170 msgstr ""
26171
26172 #. type: verbatim
26173 #: ../src/guestfs-actions.pod:1488
26174 #, no-wrap
26175 msgid ""
26176 " int64_t\n"
26177 " guestfs_du (guestfs_h *g,\n"
26178 "             const char *path);\n"
26179 "\n"
26180 msgstr ""
26181
26182 #. type: =head2
26183 #: ../src/guestfs-actions.pod:1511
26184 msgid "guestfs_e2fsck_f"
26185 msgstr ""
26186
26187 #. type: verbatim
26188 #: ../src/guestfs-actions.pod:1513
26189 #, no-wrap
26190 msgid ""
26191 " int\n"
26192 " guestfs_e2fsck_f (guestfs_h *g,\n"
26193 "                   const char *device);\n"
26194 "\n"
26195 msgstr ""
26196
26197 #. type: textblock
26198 #: ../src/guestfs-actions.pod:1521
26199 msgid ""
26200 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26201 "Normally you should use C<guestfs_fsck>."
26202 msgstr ""
26203
26204 #. type: textblock
26205 #: ../src/guestfs-actions.pod:1526
26206 msgid "(Added in 1.0.29)"
26207 msgstr ""
26208
26209 #. type: =head2
26210 #: ../src/guestfs-actions.pod:1528
26211 msgid "guestfs_echo_daemon"
26212 msgstr ""
26213
26214 #. type: verbatim
26215 #: ../src/guestfs-actions.pod:1530
26216 #, no-wrap
26217 msgid ""
26218 " char *\n"
26219 " guestfs_echo_daemon (guestfs_h *g,\n"
26220 "                      char *const *words);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: textblock
26225 #: ../src/guestfs-actions.pod:1539
26226 msgid "See also C<guestfs_ping_daemon>."
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26231 #: ../src/guestfs-actions.pod:6626
26232 msgid "(Added in 1.0.69)"
26233 msgstr ""
26234
26235 #. type: =head2
26236 #: ../src/guestfs-actions.pod:1546
26237 msgid "guestfs_egrep"
26238 msgstr ""
26239
26240 #. type: verbatim
26241 #: ../src/guestfs-actions.pod:1548
26242 #, no-wrap
26243 msgid ""
26244 " char **\n"
26245 " guestfs_egrep (guestfs_h *g,\n"
26246 "                const char *regex,\n"
26247 "                const char *path);\n"
26248 "\n"
26249 msgstr ""
26250
26251 #. type: textblock
26252 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26253 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26254 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26255 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26256 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26257 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26258 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26259 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26260 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26261 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
26262 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
26263 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
26264 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
26265 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
26266 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
26267 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
26268 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
26269 msgid "(Added in 1.0.66)"
26270 msgstr ""
26271
26272 #. type: =head2
26273 #: ../src/guestfs-actions.pod:1565
26274 msgid "guestfs_egrepi"
26275 msgstr ""
26276
26277 #. type: verbatim
26278 #: ../src/guestfs-actions.pod:1567
26279 #, no-wrap
26280 msgid ""
26281 " char **\n"
26282 " guestfs_egrepi (guestfs_h *g,\n"
26283 "                 const char *regex,\n"
26284 "                 const char *path);\n"
26285 "\n"
26286 msgstr ""
26287
26288 #. type: =head2
26289 #: ../src/guestfs-actions.pod:1584
26290 msgid "guestfs_equal"
26291 msgstr ""
26292
26293 #. type: verbatim
26294 #: ../src/guestfs-actions.pod:1586
26295 #, no-wrap
26296 msgid ""
26297 " int\n"
26298 " guestfs_equal (guestfs_h *g,\n"
26299 "                const char *file1,\n"
26300 "                const char *file2);\n"
26301 "\n"
26302 msgstr ""
26303
26304 #. type: =head2
26305 #: ../src/guestfs-actions.pod:1600
26306 msgid "guestfs_exists"
26307 msgstr ""
26308
26309 #. type: verbatim
26310 #: ../src/guestfs-actions.pod:1602
26311 #, no-wrap
26312 msgid ""
26313 " int\n"
26314 " guestfs_exists (guestfs_h *g,\n"
26315 "                 const char *path);\n"
26316 "\n"
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../src/guestfs-actions.pod:1609
26321 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26322 msgstr ""
26323
26324 #. type: =head2
26325 #: ../src/guestfs-actions.pod:1615
26326 msgid "guestfs_fallocate"
26327 msgstr ""
26328
26329 #. type: verbatim
26330 #: ../src/guestfs-actions.pod:1617
26331 #, no-wrap
26332 msgid ""
26333 " int\n"
26334 " guestfs_fallocate (guestfs_h *g,\n"
26335 "                    const char *path,\n"
26336 "                    int len);\n"
26337 "\n"
26338 msgstr ""
26339
26340 #. type: textblock
26341 #: ../src/guestfs-actions.pod:1622
26342 msgid ""
26343 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26344 "call instead."
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:1641
26349 msgid "guestfs_fallocate64"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:1643
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_fallocate64 (guestfs_h *g,\n"
26358 "                      const char *path,\n"
26359 "                      int64_t len);\n"
26360 "\n"
26361 msgstr ""
26362
26363 #. type: textblock
26364 #: ../src/guestfs-actions.pod:1652
26365 msgid ""
26366 "Note that this call allocates disk blocks for the file.  To create a sparse "
26367 "file use C<guestfs_truncate_size> instead."
26368 msgstr ""
26369
26370 #. type: textblock
26371 #: ../src/guestfs-actions.pod:1655
26372 msgid ""
26373 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26374 "oversight it only allowed 30 bit lengths to be specified, effectively "
26375 "limiting the maximum size of files created through that call to 1GB."
26376 msgstr ""
26377
26378 #. type: textblock
26379 #: ../src/guestfs-actions.pod:1666
26380 msgid "(Added in 1.3.17)"
26381 msgstr ""
26382
26383 #. type: =head2
26384 #: ../src/guestfs-actions.pod:1668
26385 msgid "guestfs_fgrep"
26386 msgstr ""
26387
26388 #. type: verbatim
26389 #: ../src/guestfs-actions.pod:1670
26390 #, no-wrap
26391 msgid ""
26392 " char **\n"
26393 " guestfs_fgrep (guestfs_h *g,\n"
26394 "                const char *pattern,\n"
26395 "                const char *path);\n"
26396 "\n"
26397 msgstr ""
26398
26399 #. type: =head2
26400 #: ../src/guestfs-actions.pod:1687
26401 msgid "guestfs_fgrepi"
26402 msgstr ""
26403
26404 #. type: verbatim
26405 #: ../src/guestfs-actions.pod:1689
26406 #, no-wrap
26407 msgid ""
26408 " char **\n"
26409 " guestfs_fgrepi (guestfs_h *g,\n"
26410 "                 const char *pattern,\n"
26411 "                 const char *path);\n"
26412 "\n"
26413 msgstr ""
26414
26415 #. type: =head2
26416 #: ../src/guestfs-actions.pod:1706
26417 msgid "guestfs_file"
26418 msgstr ""
26419
26420 #. type: verbatim
26421 #: ../src/guestfs-actions.pod:1708
26422 #, no-wrap
26423 msgid ""
26424 " char *\n"
26425 " guestfs_file (guestfs_h *g,\n"
26426 "               const char *path);\n"
26427 "\n"
26428 msgstr ""
26429
26430 #. type: textblock
26431 #: ../src/guestfs-actions.pod:1726
26432 msgid ""
26433 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26434 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:1734
26439 msgid "guestfs_file_architecture"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:1736
26444 #, no-wrap
26445 msgid ""
26446 " char *\n"
26447 " guestfs_file_architecture (guestfs_h *g,\n"
26448 "                            const char *filename);\n"
26449 "\n"
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
26454 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
26455 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
26456 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
26457 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
26458 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
26459 #: ../src/guestfs-actions.pod:3713
26460 msgid "(Added in 1.5.3)"
26461 msgstr ""
26462
26463 #. type: =head2
26464 #: ../src/guestfs-actions.pod:1846
26465 msgid "guestfs_filesize"
26466 msgstr ""
26467
26468 #. type: verbatim
26469 #: ../src/guestfs-actions.pod:1848
26470 #, no-wrap
26471 msgid ""
26472 " int64_t\n"
26473 " guestfs_filesize (guestfs_h *g,\n"
26474 "                   const char *file);\n"
26475 "\n"
26476 msgstr ""
26477
26478 #. type: textblock
26479 #: ../src/guestfs-actions.pod:1854
26480 msgid ""
26481 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26482 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26483 "devices, use C<guestfs_blockdev_getsize64>."
26484 msgstr ""
26485
26486 #. type: textblock
26487 #: ../src/guestfs-actions.pod:1860
26488 msgid "(Added in 1.0.82)"
26489 msgstr ""
26490
26491 #. type: =head2
26492 #: ../src/guestfs-actions.pod:1862
26493 msgid "guestfs_fill"
26494 msgstr ""
26495
26496 #. type: verbatim
26497 #: ../src/guestfs-actions.pod:1864
26498 #, no-wrap
26499 msgid ""
26500 " int\n"
26501 " guestfs_fill (guestfs_h *g,\n"
26502 "               int c,\n"
26503 "               int len,\n"
26504 "               const char *path);\n"
26505 "\n"
26506 msgstr ""
26507
26508 #. type: textblock
26509 #: ../src/guestfs-actions.pod:1874
26510 msgid ""
26511 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26512 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26513 "bytes use C<guestfs_fill_pattern>."
26514 msgstr ""
26515
26516 #. type: textblock
26517 #: ../src/guestfs-actions.pod:1886
26518 msgid "(Added in 1.0.79)"
26519 msgstr ""
26520
26521 #. type: =head2
26522 #: ../src/guestfs-actions.pod:1888
26523 msgid "guestfs_fill_pattern"
26524 msgstr ""
26525
26526 #. type: verbatim
26527 #: ../src/guestfs-actions.pod:1890
26528 #, no-wrap
26529 msgid ""
26530 " int\n"
26531 " guestfs_fill_pattern (guestfs_h *g,\n"
26532 "                       const char *pattern,\n"
26533 "                       int len,\n"
26534 "                       const char *path);\n"
26535 "\n"
26536 msgstr ""
26537
26538 #. type: textblock
26539 #: ../src/guestfs-actions.pod:1896
26540 msgid ""
26541 "This function is like C<guestfs_fill> except that it creates a new file of "
26542 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26543 "pattern is truncated if necessary to ensure the length of the file is "
26544 "exactly C<len> bytes."
26545 msgstr ""
26546
26547 #. type: textblock
26548 #: ../src/guestfs-actions.pod:1908
26549 msgid "(Added in 1.3.12)"
26550 msgstr ""
26551
26552 #. type: =head2
26553 #: ../src/guestfs-actions.pod:1910
26554 msgid "guestfs_find"
26555 msgstr ""
26556
26557 #. type: verbatim
26558 #: ../src/guestfs-actions.pod:1912
26559 #, no-wrap
26560 msgid ""
26561 " char **\n"
26562 " guestfs_find (guestfs_h *g,\n"
26563 "               const char *directory);\n"
26564 "\n"
26565 msgstr ""
26566
26567 #. type: textblock
26568 #: ../src/guestfs-actions.pod:1928
26569 msgid ""
26570 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26571 msgstr ""
26572
26573 #. type: textblock
26574 #: ../src/guestfs-actions.pod:1941
26575 msgid "See also C<guestfs_find0>."
26576 msgstr ""
26577
26578 #. type: textblock
26579 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
26580 #: ../src/guestfs-actions.pod:6171
26581 msgid "(Added in 1.0.27)"
26582 msgstr ""
26583
26584 #. type: =head2
26585 #: ../src/guestfs-actions.pod:1952
26586 msgid "guestfs_find0"
26587 msgstr ""
26588
26589 #. type: verbatim
26590 #: ../src/guestfs-actions.pod:1954
26591 #, no-wrap
26592 msgid ""
26593 " int\n"
26594 " guestfs_find0 (guestfs_h *g,\n"
26595 "                const char *directory,\n"
26596 "                const char *files);\n"
26597 "\n"
26598 msgstr ""
26599
26600 #. type: textblock
26601 #: ../src/guestfs-actions.pod:1963
26602 msgid ""
26603 "This command works the same way as C<guestfs_find> with the following "
26604 "exceptions:"
26605 msgstr ""
26606
26607 #. type: textblock
26608 #: ../src/guestfs-actions.pod:1990
26609 msgid "(Added in 1.0.74)"
26610 msgstr ""
26611
26612 #. type: =head2
26613 #: ../src/guestfs-actions.pod:1992
26614 msgid "guestfs_findfs_label"
26615 msgstr ""
26616
26617 #. type: verbatim
26618 #: ../src/guestfs-actions.pod:1994
26619 #, no-wrap
26620 msgid ""
26621 " char *\n"
26622 " guestfs_findfs_label (guestfs_h *g,\n"
26623 "                       const char *label);\n"
26624 "\n"
26625 msgstr ""
26626
26627 #. type: textblock
26628 #: ../src/guestfs-actions.pod:2002
26629 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:2009
26634 msgid "guestfs_findfs_uuid"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:2011
26639 #, no-wrap
26640 msgid ""
26641 " char *\n"
26642 " guestfs_findfs_uuid (guestfs_h *g,\n"
26643 "                      const char *uuid);\n"
26644 "\n"
26645 msgstr ""
26646
26647 #. type: textblock
26648 #: ../src/guestfs-actions.pod:2019
26649 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:2026
26654 msgid "guestfs_fsck"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:2028
26659 #, no-wrap
26660 msgid ""
26661 " int\n"
26662 " guestfs_fsck (guestfs_h *g,\n"
26663 "               const char *fstype,\n"
26664 "               const char *device);\n"
26665 "\n"
26666 msgstr ""
26667
26668 #. type: textblock
26669 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
26670 msgid "(Added in 1.0.16)"
26671 msgstr ""
26672
26673 #. type: =head2
26674 #: ../src/guestfs-actions.pod:2065
26675 msgid "guestfs_get_append"
26676 msgstr ""
26677
26678 #. type: verbatim
26679 #: ../src/guestfs-actions.pod:2067
26680 #, no-wrap
26681 msgid ""
26682 " const char *\n"
26683 " guestfs_get_append (guestfs_h *g);\n"
26684 "\n"
26685 msgstr ""
26686
26687 #. type: textblock
26688 #: ../src/guestfs-actions.pod:2075
26689 msgid ""
26690 "This function returns a string which may be NULL.  There is no way to return "
26691 "an error from this function.  The string is owned by the guest handle and "
26692 "must I<not> be freed."
26693 msgstr ""
26694
26695 #. type: textblock
26696 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
26697 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
26698 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
26699 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
26700 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
26701 msgid "(Added in 1.0.26)"
26702 msgstr ""
26703
26704 #. type: =head2
26705 #: ../src/guestfs-actions.pod:2081
26706 msgid "guestfs_get_attach_method"
26707 msgstr ""
26708
26709 #. type: verbatim
26710 #: ../src/guestfs-actions.pod:2083
26711 #, no-wrap
26712 msgid ""
26713 " char *\n"
26714 " guestfs_get_attach_method (guestfs_h *g);\n"
26715 "\n"
26716 msgstr ""
26717
26718 #. type: textblock
26719 #: ../src/guestfs-actions.pod:2086
26720 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26721 msgstr ""
26722
26723 #. type: textblock
26724 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
26725 msgid "(Added in 1.9.8)"
26726 msgstr ""
26727
26728 #. type: =head2
26729 #: ../src/guestfs-actions.pod:2093
26730 msgid "guestfs_get_autosync"
26731 msgstr ""
26732
26733 #. type: verbatim
26734 #: ../src/guestfs-actions.pod:2095
26735 #, no-wrap
26736 msgid ""
26737 " int\n"
26738 " guestfs_get_autosync (guestfs_h *g);\n"
26739 "\n"
26740 msgstr ""
26741
26742 #. type: =head2
26743 #: ../src/guestfs-actions.pod:2104
26744 msgid "guestfs_get_direct"
26745 msgstr ""
26746
26747 #. type: verbatim
26748 #: ../src/guestfs-actions.pod:2106
26749 #, no-wrap
26750 msgid ""
26751 " int\n"
26752 " guestfs_get_direct (guestfs_h *g);\n"
26753 "\n"
26754 msgstr ""
26755
26756 #. type: textblock
26757 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
26758 msgid "(Added in 1.0.72)"
26759 msgstr ""
26760
26761 #. type: =head2
26762 #: ../src/guestfs-actions.pod:2115
26763 msgid "guestfs_get_e2label"
26764 msgstr ""
26765
26766 #. type: verbatim
26767 #: ../src/guestfs-actions.pod:2117
26768 #, no-wrap
26769 msgid ""
26770 " char *\n"
26771 " guestfs_get_e2label (guestfs_h *g,\n"
26772 "                      const char *device);\n"
26773 "\n"
26774 msgstr ""
26775
26776 #. type: textblock
26777 #: ../src/guestfs-actions.pod:2121
26778 msgid ""
26779 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26780 "call instead."
26781 msgstr ""
26782
26783 #. type: textblock
26784 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
26785 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
26786 msgid "(Added in 1.0.15)"
26787 msgstr ""
26788
26789 #. type: =head2
26790 #: ../src/guestfs-actions.pod:2136
26791 msgid "guestfs_get_e2uuid"
26792 msgstr ""
26793
26794 #. type: verbatim
26795 #: ../src/guestfs-actions.pod:2138
26796 #, no-wrap
26797 msgid ""
26798 " char *\n"
26799 " guestfs_get_e2uuid (guestfs_h *g,\n"
26800 "                     const char *device);\n"
26801 "\n"
26802 msgstr ""
26803
26804 #. type: textblock
26805 #: ../src/guestfs-actions.pod:2142
26806 msgid ""
26807 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26808 "call instead."
26809 msgstr ""
26810
26811 #. type: =head2
26812 #: ../src/guestfs-actions.pod:2157
26813 msgid "guestfs_get_memsize"
26814 msgstr ""
26815
26816 #. type: verbatim
26817 #: ../src/guestfs-actions.pod:2159
26818 #, no-wrap
26819 msgid ""
26820 " int\n"
26821 " guestfs_get_memsize (guestfs_h *g);\n"
26822 "\n"
26823 msgstr ""
26824
26825 #. type: textblock
26826 #: ../src/guestfs-actions.pod:2165
26827 msgid ""
26828 "If C<guestfs_set_memsize> was not called on this handle, and if "
26829 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26830 "value for memsize."
26831 msgstr ""
26832
26833 #. type: textblock
26834 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
26835 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
26836 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
26837 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
26838 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
26839 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
26840 msgid "(Added in 1.0.55)"
26841 msgstr ""
26842
26843 #. type: =head2
26844 #: ../src/guestfs-actions.pod:2176
26845 msgid "guestfs_get_network"
26846 msgstr ""
26847
26848 #. type: verbatim
26849 #: ../src/guestfs-actions.pod:2178
26850 #, no-wrap
26851 msgid ""
26852 " int\n"
26853 " guestfs_get_network (guestfs_h *g);\n"
26854 "\n"
26855 msgstr ""
26856
26857 #. type: textblock
26858 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
26859 msgid "(Added in 1.5.4)"
26860 msgstr ""
26861
26862 #. type: =head2
26863 #: ../src/guestfs-actions.pod:2187
26864 msgid "guestfs_get_path"
26865 msgstr ""
26866
26867 #. type: verbatim
26868 #: ../src/guestfs-actions.pod:2189
26869 #, no-wrap
26870 msgid ""
26871 " const char *\n"
26872 " guestfs_get_path (guestfs_h *g);\n"
26873 "\n"
26874 msgstr ""
26875
26876 #. type: textblock
26877 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
26878 msgid ""
26879 "This function returns a string, or NULL on error.  The string is owned by "
26880 "the guest handle and must I<not> be freed."
26881 msgstr ""
26882
26883 #. type: =head2
26884 #: ../src/guestfs-actions.pod:2202
26885 msgid "guestfs_get_pgroup"
26886 msgstr ""
26887
26888 #. type: verbatim
26889 #: ../src/guestfs-actions.pod:2204
26890 #, no-wrap
26891 msgid ""
26892 " int\n"
26893 " guestfs_get_pgroup (guestfs_h *g);\n"
26894 "\n"
26895 msgstr ""
26896
26897 #. type: textblock
26898 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
26899 #: ../src/guestfs-actions.pod:7863
26900 msgid "(Added in 1.11.18)"
26901 msgstr ""
26902
26903 #. type: =head2
26904 #: ../src/guestfs-actions.pod:2213
26905 msgid "guestfs_get_pid"
26906 msgstr ""
26907
26908 #. type: verbatim
26909 #: ../src/guestfs-actions.pod:2215
26910 #, no-wrap
26911 msgid ""
26912 " int\n"
26913 " guestfs_get_pid (guestfs_h *g);\n"
26914 "\n"
26915 msgstr ""
26916
26917 #. type: textblock
26918 #: ../src/guestfs-actions.pod:2225
26919 msgid "(Added in 1.0.56)"
26920 msgstr ""
26921
26922 #. type: =head2
26923 #: ../src/guestfs-actions.pod:2227
26924 msgid "guestfs_get_qemu"
26925 msgstr ""
26926
26927 #. type: verbatim
26928 #: ../src/guestfs-actions.pod:2229
26929 #, no-wrap
26930 msgid ""
26931 " const char *\n"
26932 " guestfs_get_qemu (guestfs_h *g);\n"
26933 "\n"
26934 msgstr ""
26935
26936 #. type: textblock
26937 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
26938 msgid "(Added in 1.0.6)"
26939 msgstr ""
26940
26941 #. type: =head2
26942 #: ../src/guestfs-actions.pod:2242
26943 msgid "guestfs_get_recovery_proc"
26944 msgstr ""
26945
26946 #. type: verbatim
26947 #: ../src/guestfs-actions.pod:2244
26948 #, no-wrap
26949 msgid ""
26950 " int\n"
26951 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26952 "\n"
26953 msgstr ""
26954
26955 #. type: textblock
26956 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
26957 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
26958 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
26959 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
26960 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
26961 #: ../src/guestfs-actions.pod:7486
26962 msgid "(Added in 1.0.77)"
26963 msgstr ""
26964
26965 #. type: =head2
26966 #: ../src/guestfs-actions.pod:2253
26967 msgid "guestfs_get_selinux"
26968 msgstr ""
26969
26970 #. type: verbatim
26971 #: ../src/guestfs-actions.pod:2255
26972 #, no-wrap
26973 msgid ""
26974 " int\n"
26975 " guestfs_get_selinux (guestfs_h *g);\n"
26976 "\n"
26977 msgstr ""
26978
26979 #. type: textblock
26980 #: ../src/guestfs-actions.pod:2258
26981 msgid ""
26982 "This returns the current setting of the selinux flag which is passed to the "
26983 "appliance at boot time.  See C<guestfs_set_selinux>."
26984 msgstr ""
26985
26986 #. type: textblock
26987 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
26988 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
26989 msgid "(Added in 1.0.67)"
26990 msgstr ""
26991
26992 #. type: =head2
26993 #: ../src/guestfs-actions.pod:2268
26994 msgid "guestfs_get_smp"
26995 msgstr ""
26996
26997 #. type: verbatim
26998 #: ../src/guestfs-actions.pod:2270
26999 #, no-wrap
27000 msgid ""
27001 " int\n"
27002 " guestfs_get_smp (guestfs_h *g);\n"
27003 "\n"
27004 msgstr ""
27005
27006 #. type: =head2
27007 #: ../src/guestfs-actions.pod:2279
27008 msgid "guestfs_get_state"
27009 msgstr ""
27010
27011 #. type: verbatim
27012 #: ../src/guestfs-actions.pod:2281
27013 #, no-wrap
27014 msgid ""
27015 " int\n"
27016 " guestfs_get_state (guestfs_h *g);\n"
27017 "\n"
27018 msgstr ""
27019
27020 #. type: =head2
27021 #: ../src/guestfs-actions.pod:2293
27022 msgid "guestfs_get_trace"
27023 msgstr ""
27024
27025 #. type: verbatim
27026 #: ../src/guestfs-actions.pod:2295
27027 #, no-wrap
27028 msgid ""
27029 " int\n"
27030 " guestfs_get_trace (guestfs_h *g);\n"
27031 "\n"
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../src/guestfs-actions.pod:2304
27036 msgid "guestfs_get_umask"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../src/guestfs-actions.pod:2306
27041 #, no-wrap
27042 msgid ""
27043 " int\n"
27044 " guestfs_get_umask (guestfs_h *g);\n"
27045 "\n"
27046 msgstr ""
27047
27048 #. type: textblock
27049 #: ../src/guestfs-actions.pod:2309
27050 msgid ""
27051 "Return the current umask.  By default the umask is C<022> unless it has been "
27052 "set by calling C<guestfs_umask>."
27053 msgstr ""
27054
27055 #. type: =head2
27056 #: ../src/guestfs-actions.pod:2316
27057 msgid "guestfs_get_verbose"
27058 msgstr ""
27059
27060 #. type: verbatim
27061 #: ../src/guestfs-actions.pod:2318
27062 #, no-wrap
27063 msgid ""
27064 " int\n"
27065 " guestfs_get_verbose (guestfs_h *g);\n"
27066 "\n"
27067 msgstr ""
27068
27069 #. type: =head2
27070 #: ../src/guestfs-actions.pod:2327
27071 msgid "guestfs_getcon"
27072 msgstr ""
27073
27074 #. type: verbatim
27075 #: ../src/guestfs-actions.pod:2329
27076 #, no-wrap
27077 msgid ""
27078 " char *\n"
27079 " guestfs_getcon (guestfs_h *g);\n"
27080 "\n"
27081 msgstr ""
27082
27083 #. type: textblock
27084 #: ../src/guestfs-actions.pod:2334
27085 msgid ""
27086 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27087 msgstr ""
27088
27089 #. type: =head2
27090 #: ../src/guestfs-actions.pod:2342
27091 msgid "guestfs_getxattr"
27092 msgstr ""
27093
27094 #. type: verbatim
27095 #: ../src/guestfs-actions.pod:2344
27096 #, no-wrap
27097 msgid ""
27098 " char *\n"
27099 " guestfs_getxattr (guestfs_h *g,\n"
27100 "                   const char *path,\n"
27101 "                   const char *name,\n"
27102 "                   size_t *size_r);\n"
27103 "\n"
27104 msgstr ""
27105
27106 #. type: textblock
27107 #: ../src/guestfs-actions.pod:2350
27108 msgid ""
27109 "Get a single extended attribute from file C<path> named C<name>.  This call "
27110 "follows symlinks.  If you want to lookup an extended attribute for the "
27111 "symlink itself, use C<guestfs_lgetxattr>."
27112 msgstr ""
27113
27114 #. type: textblock
27115 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27116 msgid ""
27117 "Normally it is better to get all extended attributes from a file in one go "
27118 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27119 "implementations are buggy and do not provide a way to list out attributes.  "
27120 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27121 "extended attributes you want in advance and call this function."
27122 msgstr ""
27123
27124 #. type: textblock
27125 #: ../src/guestfs-actions.pod:2364
27126 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27127 msgstr ""
27128
27129 #. type: textblock
27130 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27131 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27132 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27133 #: ../src/guestfs-actions.pod:5979
27134 msgid ""
27135 "This function returns a buffer, or NULL on error.  The size of the returned "
27136 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27137 "after use>."
27138 msgstr ""
27139
27140 #. type: textblock
27141 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27142 msgid "(Added in 1.7.24)"
27143 msgstr ""
27144
27145 #. type: =head2
27146 #: ../src/guestfs-actions.pod:2372
27147 msgid "guestfs_getxattrs"
27148 msgstr ""
27149
27150 #. type: verbatim
27151 #: ../src/guestfs-actions.pod:2374
27152 #, no-wrap
27153 msgid ""
27154 " struct guestfs_xattr_list *\n"
27155 " guestfs_getxattrs (guestfs_h *g,\n"
27156 "                    const char *path);\n"
27157 "\n"
27158 msgstr ""
27159
27160 #. type: textblock
27161 #: ../src/guestfs-actions.pod:2384
27162 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27167 #: ../src/guestfs-actions.pod:4565
27168 msgid ""
27169 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27170 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27171 msgstr ""
27172
27173 #. type: textblock
27174 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27175 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27176 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27177 #: ../src/guestfs-actions.pod:8074
27178 msgid "(Added in 1.0.59)"
27179 msgstr ""
27180
27181 #. type: =head2
27182 #: ../src/guestfs-actions.pod:2392
27183 msgid "guestfs_glob_expand"
27184 msgstr ""
27185
27186 #. type: verbatim
27187 #: ../src/guestfs-actions.pod:2394
27188 #, no-wrap
27189 msgid ""
27190 " char **\n"
27191 " guestfs_glob_expand (guestfs_h *g,\n"
27192 "                      const char *pattern);\n"
27193 "\n"
27194 msgstr ""
27195
27196 #. type: textblock
27197 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27198 #: ../src/guestfs-actions.pod:6889
27199 msgid "(Added in 1.0.50)"
27200 msgstr ""
27201
27202 #. type: =head2
27203 #: ../src/guestfs-actions.pod:2415
27204 msgid "guestfs_grep"
27205 msgstr ""
27206
27207 #. type: verbatim
27208 #: ../src/guestfs-actions.pod:2417
27209 #, no-wrap
27210 msgid ""
27211 " char **\n"
27212 " guestfs_grep (guestfs_h *g,\n"
27213 "               const char *regex,\n"
27214 "               const char *path);\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: =head2
27219 #: ../src/guestfs-actions.pod:2434
27220 msgid "guestfs_grepi"
27221 msgstr ""
27222
27223 #. type: verbatim
27224 #: ../src/guestfs-actions.pod:2436
27225 #, no-wrap
27226 msgid ""
27227 " char **\n"
27228 " guestfs_grepi (guestfs_h *g,\n"
27229 "                const char *regex,\n"
27230 "                const char *path);\n"
27231 "\n"
27232 msgstr ""
27233
27234 #. type: =head2
27235 #: ../src/guestfs-actions.pod:2453
27236 msgid "guestfs_grub_install"
27237 msgstr ""
27238
27239 #. type: verbatim
27240 #: ../src/guestfs-actions.pod:2455
27241 #, no-wrap
27242 msgid ""
27243 " int\n"
27244 " guestfs_grub_install (guestfs_h *g,\n"
27245 "                       const char *root,\n"
27246 "                       const char *device);\n"
27247 "\n"
27248 msgstr ""
27249
27250 #. type: textblock
27251 #: ../src/guestfs-actions.pod:2498
27252 msgid "(Added in 1.0.17)"
27253 msgstr ""
27254
27255 #. type: =head2
27256 #: ../src/guestfs-actions.pod:2500
27257 msgid "guestfs_head"
27258 msgstr ""
27259
27260 #. type: verbatim
27261 #: ../src/guestfs-actions.pod:2502
27262 #, no-wrap
27263 msgid ""
27264 " char **\n"
27265 " guestfs_head (guestfs_h *g,\n"
27266 "               const char *path);\n"
27267 "\n"
27268 msgstr ""
27269
27270 #. type: =head2
27271 #: ../src/guestfs-actions.pod:2518
27272 msgid "guestfs_head_n"
27273 msgstr ""
27274
27275 #. type: verbatim
27276 #: ../src/guestfs-actions.pod:2520
27277 #, no-wrap
27278 msgid ""
27279 " char **\n"
27280 " guestfs_head_n (guestfs_h *g,\n"
27281 "                 int nrlines,\n"
27282 "                 const char *path);\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: =head2
27287 #: ../src/guestfs-actions.pod:2542
27288 msgid "guestfs_hexdump"
27289 msgstr ""
27290
27291 #. type: verbatim
27292 #: ../src/guestfs-actions.pod:2544
27293 #, no-wrap
27294 msgid ""
27295 " char *\n"
27296 " guestfs_hexdump (guestfs_h *g,\n"
27297 "                  const char *path);\n"
27298 "\n"
27299 msgstr ""
27300
27301 #. type: textblock
27302 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
27303 #: ../src/guestfs-actions.pod:7008
27304 msgid "(Added in 1.0.22)"
27305 msgstr ""
27306
27307 #. type: =head2
27308 #: ../src/guestfs-actions.pod:2559
27309 msgid "guestfs_initrd_cat"
27310 msgstr ""
27311
27312 #. type: verbatim
27313 #: ../src/guestfs-actions.pod:2561
27314 #, no-wrap
27315 msgid ""
27316 " char *\n"
27317 " guestfs_initrd_cat (guestfs_h *g,\n"
27318 "                     const char *initrdpath,\n"
27319 "                     const char *filename,\n"
27320 "                     size_t *size_r);\n"
27321 "\n"
27322 msgstr ""
27323
27324 #. type: textblock
27325 #: ../src/guestfs-actions.pod:2577
27326 msgid "See also C<guestfs_initrd_list>."
27327 msgstr ""
27328
27329 #. type: =head2
27330 #: ../src/guestfs-actions.pod:2588
27331 msgid "guestfs_initrd_list"
27332 msgstr ""
27333
27334 #. type: verbatim
27335 #: ../src/guestfs-actions.pod:2590
27336 #, no-wrap
27337 msgid ""
27338 " char **\n"
27339 " guestfs_initrd_list (guestfs_h *g,\n"
27340 "                      const char *path);\n"
27341 "\n"
27342 msgstr ""
27343
27344 #. type: =head2
27345 #: ../src/guestfs-actions.pod:2610
27346 msgid "guestfs_inotify_add_watch"
27347 msgstr ""
27348
27349 #. type: verbatim
27350 #: ../src/guestfs-actions.pod:2612
27351 #, no-wrap
27352 msgid ""
27353 " int64_t\n"
27354 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27355 "                            const char *path,\n"
27356 "                            int mask);\n"
27357 "\n"
27358 msgstr ""
27359
27360 #. type: =head2
27361 #: ../src/guestfs-actions.pod:2631
27362 msgid "guestfs_inotify_close"
27363 msgstr ""
27364
27365 #. type: verbatim
27366 #: ../src/guestfs-actions.pod:2633
27367 #, no-wrap
27368 msgid ""
27369 " int\n"
27370 " guestfs_inotify_close (guestfs_h *g);\n"
27371 "\n"
27372 msgstr ""
27373
27374 #. type: =head2
27375 #: ../src/guestfs-actions.pod:2644
27376 msgid "guestfs_inotify_files"
27377 msgstr ""
27378
27379 #. type: verbatim
27380 #: ../src/guestfs-actions.pod:2646
27381 #, no-wrap
27382 msgid ""
27383 " char **\n"
27384 " guestfs_inotify_files (guestfs_h *g);\n"
27385 "\n"
27386 msgstr ""
27387
27388 #. type: textblock
27389 #: ../src/guestfs-actions.pod:2649
27390 msgid ""
27391 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27392 "returns a list of pathnames of objects that were touched.  The returned "
27393 "pathnames are sorted and deduplicated."
27394 msgstr ""
27395
27396 #. type: =head2
27397 #: ../src/guestfs-actions.pod:2659
27398 msgid "guestfs_inotify_init"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:2661
27403 #, no-wrap
27404 msgid ""
27405 " int\n"
27406 " guestfs_inotify_init (guestfs_h *g,\n"
27407 "                       int maxevents);\n"
27408 "\n"
27409 msgstr ""
27410
27411 #. type: textblock
27412 #: ../src/guestfs-actions.pod:2669
27413 msgid ""
27414 "C<maxevents> is the maximum number of events which will be queued up between "
27415 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27416 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27417 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27418 "throws away events, but records the fact that it threw them away by setting "
27419 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27420 "C<guestfs_inotify_read>)."
27421 msgstr ""
27422
27423 #. type: textblock
27424 #: ../src/guestfs-actions.pod:2679
27425 msgid ""
27426 "Before any events are generated, you have to add some watches to the "
27427 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27428 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27429 msgstr ""
27430
27431 #. type: textblock
27432 #: ../src/guestfs-actions.pod:2685
27433 msgid ""
27434 "Queued up events should be read periodically by calling "
27435 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27436 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27437 "often enough then you risk the internal queue overflowing."
27438 msgstr ""
27439
27440 #. type: textblock
27441 #: ../src/guestfs-actions.pod:2692
27442 msgid ""
27443 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27444 "This also removes any watches automatically."
27445 msgstr ""
27446
27447 #. type: =head2
27448 #: ../src/guestfs-actions.pod:2705
27449 msgid "guestfs_inotify_read"
27450 msgstr ""
27451
27452 #. type: verbatim
27453 #: ../src/guestfs-actions.pod:2707
27454 #, no-wrap
27455 msgid ""
27456 " struct guestfs_inotify_event_list *\n"
27457 " guestfs_inotify_read (guestfs_h *g);\n"
27458 "\n"
27459 msgstr ""
27460
27461 #. type: textblock
27462 #: ../src/guestfs-actions.pod:2721
27463 msgid ""
27464 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27465 "there was an error.  I<The caller must call "
27466 "C<guestfs_free_inotify_event_list> after use>."
27467 msgstr ""
27468
27469 #. type: =head2
27470 #: ../src/guestfs-actions.pod:2727
27471 msgid "guestfs_inotify_rm_watch"
27472 msgstr ""
27473
27474 #. type: verbatim
27475 #: ../src/guestfs-actions.pod:2729
27476 #, no-wrap
27477 msgid ""
27478 " int\n"
27479 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27480 "                           int wd);\n"
27481 "\n"
27482 msgstr ""
27483
27484 #. type: textblock
27485 #: ../src/guestfs-actions.pod:2733
27486 msgid ""
27487 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
27488 msgstr ""
27489
27490 #. type: =head2
27491 #: ../src/guestfs-actions.pod:2740
27492 msgid "guestfs_inspect_get_arch"
27493 msgstr ""
27494
27495 #. type: verbatim
27496 #: ../src/guestfs-actions.pod:2742
27497 #, no-wrap
27498 msgid ""
27499 " char *\n"
27500 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27501 "                           const char *root);\n"
27502 "\n"
27503 msgstr ""
27504
27505 #. type: textblock
27506 #: ../src/guestfs-actions.pod:2746
27507 msgid ""
27508 "This returns the architecture of the inspected operating system.  The "
27509 "possible return values are listed under C<guestfs_file_architecture>."
27510 msgstr ""
27511
27512 #. type: =head2
27513 #: ../src/guestfs-actions.pod:2760
27514 msgid "guestfs_inspect_get_distro"
27515 msgstr ""
27516
27517 #. type: verbatim
27518 #: ../src/guestfs-actions.pod:2762
27519 #, no-wrap
27520 msgid ""
27521 " char *\n"
27522 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27523 "                             const char *root);\n"
27524 "\n"
27525 msgstr ""
27526
27527 #. type: =head2
27528 #: ../src/guestfs-actions.pod:2862
27529 msgid "guestfs_inspect_get_drive_mappings"
27530 msgstr ""
27531
27532 #. type: verbatim
27533 #: ../src/guestfs-actions.pod:2864
27534 #, no-wrap
27535 msgid ""
27536 " char **\n"
27537 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27538 "                                     const char *root);\n"
27539 "\n"
27540 msgstr ""
27541
27542 #. type: textblock
27543 #: ../src/guestfs-actions.pod:2893
27544 msgid ""
27545 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27546 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27547 msgstr ""
27548
27549 #. type: textblock
27550 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
27551 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
27552 #: ../src/guestfs-actions.pod:7310
27553 msgid ""
27554 "This function returns a NULL-terminated array of strings, or NULL if there "
27555 "was an error.  The array of strings will always have length C<2n+1>, where "
27556 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27557 "caller must free the strings and the array after use>."
27558 msgstr ""
27559
27560 #. type: textblock
27561 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
27562 msgid "(Added in 1.9.17)"
27563 msgstr ""
27564
27565 #. type: =head2
27566 #: ../src/guestfs-actions.pod:2905
27567 msgid "guestfs_inspect_get_filesystems"
27568 msgstr ""
27569
27570 #. type: verbatim
27571 #: ../src/guestfs-actions.pod:2907
27572 #, no-wrap
27573 msgid ""
27574 " char **\n"
27575 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27576 "                                  const char *root);\n"
27577 "\n"
27578 msgstr ""
27579
27580 #. type: textblock
27581 #: ../src/guestfs-actions.pod:2919
27582 msgid ""
27583 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27584 "C<guestfs_inspect_get_mountpoints>."
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../src/guestfs-actions.pod:2928
27589 msgid "guestfs_inspect_get_format"
27590 msgstr ""
27591
27592 #. type: verbatim
27593 #: ../src/guestfs-actions.pod:2930
27594 #, no-wrap
27595 msgid ""
27596 " char *\n"
27597 " guestfs_inspect_get_format (guestfs_h *g,\n"
27598 "                             const char *root);\n"
27599 "\n"
27600 msgstr ""
27601
27602 #. type: textblock
27603 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
27604 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
27605 #: ../src/guestfs-actions.pod:6190
27606 msgid "(Added in 1.9.4)"
27607 msgstr ""
27608
27609 #. type: =head2
27610 #: ../src/guestfs-actions.pod:2966
27611 msgid "guestfs_inspect_get_hostname"
27612 msgstr ""
27613
27614 #. type: verbatim
27615 #: ../src/guestfs-actions.pod:2968
27616 #, no-wrap
27617 msgid ""
27618 " char *\n"
27619 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27620 "                               const char *root);\n"
27621 "\n"
27622 msgstr ""
27623
27624 #. type: textblock
27625 #: ../src/guestfs-actions.pod:2983
27626 msgid "(Added in 1.7.9)"
27627 msgstr ""
27628
27629 #. type: =head2
27630 #: ../src/guestfs-actions.pod:2985
27631 msgid "guestfs_inspect_get_icon"
27632 msgstr ""
27633
27634 #. type: verbatim
27635 #: ../src/guestfs-actions.pod:2987
27636 #, no-wrap
27637 msgid ""
27638 " char *\n"
27639 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27640 "                           const char *root,\n"
27641 "                           size_t *size_r,\n"
27642 "                           ...);\n"
27643 "\n"
27644 msgstr ""
27645
27646 #. type: verbatim
27647 #: ../src/guestfs-actions.pod:2998
27648 #, no-wrap
27649 msgid ""
27650 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27651 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27652 "\n"
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
27657 #: ../src/guestfs-actions.pod:5139
27658 msgid "(Added in 1.11.12)"
27659 msgstr ""
27660
27661 #. type: =head2
27662 #: ../src/guestfs-actions.pod:3067
27663 msgid "guestfs_inspect_get_icon_va"
27664 msgstr ""
27665
27666 #. type: verbatim
27667 #: ../src/guestfs-actions.pod:3069
27668 #, no-wrap
27669 msgid ""
27670 " char *\n"
27671 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27672 "                              const char *root,\n"
27673 "                              size_t *size_r,\n"
27674 "                              va_list args);\n"
27675 "\n"
27676 msgstr ""
27677
27678 #. type: textblock
27679 #: ../src/guestfs-actions.pod:3075
27680 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27681 msgstr ""
27682
27683 #. type: =head2
27684 #: ../src/guestfs-actions.pod:3079
27685 msgid "guestfs_inspect_get_icon_argv"
27686 msgstr ""
27687
27688 #. type: verbatim
27689 #: ../src/guestfs-actions.pod:3081
27690 #, no-wrap
27691 msgid ""
27692 " char *\n"
27693 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27694 "                                const char *root,\n"
27695 "                                size_t *size_r,\n"
27696 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27697 "\n"
27698 msgstr ""
27699
27700 #. type: textblock
27701 #: ../src/guestfs-actions.pod:3087
27702 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27703 msgstr ""
27704
27705 #. type: =head2
27706 #: ../src/guestfs-actions.pod:3091
27707 msgid "guestfs_inspect_get_major_version"
27708 msgstr ""
27709
27710 #. type: verbatim
27711 #: ../src/guestfs-actions.pod:3093
27712 #, no-wrap
27713 msgid ""
27714 " int\n"
27715 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27716 "                                    const char *root);\n"
27717 "\n"
27718 msgstr ""
27719
27720 #. type: =head2
27721 #: ../src/guestfs-actions.pod:3115
27722 msgid "guestfs_inspect_get_minor_version"
27723 msgstr ""
27724
27725 #. type: verbatim
27726 #: ../src/guestfs-actions.pod:3117
27727 #, no-wrap
27728 msgid ""
27729 " int\n"
27730 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27731 "                                    const char *root);\n"
27732 "\n"
27733 msgstr ""
27734
27735 #. type: textblock
27736 #: ../src/guestfs-actions.pod:3126
27737 msgid ""
27738 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27739 "C<guestfs_inspect_get_major_version>."
27740 msgstr ""
27741
27742 #. type: =head2
27743 #: ../src/guestfs-actions.pod:3133
27744 msgid "guestfs_inspect_get_mountpoints"
27745 msgstr ""
27746
27747 #. type: verbatim
27748 #: ../src/guestfs-actions.pod:3135
27749 #, no-wrap
27750 msgid ""
27751 " char **\n"
27752 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27753 "                                  const char *root);\n"
27754 "\n"
27755 msgstr ""
27756
27757 #. type: textblock
27758 #: ../src/guestfs-actions.pod:3156
27759 msgid ""
27760 "For operating systems like Windows which still use drive letters, this call "
27761 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27762 "information about the mapping of drive letters to partitions, see "
27763 "C<guestfs_inspect_get_drive_mappings>."
27764 msgstr ""
27765
27766 #. type: textblock
27767 #: ../src/guestfs-actions.pod:3162
27768 msgid ""
27769 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27770 "C<guestfs_inspect_get_filesystems>."
27771 msgstr ""
27772
27773 #. type: =head2
27774 #: ../src/guestfs-actions.pod:3173
27775 msgid "guestfs_inspect_get_package_format"
27776 msgstr ""
27777
27778 #. type: verbatim
27779 #: ../src/guestfs-actions.pod:3175
27780 #, no-wrap
27781 msgid ""
27782 " char *\n"
27783 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27784 "                                     const char *root);\n"
27785 "\n"
27786 msgstr ""
27787
27788 #. type: textblock
27789 #: ../src/guestfs-actions.pod:3179
27790 msgid ""
27791 "This function and C<guestfs_inspect_get_package_management> return the "
27792 "package format and package management tool used by the inspected operating "
27793 "system.  For example for Fedora these functions would return C<rpm> (package "
27794 "format) and C<yum> (package management)."
27795 msgstr ""
27796
27797 #. type: textblock
27798 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
27799 msgid "(Added in 1.7.5)"
27800 msgstr ""
27801
27802 #. type: =head2
27803 #: ../src/guestfs-actions.pod:3200
27804 msgid "guestfs_inspect_get_package_management"
27805 msgstr ""
27806
27807 #. type: verbatim
27808 #: ../src/guestfs-actions.pod:3202
27809 #, no-wrap
27810 msgid ""
27811 " char *\n"
27812 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27813 "                                         const char *root);\n"
27814 "\n"
27815 msgstr ""
27816
27817 #. type: textblock
27818 #: ../src/guestfs-actions.pod:3206
27819 msgid ""
27820 "C<guestfs_inspect_get_package_format> and this function return the package "
27821 "format and package management tool used by the inspected operating system.  "
27822 "For example for Fedora these functions would return C<rpm> (package format) "
27823 "and C<yum> (package management)."
27824 msgstr ""
27825
27826 #. type: =head2
27827 #: ../src/guestfs-actions.pod:3228
27828 msgid "guestfs_inspect_get_product_name"
27829 msgstr ""
27830
27831 #. type: verbatim
27832 #: ../src/guestfs-actions.pod:3230
27833 #, no-wrap
27834 msgid ""
27835 " char *\n"
27836 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27837 "                                   const char *root);\n"
27838 "\n"
27839 msgstr ""
27840
27841 #. type: =head2
27842 #: ../src/guestfs-actions.pod:3249
27843 msgid "guestfs_inspect_get_product_variant"
27844 msgstr ""
27845
27846 #. type: verbatim
27847 #: ../src/guestfs-actions.pod:3251
27848 #, no-wrap
27849 msgid ""
27850 " char *\n"
27851 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27852 "                                      const char *root);\n"
27853 "\n"
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../src/guestfs-actions.pod:3274
27858 msgid ""
27859 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27860 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27861 msgstr ""
27862
27863 #. type: textblock
27864 #: ../src/guestfs-actions.pod:3281
27865 msgid "(Added in 1.9.13)"
27866 msgstr ""
27867
27868 #. type: =head2
27869 #: ../src/guestfs-actions.pod:3283
27870 msgid "guestfs_inspect_get_roots"
27871 msgstr ""
27872
27873 #. type: verbatim
27874 #: ../src/guestfs-actions.pod:3285
27875 #, no-wrap
27876 msgid ""
27877 " char **\n"
27878 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: textblock
27883 #: ../src/guestfs-actions.pod:3288
27884 msgid ""
27885 "This function is a convenient way to get the list of root devices, as "
27886 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27887 "the whole inspection process."
27888 msgstr ""
27889
27890 #. type: textblock
27891 #: ../src/guestfs-actions.pod:3292
27892 msgid ""
27893 "This returns an empty list if either no root devices were found or the "
27894 "caller has not called C<guestfs_inspect_os>."
27895 msgstr ""
27896
27897 #. type: textblock
27898 #: ../src/guestfs-actions.pod:3301
27899 msgid "(Added in 1.7.3)"
27900 msgstr ""
27901
27902 #. type: =head2
27903 #: ../src/guestfs-actions.pod:3303
27904 msgid "guestfs_inspect_get_type"
27905 msgstr ""
27906
27907 #. type: verbatim
27908 #: ../src/guestfs-actions.pod:3305
27909 #, no-wrap
27910 msgid ""
27911 " char *\n"
27912 " guestfs_inspect_get_type (guestfs_h *g,\n"
27913 "                           const char *root);\n"
27914 "\n"
27915 msgstr ""
27916
27917 #. type: =head2
27918 #: ../src/guestfs-actions.pod:3346
27919 msgid "guestfs_inspect_get_windows_current_control_set"
27920 msgstr ""
27921
27922 #. type: verbatim
27923 #: ../src/guestfs-actions.pod:3348
27924 #, no-wrap
27925 msgid ""
27926 " char *\n"
27927 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27928 "                                                  const char *root);\n"
27929 "\n"
27930 msgstr ""
27931
27932 #. type: =head2
27933 #: ../src/guestfs-actions.pod:3366
27934 msgid "guestfs_inspect_get_windows_systemroot"
27935 msgstr ""
27936
27937 #. type: verbatim
27938 #: ../src/guestfs-actions.pod:3368
27939 #, no-wrap
27940 msgid ""
27941 " char *\n"
27942 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27943 "                                         const char *root);\n"
27944 "\n"
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:3384
27949 msgid "(Added in 1.5.25)"
27950 msgstr ""
27951
27952 #. type: =head2
27953 #: ../src/guestfs-actions.pod:3386
27954 msgid "guestfs_inspect_is_live"
27955 msgstr ""
27956
27957 #. type: verbatim
27958 #: ../src/guestfs-actions.pod:3388
27959 #, no-wrap
27960 msgid ""
27961 " int\n"
27962 " guestfs_inspect_is_live (guestfs_h *g,\n"
27963 "                          const char *root);\n"
27964 "\n"
27965 msgstr ""
27966
27967 #. type: textblock
27968 #: ../src/guestfs-actions.pod:3392
27969 msgid ""
27970 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27971 "disk), then this returns true if a live image was detected on the disk."
27972 msgstr ""
27973
27974 #. type: =head2
27975 #: ../src/guestfs-actions.pod:3402
27976 msgid "guestfs_inspect_is_multipart"
27977 msgstr ""
27978
27979 #. type: verbatim
27980 #: ../src/guestfs-actions.pod:3404
27981 #, no-wrap
27982 msgid ""
27983 " int\n"
27984 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27985 "                               const char *root);\n"
27986 "\n"
27987 msgstr ""
27988
27989 #. type: textblock
27990 #: ../src/guestfs-actions.pod:3408
27991 msgid ""
27992 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27993 "disk), then this returns true if the disk is part of a set."
27994 msgstr ""
27995
27996 #. type: =head2
27997 #: ../src/guestfs-actions.pod:3418
27998 msgid "guestfs_inspect_is_netinst"
27999 msgstr ""
28000
28001 #. type: verbatim
28002 #: ../src/guestfs-actions.pod:3420
28003 #, no-wrap
28004 msgid ""
28005 " int\n"
28006 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28007 "                             const char *root);\n"
28008 "\n"
28009 msgstr ""
28010
28011 #. type: textblock
28012 #: ../src/guestfs-actions.pod:3424
28013 msgid ""
28014 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28015 "disk), then this returns true if the disk is a network installer, ie. not a "
28016 "self-contained install CD but one which is likely to require network access "
28017 "to complete the install."
28018 msgstr ""
28019
28020 #. type: =head2
28021 #: ../src/guestfs-actions.pod:3436
28022 msgid "guestfs_inspect_list_applications"
28023 msgstr ""
28024
28025 #. type: verbatim
28026 #: ../src/guestfs-actions.pod:3438
28027 #, no-wrap
28028 msgid ""
28029 " struct guestfs_application_list *\n"
28030 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28031 "                                    const char *root);\n"
28032 "\n"
28033 msgstr ""
28034
28035 #. type: textblock
28036 #: ../src/guestfs-actions.pod:3444
28037 msgid ""
28038 "I<Note:> This call works differently from other parts of the inspection "
28039 "API.  You have to call C<guestfs_inspect_os>, then "
28040 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28041 "this.  Listing applications is a significantly more difficult operation "
28042 "which requires access to the full filesystem.  Also note that unlike the "
28043 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28044 "the libguestfs handle, this call actually reads parts of the mounted "
28045 "filesystems during the call."
28046 msgstr ""
28047
28048 #. type: textblock
28049 #: ../src/guestfs-actions.pod:3534
28050 msgid ""
28051 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28052 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28053 "after use>."
28054 msgstr ""
28055
28056 #. type: textblock
28057 #: ../src/guestfs-actions.pod:3538
28058 msgid "(Added in 1.7.8)"
28059 msgstr ""
28060
28061 #. type: =head2
28062 #: ../src/guestfs-actions.pod:3540
28063 msgid "guestfs_inspect_os"
28064 msgstr ""
28065
28066 #. type: verbatim
28067 #: ../src/guestfs-actions.pod:3542
28068 #, no-wrap
28069 msgid ""
28070 " char **\n"
28071 " guestfs_inspect_os (guestfs_h *g);\n"
28072 "\n"
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../src/guestfs-actions.pod:3558
28077 msgid ""
28078 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28079 "functions in order to query further information about each operating system, "
28080 "such as the name and version."
28081 msgstr ""
28082
28083 #. type: textblock
28084 #: ../src/guestfs-actions.pod:3563
28085 msgid ""
28086 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28087 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28088 "the contents.  This should be called with no disks currently mounted.  The "
28089 "function may also use Augeas, so any existing Augeas handle will be closed."
28090 msgstr ""
28091
28092 #. type: textblock
28093 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28094 #: ../src/guestfs-actions.pod:3988
28095 msgid "See also C<guestfs_list_filesystems>."
28096 msgstr ""
28097
28098 #. type: =head2
28099 #: ../src/guestfs-actions.pod:3583
28100 msgid "guestfs_is_blockdev"
28101 msgstr ""
28102
28103 #. type: verbatim
28104 #: ../src/guestfs-actions.pod:3585
28105 #, no-wrap
28106 msgid ""
28107 " int\n"
28108 " guestfs_is_blockdev (guestfs_h *g,\n"
28109 "                      const char *path);\n"
28110 "\n"
28111 msgstr ""
28112
28113 #. type: textblock
28114 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28115 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28116 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28117 #: ../src/guestfs-actions.pod:3753
28118 msgid "See also C<guestfs_stat>."
28119 msgstr ""
28120
28121 #. type: textblock
28122 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28123 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28124 #: ../src/guestfs-actions.pod:3757
28125 msgid "(Added in 1.5.10)"
28126 msgstr ""
28127
28128 #. type: =head2
28129 #: ../src/guestfs-actions.pod:3598
28130 msgid "guestfs_is_busy"
28131 msgstr ""
28132
28133 #. type: verbatim
28134 #: ../src/guestfs-actions.pod:3600
28135 #, no-wrap
28136 msgid ""
28137 " int\n"
28138 " guestfs_is_busy (guestfs_h *g);\n"
28139 "\n"
28140 msgstr ""
28141
28142 #. type: =head2
28143 #: ../src/guestfs-actions.pod:3612
28144 msgid "guestfs_is_chardev"
28145 msgstr ""
28146
28147 #. type: verbatim
28148 #: ../src/guestfs-actions.pod:3614
28149 #, no-wrap
28150 msgid ""
28151 " int\n"
28152 " guestfs_is_chardev (guestfs_h *g,\n"
28153 "                     const char *path);\n"
28154 "\n"
28155 msgstr ""
28156
28157 #. type: =head2
28158 #: ../src/guestfs-actions.pod:3627
28159 msgid "guestfs_is_config"
28160 msgstr ""
28161
28162 #. type: verbatim
28163 #: ../src/guestfs-actions.pod:3629
28164 #, no-wrap
28165 msgid ""
28166 " int\n"
28167 " guestfs_is_config (guestfs_h *g);\n"
28168 "\n"
28169 msgstr ""
28170
28171 #. type: =head2
28172 #: ../src/guestfs-actions.pod:3641
28173 msgid "guestfs_is_dir"
28174 msgstr ""
28175
28176 #. type: verbatim
28177 #: ../src/guestfs-actions.pod:3643
28178 #, no-wrap
28179 msgid ""
28180 " int\n"
28181 " guestfs_is_dir (guestfs_h *g,\n"
28182 "                 const char *path);\n"
28183 "\n"
28184 msgstr ""
28185
28186 #. type: =head2
28187 #: ../src/guestfs-actions.pod:3657
28188 msgid "guestfs_is_fifo"
28189 msgstr ""
28190
28191 #. type: verbatim
28192 #: ../src/guestfs-actions.pod:3659
28193 #, no-wrap
28194 msgid ""
28195 " int\n"
28196 " guestfs_is_fifo (guestfs_h *g,\n"
28197 "                  const char *path);\n"
28198 "\n"
28199 msgstr ""
28200
28201 #. type: =head2
28202 #: ../src/guestfs-actions.pod:3672
28203 msgid "guestfs_is_file"
28204 msgstr ""
28205
28206 #. type: verbatim
28207 #: ../src/guestfs-actions.pod:3674
28208 #, no-wrap
28209 msgid ""
28210 " int\n"
28211 " guestfs_is_file (guestfs_h *g,\n"
28212 "                  const char *path);\n"
28213 "\n"
28214 msgstr ""
28215
28216 #. type: =head2
28217 #: ../src/guestfs-actions.pod:3688
28218 msgid "guestfs_is_launching"
28219 msgstr ""
28220
28221 #. type: verbatim
28222 #: ../src/guestfs-actions.pod:3690
28223 #, no-wrap
28224 msgid ""
28225 " int\n"
28226 " guestfs_is_launching (guestfs_h *g);\n"
28227 "\n"
28228 msgstr ""
28229
28230 #. type: =head2
28231 #: ../src/guestfs-actions.pod:3702
28232 msgid "guestfs_is_lv"
28233 msgstr ""
28234
28235 #. type: verbatim
28236 #: ../src/guestfs-actions.pod:3704
28237 #, no-wrap
28238 msgid ""
28239 " int\n"
28240 " guestfs_is_lv (guestfs_h *g,\n"
28241 "                const char *device);\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: =head2
28246 #: ../src/guestfs-actions.pod:3715
28247 msgid "guestfs_is_ready"
28248 msgstr ""
28249
28250 #. type: verbatim
28251 #: ../src/guestfs-actions.pod:3717
28252 #, no-wrap
28253 msgid ""
28254 " int\n"
28255 " guestfs_is_ready (guestfs_h *g);\n"
28256 "\n"
28257 msgstr ""
28258
28259 #. type: =head2
28260 #: ../src/guestfs-actions.pod:3729
28261 msgid "guestfs_is_socket"
28262 msgstr ""
28263
28264 #. type: verbatim
28265 #: ../src/guestfs-actions.pod:3731
28266 #, no-wrap
28267 msgid ""
28268 " int\n"
28269 " guestfs_is_socket (guestfs_h *g,\n"
28270 "                    const char *path);\n"
28271 "\n"
28272 msgstr ""
28273
28274 #. type: =head2
28275 #: ../src/guestfs-actions.pod:3744
28276 msgid "guestfs_is_symlink"
28277 msgstr ""
28278
28279 #. type: verbatim
28280 #: ../src/guestfs-actions.pod:3746
28281 #, no-wrap
28282 msgid ""
28283 " int\n"
28284 " guestfs_is_symlink (guestfs_h *g,\n"
28285 "                     const char *path);\n"
28286 "\n"
28287 msgstr ""
28288
28289 #. type: =head2
28290 #: ../src/guestfs-actions.pod:3759
28291 msgid "guestfs_is_zero"
28292 msgstr ""
28293
28294 #. type: verbatim
28295 #: ../src/guestfs-actions.pod:3761
28296 #, no-wrap
28297 msgid ""
28298 " int\n"
28299 " guestfs_is_zero (guestfs_h *g,\n"
28300 "                  const char *path);\n"
28301 "\n"
28302 msgstr ""
28303
28304 #. type: textblock
28305 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
28306 msgid "(Added in 1.11.8)"
28307 msgstr ""
28308
28309 #. type: =head2
28310 #: ../src/guestfs-actions.pod:3772
28311 msgid "guestfs_is_zero_device"
28312 msgstr ""
28313
28314 #. type: verbatim
28315 #: ../src/guestfs-actions.pod:3774
28316 #, no-wrap
28317 msgid ""
28318 " int\n"
28319 " guestfs_is_zero_device (guestfs_h *g,\n"
28320 "                         const char *device);\n"
28321 "\n"
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:3786
28326 msgid "guestfs_kill_subprocess"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:3788
28331 #, no-wrap
28332 msgid ""
28333 " int\n"
28334 " guestfs_kill_subprocess (guestfs_h *g);\n"
28335 "\n"
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../src/guestfs-actions.pod:3797
28340 msgid "guestfs_launch"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../src/guestfs-actions.pod:3799
28345 #, no-wrap
28346 msgid ""
28347 " int\n"
28348 " guestfs_launch (guestfs_h *g);\n"
28349 "\n"
28350 msgstr ""
28351
28352 #. type: =head2
28353 #: ../src/guestfs-actions.pod:3817
28354 msgid "guestfs_lchown"
28355 msgstr ""
28356
28357 #. type: verbatim
28358 #: ../src/guestfs-actions.pod:3819
28359 #, no-wrap
28360 msgid ""
28361 " int\n"
28362 " guestfs_lchown (guestfs_h *g,\n"
28363 "                 int owner,\n"
28364 "                 int group,\n"
28365 "                 const char *path);\n"
28366 "\n"
28367 msgstr ""
28368
28369 #. type: textblock
28370 #: ../src/guestfs-actions.pod:3825
28371 msgid ""
28372 "Change the file owner to C<owner> and group to C<group>.  This is like "
28373 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28374 "changed, not the target."
28375 msgstr ""
28376
28377 #. type: =head2
28378 #: ../src/guestfs-actions.pod:3837
28379 msgid "guestfs_lgetxattr"
28380 msgstr ""
28381
28382 #. type: verbatim
28383 #: ../src/guestfs-actions.pod:3839
28384 #, no-wrap
28385 msgid ""
28386 " char *\n"
28387 " guestfs_lgetxattr (guestfs_h *g,\n"
28388 "                    const char *path,\n"
28389 "                    const char *name,\n"
28390 "                    size_t *size_r);\n"
28391 "\n"
28392 msgstr ""
28393
28394 #. type: textblock
28395 #: ../src/guestfs-actions.pod:3859
28396 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28397 msgstr ""
28398
28399 #. type: =head2
28400 #: ../src/guestfs-actions.pod:3867
28401 msgid "guestfs_lgetxattrs"
28402 msgstr ""
28403
28404 #. type: verbatim
28405 #: ../src/guestfs-actions.pod:3869
28406 #, no-wrap
28407 msgid ""
28408 " struct guestfs_xattr_list *\n"
28409 " guestfs_lgetxattrs (guestfs_h *g,\n"
28410 "                     const char *path);\n"
28411 "\n"
28412 msgstr ""
28413
28414 #. type: textblock
28415 #: ../src/guestfs-actions.pod:3873
28416 msgid ""
28417 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28418 "then it returns the extended attributes of the link itself."
28419 msgstr ""
28420
28421 #. type: =head2
28422 #: ../src/guestfs-actions.pod:3883
28423 msgid "guestfs_list_9p"
28424 msgstr ""
28425
28426 #. type: verbatim
28427 #: ../src/guestfs-actions.pod:3885
28428 #, no-wrap
28429 msgid ""
28430 " char **\n"
28431 " guestfs_list_9p (guestfs_h *g);\n"
28432 "\n"
28433 msgstr ""
28434
28435 #. type: =head2
28436 #: ../src/guestfs-actions.pod:3897
28437 msgid "guestfs_list_devices"
28438 msgstr ""
28439
28440 #. type: verbatim
28441 #: ../src/guestfs-actions.pod:3899
28442 #, no-wrap
28443 msgid ""
28444 " char **\n"
28445 " guestfs_list_devices (guestfs_h *g);\n"
28446 "\n"
28447 msgstr ""
28448
28449 #. type: =head2
28450 #: ../src/guestfs-actions.pod:3914
28451 msgid "guestfs_list_dm_devices"
28452 msgstr ""
28453
28454 #. type: verbatim
28455 #: ../src/guestfs-actions.pod:3916
28456 #, no-wrap
28457 msgid ""
28458 " char **\n"
28459 " guestfs_list_dm_devices (guestfs_h *g);\n"
28460 "\n"
28461 msgstr ""
28462
28463 #. type: textblock
28464 #: ../src/guestfs-actions.pod:3921
28465 msgid ""
28466 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28467 "previous call to C<guestfs_luks_open>."
28468 msgstr ""
28469
28470 #. type: textblock
28471 #: ../src/guestfs-actions.pod:3924
28472 msgid ""
28473 "Device mapper devices which correspond to logical volumes are I<not> "
28474 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28475 "volumes."
28476 msgstr ""
28477
28478 #. type: textblock
28479 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
28480 msgid "(Added in 1.11.15)"
28481 msgstr ""
28482
28483 #. type: =head2
28484 #: ../src/guestfs-actions.pod:3934
28485 msgid "guestfs_list_filesystems"
28486 msgstr ""
28487
28488 #. type: verbatim
28489 #: ../src/guestfs-actions.pod:3936
28490 #, no-wrap
28491 msgid ""
28492 " char **\n"
28493 " guestfs_list_filesystems (guestfs_h *g);\n"
28494 "\n"
28495 msgstr ""
28496
28497 #. type: textblock
28498 #: ../src/guestfs-actions.pod:3956
28499 msgid ""
28500 "This command runs other libguestfs commands, which might include "
28501 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28502 "soon after launch and only when nothing is mounted."
28503 msgstr ""
28504
28505 #. type: textblock
28506 #: ../src/guestfs-actions.pod:3960
28507 msgid ""
28508 "Not all of the filesystems returned will be mountable.  In particular, swap "
28509 "partitions are returned in the list.  Also this command does not check that "
28510 "each filesystem found is valid and mountable, and some filesystems might be "
28511 "mountable but require special options.  Filesystems may not all belong to a "
28512 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28513 msgstr ""
28514
28515 #. type: textblock
28516 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
28517 msgid "(Added in 1.5.15)"
28518 msgstr ""
28519
28520 #. type: =head2
28521 #: ../src/guestfs-actions.pod:3976
28522 msgid "guestfs_list_partitions"
28523 msgstr ""
28524
28525 #. type: verbatim
28526 #: ../src/guestfs-actions.pod:3978
28527 #, no-wrap
28528 msgid ""
28529 " char **\n"
28530 " guestfs_list_partitions (guestfs_h *g);\n"
28531 "\n"
28532 msgstr ""
28533
28534 #. type: textblock
28535 #: ../src/guestfs-actions.pod:3985
28536 msgid ""
28537 "This does not return logical volumes.  For that you will need to call "
28538 "C<guestfs_lvs>."
28539 msgstr ""
28540
28541 #. type: =head2
28542 #: ../src/guestfs-actions.pod:3996
28543 msgid "guestfs_ll"
28544 msgstr ""
28545
28546 #. type: verbatim
28547 #: ../src/guestfs-actions.pod:3998
28548 #, no-wrap
28549 msgid ""
28550 " char *\n"
28551 " guestfs_ll (guestfs_h *g,\n"
28552 "             const char *directory);\n"
28553 "\n"
28554 msgstr ""
28555
28556 #. type: =head2
28557 #: ../src/guestfs-actions.pod:4013
28558 msgid "guestfs_ln"
28559 msgstr ""
28560
28561 #. type: verbatim
28562 #: ../src/guestfs-actions.pod:4015
28563 #, no-wrap
28564 msgid ""
28565 " int\n"
28566 " guestfs_ln (guestfs_h *g,\n"
28567 "             const char *target,\n"
28568 "             const char *linkname);\n"
28569 "\n"
28570 msgstr ""
28571
28572 #. type: =head2
28573 #: ../src/guestfs-actions.pod:4026
28574 msgid "guestfs_ln_f"
28575 msgstr ""
28576
28577 #. type: verbatim
28578 #: ../src/guestfs-actions.pod:4028
28579 #, no-wrap
28580 msgid ""
28581 " int\n"
28582 " guestfs_ln_f (guestfs_h *g,\n"
28583 "               const char *target,\n"
28584 "               const char *linkname);\n"
28585 "\n"
28586 msgstr ""
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:4040
28590 msgid "guestfs_ln_s"
28591 msgstr ""
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:4042
28595 #, no-wrap
28596 msgid ""
28597 " int\n"
28598 " guestfs_ln_s (guestfs_h *g,\n"
28599 "               const char *target,\n"
28600 "               const char *linkname);\n"
28601 "\n"
28602 msgstr ""
28603
28604 #. type: =head2
28605 #: ../src/guestfs-actions.pod:4053
28606 msgid "guestfs_ln_sf"
28607 msgstr ""
28608
28609 #. type: verbatim
28610 #: ../src/guestfs-actions.pod:4055
28611 #, no-wrap
28612 msgid ""
28613 " int\n"
28614 " guestfs_ln_sf (guestfs_h *g,\n"
28615 "                const char *target,\n"
28616 "                const char *linkname);\n"
28617 "\n"
28618 msgstr ""
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:4067
28622 msgid "guestfs_lremovexattr"
28623 msgstr ""
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:4069
28627 #, no-wrap
28628 msgid ""
28629 " int\n"
28630 " guestfs_lremovexattr (guestfs_h *g,\n"
28631 "                       const char *xattr,\n"
28632 "                       const char *path);\n"
28633 "\n"
28634 msgstr ""
28635
28636 #. type: textblock
28637 #: ../src/guestfs-actions.pod:4074
28638 msgid ""
28639 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28640 "link, then it removes an extended attribute of the link itself."
28641 msgstr ""
28642
28643 #. type: =head2
28644 #: ../src/guestfs-actions.pod:4082
28645 msgid "guestfs_ls"
28646 msgstr ""
28647
28648 #. type: verbatim
28649 #: ../src/guestfs-actions.pod:4084
28650 #, no-wrap
28651 msgid ""
28652 " char **\n"
28653 " guestfs_ls (guestfs_h *g,\n"
28654 "             const char *directory);\n"
28655 "\n"
28656 msgstr ""
28657
28658 #. type: textblock
28659 #: ../src/guestfs-actions.pod:4092
28660 msgid ""
28661 "This command is mostly useful for interactive sessions.  Programs should "
28662 "probably use C<guestfs_readdir> instead."
28663 msgstr ""
28664
28665 #. type: =head2
28666 #: ../src/guestfs-actions.pod:4101
28667 msgid "guestfs_lsetxattr"
28668 msgstr ""
28669
28670 #. type: verbatim
28671 #: ../src/guestfs-actions.pod:4103
28672 #, no-wrap
28673 msgid ""
28674 " int\n"
28675 " guestfs_lsetxattr (guestfs_h *g,\n"
28676 "                    const char *xattr,\n"
28677 "                    const char *val,\n"
28678 "                    int vallen,\n"
28679 "                    const char *path);\n"
28680 "\n"
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../src/guestfs-actions.pod:4110
28685 msgid ""
28686 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28687 "then it sets an extended attribute of the link itself."
28688 msgstr ""
28689
28690 #. type: =head2
28691 #: ../src/guestfs-actions.pod:4118
28692 msgid "guestfs_lstat"
28693 msgstr ""
28694
28695 #. type: verbatim
28696 #: ../src/guestfs-actions.pod:4120
28697 #, no-wrap
28698 msgid ""
28699 " struct guestfs_stat *\n"
28700 " guestfs_lstat (guestfs_h *g,\n"
28701 "                const char *path);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:4126
28707 msgid ""
28708 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28709 "link, then the link is stat-ed, not the file it refers to."
28710 msgstr ""
28711
28712 #. type: textblock
28713 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
28714 msgid ""
28715 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28716 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28717 msgstr ""
28718
28719 #. type: textblock
28720 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
28721 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
28722 msgid "(Added in 0.9.2)"
28723 msgstr ""
28724
28725 #. type: =head2
28726 #: ../src/guestfs-actions.pod:4138
28727 msgid "guestfs_lstatlist"
28728 msgstr ""
28729
28730 #. type: verbatim
28731 #: ../src/guestfs-actions.pod:4140
28732 #, no-wrap
28733 msgid ""
28734 " struct guestfs_stat_list *\n"
28735 " guestfs_lstatlist (guestfs_h *g,\n"
28736 "                    const char *path,\n"
28737 "                    char *const *names);\n"
28738 "\n"
28739 msgstr ""
28740
28741 #. type: textblock
28742 #: ../src/guestfs-actions.pod:4145
28743 msgid ""
28744 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28745 "files, where all files are in the directory C<path>.  C<names> is the list "
28746 "of files from this directory."
28747 msgstr ""
28748
28749 #. type: textblock
28750 #: ../src/guestfs-actions.pod:4154
28751 msgid ""
28752 "This call is intended for programs that want to efficiently list a directory "
28753 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28754 "for a similarly efficient call for getting extended attributes.  Very long "
28755 "directory listings might cause the protocol message size to be exceeded, "
28756 "causing this call to fail.  The caller must split up such requests into "
28757 "smaller groups of names."
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:4162
28762 msgid ""
28763 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28764 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:4168
28769 msgid "guestfs_luks_add_key"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:4170
28774 #, no-wrap
28775 msgid ""
28776 " int\n"
28777 " guestfs_luks_add_key (guestfs_h *g,\n"
28778 "                       const char *device,\n"
28779 "                       const char *key,\n"
28780 "                       const char *newkey,\n"
28781 "                       int keyslot);\n"
28782 "\n"
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../src/guestfs-actions.pod:4182
28787 msgid ""
28788 "Note that if C<keyslot> already contains a key, then this command will "
28789 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28790 msgstr ""
28791
28792 #. type: textblock
28793 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
28794 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
28795 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
28796 msgid ""
28797 "This function takes a key or passphrase parameter which could contain "
28798 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28799 "information."
28800 msgstr ""
28801
28802 #. type: textblock
28803 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
28804 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
28805 msgid "(Added in 1.5.2)"
28806 msgstr ""
28807
28808 #. type: =head2
28809 #: ../src/guestfs-actions.pod:4194
28810 msgid "guestfs_luks_close"
28811 msgstr ""
28812
28813 #. type: verbatim
28814 #: ../src/guestfs-actions.pod:4196
28815 #, no-wrap
28816 msgid ""
28817 " int\n"
28818 " guestfs_luks_close (guestfs_h *g,\n"
28819 "                     const char *device);\n"
28820 "\n"
28821 msgstr ""
28822
28823 #. type: textblock
28824 #: ../src/guestfs-actions.pod:4200
28825 msgid ""
28826 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28827 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28828 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28829 "underlying block device."
28830 msgstr ""
28831
28832 #. type: textblock
28833 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
28834 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
28835 #: ../src/guestfs-actions.pod:4427
28836 msgid "(Added in 1.5.1)"
28837 msgstr ""
28838
28839 #. type: =head2
28840 #: ../src/guestfs-actions.pod:4210
28841 msgid "guestfs_luks_format"
28842 msgstr ""
28843
28844 #. type: verbatim
28845 #: ../src/guestfs-actions.pod:4212
28846 #, no-wrap
28847 msgid ""
28848 " int\n"
28849 " guestfs_luks_format (guestfs_h *g,\n"
28850 "                      const char *device,\n"
28851 "                      const char *key,\n"
28852 "                      int keyslot);\n"
28853 "\n"
28854 msgstr ""
28855
28856 #. type: =head2
28857 #: ../src/guestfs-actions.pod:4234
28858 msgid "guestfs_luks_format_cipher"
28859 msgstr ""
28860
28861 #. type: verbatim
28862 #: ../src/guestfs-actions.pod:4236
28863 #, no-wrap
28864 msgid ""
28865 " int\n"
28866 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28867 "                             const char *device,\n"
28868 "                             const char *key,\n"
28869 "                             int keyslot,\n"
28870 "                             const char *cipher);\n"
28871 "\n"
28872 msgstr ""
28873
28874 #. type: textblock
28875 #: ../src/guestfs-actions.pod:4243
28876 msgid ""
28877 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28878 "set the C<cipher> used."
28879 msgstr ""
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:4257
28883 msgid "guestfs_luks_kill_slot"
28884 msgstr ""
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:4259
28888 #, no-wrap
28889 msgid ""
28890 " int\n"
28891 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28892 "                         const char *device,\n"
28893 "                         const char *key,\n"
28894 "                         int keyslot);\n"
28895 "\n"
28896 msgstr ""
28897
28898 #. type: =head2
28899 #: ../src/guestfs-actions.pod:4277
28900 msgid "guestfs_luks_open"
28901 msgstr ""
28902
28903 #. type: verbatim
28904 #: ../src/guestfs-actions.pod:4279
28905 #, no-wrap
28906 msgid ""
28907 " int\n"
28908 " guestfs_luks_open (guestfs_h *g,\n"
28909 "                    const char *device,\n"
28910 "                    const char *key,\n"
28911 "                    const char *mapname);\n"
28912 "\n"
28913 msgstr ""
28914
28915 #. type: textblock
28916 #: ../src/guestfs-actions.pod:4297
28917 msgid ""
28918 "If this block device contains LVM volume groups, then calling "
28919 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28920 "visible."
28921 msgstr ""
28922
28923 #. type: textblock
28924 #: ../src/guestfs-actions.pod:4301
28925 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28926 msgstr ""
28927
28928 #. type: =head2
28929 #: ../src/guestfs-actions.pod:4312
28930 msgid "guestfs_luks_open_ro"
28931 msgstr ""
28932
28933 #. type: verbatim
28934 #: ../src/guestfs-actions.pod:4314
28935 #, no-wrap
28936 msgid ""
28937 " int\n"
28938 " guestfs_luks_open_ro (guestfs_h *g,\n"
28939 "                       const char *device,\n"
28940 "                       const char *key,\n"
28941 "                       const char *mapname);\n"
28942 "\n"
28943 msgstr ""
28944
28945 #. type: textblock
28946 #: ../src/guestfs-actions.pod:4320
28947 msgid ""
28948 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28949 "created."
28950 msgstr ""
28951
28952 #. type: =head2
28953 #: ../src/guestfs-actions.pod:4331
28954 msgid "guestfs_lvcreate"
28955 msgstr ""
28956
28957 #. type: verbatim
28958 #: ../src/guestfs-actions.pod:4333
28959 #, no-wrap
28960 msgid ""
28961 " int\n"
28962 " guestfs_lvcreate (guestfs_h *g,\n"
28963 "                   const char *logvol,\n"
28964 "                   const char *volgroup,\n"
28965 "                   int mbytes);\n"
28966 "\n"
28967 msgstr ""
28968
28969 #. type: =head2
28970 #: ../src/guestfs-actions.pod:4346
28971 msgid "guestfs_lvm_canonical_lv_name"
28972 msgstr ""
28973
28974 #. type: verbatim
28975 #: ../src/guestfs-actions.pod:4348
28976 #, no-wrap
28977 msgid ""
28978 " char *\n"
28979 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28980 "                                const char *lvname);\n"
28981 "\n"
28982 msgstr ""
28983
28984 #. type: textblock
28985 #: ../src/guestfs-actions.pod:4359
28986 msgid "See also C<guestfs_is_lv>."
28987 msgstr ""
28988
28989 #. type: textblock
28990 #: ../src/guestfs-actions.pod:4364
28991 msgid "(Added in 1.5.24)"
28992 msgstr ""
28993
28994 #. type: =head2
28995 #: ../src/guestfs-actions.pod:4366
28996 msgid "guestfs_lvm_clear_filter"
28997 msgstr ""
28998
28999 #. type: verbatim
29000 #: ../src/guestfs-actions.pod:4368
29001 #, no-wrap
29002 msgid ""
29003 " int\n"
29004 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: textblock
29009 #: ../src/guestfs-actions.pod:4371
29010 msgid ""
29011 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29012 "see every block device."
29013 msgstr ""
29014
29015 #. type: =head2
29016 #: ../src/guestfs-actions.pod:4381
29017 msgid "guestfs_lvm_remove_all"
29018 msgstr ""
29019
29020 #. type: verbatim
29021 #: ../src/guestfs-actions.pod:4383
29022 #, no-wrap
29023 msgid ""
29024 " int\n"
29025 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29026 "\n"
29027 msgstr ""
29028
29029 #. type: =head2
29030 #: ../src/guestfs-actions.pod:4396
29031 msgid "guestfs_lvm_set_filter"
29032 msgstr ""
29033
29034 #. type: verbatim
29035 #: ../src/guestfs-actions.pod:4398
29036 #, no-wrap
29037 msgid ""
29038 " int\n"
29039 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29040 "                         char *const *devices);\n"
29041 "\n"
29042 msgstr ""
29043
29044 #. type: =head2
29045 #: ../src/guestfs-actions.pod:4429
29046 msgid "guestfs_lvremove"
29047 msgstr ""
29048
29049 #. type: verbatim
29050 #: ../src/guestfs-actions.pod:4431
29051 #, no-wrap
29052 msgid ""
29053 " int\n"
29054 " guestfs_lvremove (guestfs_h *g,\n"
29055 "                   const char *device);\n"
29056 "\n"
29057 msgstr ""
29058
29059 #. type: textblock
29060 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29061 #: ../src/guestfs-actions.pod:7686
29062 msgid "(Added in 1.0.13)"
29063 msgstr ""
29064
29065 #. type: =head2
29066 #: ../src/guestfs-actions.pod:4445
29067 msgid "guestfs_lvrename"
29068 msgstr ""
29069
29070 #. type: verbatim
29071 #: ../src/guestfs-actions.pod:4447
29072 #, no-wrap
29073 msgid ""
29074 " int\n"
29075 " guestfs_lvrename (guestfs_h *g,\n"
29076 "                   const char *logvol,\n"
29077 "                   const char *newlogvol);\n"
29078 "\n"
29079 msgstr ""
29080
29081 #. type: textblock
29082 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29083 msgid "(Added in 1.0.83)"
29084 msgstr ""
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:4458
29088 msgid "guestfs_lvresize"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:4460
29093 #, no-wrap
29094 msgid ""
29095 " int\n"
29096 " guestfs_lvresize (guestfs_h *g,\n"
29097 "                   const char *device,\n"
29098 "                   int mbytes);\n"
29099 "\n"
29100 msgstr ""
29101
29102 #. type: =head2
29103 #: ../src/guestfs-actions.pod:4473
29104 msgid "guestfs_lvresize_free"
29105 msgstr ""
29106
29107 #. type: verbatim
29108 #: ../src/guestfs-actions.pod:4475
29109 #, no-wrap
29110 msgid ""
29111 " int\n"
29112 " guestfs_lvresize_free (guestfs_h *g,\n"
29113 "                        const char *lv,\n"
29114 "                        int percent);\n"
29115 "\n"
29116 msgstr ""
29117
29118 #. type: textblock
29119 #: ../src/guestfs-actions.pod:4488
29120 msgid "(Added in 1.3.3)"
29121 msgstr ""
29122
29123 #. type: =head2
29124 #: ../src/guestfs-actions.pod:4490
29125 msgid "guestfs_lvs"
29126 msgstr ""
29127
29128 #. type: verbatim
29129 #: ../src/guestfs-actions.pod:4492
29130 #, no-wrap
29131 msgid ""
29132 " char **\n"
29133 " guestfs_lvs (guestfs_h *g);\n"
29134 "\n"
29135 msgstr ""
29136
29137 #. type: textblock
29138 #: ../src/guestfs-actions.pod:4501
29139 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29140 msgstr ""
29141
29142 #. type: =head2
29143 #: ../src/guestfs-actions.pod:4509
29144 msgid "guestfs_lvs_full"
29145 msgstr ""
29146
29147 #. type: verbatim
29148 #: ../src/guestfs-actions.pod:4511
29149 #, no-wrap
29150 msgid ""
29151 " struct guestfs_lvm_lv_list *\n"
29152 " guestfs_lvs_full (guestfs_h *g);\n"
29153 "\n"
29154 msgstr ""
29155
29156 #. type: textblock
29157 #: ../src/guestfs-actions.pod:4517
29158 msgid ""
29159 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29160 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29161 msgstr ""
29162
29163 #. type: =head2
29164 #: ../src/guestfs-actions.pod:4523
29165 msgid "guestfs_lvuuid"
29166 msgstr ""
29167
29168 #. type: verbatim
29169 #: ../src/guestfs-actions.pod:4525
29170 #, no-wrap
29171 msgid ""
29172 " char *\n"
29173 " guestfs_lvuuid (guestfs_h *g,\n"
29174 "                 const char *device);\n"
29175 "\n"
29176 msgstr ""
29177
29178 #. type: =head2
29179 #: ../src/guestfs-actions.pod:4536
29180 msgid "guestfs_lxattrlist"
29181 msgstr ""
29182
29183 #. type: verbatim
29184 #: ../src/guestfs-actions.pod:4538
29185 #, no-wrap
29186 msgid ""
29187 " struct guestfs_xattr_list *\n"
29188 " guestfs_lxattrlist (guestfs_h *g,\n"
29189 "                     const char *path,\n"
29190 "                     char *const *names);\n"
29191 "\n"
29192 msgstr ""
29193
29194 #. type: textblock
29195 #: ../src/guestfs-actions.pod:4557
29196 msgid ""
29197 "This call is intended for programs that want to efficiently list a directory "
29198 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29199 "a similarly efficient call for getting standard stats.  Very long directory "
29200 "listings might cause the protocol message size to be exceeded, causing this "
29201 "call to fail.  The caller must split up such requests into smaller groups of "
29202 "names."
29203 msgstr ""
29204
29205 #. type: =head2
29206 #: ../src/guestfs-actions.pod:4571
29207 msgid "guestfs_mkdir"
29208 msgstr ""
29209
29210 #. type: verbatim
29211 #: ../src/guestfs-actions.pod:4573
29212 #, no-wrap
29213 msgid ""
29214 " int\n"
29215 " guestfs_mkdir (guestfs_h *g,\n"
29216 "                const char *path);\n"
29217 "\n"
29218 msgstr ""
29219
29220 #. type: =head2
29221 #: ../src/guestfs-actions.pod:4583
29222 msgid "guestfs_mkdir_mode"
29223 msgstr ""
29224
29225 #. type: verbatim
29226 #: ../src/guestfs-actions.pod:4585
29227 #, no-wrap
29228 msgid ""
29229 " int\n"
29230 " guestfs_mkdir_mode (guestfs_h *g,\n"
29231 "                     const char *path,\n"
29232 "                     int mode);\n"
29233 "\n"
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../src/guestfs-actions.pod:4597
29238 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29239 msgstr ""
29240
29241 #. type: =head2
29242 #: ../src/guestfs-actions.pod:4603
29243 msgid "guestfs_mkdir_p"
29244 msgstr ""
29245
29246 #. type: verbatim
29247 #: ../src/guestfs-actions.pod:4605
29248 #, no-wrap
29249 msgid ""
29250 " int\n"
29251 " guestfs_mkdir_p (guestfs_h *g,\n"
29252 "                  const char *path);\n"
29253 "\n"
29254 msgstr ""
29255
29256 #. type: =head2
29257 #: ../src/guestfs-actions.pod:4616
29258 msgid "guestfs_mkdtemp"
29259 msgstr ""
29260
29261 #. type: verbatim
29262 #: ../src/guestfs-actions.pod:4618
29263 #, no-wrap
29264 msgid ""
29265 " char *\n"
29266 " guestfs_mkdtemp (guestfs_h *g,\n"
29267 "                  const char *template);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../src/guestfs-actions.pod:4646
29273 msgid "guestfs_mke2fs_J"
29274 msgstr ""
29275
29276 #. type: verbatim
29277 #: ../src/guestfs-actions.pod:4648
29278 #, no-wrap
29279 msgid ""
29280 " int\n"
29281 " guestfs_mke2fs_J (guestfs_h *g,\n"
29282 "                   const char *fstype,\n"
29283 "                   int blocksize,\n"
29284 "                   const char *device,\n"
29285 "                   const char *journal);\n"
29286 "\n"
29287 msgstr ""
29288
29289 #. type: textblock
29290 #: ../src/guestfs-actions.pod:4661
29291 msgid "See also C<guestfs_mke2journal>."
29292 msgstr ""
29293
29294 #. type: textblock
29295 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
29296 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
29297 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
29298 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
29299 msgid "(Added in 1.0.68)"
29300 msgstr ""
29301
29302 #. type: =head2
29303 #: ../src/guestfs-actions.pod:4667
29304 msgid "guestfs_mke2fs_JL"
29305 msgstr ""
29306
29307 #. type: verbatim
29308 #: ../src/guestfs-actions.pod:4669
29309 #, no-wrap
29310 msgid ""
29311 " int\n"
29312 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29313 "                    const char *fstype,\n"
29314 "                    int blocksize,\n"
29315 "                    const char *device,\n"
29316 "                    const char *label);\n"
29317 "\n"
29318 msgstr ""
29319
29320 #. type: textblock
29321 #: ../src/guestfs-actions.pod:4679
29322 msgid "See also C<guestfs_mke2journal_L>."
29323 msgstr ""
29324
29325 #. type: =head2
29326 #: ../src/guestfs-actions.pod:4685
29327 msgid "guestfs_mke2fs_JU"
29328 msgstr ""
29329
29330 #. type: verbatim
29331 #: ../src/guestfs-actions.pod:4687
29332 #, no-wrap
29333 msgid ""
29334 " int\n"
29335 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29336 "                    const char *fstype,\n"
29337 "                    int blocksize,\n"
29338 "                    const char *device,\n"
29339 "                    const char *uuid);\n"
29340 "\n"
29341 msgstr ""
29342
29343 #. type: textblock
29344 #: ../src/guestfs-actions.pod:4697
29345 msgid "See also C<guestfs_mke2journal_U>."
29346 msgstr ""
29347
29348 #. type: =head2
29349 #: ../src/guestfs-actions.pod:4703
29350 msgid "guestfs_mke2journal"
29351 msgstr ""
29352
29353 #. type: verbatim
29354 #: ../src/guestfs-actions.pod:4705
29355 #, no-wrap
29356 msgid ""
29357 " int\n"
29358 " guestfs_mke2journal (guestfs_h *g,\n"
29359 "                      int blocksize,\n"
29360 "                      const char *device);\n"
29361 "\n"
29362 msgstr ""
29363
29364 #. type: =head2
29365 #: ../src/guestfs-actions.pod:4719
29366 msgid "guestfs_mke2journal_L"
29367 msgstr ""
29368
29369 #. type: verbatim
29370 #: ../src/guestfs-actions.pod:4721
29371 #, no-wrap
29372 msgid ""
29373 " int\n"
29374 " guestfs_mke2journal_L (guestfs_h *g,\n"
29375 "                        int blocksize,\n"
29376 "                        const char *label,\n"
29377 "                        const char *device);\n"
29378 "\n"
29379 msgstr ""
29380
29381 #. type: =head2
29382 #: ../src/guestfs-actions.pod:4733
29383 msgid "guestfs_mke2journal_U"
29384 msgstr ""
29385
29386 #. type: verbatim
29387 #: ../src/guestfs-actions.pod:4735
29388 #, no-wrap
29389 msgid ""
29390 " int\n"
29391 " guestfs_mke2journal_U (guestfs_h *g,\n"
29392 "                        int blocksize,\n"
29393 "                        const char *uuid,\n"
29394 "                        const char *device);\n"
29395 "\n"
29396 msgstr ""
29397
29398 #. type: =head2
29399 #: ../src/guestfs-actions.pod:4747
29400 msgid "guestfs_mkfifo"
29401 msgstr ""
29402
29403 #. type: verbatim
29404 #: ../src/guestfs-actions.pod:4749
29405 #, no-wrap
29406 msgid ""
29407 " int\n"
29408 " guestfs_mkfifo (guestfs_h *g,\n"
29409 "                 int mode,\n"
29410 "                 const char *path);\n"
29411 "\n"
29412 msgstr ""
29413
29414 #. type: textblock
29415 #: ../src/guestfs-actions.pod:4754
29416 msgid ""
29417 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29418 "is just a convenient wrapper around C<guestfs_mknod>."
29419 msgstr ""
29420
29421 #. type: =head2
29422 #: ../src/guestfs-actions.pod:4764
29423 msgid "guestfs_mkfs"
29424 msgstr ""
29425
29426 #. type: verbatim
29427 #: ../src/guestfs-actions.pod:4766
29428 #, no-wrap
29429 msgid ""
29430 " int\n"
29431 " guestfs_mkfs (guestfs_h *g,\n"
29432 "               const char *fstype,\n"
29433 "               const char *device);\n"
29434 "\n"
29435 msgstr ""
29436
29437 #. type: =head2
29438 #: ../src/guestfs-actions.pod:4779
29439 msgid "guestfs_mkfs_b"
29440 msgstr ""
29441
29442 #. type: verbatim
29443 #: ../src/guestfs-actions.pod:4781
29444 #, no-wrap
29445 msgid ""
29446 " int\n"
29447 " guestfs_mkfs_b (guestfs_h *g,\n"
29448 "                 const char *fstype,\n"
29449 "                 int blocksize,\n"
29450 "                 const char *device);\n"
29451 "\n"
29452 msgstr ""
29453
29454 #. type: textblock
29455 #: ../src/guestfs-actions.pod:4787
29456 msgid ""
29457 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29458 "call instead."
29459 msgstr ""
29460
29461 #. type: textblock
29462 #: ../src/guestfs-actions.pod:4794
29463 msgid ""
29464 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29465 "block size of the resulting filesystem.  Supported block sizes depend on the "
29466 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29467 msgstr ""
29468
29469 #. type: =head2
29470 #: ../src/guestfs-actions.pod:4806
29471 msgid "guestfs_mkfs_opts"
29472 msgstr ""
29473
29474 #. type: verbatim
29475 #: ../src/guestfs-actions.pod:4808
29476 #, no-wrap
29477 msgid ""
29478 " int\n"
29479 " guestfs_mkfs_opts (guestfs_h *g,\n"
29480 "                    const char *fstype,\n"
29481 "                    const char *device,\n"
29482 "                    ...);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: verbatim
29487 #: ../src/guestfs-actions.pod:4819
29488 #, no-wrap
29489 msgid ""
29490 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29491 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29492 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29493 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29494 "\n"
29495 msgstr ""
29496
29497 #. type: textblock
29498 #: ../src/guestfs-actions.pod:4867
29499 msgid "(Added in 1.7.19)"
29500 msgstr ""
29501
29502 #. type: =head2
29503 #: ../src/guestfs-actions.pod:4869
29504 msgid "guestfs_mkfs_opts_va"
29505 msgstr ""
29506
29507 #. type: verbatim
29508 #: ../src/guestfs-actions.pod:4871
29509 #, no-wrap
29510 msgid ""
29511 " int\n"
29512 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29513 "                       const char *fstype,\n"
29514 "                       const char *device,\n"
29515 "                       va_list args);\n"
29516 "\n"
29517 msgstr ""
29518
29519 #. type: textblock
29520 #: ../src/guestfs-actions.pod:4877
29521 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29522 msgstr ""
29523
29524 #. type: =head2
29525 #: ../src/guestfs-actions.pod:4881
29526 msgid "guestfs_mkfs_opts_argv"
29527 msgstr ""
29528
29529 #. type: verbatim
29530 #: ../src/guestfs-actions.pod:4883
29531 #, no-wrap
29532 msgid ""
29533 " int\n"
29534 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29535 "                         const char *fstype,\n"
29536 "                         const char *device,\n"
29537 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29538 "\n"
29539 msgstr ""
29540
29541 #. type: textblock
29542 #: ../src/guestfs-actions.pod:4889
29543 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29544 msgstr ""
29545
29546 #. type: =head2
29547 #: ../src/guestfs-actions.pod:4893
29548 msgid "guestfs_mkmountpoint"
29549 msgstr ""
29550
29551 #. type: verbatim
29552 #: ../src/guestfs-actions.pod:4895
29553 #, no-wrap
29554 msgid ""
29555 " int\n"
29556 " guestfs_mkmountpoint (guestfs_h *g,\n"
29557 "                       const char *exemptpath);\n"
29558 "\n"
29559 msgstr ""
29560
29561 #. type: textblock
29562 #: ../src/guestfs-actions.pod:4899
29563 msgid ""
29564 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29565 "that can be used to create extra mountpoints before mounting the first "
29566 "filesystem."
29567 msgstr ""
29568
29569 #. type: textblock
29570 #: ../src/guestfs-actions.pod:4923
29571 msgid ""
29572 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29573 "may get unexpected errors if you try to mix these calls.  It is safest to "
29574 "manually unmount filesystems and remove mountpoints after use."
29575 msgstr ""
29576
29577 #. type: textblock
29578 #: ../src/guestfs-actions.pod:4927
29579 msgid ""
29580 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29581 "first, so for this to work for manual mountpoints, you must ensure that the "
29582 "innermost mountpoints have the longest pathnames, as in the example code "
29583 "above."
29584 msgstr ""
29585
29586 #. type: textblock
29587 #: ../src/guestfs-actions.pod:4934
29588 msgid ""
29589 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29590 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29591 "can also trigger these issues."
29592 msgstr ""
29593
29594 #. type: textblock
29595 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
29596 #: ../src/guestfs-actions.pod:6256
29597 msgid "(Added in 1.0.62)"
29598 msgstr ""
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:4942
29602 msgid "guestfs_mknod"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:4944
29607 #, no-wrap
29608 msgid ""
29609 " int\n"
29610 " guestfs_mknod (guestfs_h *g,\n"
29611 "                int mode,\n"
29612 "                int devmajor,\n"
29613 "                int devminor,\n"
29614 "                const char *path);\n"
29615 "\n"
29616 msgstr ""
29617
29618 #. type: textblock
29619 #: ../src/guestfs-actions.pod:4959
29620 msgid ""
29621 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29622 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29623 "regular file).  These constants are available in the standard Linux header "
29624 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29625 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29626 "the appropriate constant for you."
29627 msgstr ""
29628
29629 #. type: =head2
29630 #: ../src/guestfs-actions.pod:4973
29631 msgid "guestfs_mknod_b"
29632 msgstr ""
29633
29634 #. type: verbatim
29635 #: ../src/guestfs-actions.pod:4975
29636 #, no-wrap
29637 msgid ""
29638 " int\n"
29639 " guestfs_mknod_b (guestfs_h *g,\n"
29640 "                  int mode,\n"
29641 "                  int devmajor,\n"
29642 "                  int devminor,\n"
29643 "                  const char *path);\n"
29644 "\n"
29645 msgstr ""
29646
29647 #. type: textblock
29648 #: ../src/guestfs-actions.pod:4982
29649 msgid ""
29650 "This call creates a block device node called C<path> with mode C<mode> and "
29651 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29652 "wrapper around C<guestfs_mknod>."
29653 msgstr ""
29654
29655 #. type: =head2
29656 #: ../src/guestfs-actions.pod:4992
29657 msgid "guestfs_mknod_c"
29658 msgstr ""
29659
29660 #. type: verbatim
29661 #: ../src/guestfs-actions.pod:4994
29662 #, no-wrap
29663 msgid ""
29664 " int\n"
29665 " guestfs_mknod_c (guestfs_h *g,\n"
29666 "                  int mode,\n"
29667 "                  int devmajor,\n"
29668 "                  int devminor,\n"
29669 "                  const char *path);\n"
29670 "\n"
29671 msgstr ""
29672
29673 #. type: textblock
29674 #: ../src/guestfs-actions.pod:5001
29675 msgid ""
29676 "This call creates a char device node called C<path> with mode C<mode> and "
29677 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29678 "wrapper around C<guestfs_mknod>."
29679 msgstr ""
29680
29681 #. type: =head2
29682 #: ../src/guestfs-actions.pod:5011
29683 msgid "guestfs_mkswap"
29684 msgstr ""
29685
29686 #. type: verbatim
29687 #: ../src/guestfs-actions.pod:5013
29688 #, no-wrap
29689 msgid ""
29690 " int\n"
29691 " guestfs_mkswap (guestfs_h *g,\n"
29692 "                 const char *device);\n"
29693 "\n"
29694 msgstr ""
29695
29696 #. type: =head2
29697 #: ../src/guestfs-actions.pod:5023
29698 msgid "guestfs_mkswap_L"
29699 msgstr ""
29700
29701 #. type: verbatim
29702 #: ../src/guestfs-actions.pod:5025
29703 #, no-wrap
29704 msgid ""
29705 " int\n"
29706 " guestfs_mkswap_L (guestfs_h *g,\n"
29707 "                   const char *label,\n"
29708 "                   const char *device);\n"
29709 "\n"
29710 msgstr ""
29711
29712 #. type: =head2
29713 #: ../src/guestfs-actions.pod:5040
29714 msgid "guestfs_mkswap_U"
29715 msgstr ""
29716
29717 #. type: verbatim
29718 #: ../src/guestfs-actions.pod:5042
29719 #, no-wrap
29720 msgid ""
29721 " int\n"
29722 " guestfs_mkswap_U (guestfs_h *g,\n"
29723 "                   const char *uuid,\n"
29724 "                   const char *device);\n"
29725 "\n"
29726 msgstr ""
29727
29728 #. type: =head2
29729 #: ../src/guestfs-actions.pod:5053
29730 msgid "guestfs_mkswap_file"
29731 msgstr ""
29732
29733 #. type: verbatim
29734 #: ../src/guestfs-actions.pod:5055
29735 #, no-wrap
29736 msgid ""
29737 " int\n"
29738 " guestfs_mkswap_file (guestfs_h *g,\n"
29739 "                      const char *path);\n"
29740 "\n"
29741 msgstr ""
29742
29743 #. type: textblock
29744 #: ../src/guestfs-actions.pod:5061
29745 msgid ""
29746 "This command just writes a swap file signature to an existing file.  To "
29747 "create the file itself, use something like C<guestfs_fallocate>."
29748 msgstr ""
29749
29750 #. type: =head2
29751 #: ../src/guestfs-actions.pod:5068
29752 msgid "guestfs_modprobe"
29753 msgstr ""
29754
29755 #. type: verbatim
29756 #: ../src/guestfs-actions.pod:5070
29757 #, no-wrap
29758 msgid ""
29759 " int\n"
29760 " guestfs_modprobe (guestfs_h *g,\n"
29761 "                   const char *modulename);\n"
29762 "\n"
29763 msgstr ""
29764
29765 #. type: =head2
29766 #: ../src/guestfs-actions.pod:5083
29767 msgid "guestfs_mount"
29768 msgstr ""
29769
29770 #. type: verbatim
29771 #: ../src/guestfs-actions.pod:5085
29772 #, no-wrap
29773 msgid ""
29774 " int\n"
29775 " guestfs_mount (guestfs_h *g,\n"
29776 "                const char *device,\n"
29777 "                const char *mountpoint);\n"
29778 "\n"
29779 msgstr ""
29780
29781 #. type: textblock
29782 #: ../src/guestfs-actions.pod:5104
29783 msgid ""
29784 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29785 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29786 "problems for users.  If your program might need to work with older versions "
29787 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29788 "for the first parameter if you don't want any options)."
29789 msgstr ""
29790
29791 #. type: =head2
29792 #: ../src/guestfs-actions.pod:5115
29793 msgid "guestfs_mount_9p"
29794 msgstr ""
29795
29796 #. type: verbatim
29797 #: ../src/guestfs-actions.pod:5117
29798 #, no-wrap
29799 msgid ""
29800 " int\n"
29801 " guestfs_mount_9p (guestfs_h *g,\n"
29802 "                   const char *mounttag,\n"
29803 "                   const char *mountpoint,\n"
29804 "                   ...);\n"
29805 "\n"
29806 msgstr ""
29807
29808 #. type: verbatim
29809 #: ../src/guestfs-actions.pod:5128
29810 #, no-wrap
29811 msgid ""
29812 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29813 "\n"
29814 msgstr ""
29815
29816 #. type: =head2
29817 #: ../src/guestfs-actions.pod:5141
29818 msgid "guestfs_mount_9p_va"
29819 msgstr ""
29820
29821 #. type: verbatim
29822 #: ../src/guestfs-actions.pod:5143
29823 #, no-wrap
29824 msgid ""
29825 " int\n"
29826 " guestfs_mount_9p_va (guestfs_h *g,\n"
29827 "                      const char *mounttag,\n"
29828 "                      const char *mountpoint,\n"
29829 "                      va_list args);\n"
29830 "\n"
29831 msgstr ""
29832
29833 #. type: textblock
29834 #: ../src/guestfs-actions.pod:5149
29835 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29836 msgstr ""
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:5153
29840 msgid "guestfs_mount_9p_argv"
29841 msgstr ""
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:5155
29845 #, no-wrap
29846 msgid ""
29847 " int\n"
29848 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29849 "                        const char *mounttag,\n"
29850 "                        const char *mountpoint,\n"
29851 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29852 "\n"
29853 msgstr ""
29854
29855 #. type: textblock
29856 #: ../src/guestfs-actions.pod:5161
29857 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:5165
29862 msgid "guestfs_mount_loop"
29863 msgstr ""
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:5167
29867 #, no-wrap
29868 msgid ""
29869 " int\n"
29870 " guestfs_mount_loop (guestfs_h *g,\n"
29871 "                     const char *file,\n"
29872 "                     const char *mountpoint);\n"
29873 "\n"
29874 msgstr ""
29875
29876 #. type: =head2
29877 #: ../src/guestfs-actions.pod:5180
29878 msgid "guestfs_mount_options"
29879 msgstr ""
29880
29881 #. type: verbatim
29882 #: ../src/guestfs-actions.pod:5182
29883 #, no-wrap
29884 msgid ""
29885 " int\n"
29886 " guestfs_mount_options (guestfs_h *g,\n"
29887 "                        const char *options,\n"
29888 "                        const char *device,\n"
29889 "                        const char *mountpoint);\n"
29890 "\n"
29891 msgstr ""
29892
29893 #. type: textblock
29894 #: ../src/guestfs-actions.pod:5188
29895 msgid ""
29896 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29897 "the mount options as for the L<mount(8)> I<-o> flag."
29898 msgstr ""
29899
29900 #. type: textblock
29901 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
29902 #: ../src/guestfs-actions.pod:5229
29903 msgid "(Added in 1.0.10)"
29904 msgstr ""
29905
29906 #. type: =head2
29907 #: ../src/guestfs-actions.pod:5200
29908 msgid "guestfs_mount_ro"
29909 msgstr ""
29910
29911 #. type: verbatim
29912 #: ../src/guestfs-actions.pod:5202
29913 #, no-wrap
29914 msgid ""
29915 " int\n"
29916 " guestfs_mount_ro (guestfs_h *g,\n"
29917 "                   const char *device,\n"
29918 "                   const char *mountpoint);\n"
29919 "\n"
29920 msgstr ""
29921
29922 #. type: textblock
29923 #: ../src/guestfs-actions.pod:5207
29924 msgid ""
29925 "This is the same as the C<guestfs_mount> command, but it mounts the "
29926 "filesystem with the read-only (I<-o ro>) flag."
29927 msgstr ""
29928
29929 #. type: =head2
29930 #: ../src/guestfs-actions.pod:5214
29931 msgid "guestfs_mount_vfs"
29932 msgstr ""
29933
29934 #. type: verbatim
29935 #: ../src/guestfs-actions.pod:5216
29936 #, no-wrap
29937 msgid ""
29938 " int\n"
29939 " guestfs_mount_vfs (guestfs_h *g,\n"
29940 "                    const char *options,\n"
29941 "                    const char *vfstype,\n"
29942 "                    const char *device,\n"
29943 "                    const char *mountpoint);\n"
29944 "\n"
29945 msgstr ""
29946
29947 #. type: textblock
29948 #: ../src/guestfs-actions.pod:5223
29949 msgid ""
29950 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29951 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29952 "t> flags."
29953 msgstr ""
29954
29955 #. type: =head2
29956 #: ../src/guestfs-actions.pod:5231
29957 msgid "guestfs_mountpoints"
29958 msgstr ""
29959
29960 #. type: verbatim
29961 #: ../src/guestfs-actions.pod:5233
29962 #, no-wrap
29963 msgid ""
29964 " char **\n"
29965 " guestfs_mountpoints (guestfs_h *g);\n"
29966 "\n"
29967 msgstr ""
29968
29969 #. type: textblock
29970 #: ../src/guestfs-actions.pod:5236
29971 msgid ""
29972 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29973 "devices.  This one returns a hash table (map) of device name to directory "
29974 "where the device is mounted."
29975 msgstr ""
29976
29977 #. type: =head2
29978 #: ../src/guestfs-actions.pod:5248
29979 msgid "guestfs_mounts"
29980 msgstr ""
29981
29982 #. type: verbatim
29983 #: ../src/guestfs-actions.pod:5250
29984 #, no-wrap
29985 msgid ""
29986 " char **\n"
29987 " guestfs_mounts (guestfs_h *g);\n"
29988 "\n"
29989 msgstr ""
29990
29991 #. type: textblock
29992 #: ../src/guestfs-actions.pod:5258
29993 msgid "See also: C<guestfs_mountpoints>"
29994 msgstr ""
29995
29996 #. type: =head2
29997 #: ../src/guestfs-actions.pod:5266
29998 msgid "guestfs_mv"
29999 msgstr ""
30000
30001 #. type: verbatim
30002 #: ../src/guestfs-actions.pod:5268
30003 #, no-wrap
30004 msgid ""
30005 " int\n"
30006 " guestfs_mv (guestfs_h *g,\n"
30007 "             const char *src,\n"
30008 "             const char *dest);\n"
30009 "\n"
30010 msgstr ""
30011
30012 #. type: =head2
30013 #: ../src/guestfs-actions.pod:5280
30014 msgid "guestfs_ntfs_3g_probe"
30015 msgstr ""
30016
30017 #. type: verbatim
30018 #: ../src/guestfs-actions.pod:5282
30019 #, no-wrap
30020 msgid ""
30021 " int\n"
30022 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30023 "                        int rw,\n"
30024 "                        const char *device);\n"
30025 "\n"
30026 msgstr ""
30027
30028 #. type: textblock
30029 #: ../src/guestfs-actions.pod:5301
30030 msgid "(Added in 1.0.43)"
30031 msgstr ""
30032
30033 #. type: =head2
30034 #: ../src/guestfs-actions.pod:5303
30035 msgid "guestfs_ntfsresize"
30036 msgstr ""
30037
30038 #. type: verbatim
30039 #: ../src/guestfs-actions.pod:5305
30040 #, no-wrap
30041 msgid ""
30042 " int\n"
30043 " guestfs_ntfsresize (guestfs_h *g,\n"
30044 "                     const char *device);\n"
30045 "\n"
30046 msgstr ""
30047
30048 #. type: textblock
30049 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
30050 msgid ""
30051 "I<This function is deprecated.> In new code, use the L</"
30052 "guestfs_ntfsresize_opts> call instead."
30053 msgstr ""
30054
30055 #. type: =head2
30056 #: ../src/guestfs-actions.pod:5333
30057 msgid "guestfs_ntfsresize_opts"
30058 msgstr ""
30059
30060 #. type: verbatim
30061 #: ../src/guestfs-actions.pod:5335
30062 #, no-wrap
30063 msgid ""
30064 " int\n"
30065 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30066 "                          const char *device,\n"
30067 "                          ...);\n"
30068 "\n"
30069 msgstr ""
30070
30071 #. type: verbatim
30072 #: ../src/guestfs-actions.pod:5345
30073 #, no-wrap
30074 msgid ""
30075 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30076 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30077 "\n"
30078 msgstr ""
30079
30080 #. type: textblock
30081 #: ../src/guestfs-actions.pod:5365
30082 msgid ""
30083 "After the resize operation, the filesystem is always marked as requiring a "
30084 "consistency check (for safety).  You have to boot into Windows to perform "
30085 "this check and clear this condition.  If you I<don't> set the C<force> "
30086 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30087 "times on a single filesystem without booting into Windows between each "
30088 "resize."
30089 msgstr ""
30090
30091 #. type: =head2
30092 #: ../src/guestfs-actions.pod:5380
30093 msgid "guestfs_ntfsresize_opts_va"
30094 msgstr ""
30095
30096 #. type: verbatim
30097 #: ../src/guestfs-actions.pod:5382
30098 #, no-wrap
30099 msgid ""
30100 " int\n"
30101 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30102 "                             const char *device,\n"
30103 "                             va_list args);\n"
30104 "\n"
30105 msgstr ""
30106
30107 #. type: textblock
30108 #: ../src/guestfs-actions.pod:5387
30109 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30110 msgstr ""
30111
30112 #. type: =head2
30113 #: ../src/guestfs-actions.pod:5391
30114 msgid "guestfs_ntfsresize_opts_argv"
30115 msgstr ""
30116
30117 #. type: verbatim
30118 #: ../src/guestfs-actions.pod:5393
30119 #, no-wrap
30120 msgid ""
30121 " int\n"
30122 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30123 "                               const char *device,\n"
30124 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30125 "\n"
30126 msgstr ""
30127
30128 #. type: textblock
30129 #: ../src/guestfs-actions.pod:5398
30130 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30131 msgstr ""
30132
30133 #. type: =head2
30134 #: ../src/guestfs-actions.pod:5402
30135 msgid "guestfs_ntfsresize_size"
30136 msgstr ""
30137
30138 #. type: verbatim
30139 #: ../src/guestfs-actions.pod:5404
30140 #, no-wrap
30141 msgid ""
30142 " int\n"
30143 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30144 "                          const char *device,\n"
30145 "                          int64_t size);\n"
30146 "\n"
30147 msgstr ""
30148
30149 #. type: textblock
30150 #: ../src/guestfs-actions.pod:5416
30151 msgid ""
30152 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30153 "to specify the new size (in bytes) explicitly."
30154 msgstr ""
30155
30156 #. type: textblock
30157 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
30158 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
30159 #: ../src/guestfs-actions.pod:7843
30160 msgid "(Added in 1.3.14)"
30161 msgstr ""
30162
30163 #. type: =head2
30164 #: ../src/guestfs-actions.pod:5423
30165 msgid "guestfs_part_add"
30166 msgstr ""
30167
30168 #. type: verbatim
30169 #: ../src/guestfs-actions.pod:5425
30170 #, no-wrap
30171 msgid ""
30172 " int\n"
30173 " guestfs_part_add (guestfs_h *g,\n"
30174 "                   const char *device,\n"
30175 "                   const char *prlogex,\n"
30176 "                   int64_t startsect,\n"
30177 "                   int64_t endsect);\n"
30178 "\n"
30179 msgstr ""
30180
30181 #. type: textblock
30182 #: ../src/guestfs-actions.pod:5432
30183 msgid ""
30184 "This command adds a partition to C<device>.  If there is no partition table "
30185 "on the device, call C<guestfs_part_init> first."
30186 msgstr ""
30187
30188 #. type: textblock
30189 #: ../src/guestfs-actions.pod:5444
30190 msgid ""
30191 "Creating a partition which covers the whole disk is not so easy.  Use "
30192 "C<guestfs_part_disk> to do that."
30193 msgstr ""
30194
30195 #. type: textblock
30196 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
30197 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
30198 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
30199 #: ../src/guestfs-actions.pod:5721
30200 msgid "(Added in 1.0.78)"
30201 msgstr ""
30202
30203 #. type: =head2
30204 #: ../src/guestfs-actions.pod:5451
30205 msgid "guestfs_part_del"
30206 msgstr ""
30207
30208 #. type: verbatim
30209 #: ../src/guestfs-actions.pod:5453
30210 #, no-wrap
30211 msgid ""
30212 " int\n"
30213 " guestfs_part_del (guestfs_h *g,\n"
30214 "                   const char *device,\n"
30215 "                   int partnum);\n"
30216 "\n"
30217 msgstr ""
30218
30219 #. type: =head2
30220 #: ../src/guestfs-actions.pod:5468
30221 msgid "guestfs_part_disk"
30222 msgstr ""
30223
30224 #. type: verbatim
30225 #: ../src/guestfs-actions.pod:5470
30226 #, no-wrap
30227 msgid ""
30228 " int\n"
30229 " guestfs_part_disk (guestfs_h *g,\n"
30230 "                    const char *device,\n"
30231 "                    const char *parttype);\n"
30232 "\n"
30233 msgstr ""
30234
30235 #. type: textblock
30236 #: ../src/guestfs-actions.pod:5475
30237 msgid ""
30238 "This command is simply a combination of C<guestfs_part_init> followed by "
30239 "C<guestfs_part_add> to create a single primary partition covering the whole "
30240 "disk."
30241 msgstr ""
30242
30243 #. type: textblock
30244 #: ../src/guestfs-actions.pod:5479
30245 msgid ""
30246 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30247 "possible values are described in C<guestfs_part_init>."
30248 msgstr ""
30249
30250 #. type: =head2
30251 #: ../src/guestfs-actions.pod:5489
30252 msgid "guestfs_part_get_bootable"
30253 msgstr ""
30254
30255 #. type: verbatim
30256 #: ../src/guestfs-actions.pod:5491
30257 #, no-wrap
30258 msgid ""
30259 " int\n"
30260 " guestfs_part_get_bootable (guestfs_h *g,\n"
30261 "                            const char *device,\n"
30262 "                            int partnum);\n"
30263 "\n"
30264 msgstr ""
30265
30266 #. type: textblock
30267 #: ../src/guestfs-actions.pod:5499
30268 msgid "See also C<guestfs_part_set_bootable>."
30269 msgstr ""
30270
30271 #. type: =head2
30272 #: ../src/guestfs-actions.pod:5505
30273 msgid "guestfs_part_get_mbr_id"
30274 msgstr ""
30275
30276 #. type: verbatim
30277 #: ../src/guestfs-actions.pod:5507
30278 #, no-wrap
30279 msgid ""
30280 " int\n"
30281 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30282 "                          const char *device,\n"
30283 "                          int partnum);\n"
30284 "\n"
30285 msgstr ""
30286
30287 #. type: textblock
30288 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
30289 msgid ""
30290 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30291 "undefined results for other partition table types (see "
30292 "C<guestfs_part_get_parttype>)."
30293 msgstr ""
30294
30295 #. type: =head2
30296 #: ../src/guestfs-actions.pod:5523
30297 msgid "guestfs_part_get_parttype"
30298 msgstr ""
30299
30300 #. type: verbatim
30301 #: ../src/guestfs-actions.pod:5525
30302 #, no-wrap
30303 msgid ""
30304 " char *\n"
30305 " guestfs_part_get_parttype (guestfs_h *g,\n"
30306 "                            const char *device);\n"
30307 "\n"
30308 msgstr ""
30309
30310 #. type: textblock
30311 #: ../src/guestfs-actions.pod:5532
30312 msgid ""
30313 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30314 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30315 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30316 msgstr ""
30317
30318 #. type: =head2
30319 #: ../src/guestfs-actions.pod:5542
30320 msgid "guestfs_part_init"
30321 msgstr ""
30322
30323 #. type: verbatim
30324 #: ../src/guestfs-actions.pod:5544
30325 #, no-wrap
30326 msgid ""
30327 " int\n"
30328 " guestfs_part_init (guestfs_h *g,\n"
30329 "                    const char *device,\n"
30330 "                    const char *parttype);\n"
30331 "\n"
30332 msgstr ""
30333
30334 #. type: textblock
30335 #: ../src/guestfs-actions.pod:5553
30336 msgid ""
30337 "Initially there are no partitions.  Following this, you should call "
30338 "C<guestfs_part_add> for each partition required."
30339 msgstr ""
30340
30341 #. type: =head2
30342 #: ../src/guestfs-actions.pod:5626
30343 msgid "guestfs_part_list"
30344 msgstr ""
30345
30346 #. type: verbatim
30347 #: ../src/guestfs-actions.pod:5628
30348 #, no-wrap
30349 msgid ""
30350 " struct guestfs_partition_list *\n"
30351 " guestfs_part_list (guestfs_h *g,\n"
30352 "                    const char *device);\n"
30353 "\n"
30354 msgstr ""
30355
30356 #. type: textblock
30357 #: ../src/guestfs-actions.pod:5645
30358 msgid ""
30359 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30360 "the device's sector size, see C<guestfs_blockdev_getss>."
30361 msgstr ""
30362
30363 #. type: textblock
30364 #: ../src/guestfs-actions.pod:5658
30365 msgid ""
30366 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30367 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30368 "use>."
30369 msgstr ""
30370
30371 #. type: =head2
30372 #: ../src/guestfs-actions.pod:5664
30373 msgid "guestfs_part_set_bootable"
30374 msgstr ""
30375
30376 #. type: verbatim
30377 #: ../src/guestfs-actions.pod:5666
30378 #, no-wrap
30379 msgid ""
30380 " int\n"
30381 " guestfs_part_set_bootable (guestfs_h *g,\n"
30382 "                            const char *device,\n"
30383 "                            int partnum,\n"
30384 "                            int bootable);\n"
30385 "\n"
30386 msgstr ""
30387
30388 #. type: =head2
30389 #: ../src/guestfs-actions.pod:5683
30390 msgid "guestfs_part_set_mbr_id"
30391 msgstr ""
30392
30393 #. type: verbatim
30394 #: ../src/guestfs-actions.pod:5685
30395 #, no-wrap
30396 msgid ""
30397 " int\n"
30398 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30399 "                          const char *device,\n"
30400 "                          int partnum,\n"
30401 "                          int idbyte);\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: =head2
30406 #: ../src/guestfs-actions.pod:5705
30407 msgid "guestfs_part_set_name"
30408 msgstr ""
30409
30410 #. type: verbatim
30411 #: ../src/guestfs-actions.pod:5707
30412 #, no-wrap
30413 msgid ""
30414 " int\n"
30415 " guestfs_part_set_name (guestfs_h *g,\n"
30416 "                        const char *device,\n"
30417 "                        int partnum,\n"
30418 "                        const char *name);\n"
30419 "\n"
30420 msgstr ""
30421
30422 #. type: =head2
30423 #: ../src/guestfs-actions.pod:5723
30424 msgid "guestfs_part_to_dev"
30425 msgstr ""
30426
30427 #. type: verbatim
30428 #: ../src/guestfs-actions.pod:5725
30429 #, no-wrap
30430 msgid ""
30431 " char *\n"
30432 " guestfs_part_to_dev (guestfs_h *g,\n"
30433 "                      const char *partition);\n"
30434 "\n"
30435 msgstr ""
30436
30437 #. type: textblock
30438 #: ../src/guestfs-actions.pod:5733
30439 msgid ""
30440 "The named partition must exist, for example as a string returned from "
30441 "C<guestfs_list_partitions>."
30442 msgstr ""
30443
30444 #. type: =head2
30445 #: ../src/guestfs-actions.pod:5741
30446 msgid "guestfs_ping_daemon"
30447 msgstr ""
30448
30449 #. type: verbatim
30450 #: ../src/guestfs-actions.pod:5743
30451 #, no-wrap
30452 msgid ""
30453 " int\n"
30454 " guestfs_ping_daemon (guestfs_h *g);\n"
30455 "\n"
30456 msgstr ""
30457
30458 #. type: =head2
30459 #: ../src/guestfs-actions.pod:5755
30460 msgid "guestfs_pread"
30461 msgstr ""
30462
30463 #. type: verbatim
30464 #: ../src/guestfs-actions.pod:5757
30465 #, no-wrap
30466 msgid ""
30467 " char *\n"
30468 " guestfs_pread (guestfs_h *g,\n"
30469 "                const char *path,\n"
30470 "                int count,\n"
30471 "                int64_t offset,\n"
30472 "                size_t *size_r);\n"
30473 "\n"
30474 msgstr ""
30475
30476 #. type: textblock
30477 #: ../src/guestfs-actions.pod:5770
30478 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30479 msgstr ""
30480
30481 #. type: =head2
30482 #: ../src/guestfs-actions.pod:5781
30483 msgid "guestfs_pread_device"
30484 msgstr ""
30485
30486 #. type: verbatim
30487 #: ../src/guestfs-actions.pod:5783
30488 #, no-wrap
30489 msgid ""
30490 " char *\n"
30491 " guestfs_pread_device (guestfs_h *g,\n"
30492 "                       const char *device,\n"
30493 "                       int count,\n"
30494 "                       int64_t offset,\n"
30495 "                       size_t *size_r);\n"
30496 "\n"
30497 msgstr ""
30498
30499 #. type: textblock
30500 #: ../src/guestfs-actions.pod:5796
30501 msgid "See also C<guestfs_pread>."
30502 msgstr ""
30503
30504 #. type: textblock
30505 #: ../src/guestfs-actions.pod:5805
30506 msgid "(Added in 1.5.21)"
30507 msgstr ""
30508
30509 #. type: =head2
30510 #: ../src/guestfs-actions.pod:5807
30511 msgid "guestfs_pvcreate"
30512 msgstr ""
30513
30514 #. type: verbatim
30515 #: ../src/guestfs-actions.pod:5809
30516 #, no-wrap
30517 msgid ""
30518 " int\n"
30519 " guestfs_pvcreate (guestfs_h *g,\n"
30520 "                   const char *device);\n"
30521 "\n"
30522 msgstr ""
30523
30524 #. type: =head2
30525 #: ../src/guestfs-actions.pod:5821
30526 msgid "guestfs_pvremove"
30527 msgstr ""
30528
30529 #. type: verbatim
30530 #: ../src/guestfs-actions.pod:5823
30531 #, no-wrap
30532 msgid ""
30533 " int\n"
30534 " guestfs_pvremove (guestfs_h *g,\n"
30535 "                   const char *device);\n"
30536 "\n"
30537 msgstr ""
30538
30539 #. type: =head2
30540 #: ../src/guestfs-actions.pod:5838
30541 msgid "guestfs_pvresize"
30542 msgstr ""
30543
30544 #. type: verbatim
30545 #: ../src/guestfs-actions.pod:5840
30546 #, no-wrap
30547 msgid ""
30548 " int\n"
30549 " guestfs_pvresize (guestfs_h *g,\n"
30550 "                   const char *device);\n"
30551 "\n"
30552 msgstr ""
30553
30554 #. type: =head2
30555 #: ../src/guestfs-actions.pod:5851
30556 msgid "guestfs_pvresize_size"
30557 msgstr ""
30558
30559 #. type: verbatim
30560 #: ../src/guestfs-actions.pod:5853
30561 #, no-wrap
30562 msgid ""
30563 " int\n"
30564 " guestfs_pvresize_size (guestfs_h *g,\n"
30565 "                        const char *device,\n"
30566 "                        int64_t size);\n"
30567 "\n"
30568 msgstr ""
30569
30570 #. type: textblock
30571 #: ../src/guestfs-actions.pod:5858
30572 msgid ""
30573 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30574 "specify the new size (in bytes) explicitly."
30575 msgstr ""
30576
30577 #. type: =head2
30578 #: ../src/guestfs-actions.pod:5865
30579 msgid "guestfs_pvs"
30580 msgstr ""
30581
30582 #. type: verbatim
30583 #: ../src/guestfs-actions.pod:5867
30584 #, no-wrap
30585 msgid ""
30586 " char **\n"
30587 " guestfs_pvs (guestfs_h *g);\n"
30588 "\n"
30589 msgstr ""
30590
30591 #. type: textblock
30592 #: ../src/guestfs-actions.pod:5876
30593 msgid "See also C<guestfs_pvs_full>."
30594 msgstr ""
30595
30596 #. type: =head2
30597 #: ../src/guestfs-actions.pod:5884
30598 msgid "guestfs_pvs_full"
30599 msgstr ""
30600
30601 #. type: verbatim
30602 #: ../src/guestfs-actions.pod:5886
30603 #, no-wrap
30604 msgid ""
30605 " struct guestfs_lvm_pv_list *\n"
30606 " guestfs_pvs_full (guestfs_h *g);\n"
30607 "\n"
30608 msgstr ""
30609
30610 #. type: textblock
30611 #: ../src/guestfs-actions.pod:5892
30612 msgid ""
30613 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30614 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30615 msgstr ""
30616
30617 #. type: =head2
30618 #: ../src/guestfs-actions.pod:5898
30619 msgid "guestfs_pvuuid"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-actions.pod:5900
30624 #, no-wrap
30625 msgid ""
30626 " char *\n"
30627 " guestfs_pvuuid (guestfs_h *g,\n"
30628 "                 const char *device);\n"
30629 "\n"
30630 msgstr ""
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:5911
30634 msgid "guestfs_pwrite"
30635 msgstr ""
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:5913
30639 #, no-wrap
30640 msgid ""
30641 " int\n"
30642 " guestfs_pwrite (guestfs_h *g,\n"
30643 "                 const char *path,\n"
30644 "                 const char *content,\n"
30645 "                 size_t content_size,\n"
30646 "                 int64_t offset);\n"
30647 "\n"
30648 msgstr ""
30649
30650 #. type: textblock
30651 #: ../src/guestfs-actions.pod:5929
30652 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30653 msgstr ""
30654
30655 #. type: =head2
30656 #: ../src/guestfs-actions.pod:5938
30657 msgid "guestfs_pwrite_device"
30658 msgstr ""
30659
30660 #. type: verbatim
30661 #: ../src/guestfs-actions.pod:5940
30662 #, no-wrap
30663 msgid ""
30664 " int\n"
30665 " guestfs_pwrite_device (guestfs_h *g,\n"
30666 "                        const char *device,\n"
30667 "                        const char *content,\n"
30668 "                        size_t content_size,\n"
30669 "                        int64_t offset);\n"
30670 "\n"
30671 msgstr ""
30672
30673 #. type: textblock
30674 #: ../src/guestfs-actions.pod:5955
30675 msgid "See also C<guestfs_pwrite>."
30676 msgstr ""
30677
30678 #. type: textblock
30679 #: ../src/guestfs-actions.pod:5962
30680 msgid "(Added in 1.5.20)"
30681 msgstr ""
30682
30683 #. type: =head2
30684 #: ../src/guestfs-actions.pod:5964
30685 msgid "guestfs_read_file"
30686 msgstr ""
30687
30688 #. type: verbatim
30689 #: ../src/guestfs-actions.pod:5966
30690 #, no-wrap
30691 msgid ""
30692 " char *\n"
30693 " guestfs_read_file (guestfs_h *g,\n"
30694 "                    const char *path,\n"
30695 "                    size_t *size_r);\n"
30696 "\n"
30697 msgstr ""
30698
30699 #. type: textblock
30700 #: ../src/guestfs-actions.pod:5974
30701 msgid ""
30702 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30703 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30704 "function is limited in the total size of file that can be handled."
30705 msgstr ""
30706
30707 #. type: textblock
30708 #: ../src/guestfs-actions.pod:5986
30709 msgid "(Added in 1.0.63)"
30710 msgstr ""
30711
30712 #. type: =head2
30713 #: ../src/guestfs-actions.pod:5988
30714 msgid "guestfs_read_lines"
30715 msgstr ""
30716
30717 #. type: verbatim
30718 #: ../src/guestfs-actions.pod:5990
30719 #, no-wrap
30720 msgid ""
30721 " char **\n"
30722 " guestfs_read_lines (guestfs_h *g,\n"
30723 "                     const char *path);\n"
30724 "\n"
30725 msgstr ""
30726
30727 #. type: textblock
30728 #: ../src/guestfs-actions.pod:5999
30729 msgid ""
30730 "Note that this function cannot correctly handle binary files (specifically, "
30731 "files containing C<\\0> character which is treated as end of line).  For "
30732 "those you need to use the C<guestfs_read_file> function which has a more "
30733 "complex interface."
30734 msgstr ""
30735
30736 #. type: =head2
30737 #: ../src/guestfs-actions.pod:6010
30738 msgid "guestfs_readdir"
30739 msgstr ""
30740
30741 #. type: verbatim
30742 #: ../src/guestfs-actions.pod:6012
30743 #, no-wrap
30744 msgid ""
30745 " struct guestfs_dirent_list *\n"
30746 " guestfs_readdir (guestfs_h *g,\n"
30747 "                  const char *dir);\n"
30748 "\n"
30749 msgstr ""
30750
30751 #. type: textblock
30752 #: ../src/guestfs-actions.pod:6066
30753 msgid ""
30754 "This function is primarily intended for use by programs.  To get a simple "
30755 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30756 "consumption, use C<guestfs_ll>."
30757 msgstr ""
30758
30759 #. type: textblock
30760 #: ../src/guestfs-actions.pod:6070
30761 msgid ""
30762 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30763 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
30764 msgstr ""
30765
30766 #. type: =head2
30767 #: ../src/guestfs-actions.pod:6076
30768 msgid "guestfs_readlink"
30769 msgstr ""
30770
30771 #. type: verbatim
30772 #: ../src/guestfs-actions.pod:6078
30773 #, no-wrap
30774 msgid ""
30775 " char *\n"
30776 " guestfs_readlink (guestfs_h *g,\n"
30777 "                   const char *path);\n"
30778 "\n"
30779 msgstr ""
30780
30781 #. type: =head2
30782 #: ../src/guestfs-actions.pod:6089
30783 msgid "guestfs_readlinklist"
30784 msgstr ""
30785
30786 #. type: verbatim
30787 #: ../src/guestfs-actions.pod:6091
30788 #, no-wrap
30789 msgid ""
30790 " char **\n"
30791 " guestfs_readlinklist (guestfs_h *g,\n"
30792 "                       const char *path,\n"
30793 "                       char *const *names);\n"
30794 "\n"
30795 msgstr ""
30796
30797 #. type: =head2
30798 #: ../src/guestfs-actions.pod:6124
30799 msgid "guestfs_realpath"
30800 msgstr ""
30801
30802 #. type: verbatim
30803 #: ../src/guestfs-actions.pod:6126
30804 #, no-wrap
30805 msgid ""
30806 " char *\n"
30807 " guestfs_realpath (guestfs_h *g,\n"
30808 "                   const char *path);\n"
30809 "\n"
30810 msgstr ""
30811
30812 #. type: =head2
30813 #: ../src/guestfs-actions.pod:6138
30814 msgid "guestfs_removexattr"
30815 msgstr ""
30816
30817 #. type: verbatim
30818 #: ../src/guestfs-actions.pod:6140
30819 #, no-wrap
30820 msgid ""
30821 " int\n"
30822 " guestfs_removexattr (guestfs_h *g,\n"
30823 "                      const char *xattr,\n"
30824 "                      const char *path);\n"
30825 "\n"
30826 msgstr ""
30827
30828 #. type: textblock
30829 #: ../src/guestfs-actions.pod:6148
30830 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30831 msgstr ""
30832
30833 #. type: =head2
30834 #: ../src/guestfs-actions.pod:6154
30835 msgid "guestfs_resize2fs"
30836 msgstr ""
30837
30838 #. type: verbatim
30839 #: ../src/guestfs-actions.pod:6156
30840 #, no-wrap
30841 msgid ""
30842 " int\n"
30843 " guestfs_resize2fs (guestfs_h *g,\n"
30844 "                    const char *device);\n"
30845 "\n"
30846 msgstr ""
30847
30848 #. type: textblock
30849 #: ../src/guestfs-actions.pod:6163
30850 msgid ""
30851 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30852 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30853 "sometimes gives an error about this and sometimes not.  In any case, it is "
30854 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30855 msgstr ""
30856
30857 #. type: =head2
30858 #: ../src/guestfs-actions.pod:6173
30859 msgid "guestfs_resize2fs_M"
30860 msgstr ""
30861
30862 #. type: verbatim
30863 #: ../src/guestfs-actions.pod:6175
30864 #, no-wrap
30865 msgid ""
30866 " int\n"
30867 " guestfs_resize2fs_M (guestfs_h *g,\n"
30868 "                      const char *device);\n"
30869 "\n"
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs-actions.pod:6179
30874 msgid ""
30875 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30876 "resized to its minimum size.  This works like the I<-M> option to the "
30877 "C<resize2fs> command."
30878 msgstr ""
30879
30880 #. type: textblock
30881 #: ../src/guestfs-actions.pod:6183
30882 msgid ""
30883 "To get the resulting size of the filesystem you should call "
30884 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30885 "These two numbers, multiplied together, give the resulting size of the "
30886 "minimal filesystem in bytes."
30887 msgstr ""
30888
30889 #. type: =head2
30890 #: ../src/guestfs-actions.pod:6192
30891 msgid "guestfs_resize2fs_size"
30892 msgstr ""
30893
30894 #. type: verbatim
30895 #: ../src/guestfs-actions.pod:6194
30896 #, no-wrap
30897 msgid ""
30898 " int\n"
30899 " guestfs_resize2fs_size (guestfs_h *g,\n"
30900 "                         const char *device,\n"
30901 "                         int64_t size);\n"
30902 "\n"
30903 msgstr ""
30904
30905 #. type: textblock
30906 #: ../src/guestfs-actions.pod:6199
30907 msgid ""
30908 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30909 "to specify the new size (in bytes) explicitly."
30910 msgstr ""
30911
30912 #. type: =head2
30913 #: ../src/guestfs-actions.pod:6206
30914 msgid "guestfs_rm"
30915 msgstr ""
30916
30917 #. type: verbatim
30918 #: ../src/guestfs-actions.pod:6208
30919 #, no-wrap
30920 msgid ""
30921 " int\n"
30922 " guestfs_rm (guestfs_h *g,\n"
30923 "             const char *path);\n"
30924 "\n"
30925 msgstr ""
30926
30927 #. type: =head2
30928 #: ../src/guestfs-actions.pod:6218
30929 msgid "guestfs_rm_rf"
30930 msgstr ""
30931
30932 #. type: verbatim
30933 #: ../src/guestfs-actions.pod:6220
30934 #, no-wrap
30935 msgid ""
30936 " int\n"
30937 " guestfs_rm_rf (guestfs_h *g,\n"
30938 "                const char *path);\n"
30939 "\n"
30940 msgstr ""
30941
30942 #. type: =head2
30943 #: ../src/guestfs-actions.pod:6232
30944 msgid "guestfs_rmdir"
30945 msgstr ""
30946
30947 #. type: verbatim
30948 #: ../src/guestfs-actions.pod:6234
30949 #, no-wrap
30950 msgid ""
30951 " int\n"
30952 " guestfs_rmdir (guestfs_h *g,\n"
30953 "                const char *path);\n"
30954 "\n"
30955 msgstr ""
30956
30957 #. type: =head2
30958 #: ../src/guestfs-actions.pod:6244
30959 msgid "guestfs_rmmountpoint"
30960 msgstr ""
30961
30962 #. type: verbatim
30963 #: ../src/guestfs-actions.pod:6246
30964 #, no-wrap
30965 msgid ""
30966 " int\n"
30967 " guestfs_rmmountpoint (guestfs_h *g,\n"
30968 "                       const char *exemptpath);\n"
30969 "\n"
30970 msgstr ""
30971
30972 #. type: textblock
30973 #: ../src/guestfs-actions.pod:6250
30974 msgid ""
30975 "This calls removes a mountpoint that was previously created with "
30976 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30977 msgstr ""
30978
30979 #. type: =head2
30980 #: ../src/guestfs-actions.pod:6258
30981 msgid "guestfs_scrub_device"
30982 msgstr ""
30983
30984 #. type: verbatim
30985 #: ../src/guestfs-actions.pod:6260
30986 #, no-wrap
30987 msgid ""
30988 " int\n"
30989 " guestfs_scrub_device (guestfs_h *g,\n"
30990 "                       const char *device);\n"
30991 "\n"
30992 msgstr ""
30993
30994 #. type: textblock
30995 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
30996 #: ../src/guestfs-actions.pod:6312
30997 msgid "(Added in 1.0.52)"
30998 msgstr ""
30999
31000 #. type: =head2
31001 #: ../src/guestfs-actions.pod:6277
31002 msgid "guestfs_scrub_file"
31003 msgstr ""
31004
31005 #. type: verbatim
31006 #: ../src/guestfs-actions.pod:6279
31007 #, no-wrap
31008 msgid ""
31009 " int\n"
31010 " guestfs_scrub_file (guestfs_h *g,\n"
31011 "                     const char *file);\n"
31012 "\n"
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:6295
31017 msgid "guestfs_scrub_freespace"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:6297
31022 #, no-wrap
31023 msgid ""
31024 " int\n"
31025 " guestfs_scrub_freespace (guestfs_h *g,\n"
31026 "                          const char *dir);\n"
31027 "\n"
31028 msgstr ""
31029
31030 #. type: textblock
31031 #: ../src/guestfs-actions.pod:6301
31032 msgid ""
31033 "This command creates the directory C<dir> and then fills it with files until "
31034 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31035 "and deletes them.  The intention is to scrub any free space on the partition "
31036 "containing C<dir>."
31037 msgstr ""
31038
31039 #. type: =head2
31040 #: ../src/guestfs-actions.pod:6314
31041 msgid "guestfs_set_append"
31042 msgstr ""
31043
31044 #. type: verbatim
31045 #: ../src/guestfs-actions.pod:6316
31046 #, no-wrap
31047 msgid ""
31048 " int\n"
31049 " guestfs_set_append (guestfs_h *g,\n"
31050 "                     const char *append);\n"
31051 "\n"
31052 msgstr ""
31053
31054 #. type: =head2
31055 #: ../src/guestfs-actions.pod:6333
31056 msgid "guestfs_set_attach_method"
31057 msgstr ""
31058
31059 #. type: verbatim
31060 #: ../src/guestfs-actions.pod:6335
31061 #, no-wrap
31062 msgid ""
31063 " int\n"
31064 " guestfs_set_attach_method (guestfs_h *g,\n"
31065 "                            const char *attachmethod);\n"
31066 "\n"
31067 msgstr ""
31068
31069 #. type: =head2
31070 #: ../src/guestfs-actions.pod:6363
31071 msgid "guestfs_set_autosync"
31072 msgstr ""
31073
31074 #. type: verbatim
31075 #: ../src/guestfs-actions.pod:6365
31076 #, no-wrap
31077 msgid ""
31078 " int\n"
31079 " guestfs_set_autosync (guestfs_h *g,\n"
31080 "                       int autosync);\n"
31081 "\n"
31082 msgstr ""
31083
31084 #. type: =head2
31085 #: ../src/guestfs-actions.pod:6381
31086 msgid "guestfs_set_direct"
31087 msgstr ""
31088
31089 #. type: verbatim
31090 #: ../src/guestfs-actions.pod:6383
31091 #, no-wrap
31092 msgid ""
31093 " int\n"
31094 " guestfs_set_direct (guestfs_h *g,\n"
31095 "                     int direct);\n"
31096 "\n"
31097 msgstr ""
31098
31099 #. type: textblock
31100 #: ../src/guestfs-actions.pod:6391
31101 msgid ""
31102 "One consequence of this is that log messages aren't caught by the library "
31103 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31104 "stdout."
31105 msgstr ""
31106
31107 #. type: =head2
31108 #: ../src/guestfs-actions.pod:6404
31109 msgid "guestfs_set_e2label"
31110 msgstr ""
31111
31112 #. type: verbatim
31113 #: ../src/guestfs-actions.pod:6406
31114 #, no-wrap
31115 msgid ""
31116 " int\n"
31117 " guestfs_set_e2label (guestfs_h *g,\n"
31118 "                      const char *device,\n"
31119 "                      const char *label);\n"
31120 "\n"
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs-actions.pod:6415
31125 msgid ""
31126 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31127 "the existing label on a filesystem."
31128 msgstr ""
31129
31130 #. type: =head2
31131 #: ../src/guestfs-actions.pod:6422
31132 msgid "guestfs_set_e2uuid"
31133 msgstr ""
31134
31135 #. type: verbatim
31136 #: ../src/guestfs-actions.pod:6424
31137 #, no-wrap
31138 msgid ""
31139 " int\n"
31140 " guestfs_set_e2uuid (guestfs_h *g,\n"
31141 "                     const char *device,\n"
31142 "                     const char *uuid);\n"
31143 "\n"
31144 msgstr ""
31145
31146 #. type: textblock
31147 #: ../src/guestfs-actions.pod:6434
31148 msgid ""
31149 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31150 "the existing UUID of a filesystem."
31151 msgstr ""
31152
31153 #. type: =head2
31154 #: ../src/guestfs-actions.pod:6441
31155 msgid "guestfs_set_memsize"
31156 msgstr ""
31157
31158 #. type: verbatim
31159 #: ../src/guestfs-actions.pod:6443
31160 #, no-wrap
31161 msgid ""
31162 " int\n"
31163 " guestfs_set_memsize (guestfs_h *g,\n"
31164 "                      int memsize);\n"
31165 "\n"
31166 msgstr ""
31167
31168 #. type: textblock
31169 #: ../src/guestfs-actions.pod:6447
31170 msgid ""
31171 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31172 "This only has any effect if called before C<guestfs_launch>."
31173 msgstr ""
31174
31175 #. type: =head2
31176 #: ../src/guestfs-actions.pod:6462
31177 msgid "guestfs_set_network"
31178 msgstr ""
31179
31180 #. type: verbatim
31181 #: ../src/guestfs-actions.pod:6464
31182 #, no-wrap
31183 msgid ""
31184 " int\n"
31185 " guestfs_set_network (guestfs_h *g,\n"
31186 "                      int network);\n"
31187 "\n"
31188 msgstr ""
31189
31190 #. type: textblock
31191 #: ../src/guestfs-actions.pod:6474
31192 msgid ""
31193 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31194 "effect."
31195 msgstr ""
31196
31197 #. type: =head2
31198 #: ../src/guestfs-actions.pod:6481
31199 msgid "guestfs_set_path"
31200 msgstr ""
31201
31202 #. type: verbatim
31203 #: ../src/guestfs-actions.pod:6483
31204 #, no-wrap
31205 msgid ""
31206 " int\n"
31207 " guestfs_set_path (guestfs_h *g,\n"
31208 "                   const char *searchpath);\n"
31209 "\n"
31210 msgstr ""
31211
31212 #. type: =head2
31213 #: ../src/guestfs-actions.pod:6498
31214 msgid "guestfs_set_pgroup"
31215 msgstr ""
31216
31217 #. type: verbatim
31218 #: ../src/guestfs-actions.pod:6500
31219 #, no-wrap
31220 msgid ""
31221 " int\n"
31222 " guestfs_set_pgroup (guestfs_h *g,\n"
31223 "                     int pgroup);\n"
31224 "\n"
31225 msgstr ""
31226
31227 #. type: =head2
31228 #: ../src/guestfs-actions.pod:6517
31229 msgid "guestfs_set_qemu"
31230 msgstr ""
31231
31232 #. type: verbatim
31233 #: ../src/guestfs-actions.pod:6519
31234 #, no-wrap
31235 msgid ""
31236 " int\n"
31237 " guestfs_set_qemu (guestfs_h *g,\n"
31238 "                   const char *qemu);\n"
31239 "\n"
31240 msgstr ""
31241
31242 #. type: =head2
31243 #: ../src/guestfs-actions.pod:6545
31244 msgid "guestfs_set_recovery_proc"
31245 msgstr ""
31246
31247 #. type: verbatim
31248 #: ../src/guestfs-actions.pod:6547
31249 #, no-wrap
31250 msgid ""
31251 " int\n"
31252 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31253 "                            int recoveryproc);\n"
31254 "\n"
31255 msgstr ""
31256
31257 #. type: textblock
31258 #: ../src/guestfs-actions.pod:6551
31259 msgid ""
31260 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31261 "not create a recovery process.  The purpose of the recovery process is to "
31262 "stop runaway qemu processes in the case where the main program aborts "
31263 "abruptly."
31264 msgstr ""
31265
31266 #. type: textblock
31267 #: ../src/guestfs-actions.pod:6556
31268 msgid ""
31269 "This only has any effect if called before C<guestfs_launch>, and the default "
31270 "is true."
31271 msgstr ""
31272
31273 #. type: =head2
31274 #: ../src/guestfs-actions.pod:6569
31275 msgid "guestfs_set_selinux"
31276 msgstr ""
31277
31278 #. type: verbatim
31279 #: ../src/guestfs-actions.pod:6571
31280 #, no-wrap
31281 msgid ""
31282 " int\n"
31283 " guestfs_set_selinux (guestfs_h *g,\n"
31284 "                      int selinux);\n"
31285 "\n"
31286 msgstr ""
31287
31288 #. type: =head2
31289 #: ../src/guestfs-actions.pod:6588
31290 msgid "guestfs_set_smp"
31291 msgstr ""
31292
31293 #. type: verbatim
31294 #: ../src/guestfs-actions.pod:6590
31295 #, no-wrap
31296 msgid ""
31297 " int\n"
31298 " guestfs_set_smp (guestfs_h *g,\n"
31299 "                  int smp);\n"
31300 "\n"
31301 msgstr ""
31302
31303 #. type: textblock
31304 #: ../src/guestfs-actions.pod:6598
31305 msgid "This function must be called before C<guestfs_launch>."
31306 msgstr ""
31307
31308 #. type: =head2
31309 #: ../src/guestfs-actions.pod:6604
31310 msgid "guestfs_set_trace"
31311 msgstr ""
31312
31313 #. type: verbatim
31314 #: ../src/guestfs-actions.pod:6606
31315 #, no-wrap
31316 msgid ""
31317 " int\n"
31318 " guestfs_set_trace (guestfs_h *g,\n"
31319 "                    int trace);\n"
31320 "\n"
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs-actions.pod:6620
31325 msgid ""
31326 "Trace messages are normally sent to C<stderr>, unless you register a "
31327 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31328 msgstr ""
31329
31330 #. type: =head2
31331 #: ../src/guestfs-actions.pod:6628
31332 msgid "guestfs_set_verbose"
31333 msgstr ""
31334
31335 #. type: verbatim
31336 #: ../src/guestfs-actions.pod:6630
31337 #, no-wrap
31338 msgid ""
31339 " int\n"
31340 " guestfs_set_verbose (guestfs_h *g,\n"
31341 "                      int verbose);\n"
31342 "\n"
31343 msgstr ""
31344
31345 #. type: textblock
31346 #: ../src/guestfs-actions.pod:6639
31347 msgid ""
31348 "Verbose messages are normally sent to C<stderr>, unless you register a "
31349 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31350 msgstr ""
31351
31352 #. type: =head2
31353 #: ../src/guestfs-actions.pod:6647
31354 msgid "guestfs_setcon"
31355 msgstr ""
31356
31357 #. type: verbatim
31358 #: ../src/guestfs-actions.pod:6649
31359 #, no-wrap
31360 msgid ""
31361 " int\n"
31362 " guestfs_setcon (guestfs_h *g,\n"
31363 "                 const char *context);\n"
31364 "\n"
31365 msgstr ""
31366
31367 #. type: =head2
31368 #: ../src/guestfs-actions.pod:6662
31369 msgid "guestfs_setxattr"
31370 msgstr ""
31371
31372 #. type: verbatim
31373 #: ../src/guestfs-actions.pod:6664
31374 #, no-wrap
31375 msgid ""
31376 " int\n"
31377 " guestfs_setxattr (guestfs_h *g,\n"
31378 "                   const char *xattr,\n"
31379 "                   const char *val,\n"
31380 "                   int vallen,\n"
31381 "                   const char *path);\n"
31382 "\n"
31383 msgstr ""
31384
31385 #. type: textblock
31386 #: ../src/guestfs-actions.pod:6675
31387 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31388 msgstr ""
31389
31390 #. type: =head2
31391 #: ../src/guestfs-actions.pod:6681
31392 msgid "guestfs_sfdisk"
31393 msgstr ""
31394
31395 #. type: verbatim
31396 #: ../src/guestfs-actions.pod:6683
31397 #, no-wrap
31398 msgid ""
31399 " int\n"
31400 " guestfs_sfdisk (guestfs_h *g,\n"
31401 "                 const char *device,\n"
31402 "                 int cyls,\n"
31403 "                 int heads,\n"
31404 "                 int sectors,\n"
31405 "                 char *const *lines);\n"
31406 "\n"
31407 msgstr ""
31408
31409 #. type: textblock
31410 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
31411 #: ../src/guestfs-actions.pod:6769
31412 msgid ""
31413 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31414 "call instead."
31415 msgstr ""
31416
31417 #. type: textblock
31418 #: ../src/guestfs-actions.pod:6718
31419 msgid ""
31420 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31421 msgstr ""
31422
31423 #. type: =head2
31424 #: ../src/guestfs-actions.pod:6728
31425 msgid "guestfs_sfdiskM"
31426 msgstr ""
31427
31428 #. type: verbatim
31429 #: ../src/guestfs-actions.pod:6730
31430 #, no-wrap
31431 msgid ""
31432 " int\n"
31433 " guestfs_sfdiskM (guestfs_h *g,\n"
31434 "                  const char *device,\n"
31435 "                  char *const *lines);\n"
31436 "\n"
31437 msgstr ""
31438
31439 #. type: textblock
31440 #: ../src/guestfs-actions.pod:6742
31441 msgid ""
31442 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31443 "partition sizes are specified in megabytes only (rounded to the nearest "
31444 "cylinder) and you don't need to specify the cyls, heads and sectors "
31445 "parameters which were rarely if ever used anyway."
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs-actions.pod:6748
31450 msgid ""
31451 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31452 "C<guestfs_part_disk>"
31453 msgstr ""
31454
31455 #. type: =head2
31456 #: ../src/guestfs-actions.pod:6758
31457 msgid "guestfs_sfdisk_N"
31458 msgstr ""
31459
31460 #. type: verbatim
31461 #: ../src/guestfs-actions.pod:6760
31462 #, no-wrap
31463 msgid ""
31464 " int\n"
31465 " guestfs_sfdisk_N (guestfs_h *g,\n"
31466 "                   const char *device,\n"
31467 "                   int partnum,\n"
31468 "                   int cyls,\n"
31469 "                   int heads,\n"
31470 "                   int sectors,\n"
31471 "                   const char *line);\n"
31472 "\n"
31473 msgstr ""
31474
31475 #. type: textblock
31476 #: ../src/guestfs-actions.pod:6779
31477 msgid ""
31478 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31479 "for the cyls/heads/sectors parameters."
31480 msgstr ""
31481
31482 #. type: textblock
31483 #: ../src/guestfs-actions.pod:6782
31484 msgid "See also: C<guestfs_part_add>"
31485 msgstr ""
31486
31487 #. type: =head2
31488 #: ../src/guestfs-actions.pod:6791
31489 msgid "guestfs_sfdisk_disk_geometry"
31490 msgstr ""
31491
31492 #. type: verbatim
31493 #: ../src/guestfs-actions.pod:6793
31494 #, no-wrap
31495 msgid ""
31496 " char *\n"
31497 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31498 "                               const char *device);\n"
31499 "\n"
31500 msgstr ""
31501
31502 #. type: textblock
31503 #: ../src/guestfs-actions.pod:6797
31504 msgid ""
31505 "This displays the disk geometry of C<device> read from the partition table.  "
31506 "Especially in the case where the underlying block device has been resized, "
31507 "this can be different from the kernel's idea of the geometry (see "
31508 "C<guestfs_sfdisk_kernel_geometry>)."
31509 msgstr ""
31510
31511 #. type: =head2
31512 #: ../src/guestfs-actions.pod:6810
31513 msgid "guestfs_sfdisk_kernel_geometry"
31514 msgstr ""
31515
31516 #. type: verbatim
31517 #: ../src/guestfs-actions.pod:6812
31518 #, no-wrap
31519 msgid ""
31520 " char *\n"
31521 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31522 "                                 const char *device);\n"
31523 "\n"
31524 msgstr ""
31525
31526 #. type: =head2
31527 #: ../src/guestfs-actions.pod:6826
31528 msgid "guestfs_sfdisk_l"
31529 msgstr ""
31530
31531 #. type: verbatim
31532 #: ../src/guestfs-actions.pod:6828
31533 #, no-wrap
31534 msgid ""
31535 " char *\n"
31536 " guestfs_sfdisk_l (guestfs_h *g,\n"
31537 "                   const char *device);\n"
31538 "\n"
31539 msgstr ""
31540
31541 #. type: textblock
31542 #: ../src/guestfs-actions.pod:6832
31543 msgid ""
31544 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31545 "call instead."
31546 msgstr ""
31547
31548 #. type: textblock
31549 #: ../src/guestfs-actions.pod:6843
31550 msgid "See also: C<guestfs_part_list>"
31551 msgstr ""
31552
31553 #. type: =head2
31554 #: ../src/guestfs-actions.pod:6850
31555 msgid "guestfs_sh"
31556 msgstr ""
31557
31558 #. type: verbatim
31559 #: ../src/guestfs-actions.pod:6852
31560 #, no-wrap
31561 msgid ""
31562 " char *\n"
31563 " guestfs_sh (guestfs_h *g,\n"
31564 "             const char *command);\n"
31565 "\n"
31566 msgstr ""
31567
31568 #. type: textblock
31569 #: ../src/guestfs-actions.pod:6859
31570 msgid "This is like C<guestfs_command>, but passes the command to:"
31571 msgstr ""
31572
31573 #. type: textblock
31574 #: ../src/guestfs-actions.pod:6867
31575 msgid "All the provisos about C<guestfs_command> apply to this call."
31576 msgstr ""
31577
31578 #. type: =head2
31579 #: ../src/guestfs-actions.pod:6874
31580 msgid "guestfs_sh_lines"
31581 msgstr ""
31582
31583 #. type: verbatim
31584 #: ../src/guestfs-actions.pod:6876
31585 #, no-wrap
31586 msgid ""
31587 " char **\n"
31588 " guestfs_sh_lines (guestfs_h *g,\n"
31589 "                   const char *command);\n"
31590 "\n"
31591 msgstr ""
31592
31593 #. type: textblock
31594 #: ../src/guestfs-actions.pod:6880
31595 msgid ""
31596 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31597 "lines."
31598 msgstr ""
31599
31600 #. type: textblock
31601 #: ../src/guestfs-actions.pod:6883
31602 msgid "See also: C<guestfs_command_lines>"
31603 msgstr ""
31604
31605 #. type: =head2
31606 #: ../src/guestfs-actions.pod:6891
31607 msgid "guestfs_sleep"
31608 msgstr ""
31609
31610 #. type: verbatim
31611 #: ../src/guestfs-actions.pod:6893
31612 #, no-wrap
31613 msgid ""
31614 " int\n"
31615 " guestfs_sleep (guestfs_h *g,\n"
31616 "                int secs);\n"
31617 "\n"
31618 msgstr ""
31619
31620 #. type: textblock
31621 #: ../src/guestfs-actions.pod:6901
31622 msgid "(Added in 1.0.41)"
31623 msgstr ""
31624
31625 #. type: =head2
31626 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
31627 msgid "guestfs_stat"
31628 msgstr ""
31629
31630 #. type: verbatim
31631 #: ../src/guestfs-actions.pod:6905
31632 #, no-wrap
31633 msgid ""
31634 " struct guestfs_stat *\n"
31635 " guestfs_stat (guestfs_h *g,\n"
31636 "               const char *path);\n"
31637 "\n"
31638 msgstr ""
31639
31640 #. type: =head2
31641 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
31642 msgid "guestfs_statvfs"
31643 msgstr ""
31644
31645 #. type: verbatim
31646 #: ../src/guestfs-actions.pod:6921
31647 #, no-wrap
31648 msgid ""
31649 " struct guestfs_statvfs *\n"
31650 " guestfs_statvfs (guestfs_h *g,\n"
31651 "                  const char *path);\n"
31652 "\n"
31653 msgstr ""
31654
31655 #. type: textblock
31656 #: ../src/guestfs-actions.pod:6931
31657 msgid ""
31658 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31659 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31660 msgstr ""
31661
31662 #. type: =head2
31663 #: ../src/guestfs-actions.pod:6937
31664 msgid "guestfs_strings"
31665 msgstr ""
31666
31667 #. type: verbatim
31668 #: ../src/guestfs-actions.pod:6939
31669 #, no-wrap
31670 msgid ""
31671 " char **\n"
31672 " guestfs_strings (guestfs_h *g,\n"
31673 "                  const char *path);\n"
31674 "\n"
31675 msgstr ""
31676
31677 #. type: =head2
31678 #: ../src/guestfs-actions.pod:6955
31679 msgid "guestfs_strings_e"
31680 msgstr ""
31681
31682 #. type: verbatim
31683 #: ../src/guestfs-actions.pod:6957
31684 #, no-wrap
31685 msgid ""
31686 " char **\n"
31687 " guestfs_strings_e (guestfs_h *g,\n"
31688 "                    const char *encoding,\n"
31689 "                    const char *path);\n"
31690 "\n"
31691 msgstr ""
31692
31693 #. type: textblock
31694 #: ../src/guestfs-actions.pod:6962
31695 msgid ""
31696 "This is like the C<guestfs_strings> command, but allows you to specify the "
31697 "encoding of strings that are looked for in the source file C<path>."
31698 msgstr ""
31699
31700 #. type: textblock
31701 #: ../src/guestfs-actions.pod:6972
31702 msgid ""
31703 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31704 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31705 msgstr ""
31706
31707 #. type: =head2
31708 #: ../src/guestfs-actions.pod:7010
31709 msgid "guestfs_swapoff_device"
31710 msgstr ""
31711
31712 #. type: verbatim
31713 #: ../src/guestfs-actions.pod:7012
31714 #, no-wrap
31715 msgid ""
31716 " int\n"
31717 " guestfs_swapoff_device (guestfs_h *g,\n"
31718 "                         const char *device);\n"
31719 "\n"
31720 msgstr ""
31721
31722 #. type: textblock
31723 #: ../src/guestfs-actions.pod:7016
31724 msgid ""
31725 "This command disables the libguestfs appliance swap device or partition "
31726 "named C<device>.  See C<guestfs_swapon_device>."
31727 msgstr ""
31728
31729 #. type: =head2
31730 #: ../src/guestfs-actions.pod:7024
31731 msgid "guestfs_swapoff_file"
31732 msgstr ""
31733
31734 #. type: verbatim
31735 #: ../src/guestfs-actions.pod:7026
31736 #, no-wrap
31737 msgid ""
31738 " int\n"
31739 " guestfs_swapoff_file (guestfs_h *g,\n"
31740 "                       const char *file);\n"
31741 "\n"
31742 msgstr ""
31743
31744 #. type: =head2
31745 #: ../src/guestfs-actions.pod:7036
31746 msgid "guestfs_swapoff_label"
31747 msgstr ""
31748
31749 #. type: verbatim
31750 #: ../src/guestfs-actions.pod:7038
31751 #, no-wrap
31752 msgid ""
31753 " int\n"
31754 " guestfs_swapoff_label (guestfs_h *g,\n"
31755 "                        const char *label);\n"
31756 "\n"
31757 msgstr ""
31758
31759 #. type: =head2
31760 #: ../src/guestfs-actions.pod:7049
31761 msgid "guestfs_swapoff_uuid"
31762 msgstr ""
31763
31764 #. type: verbatim
31765 #: ../src/guestfs-actions.pod:7051
31766 #, no-wrap
31767 msgid ""
31768 " int\n"
31769 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31770 "                       const char *uuid);\n"
31771 "\n"
31772 msgstr ""
31773
31774 #. type: =head2
31775 #: ../src/guestfs-actions.pod:7062
31776 msgid "guestfs_swapon_device"
31777 msgstr ""
31778
31779 #. type: verbatim
31780 #: ../src/guestfs-actions.pod:7064
31781 #, no-wrap
31782 msgid ""
31783 " int\n"
31784 " guestfs_swapon_device (guestfs_h *g,\n"
31785 "                        const char *device);\n"
31786 "\n"
31787 msgstr ""
31788
31789 #. type: textblock
31790 #: ../src/guestfs-actions.pod:7068
31791 msgid ""
31792 "This command enables the libguestfs appliance to use the swap device or "
31793 "partition named C<device>.  The increased memory is made available for all "
31794 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31795 msgstr ""
31796
31797 #. type: =head2
31798 #: ../src/guestfs-actions.pod:7084
31799 msgid "guestfs_swapon_file"
31800 msgstr ""
31801
31802 #. type: verbatim
31803 #: ../src/guestfs-actions.pod:7086
31804 #, no-wrap
31805 msgid ""
31806 " int\n"
31807 " guestfs_swapon_file (guestfs_h *g,\n"
31808 "                      const char *file);\n"
31809 "\n"
31810 msgstr ""
31811
31812 #. type: textblock
31813 #: ../src/guestfs-actions.pod:7090
31814 msgid ""
31815 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31816 "notes."
31817 msgstr ""
31818
31819 #. type: =head2
31820 #: ../src/guestfs-actions.pod:7097
31821 msgid "guestfs_swapon_label"
31822 msgstr ""
31823
31824 #. type: verbatim
31825 #: ../src/guestfs-actions.pod:7099
31826 #, no-wrap
31827 msgid ""
31828 " int\n"
31829 " guestfs_swapon_label (guestfs_h *g,\n"
31830 "                       const char *label);\n"
31831 "\n"
31832 msgstr ""
31833
31834 #. type: textblock
31835 #: ../src/guestfs-actions.pod:7103
31836 msgid ""
31837 "This command enables swap to a labeled swap partition.  See "
31838 "C<guestfs_swapon_device> for other notes."
31839 msgstr ""
31840
31841 #. type: =head2
31842 #: ../src/guestfs-actions.pod:7110
31843 msgid "guestfs_swapon_uuid"
31844 msgstr ""
31845
31846 #. type: verbatim
31847 #: ../src/guestfs-actions.pod:7112
31848 #, no-wrap
31849 msgid ""
31850 " int\n"
31851 " guestfs_swapon_uuid (guestfs_h *g,\n"
31852 "                      const char *uuid);\n"
31853 "\n"
31854 msgstr ""
31855
31856 #. type: textblock
31857 #: ../src/guestfs-actions.pod:7116
31858 msgid ""
31859 "This command enables swap to a swap partition with the given UUID.  See "
31860 "C<guestfs_swapon_device> for other notes."
31861 msgstr ""
31862
31863 #. type: =head2
31864 #: ../src/guestfs-actions.pod:7123
31865 msgid "guestfs_sync"
31866 msgstr ""
31867
31868 #. type: verbatim
31869 #: ../src/guestfs-actions.pod:7125
31870 #, no-wrap
31871 msgid ""
31872 " int\n"
31873 " guestfs_sync (guestfs_h *g);\n"
31874 "\n"
31875 msgstr ""
31876
31877 #. type: =head2
31878 #: ../src/guestfs-actions.pod:7138
31879 msgid "guestfs_tail"
31880 msgstr ""
31881
31882 #. type: verbatim
31883 #: ../src/guestfs-actions.pod:7140
31884 #, no-wrap
31885 msgid ""
31886 " char **\n"
31887 " guestfs_tail (guestfs_h *g,\n"
31888 "               const char *path);\n"
31889 "\n"
31890 msgstr ""
31891
31892 #. type: =head2
31893 #: ../src/guestfs-actions.pod:7156
31894 msgid "guestfs_tail_n"
31895 msgstr ""
31896
31897 #. type: verbatim
31898 #: ../src/guestfs-actions.pod:7158
31899 #, no-wrap
31900 msgid ""
31901 " char **\n"
31902 " guestfs_tail_n (guestfs_h *g,\n"
31903 "                 int nrlines,\n"
31904 "                 const char *path);\n"
31905 "\n"
31906 msgstr ""
31907
31908 #. type: =head2
31909 #: ../src/guestfs-actions.pod:7180
31910 msgid "guestfs_tar_in"
31911 msgstr ""
31912
31913 #. type: verbatim
31914 #: ../src/guestfs-actions.pod:7182
31915 #, no-wrap
31916 msgid ""
31917 " int\n"
31918 " guestfs_tar_in (guestfs_h *g,\n"
31919 "                 const char *tarfile,\n"
31920 "                 const char *directory);\n"
31921 "\n"
31922 msgstr ""
31923
31924 #. type: textblock
31925 #: ../src/guestfs-actions.pod:7190
31926 msgid ""
31927 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31928 msgstr ""
31929
31930 #. type: textblock
31931 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
31932 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
31933 msgid "(Added in 1.0.3)"
31934 msgstr ""
31935
31936 #. type: =head2
31937 #: ../src/guestfs-actions.pod:7197
31938 msgid "guestfs_tar_out"
31939 msgstr ""
31940
31941 #. type: verbatim
31942 #: ../src/guestfs-actions.pod:7199
31943 #, no-wrap
31944 msgid ""
31945 " int\n"
31946 " guestfs_tar_out (guestfs_h *g,\n"
31947 "                  const char *directory,\n"
31948 "                  const char *tarfile);\n"
31949 "\n"
31950 msgstr ""
31951
31952 #. type: textblock
31953 #: ../src/guestfs-actions.pod:7207
31954 msgid ""
31955 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31956 "C<guestfs_txz_out>."
31957 msgstr ""
31958
31959 #. type: =head2
31960 #: ../src/guestfs-actions.pod:7214
31961 msgid "guestfs_tgz_in"
31962 msgstr ""
31963
31964 #. type: verbatim
31965 #: ../src/guestfs-actions.pod:7216
31966 #, no-wrap
31967 msgid ""
31968 " int\n"
31969 " guestfs_tgz_in (guestfs_h *g,\n"
31970 "                 const char *tarball,\n"
31971 "                 const char *directory);\n"
31972 "\n"
31973 msgstr ""
31974
31975 #. type: textblock
31976 #: ../src/guestfs-actions.pod:7224
31977 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31978 msgstr ""
31979
31980 #. type: =head2
31981 #: ../src/guestfs-actions.pod:7230
31982 msgid "guestfs_tgz_out"
31983 msgstr ""
31984
31985 #. type: verbatim
31986 #: ../src/guestfs-actions.pod:7232
31987 #, no-wrap
31988 msgid ""
31989 " int\n"
31990 " guestfs_tgz_out (guestfs_h *g,\n"
31991 "                  const char *directory,\n"
31992 "                  const char *tarball);\n"
31993 "\n"
31994 msgstr ""
31995
31996 #. type: textblock
31997 #: ../src/guestfs-actions.pod:7240
31998 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31999 msgstr ""
32000
32001 #. type: =head2
32002 #: ../src/guestfs-actions.pod:7246
32003 msgid "guestfs_touch"
32004 msgstr ""
32005
32006 #. type: verbatim
32007 #: ../src/guestfs-actions.pod:7248
32008 #, no-wrap
32009 msgid ""
32010 " int\n"
32011 " guestfs_touch (guestfs_h *g,\n"
32012 "                const char *path);\n"
32013 "\n"
32014 msgstr ""
32015
32016 #. type: =head2
32017 #: ../src/guestfs-actions.pod:7263
32018 msgid "guestfs_truncate"
32019 msgstr ""
32020
32021 #. type: verbatim
32022 #: ../src/guestfs-actions.pod:7265
32023 #, no-wrap
32024 msgid ""
32025 " int\n"
32026 " guestfs_truncate (guestfs_h *g,\n"
32027 "                   const char *path);\n"
32028 "\n"
32029 msgstr ""
32030
32031 #. type: =head2
32032 #: ../src/guestfs-actions.pod:7276
32033 msgid "guestfs_truncate_size"
32034 msgstr ""
32035
32036 #. type: verbatim
32037 #: ../src/guestfs-actions.pod:7278
32038 #, no-wrap
32039 msgid ""
32040 " int\n"
32041 " guestfs_truncate_size (guestfs_h *g,\n"
32042 "                        const char *path,\n"
32043 "                        int64_t size);\n"
32044 "\n"
32045 msgstr ""
32046
32047 #. type: textblock
32048 #: ../src/guestfs-actions.pod:7286
32049 msgid ""
32050 "If the current file size is less than C<size> then the file is extended to "
32051 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32052 "blocks are not allocated for the file until you write to it).  To create a "
32053 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32054 msgstr ""
32055
32056 #. type: =head2
32057 #: ../src/guestfs-actions.pod:7296
32058 msgid "guestfs_tune2fs_l"
32059 msgstr ""
32060
32061 #. type: verbatim
32062 #: ../src/guestfs-actions.pod:7298
32063 #, no-wrap
32064 msgid ""
32065 " char **\n"
32066 " guestfs_tune2fs_l (guestfs_h *g,\n"
32067 "                    const char *device);\n"
32068 "\n"
32069 msgstr ""
32070
32071 #. type: =head2
32072 #: ../src/guestfs-actions.pod:7318
32073 msgid "guestfs_txz_in"
32074 msgstr ""
32075
32076 #. type: verbatim
32077 #: ../src/guestfs-actions.pod:7320
32078 #, no-wrap
32079 msgid ""
32080 " int\n"
32081 " guestfs_txz_in (guestfs_h *g,\n"
32082 "                 const char *tarball,\n"
32083 "                 const char *directory);\n"
32084 "\n"
32085 msgstr ""
32086
32087 #. type: =head2
32088 #: ../src/guestfs-actions.pod:7332
32089 msgid "guestfs_txz_out"
32090 msgstr ""
32091
32092 #. type: verbatim
32093 #: ../src/guestfs-actions.pod:7334
32094 #, no-wrap
32095 msgid ""
32096 " int\n"
32097 " guestfs_txz_out (guestfs_h *g,\n"
32098 "                  const char *directory,\n"
32099 "                  const char *tarball);\n"
32100 "\n"
32101 msgstr ""
32102
32103 #. type: =head2
32104 #: ../src/guestfs-actions.pod:7346
32105 msgid "guestfs_umask"
32106 msgstr ""
32107
32108 #. type: verbatim
32109 #: ../src/guestfs-actions.pod:7348
32110 #, no-wrap
32111 msgid ""
32112 " int\n"
32113 " guestfs_umask (guestfs_h *g,\n"
32114 "                int mask);\n"
32115 "\n"
32116 msgstr ""
32117
32118 #. type: textblock
32119 #: ../src/guestfs-actions.pod:7364
32120 msgid ""
32121 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32122 "C<guestfs_mkdir>."
32123 msgstr ""
32124
32125 #. type: =head2
32126 #: ../src/guestfs-actions.pod:7373
32127 msgid "guestfs_umount"
32128 msgstr ""
32129
32130 #. type: verbatim
32131 #: ../src/guestfs-actions.pod:7375
32132 #, no-wrap
32133 msgid ""
32134 " int\n"
32135 " guestfs_umount (guestfs_h *g,\n"
32136 "                 const char *pathordevice);\n"
32137 "\n"
32138 msgstr ""
32139
32140 #. type: =head2
32141 #: ../src/guestfs-actions.pod:7387
32142 msgid "guestfs_umount_all"
32143 msgstr ""
32144
32145 #. type: verbatim
32146 #: ../src/guestfs-actions.pod:7389
32147 #, no-wrap
32148 msgid ""
32149 " int\n"
32150 " guestfs_umount_all (guestfs_h *g);\n"
32151 "\n"
32152 msgstr ""
32153
32154 #. type: =head2
32155 #: ../src/guestfs-actions.pod:7400
32156 msgid "guestfs_upload"
32157 msgstr ""
32158
32159 #. type: verbatim
32160 #: ../src/guestfs-actions.pod:7402
32161 #, no-wrap
32162 msgid ""
32163 " int\n"
32164 " guestfs_upload (guestfs_h *g,\n"
32165 "                 const char *filename,\n"
32166 "                 const char *remotefilename);\n"
32167 "\n"
32168 msgstr ""
32169
32170 #. type: textblock
32171 #: ../src/guestfs-actions.pod:7412
32172 msgid "See also C<guestfs_download>."
32173 msgstr ""
32174
32175 #. type: =head2
32176 #: ../src/guestfs-actions.pod:7423
32177 msgid "guestfs_upload_offset"
32178 msgstr ""
32179
32180 #. type: verbatim
32181 #: ../src/guestfs-actions.pod:7425
32182 #, no-wrap
32183 msgid ""
32184 " int\n"
32185 " guestfs_upload_offset (guestfs_h *g,\n"
32186 "                        const char *filename,\n"
32187 "                        const char *remotefilename,\n"
32188 "                        int64_t offset);\n"
32189 "\n"
32190 msgstr ""
32191
32192 #. type: textblock
32193 #: ../src/guestfs-actions.pod:7441
32194 msgid ""
32195 "Note that there is no limit on the amount of data that can be uploaded with "
32196 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32197 "full amount unless an error occurs."
32198 msgstr ""
32199
32200 #. type: textblock
32201 #: ../src/guestfs-actions.pod:7446
32202 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32203 msgstr ""
32204
32205 #. type: =head2
32206 #: ../src/guestfs-actions.pod:7457
32207 msgid "guestfs_utimens"
32208 msgstr ""
32209
32210 #. type: verbatim
32211 #: ../src/guestfs-actions.pod:7459
32212 #, no-wrap
32213 msgid ""
32214 " int\n"
32215 " guestfs_utimens (guestfs_h *g,\n"
32216 "                  const char *path,\n"
32217 "                  int64_t atsecs,\n"
32218 "                  int64_t atnsecs,\n"
32219 "                  int64_t mtsecs,\n"
32220 "                  int64_t mtnsecs);\n"
32221 "\n"
32222 msgstr ""
32223
32224 #. type: =head2
32225 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
32226 msgid "guestfs_version"
32227 msgstr ""
32228
32229 #. type: verbatim
32230 #: ../src/guestfs-actions.pod:7490
32231 #, no-wrap
32232 msgid ""
32233 " struct guestfs_version *\n"
32234 " guestfs_version (guestfs_h *g);\n"
32235 "\n"
32236 msgstr ""
32237
32238 #. type: textblock
32239 #: ../src/guestfs-actions.pod:7518
32240 msgid ""
32241 "I<Note:> Don't use this call to test for availability of features.  In "
32242 "enterprise distributions we backport features from later versions into "
32243 "earlier versions, making this an unreliable way to test for features.  Use "
32244 "C<guestfs_available> instead."
32245 msgstr ""
32246
32247 #. type: textblock
32248 #: ../src/guestfs-actions.pod:7524
32249 msgid ""
32250 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32251 "error.  I<The caller must call C<guestfs_free_version> after use>."
32252 msgstr ""
32253
32254 #. type: textblock
32255 #: ../src/guestfs-actions.pod:7528
32256 msgid "(Added in 1.0.58)"
32257 msgstr ""
32258
32259 #. type: =head2
32260 #: ../src/guestfs-actions.pod:7530
32261 msgid "guestfs_vfs_label"
32262 msgstr ""
32263
32264 #. type: verbatim
32265 #: ../src/guestfs-actions.pod:7532
32266 #, no-wrap
32267 msgid ""
32268 " char *\n"
32269 " guestfs_vfs_label (guestfs_h *g,\n"
32270 "                    const char *device);\n"
32271 "\n"
32272 msgstr ""
32273
32274 #. type: textblock
32275 #: ../src/guestfs-actions.pod:7541
32276 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32277 msgstr ""
32278
32279 #. type: textblock
32280 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
32281 msgid "(Added in 1.3.18)"
32282 msgstr ""
32283
32284 #. type: =head2
32285 #: ../src/guestfs-actions.pod:7548
32286 msgid "guestfs_vfs_type"
32287 msgstr ""
32288
32289 #. type: verbatim
32290 #: ../src/guestfs-actions.pod:7550
32291 #, no-wrap
32292 msgid ""
32293 " char *\n"
32294 " guestfs_vfs_type (guestfs_h *g,\n"
32295 "                   const char *device);\n"
32296 "\n"
32297 msgstr ""
32298
32299 #. type: =head2
32300 #: ../src/guestfs-actions.pod:7567
32301 msgid "guestfs_vfs_uuid"
32302 msgstr ""
32303
32304 #. type: verbatim
32305 #: ../src/guestfs-actions.pod:7569
32306 #, no-wrap
32307 msgid ""
32308 " char *\n"
32309 " guestfs_vfs_uuid (guestfs_h *g,\n"
32310 "                   const char *device);\n"
32311 "\n"
32312 msgstr ""
32313
32314 #. type: textblock
32315 #: ../src/guestfs-actions.pod:7578
32316 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32317 msgstr ""
32318
32319 #. type: =head2
32320 #: ../src/guestfs-actions.pod:7585
32321 msgid "guestfs_vg_activate"
32322 msgstr ""
32323
32324 #. type: verbatim
32325 #: ../src/guestfs-actions.pod:7587
32326 #, no-wrap
32327 msgid ""
32328 " int\n"
32329 " guestfs_vg_activate (guestfs_h *g,\n"
32330 "                      int activate,\n"
32331 "                      char *const *volgroups);\n"
32332 "\n"
32333 msgstr ""
32334
32335 #. type: =head2
32336 #: ../src/guestfs-actions.pod:7604
32337 msgid "guestfs_vg_activate_all"
32338 msgstr ""
32339
32340 #. type: verbatim
32341 #: ../src/guestfs-actions.pod:7606
32342 #, no-wrap
32343 msgid ""
32344 " int\n"
32345 " guestfs_vg_activate_all (guestfs_h *g,\n"
32346 "                          int activate);\n"
32347 "\n"
32348 msgstr ""
32349
32350 #. type: =head2
32351 #: ../src/guestfs-actions.pod:7619
32352 msgid "guestfs_vgcreate"
32353 msgstr ""
32354
32355 #. type: verbatim
32356 #: ../src/guestfs-actions.pod:7621
32357 #, no-wrap
32358 msgid ""
32359 " int\n"
32360 " guestfs_vgcreate (guestfs_h *g,\n"
32361 "                   const char *volgroup,\n"
32362 "                   char *const *physvols);\n"
32363 "\n"
32364 msgstr ""
32365
32366 #. type: =head2
32367 #: ../src/guestfs-actions.pod:7633
32368 msgid "guestfs_vglvuuids"
32369 msgstr ""
32370
32371 #. type: verbatim
32372 #: ../src/guestfs-actions.pod:7635
32373 #, no-wrap
32374 msgid ""
32375 " char **\n"
32376 " guestfs_vglvuuids (guestfs_h *g,\n"
32377 "                    const char *vgname);\n"
32378 "\n"
32379 msgstr ""
32380
32381 #. type: textblock
32382 #: ../src/guestfs-actions.pod:7642
32383 msgid ""
32384 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32385 "associate logical volumes and volume groups."
32386 msgstr ""
32387
32388 #. type: textblock
32389 #: ../src/guestfs-actions.pod:7645
32390 msgid "See also C<guestfs_vgpvuuids>."
32391 msgstr ""
32392
32393 #. type: =head2
32394 #: ../src/guestfs-actions.pod:7653
32395 msgid "guestfs_vgpvuuids"
32396 msgstr ""
32397
32398 #. type: verbatim
32399 #: ../src/guestfs-actions.pod:7655
32400 #, no-wrap
32401 msgid ""
32402 " char **\n"
32403 " guestfs_vgpvuuids (guestfs_h *g,\n"
32404 "                    const char *vgname);\n"
32405 "\n"
32406 msgstr ""
32407
32408 #. type: textblock
32409 #: ../src/guestfs-actions.pod:7662
32410 msgid ""
32411 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32412 "associate physical volumes and volume groups."
32413 msgstr ""
32414
32415 #. type: textblock
32416 #: ../src/guestfs-actions.pod:7665
32417 msgid "See also C<guestfs_vglvuuids>."
32418 msgstr ""
32419
32420 #. type: =head2
32421 #: ../src/guestfs-actions.pod:7673
32422 msgid "guestfs_vgremove"
32423 msgstr ""
32424
32425 #. type: verbatim
32426 #: ../src/guestfs-actions.pod:7675
32427 #, no-wrap
32428 msgid ""
32429 " int\n"
32430 " guestfs_vgremove (guestfs_h *g,\n"
32431 "                   const char *vgname);\n"
32432 "\n"
32433 msgstr ""
32434
32435 #. type: =head2
32436 #: ../src/guestfs-actions.pod:7688
32437 msgid "guestfs_vgrename"
32438 msgstr ""
32439
32440 #. type: verbatim
32441 #: ../src/guestfs-actions.pod:7690
32442 #, no-wrap
32443 msgid ""
32444 " int\n"
32445 " guestfs_vgrename (guestfs_h *g,\n"
32446 "                   const char *volgroup,\n"
32447 "                   const char *newvolgroup);\n"
32448 "\n"
32449 msgstr ""
32450
32451 #. type: =head2
32452 #: ../src/guestfs-actions.pod:7701
32453 msgid "guestfs_vgs"
32454 msgstr ""
32455
32456 #. type: verbatim
32457 #: ../src/guestfs-actions.pod:7703
32458 #, no-wrap
32459 msgid ""
32460 " char **\n"
32461 " guestfs_vgs (guestfs_h *g);\n"
32462 "\n"
32463 msgstr ""
32464
32465 #. type: textblock
32466 #: ../src/guestfs-actions.pod:7712
32467 msgid "See also C<guestfs_vgs_full>."
32468 msgstr ""
32469
32470 #. type: =head2
32471 #: ../src/guestfs-actions.pod:7720
32472 msgid "guestfs_vgs_full"
32473 msgstr ""
32474
32475 #. type: verbatim
32476 #: ../src/guestfs-actions.pod:7722
32477 #, no-wrap
32478 msgid ""
32479 " struct guestfs_lvm_vg_list *\n"
32480 " guestfs_vgs_full (guestfs_h *g);\n"
32481 "\n"
32482 msgstr ""
32483
32484 #. type: textblock
32485 #: ../src/guestfs-actions.pod:7728
32486 msgid ""
32487 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32488 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32489 msgstr ""
32490
32491 #. type: =head2
32492 #: ../src/guestfs-actions.pod:7734
32493 msgid "guestfs_vgscan"
32494 msgstr ""
32495
32496 #. type: verbatim
32497 #: ../src/guestfs-actions.pod:7736
32498 #, no-wrap
32499 msgid ""
32500 " int\n"
32501 " guestfs_vgscan (guestfs_h *g);\n"
32502 "\n"
32503 msgstr ""
32504
32505 #. type: =head2
32506 #: ../src/guestfs-actions.pod:7746
32507 msgid "guestfs_vguuid"
32508 msgstr ""
32509
32510 #. type: verbatim
32511 #: ../src/guestfs-actions.pod:7748
32512 #, no-wrap
32513 msgid ""
32514 " char *\n"
32515 " guestfs_vguuid (guestfs_h *g,\n"
32516 "                 const char *vgname);\n"
32517 "\n"
32518 msgstr ""
32519
32520 #. type: =head2
32521 #: ../src/guestfs-actions.pod:7759
32522 msgid "guestfs_wait_ready"
32523 msgstr ""
32524
32525 #. type: verbatim
32526 #: ../src/guestfs-actions.pod:7761
32527 #, no-wrap
32528 msgid ""
32529 " int\n"
32530 " guestfs_wait_ready (guestfs_h *g);\n"
32531 "\n"
32532 msgstr ""
32533
32534 #. type: textblock
32535 #: ../src/guestfs-actions.pod:7764
32536 msgid ""
32537 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32538 "instead."
32539 msgstr ""
32540
32541 #. type: textblock
32542 #: ../src/guestfs-actions.pod:7771
32543 msgid "This function is a no op."
32544 msgstr ""
32545
32546 #. type: textblock
32547 #: ../src/guestfs-actions.pod:7773
32548 msgid ""
32549 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32550 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32551 "is no longer necessary because C<guestfs_launch> now does the waiting."
32552 msgstr ""
32553
32554 #. type: textblock
32555 #: ../src/guestfs-actions.pod:7778
32556 msgid ""
32557 "If you see any calls to this function in code then you can just remove them, "
32558 "unless you want to retain compatibility with older versions of the API."
32559 msgstr ""
32560
32561 #. type: =head2
32562 #: ../src/guestfs-actions.pod:7786
32563 msgid "guestfs_wc_c"
32564 msgstr ""
32565
32566 #. type: verbatim
32567 #: ../src/guestfs-actions.pod:7788
32568 #, no-wrap
32569 msgid ""
32570 " int\n"
32571 " guestfs_wc_c (guestfs_h *g,\n"
32572 "               const char *path);\n"
32573 "\n"
32574 msgstr ""
32575
32576 #. type: =head2
32577 #: ../src/guestfs-actions.pod:7799
32578 msgid "guestfs_wc_l"
32579 msgstr ""
32580
32581 #. type: verbatim
32582 #: ../src/guestfs-actions.pod:7801
32583 #, no-wrap
32584 msgid ""
32585 " int\n"
32586 " guestfs_wc_l (guestfs_h *g,\n"
32587 "               const char *path);\n"
32588 "\n"
32589 msgstr ""
32590
32591 #. type: =head2
32592 #: ../src/guestfs-actions.pod:7812
32593 msgid "guestfs_wc_w"
32594 msgstr ""
32595
32596 #. type: verbatim
32597 #: ../src/guestfs-actions.pod:7814
32598 #, no-wrap
32599 msgid ""
32600 " int\n"
32601 " guestfs_wc_w (guestfs_h *g,\n"
32602 "               const char *path);\n"
32603 "\n"
32604 msgstr ""
32605
32606 #. type: =head2
32607 #: ../src/guestfs-actions.pod:7825
32608 msgid "guestfs_write"
32609 msgstr ""
32610
32611 #. type: verbatim
32612 #: ../src/guestfs-actions.pod:7827
32613 #, no-wrap
32614 msgid ""
32615 " int\n"
32616 " guestfs_write (guestfs_h *g,\n"
32617 "                const char *path,\n"
32618 "                const char *content,\n"
32619 "                size_t content_size);\n"
32620 "\n"
32621 msgstr ""
32622
32623 #. type: textblock
32624 #: ../src/guestfs-actions.pod:7836
32625 msgid "See also C<guestfs_write_append>."
32626 msgstr ""
32627
32628 #. type: =head2
32629 #: ../src/guestfs-actions.pod:7845
32630 msgid "guestfs_write_append"
32631 msgstr ""
32632
32633 #. type: verbatim
32634 #: ../src/guestfs-actions.pod:7847
32635 #, no-wrap
32636 msgid ""
32637 " int\n"
32638 " guestfs_write_append (guestfs_h *g,\n"
32639 "                       const char *path,\n"
32640 "                       const char *content,\n"
32641 "                       size_t content_size);\n"
32642 "\n"
32643 msgstr ""
32644
32645 #. type: textblock
32646 #: ../src/guestfs-actions.pod:7856
32647 msgid "See also C<guestfs_write>."
32648 msgstr ""
32649
32650 #. type: =head2
32651 #: ../src/guestfs-actions.pod:7865
32652 msgid "guestfs_write_file"
32653 msgstr ""
32654
32655 #. type: verbatim
32656 #: ../src/guestfs-actions.pod:7867
32657 #, no-wrap
32658 msgid ""
32659 " int\n"
32660 " guestfs_write_file (guestfs_h *g,\n"
32661 "                     const char *path,\n"
32662 "                     const char *content,\n"
32663 "                     int size);\n"
32664 "\n"
32665 msgstr ""
32666
32667 #. type: textblock
32668 #: ../src/guestfs-actions.pod:7873
32669 msgid ""
32670 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32671 "instead."
32672 msgstr ""
32673
32674 #. type: =head2
32675 #: ../src/guestfs-actions.pod:7898
32676 msgid "guestfs_zegrep"
32677 msgstr ""
32678
32679 #. type: verbatim
32680 #: ../src/guestfs-actions.pod:7900
32681 #, no-wrap
32682 msgid ""
32683 " char **\n"
32684 " guestfs_zegrep (guestfs_h *g,\n"
32685 "                 const char *regex,\n"
32686 "                 const char *path);\n"
32687 "\n"
32688 msgstr ""
32689
32690 #. type: =head2
32691 #: ../src/guestfs-actions.pod:7917
32692 msgid "guestfs_zegrepi"
32693 msgstr ""
32694
32695 #. type: verbatim
32696 #: ../src/guestfs-actions.pod:7919
32697 #, no-wrap
32698 msgid ""
32699 " char **\n"
32700 " guestfs_zegrepi (guestfs_h *g,\n"
32701 "                  const char *regex,\n"
32702 "                  const char *path);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: =head2
32707 #: ../src/guestfs-actions.pod:7936
32708 msgid "guestfs_zero"
32709 msgstr ""
32710
32711 #. type: verbatim
32712 #: ../src/guestfs-actions.pod:7938
32713 #, no-wrap
32714 msgid ""
32715 " int\n"
32716 " guestfs_zero (guestfs_h *g,\n"
32717 "               const char *device);\n"
32718 "\n"
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs-actions.pod:7952
32723 msgid ""
32724 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32725 "C<guestfs_is_zero_device>"
32726 msgstr ""
32727
32728 #. type: =head2
32729 #: ../src/guestfs-actions.pod:7964
32730 msgid "guestfs_zero_device"
32731 msgstr ""
32732
32733 #. type: verbatim
32734 #: ../src/guestfs-actions.pod:7966
32735 #, no-wrap
32736 msgid ""
32737 " int\n"
32738 " guestfs_zero_device (guestfs_h *g,\n"
32739 "                      const char *device);\n"
32740 "\n"
32741 msgstr ""
32742
32743 #. type: textblock
32744 #: ../src/guestfs-actions.pod:7970
32745 msgid ""
32746 "This command writes zeroes over the entire C<device>.  Compare with "
32747 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32748 msgstr ""
32749
32750 #. type: textblock
32751 #: ../src/guestfs-actions.pod:7988
32752 msgid "(Added in 1.3.1)"
32753 msgstr ""
32754
32755 #. type: =head2
32756 #: ../src/guestfs-actions.pod:7990
32757 msgid "guestfs_zerofree"
32758 msgstr ""
32759
32760 #. type: verbatim
32761 #: ../src/guestfs-actions.pod:7992
32762 #, no-wrap
32763 msgid ""
32764 " int\n"
32765 " guestfs_zerofree (guestfs_h *g,\n"
32766 "                   const char *device);\n"
32767 "\n"
32768 msgstr ""
32769
32770 #. type: =head2
32771 #: ../src/guestfs-actions.pod:8011
32772 msgid "guestfs_zfgrep"
32773 msgstr ""
32774
32775 #. type: verbatim
32776 #: ../src/guestfs-actions.pod:8013
32777 #, no-wrap
32778 msgid ""
32779 " char **\n"
32780 " guestfs_zfgrep (guestfs_h *g,\n"
32781 "                 const char *pattern,\n"
32782 "                 const char *path);\n"
32783 "\n"
32784 msgstr ""
32785
32786 #. type: =head2
32787 #: ../src/guestfs-actions.pod:8030
32788 msgid "guestfs_zfgrepi"
32789 msgstr ""
32790
32791 #. type: verbatim
32792 #: ../src/guestfs-actions.pod:8032
32793 #, no-wrap
32794 msgid ""
32795 " char **\n"
32796 " guestfs_zfgrepi (guestfs_h *g,\n"
32797 "                  const char *pattern,\n"
32798 "                  const char *path);\n"
32799 "\n"
32800 msgstr ""
32801
32802 #. type: =head2
32803 #: ../src/guestfs-actions.pod:8049
32804 msgid "guestfs_zfile"
32805 msgstr ""
32806
32807 #. type: verbatim
32808 #: ../src/guestfs-actions.pod:8051
32809 #, no-wrap
32810 msgid ""
32811 " char *\n"
32812 " guestfs_zfile (guestfs_h *g,\n"
32813 "                const char *meth,\n"
32814 "                const char *path);\n"
32815 "\n"
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs-actions.pod:8056
32820 msgid ""
32821 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32822 "instead."
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs-actions.pod:8068
32827 msgid ""
32828 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32829 "files."
32830 msgstr ""
32831
32832 #. type: =head2
32833 #: ../src/guestfs-actions.pod:8076
32834 msgid "guestfs_zgrep"
32835 msgstr ""
32836
32837 #. type: verbatim
32838 #: ../src/guestfs-actions.pod:8078
32839 #, no-wrap
32840 msgid ""
32841 " char **\n"
32842 " guestfs_zgrep (guestfs_h *g,\n"
32843 "                const char *regex,\n"
32844 "                const char *path);\n"
32845 "\n"
32846 msgstr ""
32847
32848 #. type: =head2
32849 #: ../src/guestfs-actions.pod:8095
32850 msgid "guestfs_zgrepi"
32851 msgstr ""
32852
32853 #. type: verbatim
32854 #: ../src/guestfs-actions.pod:8097
32855 #, no-wrap
32856 msgid ""
32857 " char **\n"
32858 " guestfs_zgrepi (guestfs_h *g,\n"
32859 "                 const char *regex,\n"
32860 "                 const char *path);\n"
32861 "\n"
32862 msgstr ""
32863
32864 #. type: =item
32865 #: ../src/guestfs-availability.pod:3
32866 msgid "B<augeas>"
32867 msgstr ""
32868
32869 #. type: textblock
32870 #: ../src/guestfs-availability.pod:5
32871 msgid ""
32872 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32873 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32874 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32875 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32876 "L</guestfs_aug_save> L</guestfs_aug_set>"
32877 msgstr ""
32878
32879 #. type: =item
32880 #: ../src/guestfs-availability.pod:21
32881 msgid "B<btrfs>"
32882 msgstr ""
32883
32884 #. type: textblock
32885 #: ../src/guestfs-availability.pod:23
32886 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32887 msgstr ""
32888
32889 #. type: =item
32890 #: ../src/guestfs-availability.pod:26
32891 msgid "B<grub>"
32892 msgstr ""
32893
32894 #. type: textblock
32895 #: ../src/guestfs-availability.pod:28
32896 msgid "The following functions: L</guestfs_grub_install>"
32897 msgstr ""
32898
32899 #. type: =item
32900 #: ../src/guestfs-availability.pod:31
32901 msgid "B<inotify>"
32902 msgstr ""
32903
32904 #. type: textblock
32905 #: ../src/guestfs-availability.pod:33
32906 msgid ""
32907 "The following functions: L</guestfs_inotify_add_watch> L</"
32908 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32909 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32910 msgstr ""
32911
32912 #. type: =item
32913 #: ../src/guestfs-availability.pod:41
32914 msgid "B<linuxfsuuid>"
32915 msgstr ""
32916
32917 #. type: textblock
32918 #: ../src/guestfs-availability.pod:43
32919 msgid ""
32920 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32921 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32922 msgstr ""
32923
32924 #. type: =item
32925 #: ../src/guestfs-availability.pod:50
32926 msgid "B<linuxmodules>"
32927 msgstr ""
32928
32929 #. type: textblock
32930 #: ../src/guestfs-availability.pod:52
32931 msgid "The following functions: L</guestfs_modprobe>"
32932 msgstr ""
32933
32934 #. type: =item
32935 #: ../src/guestfs-availability.pod:55
32936 msgid "B<linuxxattrs>"
32937 msgstr ""
32938
32939 #. type: textblock
32940 #: ../src/guestfs-availability.pod:57
32941 msgid ""
32942 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32943 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32944 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32945 "guestfs_setxattr>"
32946 msgstr ""
32947
32948 #. type: =item
32949 #: ../src/guestfs-availability.pod:68
32950 msgid "B<luks>"
32951 msgstr ""
32952
32953 #. type: textblock
32954 #: ../src/guestfs-availability.pod:70
32955 msgid ""
32956 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32957 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32958 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32959 msgstr ""
32960
32961 #. type: =item
32962 #: ../src/guestfs-availability.pod:79
32963 msgid "B<lvm2>"
32964 msgstr ""
32965
32966 #. type: textblock
32967 #: ../src/guestfs-availability.pod:81
32968 msgid ""
32969 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32970 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32971 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32972 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32973 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32974 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32975 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32976 msgstr ""
32977
32978 #. type: =item
32979 #: ../src/guestfs-availability.pod:104
32980 msgid "B<mknod>"
32981 msgstr ""
32982
32983 #. type: textblock
32984 #: ../src/guestfs-availability.pod:106
32985 msgid ""
32986 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32987 "guestfs_mknod_b> L</guestfs_mknod_c>"
32988 msgstr ""
32989
32990 #. type: =item
32991 #: ../src/guestfs-availability.pod:112
32992 msgid "B<ntfs3g>"
32993 msgstr ""
32994
32995 #. type: textblock
32996 #: ../src/guestfs-availability.pod:114
32997 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32998 msgstr ""
32999
33000 #. type: =item
33001 #: ../src/guestfs-availability.pod:117
33002 msgid "B<ntfsprogs>"
33003 msgstr ""
33004
33005 #. type: textblock
33006 #: ../src/guestfs-availability.pod:119
33007 msgid ""
33008 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33009 "L</guestfs_ntfsresize_size>"
33010 msgstr ""
33011
33012 #. type: =item
33013 #: ../src/guestfs-availability.pod:124
33014 msgid "B<realpath>"
33015 msgstr ""
33016
33017 #. type: textblock
33018 #: ../src/guestfs-availability.pod:126
33019 msgid "The following functions: L</guestfs_realpath>"
33020 msgstr ""
33021
33022 #. type: =item
33023 #: ../src/guestfs-availability.pod:129
33024 msgid "B<scrub>"
33025 msgstr ""
33026
33027 #. type: textblock
33028 #: ../src/guestfs-availability.pod:131
33029 msgid ""
33030 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33031 "guestfs_scrub_freespace>"
33032 msgstr ""
33033
33034 #. type: =item
33035 #: ../src/guestfs-availability.pod:136
33036 msgid "B<selinux>"
33037 msgstr ""
33038
33039 #. type: textblock
33040 #: ../src/guestfs-availability.pod:138
33041 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33042 msgstr ""
33043
33044 #. type: =item
33045 #: ../src/guestfs-availability.pod:142
33046 msgid "B<xz>"
33047 msgstr ""
33048
33049 #. type: textblock
33050 #: ../src/guestfs-availability.pod:144
33051 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33052 msgstr ""
33053
33054 #. type: =item
33055 #: ../src/guestfs-availability.pod:148
33056 msgid "B<zerofree>"
33057 msgstr ""
33058
33059 #. type: textblock
33060 #: ../src/guestfs-availability.pod:150
33061 msgid "The following functions: L</guestfs_zerofree>"
33062 msgstr ""
33063
33064 #. type: =head2
33065 #: ../src/guestfs-structs.pod:1
33066 msgid "guestfs_int_bool"
33067 msgstr ""
33068
33069 #. type: verbatim
33070 #: ../src/guestfs-structs.pod:3
33071 #, no-wrap
33072 msgid ""
33073 " struct guestfs_int_bool {\n"
33074 "   int32_t i;\n"
33075 "   int32_t b;\n"
33076 " };\n"
33077 " \n"
33078 msgstr ""
33079
33080 #. type: verbatim
33081 #: ../src/guestfs-structs.pod:8
33082 #, no-wrap
33083 msgid ""
33084 " struct guestfs_int_bool_list {\n"
33085 "   uint32_t len; /* Number of elements in list. */\n"
33086 "   struct guestfs_int_bool *val; /* Elements. */\n"
33087 " };\n"
33088 " \n"
33089 msgstr ""
33090
33091 #. type: verbatim
33092 #: ../src/guestfs-structs.pod:13
33093 #, no-wrap
33094 msgid ""
33095 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33096 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33097 "\n"
33098 msgstr ""
33099
33100 #. type: =head2
33101 #: ../src/guestfs-structs.pod:16
33102 msgid "guestfs_lvm_pv"
33103 msgstr ""
33104
33105 #. type: verbatim
33106 #: ../src/guestfs-structs.pod:18
33107 #, no-wrap
33108 msgid ""
33109 " struct guestfs_lvm_pv {\n"
33110 "   char *pv_name;\n"
33111 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33112 "   char pv_uuid[32];\n"
33113 "   char *pv_fmt;\n"
33114 "   uint64_t pv_size;\n"
33115 "   uint64_t dev_size;\n"
33116 "   uint64_t pv_free;\n"
33117 "   uint64_t pv_used;\n"
33118 "   char *pv_attr;\n"
33119 "   int64_t pv_pe_count;\n"
33120 "   int64_t pv_pe_alloc_count;\n"
33121 "   char *pv_tags;\n"
33122 "   uint64_t pe_start;\n"
33123 "   int64_t pv_mda_count;\n"
33124 "   uint64_t pv_mda_free;\n"
33125 " };\n"
33126 " \n"
33127 msgstr ""
33128
33129 #. type: verbatim
33130 #: ../src/guestfs-structs.pod:36
33131 #, no-wrap
33132 msgid ""
33133 " struct guestfs_lvm_pv_list {\n"
33134 "   uint32_t len; /* Number of elements in list. */\n"
33135 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33136 " };\n"
33137 " \n"
33138 msgstr ""
33139
33140 #. type: verbatim
33141 #: ../src/guestfs-structs.pod:41
33142 #, no-wrap
33143 msgid ""
33144 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33145 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33146 "\n"
33147 msgstr ""
33148
33149 #. type: =head2
33150 #: ../src/guestfs-structs.pod:44
33151 msgid "guestfs_lvm_vg"
33152 msgstr ""
33153
33154 #. type: verbatim
33155 #: ../src/guestfs-structs.pod:46
33156 #, no-wrap
33157 msgid ""
33158 " struct guestfs_lvm_vg {\n"
33159 "   char *vg_name;\n"
33160 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33161 "   char vg_uuid[32];\n"
33162 "   char *vg_fmt;\n"
33163 "   char *vg_attr;\n"
33164 "   uint64_t vg_size;\n"
33165 "   uint64_t vg_free;\n"
33166 "   char *vg_sysid;\n"
33167 "   uint64_t vg_extent_size;\n"
33168 "   int64_t vg_extent_count;\n"
33169 "   int64_t vg_free_count;\n"
33170 "   int64_t max_lv;\n"
33171 "   int64_t max_pv;\n"
33172 "   int64_t pv_count;\n"
33173 "   int64_t lv_count;\n"
33174 "   int64_t snap_count;\n"
33175 "   int64_t vg_seqno;\n"
33176 "   char *vg_tags;\n"
33177 "   int64_t vg_mda_count;\n"
33178 "   uint64_t vg_mda_free;\n"
33179 " };\n"
33180 " \n"
33181 msgstr ""
33182
33183 #. type: verbatim
33184 #: ../src/guestfs-structs.pod:69
33185 #, no-wrap
33186 msgid ""
33187 " struct guestfs_lvm_vg_list {\n"
33188 "   uint32_t len; /* Number of elements in list. */\n"
33189 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33190 " };\n"
33191 " \n"
33192 msgstr ""
33193
33194 #. type: verbatim
33195 #: ../src/guestfs-structs.pod:74
33196 #, no-wrap
33197 msgid ""
33198 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33199 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33200 "\n"
33201 msgstr ""
33202
33203 #. type: =head2
33204 #: ../src/guestfs-structs.pod:77
33205 msgid "guestfs_lvm_lv"
33206 msgstr ""
33207
33208 #. type: verbatim
33209 #: ../src/guestfs-structs.pod:79
33210 #, no-wrap
33211 msgid ""
33212 " struct guestfs_lvm_lv {\n"
33213 "   char *lv_name;\n"
33214 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33215 "   char lv_uuid[32];\n"
33216 "   char *lv_attr;\n"
33217 "   int64_t lv_major;\n"
33218 "   int64_t lv_minor;\n"
33219 "   int64_t lv_kernel_major;\n"
33220 "   int64_t lv_kernel_minor;\n"
33221 "   uint64_t lv_size;\n"
33222 "   int64_t seg_count;\n"
33223 "   char *origin;\n"
33224 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33225 "   float snap_percent;\n"
33226 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33227 "   float copy_percent;\n"
33228 "   char *move_pv;\n"
33229 "   char *lv_tags;\n"
33230 "   char *mirror_log;\n"
33231 "   char *modules;\n"
33232 " };\n"
33233 " \n"
33234 msgstr ""
33235
33236 #. type: verbatim
33237 #: ../src/guestfs-structs.pod:101
33238 #, no-wrap
33239 msgid ""
33240 " struct guestfs_lvm_lv_list {\n"
33241 "   uint32_t len; /* Number of elements in list. */\n"
33242 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33243 " };\n"
33244 " \n"
33245 msgstr ""
33246
33247 #. type: verbatim
33248 #: ../src/guestfs-structs.pod:106
33249 #, no-wrap
33250 msgid ""
33251 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33252 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33253 "\n"
33254 msgstr ""
33255
33256 #. type: verbatim
33257 #: ../src/guestfs-structs.pod:111
33258 #, no-wrap
33259 msgid ""
33260 " struct guestfs_stat {\n"
33261 "   int64_t dev;\n"
33262 "   int64_t ino;\n"
33263 "   int64_t mode;\n"
33264 "   int64_t nlink;\n"
33265 "   int64_t uid;\n"
33266 "   int64_t gid;\n"
33267 "   int64_t rdev;\n"
33268 "   int64_t size;\n"
33269 "   int64_t blksize;\n"
33270 "   int64_t blocks;\n"
33271 "   int64_t atime;\n"
33272 "   int64_t mtime;\n"
33273 "   int64_t ctime;\n"
33274 " };\n"
33275 " \n"
33276 msgstr ""
33277
33278 #. type: verbatim
33279 #: ../src/guestfs-structs.pod:127
33280 #, no-wrap
33281 msgid ""
33282 " struct guestfs_stat_list {\n"
33283 "   uint32_t len; /* Number of elements in list. */\n"
33284 "   struct guestfs_stat *val; /* Elements. */\n"
33285 " };\n"
33286 " \n"
33287 msgstr ""
33288
33289 #. type: verbatim
33290 #: ../src/guestfs-structs.pod:132
33291 #, no-wrap
33292 msgid ""
33293 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33294 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33295 "\n"
33296 msgstr ""
33297
33298 #. type: verbatim
33299 #: ../src/guestfs-structs.pod:137
33300 #, no-wrap
33301 msgid ""
33302 " struct guestfs_statvfs {\n"
33303 "   int64_t bsize;\n"
33304 "   int64_t frsize;\n"
33305 "   int64_t blocks;\n"
33306 "   int64_t bfree;\n"
33307 "   int64_t bavail;\n"
33308 "   int64_t files;\n"
33309 "   int64_t ffree;\n"
33310 "   int64_t favail;\n"
33311 "   int64_t fsid;\n"
33312 "   int64_t flag;\n"
33313 "   int64_t namemax;\n"
33314 " };\n"
33315 " \n"
33316 msgstr ""
33317
33318 #. type: verbatim
33319 #: ../src/guestfs-structs.pod:151
33320 #, no-wrap
33321 msgid ""
33322 " struct guestfs_statvfs_list {\n"
33323 "   uint32_t len; /* Number of elements in list. */\n"
33324 "   struct guestfs_statvfs *val; /* Elements. */\n"
33325 " };\n"
33326 " \n"
33327 msgstr ""
33328
33329 #. type: verbatim
33330 #: ../src/guestfs-structs.pod:156
33331 #, no-wrap
33332 msgid ""
33333 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33334 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33335 "\n"
33336 msgstr ""
33337
33338 #. type: =head2
33339 #: ../src/guestfs-structs.pod:159
33340 msgid "guestfs_dirent"
33341 msgstr ""
33342
33343 #. type: verbatim
33344 #: ../src/guestfs-structs.pod:161
33345 #, no-wrap
33346 msgid ""
33347 " struct guestfs_dirent {\n"
33348 "   int64_t ino;\n"
33349 "   char ftyp;\n"
33350 "   char *name;\n"
33351 " };\n"
33352 " \n"
33353 msgstr ""
33354
33355 #. type: verbatim
33356 #: ../src/guestfs-structs.pod:167
33357 #, no-wrap
33358 msgid ""
33359 " struct guestfs_dirent_list {\n"
33360 "   uint32_t len; /* Number of elements in list. */\n"
33361 "   struct guestfs_dirent *val; /* Elements. */\n"
33362 " };\n"
33363 " \n"
33364 msgstr ""
33365
33366 #. type: verbatim
33367 #: ../src/guestfs-structs.pod:172
33368 #, no-wrap
33369 msgid ""
33370 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33371 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33372 "\n"
33373 msgstr ""
33374
33375 #. type: verbatim
33376 #: ../src/guestfs-structs.pod:177
33377 #, no-wrap
33378 msgid ""
33379 " struct guestfs_version {\n"
33380 "   int64_t major;\n"
33381 "   int64_t minor;\n"
33382 "   int64_t release;\n"
33383 "   char *extra;\n"
33384 " };\n"
33385 " \n"
33386 msgstr ""
33387
33388 #. type: verbatim
33389 #: ../src/guestfs-structs.pod:184
33390 #, no-wrap
33391 msgid ""
33392 " struct guestfs_version_list {\n"
33393 "   uint32_t len; /* Number of elements in list. */\n"
33394 "   struct guestfs_version *val; /* Elements. */\n"
33395 " };\n"
33396 " \n"
33397 msgstr ""
33398
33399 #. type: verbatim
33400 #: ../src/guestfs-structs.pod:189
33401 #, no-wrap
33402 msgid ""
33403 " void guestfs_free_version (struct guestfs_free_version *);\n"
33404 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33405 "\n"
33406 msgstr ""
33407
33408 #. type: =head2
33409 #: ../src/guestfs-structs.pod:192
33410 msgid "guestfs_xattr"
33411 msgstr ""
33412
33413 #. type: verbatim
33414 #: ../src/guestfs-structs.pod:194
33415 #, no-wrap
33416 msgid ""
33417 " struct guestfs_xattr {\n"
33418 "   char *attrname;\n"
33419 "   /* The next two fields describe a byte array. */\n"
33420 "   uint32_t attrval_len;\n"
33421 "   char *attrval;\n"
33422 " };\n"
33423 " \n"
33424 msgstr ""
33425
33426 #. type: verbatim
33427 #: ../src/guestfs-structs.pod:201
33428 #, no-wrap
33429 msgid ""
33430 " struct guestfs_xattr_list {\n"
33431 "   uint32_t len; /* Number of elements in list. */\n"
33432 "   struct guestfs_xattr *val; /* Elements. */\n"
33433 " };\n"
33434 " \n"
33435 msgstr ""
33436
33437 #. type: verbatim
33438 #: ../src/guestfs-structs.pod:206
33439 #, no-wrap
33440 msgid ""
33441 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33442 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33443 "\n"
33444 msgstr ""
33445
33446 #. type: =head2
33447 #: ../src/guestfs-structs.pod:209
33448 msgid "guestfs_inotify_event"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs-structs.pod:211
33453 #, no-wrap
33454 msgid ""
33455 " struct guestfs_inotify_event {\n"
33456 "   int64_t in_wd;\n"
33457 "   uint32_t in_mask;\n"
33458 "   uint32_t in_cookie;\n"
33459 "   char *in_name;\n"
33460 " };\n"
33461 " \n"
33462 msgstr ""
33463
33464 #. type: verbatim
33465 #: ../src/guestfs-structs.pod:218
33466 #, no-wrap
33467 msgid ""
33468 " struct guestfs_inotify_event_list {\n"
33469 "   uint32_t len; /* Number of elements in list. */\n"
33470 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33471 " };\n"
33472 " \n"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs-structs.pod:223
33477 #, no-wrap
33478 msgid ""
33479 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33480 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33481 "\n"
33482 msgstr ""
33483
33484 #. type: =head2
33485 #: ../src/guestfs-structs.pod:226
33486 msgid "guestfs_partition"
33487 msgstr ""
33488
33489 #. type: verbatim
33490 #: ../src/guestfs-structs.pod:228
33491 #, no-wrap
33492 msgid ""
33493 " struct guestfs_partition {\n"
33494 "   int32_t part_num;\n"
33495 "   uint64_t part_start;\n"
33496 "   uint64_t part_end;\n"
33497 "   uint64_t part_size;\n"
33498 " };\n"
33499 " \n"
33500 msgstr ""
33501
33502 #. type: verbatim
33503 #: ../src/guestfs-structs.pod:235
33504 #, no-wrap
33505 msgid ""
33506 " struct guestfs_partition_list {\n"
33507 "   uint32_t len; /* Number of elements in list. */\n"
33508 "   struct guestfs_partition *val; /* Elements. */\n"
33509 " };\n"
33510 " \n"
33511 msgstr ""
33512
33513 #. type: verbatim
33514 #: ../src/guestfs-structs.pod:240
33515 #, no-wrap
33516 msgid ""
33517 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33518 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33519 "\n"
33520 msgstr ""
33521
33522 #. type: =head2
33523 #: ../src/guestfs-structs.pod:243
33524 msgid "guestfs_application"
33525 msgstr ""
33526
33527 #. type: verbatim
33528 #: ../src/guestfs-structs.pod:245
33529 #, no-wrap
33530 msgid ""
33531 " struct guestfs_application {\n"
33532 "   char *app_name;\n"
33533 "   char *app_display_name;\n"
33534 "   int32_t app_epoch;\n"
33535 "   char *app_version;\n"
33536 "   char *app_release;\n"
33537 "   char *app_install_path;\n"
33538 "   char *app_trans_path;\n"
33539 "   char *app_publisher;\n"
33540 "   char *app_url;\n"
33541 "   char *app_source_package;\n"
33542 "   char *app_summary;\n"
33543 "   char *app_description;\n"
33544 " };\n"
33545 " \n"
33546 msgstr ""
33547
33548 #. type: verbatim
33549 #: ../src/guestfs-structs.pod:260
33550 #, no-wrap
33551 msgid ""
33552 " struct guestfs_application_list {\n"
33553 "   uint32_t len; /* Number of elements in list. */\n"
33554 "   struct guestfs_application *val; /* Elements. */\n"
33555 " };\n"
33556 " \n"
33557 msgstr ""
33558
33559 #. type: verbatim
33560 #: ../src/guestfs-structs.pod:265
33561 #, no-wrap
33562 msgid ""
33563 " void guestfs_free_application (struct guestfs_free_application *);\n"
33564 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33565 "\n"
33566 msgstr ""
33567
33568 #. type: textblock
33569 #: ../src/guestfs.pod:5
33570 msgid "guestfs - Library for accessing and modifying virtual machine images"
33571 msgstr ""
33572
33573 #. type: verbatim
33574 #: ../src/guestfs.pod:11
33575 #, no-wrap
33576 msgid ""
33577 " guestfs_h *g = guestfs_create ();\n"
33578 " guestfs_add_drive (g, \"guest.img\");\n"
33579 " guestfs_launch (g);\n"
33580 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33581 " guestfs_touch (g, \"/hello\");\n"
33582 " guestfs_umount (g, \"/\");\n"
33583 " guestfs_close (g);\n"
33584 "\n"
33585 msgstr ""
33586 " guestfs_h *g = guestfs_create ();\n"
33587 " guestfs_add_drive (g, \"guest.img\");\n"
33588 " guestfs_launch (g);\n"
33589 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33590 " guestfs_touch (g, \"/hello\");\n"
33591 " guestfs_umount (g, \"/\");\n"
33592 " guestfs_close (g);\n"
33593 "\n"
33594
33595 #. type: textblock
33596 #: ../src/guestfs.pod:25
33597 msgid ""
33598 "Libguestfs is a library for accessing and modifying guest disk images.  "
33599 "Amongst the things this is good for: making batch configuration changes to "
33600 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33601 "between virtualization systems (see also: virt-p2v), performing partial "
33602 "backups, performing partial guest clones, cloning guests and changing "
33603 "registry/UUID/hostname info, and much else besides."
33604 msgstr ""
33605
33606 #. type: textblock
33607 #: ../src/guestfs.pod:33
33608 msgid ""
33609 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33610 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33611 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33612 "qcow2, vmdk."
33613 msgstr ""
33614
33615 #. type: textblock
33616 #: ../src/guestfs.pod:38
33617 msgid ""
33618 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33619 "what filesystem is in each LV, etc.).  It can also run commands in the "
33620 "context of the guest.  Also you can access filesystems over FUSE."
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../src/guestfs.pod:43
33625 msgid ""
33626 "Libguestfs is a library that can be linked with C and C++ management "
33627 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33628 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33629 "command line."
33630 msgstr ""
33631
33632 #. type: textblock
33633 #: ../src/guestfs.pod:48
33634 msgid ""
33635 "You don't need to be root to use libguestfs, although obviously you do need "
33636 "enough permissions to access the disk images."
33637 msgstr ""
33638
33639 #. type: textblock
33640 #: ../src/guestfs.pod:51
33641 msgid ""
33642 "Libguestfs is a large API because it can do many things.  For a gentle "
33643 "introduction, please read the L</API OVERVIEW> section next."
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs.pod:54
33648 msgid ""
33649 "There are also some example programs in the L<guestfs-examples(3)> manual "
33650 "page."
33651 msgstr ""
33652
33653 #. type: =head1
33654 #: ../src/guestfs.pod:57
33655 msgid "API OVERVIEW"
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs.pod:59
33660 msgid ""
33661 "This section provides a gentler overview of the libguestfs API.  We also try "
33662 "to group API calls together, where that may not be obvious from reading "
33663 "about the individual calls in the main section of this manual."
33664 msgstr ""
33665
33666 #. type: =head2
33667 #: ../src/guestfs.pod:64
33668 msgid "HANDLES"
33669 msgstr ""
33670
33671 #. type: textblock
33672 #: ../src/guestfs.pod:66
33673 msgid ""
33674 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33675 "must add at least one disk image to the handle, followed by launching the "
33676 "handle, then performing whatever operations you want, and finally closing "
33677 "the handle.  By convention we use the single letter C<g> for the name of the "
33678 "handle variable, although of course you can use any name you want."
33679 msgstr ""
33680
33681 #. type: textblock
33682 #: ../src/guestfs.pod:73
33683 msgid "The general structure of all libguestfs-using programs looks like this:"
33684 msgstr ""
33685
33686 #. type: verbatim
33687 #: ../src/guestfs.pod:76
33688 #, no-wrap
33689 msgid ""
33690 " guestfs_h *g = guestfs_create ();\n"
33691 " \n"
33692 msgstr ""
33693
33694 #. type: verbatim
33695 #: ../src/guestfs.pod:78
33696 #, no-wrap
33697 msgid ""
33698 " /* Call guestfs_add_drive additional times if there are\n"
33699 "  * multiple disk images.\n"
33700 "  */\n"
33701 " guestfs_add_drive (g, \"guest.img\");\n"
33702 " \n"
33703 msgstr ""
33704
33705 #. type: verbatim
33706 #: ../src/guestfs.pod:83
33707 #, no-wrap
33708 msgid ""
33709 " /* Most manipulation calls won't work until you've launched\n"
33710 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33711 "  * and _before_ other commands.\n"
33712 "  */\n"
33713 " guestfs_launch (g);\n"
33714 " \n"
33715 msgstr ""
33716
33717 #. type: verbatim
33718 #: ../src/guestfs.pod:89
33719 #, no-wrap
33720 msgid ""
33721 " /* Now you can examine what partitions, LVs etc are available.\n"
33722 "  */\n"
33723 " char **partitions = guestfs_list_partitions (g);\n"
33724 " char **logvols = guestfs_lvs (g);\n"
33725 " \n"
33726 msgstr ""
33727
33728 #. type: verbatim
33729 #: ../src/guestfs.pod:94
33730 #, no-wrap
33731 msgid ""
33732 " /* To access a filesystem in the image, you must mount it.\n"
33733 "  */\n"
33734 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33735 " \n"
33736 msgstr ""
33737
33738 #. type: verbatim
33739 #: ../src/guestfs.pod:98
33740 #, no-wrap
33741 msgid ""
33742 " /* Now you can perform filesystem actions on the guest\n"
33743 "  * disk image.\n"
33744 "  */\n"
33745 " guestfs_touch (g, \"/hello\");\n"
33746 " \n"
33747 msgstr ""
33748
33749 #. type: verbatim
33750 #: ../src/guestfs.pod:103
33751 #, no-wrap
33752 msgid ""
33753 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33754 "  * it is done automatically when you close the handle.  See\n"
33755 "  * discussion of autosync in this page.\n"
33756 "  */\n"
33757 " guestfs_sync (g);\n"
33758 " \n"
33759 msgstr ""
33760
33761 #. type: verbatim
33762 #: ../src/guestfs.pod:109
33763 #, no-wrap
33764 msgid ""
33765 " /* Close the handle 'g'. */\n"
33766 " guestfs_close (g);\n"
33767 "\n"
33768 msgstr ""
33769
33770 #. type: textblock
33771 #: ../src/guestfs.pod:112
33772 msgid ""
33773 "The code above doesn't include any error checking.  In real code you should "
33774 "check return values carefully for errors.  In general all functions that "
33775 "return integers return C<-1> on error, and all functions that return "
33776 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33777 "how to handle errors, and consult the documentation for each function call "
33778 "below to see precisely how they return error indications.  See L<guestfs-"
33779 "examples(3)> for fully worked examples."
33780 msgstr ""
33781
33782 #. type: =head2
33783 #: ../src/guestfs.pod:121
33784 msgid "DISK IMAGES"
33785 msgstr ""
33786
33787 #. type: textblock
33788 #: ../src/guestfs.pod:123
33789 msgid ""
33790 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33791 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33792 "actual block device, or simply an empty file of zeroes that you have created "
33793 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33794 "of these."
33795 msgstr ""
33796
33797 #. type: textblock
33798 #: ../src/guestfs.pod:129
33799 msgid ""
33800 "The call you should use in modern code for adding drives is L</"
33801 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33802 "specifying that the format is raw, do:"
33803 msgstr ""
33804
33805 #. type: verbatim
33806 #: ../src/guestfs.pod:133
33807 #, no-wrap
33808 msgid ""
33809 " guestfs_add_drive_opts (g, filename,\n"
33810 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33811 "                         -1);\n"
33812 "\n"
33813 msgstr ""
33814
33815 #. type: textblock
33816 #: ../src/guestfs.pod:137
33817 msgid "You can add a disk read-only using:"
33818 msgstr ""
33819
33820 #. type: verbatim
33821 #: ../src/guestfs.pod:139
33822 #, no-wrap
33823 msgid ""
33824 " guestfs_add_drive_opts (g, filename,\n"
33825 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33826 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33827 "                         -1);\n"
33828 "\n"
33829 msgstr ""
33830
33831 #. type: textblock
33832 #: ../src/guestfs.pod:144
33833 msgid ""
33834 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33835 "libguestfs won't modify the file."
33836 msgstr ""
33837
33838 #. type: textblock
33839 #: ../src/guestfs.pod:147
33840 msgid ""
33841 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33842 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33843 "corruption, but adding it read-only is safe."
33844 msgstr ""
33845
33846 #. type: textblock
33847 #: ../src/guestfs.pod:151
33848 msgid ""
33849 "You must add at least one disk image, and you may add multiple disk images.  "
33850 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33851 "first one you added), C</dev/sdb> (for the second one you added), etc."
33852 msgstr ""
33853
33854 #. type: textblock
33855 #: ../src/guestfs.pod:156
33856 msgid ""
33857 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33858 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33859 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33860 msgstr ""
33861
33862 #. type: =head2
33863 #: ../src/guestfs.pod:161
33864 msgid "MOUNTING"
33865 msgstr ""
33866
33867 #. type: textblock
33868 #: ../src/guestfs.pod:163
33869 msgid ""
33870 "Before you can read or write files, create directories and so on in a disk "
33871 "image that contains filesystems, you have to mount those filesystems using "
33872 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33873 "a disk image contains (for example) one partition with a filesystem on that "
33874 "partition, then you can mount it directly:"
33875 msgstr ""
33876
33877 #. type: verbatim
33878 #: ../src/guestfs.pod:170
33879 #, no-wrap
33880 msgid ""
33881 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33882 "\n"
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:172
33887 msgid ""
33888 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33889 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33890 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33891 "that these are libguestfs virtual devices, and are nothing to do with host "
33892 "devices."
33893 msgstr ""
33894
33895 #. type: textblock
33896 #: ../src/guestfs.pod:178
33897 msgid ""
33898 "If you are given a disk image and you don't know what it contains then you "
33899 "have to find out.  Libguestfs can do that too: use L</"
33900 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33901 "LVs, and either try mounting each to see what is mountable, or else examine "
33902 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33903 "filesystems, use L</guestfs_list_filesystems>."
33904 msgstr ""
33905
33906 #. type: textblock
33907 #: ../src/guestfs.pod:186
33908 msgid ""
33909 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33910 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33911 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33912 msgstr ""
33913
33914 #. type: textblock
33915 #: ../src/guestfs.pod:191
33916 msgid ""
33917 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33918 "several other variations of the C<guestfs_mount_*> call."
33919 msgstr ""
33920
33921 #. type: =head2
33922 #: ../src/guestfs.pod:194
33923 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33924 msgstr ""
33925
33926 #. type: textblock
33927 #: ../src/guestfs.pod:196
33928 msgid ""
33929 "The majority of the libguestfs API consists of fairly low-level calls for "
33930 "accessing and modifying the files, directories, symlinks etc on mounted "
33931 "filesystems.  There are over a hundred such calls which you can find listed "
33932 "in detail below in this man page, and we don't even pretend to cover them "
33933 "all in this overview."
33934 msgstr ""
33935
33936 #. type: textblock
33937 #: ../src/guestfs.pod:202
33938 msgid ""
33939 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33940 "mount point."
33941 msgstr ""
33942
33943 #. type: textblock
33944 #: ../src/guestfs.pod:205
33945 msgid ""
33946 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33947 "the file called C<\"etc/passwd\"> then you could do:"
33948 msgstr ""
33949
33950 #. type: verbatim
33951 #: ../src/guestfs.pod:208
33952 #, no-wrap
33953 msgid ""
33954 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33955 "\n"
33956 msgstr ""
33957
33958 #. type: textblock
33959 #: ../src/guestfs.pod:210
33960 msgid ""
33961 "This would return C<data> as a newly allocated buffer containing the full "
33962 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33963 "or C<NULL> if there was an error."
33964 msgstr ""
33965
33966 #. type: textblock
33967 #: ../src/guestfs.pod:214
33968 msgid ""
33969 "As another example, to create a top-level directory on that filesystem "
33970 "called C<\"var\"> you would do:"
33971 msgstr ""
33972
33973 #. type: verbatim
33974 #: ../src/guestfs.pod:217
33975 #, no-wrap
33976 msgid ""
33977 " guestfs_mkdir (g, \"/var\");\n"
33978 "\n"
33979 msgstr ""
33980
33981 #. type: textblock
33982 #: ../src/guestfs.pod:219
33983 msgid "To create a symlink you could do:"
33984 msgstr ""
33985
33986 #. type: verbatim
33987 #: ../src/guestfs.pod:221
33988 #, no-wrap
33989 msgid ""
33990 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33991 "               \"/etc/rc3.d/S30portmap\");\n"
33992 "\n"
33993 msgstr ""
33994
33995 #. type: textblock
33996 #: ../src/guestfs.pod:224
33997 msgid ""
33998 "Libguestfs will reject attempts to use relative paths and there is no "
33999 "concept of a current working directory."
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:227
34004 msgid ""
34005 "Libguestfs can return errors in many situations: for example if the "
34006 "filesystem isn't writable, or if a file or directory that you requested "
34007 "doesn't exist.  If you are using the C API (documented here)  you have to "
34008 "check for those error conditions after each call.  (Other language bindings "
34009 "turn these errors into exceptions)."
34010 msgstr ""
34011
34012 #. type: textblock
34013 #: ../src/guestfs.pod:233
34014 msgid ""
34015 "File writes are affected by the per-handle umask, set by calling L</"
34016 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34017 msgstr ""
34018
34019 #. type: =head2
34020 #: ../src/guestfs.pod:236
34021 msgid "PARTITIONING"
34022 msgstr ""
34023
34024 #. type: textblock
34025 #: ../src/guestfs.pod:238
34026 msgid ""
34027 "Libguestfs contains API calls to read, create and modify partition tables on "
34028 "disk images."
34029 msgstr ""
34030
34031 #. type: textblock
34032 #: ../src/guestfs.pod:241
34033 msgid ""
34034 "In the common case where you want to create a single partition covering the "
34035 "whole disk, you should use the L</guestfs_part_disk> call:"
34036 msgstr ""
34037
34038 #. type: verbatim
34039 #: ../src/guestfs.pod:245
34040 #, no-wrap
34041 msgid ""
34042 " const char *parttype = \"mbr\";\n"
34043 " if (disk_is_larger_than_2TB)\n"
34044 "   parttype = \"gpt\";\n"
34045 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34046 "\n"
34047 msgstr ""
34048
34049 #. type: textblock
34050 #: ../src/guestfs.pod:250
34051 msgid ""
34052 "Obviously this effectively wipes anything that was on that disk image before."
34053 msgstr ""
34054
34055 #. type: =head2
34056 #: ../src/guestfs.pod:253
34057 msgid "LVM2"
34058 msgstr ""
34059
34060 #. type: textblock
34061 #: ../src/guestfs.pod:255
34062 msgid ""
34063 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34064 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34065 "you familiarize yourself with the concepts of physical volumes, volume "
34066 "groups and logical volumes."
34067 msgstr ""
34068
34069 #. type: textblock
34070 #: ../src/guestfs.pod:260
34071 msgid ""
34072 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34073 "tldp.org/HOWTO/LVM-HOWTO/>."
34074 msgstr ""
34075
34076 #. type: =head2
34077 #: ../src/guestfs.pod:263
34078 msgid "DOWNLOADING"
34079 msgstr ""
34080
34081 #. type: textblock
34082 #: ../src/guestfs.pod:265
34083 msgid ""
34084 "Use L</guestfs_cat> to download small, text only files.  This call is "
34085 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34086 "NUL (C<\\0>) characters.  However the API is very simple to use."
34087 msgstr ""
34088
34089 #. type: textblock
34090 #: ../src/guestfs.pod:269
34091 msgid ""
34092 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34093 "bit data, since it returns a (pointer, size) pair.  However it is still "
34094 "limited to \"small\" files, less than 2 MB."
34095 msgstr ""
34096
34097 #. type: textblock
34098 #: ../src/guestfs.pod:273
34099 msgid ""
34100 "L</guestfs_download> can be used to download any file, with no limits on "
34101 "content or size (even files larger than 4 GB)."
34102 msgstr ""
34103
34104 #. type: textblock
34105 #: ../src/guestfs.pod:276
34106 msgid ""
34107 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34108 msgstr ""
34109
34110 #. type: =head2
34111 #: ../src/guestfs.pod:279
34112 msgid "UPLOADING"
34113 msgstr ""
34114
34115 #. type: textblock
34116 #: ../src/guestfs.pod:281
34117 msgid ""
34118 "It's often the case that you want to write a file or files to the disk image."
34119 msgstr ""
34120
34121 #. type: textblock
34122 #: ../src/guestfs.pod:284
34123 msgid ""
34124 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34125 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34126 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34127 "of other functions for creating test files, for example L</guestfs_fill> and "
34128 "L</guestfs_fill_pattern>."
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs.pod:290
34133 msgid ""
34134 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34135 "file content or size (even files larger than 4 GB)."
34136 msgstr ""
34137
34138 #. type: textblock
34139 #: ../src/guestfs.pod:293
34140 msgid ""
34141 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34142 msgstr ""
34143
34144 #. type: textblock
34145 #: ../src/guestfs.pod:295
34146 msgid ""
34147 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34148 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34149 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34150 "in a predictable way (eg. adding it last after all other drives) then you "
34151 "can get the device name from L</guestfs_list_devices> and mount it directly "
34152 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34153 "portable between kernel versions, and they don't support labels or UUIDs.  "
34154 "If you want to pre-build an image or you need to mount it using a label or "
34155 "UUID, use an ISO image instead."
34156 msgstr ""
34157
34158 #. type: =head2
34159 #: ../src/guestfs.pod:306
34160 msgid "COPYING"
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:308
34165 msgid ""
34166 "There are various different commands for copying between files and devices "
34167 "and in and out of the guest filesystem.  These are summarised in the table "
34168 "below."
34169 msgstr ""
34170
34171 #. type: =item
34172 #: ../src/guestfs.pod:314
34173 msgid "B<file> to B<file>"
34174 msgstr ""
34175
34176 #. type: textblock
34177 #: ../src/guestfs.pod:316
34178 msgid ""
34179 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34180 "directories recursively."
34181 msgstr ""
34182
34183 #. type: =item
34184 #: ../src/guestfs.pod:319
34185 msgid "B<file or device> to B<file or device>"
34186 msgstr ""
34187
34188 #. type: textblock
34189 #: ../src/guestfs.pod:321
34190 msgid ""
34191 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
34192 "devices in the guest."
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:324
34197 msgid "Example: duplicate the contents of an LV:"
34198 msgstr ""
34199
34200 #. type: verbatim
34201 #: ../src/guestfs.pod:326
34202 #, no-wrap
34203 msgid ""
34204 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34205 "\n"
34206 msgstr ""
34207
34208 #. type: textblock
34209 #: ../src/guestfs.pod:328
34210 msgid ""
34211 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34212 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
34213 "guestfs_copy_size>."
34214 msgstr ""
34215
34216 #. type: =item
34217 #: ../src/guestfs.pod:332
34218 msgid "B<file on the host> to B<file or device>"
34219 msgstr ""
34220
34221 #. type: textblock
34222 #: ../src/guestfs.pod:334
34223 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34224 msgstr ""
34225
34226 #. type: =item
34227 #: ../src/guestfs.pod:336
34228 msgid "B<file or device> to B<file on the host>"
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs.pod:338
34233 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34234 msgstr ""
34235
34236 #. type: =head2
34237 #: ../src/guestfs.pod:342
34238 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs.pod:344
34243 msgid ""
34244 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34245 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34246 "appears you can only upload and download to files.  However many Un*x-like "
34247 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34248 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34249 "and arbitrary file descriptor N."
34250 msgstr ""
34251
34252 #. type: textblock
34253 #: ../src/guestfs.pod:352
34254 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34255 msgstr ""
34256
34257 #. type: verbatim
34258 #: ../src/guestfs.pod:355
34259 #, no-wrap
34260 msgid ""
34261 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34262 "\n"
34263 msgstr ""
34264
34265 #. type: textblock
34266 #: ../src/guestfs.pod:357
34267 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34268 msgstr ""
34269
34270 #. type: verbatim
34271 #: ../src/guestfs.pod:359
34272 #, no-wrap
34273 msgid ""
34274 " char devfd[64];\n"
34275 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34276 " guestfs_tar_out (g, \"/\", devfd);\n"
34277 "\n"
34278 msgstr ""
34279
34280 #. type: =head2
34281 #: ../src/guestfs.pod:363
34282 msgid "LISTING FILES"
34283 msgstr ""
34284
34285 #. type: textblock
34286 #: ../src/guestfs.pod:365
34287 msgid ""
34288 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34289 "L<guestfish(1)>-equivalent command C<ll>)."
34290 msgstr ""
34291
34292 #. type: textblock
34293 #: ../src/guestfs.pod:368
34294 msgid ""
34295 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34296 "programs, as a flat list of strings."
34297 msgstr ""
34298
34299 #. type: textblock
34300 #: ../src/guestfs.pod:371
34301 msgid ""
34302 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34303 "directory, plus additional information about each one.  It is more "
34304 "equivalent to using the L<readdir(3)> call on a local filesystem."
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:375
34309 msgid ""
34310 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34311 msgstr ""
34312
34313 #. type: =head2
34314 #: ../src/guestfs.pod:378
34315 msgid "RUNNING COMMANDS"
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs.pod:380
34320 msgid ""
34321 "Although libguestfs is primarily an API for manipulating files inside guest "
34322 "images, we also provide some limited facilities for running commands inside "
34323 "guests."
34324 msgstr ""
34325
34326 #. type: textblock
34327 #: ../src/guestfs.pod:384
34328 msgid "There are many limitations to this:"
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:390
34333 msgid ""
34334 "The kernel version that the command runs under will be different from what "
34335 "it expects."
34336 msgstr ""
34337
34338 #. type: textblock
34339 #: ../src/guestfs.pod:395
34340 msgid ""
34341 "If the command needs to communicate with daemons, then most likely they "
34342 "won't be running."
34343 msgstr ""
34344
34345 #. type: textblock
34346 #: ../src/guestfs.pod:400
34347 msgid "The command will be running in limited memory."
34348 msgstr ""
34349
34350 #. type: textblock
34351 #: ../src/guestfs.pod:404
34352 msgid ""
34353 "The network may not be available unless you enable it (see L</"
34354 "guestfs_set_network>)."
34355 msgstr ""
34356
34357 #. type: textblock
34358 #: ../src/guestfs.pod:409
34359 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34360 msgstr ""
34361
34362 #. type: textblock
34363 #: ../src/guestfs.pod:413
34364 msgid ""
34365 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34366 msgstr ""
34367
34368 #. type: textblock
34369 #: ../src/guestfs.pod:418
34370 msgid ""
34371 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34372 "See L</SELINUX> in this manpage."
34373 msgstr ""
34374
34375 #. type: textblock
34376 #: ../src/guestfs.pod:423
34377 msgid ""
34378 "I<Security:> It is not safe to run commands from untrusted, possibly "
34379 "malicious guests.  These commands may attempt to exploit your program by "
34380 "sending unexpected output.  They could also try to exploit the Linux kernel "
34381 "or qemu provided by the libguestfs appliance.  They could use the network "
34382 "provided by the libguestfs appliance to bypass ordinary network partitions "
34383 "and firewalls.  They could use the elevated privileges or different SELinux "
34384 "context of your program to their advantage."
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs.pod:432
34389 msgid ""
34390 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34391 "(a script which runs when the guest next boots normally), and to have this "
34392 "script run the commands you want in the normal context of the running guest, "
34393 "network security and so on.  For information about other security issues, "
34394 "see L</SECURITY>."
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:440
34399 msgid ""
34400 "The two main API calls to run commands are L</guestfs_command> and L</"
34401 "guestfs_sh> (there are also variations)."
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:443
34406 msgid ""
34407 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34408 "shell globs, redirections, etc will work."
34409 msgstr ""
34410
34411 #. type: =head2
34412 #: ../src/guestfs.pod:446
34413 msgid "CONFIGURATION FILES"
34414 msgstr ""
34415
34416 #. type: textblock
34417 #: ../src/guestfs.pod:448
34418 msgid ""
34419 "To read and write configuration files in Linux guest filesystems, we "
34420 "strongly recommend using Augeas.  For example, Augeas understands how to "
34421 "read and write, say, a Linux shadow password file or X.org configuration "
34422 "file, and so avoids you having to write that code."
34423 msgstr ""
34424
34425 #. type: textblock
34426 #: ../src/guestfs.pod:453
34427 msgid ""
34428 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34429 "document Augeas itself here because there is excellent documentation on the "
34430 "L<http://augeas.net/> website."
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs.pod:457
34435 msgid ""
34436 "If you don't want to use Augeas (you fool!) then try calling L</"
34437 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34438 "over."
34439 msgstr ""
34440
34441 #. type: =head2
34442 #: ../src/guestfs.pod:461
34443 msgid "SELINUX"
34444 msgstr ""
34445
34446 #. type: textblock
34447 #: ../src/guestfs.pod:463
34448 msgid ""
34449 "We support SELinux guests.  To ensure that labeling happens correctly in "
34450 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34451 msgstr ""
34452
34453 #. type: textblock
34454 #: ../src/guestfs.pod:471
34455 msgid "Before launching, do:"
34456 msgstr ""
34457
34458 #. type: verbatim
34459 #: ../src/guestfs.pod:473
34460 #, no-wrap
34461 msgid ""
34462 " guestfs_set_selinux (g, 1);\n"
34463 "\n"
34464 msgstr ""
34465
34466 #. type: textblock
34467 #: ../src/guestfs.pod:477
34468 msgid ""
34469 "After mounting the guest's filesystem(s), load the policy.  This is best "
34470 "done by running the L<load_policy(8)> command in the guest itself:"
34471 msgstr ""
34472
34473 #. type: verbatim
34474 #: ../src/guestfs.pod:481
34475 #, no-wrap
34476 msgid ""
34477 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34478 "\n"
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:483
34483 msgid ""
34484 "(Older versions of C<load_policy> require you to specify the name of the "
34485 "policy file)."
34486 msgstr ""
34487
34488 #. type: textblock
34489 #: ../src/guestfs.pod:488
34490 msgid ""
34491 "Optionally, set the security context for the API.  The correct security "
34492 "context to use can only be known by inspecting the guest.  As an example:"
34493 msgstr ""
34494
34495 #. type: verbatim
34496 #: ../src/guestfs.pod:492
34497 #, no-wrap
34498 msgid ""
34499 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34500 "\n"
34501 msgstr ""
34502
34503 #. type: textblock
34504 #: ../src/guestfs.pod:496
34505 msgid "This will work for running commands and editing existing files."
34506 msgstr ""
34507
34508 #. type: textblock
34509 #: ../src/guestfs.pod:498
34510 msgid ""
34511 "When new files are created, you may need to label them explicitly, for "
34512 "example by running the external command C<restorecon pathname>."
34513 msgstr ""
34514
34515 #. type: =head2
34516 #: ../src/guestfs.pod:502
34517 msgid "UMASK"
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs.pod:504
34522 msgid ""
34523 "Certain calls are affected by the current file mode creation mask (the "
34524 "\"umask\").  In particular ones which create files or directories, such as "
34525 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34526 "either the default mode that the file is created with or modifies the mode "
34527 "that you supply."
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:510
34532 msgid ""
34533 "The default umask is C<022>, so files are created with modes such as C<0644> "
34534 "and directories with C<0755>."
34535 msgstr ""
34536
34537 #. type: textblock
34538 #: ../src/guestfs.pod:513
34539 msgid ""
34540 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34541 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34542 "guestfs_chmod> after creating each file or directory."
34543 msgstr ""
34544
34545 #. type: textblock
34546 #: ../src/guestfs.pod:517
34547 msgid "For more information about umask, see L<umask(2)>."
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:521
34552 msgid ""
34553 "Libguestfs allows you to access Linux guests which have been encrypted using "
34554 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34555 "standard.  This includes nearly all whole disk encryption systems used by "
34556 "modern Linux guests."
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../src/guestfs.pod:527
34561 msgid ""
34562 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34563 "returns the string C<crypto_LUKS>)."
34564 msgstr ""
34565
34566 #. type: textblock
34567 #: ../src/guestfs.pod:530
34568 msgid ""
34569 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34570 "will require the passphrase!"
34571 msgstr ""
34572
34573 #. type: textblock
34574 #: ../src/guestfs.pod:533
34575 msgid ""
34576 "Opening a LUKS device creates a new device mapper device called C</dev/"
34577 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34578 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
34579 "from and encrypted to the underlying block device respectively."
34580 msgstr ""
34581
34582 #. type: textblock
34583 #: ../src/guestfs.pod:539
34584 msgid ""
34585 "LVM volume groups on the device can be made visible by calling L</"
34586 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
34587 "(s) can now be mounted in the usual way."
34588 msgstr ""
34589
34590 #. type: textblock
34591 #: ../src/guestfs.pod:543
34592 msgid ""
34593 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34594 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34595 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
34596 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34597 "underlying encrypted block device)."
34598 msgstr ""
34599
34600 #. type: =head2
34601 #: ../src/guestfs.pod:550
34602 msgid "INSPECTION"
34603 msgstr ""
34604
34605 #. type: textblock
34606 #: ../src/guestfs.pod:552
34607 msgid ""
34608 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34609 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34610 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34611 "version 1.5.3 the most frequently used part of this library has been "
34612 "rewritten in C and moved into the core code)."
34613 msgstr ""
34614
34615 #. type: textblock
34616 #: ../src/guestfs.pod:559
34617 msgid ""
34618 "Add all disks belonging to the unknown virtual machine and call L</"
34619 "guestfs_launch> in the usual way."
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:562
34624 msgid ""
34625 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34626 "and certain heuristics, and returns a list of operating systems that were "
34627 "found.  An empty list means none were found.  A single element is the root "
34628 "filesystem of the operating system.  For dual- or multi-boot guests, "
34629 "multiple roots can be returned, each one corresponding to a separate "
34630 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34631 "world of virtualization, but since this scenario can happen, we have built "
34632 "libguestfs to deal with it.)"
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs.pod:571
34637 msgid ""
34638 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34639 "to get additional details about that operating system.  For example, call L</"
34640 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34641 "Windows and Linux-based operating systems respectively."
34642 msgstr ""
34643
34644 #. type: textblock
34645 #: ../src/guestfs.pod:577
34646 msgid ""
34647 "Un*x-like and Linux-based operating systems usually consist of several "
34648 "filesystems which are mounted at boot time (for example, a separate boot "
34649 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34650 "filesystems correspond to mount points.  Call "
34651 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34652 "hash table like this example:"
34653 msgstr ""
34654
34655 #. type: verbatim
34656 #: ../src/guestfs.pod:584
34657 #, no-wrap
34658 msgid ""
34659 " /boot => /dev/sda1\n"
34660 " /     => /dev/vg_guest/lv_root\n"
34661 " /usr  => /dev/vg_guest/lv_usr\n"
34662 "\n"
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs.pod:588
34667 msgid ""
34668 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34669 "filesystems as suggested."
34670 msgstr ""
34671
34672 #. type: textblock
34673 #: ../src/guestfs.pod:591
34674 msgid ""
34675 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34676 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
34677 msgstr ""
34678
34679 #. type: textblock
34680 #: ../src/guestfs.pod:595
34681 msgid ""
34682 "Inspection currently only works for some common operating systems.  "
34683 "Contributors are welcome to send patches for other operating systems that we "
34684 "currently cannot detect."
34685 msgstr ""
34686
34687 #. type: textblock
34688 #: ../src/guestfs.pod:599
34689 msgid ""
34690 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34691 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34692 "encrypted devices."
34693 msgstr ""
34694
34695 #. type: textblock
34696 #: ../src/guestfs.pod:603
34697 msgid ""
34698 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34699 "inspection and caches the results in the guest handle.  Subsequent calls to "
34700 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34701 "read the disks.  If you change the content of the guest disks, you can redo "
34702 "inspection by calling L</guestfs_inspect_os> again.  (L</"
34703 "guestfs_inspect_list_applications> works a little differently from the other "
34704 "calls and does read the disks.  See documentation for that function for "
34705 "details)."
34706 msgstr ""
34707
34708 #. type: =head3
34709 #: ../src/guestfs.pod:612
34710 msgid "INSPECTING INSTALL DISKS"
34711 msgstr ""
34712
34713 #. type: textblock
34714 #: ../src/guestfs.pod:614
34715 msgid ""
34716 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34717 "CDs and more."
34718 msgstr ""
34719
34720 #. type: textblock
34721 #: ../src/guestfs.pod:617
34722 msgid ""
34723 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34724 "system, which currently can be C<installed> (a regular operating system) or "
34725 "C<installer> (some sort of install disk)."
34726 msgstr ""
34727
34728 #. type: textblock
34729 #: ../src/guestfs.pod:621
34730 msgid ""
34731 "Further information is available about the operating system that can be "
34732 "installed using the regular inspection APIs like L</"
34733 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34734 msgstr ""
34735
34736 #. type: textblock
34737 #: ../src/guestfs.pod:626
34738 msgid ""
34739 "Some additional information specific to installer disks is also available "
34740 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34741 "guestfs_inspect_is_multipart> calls."
34742 msgstr ""
34743
34744 #. type: =head2
34745 #: ../src/guestfs.pod:631
34746 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34747 msgstr ""
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:633
34751 msgid ""
34752 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34753 "ntfs-3g.org/> driver."
34754 msgstr ""
34755
34756 #. type: =head3
34757 #: ../src/guestfs.pod:636
34758 msgid "DRIVE LETTERS AND PATHS"
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:638
34763 msgid ""
34764 "DOS and Windows still use drive letters, and the filesystems are always "
34765 "treated as case insensitive by Windows itself, and therefore you might find "
34766 "a Windows configuration file referring to a path like C<c:\\windows"
34767 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34768 "might be referred to as C</WINDOWS/System32>."
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:644
34773 msgid ""
34774 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34775 "L</guestfs_inspect_get_drive_mappings>)"
34776 msgstr ""
34777
34778 #. type: textblock
34779 #: ../src/guestfs.pod:647
34780 msgid ""
34781 "Dealing with separator characters (backslash vs forward slash) is outside "
34782 "the scope of libguestfs, but usually a simple character replacement will "
34783 "work."
34784 msgstr ""
34785
34786 #. type: textblock
34787 #: ../src/guestfs.pod:651
34788 msgid ""
34789 "To resolve the case insensitivity of paths, call L</"
34790 "guestfs_case_sensitive_path>."
34791 msgstr ""
34792
34793 #. type: =head3
34794 #: ../src/guestfs.pod:654
34795 msgid "ACCESSING THE WINDOWS REGISTRY"
34796 msgstr ""
34797
34798 #. type: textblock
34799 #: ../src/guestfs.pod:656
34800 msgid ""
34801 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34802 "files, through the library C<hivex> which is part of the libguestfs project "
34803 "although ships as a separate tarball.  You have to locate and download the "
34804 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34805 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34806 "reg(1)> for more help on this issue."
34807 msgstr ""
34808
34809 #. type: =head3
34810 #: ../src/guestfs.pod:664
34811 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34812 msgstr ""
34813
34814 #. type: textblock
34815 #: ../src/guestfs.pod:666
34816 msgid ""
34817 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34818 "provide something which looks like a Linux symlink.  The way it tries to do "
34819 "the rewriting is described here:"
34820 msgstr ""
34821
34822 #. type: textblock
34823 #: ../src/guestfs.pod:670
34824 msgid ""
34825 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34826 "symbolic-links/>"
34827 msgstr ""
34828
34829 #. type: textblock
34830 #: ../src/guestfs.pod:672
34831 msgid ""
34832 "The essential problem is that ntfs-3g simply does not have enough "
34833 "information to do a correct job.  NTFS links can contain drive letters and "
34834 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34835 "It is almost certainly the case that libguestfs callers should ignore what "
34836 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34837 msgstr ""
34838
34839 #. type: textblock
34840 #: ../src/guestfs.pod:679
34841 msgid ""
34842 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34843 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34844 "attribute, and read the raw reparse data from that (you can find the format "
34845 "documented in various places around the web)."
34846 msgstr ""
34847
34848 #. type: =head3
34849 #: ../src/guestfs.pod:684
34850 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:686
34855 msgid ""
34856 "There are other useful extended attributes that can be read from ntfs-3g "
34857 "filesystems (using L</guestfs_getxattr>).  See:"
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:689
34862 msgid ""
34863 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34864 msgstr ""
34865
34866 #. type: =head2
34867 #: ../src/guestfs.pod:691
34868 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34869 msgstr ""
34870
34871 #. type: textblock
34872 #: ../src/guestfs.pod:693
34873 msgid ""
34874 "Although we don't want to discourage you from using the C API, we will "
34875 "mention here that the same API is also available in other languages."
34876 msgstr ""
34877
34878 #. type: textblock
34879 #: ../src/guestfs.pod:696
34880 msgid ""
34881 "The API is broadly identical in all supported languages.  This means that "
34882 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34883 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34884 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34885 "each language."
34886 msgstr ""
34887
34888 #. type: textblock
34889 #: ../src/guestfs.pod:702
34890 msgid ""
34891 "Error messages are automatically transformed into exceptions if the language "
34892 "supports it."
34893 msgstr ""
34894
34895 #. type: textblock
34896 #: ../src/guestfs.pod:705
34897 msgid ""
34898 "We don't try to \"object orientify\" parts of the API in OO languages, "
34899 "although contributors are welcome to write higher level APIs above what we "
34900 "provide in their favourite languages if they wish."
34901 msgstr ""
34902
34903 #. type: =item
34904 #: ../src/guestfs.pod:711
34905 msgid "B<C++>"
34906 msgstr ""
34907
34908 #. type: textblock
34909 #: ../src/guestfs.pod:713
34910 msgid ""
34911 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34912 "identical to the C API.  C++ classes and exceptions are not used."
34913 msgstr ""
34914
34915 #. type: =item
34916 #: ../src/guestfs.pod:717
34917 msgid "B<C#>"
34918 msgstr ""
34919
34920 #. type: textblock
34921 #: ../src/guestfs.pod:719
34922 msgid ""
34923 "The C# bindings are highly experimental.  Please read the warnings at the "
34924 "top of C<csharp/Libguestfs.cs>."
34925 msgstr ""
34926
34927 #. type: =item
34928 #: ../src/guestfs.pod:722
34929 msgid "B<Erlang>"
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:724
34934 msgid "See L<guestfs-erlang(3)>."
34935 msgstr ""
34936
34937 #. type: =item
34938 #: ../src/guestfs.pod:726
34939 msgid "B<Haskell>"
34940 msgstr ""
34941
34942 #. type: textblock
34943 #: ../src/guestfs.pod:728
34944 msgid ""
34945 "This is the only language binding that is working but incomplete.  Only "
34946 "calls which return simple integers have been bound in Haskell, and we are "
34947 "looking for help to complete this binding."
34948 msgstr ""
34949
34950 #. type: =item
34951 #: ../src/guestfs.pod:732
34952 msgid "B<Java>"
34953 msgstr ""
34954
34955 #. type: textblock
34956 #: ../src/guestfs.pod:734
34957 msgid ""
34958 "Full documentation is contained in the Javadoc which is distributed with "
34959 "libguestfs.  For examples, see L<guestfs-java(3)>."
34960 msgstr ""
34961
34962 #. type: =item
34963 #: ../src/guestfs.pod:737
34964 msgid "B<OCaml>"
34965 msgstr ""
34966
34967 #. type: textblock
34968 #: ../src/guestfs.pod:739
34969 msgid "See L<guestfs-ocaml(3)>."
34970 msgstr ""
34971
34972 #. type: =item
34973 #: ../src/guestfs.pod:741
34974 msgid "B<Perl>"
34975 msgstr ""
34976
34977 #. type: textblock
34978 #: ../src/guestfs.pod:743
34979 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34980 msgstr ""
34981
34982 #. type: =item
34983 #: ../src/guestfs.pod:745
34984 msgid "B<PHP>"
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:747
34989 msgid ""
34990 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34991 "the php-libguestfs package for your distribution."
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:750
34996 msgid "The PHP binding only works correctly on 64 bit machines."
34997 msgstr ""
34998
34999 #. type: =item
35000 #: ../src/guestfs.pod:752
35001 msgid "B<Python>"
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:754
35006 msgid "See L<guestfs-python(3)>."
35007 msgstr ""
35008
35009 #. type: =item
35010 #: ../src/guestfs.pod:756
35011 msgid "B<Ruby>"
35012 msgstr ""
35013
35014 #. type: textblock
35015 #: ../src/guestfs.pod:758
35016 msgid "See L<guestfs-ruby(3)>."
35017 msgstr ""
35018
35019 #. type: =item
35020 #: ../src/guestfs.pod:760
35021 msgid "B<shell scripts>"
35022 msgstr ""
35023
35024 #. type: textblock
35025 #: ../src/guestfs.pod:762
35026 msgid "See L<guestfish(1)>."
35027 msgstr ""
35028
35029 #. type: =head2
35030 #: ../src/guestfs.pod:766
35031 msgid "LIBGUESTFS GOTCHAS"
35032 msgstr ""
35033
35034 #. type: textblock
35035 #: ../src/guestfs.pod:768
35036 msgid ""
35037 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35038 "system [...] that works in the way it is documented but is counterintuitive "
35039 "and almost invites mistakes.\""
35040 msgstr ""
35041
35042 #. type: textblock
35043 #: ../src/guestfs.pod:772
35044 msgid ""
35045 "Since we developed libguestfs and the associated tools, there are several "
35046 "things we would have designed differently, but are now stuck with for "
35047 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35048 "release, you can expect these to change.  Beware of them."
35049 msgstr ""
35050
35051 #. type: =item
35052 #: ../src/guestfs.pod:780
35053 msgid "Autosync / forgetting to sync."
35054 msgstr ""
35055
35056 #. type: textblock
35057 #: ../src/guestfs.pod:782
35058 msgid ""
35059 "I<Update:> Autosync is enabled by default for all API users starting from "
35060 "libguestfs 1.5.24.  This section only applies to older versions."
35061 msgstr ""
35062
35063 #. type: textblock
35064 #: ../src/guestfs.pod:785
35065 msgid ""
35066 "When modifying a filesystem from C or another language, you B<must> unmount "
35067 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35068 "libguestfs handle.  You can also call:"
35069 msgstr ""
35070
35071 #. type: verbatim
35072 #: ../src/guestfs.pod:789
35073 #, no-wrap
35074 msgid ""
35075 " guestfs_set_autosync (g, 1);\n"
35076 "\n"
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs.pod:791
35081 msgid ""
35082 "to have the unmount/sync done automatically for you when the handle 'g' is "
35083 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35084 msgstr ""
35085
35086 #. type: textblock
35087 #: ../src/guestfs.pod:795
35088 msgid ""
35089 "If you forget to do this, then it is entirely possible that your changes "
35090 "won't be written out, or will be partially written, or (very rarely) that "
35091 "you'll get disk corruption."
35092 msgstr ""
35093
35094 #. type: textblock
35095 #: ../src/guestfs.pod:799
35096 msgid ""
35097 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35098 "guestfish scripts that forget to sync will work just fine, which can make "
35099 "this very puzzling if you are trying to debug a problem."
35100 msgstr ""
35101
35102 #. type: =item
35103 #: ../src/guestfs.pod:803
35104 msgid "Mount option C<-o sync> should not be the default."
35105 msgstr ""
35106
35107 #. type: textblock
35108 #: ../src/guestfs.pod:805
35109 msgid ""
35110 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35111 "libguestfs 1.13.16.  This section only applies to older versions."
35112 msgstr ""
35113
35114 #. type: textblock
35115 #: ../src/guestfs.pod:808
35116 msgid ""
35117 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35118 "However C<-o sync> does not add any reliability benefit, but does have a "
35119 "very large performance impact."
35120 msgstr ""
35121
35122 #. type: textblock
35123 #: ../src/guestfs.pod:812
35124 msgid ""
35125 "The work around is to use L</guestfs_mount_options> and set the mount "
35126 "options that you actually want to use."
35127 msgstr ""
35128
35129 #. type: =item
35130 #: ../src/guestfs.pod:815
35131 msgid "Read-only should be the default."
35132 msgstr ""
35133
35134 #. type: textblock
35135 #: ../src/guestfs.pod:817
35136 msgid ""
35137 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35138 "specify I<--rw> if you want to make changes to the image."
35139 msgstr ""
35140
35141 #. type: textblock
35142 #: ../src/guestfs.pod:820
35143 msgid "This would reduce the potential to corrupt live VM images."
35144 msgstr ""
35145
35146 #. type: textblock
35147 #: ../src/guestfs.pod:822
35148 msgid ""
35149 "Note that many filesystems change the disk when you just mount and unmount, "
35150 "even if you didn't perform any writes.  You need to use L</"
35151 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35152 msgstr ""
35153
35154 #. type: =item
35155 #: ../src/guestfs.pod:826
35156 msgid "guestfish command line is hard to use."
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:828
35161 msgid ""
35162 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35163 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35164 "exist, so it fails.  In earlier versions of guestfish the error message was "
35165 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35166 "we should have used C<guestfish -c command> to run commands."
35167 msgstr ""
35168
35169 #. type: =item
35170 #: ../src/guestfs.pod:835
35171 msgid "guestfish megabyte modifiers don't work right on all commands"
35172 msgstr ""
35173
35174 #. type: textblock
35175 #: ../src/guestfs.pod:837
35176 msgid ""
35177 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35178 "other modifiers).  What guestfish actually does is to multiply the number "
35179 "part by the modifier part and pass the result to the C API.  However this "
35180 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35181 "expecting some other unit (eg. megabytes)."
35182 msgstr ""
35183
35184 #. type: textblock
35185 #: ../src/guestfs.pod:844
35186 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35187 msgstr ""
35188
35189 #. type: verbatim
35190 #: ../src/guestfs.pod:846
35191 #, no-wrap
35192 msgid ""
35193 " lvcreate LV VG 100M\n"
35194 "\n"
35195 msgstr ""
35196
35197 #. type: textblock
35198 #: ../src/guestfs.pod:848
35199 msgid ""
35200 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35201 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35202 "megabytes * megabytes) logical volume.  The error message you get from this "
35203 "is also a little obscure."
35204 msgstr ""
35205
35206 #. type: textblock
35207 #: ../src/guestfs.pod:853
35208 msgid ""
35209 "This could be fixed in the generator by specially marking parameters and "
35210 "return values which take bytes or other units."
35211 msgstr ""
35212
35213 #. type: =item
35214 #: ../src/guestfs.pod:856
35215 msgid "Ambiguity between devices and paths"
35216 msgstr ""
35217
35218 #. type: textblock
35219 #: ../src/guestfs.pod:858
35220 msgid ""
35221 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35222 "sdb2>) and a similar pathname.  A file might just happen to be called "
35223 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35224 msgstr ""
35225
35226 #. type: textblock
35227 #: ../src/guestfs.pod:863
35228 msgid ""
35229 "In the current API we usually resolve this ambiguity by having two separate "
35230 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35231 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35232 "detecting if the path supplied begins with C</dev/>."
35233 msgstr ""
35234
35235 #. type: textblock
35236 #: ../src/guestfs.pod:869
35237 msgid ""
35238 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35239 "make paths/devices into structured names.  One way to do this would be to "
35240 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35241 "aspect of grub.  Another way would be to use a structured type, equivalent "
35242 "to this OCaml type:"
35243 msgstr ""
35244
35245 #. type: verbatim
35246 #: ../src/guestfs.pod:875
35247 #, no-wrap
35248 msgid ""
35249 " type path = Path of string | Device of int | Partition of int * int\n"
35250 "\n"
35251 msgstr ""
35252
35253 #. type: textblock
35254 #: ../src/guestfs.pod:877
35255 msgid "which would allow you to pass arguments like:"
35256 msgstr ""
35257
35258 #. type: verbatim
35259 #: ../src/guestfs.pod:879
35260 #, no-wrap
35261 msgid ""
35262 " Path \"/foo/bar\"\n"
35263 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35264 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35265 " Path \"/dev/sdb2\"    (* not a device *)\n"
35266 "\n"
35267 msgstr ""
35268
35269 #. type: textblock
35270 #: ../src/guestfs.pod:884
35271 msgid ""
35272 "As you can see there are still problems to resolve even with this "
35273 "representation.  Also consider how it might work in guestfish."
35274 msgstr ""
35275
35276 #. type: =head2
35277 #: ../src/guestfs.pod:889
35278 msgid "KEYS AND PASSPHRASES"
35279 msgstr ""
35280
35281 #. type: textblock
35282 #: ../src/guestfs.pod:891
35283 msgid ""
35284 "Certain libguestfs calls take a parameter that contains sensitive key "
35285 "material, passed in as a C string."
35286 msgstr ""
35287
35288 #. type: textblock
35289 #: ../src/guestfs.pod:894
35290 msgid ""
35291 "In the future we would hope to change the libguestfs implementation so that "
35292 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35293 "swap.  However this is I<not> done at the moment, because of the complexity "
35294 "of such an implementation."
35295 msgstr ""
35296
35297 #. type: textblock
35298 #: ../src/guestfs.pod:899
35299 msgid ""
35300 "Therefore you should be aware that any key parameter you pass to libguestfs "
35301 "might end up being written out to the swap partition.  If this is a concern, "
35302 "scrub the swap partition or don't use libguestfs on encrypted devices."
35303 msgstr ""
35304
35305 #. type: =head2
35306 #: ../src/guestfs.pod:904
35307 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35308 msgstr ""
35309
35310 #. type: textblock
35311 #: ../src/guestfs.pod:906
35312 msgid ""
35313 "All high-level libguestfs actions are synchronous.  If you want to use "
35314 "libguestfs asynchronously then you must create a thread."
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs.pod:909
35319 msgid ""
35320 "Only use the handle from a single thread.  Either use the handle exclusively "
35321 "from one thread, or provide your own mutex so that two threads cannot issue "
35322 "calls on the same handle at the same time."
35323 msgstr ""
35324
35325 #. type: textblock
35326 #: ../src/guestfs.pod:913
35327 msgid ""
35328 "See the graphical program guestfs-browser for one possible architecture for "
35329 "multithreaded programs using libvirt and libguestfs."
35330 msgstr ""
35331
35332 #. type: =head2
35333 #: ../src/guestfs.pod:916
35334 msgid "PATH"
35335 msgstr ""
35336
35337 #. type: textblock
35338 #: ../src/guestfs.pod:918
35339 msgid ""
35340 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35341 "internal path."
35342 msgstr ""
35343
35344 #. type: textblock
35345 #: ../src/guestfs.pod:921
35346 msgid ""
35347 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35348 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35349 msgstr ""
35350
35351 #. type: textblock
35352 #: ../src/guestfs.pod:924
35353 msgid ""
35354 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35355 "to change the directories that libguestfs will search in.  The value is a "
35356 "colon-separated list of paths.  The current directory is I<not> searched "
35357 "unless the path contains an empty element or C<.>.  For example "
35358 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35359 "then C</usr/lib/guestfs>."
35360 msgstr ""
35361
35362 #. type: =head2
35363 #: ../src/guestfs.pod:931
35364 msgid "QEMU WRAPPERS"
35365 msgstr ""
35366
35367 #. type: textblock
35368 #: ../src/guestfs.pod:933
35369 msgid ""
35370 "If you want to compile your own qemu, run qemu from a non-standard location, "
35371 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35372 "around qemu."
35373 msgstr ""
35374
35375 #. type: textblock
35376 #: ../src/guestfs.pod:937
35377 msgid ""
35378 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35379 "last command in the shell script (so that qemu replaces the shell and "
35380 "becomes the direct child of the libguestfs-using program).  If you don't do "
35381 "this, then the qemu process won't be cleaned up correctly."
35382 msgstr ""
35383
35384 #. type: textblock
35385 #: ../src/guestfs.pod:942
35386 msgid ""
35387 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35388 "source:"
35389 msgstr ""
35390
35391 #. type: verbatim
35392 #: ../src/guestfs.pod:945
35393 #, no-wrap
35394 msgid ""
35395 " #!/bin/sh -\n"
35396 " qemudir=/home/rjones/d/qemu\n"
35397 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35398 "\n"
35399 msgstr ""
35400
35401 #. type: textblock
35402 #: ../src/guestfs.pod:949
35403 msgid ""
35404 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35405 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35406 "example:"
35407 msgstr ""
35408
35409 #. type: verbatim
35410 #: ../src/guestfs.pod:953
35411 #, no-wrap
35412 msgid ""
35413 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35414 "\n"
35415 msgstr ""
35416
35417 #. type: textblock
35418 #: ../src/guestfs.pod:955
35419 msgid ""
35420 "Note that libguestfs also calls qemu with the -help and -version options in "
35421 "order to determine features."
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:958
35426 msgid ""
35427 "Wrappers can also be used to edit the options passed to qemu.  In the "
35428 "following example, the C<-machine ...> option (C<-machine> and the following "
35429 "argument) are removed from the command line and replaced with C<-machine pc,"
35430 "accel=tcg>.  The while loop iterates over the options until it finds the "
35431 "right one to remove, putting the remaining options into the C<args> array."
35432 msgstr ""
35433
35434 #. type: verbatim
35435 #: ../src/guestfs.pod:967
35436 #, no-wrap
35437 msgid ""
35438 " i=0\n"
35439 " while [ $# -gt 0 ]; do\n"
35440 "     case \"$1\" in\n"
35441 "     -machine)\n"
35442 "         shift 2;;\n"
35443 "     *)\n"
35444 "         args[i]=\"$1\"\n"
35445 "         (( i++ ))\n"
35446 "         shift ;;\n"
35447 "     esac\n"
35448 " done\n"
35449 " \n"
35450 msgstr ""
35451
35452 #. type: verbatim
35453 #: ../src/guestfs.pod:979
35454 #, no-wrap
35455 msgid ""
35456 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35457 "\n"
35458 msgstr ""
35459
35460 #. type: =head2
35461 #: ../src/guestfs.pod:981
35462 msgid "ATTACHING TO RUNNING DAEMONS"
35463 msgstr ""
35464
35465 #. type: textblock
35466 #: ../src/guestfs.pod:983
35467 msgid ""
35468 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35469 "babies.  Use with caution."
35470 msgstr ""
35471
35472 #. type: textblock
35473 #: ../src/guestfs.pod:986
35474 msgid ""
35475 "I<Note (2):> This section explains how to attach to a running daemon from a "
35476 "low level perspective.  For most users, simply using virt tools such as "
35477 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35478 msgstr ""
35479
35480 #. type: =head3
35481 #: ../src/guestfs.pod:990
35482 msgid "Using guestfs_set_attach_method"
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:992
35487 msgid ""
35488 "By calling L</guestfs_set_attach_method> you can change how the library "
35489 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35490 "ARCHITECTURE> for some background)."
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:996
35495 msgid ""
35496 "The normal attach method is C<appliance>, where a small appliance is created "
35497 "containing the daemon, and then the library connects to this."
35498 msgstr ""
35499
35500 #. type: textblock
35501 #: ../src/guestfs.pod:999
35502 msgid ""
35503 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35504 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35505 "daemon over the Unix domain socket."
35506 msgstr ""
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:1003
35510 msgid ""
35511 "The normal use for this is to connect to a running virtual machine that "
35512 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35513 "files inside the live virtual machine."
35514 msgstr ""
35515
35516 #. type: =head3
35517 #: ../src/guestfs.pod:1007
35518 msgid "Using guestfs_add_domain with live flag"
35519 msgstr ""
35520
35521 #. type: textblock
35522 #: ../src/guestfs.pod:1009
35523 msgid ""
35524 "L</guestfs_add_domain> provides some help for getting the correct attach "
35525 "method.  If you pass the C<live> option to this function, then (if the "
35526 "virtual machine is running) it will examine the libvirt XML looking for a "
35527 "virtio-serial channel to connect to:"
35528 msgstr ""
35529
35530 #. type: verbatim
35531 #: ../src/guestfs.pod:1015
35532 #, no-wrap
35533 msgid ""
35534 " <domain>\n"
35535 "   ...\n"
35536 "   <devices>\n"
35537 "     ...\n"
35538 "     <channel type='unix'>\n"
35539 "       <source mode='bind' path='/path/to/socket'/>\n"
35540 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35541 "     </channel>\n"
35542 "     ...\n"
35543 "   </devices>\n"
35544 " </domain>\n"
35545 "\n"
35546 msgstr ""
35547
35548 #. type: textblock
35549 #: ../src/guestfs.pod:1027
35550 msgid ""
35551 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35552 "method to C<unix:/path/to/socket>."
35553 msgstr ""
35554
35555 #. type: textblock
35556 #: ../src/guestfs.pod:1030
35557 msgid ""
35558 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35559 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35560 "to attach to and modify live virtual machines."
35561 msgstr ""
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:1034
35565 msgid ""
35566 "The virtual machine needs to have been set up beforehand so that it has the "
35567 "virtio-serial channel and so that guestfsd is running inside it."
35568 msgstr ""
35569
35570 #. type: =head2
35571 #: ../src/guestfs.pod:1038
35572 msgid "ABI GUARANTEE"
35573 msgstr ""
35574
35575 #. type: textblock
35576 #: ../src/guestfs.pod:1040
35577 msgid ""
35578 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35579 "actions as outlined in this section.  Although we will deprecate some "
35580 "actions, for example if they get replaced by newer calls, we will keep the "
35581 "old actions forever.  This allows you the developer to program in confidence "
35582 "against the libguestfs API."
35583 msgstr ""
35584
35585 #. type: =head2
35586 #: ../src/guestfs.pod:1046
35587 msgid "BLOCK DEVICE NAMING"
35588 msgstr ""
35589
35590 #. type: textblock
35591 #: ../src/guestfs.pod:1048
35592 msgid ""
35593 "In the kernel there is now quite a profusion of schemata for naming block "
35594 "devices (in this context, by I<block device> I mean a physical or virtual "
35595 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
35596 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
35597 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
35598 "for the old IDE driver (particularly for SATA devices) those devices also "
35599 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
35600 "paravirtualized drivers.  This has created several different naming systems, "
35601 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35602 msgstr ""
35603
35604 #. type: textblock
35605 #: ../src/guestfs.pod:1060
35606 msgid ""
35607 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35608 "Linux kernel to access block devices.  We can run a variety of appliances "
35609 "based on a variety of Linux kernels."
35610 msgstr ""
35611
35612 #. type: textblock
35613 #: ../src/guestfs.pod:1064
35614 msgid ""
35615 "This causes a problem for libguestfs because many API calls use device or "
35616 "partition names.  Working scripts and the recipe (example) scripts that we "
35617 "make available over the internet could fail if the naming scheme changes."
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:1069
35622 msgid ""
35623 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35624 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35625 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35626 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:1075
35631 msgid ""
35632 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35633 "L</guestfs_list_partitions> and similar calls return the true names of the "
35634 "devices and partitions as known to the appliance."
35635 msgstr ""
35636
35637 #. type: =head3
35638 #: ../src/guestfs.pod:1080
35639 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35640 msgstr ""
35641
35642 #. type: textblock
35643 #: ../src/guestfs.pod:1082
35644 msgid ""
35645 "Usually this translation is transparent.  However in some (very rare)  cases "
35646 "you may need to know the exact algorithm.  Such cases include where you use "
35647 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35648 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:1088
35653 msgid ""
35654 "The algorithm is applied only to I<parameters> which are known to be either "
35655 "device or partition names.  Return values from functions such as L</"
35656 "guestfs_list_devices> are never changed."
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:1096
35661 msgid "Is the string a parameter which is a device or partition name?"
35662 msgstr ""
35663
35664 #. type: textblock
35665 #: ../src/guestfs.pod:1100
35666 msgid "Does the string begin with C</dev/sd>?"
35667 msgstr ""
35668
35669 #. type: textblock
35670 #: ../src/guestfs.pod:1104
35671 msgid ""
35672 "Does the named device exist? If so, we use that device.  However if I<not> "
35673 "then we continue with this algorithm."
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:1109
35678 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:1111
35683 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35684 msgstr ""
35685
35686 #. type: textblock
35687 #: ../src/guestfs.pod:1113
35688 msgid "If that named device exists, use it.  If not, continue."
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:1117
35693 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:1119
35698 msgid "If that named device exists, use it.  If not, return an error."
35699 msgstr ""
35700
35701 #. type: =head3
35702 #: ../src/guestfs.pod:1123
35703 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35704 msgstr ""
35705
35706 #. type: textblock
35707 #: ../src/guestfs.pod:1125
35708 msgid ""
35709 "Although the standard naming scheme and automatic translation is useful for "
35710 "simple programs and guestfish scripts, for larger programs it is best not to "
35711 "rely on this mechanism."
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:1129
35716 msgid ""
35717 "Where possible for maximum future portability programs using libguestfs "
35718 "should use these future-proof techniques:"
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:1136
35723 msgid ""
35724 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35725 "device names, and then use those names directly."
35726 msgstr ""
35727
35728 #. type: textblock
35729 #: ../src/guestfs.pod:1139
35730 msgid ""
35731 "Since those device names exist by definition, they will never be translated."
35732 msgstr ""
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:1144
35736 msgid ""
35737 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35738 "filesystem labels."
35739 msgstr ""
35740
35741 #. type: textblock
35742 #: ../src/guestfs.pod:1151
35743 msgid ""
35744 "This section discusses security implications of using libguestfs, "
35745 "particularly with untrusted or malicious guests or disk images."
35746 msgstr ""
35747
35748 #. type: =head2
35749 #: ../src/guestfs.pod:1154
35750 msgid "GENERAL SECURITY CONSIDERATIONS"
35751 msgstr ""
35752
35753 #. type: textblock
35754 #: ../src/guestfs.pod:1156
35755 msgid ""
35756 "Be careful with any files or data that you download from a guest (by "
35757 "\"download\" we mean not just the L</guestfs_download> command but any "
35758 "command that reads files, filenames, directories or anything else from a "
35759 "disk image).  An attacker could manipulate the data to fool your program "
35760 "into doing the wrong thing.  Consider cases such as:"
35761 msgstr ""
35762
35763 #. type: textblock
35764 #: ../src/guestfs.pod:1166
35765 msgid "the data (file etc) not being present"
35766 msgstr ""
35767
35768 #. type: textblock
35769 #: ../src/guestfs.pod:1170
35770 msgid "being present but empty"
35771 msgstr ""
35772
35773 #. type: textblock
35774 #: ../src/guestfs.pod:1174
35775 msgid "being much larger than normal"
35776 msgstr ""
35777
35778 #. type: textblock
35779 #: ../src/guestfs.pod:1178
35780 msgid "containing arbitrary 8 bit data"
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:1182
35785 msgid "being in an unexpected character encoding"
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:1186
35790 msgid "containing homoglyphs."
35791 msgstr ""
35792
35793 #. type: =head2
35794 #: ../src/guestfs.pod:1190
35795 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35796 msgstr ""
35797
35798 #. type: textblock
35799 #: ../src/guestfs.pod:1192
35800 msgid ""
35801 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35802 "(VFS) module can sometimes be escalated into exploits by deliberately "
35803 "creating a malicious, malformed filesystem.  These exploits are very severe "
35804 "for two reasons.  Firstly there are very many filesystem drivers in the "
35805 "kernel, and many of them are infrequently used and not much developer "
35806 "attention has been paid to the code.  Linux userspace helps potential "
35807 "crackers by detecting the filesystem type and automatically choosing the "
35808 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35809 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35810 "exploit (worse in some ways), giving immediate and total access to the "
35811 "system right down to the hardware level."
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:1205
35816 msgid ""
35817 "That explains why you should never mount a filesystem from an untrusted "
35818 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35819 "inside a qemu virtual machine, usually running as a non-root user.  The "
35820 "attacker would need to write a filesystem which first exploited the kernel, "
35821 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35822 "the libguestfs protocol, and finally to be as serious as the host kernel "
35823 "exploit it would need to escalate its privileges to root.  This multi-step "
35824 "escalation, performed by a static piece of data, is thought to be extremely "
35825 "hard to do, although we never say 'never' about security issues."
35826 msgstr ""
35827
35828 #. type: textblock
35829 #: ../src/guestfs.pod:1216
35830 msgid ""
35831 "In any case callers can reduce the attack surface by forcing the filesystem "
35832 "type when mounting (use L</guestfs_mount_vfs>)."
35833 msgstr ""
35834
35835 #. type: =head2
35836 #: ../src/guestfs.pod:1219
35837 msgid "PROTOCOL SECURITY"
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:1221
35842 msgid ""
35843 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35844 "defined upper message size.  However a program that uses libguestfs must "
35845 "also take care - for example you can write a program that downloads a binary "
35846 "from a disk image and executes it locally, and no amount of protocol "
35847 "security will save you from the consequences."
35848 msgstr ""
35849
35850 #. type: =head2
35851 #: ../src/guestfs.pod:1227
35852 msgid "INSPECTION SECURITY"
35853 msgstr ""
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:1229
35857 msgid ""
35858 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35859 "directly from the guest, and these could contain any 8 bit data.  Callers "
35860 "should be careful to escape these before printing them to a structured file "
35861 "(for example, use HTML escaping if creating a web page)."
35862 msgstr ""
35863
35864 #. type: textblock
35865 #: ../src/guestfs.pod:1235
35866 msgid ""
35867 "Guest configuration may be altered in unusual ways by the administrator of "
35868 "the virtual machine, and may not reflect reality (particularly for untrusted "
35869 "or actively malicious guests).  For example we parse the hostname from "
35870 "configuration files like C</etc/sysconfig/network> that we find in the "
35871 "guest, but the guest administrator can easily manipulate these files to "
35872 "provide the wrong hostname."
35873 msgstr ""
35874
35875 #. type: textblock
35876 #: ../src/guestfs.pod:1243
35877 msgid ""
35878 "The inspection API parses guest configuration using two external libraries: "
35879 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35880 "designed to be robust in the face of malicious data, although denial of "
35881 "service attacks are still possible, for example with oversized configuration "
35882 "files."
35883 msgstr ""
35884
35885 #. type: =head2
35886 #: ../src/guestfs.pod:1249
35887 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:1251
35892 msgid ""
35893 "Be very cautious about running commands from the guest.  By running a "
35894 "command in the guest, you are giving CPU time to a binary that you do not "
35895 "control, under the same user account as the library, albeit wrapped in qemu "
35896 "virtualization.  More information and alternatives can be found in the "
35897 "section L</RUNNING COMMANDS>."
35898 msgstr ""
35899
35900 #. type: =head2
35901 #: ../src/guestfs.pod:1257
35902 msgid "CVE-2010-3851"
35903 msgstr ""
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:1259
35907 msgid "https://bugzilla.redhat.com/642934"
35908 msgstr ""
35909
35910 #. type: textblock
35911 #: ../src/guestfs.pod:1261
35912 msgid ""
35913 "This security bug concerns the automatic disk format detection that qemu "
35914 "does on disk images."
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:1264
35919 msgid ""
35920 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35921 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35922 "for one of the known headers, and if none is found then assuming the disk "
35923 "image must be raw."
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:1269
35928 msgid ""
35929 "This allows a guest which has been given a raw disk image to write some "
35930 "other header.  At next boot (or when the disk image is accessed by "
35931 "libguestfs) qemu would do autodetection and think the disk image format was, "
35932 "say, qcow2 based on the header written by the guest."
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:1274
35937 msgid ""
35938 "This in itself would not be a problem, but qcow2 offers many features, one "
35939 "of which is to allow a disk image to refer to another image (called the "
35940 "\"backing disk\").  It does this by placing the path to the backing disk "
35941 "into the qcow2 header.  This path is not validated and could point to any "
35942 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35943 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35944 "control of the attacker."
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:1282
35949 msgid ""
35950 "In libguestfs this is rather hard to exploit except under two circumstances:"
35951 msgstr ""
35952
35953 #. type: textblock
35954 #: ../src/guestfs.pod:1289
35955 msgid "You have enabled the network or have opened the disk in write mode."
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:1293
35960 msgid ""
35961 "You are also running untrusted code from the guest (see L</RUNNING "
35962 "COMMANDS>)."
35963 msgstr ""
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:1298
35967 msgid ""
35968 "The way to avoid this is to specify the expected disk format when adding "
35969 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35970 "should always do this if the disk is raw format, and it's a good idea for "
35971 "other cases too."
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:1303
35976 msgid ""
35977 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35978 "format is fetched from libvirt and passed through."
35979 msgstr ""
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:1306
35983 msgid ""
35984 "For libguestfs tools, use the I<--format> command line parameter as "
35985 "appropriate."
35986 msgstr ""
35987
35988 #. type: =head1
35989 #: ../src/guestfs.pod:1309
35990 msgid "CONNECTION MANAGEMENT"
35991 msgstr ""
35992
35993 #. type: =head2
35994 #: ../src/guestfs.pod:1311
35995 msgid "guestfs_h *"
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs.pod:1313
36000 msgid ""
36001 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36002 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36003 "handle and release all resources used."
36004 msgstr ""
36005
36006 #. type: textblock
36007 #: ../src/guestfs.pod:1317
36008 msgid ""
36009 "For information on using multiple handles and threads, see the section L</"
36010 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36011 msgstr ""
36012
36013 #. type: =head2
36014 #: ../src/guestfs.pod:1320
36015 msgid "guestfs_create"
36016 msgstr ""
36017
36018 #. type: verbatim
36019 #: ../src/guestfs.pod:1322
36020 #, no-wrap
36021 msgid ""
36022 " guestfs_h *guestfs_create (void);\n"
36023 "\n"
36024 msgstr ""
36025
36026 #. type: textblock
36027 #: ../src/guestfs.pod:1324
36028 msgid "Create a connection handle."
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:1326
36033 msgid ""
36034 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36035 "NULL."
36036 msgstr ""
36037
36038 #. type: textblock
36039 #: ../src/guestfs.pod:1329
36040 msgid ""
36041 "You have to \"configure\" the handle after creating it.  This includes "
36042 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36043 "handle at least once."
36044 msgstr ""
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:1333
36048 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:1335
36053 msgid ""
36054 "You may also want to configure error handling for the handle.  See the L</"
36055 "ERROR HANDLING> section below."
36056 msgstr ""
36057
36058 #. type: =head2
36059 #: ../src/guestfs.pod:1338
36060 msgid "guestfs_close"
36061 msgstr ""
36062
36063 #. type: verbatim
36064 #: ../src/guestfs.pod:1340
36065 #, no-wrap
36066 msgid ""
36067 " void guestfs_close (guestfs_h *g);\n"
36068 "\n"
36069 msgstr ""
36070
36071 #. type: textblock
36072 #: ../src/guestfs.pod:1342
36073 msgid "This closes the connection handle and frees up all resources used."
36074 msgstr ""
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:1344
36078 msgid ""
36079 "If autosync was set on the handle and the handle was launched, then this "
36080 "implicitly calls various functions to unmount filesystems and sync the "
36081 "disk.  See L</guestfs_set_autosync> for more details."
36082 msgstr ""
36083
36084 #. type: textblock
36085 #: ../src/guestfs.pod:1348
36086 msgid "If a close callback was set on the handle, then it is called."
36087 msgstr ""
36088
36089 #. type: =head1
36090 #: ../src/guestfs.pod:1350
36091 msgid "ERROR HANDLING"
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../src/guestfs.pod:1352
36096 msgid ""
36097 "API functions can return errors.  For example, almost all functions that "
36098 "return C<int> will return C<-1> to indicate an error."
36099 msgstr ""
36100
36101 #. type: textblock
36102 #: ../src/guestfs.pod:1355
36103 msgid ""
36104 "Additional information is available for errors: an error message string and "
36105 "optionally an error number (errno) if the thing that failed was a system "
36106 "call."
36107 msgstr ""
36108
36109 #. type: textblock
36110 #: ../src/guestfs.pod:1359
36111 msgid ""
36112 "You can get at the additional information about the last error on the handle "
36113 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36114 "up an error handler with L</guestfs_set_error_handler>."
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../src/guestfs.pod:1364
36119 msgid ""
36120 "When the handle is created, a default error handler is installed which "
36121 "prints the error message string to C<stderr>.  For small short-running "
36122 "command line programs it is sufficient to do:"
36123 msgstr ""
36124
36125 #. type: verbatim
36126 #: ../src/guestfs.pod:1368
36127 #, no-wrap
36128 msgid ""
36129 " if (guestfs_launch (g) == -1)\n"
36130 "   exit (EXIT_FAILURE);\n"
36131 "\n"
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:1371
36136 msgid ""
36137 "since the default error handler will ensure that an error message has been "
36138 "printed to C<stderr> before the program exits."
36139 msgstr ""
36140
36141 #. type: textblock
36142 #: ../src/guestfs.pod:1374
36143 msgid ""
36144 "For other programs the caller will almost certainly want to install an "
36145 "alternate error handler or do error handling in-line like this:"
36146 msgstr ""
36147
36148 #. type: verbatim
36149 #: ../src/guestfs.pod:1377
36150 #, no-wrap
36151 msgid ""
36152 " /* This disables the default behaviour of printing errors\n"
36153 "    on stderr. */\n"
36154 " guestfs_set_error_handler (g, NULL, NULL);\n"
36155 " \n"
36156 msgstr ""
36157
36158 #. type: verbatim
36159 #: ../src/guestfs.pod:1381
36160 #, no-wrap
36161 msgid ""
36162 " if (guestfs_launch (g) == -1) {\n"
36163 "   /* Examine the error message and print it etc. */\n"
36164 "   char *msg = guestfs_last_error (g);\n"
36165 "   int errnum = guestfs_last_errno (g);\n"
36166 "   fprintf (stderr, \"%s\", msg);\n"
36167 "   if (errnum != 0)\n"
36168 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36169 "   fprintf (stderr, \"\\n\");\n"
36170 "   /* ... */\n"
36171 " }\n"
36172 "\n"
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:1392
36177 msgid ""
36178 "Out of memory errors are handled differently.  The default action is to call "
36179 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36180 "guestfs_set_out_of_memory_handler>."
36181 msgstr ""
36182
36183 #. type: textblock
36184 #: ../src/guestfs.pod:1396
36185 msgid ""
36186 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36187 "because there is no handle if this happens there is no way to get additional "
36188 "error information.  However L</guestfs_create> is supposed to be a "
36189 "lightweight operation which can only fail because of insufficient memory (it "
36190 "returns NULL in this case)."
36191 msgstr ""
36192
36193 #. type: =head2
36194 #: ../src/guestfs.pod:1402
36195 msgid "guestfs_last_error"
36196 msgstr ""
36197
36198 #. type: verbatim
36199 #: ../src/guestfs.pod:1404
36200 #, no-wrap
36201 msgid ""
36202 " const char *guestfs_last_error (guestfs_h *g);\n"
36203 "\n"
36204 msgstr ""
36205
36206 #. type: textblock
36207 #: ../src/guestfs.pod:1406
36208 msgid ""
36209 "This returns the last error message that happened on C<g>.  If there has not "
36210 "been an error since the handle was created, then this returns C<NULL>."
36211 msgstr ""
36212
36213 #. type: textblock
36214 #: ../src/guestfs.pod:1410
36215 msgid ""
36216 "The lifetime of the returned string is until the next error occurs, or L</"
36217 "guestfs_close> is called."
36218 msgstr ""
36219
36220 #. type: =head2
36221 #: ../src/guestfs.pod:1413
36222 msgid "guestfs_last_errno"
36223 msgstr ""
36224
36225 #. type: verbatim
36226 #: ../src/guestfs.pod:1415
36227 #, no-wrap
36228 msgid ""
36229 " int guestfs_last_errno (guestfs_h *g);\n"
36230 "\n"
36231 msgstr ""
36232
36233 #. type: textblock
36234 #: ../src/guestfs.pod:1417
36235 msgid "This returns the last error number (errno) that happened on C<g>."
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:1419
36240 msgid "If successful, an errno integer not equal to zero is returned."
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:1421
36245 msgid ""
36246 "If no error, this returns 0.  This call can return 0 in three situations:"
36247 msgstr ""
36248
36249 #. type: textblock
36250 #: ../src/guestfs.pod:1428
36251 msgid "There has not been any error on the handle."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:1432
36256 msgid ""
36257 "There has been an error but the errno was meaningless.  This corresponds to "
36258 "the case where the error did not come from a failed system call, but for "
36259 "some other reason."
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:1438
36264 msgid ""
36265 "There was an error from a failed system call, but for some reason the errno "
36266 "was not captured and returned.  This usually indicates a bug in libguestfs."
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../src/guestfs.pod:1444
36271 msgid ""
36272 "Libguestfs tries to convert the errno from inside the applicance into a "
36273 "corresponding errno for the caller (not entirely trivial: the appliance "
36274 "might be running a completely different operating system from the library "
36275 "and error numbers are not standardized across Un*xen).  If this could not be "
36276 "done, then the error is translated to C<EINVAL>.  In practice this should "
36277 "only happen in very rare circumstances."
36278 msgstr ""
36279
36280 #. type: =head2
36281 #: ../src/guestfs.pod:1452
36282 msgid "guestfs_set_error_handler"
36283 msgstr ""
36284
36285 #. type: verbatim
36286 #: ../src/guestfs.pod:1454
36287 #, no-wrap
36288 msgid ""
36289 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36290 "                                           void *opaque,\n"
36291 "                                           const char *msg);\n"
36292 " void guestfs_set_error_handler (guestfs_h *g,\n"
36293 "                                 guestfs_error_handler_cb cb,\n"
36294 "                                 void *opaque);\n"
36295 "\n"
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../src/guestfs.pod:1461
36300 msgid ""
36301 "The callback C<cb> will be called if there is an error.  The parameters "
36302 "passed to the callback are an opaque data pointer and the error message "
36303 "string."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:1465
36308 msgid ""
36309 "C<errno> is not passed to the callback.  To get that the callback must call "
36310 "L</guestfs_last_errno>."
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:1468
36315 msgid ""
36316 "Note that the message string C<msg> is freed as soon as the callback "
36317 "function returns, so if you want to stash it somewhere you must make your "
36318 "own copy."
36319 msgstr ""
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:1472
36323 msgid "The default handler prints messages on C<stderr>."
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:1474
36328 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36329 msgstr ""
36330
36331 #. type: =head2
36332 #: ../src/guestfs.pod:1476
36333 msgid "guestfs_get_error_handler"
36334 msgstr ""
36335
36336 #. type: verbatim
36337 #: ../src/guestfs.pod:1478
36338 #, no-wrap
36339 msgid ""
36340 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36341 "                                                     void **opaque_rtn);\n"
36342 "\n"
36343 msgstr ""
36344
36345 #. type: textblock
36346 #: ../src/guestfs.pod:1481
36347 msgid "Returns the current error handler callback."
36348 msgstr ""
36349
36350 #. type: =head2
36351 #: ../src/guestfs.pod:1483
36352 msgid "guestfs_set_out_of_memory_handler"
36353 msgstr ""
36354
36355 #. type: verbatim
36356 #: ../src/guestfs.pod:1485
36357 #, no-wrap
36358 msgid ""
36359 " typedef void (*guestfs_abort_cb) (void);\n"
36360 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36361 "                                         guestfs_abort_cb);\n"
36362 "\n"
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:1489
36367 msgid ""
36368 "The callback C<cb> will be called if there is an out of memory situation.  "
36369 "I<Note this callback must not return>."
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../src/guestfs.pod:1492
36374 msgid "The default is to call L<abort(3)>."
36375 msgstr ""
36376
36377 #. type: textblock
36378 #: ../src/guestfs.pod:1494
36379 msgid ""
36380 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36381 msgstr ""
36382
36383 #. type: =head2
36384 #: ../src/guestfs.pod:1497
36385 msgid "guestfs_get_out_of_memory_handler"
36386 msgstr ""
36387
36388 #. type: verbatim
36389 #: ../src/guestfs.pod:1499
36390 #, no-wrap
36391 msgid ""
36392 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36393 "\n"
36394 msgstr ""
36395
36396 #. type: textblock
36397 #: ../src/guestfs.pod:1501
36398 msgid "This returns the current out of memory handler."
36399 msgstr ""
36400
36401 #. type: =head1
36402 #: ../src/guestfs.pod:1503
36403 msgid "API CALLS"
36404 msgstr ""
36405
36406 #. type: =head1
36407 #: ../src/guestfs.pod:1507
36408 msgid "STRUCTURES"
36409 msgstr ""
36410
36411 #. type: textblock
36412 #: ../src/guestfs.pod:1509
36413 msgid "@STRUCTS@"
36414 msgstr ""
36415
36416 #. type: =head1
36417 #: ../src/guestfs.pod:1511
36418 msgid "AVAILABILITY"
36419 msgstr ""
36420
36421 #. type: =head2
36422 #: ../src/guestfs.pod:1513
36423 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:1515
36428 msgid ""
36429 "Using L</guestfs_available> you can test availability of the following "
36430 "groups of functions.  This test queries the appliance to see if the "
36431 "appliance you are currently using supports the functionality."
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:1520
36436 msgid "@AVAILABILITY@"
36437 msgstr ""
36438
36439 #. type: =head2
36440 #: ../src/guestfs.pod:1522
36441 msgid "GUESTFISH supported COMMAND"
36442 msgstr ""
36443
36444 #. type: textblock
36445 #: ../src/guestfs.pod:1524
36446 msgid ""
36447 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36448 "prints out the available groups and whether they are supported by this build "
36449 "of libguestfs.  Note however that you have to do C<run> first."
36450 msgstr ""
36451
36452 #. type: =head2
36453 #: ../src/guestfs.pod:1529
36454 msgid "SINGLE CALLS AT COMPILE TIME"
36455 msgstr ""
36456
36457 #. type: textblock
36458 #: ../src/guestfs.pod:1531
36459 msgid ""
36460 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36461 "function, such as:"
36462 msgstr ""
36463
36464 #. type: verbatim
36465 #: ../src/guestfs.pod:1534
36466 #, no-wrap
36467 msgid ""
36468 " #define LIBGUESTFS_HAVE_DD 1\n"
36469 "\n"
36470 msgstr ""
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:1536
36474 msgid "if L</guestfs_dd> is available."
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:1538
36479 msgid ""
36480 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36481 "function is available at compile time, we recommended using build tools such "
36482 "as autoconf or cmake.  For example in autotools you could use:"
36483 msgstr ""
36484
36485 #. type: verbatim
36486 #: ../src/guestfs.pod:1543
36487 #, no-wrap
36488 msgid ""
36489 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36490 " AC_CHECK_FUNCS([guestfs_dd])\n"
36491 "\n"
36492 msgstr ""
36493
36494 #. type: textblock
36495 #: ../src/guestfs.pod:1546
36496 msgid ""
36497 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36498 "in your program."
36499 msgstr ""
36500
36501 #. type: =head2
36502 #: ../src/guestfs.pod:1549
36503 msgid "SINGLE CALLS AT RUN TIME"
36504 msgstr ""
36505
36506 #. type: textblock
36507 #: ../src/guestfs.pod:1551
36508 msgid ""
36509 "Testing at compile time doesn't guarantee that a function really exists in "
36510 "the library.  The reason is that you might be dynamically linked against a "
36511 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36512 "This situation unfortunately results in a segmentation fault, which is a "
36513 "shortcoming of the C dynamic linking system itself."
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../src/guestfs.pod:1558
36518 msgid ""
36519 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36520 "in this example program (note that you still need the compile time check as "
36521 "well):"
36522 msgstr ""
36523
36524 #. type: verbatim
36525 #: ../src/guestfs.pod:1562
36526 #, no-wrap
36527 msgid ""
36528 " #include <stdio.h>\n"
36529 " #include <stdlib.h>\n"
36530 " #include <unistd.h>\n"
36531 " #include <dlfcn.h>\n"
36532 " #include <guestfs.h>\n"
36533 " \n"
36534 msgstr ""
36535
36536 #. type: verbatim
36537 #: ../src/guestfs.pod:1568
36538 #, no-wrap
36539 msgid ""
36540 " main ()\n"
36541 " {\n"
36542 " #ifdef LIBGUESTFS_HAVE_DD\n"
36543 "   void *dl;\n"
36544 "   int has_function;\n"
36545 " \n"
36546 msgstr ""
36547
36548 #. type: verbatim
36549 #: ../src/guestfs.pod:1574
36550 #, no-wrap
36551 msgid ""
36552 "   /* Test if the function guestfs_dd is really available. */\n"
36553 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36554 "   if (!dl) {\n"
36555 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36556 "     exit (EXIT_FAILURE);\n"
36557 "   }\n"
36558 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36559 "   dlclose (dl);\n"
36560 " \n"
36561 msgstr ""
36562
36563 #. type: verbatim
36564 #: ../src/guestfs.pod:1583
36565 #, no-wrap
36566 msgid ""
36567 "   if (!has_function)\n"
36568 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36569 "   else {\n"
36570 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36571 "     /* Now it's safe to call\n"
36572 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36573 "     */\n"
36574 "   }\n"
36575 " #else\n"
36576 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36577 " #endif\n"
36578 "  }\n"
36579 "\n"
36580 msgstr ""
36581
36582 #. type: textblock
36583 #: ../src/guestfs.pod:1596
36584 msgid ""
36585 "You may think the above is an awful lot of hassle, and it is.  There are "
36586 "other ways outside of the C linking system to ensure that this kind of "
36587 "incompatibility never arises, such as using package versioning:"
36588 msgstr ""
36589
36590 #. type: verbatim
36591 #: ../src/guestfs.pod:1601
36592 #, no-wrap
36593 msgid ""
36594 " Requires: libguestfs >= 1.0.80\n"
36595 "\n"
36596 msgstr ""
36597
36598 #. type: =head1
36599 #: ../src/guestfs.pod:1603
36600 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36601 msgstr ""
36602
36603 #. type: textblock
36604 #: ../src/guestfs.pod:1605
36605 msgid ""
36606 "A recent feature of the API is the introduction of calls which take optional "
36607 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36608 "takes variable arguments (ie. C<...>), as in this example:"
36609 msgstr ""
36610
36611 #. type: verbatim
36612 #: ../src/guestfs.pod:1610
36613 #, no-wrap
36614 msgid ""
36615 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36616 "\n"
36617 msgstr ""
36618
36619 #. type: textblock
36620 #: ../src/guestfs.pod:1612
36621 msgid ""
36622 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36623 "call with no optional arguments specified:"
36624 msgstr ""
36625
36626 #. type: verbatim
36627 #: ../src/guestfs.pod:1615
36628 #, no-wrap
36629 msgid ""
36630 " guestfs_add_drive_opts (g, filename, -1);\n"
36631 "\n"
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:1617
36636 msgid "With a single optional argument:"
36637 msgstr ""
36638
36639 #. type: verbatim
36640 #: ../src/guestfs.pod:1619
36641 #, no-wrap
36642 msgid ""
36643 " guestfs_add_drive_opts (g, filename,\n"
36644 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36645 "                         -1);\n"
36646 "\n"
36647 msgstr ""
36648
36649 #. type: textblock
36650 #: ../src/guestfs.pod:1623
36651 msgid "With two:"
36652 msgstr ""
36653
36654 #. type: verbatim
36655 #: ../src/guestfs.pod:1625
36656 #, no-wrap
36657 msgid ""
36658 " guestfs_add_drive_opts (g, filename,\n"
36659 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36660 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36661 "                         -1);\n"
36662 "\n"
36663 msgstr ""
36664
36665 #. type: textblock
36666 #: ../src/guestfs.pod:1630
36667 msgid ""
36668 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36669 "happen!"
36670 msgstr ""
36671
36672 #. type: =head2
36673 #: ../src/guestfs.pod:1633
36674 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36675 msgstr ""
36676
36677 #. type: textblock
36678 #: ../src/guestfs.pod:1635
36679 msgid ""
36680 "The second variant has the same name with the suffix C<_va>, which works the "
36681 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36682 "example function, this is declared:"
36683 msgstr ""
36684
36685 #. type: verbatim
36686 #: ../src/guestfs.pod:1639
36687 #, no-wrap
36688 msgid ""
36689 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36690 "                                va_list args);\n"
36691 "\n"
36692 msgstr ""
36693
36694 #. type: =head2
36695 #: ../src/guestfs.pod:1642
36696 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36697 msgstr ""
36698
36699 #. type: textblock
36700 #: ../src/guestfs.pod:1644
36701 msgid ""
36702 "The third variant is useful where you need to construct these calls.  You "
36703 "pass in a structure where you fill in the optional fields.  The structure "
36704 "has a bitmask as the first element which you must set to indicate which "
36705 "fields you have filled in.  For our example function the structure and call "
36706 "are declared:"
36707 msgstr ""
36708
36709 #. type: verbatim
36710 #: ../src/guestfs.pod:1650
36711 #, no-wrap
36712 msgid ""
36713 " struct guestfs_add_drive_opts_argv {\n"
36714 "   uint64_t bitmask;\n"
36715 "   int readonly;\n"
36716 "   const char *format;\n"
36717 "   /* ... */\n"
36718 " };\n"
36719 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36720 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36721 "\n"
36722 msgstr ""
36723
36724 #. type: textblock
36725 #: ../src/guestfs.pod:1659
36726 msgid "You could call it like this:"
36727 msgstr ""
36728
36729 #. type: verbatim
36730 #: ../src/guestfs.pod:1661
36731 #, no-wrap
36732 msgid ""
36733 " struct guestfs_add_drive_opts_argv optargs = {\n"
36734 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36735 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36736 "   .readonly = 1,\n"
36737 "   .format = \"qcow2\"\n"
36738 " };\n"
36739 " \n"
36740 msgstr ""
36741
36742 #. type: verbatim
36743 #: ../src/guestfs.pod:1668
36744 #, no-wrap
36745 msgid ""
36746 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36747 "\n"
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../src/guestfs.pod:1676
36752 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36753 msgstr ""
36754
36755 #. type: textblock
36756 #: ../src/guestfs.pod:1681
36757 msgid "You do not need to fill in all fields of the structure."
36758 msgstr ""
36759
36760 #. type: textblock
36761 #: ../src/guestfs.pod:1685
36762 msgid ""
36763 "There must be a one-to-one correspondence between fields of the structure "
36764 "that are filled in, and bits set in the bitmask."
36765 msgstr ""
36766
36767 #. type: =head2
36768 #: ../src/guestfs.pod:1690
36769 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36770 msgstr ""
36771
36772 #. type: textblock
36773 #: ../src/guestfs.pod:1692
36774 msgid ""
36775 "In other languages, optional arguments are expressed in the way that is "
36776 "natural for that language.  We refer you to the language-specific "
36777 "documentation for more details on that."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:1696
36782 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36783 msgstr ""
36784
36785 #. type: =head2
36786 #: ../src/guestfs.pod:1698
36787 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36788 msgstr ""
36789
36790 #. type: textblock
36791 #: ../src/guestfs.pod:1700
36792 msgid ""
36793 "B<Note:> This section documents the generic event mechanism introduced in "
36794 "libguestfs 1.10, which you should use in new code if possible.  The old "
36795 "functions C<guestfs_set_log_message_callback>, "
36796 "C<guestfs_set_subprocess_quit_callback>, "
36797 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36798 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36799 "page.  Because of the ABI guarantee, the old functions continue to work."
36800 msgstr ""
36801
36802 #. type: textblock
36803 #: ../src/guestfs.pod:1709
36804 msgid ""
36805 "Handles generate events when certain things happen, such as log messages "
36806 "being generated, progress messages during long-running operations, or the "
36807 "handle being closed.  The API calls described below let you register a "
36808 "callback to be called when events happen.  You can register multiple "
36809 "callbacks (for the same, different or overlapping sets of events), and "
36810 "individually remove callbacks.  If callbacks are not removed, then they "
36811 "remain in force until the handle is closed."
36812 msgstr ""
36813
36814 #. type: textblock
36815 #: ../src/guestfs.pod:1717
36816 msgid ""
36817 "In the current implementation, events are only generated synchronously: that "
36818 "means that events (and hence callbacks) can only happen while you are in the "
36819 "middle of making another libguestfs call.  The callback is called in the "
36820 "same thread."
36821 msgstr ""
36822
36823 #. type: textblock
36824 #: ../src/guestfs.pod:1722
36825 msgid ""
36826 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36827 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36828 msgstr ""
36829
36830 #. type: =head3
36831 #: ../src/guestfs.pod:1726
36832 msgid "CLASSES OF EVENTS"
36833 msgstr ""
36834
36835 #. type: =item
36836 #: ../src/guestfs.pod:1730
36837 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36838 msgstr ""
36839
36840 #. type: textblock
36841 #: ../src/guestfs.pod:1733
36842 msgid ""
36843 "The callback function will be called while the handle is being closed "
36844 "(synchronously from L</guestfs_close>)."
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../src/guestfs.pod:1736
36849 msgid ""
36850 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36851 "handles that are open when the program exits.  This means that this callback "
36852 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36853 "problems in higher-level languages (eg. if your HLL interpreter has already "
36854 "been cleaned up by the time this is called, and if your callback then jumps "
36855 "into some HLL function)."
36856 msgstr ""
36857
36858 #. type: textblock
36859 #: ../src/guestfs.pod:1743
36860 msgid ""
36861 "If no callback is registered: the handle is closed without any callback "
36862 "being invoked."
36863 msgstr ""
36864
36865 #. type: =item
36866 #: ../src/guestfs.pod:1746
36867 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36868 msgstr ""
36869
36870 #. type: textblock
36871 #: ../src/guestfs.pod:1749
36872 msgid ""
36873 "The callback function will be called when the child process quits, either "
36874 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36875 "corresponds to a transition from any state to the CONFIG state)."
36876 msgstr ""
36877
36878 #. type: textblock
36879 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
36880 msgid "If no callback is registered: the event is ignored."
36881 msgstr ""
36882
36883 #. type: =item
36884 #: ../src/guestfs.pod:1755
36885 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36886 msgstr ""
36887
36888 #. type: textblock
36889 #: ../src/guestfs.pod:1758
36890 msgid ""
36891 "The callback function will be called when the child process becomes ready "
36892 "first time after it has been launched.  (This corresponds to a transition "
36893 "from LAUNCHING to the READY state)."
36894 msgstr ""
36895
36896 #. type: =item
36897 #: ../src/guestfs.pod:1764
36898 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:1767
36903 msgid ""
36904 "Some long-running operations can generate progress messages.  If this "
36905 "callback is registered, then it will be called each time a progress message "
36906 "is generated (usually two seconds after the operation started, and three "
36907 "times per second thereafter until it completes, although the frequency may "
36908 "change in future versions)."
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../src/guestfs.pod:1773
36913 msgid ""
36914 "The callback receives in the payload four unsigned 64 bit numbers which are "
36915 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36916 msgstr ""
36917
36918 #. type: textblock
36919 #: ../src/guestfs.pod:1776
36920 msgid ""
36921 "The units of C<total> are not defined, although for some operations C<total> "
36922 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36923 "or megabytes), and C<position> may be the portion which has been transferred."
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../src/guestfs.pod:1781
36928 msgid "The only defined and stable parts of the API are:"
36929 msgstr ""
36930
36931 #. type: textblock
36932 #: ../src/guestfs.pod:1787
36933 msgid ""
36934 "The callback can display to the user some type of progress bar or indicator "
36935 "which shows the ratio of C<position>:C<total>."
36936 msgstr ""
36937
36938 #. type: textblock
36939 #: ../src/guestfs.pod:1792
36940 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36941 msgstr ""
36942
36943 #. type: textblock
36944 #: ../src/guestfs.pod:1796
36945 msgid ""
36946 "If any progress notification is sent during a call, then a final progress "
36947 "notification is always sent when C<position> = C<total> (I<unless> the call "
36948 "fails with an error)."
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../src/guestfs.pod:1800
36953 msgid ""
36954 "This is to simplify caller code, so callers can easily set the progress "
36955 "indicator to \"100%\" at the end of the operation, without requiring special "
36956 "code to detect this case."
36957 msgstr ""
36958
36959 #. type: textblock
36960 #: ../src/guestfs.pod:1806
36961 msgid ""
36962 "For some calls we are unable to estimate the progress of the call, but we "
36963 "can still generate progress messages to indicate activity.  This is known as "
36964 "\"pulse mode\", and is directly supported by certain progress bar "
36965 "implementations (eg. GtkProgressBar)."
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:1811
36970 msgid ""
36971 "For these calls, zero or more progress messages are generated with "
36972 "C<position = 0> and C<total = 1>, followed by a final message with "
36973 "C<position = total = 1>."
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../src/guestfs.pod:1815
36978 msgid ""
36979 "As noted above, if the call fails with an error then the final message may "
36980 "not be generated."
36981 msgstr ""
36982
36983 #. type: textblock
36984 #: ../src/guestfs.pod:1820
36985 msgid ""
36986 "The callback also receives the procedure number (C<proc_nr>) and serial "
36987 "number (C<serial>) of the call.  These are only useful for debugging "
36988 "protocol issues, and the callback can normally ignore them.  The callback "
36989 "may want to print these numbers in error messages or debugging messages."
36990 msgstr ""
36991
36992 #. type: textblock
36993 #: ../src/guestfs.pod:1826
36994 msgid "If no callback is registered: progress messages are discarded."
36995 msgstr ""
36996
36997 #. type: =item
36998 #: ../src/guestfs.pod:1828
36999 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:1831
37004 msgid ""
37005 "The callback function is called whenever a log message is generated by qemu, "
37006 "the appliance kernel, guestfsd (daemon), or utility programs."
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../src/guestfs.pod:1834
37011 msgid ""
37012 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37013 "guestfs_launch>) then additional debug messages are generated."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
37018 msgid ""
37019 "If no callback is registered: the messages are discarded unless the verbose "
37020 "flag is set in which case they are sent to stderr.  You can override the "
37021 "printing of verbose messages to stderr by setting up a callback."
37022 msgstr ""
37023
37024 #. type: =item
37025 #: ../src/guestfs.pod:1842
37026 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37027 msgstr ""
37028
37029 #. type: textblock
37030 #: ../src/guestfs.pod:1845
37031 msgid ""
37032 "The callback function is called whenever a log message is generated by the "
37033 "library part of libguestfs."
37034 msgstr ""
37035
37036 #. type: textblock
37037 #: ../src/guestfs.pod:1848
37038 msgid ""
37039 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37040 "messages are generated."
37041 msgstr ""
37042
37043 #. type: =item
37044 #: ../src/guestfs.pod:1856
37045 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37046 msgstr ""
37047
37048 #. type: textblock
37049 #: ../src/guestfs.pod:1859
37050 msgid ""
37051 "The callback function is called whenever a trace message is generated.  This "
37052 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37053 msgstr ""
37054
37055 #. type: textblock
37056 #: ../src/guestfs.pod:1862
37057 msgid ""
37058 "If no callback is registered: the messages are sent to stderr.  You can "
37059 "override the printing of trace messages to stderr by setting up a callback."
37060 msgstr ""
37061
37062 #. type: =item
37063 #: ../src/guestfs.pod:1866
37064 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../src/guestfs.pod:1869
37069 msgid ""
37070 "The callback function is called whenever a libguestfs function is entered."
37071 msgstr ""
37072
37073 #. type: textblock
37074 #: ../src/guestfs.pod:1872
37075 msgid ""
37076 "The payload is a string which contains the name of the function that we are "
37077 "entering (not including C<guestfs_> prefix)."
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../src/guestfs.pod:1875
37082 msgid ""
37083 "Note that libguestfs functions can call themselves, so you may see many "
37084 "events from a single call.  A few libguestfs functions do not generate this "
37085 "event."
37086 msgstr ""
37087
37088 #. type: =head3
37089 #: ../src/guestfs.pod:1883
37090 msgid "guestfs_set_event_callback"
37091 msgstr ""
37092
37093 #. type: verbatim
37094 #: ../src/guestfs.pod:1885
37095 #, no-wrap
37096 msgid ""
37097 " int guestfs_set_event_callback (guestfs_h *g,\n"
37098 "                                 guestfs_event_callback cb,\n"
37099 "                                 uint64_t event_bitmask,\n"
37100 "                                 int flags,\n"
37101 "                                 void *opaque);\n"
37102 "\n"
37103 msgstr ""
37104
37105 #. type: textblock
37106 #: ../src/guestfs.pod:1891
37107 msgid ""
37108 "This function registers a callback (C<cb>) for all event classes in the "
37109 "C<event_bitmask>."
37110 msgstr ""
37111
37112 #. type: textblock
37113 #: ../src/guestfs.pod:1894
37114 msgid ""
37115 "For example, to register for all log message events, you could call this "
37116 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37117 "To register a single callback for all possible classes of events, use "
37118 "C<GUESTFS_EVENT_ALL>."
37119 msgstr ""
37120
37121 #. type: textblock
37122 #: ../src/guestfs.pod:1900
37123 msgid "C<flags> should always be passed as 0."
37124 msgstr ""
37125
37126 #. type: textblock
37127 #: ../src/guestfs.pod:1902
37128 msgid ""
37129 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37130 "it for any purpose."
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../src/guestfs.pod:1905
37135 msgid ""
37136 "The return value is the event handle (an integer) which you can use to "
37137 "delete the callback (see below)."
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:1908
37142 msgid ""
37143 "If there is an error, this function returns C<-1>, and sets the error in the "
37144 "handle in the usual way (see L</guestfs_last_error> etc.)"
37145 msgstr ""
37146
37147 #. type: textblock
37148 #: ../src/guestfs.pod:1911
37149 msgid ""
37150 "Callbacks remain in effect until they are deleted, or until the handle is "
37151 "closed."
37152 msgstr ""
37153
37154 #. type: textblock
37155 #: ../src/guestfs.pod:1914
37156 msgid ""
37157 "In the case where multiple callbacks are registered for a particular event "
37158 "class, all of the callbacks are called.  The order in which multiple "
37159 "callbacks are called is not defined."
37160 msgstr ""
37161
37162 #. type: =head3
37163 #: ../src/guestfs.pod:1918
37164 msgid "guestfs_delete_event_callback"
37165 msgstr ""
37166
37167 #. type: verbatim
37168 #: ../src/guestfs.pod:1920
37169 #, no-wrap
37170 msgid ""
37171 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37172 "\n"
37173 msgstr ""
37174
37175 #. type: textblock
37176 #: ../src/guestfs.pod:1922
37177 msgid ""
37178 "Delete a callback that was previously registered.  C<event_handle> should be "
37179 "the integer that was returned by a previous call to "
37180 "C<guestfs_set_event_callback> on the same handle."
37181 msgstr ""
37182
37183 #. type: =head3
37184 #: ../src/guestfs.pod:1926
37185 msgid "guestfs_event_callback"
37186 msgstr ""
37187
37188 #. type: verbatim
37189 #: ../src/guestfs.pod:1928
37190 #, no-wrap
37191 msgid ""
37192 " typedef void (*guestfs_event_callback) (\n"
37193 "                  guestfs_h *g,\n"
37194 "                  void *opaque,\n"
37195 "                  uint64_t event,\n"
37196 "                  int event_handle,\n"
37197 "                  int flags,\n"
37198 "                  const char *buf, size_t buf_len,\n"
37199 "                  const uint64_t *array, size_t array_len);\n"
37200 "\n"
37201 msgstr ""
37202
37203 #. type: textblock
37204 #: ../src/guestfs.pod:1937
37205 msgid ""
37206 "This is the type of the event callback function that you have to provide."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:1940
37211 msgid ""
37212 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37213 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37214 "handle, and C<flags> which in the current API you should ignore."
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:1944
37219 msgid ""
37220 "The remaining parameters contain the event payload (if any).  Each event may "
37221 "contain a payload, which usually relates to the event class, but for future "
37222 "proofing your code should be written to handle any payload for any event "
37223 "class."
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:1949
37228 msgid ""
37229 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37230 "there is no message buffer).  Note that this message buffer can contain "
37231 "arbitrary 8 bit data, including NUL bytes."
37232 msgstr ""
37233
37234 #. type: textblock
37235 #: ../src/guestfs.pod:1953
37236 msgid ""
37237 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37238 "moment this is only used for progress messages."
37239 msgstr ""
37240
37241 #. type: =head3
37242 #: ../src/guestfs.pod:1956
37243 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:1958
37248 msgid ""
37249 "One motivation for the generic event API was to allow GUI programs to "
37250 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37251 "unconditionally to C<stderr>."
37252 msgstr ""
37253
37254 #. type: textblock
37255 #: ../src/guestfs.pod:1962
37256 msgid ""
37257 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37258 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37259 "messages are not events; you must capture error messages separately)."
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:1967
37264 msgid ""
37265 "Programs have to set up a callback to capture the classes of events of "
37266 "interest:"
37267 msgstr ""
37268
37269 #. type: verbatim
37270 #: ../src/guestfs.pod:1970
37271 #, no-wrap
37272 msgid ""
37273 " int eh =\n"
37274 "   guestfs_set_event_callback\n"
37275 "     (g, message_callback,\n"
37276 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37277 "      GUESTFS_EVENT_TRACE,\n"
37278 "      0, NULL) == -1)\n"
37279 " if (eh == -1) {\n"
37280 "   // handle error in the usual way\n"
37281 " }\n"
37282 "\n"
37283 msgstr ""
37284
37285 #. type: textblock
37286 #: ../src/guestfs.pod:1980
37287 msgid ""
37288 "The callback can then direct messages to the appropriate place.  In this "
37289 "example, messages are directed to syslog:"
37290 msgstr ""
37291
37292 #. type: verbatim
37293 #: ../src/guestfs.pod:1983
37294 #, no-wrap
37295 msgid ""
37296 " static void\n"
37297 " message_callback (\n"
37298 "         guestfs_h *g,\n"
37299 "         void *opaque,\n"
37300 "         uint64_t event,\n"
37301 "         int event_handle,\n"
37302 "         int flags,\n"
37303 "         const char *buf, size_t buf_len,\n"
37304 "         const uint64_t *array, size_t array_len)\n"
37305 " {\n"
37306 "   const int priority = LOG_USER|LOG_INFO;\n"
37307 "   if (buf_len > 0)\n"
37308 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37309 " }\n"
37310 "\n"
37311 msgstr ""
37312
37313 #. type: =head1
37314 #: ../src/guestfs.pod:1998
37315 msgid "CANCELLING LONG TRANSFERS"
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../src/guestfs.pod:2000
37320 msgid ""
37321 "Some operations can be cancelled by the caller while they are in progress.  "
37322 "Currently only operations that involve uploading or downloading data can be "
37323 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37324 "parameters in the generator)."
37325 msgstr ""
37326
37327 #. type: =head2
37328 #: ../src/guestfs.pod:2005
37329 msgid "guestfs_user_cancel"
37330 msgstr ""
37331
37332 #. type: verbatim
37333 #: ../src/guestfs.pod:2007
37334 #, no-wrap
37335 msgid ""
37336 " void guestfs_user_cancel (guestfs_h *g);\n"
37337 "\n"
37338 msgstr ""
37339
37340 #. type: textblock
37341 #: ../src/guestfs.pod:2009
37342 msgid ""
37343 "C<guestfs_user_cancel> cancels the current upload or download operation."
37344 msgstr ""
37345
37346 #. type: textblock
37347 #: ../src/guestfs.pod:2012
37348 msgid ""
37349 "Unlike most other libguestfs calls, this function is signal safe and thread "
37350 "safe.  You can call it from a signal handler or from another thread, without "
37351 "needing to do any locking."
37352 msgstr ""
37353
37354 #. type: textblock
37355 #: ../src/guestfs.pod:2016
37356 msgid ""
37357 "The transfer that was in progress (if there is one) will stop shortly "
37358 "afterwards, and will return an error.  The errno (see L</"
37359 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37360 "out if the operation was cancelled or failed because of another error."
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:2022
37365 msgid ""
37366 "No cleanup is performed: for example, if a file was being uploaded then "
37367 "after cancellation there may be a partially uploaded file.  It is the "
37368 "caller's responsibility to clean up if necessary."
37369 msgstr ""
37370
37371 #. type: textblock
37372 #: ../src/guestfs.pod:2026
37373 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:2028
37378 msgid ""
37379 "In an interactive text-based program, you might call it from a C<SIGINT> "
37380 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37381 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37382 "receive the C<^C> signal)."
37383 msgstr ""
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:2033
37387 msgid ""
37388 "In a graphical program, when the main thread is displaying a progress bar "
37389 "with a cancel button, wire up the cancel button to call this function."
37390 msgstr ""
37391
37392 #. type: =head1
37393 #: ../src/guestfs.pod:2037
37394 msgid "PRIVATE DATA AREA"
37395 msgstr ""
37396
37397 #. type: textblock
37398 #: ../src/guestfs.pod:2039
37399 msgid ""
37400 "You can attach named pieces of private data to the libguestfs handle, fetch "
37401 "them by name, and walk over them, for the lifetime of the handle.  This is "
37402 "called the private data area and is only available from the C API."
37403 msgstr ""
37404
37405 #. type: textblock
37406 #: ../src/guestfs.pod:2044
37407 msgid "To attach a named piece of data, use the following call:"
37408 msgstr ""
37409
37410 #. type: verbatim
37411 #: ../src/guestfs.pod:2046
37412 #, no-wrap
37413 msgid ""
37414 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37415 "\n"
37416 msgstr ""
37417
37418 #. type: textblock
37419 #: ../src/guestfs.pod:2048
37420 msgid ""
37421 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37422 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37423 "overwritten."
37424 msgstr ""
37425
37426 #. type: textblock
37427 #: ../src/guestfs.pod:2052
37428 msgid ""
37429 "You can use any C<key> you want, but your key should I<not> start with an "
37430 "underscore character.  Keys beginning with an underscore character are "
37431 "reserved for internal libguestfs purposes (eg. for implementing language "
37432 "bindings).  It is recommended that you prefix the key with some unique "
37433 "string to avoid collisions with other users."
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:2058
37438 msgid "To retrieve the pointer, use:"
37439 msgstr ""
37440
37441 #. type: verbatim
37442 #: ../src/guestfs.pod:2060
37443 #, no-wrap
37444 msgid ""
37445 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37446 "\n"
37447 msgstr ""
37448
37449 #. type: textblock
37450 #: ../src/guestfs.pod:2062
37451 msgid ""
37452 "This function returns C<NULL> if either no data is found associated with "
37453 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37454 "C<NULL>."
37455 msgstr ""
37456
37457 #. type: textblock
37458 #: ../src/guestfs.pod:2066
37459 msgid ""
37460 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37461 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37462 "all.  In particular, libguestfs does I<not> try to free the data when the "
37463 "handle is closed.  If the data must be freed, then the caller must either "
37464 "free it before calling L</guestfs_close> or must set up a close callback to "
37465 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:2073
37470 msgid "To walk over all entries, use these two functions:"
37471 msgstr ""
37472
37473 #. type: verbatim
37474 #: ../src/guestfs.pod:2075
37475 #, no-wrap
37476 msgid ""
37477 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37478 "\n"
37479 msgstr ""
37480
37481 #. type: verbatim
37482 #: ../src/guestfs.pod:2077
37483 #, no-wrap
37484 msgid ""
37485 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37486 "\n"
37487 msgstr ""
37488
37489 #. type: textblock
37490 #: ../src/guestfs.pod:2079
37491 msgid ""
37492 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37493 "not have any particular meaning -- keys are not returned in any defined "
37494 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37495 "corresponding data pointer is returned from the function.  C<NULL> is "
37496 "returned if there are no keys stored in the handle."
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:2085
37501 msgid ""
37502 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37503 "value of this function is also C<NULL> is there are no further entries to "
37504 "return."
37505 msgstr ""
37506
37507 #. type: textblock
37508 #: ../src/guestfs.pod:2089
37509 msgid "Notes about walking over entries:"
37510 msgstr ""
37511
37512 #. type: textblock
37513 #: ../src/guestfs.pod:2095
37514 msgid ""
37515 "You must not call C<guestfs_set_private> while walking over the entries."
37516 msgstr ""
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:2100
37520 msgid ""
37521 "The handle maintains an internal iterator which is reset when you call "
37522 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37523 "call C<guestfs_set_private>."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:2106
37528 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37529 msgstr ""
37530
37531 #. type: verbatim
37532 #: ../src/guestfs.pod:2108
37533 #, no-wrap
37534 msgid ""
37535 " guestfs_set_private (g, key, NULL);\n"
37536 "\n"
37537 msgstr ""
37538
37539 #. type: textblock
37540 #: ../src/guestfs.pod:2110
37541 msgid "then that C<key> is not returned when walking."
37542 msgstr ""
37543
37544 #. type: textblock
37545 #: ../src/guestfs.pod:2114
37546 msgid ""
37547 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37548 "C<guestfs_next_private> or C<guestfs_set_private>."
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../src/guestfs.pod:2120
37553 msgid ""
37554 "The following example code shows how to print all keys and data pointers "
37555 "that are associated with the handle C<g>:"
37556 msgstr ""
37557
37558 #. type: verbatim
37559 #: ../src/guestfs.pod:2123
37560 #, no-wrap
37561 msgid ""
37562 " const char *key;\n"
37563 " void *data = guestfs_first_private (g, &key);\n"
37564 " while (data != NULL)\n"
37565 "   {\n"
37566 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37567 "     data = guestfs_next_private (g, &key);\n"
37568 "   }\n"
37569 "\n"
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:2131
37574 msgid ""
37575 "More commonly you are only interested in keys that begin with an application-"
37576 "specific prefix C<foo_>.  Modify the loop like so:"
37577 msgstr ""
37578
37579 #. type: verbatim
37580 #: ../src/guestfs.pod:2134
37581 #, no-wrap
37582 msgid ""
37583 " const char *key;\n"
37584 " void *data = guestfs_first_private (g, &key);\n"
37585 " while (data != NULL)\n"
37586 "   {\n"
37587 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37588 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37589 "     data = guestfs_next_private (g, &key);\n"
37590 "   }\n"
37591 "\n"
37592 msgstr ""
37593
37594 #. type: textblock
37595 #: ../src/guestfs.pod:2143
37596 msgid ""
37597 "If you need to modify keys while walking, then you have to jump back to the "
37598 "beginning of the loop.  For example, to delete all keys prefixed with "
37599 "C<foo_>:"
37600 msgstr ""
37601
37602 #. type: verbatim
37603 #: ../src/guestfs.pod:2147
37604 #, no-wrap
37605 msgid ""
37606 "  const char *key;\n"
37607 "  void *data;\n"
37608 " again:\n"
37609 "  data = guestfs_first_private (g, &key);\n"
37610 "  while (data != NULL)\n"
37611 "    {\n"
37612 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37613 "        {\n"
37614 "          guestfs_set_private (g, key, NULL);\n"
37615 "          /* note that 'key' pointer is now invalid, and so is\n"
37616 "             the internal iterator */\n"
37617 "          goto again;\n"
37618 "        }\n"
37619 "      data = guestfs_next_private (g, &key);\n"
37620 "    }\n"
37621 "\n"
37622 msgstr ""
37623
37624 #. type: textblock
37625 #: ../src/guestfs.pod:2163
37626 msgid ""
37627 "Note that the above loop is guaranteed to terminate because the keys are "
37628 "being deleted, but other manipulations of keys within the loop might not "
37629 "terminate unless you also maintain an indication of which keys have been "
37630 "visited."
37631 msgstr ""
37632
37633 #. type: =head1
37634 #: ../src/guestfs.pod:2168
37635 msgid "SYSTEMTAP"
37636 msgstr ""
37637
37638 #. type: textblock
37639 #: ../src/guestfs.pod:2170
37640 msgid ""
37641 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
37642 "true of any library, not just libguestfs.  However libguestfs also contains "
37643 "static markers to help in probing internal operations."
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../src/guestfs.pod:2174
37648 msgid "You can list all the static markers by doing:"
37649 msgstr ""
37650
37651 #. type: verbatim
37652 #: ../src/guestfs.pod:2176
37653 #, no-wrap
37654 msgid ""
37655 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
37656 "              .provider(\"guestfs\").mark(\"*\")'\n"
37657 "\n"
37658 msgstr ""
37659
37660 #. type: textblock
37661 #: ../src/guestfs.pod:2179
37662 msgid ""
37663 "B<Note:> These static markers are I<not> part of the stable API and may "
37664 "change in future versions."
37665 msgstr ""
37666
37667 #. type: =head2
37668 #: ../src/guestfs.pod:2182
37669 msgid "SYSTEMTAP SCRIPT EXAMPLE"
37670 msgstr ""
37671
37672 #. type: textblock
37673 #: ../src/guestfs.pod:2184
37674 msgid ""
37675 "This script contains examples of displaying both the static markers and some "
37676 "ordinary C entry points:"
37677 msgstr ""
37678
37679 #. type: verbatim
37680 #: ../src/guestfs.pod:2187
37681 #, no-wrap
37682 msgid ""
37683 " global last;\n"
37684 " \n"
37685 msgstr ""
37686
37687 #. type: verbatim
37688 #: ../src/guestfs.pod:2189
37689 #, no-wrap
37690 msgid ""
37691 " function display_time () {\n"
37692 "       now = gettimeofday_us ();\n"
37693 "       delta = 0;\n"
37694 "       if (last > 0)\n"
37695 "             delta = now - last;\n"
37696 "       last = now;\n"
37697 " \n"
37698 msgstr ""
37699
37700 #. type: verbatim
37701 #: ../src/guestfs.pod:2196
37702 #, no-wrap
37703 msgid ""
37704 "       printf (\"%d (+%d):\", now, delta);\n"
37705 " }\n"
37706 " \n"
37707 msgstr ""
37708
37709 #. type: verbatim
37710 #: ../src/guestfs.pod:2199
37711 #, no-wrap
37712 msgid ""
37713 " probe begin {\n"
37714 "       last = 0;\n"
37715 "       printf (\"ready\\n\");\n"
37716 " }\n"
37717 " \n"
37718 msgstr ""
37719
37720 #. type: verbatim
37721 #: ../src/guestfs.pod:2204
37722 #, no-wrap
37723 msgid ""
37724 " /* Display all calls to static markers. */\n"
37725 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37726 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
37727 "       display_time();\n"
37728 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
37729 " }\n"
37730 " \n"
37731 msgstr ""
37732
37733 #. type: verbatim
37734 #: ../src/guestfs.pod:2211
37735 #, no-wrap
37736 msgid ""
37737 " /* Display all calls to guestfs_mkfs* functions. */\n"
37738 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37739 "           .function(\"guestfs_mkfs*\") ? {\n"
37740 "       display_time();\n"
37741 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
37742 " }\n"
37743 "\n"
37744 msgstr ""
37745
37746 #. type: textblock
37747 #: ../src/guestfs.pod:2218
37748 msgid ""
37749 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
37750 "program.  Note that you either have to be root, or you have to add yourself "
37751 "to several special stap groups.  Consult the systemtap documentation for "
37752 "more information."
37753 msgstr ""
37754
37755 #. type: verbatim
37756 #: ../src/guestfs.pod:2223
37757 #, no-wrap
37758 msgid ""
37759 " # stap /tmp/test.stap\n"
37760 " ready\n"
37761 "\n"
37762 msgstr ""
37763
37764 #. type: textblock
37765 #: ../src/guestfs.pod:2226
37766 msgid "In another terminal, run a guestfish command such as this:"
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:2230
37771 msgid "In the first terminal, stap trace output similar to this is shown:"
37772 msgstr ""
37773
37774 #. type: verbatim
37775 #: ../src/guestfs.pod:2232
37776 #, no-wrap
37777 msgid ""
37778 " 1318248056692655 (+0):\tlaunch_start\n"
37779 " 1318248056692850 (+195):       launch_build_appliance_start\n"
37780 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
37781 " 1318248056838059 (+19774):     launch_run_qemu\n"
37782 " 1318248061071167 (+4233108):   launch_end\n"
37783 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
37784 "\n"
37785 msgstr ""
37786
37787 #. type: =end
37788 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
37789 msgid "html"
37790 msgstr ""
37791
37792 #. type: textblock
37793 #: ../src/guestfs.pod:2241
37794 msgid ""
37795 "<!-- old anchor for the next section --> <a name="
37796 "\"state_machine_and_low_level_event_api\"/>"
37797 msgstr ""
37798
37799 #. type: =head1
37800 #: ../src/guestfs.pod:2246
37801 msgid "ARCHITECTURE"
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:2248
37806 msgid ""
37807 "Internally, libguestfs is implemented by running an appliance (a special "
37808 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37809 "process of the main program."
37810 msgstr ""
37811
37812 #. type: verbatim
37813 #: ../src/guestfs.pod:2252
37814 #, no-wrap
37815 msgid ""
37816 "  ___________________\n"
37817 " /                   \\\n"
37818 " | main program      |\n"
37819 " |                   |\n"
37820 " |                   |           child process / appliance\n"
37821 " |                   |           __________________________\n"
37822 " |                   |          / qemu                     \\\n"
37823 " +-------------------+   RPC    |      +-----------------+ |\n"
37824 " | libguestfs     <--------------------> guestfsd        | |\n"
37825 " |                   |          |      +-----------------+ |\n"
37826 " \\___________________/          |      | Linux kernel    | |\n"
37827 "                                |      +--^--------------+ |\n"
37828 "                                \\_________|________________/\n"
37829 "                                          |\n"
37830 "                                   _______v______\n"
37831 "                                  /              \\\n"
37832 "                                  | Device or    |\n"
37833 "                                  | disk image   |\n"
37834 "                                  \\______________/\n"
37835 "\n"
37836 msgstr ""
37837
37838 #. type: textblock
37839 #: ../src/guestfs.pod:2272
37840 msgid ""
37841 "The library, linked to the main program, creates the child process and hence "
37842 "the appliance in the L</guestfs_launch> function."
37843 msgstr ""
37844
37845 #. type: textblock
37846 #: ../src/guestfs.pod:2275
37847 msgid ""
37848 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37849 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37850 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37851 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37852 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37853 "attached to the qemu process which translates device access by the "
37854 "appliance's Linux kernel into accesses to the image."
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../src/guestfs.pod:2284
37859 msgid ""
37860 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37861 "Although the disk image you are attached to might also be used by some "
37862 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37863 "care if both libguestfs's qemu process and your virtual machine are trying "
37864 "to update the disk image at the same time, since these usually results in "
37865 "massive disk corruption)."
37866 msgstr ""
37867
37868 #. type: =head1
37869 #: ../src/guestfs.pod:2291
37870 msgid "STATE MACHINE"
37871 msgstr ""
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:2293
37875 msgid "libguestfs uses a state machine to model the child process:"
37876 msgstr ""
37877
37878 #. type: verbatim
37879 #: ../src/guestfs.pod:2295
37880 #, no-wrap
37881 msgid ""
37882 "                         |\n"
37883 "                    guestfs_create\n"
37884 "                         |\n"
37885 "                         |\n"
37886 "                     ____V_____\n"
37887 "                    /          \\\n"
37888 "                    |  CONFIG  |\n"
37889 "                    \\__________/\n"
37890 "                     ^ ^   ^  \\\n"
37891 "                    /  |    \\  \\ guestfs_launch\n"
37892 "                   /   |    _\\__V______\n"
37893 "                  /    |   /           \\\n"
37894 "                 /     |   | LAUNCHING |\n"
37895 "                /      |   \\___________/\n"
37896 "               /       |       /\n"
37897 "              /        |  guestfs_launch\n"
37898 "             /         |     /\n"
37899 "    ______  /        __|____V\n"
37900 "   /      \\ ------> /        \\\n"
37901 "   | BUSY |         | READY  |\n"
37902 "   \\______/ <------ \\________/\n"
37903 "\n"
37904 msgstr ""
37905
37906 #. type: textblock
37907 #: ../src/guestfs.pod:2317
37908 msgid ""
37909 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37910 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37911 "(3) alternating between READY and BUSY as commands are issued to, and "
37912 "carried out by, the child process."
37913 msgstr ""
37914
37915 #. type: textblock
37916 #: ../src/guestfs.pod:2322
37917 msgid ""
37918 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37919 "asynchronously at any time (eg. due to some internal error), and that causes "
37920 "the state to transition back to CONFIG."
37921 msgstr ""
37922
37923 #. type: textblock
37924 #: ../src/guestfs.pod:2326
37925 msgid ""
37926 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37927 "issued when in the CONFIG state."
37928 msgstr ""
37929
37930 #. type: textblock
37931 #: ../src/guestfs.pod:2329
37932 msgid ""
37933 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37934 "L</guestfs_launch> blocks until the child process is READY to accept "
37935 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37936 "moves the state from CONFIG to LAUNCHING while it is running."
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../src/guestfs.pod:2335
37941 msgid ""
37942 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37943 "state.  These API calls block waiting for the command to be carried out (ie. "
37944 "the state to transition to BUSY and then back to READY).  There are no non-"
37945 "blocking versions, and no way to issue more than one command per handle at "
37946 "the same time."
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../src/guestfs.pod:2341
37951 msgid ""
37952 "Finally, the child process sends asynchronous messages back to the main "
37953 "program, such as kernel log messages.  You can register a callback to "
37954 "receive these messages."
37955 msgstr ""
37956
37957 #. type: =head1
37958 #: ../src/guestfs.pod:2345
37959 msgid "INTERNALS"
37960 msgstr ""
37961
37962 #. type: =head2
37963 #: ../src/guestfs.pod:2347
37964 msgid "APPLIANCE BOOT PROCESS"
37965 msgstr ""
37966
37967 #. type: textblock
37968 #: ../src/guestfs.pod:2349
37969 msgid ""
37970 "This process has evolved and continues to evolve.  The description here "
37971 "corresponds only to the current version of libguestfs and is provided for "
37972 "information only."
37973 msgstr ""
37974
37975 #. type: textblock
37976 #: ../src/guestfs.pod:2353
37977 msgid ""
37978 "In order to follow the stages involved below, enable libguestfs debugging "
37979 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37980 msgstr ""
37981
37982 #. type: =item
37983 #: ../src/guestfs.pod:2358
37984 msgid "Create the appliance"
37985 msgstr ""
37986
37987 #. type: textblock
37988 #: ../src/guestfs.pod:2360
37989 msgid ""
37990 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37991 "initrd and the appliance."
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:2363
37996 msgid ""
37997 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37998 "directory if C<TMPDIR> is set)."
37999 msgstr ""
38000
38001 #. type: textblock
38002 #: ../src/guestfs.pod:2366
38003 msgid ""
38004 "For a complete description of how the appliance is created and cached, read "
38005 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38006 msgstr ""
38007
38008 #. type: =item
38009 #: ../src/guestfs.pod:2370
38010 msgid "Start qemu and boot the kernel"
38011 msgstr ""
38012
38013 #. type: textblock
38014 #: ../src/guestfs.pod:2372
38015 msgid "qemu is invoked to boot the kernel."
38016 msgstr ""
38017
38018 #. type: =item
38019 #: ../src/guestfs.pod:2374
38020 msgid "Run the initrd"
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:2376
38025 msgid ""
38026 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38027 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38028 "order that the appliance itself can be mounted and started."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:2380
38033 msgid ""
38034 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38035 "initrd>."
38036 msgstr ""
38037
38038 #. type: textblock
38039 #: ../src/guestfs.pod:2383
38040 msgid ""
38041 "When the initrd has started you will see messages showing that kernel "
38042 "modules are being loaded, similar to this:"
38043 msgstr ""
38044
38045 #. type: verbatim
38046 #: ../src/guestfs.pod:2386
38047 #, no-wrap
38048 msgid ""
38049 " febootstrap: ext2 mini initrd starting up\n"
38050 " febootstrap: mounting /sys\n"
38051 " febootstrap: internal insmod libcrc32c.ko\n"
38052 " febootstrap: internal insmod crc32c-intel.ko\n"
38053 "\n"
38054 msgstr ""
38055
38056 #. type: =item
38057 #: ../src/guestfs.pod:2391
38058 msgid "Find and mount the appliance device"
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:2393
38063 msgid ""
38064 "The appliance is a sparse file containing an ext2 filesystem which contains "
38065 "a familiar (although reduced in size) Linux operating system.  It would "
38066 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38067 msgstr ""
38068
38069 #. type: textblock
38070 #: ../src/guestfs.pod:2397
38071 msgid ""
38072 "The regular disks being inspected by libguestfs are the first devices "
38073 "exposed by qemu (eg. as C</dev/vda>)."
38074 msgstr ""
38075
38076 #. type: textblock
38077 #: ../src/guestfs.pod:2400
38078 msgid ""
38079 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38080 "there was only one regular disk)."
38081 msgstr ""
38082
38083 #. type: textblock
38084 #: ../src/guestfs.pod:2403
38085 msgid ""
38086 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38087 "and switch root into the appliance, and run C</init> from the appliance."
38088 msgstr ""
38089
38090 #. type: textblock
38091 #: ../src/guestfs.pod:2407
38092 msgid "If this works successfully you will see messages such as:"
38093 msgstr ""
38094
38095 #. type: verbatim
38096 #: ../src/guestfs.pod:2409
38097 #, no-wrap
38098 msgid ""
38099 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38100 " febootstrap: creating /dev/root as block special 252:16\n"
38101 " febootstrap: mounting new root on /root\n"
38102 " febootstrap: chroot\n"
38103 " Starting /init script ...\n"
38104 "\n"
38105 msgstr ""
38106
38107 #. type: textblock
38108 #: ../src/guestfs.pod:2415
38109 msgid ""
38110 "Note that C<Starting /init script ...> indicates that the appliance's init "
38111 "script is now running."
38112 msgstr ""
38113
38114 #. type: =item
38115 #: ../src/guestfs.pod:2418
38116 msgid "Initialize the appliance"
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:2420
38121 msgid ""
38122 "The appliance itself now initializes itself.  This involves starting certain "
38123 "processes like C<udev>, possibly printing some debug information, and "
38124 "finally running the daemon (C<guestfsd>)."
38125 msgstr ""
38126
38127 #. type: =item
38128 #: ../src/guestfs.pod:2424
38129 msgid "The daemon"
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:2426
38134 msgid ""
38135 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38136 "should see:"
38137 msgstr ""
38138
38139 #. type: verbatim
38140 #: ../src/guestfs.pod:2429
38141 #, no-wrap
38142 msgid ""
38143 " verbose daemon enabled\n"
38144 "\n"
38145 msgstr ""
38146
38147 #. type: textblock
38148 #: ../src/guestfs.pod:2431
38149 msgid ""
38150 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38151 "connected on the other end to the library."
38152 msgstr ""
38153
38154 #. type: textblock
38155 #: ../src/guestfs.pod:2434
38156 msgid ""
38157 "The daemon connects to this port (and hence to the library) and sends a four "
38158 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38159 "protocol (see below)."
38160 msgstr ""
38161
38162 #. type: =head2
38163 #: ../src/guestfs.pod:2440
38164 msgid "COMMUNICATION PROTOCOL"
38165 msgstr ""
38166
38167 #. type: textblock
38168 #: ../src/guestfs.pod:2442
38169 msgid ""
38170 "Don't rely on using this protocol directly.  This section documents how it "
38171 "currently works, but it may change at any time."
38172 msgstr ""
38173
38174 #. type: textblock
38175 #: ../src/guestfs.pod:2445
38176 msgid ""
38177 "The protocol used to talk between the library and the daemon running inside "
38178 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38179 "1014, RFC 1832, RFC 4506)."
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:2449
38184 msgid ""
38185 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38186 "this file is automatically generated)."
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:2452
38191 msgid ""
38192 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38193 "and C<FileOut> parameters, which are handled with very simple request/reply "
38194 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38195 "parameters, which use the same request and reply messages, but they may also "
38196 "be followed by files sent using a chunked encoding."
38197 msgstr ""
38198
38199 #. type: =head3
38200 #: ../src/guestfs.pod:2459
38201 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:2461
38206 msgid "For ordinary functions, the request message is:"
38207 msgstr ""
38208
38209 #. type: verbatim
38210 #: ../src/guestfs.pod:2463
38211 #, no-wrap
38212 msgid ""
38213 " total length (header + arguments,\n"
38214 "      but not including the length word itself)\n"
38215 " struct guestfs_message_header (encoded as XDR)\n"
38216 " struct guestfs_<foo>_args (encoded as XDR)\n"
38217 "\n"
38218 msgstr ""
38219
38220 #. type: textblock
38221 #: ../src/guestfs.pod:2468
38222 msgid ""
38223 "The total length field allows the daemon to allocate a fixed size buffer "
38224 "into which it slurps the rest of the message.  As a result, the total length "
38225 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38226 "effective size of any request is limited to somewhere under this size."
38227 msgstr ""
38228
38229 #. type: textblock
38230 #: ../src/guestfs.pod:2474
38231 msgid ""
38232 "Note also that many functions don't take any arguments, in which case the "
38233 "C<guestfs_I<foo>_args> is completely omitted."
38234 msgstr ""
38235
38236 #. type: textblock
38237 #: ../src/guestfs.pod:2477
38238 msgid ""
38239 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38240 "receiver knows what type of args structure to expect, or none at all."
38241 msgstr ""
38242
38243 #. type: textblock
38244 #: ../src/guestfs.pod:2481
38245 msgid ""
38246 "For functions that take optional arguments, the optional arguments are "
38247 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38248 "arguments.  A bitmask in the header indicates which optional arguments are "
38249 "meaningful.  The bitmask is also checked to see if it contains bits set "
38250 "which the daemon does not know about (eg. if more optional arguments were "
38251 "added in a later version of the library), and this causes the call to be "
38252 "rejected."
38253 msgstr ""
38254
38255 #. type: textblock
38256 #: ../src/guestfs.pod:2489
38257 msgid "The reply message for ordinary functions is:"
38258 msgstr ""
38259
38260 #. type: verbatim
38261 #: ../src/guestfs.pod:2491
38262 #, no-wrap
38263 msgid ""
38264 " total length (header + ret,\n"
38265 "      but not including the length word itself)\n"
38266 " struct guestfs_message_header (encoded as XDR)\n"
38267 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38268 "\n"
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../src/guestfs.pod:2496
38273 msgid ""
38274 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38275 "functions that return no formal return values."
38276 msgstr ""
38277
38278 #. type: textblock
38279 #: ../src/guestfs.pod:2499
38280 msgid ""
38281 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:2502
38286 msgid ""
38287 "In the case of an error, a flag is set in the header, and the reply message "
38288 "is slightly changed:"
38289 msgstr ""
38290
38291 #. type: verbatim
38292 #: ../src/guestfs.pod:2505
38293 #, no-wrap
38294 msgid ""
38295 " total length (header + error,\n"
38296 "      but not including the length word itself)\n"
38297 " struct guestfs_message_header (encoded as XDR)\n"
38298 " struct guestfs_message_error (encoded as XDR)\n"
38299 "\n"
38300 msgstr ""
38301
38302 #. type: textblock
38303 #: ../src/guestfs.pod:2510
38304 msgid ""
38305 "The C<guestfs_message_error> structure contains the error message as a "
38306 "string."
38307 msgstr ""
38308
38309 #. type: =head3
38310 #: ../src/guestfs.pod:2513
38311 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38312 msgstr ""
38313
38314 #. type: textblock
38315 #: ../src/guestfs.pod:2515
38316 msgid ""
38317 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38318 "The normal request message is sent (see above).  However this is followed by "
38319 "a sequence of file chunks."
38320 msgstr ""
38321
38322 #. type: verbatim
38323 #: ../src/guestfs.pod:2519
38324 #, no-wrap
38325 msgid ""
38326 " total length (header + arguments,\n"
38327 "      but not including the length word itself,\n"
38328 "      and not including the chunks)\n"
38329 " struct guestfs_message_header (encoded as XDR)\n"
38330 " struct guestfs_<foo>_args (encoded as XDR)\n"
38331 " sequence of chunks for FileIn param #0\n"
38332 " sequence of chunks for FileIn param #1 etc.\n"
38333 "\n"
38334 msgstr ""
38335
38336 #. type: textblock
38337 #: ../src/guestfs.pod:2527
38338 msgid "The \"sequence of chunks\" is:"
38339 msgstr ""
38340
38341 #. type: verbatim
38342 #: ../src/guestfs.pod:2529
38343 #, no-wrap
38344 msgid ""
38345 " length of chunk (not including length word itself)\n"
38346 " struct guestfs_chunk (encoded as XDR)\n"
38347 " length of chunk\n"
38348 " struct guestfs_chunk (encoded as XDR)\n"
38349 "   ...\n"
38350 " length of chunk\n"
38351 " struct guestfs_chunk (with data.data_len == 0)\n"
38352 "\n"
38353 msgstr ""
38354
38355 #. type: textblock
38356 #: ../src/guestfs.pod:2537
38357 msgid ""
38358 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38359 "is set in the final chunk to indicate either successful completion or early "
38360 "cancellation."
38361 msgstr ""
38362
38363 #. type: textblock
38364 #: ../src/guestfs.pod:2541
38365 msgid ""
38366 "At time of writing there are no functions that have more than one FileIn "
38367 "parameter.  However this is (theoretically) supported, by sending the "
38368 "sequence of chunks for each FileIn parameter one after another (from left to "
38369 "right)."
38370 msgstr ""
38371
38372 #. type: textblock
38373 #: ../src/guestfs.pod:2546
38374 msgid ""
38375 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38376 "transfer.  The library does this by sending a chunk with a special flag set "
38377 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38378 "RPC, does I<not> send any reply, and goes back to reading the next request."
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../src/guestfs.pod:2552
38383 msgid ""
38384 "The daemon may also cancel.  It does this by writing a special word "
38385 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38386 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38387 "cancel chunk).  The special word is chosen so that even if cancellation "
38388 "happens right at the end of the transfer (after the library has finished "
38389 "writing and has started listening for the reply), the \"spurious\" cancel "
38390 "flag will not be confused with the reply message."
38391 msgstr ""
38392
38393 #. type: textblock
38394 #: ../src/guestfs.pod:2561
38395 msgid ""
38396 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38397 "limit), and also files where the size is not known in advance (eg. from "
38398 "pipes or sockets).  However the chunks are rather small "
38399 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38400 "to keep much in memory."
38401 msgstr ""
38402
38403 #. type: =head3
38404 #: ../src/guestfs.pod:2567
38405 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38406 msgstr ""
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:2569
38410 msgid ""
38411 "The protocol for FileOut parameters is exactly the same as for FileIn "
38412 "parameters, but with the roles of daemon and library reversed."
38413 msgstr ""
38414
38415 #. type: verbatim
38416 #: ../src/guestfs.pod:2572
38417 #, no-wrap
38418 msgid ""
38419 " total length (header + ret,\n"
38420 "      but not including the length word itself,\n"
38421 "      and not including the chunks)\n"
38422 " struct guestfs_message_header (encoded as XDR)\n"
38423 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38424 " sequence of chunks for FileOut param #0\n"
38425 " sequence of chunks for FileOut param #1 etc.\n"
38426 "\n"
38427 msgstr ""
38428
38429 #. type: =head3
38430 #: ../src/guestfs.pod:2580
38431 msgid "INITIAL MESSAGE"
38432 msgstr ""
38433
38434 #. type: textblock
38435 #: ../src/guestfs.pod:2582
38436 msgid ""
38437 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38438 "which indicates that the guest and daemon is alive.  This is what L</"
38439 "guestfs_launch> waits for."
38440 msgstr ""
38441
38442 #. type: =head3
38443 #: ../src/guestfs.pod:2586
38444 msgid "PROGRESS NOTIFICATION MESSAGES"
38445 msgstr ""
38446
38447 #. type: textblock
38448 #: ../src/guestfs.pod:2588
38449 msgid ""
38450 "The daemon may send progress notification messages at any time.  These are "
38451 "distinguished by the normal length word being replaced by "
38452 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38453 msgstr ""
38454
38455 #. type: textblock
38456 #: ../src/guestfs.pod:2592
38457 msgid ""
38458 "The library turns them into progress callbacks (see L</"
38459 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38460 "if not."
38461 msgstr ""
38462
38463 #. type: textblock
38464 #: ../src/guestfs.pod:2596
38465 msgid ""
38466 "The daemon self-limits the frequency of progress messages it sends (see "
38467 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38468 "messages."
38469 msgstr ""
38470
38471 #. type: =head1
38472 #: ../src/guestfs.pod:2600
38473 msgid "LIBGUESTFS VERSION NUMBERS"
38474 msgstr ""
38475
38476 #. type: textblock
38477 #: ../src/guestfs.pod:2602
38478 msgid ""
38479 "Since April 2010, libguestfs has started to make separate development and "
38480 "stable releases, along with corresponding branches in our git repository.  "
38481 "These separate releases can be identified by version number:"
38482 msgstr ""
38483
38484 #. type: verbatim
38485 #: ../src/guestfs.pod:2607
38486 #, no-wrap
38487 msgid ""
38488 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38489 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38490 "       |\n"
38491 "       v\n"
38492 " 1  .  3  .  5\n"
38493 " ^           ^\n"
38494 " |           |\n"
38495 " |           `-------- sub-version\n"
38496 " |\n"
38497 " `------ always '1' because we don't change the ABI\n"
38498 "\n"
38499 msgstr ""
38500
38501 #. type: textblock
38502 #: ../src/guestfs.pod:2618
38503 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38504 msgstr ""
38505
38506 #. type: textblock
38507 #: ../src/guestfs.pod:2620
38508 msgid ""
38509 "As time passes we cherry pick fixes from the development branch and backport "
38510 "those into the stable branch, the effect being that the stable branch should "
38511 "get more stable and less buggy over time.  So the stable releases are ideal "
38512 "for people who don't need new features but would just like the software to "
38513 "work."
38514 msgstr ""
38515
38516 #. type: textblock
38517 #: ../src/guestfs.pod:2626
38518 msgid "Our criteria for backporting changes are:"
38519 msgstr ""
38520
38521 #. type: textblock
38522 #: ../src/guestfs.pod:2632
38523 msgid ""
38524 "Documentation changes which don't affect any code are backported unless the "
38525 "documentation refers to a future feature which is not in stable."
38526 msgstr ""
38527
38528 #. type: textblock
38529 #: ../src/guestfs.pod:2638
38530 msgid ""
38531 "Bug fixes which are not controversial, fix obvious problems, and have been "
38532 "well tested are backported."
38533 msgstr ""
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:2643
38537 msgid ""
38538 "Simple rearrangements of code which shouldn't affect how it works get "
38539 "backported.  This is so that the code in the two branches doesn't get too "
38540 "far out of step, allowing us to backport future fixes more easily."
38541 msgstr ""
38542
38543 #. type: textblock
38544 #: ../src/guestfs.pod:2649
38545 msgid ""
38546 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38547 "exceptional case: the new feature is required in order to implement an "
38548 "important bug fix."
38549 msgstr ""
38550
38551 #. type: textblock
38552 #: ../src/guestfs.pod:2655
38553 msgid ""
38554 "A new stable branch starts when we think the new features in development are "
38555 "substantial and compelling enough over the current stable branch to warrant "
38556 "it.  When that happens we create new stable and development versions 1.N.0 "
38557 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38558 "stable at this point, but by backporting fixes from development, that branch "
38559 "will stabilize over time."
38560 msgstr ""
38561
38562 #. type: =head1
38563 #: ../src/guestfs.pod:2663
38564 msgid "EXTENDING LIBGUESTFS"
38565 msgstr ""
38566
38567 #. type: =head2
38568 #: ../src/guestfs.pod:2665
38569 msgid "ADDING A NEW API ACTION"
38570 msgstr ""
38571
38572 #. type: textblock
38573 #: ../src/guestfs.pod:2667
38574 msgid ""
38575 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38576 "documentation) are generated, and this makes it easy to extend the "
38577 "libguestfs API."
38578 msgstr ""
38579
38580 #. type: textblock
38581 #: ../src/guestfs.pod:2671
38582 msgid "To add a new API action there are two changes:"
38583 msgstr ""
38584
38585 #. type: textblock
38586 #: ../src/guestfs.pod:2677
38587 msgid ""
38588 "You need to add a description of the call (name, parameters, return type, "
38589 "tests, documentation) to C<generator/generator_actions.ml>."
38590 msgstr ""
38591
38592 #. type: textblock
38593 #: ../src/guestfs.pod:2680
38594 msgid ""
38595 "There are two sorts of API action, depending on whether the call goes "
38596 "through to the daemon in the appliance, or is serviced entirely by the "
38597 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38598 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38599 "an example of the latter, since a trace flag is maintained in the handle and "
38600 "all tracing is done on the library side."
38601 msgstr ""
38602
38603 #. type: textblock
38604 #: ../src/guestfs.pod:2688
38605 msgid ""
38606 "Most new actions are of the first type, and get added to the "
38607 "C<daemon_functions> list.  Each function has a unique procedure number used "
38608 "in the RPC protocol which is assigned to that action when we publish "
38609 "libguestfs and cannot be reused.  Take the latest procedure number and "
38610 "increment it."
38611 msgstr ""
38612
38613 #. type: textblock
38614 #: ../src/guestfs.pod:2694
38615 msgid ""
38616 "For library-only actions of the second type, add to the "
38617 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38618 "library and do not travel over the RPC mechanism to the daemon, these "
38619 "functions do not need a procedure number, and so the procedure number is set "
38620 "to C<-1>."
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:2702
38625 msgid "Implement the action (in C):"
38626 msgstr ""
38627
38628 #. type: textblock
38629 #: ../src/guestfs.pod:2704
38630 msgid ""
38631 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38632 "C<daemon/> directory."
38633 msgstr ""
38634
38635 #. type: textblock
38636 #: ../src/guestfs.pod:2707
38637 msgid ""
38638 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38639 "(note: double underscore) in the C<src/> directory."
38640 msgstr ""
38641
38642 #. type: textblock
38643 #: ../src/guestfs.pod:2710
38644 msgid "In either case, use another function as an example of what to do."
38645 msgstr ""
38646
38647 #. type: textblock
38648 #: ../src/guestfs.pod:2714
38649 msgid "After making these changes, use C<make> to compile."
38650 msgstr ""
38651
38652 #. type: textblock
38653 #: ../src/guestfs.pod:2716
38654 msgid ""
38655 "Note that you don't need to implement the RPC, language bindings, manual "
38656 "pages or anything else.  It's all automatically generated from the OCaml "
38657 "description."
38658 msgstr ""
38659
38660 #. type: =head2
38661 #: ../src/guestfs.pod:2720
38662 msgid "ADDING TESTS FOR AN API ACTION"
38663 msgstr ""
38664
38665 #. type: textblock
38666 #: ../src/guestfs.pod:2722
38667 msgid ""
38668 "You can supply zero or as many tests as you want per API call.  The tests "
38669 "can either be added as part of the API description (C<generator/"
38670 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38671 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
38672 "slower, so if possible use the first method."
38673 msgstr ""
38674
38675 #. type: textblock
38676 #: ../src/guestfs.pod:2728
38677 msgid ""
38678 "The following describes the test environment used when you add an API test "
38679 "in C<generator_actions.ml>."
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:2731
38684 msgid "The test environment has 4 block devices:"
38685 msgstr ""
38686
38687 #. type: =item
38688 #: ../src/guestfs.pod:2735
38689 msgid "C</dev/sda> 500MB"
38690 msgstr ""
38691
38692 #. type: textblock
38693 #: ../src/guestfs.pod:2737
38694 msgid "General block device for testing."
38695 msgstr ""
38696
38697 #. type: =item
38698 #: ../src/guestfs.pod:2739
38699 msgid "C</dev/sdb> 50MB"
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../src/guestfs.pod:2741
38704 msgid ""
38705 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38706 "operations."
38707 msgstr ""
38708
38709 #. type: =item
38710 #: ../src/guestfs.pod:2744
38711 msgid "C</dev/sdc> 10MB"
38712 msgstr ""
38713
38714 #. type: textblock
38715 #: ../src/guestfs.pod:2746
38716 msgid "Used in a few tests where two block devices are needed."
38717 msgstr ""
38718
38719 #. type: =item
38720 #: ../src/guestfs.pod:2748
38721 msgid "C</dev/sdd>"
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:2750
38726 msgid "ISO with fixed content (see C<images/test.iso>)."
38727 msgstr ""
38728
38729 #. type: textblock
38730 #: ../src/guestfs.pod:2754
38731 msgid ""
38732 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38733 "appliance and block devices are reused between tests.  So don't try testing "
38734 "L</guestfs_kill_subprocess> :-x"
38735 msgstr ""
38736
38737 #. type: textblock
38738 #: ../src/guestfs.pod:2758
38739 msgid ""
38740 "Each test starts with an initial scenario, selected using one of the "
38741 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38742 "initialize the disks mentioned above in a particular way as documented in "
38743 "C<generator_types.ml>.  You should not assume anything about the previous "
38744 "contents of other disks that are not initialized."
38745 msgstr ""
38746
38747 #. type: textblock
38748 #: ../src/guestfs.pod:2764
38749 msgid ""
38750 "You can add a prerequisite clause to any individual test.  This is a run-"
38751 "time check, which, if it fails, causes the test to be skipped.  Useful if "
38752 "testing a command which might not work on all variations of libguestfs "
38753 "builds.  A test that has prerequisite of C<Always> means to run "
38754 "unconditionally."
38755 msgstr ""
38756
38757 #. type: textblock
38758 #: ../src/guestfs.pod:2770
38759 msgid ""
38760 "In addition, packagers can skip individual tests by setting environment "
38761 "variables before running C<make check>."
38762 msgstr ""
38763
38764 #. type: verbatim
38765 #: ../src/guestfs.pod:2773
38766 #, no-wrap
38767 msgid ""
38768 " SKIP_TEST_<CMD>_<NUM>=1\n"
38769 "\n"
38770 msgstr ""
38771
38772 #. type: textblock
38773 #: ../src/guestfs.pod:2775
38774 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38775 msgstr ""
38776
38777 #. type: textblock
38778 #: ../src/guestfs.pod:2777
38779 msgid "or:"
38780 msgstr ""
38781
38782 #. type: verbatim
38783 #: ../src/guestfs.pod:2779
38784 #, no-wrap
38785 msgid ""
38786 " SKIP_TEST_<CMD>=1\n"
38787 "\n"
38788 msgstr ""
38789
38790 #. type: textblock
38791 #: ../src/guestfs.pod:2781
38792 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38793 msgstr ""
38794
38795 #. type: textblock
38796 #: ../src/guestfs.pod:2783
38797 msgid "Packagers can run only certain tests by setting for example:"
38798 msgstr ""
38799
38800 #. type: verbatim
38801 #: ../src/guestfs.pod:2785
38802 #, no-wrap
38803 msgid ""
38804 " TEST_ONLY=\"vfs_type zerofree\"\n"
38805 "\n"
38806 msgstr ""
38807
38808 #. type: textblock
38809 #: ../src/guestfs.pod:2787
38810 msgid ""
38811 "See C<capitests/tests.c> for more details of how these environment variables "
38812 "work."
38813 msgstr ""
38814
38815 #. type: =head2
38816 #: ../src/guestfs.pod:2790
38817 msgid "DEBUGGING NEW API ACTIONS"
38818 msgstr ""
38819
38820 #. type: textblock
38821 #: ../src/guestfs.pod:2792
38822 msgid "Test new actions work before submitting them."
38823 msgstr ""
38824
38825 #. type: textblock
38826 #: ../src/guestfs.pod:2794
38827 msgid "You can use guestfish to try out new commands."
38828 msgstr ""
38829
38830 #. type: textblock
38831 #: ../src/guestfs.pod:2796
38832 msgid ""
38833 "Debugging the daemon is a problem because it runs inside a minimal "
38834 "environment.  However you can fprintf messages in the daemon to stderr, and "
38835 "they will show up if you use C<guestfish -v>."
38836 msgstr ""
38837
38838 #. type: =head2
38839 #: ../src/guestfs.pod:2800
38840 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../src/guestfs.pod:2802
38845 msgid ""
38846 "Our C source code generally adheres to some basic code-formatting "
38847 "conventions.  The existing code base is not totally consistent on this "
38848 "front, but we do prefer that contributed code be formatted similarly.  In "
38849 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38850 "indentation level, and other than that, follow the K&R style."
38851 msgstr ""
38852
38853 #. type: textblock
38854 #: ../src/guestfs.pod:2808
38855 msgid ""
38856 "If you use Emacs, add the following to one of one of your start-up files (e."
38857 "g., ~/.emacs), to help ensure that you get indentation right:"
38858 msgstr ""
38859
38860 #. type: verbatim
38861 #: ../src/guestfs.pod:2811
38862 #, no-wrap
38863 msgid ""
38864 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38865 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38866 " (add-hook 'find-file-hook\n"
38867 "     '(lambda () (if (and buffer-file-name\n"
38868 "                          (string-match \"/libguestfs\\\\>\"\n"
38869 "                              (buffer-file-name))\n"
38870 "                          (not (string-equal mode-name \"Change Log\"))\n"
38871 "                          (not (string-equal mode-name \"Makefile\")))\n"
38872 "                     (setq indent-tabs-mode nil))))\n"
38873 " \n"
38874 msgstr ""
38875
38876 #. type: verbatim
38877 #: ../src/guestfs.pod:2821
38878 #, no-wrap
38879 msgid ""
38880 " ;;; When editing C sources in libguestfs, use this style.\n"
38881 " (defun libguestfs-c-mode ()\n"
38882 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38883 "   (interactive)\n"
38884 "   (c-set-style \"K&R\")\n"
38885 "   (setq c-indent-level 2)\n"
38886 "   (setq c-basic-offset 2))\n"
38887 " (add-hook 'c-mode-hook\n"
38888 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38889 "                               (buffer-file-name))\n"
38890 "                           (libguestfs-c-mode))))\n"
38891 "\n"
38892 msgstr ""
38893
38894 #. type: textblock
38895 #: ../src/guestfs.pod:2833
38896 msgid "Enable warnings when compiling (and fix any problems this finds):"
38897 msgstr ""
38898
38899 #. type: verbatim
38900 #: ../src/guestfs.pod:2836
38901 #, no-wrap
38902 msgid ""
38903 " ./configure --enable-gcc-warnings\n"
38904 "\n"
38905 msgstr ""
38906
38907 #. type: textblock
38908 #: ../src/guestfs.pod:2838
38909 msgid "Useful targets are:"
38910 msgstr ""
38911
38912 #. type: verbatim
38913 #: ../src/guestfs.pod:2840
38914 #, no-wrap
38915 msgid ""
38916 " make syntax-check  # checks the syntax of the C code\n"
38917 " make check         # runs the test suite\n"
38918 "\n"
38919 msgstr ""
38920
38921 #. type: =head2
38922 #: ../src/guestfs.pod:2843
38923 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38924 msgstr ""
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:2845
38928 msgid ""
38929 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38930 "which are used to do shell quoting."
38931 msgstr ""
38932
38933 #. type: =item
38934 #: ../src/guestfs.pod:2850
38935 msgid "%Q"
38936 msgstr ""
38937
38938 #. type: textblock
38939 #: ../src/guestfs.pod:2852
38940 msgid ""
38941 "Simple shell quoted string.  Any spaces or other shell characters are "
38942 "escaped for you."
38943 msgstr ""
38944
38945 #. type: =item
38946 #: ../src/guestfs.pod:2855
38947 msgid "%R"
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../src/guestfs.pod:2857
38952 msgid ""
38953 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38954 "the sysroot."
38955 msgstr ""
38956
38957 #. type: verbatim
38958 #: ../src/guestfs.pod:2864
38959 #, no-wrap
38960 msgid ""
38961 " asprintf (&cmd, \"cat %R\", path);\n"
38962 "\n"
38963 msgstr ""
38964
38965 #. type: textblock
38966 #: ../src/guestfs.pod:2866
38967 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38968 msgstr ""
38969
38970 #. type: textblock
38971 #: ../src/guestfs.pod:2868
38972 msgid ""
38973 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38974 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
38975 "they are not passed via the shell (instead, straight to exec).  You probably "
38976 "want to use the C<sysroot_path()> function however."
38977 msgstr ""
38978
38979 #. type: =head2
38980 #: ../src/guestfs.pod:2874
38981 msgid "SUBMITTING YOUR NEW API ACTIONS"
38982 msgstr ""
38983
38984 #. type: textblock
38985 #: ../src/guestfs.pod:2876
38986 msgid ""
38987 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38988 "libguestfs> and CC to L<rjones@redhat.com>."
38989 msgstr ""
38990
38991 #. type: =head2
38992 #: ../src/guestfs.pod:2880
38993 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38994 msgstr ""
38995
38996 #. type: textblock
38997 #: ../src/guestfs.pod:2882
38998 msgid "We support i18n (gettext anyhow) in the library."
38999 msgstr ""
39000
39001 #. type: textblock
39002 #: ../src/guestfs.pod:2884
39003 msgid ""
39004 "However many messages come from the daemon, and we don't translate those at "
39005 "the moment.  One reason is that the appliance generally has all locale files "
39006 "removed from it, because they take up a lot of space.  So we'd have to readd "
39007 "some of those, as well as copying our PO files into the appliance."
39008 msgstr ""
39009
39010 #. type: textblock
39011 #: ../src/guestfs.pod:2890
39012 msgid ""
39013 "Debugging messages are never translated, since they are intended for the "
39014 "programmers."
39015 msgstr ""
39016
39017 #. type: =head2
39018 #: ../src/guestfs.pod:2893
39019 msgid "SOURCE CODE SUBDIRECTORIES"
39020 msgstr ""
39021
39022 #. type: =item
39023 #: ../src/guestfs.pod:2897
39024 msgid "C<align>"
39025 msgstr ""
39026
39027 #. type: textblock
39028 #: ../src/guestfs.pod:2899
39029 msgid "L<virt-alignment-scan(1)> command and documentation."
39030 msgstr ""
39031
39032 #. type: textblock
39033 #: ../src/guestfs.pod:2903
39034 msgid "The libguestfs appliance, build scripts and so on."
39035 msgstr ""
39036
39037 #. type: =item
39038 #: ../src/guestfs.pod:2905
39039 msgid "C<capitests>"
39040 msgstr ""
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:2907
39044 msgid "Automated tests of the C API."
39045 msgstr ""
39046
39047 #. type: =item
39048 #: ../src/guestfs.pod:2909
39049 msgid "C<cat>"
39050 msgstr ""
39051
39052 #. type: textblock
39053 #: ../src/guestfs.pod:2911
39054 msgid ""
39055 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39056 "documentation."
39057 msgstr ""
39058
39059 #. type: =item
39060 #: ../src/guestfs.pod:2914
39061 msgid "C<caution>"
39062 msgstr ""
39063
39064 #. type: textblock
39065 #: ../src/guestfs.pod:2916
39066 msgid ""
39067 "Safety and liveness tests of components that libguestfs depends upon (not of "
39068 "libguestfs itself).  Mainly this is for qemu and the kernel."
39069 msgstr ""
39070
39071 #. type: =item
39072 #: ../src/guestfs.pod:2919
39073 msgid "C<clone>"
39074 msgstr ""
39075
39076 #. type: textblock
39077 #: ../src/guestfs.pod:2921
39078 msgid ""
39079 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
39080 "command and documentation."
39081 msgstr ""
39082
39083 #. type: =item
39084 #: ../src/guestfs.pod:2924
39085 msgid "C<contrib>"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../src/guestfs.pod:2926
39090 msgid "Outside contributions, experimental parts."
39091 msgstr ""
39092
39093 #. type: =item
39094 #: ../src/guestfs.pod:2928
39095 msgid "C<daemon>"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:2930
39100 msgid ""
39101 "The daemon that runs inside the libguestfs appliance and carries out actions."
39102 msgstr ""
39103
39104 #. type: =item
39105 #: ../src/guestfs.pod:2933
39106 msgid "C<df>"
39107 msgstr ""
39108
39109 #. type: textblock
39110 #: ../src/guestfs.pod:2935
39111 msgid "L<virt-df(1)> command and documentation."
39112 msgstr ""
39113
39114 #. type: =item
39115 #: ../src/guestfs.pod:2937
39116 msgid "C<edit>"
39117 msgstr ""
39118
39119 #. type: textblock
39120 #: ../src/guestfs.pod:2939
39121 msgid "L<virt-edit(1)> command and documentation."
39122 msgstr ""
39123
39124 #. type: =item
39125 #: ../src/guestfs.pod:2941
39126 msgid "C<examples>"
39127 msgstr ""
39128
39129 #. type: textblock
39130 #: ../src/guestfs.pod:2943
39131 msgid "C API example code."
39132 msgstr ""
39133
39134 #. type: =item
39135 #: ../src/guestfs.pod:2945
39136 msgid "C<fish>"
39137 msgstr ""
39138
39139 #. type: textblock
39140 #: ../src/guestfs.pod:2947
39141 msgid ""
39142 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39143 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39144 "L<virt-tar-out(1)>."
39145 msgstr ""
39146
39147 #. type: =item
39148 #: ../src/guestfs.pod:2951
39149 msgid "C<fuse>"
39150 msgstr ""
39151
39152 #. type: textblock
39153 #: ../src/guestfs.pod:2953
39154 msgid ""
39155 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39156 msgstr ""
39157
39158 #. type: =item
39159 #: ../src/guestfs.pod:2955
39160 msgid "C<generator>"
39161 msgstr ""
39162
39163 #. type: textblock
39164 #: ../src/guestfs.pod:2957
39165 msgid ""
39166 "The crucially important generator, used to automatically generate large "
39167 "amounts of boilerplate C code for things like RPC and bindings."
39168 msgstr ""
39169
39170 #. type: =item
39171 #: ../src/guestfs.pod:2960
39172 msgid "C<images>"
39173 msgstr ""
39174
39175 #. type: textblock
39176 #: ../src/guestfs.pod:2962
39177 msgid "Files used by the test suite."
39178 msgstr ""
39179
39180 #. type: textblock
39181 #: ../src/guestfs.pod:2964
39182 msgid "Some \"phony\" guest images which we test against."
39183 msgstr ""
39184
39185 #. type: =item
39186 #: ../src/guestfs.pod:2966
39187 msgid "C<inspector>"
39188 msgstr ""
39189
39190 #. type: textblock
39191 #: ../src/guestfs.pod:2968
39192 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39193 msgstr ""
39194
39195 #. type: =item
39196 #: ../src/guestfs.pod:2970
39197 msgid "C<logo>"
39198 msgstr ""
39199
39200 #. type: textblock
39201 #: ../src/guestfs.pod:2972
39202 msgid "Logo used on the website.  The fish is called Arthur by the way."
39203 msgstr ""
39204
39205 #. type: =item
39206 #: ../src/guestfs.pod:2974
39207 msgid "C<m4>"
39208 msgstr ""
39209
39210 #. type: textblock
39211 #: ../src/guestfs.pod:2976
39212 msgid "M4 macros used by autoconf."
39213 msgstr ""
39214
39215 #. type: =item
39216 #: ../src/guestfs.pod:2978
39217 msgid "C<po>"
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../src/guestfs.pod:2980
39222 msgid "Translations of simple gettext strings."
39223 msgstr ""
39224
39225 #. type: =item
39226 #: ../src/guestfs.pod:2982
39227 msgid "C<po-docs>"
39228 msgstr ""
39229
39230 #. type: textblock
39231 #: ../src/guestfs.pod:2984
39232 msgid ""
39233 "The build infrastructure and PO files for translations of manpages and POD "
39234 "files.  Eventually this will be combined with the C<po> directory, but that "
39235 "is rather complicated."
39236 msgstr ""
39237
39238 #. type: =item
39239 #: ../src/guestfs.pod:2988
39240 msgid "C<regressions>"
39241 msgstr ""
39242
39243 #. type: textblock
39244 #: ../src/guestfs.pod:2990
39245 msgid "Regression tests."
39246 msgstr ""
39247
39248 #. type: =item
39249 #: ../src/guestfs.pod:2992
39250 msgid "C<rescue>"
39251 msgstr ""
39252
39253 #. type: textblock
39254 #: ../src/guestfs.pod:2994
39255 msgid "L<virt-rescue(1)> command and documentation."
39256 msgstr ""
39257
39258 #. type: =item
39259 #: ../src/guestfs.pod:2996
39260 msgid "C<resize>"
39261 msgstr ""
39262
39263 #. type: textblock
39264 #: ../src/guestfs.pod:2998
39265 msgid "L<virt-resize(1)> command and documentation."
39266 msgstr ""
39267
39268 #. type: =item
39269 #: ../src/guestfs.pod:3000
39270 msgid "C<sparsify>"
39271 msgstr ""
39272
39273 #. type: textblock
39274 #: ../src/guestfs.pod:3002
39275 msgid "L<virt-sparsify(1)> command and documentation."
39276 msgstr ""
39277
39278 #. type: =item
39279 #: ../src/guestfs.pod:3004
39280 msgid "C<src>"
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../src/guestfs.pod:3006
39285 msgid "Source code to the C library."
39286 msgstr ""
39287
39288 #. type: =item
39289 #: ../src/guestfs.pod:3008
39290 msgid "C<tools>"
39291 msgstr ""
39292
39293 #. type: textblock
39294 #: ../src/guestfs.pod:3010
39295 msgid ""
39296 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39297 msgstr ""
39298
39299 #. type: =item
39300 #: ../src/guestfs.pod:3012
39301 msgid "C<test-tool>"
39302 msgstr ""
39303
39304 #. type: textblock
39305 #: ../src/guestfs.pod:3014
39306 msgid ""
39307 "Test tool for end users to test if their qemu/kernel combination will work "
39308 "with libguestfs."
39309 msgstr ""
39310
39311 #. type: =item
39312 #: ../src/guestfs.pod:3017
39313 msgid "C<csharp>"
39314 msgstr ""
39315
39316 #. type: =item
39317 #: ../src/guestfs.pod:3019
39318 msgid "C<erlang>"
39319 msgstr ""
39320
39321 #. type: =item
39322 #: ../src/guestfs.pod:3021
39323 msgid "C<haskell>"
39324 msgstr ""
39325
39326 #. type: =item
39327 #: ../src/guestfs.pod:3023
39328 msgid "C<java>"
39329 msgstr ""
39330
39331 #. type: =item
39332 #: ../src/guestfs.pod:3025
39333 msgid "C<ocaml>"
39334 msgstr ""
39335
39336 #. type: =item
39337 #: ../src/guestfs.pod:3027
39338 msgid "C<php>"
39339 msgstr ""
39340
39341 #. type: =item
39342 #: ../src/guestfs.pod:3029
39343 msgid "C<perl>"
39344 msgstr ""
39345
39346 #. type: =item
39347 #: ../src/guestfs.pod:3031
39348 msgid "C<python>"
39349 msgstr ""
39350
39351 #. type: =item
39352 #: ../src/guestfs.pod:3033
39353 msgid "C<ruby>"
39354 msgstr ""
39355
39356 #. type: textblock
39357 #: ../src/guestfs.pod:3035
39358 msgid "Language bindings."
39359 msgstr ""
39360
39361 #. type: =head2
39362 #: ../src/guestfs.pod:3039
39363 msgid "MAKING A STABLE RELEASE"
39364 msgstr ""
39365
39366 #. type: textblock
39367 #: ../src/guestfs.pod:3041
39368 msgid ""
39369 "When we make a stable release, there are several steps documented here.  See "
39370 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39371 "branch policy."
39372 msgstr ""
39373
39374 #. type: textblock
39375 #: ../src/guestfs.pod:3049
39376 msgid ""
39377 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39378 msgstr ""
39379
39380 #. type: textblock
39381 #: ../src/guestfs.pod:3054
39382 msgid "Finalize RELEASE-NOTES."
39383 msgstr ""
39384
39385 #. type: textblock
39386 #: ../src/guestfs.pod:3058
39387 msgid "Update ROADMAP."
39388 msgstr ""
39389
39390 #. type: textblock
39391 #: ../src/guestfs.pod:3062
39392 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39393 msgstr ""
39394
39395 #. type: textblock
39396 #: ../src/guestfs.pod:3066
39397 msgid "Push and pull from Transifex."
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../src/guestfs.pod:3068
39402 msgid "Run:"
39403 msgstr ""
39404
39405 #. type: verbatim
39406 #: ../src/guestfs.pod:3070
39407 #, no-wrap
39408 msgid ""
39409 " tx push -s\n"
39410 "\n"
39411 msgstr ""
39412
39413 #. type: textblock
39414 #: ../src/guestfs.pod:3072
39415 msgid "to push the latest POT files to Transifex.  Then run:"
39416 msgstr ""
39417
39418 #. type: verbatim
39419 #: ../src/guestfs.pod:3074
39420 #, no-wrap
39421 msgid ""
39422 " ./tx-pull.sh\n"
39423 "\n"
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../src/guestfs.pod:3076
39428 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39429 msgstr ""
39430
39431 #. type: textblock
39432 #: ../src/guestfs.pod:3080
39433 msgid ""
39434 "Create new stable and development directories under L<http://libguestfs.org/"
39435 "download>."
39436 msgstr ""
39437
39438 #. type: textblock
39439 #: ../src/guestfs.pod:3085
39440 msgid "Create the branch in git:"
39441 msgstr ""
39442
39443 #. type: verbatim
39444 #: ../src/guestfs.pod:3087
39445 #, no-wrap
39446 msgid ""
39447 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39448 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39449 " git branch stable-1.XX\n"
39450 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39451 "\n"
39452 msgstr ""
39453
39454 #. type: =head1
39455 #: ../src/guestfs.pod:3094
39456 msgid "LIMITS"
39457 msgstr ""
39458
39459 #. type: =head2
39460 #: ../src/guestfs.pod:3096
39461 msgid "PROTOCOL LIMITS"
39462 msgstr ""
39463
39464 #. type: textblock
39465 #: ../src/guestfs.pod:3098
39466 msgid ""
39467 "Internally libguestfs uses a message-based protocol to pass API calls and "
39468 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39469 "plenty more detail about this).  The maximum message size used by the "
39470 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39471 "aware of this limit.  The API calls which may be affected are individually "
39472 "documented, with a link back to this section of the documentation."
39473 msgstr ""
39474
39475 #. type: textblock
39476 #: ../src/guestfs.pod:3106
39477 msgid ""
39478 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39479 "a simple string.  Because this string is at some point internally encoded as "
39480 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39481 "the requested file is larger than this then you will get an error."
39482 msgstr ""
39483
39484 #. type: textblock
39485 #: ../src/guestfs.pod:3112
39486 msgid ""
39487 "In order to transfer large files into and out of the guest filesystem, you "
39488 "need to use particular calls that support this.  The sections L</UPLOADING> "
39489 "and L</DOWNLOADING> document how to do this."
39490 msgstr ""
39491
39492 #. type: textblock
39493 #: ../src/guestfs.pod:3116
39494 msgid ""
39495 "You might also consider mounting the disk image using our FUSE filesystem "
39496 "support (L<guestmount(1)>)."
39497 msgstr ""
39498
39499 #. type: =head2
39500 #: ../src/guestfs.pod:3119
39501 msgid "MAXIMUM NUMBER OF DISKS"
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:3121
39506 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39507 msgstr ""
39508
39509 #. type: textblock
39510 #: ../src/guestfs.pod:3124
39511 msgid ""
39512 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39513 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39514 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39515 "purposes."
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../src/guestfs.pod:3129
39520 msgid ""
39521 "We are working to substantially raise this limit in future versions but it "
39522 "requires complex changes to qemu."
39523 msgstr ""
39524
39525 #. type: textblock
39526 #: ../src/guestfs.pod:3132
39527 msgid ""
39528 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39529 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39530 "requires changes to qemu."
39531 msgstr ""
39532
39533 #. type: =head2
39534 #: ../src/guestfs.pod:3136
39535 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39536 msgstr ""
39537
39538 #. type: textblock
39539 #: ../src/guestfs.pod:3138
39540 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39541 msgstr ""
39542
39543 #. type: textblock
39544 #: ../src/guestfs.pod:3140
39545 msgid ""
39546 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39547 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39548 msgstr ""
39549
39550 #. type: textblock
39551 #: ../src/guestfs.pod:3143
39552 msgid ""
39553 "If you attach a disk with more than 15 partitions, the extra partitions are "
39554 "ignored by libguestfs."
39555 msgstr ""
39556
39557 #. type: =head2
39558 #: ../src/guestfs.pod:3146
39559 msgid "MAXIMUM SIZE OF A DISK"
39560 msgstr ""
39561
39562 #. type: textblock
39563 #: ../src/guestfs.pod:3148
39564 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39565 msgstr ""
39566
39567 #. type: textblock
39568 #: ../src/guestfs.pod:3150
39569 msgid ""
39570 "We have tested block devices up to 1 exabyte (2**60 or "
39571 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39572 "filesystem."
39573 msgstr ""
39574
39575 #. type: textblock
39576 #: ../src/guestfs.pod:3154
39577 msgid ""
39578 "Although libguestfs probably does not impose any limit, the underlying host "
39579 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39580 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39581 "TB).  If you store disk images as host logical volumes then you are limited "
39582 "by the maximum size of an LV."
39583 msgstr ""
39584
39585 #. type: textblock
39586 #: ../src/guestfs.pod:3160
39587 msgid ""
39588 "For the hugest disk image files, we recommend using XFS on the host for "
39589 "storage."
39590 msgstr ""
39591
39592 #. type: =head2
39593 #: ../src/guestfs.pod:3163
39594 msgid "MAXIMUM SIZE OF A PARTITION"
39595 msgstr ""
39596
39597 #. type: textblock
39598 #: ../src/guestfs.pod:3165
39599 msgid ""
39600 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39601 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39602 "address a partition located beyond 2 TB on the disk."
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../src/guestfs.pod:3169
39607 msgid ""
39608 "It is recommended that you use GPT partitions on disks which are larger than "
39609 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39610 "which are theoretically larger than the largest disk we could support."
39611 msgstr ""
39612
39613 #. type: =head2
39614 #: ../src/guestfs.pod:3174
39615 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../src/guestfs.pod:3176
39620 msgid ""
39621 "This depends on the filesystem type.  libguestfs itself does not impose any "
39622 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39623 "what these limits are."
39624 msgstr ""
39625
39626 #. type: =head2
39627 #: ../src/guestfs.pod:3180
39628 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39629 msgstr ""
39630
39631 #. type: textblock
39632 #: ../src/guestfs.pod:3182
39633 msgid ""
39634 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39635 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39636 "uploads and downloads."
39637 msgstr ""
39638
39639 #. type: =head2
39640 #: ../src/guestfs.pod:3186
39641 msgid "INSPECTION LIMITS"
39642 msgstr ""
39643
39644 #. type: textblock
39645 #: ../src/guestfs.pod:3188
39646 msgid ""
39647 "The inspection code has several arbitrary limits on things like the size of "
39648 "Windows Registry hive it will read, and the length of product name.  These "
39649 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39650 "memory and disk space on the host, and should not be reached in practice.  "
39651 "See the source code for more information."
39652 msgstr ""
39653
39654 #. type: textblock
39655 #: ../src/guestfs.pod:3214
39656 msgid ""
39657 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39658 "effect as calling C<guestfs_set_verbose (g, 1)>."
39659 msgstr ""
39660
39661 #. type: textblock
39662 #: ../src/guestfs.pod:3226
39663 msgid ""
39664 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39665 "the discussion of paths in section L</PATH> above."
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../src/guestfs.pod:3235
39670 msgid "See also L</QEMU WRAPPERS> above."
39671 msgstr ""
39672
39673 #. type: textblock
39674 #: ../src/guestfs.pod:3239
39675 msgid ""
39676 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39677 "effect as calling C<guestfs_set_trace (g, 1)>."
39678 msgstr ""
39679
39680 #. type: textblock
39681 #: ../src/guestfs.pod:3257
39682 msgid ""
39683 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39684 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39685 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
39686 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
39687 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
39688 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
39689 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
39690 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39691 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
39692 ">, L<http://libguestfs.org/>."
39693 msgstr ""
39694
39695 #. type: textblock
39696 #: ../src/guestfs.pod:3293
39697 msgid ""
39698 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39699 "(8)>, L<disktype(1)>."
39700 msgstr ""
39701
39702 #. type: =head1
39703 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:571
39704 #: ../tools/virt-win-reg.pl:772
39705 msgid "BUGS"
39706 msgstr ""
39707
39708 #. type: textblock
39709 #: ../src/guestfs.pod:3302
39710 msgid "To get a list of bugs against libguestfs use this link:"
39711 msgstr ""
39712
39713 #. type: textblock
39714 #: ../src/guestfs.pod:3304
39715 msgid ""
39716 "L<https://bugzilla.redhat.com/buglist.cgi?"
39717 "component=libguestfs&product=Virtualization+Tools>"
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../src/guestfs.pod:3306
39722 msgid "To report a new bug against libguestfs use this link:"
39723 msgstr ""
39724
39725 #. type: textblock
39726 #: ../src/guestfs.pod:3308
39727 msgid ""
39728 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39729 "component=libguestfs&product=Virtualization+Tools>"
39730 msgstr ""
39731
39732 #. type: textblock
39733 #: ../src/guestfs.pod:3310
39734 msgid "When reporting a bug, please check:"
39735 msgstr ""
39736
39737 #. type: textblock
39738 #: ../src/guestfs.pod:3316
39739 msgid "That the bug hasn't been reported already."
39740 msgstr ""
39741
39742 #. type: textblock
39743 #: ../src/guestfs.pod:3320
39744 msgid "That you are testing a recent version."
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../src/guestfs.pod:3324
39749 msgid "Describe the bug accurately, and give a way to reproduce it."
39750 msgstr ""
39751
39752 #. type: textblock
39753 #: ../src/guestfs.pod:3328
39754 msgid ""
39755 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39756 "bug report."
39757 msgstr ""
39758
39759 #. type: textblock
39760 #: ../test-tool/libguestfs-test-tool.pod:5
39761 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39762 msgstr ""
39763
39764 #. type: verbatim
39765 #: ../test-tool/libguestfs-test-tool.pod:9
39766 #, no-wrap
39767 msgid ""
39768 " libguestfs-test-tool [--options]\n"
39769 "\n"
39770 msgstr ""
39771
39772 #. type: textblock
39773 #: ../test-tool/libguestfs-test-tool.pod:13
39774 msgid ""
39775 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39776 "to check basic libguestfs functionality is working.  This is needed because "
39777 "libguestfs occasionally breaks for reasons beyond our control: usually "
39778 "because of changes in the underlying qemu or kernel packages, or the host "
39779 "environment."
39780 msgstr ""
39781
39782 #. type: textblock
39783 #: ../test-tool/libguestfs-test-tool.pod:19
39784 msgid "If you suspect a problem in libguestfs, then just run:"
39785 msgstr ""
39786
39787 #. type: verbatim
39788 #: ../test-tool/libguestfs-test-tool.pod:21
39789 #, no-wrap
39790 msgid ""
39791 " libguestfs-test-tool\n"
39792 "\n"
39793 msgstr ""
39794
39795 #. type: textblock
39796 #: ../test-tool/libguestfs-test-tool.pod:23
39797 msgid "It will print lots of diagnostic messages."
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../test-tool/libguestfs-test-tool.pod:25
39802 msgid "If it runs to completion successfully, you will see this near the end:"
39803 msgstr ""
39804
39805 #. type: verbatim
39806 #: ../test-tool/libguestfs-test-tool.pod:27
39807 #, no-wrap
39808 msgid ""
39809 " ===== TEST FINISHED OK =====\n"
39810 "\n"
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../test-tool/libguestfs-test-tool.pod:29
39815 msgid "and the test tool will exit with code 0."
39816 msgstr ""
39817
39818 #. type: textblock
39819 #: ../test-tool/libguestfs-test-tool.pod:31
39820 msgid ""
39821 "If it fails (and/or exits with non-zero error code), please paste the "
39822 "I<complete, unedited> output of the test tool into a bug report.  More "
39823 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39824 "> website."
39825 msgstr ""
39826
39827 #. type: textblock
39828 #: ../test-tool/libguestfs-test-tool.pod:42
39829 msgid "Display short usage information and exit."
39830 msgstr ""
39831
39832 #. type: =item
39833 #: ../test-tool/libguestfs-test-tool.pod:44
39834 msgid "B<--qemu qemu_binary>"
39835 msgstr ""
39836
39837 #. type: textblock
39838 #: ../test-tool/libguestfs-test-tool.pod:46
39839 msgid ""
39840 "If you have downloaded another qemu binary, point this option at the full "
39841 "path of the binary to try it."
39842 msgstr ""
39843
39844 #. type: =item
39845 #: ../test-tool/libguestfs-test-tool.pod:49
39846 msgid "B<--qemudir qemu_source_dir>"
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../test-tool/libguestfs-test-tool.pod:51
39851 msgid ""
39852 "If you have compiled qemu from source, point this option at the source "
39853 "directory to try it."
39854 msgstr ""
39855
39856 #. type: =item
39857 #: ../test-tool/libguestfs-test-tool.pod:54
39858 msgid "B<-t N>"
39859 msgstr ""
39860
39861 #. type: =item
39862 #: ../test-tool/libguestfs-test-tool.pod:56
39863 msgid "B<--timeout N>"
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../test-tool/libguestfs-test-tool.pod:58
39868 msgid ""
39869 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39870 "minutes) which does not usually need to be adjusted."
39871 msgstr ""
39872
39873 #. type: =head1
39874 #: ../test-tool/libguestfs-test-tool.pod:63
39875 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39876 msgstr ""
39877
39878 #. type: textblock
39879 #: ../test-tool/libguestfs-test-tool.pod:65
39880 msgid ""
39881 "If you have compiled another version of qemu from source and would like to "
39882 "try that, then you can use the I<--qemudir> option to point to the qemu "
39883 "source directory."
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../test-tool/libguestfs-test-tool.pod:69
39888 msgid ""
39889 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39890 "option to point to the binary."
39891 msgstr ""
39892
39893 #. type: textblock
39894 #: ../test-tool/libguestfs-test-tool.pod:72
39895 msgid ""
39896 "Note when using these options, you can ignore the business of qemu wrapper "
39897 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39898 "wrapper script for you if one is needed."
39899 msgstr ""
39900
39901 #. type: =head1
39902 #: ../test-tool/libguestfs-test-tool.pod:76
39903 msgid "TRYING OUT A DIFFERENT KERNEL"
39904 msgstr ""
39905
39906 #. type: textblock
39907 #: ../test-tool/libguestfs-test-tool.pod:78
39908 msgid ""
39909 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39910 "libguestfs tries.  You do this by setting the environment variables "
39911 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39912 msgstr ""
39913
39914 #. type: textblock
39915 #: ../test-tool/libguestfs-test-tool.pod:82
39916 msgid ""
39917 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39918 "information."
39919 msgstr ""
39920
39921 #. type: =head1
39922 #: ../test-tool/libguestfs-test-tool.pod:85
39923 msgid "SELF-DIAGNOSIS"
39924 msgstr ""
39925
39926 #. type: textblock
39927 #: ../test-tool/libguestfs-test-tool.pod:87
39928 msgid ""
39929 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39930 "produced by libguestfs-test-tool and/or possible errors."
39931 msgstr ""
39932
39933 #. type: textblock
39934 #: ../test-tool/libguestfs-test-tool.pod:92
39935 msgid ""
39936 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39937 "I<1> if there was an error."
39938 msgstr ""
39939
39940 #. type: textblock
39941 #: ../test-tool/libguestfs-test-tool.pod:97
39942 msgid ""
39943 "For the full list of environment variables which may affect libguestfs, "
39944 "please see the L<guestfs(3)> manual page."
39945 msgstr ""
39946
39947 #. type: textblock
39948 #: ../test-tool/libguestfs-test-tool.pod:102
39949 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39950 msgstr ""
39951
39952 #. type: textblock
39953 #: ../tools/virt-list-filesystems.pl:32
39954 msgid ""
39955 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39956 msgstr ""
39957
39958 #. type: verbatim
39959 #: ../tools/virt-list-filesystems.pl:36
39960 #, no-wrap
39961 msgid ""
39962 " virt-list-filesystems [--options] domname\n"
39963 "\n"
39964 msgstr ""
39965
39966 #. type: verbatim
39967 #: ../tools/virt-list-filesystems.pl:38
39968 #, no-wrap
39969 msgid ""
39970 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39971 "\n"
39972 msgstr ""
39973
39974 #. type: textblock
39975 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39976 msgid ""
39977 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39978 "replacement."
39979 msgstr ""
39980
39981 #. type: textblock
39982 #: ../tools/virt-list-filesystems.pl:45
39983 msgid ""
39984 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39985 "are contained in a virtual machine or disk image."
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../tools/virt-list-filesystems.pl:49
39990 msgid ""
39991 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39992 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39993 "> tool."
39994 msgstr ""
39995
39996 #. type: textblock
39997 #: ../tools/virt-list-filesystems.pl:112
39998 msgid ""
39999 "With this option, C<virt-list-filesystems> displays the type of each "
40000 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40001 msgstr ""
40002
40003 #. type: =item
40004 #: ../tools/virt-list-filesystems.pl:119
40005 msgid "B<-a>"
40006 msgstr ""
40007
40008 #. type: textblock
40009 #: ../tools/virt-list-filesystems.pl:123
40010 msgid ""
40011 "Normally we only show mountable filesystems.  If this option is given then "
40012 "swap devices are shown too."
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../tools/virt-list-filesystems.pl:197
40017 msgid ""
40018 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40019 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40020 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40021 msgstr ""
40022
40023 #. type: textblock
40024 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40025 msgid "Copyright (C) 2009 Red Hat Inc."
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../tools/virt-list-partitions.pl:32
40030 msgid ""
40031 "virt-list-partitions - List partitions in a virtual machine or disk image"
40032 msgstr ""
40033
40034 #. type: verbatim
40035 #: ../tools/virt-list-partitions.pl:36
40036 #, no-wrap
40037 msgid ""
40038 " virt-list-partitions [--options] domname\n"
40039 "\n"
40040 msgstr ""
40041
40042 #. type: verbatim
40043 #: ../tools/virt-list-partitions.pl:38
40044 #, no-wrap
40045 msgid ""
40046 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40047 "\n"
40048 msgstr ""
40049
40050 #. type: textblock
40051 #: ../tools/virt-list-partitions.pl:45
40052 msgid ""
40053 "C<virt-list-partitions> is a command line tool to list the partitions that "
40054 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40055 "first step to using L<virt-resize(1)>."
40056 msgstr ""
40057
40058 #. type: textblock
40059 #: ../tools/virt-list-partitions.pl:50
40060 msgid ""
40061 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40062 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40063 "> tool."
40064 msgstr ""
40065
40066 #. type: textblock
40067 #: ../tools/virt-list-partitions.pl:113
40068 msgid "Show sizes in human-readable form (eg. \"1G\")."
40069 msgstr ""
40070
40071 #. type: textblock
40072 #: ../tools/virt-list-partitions.pl:123
40073 msgid ""
40074 "With this option, C<virt-list-partitions> displays the type and size of each "
40075 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40076 msgstr ""
40077
40078 #. type: =item
40079 #: ../tools/virt-list-partitions.pl:130
40080 msgid "B<-t>"
40081 msgstr ""
40082
40083 #. type: =item
40084 #: ../tools/virt-list-partitions.pl:132
40085 msgid "B<--total>"
40086 msgstr ""
40087
40088 #. type: textblock
40089 #: ../tools/virt-list-partitions.pl:134
40090 msgid ""
40091 "Display the total size of each block device (as a separate row or rows)."
40092 msgstr ""
40093
40094 #. type: textblock
40095 #: ../tools/virt-list-partitions.pl:267
40096 msgid ""
40097 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40098 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40099 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40100 msgstr ""
40101
40102 #. type: textblock
40103 #: ../tools/virt-list-partitions.pl:283
40104 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40105 msgstr ""
40106
40107 #. type: textblock
40108 #: ../tools/virt-make-fs.pl:37
40109 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40110 msgstr ""
40111
40112 #. type: verbatim
40113 #: ../tools/virt-make-fs.pl:41
40114 #, no-wrap
40115 msgid ""
40116 " virt-make-fs [--options] input.tar output.img\n"
40117 "\n"
40118 msgstr ""
40119
40120 #. type: verbatim
40121 #: ../tools/virt-make-fs.pl:43
40122 #, no-wrap
40123 msgid ""
40124 " virt-make-fs [--options] input.tar.gz output.img\n"
40125 "\n"
40126 msgstr ""
40127
40128 #. type: verbatim
40129 #: ../tools/virt-make-fs.pl:45
40130 #, no-wrap
40131 msgid ""
40132 " virt-make-fs [--options] directory output.img\n"
40133 "\n"
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../tools/virt-make-fs.pl:49
40138 msgid ""
40139 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40140 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40141 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40142 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40143 "you want to attach these filesystems to existing virtual machines (eg. to "
40144 "import large amounts of read-only data to a VM)."
40145 msgstr ""
40146
40147 #. type: textblock
40148 #: ../tools/virt-make-fs.pl:57
40149 msgid "Basic usage is:"
40150 msgstr ""
40151
40152 #. type: verbatim
40153 #: ../tools/virt-make-fs.pl:59
40154 #, no-wrap
40155 msgid ""
40156 " virt-make-fs input output.img\n"
40157 "\n"
40158 msgstr ""
40159
40160 #. type: textblock
40161 #: ../tools/virt-make-fs.pl:61
40162 msgid ""
40163 "where C<input> is either a directory containing files that you want to add, "
40164 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40165 "C<output.img> is a disk image.  The input type is detected automatically.  "
40166 "The output disk image defaults to a raw ext2 sparse image unless you specify "
40167 "extra flags (see L</OPTIONS> below)."
40168 msgstr ""
40169
40170 #. type: =head2
40171 #: ../tools/virt-make-fs.pl:67
40172 msgid "FILESYSTEM TYPE"
40173 msgstr ""
40174
40175 #. type: textblock
40176 #: ../tools/virt-make-fs.pl:69
40177 msgid ""
40178 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40179 "libguestfs supports can be used (but I<not> read-only formats like "
40180 "ISO9660).  Here are some of the more common choices:"
40181 msgstr ""
40182
40183 #. type: =item
40184 #: ../tools/virt-make-fs.pl:75
40185 msgid "I<ext3>"
40186 msgstr ""
40187
40188 #. type: textblock
40189 #: ../tools/virt-make-fs.pl:77
40190 msgid ""
40191 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40192 "you are not going to use the filesystem in a way that requires the journal, "
40193 "then this is just wasted overhead."
40194 msgstr ""
40195
40196 #. type: =item
40197 #: ../tools/virt-make-fs.pl:81
40198 msgid "I<ntfs> or I<vfat>"
40199 msgstr ""
40200
40201 #. type: textblock
40202 #: ../tools/virt-make-fs.pl:83
40203 msgid "Useful if exporting data to a Windows guest."
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../tools/virt-make-fs.pl:85
40208 msgid ""
40209 "I<Note for vfat>: The tar archive or local directory must only contain files "
40210 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40211 "program running within libguestfs is unable to change the ownership of non-"
40212 "root files, since vfat itself does not support this."
40213 msgstr ""
40214
40215 #. type: =item
40216 #: ../tools/virt-make-fs.pl:90
40217 msgid "I<minix>"
40218 msgstr ""
40219
40220 #. type: textblock
40221 #: ../tools/virt-make-fs.pl:92
40222 msgid ""
40223 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40224 "total filesystem size."
40225 msgstr ""
40226
40227 #. type: =head3
40228 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
40229 #: ../tools/virt-make-fs.pl:149
40230 msgid "EXAMPLE"
40231 msgstr ""
40232
40233 #. type: verbatim
40234 #: ../tools/virt-make-fs.pl:99
40235 #, no-wrap
40236 msgid ""
40237 " virt-make-fs --type=minix input minixfs.img\n"
40238 "\n"
40239 msgstr ""
40240
40241 #. type: =head2
40242 #: ../tools/virt-make-fs.pl:101
40243 msgid "TO PARTITION OR NOT TO PARTITION"
40244 msgstr ""
40245
40246 #. type: textblock
40247 #: ../tools/virt-make-fs.pl:103
40248 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../tools/virt-make-fs.pl:105
40253 msgid ""
40254 "Adding a partition can make the disk image more compatible with certain "
40255 "virtualized operating systems which don't expect to see a filesystem "
40256 "directly located on a block device (Linux doesn't care and will happily "
40257 "handle both types)."
40258 msgstr ""
40259
40260 #. type: textblock
40261 #: ../tools/virt-make-fs.pl:110
40262 msgid ""
40263 "On the other hand, if you have a partition table then the output image is no "
40264 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40265 "directly on a partitioned disk image.  (However libguestfs tools such as "
40266 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40267 msgstr ""
40268
40269 #. type: textblock
40270 #: ../tools/virt-make-fs.pl:118
40271 msgid "Add an MBR partition:"
40272 msgstr ""
40273
40274 #. type: verbatim
40275 #: ../tools/virt-make-fs.pl:120
40276 #, no-wrap
40277 msgid ""
40278 " virt-make-fs --partition -- input disk.img\n"
40279 "\n"
40280 msgstr ""
40281
40282 #. type: textblock
40283 #: ../tools/virt-make-fs.pl:122
40284 msgid ""
40285 "If the output disk image could be terabyte-sized or larger, it's better to "
40286 "use an EFI/GPT-compatible partition table:"
40287 msgstr ""
40288
40289 #. type: verbatim
40290 #: ../tools/virt-make-fs.pl:125
40291 #, no-wrap
40292 msgid ""
40293 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40294 "\n"
40295 msgstr ""
40296
40297 #. type: =head2
40298 #: ../tools/virt-make-fs.pl:127
40299 msgid "EXTRA SPACE"
40300 msgstr ""
40301
40302 #. type: textblock
40303 #: ../tools/virt-make-fs.pl:129
40304 msgid ""
40305 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40306 "the files that it contains, but might have extra space.  Depending on how "
40307 "you are going to use the output, you might think this extra space is wasted "
40308 "and want to minimize it, or you might want to leave space so that more files "
40309 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40310 "but you can use the I<--size> flag to leave space in the filesystem if you "
40311 "want it."
40312 msgstr ""
40313
40314 #. type: textblock
40315 #: ../tools/virt-make-fs.pl:137
40316 msgid ""
40317 "An alternative way to leave extra space but not make the output image any "
40318 "bigger is to use an alternative disk image format (instead of the default "
40319 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40320 "image format (check your hypervisor supports this before using it).  This "
40321 "allows you to choose a large I<--size> but the extra space won't actually be "
40322 "allocated in the image until you try to store something in it."
40323 msgstr ""
40324
40325 #. type: textblock
40326 #: ../tools/virt-make-fs.pl:145
40327 msgid ""
40328 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40329 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40330 "to build another image from scratch."
40331 msgstr ""
40332
40333 #. type: verbatim
40334 #: ../tools/virt-make-fs.pl:151
40335 #, no-wrap
40336 msgid ""
40337 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40338 "\n"
40339 msgstr ""
40340
40341 #. type: textblock
40342 #: ../tools/virt-make-fs.pl:179
40343 msgid "Enable debugging information."
40344 msgstr ""
40345
40346 #. type: =item
40347 #: ../tools/virt-make-fs.pl:185
40348 msgid "B<--size=E<lt>NE<gt>>"
40349 msgstr ""
40350
40351 #. type: =item
40352 #: ../tools/virt-make-fs.pl:187
40353 msgid "B<--size=+E<lt>NE<gt>>"
40354 msgstr ""
40355
40356 #. type: =item
40357 #: ../tools/virt-make-fs.pl:189
40358 msgid "B<-s E<lt>NE<gt>>"
40359 msgstr ""
40360
40361 #. type: =item
40362 #: ../tools/virt-make-fs.pl:191
40363 msgid "B<-s +E<lt>NE<gt>>"
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../tools/virt-make-fs.pl:193
40368 msgid ""
40369 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40370 msgstr ""
40371
40372 #. type: textblock
40373 #: ../tools/virt-make-fs.pl:196
40374 msgid ""
40375 "If this option is I<not> given, then the output image will be just large "
40376 "enough to contain all the files, with not much wasted space."
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../tools/virt-make-fs.pl:199
40381 msgid ""
40382 "To choose a fixed size output disk, specify an absolute number followed by b/"
40383 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40384 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40385 "files, else you will get an error."
40386 msgstr ""
40387
40388 #. type: textblock
40389 #: ../tools/virt-make-fs.pl:204
40390 msgid ""
40391 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40392 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40393 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40394 "the input files, and (approximately) an extra 200 MB free space."
40395 msgstr ""
40396
40397 #. type: textblock
40398 #: ../tools/virt-make-fs.pl:210
40399 msgid ""
40400 "Note that virt-make-fs estimates free space, and therefore will not produce "
40401 "filesystems containing precisely the free space requested.  (It is much more "
40402 "expensive and time-consuming to produce a filesystem which has precisely the "
40403 "desired free space)."
40404 msgstr ""
40405
40406 #. type: =item
40407 #: ../tools/virt-make-fs.pl:219
40408 msgid "B<--format=E<lt>fmtE<gt>>"
40409 msgstr ""
40410
40411 #. type: =item
40412 #: ../tools/virt-make-fs.pl:221
40413 msgid "B<-F E<lt>fmtE<gt>>"
40414 msgstr ""
40415
40416 #. type: textblock
40417 #: ../tools/virt-make-fs.pl:223
40418 msgid "Choose the output disk image format."
40419 msgstr ""
40420
40421 #. type: textblock
40422 #: ../tools/virt-make-fs.pl:225
40423 msgid "The default is C<raw> (raw sparse disk image)."
40424 msgstr ""
40425
40426 #. type: textblock
40427 #: ../tools/virt-make-fs.pl:227
40428 msgid ""
40429 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40430 "that would really make sense here is C<qcow2>."
40431 msgstr ""
40432
40433 #. type: =item
40434 #: ../tools/virt-make-fs.pl:234
40435 msgid "B<--type=E<lt>fsE<gt>>"
40436 msgstr ""
40437
40438 #. type: =item
40439 #: ../tools/virt-make-fs.pl:236
40440 msgid "B<-t E<lt>fsE<gt>>"
40441 msgstr ""
40442
40443 #. type: textblock
40444 #: ../tools/virt-make-fs.pl:238
40445 msgid "Choose the output filesystem type."
40446 msgstr ""
40447
40448 #. type: textblock
40449 #: ../tools/virt-make-fs.pl:240
40450 msgid "The default is C<ext2>."
40451 msgstr ""
40452
40453 #. type: textblock
40454 #: ../tools/virt-make-fs.pl:242
40455 msgid ""
40456 "Any filesystem which is supported read-write by libguestfs can be used here."
40457 msgstr ""
40458
40459 #. type: =item
40460 #: ../tools/virt-make-fs.pl:249
40461 msgid "B<--partition>"
40462 msgstr ""
40463
40464 #. type: =item
40465 #: ../tools/virt-make-fs.pl:251
40466 msgid "B<--partition=E<lt>parttypeE<gt>>"
40467 msgstr ""
40468
40469 #. type: textblock
40470 #: ../tools/virt-make-fs.pl:253
40471 msgid ""
40472 "If specified, this flag adds an MBR partition table to the output disk image."
40473 msgstr ""
40474
40475 #. type: textblock
40476 #: ../tools/virt-make-fs.pl:256
40477 msgid ""
40478 "You can change the partition table type, eg. I<--partition=gpt> for large "
40479 "disks."
40480 msgstr ""
40481
40482 #. type: textblock
40483 #: ../tools/virt-make-fs.pl:259
40484 msgid ""
40485 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40486 "might consider the next parameter to be the partition type.  For example:"
40487 msgstr ""
40488
40489 #. type: verbatim
40490 #: ../tools/virt-make-fs.pl:263
40491 #, no-wrap
40492 msgid ""
40493 " virt-make-fs --partition input.tar output.img\n"
40494 "\n"
40495 msgstr ""
40496
40497 #. type: textblock
40498 #: ../tools/virt-make-fs.pl:265
40499 msgid ""
40500 "would cause virt-make-fs to think you wanted to use a partition type of "
40501 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40502 "dash) between options and the input and output arguments:"
40503 msgstr ""
40504
40505 #. type: verbatim
40506 #: ../tools/virt-make-fs.pl:269
40507 #, no-wrap
40508 msgid ""
40509 " virt-make-fs --partition -- input.tar output.img\n"
40510 "\n"
40511 msgstr ""
40512
40513 #. type: textblock
40514 #: ../tools/virt-make-fs.pl:271
40515 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
40516 msgstr ""
40517
40518 #. type: textblock
40519 #: ../tools/virt-make-fs.pl:559
40520 msgid ""
40521 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40522 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40523 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40524 msgstr ""
40525
40526 #. type: textblock
40527 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
40528 msgid ""
40529 "When reporting bugs, please enable debugging and capture the I<complete> "
40530 "output:"
40531 msgstr ""
40532
40533 #. type: verbatim
40534 #: ../tools/virt-make-fs.pl:576
40535 #, no-wrap
40536 msgid ""
40537 " export LIBGUESTFS_DEBUG=1\n"
40538 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40539 "\n"
40540 msgstr ""
40541
40542 #. type: textblock
40543 #: ../tools/virt-make-fs.pl:579
40544 msgid ""
40545 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40546 "redhat.com/>"
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../tools/virt-tar.pl:33
40551 msgid "virt-tar - Extract or upload files to a virtual machine"
40552 msgstr ""
40553
40554 #. type: verbatim
40555 #: ../tools/virt-tar.pl:37
40556 #, no-wrap
40557 msgid ""
40558 " virt-tar [--options] -x domname directory tarball\n"
40559 "\n"
40560 msgstr ""
40561
40562 #. type: verbatim
40563 #: ../tools/virt-tar.pl:39
40564 #, no-wrap
40565 msgid ""
40566 " virt-tar [--options] -u domname tarball directory\n"
40567 "\n"
40568 msgstr ""
40569
40570 #. type: verbatim
40571 #: ../tools/virt-tar.pl:41
40572 #, no-wrap
40573 msgid ""
40574 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40575 "\n"
40576 msgstr ""
40577
40578 #. type: verbatim
40579 #: ../tools/virt-tar.pl:43
40580 #, no-wrap
40581 msgid ""
40582 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40583 "\n"
40584 msgstr ""
40585
40586 #. type: =head2
40587 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40588 msgid "NOTE"
40589 msgstr ""
40590
40591 #. type: textblock
40592 #: ../tools/virt-tar.pl:47
40593 msgid ""
40594 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40595 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40596 msgstr ""
40597
40598 #. type: textblock
40599 #: ../tools/virt-tar.pl:52
40600 msgid "Download C</home> from the VM into a local tarball:"
40601 msgstr ""
40602
40603 #. type: verbatim
40604 #: ../tools/virt-tar.pl:54
40605 #, no-wrap
40606 msgid ""
40607 " virt-tar -x domname /home home.tar\n"
40608 "\n"
40609 msgstr ""
40610
40611 #. type: verbatim
40612 #: ../tools/virt-tar.pl:56
40613 #, no-wrap
40614 msgid ""
40615 " virt-tar -zx domname /home home.tar.gz\n"
40616 "\n"
40617 msgstr ""
40618
40619 #. type: textblock
40620 #: ../tools/virt-tar.pl:58
40621 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40622 msgstr ""
40623
40624 #. type: verbatim
40625 #: ../tools/virt-tar.pl:60
40626 #, no-wrap
40627 msgid ""
40628 " virt-tar -u domname uploadstuff.tar /tmp\n"
40629 "\n"
40630 msgstr ""
40631
40632 #. type: verbatim
40633 #: ../tools/virt-tar.pl:62
40634 #, no-wrap
40635 msgid ""
40636 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40637 "\n"
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../tools/virt-tar.pl:66
40642 msgid ""
40643 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40644 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40645 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../tools/virt-tar.pl:71
40650 msgid ""
40651 "You can use I<-x> (extract) on live virtual machines, but you might get "
40652 "inconsistent results or errors if there is filesystem activity inside the "
40653 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40654 "work, but the only way to guarantee consistent results is if the virtual "
40655 "machine is shut down."
40656 msgstr ""
40657
40658 #. type: textblock
40659 #: ../tools/virt-tar.pl:79
40660 msgid ""
40661 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40662 "parts of a guest filesystem.  There are many possibilities: making backups, "
40663 "uploading data files, snooping on guest activity, fixing or customizing "
40664 "guests, etc."
40665 msgstr ""
40666
40667 #. type: textblock
40668 #: ../tools/virt-tar.pl:84
40669 msgid ""
40670 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40671 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40672 "should look at the L<guestfish(1)> tool."
40673 msgstr ""
40674
40675 #. type: textblock
40676 #: ../tools/virt-tar.pl:88
40677 msgid ""
40678 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40679 "its contents (recursively) from the virtual machine into a local tarball.  "
40680 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40681 "virtual machine.  You cannot use these two options together."
40682 msgstr ""
40683
40684 #. type: textblock
40685 #: ../tools/virt-tar.pl:94
40686 msgid ""
40687 "In addition, you may need to use the I<-z> (gZip) option to enable "
40688 "compression.  When uploading, you have to specify I<-z> if the upload file "
40689 "is compressed because virt-tar won't detect this on its own."
40690 msgstr ""
40691
40692 #. type: textblock
40693 #: ../tools/virt-tar.pl:98
40694 msgid ""
40695 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40696 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40697 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40698 "the L<libguestfs(3)> API)."
40699 msgstr ""
40700
40701 #. type: =item
40702 #: ../tools/virt-tar.pl:160
40703 msgid "B<--extract>"
40704 msgstr ""
40705
40706 #. type: =item
40707 #: ../tools/virt-tar.pl:162
40708 msgid "B<--download>"
40709 msgstr ""
40710
40711 #. type: =item
40712 #: ../tools/virt-tar.pl:164
40713 msgid "B<-u>"
40714 msgstr ""
40715
40716 #. type: =item
40717 #: ../tools/virt-tar.pl:166
40718 msgid "B<--upload>"
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../tools/virt-tar.pl:168
40723 msgid ""
40724 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40725 "local tarball."
40726 msgstr ""
40727
40728 #. type: textblock
40729 #: ../tools/virt-tar.pl:171
40730 msgid ""
40731 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40732 "Please read the L</WARNING> section above before using this option."
40733 msgstr ""
40734
40735 #. type: textblock
40736 #: ../tools/virt-tar.pl:175
40737 msgid "You must specify exactly one of these options."
40738 msgstr ""
40739
40740 #. type: =item
40741 #: ../tools/virt-tar.pl:181
40742 msgid "B<-z>"
40743 msgstr ""
40744
40745 #. type: =item
40746 #: ../tools/virt-tar.pl:183
40747 msgid "B<--gzip>"
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../tools/virt-tar.pl:185
40752 msgid "Specify that the input or output tarball is gzip-compressed."
40753 msgstr ""
40754
40755 #. type: textblock
40756 #: ../tools/virt-tar.pl:298
40757 msgid ""
40758 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40759 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40760 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40761 "org/>."
40762 msgstr ""
40763
40764 #. type: textblock
40765 #: ../tools/virt-win-reg.pl:37
40766 msgid ""
40767 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40768 msgstr ""
40769
40770 #. type: verbatim
40771 #: ../tools/virt-win-reg.pl:41
40772 #, no-wrap
40773 msgid ""
40774 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40775 "\n"
40776 msgstr ""
40777
40778 #. type: verbatim
40779 #: ../tools/virt-win-reg.pl:43
40780 #, no-wrap
40781 msgid ""
40782 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40783 "\n"
40784 msgstr ""
40785
40786 #. type: verbatim
40787 #: ../tools/virt-win-reg.pl:45
40788 #, no-wrap
40789 msgid ""
40790 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40791 "\n"
40792 msgstr ""
40793
40794 #. type: verbatim
40795 #: ../tools/virt-win-reg.pl:47
40796 #, no-wrap
40797 msgid ""
40798 " virt-win-reg --merge domname [input.reg ...]\n"
40799 "\n"
40800 msgstr ""
40801
40802 #. type: verbatim
40803 #: ../tools/virt-win-reg.pl:49
40804 #, no-wrap
40805 msgid ""
40806 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40807 "\n"
40808 msgstr ""
40809
40810 #. type: textblock
40811 #: ../tools/virt-win-reg.pl:53
40812 msgid ""
40813 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40814 "virtual machines.  If you do this, you I<will> get irreversible disk "
40815 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40816 "but doesn't catch all cases."
40817 msgstr ""
40818
40819 #. type: textblock
40820 #: ../tools/virt-win-reg.pl:58
40821 msgid ""
40822 "Modifying the Windows Registry is an inherently risky operation.  The format "
40823 "is deliberately obscure and undocumented, and Registry changes can leave the "
40824 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40825 "you have a reliable backup first."
40826 msgstr ""
40827
40828 #. type: textblock
40829 #: ../tools/virt-win-reg.pl:65
40830 msgid ""
40831 "This program can export and merge Windows Registry entries from a Windows "
40832 "guest."
40833 msgstr ""
40834
40835 #. type: textblock
40836 #: ../tools/virt-win-reg.pl:68
40837 msgid ""
40838 "The first parameter is the libvirt guest name or the raw disk image of a "
40839 "Windows guest."
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../tools/virt-win-reg.pl:71
40844 msgid ""
40845 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40846 "exported (recursively).  For example:"
40847 msgstr ""
40848
40849 #. type: verbatim
40850 #: ../tools/virt-win-reg.pl:74
40851 #, no-wrap
40852 msgid ""
40853 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40854 "\n"
40855 msgstr ""
40856
40857 #. type: textblock
40858 #: ../tools/virt-win-reg.pl:76
40859 msgid ""
40860 "You can also display single values from within registry keys, for example:"
40861 msgstr ""
40862
40863 #. type: verbatim
40864 #: ../tools/virt-win-reg.pl:79
40865 #, no-wrap
40866 msgid ""
40867 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40868 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40869 " Windows 7 Enterprise\n"
40870 "\n"
40871 msgstr ""
40872
40873 #. type: textblock
40874 #: ../tools/virt-win-reg.pl:83
40875 msgid ""
40876 "With I<--merge>, you can merge a textual regedit file into the Windows "
40877 "Registry:"
40878 msgstr ""
40879
40880 #. type: verbatim
40881 #: ../tools/virt-win-reg.pl:86
40882 #, no-wrap
40883 msgid ""
40884 " $ virt-win-reg --merge Windows7 changes.reg\n"
40885 "\n"
40886 msgstr ""
40887
40888 #. type: textblock
40889 #: ../tools/virt-win-reg.pl:90
40890 msgid ""
40891 "This program is only meant for simple access to the registry.  If you want "
40892 "to do complicated things with the registry, we suggest you download the "
40893 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40894 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40895 "L<hivexregedit(1)>."
40896 msgstr ""
40897
40898 #. type: =item
40899 #: ../tools/virt-win-reg.pl:159
40900 msgid "B<--merge>"
40901 msgstr ""
40902
40903 #. type: textblock
40904 #: ../tools/virt-win-reg.pl:161
40905 msgid ""
40906 "In merge mode, this merges a textual regedit file into the Windows Registry "
40907 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40908 "displays or exports Registry entries instead."
40909 msgstr ""
40910
40911 #. type: textblock
40912 #: ../tools/virt-win-reg.pl:165
40913 msgid ""
40914 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40915 "result in disk corruption.  However exporting (without this flag)  is always "
40916 "safe."
40917 msgstr ""
40918
40919 #. type: =item
40920 #: ../tools/virt-win-reg.pl:173
40921 msgid "B<--encoding> UTF-16LE|ASCII"
40922 msgstr ""
40923
40924 #. type: textblock
40925 #: ../tools/virt-win-reg.pl:175
40926 msgid ""
40927 "When merging (only), you may need to specify the encoding for strings to be "
40928 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
40929 "(3)/ENCODING STRINGS>."
40930 msgstr ""
40931
40932 #. type: textblock
40933 #: ../tools/virt-win-reg.pl:179
40934 msgid ""
40935 "The default is to use UTF-16LE, which should work with recent versions of "
40936 "Windows."
40937 msgstr ""
40938
40939 #. type: =item
40940 #: ../tools/virt-win-reg.pl:186
40941 msgid "B<--unsafe-printable-strings>"
40942 msgstr ""
40943
40944 #. type: textblock
40945 #: ../tools/virt-win-reg.pl:188
40946 msgid ""
40947 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40948 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40949 "present."
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../tools/virt-win-reg.pl:192
40954 msgid ""
40955 "This is unsafe and does not preserve the fidelity of strings in the original "
40956 "Registry for various reasons:"
40957 msgstr ""
40958
40959 #. type: textblock
40960 #: ../tools/virt-win-reg.pl:199
40961 msgid ""
40962 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40963 "other encodings will be corrupted by this transformation."
40964 msgstr ""
40965
40966 #. type: textblock
40967 #: ../tools/virt-win-reg.pl:204
40968 msgid ""
40969 "Assumes that everything which has type 1 or 2 is really a string and that "
40970 "everything else is not a string, but the type field in real Registries is "
40971 "not reliable."
40972 msgstr ""
40973
40974 #. type: textblock
40975 #: ../tools/virt-win-reg.pl:210
40976 msgid ""
40977 "Loses information about whether a zero codepoint followed the string in the "
40978 "Registry or not."
40979 msgstr ""
40980
40981 #. type: textblock
40982 #: ../tools/virt-win-reg.pl:215
40983 msgid ""
40984 "This all happens because the Registry itself contains no information about "
40985 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40986 msgstr ""
40987
40988 #. type: textblock
40989 #: ../tools/virt-win-reg.pl:219
40990 msgid ""
40991 "You should only use this option for quick hacking and debugging of the "
40992 "Registry contents, and I<never> use it if the output is going to be passed "
40993 "into another program or stored in another Registry."
40994 msgstr ""
40995
40996 #. type: =head1
40997 #: ../tools/virt-win-reg.pl:556
40998 msgid "SUPPORTED SYSTEMS"
40999 msgstr ""
41000
41001 #. type: textblock
41002 #: ../tools/virt-win-reg.pl:558
41003 msgid ""
41004 "The program currently supports Windows NT-derived guests starting with "
41005 "Windows XP through to at least Windows 7."
41006 msgstr ""
41007
41008 #. type: textblock
41009 #: ../tools/virt-win-reg.pl:561
41010 msgid "The following Registry keys are supported:"
41011 msgstr ""
41012
41013 #. type: =item
41014 #: ../tools/virt-win-reg.pl:565
41015 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41016 msgstr ""
41017
41018 #. type: =item
41019 #: ../tools/virt-win-reg.pl:567
41020 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41021 msgstr ""
41022
41023 #. type: =item
41024 #: ../tools/virt-win-reg.pl:569
41025 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41026 msgstr ""
41027
41028 #. type: =item
41029 #: ../tools/virt-win-reg.pl:571
41030 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41031 msgstr ""
41032
41033 #. type: =item
41034 #: ../tools/virt-win-reg.pl:573
41035 msgid "C<HKEY_USERS\\.DEFAULT>"
41036 msgstr ""
41037
41038 #. type: =item
41039 #: ../tools/virt-win-reg.pl:575
41040 msgid "C<HKEY_USERS\\I<SID>>"
41041 msgstr ""
41042
41043 #. type: textblock
41044 #: ../tools/virt-win-reg.pl:577
41045 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41046 msgstr ""
41047
41048 #. type: =item
41049 #: ../tools/virt-win-reg.pl:579
41050 msgid "C<HKEY_USERS\\I<username>>"
41051 msgstr ""
41052
41053 #. type: textblock
41054 #: ../tools/virt-win-reg.pl:581
41055 msgid ""
41056 "where I<username> is a local user name (this is a libguestfs extension)."
41057 msgstr ""
41058
41059 #. type: textblock
41060 #: ../tools/virt-win-reg.pl:585
41061 msgid ""
41062 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41063 "C<HKEY_USERS>."
41064 msgstr ""
41065
41066 #. type: textblock
41067 #: ../tools/virt-win-reg.pl:588
41068 msgid ""
41069 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41070 "supported (there is no \"current user\")."
41071 msgstr ""
41072
41073 #. type: =head1
41074 #: ../tools/virt-win-reg.pl:591
41075 msgid "ENCODING"
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../tools/virt-win-reg.pl:593
41080 msgid ""
41081 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41082 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41083 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41084 "Windows-style line endings, you may need to reencode the whole file before "
41085 "or after processing."
41086 msgstr ""
41087
41088 #. type: textblock
41089 #: ../tools/virt-win-reg.pl:599
41090 msgid ""
41091 "To reencode a file from Windows format to Linux (before processing it with "
41092 "the I<--merge> option), you would do something like this:"
41093 msgstr ""
41094
41095 #. type: verbatim
41096 #: ../tools/virt-win-reg.pl:602
41097 #, no-wrap
41098 msgid ""
41099 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41100 "\n"
41101 msgstr ""
41102
41103 #. type: textblock
41104 #: ../tools/virt-win-reg.pl:604
41105 msgid ""
41106 "To go in the opposite direction, after exporting and before sending the file "
41107 "to a Windows user, do something like this:"
41108 msgstr ""
41109
41110 #. type: verbatim
41111 #: ../tools/virt-win-reg.pl:607
41112 #, no-wrap
41113 msgid ""
41114 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41115 "\n"
41116 msgstr ""
41117
41118 #. type: textblock
41119 #: ../tools/virt-win-reg.pl:609
41120 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41121 msgstr ""
41122
41123 #. type: textblock
41124 #: ../tools/virt-win-reg.pl:611
41125 msgid ""
41126 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41127 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41128 "style (CRLF) line endings, like this:"
41129 msgstr ""
41130
41131 #. type: verbatim
41132 #: ../tools/virt-win-reg.pl:615
41133 #, no-wrap
41134 msgid ""
41135 " $ file software.reg\n"
41136 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41137 " with CRLF line terminators\n"
41138 "\n"
41139 msgstr ""
41140
41141 #. type: textblock
41142 #: ../tools/virt-win-reg.pl:619
41143 msgid "This file would need conversion before you could I<--merge> it."
41144 msgstr ""
41145
41146 #. type: =head1
41147 #: ../tools/virt-win-reg.pl:621
41148 msgid "CurrentControlSet etc."
41149 msgstr ""
41150
41151 #. type: textblock
41152 #: ../tools/virt-win-reg.pl:623
41153 msgid ""
41154 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41155 "Registry at the level of the hive file, and therefore you cannot modify "
41156 "these."
41157 msgstr ""
41158
41159 #. type: textblock
41160 #: ../tools/virt-win-reg.pl:627
41161 msgid ""
41162 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41163 "circumstances it might refer to another control set.  The way to find out is "
41164 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41165 msgstr ""
41166
41167 #. type: verbatim
41168 #: ../tools/virt-win-reg.pl:631
41169 #, no-wrap
41170 msgid ""
41171 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41172 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41173 " \"Current\"=dword:00000001\n"
41174 " \"Default\"=dword:00000001\n"
41175 " \"Failed\"=dword:00000000\n"
41176 " \"LastKnownGood\"=dword:00000002\n"
41177 "\n"
41178 msgstr ""
41179
41180 #. type: textblock
41181 #: ../tools/virt-win-reg.pl:638
41182 msgid "\"Current\" is the one which Windows will choose when it boots."
41183 msgstr ""
41184
41185 #. type: textblock
41186 #: ../tools/virt-win-reg.pl:640
41187 msgid ""
41188 "Similarly, other C<Current...> keys in the path may need to be replaced."
41189 msgstr ""
41190
41191 #. type: =head1
41192 #: ../tools/virt-win-reg.pl:643
41193 msgid "DELETING REGISTRY KEYS AND VALUES"
41194 msgstr ""
41195
41196 #. type: textblock
41197 #: ../tools/virt-win-reg.pl:645
41198 msgid "To delete a whole registry key, use the syntax:"
41199 msgstr ""
41200
41201 #. type: verbatim
41202 #: ../tools/virt-win-reg.pl:647
41203 #, no-wrap
41204 msgid ""
41205 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
41206 "\n"
41207 msgstr ""
41208
41209 #. type: textblock
41210 #: ../tools/virt-win-reg.pl:649
41211 msgid "To delete a single value within a key, use the syntax:"
41212 msgstr ""
41213
41214 #. type: verbatim
41215 #: ../tools/virt-win-reg.pl:651
41216 #, no-wrap
41217 msgid ""
41218 " [HKEY_LOCAL_MACHINE\\Foo]\n"
41219 " \"Value\"=-\n"
41220 "\n"
41221 msgstr ""
41222
41223 #. type: =head1
41224 #: ../tools/virt-win-reg.pl:654
41225 msgid "WINDOWS TIPS"
41226 msgstr ""
41227
41228 #. type: textblock
41229 #: ../tools/virt-win-reg.pl:656
41230 msgid ""
41231 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41232 "be shut off, else you will get disk corruption."
41233 msgstr ""
41234
41235 #. type: =head2
41236 #: ../tools/virt-win-reg.pl:659
41237 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41238 msgstr ""
41239
41240 #. type: textblock
41241 #: ../tools/virt-win-reg.pl:661
41242 msgid ""
41243 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41244 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41245 "is uploaded into C<C:\\>:"
41246 msgstr ""
41247
41248 #. type: verbatim
41249 #: ../tools/virt-win-reg.pl:665
41250 #, no-wrap
41251 msgid ""
41252 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41253 "\n"
41254 msgstr ""
41255
41256 #. type: textblock
41257 #: ../tools/virt-win-reg.pl:667
41258 msgid "Prepare a regedit file containing the registry change:"
41259 msgstr ""
41260
41261 #. type: verbatim
41262 #: ../tools/virt-win-reg.pl:669
41263 #, no-wrap
41264 msgid ""
41265 " cat > test.reg <<'EOF'\n"
41266 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41267 " \"Test\"=\"c:\\\\test.bat\"\n"
41268 " EOF\n"
41269 "\n"
41270 msgstr ""
41271
41272 #. type: textblock
41273 #: ../tools/virt-win-reg.pl:674
41274 msgid ""
41275 "In this example we use the key C<RunOnce> which means that the script will "
41276 "run precisely once when the first user logs in.  If you want it to run every "
41277 "time a user logs in, replace C<RunOnce> with C<Run>."
41278 msgstr ""
41279
41280 #. type: textblock
41281 #: ../tools/virt-win-reg.pl:678
41282 msgid "Now update the registry:"
41283 msgstr ""
41284
41285 #. type: verbatim
41286 #: ../tools/virt-win-reg.pl:680
41287 #, no-wrap
41288 msgid ""
41289 " virt-win-reg --merge WindowsGuest test.reg\n"
41290 "\n"
41291 msgstr ""
41292
41293 #. type: =head2
41294 #: ../tools/virt-win-reg.pl:682
41295 msgid "INSTALLING A SERVICE"
41296 msgstr ""
41297
41298 #. type: textblock
41299 #: ../tools/virt-win-reg.pl:684
41300 msgid ""
41301 "This section assumes you are familiar with Windows services, and you either "
41302 "have a program which handles the Windows Service Control Protocol directly "
41303 "or you want to run any program using a service wrapper like SrvAny or the "
41304 "free RHSrvAny."
41305 msgstr ""
41306
41307 #. type: textblock
41308 #: ../tools/virt-win-reg.pl:689
41309 msgid ""
41310 "First upload the program and optionally the service wrapper.  In this case "
41311 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41312 msgstr ""
41313
41314 #. type: verbatim
41315 #: ../tools/virt-win-reg.pl:693
41316 #, no-wrap
41317 msgid ""
41318 " guestfish -i -d WindowsGuest <<EOF\n"
41319 "   upload rhsrvany.exe /rhsrvany.exe\n"
41320 "   upload test.exe /test.exe\n"
41321 " EOF\n"
41322 "\n"
41323 msgstr ""
41324
41325 #. type: textblock
41326 #: ../tools/virt-win-reg.pl:698
41327 msgid ""
41328 "Prepare a regedit file containing the registry changes.  In this example, "
41329 "the first registry change is needed for the service itself or the service "
41330 "wrapper (if used).  The second registry change is only needed because I am "
41331 "using the RHSrvAny service wrapper."
41332 msgstr ""
41333
41334 #. type: verbatim
41335 #: ../tools/virt-win-reg.pl:703
41336 #, no-wrap
41337 msgid ""
41338 " cat > service.reg <<'EOF'\n"
41339 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41340 " \"Type\"=dword:00000010\n"
41341 " \"Start\"=dword:00000002\n"
41342 " \"ErrorControl\"=dword:00000001\n"
41343 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41344 " \"DisplayName\"=\"RHSrvAny\"\n"
41345 " \"ObjectName\"=\"NetworkService\"\n"
41346 " \n"
41347 msgstr ""
41348
41349 #. type: verbatim
41350 #: ../tools/virt-win-reg.pl:712
41351 #, no-wrap
41352 msgid ""
41353 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41354 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41355 " \"PWD\"=\"c:\\\\Temp\"\n"
41356 " EOF\n"
41357 "\n"
41358 msgstr ""
41359
41360 #. type: textblock
41361 #: ../tools/virt-win-reg.pl:723
41362 msgid ""
41363 "For use of C<ControlSet001> see the section above in this manual page.  You "
41364 "may need to adjust this according to the control set that is in use by the "
41365 "guest."
41366 msgstr ""
41367
41368 #. type: textblock
41369 #: ../tools/virt-win-reg.pl:729
41370 msgid ""
41371 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41372 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41373 "privileged account."
41374 msgstr ""
41375
41376 #. type: textblock
41377 #: ../tools/virt-win-reg.pl:735
41378 msgid ""
41379 "For the meaning of the magic numbers, see this Microsoft KB article: "
41380 "L<http://support.microsoft.com/kb/103000>."
41381 msgstr ""
41382
41383 #. type: textblock
41384 #: ../tools/virt-win-reg.pl:740
41385 msgid "Update the registry:"
41386 msgstr ""
41387
41388 #. type: verbatim
41389 #: ../tools/virt-win-reg.pl:742
41390 #, no-wrap
41391 msgid ""
41392 " virt-win-reg --merge WindowsGuest service.reg\n"
41393 "\n"
41394 msgstr ""
41395
41396 #. type: textblock
41397 #: ../tools/virt-win-reg.pl:746
41398 msgid ""
41399 "Be careful when passing parameters containing C<\\> (backslash) in the "
41400 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41401 "(but not both) to protect them from the shell."
41402 msgstr ""
41403
41404 #. type: textblock
41405 #: ../tools/virt-win-reg.pl:750
41406 msgid "Paths and value names are case-insensitive."
41407 msgstr ""
41408
41409 #. type: textblock
41410 #: ../tools/virt-win-reg.pl:759
41411 msgid ""
41412 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41413 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41414 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41415 msgstr ""
41416
41417 #. type: verbatim
41418 #: ../tools/virt-win-reg.pl:777
41419 #, no-wrap
41420 msgid ""
41421 " export LIBGUESTFS_DEBUG=1\n"
41422 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41423 "\n"
41424 msgstr ""
41425
41426 #. type: textblock
41427 #: ../tools/virt-win-reg.pl:780
41428 msgid ""
41429 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41430 "redhat.com/>"
41431 msgstr ""